!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/packs/",n(n.s=1815)}([function(e,t,n){"use strict";e.exports=n(191)},function(e,t,n){"use strict";n.r(t),function(e,r){function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}n.d(t,"$mobx",(function(){return tr})),n.d(t,"FlowCancellationError",(function(){return Rt})),n.d(t,"IDerivationState",(function(){return ie})),n.d(t,"ObservableMap",(function(){return Mn})),n.d(t,"ObservableSet",(function(){return Fn})),n.d(t,"Reaction",(function(){return et})),n.d(t,"_allowStateChanges",(function(){return Pe})),n.d(t,"_allowStateChangesInsideComputed",(function(){return Ae})),n.d(t,"_allowStateReadsEnd",(function(){return _e})),n.d(t,"_allowStateReadsStart",(function(){return Ee})),n.d(t,"_endAction",(function(){return Ne})),n.d(t,"_getAdministration",(function(){return Kn})),n.d(t,"_getGlobalState",(function(){return We})),n.d(t,"_interceptReads",(function(){return Yt})),n.d(t,"_isComputingDerivation",(function(){return me})),n.d(t,"_resetGlobalState",(function(){return Ve})),n.d(t,"_startAction",(function(){return De})),n.d(t,"action",(function(){return yt})),n.d(t,"autorun",(function(){return wt})),n.d(t,"comparer",(function(){return R})),n.d(t,"computed",(function(){return ue})),n.d(t,"configure",(function(){return jt})),n.d(t,"createAtom",(function(){return A})),n.d(t,"decorate",(function(){return Ct})),n.d(t,"entries",(function(){return Jt})),n.d(t,"extendObservable",(function(){return Nt})),n.d(t,"extendShallowObservable",(function(){return Dt})),n.d(t,"flow",(function(){return zt})),n.d(t,"get",(function(){return en})),n.d(t,"getAtom",(function(){return Gn})),n.d(t,"getDebugName",(function(){return $n})),n.d(t,"getDependencyTree",(function(){return Pt})),n.d(t,"getObserverTree",(function(){return Mt})),n.d(t,"has",(function(){return Zt})),n.d(t,"intercept",(function(){return It})),n.d(t,"isAction",(function(){return vt})),n.d(t,"isArrayLike",(function(){return w})),n.d(t,"isBoxedObservable",(function(){return Re})),n.d(t,"isComputed",(function(){return Ut})),n.d(t,"isComputedProp",(function(){return Wt})),n.d(t,"isFlowCancellationError",(function(){return Ft})),n.d(t,"isObservable",(function(){return qt})),n.d(t,"isObservableArray",(function(){return Pn})),n.d(t,"isObservableMap",(function(){return Ln})),n.d(t,"isObservableObject",(function(){return qn})),n.d(t,"isObservableProp",(function(){return Gt})),n.d(t,"isObservableSet",(function(){return zn})),n.d(t,"keys",(function(){return Kt})),n.d(t,"observable",(function(){return oe})),n.d(t,"observe",(function(){return tn})),n.d(t,"onBecomeObserved",(function(){return Ot})),n.d(t,"onBecomeUnobserved",(function(){return xt})),n.d(t,"onReactionError",(function(){return tt})),n.d(t,"reaction",(function(){return kt})),n.d(t,"remove",(function(){return Qt})),n.d(t,"runInAction",(function(){return bt})),n.d(t,"set",(function(){return Xt})),n.d(t,"spy",(function(){return dt})),n.d(t,"toJS",(function(){return an})),n.d(t,"trace",(function(){return ln})),n.d(t,"transaction",(function(){return sn})),n.d(t,"untracked",(function(){return ve})),n.d(t,"values",(function(){return $t})),n.d(t,"when",(function(){return cn}));var a="An invariant failed, however the error is obfuscated because this is an production build.",i=[];Object.freeze(i);var l={};Object.freeze(l);var s={};function c(){return"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:s}function u(){return++Ue.mobxGuid}function f(e){throw p(!1,e),"X"}function p(e,t){if(!e)throw new Error("[mobx] "+(t||a))}function d(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var m=function(){};function h(e){return null!==e&&"object"===o(e)}function y(e){if(null===e||"object"!==o(e))return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function b(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function v(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function g(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return h(e)&&!0===e[n]}}function w(e){return Array.isArray(e)||Pn(e)}function E(e){return void 0!==c().Map&&e instanceof c().Map}function _(e){return e instanceof Set}function k(e){for(var t=[];;){var n=e.next();if(n.done)break;t.push(n.value)}return t}function O(){return"function"==typeof Symbol&&Symbol.toPrimitive||"@@toPrimitive"}function x(e){return null===e?null:"object"===o(e)?""+e:e}function S(e,t){for(var n=e.next();!n.done;)t(n.value),n=e.next()}function j(){return"function"==typeof Symbol&&Symbol.iterator||"@@iterator"}function C(e,t){v(e,j(),t)}function D(e){return e[j()]=P,e}function N(){return"function"==typeof Symbol&&Symbol.toStringTag||"@@toStringTag"}function P(){return this}var T=function(){function e(e){void 0===e&&(e="Atom@"+u()),this.name=e,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=ie.NOT_TRACKING}return e.prototype.onBecomeUnobserved=function(){},e.prototype.onBecomeObserved=function(){},e.prototype.reportObserved=function(){return Xe(this)},e.prototype.reportChanged=function(){$e(),function(e){if(e.lowestObserverState===ie.STALE)return;e.lowestObserverState=ie.STALE;var t=e.observers,n=t.length;for(;n--;){var r=t[n];r.dependenciesState===ie.UP_TO_DATE&&(r.isTracing!==le.NONE&&Qe(r,e),r.onBecomeStale()),r.dependenciesState=ie.STALE}}(this),Je()},e.prototype.toString=function(){return this.name},e}(),M=g("Atom",T);function A(e,t,n){void 0===t&&(t=m),void 0===n&&(n=m);var r=new T(e);return Ot(r,t),xt(r,n),r}function L(e,t){return e===t}var R={identity:L,structural:function(e,t){return Xn(e,t)},default:function(e,t){return function(e,t){return"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}(e,t)||L(e,t)},shallow:function(e,t){return Xn(e,t,1)}},F=function(e,t){return F=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},F(e,t)};function z(e,t){function n(){this.constructor=e}F(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var B=function(){return B=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},B.apply(this,arguments)};function Y(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function I(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Y(arguments[t]));return e}var H={},U={};function W(e){if(!0!==e.__mobxDidRunLazyInitializers){var t=e.__mobxDecorators;if(t)for(var n in b(e,"__mobxDidRunLazyInitializers",!0),t){var r=t[n];r.propertyCreator(e,r.prop,r.descriptor,r.decoratorTarget,r.decoratorArguments)}}}function V(e,t){return function(){var n,r,o=function(r,o,a,i){if(!0===i)return t(r,o,a,r,n),null;if(!Object.prototype.hasOwnProperty.call(r,"__mobxDecorators")){var l=r.__mobxDecorators;b(r,"__mobxDecorators",B({},l))}return r.__mobxDecorators[o]={prop:o,propertyCreator:t,descriptor:a,decoratorTarget:r,decoratorArguments:n},function(e,t){var n=t?H:U;return n[e]||(n[e]={configurable:!0,enumerable:t,get:function(){return W(this),this[e]},set:function(t){W(this),this[e]=t}})}(o,e)};return(2===(r=arguments).length||3===r.length)&&"string"==typeof r[1]||4===r.length&&!0===r[3]?(n=i,o.apply(null,arguments)):(n=Array.prototype.slice.call(arguments),o)}}function q(e,t,n){return qt(e)?e:Array.isArray(e)?oe.array(e,{name:n}):y(e)?oe.object(e,void 0,{name:n}):E(e)?oe.map(e,{name:n}):_(e)?oe.set(e,{name:n}):e}function G(e){return e}function K(e){p(e);var t=V(!0,(function(t,n,r,o,a){In(t,n,r?r.initializer?r.initializer.call(t):r.value:void 0,e)})),n=(void 0!==r&&r.env,t);return n.enhancer=e,n}var $={deep:!0,name:void 0,defaultDecorator:void 0},J={deep:!1,name:void 0,defaultDecorator:void 0};function X(e){return null==e?$:"string"==typeof e?{name:e,deep:!0}:e}function Q(e){return e.defaultDecorator?e.defaultDecorator.enhancer:!1===e.deep?G:q}Object.freeze($),Object.freeze(J);var Z=K(q),ee=K((function(e,t,n){return null==e||qn(e)||Pn(e)||Ln(e)||zn(e)?e:Array.isArray(e)?oe.array(e,{name:n,deep:!1}):y(e)?oe.object(e,void 0,{name:n,deep:!1}):E(e)?oe.map(e,{name:n,deep:!1}):_(e)?oe.set(e,{name:n,deep:!1}):f(!1)})),te=K(G),ne=K((function(e,t,n){return Xn(e,t)?t:e}));var re={box:function(e,t){arguments.length>2&&ae("box");var n=X(t);return new Le(e,Q(n),n.name,!0,n.equals)},shallowBox:function(e,t){return arguments.length>2&&ae("shallowBox"),oe.box(e,{name:t,deep:!1})},array:function(e,t){arguments.length>2&&ae("array");var n=X(t);return new xn(e,Q(n),n.name)},shallowArray:function(e,t){return arguments.length>2&&ae("shallowArray"),oe.array(e,{name:t,deep:!1})},map:function(e,t){arguments.length>2&&ae("map");var n=X(t);return new Mn(e,Q(n),n.name)},shallowMap:function(e,t){return arguments.length>2&&ae("shallowMap"),oe.map(e,{name:t,deep:!1})},set:function(e,t){arguments.length>2&&ae("set");var n=X(t);return new Fn(e,Q(n),n.name)},object:function(e,t,n){return"string"==typeof arguments[1]&&ae("object"),Nt({},e,t,X(n))},shallowObject:function(e,t){return"string"==typeof arguments[1]&&ae("shallowObject"),oe.object(e,{},{name:t,deep:!1})},ref:te,shallow:ee,deep:Z,struct:ne},oe=function(e,t,n){if("string"==typeof arguments[1])return Z.apply(null,arguments);if(qt(e))return e;var r=y(e)?oe.object(e,t,n):Array.isArray(e)?oe.array(e,t):E(e)?oe.map(e,t):_(e)?oe.set(e,t):e;if(r!==e)return r;f(!1)};function ae(e){f("Expected one or two arguments to observable."+e+". Did you accidentally try to use observable."+e+" as decorator?")}Object.keys(re).forEach((function(e){return oe[e]=re[e]}));var ie,le,se=V(!1,(function(e,t,n,r,o){var a=n.get,i=n.set,l=o[0]||{};!function(e,t,n){var r=Yn(e);n.name=r.name+"."+t,n.context=e,r.values[t]=new Fe(n),Object.defineProperty(e,t,function(e){return Un[e]||(Un[e]={configurable:Ue.computedConfigurable,enumerable:!1,get:function(){return Wn(this).read(this,e)},set:function(t){Wn(this).write(this,e,t)}})}(t))}(e,t,B({get:a,set:i},l))})),ce=se({equals:R.structural}),ue=function(e,t,n){if("string"==typeof t)return se.apply(null,arguments);if(null!==e&&"object"===o(e)&&1===arguments.length)return se.apply(null,arguments);var r="object"===o(t)?t:{};return r.get=e,r.set="function"==typeof t?t:r.set,r.name=r.name||e.name||"",new Fe(r)};ue.struct=ce,function(e){e[e.NOT_TRACKING=-1]="NOT_TRACKING",e[e.UP_TO_DATE=0]="UP_TO_DATE",e[e.POSSIBLY_STALE=1]="POSSIBLY_STALE",e[e.STALE=2]="STALE"}(ie||(ie={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(le||(le={}));var fe=function(e){this.cause=e};function pe(e){return e instanceof fe}function de(e){switch(e.dependenciesState){case ie.UP_TO_DATE:return!1;case ie.NOT_TRACKING:case ie.STALE:return!0;case ie.POSSIBLY_STALE:for(var t=Ee(!0),n=ge(),r=e.observing,o=r.length,a=0;a<o;a++){var i=r[a];if(ze(i)){if(Ue.disableErrorBoundaries)i.get();else try{i.get()}catch(e){return we(n),_e(t),!0}if(e.dependenciesState===ie.STALE)return we(n),_e(t),!0}}return ke(e),we(n),_e(t),!1}}function me(){return null!==Ue.trackingDerivation}function he(e){var t=e.observers.length>0;Ue.computationDepth>0&&t&&f(!1),Ue.allowStateChanges||!t&&"strict"!==Ue.enforceActions||f(!1)}function ye(e,t,n){var r=Ee(!0);ke(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++Ue.runId;var o,a=Ue.trackingDerivation;if(Ue.trackingDerivation=e,!0===Ue.disableErrorBoundaries)o=t.call(n);else try{o=t.call(n)}catch(e){o=new fe(e)}return Ue.trackingDerivation=a,function(e){for(var t=e.observing,n=e.observing=e.newObserving,r=ie.UP_TO_DATE,o=0,a=e.unboundDepsCount,i=0;i<a;i++){0===(l=n[i]).diffValue&&(l.diffValue=1,o!==i&&(n[o]=l),o++),l.dependenciesState>r&&(r=l.dependenciesState)}n.length=o,e.newObserving=null,a=t.length;for(;a--;){0===(l=t[a]).diffValue&&Ge(l,e),l.diffValue=0}for(;o--;){var l;1===(l=n[o]).diffValue&&(l.diffValue=0,qe(l,e))}r!==ie.UP_TO_DATE&&(e.dependenciesState=r,e.onBecomeStale())}(e),e.observing.length,_e(r),o}function be(e){var t=e.observing;e.observing=[];for(var n=t.length;n--;)Ge(t[n],e);e.dependenciesState=ie.NOT_TRACKING}function ve(e){var t=ge(),n=e();return we(t),n}function ge(){var e=Ue.trackingDerivation;return Ue.trackingDerivation=null,e}function we(e){Ue.trackingDerivation=e}function Ee(e){var t=Ue.allowStateReads;return Ue.allowStateReads=e,t}function _e(e){Ue.allowStateReads=e}function ke(e){if(e.dependenciesState!==ie.UP_TO_DATE){e.dependenciesState=ie.UP_TO_DATE;for(var t=e.observing,n=t.length;n--;)t[n].lowestObserverState=ie.UP_TO_DATE}}var Oe=0,xe=1,Se=Object.getOwnPropertyDescriptor((function(){}),"name");Se&&Se.configurable;function je(e,t){var n=function(){return Ce(e,t,this,arguments)};return n.isMobxAction=!0,n}function Ce(e,t,n,r){var o=De(e,n,r);try{return t.apply(n,r)}catch(e){throw o.error=e,e}finally{Ne(o)}}function De(e,t,n){var r=st()&&!!e,o=0;if(r){o=Date.now();var a=n&&n.length||0,i=new Array(a);if(a>0)for(var l=0;l<a;l++)i[l]=n[l];ut({type:"action",name:e,object:t,arguments:i})}var s=ge();$e();var c={prevDerivation:s,prevAllowStateChanges:Te(!0),prevAllowStateReads:Ee(!0),notifySpy:r,startTime:o,actionId:xe++,parentActionId:Oe};return Oe=c.actionId,c}function Ne(e){Oe!==e.actionId&&f("invalid action stack. did you forget to finish an action?"),Oe=e.parentActionId,void 0!==e.error&&(Ue.suppressReactionErrors=!0),Me(e.prevAllowStateChanges),_e(e.prevAllowStateReads),Je(),we(e.prevDerivation),e.notifySpy&&pt({time:Date.now()-e.startTime}),Ue.suppressReactionErrors=!1}function Pe(e,t){var n,r=Te(e);try{n=t()}finally{Me(r)}return n}function Te(e){var t=Ue.allowStateChanges;return Ue.allowStateChanges=e,t}function Me(e){Ue.allowStateChanges=e}function Ae(e){var t,n=Ue.computationDepth;Ue.computationDepth=0;try{t=e()}finally{Ue.computationDepth=n}return t}var Le=function(e){function t(t,n,r,o,a){void 0===r&&(r="ObservableValue@"+u()),void 0===o&&(o=!0),void 0===a&&(a=R.default);var i=e.call(this,r)||this;return i.enhancer=n,i.name=r,i.equals=a,i.hasUnreportedChange=!1,i.value=n(t,void 0,r),o&&st()&&ct({type:"create",name:i.name,newValue:""+i.value}),i}return z(t,e),t.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.prototype.set=function(e){var t=this.value;if((e=this.prepareNewValue(e))!==Ue.UNCHANGED){var n=st();n&&ut({type:"update",name:this.name,newValue:e,oldValue:t}),this.setNewValue(e),n&&pt()}},t.prototype.prepareNewValue=function(e){if(he(this),fn(this)){var t=dn(this,{object:this,type:"update",newValue:e});if(!t)return Ue.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value,this.name),this.equals(this.value,e)?Ue.UNCHANGED:e},t.prototype.setNewValue=function(e){var t=this.value;this.value=e,this.reportChanged(),mn(this)&&yn(this,{type:"update",object:this,newValue:e,oldValue:t})},t.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},t.prototype.intercept=function(e){return pn(this,e)},t.prototype.observe=function(e,t){return t&&e({object:this,type:"update",newValue:this.value,oldValue:void 0}),hn(this,e)},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.value+"]"},t.prototype.valueOf=function(){return x(this.get())},t}(T);Le.prototype[O()]=Le.prototype.valueOf;var Re=g("ObservableValue",Le),Fe=function(){function e(e){this.dependenciesState=ie.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=ie.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+u(),this.value=new fe(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=le.NONE,p(e.get,"missing option for computed: get"),this.derivation=e.get,this.name=e.name||"ComputedValue@"+u(),e.set&&(this.setter=je(this.name+"-setter",e.set)),this.equals=e.equals||(e.compareStructural||e.struct?R.structural:R.default),this.scope=e.context,this.requiresReaction=!!e.requiresReaction,this.keepAlive=!!e.keepAlive}return e.prototype.onBecomeStale=function(){!function(e){if(e.lowestObserverState!==ie.UP_TO_DATE)return;e.lowestObserverState=ie.POSSIBLY_STALE;var t=e.observers,n=t.length;for(;n--;){var r=t[n];r.dependenciesState===ie.UP_TO_DATE&&(r.dependenciesState=ie.POSSIBLY_STALE,r.isTracing!==le.NONE&&Qe(r,e),r.onBecomeStale())}}(this)},e.prototype.onBecomeUnobserved=function(){},e.prototype.onBecomeObserved=function(){},e.prototype.get=function(){this.isComputing&&f("Cycle detected in computation "+this.name+": "+this.derivation),0!==Ue.inBatch||0!==this.observers.length||this.keepAlive?(Xe(this),de(this)&&this.trackAndCompute()&&function(e){if(e.lowestObserverState===ie.STALE)return;e.lowestObserverState=ie.STALE;var t=e.observers,n=t.length;for(;n--;){var r=t[n];r.dependenciesState===ie.POSSIBLY_STALE?r.dependenciesState=ie.STALE:r.dependenciesState===ie.UP_TO_DATE&&(e.lowestObserverState=ie.UP_TO_DATE)}}(this)):de(this)&&(this.warnAboutUntrackedRead(),$e(),this.value=this.computeValue(!1),Je());var e=this.value;if(pe(e))throw e.cause;return e},e.prototype.peek=function(){var e=this.computeValue(!1);if(pe(e))throw e.cause;return e},e.prototype.set=function(e){if(this.setter){p(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else p(!1,!1)},e.prototype.trackAndCompute=function(){st()&&ct({object:this.scope,type:"compute",name:this.name});var e=this.value,t=this.dependenciesState===ie.NOT_TRACKING,n=this.computeValue(!0),r=t||pe(e)||pe(n)||!this.equals(e,n);return r&&(this.value=n),r},e.prototype.computeValue=function(e){var t;if(this.isComputing=!0,Ue.computationDepth++,e)t=ye(this,this.derivation,this.scope);else if(!0===Ue.disableErrorBoundaries)t=this.derivation.call(this.scope);else try{t=this.derivation.call(this.scope)}catch(e){t=new fe(e)}return Ue.computationDepth--,this.isComputing=!1,t},e.prototype.suspend=function(){this.keepAlive||(be(this),this.value=void 0)},e.prototype.observe=function(e,t){var n=this,r=!0,o=void 0;return wt((function(){var a=n.get();if(!r||t){var i=ge();e({type:"update",object:n,newValue:a,oldValue:o}),we(i)}r=!1,o=a}))},e.prototype.warnAboutUntrackedRead=function(){},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},e.prototype.valueOf=function(){return x(this.get())},e}();Fe.prototype[O()]=Fe.prototype.valueOf;var ze=g("ComputedValue",Fe),Be=["mobxGuid","spyListeners","enforceActions","computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","allowStateReads","disableErrorBoundaries","runId","UNCHANGED"],Ye=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},Ie=!0,He=!1,Ue=function(){var e=c();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Ie=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new Ye).version&&(Ie=!1),Ie?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Ye):(setTimeout((function(){He||f("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")}),1),new Ye)}();function We(){return Ue}function Ve(){var e=new Ye;for(var t in e)-1===Be.indexOf(t)&&(Ue[t]=e[t]);Ue.allowStateChanges=!Ue.enforceActions}function qe(e,t){var n=e.observers.length;n&&(e.observersIndexes[t.__mapid]=n),e.observers[n]=t,e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function Ge(e,t){if(1===e.observers.length)e.observers.length=0,Ke(e);else{var n=e.observers,r=e.observersIndexes,o=n.pop();if(o!==t){var a=r[t.__mapid]||0;a?r[o.__mapid]=a:delete r[o.__mapid],n[a]=o}delete r[t.__mapid]}}function Ke(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,Ue.pendingUnobservations.push(e))}function $e(){Ue.inBatch++}function Je(){if(0==--Ue.inBatch){ot();for(var e=Ue.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation=!1,0===n.observers.length&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBecomeUnobserved()),n instanceof Fe&&n.suspend())}Ue.pendingUnobservations=[]}}function Xe(e){var t=Ue.trackingDerivation;return null!==t?(t.runId!==e.lastAccessedBy&&(e.lastAccessedBy=t.runId,t.newObserving[t.unboundDepsCount++]=e,e.isBeingObserved||(e.isBeingObserved=!0,e.onBecomeObserved())),!0):(0===e.observers.length&&Ue.inBatch>0&&Ke(e),!1)}function Qe(e,t){if(console.log("[mobx.trace] '"+e.name+"' is invalidated due to a change in: '"+t.name+"'"),e.isTracing===le.BREAK){var n=[];Ze(Pt(e),n,1),new Function("debugger;\n/*\nTracing '"+e.name+"'\n\nYou are entering this break point because derivation '"+e.name+"' is being traced and '"+t.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"+(e instanceof Fe?e.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+n.join("\n")+"\n*/\n    ")()}}function Ze(e,t,n){t.length>=1e3?t.push("(and many more)"):(t.push(""+new Array(n).join("\t")+e.name),e.dependencies&&e.dependencies.forEach((function(e){return Ze(e,t,n+1)})))}var et=function(){function e(e,t,n,r){void 0===e&&(e="Reaction@"+u()),void 0===r&&(r=!1),this.name=e,this.onInvalidate=t,this.errorHandler=n,this.requiresObservable=r,this.observing=[],this.newObserving=[],this.dependenciesState=ie.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+u(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=le.NONE}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,Ue.pendingReactions.push(this),ot())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){if(!this.isDisposed){if($e(),this._isScheduled=!1,de(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending&&st()&&ct({name:this.name,type:"scheduled-reaction"})}catch(e){this.reportExceptionInDerivation(e)}}Je()}},e.prototype.track=function(e){$e();var t,n=st();n&&(t=Date.now(),ut({name:this.name,type:"reaction"})),this._isRunning=!0;var r=ye(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&be(this),pe(r)&&this.reportExceptionInDerivation(r.cause),n&&pt({time:Date.now()-t}),Je()},e.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)this.errorHandler(e,this);else{if(Ue.disableErrorBoundaries)throw e;var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";Ue.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(n,e),st()&&ct({type:"error",name:this.name,message:n,error:""+e}),Ue.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||($e(),be(this),Je()))},e.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e.$mobx=this,e},e.prototype.toString=function(){return"Reaction["+this.name+"]"},e.prototype.trace=function(e){void 0===e&&(e=!1),ln(this,e)},e}();function tt(e){return Ue.globalReactionErrorHandlers.push(e),function(){var t=Ue.globalReactionErrorHandlers.indexOf(e);t>=0&&Ue.globalReactionErrorHandlers.splice(t,1)}}var nt=100,rt=function(e){return e()};function ot(){Ue.inBatch>0||Ue.isRunningReactions||rt(at)}function at(){Ue.isRunningReactions=!0;for(var e=Ue.pendingReactions,t=0;e.length>0;){++t===nt&&(console.error("Reaction doesn't converge to a stable state after "+nt+" iterations. Probably there is a cycle in the reactive function: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,o=n.length;r<o;r++)n[r].runReaction()}Ue.isRunningReactions=!1}var it=g("Reaction",et);function lt(e){var t=rt;rt=function(n){return e((function(){return t(n)}))}}function st(){return!!Ue.spyListeners.length}function ct(e){if(Ue.spyListeners.length)for(var t=Ue.spyListeners,n=0,r=t.length;n<r;n++)t[n](e)}function ut(e){ct(B(B({},e),{spyReportStart:!0}))}var ft={spyReportEnd:!0};function pt(e){ct(e?B(B({},e),{spyReportEnd:!0}):ft)}function dt(e){return Ue.spyListeners.push(e),d((function(){Ue.spyListeners=Ue.spyListeners.filter((function(t){return t!==e}))}))}function mt(){f(!1)}function ht(e){return function(t,n,r){if(r){if(r.value)return{value:je(e,r.value),enumerable:!1,configurable:!0,writable:!0};var o=r.initializer;return{enumerable:!1,configurable:!0,writable:!0,initializer:function(){return je(e,o.call(this))}}}return function(e){return function(t,n,r){Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:function(){},set:function(t){b(this,n,yt(e,t))}})}}(e).apply(this,arguments)}}var yt=function(e,t,n,r){return 1===arguments.length&&"function"==typeof e?je(e.name||"<unnamed action>",e):2===arguments.length&&"function"==typeof t?je(e,t):1===arguments.length&&"string"==typeof e?ht(e):!0!==r?ht(t).apply(null,arguments):void(e[t]=je(e.name||t,n.value))};function bt(e,t){return Ce("string"==typeof e?e:e.name||"<unnamed action>","function"==typeof e?e:t,this,void 0)}function vt(e){return"function"==typeof e&&!0===e.isMobxAction}function gt(e,t,n){b(e,t,je(t,n.bind(e)))}function wt(e,t){void 0===t&&(t=l);var n,r=t&&t.name||e.name||"Autorun@"+u();if(!t.scheduler&&!t.delay)n=new et(r,(function(){this.track(i)}),t.onError,t.requiresObservable);else{var o=_t(t),a=!1;n=new et(r,(function(){a||(a=!0,o((function(){a=!1,n.isDisposed||n.track(i)})))}),t.onError,t.requiresObservable)}function i(){e(n)}return n.schedule(),n.getDisposer()}yt.bound=function(e,t,n,r){return!0===r?(gt(e,t,n.value),null):n?{configurable:!0,enumerable:!1,get:function(){return gt(this,t,n.value||n.initializer.call(this)),this[t]},set:mt}:{enumerable:!1,configurable:!0,set:function(e){gt(this,t,e)},get:function(){}}};var Et=function(e){return e()};function _t(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Et}function kt(e,t,n){void 0===n&&(n=l),"boolean"==typeof n&&(n={fireImmediately:n});var r,o,a,i=n.name||"Reaction@"+u(),s=yt(i,n.onError?(r=n.onError,o=t,function(){try{return o.apply(this,arguments)}catch(e){r.call(this,e)}}):t),c=!n.scheduler&&!n.delay,f=_t(n),p=!0,d=!1,m=n.compareStructural?R.structural:n.equals||R.default,h=new et(i,(function(){p||c?y():d||(d=!0,f(y))}),n.onError,n.requiresObservable);function y(){if(d=!1,!h.isDisposed){var t=!1;h.track((function(){var n=e(h);t=p||!m(a,n),a=n})),p&&n.fireImmediately&&s(a,h),p||!0!==t||s(a,h),p&&(p=!1)}}return h.schedule(),h.getDisposer()}function Ot(e,t,n){return St("onBecomeObserved",e,t,n)}function xt(e,t,n){return St("onBecomeUnobserved",e,t,n)}function St(e,t,n,r){var o="function"==typeof r?Gn(t,n):Gn(t),a="function"==typeof r?r:n,i=o[e];return"function"!=typeof i?f(!1):(o[e]=function(){i.call(this),a.call(this)},function(){o[e]=i})}function jt(e){var t=e.enforceActions,n=e.computedRequiresReaction,r=e.computedConfigurable,o=e.disableErrorBoundaries,a=e.arrayBuffer,i=e.reactionScheduler,l=e.reactionRequiresObservable,s=e.observableRequiresReaction;if(!0===e.isolateGlobalState&&((Ue.pendingReactions.length||Ue.inBatch||Ue.isRunningReactions)&&f("isolateGlobalState should be called before MobX is running any reactions"),He=!0,Ie&&(0==--c().__mobxInstanceCount&&(c().__mobxGlobals=void 0),Ue=new Ye)),void 0!==t){var u=void 0;switch(t){case!0:case"observed":u=!0;break;case!1:case"never":u=!1;break;case"strict":case"always":u="strict";break;default:f("Invalid value for 'enforceActions': '"+t+"', expected 'never', 'always' or 'observed'")}Ue.enforceActions=u,Ue.allowStateChanges=!0!==u&&"strict"!==u}void 0!==n&&(Ue.computedRequiresReaction=!!n),void 0!==l&&(Ue.reactionRequiresObservable=!!l),void 0!==s&&(Ue.observableRequiresReaction=!!s,Ue.allowStateReads=!Ue.observableRequiresReaction),void 0!==r&&(Ue.computedConfigurable=!!r),void 0!==o&&(!0===o&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors if this is on."),Ue.disableErrorBoundaries=!!o),"number"==typeof a&&Dn(a),i&&lt(i)}function Ct(e,t){var n="function"==typeof e?e.prototype:e,r=function(e){var r=t[e];Array.isArray(r)||(r=[r]);var o=Object.getOwnPropertyDescriptor(n,e),a=r.reduce((function(t,r){return r(n,e,t)}),o);a&&Object.defineProperty(n,e,a)};for(var o in t)r(o);return e}function Dt(e,t,n){return Nt(e,t,n,J)}function Nt(e,t,n,r){var o=(r=X(r)).defaultDecorator||(!1===r.deep?te:Z);W(e),Yn(e,r.name,o.enhancer),$e();try{for(var a=Object.getOwnPropertyNames(t),i=0,l=a.length;i<l;i++){var s=a[i],c=Object.getOwnPropertyDescriptor(t,s);0;var u=(n&&s in n?n[s]:c.get?se:o)(e,s,c,!0);u&&Object.defineProperty(e,s,u)}}finally{Je()}return e}function Pt(e,t){return Tt(Gn(e,t))}function Tt(e){var t,n,r={name:e.name};return e.observing&&e.observing.length>0&&(r.dependencies=(t=e.observing,n=[],t.forEach((function(e){-1===n.indexOf(e)&&n.push(e)})),n).map(Tt)),r}function Mt(e,t){return At(Gn(e,t))}function At(e){var t={name:e.name};return function(e){return e.observers&&e.observers.length>0}(e)&&(t.observers=function(e){return e.observers}(e).map(At)),t}var Lt=0;function Rt(){this.message="FLOW_CANCELLED"}function Ft(e){return e instanceof Rt}function zt(e){1!==arguments.length&&f("Flow expects one 1 argument and cannot be used as decorator");var t=e.name||"<unnamed flow>";return function(){var n,r=arguments,o=++Lt,a=yt(t+" - runid: "+o+" - init",e).apply(this,r),i=void 0,l=new Promise((function(e,r){var l=0;function s(e){var n;i=void 0;try{n=yt(t+" - runid: "+o+" - yield "+l++,a.next).call(a,e)}catch(e){return r(e)}u(n)}function c(e){var n;i=void 0;try{n=yt(t+" - runid: "+o+" - yield "+l++,a.throw).call(a,e)}catch(e){return r(e)}u(n)}function u(t){if(!t||"function"!=typeof t.then)return t.done?e(t.value):(i=Promise.resolve(t.value)).then(s,c);t.then(u,r)}n=r,s(void 0)}));return l.cancel=yt(t+" - runid: "+o+" - cancel",(function(){try{i&&Bt(i);var e=a.return(void 0),t=Promise.resolve(e.value);t.then(m,m),Bt(t),n(new Rt)}catch(e){n(e)}})),l}}function Bt(e){"function"==typeof e.cancel&&e.cancel()}function Yt(e,t,n){var r;if(Ln(e)||Pn(e)||Re(e))r=Kn(e);else{if(!qn(e))return f(!1);if("string"!=typeof t)return f(!1);r=Kn(e,t)}return void 0!==r.dehancer?f(!1):(r.dehancer="function"==typeof t?t:n,function(){r.dehancer=void 0})}function It(e,t,n){return"function"==typeof n?function(e,t,n){return Kn(e,t).intercept(n)}(e,t,n):function(e,t){return Kn(e).intercept(t)}(e,t)}function Ht(e,t){if(null==e)return!1;if(void 0!==t){if(!1===qn(e))return!1;if(!e.$mobx.values[t])return!1;var n=Gn(e,t);return ze(n)}return ze(e)}function Ut(e){return arguments.length>1?f(!1):Ht(e)}function Wt(e,t){return"string"!=typeof t?f(!1):Ht(e,t)}function Vt(e,t){if(null==e)return!1;if(void 0!==t){if(qn(e)){var n=e.$mobx;return n.values&&!!n.values[t]}return!1}return qn(e)||!!e.$mobx||M(e)||it(e)||ze(e)}function qt(e){return 1!==arguments.length&&f(!1),Vt(e)}function Gt(e,t){return"string"!=typeof t?f(!1):Vt(e,t)}function Kt(e){return qn(e)?e.$mobx.getKeys():Ln(e)||zn(e)?k(e.keys()):Pn(e)?e.map((function(e,t){return t})):f(!1)}function $t(e){return qn(e)?Kt(e).map((function(t){return e[t]})):Ln(e)?Kt(e).map((function(t){return e.get(t)})):zn(e)?k(e.values()):Pn(e)?e.slice():f(!1)}function Jt(e){return qn(e)?Kt(e).map((function(t){return[t,e[t]]})):Ln(e)?Kt(e).map((function(t){return[t,e.get(t)]})):zn(e)?k(e.entries()):Pn(e)?e.map((function(e,t){return[t,e]})):f(!1)}function Xt(e,t,n){if(2!==arguments.length||zn(e))if(qn(e)){var r=e.$mobx;r.values[t]?r.write(e,t,n):In(e,t,n,r.defaultEnhancer)}else if(Ln(e))e.set(t,n);else if(zn(e))e.add(t);else{if(!Pn(e))return f(!1);"number"!=typeof t&&(t=parseInt(t,10)),p(t>=0,"Not a valid index: '"+t+"'"),$e(),t>=e.length&&(e.length=t+1),e[t]=n,Je()}else{$e();var o=t;try{for(var a in o)Xt(e,a,o[a])}finally{Je()}}}function Qt(e,t){if(qn(e))e.$mobx.remove(t);else if(Ln(e))e.delete(t);else if(zn(e))e.delete(t);else{if(!Pn(e))return f(!1);"number"!=typeof t&&(t=parseInt(t,10)),p(t>=0,"Not a valid index: '"+t+"'"),e.splice(t,1)}}function Zt(e,t){if(qn(e)){var n=Kn(e);return n.getKeys(),!!n.values[t]}return Ln(e)||zn(e)?e.has(t):Pn(e)?t>=0&&t<e.length:f(!1)}function en(e,t){if(Zt(e,t))return qn(e)?e[t]:Ln(e)?e.get(t):Pn(e)?e[t]:f(!1)}function tn(e,t,n,r){return"function"==typeof n?function(e,t,n,r){return Kn(e,t).observe(n,r)}(e,t,n,r):function(e,t,n){return Kn(e).observe(t,n)}(e,t,n)}Rt.prototype=Object.create(Error.prototype);var nn={detectCycles:!0,exportMapsAsObjects:!0,recurseEverything:!1};function rn(e,t,n,r){return r.detectCycles&&e.set(t,n),n}function on(e,t,n){if(!t.recurseEverything&&!qt(e))return e;if("object"!==o(e))return e;if(null===e)return null;if(e instanceof Date)return e;if(Re(e))return on(e.get(),t,n);if(qt(e)&&Kt(e),!0===t.detectCycles&&null!==e&&n.has(e))return n.get(e);if(Pn(e)||Array.isArray(e)){var r=rn(n,e,[],t),a=e.map((function(e){return on(e,t,n)}));r.length=a.length;for(var i=0,l=a.length;i<l;i++)r[i]=a[i];return r}if(zn(e)||Object.getPrototypeOf(e)===Set.prototype){if(!1===t.exportMapsAsObjects){var s=rn(n,e,new Set,t);return e.forEach((function(e){s.add(on(e,t,n))})),s}var c=rn(n,e,[],t);return e.forEach((function(e){c.push(on(e,t,n))})),c}if(Ln(e)||Object.getPrototypeOf(e)===Map.prototype){if(!1===t.exportMapsAsObjects){var u=rn(n,e,new Map,t);return e.forEach((function(e,r){u.set(r,on(e,t,n))})),u}var f=rn(n,e,{},t);return e.forEach((function(e,r){f[r]=on(e,t,n)})),f}var p=rn(n,e,{},t);for(var d in e)p[d]=on(e[d],t,n);return p}function an(e,t){var n;return"boolean"==typeof t&&(t={detectCycles:t}),t||(t=nn),t.detectCycles=void 0===t.detectCycles?!0===t.recurseEverything:!0===t.detectCycles,t.detectCycles&&(n=new Map),on(e,t,n)}function ln(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=!1;"boolean"==typeof e[e.length-1]&&(n=e.pop());var r=function(e){switch(e.length){case 0:return Ue.trackingDerivation;case 1:return Gn(e[0]);case 2:return Gn(e[0],e[1])}}(e);if(!r)return f(!1);r.isTracing===le.NONE&&console.log("[mobx.trace] '"+r.name+"' tracing enabled"),r.isTracing=n?le.BREAK:le.LOG}function sn(e,t){void 0===t&&(t=void 0),$e();try{return e.apply(t)}finally{Je()}}function cn(e,t,n){return 1===arguments.length||t&&"object"===o(t)?function(e,t){0;var n,r=new Promise((function(r,o){var a=un(e,r,B(B({},t),{onError:o}));n=function(){a(),o("WHEN_CANCELLED")}}));return r.cancel=n,r}(e,t):un(e,t,n||{})}function un(e,t,n){var r;"number"==typeof n.timeout&&(r=setTimeout((function(){if(!a.$mobx.isDisposed){a();var e=new Error("WHEN_TIMEOUT");if(!n.onError)throw e;n.onError(e)}}),n.timeout)),n.name=n.name||"When@"+u();var o=je(n.name+"-effect",t),a=wt((function(t){e()&&(t.dispose(),r&&clearTimeout(r),o())}),n);return a}function fn(e){return void 0!==e.interceptors&&e.interceptors.length>0}function pn(e,t){var n=e.interceptors||(e.interceptors=[]);return n.push(t),d((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function dn(e,t){var n=ge();try{var r=e.interceptors;if(r)for(var o=0,a=r.length;o<a&&(p(!(t=r[o](t))||t.type,"Intercept handlers should return nothing or a change object"),t);o++);return t}finally{we(n)}}function mn(e){return void 0!==e.changeListeners&&e.changeListeners.length>0}function hn(e,t){var n=e.changeListeners||(e.changeListeners=[]);return n.push(t),d((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function yn(e,t){var n=ge(),r=e.changeListeners;if(r){for(var o=0,a=(r=r.slice()).length;o<a;o++)r[o](t);we(n)}}var bn,vn,gn,wn,En=(bn=!1,vn={},Object.defineProperty(vn,"0",{set:function(){bn=!0}}),Object.create(vn)[0]=1,!1===bn),_n=0,kn=function(){};gn=kn,wn=Array.prototype,void 0!==Object.setPrototypeOf?Object.setPrototypeOf(gn.prototype,wn):void 0!==gn.prototype.__proto__?gn.prototype.__proto__=wn:gn.prototype=wn,Object.isFrozen(Array)&&["constructor","push","shift","concat","pop","unshift","replace","find","findIndex","splice","reverse","sort"].forEach((function(e){Object.defineProperty(kn.prototype,e,{configurable:!0,writable:!0,value:Array.prototype[e]})}));var On=function(){function e(e,t,n,r){this.array=n,this.owned=r,this.values=[],this.lastKnownLength=0,this.atom=new T(e||"ObservableArray@"+u()),this.enhancer=function(n,r){return t(n,r,e+"[..]")}}return e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.dehanceValues=function(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e},e.prototype.intercept=function(e){return pn(this,e)},e.prototype.observe=function(e,t){return void 0===t&&(t=!1),t&&e({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),hn(this,e)},e.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},e.prototype.setArrayLength=function(e){if("number"!=typeof e||e<0)throw new Error("[mobx.array] Out of range: "+e);var t=this.values.length;if(e!==t)if(e>t){for(var n=new Array(e-t),r=0;r<e-t;r++)n[r]=void 0;this.spliceWithArray(t,0,n)}else this.spliceWithArray(e,t-e)},e.prototype.updateArrayLength=function(e,t){if(e!==this.lastKnownLength)throw new Error("[mobx] Modification exception: the internal structure of an observable array was changed. Did you use peek() to change it?");this.lastKnownLength+=t,t>0&&e+t+1>_n&&Dn(e+t+1)},e.prototype.spliceWithArray=function(e,t,n){var r=this;he(this.atom);var o=this.values.length;if(void 0===e?e=0:e>o?e=o:e<0&&(e=Math.max(0,o+e)),t=1===arguments.length?o-e:null==t?0:Math.max(0,Math.min(t,o-e)),void 0===n&&(n=i),fn(this)){var a=dn(this,{object:this.array,type:"splice",index:e,removedCount:t,added:n});if(!a)return i;t=a.removedCount,n=a.added}n=0===n.length?n:n.map((function(e){return r.enhancer(e,void 0)}));var l=n.length-t;this.updateArrayLength(o,l);var s=this.spliceItemsIntoValues(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice(e,n,s),this.dehanceValues(s)},e.prototype.spliceItemsIntoValues=function(e,t,n){var r;if(n.length<1e4)return(r=this.values).splice.apply(r,I([e,t],n));var o=this.values.slice(e,e+t);return this.values=this.values.slice(0,e).concat(n,this.values.slice(e+t)),o},e.prototype.notifyArrayChildUpdate=function(e,t,n){var r=!this.owned&&st(),o=mn(this),a=o||r?{object:this.array,type:"update",index:e,newValue:t,oldValue:n}:null;r&&ut(B(B({},a),{name:this.atom.name})),this.atom.reportChanged(),o&&yn(this,a),r&&pt()},e.prototype.notifyArraySplice=function(e,t,n){var r=!this.owned&&st(),o=mn(this),a=o||r?{object:this.array,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;r&&ut(B(B({},a),{name:this.atom.name})),this.atom.reportChanged(),o&&yn(this,a),r&&pt()},e}(),xn=function(e){function t(t,n,r,o){void 0===r&&(r="ObservableArray@"+u()),void 0===o&&(o=!1);var a=e.call(this)||this,i=new On(r,n,a,o);if(v(a,"$mobx",i),t&&t.length){var l=Te(!0);a.spliceWithArray(0,0,t),Me(l)}return En&&Object.defineProperty(i.array,"0",Sn),a}return z(t,e),t.prototype.intercept=function(e){return this.$mobx.intercept(e)},t.prototype.observe=function(e,t){return void 0===t&&(t=!1),this.$mobx.observe(e,t)},t.prototype.clear=function(){return this.splice(0)},t.prototype.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.$mobx.atom.reportObserved(),Array.prototype.concat.apply(this.peek(),e.map((function(e){return Pn(e)?e.peek():e})))},t.prototype.replace=function(e){return this.$mobx.spliceWithArray(0,this.$mobx.values.length,e)},t.prototype.toJS=function(){return this.slice()},t.prototype.toJSON=function(){return this.toJS()},t.prototype.peek=function(){return this.$mobx.atom.reportObserved(),this.$mobx.dehanceValues(this.$mobx.values)},t.prototype.find=function(e,t,n){void 0===n&&(n=0);var r=this.findIndex.apply(this,arguments);return-1===r?void 0:this.get(r)},t.prototype.findIndex=function(e,t,n){void 0===n&&(n=0);for(var r=this.peek(),o=r.length,a=n;a<o;a++)if(e.call(t,r[a],a,this))return a;return-1},t.prototype.splice=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];switch(arguments.length){case 0:return[];case 1:return this.$mobx.spliceWithArray(e);case 2:return this.$mobx.spliceWithArray(e,t)}return this.$mobx.spliceWithArray(e,t,n)},t.prototype.spliceWithArray=function(e,t,n){return this.$mobx.spliceWithArray(e,t,n)},t.prototype.push=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.$mobx;return n.spliceWithArray(n.values.length,0,e),n.values.length},t.prototype.pop=function(){return this.splice(Math.max(this.$mobx.values.length-1,0),1)[0]},t.prototype.shift=function(){return this.splice(0,1)[0]},t.prototype.unshift=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.$mobx;return n.spliceWithArray(0,0,e),n.values.length},t.prototype.reverse=function(){var e=this.slice();return e.reverse.apply(e,arguments)},t.prototype.sort=function(e){var t=this.slice();return t.sort.apply(t,arguments)},t.prototype.remove=function(e){var t=this.$mobx.dehanceValues(this.$mobx.values).indexOf(e);return t>-1&&(this.splice(t,1),!0)},t.prototype.move=function(e,t){function n(e){if(e<0)throw new Error("[mobx.array] Index out of bounds: "+e+" is negative");var t=this.$mobx.values.length;if(e>=t)throw new Error("[mobx.array] Index out of bounds: "+e+" is not smaller than "+t)}if(n.call(this,e),n.call(this,t),e!==t){var r,o=this.$mobx.values;r=e<t?I(o.slice(0,e),o.slice(e+1,t+1),[o[e]],o.slice(t+1)):I(o.slice(0,t),[o[e]],o.slice(t,e),o.slice(e+1)),this.replace(r)}},t.prototype.get=function(e){var t=this.$mobx;if(t){if(e<t.values.length)return t.atom.reportObserved(),t.dehanceValue(t.values[e]);console.warn("[mobx.array] Attempt to read an array index ("+e+") that is out of bounds ("+t.values.length+"). Please check length first. Out of bound indices will not be tracked by MobX")}},t.prototype.set=function(e,t){var n=this.$mobx,r=n.values;if(e<r.length){he(n.atom);var o=r[e];if(fn(n)){var a=dn(n,{type:"update",object:this,index:e,newValue:t});if(!a)return;t=a.newValue}(t=n.enhancer(t,o))!==o&&(r[e]=t,n.notifyArrayChildUpdate(e,t,o))}else{if(e!==r.length)throw new Error("[mobx.array] Index out of bounds, "+e+" is larger than "+r.length);n.spliceWithArray(e,0,[t])}},t}(kn);C(xn.prototype,(function(){this.$mobx.atom.reportObserved();var e=this,t=0;return D({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})})),Object.defineProperty(xn.prototype,"length",{enumerable:!1,configurable:!0,get:function(){return this.$mobx.getArrayLength()},set:function(e){this.$mobx.setArrayLength(e)}}),b(xn.prototype,N(),"Array"),["indexOf","join","lastIndexOf","slice","toString","toLocaleString"].forEach((function(e){var t=Array.prototype[e];p("function"==typeof t,"Base function not defined on Array prototype: '"+e+"'"),b(xn.prototype,e,(function(){return t.apply(this.peek(),arguments)}))})),["every","filter","forEach","map","some"].forEach((function(e){p("function"==typeof Array.prototype[e],"Base function not defined on Array prototype: '"+e+"'"),b(xn.prototype,e,(function(t,n){var r=this,o=this.$mobx;return o.atom.reportObserved(),o.values[e]((function(e,a){return e=o.dehanceValue(e),t.call(n,e,a,r)}),n)}))})),["reduce","reduceRight"].forEach((function(e){b(xn.prototype,e,(function(t,n){var r=this,o=this.$mobx;return o.atom.reportObserved(),o.values[e]((function(e,n,a){return n=o.dehanceValue(n),t(e,n,a,r)}),n)}))})),function(e,t){for(var n=0;n<t.length;n++)b(e,t[n],e[t[n]])}(xn.prototype,["constructor","intercept","observe","clear","concat","get","replace","toJS","toJSON","peek","find","findIndex","splice","spliceWithArray","push","pop","set","shift","unshift","reverse","sort","remove","move","toString","toLocaleString"]);var Sn=jn(0);function jn(e){return{enumerable:!1,configurable:!1,get:function(){return this.get(e)},set:function(t){this.set(e,t)}}}function Cn(e){Object.defineProperty(xn.prototype,""+e,jn(e))}function Dn(e){for(var t=_n;t<e;t++)Cn(t);_n=e}Dn(1e3);var Nn=g("ObservableArrayAdministration",On);function Pn(e){return h(e)&&Nn(e.$mobx)}var Tn={},Mn=function(){function e(e,t,n){if(void 0===t&&(t=q),void 0===n&&(n="ObservableMap@"+u()),this.enhancer=t,this.name=n,this.$mobx=Tn,this._keysAtom=A(this.name+".keys()"),"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(e)}return e.prototype._has=function(e){return this._data.has(e)},e.prototype.has=function(e){var t=this;if(!Ue.trackingDerivation)return this._has(e);var n=this._hasMap.get(e);if(!n){var r=n=new Le(this._has(e),G,this.name+"."+An(e)+"?",!1);this._hasMap.set(e,r),xt(r,(function(){return t._hasMap.delete(e)}))}return n.get()},e.prototype.set=function(e,t){var n=this._has(e);if(fn(this)){var r=dn(this,{type:n?"update":"add",object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this._updateValue(e,t):this._addValue(e,t),this},e.prototype.delete=function(e){var t=this;if((he(this._keysAtom),fn(this))&&!(o=dn(this,{type:"delete",object:this,name:e})))return!1;if(this._has(e)){var n=st(),r=mn(this),o=r||n?{type:"delete",object:this,oldValue:this._data.get(e).value,name:e}:null;return n&&ut(B(B({},o),{name:this.name,key:e})),sn((function(){t._keysAtom.reportChanged(),t._updateHasMapEntry(e,!1),t._data.get(e).setNewValue(void 0),t._data.delete(e)})),r&&yn(this,o),n&&pt(),!0}return!1},e.prototype._updateHasMapEntry=function(e,t){var n=this._hasMap.get(e);n&&n.setNewValue(t)},e.prototype._updateValue=function(e,t){var n=this._data.get(e);if((t=n.prepareNewValue(t))!==Ue.UNCHANGED){var r=st(),o=mn(this),a=o||r?{type:"update",object:this,oldValue:n.value,name:e,newValue:t}:null;r&&ut(B(B({},a),{name:this.name,key:e})),n.setNewValue(t),o&&yn(this,a),r&&pt()}},e.prototype._addValue=function(e,t){var n=this;he(this._keysAtom),sn((function(){var r=new Le(t,n.enhancer,n.name+"."+An(e),!1);n._data.set(e,r),t=r.value,n._updateHasMapEntry(e,!0),n._keysAtom.reportChanged()}));var r=st(),o=mn(this),a=o||r?{type:"add",object:this,name:e,newValue:t}:null;r&&ut(B(B({},a),{name:this.name,key:e})),o&&yn(this,a),r&&pt()},e.prototype.get=function(e){return this.has(e)?this.dehanceValue(this._data.get(e).get()):this.dehanceValue(void 0)},e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.keys=function(){return this._keysAtom.reportObserved(),this._data.keys()},e.prototype.values=function(){var e=this,t=this.keys();return D({next:function(){var n=t.next(),r=n.done,o=n.value;return{done:r,value:r?void 0:e.get(o)}}})},e.prototype.entries=function(){var e=this,t=this.keys();return D({next:function(){var n=t.next(),r=n.done,o=n.value;return{done:r,value:r?void 0:[o,e.get(o)]}}})},e.prototype.forEach=function(e,t){var n=this;this._keysAtom.reportObserved(),this._data.forEach((function(r,o){return e.call(t,n.get(o),o,n)}))},e.prototype.merge=function(e){var t=this;return Ln(e)&&(e=e.toJS()),sn((function(){y(e)?Object.keys(e).forEach((function(n){return t.set(n,e[n])})):Array.isArray(e)?e.forEach((function(e){var n=Y(e,2),r=n[0],o=n[1];return t.set(r,o)})):E(e)?e.constructor!==Map?f("Cannot initialize from classes that inherit from Map: "+e.constructor.name):e.forEach((function(e,n){return t.set(n,e)})):null!=e&&f("Cannot initialize map from "+e)})),this},e.prototype.clear=function(){var e=this;sn((function(){ve((function(){e._data.forEach((function(t,n){return e.delete(n)}))}))}))},e.prototype.replace=function(e){var t=this;return sn((function(){var n=function(e){if(E(e)||Ln(e))return e;if(Array.isArray(e))return new Map(e);if(y(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return f("Cannot convert to map from '"+e+"'")}(e),r=new Map,o=!1;if(S(t._data.keys(),(function(e){if(!n.has(e))if(t.delete(e))o=!0;else{var a=t._data.get(e);r.set(e,a)}})),S(n.entries(),(function(e){var n=Y(e,2),a=n[0],i=n[1],l=t._data.has(a);if(t.set(a,i),t._data.has(a)){var s=t._data.get(a);r.set(a,s),l||(o=!0)}})),!o)if(t._data.size!==r.size)t._keysAtom.reportChanged();else for(var a=t._data.keys(),i=r.keys(),l=a.next(),s=i.next();!l.done;){if(l.value!==s.value){t._keysAtom.reportChanged();break}l=a.next(),s=i.next()}t._data=r})),this},Object.defineProperty(e.prototype,"size",{get:function(){return this._keysAtom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),e.prototype.toPOJO=function(){var e=this,t={};return this.forEach((function(n,r){return t["symbol"===o(r)?r:An(r)]=e.get(r)})),t},e.prototype.toJS=function(){return new Map(this)},e.prototype.toJSON=function(){return this.toPOJO()},e.prototype.toString=function(){var e=this;return this.name+"[{ "+k(this.keys()).map((function(t){return An(t)+": "+e.get(t)})).join(", ")+" }]"},e.prototype.observe=function(e,t){return hn(this,e)},e.prototype.intercept=function(e){return pn(this,e)},e}();function An(e){return e&&e.toString?e.toString():new String(e).toString()}C(Mn.prototype,(function(){return this.entries()})),v(Mn.prototype,N(),"Map");var Ln=g("ObservableMap",Mn),Rn={},Fn=function(){function e(e,t,n){if(void 0===t&&(t=q),void 0===n&&(n="ObservableSet@"+u()),this.name=n,this.$mobx=Rn,this._data=new Set,this._atom=A(this.name),"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(e,r){return t(e,r,n)},e&&this.replace(e)}return e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.clear=function(){var e=this;sn((function(){ve((function(){e._data.forEach((function(t){e.delete(t)}))}))}))},e.prototype.forEach=function(e,t){var n=this;this._atom.reportObserved(),this._data.forEach((function(r){e.call(t,r,r,n)}))},Object.defineProperty(e.prototype,"size",{get:function(){return this._atom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),e.prototype.add=function(e){var t=this;if((he(this._atom),fn(this))&&!(o=dn(this,{type:"add",object:this,newValue:e})))return this;if(!this.has(e)){sn((function(){t._data.add(t.enhancer(e,void 0)),t._atom.reportChanged()}));var n=st(),r=mn(this),o=r||n?{type:"add",object:this,newValue:e}:null;0,r&&yn(this,o)}return this},e.prototype.delete=function(e){var t=this;if(fn(this)&&!(o=dn(this,{type:"delete",object:this,oldValue:e})))return!1;if(this.has(e)){var n=st(),r=mn(this),o=r||n?{type:"delete",object:this,oldValue:e}:null;return sn((function(){t._atom.reportChanged(),t._data.delete(e)})),r&&yn(this,o),!0}return!1},e.prototype.has=function(e){return this._atom.reportObserved(),this._data.has(this.dehanceValue(e))},e.prototype.entries=function(){var e=0,t=k(this.keys()),n=k(this.values());return D({next:function(){var r=e;return e+=1,r<n.length?{value:[t[r],n[r]],done:!1}:{done:!0}}})},e.prototype.keys=function(){return this.values()},e.prototype.values=function(){this._atom.reportObserved();var e,t=this,n=0;return void 0!==this._data.values?e=k(this._data.values()):(e=[],this._data.forEach((function(t){return e.push(t)}))),D({next:function(){return n<e.length?{value:t.dehanceValue(e[n++]),done:!1}:{done:!0}}})},e.prototype.replace=function(e){var t=this;return zn(e)&&(e=e.toJS()),sn((function(){Array.isArray(e)||_(e)?(t.clear(),e.forEach((function(e){return t.add(e)}))):null!=e&&f("Cannot initialize set from "+e)})),this},e.prototype.observe=function(e,t){return hn(this,e)},e.prototype.intercept=function(e){return pn(this,e)},e.prototype.toJS=function(){return new Set(this)},e.prototype.toString=function(){return this.name+"[ "+k(this.keys()).join(", ")+" ]"},e}();C(Fn.prototype,(function(){return this.values()})),v(Fn.prototype,N(),"Set");var zn=g("ObservableSet",Fn),Bn=function(){function e(e,t,n){this.target=e,this.name=t,this.defaultEnhancer=n,this.values={}}return e.prototype.read=function(e,t){if(this.target===e||(this.illegalAccess(e,t),this.values[t]))return this.values[t].get()},e.prototype.write=function(e,t,n){var r=this.target;r!==e&&this.illegalAccess(e,t);var o=this.values[t];if(o instanceof Fe)o.set(n);else{if(fn(this)){if(!(l=dn(this,{type:"update",object:r,name:t,newValue:n})))return;n=l.newValue}if((n=o.prepareNewValue(n))!==Ue.UNCHANGED){var a=mn(this),i=st(),l=a||i?{type:"update",object:r,oldValue:o.value,name:t,newValue:n}:null;i&&ut(B(B({},l),{name:this.name,key:t})),o.setNewValue(n),a&&yn(this,l),i&&pt()}}},e.prototype.remove=function(e){if(this.values[e]){var t=this.target;if(fn(this))if(!(a=dn(this,{object:t,name:e,type:"remove"})))return;try{$e();var n=mn(this),r=st(),o=this.values[e].get();this.keys&&this.keys.remove(e),delete this.values[e],delete this.target[e];var a=n||r?{type:"remove",object:t,oldValue:o,name:e}:null;r&&ut(B(B({},a),{name:this.name,key:e})),n&&yn(this,a),r&&pt()}finally{Je()}}},e.prototype.illegalAccess=function(e,t){console.warn("Property '"+t+"' of '"+e+"' was accessed through the prototype chain. Use 'decorate' instead to declare the prop or access it statically through it's owner")},e.prototype.observe=function(e,t){return hn(this,e)},e.prototype.intercept=function(e){return pn(this,e)},e.prototype.getKeys=function(){var e=this;return void 0===this.keys&&(this.keys=new xn(Object.keys(this.values).filter((function(t){return e.values[t]instanceof Le})),G,"keys("+this.name+")",!0)),this.keys.slice()},e}();function Yn(e,t,n){void 0===t&&(t=""),void 0===n&&(n=q);var r=e.$mobx;return r||(y(e)||(t=(e.constructor.name||"ObservableObject")+"@"+u()),t||(t="ObservableObject@"+u()),v(e,"$mobx",r=new Bn(e,t,n)),r)}function In(e,t,n,r){var o=Yn(e);if(fn(o)){var a=dn(o,{object:e,name:t,type:"add",newValue:n});if(!a)return;n=a.newValue}n=(o.values[t]=new Le(n,r,o.name+"."+t,!1)).value,Object.defineProperty(e,t,function(e){return Hn[e]||(Hn[e]={configurable:!0,enumerable:!0,get:function(){return this.$mobx.read(this,e)},set:function(t){this.$mobx.write(this,e,t)}})}(t)),o.keys&&o.keys.push(t),function(e,t,n,r){var o=mn(e),a=st(),i=o||a?{type:"add",object:t,name:n,newValue:r}:null;a&&ut(B(B({},i),{name:e.name,key:n}));o&&yn(e,i);a&&pt()}(o,e,t,n)}var Hn=Object.create(null),Un=Object.create(null);function Wn(e){var t=e.$mobx;return t||(W(e),e.$mobx)}var Vn=g("ObservableObjectAdministration",Bn);function qn(e){return!!h(e)&&(W(e),Vn(e.$mobx))}function Gn(e,t){if("object"===o(e)&&null!==e){if(Pn(e))return void 0!==t&&f(!1),e.$mobx.atom;if(zn(e))return e.$mobx;if(Ln(e)){var n=e;return void 0===t?n._keysAtom:((r=n._data.get(t)||n._hasMap.get(t))||f(!1),r)}var r;if(W(e),t&&!e.$mobx&&e[t],qn(e))return t?((r=e.$mobx.values[t])||f(!1),r):f(!1);if(M(e)||ze(e)||it(e))return e}else if("function"==typeof e&&it(e.$mobx))return e.$mobx;return f(!1)}function Kn(e,t){return e||f("Expecting some object"),void 0!==t?Kn(Gn(e,t)):M(e)||ze(e)||it(e)||Ln(e)||zn(e)?e:(W(e),e.$mobx?e.$mobx:void f(!1))}function $n(e,t){return(void 0!==t?Gn(e,t):qn(e)||Ln(e)||zn(e)?Kn(e):Gn(e)).name}var Jn=Object.prototype.toString;function Xn(e,t,n){return void 0===n&&(n=-1),Qn(e,t,n)}function Qn(e,t,n,r,a){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=o(e);if("function"!==i&&"object"!==i&&"object"!=o(t))return!1;e=Zn(e),t=Zn(t);var l=Jn.call(e);if(l!==Jn.call(t))return!1;switch(l){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t)}var s="[object Array]"===l;if(!s){if("object"!=o(e)||"object"!=o(t))return!1;var c=e.constructor,u=t.constructor;if(c!==u&&!("function"==typeof c&&c instanceof c&&"function"==typeof u&&u instanceof u)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),a=a||[];for(var f=(r=r||[]).length;f--;)if(r[f]===e)return a[f]===t;if(r.push(e),a.push(t),s){if((f=e.length)!==t.length)return!1;for(;f--;)if(!Qn(e[f],t[f],n-1,r,a))return!1}else{var p=Object.keys(e),d=void 0;if(f=p.length,Object.keys(t).length!==f)return!1;for(;f--;)if(!er(t,d=p[f])||!Qn(e[d],t[d],n-1,r,a))return!1}return r.pop(),a.pop(),!0}function Zn(e){return Pn(e)?e.peek():E(e)||Ln(e)||_(e)||zn(e)?k(e.entries()):e}function er(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var tr="$mobx";"object"===("undefined"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__?"undefined":o(__MOBX_DEVTOOLS_GLOBAL_HOOK__))&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:dt,extras:{getDebugName:$n},$mobx:tr})}.call(this,n(67),n(103))},function(e,t,n){var r=n(6),o=n(25).f,a=n(31),i=n(26),l=n(105),s=n(140),c=n(74);e.exports=function(e,t){var n,u,f,p,d,m=e.target,h=e.global,y=e.stat;if(n=h?r:y?r[m]||l(m,{}):(r[m]||{}).prototype)for(u in t){if(p=t[u],f=e.noTargetGet?(d=o(n,u))&&d.value:n[u],!c(h?u:m+(y?".":"#")+u,e.forced)&&void 0!==f){if(typeof p==typeof f)continue;s(p,f)}(e.sham||f&&f.sham)&&a(p,"sham",!0),i(n,u,p,e)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return F})),n.d(t,"b",(function(){return B})),n.d(t,"c",(function(){return A}));var r=n(1),o=n(0),a=n.n(o),i=n(23);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}var s=0;var c={};function u(e){return c[e]||(c[e]=function(e){if("function"==typeof Symbol)return Symbol(e);var t="__$mobx-react "+e+" ("+s+")";return s++,t}(e)),c[e]}function f(e,t){if(p(e,t))return!0;if("object"!==l(e)||null===e||"object"!==l(t)||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.hasOwnProperty.call(t,n[o])||!p(e[n[o]],t[n[o]]))return!1;return!0}function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}var d={$$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 m(e,t,n){Object.hasOwnProperty.call(e,t)?e[t]=n:Object.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:n})}var h=u("patchMixins"),y=u("patchedDefinition");function b(e,t){for(var n=this,r=arguments.length,o=new Array(r>2?r-2:0),a=2;a<r;a++)o[a-2]=arguments[a];t.locks++;try{var i;return null!=e&&(i=e.apply(this,o)),i}finally{t.locks--,0===t.locks&&t.methods.forEach((function(e){e.apply(n,o)}))}}function v(e,t){return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];b.call.apply(b,[this,e,t].concat(r))}}function g(e,t,n){var r=function(e,t){var n=e[h]=e[h]||{},r=n[t]=n[t]||{};return r.locks=r.locks||0,r.methods=r.methods||[],r}(e,t);r.methods.indexOf(n)<0&&r.methods.push(n);var o=Object.getOwnPropertyDescriptor(e,t);if(!o||!o[y]){var a=e[t],i=w(e,t,o?o.enumerable:void 0,r,a);Object.defineProperty(e,t,i)}}function w(e,t,n,r,o){var a,i=v(o,r);return(a={})[y]=!0,a.get=function(){return i},a.set=function(o){if(this===e)i=v(o,r);else{var a=w(this,t,n,r,o);Object.defineProperty(this,t,a)}},a.configurable=!0,a.enumerable=n,a}var E=r.$mobx||"$mobx",_=u("isMobXReactObserver"),k=u("isUnmounted"),O=u("skipRender"),x=u("isForcingUpdate");function S(e){var t=e.prototype;if(e[_]){var n=j(t);console.warn("The provided component class ("+n+") \n                has already been declared as an observer component.")}else e[_]=!0;if(t.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(e.__proto__!==o.PureComponent)if(t.shouldComponentUpdate){if(t.shouldComponentUpdate!==D)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else t.shouldComponentUpdate=D;N(t,"props"),N(t,"state");var r=t.render;return t.render=function(){return C.call(this,r)},g(t,"componentWillUnmount",(function(){var e;if(!0!==Object(i.b)()&&(null===(e=this.render[E])||void 0===e||e.dispose(),this[k]=!0,!this.render[E])){var t=j(this);console.warn("The reactive render of an observer class component ("+t+") \n                was overriden after MobX attached. This may result in a memory leak if the \n                overriden reactive render was not properly disposed.")}})),e}function j(e){return e.displayName||e.name||e.constructor&&(e.constructor.displayName||e.constructor.name)||"<component>"}function C(e){var t=this;if(!0===Object(i.b)())return e.call(this);m(this,O,!1),m(this,x,!1);var n=j(this),a=e.bind(this),l=!1,s=new r.Reaction(n+".render()",(function(){if(!l&&(l=!0,!0!==t[k])){var e=!0;try{m(t,x,!0),t[O]||o.Component.prototype.forceUpdate.call(t),e=!1}finally{m(t,x,!1),e&&s.dispose()}}}));function c(){l=!1;var e=void 0,t=void 0;if(s.track((function(){try{t=Object(r._allowStateChanges)(!1,a)}catch(t){e=t}})),e)throw e;return t}return s.reactComponent=this,c[E]=s,this.render=c,c.call(this)}function D(e,t){return Object(i.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!==t||!f(this.props,e)}function N(e,t){var n=u("reactProp_"+t+"_valueHolder"),o=u("reactProp_"+t+"_atomHolder");function a(){return this[o]||m(this,o,Object(r.createAtom)("reactive "+t)),this[o]}Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var e=!1;return r._allowStateReadsStart&&r._allowStateReadsEnd&&(e=Object(r._allowStateReadsStart)(!0)),a.call(this).reportObserved(),r._allowStateReadsStart&&r._allowStateReadsEnd&&Object(r._allowStateReadsEnd)(e),this[n]},set:function(e){this[x]||f(this[n],e)?m(this,n,e):(m(this,n,e),m(this,O,!0),a.call(this).reportChanged(),m(this,O,!1))}})}var P="function"==typeof Symbol&&Symbol.for,T=P?Symbol.for("react.forward_ref"):"function"==typeof o.forwardRef&&Object(o.forwardRef)((function(e){return null})).$$typeof,M=P?Symbol.for("react.memo"):"function"==typeof o.memo&&Object(o.memo)((function(e){return null})).$$typeof;function A(e){if(!0===e.isMobxInjector&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),M&&e.$$typeof===M)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(T&&e.$$typeof===T){var t=e.render;if("function"!=typeof t)throw new Error("render property of ForwardRef was not a function");return Object(o.forwardRef)((function(){var e=arguments;return Object(o.createElement)(i.a,null,(function(){return t.apply(void 0,e)}))}))}return"function"!=typeof e||e.prototype&&e.prototype.render||e.isReactClass||Object.prototype.isPrototypeOf.call(o.Component,e)?S(e):Object(i.c)(e)}function L(){return L=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},L.apply(this,arguments)}var R=a.a.createContext({});function F(e){var t=e.children,n=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["children"]),r=a.a.useContext(R),o=a.a.useRef(L({},r,{},n)).current;return a.a.createElement(R.Provider,{value:o},t)}function z(e,t,n,r){var o,i,l,s=a.a.forwardRef((function(n,r){var o=L({},n),i=a.a.useContext(R);return Object.assign(o,e(i||{},o)||{}),r&&(o.ref=r),a.a.createElement(t,o)}));return r&&(s=A(s)),s.isMobxInjector=!0,o=t,i=s,l=Object.getOwnPropertyNames(Object.getPrototypeOf(o)),Object.getOwnPropertyNames(o).forEach((function(e){d[e]||-1!==l.indexOf(e)||Object.defineProperty(i,e,Object.getOwnPropertyDescriptor(o,e))})),s.wrappedComponent=t,s.displayName=function(e,t){var n,r=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";n=t?"inject-with-"+t+"("+r+")":"inject("+r+")";return n}(t,n),s}function B(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if("function"==typeof arguments[0]){var r=arguments[0];return function(e){return z(r,e,r.name,!0)}}return function(e){return z(function(e){return function(t,n){return e.forEach((function(e){if(!(e in n)){if(!(e in t))throw new Error("MobX injector: Store '"+e+"' is not available! Make sure it is provided by some Provider");n[e]=t[e]}})),n}}(t),e,t.join("-"),!1)}}F.displayName="MobXProvider";if(!o.Component)throw new Error("mobx-react requires React to be available");if(!r.observable)throw new Error("mobx-react requires mobx to be available")},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){(function(e){var r,o,a;function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}a=function(){"use strict";var t,r;function o(){return t.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function l(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function u(e){return void 0===e}function f(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function p(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function m(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,n,r){return Lt(e,t,n,r,!0).utc()}function y(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function b(e){if(null==e._isValid){var t=y(e),n=r.call(t.parsedDateParts,(function(e){return null!=e})),o=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return o;e._isValid=o}return e._isValid}function v(e){var t=h(NaN);return null!=e?m(y(t),e):y(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var g=o.momentProperties=[],w=!1;function E(e,t){var n,r,o;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=y(t)),u(t._locale)||(e._locale=t._locale),g.length>0)for(n=0;n<g.length;n++)u(o=t[r=g[n]])||(e[r]=o);return e}function _(e){E(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,o.updateOffset(this),w=!1)}function k(e){return e instanceof _||null!=e&&null!=e._isAMomentObject}function O(e){!1===o.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function x(e,t){var n=!0;return m((function(){if(null!=o.deprecationHandler&&o.deprecationHandler(null,e),n){var r,a,l,c=[];for(a=0;a<arguments.length;a++){if(r="","object"===i(arguments[a])){for(l in r+="\n["+a+"] ",arguments[0])s(arguments[0],l)&&(r+=l+": "+arguments[0][l]+", ");r=r.slice(0,-2)}else r=arguments[a];c.push(r)}O(e+"\nArguments: "+Array.prototype.slice.call(c).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var S,j={};function C(e,t){null!=o.deprecationHandler&&o.deprecationHandler(e,t),j[e]||(O(t),j[e]=!0)}function D(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function N(e,t){var n,r=m({},e);for(n in t)s(t,n)&&(l(e[n])&&l(t[n])?(r[n]={},m(r[n],e[n]),m(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)s(e,n)&&!s(t,n)&&l(e[n])&&(r[n]=m({},r[n]));return r}function P(e){null!=e&&this.set(e)}function T(e,t,n){var r=""+Math.abs(e),o=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null,S=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var M=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,A=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,L={},R={};function F(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(R[e]=o),t&&(R[t[0]]=function(){return T(o.apply(this,arguments),t[1],t[2])}),n&&(R[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function z(e,t){return e.isValid()?(t=B(t,e.localeData()),L[t]=L[t]||function(e){var t,n,r,o=e.match(M);for(t=0,n=o.length;t<n;t++)R[o[t]]?o[t]=R[o[t]]:o[t]=(r=o[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,a="";for(r=0;r<n;r++)a+=D(o[r])?o[r].call(t,e):o[r];return a}}(t),L[t](e)):e.localeData().invalidDate()}function B(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(A.lastIndex=0;n>=0&&A.test(e);)e=e.replace(A,r),A.lastIndex=0,n-=1;return e}var Y={};function I(e,t){var n=e.toLowerCase();Y[n]=Y[n+"s"]=Y[t]=e}function H(e){return"string"==typeof e?Y[e]||Y[e.toLowerCase()]:void 0}function U(e){var t,n,r={};for(n in e)s(e,n)&&(t=H(n))&&(r[t]=e[n]);return r}var W={};function V(e,t){W[e]=t}function q(e){return e%4==0&&e%100!=0||e%400==0}function G(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function K(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=G(t)),n}function $(e,t){return function(n){return null!=n?(X(this,e,n),o.updateOffset(this,t),this):J(this,e)}}function J(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function X(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&q(e.year())&&1===e.month()&&29===e.date()?(n=K(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Te(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var Q,Z=/\d/,ee=/\d\d/,te=/\d{3}/,ne=/\d{4}/,re=/[+-]?\d{6}/,oe=/\d\d?/,ae=/\d\d\d\d?/,ie=/\d\d\d\d\d\d?/,le=/\d{1,3}/,se=/\d{1,4}/,ce=/[+-]?\d{1,6}/,ue=/\d+/,fe=/[+-]?\d+/,pe=/Z|[+-]\d\d:?\d\d/gi,de=/Z|[+-]\d\d(?::?\d\d)?/gi,me=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function he(e,t,n){Q[e]=D(t)?t:function(e,r){return e&&n?n:t}}function ye(e,t){return s(Q,e)?Q[e](t._strict,t._locale):new RegExp(be(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,o){return t||n||r||o}))))}function be(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Q={};var ve={};function ge(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),f(t)&&(r=function(e,n){n[t]=K(e)}),n=0;n<e.length;n++)ve[e[n]]=r}function we(e,t){ge(e,(function(e,n,r,o){r._w=r._w||{},t(e,r._w,r,o)}))}function Ee(e,t,n){null!=t&&s(ve,e)&&ve[e](t,n._a,n,e)}var _e,ke=0,Oe=1,xe=2,Se=3,je=4,Ce=5,De=6,Ne=7,Pe=8;function Te(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?q(e)?29:28:31-r%7%2}_e=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},F("M",["MM",2],"Mo",(function(){return this.month()+1})),F("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),F("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),I("month","M"),V("month",8),he("M",oe),he("MM",oe,ee),he("MMM",(function(e,t){return t.monthsShortRegex(e)})),he("MMMM",(function(e,t){return t.monthsRegex(e)})),ge(["M","MM"],(function(e,t){t[Oe]=K(e)-1})),ge(["MMM","MMMM"],(function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);null!=o?t[Oe]=o:y(n).invalidMonth=e}));var Me="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ae="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Le=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Re=me,Fe=me;function ze(e,t,n){var r,o,a,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=h([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=_e.call(this._shortMonthsParse,i))?o:null:-1!==(o=_e.call(this._longMonthsParse,i))?o:null:"MMM"===t?-1!==(o=_e.call(this._shortMonthsParse,i))||-1!==(o=_e.call(this._longMonthsParse,i))?o:null:-1!==(o=_e.call(this._longMonthsParse,i))||-1!==(o=_e.call(this._shortMonthsParse,i))?o:null}function Be(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=K(t);else if(!f(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Te(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Ye(e){return null!=e?(Be(this,e),o.updateOffset(this,!0),this):J(this,"Month")}function Ie(){function e(e,t){return t.length-e.length}var t,n,r=[],o=[],a=[];for(t=0;t<12;t++)n=h([2e3,t]),r.push(this.monthsShort(n,"")),o.push(this.months(n,"")),a.push(this.months(n,"")),a.push(this.monthsShort(n,""));for(r.sort(e),o.sort(e),a.sort(e),t=0;t<12;t++)r[t]=be(r[t]),o[t]=be(o[t]);for(t=0;t<24;t++)a[t]=be(a[t]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function He(e){return q(e)?366:365}F("Y",0,0,(function(){var e=this.year();return e<=9999?T(e,4):"+"+e})),F(0,["YY",2],0,(function(){return this.year()%100})),F(0,["YYYY",4],0,"year"),F(0,["YYYYY",5],0,"year"),F(0,["YYYYYY",6,!0],0,"year"),I("year","y"),V("year",1),he("Y",fe),he("YY",oe,ee),he("YYYY",se,ne),he("YYYYY",ce,re),he("YYYYYY",ce,re),ge(["YYYYY","YYYYYY"],ke),ge("YYYY",(function(e,t){t[ke]=2===e.length?o.parseTwoDigitYear(e):K(e)})),ge("YY",(function(e,t){t[ke]=o.parseTwoDigitYear(e)})),ge("Y",(function(e,t){t[ke]=parseInt(e,10)})),o.parseTwoDigitYear=function(e){return K(e)+(K(e)>68?1900:2e3)};var Ue=$("FullYear",!0);function We(e,t,n,r,o,a,i){var l;return e<100&&e>=0?(l=new Date(e+400,t,n,r,o,a,i),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,r,o,a,i),l}function Ve(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function qe(e,t,n){var r=7+t-n;return-(7+Ve(e,0,r).getUTCDay()-t)%7+r-1}function Ge(e,t,n,r,o){var a,i,l=1+7*(t-1)+(7+n-r)%7+qe(e,r,o);return l<=0?i=He(a=e-1)+l:l>He(e)?(a=e+1,i=l-He(e)):(a=e,i=l),{year:a,dayOfYear:i}}function Ke(e,t,n){var r,o,a=qe(e.year(),t,n),i=Math.floor((e.dayOfYear()-a-1)/7)+1;return i<1?r=i+$e(o=e.year()-1,t,n):i>$e(e.year(),t,n)?(r=i-$e(e.year(),t,n),o=e.year()+1):(o=e.year(),r=i),{week:r,year:o}}function $e(e,t,n){var r=qe(e,t,n),o=qe(e+1,t,n);return(He(e)-r+o)/7}function Je(e,t){return e.slice(t,7).concat(e.slice(0,t))}F("w",["ww",2],"wo","week"),F("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),V("week",5),V("isoWeek",5),he("w",oe),he("ww",oe,ee),he("W",oe),he("WW",oe,ee),we(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=K(e)})),F("d",0,"do","day"),F("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),F("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),F("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),F("e",0,0,"weekday"),F("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),V("day",11),V("weekday",11),V("isoWeekday",11),he("d",oe),he("e",oe),he("E",oe),he("dd",(function(e,t){return t.weekdaysMinRegex(e)})),he("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),he("dddd",(function(e,t){return t.weekdaysRegex(e)})),we(["dd","ddd","dddd"],(function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:y(n).invalidWeekday=e})),we(["d","e","E"],(function(e,t,n,r){t[r]=K(e)}));var Xe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Qe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ze="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),et=me,tt=me,nt=me;function rt(e,t,n){var r,o,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=_e.call(this._weekdaysParse,i))?o:null:"ddd"===t?-1!==(o=_e.call(this._shortWeekdaysParse,i))?o:null:-1!==(o=_e.call(this._minWeekdaysParse,i))?o:null:"dddd"===t?-1!==(o=_e.call(this._weekdaysParse,i))||-1!==(o=_e.call(this._shortWeekdaysParse,i))||-1!==(o=_e.call(this._minWeekdaysParse,i))?o:null:"ddd"===t?-1!==(o=_e.call(this._shortWeekdaysParse,i))||-1!==(o=_e.call(this._weekdaysParse,i))||-1!==(o=_e.call(this._minWeekdaysParse,i))?o:null:-1!==(o=_e.call(this._minWeekdaysParse,i))||-1!==(o=_e.call(this._weekdaysParse,i))||-1!==(o=_e.call(this._shortWeekdaysParse,i))?o:null}function ot(){function e(e,t){return t.length-e.length}var t,n,r,o,a,i=[],l=[],s=[],c=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),r=be(this.weekdaysMin(n,"")),o=be(this.weekdaysShort(n,"")),a=be(this.weekdays(n,"")),i.push(r),l.push(o),s.push(a),c.push(r),c.push(o),c.push(a);i.sort(e),l.sort(e),s.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function at(){return this.hours()%12||12}function it(e,t){F(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function lt(e,t){return t._meridiemParse}F("H",["HH",2],0,"hour"),F("h",["hh",2],0,at),F("k",["kk",2],0,(function(){return this.hours()||24})),F("hmm",0,0,(function(){return""+at.apply(this)+T(this.minutes(),2)})),F("hmmss",0,0,(function(){return""+at.apply(this)+T(this.minutes(),2)+T(this.seconds(),2)})),F("Hmm",0,0,(function(){return""+this.hours()+T(this.minutes(),2)})),F("Hmmss",0,0,(function(){return""+this.hours()+T(this.minutes(),2)+T(this.seconds(),2)})),it("a",!0),it("A",!1),I("hour","h"),V("hour",13),he("a",lt),he("A",lt),he("H",oe),he("h",oe),he("k",oe),he("HH",oe,ee),he("hh",oe,ee),he("kk",oe,ee),he("hmm",ae),he("hmmss",ie),he("Hmm",ae),he("Hmmss",ie),ge(["H","HH"],Se),ge(["k","kk"],(function(e,t,n){var r=K(e);t[Se]=24===r?0:r})),ge(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ge(["h","hh"],(function(e,t,n){t[Se]=K(e),y(n).bigHour=!0})),ge("hmm",(function(e,t,n){var r=e.length-2;t[Se]=K(e.substr(0,r)),t[je]=K(e.substr(r)),y(n).bigHour=!0})),ge("hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[Se]=K(e.substr(0,r)),t[je]=K(e.substr(r,2)),t[Ce]=K(e.substr(o)),y(n).bigHour=!0})),ge("Hmm",(function(e,t,n){var r=e.length-2;t[Se]=K(e.substr(0,r)),t[je]=K(e.substr(r))})),ge("Hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[Se]=K(e.substr(0,r)),t[je]=K(e.substr(r,2)),t[Ce]=K(e.substr(o))}));var st,ct=$("Hours",!0),ut={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Me,monthsShort:Ae,week:{dow:0,doy:6},weekdays:Xe,weekdaysMin:Ze,weekdaysShort:Qe,meridiemParse:/[ap]\.?m?\.?/i},ft={},pt={};function dt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function mt(e){return e?e.toLowerCase().replace("_","-"):e}function ht(t){var r=null;if(void 0===ft[t]&&void 0!==e&&e&&e.exports)try{r=st._abbr,n(1674)("./"+t),yt(r)}catch(e){ft[t]=null}return ft[t]}function yt(e,t){var n;return e&&((n=u(t)?vt(e):bt(e,t))?st=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),st._abbr}function bt(e,t){if(null!==t){var n,r=ut;if(t.abbr=e,null!=ft[e])C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ft[e]._config;else if(null!=t.parentLocale)if(null!=ft[t.parentLocale])r=ft[t.parentLocale]._config;else{if(null==(n=ht(t.parentLocale)))return pt[t.parentLocale]||(pt[t.parentLocale]=[]),pt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return ft[e]=new P(N(r,t)),pt[e]&&pt[e].forEach((function(e){bt(e.name,e.config)})),yt(e),ft[e]}return delete ft[e],null}function vt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return st;if(!a(e)){if(t=ht(e))return t;e=[e]}return function(e){for(var t,n,r,o,a=0;a<e.length;){for(t=(o=mt(e[a]).split("-")).length,n=(n=mt(e[a+1]))?n.split("-"):null;t>0;){if(r=ht(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&dt(o,n)>=t-1)break;t--}a++}return st}(e)}function gt(e){var t,n=e._a;return n&&-2===y(e).overflow&&(t=n[Oe]<0||n[Oe]>11?Oe:n[xe]<1||n[xe]>Te(n[ke],n[Oe])?xe:n[Se]<0||n[Se]>24||24===n[Se]&&(0!==n[je]||0!==n[Ce]||0!==n[De])?Se:n[je]<0||n[je]>59?je:n[Ce]<0||n[Ce]>59?Ce:n[De]<0||n[De]>999?De:-1,y(e)._overflowDayOfYear&&(t<ke||t>xe)&&(t=xe),y(e)._overflowWeeks&&-1===t&&(t=Ne),y(e)._overflowWeekday&&-1===t&&(t=Pe),y(e).overflow=t),e}var wt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Et=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,_t=/Z|[+-]\d\d(?::?\d\d)?/,kt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Ot=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],xt=/^\/?Date\((-?\d+)/i,St=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,jt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ct(e){var t,n,r,o,a,i,l=e._i,s=wt.exec(l)||Et.exec(l);if(s){for(y(e).iso=!0,t=0,n=kt.length;t<n;t++)if(kt[t][1].exec(s[1])){o=kt[t][0],r=!1!==kt[t][2];break}if(null==o)return void(e._isValid=!1);if(s[3]){for(t=0,n=Ot.length;t<n;t++)if(Ot[t][1].exec(s[3])){a=(s[2]||" ")+Ot[t][0];break}if(null==a)return void(e._isValid=!1)}if(!r&&null!=a)return void(e._isValid=!1);if(s[4]){if(!_t.exec(s[4]))return void(e._isValid=!1);i="Z"}e._f=o+(a||"")+(i||""),Mt(e)}else e._isValid=!1}function Dt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Nt(e){var t,n,r,o,a,i,l,s,c=St.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(c){if(n=c[4],r=c[3],o=c[2],a=c[5],i=c[6],l=c[7],s=[Dt(n),Ae.indexOf(r),parseInt(o,10),parseInt(a,10),parseInt(i,10)],l&&s.push(parseInt(l,10)),t=s,!function(e,t,n){return!e||Qe.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(y(n).weekdayMismatch=!0,n._isValid=!1,!1)}(c[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return jt[e];if(t)return 0;var r=parseInt(n,10),o=r%100;return(r-o)/100*60+o}(c[8],c[9],c[10]),e._d=Ve.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),y(e).rfc2822=!0}else e._isValid=!1}function Pt(e,t,n){return null!=e?e:null!=t?t:n}function Tt(e){var t,n,r,a,i,l=[];if(!e._d){for(r=function(e){var t=new Date(o.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[xe]&&null==e._a[Oe]&&function(e){var t,n,r,o,a,i,l,s,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(a=1,i=4,n=Pt(t.GG,e._a[ke],Ke(Rt(),1,4).year),r=Pt(t.W,1),((o=Pt(t.E,1))<1||o>7)&&(s=!0)):(a=e._locale._week.dow,i=e._locale._week.doy,c=Ke(Rt(),a,i),n=Pt(t.gg,e._a[ke],c.year),r=Pt(t.w,c.week),null!=t.d?((o=t.d)<0||o>6)&&(s=!0):null!=t.e?(o=t.e+a,(t.e<0||t.e>6)&&(s=!0)):o=a),r<1||r>$e(n,a,i)?y(e)._overflowWeeks=!0:null!=s?y(e)._overflowWeekday=!0:(l=Ge(n,r,o,a,i),e._a[ke]=l.year,e._dayOfYear=l.dayOfYear)}(e),null!=e._dayOfYear&&(i=Pt(e._a[ke],r[ke]),(e._dayOfYear>He(i)||0===e._dayOfYear)&&(y(e)._overflowDayOfYear=!0),n=Ve(i,0,e._dayOfYear),e._a[Oe]=n.getUTCMonth(),e._a[xe]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=l[t]=r[t];for(;t<7;t++)e._a[t]=l[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Se]&&0===e._a[je]&&0===e._a[Ce]&&0===e._a[De]&&(e._nextDay=!0,e._a[Se]=0),e._d=(e._useUTC?Ve:We).apply(null,l),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Se]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(y(e).weekdayMismatch=!0)}}function Mt(e){if(e._f!==o.ISO_8601)if(e._f!==o.RFC_2822){e._a=[],y(e).empty=!0;var t,n,r,a,i,l,s=""+e._i,c=s.length,u=0;for(r=B(e._f,e._locale).match(M)||[],t=0;t<r.length;t++)a=r[t],(n=(s.match(ye(a,e))||[])[0])&&((i=s.substr(0,s.indexOf(n))).length>0&&y(e).unusedInput.push(i),s=s.slice(s.indexOf(n)+n.length),u+=n.length),R[a]?(n?y(e).empty=!1:y(e).unusedTokens.push(a),Ee(a,n,e)):e._strict&&!n&&y(e).unusedTokens.push(a);y(e).charsLeftOver=c-u,s.length>0&&y(e).unusedInput.push(s),e._a[Se]<=12&&!0===y(e).bigHour&&e._a[Se]>0&&(y(e).bigHour=void 0),y(e).parsedDateParts=e._a.slice(0),y(e).meridiem=e._meridiem,e._a[Se]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[Se],e._meridiem),null!==(l=y(e).era)&&(e._a[ke]=e._locale.erasConvertYear(l,e._a[ke])),Tt(e),gt(e)}else Nt(e);else Ct(e)}function At(e){var t=e._i,n=e._f;return e._locale=e._locale||vt(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),k(t)?new _(gt(t)):(p(t)?e._d=t:a(n)?function(e){var t,n,r,o,a,i,l=!1;if(0===e._f.length)return y(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<e._f.length;o++)a=0,i=!1,t=E({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],Mt(t),b(t)&&(i=!0),a+=y(t).charsLeftOver,a+=10*y(t).unusedTokens.length,y(t).score=a,l?a<r&&(r=a,n=t):(null==r||a<r||i)&&(r=a,n=t,i&&(l=!0));m(e,n||t)}(e):n?Mt(e):function(e){var t=e._i;u(t)?e._d=new Date(o.now()):p(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=xt.exec(e._i);null===t?(Ct(e),!1===e._isValid&&(delete e._isValid,Nt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:o.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):a(t)?(e._a=d(t.slice(0),(function(e){return parseInt(e,10)})),Tt(e)):l(t)?function(e){if(!e._d){var t=U(e._i),n=void 0===t.day?t.date:t.day;e._a=d([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Tt(e)}}(e):f(t)?e._d=new Date(t):o.createFromInputFallback(e)}(e),b(e)||(e._d=null),e))}function Lt(e,t,n,r,o){var i,s={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(l(e)&&c(e)||a(e)&&0===e.length)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=o,s._l=n,s._i=e,s._f=t,s._strict=r,(i=new _(gt(At(s))))._nextDay&&(i.add(1,"d"),i._nextDay=void 0),i}function Rt(e,t,n,r){return Lt(e,t,n,r,!1)}o.createFromInputFallback=x("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),o.ISO_8601=function(){},o.RFC_2822=function(){};var Ft=x("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Rt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()})),zt=x("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Rt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()}));function Bt(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Rt();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var Yt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function It(e){var t=U(e),n=t.year||0,r=t.quarter||0,o=t.month||0,a=t.week||t.isoWeek||0,i=t.day||0,l=t.hour||0,c=t.minute||0,u=t.second||0,f=t.millisecond||0;this._isValid=function(e){var t,n,r=!1;for(t in e)if(s(e,t)&&(-1===_e.call(Yt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<Yt.length;++n)if(e[Yt[n]]){if(r)return!1;parseFloat(e[Yt[n]])!==K(e[Yt[n]])&&(r=!0)}return!0}(t),this._milliseconds=+f+1e3*u+6e4*c+1e3*l*60*60,this._days=+i+7*a,this._months=+o+3*r+12*n,this._data={},this._locale=vt(),this._bubble()}function Ht(e){return e instanceof It}function Ut(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Wt(e,t){F(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+T(~~(e/60),2)+t+T(~~e%60,2)}))}Wt("Z",":"),Wt("ZZ",""),he("Z",de),he("ZZ",de),ge(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=qt(de,e)}));var Vt=/([\+\-]|\d\d)/gi;function qt(e,t){var n,r,o=(t||"").match(e);return null===o?null:0===(r=60*(n=((o[o.length-1]||[])+"").match(Vt)||["-",0,0])[1]+K(n[2]))?0:"+"===n[0]?r:-r}function Gt(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(k(e)||p(e)?e.valueOf():Rt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),o.updateOffset(n,!1),n):Rt(e).local()}function Kt(e){return-Math.round(e._d.getTimezoneOffset())}function $t(){return!!this.isValid()&&this._isUTC&&0===this._offset}o.updateOffset=function(){};var Jt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Xt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Qt(e,t){var n,r,o,a,l,c,u=e,p=null;return Ht(e)?u={ms:e._milliseconds,d:e._days,M:e._months}:f(e)||!isNaN(+e)?(u={},t?u[t]=+e:u.milliseconds=+e):(p=Jt.exec(e))?(n="-"===p[1]?-1:1,u={y:0,d:K(p[xe])*n,h:K(p[Se])*n,m:K(p[je])*n,s:K(p[Ce])*n,ms:K(Ut(1e3*p[De]))*n}):(p=Xt.exec(e))?(n="-"===p[1]?-1:1,u={y:Zt(p[2],n),M:Zt(p[3],n),w:Zt(p[4],n),d:Zt(p[5],n),h:Zt(p[6],n),m:Zt(p[7],n),s:Zt(p[8],n)}):null==u?u={}:"object"===i(u)&&("from"in u||"to"in u)&&(a=Rt(u.from),l=Rt(u.to),o=a.isValid()&&l.isValid()?(l=Gt(l,a),a.isBefore(l)?c=en(a,l):((c=en(l,a)).milliseconds=-c.milliseconds,c.months=-c.months),c):{milliseconds:0,months:0},(u={}).ms=o.milliseconds,u.M=o.months),r=new It(u),Ht(e)&&s(e,"_locale")&&(r._locale=e._locale),Ht(e)&&s(e,"_isValid")&&(r._isValid=e._isValid),r}function Zt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function en(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function tn(e,t){return function(n,r){var o;return null===r||isNaN(+r)||(C(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),nn(this,Qt(n,r),e),this}}function nn(e,t,n,r){var a=t._milliseconds,i=Ut(t._days),l=Ut(t._months);e.isValid()&&(r=null==r||r,l&&Be(e,J(e,"Month")+l*n),i&&X(e,"Date",J(e,"Date")+i*n),a&&e._d.setTime(e._d.valueOf()+a*n),r&&o.updateOffset(e,i||l))}Qt.fn=It.prototype,Qt.invalid=function(){return Qt(NaN)};var rn=tn(1,"add"),on=tn(-1,"subtract");function an(e){return"string"==typeof e||e instanceof String}function ln(e){return k(e)||p(e)||an(e)||f(e)||function(e){var t=a(e),n=!1;return t&&(n=0===e.filter((function(t){return!f(t)&&an(e)})).length),t&&n}(e)||function(e){var t,n,r=l(e)&&!c(e),o=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<a.length;t+=1)n=a[t],o=o||s(e,n);return r&&o}(e)||null==e}function sn(e,t){if(e.date()<t.date())return-sn(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function cn(e){var t;return void 0===e?this._locale._abbr:(null!=(t=vt(e))&&(this._locale=t),this)}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var un=x("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function fn(){return this._locale}var pn=1e3,dn=60*pn,mn=60*dn,hn=3506328*mn;function yn(e,t){return(e%t+t)%t}function bn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-hn:new Date(e,t,n).valueOf()}function vn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-hn:Date.UTC(e,t,n)}function gn(e,t){return t.erasAbbrRegex(e)}function wn(){var e,t,n=[],r=[],o=[],a=[],i=this.eras();for(e=0,t=i.length;e<t;++e)r.push(be(i[e].name)),n.push(be(i[e].abbr)),o.push(be(i[e].narrow)),a.push(be(i[e].name)),a.push(be(i[e].abbr)),a.push(be(i[e].narrow));this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}function En(e,t){F(0,[e,e.length],0,t)}function _n(e,t,n,r,o){var a;return null==e?Ke(this,r,o).year:(t>(a=$e(e,r,o))&&(t=a),kn.call(this,e,t,n,r,o))}function kn(e,t,n,r,o){var a=Ge(e,t,n,r,o),i=Ve(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}F("N",0,0,"eraAbbr"),F("NN",0,0,"eraAbbr"),F("NNN",0,0,"eraAbbr"),F("NNNN",0,0,"eraName"),F("NNNNN",0,0,"eraNarrow"),F("y",["y",1],"yo","eraYear"),F("y",["yy",2],0,"eraYear"),F("y",["yyy",3],0,"eraYear"),F("y",["yyyy",4],0,"eraYear"),he("N",gn),he("NN",gn),he("NNN",gn),he("NNNN",(function(e,t){return t.erasNameRegex(e)})),he("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ge(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?y(n).era=o:y(n).invalidEra=e})),he("y",ue),he("yy",ue),he("yyy",ue),he("yyyy",ue),he("yo",(function(e,t){return t._eraYearOrdinalRegex||ue})),ge(["y","yy","yyy","yyyy"],ke),ge(["yo"],(function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[ke]=n._locale.eraYearOrdinalParse(e,o):t[ke]=parseInt(e,10)})),F(0,["gg",2],0,(function(){return this.weekYear()%100})),F(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),En("gggg","weekYear"),En("ggggg","weekYear"),En("GGGG","isoWeekYear"),En("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),V("weekYear",1),V("isoWeekYear",1),he("G",fe),he("g",fe),he("GG",oe,ee),he("gg",oe,ee),he("GGGG",se,ne),he("gggg",se,ne),he("GGGGG",ce,re),he("ggggg",ce,re),we(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=K(e)})),we(["gg","GG"],(function(e,t,n,r){t[r]=o.parseTwoDigitYear(e)})),F("Q",0,"Qo","quarter"),I("quarter","Q"),V("quarter",7),he("Q",Z),ge("Q",(function(e,t){t[Oe]=3*(K(e)-1)})),F("D",["DD",2],"Do","date"),I("date","D"),V("date",9),he("D",oe),he("DD",oe,ee),he("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ge(["D","DD"],xe),ge("Do",(function(e,t){t[xe]=K(e.match(oe)[0])}));var On=$("Date",!0);F("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),V("dayOfYear",4),he("DDD",le),he("DDDD",te),ge(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=K(e)})),F("m",["mm",2],0,"minute"),I("minute","m"),V("minute",14),he("m",oe),he("mm",oe,ee),ge(["m","mm"],je);var xn=$("Minutes",!1);F("s",["ss",2],0,"second"),I("second","s"),V("second",15),he("s",oe),he("ss",oe,ee),ge(["s","ss"],Ce);var Sn,jn,Cn=$("Seconds",!1);for(F("S",0,0,(function(){return~~(this.millisecond()/100)})),F(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),F(0,["SSS",3],0,"millisecond"),F(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),F(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),F(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),F(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),F(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),F(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),I("millisecond","ms"),V("millisecond",16),he("S",le,Z),he("SS",le,ee),he("SSS",le,te),Sn="SSSS";Sn.length<=9;Sn+="S")he(Sn,ue);function Dn(e,t){t[De]=K(1e3*("0."+e))}for(Sn="S";Sn.length<=9;Sn+="S")ge(Sn,Dn);jn=$("Milliseconds",!1),F("z",0,0,"zoneAbbr"),F("zz",0,0,"zoneName");var Nn=_.prototype;function Pn(e){return e}Nn.add=rn,Nn.calendar=function(e,t){1===arguments.length&&(ln(arguments[0])?(e=arguments[0],t=void 0):function(e){var t,n=l(e)&&!c(e),r=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)r=r||s(e,o[t]);return n&&r}(arguments[0])&&(t=arguments[0],e=void 0));var n=e||Rt(),r=Gt(n,this).startOf("day"),a=o.calendarFormat(this,r)||"sameElse",i=t&&(D(t[a])?t[a].call(this,n):t[a]);return this.format(i||this.localeData().calendar(a,this,Rt(n)))},Nn.clone=function(){return new _(this)},Nn.diff=function(e,t,n){var r,o,a;if(!this.isValid())return NaN;if(!(r=Gt(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=H(t)){case"year":a=sn(this,r)/12;break;case"month":a=sn(this,r);break;case"quarter":a=sn(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-o)/864e5;break;case"week":a=(this-r-o)/6048e5;break;default:a=this-r}return n?a:G(a)},Nn.endOf=function(e){var t,n;if(void 0===(e=H(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?vn:bn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=mn-yn(t+(this._isUTC?0:this.utcOffset()*dn),mn)-1;break;case"minute":t=this._d.valueOf(),t+=dn-yn(t,dn)-1;break;case"second":t=this._d.valueOf(),t+=pn-yn(t,pn)-1}return this._d.setTime(t),o.updateOffset(this,!0),this},Nn.format=function(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=z(this,e);return this.localeData().postformat(t)},Nn.from=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||Rt(e).isValid())?Qt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Nn.fromNow=function(e){return this.from(Rt(),e)},Nn.to=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||Rt(e).isValid())?Qt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Nn.toNow=function(e){return this.to(Rt(),e)},Nn.get=function(e){return D(this[e=H(e)])?this[e]():this},Nn.invalidAt=function(){return y(this).overflow},Nn.isAfter=function(e,t){var n=k(e)?e:Rt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=H(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},Nn.isBefore=function(e,t){var n=k(e)?e:Rt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=H(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},Nn.isBetween=function(e,t,n,r){var o=k(e)?e:Rt(e),a=k(t)?t:Rt(t);return!!(this.isValid()&&o.isValid()&&a.isValid())&&("("===(r=r||"()")[0]?this.isAfter(o,n):!this.isBefore(o,n))&&(")"===r[1]?this.isBefore(a,n):!this.isAfter(a,n))},Nn.isSame=function(e,t){var n,r=k(e)?e:Rt(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=H(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},Nn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},Nn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},Nn.isValid=function(){return b(this)},Nn.lang=un,Nn.locale=cn,Nn.localeData=fn,Nn.max=zt,Nn.min=Ft,Nn.parsingFlags=function(){return m({},y(this))},Nn.set=function(e,t){if("object"===i(e)){var n,r=function(e){var t,n=[];for(t in e)s(e,t)&&n.push({unit:t,priority:W[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=U(e));for(n=0;n<r.length;n++)this[r[n].unit](e[r[n].unit])}else if(D(this[e=H(e)]))return this[e](t);return this},Nn.startOf=function(e){var t,n;if(void 0===(e=H(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?vn:bn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=yn(t+(this._isUTC?0:this.utcOffset()*dn),mn);break;case"minute":t=this._d.valueOf(),t-=yn(t,dn);break;case"second":t=this._d.valueOf(),t-=yn(t,pn)}return this._d.setTime(t),o.updateOffset(this,!0),this},Nn.subtract=on,Nn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},Nn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},Nn.toDate=function(){return new Date(this.valueOf())},Nn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?z(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):D(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",z(n,"Z")):z(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Nn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",o="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=o+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Nn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Nn.toJSON=function(){return this.isValid()?this.toISOString():null},Nn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Nn.unix=function(){return Math.floor(this.valueOf()/1e3)},Nn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Nn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Nn.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""},Nn.eraNarrow=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""},Nn.eraAbbr=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""},Nn.eraYear=function(){var e,t,n,r,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(n=a[e].since<=a[e].until?1:-1,r=this.startOf("day").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return(this.year()-o(a[e].since).year())*n+a[e].offset;return this.year()},Nn.year=Ue,Nn.isLeapYear=function(){return q(this.year())},Nn.weekYear=function(e){return _n.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Nn.isoWeekYear=function(e){return _n.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},Nn.quarter=Nn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},Nn.month=Ye,Nn.daysInMonth=function(){return Te(this.year(),this.month())},Nn.week=Nn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},Nn.isoWeek=Nn.isoWeeks=function(e){var t=Ke(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},Nn.weeksInYear=function(){var e=this.localeData()._week;return $e(this.year(),e.dow,e.doy)},Nn.weeksInWeekYear=function(){var e=this.localeData()._week;return $e(this.weekYear(),e.dow,e.doy)},Nn.isoWeeksInYear=function(){return $e(this.year(),1,4)},Nn.isoWeeksInISOWeekYear=function(){return $e(this.isoWeekYear(),1,4)},Nn.date=On,Nn.day=Nn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},Nn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},Nn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},Nn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},Nn.hour=Nn.hours=ct,Nn.minute=Nn.minutes=xn,Nn.second=Nn.seconds=Cn,Nn.millisecond=Nn.milliseconds=jn,Nn.utcOffset=function(e,t,n){var r,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=qt(de,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Kt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),a!==e&&(!t||this._changeInProgress?nn(this,Qt(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:Kt(this)},Nn.utc=function(e){return this.utcOffset(0,e)},Nn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Kt(this),"m")),this},Nn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=qt(pe,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},Nn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Rt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},Nn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Nn.isLocal=function(){return!!this.isValid()&&!this._isUTC},Nn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Nn.isUtc=$t,Nn.isUTC=$t,Nn.zoneAbbr=function(){return this._isUTC?"UTC":""},Nn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Nn.dates=x("dates accessor is deprecated. Use date instead.",On),Nn.months=x("months accessor is deprecated. Use month instead",Ye),Nn.years=x("years accessor is deprecated. Use year instead",Ue),Nn.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),Nn.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return E(t,this),(t=At(t))._a?(e=t._isUTC?h(t._a):Rt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,o=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),i=0;for(r=0;r<o;r++)(n&&e[r]!==t[r]||!n&&K(e[r])!==K(t[r]))&&i++;return i+a}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var Tn=P.prototype;function Mn(e,t,n,r){var o=vt(),a=h().set(r,t);return o[n](a,e)}function An(e,t,n){if(f(e)&&(t=e,e=void 0),e=e||"",null!=t)return Mn(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=Mn(e,r,n,"month");return o}function Ln(e,t,n,r){"boolean"==typeof e?(f(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,f(t)&&(n=t,t=void 0),t=t||"");var o,a=vt(),i=e?a._week.dow:0,l=[];if(null!=n)return Mn(t,(n+i)%7,r,"day");for(o=0;o<7;o++)l[o]=Mn(t,(o+i)%7,r,"day");return l}Tn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return D(r)?r.call(t,n):r},Tn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(M).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},Tn.invalidDate=function(){return this._invalidDate},Tn.ordinal=function(e){return this._ordinal.replace("%d",e)},Tn.preparse=Pn,Tn.postformat=Pn,Tn.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return D(o)?o(e,t,n,r):o.replace(/%d/i,e)},Tn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return D(n)?n(t):n.replace(/%s/i,t)},Tn.set=function(e){var t,n;for(n in e)s(e,n)&&(D(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Tn.eras=function(e,t){var n,r,a,l=this._eras||vt("en")._eras;for(n=0,r=l.length;n<r;++n)switch("string"===i(l[n].since)&&(a=o(l[n].since).startOf("day"),l[n].since=a.valueOf()),i(l[n].until)){case"undefined":l[n].until=1/0;break;case"string":a=o(l[n].until).startOf("day").valueOf(),l[n].until=a.valueOf()}return l},Tn.erasParse=function(e,t,n){var r,o,a,i,l,s=this.eras();for(e=e.toUpperCase(),r=0,o=s.length;r<o;++r)if(a=s[r].name.toUpperCase(),i=s[r].abbr.toUpperCase(),l=s[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(i===e)return s[r];break;case"NNNN":if(a===e)return s[r];break;case"NNNNN":if(l===e)return s[r]}else if([a,i,l].indexOf(e)>=0)return s[r]},Tn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?o(e.since).year():o(e.since).year()+(t-e.offset)*n},Tn.erasAbbrRegex=function(e){return s(this,"_erasAbbrRegex")||wn.call(this),e?this._erasAbbrRegex:this._erasRegex},Tn.erasNameRegex=function(e){return s(this,"_erasNameRegex")||wn.call(this),e?this._erasNameRegex:this._erasRegex},Tn.erasNarrowRegex=function(e){return s(this,"_erasNarrowRegex")||wn.call(this),e?this._erasNarrowRegex:this._erasRegex},Tn.months=function(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Le).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone},Tn.monthsShort=function(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Le.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Tn.monthsParse=function(e,t,n){var r,o,a;if(this._monthsParseExact)return ze.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=h([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},Tn.monthsRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Ie.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=Fe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},Tn.monthsShortRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Ie.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=Re),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},Tn.week=function(e){return Ke(e,this._week.dow,this._week.doy).week},Tn.firstDayOfYear=function(){return this._week.doy},Tn.firstDayOfWeek=function(){return this._week.dow},Tn.weekdays=function(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Je(n,this._week.dow):e?n[e.day()]:n},Tn.weekdaysMin=function(e){return!0===e?Je(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},Tn.weekdaysShort=function(e){return!0===e?Je(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},Tn.weekdaysParse=function(e,t,n){var r,o,a;if(this._weekdaysParseExact)return rt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},Tn.weekdaysRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||ot.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=et),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},Tn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||ot.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=tt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Tn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||ot.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=nt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Tn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},Tn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},yt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===K(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),o.lang=x("moment.lang is deprecated. Use moment.locale instead.",yt),o.langData=x("moment.langData is deprecated. Use moment.localeData instead.",vt);var Rn=Math.abs;function Fn(e,t,n,r){var o=Qt(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function zn(e){return e<0?Math.floor(e):Math.ceil(e)}function Bn(e){return 4800*e/146097}function Yn(e){return 146097*e/4800}function In(e){return function(){return this.as(e)}}var Hn=In("ms"),Un=In("s"),Wn=In("m"),Vn=In("h"),qn=In("d"),Gn=In("w"),Kn=In("M"),$n=In("Q"),Jn=In("y");function Xn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Qn=Xn("milliseconds"),Zn=Xn("seconds"),er=Xn("minutes"),tr=Xn("hours"),nr=Xn("days"),rr=Xn("months"),or=Xn("years"),ar=Math.round,ir={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function lr(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}var sr=Math.abs;function cr(e){return(e>0)-(e<0)||+e}function ur(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,o,a,i,l,s=sr(this._milliseconds)/1e3,c=sr(this._days),u=sr(this._months),f=this.asSeconds();return f?(e=G(s/60),t=G(e/60),s%=60,e%=60,n=G(u/12),u%=12,r=s?s.toFixed(3).replace(/\.?0+$/,""):"",o=f<0?"-":"",a=cr(this._months)!==cr(f)?"-":"",i=cr(this._days)!==cr(f)?"-":"",l=cr(this._milliseconds)!==cr(f)?"-":"",o+"P"+(n?a+n+"Y":"")+(u?a+u+"M":"")+(c?i+c+"D":"")+(t||e||s?"T":"")+(t?l+t+"H":"")+(e?l+e+"M":"")+(s?l+r+"S":"")):"P0D"}var fr=It.prototype;return fr.isValid=function(){return this._isValid},fr.abs=function(){var e=this._data;return this._milliseconds=Rn(this._milliseconds),this._days=Rn(this._days),this._months=Rn(this._months),e.milliseconds=Rn(e.milliseconds),e.seconds=Rn(e.seconds),e.minutes=Rn(e.minutes),e.hours=Rn(e.hours),e.months=Rn(e.months),e.years=Rn(e.years),this},fr.add=function(e,t){return Fn(this,e,t,1)},fr.subtract=function(e,t){return Fn(this,e,t,-1)},fr.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=H(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Bn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Yn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},fr.asMilliseconds=Hn,fr.asSeconds=Un,fr.asMinutes=Wn,fr.asHours=Vn,fr.asDays=qn,fr.asWeeks=Gn,fr.asMonths=Kn,fr.asQuarters=$n,fr.asYears=Jn,fr.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*K(this._months/12):NaN},fr._bubble=function(){var e,t,n,r,o,a=this._milliseconds,i=this._days,l=this._months,s=this._data;return a>=0&&i>=0&&l>=0||a<=0&&i<=0&&l<=0||(a+=864e5*zn(Yn(l)+i),i=0,l=0),s.milliseconds=a%1e3,e=G(a/1e3),s.seconds=e%60,t=G(e/60),s.minutes=t%60,n=G(t/60),s.hours=n%24,i+=G(n/24),l+=o=G(Bn(i)),i-=zn(Yn(o)),r=G(l/12),l%=12,s.days=i,s.months=l,s.years=r,this},fr.clone=function(){return Qt(this)},fr.get=function(e){return e=H(e),this.isValid()?this[e+"s"]():NaN},fr.milliseconds=Qn,fr.seconds=Zn,fr.minutes=er,fr.hours=tr,fr.days=nr,fr.weeks=function(){return G(this.days()/7)},fr.months=rr,fr.years=or,fr.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,o=!1,a=ir;return"object"===i(e)&&(t=e,e=!1),"boolean"==typeof e&&(o=e),"object"===i(t)&&(a=Object.assign({},ir,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),r=function(e,t,n,r){var o=Qt(e).abs(),a=ar(o.as("s")),i=ar(o.as("m")),l=ar(o.as("h")),s=ar(o.as("d")),c=ar(o.as("M")),u=ar(o.as("w")),f=ar(o.as("y")),p=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||i<=1&&["m"]||i<n.m&&["mm",i]||l<=1&&["h"]||l<n.h&&["hh",l]||s<=1&&["d"]||s<n.d&&["dd",s];return null!=n.w&&(p=p||u<=1&&["w"]||u<n.w&&["ww",u]),(p=p||c<=1&&["M"]||c<n.M&&["MM",c]||f<=1&&["y"]||["yy",f])[2]=t,p[3]=+e>0,p[4]=r,lr.apply(null,p)}(this,!o,a,n=this.localeData()),o&&(r=n.pastFuture(+this,r)),n.postformat(r)},fr.toISOString=ur,fr.toString=ur,fr.toJSON=ur,fr.locale=cn,fr.localeData=fn,fr.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ur),fr.lang=un,F("X",0,0,"unix"),F("x",0,0,"valueOf"),he("x",fe),he("X",/[+-]?\d+(\.\d{1,3})?/),ge("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ge("x",(function(e,t,n){n._d=new Date(K(e))})),o.version="2.27.0",t=Rt,o.fn=Nn,o.min=function(){return Bt("isBefore",[].slice.call(arguments,0))},o.max=function(){return Bt("isAfter",[].slice.call(arguments,0))},o.now=function(){return Date.now?Date.now():+new Date},o.utc=h,o.unix=function(e){return Rt(1e3*e)},o.months=function(e,t){return An(e,t,"months")},o.isDate=p,o.locale=yt,o.invalid=v,o.duration=Qt,o.isMoment=k,o.weekdays=function(e,t,n){return Ln(e,t,n,"weekdays")},o.parseZone=function(){return Rt.apply(null,arguments).parseZone()},o.localeData=vt,o.isDuration=Ht,o.monthsShort=function(e,t){return An(e,t,"monthsShort")},o.weekdaysMin=function(e,t,n){return Ln(e,t,n,"weekdaysMin")},o.defineLocale=bt,o.updateLocale=function(e,t){if(null!=t){var n,r,o=ut;null!=ft[e]&&null!=ft[e].parentLocale?ft[e].set(N(ft[e]._config,t)):(null!=(r=ht(e))&&(o=r._config),t=N(o,t),null==r&&(t.abbr=e),(n=new P(t)).parentLocale=ft[e],ft[e]=n),yt(e)}else null!=ft[e]&&(null!=ft[e].parentLocale?(ft[e]=ft[e].parentLocale,e===yt()&&yt(e)):null!=ft[e]&&delete ft[e]);return ft[e]},o.locales=function(){return S(ft)},o.weekdaysShort=function(e,t,n){return Ln(e,t,n,"weekdaysShort")},o.normalizeUnits=H,o.relativeTimeRounding=function(e){return void 0===e?ar:"function"==typeof e&&(ar=e,!0)},o.relativeTimeThreshold=function(e,t){return void 0!==ir[e]&&(void 0===t?ir[e]:(ir[e]=t,"s"===e&&(ir.ss=t-1),!0))},o.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},o.prototype=Nn,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},o},"object"===i(t)&&void 0!==e?e.exports=a():void 0===(o="function"==typeof(r=a)?r.call(t,n,t,e):r)||(e.exports=o)}).call(this,n(101)(e))},function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")()}).call(this,n(67))},function(e,t,n){var r;function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}!function(){"use strict";var a={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=o(n);if("string"===r||"number"===r)e.push(n);else if(Array.isArray(n)&&n.length){var l=i.apply(null,n);l&&e.push(l)}else if("object"===r)for(var s in n)a.call(n,s)&&n[s]&&e.push(s)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):"object"===o(n(180))&&n(180)?void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r):window.classNames=i}()},function(e,t,n){e.exports=n(424)()},function(e,t,n){"use strict";n.d(t,"n",(function(){return o})),n.d(t,"o",(function(){return a})),n.d(t,"i",(function(){return i})),n.d(t,"k",(function(){return l})),n.d(t,"j",(function(){return s})),n.d(t,"m",(function(){return u})),n.d(t,"h",(function(){return f})),n.d(t,"e",(function(){return p})),n.d(t,"f",(function(){return d})),n.d(t,"g",(function(){return m})),n.d(t,"c",(function(){return y})),n.d(t,"d",(function(){return b})),n.d(t,"b",(function(){return v})),n.d(t,"a",(function(){return g})),n.d(t,"l",(function(){return w}));var r=n(1),o=[{code:"en",language:"English",flag:"us,gb,au,ca",multitrack:!0},{code:"fr",language:"French",flag:"fr,ca",multitrack:!0},{code:"de",language:"German",flag:"de",multitrack:!0},{code:"es",language:"Spanish",flag:"es,mx,ar,co",multitrack:!0},{code:"es-en",language:"Spanish & English",flag:"mx,us",multitrack:!0},{code:"ar",language:"Arabic",flag:"arableague",multitrack:!0},{code:"hy",language:"Armenian",flag:"am",multitrack:!1},{code:"ba",language:"Bashkir",flag:"ba",multitrack:!0},{code:"eu",language:"Basque",flag:"es",multitrack:!0},{code:"be",language:"Belarusian",flag:"by",multitrack:!0},{code:"bg",language:"Bulgarian",flag:"bg",multitrack:!0},{code:"ca",language:"Catalan",flag:"es-ct",multitrack:!0},{code:"hr",language:"Croatian",flag:"hr",multitrack:!0},{code:"yue",language:"Chinese (Cantonese)",flag:"cn,tw,hk",multitrack:!0},{code:"cmn",language:"Chinese (Mandarin)",flag:"cn,tw,hk",multitrack:!0},{code:"cs",language:"Czech",flag:"cz",multitrack:!0},{code:"da",language:"Danish",flag:"dk",multitrack:!0},{code:"nl",language:"Dutch",flag:"nl",multitrack:!0},{code:"et",language:"Estonian",flag:"ee",multitrack:!0},{code:"fi",language:"Finnish",flag:"fi",multitrack:!0},{code:"el",language:"Greek",flag:"gr",multitrack:!0},{code:"he",language:"Hebrew",flag:"il",multitrack:!0},{code:"hi",language:"Hindi",flag:"in",multitrack:!0},{code:"hu",language:"Hungarian",flag:"hu",multitrack:!0},{code:"id",language:"Indonesian",flag:"id",multitrack:!0},{code:"it",language:"Italian",flag:"it",multitrack:!0},{code:"ja",language:"Japanese",flag:"jp",multitrack:!0},{code:"ko",language:"Korean",flag:"kr",multitrack:!0},{code:"lv",language:"Latvian",flag:"lv",multitrack:!0},{code:"lt",language:"Lithuanian",flag:"lt",multitrack:!0},{code:"ms",language:"Malay",flag:"my",multitrack:!0},{code:"mr",language:"Marathi",flag:"mr",multitrack:!0},{code:"mn",language:"Mongolian",flag:"mn",multitrack:!0},{code:"no",language:"Norwegian",flag:"no",multitrack:!0},{code:"fa",language:"Persian",flag:"ir",multitrack:!0},{code:"pl",language:"Polish",flag:"pl",multitrack:!0},{code:"pt",language:"Portuguese",flag:"pt,br",multitrack:!0},{code:"ro",language:"Romanian",flag:"ro",multitrack:!0},{code:"ru",language:"Russian",flag:"ru",multitrack:!0},{code:"sr",language:"Serbian",flag:"rs",multitrack:!1},{code:"sk",language:"Slovak",flag:"sk",multitrack:!0},{code:"sl",language:"Slovenian",flag:"si",multitrack:!0},{code:"sv",language:"Swedish",flag:"se",multitrack:!0},{code:"ta",language:"Tamil",flag:"lk,in",multitrack:!0},{code:"th",language:"Thai",flag:"th",multitrack:!0},{code:"tr",language:"Turkish",flag:"tr",multitrack:!0},{code:"ug",language:"Uyghur",flag:"ug",multitrack:!0},{code:"uk",language:"Ukrainian",flag:"ua",multitrack:!0},{code:"vi",language:"Vietnamese",flag:"vn",multitrack:!0},{code:"cy",language:"Welsh",flag:"gb-wls",multitrack:!0}],a=[{code:"ar",language:"Arabic",flag:"arableague"},{code:"hy",language:"Armenian",flag:"am"},{code:"eu",language:"Basque",flag:"es"},{code:"be",language:"Belarusian",flag:"be"},{code:"bg",language:"Bulgarian",flag:"bg"},{code:"ca",language:"Catalan",flag:"es-ct"},{code:"zh",language:"Chinese (Simplified)",flag:"cn,tw,hk"},{code:"zh-TW",language:"Chinese (Traditional)",flag:"cn,tw,hk"},{code:"cs",language:"Czech",flag:"cz"},{code:"hr",language:"Croatian",flag:"hr"},{code:"da",language:"Danish",flag:"dk"},{code:"nl",language:"Dutch",flag:"nl"},{code:"et",language:"Estonian",flag:"ee"},{code:"el",language:"Greek",flag:"gr"},{code:"en",language:"English",flag:"us,gb,au,ca"},{code:"fi",language:"Finnish",flag:"fi"},{code:"fr",language:"French",flag:"fr,ca"},{code:"de",language:"German",flag:"de"},{code:"he",language:"Hebrew",flag:"il"},{code:"hi",language:"Hindi",flag:"in"},{code:"hu",language:"Hungarian",flag:"hu"},{code:"id",language:"Indonesian",flag:"id"},{code:"it",language:"Italian",flag:"it"},{code:"ja",language:"Japanese",flag:"jp"},{code:"ko",language:"Korean",flag:"kr"},{code:"lv",language:"Latvian",flag:"lv"},{code:"lt",language:"Lithuanian",flag:"lt"},{code:"ms",language:"Malay",flag:"my"},{code:"mr",language:"Marathi",flag:"mr"},{code:"mn",language:"Mongolian",flag:"mn"},{code:"no",language:"Norwegian",flag:"no"},{code:"fa",language:"Persian",flag:"ir"},{code:"pl",language:"Polish",flag:"pl"},{code:"pt",language:"Portuguese",flag:"pt,br",awsOnly:!0},{code:"pt-pt",language:"Portuguese (Excluding Brazilian Portuguese)",flag:"pt",deepLOnly:!0},{code:"pt-br",language:"Portuguese (Brazilian)",flag:"br",deepLOnly:!0},{code:"ro",language:"Romanian",flag:"ro"},{code:"ru",language:"Russian",flag:"ru"},{code:"sr",language:"Serbian",flag:"rs"},{code:"sk",language:"Slovak",flag:"sk"},{code:"es",language:"Spanish",flag:"es,mx,ar,co"},{code:"sl",language:"Slovenian",flag:"si"},{code:"sv",language:"Swedish",flag:"se"},{code:"ta",language:"Tamil",flag:"lk,in"},{code:"th",language:"Thai",flag:"th"},{code:"tr",language:"Turkish",flag:"tr"},{code:"ug",language:"Uyghur",flag:"ug"},{code:"uk",language:"Ukrainian",flag:"ua"},{code:"vi",language:"Vietnamese",flag:"vn"},{code:"cy",language:"Welsh",flag:"gb-wls"}];function i(e){if(!e)return null;var t=e;return"en"==t.slice(0,2)&&(t="en"),"auto"===e?{code:"auto",language:"auto",flag:"",multitrack:!1}:a.find((function(e){return e.code===t}))||o.find((function(e){return e.code===t}))}(new Date).getTime();function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;window.dataLayer&&window.dataLayer.push({event:e,eventLabel:t,eventValue:n})}function s(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}var c=r.observable.box(0),u=function(e){c.set(parseFloat(e)||0)},f=function(){return c.get()||0};function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.get(),n=Math.floor(parseFloat(e)+t),r=n<0;n=Math.abs(n);var o=Math.floor(n/3600),a=Math.floor(n%3600/60),i=n%60;return o<10&&(o="0"+o),a<10&&(a="0"+a),i<10&&(i="0"+i),r&&(o="-"+o),o+":"+a+":"+i}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.get(),n=Math.floor(parseFloat(e)+t),r=n<0;n=Math.abs(n);var o,a=Math.floor(n/3600),i=Math.floor(n%3600/60),l=n%60;return a<10&&(a="0"+a),i<10&&(i="0"+i),l<10&&(l="0"+l),o=0==a?i+":"+l:a+":"+i+":"+l,r&&(o="-"+o),o}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.get(),n=Math.floor(parseFloat(e)+t),r=n<0;n=Math.abs(n);var o=Math.floor(n/3600),a=Math.floor(n%3600/60),i=n%60;return 0===o?o="":o<10?o="0"+o+":":o+=":",r&&(o="-"+o),o+(a=a<10?"0"+a:a)+":"+(i=i<10?"0"+i.toFixed(3):i.toFixed(3))}function h(e,t){return 1===t?e:e+"s"}function y(e){if(e<1)return"0 minutes";var t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.floor(e%60),o="";return t>0&&(o+="".concat(t," ").concat(h("hour",t)," ")),n>0&&(o+="".concat(n," ").concat(h("minute",n)," ")),r>0&&(o+="".concat(r," ").concat(h("second",r))),o}function b(e){if(e<1)return"0s";var t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.floor(e%60),o="";return t>0&&(o+="".concat(t,"h ")),n>0&&(o+="".concat(n,"m ")),r>0&&(o+="".concat(r,"s")),o}function v(e,t){var n=Math.max(parseInt(Math.ceil(e/(60*t))),4);return e<60*t?"less than 1-2 minutes":e<240*t?"around ".concat(n-2,"-").concat(n+2," minutes"):"around ".concat(n-4,"-").concat(n+4," minutes")}function g(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}function w(e,t,n,r){var o=e,a=o.scrollTop,i=t-a;!function e(t){var l=function(e,t,n,r){if(e/=r/2,e<1)return n/2*e*e+t;return-n/2*((e-=1)*(e-2)-1)+t}(t+=20,a,i,n);o.scrollTop=l,t<n?setTimeout((function(){e(t)}),20):r&&r()}(0)}},,function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(11);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},,function(e,t,n){var r=n(6),o=n(107),a=n(19),i=n(72),l=n(111),s=n(143),c=o("wks"),u=r.Symbol,f=s?u:u&&u.withoutSetter||i;e.exports=function(e){return a(c,e)||(l&&a(u,e)?c[e]=u[e]:c[e]=f("Symbol."+e)),c[e]}},function(e,t,n){var r=n(4);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){"use strict";var r,o=n(156),a=n(15),i=n(6),l=n(11),s=n(19),c=n(81),u=n(31),f=n(26),p=n(18).f,d=n(43),m=n(63),h=n(14),y=n(72),b=i.Int8Array,v=b&&b.prototype,g=i.Uint8ClampedArray,w=g&&g.prototype,E=b&&d(b),_=v&&d(v),k=Object.prototype,O=k.isPrototypeOf,x=h("toStringTag"),S=y("TYPED_ARRAY_TAG"),j=o&&!!m&&"Opera"!==c(i.opera),C=!1,D={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},N=function(e){return l(e)&&s(D,c(e))};for(r in D)i[r]||(j=!1);if((!j||"function"!=typeof E||E===Function.prototype)&&(E=function(){throw TypeError("Incorrect invocation")},j))for(r in D)i[r]&&m(i[r],E);if((!j||!_||_===k)&&(_=E.prototype,j))for(r in D)i[r]&&m(i[r].prototype,_);if(j&&d(w)!==_&&m(w,_),a&&!s(_,x))for(r in C=!0,p(_,x,{get:function(){return l(this)?this[S]:void 0}}),D)i[r]&&u(i[r],S,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:j,TYPED_ARRAY_TAG:C&&S,aTypedArray:function(e){if(N(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(m){if(O.call(E,e))return e}else for(var t in D)if(s(D,r)){var n=i[t];if(n&&(e===n||O.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n){if(a){if(n)for(var r in D){var o=i[r];o&&s(o.prototype,e)&&delete o.prototype[e]}_[e]&&!n||f(_,e,n?t:j&&v[e]||t)}},exportTypedArrayStaticMethod:function(e,t,n){var r,o;if(a){if(m){if(n)for(r in D)(o=i[r])&&s(o,e)&&delete o[e];if(E[e]&&!n)return;try{return f(E,e,n?t:j&&b[e]||t)}catch(e){}}for(r in D)!(o=i[r])||o[e]&&!n||f(o,e,t)}},isView:function(e){var t=c(e);return"DataView"===t||s(D,t)},isTypedArray:N,TypedArray:E,TypedArrayPrototype:_}},function(e,t,n){var r=n(37),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){var r=n(15),o=n(137),a=n(12),i=n(46),l=Object.defineProperty;t.f=r?l:function(e,t,n){if(a(e),t=i(t,!0),a(n),o)try{return l(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(30);e.exports=function(e){return Object(r(e))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return O})),n.d(t,"c",(function(){return E})),n.d(t,"d",(function(){return _}));var r=n(439),o=n.n(r),a=n(0),i=n(197);function l(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var s=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert("."+r,o,e.sheet,!0);o=o.next}while(void 0!==o)}},c=n(136),u=n(195),f=n(102);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}var d=Object(a.createContext)("undefined"!=typeof HTMLElement?Object(i.a)():null),m=Object(a.createContext)({}),h=d.Provider,y=function(e){var t=function(t,n){return Object(a.createElement)(d.Consumer,null,(function(r){return e(t,r,n)}))};return Object(a.forwardRef)(t)},b="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",v=Object.prototype.hasOwnProperty,g=function(e,t,n,r){var o=null===n?t.css:t.css(n);"string"==typeof o&&void 0!==e.registered[o]&&(o=e.registered[o]);var i=t[b],u=[o],f="";"string"==typeof t.className?f=l(e.registered,u,t.className):null!=t.className&&(f=t.className+" ");var p=Object(c.a)(u);s(e,p,"string"==typeof i);f+=e.key+"-"+p.name;var d={};for(var m in t)v.call(t,m)&&"css"!==m&&m!==b&&(d[m]=t[m]);return d.ref=r,d.className=f,Object(a.createElement)(i,d)},w=y((function(e,t,n){return"function"==typeof e.css?Object(a.createElement)(m.Consumer,null,(function(r){return g(t,e,r,n)})):g(t,e,null,n)}));var E=function(e,t){var n=arguments;if(null==t||!v.call(t,"css"))return a.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=w;var i={};for(var l in t)v.call(t,l)&&(i[l]=t[l]);i[b]=e,o[1]=i;for(var s=2;s<r;s++)o[s]=n[s];return a.createElement.apply(null,o)},_=(a.Component,function(){var e=f.a.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}),k=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var a=t[r];if(null!=a){var i=void 0;switch(p(a)){case"boolean":break;case"object":if(Array.isArray(a))i=e(a);else for(var l in i="",a)a[l]&&l&&(i&&(i+=" "),i+=l);break;default:i=a}i&&(o&&(o+=" "),o+=i)}}return o};var O=y((function(e,t){return Object(a.createElement)(m.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Object(c.a)(n,t.registered);return s(t,o,!1),t.key+"-"+o.name},o={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return function(e,t,n){var r=[],o=l(e,r,n);return r.length<2?n:o+t(r)}(t.registered,r,k(n))},theme:n},a=e.children(o);return!0,a}))}))},function(e,t,n){e.exports=n(398)},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return k})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return E}));var r=n(1),o=n(0),a=n.n(o);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}if(!o.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!r.spy)throw new Error("mobx-react-lite requires mobx at least version 4 to be available");var l=!1;function s(){return l}function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}function u(){var e=Object(o.useState)(0)[1];return Object(o.useCallback)((function(){e((function(e){return e+1}))}),[])}function f(e){return Object(r.getDependencyTree)(e)}var p,d=1e4,m=1e4,h=new Set;function y(){void 0===p&&(p=setTimeout(b,m))}function b(){p=void 0;var e=Date.now();h.forEach((function(t){var n=t.current;n&&e>=n.cleanAt&&(n.reaction.dispose(),t.current=null,h.delete(t))})),h.size>0&&y()}var v={};function g(e){return"observer"+e}function w(e,t,n){if(void 0===t&&(t="observed"),void 0===n&&(n=v),s())return e();var o,i=(n.useForceUpdate||u)(),l=a.a.useRef(null);if(!l.current){var c=new r.Reaction(g(t),(function(){p.mounted?i():(c.dispose(),l.current=null)})),p=function(e){return{cleanAt:Date.now()+d,reaction:e}}(c);l.current=p,o=l,h.add(o),y()}var m,b,w=l.current.reaction;if(a.a.useDebugValue(w,f),a.a.useEffect((function(){var e;return e=l,h.delete(e),l.current?l.current.mounted=!0:(l.current={reaction:new r.Reaction(g(t),(function(){i()})),cleanAt:1/0},i()),function(){l.current.reaction.dispose(),l.current=null}}),[]),w.track((function(){try{m=e()}catch(e){b=e}})),b)throw b;return m}function E(e,t){if(s())return e;var n,r,a,i=c({forwardRef:!1},t),l=e.displayName||e.name,u=function(t,n){return w((function(){return e(t,n)}),l)};return u.displayName=l,n=i.forwardRef?Object(o.memo)(Object(o.forwardRef)(u)):Object(o.memo)(u),r=e,a=n,Object.keys(r).forEach((function(e){_[e]||Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(r,e))})),n.displayName=l,n}var _={$$typeof:!0,render:!0,compare:!0,type:!0};function k(e){var t=e.children,n=e.render,r=t||n;return"function"!=typeof r?null:w(r)}function O(e,t,n,r,o){var a="children"===t?"render":"children",l="function"==typeof e[t],s="function"==typeof e[a];return l&&s?new Error("MobX Observer: Do not use children and render in the same time in`"+n):l||s?null:new Error("Invalid prop `"+o+"` of type `"+i(e[t])+"` supplied to `"+n+"`, expected `function`.")}k.propTypes={children:O,render:O},k.displayName="Observer"}).call(this,n(67))},,function(e,t,n){var r=n(15),o=n(85),a=n(51),i=n(32),l=n(46),s=n(19),c=n(137),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=i(e),t=l(t,!0),c)try{return u(e,t)}catch(e){}if(s(e,t))return a(!o.f.call(e,t),e[t])}},function(e,t,n){var r=n(6),o=n(31),a=n(19),i=n(105),l=n(106),s=n(33),c=s.get,u=s.enforce,f=String(String).split("String");(e.exports=function(e,t,n,l){var s=!!l&&!!l.unsafe,c=!!l&&!!l.enumerable,p=!!l&&!!l.noTargetGet;"function"==typeof n&&("string"!=typeof t||a(n,"name")||o(n,"name",t),u(n).source=f.join("string"==typeof t?t:"")),e!==r?(s?!p&&e[t]&&(c=!0):delete e[t],c?e[t]=n:o(e,t,n)):c?e[t]=n:i(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||l(this)}))},function(e,t,n){var r=n(53),o=n(71),a=n(20),i=n(17),l=n(77),s=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,u=4==e,f=6==e,p=5==e||f;return function(d,m,h,y){for(var b,v,g=a(d),w=o(g),E=r(m,h,3),_=i(w.length),k=0,O=y||l,x=t?O(d,_):n?O(d,0):void 0;_>k;k++)if((p||k in w)&&(v=E(b=w[k],k,g),e))if(t)x[k]=v;else if(v)switch(e){case 3:return!0;case 5:return b;case 6:return k;case 2:s.call(x,b)}else if(u)return!1;return f?-1:c||u?u:x}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},function(e,t,n){var r;!function(o,a,i){if(o){for(var l,s={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},c={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},u={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},f={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},p=1;p<20;++p)s[111+p]="f"+p;for(p=0;p<=9;++p)s[p+96]=p.toString();g.prototype.bind=function(e,t,n){var r=this;return e=e instanceof Array?e:[e],r._bindMultiple.call(r,e,t,n),r},g.prototype.unbind=function(e,t){return this.bind.call(this,e,(function(){}),t)},g.prototype.trigger=function(e,t){var n=this;return n._directMap[e+":"+t]&&n._directMap[e+":"+t]({},e),n},g.prototype.reset=function(){var e=this;return e._callbacks={},e._directMap={},e},g.prototype.stopCallback=function(e,t){if((" "+t.className+" ").indexOf(" mousetrap ")>-1)return!1;if(v(t,this.target))return!1;if("composedPath"in e&&"function"==typeof e.composedPath){var n=e.composedPath()[0];n!==e.target&&(t=n)}return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},g.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},g.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(s[t]=e[t]);l=null},g.init=function(){var e=g(a);for(var t in e)"_"!==t.charAt(0)&&(g[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},g.init(),o.Mousetrap=g,e.exports&&(e.exports=g),void 0===(r=function(){return g}.call(t,n,t,e))||(e.exports=r)}function d(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function m(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return s[e.which]?s[e.which]:c[e.which]?c[e.which]:String.fromCharCode(e.which).toLowerCase()}function h(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function y(e,t,n){return n||(n=function(){if(!l)for(var e in l={},s)e>95&&e<112||s.hasOwnProperty(e)&&(l[s[e]]=e);return l}()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function b(e,t){var n,r,o,a=[];for(n=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),o=0;o<n.length;++o)r=n[o],f[r]&&(r=f[r]),t&&"keypress"!=t&&u[r]&&(r=u[r],a.push("shift")),h(r)&&a.push(r);return{key:r,modifiers:a,action:t=y(r,a,t)}}function v(e,t){return null!==e&&e!==a&&(e===t||v(e.parentNode,t))}function g(e){var t=this;if(e=e||a,!(t instanceof g))return new g(e);t.target=e,t._callbacks={},t._directMap={};var n,r={},o=!1,i=!1,l=!1;function s(e){e=e||{};var t,n=!1;for(t in r)e[t]?n=!0:r[t]=0;n||(l=!1)}function c(e,n,o,a,i,l){var s,c,u,f,p=[],d=o.type;if(!t._callbacks[e])return[];for("keyup"==d&&h(e)&&(n=[e]),s=0;s<t._callbacks[e].length;++s)if(c=t._callbacks[e][s],(a||!c.seq||r[c.seq]==c.level)&&d==c.action&&("keypress"==d&&!o.metaKey&&!o.ctrlKey||(u=n,f=c.modifiers,u.sort().join(",")===f.sort().join(",")))){var m=!a&&c.combo==i,y=a&&c.seq==a&&c.level==l;(m||y)&&t._callbacks[e].splice(s,1),p.push(c)}return p}function u(e,n,r,o){t.stopCallback(n,n.target||n.srcElement,r,o)||!1===e(n,r)&&(function(e){e.preventDefault?e.preventDefault():e.returnValue=!1}(n),function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}(n))}function f(e){"number"!=typeof e.which&&(e.which=e.keyCode);var n=m(e);n&&("keyup"!=e.type||o!==n?t.handleKey(n,function(e){var t=[];return e.shiftKey&&t.push("shift"),e.altKey&&t.push("alt"),e.ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),t}(e),e):o=!1)}function p(e,t,a,i){function c(t){return function(){l=t,++r[e],clearTimeout(n),n=setTimeout(s,1e3)}}function f(t){u(a,t,e),"keyup"!==i&&(o=m(t)),setTimeout(s,10)}r[e]=0;for(var p=0;p<t.length;++p){var d=p+1===t.length?f:c(i||b(t[p+1]).action);y(t[p],d,i,e,p)}}function y(e,n,r,o,a){t._directMap[e+":"+r]=n;var i,l=(e=e.replace(/\s+/g," ")).split(" ");l.length>1?p(e,l,n,r):(i=b(e,r),t._callbacks[i.key]=t._callbacks[i.key]||[],c(i.key,i.modifiers,{type:i.action},o,e,a),t._callbacks[i.key][o?"unshift":"push"]({callback:n,modifiers:i.modifiers,action:i.action,seq:o,level:a,combo:e}))}t._handleKey=function(e,t,n){var r,o=c(e,t,n),a={},f=0,p=!1;for(r=0;r<o.length;++r)o[r].seq&&(f=Math.max(f,o[r].level));for(r=0;r<o.length;++r)if(o[r].seq){if(o[r].level!=f)continue;p=!0,a[o[r].seq]=1,u(o[r].callback,n,o[r].combo,o[r].seq)}else p||u(o[r].callback,n,o[r].combo);var d="keypress"==n.type&&i;n.type!=l||h(e)||d||s(a),i=p&&"keydown"==n.type},t._bindMultiple=function(e,t,n){for(var r=0;r<e.length;++r)y(e[r],t,n)},d(e,"keypress",f),d(e,"keydown",f),d(e,"keyup",f)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return T})),n.d(t,"c",(function(){return J})),n.d(t,"d",(function(){return U})),n.d(t,"e",(function(){return H})),n.d(t,"f",(function(){return Z})),n.d(t,"g",(function(){return W})),n.d(t,"h",(function(){return Q})),n.d(t,"i",(function(){return te})),n.d(t,"j",(function(){return A})),n.d(t,"k",(function(){return E})),n.d(t,"l",(function(){return v})),n.d(t,"m",(function(){return q})),n.d(t,"n",(function(){return y})),n.d(t,"o",(function(){return O})),n.d(t,"p",(function(){return oe})),n.d(t,"q",(function(){return ae})),n.d(t,"r",(function(){return ie})),n.d(t,"s",(function(){return w})),n.d(t,"t",(function(){return pe})),n.d(t,"u",(function(){return me})),n.d(t,"v",(function(){return ye})),n.d(t,"w",(function(){return M})),n.d(t,"x",(function(){return ge})),n.d(t,"y",(function(){return N})),n.d(t,"z",(function(){return ve}));var r=n(0),o=n(21),a=n(39),i=n(8),l=n.n(i),s=n(56),c=n(102),u=n(416),f=n.n(u);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(this,arguments)}function m(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var h=function(e){return"auto"===e?"bottom":e},y=function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,a=r.spacing,i=r.colors;return(t={label:"menu"})[function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n)]="100%",t.backgroundColor=i.neutral0,t.borderRadius=o,t.boxShadow="0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",t.marginBottom=a.menuGutter,t.marginTop=a.menuGutter,t.position="absolute",t.width="100%",t.zIndex=1,t},b=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={maxHeight:t.props.maxMenuHeight,placement:null},t.getPlacement=function(e){var n=t.props,r=n.minMenuHeight,o=n.maxMenuHeight,a=n.menuPlacement,i=n.menuPosition,l=n.menuShouldScrollIntoView,c=n.theme,u=t.context.getPortalPlacement;if(e){var f="fixed"===i,p=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,i=e.isFixedPosition,l=e.theme.spacing,c=Object(s.a)(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var f=c.getBoundingClientRect().height,p=n.getBoundingClientRect(),d=p.bottom,m=p.height,h=p.top,y=n.offsetParent.getBoundingClientRect().top,b=window.innerHeight,v=Object(s.b)(c),g=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),E=y-w,_=b-h,k=E+v,O=f-v-h,x=d-b+v+g,S=v+h-w,j=160;switch(o){case"auto":case"bottom":if(_>=m)return{placement:"bottom",maxHeight:t};if(O>=m&&!i)return a&&Object(s.c)(c,x,j),{placement:"bottom",maxHeight:t};if(!i&&O>=r||i&&_>=r)return a&&Object(s.c)(c,x,j),{placement:"bottom",maxHeight:i?_-g:O-g};if("auto"===o||i){var C=t,D=i?E:k;return D>=r&&(C=Math.min(D-g-l.controlHeight,t)),{placement:"top",maxHeight:C}}if("bottom"===o)return Object(s.l)(c,x),{placement:"bottom",maxHeight:t};break;case"top":if(E>=m)return{placement:"top",maxHeight:t};if(k>=m&&!i)return a&&Object(s.c)(c,S,j),{placement:"top",maxHeight:t};if(!i&&k>=r||i&&E>=r){var N=t;return(!i&&k>=r||i&&E>=r)&&(N=i?E-w:k-w),a&&Object(s.c)(c,S,j),{placement:"top",maxHeight:N}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'+o+'".')}return u}({maxHeight:o,menuEl:e,minHeight:r,placement:a,shouldScroll:l&&!f,isFixedPosition:f,theme:c});u&&u(p),t.setState(p)}},t.getUpdatedProps=function(){var e=t.props.menuPlacement,n=t.state.placement||h(e);return d({},t.props,{placement:n,maxHeight:t.state.maxHeight})},t}return m(t,e),t.prototype.render=function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})},t}(r.Component);b.contextTypes={getPortalPlacement:l.a.func};var v=function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},g=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:2*n+"px "+3*n+"px",textAlign:"center"}},w=g,E=g,_=function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,i=e.innerProps;return Object(o.c)("div",d({css:a("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},i),t)};_.defaultProps={children:"No options"};var k=function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,i=e.innerProps;return Object(o.c)("div",d({css:a("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},i),t)};k.defaultProps={children:"Loading..."};var O=function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},x=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={placement:null},t.getPortalPlacement=function(e){var n=e.placement;n!==h(t.props.menuPlacement)&&t.setState({placement:n})},t}m(t,e);var n=t.prototype;return n.getChildContext=function(){return{getPortalPlacement:this.getPortalPlacement}},n.render=function(){var e=this.props,t=e.appendTo,n=e.children,r=e.controlElement,i=e.menuPlacement,l=e.menuPosition,c=e.getStyles,u="fixed"===l;if(!t&&!u||!r)return null;var f=this.state.placement||h(i),p=Object(s.g)(r),d=u?0:window.pageYOffset,m={offset:p[f]+d,position:l,rect:p},y=Object(o.c)("div",{css:c("menuPortal",m)},n);return t?Object(a.createPortal)(y,t):y},t}(r.Component);x.childContextTypes={getPortalPlacement:l.a.func};var S=Array.isArray,j=Object.keys,C=Object.prototype.hasOwnProperty;function D(e,t){if(e===t)return!0;if(e&&t&&"object"==p(e)&&"object"==p(t)){var n,r,o,a=S(e),i=S(t);if(a&&i){if((r=e.length)!=t.length)return!1;for(n=r;0!=n--;)if(!D(e[n],t[n]))return!1;return!0}if(a!=i)return!1;var l=e instanceof Date,s=t instanceof Date;if(l!=s)return!1;if(l&&s)return e.getTime()==t.getTime();var c=e instanceof RegExp,u=t instanceof RegExp;if(c!=u)return!1;if(c&&u)return e.toString()==t.toString();var f=j(e);if((r=f.length)!==j(t).length)return!1;for(n=r;0!=n--;)if(!C.call(t,f[n]))return!1;for(n=r;0!=n--;)if(!("_owner"===(o=f[n])&&e.$$typeof||D(e[o],t[o])))return!1;return!0}return e!=e&&t!=t}function N(e,t){try{return D(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}function P(){return P=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},P.apply(this,arguments)}var T=function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},M=function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:t.baseUnit/2+"px "+2*t.baseUnit+"px",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}},A=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}};function L(){var e=function(e,t){t||(t=e.slice(0));return e.raw=t,e}(["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"]);return L=function(){return e},e}function R(){return R=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R.apply(this,arguments)}var F={name:"19bqh2r",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;"},z=function(e){var t=e.size,n=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["size"]);return Object(o.c)("svg",R({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:F},n))},B=function(e){return Object(o.c)(z,R({size:20},e),Object(o.c)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Y=function(e){return Object(o.c)(z,R({size:20},e),Object(o.c)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},I=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},H=I,U=I,W=function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},V=Object(o.d)(L()),q=function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,a=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*a,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},G=function(e){var t=e.delay,n=e.offset;return Object(o.c)("span",{css:Object(c.a)({animation:V+" 1s ease-in-out "+t+"ms infinite;",backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"")})},K=function(e){var t=e.className,n=e.cx,r=e.getStyles,a=e.innerProps,i=e.isRtl;return Object(o.c)("div",R({},a,{css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)}),Object(o.c)(G,{delay:0,offset:i}),Object(o.c)(G,{delay:160,offset:!0}),Object(o.c)(G,{delay:320,offset:!i}))};function $(){return $=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$.apply(this,arguments)}K.defaultProps={size:4};var J=function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,a=r.borderRadius,i=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px "+o.primary:null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}};function X(){return X=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},X.apply(this,arguments)}var Q=function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},Z=function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}};function ee(){return ee=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ee.apply(this,arguments)}var te=function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80}},ne=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}};function re(){return re=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},re.apply(this,arguments)}var oe=function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},ae=function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o?"ellipsis":null,whiteSpace:"nowrap"}},ie=function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&o.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},le=function(e){var t=e.children,n=e.innerProps;return Object(o.c)("div",n,t)},se=le,ce=le;var ue=function(e){var t=e.children,n=e.className,r=e.components,a=e.cx,i=e.data,l=e.getStyles,s=e.innerProps,c=e.isDisabled,u=e.removeProps,f=e.selectProps,p=r.Container,d=r.Label,m=r.Remove;return Object(o.c)(o.b,null,(function(r){var h=r.css,y=r.cx;return Object(o.c)(p,{data:i,innerProps:re({},s,{className:y(h(l("multiValue",e)),a({"multi-value":!0,"multi-value--is-disabled":c},n))}),selectProps:f},Object(o.c)(d,{data:i,innerProps:{className:y(h(l("multiValueLabel",e)),a({"multi-value__label":!0},n))},selectProps:f},t),Object(o.c)(m,{data:i,innerProps:re({className:y(h(l("multiValueRemove",e)),a({"multi-value__remove":!0},n))},u),selectProps:f}))}))};function fe(){return fe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fe.apply(this,arguments)}ue.defaultProps={cropWithEllipsis:!0};var pe=function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,a=o.spacing,i=o.colors;return{label:"option",backgroundColor:r?i.primary:n?i.primary25:"transparent",color:t?i.neutral20:r?i.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:2*a.baseUnit+"px "+3*a.baseUnit+"px",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?i.primary:i.primary50)}}};function de(){return de=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},de.apply(this,arguments)}var me=function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}};function he(){return he=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},he.apply(this,arguments)}var ye=function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - "+2*r.baseUnit+"px)",overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}};function be(){return be=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},be.apply(this,arguments)}var ve={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,i=e.innerProps;return Object(o.c)("div",R({},i,{css:a("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)}),t||Object(o.c)(B,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,a=e.className,i=e.isDisabled,l=e.isFocused,s=e.innerRef,c=e.innerProps,u=e.menuIsOpen;return Object(o.c)("div",$({ref:s,css:r("control",e),className:n({control:!0,"control--is-disabled":i,"control--is-focused":l,"control--menu-is-open":u},a)},c),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,i=e.innerProps;return Object(o.c)("div",R({},i,{css:a("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)}),t||Object(o.c)(Y,null))},DownChevron:Y,CrossIcon:B,Group:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,i=e.Heading,l=e.headingProps,s=e.label,c=e.theme,u=e.selectProps;return Object(o.c)("div",{css:a("group",e),className:r({group:!0},n)},Object(o.c)(i,X({},l,{selectProps:u,theme:c,getStyles:a,cx:r}),s),Object(o.c)("div",null,t))},GroupHeading:function(e){var t=e.className,n=e.cx,r=e.getStyles,a=e.theme,i=(e.selectProps,function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["className","cx","getStyles","theme","selectProps"]));return Object(o.c)("div",X({css:r("groupHeading",X({theme:a},i)),className:n({"group-heading":!0},t)},i))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles;return Object(o.c)("div",{css:a("indicatorsContainer",e),className:r({indicators:!0},n)},t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,a=e.innerProps;return Object(o.c)("span",R({},a,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,a=e.innerRef,i=e.isHidden,l=e.isDisabled,s=e.theme,c=(e.selectProps,function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return Object(o.c)("div",{css:r("input",ee({theme:s},c))},Object(o.c)(f.a,ee({className:n({input:!0},t),inputRef:a,inputStyle:ne(i),disabled:l},c)))},LoadingIndicator:K,Menu:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,i=e.innerRef,l=e.innerProps;return Object(o.c)("div",d({css:a("menu",e),className:r({menu:!0},n)},l,{ref:i}),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,i=e.isMulti,l=e.innerRef;return Object(o.c)("div",{css:a("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":i},n),ref:l},t)},MenuPortal:x,LoadingMessage:k,NoOptionsMessage:_,MultiValue:ue,MultiValueContainer:se,MultiValueLabel:ce,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Object(o.c)("div",n,t||Object(o.c)(B,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,i=e.isDisabled,l=e.isFocused,s=e.isSelected,c=e.innerRef,u=e.innerProps;return Object(o.c)("div",fe({css:a("option",e),className:r({option:!0,"option--is-disabled":i,"option--is-focused":l,"option--is-selected":s},n),ref:c},u),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,i=e.innerProps;return Object(o.c)("div",de({css:a("placeholder",e),className:r({placeholder:!0},n)},i),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,i=e.innerProps,l=e.isDisabled,s=e.isRtl;return Object(o.c)("div",P({css:a("container",e),className:r({"--is-disabled":l,"--is-rtl":s},n)},i),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,i=e.isDisabled,l=e.innerProps;return Object(o.c)("div",he({css:a("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":i},n)},l),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,a=e.isMulti,i=e.getStyles,l=e.hasValue;return Object(o.c)("div",{css:i("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":a,"value-container--has-value":l},n)},t)}},ge=function(e){return be({},ve,e.components)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(15),o=n(18),a=n(51);e.exports=r?function(e,t,n){return o.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(71),o=n(30);e.exports=function(e){return r(o(e))}},function(e,t,n){var r,o,a,i=n(139),l=n(6),s=n(11),c=n(31),u=n(19),f=n(86),p=n(73),d=l.WeakMap;if(i){var m=new d,h=m.get,y=m.has,b=m.set;r=function(e,t){return b.call(m,e,t),t},o=function(e){return h.call(m,e)||{}},a=function(e){return y.call(m,e)}}else{var v=f("state");p[v]=!0,r=function(e,t){return c(e,v,t),t},o=function(e){return u(e,v)?e[v]:{}},a=function(e){return u(e,v)}}e.exports={set:r,get:o,has:a,enforce:function(e){return a(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!s(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){var r=n(141),o=n(19),a=n(147),i=n(18).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||i(t,e,{value:a.f(e)})}},function(e,t,n){var r=n(30),o=/"/g;e.exports=function(e,t,n,a){var i=String(r(e)),l="<"+t;return""!==n&&(l+=" "+n+'="'+String(a).replace(o,"&quot;")+'"'),l+">"+i+"</"+t+">"}},function(e,t,n){var r=n(4);e.exports=function(e){return r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(192)},,function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(141),o=n(6),a=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e])||a(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},function(e,t,n){var r=n(19),o=n(20),a=n(86),i=n(118),l=a("IE_PROTO"),s=Object.prototype;e.exports=i?Object.getPrototypeOf:function(e){return e=o(e),r(e,l)?e[l]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},function(e,t,n){var r,o,a,i;function l(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}i=function(e){"use strict";var t="transitionend",n=function(e){return e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(function(e,t){return"#".concat(CSS.escape(t))}))),e},r=function(e){if(!e)return 0;var t=window.getComputedStyle(e),n=t.transitionDuration,r=t.transitionDelay,o=Number.parseFloat(n),a=Number.parseFloat(r);return o||a?(n=n.split(",")[0],r=r.split(",")[0],1e3*(Number.parseFloat(n)+Number.parseFloat(r))):0},o=function(e){e.dispatchEvent(new Event(t))},a=function(e){return!(!e||"object"!==c(e))&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType)},i=function(){return window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null},s=[],u=function(e){"loading"===document.readyState?(s.length||document.addEventListener("DOMContentLoaded",(function(){for(var e=0,t=s;e<t.length;e++)(0,t[e])()})),s.push(e)):e()},f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e;return"function"==typeof e?e.apply(void 0,l(t)):n};e.defineJQueryPlugin=function(e){u((function(){var t=i();if(t){var n=e.NAME,r=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=function(){return t.fn[n]=r,e.jQueryInterface}}}))},e.execute=f,e.executeAfterTransition=function(e,n){if(arguments.length>2&&void 0!==arguments[2]&&!arguments[2])f(e);else{var a=r(n)+5,i=!1;n.addEventListener(t,(function r(o){o.target===n&&(i=!0,n.removeEventListener(t,r),f(e))})),setTimeout((function(){i||o(n)}),a)}},e.findShadowRoot=function e(t){if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){var n=t.getRootNode();return n instanceof ShadowRoot?n:null}return t instanceof ShadowRoot?t:t.parentNode?e(t.parentNode):null},e.getElement=function(e){return a(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(n(e)):null},e.getNextActiveElement=function(e,t,n,r){var o=e.length,a=e.indexOf(t);return-1===a?!n&&r?e[o-1]:e[0]:(a+=n?1:-1,r&&(a=(a+o)%o),e[Math.max(0,Math.min(a,o-1))])},e.getTransitionDurationFromElement=r,e.getUID=function(e){do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e},e.getjQuery=i,e.isDisabled=function(e){return!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled"))},e.isElement=a,e.isRTL=function(){return"rtl"===document.documentElement.dir},e.isVisible=function(e){if(!a(e)||0===e.getClientRects().length)return!1;var t="visible"===getComputedStyle(e).getPropertyValue("visibility"),n=e.closest("details:not([open])");if(!n)return t;if(n!==e){var r=e.closest("summary");if(r&&r.parentNode!==n)return!1;if(null===r)return!1}return t},e.noop=function(){},e.onDOMContentLoaded=u,e.parseSelector=n,e.reflow=function(e){e.offsetHeight},e.toType=function(e){return null==e?"".concat(e):Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase()},e.triggerTransitionEnd=o,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})},"object"===c(t)&&void 0!==e?i(t):(o=[t],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=n(185),a=Object.prototype.toString;function i(e){return"[object Array]"===a.call(e)}function l(e){return null!==e&&"object"===r(e)}function s(e){return"[object Function]"===a.call(e)}function c(e,t){if(null!=e)if("object"===r(e)||i(e)||(e=[e]),i(e))for(var n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.call(null,e[a],a,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===a.call(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:l,isUndefined:function(e){return void 0===e},isDate:function(e){return"[object Date]"===a.call(e)},isFile:function(e){return"[object File]"===a.call(e)},isBlob:function(e){return"[object Blob]"===a.call(e)},isFunction:s,isStream:function(e){return l(e)&&s(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return"undefined"!=typeof window&&"undefined"!=typeof document&&"function"==typeof document.createElement},forEach:c,merge:function e(){var t={};function n(n,o){"object"===r(t[o])&&"object"===r(n)?t[o]=e(t[o],n):t[o]=n}for(var o=0,a=arguments.length;o<a;o++)c(arguments[o],n);return t},extend:function(e,t,n){return c(t,(function(t,r){e[r]=n&&"function"==typeof t?o(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(e,t,n){var r=n(11);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=!1},function(e,t,n){var r=n(18).f,o=n(19),a=n(14)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},function(e,t,n){var r=n(15),o=n(4),a=n(19),i=Object.defineProperty,l={},s=function(e){throw e};e.exports=function(e,t){if(a(l,e))return l[e];t||(t={});var n=[][e],c=!!a(t,"ACCESSORS")&&t.ACCESSORS,u=a(t,0)?t[0]:s,f=a(t,1)?t[1]:void 0;return l[e]=!!n&&!o((function(){if(c&&!r)return!0;var e={length:-1};c?i(e,1,{enumerable:!0,get:s}):e[1]=1,n.call(e,u,f)}))}},function(e,t,n){"use strict";var r=n(2),o=n(6),a=n(15),i=n(128),l=n(16),s=n(155),c=n(55),u=n(51),f=n(31),p=n(17),d=n(157),m=n(173),h=n(46),y=n(19),b=n(81),v=n(11),g=n(52),w=n(63),E=n(57).f,_=n(174),k=n(27).forEach,O=n(64),x=n(18),S=n(25),j=n(33),C=n(92),D=j.get,N=j.set,P=x.f,T=S.f,M=Math.round,A=o.RangeError,L=s.ArrayBuffer,R=s.DataView,F=l.NATIVE_ARRAY_BUFFER_VIEWS,z=l.TYPED_ARRAY_TAG,B=l.TypedArray,Y=l.TypedArrayPrototype,I=l.aTypedArrayConstructor,H=l.isTypedArray,U="BYTES_PER_ELEMENT",W="Wrong length",V=function(e,t){for(var n=0,r=t.length,o=new(I(e))(r);r>n;)o[n]=t[n++];return o},q=function(e,t){P(e,t,{get:function(){return D(this)[t]}})},G=function(e){var t;return e instanceof L||"ArrayBuffer"==(t=b(e))||"SharedArrayBuffer"==t},K=function(e,t){return H(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},$=function(e,t){return K(e,t=h(t,!0))?u(2,e[t]):T(e,t)},J=function(e,t,n){return!(K(e,t=h(t,!0))&&v(n)&&y(n,"value"))||y(n,"get")||y(n,"set")||n.configurable||y(n,"writable")&&!n.writable||y(n,"enumerable")&&!n.enumerable?P(e,t,n):(e[t]=n.value,e)};a?(F||(S.f=$,x.f=J,q(Y,"buffer"),q(Y,"byteOffset"),q(Y,"byteLength"),q(Y,"length")),r({target:"Object",stat:!0,forced:!F},{getOwnPropertyDescriptor:$,defineProperty:J}),e.exports=function(e,t,n){var a=e.match(/\d+$/)[0]/8,l=e+(n?"Clamped":"")+"Array",s="get"+e,u="set"+e,h=o[l],y=h,b=y&&y.prototype,x={},S=function(e,t){P(e,t,{get:function(){return function(e,t){var n=D(e);return n.view[s](t*a+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var o=D(e);n&&(r=(r=M(r))<0?0:r>255?255:255&r),o.view[u](t*a+o.byteOffset,r,!0)}(this,t,e)},enumerable:!0})};F?i&&(y=t((function(e,t,n,r){return c(e,y,l),C(v(t)?G(t)?void 0!==r?new h(t,m(n,a),r):void 0!==n?new h(t,m(n,a)):new h(t):H(t)?V(y,t):_.call(y,t):new h(d(t)),e,y)})),w&&w(y,B),k(E(h),(function(e){e in y||f(y,e,h[e])})),y.prototype=b):(y=t((function(e,t,n,r){c(e,y,l);var o,i,s,u=0,f=0;if(v(t)){if(!G(t))return H(t)?V(y,t):_.call(y,t);o=t,f=m(n,a);var h=t.byteLength;if(void 0===r){if(h%a)throw A(W);if((i=h-f)<0)throw A(W)}else if((i=p(r)*a)+f>h)throw A(W);s=i/a}else s=d(t),o=new L(i=s*a);for(N(e,{buffer:o,byteOffset:f,byteLength:i,length:s,view:new R(o)});u<s;)S(e,u++)})),w&&w(y,B),b=y.prototype=g(Y)),b.constructor!==y&&f(b,"constructor",y),z&&f(b,z,l),x[l]=y,r({global:!0,forced:y!=h,sham:!F},x),U in y||f(y,U,a),U in b||f(b,U,a),O(l)}):e.exports=function(){}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r,o=n(12),a=n(144),i=n(109),l=n(73),s=n(145),c=n(104),u=n(86),f="prototype",p="script",d=u("IE_PROTO"),m=function(){},h=function(e){return"<"+p+">"+e+"</"+p+">"},y=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t,n;y=r?function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):(t=c("iframe"),n="java"+p+":",t.style.display="none",s.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(h("document.F=Object")),e.close(),e.F);for(var o=i.length;o--;)delete y[f][i[o]];return y()};l[d]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(m[f]=o(e),n=new m,m[f]=null,n[d]=e):n=y(),void 0===t?n:a(n,t)}},function(e,t,n){var r=n(38);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(14),o=n(52),a=n(18),i=r("unscopables"),l=Array.prototype;null==l[i]&&a.f(l,i,{configurable:!0,value:o(null)}),e.exports=function(e){l[i][e]=!0}},function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return y})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return d})),n.d(t,"g",(function(){return m})),n.d(t,"h",(function(){return i})),n.d(t,"i",(function(){return h})),n.d(t,"j",(function(){return s})),n.d(t,"k",(function(){return o})),n.d(t,"l",(function(){return u}));var o=function(){};function a(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function i(e,t,n){var r=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&r.push(""+a(e,o));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var l=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===r(e)&&null!==e?[e]:[]};function s(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function c(e){return s(e)?window.pageYOffset:e.scrollTop}function u(e,t){s(e)?window.scrollTo(0,t):e.scrollTop=t}function f(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,o=document.documentElement;if("fixed"===t.position)return o;for(var a=e;a=a.parentElement;)if(t=getComputedStyle(a),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return a;return o}function p(e,t,n,r){void 0===n&&(n=200),void 0===r&&(r=o);var a=c(e),i=t-a,l=10,s=0;!function t(){var o,c=i*((o=(o=s+=l)/n-1)*o*o+1)+a;u(e,c),s<n?window.requestAnimationFrame(t):r(e)}()}function d(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?u(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&u(e,Math.max(t.offsetTop-o,0))}function m(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function h(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function y(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}},function(e,t,n){var r=n(142),o=n(109).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(37),o=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):a(n,t)}},function(e,t,n){"use strict";var r=n(46),o=n(18),a=n(51);e.exports=function(e,t,n){var i=r(t);i in e?o.f(e,i,a(0,n)):e[i]=n}},function(e,t,n){var r=n(73),o=n(11),a=n(19),i=n(18).f,l=n(72),s=n(82),c=l("meta"),u=0,f=Object.isExtensible||function(){return!0},p=function(e){i(e,c,{value:{objectID:"O"+ ++u,weakData:{}}})},d=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,c)){if(!f(e))return"F";if(!t)return"E";p(e)}return e[c].objectID},getWeakData:function(e,t){if(!a(e,c)){if(!f(e))return!0;if(!t)return!1;p(e)}return e[c].weakData},onFreeze:function(e){return s&&d.REQUIRED&&f(e)&&!a(e,c)&&p(e),e}};r[c]=!0},function(e,t,n){var r=n(12),o=n(38),a=n(14)("species");e.exports=function(e,t){var n,i=r(e).constructor;return void 0===i||null==(n=r(i)[a])?t:o(n)}},function(e,t,n){var r,o,a,i;function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||c(e,t)||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 s(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function c(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}i=function(e){"use strict";var t=/[^.]*(?=\..*)\.|.*/,n=/\..*/,r=/::\d+$/,o={},a=1,i={mouseenter:"mouseover",mouseleave:"mouseout"},c=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function u(e,t){return t&&"".concat(t,"::").concat(a++)||e.uidEvent||a++}function f(e){var t=u(e);return e.uidEvent=t,o[t]=o[t]||{},o[t]}function p(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object.values(e).find((function(e){return e.callable===t&&e.delegationSelector===n}))}function d(e,t,n){var r="string"==typeof t,o=r?n:t||n,a=b(e);return c.has(a)||(a=e),[r,o,a]}function m(e,n,r,o,a){if("string"==typeof n&&e){var c=l(d(n,r,o),3),m=c[0],h=c[1],y=c[2];n in i&&(h=function(e){return function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)}}(h));var b=f(e),w=b[y]||(b[y]={}),E=p(w,h,m?r:null);if(E)E.oneOff=E.oneOff&&a;else{var _=u(h,n.replace(t,"")),k=m?function(e,t,n){return function r(o){for(var a=e.querySelectorAll(t),i=o.target;i&&i!==this;i=i.parentNode){var l,c=s(a);try{for(c.s();!(l=c.n()).done;)if(l.value===i)return g(o,{delegateTarget:i}),r.oneOff&&v.off(e,o.type,t,n),n.apply(i,[o])}catch(e){c.e(e)}finally{c.f()}}}}(e,r,h):function(e,t){return function n(r){return g(r,{delegateTarget:e}),n.oneOff&&v.off(e,r.type,t),t.apply(e,[r])}}(e,h);k.delegationSelector=m?r:null,k.callable=h,k.oneOff=a,k.uidEvent=_,w[_]=k,e.addEventListener(y,k,m)}}}function h(e,t,n,r,o){var a=p(t[n],r,o);a&&(e.removeEventListener(n,a,Boolean(o)),delete t[n][a.uidEvent])}function y(e,t,n,r){for(var o=t[n]||{},a=0,i=Object.entries(o);a<i.length;a++){var s=l(i[a],2),c=s[0],u=s[1];c.includes(r)&&h(e,t,n,u.callable,u.delegationSelector)}}function b(e){return e=e.replace(n,""),i[e]||e}var v={on:function(e,t,n,r){m(e,t,n,r,!1)},one:function(e,t,n,r){m(e,t,n,r,!0)},off:function(e,t,n,o){if("string"==typeof t&&e){var a=l(d(t,n,o),3),i=a[0],s=a[1],c=a[2],u=c!==t,p=f(e),m=p[c]||{},b=t.startsWith(".");if(void 0===s){if(b)for(var v=0,g=Object.keys(p);v<g.length;v++)y(e,p,g[v],t.slice(1));for(var w=0,E=Object.entries(m);w<E.length;w++){var _=l(E[w],2),k=_[0],O=_[1],x=k.replace(r,"");u&&!t.includes(x)||h(e,p,c,O.callable,O.delegationSelector)}}else{if(!Object.keys(m).length)return;h(e,p,c,s,i?n:null)}}},trigger:function(t,n,r){if("string"!=typeof n||!t)return null;var o=e.getjQuery(),a=null,i=!0,l=!0,s=!1;n!==b(n)&&o&&(a=o.Event(n,r),o(t).trigger(a),i=!a.isPropagationStopped(),l=!a.isImmediatePropagationStopped(),s=a.isDefaultPrevented());var c=g(new Event(n,{bubbles:i,cancelable:!0}),r);return s&&c.preventDefault(),l&&t.dispatchEvent(c),c.defaultPrevented&&a&&a.preventDefault(),c}};function g(e){for(var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=function(){var n=a[o],r=(t=l(n,2))[0],i=t[1];try{e[r]=i}catch(t){Object.defineProperty(e,r,{configurable:!0,get:function(){return i}})}},o=0,a=Object.entries(n);o<a.length;o++)r();return e}return v},"object"===f(t)&&void 0!==e?e.exports=i(n(44)):(o=[n(44)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r=n(12),o=n(154);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,a){return r(n),o(a),t?e.call(n,a):n.__proto__=a,n}}():void 0)},function(e,t,n){"use strict";var r=n(42),o=n(18),a=n(14),i=n(15),l=a("species");e.exports=function(e){var t=r(e),n=o.f;i&&t&&!t[l]&&n(t,l,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r=n(26);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},function(e,t,n){var r=n(30),o="["+n(94)+"]",a=RegExp("^"+o+o+"*"),i=RegExp(o+o+"*$"),l=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(a,"")),2&e&&(n=n.replace(i,"")),n}};e.exports={start:l(1),end:l(2),trim:l(3)}},function(e,t){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}e.exports=r},,function(e,t,n){e.exports=n(1688)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReactCSS=t.loop=t.handleActive=t.handleHover=t.hover=void 0;var r=c(n(1691)),o=c(n(1727)),a=c(n(1745)),i=c(n(1746)),l=c(n(1747)),s=c(n(1748));function c(e){return e&&e.__esModule?e:{default:e}}t.hover=i.default,t.handleHover=i.default,t.handleActive=l.default,t.loop=s.default;var u=t.ReactCSS=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var l=(0,r.default)(n),s=(0,o.default)(e,l);return(0,a.default)(s)};t.default=u},function(e,t,n){var r=n(4),o=n(41),a="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?a.call(e,""):Object(e)}:Object},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t){e.exports={}},function(e,t,n){var r=n(4),o=/#|\.prototype\./,a=function(e,t){var n=l[i(e)];return n==c||n!=s&&("function"==typeof t?r(t):!!t)},i=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=a.data={},s=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},function(e,t,n){var r=n(41);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(142),o=n(109);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(11),o=n(75),a=n(14)("species");e.exports=function(e,t){var n;return o(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[a])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){var r=n(4),o=n(14),a=n(112),i=o("species");e.exports=function(e){return a>=51||!r((function(){var t=[];return(t.constructor={})[i]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t){e.exports={}},function(e,t,n){var r=n(81),o=n(79),a=n(14)("iterator");e.exports=function(e){if(null!=e)return e[a]||e["@@iterator"]||o[r(e)]}},function(e,t,n){var r=n(116),o=n(41),a=n(14)("toStringTag"),i="Arguments"==o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),a))?n:i?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},function(e,t,n){var r=n(4);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){var r=n(12),o=n(115),a=n(17),i=n(53),l=n(80),s=n(151),c=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,u,f){var p,d,m,h,y,b,v,g=i(t,n,u?2:1);if(f)p=e;else{if("function"!=typeof(d=l(e)))throw TypeError("Target is not iterable");if(o(d)){for(m=0,h=a(e.length);h>m;m++)if((y=u?g(r(v=e[m])[0],v[1]):g(e[m]))&&y instanceof c)return y;return new c(!1)}p=d.call(e)}for(b=p.next;!(v=b.call(p)).done;)if("object"==typeof(y=s(p,g,v.value,u))&&y&&y instanceof c)return y;return new c(!1)}).stop=function(e){return new c(!0,e)}},function(e,t,n){var r,o,a,i;function l(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}i=function(e){"use strict";var t=function(t){var n=t.getAttribute("data-bs-target");if(!n||"#"===n){var r=t.getAttribute("href");if(!r||!r.includes("#")&&!r.startsWith("."))return null;r.includes("#")&&!r.startsWith("#")&&(r="#".concat(r.split("#")[1])),n=r&&"#"!==r?e.parseSelector(r.trim()):null}return n},n={find:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return(t=[]).concat.apply(t,l(Element.prototype.querySelectorAll.call(n,e)))},findOne:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return Element.prototype.querySelector.call(t,e)},children:function(e,t){var n;return(n=[]).concat.apply(n,l(e.children)).filter((function(e){return e.matches(t)}))},parents:function(e,t){for(var n=[],r=e.parentNode.closest(t);r;)n.push(r),r=r.parentNode.closest(t);return n},prev:function(e,t){for(var n=e.previousElementSibling;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next:function(e,t){for(var n=e.nextElementSibling;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren:function(t){var n=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((function(e){return"".concat(e,':not([tabindex^="-"])')})).join(",");return this.find(n,t).filter((function(t){return!e.isDisabled(t)&&e.isVisible(t)}))},getSelectorFromElement:function(e){var r=t(e);return r&&n.findOne(r)?r:null},getElementFromSelector:function(e){var r=t(e);return r?n.findOne(r):null},getMultipleElementsFromSelector:function(e){var r=t(e);return r?n.find(r):[]}};return n},"object"===c(t)&&void 0!==e?e.exports=i(n(44)):(o=[n(44)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,a=o&&!r.call({1:2},1);t.f=a?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},function(e,t,n){var r=n(107),o=n(72),a=r("keys");e.exports=function(e){return a[e]||(a[e]=o(e))}},function(e,t,n){var r=n(32),o=n(17),a=n(58),i=function(e){return function(t,n,i){var l,s=r(t),c=o(s.length),u=a(i,c);if(e&&n!=n){for(;c>u;)if((l=s[u++])!=l)return!0}else for(;c>u;u++)if((e||u in s)&&s[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},function(e,t,n){var r=n(14)("iterator"),o=!1;try{var a=0,i={next:function(){return{done:!!a++}},return:function(){o=!0}};i[r]=function(){return this},Array.from(i,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var a={};a[r]=function(){return{next:function(){return{done:n=!0}}}},e(a)}catch(e){}return n}},function(e,t,n){"use strict";var r=n(32),o=n(54),a=n(79),i=n(33),l=n(117),s="Array Iterator",c=i.set,u=i.getterFor(s);e.exports=l(Array,"Array",(function(e,t){c(this,{type:s,target:r(e),index:0,kind:t})}),(function(){var e=u(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),a.Arguments=a.Array,o("keys"),o("values"),o("entries")},function(e,t,n){"use strict";var r=n(4);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},function(e,t,n){"use strict";var r=n(2),o=n(6),a=n(74),i=n(26),l=n(60),s=n(83),c=n(55),u=n(11),f=n(4),p=n(88),d=n(48),m=n(92);e.exports=function(e,t,n){var h=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),b=h?"set":"add",v=o[e],g=v&&v.prototype,w=v,E={},_=function(e){var t=g[e];i(g,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(y&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return y&&!u(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(y&&!u(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(a(e,"function"!=typeof v||!(y||g.forEach&&!f((function(){(new v).entries().next()})))))w=n.getConstructor(t,e,h,b),l.REQUIRED=!0;else if(a(e,!0)){var k=new w,O=k[b](y?{}:-0,1)!=k,x=f((function(){k.has(1)})),S=p((function(e){new v(e)})),j=!y&&f((function(){for(var e=new v,t=5;t--;)e[b](t,t);return!e.has(-0)}));S||((w=t((function(t,n){c(t,w,e);var r=m(new v,t,w);return null!=n&&s(n,r[b],r,h),r}))).prototype=g,g.constructor=w),(x||j)&&(_("delete"),_("has"),h&&_("get")),(j||O)&&_(b),y&&g.clear&&delete g.clear}return E[e]=w,r({global:!0,forced:w!=v},E),d(w,e),y||n.setStrong(w,e,h),w}},function(e,t,n){var r=n(11),o=n(63);e.exports=function(e,t,n){var a,i;return o&&"function"==typeof(a=t.constructor)&&a!==n&&r(i=a.prototype)&&i!==n.prototype&&o(e,i),e}},function(e,t){var n=Math.expm1,r=Math.exp;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:r(e)-1}:n},function(e,t){e.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},function(e,t,n){"use strict";var r=n(47),o=n(6),a=n(4);e.exports=r||!a((function(){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete o[e]}))},function(e,t,n){"use strict";var r=n(12);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var r,o,a=n(96),i=n(123),l=RegExp.prototype.exec,s=String.prototype.replace,c=l,u=(r=/a/,o=/b*/g,l.call(r,"a"),l.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),f=i.UNSUPPORTED_Y||i.BROKEN_CARET,p=void 0!==/()??/.exec("")[1];(u||p||f)&&(c=function(e){var t,n,r,o,i=this,c=f&&i.sticky,d=a.call(i),m=i.source,h=0,y=e;return c&&(-1===(d=d.replace("y","")).indexOf("g")&&(d+="g"),y=String(e).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==e[i.lastIndex-1])&&(m="(?: "+m+")",y=" "+y,h++),n=new RegExp("^(?:"+m+")",d)),p&&(n=new RegExp("^"+m+"$(?!\\s)",d)),u&&(t=i.lastIndex),r=l.call(c?n:i,y),c?r?(r.input=r.input.slice(h),r[0]=r[0].slice(h),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:u&&r&&(i.lastIndex=i.global?r.index+r[0].length:t),p&&r&&r.length>1&&s.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),e.exports=c},function(e,t,n){var r=n(37),o=n(30),a=function(e){return function(t,n){var a,i,l=String(o(t)),s=r(n),c=l.length;return s<0||s>=c?e?"":void 0:(a=l.charCodeAt(s))<55296||a>56319||s+1===c||(i=l.charCodeAt(s+1))<56320||i>57343?e?l.charAt(s):a:e?l.slice(s,s+2):i-56320+(a-55296<<10)+65536}};e.exports={codeAt:a(!1),charAt:a(!0)}},function(e,t,n){"use strict";n(169);var r=n(26),o=n(4),a=n(14),i=n(97),l=n(31),s=a("species"),c=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),u="$0"==="a".replace(/./,"$0"),f=a("replace"),p=!!/./[f]&&""===/./[f]("a","$0"),d=!o((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,f){var m=a(e),h=!o((function(){var t={};return t[m]=function(){return 7},7!=""[e](t)})),y=h&&!o((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[s]=function(){return n},n.flags="",n[m]=/./[m]),n.exec=function(){return t=!0,null},n[m](""),!t}));if(!h||!y||"replace"===e&&(!c||!u||p)||"split"===e&&!d){var b=/./[m],v=n(m,""[e],(function(e,t,n,r,o){return t.exec===i?h&&!o?{done:!0,value:b.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),g=v[0],w=v[1];r(String.prototype,e,g),r(RegExp.prototype,m,2==t?function(e,t){return w.call(e,this,t)}:function(e){return w.call(e,this)})}f&&l(RegExp.prototype[m],"sham",!0)}},function(e,t,n){var r=n(41),o=n(97);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var a=n.call(e,t);if("object"!=typeof a)throw TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";var r=n(136);t.a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object(r.a)(t)}},function(e,t){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var s,c=[],u=!1,f=-1;function p(){u&&s&&(u=!1,s.length?c=s.concat(c):f=-1,c.length&&d())}function d(){if(!u){var e=l(p);u=!0;for(var t=c.length;t;){for(s=c,c=[];++f<t;)s&&s[f].run();f=-1,t=c.length}s=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new m(e,t)),1!==c.length||u||l(d)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){var r=n(6),o=n(11),a=r.document,i=o(a)&&o(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},function(e,t,n){var r=n(6),o=n(31);e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(138),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},function(e,t,n){var r=n(47),o=n(138);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var r=n(42),o=n(57),a=n(110),i=n(12);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(i(e)),n=a.f;return n?t.concat(n(e)):t}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(4);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},function(e,t,n){var r,o,a=n(6),i=n(113),l=a.process,s=l&&l.versions,c=s&&s.v8;c?o=(r=c.split("."))[0]+r[1]:i&&(!(r=i.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=i.match(/Chrome\/(\d+)/))&&(o=r[1]),e.exports=o&&+o},function(e,t,n){var r=n(42);e.exports=r("navigator","userAgent")||""},function(e,t,n){"use strict";var r=n(20),o=n(58),a=n(17);e.exports=function(e){for(var t=r(this),n=a(t.length),i=arguments.length,l=o(i>1?arguments[1]:void 0,n),s=i>2?arguments[2]:void 0,c=void 0===s?n:o(s,n);c>l;)t[l++]=e;return t}},function(e,t,n){var r=n(14),o=n(79),a=r("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||i[a]===e)}},function(e,t,n){var r={};r[n(14)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){"use strict";var r=n(2),o=n(152),a=n(43),i=n(63),l=n(48),s=n(31),c=n(26),u=n(14),f=n(47),p=n(79),d=n(153),m=d.IteratorPrototype,h=d.BUGGY_SAFARI_ITERATORS,y=u("iterator"),b="keys",v="values",g="entries",w=function(){return this};e.exports=function(e,t,n,u,d,E,_){o(n,t,u);var k,O,x,S=function(e){if(e===d&&P)return P;if(!h&&e in D)return D[e];switch(e){case b:case v:case g:return function(){return new n(this,e)}}return function(){return new n(this)}},j=t+" Iterator",C=!1,D=e.prototype,N=D[y]||D["@@iterator"]||d&&D[d],P=!h&&N||S(d),T="Array"==t&&D.entries||N;if(T&&(k=a(T.call(new e)),m!==Object.prototype&&k.next&&(f||a(k)===m||(i?i(k,m):"function"!=typeof k[y]&&s(k,y,w)),l(k,j,!0,!0),f&&(p[j]=w))),d==v&&N&&N.name!==v&&(C=!0,P=function(){return N.call(this)}),f&&!_||D[y]===P||s(D,y,P),p[t]=P,d)if(O={values:S(v),keys:E?P:S(b),entries:S(g)},_)for(x in O)(h||C||!(x in D))&&c(D,x,O[x]);else r({target:t,proto:!0,forced:h||C},O);return O}},function(e,t,n){var r=n(4);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t,n){"use strict";var r=n(37),o=n(30);e.exports="".repeat||function(e){var t=String(o(this)),n="",a=r(e);if(a<0||a==1/0)throw RangeError("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(t+=t))1&a&&(n+=t);return n}},function(e,t,n){var r,o,a,i=n(6),l=n(4),s=n(41),c=n(53),u=n(145),f=n(104),p=n(165),d=i.location,m=i.setImmediate,h=i.clearImmediate,y=i.process,b=i.MessageChannel,v=i.Dispatch,g=0,w={},E="onreadystatechange",_=function(e){if(w.hasOwnProperty(e)){var t=w[e];delete w[e],t()}},k=function(e){return function(){_(e)}},O=function(e){_(e.data)},x=function(e){i.postMessage(e+"",d.protocol+"//"+d.host)};m&&h||(m=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return w[++g]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(g),g},h=function(e){delete w[e]},"process"==s(y)?r=function(e){y.nextTick(k(e))}:v&&v.now?r=function(e){v.now(k(e))}:b&&!p?(a=(o=new b).port2,o.port1.onmessage=O,r=c(a.postMessage,a,1)):!i.addEventListener||"function"!=typeof postMessage||i.importScripts||l(x)||"file:"===d.protocol?r=E in f("script")?function(e){u.appendChild(f("script"))[E]=function(){u.removeChild(this),_(e)}}:function(e){setTimeout(k(e),0)}:(r=x,i.addEventListener("message",O,!1))),e.exports={set:m,clear:h}},function(e,t,n){var r=n(11),o=n(41),a=n(14)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==o(e))}},function(e,t,n){"use strict";var r=n(4);function o(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},function(e,t,n){var r=n(122);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,n){var r=n(14)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},function(e,t,n){"use strict";var r=n(98).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){var r=n(4),o=n(94);e.exports=function(e){return r((function(){return!!o[e]()||"​᠎"!="​᠎"[e]()||o[e].name!==e}))}},function(e,t,n){var r=n(6),o=n(4),a=n(88),i=n(16).NATIVE_ARRAY_BUFFER_VIEWS,l=r.ArrayBuffer,s=r.Int8Array;e.exports=!i||!o((function(){s(1)}))||!o((function(){new s(-1)}))||!a((function(e){new s,new s(null),new s(1.5),new s(e)}),!0)||o((function(){return 1!==new s(new l(2),1,void 0).length}))},function(e,t,n){(function(e){var n;function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}!function(t,n){"use strict";"object"===r(e)&&"object"===r(e.exports)?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(o,a){"use strict";var i=[],l=Object.getPrototypeOf,s=i.slice,c=i.flat?function(e){return i.flat.call(e)}:function(e){return i.concat.apply([],e)},u=i.push,f=i.indexOf,p={},d=p.toString,m=p.hasOwnProperty,h=m.toString,y=h.call(Object),b={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},g=function(e){return null!=e&&e===e.window},w=o.document,E={type:!0,src:!0,nonce:!0,noModule:!0};function _(e,t,n){var r,o,a=(n=n||w).createElement("script");if(a.text=e,t)for(r in E)(o=t[r]||t.getAttribute&&t.getAttribute(r))&&a.setAttribute(r,o);n.head.appendChild(a).parentNode.removeChild(a)}function k(e){return null==e?e+"":"object"===r(e)||"function"==typeof e?p[d.call(e)]||"object":r(e)}var O="3.5.1",x=function e(t,n){return new e.fn.init(t,n)};function S(e){var t=!!e&&"length"in e&&e.length,n=k(e);return!v(e)&&!g(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}x.fn=x.prototype={jquery:O,constructor:x,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return x.each(this,e)},map:function(e){return this.pushStack(x.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(x.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(x.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:i.sort,splice:i.splice},x.extend=x.fn.extend=function(){var e,t,n,o,a,i,l=arguments[0]||{},s=1,c=arguments.length,u=!1;for("boolean"==typeof l&&(u=l,l=arguments[s]||{},s++),"object"===r(l)||v(l)||(l={}),s===c&&(l=this,s--);s<c;s++)if(null!=(e=arguments[s]))for(t in e)o=e[t],"__proto__"!==t&&l!==o&&(u&&o&&(x.isPlainObject(o)||(a=Array.isArray(o)))?(n=l[t],i=a&&!Array.isArray(n)?[]:a||x.isPlainObject(n)?n:{},a=!1,l[t]=x.extend(u,i,o)):void 0!==o&&(l[t]=o));return l},x.extend({expando:"jQuery"+(O+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==d.call(e))&&(!(t=l(e))||"function"==typeof(n=m.call(t,"constructor")&&t.constructor)&&h.call(n)===y)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){_(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(S(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(S(Object(e))?x.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:f.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,o=e.length;r<n;r++)e[o++]=t[r];return e.length=o,e},grep:function(e,t,n){for(var r=[],o=0,a=e.length,i=!n;o<a;o++)!t(e[o],o)!==i&&r.push(e[o]);return r},map:function(e,t,n){var r,o,a=0,i=[];if(S(e))for(r=e.length;a<r;a++)null!=(o=t(e[a],a,n))&&i.push(o);else for(a in e)null!=(o=t(e[a],a,n))&&i.push(o);return c(i)},guid:1,support:b}),"function"==typeof Symbol&&(x.fn[Symbol.iterator]=i[Symbol.iterator]),x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){p["[object "+t+"]"]=t.toLowerCase()}));var j=function(e){var t,n,r,o,a,i,l,s,c,u,f,p,d,m,h,y,b,v,g,w="sizzle"+1*new Date,E=e.document,_=0,k=0,O=se(),x=se(),S=se(),j=se(),C=function(e,t){return e===t&&(f=!0),0},D={}.hasOwnProperty,N=[],P=N.pop,T=N.push,M=N.push,A=N.slice,L=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",F="[\\x20\\t\\r\\n\\f]",z="(?:\\\\[\\da-fA-F]{1,6}"+F+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",B="\\["+F+"*("+z+")(?:"+F+"*([*^$|!~]?=)"+F+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+z+"))|)"+F+"*\\]",Y=":("+z+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+B+")*)|.*)\\)|)",I=new RegExp(F+"+","g"),H=new RegExp("^"+F+"+|((?:^|[^\\\\])(?:\\\\.)*)"+F+"+$","g"),U=new RegExp("^"+F+"*,"+F+"*"),W=new RegExp("^"+F+"*([>+~]|"+F+")"+F+"*"),V=new RegExp(F+"|>"),q=new RegExp(Y),G=new RegExp("^"+z+"$"),K={ID:new RegExp("^#("+z+")"),CLASS:new RegExp("^\\.("+z+")"),TAG:new RegExp("^("+z+"|[*])"),ATTR:new RegExp("^"+B),PSEUDO:new RegExp("^"+Y),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+F+"*(even|odd|(([+-]|)(\\d*)n|)"+F+"*(?:([+-]|)"+F+"*(\\d+)|))"+F+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+F+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+F+"*((?:-\\d)?\\d*)"+F+"*\\)|)(?=[^-]|$)","i")},$=/HTML$/i,J=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+F+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ae=function(){p()},ie=we((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{M.apply(N=A.call(E.childNodes),E.childNodes),N[E.childNodes.length].nodeType}catch(e){M={apply:N.length?function(e,t){T.apply(e,A.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function le(e,t,r,o){var a,l,c,u,f,m,b,v=t&&t.ownerDocument,E=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==E&&9!==E&&11!==E)return r;if(!o&&(p(t),t=t||d,h)){if(11!==E&&(f=Z.exec(e)))if(a=f[1]){if(9===E){if(!(c=t.getElementById(a)))return r;if(c.id===a)return r.push(c),r}else if(v&&(c=v.getElementById(a))&&g(t,c)&&c.id===a)return r.push(c),r}else{if(f[2])return M.apply(r,t.getElementsByTagName(e)),r;if((a=f[3])&&n.getElementsByClassName&&t.getElementsByClassName)return M.apply(r,t.getElementsByClassName(a)),r}if(n.qsa&&!j[e+" "]&&(!y||!y.test(e))&&(1!==E||"object"!==t.nodeName.toLowerCase())){if(b=e,v=t,1===E&&(V.test(e)||W.test(e))){for((v=ee.test(e)&&be(t.parentNode)||t)===t&&n.scope||((u=t.getAttribute("id"))?u=u.replace(re,oe):t.setAttribute("id",u=w)),l=(m=i(e)).length;l--;)m[l]=(u?"#"+u:":scope")+" "+ge(m[l]);b=m.join(",")}try{return M.apply(r,v.querySelectorAll(b)),r}catch(t){j(e,!0)}finally{u===w&&t.removeAttribute("id")}}}return s(e.replace(H,"$1"),t,r,o)}function se(){var e=[];return function t(n,o){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function ce(e){return e[w]=!0,e}function ue(e){var t=d.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){for(var n=e.split("|"),o=n.length;o--;)r.attrHandle[n[o]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function de(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function me(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function he(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ie(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ye(e){return ce((function(t){return t=+t,ce((function(n,r){for(var o,a=e([],n.length,t),i=a.length;i--;)n[o=a[i]]&&(n[o]=!(r[o]=n[o]))}))}))}function be(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=le.support={},a=le.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!$.test(t||n&&n.nodeName||"HTML")},p=le.setDocument=function(e){var t,o,i=e?e.ownerDocument||e:E;return i!=d&&9===i.nodeType&&i.documentElement?(m=(d=i).documentElement,h=!a(d),E!=d&&(o=d.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",ae,!1):o.attachEvent&&o.attachEvent("onunload",ae)),n.scope=ue((function(e){return m.appendChild(e).appendChild(d.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ue((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ue((function(e){return e.appendChild(d.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=Q.test(d.getElementsByClassName),n.getById=ue((function(e){return m.appendChild(e).id=w,!d.getElementsByName||!d.getElementsByName(w).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&h){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&h){var n,r,o,a=t.getElementById(e);if(a){if((n=a.getAttributeNode("id"))&&n.value===e)return[a];for(o=t.getElementsByName(e),r=0;a=o[r++];)if((n=a.getAttributeNode("id"))&&n.value===e)return[a]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],o=0,a=t.getElementsByTagName(e);if("*"===e){for(;n=a[o++];)1===n.nodeType&&r.push(n);return r}return a},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&h)return t.getElementsByClassName(e)},b=[],y=[],(n.qsa=Q.test(d.querySelectorAll))&&(ue((function(e){var t;m.appendChild(e).innerHTML="<a id='"+w+"'></a><select id='"+w+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&y.push("[*^$]="+F+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||y.push("\\["+F+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+w+"-]").length||y.push("~="),(t=d.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||y.push("\\["+F+"*name"+F+"*="+F+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||y.push(":checked"),e.querySelectorAll("a#"+w+"+*").length||y.push(".#.+[+~]"),e.querySelectorAll("\\\f"),y.push("[\\r\\n\\f]")})),ue((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=d.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&y.push("name"+F+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&y.push(":enabled",":disabled"),m.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&y.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),y.push(",.*:")}))),(n.matchesSelector=Q.test(v=m.matches||m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&ue((function(e){n.disconnectedMatch=v.call(e,"*"),v.call(e,"[s!='']:x"),b.push("!=",Y)})),y=y.length&&new RegExp(y.join("|")),b=b.length&&new RegExp(b.join("|")),t=Q.test(m.compareDocumentPosition),g=t||Q.test(m.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},C=t?function(e,t){if(e===t)return f=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==d||e.ownerDocument==E&&g(E,e)?-1:t==d||t.ownerDocument==E&&g(E,t)?1:u?L(u,e)-L(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,o=e.parentNode,a=t.parentNode,i=[e],l=[t];if(!o||!a)return e==d?-1:t==d?1:o?-1:a?1:u?L(u,e)-L(u,t):0;if(o===a)return pe(e,t);for(n=e;n=n.parentNode;)i.unshift(n);for(n=t;n=n.parentNode;)l.unshift(n);for(;i[r]===l[r];)r++;return r?pe(i[r],l[r]):i[r]==E?-1:l[r]==E?1:0},d):d},le.matches=function(e,t){return le(e,null,null,t)},le.matchesSelector=function(e,t){if(p(e),n.matchesSelector&&h&&!j[t+" "]&&(!b||!b.test(t))&&(!y||!y.test(t)))try{var r=v.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){j(t,!0)}return le(t,d,null,[e]).length>0},le.contains=function(e,t){return(e.ownerDocument||e)!=d&&p(e),g(e,t)},le.attr=function(e,t){(e.ownerDocument||e)!=d&&p(e);var o=r.attrHandle[t.toLowerCase()],a=o&&D.call(r.attrHandle,t.toLowerCase())?o(e,t,!h):void 0;return void 0!==a?a:n.attributes||!h?e.getAttribute(t):(a=e.getAttributeNode(t))&&a.specified?a.value:null},le.escape=function(e){return(e+"").replace(re,oe)},le.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},le.uniqueSort=function(e){var t,r=[],o=0,a=0;if(f=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(C),f){for(;t=e[a++];)t===e[a]&&(o=r.push(a));for(;o--;)e.splice(r[o],1)}return u=null,e},o=le.getText=function(e){var t,n="",r=0,a=e.nodeType;if(a){if(1===a||9===a||11===a){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===a||4===a)return e.nodeValue}else for(;t=e[r++];)n+=o(t);return n},r=le.selectors={cacheLength:50,createPseudo:ce,match:K,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||le.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&le.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return K.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&q.test(n)&&(t=i(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=O[e+" "];return t||(t=new RegExp("(^|"+F+")"+e+"("+F+"|$)"))&&O(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var o=le.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o.replace(I," ")+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,o){var a="nth"!==e.slice(0,3),i="last"!==e.slice(-4),l="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,s){var c,u,f,p,d,m,h=a!==i?"nextSibling":"previousSibling",y=t.parentNode,b=l&&t.nodeName.toLowerCase(),v=!s&&!l,g=!1;if(y){if(a){for(;h;){for(p=t;p=p[h];)if(l?p.nodeName.toLowerCase()===b:1===p.nodeType)return!1;m=h="only"===e&&!m&&"nextSibling"}return!0}if(m=[i?y.firstChild:y.lastChild],i&&v){for(g=(d=(c=(u=(f=(p=y)[w]||(p[w]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===_&&c[1])&&c[2],p=d&&y.childNodes[d];p=++d&&p&&p[h]||(g=d=0)||m.pop();)if(1===p.nodeType&&++g&&p===t){u[e]=[_,d,g];break}}else if(v&&(g=d=(c=(u=(f=(p=t)[w]||(p[w]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===_&&c[1]),!1===g)for(;(p=++d&&p&&p[h]||(g=d=0)||m.pop())&&((l?p.nodeName.toLowerCase()!==b:1!==p.nodeType)||!++g||(v&&((u=(f=p[w]||(p[w]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]=[_,g]),p!==t)););return(g-=o)===r||g%r==0&&g/r>=0}}},PSEUDO:function(e,t){var n,o=r.pseudos[e]||r.setFilters[e.toLowerCase()]||le.error("unsupported pseudo: "+e);return o[w]?o(t):o.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ce((function(e,n){for(var r,a=o(e,t),i=a.length;i--;)e[r=L(e,a[i])]=!(n[r]=a[i])})):function(e){return o(e,0,n)}):o}},pseudos:{not:ce((function(e){var t=[],n=[],r=l(e.replace(H,"$1"));return r[w]?ce((function(e,t,n,o){for(var a,i=r(e,null,o,[]),l=e.length;l--;)(a=i[l])&&(e[l]=!(t[l]=a))})):function(e,o,a){return t[0]=e,r(t,null,a,n),t[0]=null,!n.pop()}})),has:ce((function(e){return function(t){return le(e,t).length>0}})),contains:ce((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||o(t)).indexOf(e)>-1}})),lang:ce((function(e){return G.test(e||"")||le.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===m},focus:function(e){return e===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:he(!1),disabled:he(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return X.test(e.nodeName)},input:function(e){return J.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ye((function(){return[0]})),last:ye((function(e,t){return[t-1]})),eq:ye((function(e,t,n){return[n<0?n+t:n]})),even:ye((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ye((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ye((function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:ye((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}},r.pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=de(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=me(t);function ve(){}function ge(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function we(e,t,n){var r=t.dir,o=t.next,a=o||r,i=n&&"parentNode"===a,l=k++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||i)return e(t,n,o);return!1}:function(t,n,s){var c,u,f,p=[_,l];if(s){for(;t=t[r];)if((1===t.nodeType||i)&&e(t,n,s))return!0}else for(;t=t[r];)if(1===t.nodeType||i)if(u=(f=t[w]||(t[w]={}))[t.uniqueID]||(f[t.uniqueID]={}),o&&o===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=u[a])&&c[0]===_&&c[1]===l)return p[2]=c[2];if(u[a]=p,p[2]=e(t,n,s))return!0}return!1}}function Ee(e){return e.length>1?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function _e(e,t,n,r,o){for(var a,i=[],l=0,s=e.length,c=null!=t;l<s;l++)(a=e[l])&&(n&&!n(a,r,o)||(i.push(a),c&&t.push(l)));return i}function ke(e,t,n,r,o,a){return r&&!r[w]&&(r=ke(r)),o&&!o[w]&&(o=ke(o,a)),ce((function(a,i,l,s){var c,u,f,p=[],d=[],m=i.length,h=a||function(e,t,n){for(var r=0,o=t.length;r<o;r++)le(e,t[r],n);return n}(t||"*",l.nodeType?[l]:l,[]),y=!e||!a&&t?h:_e(h,p,e,l,s),b=n?o||(a?e:m||r)?[]:i:y;if(n&&n(y,b,l,s),r)for(c=_e(b,d),r(c,[],l,s),u=c.length;u--;)(f=c[u])&&(b[d[u]]=!(y[d[u]]=f));if(a){if(o||e){if(o){for(c=[],u=b.length;u--;)(f=b[u])&&c.push(y[u]=f);o(null,b=[],c,s)}for(u=b.length;u--;)(f=b[u])&&(c=o?L(a,f):p[u])>-1&&(a[c]=!(i[c]=f))}}else b=_e(b===i?b.splice(m,b.length):b),o?o(null,i,b,s):M.apply(i,b)}))}function Oe(e){for(var t,n,o,a=e.length,i=r.relative[e[0].type],l=i||r.relative[" "],s=i?1:0,u=we((function(e){return e===t}),l,!0),f=we((function(e){return L(t,e)>-1}),l,!0),p=[function(e,n,r){var o=!i&&(r||n!==c)||((t=n).nodeType?u(e,n,r):f(e,n,r));return t=null,o}];s<a;s++)if(n=r.relative[e[s].type])p=[we(Ee(p),n)];else{if((n=r.filter[e[s].type].apply(null,e[s].matches))[w]){for(o=++s;o<a&&!r.relative[e[o].type];o++);return ke(s>1&&Ee(p),s>1&&ge(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(H,"$1"),n,s<o&&Oe(e.slice(s,o)),o<a&&Oe(e=e.slice(o)),o<a&&ge(e))}p.push(n)}return Ee(p)}return ve.prototype=r.filters=r.pseudos,r.setFilters=new ve,i=le.tokenize=function(e,t){var n,o,a,i,l,s,c,u=x[e+" "];if(u)return t?0:u.slice(0);for(l=e,s=[],c=r.preFilter;l;){for(i in n&&!(o=U.exec(l))||(o&&(l=l.slice(o[0].length)||l),s.push(a=[])),n=!1,(o=W.exec(l))&&(n=o.shift(),a.push({value:n,type:o[0].replace(H," ")}),l=l.slice(n.length)),r.filter)!(o=K[i].exec(l))||c[i]&&!(o=c[i](o))||(n=o.shift(),a.push({value:n,type:i,matches:o}),l=l.slice(n.length));if(!n)break}return t?l.length:l?le.error(e):x(e,s).slice(0)},l=le.compile=function(e,t){var n,o=[],a=[],l=S[e+" "];if(!l){for(t||(t=i(e)),n=t.length;n--;)(l=Oe(t[n]))[w]?o.push(l):a.push(l);l=S(e,function(e,t){var n=t.length>0,o=e.length>0,a=function(a,i,l,s,u){var f,m,y,b=0,v="0",g=a&&[],w=[],E=c,k=a||o&&r.find.TAG("*",u),O=_+=null==E?1:Math.random()||.1,x=k.length;for(u&&(c=i==d||i||u);v!==x&&null!=(f=k[v]);v++){if(o&&f){for(m=0,i||f.ownerDocument==d||(p(f),l=!h);y=e[m++];)if(y(f,i||d,l)){s.push(f);break}u&&(_=O)}n&&((f=!y&&f)&&b--,a&&g.push(f))}if(b+=v,n&&v!==b){for(m=0;y=t[m++];)y(g,w,i,l);if(a){if(b>0)for(;v--;)g[v]||w[v]||(w[v]=P.call(s));w=_e(w)}M.apply(s,w),u&&!a&&w.length>0&&b+t.length>1&&le.uniqueSort(s)}return u&&(_=O,c=E),g};return n?ce(a):a}(a,o)),l.selector=e}return l},s=le.select=function(e,t,n,o){var a,s,c,u,f,p="function"==typeof e&&e,d=!o&&i(e=p.selector||e);if(n=n||[],1===d.length){if((s=d[0]=d[0].slice(0)).length>2&&"ID"===(c=s[0]).type&&9===t.nodeType&&h&&r.relative[s[1].type]){if(!(t=(r.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(s.shift().value.length)}for(a=K.needsContext.test(e)?0:s.length;a--&&(c=s[a],!r.relative[u=c.type]);)if((f=r.find[u])&&(o=f(c.matches[0].replace(te,ne),ee.test(s[0].type)&&be(t.parentNode)||t))){if(s.splice(a,1),!(e=o.length&&ge(s)))return M.apply(n,o),n;break}}return(p||l(e,d))(o,t,!h,n,!t||ee.test(e)&&be(t.parentNode)||t),n},n.sortStable=w.split("").sort(C).join("")===w,n.detectDuplicates=!!f,p(),n.sortDetached=ue((function(e){return 1&e.compareDocumentPosition(d.createElement("fieldset"))})),ue((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||fe("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ue((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||fe("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ue((function(e){return null==e.getAttribute("disabled")}))||fe(R,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),le}(o);x.find=j,x.expr=j.selectors,x.expr[":"]=x.expr.pseudos,x.uniqueSort=x.unique=j.uniqueSort,x.text=j.getText,x.isXMLDoc=j.isXML,x.contains=j.contains,x.escapeSelector=j.escape;var C=function(e,t,n){for(var r=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&x(e).is(n))break;r.push(e)}return r},D=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},N=x.expr.match.needsContext;function P(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var T=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function M(e,t,n){return v(t)?x.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?x.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?x.grep(e,(function(e){return f.call(t,e)>-1!==n})):x.filter(t,e,n)}x.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?x.find.matchesSelector(r,e)?[r]:[]:x.find.matches(e,x.grep(t,(function(e){return 1===e.nodeType})))},x.fn.extend({find:function(e){var t,n,r=this.length,o=this;if("string"!=typeof e)return this.pushStack(x(e).filter((function(){for(t=0;t<r;t++)if(x.contains(o[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)x.find(e,o[t],n);return r>1?x.uniqueSort(n):n},filter:function(e){return this.pushStack(M(this,e||[],!1))},not:function(e){return this.pushStack(M(this,e||[],!0))},is:function(e){return!!M(this,"string"==typeof e&&N.test(e)?x(e):e||[],!1).length}});var A,L=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.fn.init=function(e,t,n){var r,o;if(!e)return this;if(n=n||A,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:L.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof x?t[0]:t,x.merge(this,x.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:w,!0)),T.test(r[1])&&x.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(o=w.getElementById(r[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(x):x.makeArray(e,this)}).prototype=x.fn,A=x(w);var R=/^(?:parents|prev(?:Until|All))/,F={children:!0,contents:!0,next:!0,prev:!0};function z(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}x.fn.extend({has:function(e){var t=x(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(x.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,o=this.length,a=[],i="string"!=typeof e&&x(e);if(!N.test(e))for(;r<o;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(i?i.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,e))){a.push(n);break}return this.pushStack(a.length>1?x.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?f.call(x(e),this[0]):f.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return C(e,"parentNode")},parentsUntil:function(e,t,n){return C(e,"parentNode",n)},next:function(e){return z(e,"nextSibling")},prev:function(e){return z(e,"previousSibling")},nextAll:function(e){return C(e,"nextSibling")},prevAll:function(e){return C(e,"previousSibling")},nextUntil:function(e,t,n){return C(e,"nextSibling",n)},prevUntil:function(e,t,n){return C(e,"previousSibling",n)},siblings:function(e){return D((e.parentNode||{}).firstChild,e)},children:function(e){return D(e.firstChild)},contents:function(e){return null!=e.contentDocument&&l(e.contentDocument)?e.contentDocument:(P(e,"template")&&(e=e.content||e),x.merge([],e.childNodes))}},(function(e,t){x.fn[e]=function(n,r){var o=x.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(o=x.filter(r,o)),this.length>1&&(F[e]||x.uniqueSort(o),R.test(e)&&o.reverse()),this.pushStack(o)}}));var B=/[^\x20\t\r\n\f]+/g;function Y(e){return e}function I(e){throw e}function H(e,t,n,r){var o;try{e&&v(o=e.promise)?o.call(e).done(t).fail(n):e&&v(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}x.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return x.each(e.match(B)||[],(function(e,n){t[n]=!0})),t}(e):x.extend({},e);var t,n,r,o,a=[],i=[],l=-1,s=function(){for(o=o||e.once,r=t=!0;i.length;l=-1)for(n=i.shift();++l<a.length;)!1===a[l].apply(n[0],n[1])&&e.stopOnFalse&&(l=a.length,n=!1);e.memory||(n=!1),t=!1,o&&(a=n?[]:"")},c={add:function(){return a&&(n&&!t&&(l=a.length-1,i.push(n)),function t(n){x.each(n,(function(n,r){v(r)?e.unique&&c.has(r)||a.push(r):r&&r.length&&"string"!==k(r)&&t(r)}))}(arguments),n&&!t&&s()),this},remove:function(){return x.each(arguments,(function(e,t){for(var n;(n=x.inArray(t,a,n))>-1;)a.splice(n,1),n<=l&&l--})),this},has:function(e){return e?x.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return o=i=[],a=n="",this},disabled:function(){return!a},lock:function(){return o=i=[],n||t||(a=n=""),this},locked:function(){return!!o},fireWith:function(e,n){return o||(n=[e,(n=n||[]).slice?n.slice():n],i.push(n),t||s()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},x.extend({Deferred:function(e){var t=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],n="pending",a={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},catch:function(e){return a.then(null,e)},pipe:function(){var e=arguments;return x.Deferred((function(n){x.each(t,(function(t,r){var o=v(e[r[4]])&&e[r[4]];i[r[1]]((function(){var e=o&&o.apply(this,arguments);e&&v(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,o?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,a){var i=0;function l(e,t,n,a){return function(){var s=this,c=arguments,u=function(){var o,u;if(!(e<i)){if((o=n.apply(s,c))===t.promise())throw new TypeError("Thenable self-resolution");u=o&&("object"===r(o)||"function"==typeof o)&&o.then,v(u)?a?u.call(o,l(i,t,Y,a),l(i,t,I,a)):(i++,u.call(o,l(i,t,Y,a),l(i,t,I,a),l(i,t,Y,t.notifyWith))):(n!==Y&&(s=void 0,c=[o]),(a||t.resolveWith)(s,c))}},f=a?u:function(){try{u()}catch(r){x.Deferred.exceptionHook&&x.Deferred.exceptionHook(r,f.stackTrace),e+1>=i&&(n!==I&&(s=void 0,c=[r]),t.rejectWith(s,c))}};e?f():(x.Deferred.getStackHook&&(f.stackTrace=x.Deferred.getStackHook()),o.setTimeout(f))}}return x.Deferred((function(r){t[0][3].add(l(0,r,v(a)?a:Y,r.notifyWith)),t[1][3].add(l(0,r,v(e)?e:Y)),t[2][3].add(l(0,r,v(n)?n:I))})).promise()},promise:function(e){return null!=e?x.extend(e,a):a}},i={};return x.each(t,(function(e,r){var o=r[2],l=r[5];a[r[1]]=o.add,l&&o.add((function(){n=l}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),o.add(r[3].fire),i[r[0]]=function(){return i[r[0]+"With"](this===i?void 0:this,arguments),this},i[r[0]+"With"]=o.fireWith})),a.promise(i),e&&e.call(i,i),i},when:function(e){var t=arguments.length,n=t,r=Array(n),o=s.call(arguments),a=x.Deferred(),i=function(e){return function(n){r[e]=this,o[e]=arguments.length>1?s.call(arguments):n,--t||a.resolveWith(r,o)}};if(t<=1&&(H(e,a.done(i(n)).resolve,a.reject,!t),"pending"===a.state()||v(o[n]&&o[n].then)))return a.then();for(;n--;)H(o[n],i(n),a.reject);return a.promise()}});var U=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(e,t){o.console&&o.console.warn&&e&&U.test(e.name)&&o.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},x.readyException=function(e){o.setTimeout((function(){throw e}))};var W=x.Deferred();function V(){w.removeEventListener("DOMContentLoaded",V),o.removeEventListener("load",V),x.ready()}x.fn.ready=function(e){return W.then(e).catch((function(e){x.readyException(e)})),this},x.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--x.readyWait:x.isReady)||(x.isReady=!0,!0!==e&&--x.readyWait>0||W.resolveWith(w,[x]))}}),x.ready.then=W.then,"complete"===w.readyState||"loading"!==w.readyState&&!w.documentElement.doScroll?o.setTimeout(x.ready):(w.addEventListener("DOMContentLoaded",V),o.addEventListener("load",V));var q=function e(t,n,r,o,a,i,l){var s=0,c=t.length,u=null==r;if("object"===k(r))for(s in a=!0,r)e(t,n,s,r[s],!0,i,l);else if(void 0!==o&&(a=!0,v(o)||(l=!0),u&&(l?(n.call(t,o),n=null):(u=n,n=function(e,t,n){return u.call(x(e),n)})),n))for(;s<c;s++)n(t[s],r,l?o:o.call(t[s],s,n(t[s],r)));return a?t:u?n.call(t):c?n(t[0],r):i},G=/^-ms-/,K=/-([a-z])/g;function $(e,t){return t.toUpperCase()}function J(e){return e.replace(G,"ms-").replace(K,$)}var X=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function Q(){this.expando=x.expando+Q.uid++}Q.uid=1,Q.prototype={cache:function(e){var t=e[this.expando];return t||(t={},X(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,o=this.cache(e);if("string"==typeof t)o[J(t)]=n;else for(r in t)o[J(r)]=t[r];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][J(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(J):(t=J(t))in r?[t]:t.match(B)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||x.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!x.isEmptyObject(t)}};var Z=new Q,ee=new Q,te=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ne=/[A-Z]/g;function re(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ne,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:te.test(e)?JSON.parse(e):e)}(n)}catch(e){}ee.set(e,t,n)}else n=void 0;return n}x.extend({hasData:function(e){return ee.hasData(e)||Z.hasData(e)},data:function(e,t,n){return ee.access(e,t,n)},removeData:function(e,t){ee.remove(e,t)},_data:function(e,t,n){return Z.access(e,t,n)},_removeData:function(e,t){Z.remove(e,t)}}),x.fn.extend({data:function(e,t){var n,o,a,i=this[0],l=i&&i.attributes;if(void 0===e){if(this.length&&(a=ee.get(i),1===i.nodeType&&!Z.get(i,"hasDataAttrs"))){for(n=l.length;n--;)l[n]&&0===(o=l[n].name).indexOf("data-")&&(o=J(o.slice(5)),re(i,o,a[o]));Z.set(i,"hasDataAttrs",!0)}return a}return"object"===r(e)?this.each((function(){ee.set(this,e)})):q(this,(function(t){var n;if(i&&void 0===t)return void 0!==(n=ee.get(i,e))||void 0!==(n=re(i,e))?n:void 0;this.each((function(){ee.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){ee.remove(this,e)}))}}),x.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Z.get(e,t),n&&(!r||Array.isArray(n)?r=Z.access(e,t,x.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),r=n.length,o=n.shift(),a=x._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),r--),o&&("fx"===t&&n.unshift("inprogress"),delete a.stop,o.call(e,(function(){x.dequeue(e,t)}),a)),!r&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Z.get(e,n)||Z.access(e,n,{empty:x.Callbacks("once memory").add((function(){Z.remove(e,[t+"queue",n])}))})}}),x.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?x.queue(this[0],e):void 0===t?this:this.each((function(){var n=x.queue(this,e,t);x._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&x.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){x.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,o=x.Deferred(),a=this,i=this.length,l=function(){--r||o.resolveWith(a,[a])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";i--;)(n=Z.get(a[i],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(l));return l(),o.promise(t)}});var oe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ae=new RegExp("^(?:([+-])=|)("+oe+")([a-z%]*)$","i"),ie=["Top","Right","Bottom","Left"],le=w.documentElement,se=function(e){return x.contains(e.ownerDocument,e)},ce={composed:!0};le.getRootNode&&(se=function(e){return x.contains(e.ownerDocument,e)||e.getRootNode(ce)===e.ownerDocument});var ue=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&se(e)&&"none"===x.css(e,"display")};function fe(e,t,n,r){var o,a,i=20,l=r?function(){return r.cur()}:function(){return x.css(e,t,"")},s=l(),c=n&&n[3]||(x.cssNumber[t]?"":"px"),u=e.nodeType&&(x.cssNumber[t]||"px"!==c&&+s)&&ae.exec(x.css(e,t));if(u&&u[3]!==c){for(s/=2,c=c||u[3],u=+s||1;i--;)x.style(e,t,u+c),(1-a)*(1-(a=l()/s||.5))<=0&&(i=0),u/=a;u*=2,x.style(e,t,u+c),n=n||[]}return n&&(u=+u||+s||0,o=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=u,r.end=o)),o}var pe={};function de(e){var t,n=e.ownerDocument,r=e.nodeName,o=pe[r];return o||(t=n.body.appendChild(n.createElement(r)),o=x.css(t,"display"),t.parentNode.removeChild(t),"none"===o&&(o="block"),pe[r]=o,o)}function me(e,t){for(var n,r,o=[],a=0,i=e.length;a<i;a++)(r=e[a]).style&&(n=r.style.display,t?("none"===n&&(o[a]=Z.get(r,"display")||null,o[a]||(r.style.display="")),""===r.style.display&&ue(r)&&(o[a]=de(r))):"none"!==n&&(o[a]="none",Z.set(r,"display",n)));for(a=0;a<i;a++)null!=o[a]&&(e[a].style.display=o[a]);return e}x.fn.extend({show:function(){return me(this,!0)},hide:function(){return me(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ue(this)?x(this).show():x(this).hide()}))}});var he,ye,be=/^(?:checkbox|radio)$/i,ve=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ge=/^$|^module$|\/(?:java|ecma)script/i;he=w.createDocumentFragment().appendChild(w.createElement("div")),(ye=w.createElement("input")).setAttribute("type","radio"),ye.setAttribute("checked","checked"),ye.setAttribute("name","t"),he.appendChild(ye),b.checkClone=he.cloneNode(!0).cloneNode(!0).lastChild.checked,he.innerHTML="<textarea>x</textarea>",b.noCloneChecked=!!he.cloneNode(!0).lastChild.defaultValue,he.innerHTML="<option></option>",b.option=!!he.lastChild;var we={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Ee(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&P(e,t)?x.merge([e],n):n}function _e(e,t){for(var n=0,r=e.length;n<r;n++)Z.set(e[n],"globalEval",!t||Z.get(t[n],"globalEval"))}we.tbody=we.tfoot=we.colgroup=we.caption=we.thead,we.th=we.td,b.option||(we.optgroup=we.option=[1,"<select multiple='multiple'>","</select>"]);var ke=/<|&#?\w+;/;function Oe(e,t,n,r,o){for(var a,i,l,s,c,u,f=t.createDocumentFragment(),p=[],d=0,m=e.length;d<m;d++)if((a=e[d])||0===a)if("object"===k(a))x.merge(p,a.nodeType?[a]:a);else if(ke.test(a)){for(i=i||f.appendChild(t.createElement("div")),l=(ve.exec(a)||["",""])[1].toLowerCase(),s=we[l]||we._default,i.innerHTML=s[1]+x.htmlPrefilter(a)+s[2],u=s[0];u--;)i=i.lastChild;x.merge(p,i.childNodes),(i=f.firstChild).textContent=""}else p.push(t.createTextNode(a));for(f.textContent="",d=0;a=p[d++];)if(r&&x.inArray(a,r)>-1)o&&o.push(a);else if(c=se(a),i=Ee(f.appendChild(a),"script"),c&&_e(i),n)for(u=0;a=i[u++];)ge.test(a.type||"")&&n.push(a);return f}var xe=/^key/,Se=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,je=/^([^.]*)(?:\.(.+)|)/;function Ce(){return!0}function De(){return!1}function Ne(e,t){return e===function(){try{return w.activeElement}catch(e){}}()==("focus"===t)}function Pe(e,t,n,o,a,i){var l,s;if("object"===r(t)){for(s in"string"!=typeof n&&(o=o||n,n=void 0),t)Pe(e,s,n,o,t[s],i);return e}if(null==o&&null==a?(a=n,o=n=void 0):null==a&&("string"==typeof n?(a=o,o=void 0):(a=o,o=n,n=void 0)),!1===a)a=De;else if(!a)return e;return 1===i&&(l=a,a=function(e){return x().off(e),l.apply(this,arguments)},a.guid=l.guid||(l.guid=x.guid++)),e.each((function(){x.event.add(this,t,a,o,n)}))}function Te(e,t,n){n?(Z.set(e,t,!1),x.event.add(e,t,{namespace:!1,handler:function(e){var r,o,a=Z.get(this,t);if(1&e.isTrigger&&this[t]){if(a.length)(x.event.special[t]||{}).delegateType&&e.stopPropagation();else if(a=s.call(arguments),Z.set(this,t,a),r=n(this,t),this[t](),a!==(o=Z.get(this,t))||r?Z.set(this,t,!1):o={},a!==o)return e.stopImmediatePropagation(),e.preventDefault(),o.value}else a.length&&(Z.set(this,t,{value:x.event.trigger(x.extend(a[0],x.Event.prototype),a.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Z.get(e,t)&&x.event.add(e,t,Ce)}x.event={global:{},add:function(e,t,n,r,o){var a,i,l,s,c,u,f,p,d,m,h,y=Z.get(e);if(X(e))for(n.handler&&(n=(a=n).handler,o=a.selector),o&&x.find.matchesSelector(le,o),n.guid||(n.guid=x.guid++),(s=y.events)||(s=y.events=Object.create(null)),(i=y.handle)||(i=y.handle=function(t){return void 0!==x&&x.event.triggered!==t.type?x.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(B)||[""]).length;c--;)d=h=(l=je.exec(t[c])||[])[1],m=(l[2]||"").split(".").sort(),d&&(f=x.event.special[d]||{},d=(o?f.delegateType:f.bindType)||d,f=x.event.special[d]||{},u=x.extend({type:d,origType:h,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&x.expr.match.needsContext.test(o),namespace:m.join(".")},a),(p=s[d])||((p=s[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,m,i)||e.addEventListener&&e.addEventListener(d,i)),f.add&&(f.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),o?p.splice(p.delegateCount++,0,u):p.push(u),x.event.global[d]=!0)},remove:function(e,t,n,r,o){var a,i,l,s,c,u,f,p,d,m,h,y=Z.hasData(e)&&Z.get(e);if(y&&(s=y.events)){for(c=(t=(t||"").match(B)||[""]).length;c--;)if(d=h=(l=je.exec(t[c])||[])[1],m=(l[2]||"").split(".").sort(),d){for(f=x.event.special[d]||{},p=s[d=(r?f.delegateType:f.bindType)||d]||[],l=l[2]&&new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=a=p.length;a--;)u=p[a],!o&&h!==u.origType||n&&n.guid!==u.guid||l&&!l.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(p.splice(a,1),u.selector&&p.delegateCount--,f.remove&&f.remove.call(e,u));i&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,m,y.handle)||x.removeEvent(e,d,y.handle),delete s[d])}else for(d in s)x.event.remove(e,d+t[c],n,r,!0);x.isEmptyObject(s)&&Z.remove(e,"handle events")}},dispatch:function(e){var t,n,r,o,a,i,l=new Array(arguments.length),s=x.event.fix(e),c=(Z.get(this,"events")||Object.create(null))[s.type]||[],u=x.event.special[s.type]||{};for(l[0]=s,t=1;t<arguments.length;t++)l[t]=arguments[t];if(s.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,s)){for(i=x.event.handlers.call(this,s,c),t=0;(o=i[t++])&&!s.isPropagationStopped();)for(s.currentTarget=o.elem,n=0;(a=o.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!1!==a.namespace&&!s.rnamespace.test(a.namespace)||(s.handleObj=a,s.data=a.data,void 0!==(r=((x.event.special[a.origType]||{}).handle||a.handler).apply(o.elem,l))&&!1===(s.result=r)&&(s.preventDefault(),s.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,r,o,a,i,l=[],s=t.delegateCount,c=e.target;if(s&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(a=[],i={},n=0;n<s;n++)void 0===i[o=(r=t[n]).selector+" "]&&(i[o]=r.needsContext?x(o,this).index(c)>-1:x.find(o,this,null,[c]).length),i[o]&&a.push(r);a.length&&l.push({elem:c,handlers:a})}return c=this,s<t.length&&l.push({elem:c,handlers:t.slice(s)}),l},addProp:function(e,t){Object.defineProperty(x.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[x.expando]?e:new x.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return be.test(t.type)&&t.click&&P(t,"input")&&Te(t,"click",Ce),!1},trigger:function(e){var t=this||e;return be.test(t.type)&&t.click&&P(t,"input")&&Te(t,"click"),!0},_default:function(e){var t=e.target;return be.test(t.type)&&t.click&&P(t,"input")&&Z.get(t,"click")||P(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},x.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},x.Event=function(e,t){if(!(this instanceof x.Event))return new x.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ce:De,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&x.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[x.expando]=!0},x.Event.prototype={constructor:x.Event,isDefaultPrevented:De,isPropagationStopped:De,isImmediatePropagationStopped:De,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ce,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ce,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ce,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},x.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&xe.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Se.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},x.event.addProp),x.each({focus:"focusin",blur:"focusout"},(function(e,t){x.event.special[e]={setup:function(){return Te(this,e,Ne),!1},trigger:function(){return Te(this,e),!0},delegateType:t}})),x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,o=e.handleObj;return r&&(r===this||x.contains(this,r))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}})),x.fn.extend({on:function(e,t,n,r){return Pe(this,e,t,n,r)},one:function(e,t,n,r){return Pe(this,e,t,n,r,1)},off:function(e,t,n){var o,a;if(e&&e.preventDefault&&e.handleObj)return o=e.handleObj,x(e.delegateTarget).off(o.namespace?o.origType+"."+o.namespace:o.origType,o.selector,o.handler),this;if("object"===r(e)){for(a in e)this.off(a,t,e[a]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=De),this.each((function(){x.event.remove(this,e,n,t)}))}});var Me=/<script|<style|<link/i,Ae=/checked\s*(?:[^=]|=\s*.checked.)/i,Le=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Re(e,t){return P(e,"table")&&P(11!==t.nodeType?t:t.firstChild,"tr")&&x(e).children("tbody")[0]||e}function Fe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function ze(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Be(e,t){var n,r,o,a,i,l;if(1===t.nodeType){if(Z.hasData(e)&&(l=Z.get(e).events))for(o in Z.remove(t,"handle events"),l)for(n=0,r=l[o].length;n<r;n++)x.event.add(t,o,l[o][n]);ee.hasData(e)&&(a=ee.access(e),i=x.extend({},a),ee.set(t,i))}}function Ye(e,t){var n=t.nodeName.toLowerCase();"input"===n&&be.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Ie(e,t,n,r){t=c(t);var o,a,i,l,s,u,f=0,p=e.length,d=p-1,m=t[0],h=v(m);if(h||p>1&&"string"==typeof m&&!b.checkClone&&Ae.test(m))return e.each((function(o){var a=e.eq(o);h&&(t[0]=m.call(this,o,a.html())),Ie(a,t,n,r)}));if(p&&(a=(o=Oe(t,e[0].ownerDocument,!1,e,r)).firstChild,1===o.childNodes.length&&(o=a),a||r)){for(l=(i=x.map(Ee(o,"script"),Fe)).length;f<p;f++)s=o,f!==d&&(s=x.clone(s,!0,!0),l&&x.merge(i,Ee(s,"script"))),n.call(e[f],s,f);if(l)for(u=i[i.length-1].ownerDocument,x.map(i,ze),f=0;f<l;f++)s=i[f],ge.test(s.type||"")&&!Z.access(s,"globalEval")&&x.contains(u,s)&&(s.src&&"module"!==(s.type||"").toLowerCase()?x._evalUrl&&!s.noModule&&x._evalUrl(s.src,{nonce:s.nonce||s.getAttribute("nonce")},u):_(s.textContent.replace(Le,""),s,u))}return e}function He(e,t,n){for(var r,o=t?x.filter(t,e):e,a=0;null!=(r=o[a]);a++)n||1!==r.nodeType||x.cleanData(Ee(r)),r.parentNode&&(n&&se(r)&&_e(Ee(r,"script")),r.parentNode.removeChild(r));return e}x.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,o,a,i,l=e.cloneNode(!0),s=se(e);if(!(b.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(i=Ee(l),r=0,o=(a=Ee(e)).length;r<o;r++)Ye(a[r],i[r]);if(t)if(n)for(a=a||Ee(e),i=i||Ee(l),r=0,o=a.length;r<o;r++)Be(a[r],i[r]);else Be(e,l);return(i=Ee(l,"script")).length>0&&_e(i,!s&&Ee(e,"script")),l},cleanData:function(e){for(var t,n,r,o=x.event.special,a=0;void 0!==(n=e[a]);a++)if(X(n)){if(t=n[Z.expando]){if(t.events)for(r in t.events)o[r]?x.event.remove(n,r):x.removeEvent(n,r,t.handle);n[Z.expando]=void 0}n[ee.expando]&&(n[ee.expando]=void 0)}}}),x.fn.extend({detach:function(e){return He(this,e,!0)},remove:function(e){return He(this,e)},text:function(e){return q(this,(function(e){return void 0===e?x.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Ie(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Re(this,e).appendChild(e)}))},prepend:function(){return Ie(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Re(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Ie(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Ie(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(x.cleanData(Ee(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return x.clone(this,e,t)}))},html:function(e){return q(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Me.test(e)&&!we[(ve.exec(e)||["",""])[1].toLowerCase()]){e=x.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(x.cleanData(Ee(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Ie(this,arguments,(function(t){var n=this.parentNode;x.inArray(this,e)<0&&(x.cleanData(Ee(this)),n&&n.replaceChild(t,this))}),e)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){x.fn[e]=function(e){for(var n,r=[],o=x(e),a=o.length-1,i=0;i<=a;i++)n=i===a?this:this.clone(!0),x(o[i])[t](n),u.apply(r,n.get());return this.pushStack(r)}}));var Ue=new RegExp("^("+oe+")(?!px)[a-z%]+$","i"),We=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=o),t.getComputedStyle(e)},Ve=function(e,t,n){var r,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in r=n.call(e),t)e.style[o]=a[o];return r},qe=new RegExp(ie.join("|"),"i");function Ge(e,t,n){var r,o,a,i,l=e.style;return(n=n||We(e))&&(""!==(i=n.getPropertyValue(t)||n[t])||se(e)||(i=x.style(e,t)),!b.pixelBoxStyles()&&Ue.test(i)&&qe.test(t)&&(r=l.width,o=l.minWidth,a=l.maxWidth,l.minWidth=l.maxWidth=l.width=i,i=n.width,l.width=r,l.minWidth=o,l.maxWidth=a)),void 0!==i?i+"":i}function Ke(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",le.appendChild(c).appendChild(u);var e=o.getComputedStyle(u);n="1%"!==e.top,s=12===t(e.marginLeft),u.style.right="60%",i=36===t(e.right),r=36===t(e.width),u.style.position="absolute",a=12===t(u.offsetWidth/3),le.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var n,r,a,i,l,s,c=w.createElement("div"),u=w.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",b.clearCloneStyle="content-box"===u.style.backgroundClip,x.extend(b,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),i},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),a},reliableTrDimensions:function(){var e,t,n,r;return null==l&&(e=w.createElement("table"),t=w.createElement("tr"),n=w.createElement("div"),e.style.cssText="position:absolute;left:-11111px",t.style.height="1px",n.style.height="9px",le.appendChild(e).appendChild(t).appendChild(n),r=o.getComputedStyle(t),l=parseInt(r.height)>3,le.removeChild(e)),l}}))}();var $e=["Webkit","Moz","ms"],Je=w.createElement("div").style,Xe={};function Qe(e){var t=x.cssProps[e]||Xe[e];return t||(e in Je?e:Xe[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=$e.length;n--;)if((e=$e[n]+t)in Je)return e}(e)||e)}var Ze=/^(none|table(?!-c[ea]).+)/,et=/^--/,tt={position:"absolute",visibility:"hidden",display:"block"},nt={letterSpacing:"0",fontWeight:"400"};function rt(e,t,n){var r=ae.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function ot(e,t,n,r,o,a){var i="width"===t?1:0,l=0,s=0;if(n===(r?"border":"content"))return 0;for(;i<4;i+=2)"margin"===n&&(s+=x.css(e,n+ie[i],!0,o)),r?("content"===n&&(s-=x.css(e,"padding"+ie[i],!0,o)),"margin"!==n&&(s-=x.css(e,"border"+ie[i]+"Width",!0,o))):(s+=x.css(e,"padding"+ie[i],!0,o),"padding"!==n?s+=x.css(e,"border"+ie[i]+"Width",!0,o):l+=x.css(e,"border"+ie[i]+"Width",!0,o));return!r&&a>=0&&(s+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-a-s-l-.5))||0),s}function at(e,t,n){var r=We(e),o=(!b.boxSizingReliable()||n)&&"border-box"===x.css(e,"boxSizing",!1,r),a=o,i=Ge(e,t,r),l="offset"+t[0].toUpperCase()+t.slice(1);if(Ue.test(i)){if(!n)return i;i="auto"}return(!b.boxSizingReliable()&&o||!b.reliableTrDimensions()&&P(e,"tr")||"auto"===i||!parseFloat(i)&&"inline"===x.css(e,"display",!1,r))&&e.getClientRects().length&&(o="border-box"===x.css(e,"boxSizing",!1,r),(a=l in e)&&(i=e[l])),(i=parseFloat(i)||0)+ot(e,t,n||(o?"border":"content"),a,r,i)+"px"}function it(e,t,n,r,o){return new it.prototype.init(e,t,n,r,o)}x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ge(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,o){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var a,i,l,s=J(t),c=et.test(t),u=e.style;if(c||(t=Qe(s)),l=x.cssHooks[t]||x.cssHooks[s],void 0===n)return l&&"get"in l&&void 0!==(a=l.get(e,!1,o))?a:u[t];"string"===(i=r(n))&&(a=ae.exec(n))&&a[1]&&(n=fe(e,t,a),i="number"),null!=n&&n==n&&("number"!==i||c||(n+=a&&a[3]||(x.cssNumber[s]?"":"px")),b.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),l&&"set"in l&&void 0===(n=l.set(e,n,o))||(c?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,r){var o,a,i,l=J(t);return et.test(t)||(t=Qe(l)),(i=x.cssHooks[t]||x.cssHooks[l])&&"get"in i&&(o=i.get(e,!0,n)),void 0===o&&(o=Ge(e,t,r)),"normal"===o&&t in nt&&(o=nt[t]),""===n||n?(a=parseFloat(o),!0===n||isFinite(a)?a||0:o):o}}),x.each(["height","width"],(function(e,t){x.cssHooks[t]={get:function(e,n,r){if(n)return!Ze.test(x.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?at(e,t,r):Ve(e,tt,(function(){return at(e,t,r)}))},set:function(e,n,r){var o,a=We(e),i=!b.scrollboxSize()&&"absolute"===a.position,l=(i||r)&&"border-box"===x.css(e,"boxSizing",!1,a),s=r?ot(e,t,r,l,a):0;return l&&i&&(s-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(a[t])-ot(e,t,"border",!1,a)-.5)),s&&(o=ae.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n,n=x.css(e,t)),rt(0,n,s)}}})),x.cssHooks.marginLeft=Ke(b.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ge(e,"marginLeft"))||e.getBoundingClientRect().left-Ve(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),x.each({margin:"",padding:"",border:"Width"},(function(e,t){x.cssHooks[e+t]={expand:function(n){for(var r=0,o={},a="string"==typeof n?n.split(" "):[n];r<4;r++)o[e+ie[r]+t]=a[r]||a[r-2]||a[0];return o}},"margin"!==e&&(x.cssHooks[e+t].set=rt)})),x.fn.extend({css:function(e,t){return q(this,(function(e,t,n){var r,o,a={},i=0;if(Array.isArray(t)){for(r=We(e),o=t.length;i<o;i++)a[t[i]]=x.css(e,t[i],!1,r);return a}return void 0!==n?x.style(e,t,n):x.css(e,t)}),e,t,arguments.length>1)}}),x.Tween=it,it.prototype={constructor:it,init:function(e,t,n,r,o,a){this.elem=e,this.prop=n,this.easing=o||x.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=a||(x.cssNumber[n]?"":"px")},cur:function(){var e=it.propHooks[this.prop];return e&&e.get?e.get(this):it.propHooks._default.get(this)},run:function(e){var t,n=it.propHooks[this.prop];return this.options.duration?this.pos=t=x.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):it.propHooks._default.set(this),this}},it.prototype.init.prototype=it.prototype,it.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=x.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):1!==e.elem.nodeType||!x.cssHooks[e.prop]&&null==e.elem.style[Qe(e.prop)]?e.elem[e.prop]=e.now:x.style(e.elem,e.prop,e.now+e.unit)}}},it.propHooks.scrollTop=it.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},x.fx=it.prototype.init,x.fx.step={};var lt,st,ct=/^(?:toggle|show|hide)$/,ut=/queueHooks$/;function ft(){st&&(!1===w.hidden&&o.requestAnimationFrame?o.requestAnimationFrame(ft):o.setTimeout(ft,x.fx.interval),x.fx.tick())}function pt(){return o.setTimeout((function(){lt=void 0})),lt=Date.now()}function dt(e,t){var n,r=0,o={height:e};for(t=t?1:0;r<4;r+=2-t)o["margin"+(n=ie[r])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function mt(e,t,n){for(var r,o=(ht.tweeners[t]||[]).concat(ht.tweeners["*"]),a=0,i=o.length;a<i;a++)if(r=o[a].call(n,t,e))return r}function ht(e,t,n){var r,o,a=0,i=ht.prefilters.length,l=x.Deferred().always((function(){delete s.elem})),s=function(){if(o)return!1;for(var t=lt||pt(),n=Math.max(0,c.startTime+c.duration-t),r=1-(n/c.duration||0),a=0,i=c.tweens.length;a<i;a++)c.tweens[a].run(r);return l.notifyWith(e,[c,r,n]),r<1&&i?n:(i||l.notifyWith(e,[c,1,0]),l.resolveWith(e,[c]),!1)},c=l.promise({elem:e,props:x.extend({},t),opts:x.extend(!0,{specialEasing:{},easing:x.easing._default},n),originalProperties:t,originalOptions:n,startTime:lt||pt(),duration:n.duration,tweens:[],createTween:function(t,n){var r=x.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(o)return this;for(o=!0;n<r;n++)c.tweens[n].run(1);return t?(l.notifyWith(e,[c,1,0]),l.resolveWith(e,[c,t])):l.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var n,r,o,a,i;for(n in e)if(o=t[r=J(n)],a=e[n],Array.isArray(a)&&(o=a[1],a=e[n]=a[0]),n!==r&&(e[r]=a,delete e[n]),(i=x.cssHooks[r])&&"expand"in i)for(n in a=i.expand(a),delete e[r],a)n in e||(e[n]=a[n],t[n]=o);else t[r]=o}(u,c.opts.specialEasing);a<i;a++)if(r=ht.prefilters[a].call(c,e,u,c.opts))return v(r.stop)&&(x._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return x.map(u,mt,c),v(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),x.fx.timer(x.extend(s,{elem:e,anim:c,queue:c.opts.queue})),c}x.Animation=x.extend(ht,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return fe(n.elem,e,ae.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(B);for(var n,r=0,o=e.length;r<o;r++)n=e[r],ht.tweeners[n]=ht.tweeners[n]||[],ht.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,o,a,i,l,s,c,u,f="width"in t||"height"in t,p=this,d={},m=e.style,h=e.nodeType&&ue(e),y=Z.get(e,"fxshow");for(r in n.queue||(null==(i=x._queueHooks(e,"fx")).unqueued&&(i.unqueued=0,l=i.empty.fire,i.empty.fire=function(){i.unqueued||l()}),i.unqueued++,p.always((function(){p.always((function(){i.unqueued--,x.queue(e,"fx").length||i.empty.fire()}))}))),t)if(o=t[r],ct.test(o)){if(delete t[r],a=a||"toggle"===o,o===(h?"hide":"show")){if("show"!==o||!y||void 0===y[r])continue;h=!0}d[r]=y&&y[r]||x.style(e,r)}if((s=!x.isEmptyObject(t))||!x.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[m.overflow,m.overflowX,m.overflowY],null==(c=y&&y.display)&&(c=Z.get(e,"display")),"none"===(u=x.css(e,"display"))&&(c?u=c:(me([e],!0),c=e.style.display||c,u=x.css(e,"display"),me([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===x.css(e,"float")&&(s||(p.done((function(){m.display=c})),null==c&&(u=m.display,c="none"===u?"":u)),m.display="inline-block")),n.overflow&&(m.overflow="hidden",p.always((function(){m.overflow=n.overflow[0],m.overflowX=n.overflow[1],m.overflowY=n.overflow[2]}))),s=!1,d)s||(y?"hidden"in y&&(h=y.hidden):y=Z.access(e,"fxshow",{display:c}),a&&(y.hidden=!h),h&&me([e],!0),p.done((function(){for(r in h||me([e]),Z.remove(e,"fxshow"),d)x.style(e,r,d[r])}))),s=mt(h?y[r]:0,r,p),r in y||(y[r]=s.start,h&&(s.end=s.start,s.start=0))}],prefilter:function(e,t){t?ht.prefilters.unshift(e):ht.prefilters.push(e)}}),x.speed=function(e,t,n){var o=e&&"object"===r(e)?x.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return x.fx.off?o.duration=0:"number"!=typeof o.duration&&(o.duration in x.fx.speeds?o.duration=x.fx.speeds[o.duration]:o.duration=x.fx.speeds._default),null!=o.queue&&!0!==o.queue||(o.queue="fx"),o.old=o.complete,o.complete=function(){v(o.old)&&o.old.call(this),o.queue&&x.dequeue(this,o.queue)},o},x.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ue).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var o=x.isEmptyObject(e),a=x.speed(t,n,r),i=function(){var t=ht(this,x.extend({},e),a);(o||Z.get(this,"finish"))&&t.stop(!0)};return i.finish=i,o||!1===a.queue?this.each(i):this.queue(a.queue,i)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,o=null!=e&&e+"queueHooks",a=x.timers,i=Z.get(this);if(o)i[o]&&i[o].stop&&r(i[o]);else for(o in i)i[o]&&i[o].stop&&ut.test(o)&&r(i[o]);for(o=a.length;o--;)a[o].elem!==this||null!=e&&a[o].queue!==e||(a[o].anim.stop(n),t=!1,a.splice(o,1));!t&&n||x.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=Z.get(this),r=n[e+"queue"],o=n[e+"queueHooks"],a=x.timers,i=r?r.length:0;for(n.finish=!0,x.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=a.length;t--;)a[t].elem===this&&a[t].queue===e&&(a[t].anim.stop(!0),a.splice(t,1));for(t=0;t<i;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),x.each(["toggle","show","hide"],(function(e,t){var n=x.fn[t];x.fn[t]=function(e,r,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(dt(t,!0),e,r,o)}})),x.each({slideDown:dt("show"),slideUp:dt("hide"),slideToggle:dt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){x.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),x.timers=[],x.fx.tick=function(){var e,t=0,n=x.timers;for(lt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||x.fx.stop(),lt=void 0},x.fx.timer=function(e){x.timers.push(e),x.fx.start()},x.fx.interval=13,x.fx.start=function(){st||(st=!0,ft())},x.fx.stop=function(){st=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(e,t){return e=x.fx&&x.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var r=o.setTimeout(t,e);n.stop=function(){o.clearTimeout(r)}}))},function(){var e=w.createElement("input"),t=w.createElement("select").appendChild(w.createElement("option"));e.type="checkbox",b.checkOn=""!==e.value,b.optSelected=t.selected,(e=w.createElement("input")).value="t",e.type="radio",b.radioValue="t"===e.value}();var yt,bt=x.expr.attrHandle;x.fn.extend({attr:function(e,t){return q(this,x.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){x.removeAttr(this,e)}))}}),x.extend({attr:function(e,t,n){var r,o,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===e.getAttribute?x.prop(e,t,n):(1===a&&x.isXMLDoc(e)||(o=x.attrHooks[t.toLowerCase()]||(x.expr.match.bool.test(t)?yt:void 0)),void 0!==n?null===n?void x.removeAttr(e,t):o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(r=o.get(e,t))?r:null==(r=x.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!b.radioValue&&"radio"===t&&P(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,o=t&&t.match(B);if(o&&1===e.nodeType)for(;n=o[r++];)e.removeAttribute(n)}}),yt={set:function(e,t,n){return!1===t?x.removeAttr(e,n):e.setAttribute(n,n),n}},x.each(x.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=bt[t]||x.find.attr;bt[t]=function(e,t,r){var o,a,i=t.toLowerCase();return r||(a=bt[i],bt[i]=o,o=null!=n(e,t,r)?i:null,bt[i]=a),o}}));var vt=/^(?:input|select|textarea|button)$/i,gt=/^(?:a|area)$/i;function wt(e){return(e.match(B)||[]).join(" ")}function Et(e){return e.getAttribute&&e.getAttribute("class")||""}function _t(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(B)||[]}x.fn.extend({prop:function(e,t){return q(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[x.propFix[e]||e]}))}}),x.extend({prop:function(e,t,n){var r,o,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&x.isXMLDoc(e)||(t=x.propFix[t]||t,o=x.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:e[t]=n:o&&"get"in o&&null!==(r=o.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");return t?parseInt(t,10):vt.test(e.nodeName)||gt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),b.optSelected||(x.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){x.propFix[this.toLowerCase()]=this})),x.fn.extend({addClass:function(e){var t,n,r,o,a,i,l,s=0;if(v(e))return this.each((function(t){x(this).addClass(e.call(this,t,Et(this)))}));if((t=_t(e)).length)for(;n=this[s++];)if(o=Et(n),r=1===n.nodeType&&" "+wt(o)+" "){for(i=0;a=t[i++];)r.indexOf(" "+a+" ")<0&&(r+=a+" ");o!==(l=wt(r))&&n.setAttribute("class",l)}return this},removeClass:function(e){var t,n,r,o,a,i,l,s=0;if(v(e))return this.each((function(t){x(this).removeClass(e.call(this,t,Et(this)))}));if(!arguments.length)return this.attr("class","");if((t=_t(e)).length)for(;n=this[s++];)if(o=Et(n),r=1===n.nodeType&&" "+wt(o)+" "){for(i=0;a=t[i++];)for(;r.indexOf(" "+a+" ")>-1;)r=r.replace(" "+a+" "," ");o!==(l=wt(r))&&n.setAttribute("class",l)}return this},toggleClass:function(e,t){var n=r(e),o="string"===n||Array.isArray(e);return"boolean"==typeof t&&o?t?this.addClass(e):this.removeClass(e):v(e)?this.each((function(n){x(this).toggleClass(e.call(this,n,Et(this),t),t)})):this.each((function(){var t,r,a,i;if(o)for(r=0,a=x(this),i=_t(e);t=i[r++];)a.hasClass(t)?a.removeClass(t):a.addClass(t);else void 0!==e&&"boolean"!==n||((t=Et(this))&&Z.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Z.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+wt(Et(n))+" ").indexOf(t)>-1)return!0;return!1}});var kt=/\r/g;x.fn.extend({val:function(e){var t,n,r,o=this[0];return arguments.length?(r=v(e),this.each((function(n){var o;1===this.nodeType&&(null==(o=r?e.call(this,n,x(this).val()):e)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=x.map(o,(function(e){return null==e?"":e+""}))),(t=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))}))):o?(t=x.valHooks[o.type]||x.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(kt,""):null==n?"":n:void 0}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:wt(x.text(e))}},select:{get:function(e){var t,n,r,o=e.options,a=e.selectedIndex,i="select-one"===e.type,l=i?null:[],s=i?a+1:o.length;for(r=a<0?s:i?a:0;r<s;r++)if(((n=o[r]).selected||r===a)&&!n.disabled&&(!n.parentNode.disabled||!P(n.parentNode,"optgroup"))){if(t=x(n).val(),i)return t;l.push(t)}return l},set:function(e,t){for(var n,r,o=e.options,a=x.makeArray(t),i=o.length;i--;)((r=o[i]).selected=x.inArray(x.valHooks.option.get(r),a)>-1)&&(n=!0);return n||(e.selectedIndex=-1),a}}}}),x.each(["radio","checkbox"],(function(){x.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=x.inArray(x(e).val(),t)>-1}},b.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),b.focusin="onfocusin"in o;var Ot=/^(?:focusinfocus|focusoutblur)$/,xt=function(e){e.stopPropagation()};x.extend(x.event,{trigger:function(e,t,n,a){var i,l,s,c,u,f,p,d,h=[n||w],y=m.call(e,"type")?e.type:e,b=m.call(e,"namespace")?e.namespace.split("."):[];if(l=d=s=n=n||w,3!==n.nodeType&&8!==n.nodeType&&!Ot.test(y+x.event.triggered)&&(y.indexOf(".")>-1&&(b=y.split("."),y=b.shift(),b.sort()),u=y.indexOf(":")<0&&"on"+y,(e=e[x.expando]?e:new x.Event(y,"object"===r(e)&&e)).isTrigger=a?2:3,e.namespace=b.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:x.makeArray(t,[e]),p=x.event.special[y]||{},a||!p.trigger||!1!==p.trigger.apply(n,t))){if(!a&&!p.noBubble&&!g(n)){for(c=p.delegateType||y,Ot.test(c+y)||(l=l.parentNode);l;l=l.parentNode)h.push(l),s=l;s===(n.ownerDocument||w)&&h.push(s.defaultView||s.parentWindow||o)}for(i=0;(l=h[i++])&&!e.isPropagationStopped();)d=l,e.type=i>1?c:p.bindType||y,(f=(Z.get(l,"events")||Object.create(null))[e.type]&&Z.get(l,"handle"))&&f.apply(l,t),(f=u&&l[u])&&f.apply&&X(l)&&(e.result=f.apply(l,t),!1===e.result&&e.preventDefault());return e.type=y,a||e.isDefaultPrevented()||p._default&&!1!==p._default.apply(h.pop(),t)||!X(n)||u&&v(n[y])&&!g(n)&&((s=n[u])&&(n[u]=null),x.event.triggered=y,e.isPropagationStopped()&&d.addEventListener(y,xt),n[y](),e.isPropagationStopped()&&d.removeEventListener(y,xt),x.event.triggered=void 0,s&&(n[u]=s)),e.result}},simulate:function(e,t,n){var r=x.extend(new x.Event,n,{type:e,isSimulated:!0});x.event.trigger(r,null,t)}}),x.fn.extend({trigger:function(e,t){return this.each((function(){x.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return x.event.trigger(e,t,n,!0)}}),b.focusin||x.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){x.event.simulate(t,e.target,x.event.fix(e))};x.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,o=Z.access(r,t);o||r.addEventListener(e,n,!0),Z.access(r,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,o=Z.access(r,t)-1;o?Z.access(r,t,o):(r.removeEventListener(e,n,!0),Z.remove(r,t))}}}));var St=o.location,jt={guid:Date.now()},Ct=/\?/;x.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new o.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+e),t};var Dt=/\[\]$/,Nt=/\r?\n/g,Pt=/^(?:submit|button|image|reset|file)$/i,Tt=/^(?:input|select|textarea|keygen)/i;function Mt(e,t,n,o){var a;if(Array.isArray(t))x.each(t,(function(t,a){n||Dt.test(e)?o(e,a):Mt(e+"["+("object"===r(a)&&null!=a?t:"")+"]",a,n,o)}));else if(n||"object"!==k(t))o(e,t);else for(a in t)Mt(e+"["+a+"]",t[a],n,o)}x.param=function(e,t){var n,r=[],o=function(e,t){var n=v(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,(function(){o(this.name,this.value)}));else for(n in e)Mt(n,e[n],t,o);return r.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&Tt.test(this.nodeName)&&!Pt.test(e)&&(this.checked||!be.test(e))})).map((function(e,t){var n=x(this).val();return null==n?null:Array.isArray(n)?x.map(n,(function(e){return{name:t.name,value:e.replace(Nt,"\r\n")}})):{name:t.name,value:n.replace(Nt,"\r\n")}})).get()}});var At=/%20/g,Lt=/#.*$/,Rt=/([?&])_=[^&]*/,Ft=/^(.*?):[ \t]*([^\r\n]*)$/gm,zt=/^(?:GET|HEAD)$/,Bt=/^\/\//,Yt={},It={},Ht="*/".concat("*"),Ut=w.createElement("a");function Wt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,o=0,a=t.toLowerCase().match(B)||[];if(v(n))for(;r=a[o++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Vt(e,t,n,r){var o={},a=e===It;function i(l){var s;return o[l]=!0,x.each(e[l]||[],(function(e,l){var c=l(t,n,r);return"string"!=typeof c||a||o[c]?a?!(s=c):void 0:(t.dataTypes.unshift(c),i(c),!1)})),s}return i(t.dataTypes[0])||!o["*"]&&i("*")}function qt(e,t){var n,r,o=x.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:r||(r={}))[n]=t[n]);return r&&x.extend(!0,e,r),e}Ut.href=St.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:St.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(St.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ht,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?qt(qt(e,x.ajaxSettings),t):qt(x.ajaxSettings,e)},ajaxPrefilter:Wt(Yt),ajaxTransport:Wt(It),ajax:function(e,t){"object"===r(e)&&(t=e,e=void 0),t=t||{};var n,a,i,l,s,c,u,f,p,d,m=x.ajaxSetup({},t),h=m.context||m,y=m.context&&(h.nodeType||h.jquery)?x(h):x.event,b=x.Deferred(),v=x.Callbacks("once memory"),g=m.statusCode||{},E={},_={},k="canceled",O={readyState:0,getResponseHeader:function(e){var t;if(u){if(!l)for(l={};t=Ft.exec(i);)l[t[1].toLowerCase()+" "]=(l[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=l[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?i:null},setRequestHeader:function(e,t){return null==u&&(e=_[e.toLowerCase()]=_[e.toLowerCase()]||e,E[e]=t),this},overrideMimeType:function(e){return null==u&&(m.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)O.always(e[O.status]);else for(t in e)g[t]=[g[t],e[t]];return this},abort:function(e){var t=e||k;return n&&n.abort(t),S(0,t),this}};if(b.promise(O),m.url=((e||m.url||St.href)+"").replace(Bt,St.protocol+"//"),m.type=t.method||t.type||m.method||m.type,m.dataTypes=(m.dataType||"*").toLowerCase().match(B)||[""],null==m.crossDomain){c=w.createElement("a");try{c.href=m.url,c.href=c.href,m.crossDomain=Ut.protocol+"//"+Ut.host!=c.protocol+"//"+c.host}catch(e){m.crossDomain=!0}}if(m.data&&m.processData&&"string"!=typeof m.data&&(m.data=x.param(m.data,m.traditional)),Vt(Yt,m,t,O),u)return O;for(p in(f=x.event&&m.global)&&0==x.active++&&x.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!zt.test(m.type),a=m.url.replace(Lt,""),m.hasContent?m.data&&m.processData&&0===(m.contentType||"").indexOf("application/x-www-form-urlencoded")&&(m.data=m.data.replace(At,"+")):(d=m.url.slice(a.length),m.data&&(m.processData||"string"==typeof m.data)&&(a+=(Ct.test(a)?"&":"?")+m.data,delete m.data),!1===m.cache&&(a=a.replace(Rt,"$1"),d=(Ct.test(a)?"&":"?")+"_="+jt.guid+++d),m.url=a+d),m.ifModified&&(x.lastModified[a]&&O.setRequestHeader("If-Modified-Since",x.lastModified[a]),x.etag[a]&&O.setRequestHeader("If-None-Match",x.etag[a])),(m.data&&m.hasContent&&!1!==m.contentType||t.contentType)&&O.setRequestHeader("Content-Type",m.contentType),O.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+Ht+"; q=0.01":""):m.accepts["*"]),m.headers)O.setRequestHeader(p,m.headers[p]);if(m.beforeSend&&(!1===m.beforeSend.call(h,O,m)||u))return O.abort();if(k="abort",v.add(m.complete),O.done(m.success),O.fail(m.error),n=Vt(It,m,t,O)){if(O.readyState=1,f&&y.trigger("ajaxSend",[O,m]),u)return O;m.async&&m.timeout>0&&(s=o.setTimeout((function(){O.abort("timeout")}),m.timeout));try{u=!1,n.send(E,S)}catch(e){if(u)throw e;S(-1,e)}}else S(-1,"No Transport");function S(e,t,r,l){var c,p,d,w,E,_=t;u||(u=!0,s&&o.clearTimeout(s),n=void 0,i=l||"",O.readyState=e>0?4:0,c=e>=200&&e<300||304===e,r&&(w=function(e,t,n){for(var r,o,a,i,l=e.contents,s=e.dataTypes;"*"===s[0];)s.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(o in l)if(l[o]&&l[o].test(r)){s.unshift(o);break}if(s[0]in n)a=s[0];else{for(o in n){if(!s[0]||e.converters[o+" "+s[0]]){a=o;break}i||(i=o)}a=a||i}if(a)return a!==s[0]&&s.unshift(a),n[a]}(m,O,r)),!c&&x.inArray("script",m.dataTypes)>-1&&(m.converters["text script"]=function(){}),w=function(e,t,n,r){var o,a,i,l,s,c={},u=e.dataTypes.slice();if(u[1])for(i in e.converters)c[i.toLowerCase()]=e.converters[i];for(a=u.shift();a;)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),!s&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),s=a,a=u.shift())if("*"===a)a=s;else if("*"!==s&&s!==a){if(!(i=c[s+" "+a]||c["* "+a]))for(o in c)if((l=o.split(" "))[1]===a&&(i=c[s+" "+l[0]]||c["* "+l[0]])){!0===i?i=c[o]:!0!==c[o]&&(a=l[0],u.unshift(l[1]));break}if(!0!==i)if(i&&e.throws)t=i(t);else try{t=i(t)}catch(e){return{state:"parsererror",error:i?e:"No conversion from "+s+" to "+a}}}return{state:"success",data:t}}(m,w,O,c),c?(m.ifModified&&((E=O.getResponseHeader("Last-Modified"))&&(x.lastModified[a]=E),(E=O.getResponseHeader("etag"))&&(x.etag[a]=E)),204===e||"HEAD"===m.type?_="nocontent":304===e?_="notmodified":(_=w.state,p=w.data,c=!(d=w.error))):(d=_,!e&&_||(_="error",e<0&&(e=0))),O.status=e,O.statusText=(t||_)+"",c?b.resolveWith(h,[p,_,O]):b.rejectWith(h,[O,_,d]),O.statusCode(g),g=void 0,f&&y.trigger(c?"ajaxSuccess":"ajaxError",[O,m,c?p:d]),v.fireWith(h,[O,_]),f&&(y.trigger("ajaxComplete",[O,m]),--x.active||x.event.trigger("ajaxStop")))}return O},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,t){return x.get(e,void 0,t,"script")}}),x.each(["get","post"],(function(e,t){x[t]=function(e,n,r,o){return v(n)&&(o=o||r,r=n,n=void 0),x.ajax(x.extend({url:e,type:t,dataType:o,data:n,success:r},x.isPlainObject(e)&&e))}})),x.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),x._evalUrl=function(e,t,n){return x.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){x.globalEval(e,t,n)}})},x.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=x(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return v(e)?this.each((function(t){x(this).wrapInner(e.call(this,t))})):this.each((function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=v(e);return this.each((function(n){x(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){x(this).replaceWith(this.childNodes)})),this}}),x.expr.pseudos.hidden=function(e){return!x.expr.pseudos.visible(e)},x.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new o.XMLHttpRequest}catch(e){}};var Gt={0:200,1223:204},Kt=x.ajaxSettings.xhr();b.cors=!!Kt&&"withCredentials"in Kt,b.ajax=Kt=!!Kt,x.ajaxTransport((function(e){var t,n;if(b.cors||Kt&&!e.crossDomain)return{send:function(r,a){var i,l=e.xhr();if(l.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(i in e.xhrFields)l[i]=e.xhrFields[i];for(i in e.mimeType&&l.overrideMimeType&&l.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)l.setRequestHeader(i,r[i]);t=function(e){return function(){t&&(t=n=l.onload=l.onerror=l.onabort=l.ontimeout=l.onreadystatechange=null,"abort"===e?l.abort():"error"===e?"number"!=typeof l.status?a(0,"error"):a(l.status,l.statusText):a(Gt[l.status]||l.status,l.statusText,"text"!==(l.responseType||"text")||"string"!=typeof l.responseText?{binary:l.response}:{text:l.responseText},l.getAllResponseHeaders()))}},l.onload=t(),n=l.onerror=l.ontimeout=t("error"),void 0!==l.onabort?l.onabort=n:l.onreadystatechange=function(){4===l.readyState&&o.setTimeout((function(){t&&n()}))},t=t("abort");try{l.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),x.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return x.globalEval(e),e}}}),x.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),x.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,o){t=x("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),w.head.appendChild(t[0])},abort:function(){n&&n()}}}));var $t,Jt=[],Xt=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Jt.pop()||x.expando+"_"+jt.guid++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",(function(e,t,n){var r,a,i,l=!1!==e.jsonp&&(Xt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Xt.test(e.data)&&"data");if(l||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,l?e[l]=e[l].replace(Xt,"$1"+r):!1!==e.jsonp&&(e.url+=(Ct.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return i||x.error(r+" was not called"),i[0]},e.dataTypes[0]="json",a=o[r],o[r]=function(){i=arguments},n.always((function(){void 0===a?x(o).removeProp(r):o[r]=a,e[r]&&(e.jsonpCallback=t.jsonpCallback,Jt.push(r)),i&&v(a)&&a(i[0]),i=a=void 0})),"script"})),b.createHTMLDocument=(($t=w.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===$t.childNodes.length),x.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(b.createHTMLDocument?((r=(t=w.implementation.createHTMLDocument("")).createElement("base")).href=w.location.href,t.head.appendChild(r)):t=w),a=!n&&[],(o=T.exec(e))?[t.createElement(o[1])]:(o=Oe([e],t,a),a&&a.length&&x(a).remove(),x.merge([],o.childNodes)));var r,o,a},x.fn.load=function(e,t,n){var o,a,i,l=this,s=e.indexOf(" ");return s>-1&&(o=wt(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"===r(t)&&(a="POST"),l.length>0&&x.ajax({url:e,type:a||"GET",dataType:"html",data:t}).done((function(e){i=arguments,l.html(o?x("<div>").append(x.parseHTML(e)).find(o):e)})).always(n&&function(e,t){l.each((function(){n.apply(this,i||[e.responseText,t,e])}))}),this},x.expr.pseudos.animated=function(e){return x.grep(x.timers,(function(t){return e===t.elem})).length},x.offset={setOffset:function(e,t,n){var r,o,a,i,l,s,c=x.css(e,"position"),u=x(e),f={};"static"===c&&(e.style.position="relative"),l=u.offset(),a=x.css(e,"top"),s=x.css(e,"left"),("absolute"===c||"fixed"===c)&&(a+s).indexOf("auto")>-1?(i=(r=u.position()).top,o=r.left):(i=parseFloat(a)||0,o=parseFloat(s)||0),v(t)&&(t=t.call(e,n,x.extend({},l))),null!=t.top&&(f.top=t.top-l.top+i),null!=t.left&&(f.left=t.left-l.left+o),"using"in t?t.using.call(e,f):("number"==typeof f.top&&(f.top+="px"),"number"==typeof f.left&&(f.left+="px"),u.css(f))}},x.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){x.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],o={top:0,left:0};if("fixed"===x.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===x.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((o=x(e).offset()).top+=x.css(e,"borderTopWidth",!0),o.left+=x.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-x.css(r,"marginTop",!0),left:t.left-o.left-x.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===x.css(e,"position");)e=e.offsetParent;return e||le}))}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;x.fn[e]=function(r){return q(this,(function(e,r,o){var a;if(g(e)?a=e:9===e.nodeType&&(a=e.defaultView),void 0===o)return a?a[t]:e[r];a?a.scrollTo(n?a.pageXOffset:o,n?o:a.pageYOffset):e[r]=o}),e,r,arguments.length)}})),x.each(["top","left"],(function(e,t){x.cssHooks[t]=Ke(b.pixelPosition,(function(e,n){if(n)return n=Ge(e,t),Ue.test(n)?x(e).position()[t]+"px":n}))})),x.each({Height:"height",Width:"width"},(function(e,t){x.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){x.fn[r]=function(o,a){var i=arguments.length&&(n||"boolean"!=typeof o),l=n||(!0===o||!0===a?"margin":"border");return q(this,(function(t,n,o){var a;return g(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(a=t.documentElement,Math.max(t.body["scroll"+e],a["scroll"+e],t.body["offset"+e],a["offset"+e],a["client"+e])):void 0===o?x.css(t,n,l):x.style(t,n,o,l)}),t,i?o:void 0,i)}}))})),x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){x.fn[t]=function(e){return this.on(t,e)}})),x.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),x.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){x.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var Qt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;x.proxy=function(e,t){var n,r,o;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return r=s.call(arguments,2),o=function(){return e.apply(t||this,r.concat(s.call(arguments)))},o.guid=e.guid=e.guid||x.guid++,o},x.holdReady=function(e){e?x.readyWait++:x.ready(!0)},x.isArray=Array.isArray,x.parseJSON=JSON.parse,x.nodeName=P,x.isFunction=v,x.isWindow=g,x.camelCase=J,x.type=k,x.now=Date.now,x.isNumeric=function(e){var t=x.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},x.trim=function(e){return null==e?"":(e+"").replace(Qt,"")},void 0===(n=function(){return x}.apply(t,[]))||(e.exports=n);var Zt=o.jQuery,en=o.$;return x.noConflict=function(e){return o.$===x&&(o.$=en),e&&o.jQuery===x&&(o.jQuery=Zt),x},void 0===a&&(o.jQuery=o.$=x),x}))}).call(this,n(101)(e))},,function(e,t,n){var r,o,a,i;function l(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,a=function(e,t){if("object"!==h(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===h(a)?a:String(a)),r)}var o,a}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){if(t&&("object"===h(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return d(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}i=function(e,t,n,r){"use strict";var o=function(n){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(m,n);var o,a,i,s=f(m);function m(t,n){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m),o=s.call(this),(t=r.getElement(t))?(o._element=t,o._config=o._getConfig(n),e.set(o._element,o.constructor.DATA_KEY,d(o)),o):p(o)}return o=m,a=[{key:"dispose",value:function(){e.remove(this._element,this.constructor.DATA_KEY),t.off(this._element,this.constructor.EVENT_KEY);var n,r=l(Object.getOwnPropertyNames(this));try{for(r.s();!(n=r.n()).done;)this[n.value]=null}catch(e){r.e(e)}finally{r.f()}}},{key:"_queueCallback",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];r.executeAfterTransition(e,t,n)}},{key:"_getConfig",value:function(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}}],i=[{key:"getInstance",value:function(t){return e.get(r.getElement(t),this.DATA_KEY)}},{key:"getOrCreateInstance",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.getInstance(e)||new this(e,"object"===h(t)?t:null)}},{key:"VERSION",get:function(){return"5.3.2"}},{key:"DATA_KEY",get:function(){return"bs.".concat(this.NAME)}},{key:"EVENT_KEY",get:function(){return".".concat(this.DATA_KEY)}},{key:"eventName",value:function(e){return"".concat(e).concat(this.EVENT_KEY)}}],a&&c(o.prototype,a),i&&c(o,i),Object.defineProperty(o,"prototype",{writable:!1}),m}(n);return o},"object"===h(t)&&void 0!==e?e.exports=i(n(397),n(62),n(133),n(44)):(o=[n(397),n(62),n(133),n(44)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,i,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var c in n=Object(arguments[s]))o.call(n,c)&&(l[c]=n[c]);if(r){i=r(n);for(var u=0;u<i.length;u++)a.call(n,i[u])&&(l[i[u]]=n[i[u]])}}return l}},function(e,t,n){var r,o,a,i;function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e,t)||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 s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,d(r.key),r)}}function d(e){var t=function(e,t){if("object"!==m(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===m(t)?t:String(t)}function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}i=function(e,t){"use strict";var n=function(){function n(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n)}var r,o,a;return r=n,o=[{key:"_getConfig",value:function(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}},{key:"_configAfterMerge",value:function(e){return e}},{key:"_mergeConfigObj",value:function(n,r){var o=t.isElement(r)?e.getDataAttribute(r,"config"):{};return u(u(u(u({},this.constructor.Default),"object"===m(o)?o:{}),t.isElement(r)?e.getDataAttributes(r):{}),"object"===m(n)?n:{})}},{key:"_typeCheckConfig",value:function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.constructor.DefaultType,r=0,o=Object.entries(n);r<o.length;r++){var a=l(o[r],2),i=a[0],s=a[1],c=e[i],u=t.isElement(c)?"element":t.toType(c);if(!new RegExp(s).test(u))throw new TypeError("".concat(this.constructor.NAME.toUpperCase(),': Option "').concat(i,'" provided type "').concat(u,'" but expected type "').concat(s,'".'))}}}],a=[{key:"Default",get:function(){return{}}},{key:"DefaultType",get:function(){return{}}},{key:"NAME",get:function(){throw new Error('You have to implement the static method "NAME", for each component!')}}],o&&p(r.prototype,o),a&&p(r,a),Object.defineProperty(r,"prototype",{writable:!1}),n}();return n},"object"===m(t)&&void 0!==e?e.exports=i(n(182),n(44)):(o=[n(182),n(44)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){"use strict";(function(t){var r=n(45),o=n(400),a=/^\)\]\}',?\n/,i={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,c={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t)&&(s=n(186)),s),transformRequest:[function(e,t){return o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(l(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e){e=e.replace(a,"");try{e=JSON.parse(e)}catch(e){}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(i)})),e.exports=c}).call(this,n(103))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1749);Object.defineProperty(t,"Alpha",{enumerable:!0,get:function(){return f(r).default}});var o=n(600);Object.defineProperty(t,"Checkboard",{enumerable:!0,get:function(){return f(o).default}});var a=n(1752);Object.defineProperty(t,"EditableInput",{enumerable:!0,get:function(){return f(a).default}});var i=n(1753);Object.defineProperty(t,"Hue",{enumerable:!0,get:function(){return f(i).default}});var l=n(1755);Object.defineProperty(t,"Raised",{enumerable:!0,get:function(){return f(l).default}});var s=n(1760);Object.defineProperty(t,"Saturation",{enumerable:!0,get:function(){return f(s).default}});var c=n(1450);Object.defineProperty(t,"ColorWrap",{enumerable:!0,get:function(){return f(c).default}});var u=n(1765);function f(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"Swatch",{enumerable:!0,get:function(){return f(u).default}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},o={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}var i=/[A-Z]|^ms/g,l=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!=typeof e},u=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return s(e)?e:e.replace(i,"-$&").toLowerCase()})),f=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(l,(function(e,t,n){return d={name:t,styles:n,next:d},t}))}return 1===o[e]||s(e)||"number"!=typeof t||0===t?t:t+"px"};function p(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(a(n)){case"boolean":return"";case"object":if(1===n.anim)return d={name:n.name,styles:n.styles,next:d},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)d={name:o.name,styles:o.styles,next:d},o=o.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=p(e,t,n[o],!1);else for(var i in n){var l=n[i];if("object"!==a(l))null!=t&&void 0!==t[l]?r+=i+"{"+t[l]+"}":c(l)&&(r+=u(i)+":"+f(i,l)+";");else if(!Array.isArray(l)||"string"!=typeof l[0]||null!=t&&void 0!==t[l[0]]){var s=p(e,t,l,!1);switch(i){case"animation":case"animationName":r+=u(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var d=0;d<l.length;d++)c(l[d])&&(r+=u(i)+":"+f(i,l[d])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=d,l=n(e);return d=i,p(e,t,l,r)}}if(null==t)return n;var s=t[n];return void 0===s||r?n:s}var d,m=/label:\s*([^\s;\n{]+)\s*;/g;var h=function(e,t,n){if(1===e.length&&"object"===a(e[0])&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,i="";d=void 0;var l=e[0];null==l||void 0===l.raw?(o=!1,i+=p(n,t,l,!1)):i+=l[0];for(var s=1;s<e.length;s++)i+=p(n,t,e[s],46===i.charCodeAt(i.length-1)),o&&(i+=l[s]);m.lastIndex=0;for(var c,u="";null!==(c=m.exec(i));)u+="-"+c[1];return{name:r(i)+u,styles:i,next:d}}},function(e,t,n){var r=n(15),o=n(4),a=n(104);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(6),o=n(105),a="__core-js_shared__",i=r[a]||o(a,{});e.exports=i},function(e,t,n){var r=n(6),o=n(106),a=r.WeakMap;e.exports="function"==typeof a&&/native code/.test(o(a))},function(e,t,n){var r=n(19),o=n(108),a=n(25),i=n(18);e.exports=function(e,t){for(var n=o(t),l=i.f,s=a.f,c=0;c<n.length;c++){var u=n[c];r(e,u)||l(e,u,s(t,u))}}},function(e,t,n){var r=n(6);e.exports=r},function(e,t,n){var r=n(19),o=n(32),a=n(87).indexOf,i=n(73);e.exports=function(e,t){var n,l=o(e),s=0,c=[];for(n in l)!r(i,n)&&r(l,n)&&c.push(n);for(;t.length>s;)r(l,n=t[s++])&&(~a(c,n)||c.push(n));return c}},function(e,t,n){var r=n(111);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var r=n(15),o=n(18),a=n(12),i=n(76);e.exports=r?Object.defineProperties:function(e,t){a(e);for(var n,r=i(t),l=r.length,s=0;l>s;)o.f(e,n=r[s++],t[n]);return e}},function(e,t,n){var r=n(42);e.exports=r("document","documentElement")},function(e,t,n){var r=n(32),o=n(57).f,a={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return i&&"[object Window]"==a.call(e)?function(e){try{return o(e)}catch(e){return i.slice()}}(e):o(r(e))}},function(e,t,n){var r=n(14);t.f=r},function(e,t,n){"use strict";var r=n(20),o=n(58),a=n(17),i=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),l=a(n.length),s=o(e,l),c=o(t,l),u=arguments.length>2?arguments[2]:void 0,f=i((void 0===u?l:o(u,l))-c,l-s),p=1;for(c<s&&s<c+f&&(p=-1,c+=f-1,s+=f-1);f-- >0;)c in n?n[s]=n[c]:delete n[s],s+=p,c+=p;return n}},function(e,t,n){"use strict";var r=n(75),o=n(17),a=n(53),i=function(e,t,n,l,s,c,u,f){for(var p,d=s,m=0,h=!!u&&a(u,f,3);m<l;){if(m in n){if(p=h?h(n[m],m,t):n[m],c>0&&r(p))d=i(e,t,p,o(p.length),d,c-1)-1;else{if(d>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[d]=p}d++}m++}return d};e.exports=i},function(e,t,n){"use strict";var r=n(53),o=n(20),a=n(151),i=n(115),l=n(17),s=n(59),c=n(80);e.exports=function(e){var t,n,u,f,p,d,m=o(e),h="function"==typeof this?this:Array,y=arguments.length,b=y>1?arguments[1]:void 0,v=void 0!==b,g=c(m),w=0;if(v&&(b=r(b,y>2?arguments[2]:void 0,2)),null==g||h==Array&&i(g))for(n=new h(t=l(m.length));t>w;w++)d=v?b(m[w],w):m[w],s(n,w,d);else for(p=(f=g.call(m)).next,n=new h;!(u=p.call(f)).done;w++)d=v?a(f,b,[u.value,w],!0):u.value,s(n,w,d);return n.length=w,n}},function(e,t,n){var r=n(12);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var a=e.return;throw void 0!==a&&r(a.call(e)),t}}},function(e,t,n){"use strict";var r=n(153).IteratorPrototype,o=n(52),a=n(51),i=n(48),l=n(79),s=function(){return this};e.exports=function(e,t,n){var c=t+" Iterator";return e.prototype=o(r,{next:a(1,n)}),i(e,c,!1,!0),l[c]=s,e}},function(e,t,n){"use strict";var r,o,a,i=n(43),l=n(31),s=n(19),c=n(14),u=n(47),f=c("iterator"),p=!1;[].keys&&("next"in(a=[].keys())?(o=i(i(a)))!==Object.prototype&&(r=o):p=!0),null==r&&(r={}),u||s(r,f)||l(r,f,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},function(e,t,n){var r=n(11);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){"use strict";var r=n(6),o=n(15),a=n(156),i=n(31),l=n(65),s=n(4),c=n(55),u=n(37),f=n(17),p=n(157),d=n(232),m=n(43),h=n(63),y=n(57).f,b=n(18).f,v=n(114),g=n(48),w=n(33),E=w.get,_=w.set,k="ArrayBuffer",O="DataView",x="prototype",S="Wrong index",j=r[k],C=j,D=r[O],N=D&&D[x],P=Object.prototype,T=r.RangeError,M=d.pack,A=d.unpack,L=function(e){return[255&e]},R=function(e){return[255&e,e>>8&255]},F=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},z=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},B=function(e){return M(e,23,4)},Y=function(e){return M(e,52,8)},I=function(e,t){b(e[x],t,{get:function(){return E(this)[t]}})},H=function(e,t,n,r){var o=p(n),a=E(e);if(o+t>a.byteLength)throw T(S);var i=E(a.buffer).bytes,l=o+a.byteOffset,s=i.slice(l,l+t);return r?s:s.reverse()},U=function(e,t,n,r,o,a){var i=p(n),l=E(e);if(i+t>l.byteLength)throw T(S);for(var s=E(l.buffer).bytes,c=i+l.byteOffset,u=r(+o),f=0;f<t;f++)s[c+f]=u[a?f:t-f-1]};if(a){if(!s((function(){j(1)}))||!s((function(){new j(-1)}))||s((function(){return new j,new j(1.5),new j(NaN),j.name!=k}))){for(var W,V=(C=function(e){return c(this,C),new j(p(e))})[x]=j[x],q=y(j),G=0;q.length>G;)(W=q[G++])in C||i(C,W,j[W]);V.constructor=C}h&&m(N)!==P&&h(N,P);var K=new D(new C(2)),$=N.setInt8;K.setInt8(0,2147483648),K.setInt8(1,2147483649),!K.getInt8(0)&&K.getInt8(1)||l(N,{setInt8:function(e,t){$.call(this,e,t<<24>>24)},setUint8:function(e,t){$.call(this,e,t<<24>>24)}},{unsafe:!0})}else C=function(e){c(this,C,k);var t=p(e);_(this,{bytes:v.call(new Array(t),0),byteLength:t}),o||(this.byteLength=t)},D=function(e,t,n){c(this,D,O),c(e,C,O);var r=E(e).byteLength,a=u(t);if(a<0||a>r)throw T("Wrong offset");if(a+(n=void 0===n?r-a:f(n))>r)throw T("Wrong length");_(this,{buffer:e,byteLength:n,byteOffset:a}),o||(this.buffer=e,this.byteLength=n,this.byteOffset=a)},o&&(I(C,"byteLength"),I(D,"buffer"),I(D,"byteLength"),I(D,"byteOffset")),l(D[x],{getInt8:function(e){return H(this,1,e)[0]<<24>>24},getUint8:function(e){return H(this,1,e)[0]},getInt16:function(e){var t=H(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=H(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return z(H(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return z(H(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return A(H(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return A(H(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){U(this,1,e,L,t)},setUint8:function(e,t){U(this,1,e,L,t)},setInt16:function(e,t){U(this,2,e,R,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){U(this,2,e,R,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){U(this,4,e,F,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){U(this,4,e,F,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){U(this,4,e,B,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){U(this,8,e,Y,t,arguments.length>2?arguments[2]:void 0)}});g(C,k),g(D,O),e.exports={ArrayBuffer:C,DataView:D}},function(e,t){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(e,t,n){var r=n(37),o=n(17);e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=o(t);if(t!==n)throw RangeError("Wrong length or index");return n}},function(e,t,n){"use strict";var r=n(18).f,o=n(52),a=n(65),i=n(53),l=n(55),s=n(83),c=n(117),u=n(64),f=n(15),p=n(60).fastKey,d=n(33),m=d.set,h=d.getterFor;e.exports={getConstructor:function(e,t,n,c){var u=e((function(e,r){l(e,u,t),m(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),f||(e.size=0),null!=r&&s(r,e[c],e,n)})),d=h(t),y=function(e,t,n){var r,o,a=d(e),i=b(e,t);return i?i.value=n:(a.last=i={index:o=p(t,!0),key:t,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=i),r&&(r.next=i),f?a.size++:e.size++,"F"!==o&&(a.index[o]=i)),e},b=function(e,t){var n,r=d(e),o=p(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return a(u.prototype,{clear:function(){for(var e=d(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,f?e.size=0:this.size=0},delete:function(e){var t=this,n=d(t),r=b(t,e);if(r){var o=r.next,a=r.previous;delete n.index[r.index],r.removed=!0,a&&(a.next=o),o&&(o.previous=a),n.first==r&&(n.first=o),n.last==r&&(n.last=a),f?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=d(this),r=i(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!b(this,e)}}),a(u.prototype,n?{get:function(e){var t=b(this,e);return t&&t.value},set:function(e,t){return y(this,0===e?0:e,t)}}:{add:function(e){return y(this,e=0===e?0:e,e)}}),f&&r(u.prototype,"size",{get:function(){return d(this).size}}),u},setStrong:function(e,t,n){var r=t+" Iterator",o=h(t),a=h(r);c(e,t,(function(e,t){m(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=a(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),u(t)}}},function(e,t){var n=Math.log;e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:n(1+e)}},function(e,t,n){var r=n(11),o=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&o(e)===e}},function(e,t,n){"use strict";var r=n(15),o=n(4),a=n(76),i=n(110),l=n(85),s=n(20),c=n(71),u=Object.assign,f=Object.defineProperty;e.exports=!u||o((function(){if(r&&1!==u({b:1},u(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||a(u({},t)).join("")!=o}))?function(e,t){for(var n=s(e),o=arguments.length,u=1,f=i.f,p=l.f;o>u;)for(var d,m=c(arguments[u++]),h=f?a(m).concat(f(m)):a(m),y=h.length,b=0;y>b;)d=h[b++],r&&!p.call(m,d)||(n[d]=m[d]);return n}:u},function(e,t,n){var r=n(15),o=n(76),a=n(32),i=n(85).f,l=function(e){return function(t){for(var n,l=a(t),s=o(l),c=s.length,u=0,f=[];c>u;)n=s[u++],r&&!i.call(l,n)||f.push(e?[n,l[n]]:l[n]);return f}};e.exports={entries:l(!0),values:l(!1)}},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){var r=n(6);e.exports=r.Promise},function(e,t,n){var r=n(113);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},function(e,t,n){var r,o,a,i,l,s,c,u,f=n(6),p=n(25).f,d=n(41),m=n(121).set,h=n(165),y=f.MutationObserver||f.WebKitMutationObserver,b=f.process,v=f.Promise,g="process"==d(b),w=p(f,"queueMicrotask"),E=w&&w.value;E||(r=function(){var e,t;for(g&&(e=b.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(e){throw o?i():a=void 0,e}}a=void 0,e&&e.enter()},g?i=function(){b.nextTick(r)}:y&&!h?(l=!0,s=document.createTextNode(""),new y(r).observe(s,{characterData:!0}),i=function(){s.data=l=!l}):v&&v.resolve?(c=v.resolve(void 0),u=c.then,i=function(){u.call(c,r)}):i=function(){m.call(f,r)}),e.exports=E||function(e){var t={fn:e,next:void 0};a&&(a.next=t),o||(o=t,i()),a=t}},function(e,t,n){var r=n(12),o=n(11),a=n(168);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=a.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var r=n(38),o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},function(e,t,n){"use strict";var r=n(2),o=n(97);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(e,t,n){"use strict";var r=n(98).charAt,o=n(33),a=n(117),i="String Iterator",l=o.set,s=o.getterFor(i);a(String,"String",(function(e){l(this,{type:i,string:String(e),index:0})}),(function(){var e,t=s(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))},function(e,t,n){var r=n(17),o=n(120),a=n(30),i=Math.ceil,l=function(e){return function(t,n,l){var s,c,u=String(a(t)),f=u.length,p=void 0===l?" ":String(l),d=r(n);return d<=f||""==p?u:(s=d-f,(c=o.call(p,i(s/p.length))).length>s&&(c=c.slice(0,s)),e?u+c:c+u)}};e.exports={start:l(!1),end:l(!0)}},function(e,t,n){var r=n(113);e.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(r)},function(e,t,n){var r=n(347);e.exports=function(e,t){var n=r(e);if(n%t)throw RangeError("Wrong offset");return n}},function(e,t,n){var r=n(20),o=n(17),a=n(80),i=n(115),l=n(53),s=n(16).aTypedArrayConstructor;e.exports=function(e){var t,n,c,u,f,p,d=r(e),m=arguments.length,h=m>1?arguments[1]:void 0,y=void 0!==h,b=a(d);if(null!=b&&!i(b))for(p=(f=b.call(d)).next,d=[];!(u=p.call(f)).done;)d.push(u.value);for(y&&m>2&&(h=l(h,arguments[2],2)),n=o(d.length),c=new(s(this))(n),t=0;n>t;t++)c[t]=y?h(d[t],t):d[t];return c}},function(e,t,n){var r=n(38),o=n(20),a=n(71),i=n(17),l=function(e){return function(t,n,l,s){r(n);var c=o(t),u=a(c),f=i(c.length),p=e?f-1:0,d=e?-1:1;if(l<2)for(;;){if(p in u){s=u[p],p+=d;break}if(p+=d,e?p<0:f<=p)throw TypeError("Reduce of empty array with no initial value")}for(;e?p>=0:f>p;p+=d)p in u&&(s=n(s,u[p],p,c));return s}};e.exports={left:l(!1),right:l(!0)}},function(e,t,n){"use strict";var r=n(65),o=n(60).getWeakData,a=n(12),i=n(11),l=n(55),s=n(83),c=n(27),u=n(19),f=n(33),p=f.set,d=f.getterFor,m=c.find,h=c.findIndex,y=0,b=function(e){return e.frozen||(e.frozen=new v)},v=function(){this.entries=[]},g=function(e,t){return m(e.entries,(function(e){return e[0]===t}))};v.prototype={get:function(e){var t=g(this,e);if(t)return t[1]},has:function(e){return!!g(this,e)},set:function(e,t){var n=g(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=h(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,c){var f=e((function(e,r){l(e,f,t),p(e,{type:t,id:y++,frozen:void 0}),null!=r&&s(r,e[c],e,n)})),m=d(t),h=function(e,t,n){var r=m(e),i=o(a(t),!0);return!0===i?b(r).set(t,n):i[r.id]=n,e};return r(f.prototype,{delete:function(e){var t=m(this);if(!i(e))return!1;var n=o(e);return!0===n?b(t).delete(e):n&&u(n,t.id)&&delete n[t.id]},has:function(e){var t=m(this);if(!i(e))return!1;var n=o(e);return!0===n?b(t).has(e):n&&u(n,t.id)}}),r(f.prototype,n?{get:function(e){var t=m(this);if(i(e)){var n=o(e);return!0===n?b(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return h(this,e,t)}}:{add:function(e){return h(this,e,!0)}}),f}}},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){var r=n(4),o=n(14),a=n(47),i=o("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),a&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[i]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},function(e,t,n){"use strict";n(89);var r=n(2),o=n(42),a=n(178),i=n(26),l=n(65),s=n(48),c=n(152),u=n(33),f=n(55),p=n(19),d=n(53),m=n(81),h=n(12),y=n(11),b=n(52),v=n(51),g=n(391),w=n(80),E=n(14),_=o("fetch"),k=o("Headers"),O=E("iterator"),x="URLSearchParams",S=x+"Iterator",j=u.set,C=u.getterFor(x),D=u.getterFor(S),N=/\+/g,P=Array(4),T=function(e){return P[e-1]||(P[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},M=function(e){try{return decodeURIComponent(e)}catch(t){return e}},A=function(e){var t=e.replace(N," "),n=4;try{return decodeURIComponent(t)}catch(e){for(;n;)t=t.replace(T(n--),M);return t}},L=/[!'()~]|%20/g,R={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},F=function(e){return R[e]},z=function(e){return encodeURIComponent(e).replace(L,F)},B=function(e,t){if(t)for(var n,r,o=t.split("&"),a=0;a<o.length;)(n=o[a++]).length&&(r=n.split("="),e.push({key:A(r.shift()),value:A(r.join("="))}))},Y=function(e){this.entries.length=0,B(this.entries,e)},I=function(e,t){if(e<t)throw TypeError("Not enough arguments")},H=c((function(e,t){j(this,{type:S,iterator:g(C(e).entries),kind:t})}),"Iterator",(function(){var e=D(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n})),U=function(){f(this,U,x);var e,t,n,r,o,a,i,l,s,c=arguments.length>0?arguments[0]:void 0,u=[];if(j(this,{type:x,entries:u,updateURL:function(){},updateSearchParams:Y}),void 0!==c)if(y(c))if("function"==typeof(e=w(c)))for(n=(t=e.call(c)).next;!(r=n.call(t)).done;){if((i=(a=(o=g(h(r.value))).next).call(o)).done||(l=a.call(o)).done||!a.call(o).done)throw TypeError("Expected sequence with length 2");u.push({key:i.value+"",value:l.value+""})}else for(s in c)p(c,s)&&u.push({key:s,value:c[s]+""});else B(u,"string"==typeof c?"?"===c.charAt(0)?c.slice(1):c:c+"")},W=U.prototype;l(W,{append:function(e,t){I(arguments.length,2);var n=C(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){I(arguments.length,1);for(var t=C(this),n=t.entries,r=e+"",o=0;o<n.length;)n[o].key===r?n.splice(o,1):o++;t.updateURL()},get:function(e){I(arguments.length,1);for(var t=C(this).entries,n=e+"",r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){I(arguments.length,1);for(var t=C(this).entries,n=e+"",r=[],o=0;o<t.length;o++)t[o].key===n&&r.push(t[o].value);return r},has:function(e){I(arguments.length,1);for(var t=C(this).entries,n=e+"",r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){I(arguments.length,1);for(var n,r=C(this),o=r.entries,a=!1,i=e+"",l=t+"",s=0;s<o.length;s++)(n=o[s]).key===i&&(a?o.splice(s--,1):(a=!0,n.value=l));a||o.push({key:i,value:l}),r.updateURL()},sort:function(){var e,t,n,r=C(this),o=r.entries,a=o.slice();for(o.length=0,n=0;n<a.length;n++){for(e=a[n],t=0;t<n;t++)if(o[t].key>e.key){o.splice(t,0,e);break}t===n&&o.push(e)}r.updateURL()},forEach:function(e){for(var t,n=C(this).entries,r=d(e,arguments.length>1?arguments[1]:void 0,3),o=0;o<n.length;)r((t=n[o++]).value,t.key,this)},keys:function(){return new H(this,"keys")},values:function(){return new H(this,"values")},entries:function(){return new H(this,"entries")}},{enumerable:!0}),i(W,O,W.entries),i(W,"toString",(function(){for(var e,t=C(this).entries,n=[],r=0;r<t.length;)e=t[r++],n.push(z(e.key)+"="+z(e.value));return n.join("&")}),{enumerable:!0}),s(U,x),r({global:!0,forced:!a},{URLSearchParams:U}),a||"function"!=typeof _||"function"!=typeof k||r({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,n,r,o=[e];return arguments.length>1&&(y(t=arguments[1])&&(n=t.body,m(n)===x&&((r=t.headers?new k(t.headers):new k).has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=b(t,{body:v(0,String(n)),headers:v(0,r)}))),o.push(t)),_.apply(this,o)}}),e.exports={URLSearchParams:U,getState:C}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,a,i,l){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,a,i,l],u=0;(s=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},function(e,t,n){var r,o,a;function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw a}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}a=function(){"use strict";function e(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch(t){return e}}function t(e){return e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())}))}return{setDataAttribute:function(e,n,r){e.setAttribute("data-bs-".concat(t(n)),r)},removeDataAttribute:function(e,n){e.removeAttribute("data-bs-".concat(t(n)))},getDataAttributes:function(t){if(!t)return{};var n,r={},o=Object.keys(t.dataset).filter((function(e){return e.startsWith("bs")&&!e.startsWith("bsConfig")})),a=i(o);try{for(a.s();!(n=a.n()).done;){var l=n.value,s=l.replace(/^bs/,"");r[s=s.charAt(0).toLowerCase()+s.slice(1,s.length)]=e(t.dataset[l])}}catch(e){a.e(e)}finally{a.f()}return r},getDataAttribute:function(n,r){return e(n.getAttribute("data-bs-".concat(t(r))))}}},"object"===s(t)&&void 0!==e?e.exports=a():void 0===(o="function"==typeof(r=a)?r.call(t,n,t,e):r)||(e.exports=o)},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){(function(e){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}"undefined"!=typeof self&&self,i=function(e,t,n){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"===l(Symbol.iterator)?function(e){return l(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":l(e)},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=c(n(1)),s=c(n(2));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==l(t)&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+l(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"propsWith",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={};return Object.keys(this.props).forEach((function(r){if(-1!==r.search(e)){var o=t?r.replace(e,""):r;n[o]=this.props[r]}}),this),n}},{key:"componentWillUnmount",value:function(){this.clipboard&&this.clipboard.destroy()}},{key:"componentDidMount",value:function(){var e=this.props.options||this.propsWith(/^option-/,!0),t=i.default.version.match(/0\.13(.*)/)?this.refs.element.getDOMNode():this.element,r=n(3);this.clipboard=new r(t,e);var o=this.propsWith(/^on/,!0);Object.keys(o).forEach((function(e){this.clipboard.on(e.toLowerCase(),this.props["on"+e])}),this)}},{key:"render",value:function(){var e=this,t=o({type:this.getType(),className:this.props.className||"",style:this.props.style||{},ref:function(t){e.element=t},onClick:this.props.onClick},this.propsWith(/^data-/),this.propsWith(/^button-/,!0));return i.default.createElement(this.getComponent(),t,this.props.children)}},{key:"getType",value:function(){return"button"===this.getComponent()||"input"===this.getComponent()?this.props.type||"button":void 0}},{key:"getComponent",value:function(){return this.props.component||"button"}}]),t}(i.default.Component);u.propTypes={options:function(e,t,n){var o=e[t];return o&&"object"!==(void 0===o?"undefined":r(o))||Array.isArray(o)?new Error("Invalid props '"+t+"' supplied to '"+n+"'. '"+t+"' is not an object."):void 0!==e["option-text"]&&"function"!=typeof e["option-text"]?new Error("Invalid props 'option-text' supplied to '"+n+"'. 'option-text' is not a function."):void 0},type:s.default.string,className:s.default.string,style:s.default.object,component:s.default.string,children:s.default.oneOfType([s.default.element,s.default.string,s.default.number,s.default.object])},u.defaultProps={onClick:function(){}},t.default=u},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n}])},"object"===l(t)&&"object"===l(e)?e.exports=i(n(0),n(8),n(396)):(o=[n(0),n(8),n(396)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))}).call(this,n(101)(e))},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(45),o=n(401),a=n(403),i=n(404),l=n(405),s=n(187),c="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||n(406);e.exports=function(e){return new Promise((function(t,u){var f=e.data,p=e.headers;r.isFormData(f)&&delete p["Content-Type"];var d=new XMLHttpRequest,m="onreadystatechange",h=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in d||l(e.url)||(d=new window.XDomainRequest,m="onload",h=!0,d.onprogress=function(){},d.ontimeout=function(){}),e.auth){var y=e.auth.username||"",b=e.auth.password||"";p.Authorization="Basic "+c(y+":"+b)}if(d.open(e.method.toUpperCase(),a(e.url,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d[m]=function(){if(d&&(4===d.readyState||h)&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in d?i(d.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?d.response:d.responseText,status:1223===d.status?204:d.status,statusText:1223===d.status?"No Content":d.statusText,headers:n,config:e,request:d};o(t,u,r),d=null}},d.onerror=function(){u(s("Network Error",e)),d=null},d.ontimeout=function(){u(s("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED")),d=null},r.isStandardBrowserEnv()){var v=n(407),g=(e.withCredentials||l(e.url))&&e.xsrfCookieName?v.read(e.xsrfCookieName):void 0;g&&(p[e.xsrfHeaderName]=g)}if("setRequestHeader"in d&&r.forEach(p,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete p[t]:d.setRequestHeader(t,e)})),e.withCredentials&&(d.withCredentials=!0),e.responseType)try{d.responseType=e.responseType}catch(e){if("json"!==d.responseType)throw e}"function"==typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){d&&(d.abort(),u(e),d=null)})),void 0===f&&(f=null),d.send(f)}))}},function(e,t,n){"use strict";var r=n(402);e.exports=function(e,t,n,o){var a=new Error(e);return r(a,t,n,o)}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){e.exports=n(1804)()},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=n(132),a="function"==typeof Symbol&&Symbol.for,i=a?Symbol.for("react.element"):60103,l=a?Symbol.for("react.portal"):60106,s=a?Symbol.for("react.fragment"):60107,c=a?Symbol.for("react.strict_mode"):60108,u=a?Symbol.for("react.profiler"):60114,f=a?Symbol.for("react.provider"):60109,p=a?Symbol.for("react.context"):60110,d=a?Symbol.for("react.forward_ref"):60112,m=a?Symbol.for("react.suspense"):60113,h=a?Symbol.for("react.memo"):60115,y=a?Symbol.for("react.lazy"):60116,b="function"==typeof Symbol&&Symbol.iterator;function v(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w={};function E(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||g}function _(){}function k(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||g}E.prototype.isReactComponent={},E.prototype.setState=function(e,t){if("object"!==r(e)&&"function"!=typeof e&&null!=e)throw Error(v(85));this.updater.enqueueSetState(this,e,t,"setState")},E.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},_.prototype=E.prototype;var O=k.prototype=new _;O.constructor=k,o(O,E.prototype),O.isPureReactComponent=!0;var x={current:null},S=Object.prototype.hasOwnProperty,j={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,n){var r,o={},a=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,r)&&!j.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===o[r]&&(o[r]=s[r]);return{$$typeof:i,type:e,key:a,ref:l,props:o,_owner:x.current}}function D(e){return"object"===r(e)&&null!==e&&e.$$typeof===i}var N=/\/+/g,P=[];function T(e,t,n,r){if(P.length){var o=P.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function M(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>P.length&&P.push(e)}function A(e,t,n,o){var a=r(e);"undefined"!==a&&"boolean"!==a||(e=null);var s=!1;if(null===e)s=!0;else switch(a){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case i:case l:s=!0}}if(s)return n(o,e,""===t?"."+R(e,0):t),1;if(s=0,t=""===t?".":t+":",Array.isArray(e))for(var c=0;c<e.length;c++){var u=t+R(a=e[c],c);s+=A(a,u,n,o)}else if(null===e||"object"!==r(e)?u=null:u="function"==typeof(u=b&&e[b]||e["@@iterator"])?u:null,"function"==typeof u)for(e=u.call(e),c=0;!(a=e.next()).done;)s+=A(a=a.value,u=t+R(a,c++),n,o);else if("object"===a)throw n=""+e,Error(v(31,"[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return s}function L(e,t,n){return null==e?0:A(e,"",t,n)}function R(e,t){return"object"===r(e)&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function F(e,t){e.func.call(e.context,t,e.count++)}function z(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?B(e,r,n,(function(e){return e})):null!=e&&(D(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(N,"$&/")+"/")+n)),r.push(e))}function B(e,t,n,r,o){var a="";null!=n&&(a=(""+n).replace(N,"$&/")+"/"),L(e,z,t=T(t,a,r,o)),M(t)}var Y={current:null};function I(){var e=Y.current;if(null===e)throw Error(v(321));return e}var H={ReactCurrentDispatcher:Y,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:x,IsSomeRendererActing:{current:!1},assign:o};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return B(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;L(e,F,t=T(null,null,t,n)),M(t)},count:function(e){return L(e,(function(){return null}),null)},toArray:function(e){var t=[];return B(e,t,null,(function(e){return e})),t},only:function(e){if(!D(e))throw Error(v(143));return e}},t.Component=E,t.Fragment=s,t.Profiler=u,t.PureComponent=k,t.StrictMode=c,t.Suspense=m,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=H,t.cloneElement=function(e,t,n){if(null==e)throw Error(v(267,e));var r=o({},e.props),a=e.key,l=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,s=x.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)S.call(t,u)&&!j.hasOwnProperty(u)&&(r[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)r.children=n;else if(1<u){c=Array(u);for(var f=0;f<u;f++)c[f]=arguments[f+2];r.children=c}return{$$typeof:i,type:e.type,key:a,ref:l,props:r,_owner:s}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:p,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:f,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:d,render:e}},t.isValidElement=D,t.lazy=function(e){return{$$typeof:y,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return I().useCallback(e,t)},t.useContext=function(e,t){return I().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return I().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return I().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return I().useLayoutEffect(e,t)},t.useMemo=function(e,t){return I().useMemo(e,t)},t.useReducer=function(e,t,n){return I().useReducer(e,t,n)},t.useRef=function(e){return I().useRef(e)},t.useState=function(e){return I().useState(e)},t.version="16.13.1"},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=n(0),a=n(132),i=n(193);function l(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!o)throw Error(l(227));function s(e,t,n,r,o,a,i,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var c=!1,u=null,f=!1,p=null,d={onError:function(e){c=!0,u=e}};function m(e,t,n,r,o,a,i,l,f){c=!1,u=null,s.apply(d,arguments)}var h=null,y=null,b=null;function v(e,t,n){var r=e.type||"unknown-event";e.currentTarget=b(n),function(e,t,n,r,o,a,i,s,d){if(m.apply(this,arguments),c){if(!c)throw Error(l(198));var h=u;c=!1,u=null,f||(f=!0,p=h)}}(r,t,void 0,e),e.currentTarget=null}var g=null,w={};function E(){if(g)for(var e in w){var t=w[e],n=g.indexOf(e);if(!(-1<n))throw Error(l(96,e));if(!k[n]){if(!t.extractEvents)throw Error(l(97,e));for(var r in k[n]=t,n=t.eventTypes){var o=void 0,a=n[r],i=t,s=r;if(O.hasOwnProperty(s))throw Error(l(99,s));O[s]=a;var c=a.phasedRegistrationNames;if(c){for(o in c)c.hasOwnProperty(o)&&_(c[o],i,s);o=!0}else a.registrationName?(_(a.registrationName,i,s),o=!0):o=!1;if(!o)throw Error(l(98,r,e))}}}}function _(e,t,n){if(x[e])throw Error(l(100,e));x[e]=t,S[e]=t.eventTypes[n].dependencies}var k=[],O={},x={},S={};function j(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!w.hasOwnProperty(t)||w[t]!==r){if(w[t])throw Error(l(102,t));w[t]=r,n=!0}}n&&E()}var C=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),D=null,N=null,P=null;function T(e){if(e=y(e)){if("function"!=typeof D)throw Error(l(280));var t=e.stateNode;t&&(t=h(t),D(e.stateNode,e.type,t))}}function M(e){N?P?P.push(e):P=[e]:N=e}function A(){if(N){var e=N,t=P;if(P=N=null,T(e),t)for(e=0;e<t.length;e++)T(t[e])}}function L(e,t){return e(t)}function R(e,t,n,r,o){return e(t,n,r,o)}function F(){}var z=L,B=!1,Y=!1;function I(){null===N&&null===P||(F(),A())}function H(e,t,n){if(Y)return e(t,n);Y=!0;try{return z(e,t,n)}finally{Y=!1,I()}}var U=/^[: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]*$/,W=Object.prototype.hasOwnProperty,V={},q={};function G(e,t,n,o){if(null==t||function(e,t,n,o){if(null!==n&&0===n.type)return!1;switch(r(t)){case"function":case"symbol":return!0;case"boolean":return!o&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,o))return!0;if(o)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function K(e,t,n,r,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a}var $={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){$[e]=new K(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];$[t]=new K(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){$[e]=new K(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){$[e]=new K(e,2,!1,e,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(e){$[e]=new K(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){$[e]=new K(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){$[e]=new K(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){$[e]=new K(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){$[e]=new K(e,5,!1,e.toLowerCase(),null,!1)}));var J=/[\-:]([a-z])/g;function X(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(J,X);$[t]=new K(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(J,X);$[t]=new K(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(J,X);$[t]=new K(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){$[e]=new K(e,1,!1,e.toLowerCase(),null,!1)})),$.xlinkHref=new K("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){$[e]=new K(e,1,!1,e.toLowerCase(),null,!0)}));var Q=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Z(e,t,n,r){var o=$.hasOwnProperty(t)?$[t]:null;(null!==o?0===o.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(G(t,n,o,r)&&(n=null),r||null===o?function(e){return!!W.call(q,e)||!W.call(V,e)&&(U.test(e)?q[e]=!0:(V[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}Q.hasOwnProperty("ReactCurrentDispatcher")||(Q.ReactCurrentDispatcher={current:null}),Q.hasOwnProperty("ReactCurrentBatchConfig")||(Q.ReactCurrentBatchConfig={suspense:null});var ee=/^(.*)[\\\/]/,te="function"==typeof Symbol&&Symbol.for,ne=te?Symbol.for("react.element"):60103,re=te?Symbol.for("react.portal"):60106,oe=te?Symbol.for("react.fragment"):60107,ae=te?Symbol.for("react.strict_mode"):60108,ie=te?Symbol.for("react.profiler"):60114,le=te?Symbol.for("react.provider"):60109,se=te?Symbol.for("react.context"):60110,ce=te?Symbol.for("react.concurrent_mode"):60111,ue=te?Symbol.for("react.forward_ref"):60112,fe=te?Symbol.for("react.suspense"):60113,pe=te?Symbol.for("react.suspense_list"):60120,de=te?Symbol.for("react.memo"):60115,me=te?Symbol.for("react.lazy"):60116,he=te?Symbol.for("react.block"):60121,ye="function"==typeof Symbol&&Symbol.iterator;function be(e){return null===e||"object"!==r(e)?null:"function"==typeof(e=ye&&e[ye]||e["@@iterator"])?e:null}function ve(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case oe:return"Fragment";case re:return"Portal";case ie:return"Profiler";case ae:return"StrictMode";case fe:return"Suspense";case pe:return"SuspenseList"}if("object"===r(e))switch(e.$$typeof){case se:return"Context.Consumer";case le:return"Context.Provider";case ue:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case de:return ve(e.type);case he:return ve(e.render);case me:if(e=1===e._status?e._result:null)return ve(e)}return null}function ge(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,o=e._debugSource,a=ve(e.type);n=null,r&&(n=ve(r.type)),r=a,a="",o?a=" (at "+o.fileName.replace(ee,"")+":"+o.lineNumber+")":n&&(a=" (created by "+n+")"),n="\n    in "+(r||"Unknown")+a}t+=n,e=e.return}while(e);return t}function we(e){switch(r(e)){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Ee(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function _e(e){e._valueTracker||(e._valueTracker=function(e){var t=Ee(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function ke(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ee(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Oe(e,t){var n=t.checked;return a({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function xe(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=we(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Se(e,t){null!=(t=t.checked)&&Z(e,"checked",t,!1)}function je(e,t){Se(e,t);var n=we(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?De(e,t.type,n):t.hasOwnProperty("defaultValue")&&De(e,t.type,we(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Ce(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function De(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Ne(e,t){return e=a({children:void 0},t),(t=function(e){var t="";return o.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Pe(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+we(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Te(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(l(91));return a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Me(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(l(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(l(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:we(n)}}function Ae(e,t){var n=we(t.value),r=we(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Le(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Re="http://www.w3.org/1999/xhtml",Fe="http://www.w3.org/2000/svg";function ze(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Be(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ze(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Ye,Ie,He=(Ie=function(e,t){if(e.namespaceURI!==Fe||"innerHTML"in e)e.innerHTML=t;else{for((Ye=Ye||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ye.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return Ie(e,t)}))}:Ie);function Ue(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function We(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ve={animationend:We("Animation","AnimationEnd"),animationiteration:We("Animation","AnimationIteration"),animationstart:We("Animation","AnimationStart"),transitionend:We("Transition","TransitionEnd")},qe={},Ge={};function Ke(e){if(qe[e])return qe[e];if(!Ve[e])return e;var t,n=Ve[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ge)return qe[e]=n[t];return e}C&&(Ge=document.createElement("div").style,"AnimationEvent"in window||(delete Ve.animationend.animation,delete Ve.animationiteration.animation,delete Ve.animationstart.animation),"TransitionEvent"in window||delete Ve.transitionend.transition);var $e=Ke("animationend"),Je=Ke("animationiteration"),Xe=Ke("animationstart"),Qe=Ke("transitionend"),Ze="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),et=new("function"==typeof WeakMap?WeakMap:Map);function tt(e){var t=et.get(e);return void 0===t&&(t=new Map,et.set(e,t)),t}function nt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function rt(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function ot(e){if(nt(e)!==e)throw Error(l(188))}function at(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=nt(e)))throw Error(l(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return ot(o),e;if(a===r)return ot(o),t;a=a.sibling}throw Error(l(188))}if(n.return!==r.return)n=o,r=a;else{for(var i=!1,s=o.child;s;){if(s===n){i=!0,n=o,r=a;break}if(s===r){i=!0,r=o,n=a;break}s=s.sibling}if(!i){for(s=a.child;s;){if(s===n){i=!0,n=a,r=o;break}if(s===r){i=!0,r=a,n=o;break}s=s.sibling}if(!i)throw Error(l(189))}}if(n.alternate!==r)throw Error(l(190))}if(3!==n.tag)throw Error(l(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function it(e,t){if(null==t)throw Error(l(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function lt(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var st=null;function ct(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)v(e,t[r],n[r]);else t&&v(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function ut(e){if(null!==e&&(st=it(st,e)),e=st,st=null,e){if(lt(e,ct),st)throw Error(l(95));if(f)throw e=p,f=!1,p=null,e}}function ft(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function pt(e){if(!C)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var dt=[];function mt(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>dt.length&&dt.push(e)}function ht(e,t,n,r){if(dt.length){var o=dt.pop();return o.topLevelType=e,o.eventSystemFlags=r,o.nativeEvent=t,o.targetInst=n,o}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function yt(e){var t=e.targetInst,n=t;do{if(!n){e.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!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=Ln(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var o=ft(e.nativeEvent);r=e.topLevelType;var a=e.nativeEvent,i=e.eventSystemFlags;0===n&&(i|=64);for(var l=null,s=0;s<k.length;s++){var c=k[s];c&&(c=c.extractEvents(r,t,a,o,i))&&(l=it(l,c))}ut(l)}}function bt(e,t,n){if(!n.has(e)){switch(e){case"scroll":Xt(t,"scroll",!0);break;case"focus":case"blur":Xt(t,"focus",!0),Xt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":pt(e)&&Xt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Ze.indexOf(e)&&Jt(e,t)}n.set(e,null)}}var vt,gt,wt,Et=!1,_t=[],kt=null,Ot=null,xt=null,St=new Map,jt=new Map,Ct=[],Dt="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(" "),Nt="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Pt(e,t,n,r,o){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:o,container:r}}function Tt(e,t){switch(e){case"focus":case"blur":kt=null;break;case"dragenter":case"dragleave":Ot=null;break;case"mouseover":case"mouseout":xt=null;break;case"pointerover":case"pointerout":St.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":jt.delete(t.pointerId)}}function Mt(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e=Pt(t,n,r,o,a),null!==t&&(null!==(t=Rn(t))&&gt(t)),e):(e.eventSystemFlags|=r,e)}function At(e){var t=Ln(e.target);if(null!==t){var n=nt(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=rt(n)))return e.blockedOn=t,void i.unstable_runWithPriority(e.priority,(function(){wt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Lt(e){if(null!==e.blockedOn)return!1;var t=tn(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=Rn(t);return null!==n&&gt(n),e.blockedOn=t,!1}return!0}function Rt(e,t,n){Lt(e)&&n.delete(t)}function Ft(){for(Et=!1;0<_t.length;){var e=_t[0];if(null!==e.blockedOn){null!==(e=Rn(e.blockedOn))&&vt(e);break}var t=tn(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:_t.shift()}null!==kt&&Lt(kt)&&(kt=null),null!==Ot&&Lt(Ot)&&(Ot=null),null!==xt&&Lt(xt)&&(xt=null),St.forEach(Rt),jt.forEach(Rt)}function zt(e,t){e.blockedOn===t&&(e.blockedOn=null,Et||(Et=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Ft)))}function Bt(e){function t(t){return zt(t,e)}if(0<_t.length){zt(_t[0],e);for(var n=1;n<_t.length;n++){var r=_t[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==kt&&zt(kt,e),null!==Ot&&zt(Ot,e),null!==xt&&zt(xt,e),St.forEach(t),jt.forEach(t),n=0;n<Ct.length;n++)(r=Ct[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Ct.length&&null===(n=Ct[0]).blockedOn;)At(n),null===n.blockedOn&&Ct.shift()}var Yt={},It=new Map,Ht=new Map,Ut=["abort","abort",$e,"animationEnd",Je,"animationIteration",Xe,"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",Qe,"transitionEnd","waiting","waiting"];function Wt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1],a="on"+(o[0].toUpperCase()+o.slice(1));a={phasedRegistrationNames:{bubbled:a,captured:a+"Capture"},dependencies:[r],eventPriority:t},Ht.set(r,t),It.set(r,a),Yt[o]=a}}Wt("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),Wt("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),Wt(Ut,2);for(var Vt="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),qt=0;qt<Vt.length;qt++)Ht.set(Vt[qt],0);var Gt=i.unstable_UserBlockingPriority,Kt=i.unstable_runWithPriority,$t=!0;function Jt(e,t){Xt(t,e,!1)}function Xt(e,t,n){var r=Ht.get(t);switch(void 0===r?2:r){case 0:r=Qt.bind(null,t,1,e);break;case 1:r=Zt.bind(null,t,1,e);break;default:r=en.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Qt(e,t,n,r){B||F();var o=en,a=B;B=!0;try{R(o,e,t,n,r)}finally{(B=a)||I()}}function Zt(e,t,n,r){Kt(Gt,en.bind(null,e,t,n,r))}function en(e,t,n,r){if($t)if(0<_t.length&&-1<Dt.indexOf(e))e=Pt(null,e,t,n,r),_t.push(e);else{var o=tn(e,t,n,r);if(null===o)Tt(e,r);else if(-1<Dt.indexOf(e))e=Pt(o,e,t,n,r),_t.push(e);else if(!function(e,t,n,r,o){switch(t){case"focus":return kt=Mt(kt,e,t,n,r,o),!0;case"dragenter":return Ot=Mt(Ot,e,t,n,r,o),!0;case"mouseover":return xt=Mt(xt,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return St.set(a,Mt(St.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,jt.set(a,Mt(jt.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r)){Tt(e,r),e=ht(e,r,null,t);try{H(yt,e)}finally{mt(e)}}}}function tn(e,t,n,r){if(null!==(n=Ln(n=ft(r)))){var o=nt(n);if(null===o)n=null;else{var a=o.tag;if(13===a){if(null!==(n=rt(o)))return n;n=null}else if(3===a){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;n=null}else o!==n&&(n=null)}}e=ht(e,r,n,t);try{H(yt,e)}finally{mt(e)}return null}var nn={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},rn=["Webkit","ms","Moz","O"];function on(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||nn.hasOwnProperty(e)&&nn[e]?(""+t).trim():t+"px"}function an(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=on(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(nn).forEach((function(e){rn.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),nn[t]=nn[e]}))}));var ln=a({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 sn(e,t){if(t){if(ln[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(l(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(l(60));if("object"!==r(t.dangerouslySetInnerHTML)||!("__html"in t.dangerouslySetInnerHTML))throw Error(l(61))}if(null!=t.style&&"object"!==r(t.style))throw Error(l(62,""))}}function cn(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var un=Re;function fn(e,t){var n=tt(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=S[t];for(var r=0;r<t.length;r++)bt(t[r],e,n)}function pn(){}function dn(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function mn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hn(e,t){var n,r=mn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=mn(r)}}function yn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?yn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function bn(){for(var e=window,t=dn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=dn((e=t.contentWindow).document)}return t}function vn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var gn="$",wn="/$",En="$?",_n="$!",kn=null,On=null;function xn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Sn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"===r(t.dangerouslySetInnerHTML)&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var jn="function"==typeof setTimeout?setTimeout:void 0,Cn="function"==typeof clearTimeout?clearTimeout:void 0;function Dn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Nn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===gn||n===_n||n===En){if(0===t)return e;t--}else n===wn&&t++}e=e.previousSibling}return null}var Pn=Math.random().toString(36).slice(2),Tn="__reactInternalInstance$"+Pn,Mn="__reactEventHandlers$"+Pn,An="__reactContainere$"+Pn;function Ln(e){var t=e[Tn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[An]||n[Tn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Nn(e);null!==e;){if(n=e[Tn])return n;e=Nn(e)}return t}n=(e=n).parentNode}return null}function Rn(e){return!(e=e[Tn]||e[An])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Fn(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(l(33))}function zn(e){return e[Mn]||null}function Bn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Yn(e,t){var n=e.stateNode;if(!n)return null;var o=h(n);if(!o)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(l(231,t,r(n)));return n}function In(e,t,n){(t=Yn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=it(n._dispatchListeners,t),n._dispatchInstances=it(n._dispatchInstances,e))}function Hn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Bn(t);for(t=n.length;0<t--;)In(n[t],"captured",e);for(t=0;t<n.length;t++)In(n[t],"bubbled",e)}}function Un(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Yn(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=it(n._dispatchListeners,t),n._dispatchInstances=it(n._dispatchInstances,e))}function Wn(e){e&&e.dispatchConfig.registrationName&&Un(e._targetInst,null,e)}function Vn(e){lt(e,Hn)}var qn=null,Gn=null,Kn=null;function $n(){if(Kn)return Kn;var e,t,n=Gn,r=n.length,o="value"in qn?qn.value:qn.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return Kn=o.slice(e,1<t?1-t:void 0)}function Jn(){return!0}function Xn(){return!1}function Qn(e,t,n,r){for(var o in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(n):"target"===o?this.target=r:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Jn:Xn,this.isPropagationStopped=Xn,this}function Zn(e,t,n,r){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)}function er(e){if(!(e instanceof this))throw Error(l(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function tr(e){e.eventPool=[],e.getPooled=Zn,e.release=er}a(Qn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Jn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Jn)},persist:function(){this.isPersistent=Jn},isPersistent:Xn,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Xn,this._dispatchInstances=this._dispatchListeners=null}}),Qn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Qn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return a(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=a({},r.Interface,e),n.extend=r.extend,tr(n),n},tr(Qn);var nr=Qn.extend({data:null}),rr=Qn.extend({data:null}),or=[9,13,27,32],ar=C&&"CompositionEvent"in window,ir=null;C&&"documentMode"in document&&(ir=document.documentMode);var lr=C&&"TextEvent"in window&&!ir,sr=C&&(!ar||ir&&8<ir&&11>=ir),cr=String.fromCharCode(32),ur={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(" ")}},fr=!1;function pr(e,t){switch(e){case"keyup":return-1!==or.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function dr(e){return"object"===r(e=e.detail)&&"data"in e?e.data:null}var mr=!1;var hr={eventTypes:ur,extractEvents:function(e,t,n,r){var o;if(ar)e:{switch(e){case"compositionstart":var a=ur.compositionStart;break e;case"compositionend":a=ur.compositionEnd;break e;case"compositionupdate":a=ur.compositionUpdate;break e}a=void 0}else mr?pr(e,n)&&(a=ur.compositionEnd):"keydown"===e&&229===n.keyCode&&(a=ur.compositionStart);return a?(sr&&"ko"!==n.locale&&(mr||a!==ur.compositionStart?a===ur.compositionEnd&&mr&&(o=$n()):(Gn="value"in(qn=r)?qn.value:qn.textContent,mr=!0)),a=nr.getPooled(a,t,n,r),o?a.data=o:null!==(o=dr(n))&&(a.data=o),Vn(a),o=a):o=null,(e=lr?function(e,t){switch(e){case"compositionend":return dr(t);case"keypress":return 32!==t.which?null:(fr=!0,cr);case"textInput":return(e=t.data)===cr&&fr?null:e;default:return null}}(e,n):function(e,t){if(mr)return"compositionend"===e||!ar&&pr(e,t)?(e=$n(),Kn=Gn=qn=null,mr=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return sr&&"ko"!==t.locale?null:t.data}}(e,n))?((t=rr.getPooled(ur.beforeInput,t,n,r)).data=e,Vn(t)):t=null,null===o?t:null===t?o:[o,t]}},yr={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 br(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!yr[e.type]:"textarea"===t}var vr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function gr(e,t,n){return(e=Qn.getPooled(vr.change,e,t,n)).type="change",M(n),Vn(e),e}var wr=null,Er=null;function _r(e){ut(e)}function kr(e){if(ke(Fn(e)))return e}function Or(e,t){if("change"===e)return t}var xr=!1;function Sr(){wr&&(wr.detachEvent("onpropertychange",jr),Er=wr=null)}function jr(e){if("value"===e.propertyName&&kr(Er))if(e=gr(Er,e,ft(e)),B)ut(e);else{B=!0;try{L(_r,e)}finally{B=!1,I()}}}function Cr(e,t,n){"focus"===e?(Sr(),Er=n,(wr=t).attachEvent("onpropertychange",jr)):"blur"===e&&Sr()}function Dr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return kr(Er)}function Nr(e,t){if("click"===e)return kr(t)}function Pr(e,t){if("input"===e||"change"===e)return kr(t)}C&&(xr=pt("input")&&(!document.documentMode||9<document.documentMode));var Tr={eventTypes:vr,_isInputEventSupported:xr,extractEvents:function(e,t,n,r){var o=t?Fn(t):window,a=o.nodeName&&o.nodeName.toLowerCase();if("select"===a||"input"===a&&"file"===o.type)var i=Or;else if(br(o))if(xr)i=Pr;else{i=Dr;var l=Cr}else(a=o.nodeName)&&"input"===a.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(i=Nr);if(i&&(i=i(e,t)))return gr(i,n,r);l&&l(e,o,t),"blur"===e&&(e=o._wrapperState)&&e.controlled&&"number"===o.type&&De(o,"number",o.value)}},Mr=Qn.extend({view:null,detail:null}),Ar={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Lr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Ar[e])&&!!t[e]}function Rr(){return Lr}var Fr=0,zr=0,Br=!1,Yr=!1,Ir=Mr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Rr,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Fr;return Fr=e.screenX,Br?"mousemove"===e.type?e.screenX-t:0:(Br=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=zr;return zr=e.screenY,Yr?"mousemove"===e.type?e.screenY-t:0:(Yr=!0,0)}}),Hr=Ir.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Ur={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Wr={eventTypes:Ur,extractEvents:function(e,t,n,r,o){var a="mouseover"===e||"pointerover"===e,i="mouseout"===e||"pointerout"===e;if(a&&0==(32&o)&&(n.relatedTarget||n.fromElement)||!i&&!a)return null;(a=r.window===r?r:(a=r.ownerDocument)?a.defaultView||a.parentWindow:window,i)?(i=t,null!==(t=(t=n.relatedTarget||n.toElement)?Ln(t):null)&&(t!==nt(t)||5!==t.tag&&6!==t.tag)&&(t=null)):i=null;if(i===t)return null;if("mouseout"===e||"mouseover"===e)var l=Ir,s=Ur.mouseLeave,c=Ur.mouseEnter,u="mouse";else"pointerout"!==e&&"pointerover"!==e||(l=Hr,s=Ur.pointerLeave,c=Ur.pointerEnter,u="pointer");if(e=null==i?a:Fn(i),a=null==t?a:Fn(t),(s=l.getPooled(s,i,n,r)).type=u+"leave",s.target=e,s.relatedTarget=a,(n=l.getPooled(c,t,n,r)).type=u+"enter",n.target=a,n.relatedTarget=e,u=t,(r=i)&&u)e:{for(c=u,i=0,e=l=r;e;e=Bn(e))i++;for(e=0,t=c;t;t=Bn(t))e++;for(;0<i-e;)l=Bn(l),i--;for(;0<e-i;)c=Bn(c),e--;for(;i--;){if(l===c||l===c.alternate)break e;l=Bn(l),c=Bn(c)}l=null}else l=null;for(c=l,l=[];r&&r!==c&&(null===(i=r.alternate)||i!==c);)l.push(r),r=Bn(r);for(r=[];u&&u!==c&&(null===(i=u.alternate)||i!==c);)r.push(u),u=Bn(u);for(u=0;u<l.length;u++)Un(l[u],"bubbled",s);for(u=r.length;0<u--;)Un(r[u],"captured",n);return 0==(64&o)?[s]:[s,n]}};var Vr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},qr=Object.prototype.hasOwnProperty;function Gr(e,t){if(Vr(e,t))return!0;if("object"!==r(e)||null===e||"object"!==r(t)||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++)if(!qr.call(t,n[o])||!Vr(e[n[o]],t[n[o]]))return!1;return!0}var Kr=C&&"documentMode"in document&&11>=document.documentMode,$r={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Jr=null,Xr=null,Qr=null,Zr=!1;function eo(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Zr||null==Jr||Jr!==dn(n)?null:("selectionStart"in(n=Jr)&&vn(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},Qr&&Gr(Qr,n)?null:(Qr=n,(e=Qn.getPooled($r.select,Xr,e,t)).type="select",e.target=Jr,Vn(e),e))}var to={eventTypes:$r,extractEvents:function(e,t,n,r,o,a){if(!(a=!(o=a||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{o=tt(o),a=S.onSelect;for(var i=0;i<a.length;i++)if(!o.has(a[i])){o=!1;break e}o=!0}a=!o}if(a)return null;switch(o=t?Fn(t):window,e){case"focus":(br(o)||"true"===o.contentEditable)&&(Jr=o,Xr=t,Qr=null);break;case"blur":Qr=Xr=Jr=null;break;case"mousedown":Zr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Zr=!1,eo(n,r);case"selectionchange":if(Kr)break;case"keydown":case"keyup":return eo(n,r)}return null}},no=Qn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),ro=Qn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),oo=Mr.extend({relatedTarget:null});function ao(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var io={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},lo={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"},so=Mr.extend({key:function(e){if(e.key){var t=io[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=ao(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?lo[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Rr,charCode:function(e){return"keypress"===e.type?ao(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ao(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),co=Ir.extend({dataTransfer:null}),uo=Mr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Rr}),fo=Qn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),po=Ir.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),mo={eventTypes:Yt,extractEvents:function(e,t,n,r){var o=It.get(e);if(!o)return null;switch(e){case"keypress":if(0===ao(n))return null;case"keydown":case"keyup":e=so;break;case"blur":case"focus":e=oo;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":e=Ir;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=co;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=uo;break;case $e:case Je:case Xe:e=no;break;case Qe:e=fo;break;case"scroll":e=Mr;break;case"wheel":e=po;break;case"copy":case"cut":case"paste":e=ro;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Hr;break;default:e=Qn}return Vn(t=e.getPooled(o,t,n,r)),t}};if(g)throw Error(l(101));g=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),E(),h=zn,y=Rn,b=Fn,j({SimpleEventPlugin:mo,EnterLeaveEventPlugin:Wr,ChangeEventPlugin:Tr,SelectEventPlugin:to,BeforeInputEventPlugin:hr});var ho=[],yo=-1;function bo(e){0>yo||(e.current=ho[yo],ho[yo]=null,yo--)}function vo(e,t){yo++,ho[yo]=e.current,e.current=t}var go={},wo={current:go},Eo={current:!1},_o=go;function ko(e,t){var n=e.type.contextTypes;if(!n)return go;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Oo(e){return null!=(e=e.childContextTypes)}function xo(){bo(Eo),bo(wo)}function So(e,t,n){if(wo.current!==go)throw Error(l(168));vo(wo,t),vo(Eo,n)}function jo(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(l(108,ve(t)||"Unknown",o));return a({},n,{},r)}function Co(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||go,_o=wo.current,vo(wo,e),vo(Eo,Eo.current),!0}function Do(e,t,n){var r=e.stateNode;if(!r)throw Error(l(169));n?(e=jo(e,t,_o),r.__reactInternalMemoizedMergedChildContext=e,bo(Eo),bo(wo),vo(wo,e)):bo(Eo),vo(Eo,n)}var No=i.unstable_runWithPriority,Po=i.unstable_scheduleCallback,To=i.unstable_cancelCallback,Mo=i.unstable_requestPaint,Ao=i.unstable_now,Lo=i.unstable_getCurrentPriorityLevel,Ro=i.unstable_ImmediatePriority,Fo=i.unstable_UserBlockingPriority,zo=i.unstable_NormalPriority,Bo=i.unstable_LowPriority,Yo=i.unstable_IdlePriority,Io={},Ho=i.unstable_shouldYield,Uo=void 0!==Mo?Mo:function(){},Wo=null,Vo=null,qo=!1,Go=Ao(),Ko=1e4>Go?Ao:function(){return Ao()-Go};function $o(){switch(Lo()){case Ro:return 99;case Fo:return 98;case zo:return 97;case Bo:return 96;case Yo:return 95;default:throw Error(l(332))}}function Jo(e){switch(e){case 99:return Ro;case 98:return Fo;case 97:return zo;case 96:return Bo;case 95:return Yo;default:throw Error(l(332))}}function Xo(e,t){return e=Jo(e),No(e,t)}function Qo(e,t,n){return e=Jo(e),Po(e,t,n)}function Zo(e){return null===Wo?(Wo=[e],Vo=Po(Ro,ta)):Wo.push(e),Io}function ea(){if(null!==Vo){var e=Vo;Vo=null,To(e)}ta()}function ta(){if(!qo&&null!==Wo){qo=!0;var e=0;try{var t=Wo;Xo(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Wo=null}catch(t){throw null!==Wo&&(Wo=Wo.slice(e+1)),Po(Ro,ea),t}finally{qo=!1}}}function na(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function ra(e,t){if(e&&e.defaultProps)for(var n in t=a({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var oa={current:null},aa=null,ia=null,la=null;function sa(){la=ia=aa=null}function ca(e){var t=oa.current;bo(oa),e.type._context._currentValue=t}function ua(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function fa(e,t){aa=e,la=ia=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(zi=!0),e.firstContext=null)}function pa(e,t){if(la!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(la=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ia){if(null===aa)throw Error(l(308));ia=t,aa.dependencies={expirationTime:0,firstContext:t,responders:null}}else ia=ia.next=t;return e._currentValue}var da=!1;function ma(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function ha(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function ya(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function ba(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function va(e,t){var n=e.alternate;null!==n&&ha(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function ga(e,t,n,r){var o=e.updateQueue;da=!1;var i=o.baseQueue,l=o.shared.pending;if(null!==l){if(null!==i){var s=i.next;i.next=l.next,l.next=s}i=l,o.shared.pending=null,null!==(s=e.alternate)&&(null!==(s=s.updateQueue)&&(s.baseQueue=l))}if(null!==i){s=i.next;var c=o.baseState,u=0,f=null,p=null,d=null;if(null!==s)for(var m=s;;){if((l=m.expirationTime)<r){var h={expirationTime:m.expirationTime,suspenseConfig:m.suspenseConfig,tag:m.tag,payload:m.payload,callback:m.callback,next:null};null===d?(p=d=h,f=c):d=d.next=h,l>u&&(u=l)}else{null!==d&&(d=d.next={expirationTime:1073741823,suspenseConfig:m.suspenseConfig,tag:m.tag,payload:m.payload,callback:m.callback,next:null}),Os(l,m.suspenseConfig);e:{var y=e,b=m;switch(l=t,h=n,b.tag){case 1:if("function"==typeof(y=b.payload)){c=y.call(h,c,l);break e}c=y;break e;case 3:y.effectTag=-4097&y.effectTag|64;case 0:if(null==(l="function"==typeof(y=b.payload)?y.call(h,c,l):y))break e;c=a({},c,l);break e;case 2:da=!0}}null!==m.callback&&(e.effectTag|=32,null===(l=o.effects)?o.effects=[m]:l.push(m))}if(null===(m=m.next)||m===s){if(null===(l=o.shared.pending))break;m=i.next=l.next,l.next=s,o.baseQueue=i=l,o.shared.pending=null}}null===d?f=c:d.next=p,o.baseState=f,o.baseQueue=d,xs(u),e.expirationTime=u,e.memoizedState=c}}function wa(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=o,o=n,"function"!=typeof r)throw Error(l(191,r));r.call(o)}}}var Ea=Q.ReactCurrentBatchConfig,_a=(new o.Component).refs;function ka(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:a({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var Oa={isMounted:function(e){return!!(e=e._reactInternalFiber)&&nt(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=fs(),o=Ea.suspense;(o=ya(r=ps(r,e,o),o)).payload=t,null!=n&&(o.callback=n),ba(e,o),ds(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=fs(),o=Ea.suspense;(o=ya(r=ps(r,e,o),o)).tag=1,o.payload=t,null!=n&&(o.callback=n),ba(e,o),ds(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=fs(),r=Ea.suspense;(r=ya(n=ps(n,e,r),r)).tag=2,null!=t&&(r.callback=t),ba(e,r),ds(e,n)}};function xa(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!Gr(n,r)||!Gr(o,a))}function Sa(e,t,n){var o=!1,a=go,i=t.contextType;return"object"===r(i)&&null!==i?i=pa(i):(a=Oo(t)?_o:wo.current,i=(o=null!=(o=t.contextTypes))?ko(e,a):go),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Oa,e.stateNode=t,t._reactInternalFiber=e,o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=i),t}function ja(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Oa.enqueueReplaceState(t,t.state,null)}function Ca(e,t,n,o){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=_a,ma(e);var i=t.contextType;"object"===r(i)&&null!==i?a.context=pa(i):(i=Oo(t)?_o:wo.current,a.context=ko(e,i)),ga(e,n,a,o),a.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(ka(e,t,i,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&Oa.enqueueReplaceState(a,a.state,null),ga(e,n,a,o),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.effectTag|=4)}var Da=Array.isArray;function Na(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!==r(e)){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(l(309));var o=n.stateNode}if(!o)throw Error(l(147,e));var a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;t===_a&&(t=o.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(l(284));if(!n._owner)throw Error(l(290,e))}return e}function Pa(e,t){if("textarea"!==e.type)throw Error(l(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Ta(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=Vs(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function c(e,t,n,r){return null===t||6!==t.tag?((t=Ks(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=a(t,n.props)).ref=Na(e,t,n),r.return=e,r):((r=qs(n.type,n.key,n.props,null,e.mode,r)).ref=Na(e,t,n),r.return=e,r)}function f(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=$s(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function p(e,t,n,r,o){return null===t||7!==t.tag?((t=Gs(n,e.mode,r,o)).return=e,t):((t=a(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Ks(""+t,e.mode,n)).return=e,t;if("object"===r(t)&&null!==t){switch(t.$$typeof){case ne:return(n=qs(t.type,t.key,t.props,null,e.mode,n)).ref=Na(e,null,t),n.return=e,n;case re:return(t=$s(t,e.mode,n)).return=e,t}if(Da(t)||be(t))return(t=Gs(t,e.mode,n,null)).return=e,t;Pa(e,t)}return null}function m(e,t,n,o){var a=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==a?null:c(e,t,""+n,o);if("object"===r(n)&&null!==n){switch(n.$$typeof){case ne:return n.key===a?n.type===oe?p(e,t,n.props.children,o,a):u(e,t,n,o):null;case re:return n.key===a?f(e,t,n,o):null}if(Da(n)||be(n))return null!==a?null:p(e,t,n,o,null);Pa(e,n)}return null}function h(e,t,n,o,a){if("string"==typeof o||"number"==typeof o)return c(t,e=e.get(n)||null,""+o,a);if("object"===r(o)&&null!==o){switch(o.$$typeof){case ne:return e=e.get(null===o.key?n:o.key)||null,o.type===oe?p(t,e,o.props.children,a,o.key):u(t,e,o,a);case re:return f(t,e=e.get(null===o.key?n:o.key)||null,o,a)}if(Da(o)||be(o))return p(t,e=e.get(n)||null,o,a,null);Pa(t,o)}return null}function y(r,a,l,s){for(var c=null,u=null,f=a,p=a=0,y=null;null!==f&&p<l.length;p++){f.index>p?(y=f,f=null):y=f.sibling;var b=m(r,f,l[p],s);if(null===b){null===f&&(f=y);break}e&&f&&null===b.alternate&&t(r,f),a=i(b,a,p),null===u?c=b:u.sibling=b,u=b,f=y}if(p===l.length)return n(r,f),c;if(null===f){for(;p<l.length;p++)null!==(f=d(r,l[p],s))&&(a=i(f,a,p),null===u?c=f:u.sibling=f,u=f);return c}for(f=o(r,f);p<l.length;p++)null!==(y=h(f,r,p,l[p],s))&&(e&&null!==y.alternate&&f.delete(null===y.key?p:y.key),a=i(y,a,p),null===u?c=y:u.sibling=y,u=y);return e&&f.forEach((function(e){return t(r,e)})),c}function b(r,a,s,c){var u=be(s);if("function"!=typeof u)throw Error(l(150));if(null==(s=u.call(s)))throw Error(l(151));for(var f=u=null,p=a,y=a=0,b=null,v=s.next();null!==p&&!v.done;y++,v=s.next()){p.index>y?(b=p,p=null):b=p.sibling;var g=m(r,p,v.value,c);if(null===g){null===p&&(p=b);break}e&&p&&null===g.alternate&&t(r,p),a=i(g,a,y),null===f?u=g:f.sibling=g,f=g,p=b}if(v.done)return n(r,p),u;if(null===p){for(;!v.done;y++,v=s.next())null!==(v=d(r,v.value,c))&&(a=i(v,a,y),null===f?u=v:f.sibling=v,f=v);return u}for(p=o(r,p);!v.done;y++,v=s.next())null!==(v=h(p,r,y,v.value,c))&&(e&&null!==v.alternate&&p.delete(null===v.key?y:v.key),a=i(v,a,y),null===f?u=v:f.sibling=v,f=v);return e&&p.forEach((function(e){return t(r,e)})),u}return function(e,o,i,c){var u="object"===r(i)&&null!==i&&i.type===oe&&null===i.key;u&&(i=i.props.children);var f="object"===r(i)&&null!==i;if(f)switch(i.$$typeof){case ne:e:{for(f=i.key,u=o;null!==u;){if(u.key===f){if(7===u.tag){if(i.type===oe){n(e,u.sibling),(o=a(u,i.props.children)).return=e,e=o;break e}}else if(u.elementType===i.type){n(e,u.sibling),(o=a(u,i.props)).ref=Na(e,u,i),o.return=e,e=o;break e}n(e,u);break}t(e,u),u=u.sibling}i.type===oe?((o=Gs(i.props.children,e.mode,c,i.key)).return=e,e=o):((c=qs(i.type,i.key,i.props,null,e.mode,c)).ref=Na(e,o,i),c.return=e,e=c)}return s(e);case re:e:{for(u=i.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===i.containerInfo&&o.stateNode.implementation===i.implementation){n(e,o.sibling),(o=a(o,i.children||[])).return=e,e=o;break e}n(e,o);break}t(e,o),o=o.sibling}(o=$s(i,e.mode,c)).return=e,e=o}return s(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==o&&6===o.tag?(n(e,o.sibling),(o=a(o,i)).return=e,e=o):(n(e,o),(o=Ks(i,e.mode,c)).return=e,e=o),s(e);if(Da(i))return y(e,o,i,c);if(be(i))return b(e,o,i,c);if(f&&Pa(e,i),void 0===i&&!u)switch(e.tag){case 1:case 0:throw e=e.type,Error(l(152,e.displayName||e.name||"Component"))}return n(e,o)}}var Ma=Ta(!0),Aa=Ta(!1),La={},Ra={current:La},Fa={current:La},za={current:La};function Ba(e){if(e===La)throw Error(l(174));return e}function Ya(e,t){switch(vo(za,t),vo(Fa,e),vo(Ra,La),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Be(null,"");break;default:t=Be(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}bo(Ra),vo(Ra,t)}function Ia(){bo(Ra),bo(Fa),bo(za)}function Ha(e){Ba(za.current);var t=Ba(Ra.current),n=Be(t,e.type);t!==n&&(vo(Fa,e),vo(Ra,n))}function Ua(e){Fa.current===e&&(bo(Ra),bo(Fa))}var Wa={current:0};function Va(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===En||n.data===_n))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function qa(e,t){return{responder:e,props:t}}var Ga=Q.ReactCurrentDispatcher,Ka=Q.ReactCurrentBatchConfig,$a=0,Ja=null,Xa=null,Qa=null,Za=!1;function ei(){throw Error(l(321))}function ti(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Vr(e[n],t[n]))return!1;return!0}function ni(e,t,n,r,o,a){if($a=a,Ja=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Ga.current=null===e||null===e.memoizedState?xi:Si,e=n(r,o),t.expirationTime===$a){a=0;do{if(t.expirationTime=0,!(25>a))throw Error(l(301));a+=1,Qa=Xa=null,t.updateQueue=null,Ga.current=ji,e=n(r,o)}while(t.expirationTime===$a)}if(Ga.current=Oi,t=null!==Xa&&null!==Xa.next,$a=0,Qa=Xa=Ja=null,Za=!1,t)throw Error(l(300));return e}function ri(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Qa?Ja.memoizedState=Qa=e:Qa=Qa.next=e,Qa}function oi(){if(null===Xa){var e=Ja.alternate;e=null!==e?e.memoizedState:null}else e=Xa.next;var t=null===Qa?Ja.memoizedState:Qa.next;if(null!==t)Qa=t,Xa=e;else{if(null===e)throw Error(l(310));e={memoizedState:(Xa=e).memoizedState,baseState:Xa.baseState,baseQueue:Xa.baseQueue,queue:Xa.queue,next:null},null===Qa?Ja.memoizedState=Qa=e:Qa=Qa.next=e}return Qa}function ai(e,t){return"function"==typeof t?t(e):t}function ii(e){var t=oi(),n=t.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=e;var r=Xa,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var i=o.next;o.next=a.next,a.next=i}r.baseQueue=o=a,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var s=i=a=null,c=o;do{var u=c.expirationTime;if(u<$a){var f={expirationTime:c.expirationTime,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===s?(i=s=f,a=r):s=s.next=f,u>Ja.expirationTime&&(Ja.expirationTime=u,xs(u))}else null!==s&&(s=s.next={expirationTime:1073741823,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),Os(u,c.suspenseConfig),r=c.eagerReducer===e?c.eagerState:e(r,c.action);c=c.next}while(null!==c&&c!==o);null===s?a=r:s.next=i,Vr(r,t.memoizedState)||(zi=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function li(e){var t=oi(),n=t.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var i=o=o.next;do{a=e(a,i.action),i=i.next}while(i!==o);Vr(a,t.memoizedState)||(zi=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function si(e){var t=ri();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ai,lastRenderedState:e}).dispatch=ki.bind(null,Ja,e),[t.memoizedState,e]}function ci(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Ja.updateQueue)?(t={lastEffect:null},Ja.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ui(){return oi().memoizedState}function fi(e,t,n,r){var o=ri();Ja.effectTag|=e,o.memoizedState=ci(1|t,n,void 0,void 0===r?null:r)}function pi(e,t,n,r){var o=oi();r=void 0===r?null:r;var a=void 0;if(null!==Xa){var i=Xa.memoizedState;if(a=i.destroy,null!==r&&ti(r,i.deps))return void ci(t,n,a,r)}Ja.effectTag|=e,o.memoizedState=ci(1|t,n,a,r)}function di(e,t){return fi(516,4,e,t)}function mi(e,t){return pi(516,4,e,t)}function hi(e,t){return pi(4,2,e,t)}function yi(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function bi(e,t,n){return n=null!=n?n.concat([e]):null,pi(4,2,yi.bind(null,t,e),n)}function vi(){}function gi(e,t){return ri().memoizedState=[e,void 0===t?null:t],e}function wi(e,t){var n=oi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ti(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ei(e,t){var n=oi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ti(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function _i(e,t,n){var r=$o();Xo(98>r?98:r,(function(){e(!0)})),Xo(97<r?97:r,(function(){var r=Ka.suspense;Ka.suspense=void 0===t?null:t;try{e(!1),n()}finally{Ka.suspense=r}}))}function ki(e,t,n){var r=fs(),o=Ea.suspense;o={expirationTime:r=ps(r,e,o),suspenseConfig:o,action:n,eagerReducer:null,eagerState:null,next:null};var a=t.pending;if(null===a?o.next=o:(o.next=a.next,a.next=o),t.pending=o,a=e.alternate,e===Ja||null!==a&&a===Ja)Za=!0,o.expirationTime=$a,Ja.expirationTime=$a;else{if(0===e.expirationTime&&(null===a||0===a.expirationTime)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,l=a(i,n);if(o.eagerReducer=a,o.eagerState=l,Vr(l,i))return}catch(e){}ds(e,r)}}var Oi={readContext:pa,useCallback:ei,useContext:ei,useEffect:ei,useImperativeHandle:ei,useLayoutEffect:ei,useMemo:ei,useReducer:ei,useRef:ei,useState:ei,useDebugValue:ei,useResponder:ei,useDeferredValue:ei,useTransition:ei},xi={readContext:pa,useCallback:gi,useContext:pa,useEffect:di,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,fi(4,2,yi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return fi(4,2,e,t)},useMemo:function(e,t){var n=ri();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ri();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=ki.bind(null,Ja,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ri().memoizedState=e},useState:si,useDebugValue:vi,useResponder:qa,useDeferredValue:function(e,t){var n=si(e),r=n[0],o=n[1];return di((function(){var n=Ka.suspense;Ka.suspense=void 0===t?null:t;try{o(e)}finally{Ka.suspense=n}}),[e,t]),r},useTransition:function(e){var t=si(!1),n=t[0];return t=t[1],[gi(_i.bind(null,t,e),[t,e]),n]}},Si={readContext:pa,useCallback:wi,useContext:pa,useEffect:mi,useImperativeHandle:bi,useLayoutEffect:hi,useMemo:Ei,useReducer:ii,useRef:ui,useState:function(){return ii(ai)},useDebugValue:vi,useResponder:qa,useDeferredValue:function(e,t){var n=ii(ai),r=n[0],o=n[1];return mi((function(){var n=Ka.suspense;Ka.suspense=void 0===t?null:t;try{o(e)}finally{Ka.suspense=n}}),[e,t]),r},useTransition:function(e){var t=ii(ai),n=t[0];return t=t[1],[wi(_i.bind(null,t,e),[t,e]),n]}},ji={readContext:pa,useCallback:wi,useContext:pa,useEffect:mi,useImperativeHandle:bi,useLayoutEffect:hi,useMemo:Ei,useReducer:li,useRef:ui,useState:function(){return li(ai)},useDebugValue:vi,useResponder:qa,useDeferredValue:function(e,t){var n=li(ai),r=n[0],o=n[1];return mi((function(){var n=Ka.suspense;Ka.suspense=void 0===t?null:t;try{o(e)}finally{Ka.suspense=n}}),[e,t]),r},useTransition:function(e){var t=li(ai),n=t[0];return t=t[1],[wi(_i.bind(null,t,e),[t,e]),n]}},Ci=null,Di=null,Ni=!1;function Pi(e,t){var n=Us(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ti(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Mi(e){if(Ni){var t=Di;if(t){var n=t;if(!Ti(e,t)){if(!(t=Dn(n.nextSibling))||!Ti(e,t))return e.effectTag=-1025&e.effectTag|2,Ni=!1,void(Ci=e);Pi(Ci,n)}Ci=e,Di=Dn(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Ni=!1,Ci=e}}function Ai(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ci=e}function Li(e){if(e!==Ci)return!1;if(!Ni)return Ai(e),Ni=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Sn(t,e.memoizedProps))for(t=Di;t;)Pi(e,t),t=Dn(t.nextSibling);if(Ai(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(l(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if(n===wn){if(0===t){Di=Dn(e.nextSibling);break e}t--}else n!==gn&&n!==_n&&n!==En||t++}e=e.nextSibling}Di=null}}else Di=Ci?Dn(e.stateNode.nextSibling):null;return!0}function Ri(){Di=Ci=null,Ni=!1}var Fi=Q.ReactCurrentOwner,zi=!1;function Bi(e,t,n,r){t.child=null===e?Aa(t,null,n,r):Ma(t,e.child,n,r)}function Yi(e,t,n,r,o){n=n.render;var a=t.ref;return fa(t,o),r=ni(e,t,n,r,a,o),null===e||zi?(t.effectTag|=1,Bi(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),rl(e,t,o))}function Ii(e,t,n,r,o,a){if(null===e){var i=n.type;return"function"!=typeof i||Ws(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=qs(n.type,null,r,null,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Hi(e,t,i,r,o,a))}return i=e.child,o<a&&(o=i.memoizedProps,(n=null!==(n=n.compare)?n:Gr)(o,r)&&e.ref===t.ref)?rl(e,t,a):(t.effectTag|=1,(e=Vs(i,r)).ref=t.ref,e.return=t,t.child=e)}function Hi(e,t,n,r,o,a){return null!==e&&Gr(e.memoizedProps,r)&&e.ref===t.ref&&(zi=!1,o<a)?(t.expirationTime=e.expirationTime,rl(e,t,a)):Wi(e,t,n,r,a)}function Ui(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Wi(e,t,n,r,o){var a=Oo(n)?_o:wo.current;return a=ko(t,a),fa(t,o),n=ni(e,t,n,r,a,o),null===e||zi?(t.effectTag|=1,Bi(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),rl(e,t,o))}function Vi(e,t,n,o,a){if(Oo(n)){var i=!0;Co(t)}else i=!1;if(fa(t,a),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),Sa(t,n,o),Ca(t,n,o,a),o=!0;else if(null===e){var l=t.stateNode,s=t.memoizedProps;l.props=s;var c=l.context,u=n.contextType;"object"===r(u)&&null!==u?u=pa(u):u=ko(t,u=Oo(n)?_o:wo.current);var f=n.getDerivedStateFromProps,p="function"==typeof f||"function"==typeof l.getSnapshotBeforeUpdate;p||"function"!=typeof l.UNSAFE_componentWillReceiveProps&&"function"!=typeof l.componentWillReceiveProps||(s!==o||c!==u)&&ja(t,l,o,u),da=!1;var d=t.memoizedState;l.state=d,ga(t,o,l,a),c=t.memoizedState,s!==o||d!==c||Eo.current||da?("function"==typeof f&&(ka(t,n,f,o),c=t.memoizedState),(s=da||xa(t,n,s,o,d,c,u))?(p||"function"!=typeof l.UNSAFE_componentWillMount&&"function"!=typeof l.componentWillMount||("function"==typeof l.componentWillMount&&l.componentWillMount(),"function"==typeof l.UNSAFE_componentWillMount&&l.UNSAFE_componentWillMount()),"function"==typeof l.componentDidMount&&(t.effectTag|=4)):("function"==typeof l.componentDidMount&&(t.effectTag|=4),t.memoizedProps=o,t.memoizedState=c),l.props=o,l.state=c,l.context=u,o=s):("function"==typeof l.componentDidMount&&(t.effectTag|=4),o=!1)}else l=t.stateNode,ha(e,t),s=t.memoizedProps,l.props=t.type===t.elementType?s:ra(t.type,s),c=l.context,"object"===r(u=n.contextType)&&null!==u?u=pa(u):u=ko(t,u=Oo(n)?_o:wo.current),(p="function"==typeof(f=n.getDerivedStateFromProps)||"function"==typeof l.getSnapshotBeforeUpdate)||"function"!=typeof l.UNSAFE_componentWillReceiveProps&&"function"!=typeof l.componentWillReceiveProps||(s!==o||c!==u)&&ja(t,l,o,u),da=!1,c=t.memoizedState,l.state=c,ga(t,o,l,a),d=t.memoizedState,s!==o||c!==d||Eo.current||da?("function"==typeof f&&(ka(t,n,f,o),d=t.memoizedState),(f=da||xa(t,n,s,o,c,d,u))?(p||"function"!=typeof l.UNSAFE_componentWillUpdate&&"function"!=typeof l.componentWillUpdate||("function"==typeof l.componentWillUpdate&&l.componentWillUpdate(o,d,u),"function"==typeof l.UNSAFE_componentWillUpdate&&l.UNSAFE_componentWillUpdate(o,d,u)),"function"==typeof l.componentDidUpdate&&(t.effectTag|=4),"function"==typeof l.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof l.componentDidUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof l.getSnapshotBeforeUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),t.memoizedProps=o,t.memoizedState=d),l.props=o,l.state=d,l.context=u,o=f):("function"!=typeof l.componentDidUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof l.getSnapshotBeforeUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),o=!1);return qi(e,t,n,o,i,a)}function qi(e,t,n,r,o,a){Ui(e,t);var i=0!=(64&t.effectTag);if(!r&&!i)return o&&Do(t,n,!1),rl(e,t,a);r=t.stateNode,Fi.current=t;var l=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&i?(t.child=Ma(t,e.child,null,a),t.child=Ma(t,null,l,a)):Bi(e,t,l,a),t.memoizedState=r.state,o&&Do(t,n,!0),t.child}function Gi(e){var t=e.stateNode;t.pendingContext?So(0,t.pendingContext,t.pendingContext!==t.context):t.context&&So(0,t.context,!1),Ya(e,t.containerInfo)}var Ki,$i,Ji,Xi,Qi={dehydrated:null,retryTime:0};function Zi(e,t,n){var r,o=t.mode,a=t.pendingProps,i=Wa.current,l=!1;if((r=0!=(64&t.effectTag))||(r=0!=(2&i)&&(null===e||null!==e.memoizedState)),r?(l=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===a.fallback||!0===a.unstable_avoidThisFallback||(i|=1),vo(Wa,1&i),null===e){if(void 0!==a.fallback&&Mi(t),l){if(l=a.fallback,(a=Gs(null,o,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,a.child=e;null!==e;)e.return=a,e=e.sibling;return(n=Gs(l,o,n,null)).return=t,a.sibling=n,t.memoizedState=Qi,t.child=a,n}return o=a.children,t.memoizedState=null,t.child=Aa(t,null,o,n)}if(null!==e.memoizedState){if(o=(e=e.child).sibling,l){if(a=a.fallback,(n=Vs(e,e.pendingProps)).return=t,0==(2&t.mode)&&(l=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=l;null!==l;)l.return=n,l=l.sibling;return(o=Vs(o,a)).return=t,n.sibling=o,n.childExpirationTime=0,t.memoizedState=Qi,t.child=n,o}return n=Ma(t,e.child,a.children,n),t.memoizedState=null,t.child=n}if(e=e.child,l){if(l=a.fallback,(a=Gs(null,o,0,null)).return=t,a.child=e,null!==e&&(e.return=a),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,a.child=e;null!==e;)e.return=a,e=e.sibling;return(n=Gs(l,o,n,null)).return=t,a.sibling=n,n.effectTag|=2,a.childExpirationTime=0,t.memoizedState=Qi,t.child=a,n}return t.memoizedState=null,t.child=Ma(t,e,a.children,n)}function el(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),ua(e.return,t)}function tl(e,t,n,r,o,a){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:o,lastEffect:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailExpiration=0,i.tailMode=o,i.lastEffect=a)}function nl(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(Bi(e,t,r.children,n),0!=(2&(r=Wa.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&el(e,n);else if(19===e.tag)el(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(vo(Wa,r),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Va(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),tl(t,!1,o,n,a,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Va(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}tl(t,!0,n,null,a,t.lastEffect);break;case"together":tl(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function rl(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&xs(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(l(153));if(null!==t.child){for(n=Vs(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Vs(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function ol(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function al(e,t,n){var r=t.pendingProps;switch(t.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:case 17:return Oo(t.type)&&xo(),null;case 3:return Ia(),bo(Eo),bo(wo),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!Li(t)||(t.effectTag|=4),$i(t),null;case 5:Ua(t),n=Ba(za.current);var o=t.type;if(null!==e&&null!=t.stateNode)Ji(e,t,o,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(l(166));return null}if(e=Ba(Ra.current),Li(t)){r=t.stateNode,o=t.type;var i=t.memoizedProps;switch(r[Tn]=t,r[Mn]=i,o){case"iframe":case"object":case"embed":Jt("load",r);break;case"video":case"audio":for(e=0;e<Ze.length;e++)Jt(Ze[e],r);break;case"source":Jt("error",r);break;case"img":case"image":case"link":Jt("error",r),Jt("load",r);break;case"form":Jt("reset",r),Jt("submit",r);break;case"details":Jt("toggle",r);break;case"input":xe(r,i),Jt("invalid",r),fn(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Jt("invalid",r),fn(n,"onChange");break;case"textarea":Me(r,i),Jt("invalid",r),fn(n,"onChange")}for(var s in sn(o,i),e=null,i)if(i.hasOwnProperty(s)){var c=i[s];"children"===s?"string"==typeof c?r.textContent!==c&&(e=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(e=["children",""+c]):x.hasOwnProperty(s)&&null!=c&&fn(n,s)}switch(o){case"input":_e(r),Ce(r,i,!0);break;case"textarea":_e(r),Le(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=pn)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(s=9===n.nodeType?n:n.ownerDocument,e===un&&(e=ze(o)),e===un?"script"===o?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=s.createElement(o,{is:r.is}):(e=s.createElement(o),"select"===o&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,o),e[Tn]=t,e[Mn]=r,Ki(e,t,!1,!1),t.stateNode=e,s=cn(o,r),o){case"iframe":case"object":case"embed":Jt("load",e),c=r;break;case"video":case"audio":for(c=0;c<Ze.length;c++)Jt(Ze[c],e);c=r;break;case"source":Jt("error",e),c=r;break;case"img":case"image":case"link":Jt("error",e),Jt("load",e),c=r;break;case"form":Jt("reset",e),Jt("submit",e),c=r;break;case"details":Jt("toggle",e),c=r;break;case"input":xe(e,r),c=Oe(e,r),Jt("invalid",e),fn(n,"onChange");break;case"option":c=Ne(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},c=a({},r,{value:void 0}),Jt("invalid",e),fn(n,"onChange");break;case"textarea":Me(e,r),c=Te(e,r),Jt("invalid",e),fn(n,"onChange");break;default:c=r}sn(o,c);var u=c;for(i in u)if(u.hasOwnProperty(i)){var f=u[i];"style"===i?an(e,f):"dangerouslySetInnerHTML"===i?null!=(f=f?f.__html:void 0)&&He(e,f):"children"===i?"string"==typeof f?("textarea"!==o||""!==f)&&Ue(e,f):"number"==typeof f&&Ue(e,""+f):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(x.hasOwnProperty(i)?null!=f&&fn(n,i):null!=f&&Z(e,i,f,s))}switch(o){case"input":_e(e),Ce(e,r,!1);break;case"textarea":_e(e),Le(e);break;case"option":null!=r.value&&e.setAttribute("value",""+we(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?Pe(e,!!r.multiple,n,!1):null!=r.defaultValue&&Pe(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof c.onClick&&(e.onclick=pn)}xn(o,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Xi(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(l(166));n=Ba(za.current),Ba(Ra.current),Li(t)?(n=t.stateNode,r=t.memoizedProps,n[Tn]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Tn]=t,t.stateNode=n)}return null;case 13:return bo(Wa),r=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Li(t):(r=null!==(o=e.memoizedState),n||null===o||null!==(o=e.child.sibling)&&(null!==(i=t.firstEffect)?(t.firstEffect=o,o.nextEffect=i):(t.firstEffect=t.lastEffect=o,o.nextEffect=null),o.effectTag=8)),n&&!r&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Wa.current)?Vl===Ll&&(Vl=zl):(Vl!==Ll&&Vl!==zl||(Vl=Bl),0!==Jl&&null!==Hl&&(Qs(Hl,Wl),Zs(Hl,Jl)))),(n||r)&&(t.effectTag|=4),null);case 4:return Ia(),$i(t),null;case 10:return ca(t),null;case 19:if(bo(Wa),null===(r=t.memoizedState))return null;if(o=0!=(64&t.effectTag),null===(i=r.rendering)){if(o)ol(r,!1);else if(Vl!==Ll||null!==e&&0!=(64&e.effectTag))for(i=t.child;null!==i;){if(null!==(e=Va(i))){for(t.effectTag|=64,ol(r,!1),null!==(o=e.updateQueue)&&(t.updateQueue=o,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)i=n,(o=r).effectTag&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(e=o.alternate)?(o.childExpirationTime=0,o.expirationTime=i,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null):(o.childExpirationTime=e.childExpirationTime,o.expirationTime=e.expirationTime,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,i=e.dependencies,o.dependencies=null===i?null:{expirationTime:i.expirationTime,firstContext:i.firstContext,responders:i.responders}),r=r.sibling;return vo(Wa,1&Wa.current|2),t.child}i=i.sibling}}else{if(!o)if(null!==(e=Va(i))){if(t.effectTag|=64,o=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),ol(r,!0),null===r.tail&&"hidden"===r.tailMode&&!i.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Ko()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,o=!0,ol(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(i.sibling=t.child,t.child=i):(null!==(n=r.last)?n.sibling=i:t.child=i,r.last=i)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=Ko()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Ko(),n.sibling=null,t=Wa.current,vo(Wa,o?1&t|2:1&t),n):null}throw Error(l(156,t.tag))}function il(e){switch(e.tag){case 1:Oo(e.type)&&xo();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Ia(),bo(Eo),bo(wo),0!=(64&(t=e.effectTag)))throw Error(l(285));return e.effectTag=-4097&t|64,e;case 5:return Ua(e),null;case 13:return bo(Wa),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return bo(Wa),null;case 4:return Ia(),null;case 10:return ca(e),null;default:return null}}function ll(e,t){return{value:e,source:t,stack:ge(t)}}Ki=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},$i=function(){},Ji=function(e,t,n,r,o){var i=e.memoizedProps;if(i!==r){var l,s,c=t.stateNode;switch(Ba(Ra.current),e=null,n){case"input":i=Oe(c,i),r=Oe(c,r),e=[];break;case"option":i=Ne(c,i),r=Ne(c,r),e=[];break;case"select":i=a({},i,{value:void 0}),r=a({},r,{value:void 0}),e=[];break;case"textarea":i=Te(c,i),r=Te(c,r),e=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(c.onclick=pn)}for(l in sn(n,r),n=null,i)if(!r.hasOwnProperty(l)&&i.hasOwnProperty(l)&&null!=i[l])if("style"===l)for(s in c=i[l])c.hasOwnProperty(s)&&(n||(n={}),n[s]="");else"dangerouslySetInnerHTML"!==l&&"children"!==l&&"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(x.hasOwnProperty(l)?e||(e=[]):(e=e||[]).push(l,null));for(l in r){var u=r[l];if(c=null!=i?i[l]:void 0,r.hasOwnProperty(l)&&u!==c&&(null!=u||null!=c))if("style"===l)if(c){for(s in c)!c.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in u)u.hasOwnProperty(s)&&c[s]!==u[s]&&(n||(n={}),n[s]=u[s])}else n||(e||(e=[]),e.push(l,n)),n=u;else"dangerouslySetInnerHTML"===l?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(e=e||[]).push(l,u)):"children"===l?c===u||"string"!=typeof u&&"number"!=typeof u||(e=e||[]).push(l,""+u):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&(x.hasOwnProperty(l)?(null!=u&&fn(o,l),e||c===u||(e=[])):(e=e||[]).push(l,u))}n&&(e=e||[]).push("style",n),o=e,(t.updateQueue=o)&&(t.effectTag|=4)}},Xi=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var sl="function"==typeof WeakSet?WeakSet:Set;function cl(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ge(n)),null!==n&&ve(n.type),t=t.value,null!==e&&1===e.tag&&ve(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function ul(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Fs(e,t)}else t.current=null}function fl(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 3:case 5:case 6:case 4:case 17:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:ra(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return}throw Error(l(163))}function pl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function dl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ml(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void dl(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:ra(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&wa(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}wa(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&xn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Bt(n)))))}throw Error(l(163))}function hl(e,t,n){switch("function"==typeof Is&&Is(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;Xo(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var o=t;try{n()}catch(e){Fs(o,e)}}e=e.next}while(e!==r)}))}break;case 1:ul(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Fs(e,t)}}(t,n);break;case 5:ul(t);break;case 4:El(e,t,n)}}function yl(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&yl(t)}function bl(e){return 5===e.tag||3===e.tag||4===e.tag}function vl(e){e:{for(var t=e.return;null!==t;){if(bl(t)){var n=t;break e}t=t.return}throw Error(l(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(l(161))}16&n.effectTag&&(Ue(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||bl(n.return)){n=null;break e}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 t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?gl(e,n,t):wl(e,n,t)}function gl(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=pn));else if(4!==r&&null!==(e=e.child))for(gl(e,t,n),e=e.sibling;null!==e;)gl(e,t,n),e=e.sibling}function wl(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(wl(e,t,n),e=e.sibling;null!==e;)wl(e,t,n),e=e.sibling}function El(e,t,n){for(var r,o,a=t,i=!1;;){if(!i){i=a.return;e:for(;;){if(null===i)throw Error(l(160));switch(r=i.stateNode,i.tag){case 5:o=!1;break e;case 3:case 4:r=r.containerInfo,o=!0;break e}i=i.return}i=!0}if(5===a.tag||6===a.tag){e:for(var s=e,c=a,u=n,f=c;;)if(hl(s,f,u),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===c)break e;for(;null===f.sibling;){if(null===f.return||f.return===c)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}o?(s=r,c=a.stateNode,8===s.nodeType?s.parentNode.removeChild(c):s.removeChild(c)):r.removeChild(a.stateNode)}else if(4===a.tag){if(null!==a.child){r=a.stateNode.containerInfo,o=!0,a.child.return=a,a=a.child;continue}}else if(hl(e,a,n),null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break;for(;null===a.sibling;){if(null===a.return||a.return===t)return;4===(a=a.return).tag&&(i=!1)}a.sibling.return=a.return,a=a.sibling}}function _l(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void pl(3,t);case 1:case 12:case 17:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,o=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[Mn]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Se(n,r),cn(e,o),t=cn(e,r),o=0;o<a.length;o+=2){var i=a[o],s=a[o+1];"style"===i?an(n,s):"dangerouslySetInnerHTML"===i?He(n,s):"children"===i?Ue(n,s):Z(n,i,s,t)}switch(e){case"input":je(n,r);break;case"textarea":Ae(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Pe(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Pe(n,!!r.multiple,r.defaultValue,!0):Pe(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(l(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Bt(t.containerInfo)));case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Ql=Ko()),null!==n)e:for(e=n;;){if(5===e.tag)a=e.stateNode,r?"function"==typeof(a=a.style).setProperty?a.setProperty("display","none","important"):a.display="none":(a=e.stateNode,o=null!=(o=e.memoizedProps.style)&&o.hasOwnProperty("display")?o.display:null,a.style.display=on("display",o));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(a=e.child.sibling).return=e,e=a;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void kl(t);case 19:return void kl(t)}throw Error(l(163))}function kl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new sl),t.forEach((function(t){var r=Bs.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var Ol="function"==typeof WeakMap?WeakMap:Map;function xl(e,t,n){(n=ya(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ts||(ts=!0,ns=r),cl(e,t)},n}function Sl(e,t,n){(n=ya(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return cl(e,t),r(o)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===rs?rs=new Set([this]):rs.add(this),cl(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var jl,Cl=Math.ceil,Dl=Q.ReactCurrentDispatcher,Nl=Q.ReactCurrentOwner,Pl=0,Tl=8,Ml=16,Al=32,Ll=0,Rl=1,Fl=2,zl=3,Bl=4,Yl=5,Il=Pl,Hl=null,Ul=null,Wl=0,Vl=Ll,ql=null,Gl=1073741823,Kl=1073741823,$l=null,Jl=0,Xl=!1,Ql=0,Zl=500,es=null,ts=!1,ns=null,rs=null,os=!1,as=null,is=90,ls=null,ss=0,cs=null,us=0;function fs(){return(Il&(Ml|Al))!==Pl?1073741821-(Ko()/10|0):0!==us?us:us=1073741821-(Ko()/10|0)}function ps(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var r=$o();if(0==(4&t))return 99===r?1073741823:1073741822;if((Il&Ml)!==Pl)return Wl;if(null!==n)e=na(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=na(e,150,100);break;case 97:case 96:e=na(e,5e3,250);break;case 95:e=2;break;default:throw Error(l(326))}return null!==Hl&&e===Wl&&--e,e}function ds(e,t){if(50<ss)throw ss=0,cs=null,Error(l(185));if(null!==(e=ms(e,t))){var n=$o();1073741823===t?(Il&Tl)!==Pl&&(Il&(Ml|Al))===Pl?vs(e):(ys(e),Il===Pl&&ea()):ys(e),(4&Il)===Pl||98!==n&&99!==n||(null===ls?ls=new Map([[e,t]]):(void 0===(n=ls.get(e))||n>t)&&ls.set(e,t))}}function ms(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,o=null;if(null===r&&3===e.tag)o=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){o=r.stateNode;break}r=r.return}return null!==o&&(Hl===o&&(xs(t),Vl===Bl&&Qs(o,Wl)),Zs(o,t)),o}function hs(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Xs(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function ys(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Zo(vs.bind(null,e));else{var t=hs(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=fs();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var o=e.callbackPriority;if(e.callbackExpirationTime===t&&o>=r)return;n!==Io&&To(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Zo(vs.bind(null,e)):Qo(r,bs.bind(null,e),{timeout:10*(1073741821-t)-Ko()}),e.callbackNode=t}}}function bs(e,t){if(us=0,t)return ec(e,t=fs()),ys(e),null;var n=hs(e);if(0!==n){if(t=e.callbackNode,(Il&(Ml|Al))!==Pl)throw Error(l(327));if(As(),e===Hl&&n===Wl||Es(e,n),null!==Ul){var r=Il;Il|=Ml;for(var o=ks();;)try{js();break}catch(t){_s(e,t)}if(sa(),Il=r,Dl.current=o,Vl===Rl)throw t=ql,Es(e,n),Qs(e,n),ys(e),t;if(null===Ul)switch(o=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=Vl,Hl=null,r){case Ll:case Rl:throw Error(l(345));case Fl:ec(e,2<n?2:n);break;case zl:if(Qs(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=Ns(o)),1073741823===Gl&&10<(o=Ql+Zl-Ko())){if(Xl){var a=e.lastPingedTime;if(0===a||a>=n){e.lastPingedTime=n,Es(e,n);break}}if(0!==(a=hs(e))&&a!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=jn(Ps.bind(null,e),o);break}Ps(e);break;case Bl:if(Qs(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=Ns(o)),Xl&&(0===(o=e.lastPingedTime)||o>=n)){e.lastPingedTime=n,Es(e,n);break}if(0!==(o=hs(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Kl?r=10*(1073741821-Kl)-Ko():1073741823===Gl?r=0:(r=10*(1073741821-Gl)-5e3,0>(r=(o=Ko())-r)&&(r=0),(n=10*(1073741821-n)-o)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cl(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=jn(Ps.bind(null,e),r);break}Ps(e);break;case Yl:if(1073741823!==Gl&&null!==$l){a=Gl;var i=$l;if(0>=(r=0|i.busyMinDurationMs)?r=0:(o=0|i.busyDelayMs,r=(a=Ko()-(10*(1073741821-a)-(0|i.timeoutMs||5e3)))<=o?0:o+r-a),10<r){Qs(e,n),e.timeoutHandle=jn(Ps.bind(null,e),r);break}}Ps(e);break;default:throw Error(l(329))}if(ys(e),e.callbackNode===t)return bs.bind(null,e)}}return null}function vs(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,(Il&(Ml|Al))!==Pl)throw Error(l(327));if(As(),e===Hl&&t===Wl||Es(e,t),null!==Ul){var n=Il;Il|=Ml;for(var r=ks();;)try{Ss();break}catch(t){_s(e,t)}if(sa(),Il=n,Dl.current=r,Vl===Rl)throw n=ql,Es(e,t),Qs(e,t),ys(e),n;if(null!==Ul)throw Error(l(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Hl=null,Ps(e),ys(e)}return null}function gs(e,t){var n=Il;Il|=1;try{return e(t)}finally{(Il=n)===Pl&&ea()}}function ws(e,t){var n=Il;Il&=-2,Il|=Tl;try{return e(t)}finally{(Il=n)===Pl&&ea()}}function Es(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Cn(n)),null!==Ul)for(n=Ul.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&xo();break;case 3:Ia(),bo(Eo),bo(wo);break;case 5:Ua(r);break;case 4:Ia();break;case 13:case 19:bo(Wa);break;case 10:ca(r)}n=n.return}Hl=e,Ul=Vs(e.current,null),Wl=t,Vl=Ll,ql=null,Kl=Gl=1073741823,$l=null,Jl=0,Xl=!1}function _s(e,t){for(;;){try{if(sa(),Ga.current=Oi,Za)for(var n=Ja.memoizedState;null!==n;){var o=n.queue;null!==o&&(o.pending=null),n=n.next}if($a=0,Qa=Xa=Ja=null,Za=!1,null===Ul||null===Ul.return)return Vl=Rl,ql=t,Ul=null;e:{var a=e,i=Ul.return,l=Ul,s=t;if(t=Wl,l.effectTag|=2048,l.firstEffect=l.lastEffect=null,null!==s&&"object"===r(s)&&"function"==typeof s.then){var c=s;if(0==(2&l.mode)){var u=l.alternate;u?(l.updateQueue=u.updateQueue,l.memoizedState=u.memoizedState,l.expirationTime=u.expirationTime):(l.updateQueue=null,l.memoizedState=null)}var f=0!=(1&Wa.current),p=i;do{var d;if(d=13===p.tag){var m=p.memoizedState;if(null!==m)d=null!==m.dehydrated;else{var h=p.memoizedProps;d=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!f)}}if(d){var y=p.updateQueue;if(null===y){var b=new Set;b.add(c),p.updateQueue=b}else y.add(c);if(0==(2&p.mode)){if(p.effectTag|=64,l.effectTag&=-2981,1===l.tag)if(null===l.alternate)l.tag=17;else{var v=ya(1073741823,null);v.tag=2,ba(l,v)}l.expirationTime=1073741823;break e}s=void 0,l=t;var g=a.pingCache;if(null===g?(g=a.pingCache=new Ol,s=new Set,g.set(c,s)):void 0===(s=g.get(c))&&(s=new Set,g.set(c,s)),!s.has(l)){s.add(l);var w=zs.bind(null,a,c,l);c.then(w,w)}p.effectTag|=4096,p.expirationTime=t;break e}p=p.return}while(null!==p);s=Error((ve(l.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."+ge(l))}Vl!==Yl&&(Vl=Fl),s=ll(s,l),p=i;do{switch(p.tag){case 3:c=s,p.effectTag|=4096,p.expirationTime=t,va(p,xl(p,c,t));break e;case 1:c=s;var E=p.type,_=p.stateNode;if(0==(64&p.effectTag)&&("function"==typeof E.getDerivedStateFromError||null!==_&&"function"==typeof _.componentDidCatch&&(null===rs||!rs.has(_)))){p.effectTag|=4096,p.expirationTime=t,va(p,Sl(p,c,t));break e}}p=p.return}while(null!==p)}Ul=Ds(Ul)}catch(e){t=e;continue}break}}function ks(){var e=Dl.current;return Dl.current=Oi,null===e?Oi:e}function Os(e,t){e<Gl&&2<e&&(Gl=e),null!==t&&e<Kl&&2<e&&(Kl=e,$l=t)}function xs(e){e>Jl&&(Jl=e)}function Ss(){for(;null!==Ul;)Ul=Cs(Ul)}function js(){for(;null!==Ul&&!Ho();)Ul=Cs(Ul)}function Cs(e){var t=jl(e.alternate,e,Wl);return e.memoizedProps=e.pendingProps,null===t&&(t=Ds(e)),Nl.current=null,t}function Ds(e){Ul=e;do{var t=Ul.alternate;if(e=Ul.return,0==(2048&Ul.effectTag)){if(t=al(t,Ul,Wl),1===Wl||1!==Ul.childExpirationTime){for(var n=0,r=Ul.child;null!==r;){var o=r.expirationTime,a=r.childExpirationTime;o>n&&(n=o),a>n&&(n=a),r=r.sibling}Ul.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Ul.firstEffect),null!==Ul.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Ul.firstEffect),e.lastEffect=Ul.lastEffect),1<Ul.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Ul:e.firstEffect=Ul,e.lastEffect=Ul))}else{if(null!==(t=il(Ul)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Ul.sibling))return t;Ul=e}while(null!==Ul);return Vl===Ll&&(Vl=Yl),null}function Ns(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function Ps(e){var t=$o();return Xo(99,Ts.bind(null,e,t)),null}function Ts(e,t){do{As()}while(null!==as);if((Il&(Ml|Al))!==Pl)throw Error(l(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(l(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var o=Ns(n);if(e.firstPendingTime=o,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Hl&&(Ul=Hl=null,Wl=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,null!==o){var a=Il;Il|=Al,Nl.current=null,kn=$t;var i=bn();if(vn(i)){if("selectionStart"in i)var s={start:i.selectionStart,end:i.selectionEnd};else e:{var c=(s=(s=i.ownerDocument)&&s.defaultView||window).getSelection&&s.getSelection();if(c&&0!==c.rangeCount){s=c.anchorNode;var u=c.anchorOffset,f=c.focusNode;c=c.focusOffset;try{s.nodeType,f.nodeType}catch(e){s=null;break e}var p=0,d=-1,m=-1,h=0,y=0,b=i,v=null;t:for(;;){for(var g;b!==s||0!==u&&3!==b.nodeType||(d=p+u),b!==f||0!==c&&3!==b.nodeType||(m=p+c),3===b.nodeType&&(p+=b.nodeValue.length),null!==(g=b.firstChild);)v=b,b=g;for(;;){if(b===i)break t;if(v===s&&++h===u&&(d=p),v===f&&++y===c&&(m=p),null!==(g=b.nextSibling))break;v=(b=v).parentNode}b=g}s=-1===d||-1===m?null:{start:d,end:m}}else s=null}s=s||{start:0,end:0}}else s=null;On={activeElementDetached:null,focusedElem:i,selectionRange:s},$t=!1,es=o;do{try{Ms()}catch(e){if(null===es)throw Error(l(330));Fs(es,e),es=es.nextEffect}}while(null!==es);es=o;do{try{for(i=e,s=t;null!==es;){var w=es.effectTag;if(16&w&&Ue(es.stateNode,""),128&w){var E=es.alternate;if(null!==E){var _=E.ref;null!==_&&("function"==typeof _?_(null):_.current=null)}}switch(1038&w){case 2:vl(es),es.effectTag&=-3;break;case 6:vl(es),es.effectTag&=-3,_l(es.alternate,es);break;case 1024:es.effectTag&=-1025;break;case 1028:es.effectTag&=-1025,_l(es.alternate,es);break;case 4:_l(es.alternate,es);break;case 8:El(i,u=es,s),yl(u)}es=es.nextEffect}}catch(e){if(null===es)throw Error(l(330));Fs(es,e),es=es.nextEffect}}while(null!==es);if(_=On,E=bn(),w=_.focusedElem,s=_.selectionRange,E!==w&&w&&w.ownerDocument&&yn(w.ownerDocument.documentElement,w)){null!==s&&vn(w)&&(E=s.start,void 0===(_=s.end)&&(_=E),"selectionStart"in w?(w.selectionStart=E,w.selectionEnd=Math.min(_,w.value.length)):(_=(E=w.ownerDocument||document)&&E.defaultView||window).getSelection&&(_=_.getSelection(),u=w.textContent.length,i=Math.min(s.start,u),s=void 0===s.end?i:Math.min(s.end,u),!_.extend&&i>s&&(u=s,s=i,i=u),u=hn(w,i),f=hn(w,s),u&&f&&(1!==_.rangeCount||_.anchorNode!==u.node||_.anchorOffset!==u.offset||_.focusNode!==f.node||_.focusOffset!==f.offset)&&((E=E.createRange()).setStart(u.node,u.offset),_.removeAllRanges(),i>s?(_.addRange(E),_.extend(f.node,f.offset)):(E.setEnd(f.node,f.offset),_.addRange(E))))),E=[];for(_=w;_=_.parentNode;)1===_.nodeType&&E.push({element:_,left:_.scrollLeft,top:_.scrollTop});for("function"==typeof w.focus&&w.focus(),w=0;w<E.length;w++)(_=E[w]).element.scrollLeft=_.left,_.element.scrollTop=_.top}$t=!!kn,On=kn=null,e.current=n,es=o;do{try{for(w=e;null!==es;){var k=es.effectTag;if(36&k&&ml(w,es.alternate,es),128&k){E=void 0;var O=es.ref;if(null!==O){var x=es.stateNode;es.tag,E=x,"function"==typeof O?O(E):O.current=E}}es=es.nextEffect}}catch(e){if(null===es)throw Error(l(330));Fs(es,e),es=es.nextEffect}}while(null!==es);es=null,Uo(),Il=a}else e.current=n;if(os)os=!1,as=e,is=t;else for(es=o;null!==es;)t=es.nextEffect,es.nextEffect=null,es=t;if(0===(t=e.firstPendingTime)&&(rs=null),1073741823===t?e===cs?ss++:(ss=0,cs=e):ss=0,"function"==typeof Ys&&Ys(n.stateNode,r),ys(e),ts)throw ts=!1,e=ns,ns=null,e;return(Il&Tl)!==Pl||ea(),null}function Ms(){for(;null!==es;){var e=es.effectTag;0!=(256&e)&&fl(es.alternate,es),0==(512&e)||os||(os=!0,Qo(97,(function(){return As(),null}))),es=es.nextEffect}}function As(){if(90!==is){var e=97<is?97:is;return is=90,Xo(e,Ls)}}function Ls(){if(null===as)return!1;var e=as;if(as=null,(Il&(Ml|Al))!==Pl)throw Error(l(331));var t=Il;for(Il|=Al,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:pl(5,n),dl(5,n)}}catch(t){if(null===e)throw Error(l(330));Fs(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return Il=t,ea(),!0}function Rs(e,t,n){ba(e,t=xl(e,t=ll(n,t),1073741823)),null!==(e=ms(e,1073741823))&&ys(e)}function Fs(e,t){if(3===e.tag)Rs(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Rs(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===rs||!rs.has(r))){ba(n,e=Sl(n,e=ll(t,e),1073741823)),null!==(n=ms(n,1073741823))&&ys(n);break}}n=n.return}}function zs(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),Hl===e&&Wl===n?Vl===Bl||Vl===zl&&1073741823===Gl&&Ko()-Ql<Zl?Es(e,Wl):Xl=!0:Xs(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,ys(e)))}function Bs(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=ps(t=fs(),e,null)),null!==(e=ms(e,t))&&ys(e)}jl=function(e,t,n){var o=t.expirationTime;if(null!==e){var a=t.pendingProps;if(e.memoizedProps!==a||Eo.current)zi=!0;else{if(o<n){switch(zi=!1,t.tag){case 3:Gi(t),Ri();break;case 5:if(Ha(t),4&t.mode&&1!==n&&a.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:Oo(t.type)&&Co(t);break;case 4:Ya(t,t.stateNode.containerInfo);break;case 10:o=t.memoizedProps.value,a=t.type._context,vo(oa,a._currentValue),a._currentValue=o;break;case 13:if(null!==t.memoizedState)return 0!==(o=t.child.childExpirationTime)&&o>=n?Zi(e,t,n):(vo(Wa,1&Wa.current),null!==(t=rl(e,t,n))?t.sibling:null);vo(Wa,1&Wa.current);break;case 19:if(o=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(o)return nl(e,t,n);t.effectTag|=64}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null),vo(Wa,Wa.current),!o)return null}return rl(e,t,n)}zi=!1}}else zi=!1;switch(t.expirationTime=0,t.tag){case 2:if(o=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,a=ko(t,wo.current),fa(t,n),a=ni(null,t,o,e,a,n),t.effectTag|=1,"object"===r(a)&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Oo(o)){var i=!0;Co(t)}else i=!1;t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,ma(t);var s=o.getDerivedStateFromProps;"function"==typeof s&&ka(t,o,s,e),a.updater=Oa,t.stateNode=a,a._reactInternalFiber=t,Ca(t,o,e,n),t=qi(null,t,o,!0,i,n)}else t.tag=0,Bi(null,t,a,n),t=t.child;return t;case 16:e:{if(a=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(a),1!==a._status)throw a._result;switch(a=a._result,t.type=a,i=t.tag=function(e){if("function"==typeof e)return Ws(e)?1:0;if(null!=e){if((e=e.$$typeof)===ue)return 11;if(e===de)return 14}return 2}(a),e=ra(a,e),i){case 0:t=Wi(null,t,a,e,n);break e;case 1:t=Vi(null,t,a,e,n);break e;case 11:t=Yi(null,t,a,e,n);break e;case 14:t=Ii(null,t,a,ra(a.type,e),o,n);break e}throw Error(l(306,a,""))}return t;case 0:return o=t.type,a=t.pendingProps,Wi(e,t,o,a=t.elementType===o?a:ra(o,a),n);case 1:return o=t.type,a=t.pendingProps,Vi(e,t,o,a=t.elementType===o?a:ra(o,a),n);case 3:if(Gi(t),o=t.updateQueue,null===e||null===o)throw Error(l(282));if(o=t.pendingProps,a=null!==(a=t.memoizedState)?a.element:null,ha(e,t),ga(t,o,null,n),(o=t.memoizedState.element)===a)Ri(),t=rl(e,t,n);else{if((a=t.stateNode.hydrate)&&(Di=Dn(t.stateNode.containerInfo.firstChild),Ci=t,a=Ni=!0),a)for(n=Aa(t,null,o,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Bi(e,t,o,n),Ri();t=t.child}return t;case 5:return Ha(t),null===e&&Mi(t),o=t.type,a=t.pendingProps,i=null!==e?e.memoizedProps:null,s=a.children,Sn(o,a)?s=null:null!==i&&Sn(o,i)&&(t.effectTag|=16),Ui(e,t),4&t.mode&&1!==n&&a.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Bi(e,t,s,n),t=t.child),t;case 6:return null===e&&Mi(t),null;case 13:return Zi(e,t,n);case 4:return Ya(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=Ma(t,null,o,n):Bi(e,t,o,n),t.child;case 11:return o=t.type,a=t.pendingProps,Yi(e,t,o,a=t.elementType===o?a:ra(o,a),n);case 7:return Bi(e,t,t.pendingProps,n),t.child;case 8:case 12:return Bi(e,t,t.pendingProps.children,n),t.child;case 10:e:{o=t.type._context,a=t.pendingProps,s=t.memoizedProps,i=a.value;var c=t.type._context;if(vo(oa,c._currentValue),c._currentValue=i,null!==s)if(c=s.value,0===(i=Vr(c,i)?0:0|("function"==typeof o._calculateChangedBits?o._calculateChangedBits(c,i):1073741823))){if(s.children===a.children&&!Eo.current){t=rl(e,t,n);break e}}else for(null!==(c=t.child)&&(c.return=t);null!==c;){var u=c.dependencies;if(null!==u){s=c.child;for(var f=u.firstContext;null!==f;){if(f.context===o&&0!=(f.observedBits&i)){1===c.tag&&((f=ya(n,null)).tag=2,ba(c,f)),c.expirationTime<n&&(c.expirationTime=n),null!==(f=c.alternate)&&f.expirationTime<n&&(f.expirationTime=n),ua(c.return,n),u.expirationTime<n&&(u.expirationTime=n);break}f=f.next}}else s=10===c.tag&&c.type===t.type?null:c.child;if(null!==s)s.return=c;else for(s=c;null!==s;){if(s===t){s=null;break}if(null!==(c=s.sibling)){c.return=s.return,s=c;break}s=s.return}c=s}Bi(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,o=(i=t.pendingProps).children,fa(t,n),o=o(a=pa(a,i.unstable_observedBits)),t.effectTag|=1,Bi(e,t,o,n),t.child;case 14:return i=ra(a=t.type,t.pendingProps),Ii(e,t,a,i=ra(a.type,i),o,n);case 15:return Hi(e,t,t.type,t.pendingProps,o,n);case 17:return o=t.type,a=t.pendingProps,a=t.elementType===o?a:ra(o,a),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,Oo(o)?(e=!0,Co(t)):e=!1,fa(t,n),Sa(t,o,a),Ca(t,o,a,n),qi(null,t,o,!0,e,n);case 19:return nl(e,t,n)}throw Error(l(156,t.tag))};var Ys=null,Is=null;function Hs(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Us(e,t,n,r){return new Hs(e,t,n,r)}function Ws(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Vs(e,t){var n=e.alternate;return null===n?((n=Us(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function qs(e,t,n,o,a,i){var s=2;if(o=e,"function"==typeof e)Ws(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case oe:return Gs(n.children,a,i,t);case ce:s=8,a|=7;break;case ae:s=8,a|=1;break;case ie:return(e=Us(12,n,t,8|a)).elementType=ie,e.type=ie,e.expirationTime=i,e;case fe:return(e=Us(13,n,t,a)).type=fe,e.elementType=fe,e.expirationTime=i,e;case pe:return(e=Us(19,n,t,a)).elementType=pe,e.expirationTime=i,e;default:if("object"===r(e)&&null!==e)switch(e.$$typeof){case le:s=10;break e;case se:s=9;break e;case ue:s=11;break e;case de:s=14;break e;case me:s=16,o=null;break e;case he:s=22;break e}throw Error(l(130,null==e?e:r(e),""))}return(t=Us(s,n,t,a)).elementType=e,t.type=o,t.expirationTime=i,t}function Gs(e,t,n,r){return(e=Us(7,e,r,t)).expirationTime=n,e}function Ks(e,t,n){return(e=Us(6,e,null,t)).expirationTime=n,e}function $s(e,t,n){return(t=Us(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Js(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,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 Xs(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Qs(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Zs(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function ec(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function tc(e,t,n,r){var o=t.current,a=fs(),i=Ea.suspense;a=ps(a,o,i);e:if(n){t:{if(nt(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(l(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(Oo(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(l(171))}if(1===n.tag){var c=n.type;if(Oo(c)){n=jo(n,c,s);break e}}n=s}else n=go;return null===t.context?t.context=n:t.pendingContext=n,(t=ya(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),ba(o,t),ds(o,a),a}function nc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function rc(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function oc(e,t){rc(e,t),(e=e.alternate)&&rc(e,t)}function ac(e,t,n){var r=new Js(e,t,n=null!=n&&!0===n.hydrate),o=Us(3,null,null,2===t?7:1===t?3:0);r.current=o,o.stateNode=r,ma(o),e[An]=r.current,n&&0!==t&&function(e,t){var n=tt(t);Dt.forEach((function(e){bt(e,t,n)})),Nt.forEach((function(e){bt(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function ic(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function lc(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a._internalRoot;if("function"==typeof o){var l=o;o=function(){var e=nc(i);l.call(e)}}tc(t,i,e,o)}else{if(a=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new ac(e,0,t?{hydrate:!0}:void 0)}(n,r),i=a._internalRoot,"function"==typeof o){var s=o;o=function(){var e=nc(i);s.call(e)}}ws((function(){tc(t,i,e,o)}))}return nc(i)}function sc(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ic(t))throw Error(l(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:re,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}ac.prototype.render=function(e){tc(e,this._internalRoot,null,null)},ac.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;tc(null,e,null,(function(){t[An]=null}))},vt=function(e){if(13===e.tag){var t=na(fs(),150,100);ds(e,t),oc(e,t)}},gt=function(e){13===e.tag&&(ds(e,3),oc(e,3))},wt=function(e){if(13===e.tag){var t=fs();ds(e,t=ps(t,e,null)),oc(e,t)}},D=function(e,t,n){switch(t){case"input":if(je(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=zn(r);if(!o)throw Error(l(90));ke(r),je(r,o)}}}break;case"textarea":Ae(e,n);break;case"select":null!=(t=n.value)&&Pe(e,!!n.multiple,t,!1)}},L=gs,R=function(e,t,n,r,o){var a=Il;Il|=4;try{return Xo(98,e.bind(null,t,n,r,o))}finally{(Il=a)===Pl&&ea()}},F=function(){(Il&(1|Ml|Al))===Pl&&(function(){if(null!==ls){var e=ls;ls=null,e.forEach((function(e,t){ec(t,e),ys(t)})),ea()}}(),As())},z=function(e,t){var n=Il;Il|=2;try{return e(t)}finally{(Il=n)===Pl&&ea()}};var cc={Events:[Rn,Fn,zn,j,O,Vn,function(e){lt(e,Wn)},M,A,en,ut,As,{current:!1}]};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Ys=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},Is=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}})(a({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Q.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=at(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:Ln,bundleType:0,version:"16.13.1",rendererPackageName:"react-dom"}),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=cc,t.createPortal=sc,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(l(188));throw Error(l(268,Object.keys(e)))}return e=null===(e=at(t))?null:e.stateNode},t.flushSync=function(e,t){if((Il&(Ml|Al))!==Pl)throw Error(l(187));var n=Il;Il|=1;try{return Xo(99,e.bind(null,t))}finally{Il=n,ea()}},t.hydrate=function(e,t,n){if(!ic(t))throw Error(l(200));return lc(null,e,t,!0,n)},t.render=function(e,t,n){if(!ic(t))throw Error(l(200));return lc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!ic(e))throw Error(l(40));return!!e._reactRootContainer&&(ws((function(){lc(null,null,e,!1,(function(){e._reactRootContainer=null,e[An]=null}))})),!0)},t.unstable_batchedUpdates=gs,t.unstable_createPortal=function(e,t){return sc(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ic(n))throw Error(l(200));if(null==e||void 0===e._reactInternalFiber)throw Error(l(38));return lc(e,t,n,!1,r)},t.version="16.13.1"},function(e,t,n){"use strict";e.exports=n(194)},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o,a,i,l,s;if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,u=null,f=function e(){if(null!==c)try{var n=t.unstable_now();c(!0,n),c=null}catch(t){throw setTimeout(e,0),t}},p=Date.now();t.unstable_now=function(){return Date.now()-p},o=function(e){null!==c?setTimeout(o,0,e):(c=e,setTimeout(f,0))},a=function(e,t){u=setTimeout(e,t)},i=function(){clearTimeout(u)},l=function(){return!1},s=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,m=window.Date,h=window.setTimeout,y=window.clearTimeout;if("undefined"!=typeof console){var b=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 b&&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"===r(d)&&"function"==typeof d.now)t.unstable_now=function(){return d.now()};else{var v=m.now();t.unstable_now=function(){return m.now()-v}}var g=!1,w=null,E=-1,_=5,k=0;l=function(){return t.unstable_now()>=k},s=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):_=0<e?Math.floor(1e3/e):5};var O=new MessageChannel,x=O.port2;O.port1.onmessage=function(){if(null!==w){var e=t.unstable_now();k=e+_;try{w(!0,e)?x.postMessage(null):(g=!1,w=null)}catch(e){throw x.postMessage(null),e}}else g=!1},o=function(e){w=e,g||(g=!0,x.postMessage(null))},a=function(e,n){E=h((function(){e(t.unstable_now())}),n)},i=function(){y(E),E=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<D(o,t)))break e;e[r]=t,e[n]=o,n=r}}function j(e){return void 0===(e=e[0])?null:e}function C(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var a=2*(r+1)-1,i=e[a],l=a+1,s=e[l];if(void 0!==i&&0>D(i,n))void 0!==s&&0>D(s,i)?(e[r]=s,e[l]=n,r=l):(e[r]=i,e[a]=n,r=a);else{if(!(void 0!==s&&0>D(s,n)))break e;e[r]=s,e[l]=n,r=l}}}return t}return null}function D(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var N=[],P=[],T=1,M=null,A=3,L=!1,R=!1,F=!1;function z(e){for(var t=j(P);null!==t;){if(null===t.callback)C(P);else{if(!(t.startTime<=e))break;C(P),t.sortIndex=t.expirationTime,S(N,t)}t=j(P)}}function B(e){if(F=!1,z(e),!R)if(null!==j(N))R=!0,o(Y);else{var t=j(P);null!==t&&a(B,t.startTime-e)}}function Y(e,n){R=!1,F&&(F=!1,i()),L=!0;var r=A;try{for(z(n),M=j(N);null!==M&&(!(M.expirationTime>n)||e&&!l());){var o=M.callback;if(null!==o){M.callback=null,A=M.priorityLevel;var s=o(M.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?M.callback=s:M===j(N)&&C(N),z(n)}else C(N);M=j(N)}if(null!==M)var c=!0;else{var u=j(P);null!==u&&a(B,u.startTime-n),c=!1}return c}finally{M=null,A=r,L=!1}}function I(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var H=s;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){R||L||(R=!0,o(Y))},t.unstable_getCurrentPriorityLevel=function(){return A},t.unstable_getFirstCallbackNode=function(){return j(N)},t.unstable_next=function(e){switch(A){case 1:case 2:case 3:var t=3;break;default:t=A}var n=A;A=t;try{return e()}finally{A=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=H,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=A;A=e;try{return t()}finally{A=n}},t.unstable_scheduleCallback=function(e,n,l){var s=t.unstable_now();if("object"===r(l)&&null!==l){var c=l.delay;c="number"==typeof c&&0<c?s+c:s,l="number"==typeof l.timeout?l.timeout:I(e)}else l=I(e),c=s;return e={id:T++,callback:n,priorityLevel:e,startTime:c,expirationTime:l=c+l,sortIndex:-1},c>s?(e.sortIndex=c,S(P,e),null===j(N)&&e===j(P)&&(F?i():F=!0,a(B,c-s))):(e.sortIndex=l,S(N,e),R||L||(R=!0,o(Y))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();z(e);var n=j(N);return n!==M&&null!==M&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<M.expirationTime||l()},t.unstable_wrapCallback=function(e){var t=A;return function(){var n=A;A=t;try{return e.apply(this,arguments)}finally{A=n}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var a=105===e.charCodeAt(1)&&64===e.charCodeAt(0);o.insertRule(e,a?0:o.cssRules.length)}catch(e){0}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}()},function(e,t,n){"use strict";var r=n(0),o=n.n(r);function a(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var i=function(e,t){var n;void 0===t&&(t=a);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}},l=n(21),s=n(39),c=(n(8),n(56)),u=n(29),f=n(102),p=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],d=function(e){for(var t=0;t<p.length;t++)e=e.replace(p[t].letters,p[t].base);return e};function m(){return m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m.apply(this,arguments)}var h=function(e){return e.replace(/^\s+|\s+$/g,"")},y=function(e){return e.label+" "+e.value};function b(){return b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b.apply(this,arguments)}var v={name:"1laao21-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;"},g=function(e){return Object(l.c)("span",b({css:v},e))};function w(){return w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w.apply(this,arguments)}function E(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef,n=(e.emotion,function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return Object(l.c)("input",w({ref:t},n,{css:Object(f.a)({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"")}))}var _=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.componentDidMount=function(){this.props.innerRef(Object(s.findDOMNode)(this))},o.componentWillUnmount=function(){this.props.innerRef(null)},o.render=function(){return this.props.children},r}(r.Component),k=["boxSizing","height","overflow","paddingRight","position"],O={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function x(e){e.preventDefault()}function S(e){e.stopPropagation()}function j(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function C(){return"ontouchstart"in window||navigator.maxTouchPoints}var D=!(!window.document||!window.document.createElement),N=0,P=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).originalStyles={},t.listenerOptions={capture:!1,passive:!1},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.componentDidMount=function(){var e=this;if(D){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,o=document.body,a=o&&o.style;if(n&&k.forEach((function(t){var n=a&&a[t];e.originalStyles[t]=n})),n&&N<1){var i=parseInt(this.originalStyles.paddingRight,10)||0,l=document.body?document.body.clientWidth:0,s=window.innerWidth-l+i||0;Object.keys(O).forEach((function(e){var t=O[e];a&&(a[e]=t)})),a&&(a.paddingRight=s+"px")}o&&C()&&(o.addEventListener("touchmove",x,this.listenerOptions),r&&(r.addEventListener("touchstart",j,this.listenerOptions),r.addEventListener("touchmove",S,this.listenerOptions))),N+=1}},o.componentWillUnmount=function(){var e=this;if(D){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,o=document.body,a=o&&o.style;N=Math.max(N-1,0),n&&N<1&&k.forEach((function(t){var n=e.originalStyles[t];a&&(a[t]=n)})),o&&C()&&(o.removeEventListener("touchmove",x,this.listenerOptions),r&&(r.removeEventListener("touchstart",j,this.listenerOptions),r.removeEventListener("touchmove",S,this.listenerOptions)))}},o.render=function(){return null},r}(r.Component);P.defaultProps={accountForScrollbars:!0};var T={name:"1dsbpcp",styles:"position:fixed;left:0;bottom:0;right:0;top:0;"},M=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={touchScrollTarget:null},t.getScrollTarget=function(e){e!==t.state.touchScrollTarget&&t.setState({touchScrollTarget:e})},t.blurSelectInput=function(){document.activeElement&&document.activeElement.blur()},t}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.render=function(){var e=this.props,t=e.children,n=e.isEnabled,r=this.state.touchScrollTarget;return n?Object(l.c)("div",null,Object(l.c)("div",{onClick:this.blurSelectInput,css:T}),Object(l.c)(_,{innerRef:this.getScrollTarget},t),r?Object(l.c)(P,{touchScrollTarget:r}):null):t},r}(r.PureComponent);var A=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).isBottom=!1,t.isTop=!1,t.scrollTarget=void 0,t.touchStart=void 0,t.cancelScroll=function(e){e.preventDefault(),e.stopPropagation()},t.handleEventDelta=function(e,n){var r=t.props,o=r.onBottomArrive,a=r.onBottomLeave,i=r.onTopArrive,l=r.onTopLeave,s=t.scrollTarget,c=s.scrollTop,u=s.scrollHeight,f=s.clientHeight,p=t.scrollTarget,d=n>0,m=u-f-c,h=!1;m>n&&t.isBottom&&(a&&a(e),t.isBottom=!1),d&&t.isTop&&(l&&l(e),t.isTop=!1),d&&n>m?(o&&!t.isBottom&&o(e),p.scrollTop=u,h=!0,t.isBottom=!0):!d&&-n>c&&(i&&!t.isTop&&i(e),p.scrollTop=0,h=!0,t.isTop=!0),h&&t.cancelScroll(e)},t.onWheel=function(e){t.handleEventDelta(e,e.deltaY)},t.onTouchStart=function(e){t.touchStart=e.changedTouches[0].clientY},t.onTouchMove=function(e){var n=t.touchStart-e.changedTouches[0].clientY;t.handleEventDelta(e,n)},t.getScrollTarget=function(e){t.scrollTarget=e},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.componentDidMount=function(){this.startListening(this.scrollTarget)},a.componentWillUnmount=function(){this.stopListening(this.scrollTarget)},a.startListening=function(e){e&&("function"==typeof e.addEventListener&&e.addEventListener("wheel",this.onWheel,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",this.onTouchMove,!1))},a.stopListening=function(e){"function"==typeof e.removeEventListener&&e.removeEventListener("wheel",this.onWheel,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",this.onTouchMove,!1)},a.render=function(){return o.a.createElement(_,{innerRef:this.getScrollTarget},this.props.children)},r}(r.Component);function L(e){var t=e.isEnabled,n=void 0===t||t,r=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["isEnabled"]);return n?o.a.createElement(A,r):r.children}var R=function(e,t){void 0===t&&(t={});var n=t,r=n.isSearchable,o=n.isMulti,a=n.label,i=n.isDisabled;switch(e){case"menu":return"Use Up and Down to choose options"+(i?"":", press Enter to select the currently focused option")+", press Escape to exit the menu, press Tab to select the option and exit the menu.";case"input":return(a||"Select")+" is focused "+(r?",type to refine list":"")+", press Down to open the menu, "+(o?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},F=function(e,t){var n=t.value,r=t.isDisabled;if(n)switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option "+n+", deselected.";case"select-option":return r?"option "+n+" is disabled. Select another option.":"option "+n+", selected."}},z=function(e){return!!e.isDisabled};var B={clearIndicator:u.d,container:u.b,control:u.c,dropdownIndicator:u.e,group:u.h,groupHeading:u.f,indicatorsContainer:u.j,indicatorSeparator:u.g,input:u.i,loadingIndicator:u.m,loadingMessage:u.k,menu:u.n,menuList:u.l,menuPortal:u.o,multiValue:u.p,multiValueLabel:u.q,multiValueRemove:u.r,noOptionsMessage:u.s,option:u.t,placeholder:u.u,singleValue:u.v,valueContainer:u.w};var Y={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}};function I(){return I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I.apply(this,arguments)}function H(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var U,W={backspaceRemovesValue:!0,blurInputOnSelect:Object(c.i)(),captureMenuScroll:!Object(c.i)(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=m({ignoreCase:!0,ignoreAccents:!0,stringify:y,trim:!0,matchFrom:"any"},U),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,l=n.matchFrom,s=i?h(t):t,c=i?h(a(e)):a(e);return r&&(s=s.toLowerCase(),c=c.toLowerCase()),o&&(s=d(s),c=d(c)),"start"===l?c.substr(0,s.length)===s:c.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:z,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Object(c.d)(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return t+" result"+(1!==t?"s":"")+" available"},styles:{},tabIndex:"0",tabSelectsValue:!0},V=1,q=function(e){var t,n;function r(t){var n;(n=e.call(this,t)||this).state={ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]},n.blockOptionHover=!1,n.isComposing=!1,n.clearFocusValueOnUpdate=!1,n.commonProps=void 0,n.components=void 0,n.hasGroups=!1,n.initialTouchX=0,n.initialTouchY=0,n.inputIsHiddenAfterUpdate=void 0,n.instancePrefix="",n.openAfterFocus=!1,n.scrollToFocusedOptionOnUpdate=!1,n.userIsDragging=void 0,n.controlRef=null,n.getControlRef=function(e){n.controlRef=e},n.focusedOptionRef=null,n.getFocusedOptionRef=function(e){n.focusedOptionRef=e},n.menuListRef=null,n.getMenuListRef=function(e){n.menuListRef=e},n.inputRef=null,n.getInputRef=function(e){n.inputRef=e},n.cacheComponents=function(e){n.components=Object(u.x)({components:e})},n.focus=n.focusInput,n.blur=n.blurInput,n.onChange=function(e,t){var r=n.props;(0,r.onChange)(e,I({},t,{name:r.name}))},n.setValue=function(e,t,r){void 0===t&&(t="set-value");var o=n.props,a=o.closeMenuOnSelect,i=o.isMulti;n.onInputChange("",{action:"set-value"}),a&&(n.inputIsHiddenAfterUpdate=!i,n.onMenuClose()),n.clearFocusValueOnUpdate=!0,n.onChange(e,{action:t,option:r})},n.selectOption=function(e){var t=n.props,r=t.blurInputOnSelect,o=t.isMulti,a=n.state.selectValue;if(o)if(n.isOptionSelected(e,a)){var i=n.getOptionValue(e);n.setValue(a.filter((function(e){return n.getOptionValue(e)!==i})),"deselect-option",e),n.announceAriaLiveSelection({event:"deselect-option",context:{value:n.getOptionLabel(e)}})}else n.isOptionDisabled(e,a)?n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e),isDisabled:!0}}):(n.setValue([].concat(a,[e]),"select-option",e),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e)}}));else n.isOptionDisabled(e,a)?n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e),isDisabled:!0}}):(n.setValue(e,"select-option"),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e)}}));r&&n.blurInput()},n.removeValue=function(e){var t=n.state.selectValue,r=n.getOptionValue(e),o=t.filter((function(e){return n.getOptionValue(e)!==r}));n.onChange(o.length?o:null,{action:"remove-value",removedValue:e}),n.announceAriaLiveSelection({event:"remove-value",context:{value:e?n.getOptionLabel(e):""}}),n.focusInput()},n.clearValue=function(){var e=n.props.isMulti;n.onChange(e?[]:null,{action:"clear"})},n.popValue=function(){var e=n.state.selectValue,t=e[e.length-1],r=e.slice(0,e.length-1);n.announceAriaLiveSelection({event:"pop-value",context:{value:t?n.getOptionLabel(t):""}}),n.onChange(r.length?r:null,{action:"pop-value",removedValue:t})},n.getOptionLabel=function(e){return n.props.getOptionLabel(e)},n.getOptionValue=function(e){return n.props.getOptionValue(e)},n.getStyles=function(e,t){var r=B[e](t);r.boxSizing="border-box";var o=n.props.styles[e];return o?o(r,t):r},n.getElementId=function(e){return n.instancePrefix+"-"+e},n.getActiveDescendentId=function(){var e=n.props.menuIsOpen,t=n.state,r=t.menuOptions,o=t.focusedOption;if(o&&e){var a=r.focusable.indexOf(o),i=r.render[a];return i&&i.key}},n.announceAriaLiveSelection=function(e){var t=e.event,r=e.context;n.setState({ariaLiveSelection:F(t,r)})},n.announceAriaLiveContext=function(e){var t=e.event,r=e.context;n.setState({ariaLiveContext:R(t,I({},r,{label:n.props["aria-label"]}))})},n.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),n.focusInput())},n.onMenuMouseMove=function(e){n.blockOptionHover=!1},n.onControlMouseDown=function(e){var t=n.props.openMenuOnClick;n.state.isFocused?n.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&n.onMenuClose():t&&n.openMenu("first"):(t&&(n.openAfterFocus=!0),n.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},n.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||n.props.isDisabled)){var t=n.props,r=t.isMulti,o=t.menuIsOpen;n.focusInput(),o?(n.inputIsHiddenAfterUpdate=!r,n.onMenuClose()):n.openMenu("first"),e.preventDefault(),e.stopPropagation()}},n.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(n.clearValue(),e.stopPropagation(),n.openAfterFocus=!1,"touchend"===e.type?n.focusInput():setTimeout((function(){return n.focusInput()})))},n.onScroll=function(e){"boolean"==typeof n.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Object(c.j)(e.target)&&n.props.onMenuClose():"function"==typeof n.props.closeMenuOnScroll&&n.props.closeMenuOnScroll(e)&&n.props.onMenuClose()},n.onCompositionStart=function(){n.isComposing=!0},n.onCompositionEnd=function(){n.isComposing=!1},n.onTouchStart=function(e){var t=e.touches.item(0);t&&(n.initialTouchX=t.clientX,n.initialTouchY=t.clientY,n.userIsDragging=!1)},n.onTouchMove=function(e){var t=e.touches.item(0);if(t){var r=Math.abs(t.clientX-n.initialTouchX),o=Math.abs(t.clientY-n.initialTouchY);n.userIsDragging=r>5||o>5}},n.onTouchEnd=function(e){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(e.target)&&n.menuListRef&&!n.menuListRef.contains(e.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)},n.onControlTouchEnd=function(e){n.userIsDragging||n.onControlMouseDown(e)},n.onClearIndicatorTouchEnd=function(e){n.userIsDragging||n.onClearIndicatorMouseDown(e)},n.onDropdownIndicatorTouchEnd=function(e){n.userIsDragging||n.onDropdownIndicatorMouseDown(e)},n.handleInputChange=function(e){var t=e.currentTarget.value;n.inputIsHiddenAfterUpdate=!1,n.onInputChange(t,{action:"input-change"}),n.onMenuOpen()},n.onInputFocus=function(e){var t=n.props,r=t.isSearchable,o=t.isMulti;n.props.onFocus&&n.props.onFocus(e),n.inputIsHiddenAfterUpdate=!1,n.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:o}}),n.setState({isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1},n.onInputBlur=function(e){n.menuListRef&&n.menuListRef.contains(document.activeElement)?n.inputRef.focus():(n.props.onBlur&&n.props.onBlur(e),n.onInputChange("",{action:"input-blur"}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1}))},n.onOptionHover=function(e){n.blockOptionHover||n.state.focusedOption===e||n.setState({focusedOption:e})},n.shouldHideSelectedOptions=function(){var e=n.props,t=e.hideSelectedOptions,r=e.isMulti;return void 0===t?r:t},n.onKeyDown=function(e){var t=n.props,r=t.isMulti,o=t.backspaceRemovesValue,a=t.escapeClearsValue,i=t.inputValue,l=t.isClearable,s=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,f=t.tabSelectsValue,p=t.openMenuOnFocus,d=n.state,m=d.focusedOption,h=d.focusedValue,y=d.selectValue;if(!(s||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(n.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||i)return;n.focusValue("previous");break;case"ArrowRight":if(!r||i)return;n.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(h)n.removeValue(h);else{if(!o)return;r?n.popValue():l&&n.clearValue()}break;case"Tab":if(n.isComposing)return;if(e.shiftKey||!c||!f||!m||p&&n.isOptionSelected(m,y))return;n.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(c){if(!m)return;if(n.isComposing)return;n.selectOption(m);break}return;case"Escape":c?(n.inputIsHiddenAfterUpdate=!1,n.onInputChange("",{action:"menu-close"}),n.onMenuClose()):l&&a&&n.clearValue();break;case" ":if(i)return;if(!c){n.openMenu("first");break}if(!m)return;n.selectOption(m);break;case"ArrowUp":c?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":c?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!c)return;n.focusOption("pageup");break;case"PageDown":if(!c)return;n.focusOption("pagedown");break;case"Home":if(!c)return;n.focusOption("first");break;case"End":if(!c)return;n.focusOption("last");break;default:return}e.preventDefault()}},n.buildMenuOptions=function(e,t){var r=e.inputValue,o=void 0===r?"":r,a=e.options,i=function(e,r){var a=n.isOptionDisabled(e,t),i=n.isOptionSelected(e,t),l=n.getOptionLabel(e),s=n.getOptionValue(e);if(!(n.shouldHideSelectedOptions()&&i||!n.filterOption({label:l,value:s,data:e},o))){var c=a?void 0:function(){return n.onOptionHover(e)},u=a?void 0:function(){return n.selectOption(e)},f=n.getElementId("option")+"-"+r;return{innerProps:{id:f,onClick:u,onMouseMove:c,onMouseOver:c,tabIndex:-1},data:e,isDisabled:a,isSelected:i,key:f,label:l,type:"option",value:s}}};return a.reduce((function(e,t,r){if(t.options){n.hasGroups||(n.hasGroups=!0);var o=t.options.map((function(t,n){var o=i(t,r+"-"+n);return o&&e.focusable.push(t),o})).filter(Boolean);if(o.length){var a=n.getElementId("group")+"-"+r;e.render.push({type:"group",key:a,data:t,options:o})}}else{var l=i(t,""+r);l&&(e.render.push(l),e.focusable.push(t))}return e}),{render:[],focusable:[]})};var r=t.value;n.cacheComponents=i(n.cacheComponents,u.y).bind(H(H(n))),n.cacheComponents(t.components),n.instancePrefix="react-select-"+(n.props.instanceId||++V);var o=Object(c.e)(r);n.buildMenuOptions=i(n.buildMenuOptions,(function(e,t){var n=e,r=n[0],o=n[1],a=t,i=a[0],l=a[1];return Object(u.y)(o,l)&&Object(u.y)(r.inputValue,i.inputValue)&&Object(u.y)(r.options,i.options)})).bind(H(H(n)));var a=t.menuIsOpen?n.buildMenuOptions(t,o):{render:[],focusable:[]};return n.state.menuOptions=a,n.state.selectValue=o,n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.componentDidMount=function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()},a.UNSAFE_componentWillReceiveProps=function(e){var t=this.props,n=t.options,r=t.value,o=t.menuIsOpen,a=t.inputValue;if(this.cacheComponents(e.components),e.value!==r||e.options!==n||e.menuIsOpen!==o||e.inputValue!==a){var i=Object(c.e)(e.value),l=e.menuIsOpen?this.buildMenuOptions(e,i):{render:[],focusable:[]},s=this.getNextFocusedValue(i),u=this.getNextFocusedOption(l.focusable);this.setState({menuOptions:l,selectValue:i,focusedOption:u,focusedValue:s})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)},a.componentDidUpdate=function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Object(c.f)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)},a.componentWillUnmount=function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)},a.onMenuOpen=function(){this.props.onMenuOpen()},a.onMenuClose=function(){var e=this.props,t=e.isSearchable,n=e.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:t,isMulti:n}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()},a.onInputChange=function(e,t){this.props.onInputChange(e,t)},a.focusInput=function(){this.inputRef&&this.inputRef.focus()},a.blurInput=function(){this.inputRef&&this.inputRef.blur()},a.openMenu=function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,a=this.buildMenuOptions(this.props,r),i=this.props.isMulti,l="first"===e?0:a.focusable.length-1;if(!i){var s=a.focusable.indexOf(r[0]);s>-1&&(l=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.setState({menuOptions:a,focusedValue:null,focusedOption:a.focusable[l]},(function(){t.onMenuOpen(),t.announceAriaLiveContext({event:"menu"})}))},a.focusValue=function(e){var t=this.props,n=t.isMulti,r=t.isSearchable,o=this.state,a=o.selectValue,i=o.focusedValue;if(n){this.setState({focusedOption:null});var l=a.indexOf(i);i||(l=-1,this.announceAriaLiveContext({event:"value"}));var s=a.length-1,c=-1;if(a.length){switch(e){case"previous":c=0===l?0:-1===l?s:l-1;break;case"next":l>-1&&l<s&&(c=l+1)}-1===c&&this.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:n}}),this.setState({inputIsHidden:-1!==c,focusedValue:a[c]})}}},a.focusOption=function(e){void 0===e&&(e="first");var t=this.props.pageSize,n=this.state,r=n.focusedOption,o=n.menuOptions.focusable;if(o.length){var a=0,i=o.indexOf(r);r||(i=-1,this.announceAriaLiveContext({event:"menu"})),"up"===e?a=i>0?i-1:o.length-1:"down"===e?a=(i+1)%o.length:"pageup"===e?(a=i-t)<0&&(a=0):"pagedown"===e?(a=i+t)>o.length-1&&(a=o.length-1):"last"===e&&(a=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[a],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:z(o[a])}})}},a.getTheme=function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Y):I({},Y,this.props.theme):Y},a.getCommonProps=function(){var e=this.clearValue,t=this.getStyles,n=this.setValue,r=this.selectOption,o=this.props,a=o.classNamePrefix,i=o.isMulti,l=o.isRtl,s=o.options,u=this.state.selectValue,f=this.hasValue();return{cx:c.h.bind(null,a),clearValue:e,getStyles:t,getValue:function(){return u},hasValue:f,isMulti:i,isRtl:l,options:s,selectOption:r,setValue:n,selectProps:o,theme:this.getTheme()}},a.getNextFocusedValue=function(e){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var t=this.state,n=t.focusedValue,r=t.selectValue.indexOf(n);if(r>-1){if(e.indexOf(n)>-1)return n;if(r<e.length)return e[r]}return null},a.getNextFocusedOption=function(e){var t=this.state.focusedOption;return t&&e.indexOf(t)>-1?t:e[0]},a.hasValue=function(){return this.state.selectValue.length>0},a.hasOptions=function(){return!!this.state.menuOptions.render.length},a.countOptions=function(){return this.state.menuOptions.focusable.length},a.isClearable=function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t},a.isOptionDisabled=function(e,t){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(e,t)},a.isOptionSelected=function(e,t){var n=this;if(t.indexOf(e)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(e,t);var r=this.getOptionValue(e);return t.some((function(e){return n.getOptionValue(e)===r}))},a.filterOption=function(e,t){return!this.props.filterOption||this.props.filterOption(e,t)},a.formatOptionLabel=function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)},a.formatGroupLabel=function(e){return this.props.formatGroupLabel(e)},a.startListeningComposition=function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))},a.stopListeningComposition=function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))},a.startListeningToTouch=function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))},a.stopListeningToTouch=function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))},a.constructAriaLiveMessage=function(){var e=this.state,t=e.ariaLiveContext,n=e.selectValue,r=e.focusedValue,o=e.focusedOption,a=this.props,i=a.options,l=a.menuIsOpen,s=a.inputValue,c=a.screenReaderStatus,u=r?function(e){var t=e.focusedValue,n=e.getOptionLabel,r=e.selectValue;return"value "+n(t)+" focused, "+(r.indexOf(t)+1)+" of "+r.length+"."}({focusedValue:r,getOptionLabel:this.getOptionLabel,selectValue:n}):"",f=o&&l?function(e){var t=e.focusedOption,n=e.getOptionLabel,r=e.options;return"option "+n(t)+" focused"+(t.isDisabled?" disabled":"")+", "+(r.indexOf(t)+1)+" of "+r.length+"."}({focusedOption:o,getOptionLabel:this.getOptionLabel,options:i}):"",p=function(e){var t=e.inputValue;return e.screenReaderMessage+(t?" for search term "+t:"")+"."}({inputValue:s,screenReaderMessage:c({count:this.countOptions()})});return u+" "+f+" "+p+" "+t},a.renderInput=function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,a=e.inputValue,i=e.tabIndex,l=this.components.Input,s=this.state.inputIsHidden,u=r||this.getElementId("input"),f={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};if(!n)return o.a.createElement(E,I({id:u,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:c.k,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:i,value:""},f));var p=this.commonProps,d=p.cx,m=p.theme,h=p.selectProps;return o.a.createElement(l,I({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:d,getStyles:this.getStyles,id:u,innerRef:this.getInputRef,isDisabled:t,isHidden:s,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:h,spellCheck:"false",tabIndex:i,theme:m,type:"text",value:a},f))},a.renderPlaceholderOrValue=function(){var e=this,t=this.components,n=t.MultiValue,r=t.MultiValueContainer,a=t.MultiValueLabel,i=t.MultiValueRemove,l=t.SingleValue,s=t.Placeholder,c=this.commonProps,u=this.props,f=u.controlShouldRenderValue,p=u.isDisabled,d=u.isMulti,m=u.inputValue,h=u.placeholder,y=this.state,b=y.selectValue,v=y.focusedValue,g=y.isFocused;if(!this.hasValue()||!f)return m?null:o.a.createElement(s,I({},c,{key:"placeholder",isDisabled:p,isFocused:g}),h);if(d)return b.map((function(t,l){var s=t===v;return o.a.createElement(n,I({},c,{components:{Container:r,Label:a,Remove:i},isFocused:s,isDisabled:p,key:e.getOptionValue(t),index:l,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));if(m)return null;var w=b[0];return o.a.createElement(l,I({},c,{data:w,isDisabled:p}),this.formatOptionLabel(w,"value"))},a.renderClearIndicator=function(){var e=this.components.ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,a=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||a)return null;var l={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return o.a.createElement(e,I({},t,{innerProps:l,isFocused:i}))},a.renderLoadingIndicator=function(){var e=this.components.LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,a=n.isLoading,i=this.state.isFocused;if(!e||!a)return null;return o.a.createElement(e,I({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i}))},a.renderIndicatorSeparator=function(){var e=this.components,t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,a=this.props.isDisabled,i=this.state.isFocused;return o.a.createElement(n,I({},r,{isDisabled:a,isFocused:i}))},a.renderDropdownIndicator=function(){var e=this.components.DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return o.a.createElement(e,I({},t,{innerProps:a,isDisabled:n,isFocused:r}))},a.renderMenu=function(){var e=this,t=this.components,n=t.Group,r=t.GroupHeading,a=t.Menu,i=t.MenuList,l=t.MenuPortal,s=t.LoadingMessage,c=t.NoOptionsMessage,f=t.Option,p=this.commonProps,d=this.state,m=d.focusedOption,h=d.menuOptions,y=this.props,b=y.captureMenuScroll,v=y.inputValue,g=y.isLoading,w=y.loadingMessage,E=y.minMenuHeight,_=y.maxMenuHeight,k=y.menuIsOpen,O=y.menuPlacement,x=y.menuPosition,S=y.menuPortalTarget,j=y.menuShouldBlockScroll,C=y.menuShouldScrollIntoView,D=y.noOptionsMessage,N=y.onMenuScrollToTop,P=y.onMenuScrollToBottom;if(!k)return null;var T,A=function(t){var n=m===t.data;return t.innerRef=n?e.getFocusedOptionRef:void 0,o.a.createElement(f,I({},p,t,{isFocused:n}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())T=h.render.map((function(t){if("group"===t.type){t.type;var a=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["type"]),i=t.key+"-heading";return o.a.createElement(n,I({},p,a,{Heading:r,headingProps:{id:i},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return A(e)})))}if("option"===t.type)return A(t)}));else if(g){var R=w({inputValue:v});if(null===R)return null;T=o.a.createElement(s,p,R)}else{var F=D({inputValue:v});if(null===F)return null;T=o.a.createElement(c,p,F)}var z={minMenuHeight:E,maxMenuHeight:_,menuPlacement:O,menuPosition:x,menuShouldScrollIntoView:C},B=o.a.createElement(u.a,I({},p,z),(function(t){var n=t.ref,r=t.placerProps,l=r.placement,s=r.maxHeight;return o.a.createElement(a,I({},p,z,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:l}),o.a.createElement(L,{isEnabled:b,onTopArrive:N,onBottomArrive:P},o.a.createElement(M,{isEnabled:j},o.a.createElement(i,I({},p,{innerRef:e.getMenuListRef,isLoading:g,maxHeight:s}),T))))}));return S||"fixed"===x?o.a.createElement(l,I({},p,{appendTo:S,controlElement:this.controlRef,menuPlacement:O,menuPosition:x}),B):B},a.renderFormField=function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,a=t.isMulti,i=t.name,l=this.state.selectValue;if(i&&!r){if(a){if(n){var s=l.map((function(t){return e.getOptionValue(t)})).join(n);return o.a.createElement("input",{name:i,type:"hidden",value:s})}var c=l.length>0?l.map((function(t,n){return o.a.createElement("input",{key:"i-"+n,name:i,type:"hidden",value:e.getOptionValue(t)})})):o.a.createElement("input",{name:i,type:"hidden"});return o.a.createElement("div",null,c)}var u=l[0]?this.getOptionValue(l[0]):"";return o.a.createElement("input",{name:i,type:"hidden",value:u})}},a.renderLiveRegion=function(){return this.state.isFocused?o.a.createElement(g,{"aria-live":"polite"},o.a.createElement("p",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),o.a.createElement("p",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null},a.render=function(){var e=this.components,t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,a=e.ValueContainer,i=this.props,l=i.className,s=i.id,c=i.isDisabled,u=i.menuIsOpen,f=this.state.isFocused,p=this.commonProps=this.getCommonProps();return o.a.createElement(r,I({},p,{className:l,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:f}),this.renderLiveRegion(),o.a.createElement(t,I({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:f,menuIsOpen:u}),o.a.createElement(a,I({},p,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),o.a.createElement(n,I({},p,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())},r}(r.Component);q.defaultProps=W;n(416);function G(){return G=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G.apply(this,arguments)}var K={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},$=n(197);r.Component;var J,X,Q,Z=(J=q,Q=X=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).select=void 0,t.state={inputValue:void 0!==t.props.inputValue?t.props.inputValue:t.props.defaultInputValue,menuIsOpen:void 0!==t.props.menuIsOpen?t.props.menuIsOpen:t.props.defaultMenuIsOpen,value:void 0!==t.props.value?t.props.value:t.props.defaultValue},t.onChange=function(e,n){t.callProp("onChange",e,n),t.setState({value:e})},t.onInputChange=function(e,n){var r=t.callProp("onInputChange",e,n);t.setState({inputValue:void 0!==r?r:e})},t.onMenuOpen=function(){t.callProp("onMenuOpen"),t.setState({menuIsOpen:!0})},t.onMenuClose=function(){t.callProp("onMenuClose"),t.setState({menuIsOpen:!1})},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.focus=function(){this.select.focus()},a.blur=function(){this.select.blur()},a.getProp=function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]},a.callProp=function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=this.props)[e].apply(t,r)}},a.render=function(){var e=this,t=this.props,n=(t.defaultInputValue,t.defaultMenuIsOpen,t.defaultValue,function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["defaultInputValue","defaultMenuIsOpen","defaultValue"]));return o.a.createElement(J,G({},n,{ref:function(t){e.select=t},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))},r}(r.Component),X.defaultProps=K,Q);t.a=Z},function(e,t,n){"use strict";var r=n(195);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var a=function(e){function t(e,r,o,c,u){for(var d,m,h,y,b,E=0,k=0,O=0,x=0,S=0,j=0,M=h=d=0,L=0,F=0,z=0,B=0,Y=o.length,I=Y-1,H="",U="",W="",V="";L<Y;){if(m=o.charCodeAt(L),L===I&&0!==k+x+O+E&&(0!==k&&(m=47===k?10:47),x=O=E=0,Y++,I++),0===k+x+O+E){if(L===I&&(0<F&&(H=H.replace(p,"")),0<H.trim().length)){switch(m){case 32:case 9:case 59:case 13:case 10:break;default:H+=o.charAt(L)}m=59}switch(m){case 123:for(d=(H=H.trim()).charCodeAt(0),h=1,B=++L;L<Y;){switch(m=o.charCodeAt(L)){case 123:h++;break;case 125:h--;break;case 47:switch(m=o.charCodeAt(L+1)){case 42:case 47:e:{for(M=L+1;M<I;++M)switch(o.charCodeAt(M)){case 47:if(42===m&&42===o.charCodeAt(M-1)&&L+2!==M){L=M+1;break e}break;case 10:if(47===m){L=M+1;break e}}L=M}}break;case 91:m++;case 40:m++;case 34:case 39:for(;L++<I&&o.charCodeAt(L)!==m;);}if(0===h)break;L++}if(h=o.substring(B,L),0===d&&(d=(H=H.replace(f,"").trim()).charCodeAt(0)),64===d){switch(0<F&&(H=H.replace(p,"")),m=H.charCodeAt(1)){case 100:case 109:case 115:case 45:F=r;break;default:F=T}if(B=(h=t(r,F,h,m,u+1)).length,0<A&&(b=s(3,h,F=n(T,H,z),r,D,C,B,m,u,c),H=F.join(""),void 0!==b&&0===(B=(h=b.trim()).length)&&(m=0,h="")),0<B)switch(m){case 115:H=H.replace(_,l);case 100:case 109:case 45:h=H+"{"+h+"}";break;case 107:h=(H=H.replace(v,"$1 $2"))+"{"+h+"}",h=1===P||2===P&&i("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=H+h,112===c&&(U+=h,h="")}else h=""}else h=t(r,n(r,H,z),h,c,u+1);W+=h,h=z=F=M=d=0,H="",m=o.charCodeAt(++L);break;case 125:case 59:if(1<(B=(H=(0<F?H.replace(p,""):H).trim()).length))switch(0===M&&(d=H.charCodeAt(0),45===d||96<d&&123>d)&&(B=(H=H.replace(" ",":")).length),0<A&&void 0!==(b=s(1,H,r,e,D,C,U.length,c,u,c))&&0===(B=(H=b.trim()).length)&&(H="\0\0"),d=H.charCodeAt(0),m=H.charCodeAt(1),d){case 0:break;case 64:if(105===m||99===m){V+=H+o.charAt(L);break}default:58!==H.charCodeAt(B-1)&&(U+=a(H,d,m,H.charCodeAt(2)))}z=F=M=d=0,H="",m=o.charCodeAt(++L)}}switch(m){case 13:case 10:47===k?k=0:0===1+d&&107!==c&&0<H.length&&(F=1,H+="\0"),0<A*R&&s(0,H,r,e,D,C,U.length,c,u,c),C=1,D++;break;case 59:case 125:if(0===k+x+O+E){C++;break}default:switch(C++,y=o.charAt(L),m){case 9:case 32:if(0===x+E+k)switch(S){case 44:case 58:case 9:case 32:y="";break;default:32!==m&&(y=" ")}break;case 0:y="\\0";break;case 12:y="\\f";break;case 11:y="\\v";break;case 38:0===x+k+E&&(F=z=1,y="\f"+y);break;case 108:if(0===x+k+E+N&&0<M)switch(L-M){case 2:112===S&&58===o.charCodeAt(L-3)&&(N=S);case 8:111===j&&(N=j)}break;case 58:0===x+k+E&&(M=L);break;case 44:0===k+O+x+E&&(F=1,y+="\r");break;case 34:case 39:0===k&&(x=x===m?0:0===x?m:x);break;case 91:0===x+k+O&&E++;break;case 93:0===x+k+O&&E--;break;case 41:0===x+k+E&&O--;break;case 40:if(0===x+k+E){if(0===d)if(2*S+3*j==533);else d=1;O++}break;case 64:0===k+O+x+E+M+h&&(h=1);break;case 42:case 47:if(!(0<x+E+O))switch(k){case 0:switch(2*m+3*o.charCodeAt(L+1)){case 235:k=47;break;case 220:B=L,k=42}break;case 42:47===m&&42===S&&B+2!==L&&(33===o.charCodeAt(B+2)&&(U+=o.substring(B,L+1)),y="",k=0)}}0===k&&(H+=y)}j=S,S=m,L++}if(0<(B=U.length)){if(F=r,0<A&&(void 0!==(b=s(2,U,F,e,D,C,B,c,u,c))&&0===(U=b).length))return V+U+W;if(U=F.join(",")+"{"+U+"}",0!=P*N){switch(2!==P||i(U,2)||(N=0),N){case 111:U=U.replace(w,":-moz-$1")+U;break;case 112:U=U.replace(g,"::-webkit-input-$1")+U.replace(g,"::-moz-$1")+U.replace(g,":-ms-input-$1")+U}N=0}}return V+U+W}function n(e,t,n){var o=t.trim().split(y);t=o;var a=o.length,i=e.length;switch(i){case 0:case 1:var l=0;for(e=0===i?"":e[0]+" ";l<a;++l)t[l]=r(e,t[l],n).trim();break;default:var s=l=0;for(t=[];l<a;++l)for(var c=0;c<i;++c)t[s++]=r(e[c]+" ",o[l],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(b,"$1"+e.trim());case 58:return e.trim()+t.replace(b,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(b,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function a(e,t,n,r){var o=e+";",l=2*t+3*n+4*r;if(944===l){e=o.indexOf(":",9)+1;var s=o.substring(e,o.length-1).trim();return s=o.substring(0,e).trim()+s+";",1===P||2===P&&i(s,1)?"-webkit-"+s+s:s}if(0===P||2===P&&!i(o,1))return o;switch(l){case 1015:return 97===o.charCodeAt(10)?"-webkit-"+o+o:o;case 951:return 116===o.charCodeAt(3)?"-webkit-"+o+o:o;case 963:return 110===o.charCodeAt(5)?"-webkit-"+o+o:o;case 1009:if(100!==o.charCodeAt(4))break;case 969:case 942:return"-webkit-"+o+o;case 978:return"-webkit-"+o+"-moz-"+o+o;case 1019:case 983:return"-webkit-"+o+"-moz-"+o+"-ms-"+o+o;case 883:if(45===o.charCodeAt(8))return"-webkit-"+o+o;if(0<o.indexOf("image-set(",11))return o.replace(j,"$1-webkit-$2")+o;break;case 932:if(45===o.charCodeAt(4))switch(o.charCodeAt(5)){case 103:return"-webkit-box-"+o.replace("-grow","")+"-webkit-"+o+"-ms-"+o.replace("grow","positive")+o;case 115:return"-webkit-"+o+"-ms-"+o.replace("shrink","negative")+o;case 98:return"-webkit-"+o+"-ms-"+o.replace("basis","preferred-size")+o}return"-webkit-"+o+"-ms-"+o+o;case 964:return"-webkit-"+o+"-ms-flex-"+o+o;case 1023:if(99!==o.charCodeAt(8))break;return"-webkit-box-pack"+(s=o.substring(o.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+o+"-ms-flex-pack"+s+o;case 1005:return m.test(o)?o.replace(d,":-webkit-")+o.replace(d,":-moz-")+o:o;case 1e3:switch(t=(s=o.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=o.replace(E,"tb");break;case 232:s=o.replace(E,"tb-rl");break;case 220:s=o.replace(E,"lr");break;default:return o}return"-webkit-"+o+"-ms-"+s+o;case 1017:if(-1===o.indexOf("sticky",9))break;case 975:switch(t=(o=e).length-10,l=(s=(33===o.charCodeAt(t)?o.substring(0,t):o).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:o=o.replace(s,"-webkit-"+s)+";"+o;break;case 207:case 102:o=o.replace(s,"-webkit-"+(102<l?"inline-":"")+"box")+";"+o.replace(s,"-webkit-"+s)+";"+o.replace(s,"-ms-"+s+"box")+";"+o}return o+";";case 938:if(45===o.charCodeAt(5))switch(o.charCodeAt(6)){case 105:return s=o.replace("-items",""),"-webkit-"+o+"-webkit-box-"+s+"-ms-flex-"+s+o;case 115:return"-webkit-"+o+"-ms-flex-item-"+o.replace(O,"")+o;default:return"-webkit-"+o+"-ms-flex-line-pack"+o.replace("align-content","").replace(O,"")+o}break;case 973:case 989:if(45!==o.charCodeAt(3)||122===o.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?a(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):o.replace(s,"-webkit-"+s)+o.replace(s,"-moz-"+s.replace("fill-",""))+o;break;case 962:if(o="-webkit-"+o+(102===o.charCodeAt(5)?"-ms-"+o:"")+o,211===n+r&&105===o.charCodeAt(13)&&0<o.indexOf("transform",10))return o.substring(0,o.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+o}return o}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),L(2!==t?r:r.replace(x,"$1"),n,t)}function l(e,t){var n=a(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(k," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,o,a,i,l,s,c){for(var f,p=0,d=t;p<A;++p)switch(f=M[p].call(u,e,d,n,r,o,a,i,l,s,c)){case void 0:case!1:case!0:case null:break;default:d=f}if(d!==t)return d}function c(e){return void 0!==(e=e.prefix)&&(L=null,e?"function"!=typeof e?P=1:(P=2,L=e):P=0),c}function u(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<A){var o=s(-1,n,r,r,D,C,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var a=t(T,r,n,0,0);return 0<A&&(void 0!==(o=s(-2,a,r,r,D,C,a.length,0,0,0))&&(a=o)),"",N=0,C=D=1,a}var f=/^\0+/g,p=/[\0\r\f]/g,d=/: */g,m=/zoo|gra/,h=/([,: ])(transform)/g,y=/,\r+?/g,b=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,g=/::(place)/g,w=/:(read-only)/g,E=/[svh]\w+-[tblr]{2}/,_=/\(\s*(.*)\s*\)/g,k=/([\s\S]*?);/g,O=/-self|flex-/g,x=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,j=/([^-])(image-set\()/,C=1,D=1,N=0,P=1,T=[],M=[],A=0,L=null,R=0;return u.use=function e(t){switch(t){case void 0:case null:A=M.length=0;break;default:if("function"==typeof t)M[A++]=t;else if("object"===o(t))for(var n=0,r=t.length;n<r;++n)e(t[n]);else R=0|!!t}return e},u.set=c,void 0!==e&&c(e),u},i="/*|*/",l=i+"}";function s(e){e&&c.current.insert(e+"}")}var c={current:null},u=function(e,t,n,r,o,a,u,f,p,d){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return c.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===f)return t+i;break;case 3:switch(f){case 102:case 112:return c.current.insert(n[0]+t),"";default:return t+(0===d?i:"")}case-2:t.split(l).forEach(s)}};t.a=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var o=new a(t);var i,l={};i=e.container||document.head;var s,f=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(f,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){l[e]=!0})),e.parentNode!==i&&i.appendChild(e)})),o.use(e.stylisPlugins)(u),s=function(e,t,n,r){var a=t.name;c.current=n,o(e,t.styles),r&&(p.inserted[a]=!0)};var p={key:n,sheet:new r.a({key:n,container:i,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:l,registered:{},insert:s};return p}},function(e,t,n){"use strict";var r=n(2),o=n(6),a=n(42),i=n(47),l=n(15),s=n(111),c=n(143),u=n(4),f=n(19),p=n(75),d=n(11),m=n(12),h=n(20),y=n(32),b=n(46),v=n(51),g=n(52),w=n(76),E=n(57),_=n(146),k=n(110),O=n(25),x=n(18),S=n(85),j=n(31),C=n(26),D=n(107),N=n(86),P=n(73),T=n(72),M=n(14),A=n(147),L=n(34),R=n(48),F=n(33),z=n(27).forEach,B=N("hidden"),Y="Symbol",I="prototype",H=M("toPrimitive"),U=F.set,W=F.getterFor(Y),V=Object[I],q=o.Symbol,G=a("JSON","stringify"),K=O.f,$=x.f,J=_.f,X=S.f,Q=D("symbols"),Z=D("op-symbols"),ee=D("string-to-symbol-registry"),te=D("symbol-to-string-registry"),ne=D("wks"),re=o.QObject,oe=!re||!re[I]||!re[I].findChild,ae=l&&u((function(){return 7!=g($({},"a",{get:function(){return $(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=K(V,t);r&&delete V[t],$(e,t,n),r&&e!==V&&$(V,t,r)}:$,ie=function(e,t){var n=Q[e]=g(q[I]);return U(n,{type:Y,tag:e,description:t}),l||(n.description=t),n},le=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof q},se=function(e,t,n){e===V&&se(Z,t,n),m(e);var r=b(t,!0);return m(n),f(Q,r)?(n.enumerable?(f(e,B)&&e[B][r]&&(e[B][r]=!1),n=g(n,{enumerable:v(0,!1)})):(f(e,B)||$(e,B,v(1,{})),e[B][r]=!0),ae(e,r,n)):$(e,r,n)},ce=function(e,t){m(e);var n=y(t),r=w(n).concat(de(n));return z(r,(function(t){l&&!ue.call(n,t)||se(e,t,n[t])})),e},ue=function(e){var t=b(e,!0),n=X.call(this,t);return!(this===V&&f(Q,t)&&!f(Z,t))&&(!(n||!f(this,t)||!f(Q,t)||f(this,B)&&this[B][t])||n)},fe=function(e,t){var n=y(e),r=b(t,!0);if(n!==V||!f(Q,r)||f(Z,r)){var o=K(n,r);return!o||!f(Q,r)||f(n,B)&&n[B][r]||(o.enumerable=!0),o}},pe=function(e){var t=J(y(e)),n=[];return z(t,(function(e){f(Q,e)||f(P,e)||n.push(e)})),n},de=function(e){var t=e===V,n=J(t?Z:y(e)),r=[];return z(n,(function(e){!f(Q,e)||t&&!f(V,e)||r.push(Q[e])})),r};(s||(q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=T(e),n=function(e){this===V&&n.call(Z,e),f(this,B)&&f(this[B],t)&&(this[B][t]=!1),ae(this,t,v(1,e))};return l&&oe&&ae(V,t,{configurable:!0,set:n}),ie(t,e)},C(q[I],"toString",(function(){return W(this).tag})),C(q,"withoutSetter",(function(e){return ie(T(e),e)})),S.f=ue,x.f=se,O.f=fe,E.f=_.f=pe,k.f=de,A.f=function(e){return ie(M(e),e)},l&&($(q[I],"description",{configurable:!0,get:function(){return W(this).description}}),i||C(V,"propertyIsEnumerable",ue,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!s,sham:!s},{Symbol:q}),z(w(ne),(function(e){L(e)})),r({target:Y,stat:!0,forced:!s},{for:function(e){var t=String(e);if(f(ee,t))return ee[t];var n=q(t);return ee[t]=n,te[n]=t,n},keyFor:function(e){if(!le(e))throw TypeError(e+" is not a symbol");if(f(te,e))return te[e]},useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),r({target:"Object",stat:!0,forced:!s,sham:!l},{create:function(e,t){return void 0===t?g(e):ce(g(e),t)},defineProperty:se,defineProperties:ce,getOwnPropertyDescriptor:fe}),r({target:"Object",stat:!0,forced:!s},{getOwnPropertyNames:pe,getOwnPropertySymbols:de}),r({target:"Object",stat:!0,forced:u((function(){k.f(1)}))},{getOwnPropertySymbols:function(e){return k.f(h(e))}}),G)&&r({target:"JSON",stat:!0,forced:!s||u((function(){var e=q();return"[null]"!=G([e])||"{}"!=G({a:e})||"{}"!=G(Object(e))}))},{stringify:function(e,t,n){for(var r,o=[e],a=1;arguments.length>a;)o.push(arguments[a++]);if(r=t,(d(t)||void 0!==e)&&!le(e))return p(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!le(t))return t}),o[1]=t,G.apply(null,o)}});q[I][H]||j(q[I],H,q[I].valueOf),R(q,Y),P[B]=!0},function(e,t,n){"use strict";var r=n(2),o=n(15),a=n(6),i=n(19),l=n(11),s=n(18).f,c=n(140),u=a.Symbol;if(o&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var f={},p=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof p?new u(e):void 0===e?u():u(e);return""===e&&(f[t]=!0),t};c(p,u);var d=p.prototype=u.prototype;d.constructor=p;var m=d.toString,h="Symbol(test)"==String(u("test")),y=/^Symbol\((.*)\)[^)]+$/;s(d,"description",{configurable:!0,get:function(){var e=l(this)?this.valueOf():this,t=m.call(e);if(i(f,e))return"";var n=h?t.slice(7,-1):t.replace(y,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:p})}},function(e,t,n){n(34)("asyncIterator")},function(e,t,n){n(34)("hasInstance")},function(e,t,n){n(34)("isConcatSpreadable")},function(e,t,n){n(34)("iterator")},function(e,t,n){n(34)("match")},function(e,t,n){n(34)("replace")},function(e,t,n){n(34)("search")},function(e,t,n){n(34)("species")},function(e,t,n){n(34)("split")},function(e,t,n){n(34)("toPrimitive")},function(e,t,n){n(34)("toStringTag")},function(e,t,n){n(34)("unscopables")},function(e,t,n){"use strict";var r=n(2),o=n(4),a=n(75),i=n(11),l=n(20),s=n(17),c=n(59),u=n(77),f=n(78),p=n(14),d=n(112),m=p("isConcatSpreadable"),h=9007199254740991,y="Maximum allowed index exceeded",b=d>=51||!o((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),v=f("concat"),g=function(e){if(!i(e))return!1;var t=e[m];return void 0!==t?!!t:a(e)};r({target:"Array",proto:!0,forced:!b||!v},{concat:function(e){var t,n,r,o,a,i=l(this),f=u(i,0),p=0;for(t=-1,r=arguments.length;t<r;t++)if(g(a=-1===t?i:arguments[t])){if(p+(o=s(a.length))>h)throw TypeError(y);for(n=0;n<o;n++,p++)n in a&&c(f,p,a[n])}else{if(p>=h)throw TypeError(y);c(f,p++,a)}return f.length=p,f}})},function(e,t,n){var r=n(2),o=n(148),a=n(54);r({target:"Array",proto:!0},{copyWithin:o}),a("copyWithin")},function(e,t,n){var r=n(2),o=n(114),a=n(54);r({target:"Array",proto:!0},{fill:o}),a("fill")},function(e,t,n){"use strict";var r=n(2),o=n(27).filter,a=n(78),i=n(49),l=a("filter"),s=i("filter");r({target:"Array",proto:!0,forced:!l||!s},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(2),o=n(27).find,a=n(54),i=n(49),l="find",s=!0,c=i(l);l in[]&&Array(1)[l]((function(){s=!1})),r({target:"Array",proto:!0,forced:s||!c},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a(l)},function(e,t,n){"use strict";var r=n(2),o=n(27).findIndex,a=n(54),i=n(49),l="findIndex",s=!0,c=i(l);l in[]&&Array(1)[l]((function(){s=!1})),r({target:"Array",proto:!0,forced:s||!c},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a(l)},function(e,t,n){"use strict";var r=n(2),o=n(149),a=n(20),i=n(17),l=n(37),s=n(77);r({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=a(this),n=i(t.length),r=s(t,0);return r.length=o(r,t,t,n,0,void 0===e?1:l(e)),r}})},function(e,t,n){"use strict";var r=n(2),o=n(149),a=n(20),i=n(17),l=n(38),s=n(77);r({target:"Array",proto:!0},{flatMap:function(e){var t,n=a(this),r=i(n.length);return l(e),(t=s(n,0)).length=o(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},function(e,t,n){var r=n(2),o=n(150);r({target:"Array",stat:!0,forced:!n(88)((function(e){Array.from(e)}))},{from:o})},function(e,t,n){"use strict";var r=n(2),o=n(87).includes,a=n(54);r({target:"Array",proto:!0,forced:!n(49)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},function(e,t,n){"use strict";var r=n(2),o=n(71),a=n(32),i=n(90),l=[].join,s=o!=Object,c=i("join",",");r({target:"Array",proto:!0,forced:s||!c},{join:function(e){return l.call(a(this),void 0===e?",":e)}})},function(e,t,n){"use strict";var r=n(2),o=n(27).map,a=n(78),i=n(49),l=a("map"),s=i("map");r({target:"Array",proto:!0,forced:!l||!s},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(2),o=n(4),a=n(59);r({target:"Array",stat:!0,forced:o((function(){function e(){}return!(Array.of.call(e)instanceof e)}))},{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)a(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){"use strict";var r=n(2),o=n(11),a=n(75),i=n(58),l=n(17),s=n(32),c=n(59),u=n(14),f=n(78),p=n(49),d=f("slice"),m=p("slice",{ACCESSORS:!0,0:0,1:2}),h=u("species"),y=[].slice,b=Math.max;r({target:"Array",proto:!0,forced:!d||!m},{slice:function(e,t){var n,r,u,f=s(this),p=l(f.length),d=i(e,p),m=i(void 0===t?p:t,p);if(a(f)&&("function"!=typeof(n=f.constructor)||n!==Array&&!a(n.prototype)?o(n)&&null===(n=n[h])&&(n=void 0):n=void 0,n===Array||void 0===n))return y.call(f,d,m);for(r=new(void 0===n?Array:n)(b(m-d,0)),u=0;d<m;d++,u++)d in f&&c(r,u,f[d]);return r.length=u,r}})},function(e,t,n){"use strict";var r=n(2),o=n(38),a=n(20),i=n(4),l=n(90),s=[],c=s.sort,u=i((function(){s.sort(void 0)})),f=i((function(){s.sort(null)})),p=l("sort");r({target:"Array",proto:!0,forced:u||!f||!p},{sort:function(e){return void 0===e?c.call(a(this)):c.call(a(this),o(e))}})},function(e,t,n){n(64)("Array")},function(e,t,n){"use strict";var r=n(2),o=n(58),a=n(37),i=n(17),l=n(20),s=n(77),c=n(59),u=n(78),f=n(49),p=u("splice"),d=f("splice",{ACCESSORS:!0,0:0,1:2}),m=Math.max,h=Math.min,y=9007199254740991,b="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!p||!d},{splice:function(e,t){var n,r,u,f,p,d,v=l(this),g=i(v.length),w=o(e,g),E=arguments.length;if(0===E?n=r=0:1===E?(n=0,r=g-w):(n=E-2,r=h(m(a(t),0),g-w)),g+n-r>y)throw TypeError(b);for(u=s(v,r),f=0;f<r;f++)(p=w+f)in v&&c(u,f,v[p]);if(u.length=r,n<r){for(f=w;f<g-r;f++)d=f+n,(p=f+r)in v?v[d]=v[p]:delete v[d];for(f=g;f>g-r+n;f--)delete v[f-1]}else if(n>r)for(f=g-r;f>w;f--)d=f+n-1,(p=f+r-1)in v?v[d]=v[p]:delete v[d];for(f=0;f<n;f++)v[f+w]=arguments[f+2];return v.length=g-r+n,u}})},function(e,t,n){n(54)("flat")},function(e,t,n){n(54)("flatMap")},function(e,t,n){"use strict";var r=n(2),o=n(6),a=n(155),i=n(64),l="ArrayBuffer",s=a[l];r({global:!0,forced:o[l]!==s},{ArrayBuffer:s}),i(l)},function(e,t){var n=1/0,r=Math.abs,o=Math.pow,a=Math.floor,i=Math.log,l=Math.LN2;e.exports={pack:function(e,t,s){var c,u,f,p=new Array(s),d=8*s-t-1,m=(1<<d)-1,h=m>>1,y=23===t?o(2,-24)-o(2,-77):0,b=e<0||0===e&&1/e<0?1:0,v=0;for((e=r(e))!=e||e===n?(u=e!=e?1:0,c=m):(c=a(i(e)/l),e*(f=o(2,-c))<1&&(c--,f*=2),(e+=c+h>=1?y/f:y*o(2,1-h))*f>=2&&(c++,f/=2),c+h>=m?(u=0,c=m):c+h>=1?(u=(e*f-1)*o(2,t),c+=h):(u=e*o(2,h-1)*o(2,t),c=0));t>=8;p[v++]=255&u,u/=256,t-=8);for(c=c<<t|u,d+=t;d>0;p[v++]=255&c,c/=256,d-=8);return p[--v]|=128*b,p},unpack:function(e,t){var r,a=e.length,i=8*a-t-1,l=(1<<i)-1,s=l>>1,c=i-7,u=a-1,f=e[u--],p=127&f;for(f>>=7;c>0;p=256*p+e[u],u--,c-=8);for(r=p&(1<<-c)-1,p>>=-c,c+=t;c>0;r=256*r+e[u],u--,c-=8);if(0===p)p=1-s;else{if(p===l)return r?NaN:f?-1/0:n;r+=o(2,t),p-=s}return(f?-1:1)*r*o(2,p-t)}}},function(e,t,n){var r=n(31),o=n(234),a=n(14)("toPrimitive"),i=Date.prototype;a in i||r(i,a,o)},function(e,t,n){"use strict";var r=n(12),o=n(46);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return o(r(this),"number"!==e)}},function(e,t,n){"use strict";var r=n(11),o=n(18),a=n(43),i=n(14)("hasInstance"),l=Function.prototype;i in l||o.f(l,i,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;for(;e=a(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,n){var r=n(15),o=n(18).f,a=Function.prototype,i=a.toString,l=/^\s*function ([^ (]*)/,s="name";r&&!(s in a)&&o(a,s,{configurable:!0,get:function(){try{return i.call(this).match(l)[1]}catch(e){return""}}})},function(e,t,n){var r=n(6);n(48)(r.JSON,"JSON",!0)},function(e,t,n){"use strict";var r=n(91),o=n(158);e.exports=r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},function(e,t,n){var r=n(2),o=n(159),a=Math.acosh,i=Math.log,l=Math.sqrt,s=Math.LN2;r({target:"Math",stat:!0,forced:!a||710!=Math.floor(a(Number.MAX_VALUE))||a(1/0)!=1/0},{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?i(e)+s:o(e-1+l(e-1)*l(e+1))}})},function(e,t,n){var r=n(2),o=Math.asinh,a=Math.log,i=Math.sqrt;r({target:"Math",stat:!0,forced:!(o&&1/o(0)>0)},{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):a(t+i(t*t+1)):t}})},function(e,t,n){var r=n(2),o=Math.atanh,a=Math.log;r({target:"Math",stat:!0,forced:!(o&&1/o(-0)<0)},{atanh:function(e){return 0==(e=+e)?e:a((1+e)/(1-e))/2}})},function(e,t,n){var r=n(2),o=n(119),a=Math.abs,i=Math.pow;r({target:"Math",stat:!0},{cbrt:function(e){return o(e=+e)*i(a(e),1/3)}})},function(e,t,n){var r=n(2),o=Math.floor,a=Math.log,i=Math.LOG2E;r({target:"Math",stat:!0},{clz32:function(e){return(e>>>=0)?31-o(a(e+.5)*i):32}})},function(e,t,n){var r=n(2),o=n(93),a=Math.cosh,i=Math.abs,l=Math.E;r({target:"Math",stat:!0,forced:!a||a(710)===1/0},{cosh:function(e){var t=o(i(e)-1)+1;return(t+1/(t*l*l))*(l/2)}})},function(e,t,n){var r=n(2),o=n(93);r({target:"Math",stat:!0,forced:o!=Math.expm1},{expm1:o})},function(e,t,n){n(2)({target:"Math",stat:!0},{fround:n(247)})},function(e,t,n){var r=n(119),o=Math.abs,a=Math.pow,i=a(2,-52),l=a(2,-23),s=a(2,127)*(2-l),c=a(2,-126);e.exports=Math.fround||function(e){var t,n,a=o(e),u=r(e);return a<c?u*(a/c/l+1/i-1/i)*c*l:(n=(t=(1+l/i)*a)-(t-a))>s||n!=n?u*(1/0):u*n}},function(e,t,n){var r=n(2),o=Math.hypot,a=Math.abs,i=Math.sqrt;r({target:"Math",stat:!0,forced:!!o&&o(1/0,NaN)!==1/0},{hypot:function(e,t){for(var n,r,o=0,l=0,s=arguments.length,c=0;l<s;)c<(n=a(arguments[l++]))?(o=o*(r=c/n)*r+1,c=n):o+=n>0?(r=n/c)*r:n;return c===1/0?1/0:c*i(o)}})},function(e,t,n){var r=n(2),o=n(4),a=Math.imul;r({target:"Math",stat:!0,forced:o((function(){return-5!=a(4294967295,5)||2!=a.length}))},{imul:function(e,t){var n=65535,r=+e,o=+t,a=n&r,i=n&o;return 0|a*i+((n&r>>>16)*i+a*(n&o>>>16)<<16>>>0)}})},function(e,t,n){var r=n(2),o=Math.log,a=Math.LOG10E;r({target:"Math",stat:!0},{log10:function(e){return o(e)*a}})},function(e,t,n){n(2)({target:"Math",stat:!0},{log1p:n(159)})},function(e,t,n){var r=n(2),o=Math.log,a=Math.LN2;r({target:"Math",stat:!0},{log2:function(e){return o(e)/a}})},function(e,t,n){n(2)({target:"Math",stat:!0},{sign:n(119)})},function(e,t,n){var r=n(2),o=n(4),a=n(93),i=Math.abs,l=Math.exp,s=Math.E;r({target:"Math",stat:!0,forced:o((function(){return-2e-17!=Math.sinh(-2e-17)}))},{sinh:function(e){return i(e=+e)<1?(a(e)-a(-e))/2:(l(e-1)-l(-e-1))*(s/2)}})},function(e,t,n){var r=n(2),o=n(93),a=Math.exp;r({target:"Math",stat:!0},{tanh:function(e){var t=o(e=+e),n=o(-e);return t==1/0?1:n==1/0?-1:(t-n)/(a(e)+a(-e))}})},function(e,t,n){n(48)(Math,"Math",!0)},function(e,t,n){var r=n(2),o=Math.ceil,a=Math.floor;r({target:"Math",stat:!0},{trunc:function(e){return(e>0?a:o)(e)}})},function(e,t,n){"use strict";var r=n(15),o=n(6),a=n(74),i=n(26),l=n(19),s=n(41),c=n(92),u=n(46),f=n(4),p=n(52),d=n(57).f,m=n(25).f,h=n(18).f,y=n(66).trim,b="Number",v=o[b],g=v.prototype,w=s(p(g))==b,E=function(e){var t,n,r,o,a,i,l,s,c=u(e,!1);if("string"==typeof c&&c.length>2)if(43===(t=(c=y(c)).charCodeAt(0))||45===t){if(88===(n=c.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+c}for(i=(a=c.slice(2)).length,l=0;l<i;l++)if((s=a.charCodeAt(l))<48||s>o)return NaN;return parseInt(a,r)}return+c};if(a(b,!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var _,k=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof k&&(w?f((function(){g.valueOf.call(n)})):s(n)!=b)?c(new v(E(t)),n,k):E(t)},O=r?d(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;O.length>x;x++)l(v,_=O[x])&&!l(k,_)&&h(k,_,m(v,_));k.prototype=g,g.constructor=k,i(o,b,k)}},function(e,t,n){n(2)({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},function(e,t,n){n(2)({target:"Number",stat:!0},{isFinite:n(261)})},function(e,t,n){var r=n(6).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&r(e)}},function(e,t,n){n(2)({target:"Number",stat:!0},{isInteger:n(160)})},function(e,t,n){n(2)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},function(e,t,n){var r=n(2),o=n(160),a=Math.abs;r({target:"Number",stat:!0},{isSafeInteger:function(e){return o(e)&&a(e)<=9007199254740991}})},function(e,t,n){n(2)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){n(2)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){var r=n(2),o=n(268);r({target:"Number",stat:!0,forced:Number.parseFloat!=o},{parseFloat:o})},function(e,t,n){var r=n(6),o=n(66).trim,a=n(94),i=r.parseFloat,l=1/i(a+"-0")!=-1/0;e.exports=l?function(e){var t=o(String(e)),n=i(t);return 0===n&&"-"==t.charAt(0)?-0:n}:i},function(e,t,n){var r=n(2),o=n(270);r({target:"Number",stat:!0,forced:Number.parseInt!=o},{parseInt:o})},function(e,t,n){var r=n(6),o=n(66).trim,a=n(94),i=r.parseInt,l=/^[+-]?0[Xx]/,s=8!==i(a+"08")||22!==i(a+"0x16");e.exports=s?function(e,t){var n=o(String(e));return i(n,t>>>0||(l.test(n)?16:10))}:i},function(e,t,n){"use strict";var r=n(2),o=n(37),a=n(272),i=n(120),l=n(4),s=1..toFixed,c=Math.floor,u=function(e,t,n){return 0===t?n:t%2==1?u(e,t-1,n*e):u(e*e,t/2,n)};r({target:"Number",proto:!0,forced:s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!l((function(){s.call({})}))},{toFixed:function(e){var t,n,r,l,s=a(this),f=o(e),p=[0,0,0,0,0,0],d="",m="0",h=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*p[n],p[n]=r%1e7,r=c(r/1e7)},y=function(e){for(var t=6,n=0;--t>=0;)n+=p[t],p[t]=c(n/e),n=n%e*1e7},b=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==p[e]){var n=String(p[e]);t=""===t?n:t+i.call("0",7-n.length)+n}return t};if(f<0||f>20)throw RangeError("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return String(s);if(s<0&&(d="-",s=-s),s>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(s*u(2,69,1))-69)<0?s*u(2,-t,1):s/u(2,t,1),n*=4503599627370496,(t=52-t)>0){for(h(0,n),r=f;r>=7;)h(1e7,0),r-=7;for(h(u(10,r,1),0),r=t-1;r>=23;)y(1<<23),r-=23;y(1<<r),h(1,1),y(2),m=b()}else h(0,n),h(1<<-t,0),m=b()+i.call("0",f);return m=f>0?d+((l=m.length)<=f?"0."+i.call("0",f-l)+m:m.slice(0,l-f)+"."+m.slice(l-f)):d+m}})},function(e,t,n){var r=n(41);e.exports=function(e){if("number"!=typeof e&&"Number"!=r(e))throw TypeError("Incorrect invocation");return+e}},function(e,t,n){var r=n(2),o=n(161);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(e,t,n){"use strict";var r=n(2),o=n(15),a=n(95),i=n(20),l=n(38),s=n(18);o&&r({target:"Object",proto:!0,forced:a},{__defineGetter__:function(e,t){s.f(i(this),e,{get:l(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var r=n(2),o=n(15),a=n(95),i=n(20),l=n(38),s=n(18);o&&r({target:"Object",proto:!0,forced:a},{__defineSetter__:function(e,t){s.f(i(this),e,{set:l(t),enumerable:!0,configurable:!0})}})},function(e,t,n){var r=n(2),o=n(162).entries;r({target:"Object",stat:!0},{entries:function(e){return o(e)}})},function(e,t,n){var r=n(2),o=n(82),a=n(4),i=n(11),l=n(60).onFreeze,s=Object.freeze;r({target:"Object",stat:!0,forced:a((function(){s(1)})),sham:!o},{freeze:function(e){return s&&i(e)?s(l(e)):e}})},function(e,t,n){var r=n(2),o=n(83),a=n(59);r({target:"Object",stat:!0},{fromEntries:function(e){var t={};return o(e,(function(e,n){a(t,e,n)}),void 0,!0),t}})},function(e,t,n){var r=n(2),o=n(4),a=n(32),i=n(25).f,l=n(15),s=o((function(){i(1)}));r({target:"Object",stat:!0,forced:!l||s,sham:!l},{getOwnPropertyDescriptor:function(e,t){return i(a(e),t)}})},function(e,t,n){var r=n(2),o=n(15),a=n(108),i=n(32),l=n(25),s=n(59);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,n,r=i(e),o=l.f,c=a(r),u={},f=0;c.length>f;)void 0!==(n=o(r,t=c[f++]))&&s(u,t,n);return u}})},function(e,t,n){var r=n(2),o=n(4),a=n(146).f;r({target:"Object",stat:!0,forced:o((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:a})},function(e,t,n){var r=n(2),o=n(4),a=n(20),i=n(43),l=n(118);r({target:"Object",stat:!0,forced:o((function(){i(1)})),sham:!l},{getPrototypeOf:function(e){return i(a(e))}})},function(e,t,n){n(2)({target:"Object",stat:!0},{is:n(163)})},function(e,t,n){var r=n(2),o=n(4),a=n(11),i=Object.isExtensible;r({target:"Object",stat:!0,forced:o((function(){i(1)}))},{isExtensible:function(e){return!!a(e)&&(!i||i(e))}})},function(e,t,n){var r=n(2),o=n(4),a=n(11),i=Object.isFrozen;r({target:"Object",stat:!0,forced:o((function(){i(1)}))},{isFrozen:function(e){return!a(e)||!!i&&i(e)}})},function(e,t,n){var r=n(2),o=n(4),a=n(11),i=Object.isSealed;r({target:"Object",stat:!0,forced:o((function(){i(1)}))},{isSealed:function(e){return!a(e)||!!i&&i(e)}})},function(e,t,n){var r=n(2),o=n(20),a=n(76);r({target:"Object",stat:!0,forced:n(4)((function(){a(1)}))},{keys:function(e){return a(o(e))}})},function(e,t,n){"use strict";var r=n(2),o=n(15),a=n(95),i=n(20),l=n(46),s=n(43),c=n(25).f;o&&r({target:"Object",proto:!0,forced:a},{__lookupGetter__:function(e){var t,n=i(this),r=l(e,!0);do{if(t=c(n,r))return t.get}while(n=s(n))}})},function(e,t,n){"use strict";var r=n(2),o=n(15),a=n(95),i=n(20),l=n(46),s=n(43),c=n(25).f;o&&r({target:"Object",proto:!0,forced:a},{__lookupSetter__:function(e){var t,n=i(this),r=l(e,!0);do{if(t=c(n,r))return t.set}while(n=s(n))}})},function(e,t,n){var r=n(2),o=n(11),a=n(60).onFreeze,i=n(82),l=n(4),s=Object.preventExtensions;r({target:"Object",stat:!0,forced:l((function(){s(1)})),sham:!i},{preventExtensions:function(e){return s&&o(e)?s(a(e)):e}})},function(e,t,n){var r=n(2),o=n(11),a=n(60).onFreeze,i=n(82),l=n(4),s=Object.seal;r({target:"Object",stat:!0,forced:l((function(){s(1)})),sham:!i},{seal:function(e){return s&&o(e)?s(a(e)):e}})},function(e,t,n){var r=n(116),o=n(26),a=n(293);r||o(Object.prototype,"toString",a,{unsafe:!0})},function(e,t,n){"use strict";var r=n(116),o=n(81);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(e,t,n){var r=n(2),o=n(162).values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},function(e,t,n){"use strict";var r,o,a,i,l=n(2),s=n(47),c=n(6),u=n(42),f=n(164),p=n(26),d=n(65),m=n(48),h=n(64),y=n(11),b=n(38),v=n(55),g=n(41),w=n(106),E=n(83),_=n(88),k=n(61),O=n(121).set,x=n(166),S=n(167),j=n(296),C=n(168),D=n(297),N=n(33),P=n(74),T=n(14),M=n(112),A=T("species"),L="Promise",R=N.get,F=N.set,z=N.getterFor(L),B=f,Y=c.TypeError,I=c.document,H=c.process,U=u("fetch"),W=C.f,V=W,q="process"==g(H),G=!!(I&&I.createEvent&&c.dispatchEvent),K="unhandledrejection",$=P(L,(function(){if(!(w(B)!==String(B))){if(66===M)return!0;if(!q&&"function"!=typeof PromiseRejectionEvent)return!0}if(s&&!B.prototype.finally)return!0;if(M>=51&&/native code/.test(B))return!1;var e=B.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[A]=t,!(e.then((function(){}))instanceof t)})),J=$||!_((function(e){B.all(e).catch((function(){}))})),X=function(e){var t;return!(!y(e)||"function"!=typeof(t=e.then))&&t},Q=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;x((function(){for(var o=t.value,a=1==t.state,i=0;r.length>i;){var l,s,c,u=r[i++],f=a?u.ok:u.fail,p=u.resolve,d=u.reject,m=u.domain;try{f?(a||(2===t.rejection&&ne(e,t),t.rejection=1),!0===f?l=o:(m&&m.enter(),l=f(o),m&&(m.exit(),c=!0)),l===u.promise?d(Y("Promise-chain cycle")):(s=X(l))?s.call(l,p,d):p(l)):d(o)}catch(e){m&&!c&&m.exit(),d(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&ee(e,t)}))}},Z=function(e,t,n){var r,o;G?((r=I.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},(o=c["on"+e])?o(r):e===K&&j("Unhandled promise rejection",n)},ee=function(e,t){O.call(c,(function(){var n,r=t.value;if(te(t)&&(n=D((function(){q?H.emit("unhandledRejection",r,e):Z(K,e,r)})),t.rejection=q||te(t)?2:1,n.error))throw n.value}))},te=function(e){return 1!==e.rejection&&!e.parent},ne=function(e,t){O.call(c,(function(){q?H.emit("rejectionHandled",e):Z("rejectionhandled",e,t.value)}))},re=function(e,t,n,r){return function(o){e(t,n,o,r)}},oe=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,Q(e,t,!0))},ae=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw Y("Promise can't be resolved itself");var o=X(n);o?x((function(){var r={done:!1};try{o.call(n,re(ae,e,r,t),re(oe,e,r,t))}catch(n){oe(e,r,n,t)}})):(t.value=n,t.state=1,Q(e,t,!1))}catch(n){oe(e,{done:!1},n,t)}}};$&&(B=function(e){v(this,B,L),b(e),r.call(this);var t=R(this);try{e(re(ae,this,t),re(oe,this,t))}catch(e){oe(this,t,e)}},(r=function(e){F(this,{type:L,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=d(B.prototype,{then:function(e,t){var n=z(this),r=W(k(this,B));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=q?H.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Q(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r,t=R(e);this.promise=e,this.resolve=re(ae,e,t),this.reject=re(oe,e,t)},C.f=W=function(e){return e===B||e===a?new o(e):V(e)},s||"function"!=typeof f||(i=f.prototype.then,p(f.prototype,"then",(function(e,t){var n=this;return new B((function(e,t){i.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof U&&l({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return S(B,U.apply(c,arguments))}}))),l({global:!0,wrap:!0,forced:$},{Promise:B}),m(B,L,!1,!0),h(L),a=u(L),l({target:L,stat:!0,forced:$},{reject:function(e){var t=W(this);return t.reject.call(void 0,e),t.promise}}),l({target:L,stat:!0,forced:s||$},{resolve:function(e){return S(s&&this===a?B:this,e)}}),l({target:L,stat:!0,forced:J},{all:function(e){var t=this,n=W(t),r=n.resolve,o=n.reject,a=D((function(){var n=b(t.resolve),a=[],i=0,l=1;E(e,(function(e){var s=i++,c=!1;a.push(void 0),l++,n.call(t,e).then((function(e){c||(c=!0,a[s]=e,--l||r(a))}),o)})),--l||r(a)}));return a.error&&o(a.value),n.promise},race:function(e){var t=this,n=W(t),r=n.reject,o=D((function(){var o=b(t.resolve);E(e,(function(e){o.call(t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},function(e,t,n){var r=n(6);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},function(e,t,n){"use strict";var r=n(2),o=n(47),a=n(164),i=n(4),l=n(42),s=n(61),c=n(167),u=n(26);r({target:"Promise",proto:!0,real:!0,forced:!!a&&i((function(){a.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=s(this,l("Promise")),n="function"==typeof e;return this.then(n?function(n){return c(t,e()).then((function(){return n}))}:e,n?function(n){return c(t,e()).then((function(){throw n}))}:e)}}),o||"function"!=typeof a||a.prototype.finally||u(a.prototype,"finally",l("Promise").prototype.finally)},function(e,t,n){var r=n(2),o=n(42),a=n(38),i=n(12),l=n(4),s=o("Reflect","apply"),c=Function.apply;r({target:"Reflect",stat:!0,forced:!l((function(){s((function(){}))}))},{apply:function(e,t,n){return a(e),i(n),s?s(e,t,n):c.call(e,t,n)}})},function(e,t,n){var r=n(2),o=n(42),a=n(38),i=n(12),l=n(11),s=n(52),c=n(301),u=n(4),f=o("Reflect","construct"),p=u((function(){function e(){}return!(f((function(){}),[],e)instanceof e)})),d=!u((function(){f((function(){}))})),m=p||d;r({target:"Reflect",stat:!0,forced:m,sham:m},{construct:function(e,t){a(e),i(t);var n=arguments.length<3?e:a(arguments[2]);if(d&&!p)return f(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(c.apply(e,r))}var o=n.prototype,u=s(l(o)?o:Object.prototype),m=Function.apply.call(e,u,t);return l(m)?m:u}})},function(e,t,n){"use strict";var r=n(38),o=n(11),a=[].slice,i={},l=function(e,t,n){if(!(t in i)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";i[t]=Function("C,a","return new C("+r.join(",")+")")}return i[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=a.call(arguments,1),i=function(){var r=n.concat(a.call(arguments));return this instanceof i?l(t,r.length,r):t.apply(e,r)};return o(t.prototype)&&(i.prototype=t.prototype),i}},function(e,t,n){var r=n(2),o=n(15),a=n(12),i=n(46),l=n(18);r({target:"Reflect",stat:!0,forced:n(4)((function(){Reflect.defineProperty(l.f({},1,{value:1}),1,{value:2})})),sham:!o},{defineProperty:function(e,t,n){a(e);var r=i(t,!0);a(n);try{return l.f(e,r,n),!0}catch(e){return!1}}})},function(e,t,n){var r=n(2),o=n(12),a=n(25).f;r({target:"Reflect",stat:!0},{deleteProperty:function(e,t){var n=a(o(e),t);return!(n&&!n.configurable)&&delete e[t]}})},function(e,t,n){var r=n(2),o=n(11),a=n(12),i=n(19),l=n(25),s=n(43);r({target:"Reflect",stat:!0},{get:function e(t,n){var r,c,u=arguments.length<3?t:arguments[2];return a(t)===u?t[n]:(r=l.f(t,n))?i(r,"value")?r.value:void 0===r.get?void 0:r.get.call(u):o(c=s(t))?e(c,n,u):void 0}})},function(e,t,n){var r=n(2),o=n(15),a=n(12),i=n(25);r({target:"Reflect",stat:!0,sham:!o},{getOwnPropertyDescriptor:function(e,t){return i.f(a(e),t)}})},function(e,t,n){var r=n(2),o=n(12),a=n(43);r({target:"Reflect",stat:!0,sham:!n(118)},{getPrototypeOf:function(e){return a(o(e))}})},function(e,t,n){n(2)({target:"Reflect",stat:!0},{has:function(e,t){return t in e}})},function(e,t,n){var r=n(2),o=n(12),a=Object.isExtensible;r({target:"Reflect",stat:!0},{isExtensible:function(e){return o(e),!a||a(e)}})},function(e,t,n){n(2)({target:"Reflect",stat:!0},{ownKeys:n(108)})},function(e,t,n){var r=n(2),o=n(42),a=n(12);r({target:"Reflect",stat:!0,sham:!n(82)},{preventExtensions:function(e){a(e);try{var t=o("Object","preventExtensions");return t&&t(e),!0}catch(e){return!1}}})},function(e,t,n){var r=n(2),o=n(12),a=n(11),i=n(19),l=n(4),s=n(18),c=n(25),u=n(43),f=n(51);r({target:"Reflect",stat:!0,forced:l((function(){var e=s.f({},"a",{configurable:!0});return!1!==Reflect.set(u(e),"a",1,e)}))},{set:function e(t,n,r){var l,p,d=arguments.length<4?t:arguments[3],m=c.f(o(t),n);if(!m){if(a(p=u(t)))return e(p,n,r,d);m=f(0)}if(i(m,"value")){if(!1===m.writable||!a(d))return!1;if(l=c.f(d,n)){if(l.get||l.set||!1===l.writable)return!1;l.value=r,s.f(d,n,l)}else s.f(d,n,f(0,r));return!0}return void 0!==m.set&&(m.set.call(d,r),!0)}})},function(e,t,n){var r=n(2),o=n(12),a=n(154),i=n(63);i&&r({target:"Reflect",stat:!0},{setPrototypeOf:function(e,t){o(e),a(t);try{return i(e,t),!0}catch(e){return!1}}})},function(e,t,n){var r=n(15),o=n(6),a=n(74),i=n(92),l=n(18).f,s=n(57).f,c=n(122),u=n(96),f=n(123),p=n(26),d=n(4),m=n(33).set,h=n(64),y=n(14)("match"),b=o.RegExp,v=b.prototype,g=/a/g,w=/a/g,E=new b(g)!==g,_=f.UNSUPPORTED_Y;if(r&&a("RegExp",!E||_||d((function(){return w[y]=!1,b(g)!=g||b(w)==w||"/a/i"!=b(g,"i")})))){for(var k=function(e,t){var n,r=this instanceof k,o=c(e),a=void 0===t;if(!r&&o&&e.constructor===k&&a)return e;E?o&&!a&&(e=e.source):e instanceof k&&(a&&(t=u.call(e)),e=e.source),_&&(n=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var l=i(E?new b(e,t):b(e,t),r?this:v,k);return _&&n&&m(l,{sticky:n}),l},O=function(e){e in k||l(k,e,{configurable:!0,get:function(){return b[e]},set:function(t){b[e]=t}})},x=s(b),S=0;x.length>S;)O(x[S++]);v.constructor=k,k.prototype=v,p(o,"RegExp",k)}h("RegExp")},function(e,t,n){var r=n(15),o=n(18),a=n(96),i=n(123).UNSUPPORTED_Y;r&&("g"!=/./g.flags||i)&&o.f(RegExp.prototype,"flags",{configurable:!0,get:a})},function(e,t,n){"use strict";var r=n(26),o=n(12),a=n(4),i=n(96),l="toString",s=RegExp.prototype,c=s[l],u=a((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),f=c.name!=l;(u||f)&&r(RegExp.prototype,l,(function(){var e=o(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in s)?i.call(e):n)}),{unsafe:!0})},function(e,t,n){"use strict";var r=n(91),o=n(158);e.exports=r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},function(e,t,n){"use strict";var r=n(2),o=n(98).codeAt;r({target:"String",proto:!0},{codePointAt:function(e){return o(this,e)}})},function(e,t,n){"use strict";var r,o=n(2),a=n(25).f,i=n(17),l=n(124),s=n(30),c=n(125),u=n(47),f="".endsWith,p=Math.min,d=c("endsWith");o({target:"String",proto:!0,forced:!!(u||d||(r=a(String.prototype,"endsWith"),!r||r.writable))&&!d},{endsWith:function(e){var t=String(s(this));l(e);var n=arguments.length>1?arguments[1]:void 0,r=i(t.length),o=void 0===n?r:p(i(n),r),a=String(e);return f?f.call(t,a,o):t.slice(o-a.length,o)===a}})},function(e,t,n){var r=n(2),o=n(58),a=String.fromCharCode,i=String.fromCodePoint;r({target:"String",stat:!0,forced:!!i&&1!=i.length},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,i=0;r>i;){if(t=+arguments[i++],o(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?a(t):a(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){"use strict";var r=n(2),o=n(124),a=n(30);r({target:"String",proto:!0,forced:!n(125)("includes")},{includes:function(e){return!!~String(a(this)).indexOf(o(e),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(99),o=n(12),a=n(17),i=n(30),l=n(126),s=n(100);r("match",1,(function(e,t,n){return[function(t){var n=i(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var i=o(e),c=String(this);if(!i.global)return s(i,c);var u=i.unicode;i.lastIndex=0;for(var f,p=[],d=0;null!==(f=s(i,c));){var m=String(f[0]);p[d]=m,""===m&&(i.lastIndex=l(c,a(i.lastIndex),u)),d++}return 0===d?null:p}]}))},function(e,t,n){"use strict";var r=n(2),o=n(171).end;r({target:"String",proto:!0,forced:n(172)},{padEnd:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(2),o=n(171).start;r({target:"String",proto:!0,forced:n(172)},{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(2),o=n(32),a=n(17);r({target:"String",stat:!0},{raw:function(e){for(var t=o(e.raw),n=a(t.length),r=arguments.length,i=[],l=0;n>l;)i.push(String(t[l++])),l<r&&i.push(String(arguments[l]));return i.join("")}})},function(e,t,n){n(2)({target:"String",proto:!0},{repeat:n(120)})},function(e,t,n){"use strict";var r=n(99),o=n(12),a=n(20),i=n(17),l=n(37),s=n(30),c=n(126),u=n(100),f=Math.max,p=Math.min,d=Math.floor,m=/\$([$&'`]|\d\d?|<[^>]*>)/g,h=/\$([$&'`]|\d\d?)/g;r("replace",2,(function(e,t,n,r){var y=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,b=r.REPLACE_KEEPS_$0,v=y?"$":"$0";return[function(n,r){var o=s(this),a=null==n?void 0:n[e];return void 0!==a?a.call(n,o,r):t.call(String(o),n,r)},function(e,r){if(!y&&b||"string"==typeof r&&-1===r.indexOf(v)){var a=n(t,e,this,r);if(a.done)return a.value}var s=o(e),d=String(this),m="function"==typeof r;m||(r=String(r));var h=s.global;if(h){var w=s.unicode;s.lastIndex=0}for(var E=[];;){var _=u(s,d);if(null===_)break;if(E.push(_),!h)break;""===String(_[0])&&(s.lastIndex=c(d,i(s.lastIndex),w))}for(var k,O="",x=0,S=0;S<E.length;S++){_=E[S];for(var j=String(_[0]),C=f(p(l(_.index),d.length),0),D=[],N=1;N<_.length;N++)D.push(void 0===(k=_[N])?k:String(k));var P=_.groups;if(m){var T=[j].concat(D,C,d);void 0!==P&&T.push(P);var M=String(r.apply(void 0,T))}else M=g(j,d,C,D,P,r);C>=x&&(O+=d.slice(x,C)+M,x=C+j.length)}return O+d.slice(x)}];function g(e,n,r,o,i,l){var s=r+e.length,c=o.length,u=h;return void 0!==i&&(i=a(i),u=m),t.call(l,u,(function(t,a){var l;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(s);case"<":l=i[a.slice(1,-1)];break;default:var u=+a;if(0===u)return t;if(u>c){var f=d(u/10);return 0===f?t:f<=c?void 0===o[f-1]?a.charAt(1):o[f-1]+a.charAt(1):t}l=o[u-1]}return void 0===l?"":l}))}}))},function(e,t,n){"use strict";var r=n(99),o=n(12),a=n(30),i=n(163),l=n(100);r("search",1,(function(e,t,n){return[function(t){var n=a(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var a=o(e),s=String(this),c=a.lastIndex;i(c,0)||(a.lastIndex=0);var u=l(a,s);return i(a.lastIndex,c)||(a.lastIndex=c),null===u?-1:u.index}]}))},function(e,t,n){"use strict";var r=n(99),o=n(122),a=n(12),i=n(30),l=n(61),s=n(126),c=n(17),u=n(100),f=n(97),p=n(4),d=[].push,m=Math.min,h=4294967295,y=!p((function(){return!RegExp(h,"y")}));r("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(i(this)),a=void 0===n?h:n>>>0;if(0===a)return[];if(void 0===e)return[r];if(!o(e))return t.call(r,e,a);for(var l,s,c,u=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,y=new RegExp(e.source,p+"g");(l=f.call(y,r))&&!((s=y.lastIndex)>m&&(u.push(r.slice(m,l.index)),l.length>1&&l.index<r.length&&d.apply(u,l.slice(1)),c=l[0].length,m=s,u.length>=a));)y.lastIndex===l.index&&y.lastIndex++;return m===r.length?!c&&y.test("")||u.push(""):u.push(r.slice(m)),u.length>a?u.slice(0,a):u}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=i(this),a=null==t?void 0:t[e];return void 0!==a?a.call(t,o,n):r.call(String(o),t,n)},function(e,o){var i=n(r,e,this,o,r!==t);if(i.done)return i.value;var f=a(e),p=String(this),d=l(f,RegExp),b=f.unicode,v=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(y?"y":"g"),g=new d(y?f:"^(?:"+f.source+")",v),w=void 0===o?h:o>>>0;if(0===w)return[];if(0===p.length)return null===u(g,p)?[p]:[];for(var E=0,_=0,k=[];_<p.length;){g.lastIndex=y?_:0;var O,x=u(g,y?p:p.slice(_));if(null===x||(O=m(c(g.lastIndex+(y?0:_)),p.length))===E)_=s(p,_,b);else{if(k.push(p.slice(E,_)),k.length===w)return k;for(var S=1;S<=x.length-1;S++)if(k.push(x[S]),k.length===w)return k;_=E=O}}return k.push(p.slice(E)),k}]}),!y)},function(e,t,n){"use strict";var r,o=n(2),a=n(25).f,i=n(17),l=n(124),s=n(30),c=n(125),u=n(47),f="".startsWith,p=Math.min,d=c("startsWith");o({target:"String",proto:!0,forced:!!(u||d||(r=a(String.prototype,"startsWith"),!r||r.writable))&&!d},{startsWith:function(e){var t=String(s(this));l(e);var n=i(p(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return f?f.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){"use strict";var r=n(2),o=n(66).trim;r({target:"String",proto:!0,forced:n(127)("trim")},{trim:function(){return o(this)}})},function(e,t,n){"use strict";var r=n(2),o=n(66).end,a=n(127)("trimEnd"),i=a?function(){return o(this)}:"".trimEnd;r({target:"String",proto:!0,forced:a},{trimEnd:i,trimRight:i})},function(e,t,n){"use strict";var r=n(2),o=n(66).start,a=n(127)("trimStart"),i=a?function(){return o(this)}:"".trimStart;r({target:"String",proto:!0,forced:a},{trimStart:i,trimLeft:i})},function(e,t,n){"use strict";var r=n(2),o=n(35);r({target:"String",proto:!0,forced:n(36)("anchor")},{anchor:function(e){return o(this,"a","name",e)}})},function(e,t,n){"use strict";var r=n(2),o=n(35);r({target:"String",proto:!0,forced:n(36)("big")},{big:function(){return o(this,"big","","")}})},function(e,t,n){"use strict";var r=n(2),o=n(35);r({target:"String",proto:!0,forced:n(36)("blink")},{blink:function(){return o(this,"blink","","")}})},function(e,t,n){"use strict";var r=n(2),o=n(35);r({target:"String",proto:!0,forced:n(36)("bold")},{bold:function(){return o(this,"b","","")}})},function(e,t,n){"use strict";var r=n(2),o=n(35);r({target:"String",proto:!0,forced:n(36)("fixed")},{fixed:function(){return o(this,"tt","","")}})},function(e,t,n){"use strict";var r=n(2),o=n(35);r({target:"String",proto:!0,forced:n(36)("fontcolor")},{fontcolor:function(e){return o(this,"font","color",e)}})},function(e,t,n){"use strict";var r=n(2),o=n(35);r({target:"String",proto:!0,forced:n(36)("fontsize")},{fontsize:function(e){return o(this,"font","size",e)}})},function(e,t,n){"use strict";var r=n(2),o=n(35);r({target:"String",proto:!0,forced:n(36)("italics")},{italics:function(){return o(this,"i","","")}})},function(e,t,n){"use strict";var r=n(2),o=n(35);r({target:"String",proto:!0,forced:n(36)("link")},{link:function(e){return o(this,"a","href",e)}})},function(e,t,n){"use strict";var r=n(2),o=n(35);r({target:"String",proto:!0,forced:n(36)("small")},{small:function(){return o(this,"small","","")}})},function(e,t,n){"use strict";var r=n(2),o=n(35);r({target:"String",proto:!0,forced:n(36)("strike")},{strike:function(){return o(this,"strike","","")}})},function(e,t,n){"use strict";var r=n(2),o=n(35);r({target:"String",proto:!0,forced:n(36)("sub")},{sub:function(){return o(this,"sub","","")}})},function(e,t,n){"use strict";var r=n(2),o=n(35);r({target:"String",proto:!0,forced:n(36)("sup")},{sup:function(){return o(this,"sup","","")}})},function(e,t,n){n(50)("Float32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){var r=n(37);e.exports=function(e){var t=r(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},function(e,t,n){n(50)("Float64",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){n(50)("Int8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){n(50)("Int16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){n(50)("Int32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){n(50)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){n(50)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0)},function(e,t,n){n(50)("Uint16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){n(50)("Uint32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";var r=n(16),o=n(148),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("copyWithin",(function(e,t){return o.call(a(this),e,t,arguments.length>2?arguments[2]:void 0)}))},function(e,t,n){"use strict";var r=n(16),o=n(27).every,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("every",(function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(16),o=n(114),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("fill",(function(e){return o.apply(a(this),arguments)}))},function(e,t,n){"use strict";var r=n(16),o=n(27).filter,a=n(61),i=r.aTypedArray,l=r.aTypedArrayConstructor;(0,r.exportTypedArrayMethod)("filter",(function(e){for(var t=o(i(this),e,arguments.length>1?arguments[1]:void 0),n=a(this,this.constructor),r=0,s=t.length,c=new(l(n))(s);s>r;)c[r]=t[r++];return c}))},function(e,t,n){"use strict";var r=n(16),o=n(27).find,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("find",(function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(16),o=n(27).findIndex,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",(function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(16),o=n(27).forEach,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("forEach",(function(e){o(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(128);(0,n(16).exportTypedArrayStaticMethod)("from",n(174),r)},function(e,t,n){"use strict";var r=n(16),o=n(87).includes,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("includes",(function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(16),o=n(87).indexOf,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("indexOf",(function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(6),o=n(16),a=n(89),i=n(14)("iterator"),l=r.Uint8Array,s=a.values,c=a.keys,u=a.entries,f=o.aTypedArray,p=o.exportTypedArrayMethod,d=l&&l.prototype[i],m=!!d&&("values"==d.name||null==d.name),h=function(){return s.call(f(this))};p("entries",(function(){return u.call(f(this))})),p("keys",(function(){return c.call(f(this))})),p("values",h,!m),p(i,h,!m)},function(e,t,n){"use strict";var r=n(16),o=r.aTypedArray,a=r.exportTypedArrayMethod,i=[].join;a("join",(function(e){return i.apply(o(this),arguments)}))},function(e,t,n){"use strict";var r=n(16),o=n(369),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",(function(e){return o.apply(a(this),arguments)}))},function(e,t,n){"use strict";var r=n(32),o=n(37),a=n(17),i=n(90),l=n(49),s=Math.min,c=[].lastIndexOf,u=!!c&&1/[1].lastIndexOf(1,-0)<0,f=i("lastIndexOf"),p=l("indexOf",{ACCESSORS:!0,1:0}),d=u||!f||!p;e.exports=d?function(e){if(u)return c.apply(this,arguments)||0;var t=r(this),n=a(t.length),i=n-1;for(arguments.length>1&&(i=s(i,o(arguments[1]))),i<0&&(i=n+i);i>=0;i--)if(i in t&&t[i]===e)return i||0;return-1}:c},function(e,t,n){"use strict";var r=n(16),o=n(27).map,a=n(61),i=r.aTypedArray,l=r.aTypedArrayConstructor;(0,r.exportTypedArrayMethod)("map",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(l(a(e,e.constructor)))(t)}))}))},function(e,t,n){"use strict";var r=n(16),o=n(128),a=r.aTypedArrayConstructor;(0,r.exportTypedArrayStaticMethod)("of",(function(){for(var e=0,t=arguments.length,n=new(a(this))(t);t>e;)n[e]=arguments[e++];return n}),o)},function(e,t,n){"use strict";var r=n(16),o=n(175).left,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduce",(function(e){return o(a(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(16),o=n(175).right,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduceRight",(function(e){return o(a(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(16),o=r.aTypedArray,a=r.exportTypedArrayMethod,i=Math.floor;a("reverse",(function(){for(var e,t=this,n=o(t).length,r=i(n/2),a=0;a<r;)e=t[a],t[a++]=t[--n],t[n]=e;return t}))},function(e,t,n){"use strict";var r=n(16),o=n(17),a=n(173),i=n(20),l=n(4),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("set",(function(e){s(this);var t=a(arguments.length>1?arguments[1]:void 0,1),n=this.length,r=i(e),l=o(r.length),c=0;if(l+t>n)throw RangeError("Wrong length");for(;c<l;)this[t+c]=r[c++]}),l((function(){new Int8Array(1).set({})})))},function(e,t,n){"use strict";var r=n(16),o=n(61),a=n(4),i=r.aTypedArray,l=r.aTypedArrayConstructor,s=r.exportTypedArrayMethod,c=[].slice;s("slice",(function(e,t){for(var n=c.call(i(this),e,t),r=o(this,this.constructor),a=0,s=n.length,u=new(l(r))(s);s>a;)u[a]=n[a++];return u}),a((function(){new Int8Array(1).slice()})))},function(e,t,n){"use strict";var r=n(16),o=n(27).some,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("some",(function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(16),o=r.aTypedArray,a=r.exportTypedArrayMethod,i=[].sort;a("sort",(function(e){return i.call(o(this),e)}))},function(e,t,n){"use strict";var r=n(16),o=n(17),a=n(58),i=n(61),l=r.aTypedArray;(0,r.exportTypedArrayMethod)("subarray",(function(e,t){var n=l(this),r=n.length,s=a(e,r);return new(i(n,n.constructor))(n.buffer,n.byteOffset+s*n.BYTES_PER_ELEMENT,o((void 0===t?r:a(t,r))-s))}))},function(e,t,n){"use strict";var r=n(6),o=n(16),a=n(4),i=r.Int8Array,l=o.aTypedArray,s=o.exportTypedArrayMethod,c=[].toLocaleString,u=[].slice,f=!!i&&a((function(){c.call(new i(1))}));s("toLocaleString",(function(){return c.apply(f?u.call(l(this)):l(this),arguments)}),a((function(){return[1,2].toLocaleString()!=new i([1,2]).toLocaleString()}))||!a((function(){i.prototype.toLocaleString.call([1,2])})))},function(e,t,n){"use strict";var r=n(16).exportTypedArrayMethod,o=n(4),a=n(6).Uint8Array,i=a&&a.prototype||{},l=[].toString,s=[].join;o((function(){l.call({})}))&&(l=function(){return s.call(this)});var c=i.toString!=l;r("toString",l,c)},function(e,t,n){"use strict";var r,o=n(6),a=n(65),i=n(60),l=n(91),s=n(176),c=n(11),u=n(33).enforce,f=n(139),p=!o.ActiveXObject&&"ActiveXObject"in o,d=Object.isExtensible,m=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},h=e.exports=l("WeakMap",m,s);if(f&&p){r=s.getConstructor(m,"WeakMap",!0),i.REQUIRED=!0;var y=h.prototype,b=y.delete,v=y.has,g=y.get,w=y.set;a(y,{delete:function(e){if(c(e)&&!d(e)){var t=u(this);return t.frozen||(t.frozen=new r),b.call(this,e)||t.frozen.delete(e)}return b.call(this,e)},has:function(e){if(c(e)&&!d(e)){var t=u(this);return t.frozen||(t.frozen=new r),v.call(this,e)||t.frozen.has(e)}return v.call(this,e)},get:function(e){if(c(e)&&!d(e)){var t=u(this);return t.frozen||(t.frozen=new r),v.call(this,e)?g.call(this,e):t.frozen.get(e)}return g.call(this,e)},set:function(e,t){if(c(e)&&!d(e)){var n=u(this);n.frozen||(n.frozen=new r),v.call(this,e)?w.call(this,e,t):n.frozen.set(e,t)}else w.call(this,e,t);return this}})}},function(e,t,n){"use strict";n(91)("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(176))},function(e,t,n){var r=n(6),o=n(177),a=n(385),i=n(31);for(var l in o){var s=r[l],c=s&&s.prototype;if(c&&c.forEach!==a)try{i(c,"forEach",a)}catch(e){c.forEach=a}}},function(e,t,n){"use strict";var r=n(27).forEach,o=n(90),a=n(49),i=o("forEach"),l=a("forEach");e.exports=i&&l?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,n){var r=n(6),o=n(177),a=n(89),i=n(31),l=n(14),s=l("iterator"),c=l("toStringTag"),u=a.values;for(var f in o){var p=r[f],d=p&&p.prototype;if(d){if(d[s]!==u)try{i(d,s,u)}catch(e){d[s]=u}if(d[c]||i(d,c,f),o[f])for(var m in a)if(d[m]!==a[m])try{i(d,m,a[m])}catch(e){d[m]=a[m]}}}},function(e,t,n){var r=n(2),o=n(6),a=n(121);r({global:!0,bind:!0,enumerable:!0,forced:!o.setImmediate||!o.clearImmediate},{setImmediate:a.set,clearImmediate:a.clear})},function(e,t,n){var r=n(2),o=n(6),a=n(166),i=n(41),l=o.process,s="process"==i(l);r({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(e){var t=s&&l.domain;a(t?t.bind(e):e)}})},function(e,t,n){"use strict";n(170);var r,o=n(2),a=n(15),i=n(178),l=n(6),s=n(144),c=n(26),u=n(55),f=n(19),p=n(161),d=n(150),m=n(98).codeAt,h=n(390),y=n(48),b=n(179),v=n(33),g=l.URL,w=b.URLSearchParams,E=b.getState,_=v.set,k=v.getterFor("URL"),O=Math.floor,x=Math.pow,S="Invalid scheme",j="Invalid host",C="Invalid port",D=/[A-Za-z]/,N=/[\d+-.A-Za-z]/,P=/\d/,T=/^(0x|0X)/,M=/^[0-7]+$/,A=/^\d+$/,L=/^[\dA-Fa-f]+$/,R=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,F=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,z=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,B=/[\u0009\u000A\u000D]/g,Y=function(e,t){var n,r,o;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return j;if(!(n=H(t.slice(1,-1))))return j;e.host=n}else if(J(e)){if(t=h(t),R.test(t))return j;if(null===(n=I(t)))return j;e.host=n}else{if(F.test(t))return j;for(n="",r=d(t),o=0;o<r.length;o++)n+=K(r[o],W);e.host=n}},I=function(e){var t,n,r,o,a,i,l,s=e.split(".");if(s.length&&""==s[s.length-1]&&s.pop(),(t=s.length)>4)return e;for(n=[],r=0;r<t;r++){if(""==(o=s[r]))return e;if(a=10,o.length>1&&"0"==o.charAt(0)&&(a=T.test(o)?16:8,o=o.slice(8==a?1:2)),""===o)i=0;else{if(!(10==a?A:8==a?M:L).test(o))return e;i=parseInt(o,a)}n.push(i)}for(r=0;r<t;r++)if(i=n[r],r==t-1){if(i>=x(256,5-t))return null}else if(i>255)return null;for(l=n.pop(),r=0;r<n.length;r++)l+=n[r]*x(256,3-r);return l},H=function(e){var t,n,r,o,a,i,l,s=[0,0,0,0,0,0,0,0],c=0,u=null,f=0,p=function(){return e.charAt(f)};if(":"==p()){if(":"!=e.charAt(1))return;f+=2,u=++c}for(;p();){if(8==c)return;if(":"!=p()){for(t=n=0;n<4&&L.test(p());)t=16*t+parseInt(p(),16),f++,n++;if("."==p()){if(0==n)return;if(f-=n,c>6)return;for(r=0;p();){if(o=null,r>0){if(!("."==p()&&r<4))return;f++}if(!P.test(p()))return;for(;P.test(p());){if(a=parseInt(p(),10),null===o)o=a;else{if(0==o)return;o=10*o+a}if(o>255)return;f++}s[c]=256*s[c]+o,2!=++r&&4!=r||c++}if(4!=r)return;break}if(":"==p()){if(f++,!p())return}else if(p())return;s[c++]=t}else{if(null!==u)return;f++,u=++c}}if(null!==u)for(i=c-u,c=7;0!=c&&i>0;)l=s[c],s[c--]=s[u+i-1],s[u+--i]=l;else if(8!=c)return;return s},U=function(e){var t,n,r,o;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=O(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,o=0,a=0;a<8;a++)0!==e[a]?(o>n&&(t=r,n=o),r=null,o=0):(null===r&&(r=a),++o);return o>n&&(t=r,n=o),t}(e),n=0;n<8;n++)o&&0===e[n]||(o&&(o=!1),r===n?(t+=n?":":"::",o=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},W={},V=p({},W,{" ":1,'"':1,"<":1,">":1,"`":1}),q=p({},V,{"#":1,"?":1,"{":1,"}":1}),G=p({},q,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),K=function(e,t){var n=m(e,0);return n>32&&n<127&&!f(t,e)?e:encodeURIComponent(e)},$={ftp:21,file:null,http:80,https:443,ws:80,wss:443},J=function(e){return f($,e.scheme)},X=function(e){return""!=e.username||""!=e.password},Q=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},Z=function(e,t){var n;return 2==e.length&&D.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},ee=function(e){var t;return e.length>1&&Z(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},te=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&Z(t[0],!0)||t.pop()},ne=function(e){return"."===e||"%2e"===e.toLowerCase()},re={},oe={},ae={},ie={},le={},se={},ce={},ue={},fe={},pe={},de={},me={},he={},ye={},be={},ve={},ge={},we={},Ee={},_e={},ke={},Oe=function(e,t,n,o){var a,i,l,s,c,u=n||re,p=0,m="",h=!1,y=!1,b=!1;for(n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(z,"")),t=t.replace(B,""),a=d(t);p<=a.length;){switch(i=a[p],u){case re:if(!i||!D.test(i)){if(n)return S;u=ae;continue}m+=i.toLowerCase(),u=oe;break;case oe:if(i&&(N.test(i)||"+"==i||"-"==i||"."==i))m+=i.toLowerCase();else{if(":"!=i){if(n)return S;m="",u=ae,p=0;continue}if(n&&(J(e)!=f($,m)||"file"==m&&(X(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=m,n)return void(J(e)&&$[e.scheme]==e.port&&(e.port=null));m="","file"==e.scheme?u=ye:J(e)&&o&&o.scheme==e.scheme?u=ie:J(e)?u=ue:"/"==a[p+1]?(u=le,p++):(e.cannotBeABaseURL=!0,e.path.push(""),u=Ee)}break;case ae:if(!o||o.cannotBeABaseURL&&"#"!=i)return S;if(o.cannotBeABaseURL&&"#"==i){e.scheme=o.scheme,e.path=o.path.slice(),e.query=o.query,e.fragment="",e.cannotBeABaseURL=!0,u=ke;break}u="file"==o.scheme?ye:se;continue;case ie:if("/"!=i||"/"!=a[p+1]){u=se;continue}u=fe,p++;break;case le:if("/"==i){u=pe;break}u=we;continue;case se:if(e.scheme=o.scheme,i==r)e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query=o.query;else if("/"==i||"\\"==i&&J(e))u=ce;else if("?"==i)e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query="",u=_e;else{if("#"!=i){e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.path.pop(),u=we;continue}e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query=o.query,e.fragment="",u=ke}break;case ce:if(!J(e)||"/"!=i&&"\\"!=i){if("/"!=i){e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,u=we;continue}u=pe}else u=fe;break;case ue:if(u=fe,"/"!=i||"/"!=m.charAt(p+1))continue;p++;break;case fe:if("/"!=i&&"\\"!=i){u=pe;continue}break;case pe:if("@"==i){h&&(m="%40"+m),h=!0,l=d(m);for(var v=0;v<l.length;v++){var g=l[v];if(":"!=g||b){var w=K(g,G);b?e.password+=w:e.username+=w}else b=!0}m=""}else if(i==r||"/"==i||"?"==i||"#"==i||"\\"==i&&J(e)){if(h&&""==m)return"Invalid authority";p-=d(m).length+1,m="",u=de}else m+=i;break;case de:case me:if(n&&"file"==e.scheme){u=ve;continue}if(":"!=i||y){if(i==r||"/"==i||"?"==i||"#"==i||"\\"==i&&J(e)){if(J(e)&&""==m)return j;if(n&&""==m&&(X(e)||null!==e.port))return;if(s=Y(e,m))return s;if(m="",u=ge,n)return;continue}"["==i?y=!0:"]"==i&&(y=!1),m+=i}else{if(""==m)return j;if(s=Y(e,m))return s;if(m="",u=he,n==me)return}break;case he:if(!P.test(i)){if(i==r||"/"==i||"?"==i||"#"==i||"\\"==i&&J(e)||n){if(""!=m){var E=parseInt(m,10);if(E>65535)return C;e.port=J(e)&&E===$[e.scheme]?null:E,m=""}if(n)return;u=ge;continue}return C}m+=i;break;case ye:if(e.scheme="file","/"==i||"\\"==i)u=be;else{if(!o||"file"!=o.scheme){u=we;continue}if(i==r)e.host=o.host,e.path=o.path.slice(),e.query=o.query;else if("?"==i)e.host=o.host,e.path=o.path.slice(),e.query="",u=_e;else{if("#"!=i){ee(a.slice(p).join(""))||(e.host=o.host,e.path=o.path.slice(),te(e)),u=we;continue}e.host=o.host,e.path=o.path.slice(),e.query=o.query,e.fragment="",u=ke}}break;case be:if("/"==i||"\\"==i){u=ve;break}o&&"file"==o.scheme&&!ee(a.slice(p).join(""))&&(Z(o.path[0],!0)?e.path.push(o.path[0]):e.host=o.host),u=we;continue;case ve:if(i==r||"/"==i||"\\"==i||"?"==i||"#"==i){if(!n&&Z(m))u=we;else if(""==m){if(e.host="",n)return;u=ge}else{if(s=Y(e,m))return s;if("localhost"==e.host&&(e.host=""),n)return;m="",u=ge}continue}m+=i;break;case ge:if(J(e)){if(u=we,"/"!=i&&"\\"!=i)continue}else if(n||"?"!=i)if(n||"#"!=i){if(i!=r&&(u=we,"/"!=i))continue}else e.fragment="",u=ke;else e.query="",u=_e;break;case we:if(i==r||"/"==i||"\\"==i&&J(e)||!n&&("?"==i||"#"==i)){if(".."===(c=(c=m).toLowerCase())||"%2e."===c||".%2e"===c||"%2e%2e"===c?(te(e),"/"==i||"\\"==i&&J(e)||e.path.push("")):ne(m)?"/"==i||"\\"==i&&J(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&Z(m)&&(e.host&&(e.host=""),m=m.charAt(0)+":"),e.path.push(m)),m="","file"==e.scheme&&(i==r||"?"==i||"#"==i))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==i?(e.query="",u=_e):"#"==i&&(e.fragment="",u=ke)}else m+=K(i,q);break;case Ee:"?"==i?(e.query="",u=_e):"#"==i?(e.fragment="",u=ke):i!=r&&(e.path[0]+=K(i,W));break;case _e:n||"#"!=i?i!=r&&("'"==i&&J(e)?e.query+="%27":e.query+="#"==i?"%23":K(i,W)):(e.fragment="",u=ke);break;case ke:i!=r&&(e.fragment+=K(i,V))}p++}},xe=function(e){var t,n,r=u(this,xe,"URL"),o=arguments.length>1?arguments[1]:void 0,i=String(e),l=_(r,{type:"URL"});if(void 0!==o)if(o instanceof xe)t=k(o);else if(n=Oe(t={},String(o)))throw TypeError(n);if(n=Oe(l,i,null,t))throw TypeError(n);var s=l.searchParams=new w,c=E(s);c.updateSearchParams(l.query),c.updateURL=function(){l.query=String(s)||null},a||(r.href=je.call(r),r.origin=Ce.call(r),r.protocol=De.call(r),r.username=Ne.call(r),r.password=Pe.call(r),r.host=Te.call(r),r.hostname=Me.call(r),r.port=Ae.call(r),r.pathname=Le.call(r),r.search=Re.call(r),r.searchParams=Fe.call(r),r.hash=ze.call(r))},Se=xe.prototype,je=function(){var e=k(this),t=e.scheme,n=e.username,r=e.password,o=e.host,a=e.port,i=e.path,l=e.query,s=e.fragment,c=t+":";return null!==o?(c+="//",X(e)&&(c+=n+(r?":"+r:"")+"@"),c+=U(o),null!==a&&(c+=":"+a)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?i[0]:i.length?"/"+i.join("/"):"",null!==l&&(c+="?"+l),null!==s&&(c+="#"+s),c},Ce=function(){var e=k(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&J(e)?t+"://"+U(e.host)+(null!==n?":"+n:""):"null"},De=function(){return k(this).scheme+":"},Ne=function(){return k(this).username},Pe=function(){return k(this).password},Te=function(){var e=k(this),t=e.host,n=e.port;return null===t?"":null===n?U(t):U(t)+":"+n},Me=function(){var e=k(this).host;return null===e?"":U(e)},Ae=function(){var e=k(this).port;return null===e?"":String(e)},Le=function(){var e=k(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Re=function(){var e=k(this).query;return e?"?"+e:""},Fe=function(){return k(this).searchParams},ze=function(){var e=k(this).fragment;return e?"#"+e:""},Be=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(a&&s(Se,{href:Be(je,(function(e){var t=k(this),n=String(e),r=Oe(t,n);if(r)throw TypeError(r);E(t.searchParams).updateSearchParams(t.query)})),origin:Be(Ce),protocol:Be(De,(function(e){var t=k(this);Oe(t,String(e)+":",re)})),username:Be(Ne,(function(e){var t=k(this),n=d(String(e));if(!Q(t)){t.username="";for(var r=0;r<n.length;r++)t.username+=K(n[r],G)}})),password:Be(Pe,(function(e){var t=k(this),n=d(String(e));if(!Q(t)){t.password="";for(var r=0;r<n.length;r++)t.password+=K(n[r],G)}})),host:Be(Te,(function(e){var t=k(this);t.cannotBeABaseURL||Oe(t,String(e),de)})),hostname:Be(Me,(function(e){var t=k(this);t.cannotBeABaseURL||Oe(t,String(e),me)})),port:Be(Ae,(function(e){var t=k(this);Q(t)||(""==(e=String(e))?t.port=null:Oe(t,e,he))})),pathname:Be(Le,(function(e){var t=k(this);t.cannotBeABaseURL||(t.path=[],Oe(t,e+"",ge))})),search:Be(Re,(function(e){var t=k(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",Oe(t,e,_e)),E(t.searchParams).updateSearchParams(t.query)})),searchParams:Be(Fe),hash:Be(ze,(function(e){var t=k(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",Oe(t,e,ke)):t.fragment=null}))}),c(Se,"toJSON",(function(){return je.call(this)}),{enumerable:!0}),c(Se,"toString",(function(){return je.call(this)}),{enumerable:!0}),g){var Ye=g.createObjectURL,Ie=g.revokeObjectURL;Ye&&c(xe,"createObjectURL",(function(e){return Ye.apply(g,arguments)})),Ie&&c(xe,"revokeObjectURL",(function(e){return Ie.apply(g,arguments)}))}y(xe,"URL"),o({global:!0,forced:!i,sham:!a},{URL:xe})},function(e,t,n){"use strict";var r=2147483647,o=/[^\0-\u007E]/,a=/[.\u3002\uFF0E\uFF61]/g,i="Overflow: input needs wider integers to process",l=Math.floor,s=String.fromCharCode,c=function(e){return e+22+75*(e<26)},u=function(e,t,n){var r=0;for(e=n?l(e/700):e>>1,e+=l(e/t);e>455;r+=36)e=l(e/35);return l(r+36*e/(e+38))},f=function(e){var t=[];e=function(e){for(var t=[],n=0,r=e.length;n<r;){var o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){var a=e.charCodeAt(n++);56320==(64512&a)?t.push(((1023&o)<<10)+(1023&a)+65536):(t.push(o),n--)}else t.push(o)}return t}(e);var n,o,a=e.length,f=128,p=0,d=72;for(n=0;n<e.length;n++)(o=e[n])<128&&t.push(s(o));var m=t.length,h=m;for(m&&t.push("-");h<a;){var y=r;for(n=0;n<e.length;n++)(o=e[n])>=f&&o<y&&(y=o);var b=h+1;if(y-f>l((r-p)/b))throw RangeError(i);for(p+=(y-f)*b,f=y,n=0;n<e.length;n++){if((o=e[n])<f&&++p>r)throw RangeError(i);if(o==f){for(var v=p,g=36;;g+=36){var w=g<=d?1:g>=d+26?26:g-d;if(v<w)break;var E=v-w,_=36-w;t.push(s(c(w+E%_))),v=l(E/_)}t.push(s(c(v))),d=u(p,b,h==m),p=0,++h}}++p,++f}return t.join("")};e.exports=function(e){var t,n,r=[],i=e.toLowerCase().replace(a,".").split(".");for(t=0;t<i.length;t++)n=i[t],r.push(o.test(n)?"xn--"+f(n):n);return r.join(".")}},function(e,t,n){var r=n(12),o=n(80);e.exports=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return r(t.call(e))}},function(e,t,n){"use strict";n(2)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var a=t&&t.prototype instanceof b?t:b,i=Object.create(a.prototype),l=new N(r||[]);return o(i,"_invoke",{value:S(e,n,l)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var p="suspendedStart",d="suspendedYield",m="executing",h="completed",y={};function b(){}function v(){}function g(){}var w={};c(w,i,(function(){return this}));var E=Object.getPrototypeOf,_=E&&E(E(P([])));_&&_!==n&&r.call(_,i)&&(w=_);var k=g.prototype=b.prototype=Object.create(w);function O(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(o,a,i,l){var s=f(e[o],e,a);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,i,l)}),(function(e){n("throw",e,i,l)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return n("throw",e,i,l)}))}l(s.arg)}var a;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function S(e,t,n){var r=p;return function(o,a){if(r===m)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw a;return T()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var l=j(i,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===p)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=m;var s=f(e,t,n);if("normal"===s.type){if(r=n.done?h:d,s.arg===y)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=h,n.method="throw",n.arg=s.arg)}}}function j(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var a=f(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,y;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function P(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:T}}function T(){return{value:t,done:!0}}return v.prototype=g,o(k,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:v,configurable:!0}),v.displayName=c(g,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,c(e,s,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},O(x.prototype),c(x.prototype,l,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new x(u(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},O(k),c(k,s,"Generator"),c(k,i,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=P,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(D),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),D(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;D(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}(e.exports);try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},function(e,t){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}e.exports=function(e){var t=n(e);return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(1756),o=n(1759)((function(e,t,n){r(e,t,n)}));e.exports=o},function(e,t,n){var r,o,a;function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}o=[e,n(449),n(451),n(452)],r=function(e,t,n,r){"use strict";var o=s(t),a=s(n),l=s(r);function s(e){return e&&e.__esModule?e:{default:e}}var c="function"==typeof Symbol&&"symbol"===i(Symbol.iterator)?function(e){return i(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":i(e)};function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==i(t)&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+i(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=function(e){function t(e,n){u(this,t);var r=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.resolveOptions(n),r.listenClick(e),r}return d(t,e),f(t,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===c(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,l.default)(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new o.default({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return h("action",e)}},{key:"defaultTarget",value:function(e){var t=h("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return h("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}]),t}(a.default);function h(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}e.exports=m},void 0===(a="function"==typeof r?r.apply(t,o):r)||(e.exports=a)},function(e,t,n){var r,o,a;function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}a=function(){"use strict";var e=new Map;return{set:function(t,n,r){e.has(t)||e.set(t,new Map);var o=e.get(t);o.has(n)||0===o.size?o.set(n,r):console.error("Bootstrap doesn't allow more than one instance per element. Bound instance: ".concat(Array.from(o.keys())[0],"."))},get:function(t,n){return e.has(t)&&e.get(t).get(n)||null},remove:function(t,n){if(e.has(t)){var r=e.get(t);r.delete(n),0===r.size&&e.delete(t)}}}},"object"===i(t)&&void 0!==e?e.exports=a():void 0===(o="function"==typeof(r=a)?r.call(t,n,t,e):r)||(e.exports=o)},function(e,t,n){"use strict";var r=n(45),o=n(185),a=n(399),i=n(134);function l(e){var t=new a(e),n=o(a.prototype.request,t);return r.extend(n,a.prototype,t),r.extend(n,t),n}var s=l(i);s.Axios=a,s.create=function(e){return l(r.merge(i,e))},s.Cancel=n(189),s.CancelToken=n(413),s.isCancel=n(188),s.all=function(e){return Promise.all(e)},s.spread=n(414),e.exports=s,e.exports.default=s},function(e,t,n){"use strict";var r=n(134),o=n(45),a=n(408),i=n(409),l=n(411),s=n(412);function c(e){this.defaults=e,this.interceptors={request:new a,response:new a}}c.prototype.request=function(e){"string"==typeof e&&(e=o.merge({url:arguments[0]},arguments[1])),(e=o.merge(r,this.defaults,{method:"get"},e)).baseURL&&!l(e.url)&&(e.url=s(e.baseURL,e.url));var t=[i,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},o.forEach(["delete","get","head"],(function(e){c.prototype[e]=function(t,n){return this.request(o.merge(n||{},{method:e,url:t}))}})),o.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,n,r){return this.request(o.merge(r||{},{method:e,url:t,data:n}))}})),e.exports=c},function(e,t,n){"use strict";var r=n(45);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(187);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n)):e(n)}},function(e,t,n){"use strict";e.exports=function(e,t,n,r){return e.config=t,n&&(e.code=n),e.response=r,e}},function(e,t,n){"use strict";var r=n(45);function o(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var a;if(n)a=n(t);else if(r.isURLSearchParams(t))a=t.toString();else{var i=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)&&(t+="[]"),r.isArray(e)||(e=[e]),r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),i.push(o(t)+"="+o(e))})))})),a=i.join("&")}return a&&(e+=(-1===e.indexOf("?")?"?":"&")+a),e}},function(e,t,n){"use strict";var r=n(45);e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),(function(e){o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t&&(a[t]=a[t]?a[t]+", "+n:n)})),a):a}},function(e,t,n){"use strict";var r=n(45);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function o(){this.message="String contains an invalid character"}o.prototype=new Error,o.prototype.code=5,o.prototype.name="InvalidCharacterError",e.exports=function(e){for(var t,n,a=String(e),i="",l=0,s=r;a.charAt(0|l)||(s="=",l%1);i+=s.charAt(63&t>>8-l%1*8)){if((n=a.charCodeAt(l+=3/4))>255)throw new o;t=t<<8|n}return i}},function(e,t,n){"use strict";var r=n(45);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,a,i){var l=[];l.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),r.isString(o)&&l.push("path="+o),r.isString(a)&&l.push("domain="+a),!0===i&&l.push("secure"),document.cookie=l.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(45);function o(){this.handlers=[]}o.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},function(e,t,n){"use strict";var r=n(45),o=n(410),a=n(188),i=n(134);function l(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||i.adapter)(e).then((function(t){return l(e),t.data=o(t.data,t.headers,e.transformResponse),t}),(function(t){return a(t)||(l(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(45);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,"")}},function(e,t,n){"use strict";var r=n(189);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=n(1252),a="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,i=o||a||Function("return this")();e.exports=i},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),l=c(i),s=c(n(8));function c(e){return e&&e.__esModule?e:{default:e}}var u={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},f=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],p=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},d=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),m=function(){return d?"_"+Math.random().toString(36).substr(2,12):void 0},h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==r(t)&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=function(e){n.input=e,"function"==typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||m()},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=e.id;t!==this.props.id&&this.setState({inputId:t||m()})}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(p(e,this.sizer),this.placeHolderSizer&&p(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return d&&e?l.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce((function(e,t){return null!=e?e:t})),t=o({},this.props.style);t.display||(t.display="inline-block");var n=o({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),r=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){f.forEach((function(t){return delete e[t]}))}(r),r.className=this.props.inputClassName,r.id=this.state.inputId,r.style=n,l.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),l.default.createElement("input",o({},r,{ref:this.inputRef})),l.default.createElement("div",{ref:this.sizerRef,style:u},e),this.props.placeholder?l.default.createElement("div",{ref:this.placeHolderSizerRef,style:u},this.props.placeholder):null)}}]),t}(i.Component);h.propTypes={className:s.default.string,defaultValue:s.default.any,extraWidth:s.default.oneOfType([s.default.number,s.default.string]),id:s.default.string,injectStyles:s.default.bool,inputClassName:s.default.string,inputRef:s.default.func,inputStyle:s.default.object,minWidth:s.default.oneOfType([s.default.number,s.default.string]),onAutosize:s.default.func,onChange:s.default.func,placeholder:s.default.string,placeholderIsMinWidth:s.default.bool,style:s.default.object,value:s.default.any},h.defaultProps={minWidth:1,injectStyles:!0},t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1251);Object.defineProperty(t,"DragDropContext",{enumerable:!0,get:function(){return s(r).default}});var o=n(1596);Object.defineProperty(t,"DragDropContextProvider",{enumerable:!0,get:function(){return s(o).default}});var a=n(1597);Object.defineProperty(t,"DragLayer",{enumerable:!0,get:function(){return s(a).default}});var i=n(1598);Object.defineProperty(t,"DragSource",{enumerable:!0,get:function(){return s(i).default}});var l=n(1608);function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"DropTarget",{enumerable:!0,get:function(){return s(l).default}})},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(1280),a=(r=o)&&r.__esModule?r:{default:r};t.default=function(e,t,n){return t in e?(0,a.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}e.exports=function(e){return null!=e&&"object"==n(e)}},function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(587)("wks"),o=n(538),a=n(435).Symbol,i="function"==typeof a;(e.exports=function(e){return r[e]||(r[e]=i&&a[e]||(i?a:o)("Symbol."+e))}).store=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.red=t.getContrastingColor=t.isValidHex=t.toState=t.simpleCheckForValidColor=void 0;var r=a(n(1762)),o=a(n(1764));function a(e){return e&&e.__esModule?e:{default:e}}t.simpleCheckForValidColor=function(e){var t=0,n=0;return(0,r.default)(["r","g","b","a","h","s","l","v"],(function(r){if(e[r]&&(t+=1,isNaN(e[r])||(n+=1),"s"===r||"l"===r)){/^\d+%$/.test(e[r])&&(n+=1)}})),t===n&&e};var i=t.toState=function(e,t){var n=e.hex?(0,o.default)(e.hex):(0,o.default)(e),r=n.toHsl(),a=n.toHsv(),i=n.toRgb(),l=n.toHex();return 0===r.s&&(r.h=t||0,a.h=t||0),{hsl:r,hex:"000000"===l&&0===i.a?"transparent":"#"+l,rgb:i,hsv:a,oldHue:e.h||t||r.h,source:e.source}};t.isValidHex=function(e){var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&(0,o.default)(e).isValid()},t.getContrastingColor=function(e){if(!e)return"#fff";var t=i(e);return"transparent"===t.hex?"rgba(0,0,0,0.4)":(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/1e3>=128?"#000":"#fff"},t.red={hsl:{a:1,h:0,l:.5,s:1},hex:"#ff0000",rgb:{r:255,g:0,b:0,a:1},hsv:{h:0,s:1,v:1,a:1}};t.default=t},function(e,t,n){"use strict";var r=n(425);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var l=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 l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){var r=n(456),o=n(564),a=n(420),i="[object Object]",l=Function.prototype,s=Object.prototype,c=l.toString,u=s.hasOwnProperty,f=c.call(Object);e.exports=function(e){if(!a(e)||r(e)!=i)return!1;var t=o(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==f}},function(e,t,n){"use strict";var r,o=n(0),a=n.n(o),i=n(3),l=n(29),s=n(196),c=n(9),u=["children"];function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function h(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var y=["en","fr","de","es"],b=c.n.filter((function(e){return y.includes(e.code)})).map((function(e){return{value:e.code,label:e.language,flag:e.flag}})),v=c.n.filter((function(e){return!y.includes(e.code)&&"es-en"!==e.code})).map((function(e){return{value:e.code,label:e.language,flag:e.flag,multitrack:e.multitrack}})),g=function(e){return a.a.createElement(l.z.Placeholder,e)},w=function(e){return a.a.createElement(l.z.Option,e,a.a.createElement("span",{className:"me-2"},e.data.label),e.data.flag.split(",").map((function(e,t){return a.a.createElement("i",{key:"select-flag-"+t,className:"flag-icon mx-1 flag-icon-"+e})})))},E=function(e){var t=e.children,n=h(e,u);return a.a.createElement(l.z.SingleValue,n,a.a.createElement("span",{className:"text--weight-700 me-2"},t),n.data.flag.split(",").map((function(e,t){return a.a.createElement("i",{key:"selected-flag-"+t,className:"flag-icon mx-1 flag-icon-"+e})})))},_=function(e,t){var n=t[0].options.find((function(t){return t.value===e}));return n||(n=t[1].options.find((function(t){return t.value===e}))),n},k=Object(i.c)(r=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(i,e);var t,n,r,o=d(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return t=i,n=[{key:"render",value:function(){var e=this.props,t=e.className,n=e.disabled,r=e.onChange,o=e.multitrack,i=e.value,l=e.label,c=e.labelIcon,u=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=v.filter((function(t){return!e||t.multitrack}));return t&&n.unshift({value:"auto",label:"Auto-detect single language",flag:"auto-detect",multitrack:!1}),[{label:"Common languages",options:b},{label:"Language pairs",options:[{value:"es-en",label:"Spanish & English",flag:"mx,us"}]},{label:"Additional languages",options:n}]}(o,e.showAutoDetect);return a.a.createElement("div",{className:t},a.a.createElement("label",{className:"input--label text--size-1000rem text--color-meta-dark text--transform-none",htmlFor:"recording-language"},c&&a.a.createElement("i",{className:"far fa-comment-alt-dots fa-fw me-2"}),l||"What language was spoken?"),a.a.createElement("div",{className:"form-group"},a.a.createElement(s.a,{name:"recording-language",isDisabled:n,value:_(i,u),onChange:r,components:{Option:w,Placeholder:g,SingleValue:E},placeholder:"Please select language",options:u})))}}],n&&f(t.prototype,n),r&&f(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(a.a.Component))||r;t.a=k},function(e,t,n){"use strict";var r,o=n(0),a=n.n(o),i=n(3),l=n(29),s=n(196),c=["children"];function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function m(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var h=function(e){return a.a.createElement(l.z.Placeholder,e)},y=function(e){return a.a.createElement(l.z.Option,e,a.a.createElement("span",{className:"me-2"},e.data.label),e.data.flag.split(",").map((function(e,t){return a.a.createElement("i",{key:"select-flag-"+t,className:"flag-icon mx-1 flag-icon-"+e})})))},b=function(e){var t=e.children,n=m(e,c);return a.a.createElement(l.z.SingleValue,n,a.a.createElement("span",{className:"text--weight-700 me-2"},t),n.data.flag.split(",").map((function(e,t){return a.a.createElement("i",{key:"selected-flag-"+t,className:"flag-icon mx-1 flag-icon-"+e})})))},v=function(e,t){return t.find((function(t){return t.value===e}))},g=Object(i.c)(r=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(i,e);var t,n,r,o=p(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.className,n=e.disabled,r=e.options,o=e.onChange,i=e.value,l=e.prompt;return a.a.createElement("div",{className:t},l&&a.a.createElement("label",{className:"mb-1 text--color-meta-dark",htmlFor:"recording-language"},a.a.createElement("i",{className:"far fa-flag fa-fw me-2"}),l),a.a.createElement("div",{className:"form-group"},a.a.createElement(s.a,{name:"recording-language",isDisabled:n,value:v(i,r),onChange:o,components:{Option:y,Placeholder:h,SingleValue:b},placeholder:"Please select language",options:r,classNamePrefix:"translation-select-box"})))}}])&&u(t.prototype,n),r&&u(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(a.a.Component))||r;g.defaultProps={prompt:"What language do you want to translate it to?"},t.a=g},function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(1636)),o=i(n(1647)),a="function"==typeof o.default&&"symbol"==typeof r.default?function(e){return typeof e}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":typeof e};function i(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof o.default&&"symbol"===a(r.default)?function(e){return void 0===e?"undefined":a(e)}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":void 0===e?"undefined":a(e)}},,function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(1627),a=(r=o)&&r.__esModule?r:{default:r};t.default=a.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(1657),a=(r=o)&&r.__esModule?r:{default:r};t.default=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return(0,a.default)(e)}},,function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e,t,n,r){"use strict";e.enableDismissTrigger=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"hide",a="click.dismiss".concat(e.EVENT_KEY),i=e.NAME;t.on(document,a,'[data-bs-dismiss="'.concat(i,'"]'),(function(t){if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),!r.isDisabled(this)){var a=n.getElementFromSelector(this)||this.closest(".".concat(i));e.getOrCreateInstance(a)[o]()}}))},Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})},"object"===l(t)&&void 0!==e?i(t,n(62),n(84),n(44)):(o=[t,n(62),n(84),n(44)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var r=n(473),o=n(1275),a=n(582),i=Object.defineProperty;t.f=n(437)?Object.defineProperty:function(e,t,n){if(r(e),t=a(t,!0),r(n),o)try{return i(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){e.exports=!n(493)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(489),o=n(1696),a=n(1725),i=n(183);e.exports=function(e,t){return(i(e)?r:a)(e,o(t,3))}},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t,n){"use strict";var r,o,a,i,l,s,c,u,f,p,d,m,h,y,b,v,g,w,E,_,k,O,x,S,j,C,D,N,P,T,M=n(1),A=n(22),L=n.n(A);function R(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function F(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function z(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var B=function(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}},Y={playerSize:"s",backgroundColor:"#FFFFFF",primaryColor:"#2A93D5",secondaryColor:"#9A9A9A",textColor:"#131516",textHighlightColor:"#2A93D5",textBackgroundColor:"#FFFFFF",videoBackgroundColor:"#131516",pdfFooterText:"Automated transcription by Sonix"},I=(r=M.action.bound,o=M.action.bound,a=M.action.bound,i=M.action.bound,l=M.action.bound,s=M.action.bound,c=M.action.bound,u=M.action.bound,f=M.action.bound,p=M.action.bound,d=M.action.bound,m=M.action.bound,h=M.action.bound,y=M.action.bound,b=M.action.bound,v=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),R(this,"saving",g,this),R(this,"saved",w,this),R(this,"playerSize",E,this),R(this,"backgroundColor",_,this),R(this,"primaryColor",k,this),R(this,"secondaryColor",O,this),R(this,"textColor",x,this),R(this,"textHighlightColor",S,this),R(this,"textBackgroundColor",j,this),R(this,"videoBackgroundColor",C,this),R(this,"pdfFooterText",D,this),R(this,"customLogo",N,this),R(this,"customLogoFileUrl",P,this),R(this,"removeLogo",T,this),this.setDefaults(),this.set(n),Object(M.reaction)((function(){return t.toJSON()}),(function(){return t.saved=!1})),this}var t,n,r;return t=e,n=[{key:"set",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.json||{};Object.keys(n).forEach((function(t){return e[t]=n[t]})),t.logo&&(this.customLogoFileUrl=t.logo)}},{key:"setDefaults",value:function(){var e=this;Object.keys(Y).forEach((function(t){return e[t]=Y[t]}))}},{key:"reset",value:function(){this.setDefaults(),this.clearCustomLogo()}},{key:"toJSON",value:function(){var e=this,t={};return Object.keys(Y).forEach((function(n){return t[n]=e[n]})),t}},{key:"save",value:function(){var e=this;this.saving=!0;var t=new FormData,n=this.toJSON();for(var r in n)t.append("settings[".concat(r,"]"),n[r]);return(this.customLogo||this.removeLogo)&&t.append("logo",this.customLogo),L.a.put("/media_player_settings.json",t).then((function(){e.saved=!0,e.saving=!1}))}},{key:"setPlayerSize",value:function(e){this.playerSize=e.target.value}},{key:"setBackgroundColor",value:function(e){this.backgroundColor=e.hex}},{key:"setPrimaryColor",value:function(e){this.primaryColor=e.hex}},{key:"setSecondaryColor",value:function(e){this.secondaryColor=e.hex}},{key:"setTextColor",value:function(e){this.textColor=e.hex}},{key:"setTextBackgroundColor",value:function(e){this.textBackgroundColor=e.hex}},{key:"setTextHighlightColor",value:function(e){this.textHighlightColor=e.hex}},{key:"setVideoBackgroundColor",value:function(e){this.videoBackgroundColor=e.hex}},{key:"setPdfFooterText",value:function(e){this.pdfFooterText=e.target.value}},{key:"setCustomLogo",value:function(e){this.removeLogo=!1,this.customLogo=e.target.files[0],this.customLogo?this.customLogoFileUrl=URL.createObjectURL(this.customLogo):this.customLogoFileUrl=null}},{key:"clearCustomLogo",value:function(){this.removeLogo=!0,this.customLogo=!1,this.customLogoFileUrl=!1}},{key:"primaryColorWithAlpha",get:function(){var e=B(this.primaryColor);return"rgba(".concat(e.r,",").concat(e.g,",").concat(e.b,",0.5)")}},{key:"secondaryColorWithAlpha",get:function(){var e=B(this.secondaryColor);return"rgba(".concat(e.r,",").concat(e.g,",").concat(e.b,",0.3)")}},{key:"videoBackgroundColorWithAlpha",get:function(){var e=B(this.videoBackgroundColor);return"rgba(".concat(e.r,",").concat(e.g,",").concat(e.b,",0.9)")}},{key:"playerSizeInRem",get:function(){return"m"==this.playerSize?"16rem":"l"==this.playerSize?"20rem":"12rem"}},{key:"videoPlayerSizeInRem",get:function(){return"m"==this.playerSize?"16rem":"l"==this.playerSize?"20rem":"12rem"}}],n&&F(t.prototype,n),r&&F(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),g=z(v.prototype,"saving",[M.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),w=z(v.prototype,"saved",[M.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),E=z(v.prototype,"playerSize",[M.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=z(v.prototype,"backgroundColor",[M.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=z(v.prototype,"primaryColor",[M.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=z(v.prototype,"secondaryColor",[M.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=z(v.prototype,"textColor",[M.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=z(v.prototype,"textHighlightColor",[M.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=z(v.prototype,"textBackgroundColor",[M.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=z(v.prototype,"videoBackgroundColor",[M.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=z(v.prototype,"pdfFooterText",[M.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=z(v.prototype,"customLogo",[M.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=z(v.prototype,"customLogoFileUrl",[M.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=z(v.prototype,"removeLogo",[M.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),z(v.prototype,"set",[r],Object.getOwnPropertyDescriptor(v.prototype,"set"),v.prototype),z(v.prototype,"setDefaults",[o],Object.getOwnPropertyDescriptor(v.prototype,"setDefaults"),v.prototype),z(v.prototype,"reset",[a],Object.getOwnPropertyDescriptor(v.prototype,"reset"),v.prototype),z(v.prototype,"save",[i],Object.getOwnPropertyDescriptor(v.prototype,"save"),v.prototype),z(v.prototype,"setPlayerSize",[l],Object.getOwnPropertyDescriptor(v.prototype,"setPlayerSize"),v.prototype),z(v.prototype,"setBackgroundColor",[s],Object.getOwnPropertyDescriptor(v.prototype,"setBackgroundColor"),v.prototype),z(v.prototype,"setPrimaryColor",[c],Object.getOwnPropertyDescriptor(v.prototype,"setPrimaryColor"),v.prototype),z(v.prototype,"setSecondaryColor",[u],Object.getOwnPropertyDescriptor(v.prototype,"setSecondaryColor"),v.prototype),z(v.prototype,"setTextColor",[f],Object.getOwnPropertyDescriptor(v.prototype,"setTextColor"),v.prototype),z(v.prototype,"setTextBackgroundColor",[p],Object.getOwnPropertyDescriptor(v.prototype,"setTextBackgroundColor"),v.prototype),z(v.prototype,"setTextHighlightColor",[d],Object.getOwnPropertyDescriptor(v.prototype,"setTextHighlightColor"),v.prototype),z(v.prototype,"setVideoBackgroundColor",[m],Object.getOwnPropertyDescriptor(v.prototype,"setVideoBackgroundColor"),v.prototype),z(v.prototype,"setPdfFooterText",[h],Object.getOwnPropertyDescriptor(v.prototype,"setPdfFooterText"),v.prototype),z(v.prototype,"setCustomLogo",[y],Object.getOwnPropertyDescriptor(v.prototype,"setCustomLogo"),v.prototype),z(v.prototype,"clearCustomLogo",[b],Object.getOwnPropertyDescriptor(v.prototype,"clearCustomLogo"),v.prototype),z(v.prototype,"primaryColorWithAlpha",[M.computed],Object.getOwnPropertyDescriptor(v.prototype,"primaryColorWithAlpha"),v.prototype),z(v.prototype,"secondaryColorWithAlpha",[M.computed],Object.getOwnPropertyDescriptor(v.prototype,"secondaryColorWithAlpha"),v.prototype),z(v.prototype,"videoBackgroundColorWithAlpha",[M.computed],Object.getOwnPropertyDescriptor(v.prototype,"videoBackgroundColorWithAlpha"),v.prototype),z(v.prototype,"playerSizeInRem",[M.computed],Object.getOwnPropertyDescriptor(v.prototype,"playerSizeInRem"),v.prototype),z(v.prototype,"videoPlayerSizeInRem",[M.computed],Object.getOwnPropertyDescriptor(v.prototype,"videoPlayerSizeInRem"),v.prototype),v);t.a=I},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(1280),a=(r=o)&&r.__esModule?r:{default:r};t.default=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,a.default)(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(429),a=(r=o)&&r.__esModule?r:{default:r};t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,a.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(1666)),o=i(n(1670)),a=i(n(429));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,a.default)(t)));e.prototype=(0,o.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(r.default?(0,r.default)(e,t):e.__proto__=t)}},function(e,t,n){"use strict";var r,o,a,i,l,s,c,u,f,p,d,m,h,y,b,v,g,w,E,_=n(1),k=n(501),O=n.n(k);function x(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function j(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var C=(r=_.action.bound,o=_.action.bound,a=_.action.bound,i=_.action.bound,l=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),x(this,"id",s,this),x(this,"name",c,this),x(this,"contentType",u,this),x(this,"size",f,this),x(this,"uploadedSize",p,this),x(this,"filename",d,this),x(this,"index",m,this),x(this,"uploadKey",h,this),x(this,"remoteFile",y,this),x(this,"awsId",b,this),x(this,"uploadProgress",v,this),x(this,"uploaded",g,this),x(this,"duration",w,this),x(this,"readableSpeed",E,this),this.params=function(){var e={name:t.name};return t.remoteFile?e.remote_file_data=t.remoteFile:e.file=JSON.stringify({id:t.awsId,storage:"global_cache",metadata:{filename:t.filename,mime_type:t.contentType,size:t.size}}),e}}var t,n,r;return t=e,(n=[{key:"setFile",value:function(e){var t=this;this.filename=e.name,this.name=e.name,this.index=e.index,this.size=e.size,this.contentType=e.type,this.generateAwsID();var n=new Audio(e.preview);n.addEventListener("loadedmetadata",(function(){n.duration!==1/0?t.duration=n.duration:t.duration=0}))}},{key:"generateAwsID",value:function(){var e=this.name.split(".");this.awsId=O()(),e.length>1&&(this.awsId=this.awsId+"."+e[e.length-1])}},{key:"setProgress",value:function(e,t){this.uploadProgress=100*e,this.readableSpeed=t.readableSpeed,this.uploadedSize=t.totalUploaded}},{key:"setFinished",value:function(e){e&&(this.awsId=e.replace("cache/","")),this.uploadProgress=100,this.uploaded=!0}},{key:"isFileSet",get:function(){return!!this.filename}},{key:"sizeInMb",get:function(){return(this.size/Math.pow(10,6)).toFixed(1)}},{key:"uploadedSizeInMb",get:function(){return(this.uploadedSize/Math.pow(10,6)).toFixed(1)}}])&&S(t.prototype,n),r&&S(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),s=j(l.prototype,"id",[_.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=j(l.prototype,"name",[_.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),u=j(l.prototype,"contentType",[_.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=j(l.prototype,"size",[_.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),p=j(l.prototype,"uploadedSize",[_.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),d=j(l.prototype,"filename",[_.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=j(l.prototype,"index",[_.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=j(l.prototype,"uploadKey",[_.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=j(l.prototype,"remoteFile",[_.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=j(l.prototype,"awsId",[_.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=j(l.prototype,"uploadProgress",[_.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),g=j(l.prototype,"uploaded",[_.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),w=j(l.prototype,"duration",[_.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),E=j(l.prototype,"readableSpeed",[_.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j(l.prototype,"setFile",[r],Object.getOwnPropertyDescriptor(l.prototype,"setFile"),l.prototype),j(l.prototype,"generateAwsID",[o],Object.getOwnPropertyDescriptor(l.prototype,"generateAwsID"),l.prototype),j(l.prototype,"setProgress",[a],Object.getOwnPropertyDescriptor(l.prototype,"setProgress"),l.prototype),j(l.prototype,"setFinished",[i],Object.getOwnPropertyDescriptor(l.prototype,"setFinished"),l.prototype),j(l.prototype,"isFileSet",[_.computed],Object.getOwnPropertyDescriptor(l.prototype,"isFileSet"),l.prototype),j(l.prototype,"sizeInMb",[_.computed],Object.getOwnPropertyDescriptor(l.prototype,"sizeInMb"),l.prototype),j(l.prototype,"uploadedSizeInMb",[_.computed],Object.getOwnPropertyDescriptor(l.prototype,"uploadedSizeInMb"),l.prototype),l);t.a=C},,function(e,t,n){(function(e,r){var o,a;function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}(function(){(function(){(function(){this.Rails={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]",buttonClickSelector:{selector:"button[data-remote]:not([form]), button[data-confirm]:not([form])",exclude:"form button"},inputChangeSelector:"select[data-remote], input[data-remote], textarea[data-remote]",formSubmitSelector:"form",formInputClickSelector:"form input[type=submit], form input[type=image], form button[type=submit], form button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])",formDisableSelector:"input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled",formEnableSelector:"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled",fileInputSelector:"input[name][type=file]:not([disabled])",linkDisableSelector:"a[data-disable-with], a[data-disable]",buttonDisableSelector:"button[data-remote][data-disable-with], button[data-remote][data-disable]"}}).call(this)}).call(this);var l=this.Rails;(function(){(function(){var e;e=null,l.loadCSPNonce=function(){var t;return e=null!=(t=document.querySelector("meta[name=csp-nonce]"))?t.content:void 0},l.cspNonce=function(){return null!=e?e:l.loadCSPNonce()}}).call(this),function(){var e,t;t=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector,l.matches=function(e,n){return null!=n.exclude?t.call(e,n.selector)&&!t.call(e,n.exclude):t.call(e,n)},e="_ujsData",l.getData=function(t,n){var r;return null!=(r=t[e])?r[n]:void 0},l.setData=function(t,n,r){return null==t[e]&&(t[e]={}),t[e][n]=r},l.$=function(e){return Array.prototype.slice.call(document.querySelectorAll(e))}}.call(this),function(){var e,t,n;e=l.$,n=l.csrfToken=function(){var e;return(e=document.querySelector("meta[name=csrf-token]"))&&e.content},t=l.csrfParam=function(){var e;return(e=document.querySelector("meta[name=csrf-param]"))&&e.content},l.CSRFProtection=function(e){var t;if(null!=(t=n()))return e.setRequestHeader("X-CSRF-Token",t)},l.refreshCSRFTokens=function(){var r,o;if(o=n(),r=t(),null!=o&&null!=r)return e('form input[name="'+r+'"]').forEach((function(e){return e.value=o}))}}.call(this),function(){var e,t,n,r;n=l.matches,"function"!=typeof(e=window.CustomEvent)&&((e=function(e,t){var n;return(n=document.createEvent("CustomEvent")).initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}).prototype=window.Event.prototype,r=e.prototype.preventDefault,e.prototype.preventDefault=function(){var e;return e=r.call(this),this.cancelable&&!this.defaultPrevented&&Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}}),e}),t=l.fire=function(t,n,r){var o;return o=new e(n,{bubbles:!0,cancelable:!0,detail:r}),t.dispatchEvent(o),!o.defaultPrevented},l.stopEverything=function(e){return t(e.target,"ujs:everythingStopped"),e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()},l.delegate=function(e,t,r,o){return e.addEventListener(r,(function(e){var r;for(r=e.target;r instanceof Element&&!n(r,t);)r=r.parentNode;if(r instanceof Element&&!1===o.call(r,e))return e.preventDefault(),e.stopPropagation()}))}}.call(this),function(){var e,t,n,r,o,a;r=l.cspNonce,t=l.CSRFProtection,l.fire,e={"*":"*/*",text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript",script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},l.ajax=function(e){var t;return e=o(e),t=n(e,(function(){var n,r;return r=a(null!=(n=t.response)?n:t.responseText,t.getResponseHeader("Content-Type")),2===Math.floor(t.status/100)?"function"==typeof e.success&&e.success(r,t.statusText,t):"function"==typeof e.error&&e.error(r,t.statusText,t),"function"==typeof e.complete?e.complete(t,t.statusText):void 0})),!(null!=e.beforeSend&&!e.beforeSend(t,e))&&(t.readyState===XMLHttpRequest.OPENED?t.send(e.data):void 0)},o=function(t){return t.url=t.url||location.href,t.type=t.type.toUpperCase(),"GET"===t.type&&t.data&&(t.url.indexOf("?")<0?t.url+="?"+t.data:t.url+="&"+t.data),null==e[t.dataType]&&(t.dataType="*"),t.accept=e[t.dataType],"*"!==t.dataType&&(t.accept+=", */*; q=0.01"),t},n=function(e,n){var r;return(r=new XMLHttpRequest).open(e.type,e.url,!0),r.setRequestHeader("Accept",e.accept),"string"==typeof e.data&&r.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),e.crossDomain||r.setRequestHeader("X-Requested-With","XMLHttpRequest"),t(r),r.withCredentials=!!e.withCredentials,r.onreadystatechange=function(){if(r.readyState===XMLHttpRequest.DONE)return n(r)},r},a=function(e,t){var n,o;if("string"==typeof e&&"string"==typeof t)if(t.match(/\bjson\b/))try{e=JSON.parse(e)}catch(e){}else if(t.match(/\b(?:java|ecma)script\b/))(o=document.createElement("script")).setAttribute("nonce",r()),o.text=e,document.head.appendChild(o).parentNode.removeChild(o);else if(t.match(/\b(xml|html|svg)\b/)){n=new DOMParser,t=t.replace(/;.+/,"");try{e=n.parseFromString(e,t)}catch(e){}}return e},l.href=function(e){return e.href},l.isCrossDomain=function(e){var t,n;(t=document.createElement("a")).href=location.href,n=document.createElement("a");try{return n.href=e,!((!n.protocol||":"===n.protocol)&&!n.host||t.protocol+"//"+t.host==n.protocol+"//"+n.host)}catch(e){return e,!0}}}.call(this),function(){var e,t;e=l.matches,t=function(e){return Array.prototype.slice.call(e)},l.serializeElement=function(n,r){var o,a;return o=[n],e(n,"form")&&(o=t(n.elements)),a=[],o.forEach((function(n){if(n.name&&!n.disabled&&!e(n,"fieldset[disabled] *"))return e(n,"select")?t(n.options).forEach((function(e){if(e.selected)return a.push({name:n.name,value:e.value})})):n.checked||-1===["radio","checkbox","submit"].indexOf(n.type)?a.push({name:n.name,value:n.value}):void 0})),r&&a.push(r),a.map((function(e){return null!=e.name?encodeURIComponent(e.name)+"="+encodeURIComponent(e.value):e})).join("&")},l.formElements=function(n,r){return e(n,"form")?t(n.elements).filter((function(t){return e(t,r)})):t(n.querySelectorAll(r))}}.call(this),function(){var e,t,n;t=l.fire,n=l.stopEverything,l.handleConfirm=function(t){if(!e(this))return n(t)},l.confirm=function(e,t){return confirm(e)},e=function(e){var n,r,o;if(!(o=e.getAttribute("data-confirm")))return!0;if(n=!1,t(e,"confirm")){try{n=l.confirm(o,e)}catch(e){}r=t(e,"confirm:complete",[n])}return n&&r}}.call(this),function(){var e,t,n,r,o,a,i,s,c,u,f,p;u=l.matches,s=l.getData,f=l.setData,p=l.stopEverything,i=l.formElements,l.handleDisabledElement=function(e){if(this,this.disabled)return p(e)},l.enableElement=function(e){var t;if(e instanceof Event){if(c(e))return;t=e.target}else t=e;return u(t,l.linkDisableSelector)?a(t):u(t,l.buttonDisableSelector)||u(t,l.formEnableSelector)?r(t):u(t,l.formSubmitSelector)?o(t):void 0},l.disableElement=function(r){var o;return o=r instanceof Event?r.target:r,u(o,l.linkDisableSelector)?n(o):u(o,l.buttonDisableSelector)||u(o,l.formDisableSelector)?e(o):u(o,l.formSubmitSelector)?t(o):void 0},n=function(e){var t;if(!s(e,"ujs:disabled"))return null!=(t=e.getAttribute("data-disable-with"))&&(f(e,"ujs:enable-with",e.innerHTML),e.innerHTML=t),e.addEventListener("click",p),f(e,"ujs:disabled",!0)},a=function(e){var t;return null!=(t=s(e,"ujs:enable-with"))&&(e.innerHTML=t,f(e,"ujs:enable-with",null)),e.removeEventListener("click",p),f(e,"ujs:disabled",null)},t=function(t){return i(t,l.formDisableSelector).forEach(e)},e=function(e){var t;if(!s(e,"ujs:disabled"))return null!=(t=e.getAttribute("data-disable-with"))&&(u(e,"button")?(f(e,"ujs:enable-with",e.innerHTML),e.innerHTML=t):(f(e,"ujs:enable-with",e.value),e.value=t)),e.disabled=!0,f(e,"ujs:disabled",!0)},o=function(e){return i(e,l.formEnableSelector).forEach(r)},r=function(e){var t;return null!=(t=s(e,"ujs:enable-with"))&&(u(e,"button")?e.innerHTML=t:e.value=t,f(e,"ujs:enable-with",null)),e.disabled=!1,f(e,"ujs:disabled",null)},c=function(e){var t,n;return null!=(null!=(n=null!=(t=e.detail)?t[0]:void 0)?n.getResponseHeader("X-Xhr-Redirect"):void 0)}}.call(this),function(){var e;e=l.stopEverything,l.handleMethod=function(t){var n,r,o,a,i,s,c;if(c=(s=this).getAttribute("data-method"))return i=l.href(s),r=l.csrfToken(),n=l.csrfParam(),o=document.createElement("form"),a="<input name='_method' value='"+c+"' type='hidden' />",null==n||null==r||l.isCrossDomain(i)||(a+="<input name='"+n+"' value='"+r+"' type='hidden' />"),a+='<input type="submit" />',o.method="post",o.action=i,o.target=s.target,o.innerHTML=a,o.style.display="none",document.body.appendChild(o),o.querySelector('[type="submit"]').click(),e(t)}}.call(this),function(){var e,t,n,r,o,a,i,s,c,u=[].slice;a=l.matches,n=l.getData,s=l.setData,t=l.fire,c=l.stopEverything,e=l.ajax,r=l.isCrossDomain,i=l.serializeElement,o=function(e){var t;return null!=(t=e.getAttribute("data-remote"))&&"false"!==t},l.handleRemote=function(f){var p,d,m,h,y,b,v;return!o(h=this)||(t(h,"ajax:before")?(v=h.getAttribute("data-with-credentials"),m=h.getAttribute("data-type")||"script",a(h,l.formSubmitSelector)?(p=n(h,"ujs:submit-button"),y=n(h,"ujs:submit-button-formmethod")||h.method,b=n(h,"ujs:submit-button-formaction")||h.getAttribute("action")||location.href,"GET"===y.toUpperCase()&&(b=b.replace(/\?.*$/,"")),"multipart/form-data"===h.enctype?(d=new FormData(h),null!=p&&d.append(p.name,p.value)):d=i(h,p),s(h,"ujs:submit-button",null),s(h,"ujs:submit-button-formmethod",null),s(h,"ujs:submit-button-formaction",null)):a(h,l.buttonClickSelector)||a(h,l.inputChangeSelector)?(y=h.getAttribute("data-method"),b=h.getAttribute("data-url"),d=i(h,h.getAttribute("data-params"))):(y=h.getAttribute("data-method"),b=l.href(h),d=h.getAttribute("data-params")),e({type:y||"GET",url:b,data:d,dataType:m,beforeSend:function(e,n){return t(h,"ajax:beforeSend",[e,n])?t(h,"ajax:send",[e]):(t(h,"ajax:stopped"),!1)},success:function(){var e;return e=1<=arguments.length?u.call(arguments,0):[],t(h,"ajax:success",e)},error:function(){var e;return e=1<=arguments.length?u.call(arguments,0):[],t(h,"ajax:error",e)},complete:function(){var e;return e=1<=arguments.length?u.call(arguments,0):[],t(h,"ajax:complete",e)},crossDomain:r(b),withCredentials:null!=v&&"false"!==v}),c(f)):(t(h,"ajax:stopped"),!1))},l.formSubmitButtonClick=function(e){var t,n;if(n=(t=this).form)return t.name&&s(n,"ujs:submit-button",{name:t.name,value:t.value}),s(n,"ujs:formnovalidate-button",t.formNoValidate),s(n,"ujs:submit-button-formaction",t.getAttribute("formaction")),s(n,"ujs:submit-button-formmethod",t.getAttribute("formmethod"))},l.preventInsignificantClick=function(e){var t,n,r;if(this,r=(this.getAttribute("data-method")||"GET").toUpperCase(),t=this.getAttribute("data-params"),n=(e.metaKey||e.ctrlKey)&&"GET"===r&&!t,null!=e.button&&0!==e.button||n)return e.stopImmediatePropagation()}}.call(this),function(){var t,n,r,o,a,i,s,c,u,f,p,d,m,h,y;if(i=l.fire,r=l.delegate,c=l.getData,t=l.$,y=l.refreshCSRFTokens,n=l.CSRFProtection,m=l.loadCSPNonce,a=l.enableElement,o=l.disableElement,f=l.handleDisabledElement,u=l.handleConfirm,h=l.preventInsignificantClick,d=l.handleRemote,s=l.formSubmitButtonClick,p=l.handleMethod,null!=e&&null!=e.ajax){if(e.rails)throw new Error("If you load both jquery_ujs and rails-ujs, use rails-ujs only.");e.rails=l,e.ajaxPrefilter((function(e,t,r){if(!e.crossDomain)return n(r)}))}l.start=function(){if(window._rails_loaded)throw new Error("rails-ujs has already been loaded!");return window.addEventListener("pageshow",(function(){return t(l.formEnableSelector).forEach((function(e){if(c(e,"ujs:disabled"))return a(e)})),t(l.linkDisableSelector).forEach((function(e){if(c(e,"ujs:disabled"))return a(e)}))})),r(document,l.linkDisableSelector,"ajax:complete",a),r(document,l.linkDisableSelector,"ajax:stopped",a),r(document,l.buttonDisableSelector,"ajax:complete",a),r(document,l.buttonDisableSelector,"ajax:stopped",a),r(document,l.linkClickSelector,"click",h),r(document,l.linkClickSelector,"click",f),r(document,l.linkClickSelector,"click",u),r(document,l.linkClickSelector,"click",o),r(document,l.linkClickSelector,"click",d),r(document,l.linkClickSelector,"click",p),r(document,l.buttonClickSelector,"click",h),r(document,l.buttonClickSelector,"click",f),r(document,l.buttonClickSelector,"click",u),r(document,l.buttonClickSelector,"click",o),r(document,l.buttonClickSelector,"click",d),r(document,l.inputChangeSelector,"change",f),r(document,l.inputChangeSelector,"change",u),r(document,l.inputChangeSelector,"change",d),r(document,l.formSubmitSelector,"submit",f),r(document,l.formSubmitSelector,"submit",u),r(document,l.formSubmitSelector,"submit",d),r(document,l.formSubmitSelector,"submit",(function(e){return setTimeout((function(){return o(e)}),13)})),r(document,l.formSubmitSelector,"ajax:send",o),r(document,l.formSubmitSelector,"ajax:complete",a),r(document,l.formInputClickSelector,"click",h),r(document,l.formInputClickSelector,"click",f),r(document,l.formInputClickSelector,"click",u),r(document,l.formInputClickSelector,"click",s),document.addEventListener("DOMContentLoaded",y),document.addEventListener("DOMContentLoaded",m),window._rails_loaded=!0},window.Rails===l&&i(document,"rails:attachBindings")&&l.start()}.call(this)}).call(this),"object"===i(r)&&r.exports?r.exports=l:void 0===(a="function"==typeof(o=l)?o.call(t,n,t,r):o)||(r.exports=a)}).call(this)}).call(this,n(129),n(101)(e))},function(e,t,n){var r,o,a,i;function l(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,a=function(e,t){if("object"!==d(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===d(a)?a:String(a)),r)}var o,a}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}i=function(e,t,n,r){"use strict";var o=".".concat("bs.collapse"),a="show".concat(o),i="shown".concat(o),s="hide".concat(o),p="hidden".concat(o),d="click".concat(o).concat(".data-api"),m="show",h="collapse",y="collapsing",b=":scope .".concat(h," .").concat(h),v='[data-bs-toggle="collapse"]',g={parent:null,toggle:!0},w={parent:"(null|element)",toggle:"boolean"},E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(k,e);var o,d,E,_=f(k);function k(e,t){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,k),(r=_.call(this,e,t))._isTransitioning=!1,r._triggerArray=[];var o,a=l(n.find(v));try{for(a.s();!(o=a.n()).done;){var i=o.value,s=n.getSelectorFromElement(i),c=n.find(s).filter((function(e){return e===r._element}));null!==s&&c.length&&r._triggerArray.push(i)}}catch(e){a.e(e)}finally{a.f()}return r._initializeChildren(),r._config.parent||r._addAriaAndCollapsedClass(r._triggerArray,r._isShown()),r._config.toggle&&r.toggle(),r}return o=k,d=[{key:"toggle",value:function(){this._isShown()?this.hide():this.show()}},{key:"show",value:function(){var e=this;if(!this._isTransitioning&&!this._isShown()){var n=[];if(this._config.parent&&(n=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((function(t){return t!==e._element})).map((function(e){return k.getOrCreateInstance(e,{toggle:!1})}))),!(n.length&&n[0]._isTransitioning||t.trigger(this._element,a).defaultPrevented)){var r,o=l(n);try{for(o.s();!(r=o.n()).done;)r.value.hide()}catch(e){o.e(e)}finally{o.f()}var s=this._getDimension();this._element.classList.remove(h),this._element.classList.add(y),this._element.style[s]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;var c=s[0].toUpperCase()+s.slice(1),u="scroll".concat(c);this._queueCallback((function(){e._isTransitioning=!1,e._element.classList.remove(y),e._element.classList.add(h,m),e._element.style[s]="",t.trigger(e._element,i)}),this._element,!0),this._element.style[s]="".concat(this._element[u],"px")}}}},{key:"hide",value:function(){var e=this;if(!this._isTransitioning&&this._isShown()&&!t.trigger(this._element,s).defaultPrevented){var o=this._getDimension();this._element.style[o]="".concat(this._element.getBoundingClientRect()[o],"px"),r.reflow(this._element),this._element.classList.add(y),this._element.classList.remove(h,m);var a,i=l(this._triggerArray);try{for(i.s();!(a=i.n()).done;){var c=a.value,u=n.getElementFromSelector(c);u&&!this._isShown(u)&&this._addAriaAndCollapsedClass([c],!1)}}catch(e){i.e(e)}finally{i.f()}this._isTransitioning=!0,this._element.style[o]="",this._queueCallback((function(){e._isTransitioning=!1,e._element.classList.remove(y),e._element.classList.add(h),t.trigger(e._element,p)}),this._element,!0)}}},{key:"_isShown",value:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._element).classList.contains(m)}},{key:"_configAfterMerge",value:function(e){return e.toggle=Boolean(e.toggle),e.parent=r.getElement(e.parent),e}},{key:"_getDimension",value:function(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}},{key:"_initializeChildren",value:function(){if(this._config.parent){var e,t=l(this._getFirstLevelChildren(v));try{for(t.s();!(e=t.n()).done;){var r=e.value,o=n.getElementFromSelector(r);o&&this._addAriaAndCollapsedClass([r],this._isShown(o))}}catch(e){t.e(e)}finally{t.f()}}}},{key:"_getFirstLevelChildren",value:function(e){var t=n.find(b,this._config.parent);return n.find(e,this._config.parent).filter((function(e){return!t.includes(e)}))}},{key:"_addAriaAndCollapsedClass",value:function(e,t){if(e.length){var n,r=l(e);try{for(r.s();!(n=r.n()).done;){var o=n.value;o.classList.toggle("collapsed",!t),o.setAttribute("aria-expanded",t)}}catch(e){r.e(e)}finally{r.f()}}}}],E=[{key:"Default",get:function(){return g}},{key:"DefaultType",get:function(){return w}},{key:"NAME",get:function(){return"collapse"}},{key:"jQueryInterface",value:function(e){var t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each((function(){var n=k.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'.concat(e,'"'));n[e]()}}))}}],d&&c(o.prototype,d),E&&c(o,E),Object.defineProperty(o,"prototype",{writable:!1}),k}(e);return t.on(document,d,v,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();var t,r=l(n.getMultipleElementsFromSelector(this));try{for(r.s();!(t=r.n()).done;){var o=t.value;E.getOrCreateInstance(o,{toggle:!1}).toggle()}}catch(e){r.e(e)}finally{r.f()}})),r.defineJQueryPlugin(E),E},"object"===d(t)&&void 0!==e?e.exports=i(n(131),n(62),n(84),n(44)):(o=[n(131),n(62),n(84),n(44)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a;function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}o=[e,n(450)],r=function(e,t){"use strict";var n=r(t);function r(e){return e&&e.__esModule?e:{default:e}}var o="function"==typeof Symbol&&"symbol"===i(Symbol.iterator)?function(e){return i(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":i(e)};function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=function(){function e(t){a(this,e),this.resolveOptions(t),this.initSelection()}return l(e,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=r+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,n.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,n.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":o(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}();e.exports=s},void 0===(a="function"==typeof r?r.apply(t,o):r)||(e.exports=a)},function(e,t){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),o=document.createRange();o.selectNodeContents(e),r.removeAllRanges(),r.addRange(o),t=r.toString()}return t}},function(e,t){function n(){}n.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function o(){r.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,o=n.length;r<o;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],o=[];if(r&&t)for(var a=0,i=r.length;a<i;a++)r[a].fn!==t&&r[a].fn._!==t&&o.push(r[a]);return o.length?n[e]=o:delete n[e],this}},e.exports=n,e.exports.TinyEmitter=n},function(e,t,n){var r=n(453),o=n(454);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(r.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(r.string(e))return function(e,t,n){return o(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t,n){var r=n(455);function o(e,t,n,r,o){var i=a.apply(this,arguments);return e.addEventListener(n,i,o),{destroy:function(){e.removeEventListener(n,i,o)}}}function a(e,t,n,o){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&o.call(e,n)}}e.exports=function(e,t,n,r,a){return"function"==typeof e.addEventListener?o.apply(null,arguments):"function"==typeof n?o.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return o(e,t,n,r,a)})))}},function(e,t){var n=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var r=Element.prototype;r.matches=r.matchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector}e.exports=function(e,t){for(;e&&e.nodeType!==n;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},function(e,t,n){var r=n(468),o=n(1539),a=n(1540),i="[object Null]",l="[object Undefined]",s=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?l:i:s&&s in Object(e)?o(e):a(e)}},function(e,t,n){var r=n(1548),o=n(1551);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t,n){var r=n(435),o=n(421),a=n(581),i=n(472),l=n(459),s="prototype",c=function(e,t,n){var u,f,p,d=e&c.F,m=e&c.G,h=e&c.S,y=e&c.P,b=e&c.B,v=e&c.W,g=m?o:o[t]||(o[t]={}),w=g[s],E=m?r:h?r[t]:(r[t]||{})[s];for(u in m&&(n=t),n)(f=!d&&E&&void 0!==E[u])&&l(g,u)||(p=f?E[u]:n[u],g[u]=m&&"function"!=typeof E[u]?n[u]:b&&f?a(p,r):v&&E[u]==p?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[s]=e[s],t}(p):y&&"function"==typeof p?a(Function.call,p):p,y&&((g.virtual||(g.virtual={}))[u]=p,e&c.R&&w&&!w[u]&&i(w,u,p)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SoundOffIcon=t.SoundOnIcon=t.NextIcon=t.PreviousIcon=t.PauseIcon=t.PlayIcon=void 0;var r,o=n(0),a=(r=o)&&r.__esModule?r:{default:r};t.PlayIcon=function(){return a.default.createElement("svg",{className:"Icon PlayIcon",viewBox:"0 0 100 100"},a.default.createElement("polygon",{className:"Icon-shape",points:"24 92 24 7 100 49.4955227"}))},t.PauseIcon=function(){return a.default.createElement("svg",{className:"Icon PauseIcon",viewBox:"0 0 100 100"},a.default.createElement("g",{className:"Icon-group"},a.default.createElement("rect",{className:"Icon-shape",x:"58",y:"11",width:"21",height:"78"}),a.default.createElement("rect",{className:"Icon-shape",x:"22",y:"11",width:"21",height:"78"})))},t.PreviousIcon=function(){return a.default.createElement("svg",{className:"Icon PreviousIcon",viewBox:"0 0 100 100"},a.default.createElement("polygon",{className:"Icon-shape",points:"85 12.6092632 27.3529412 44.5358947 27.3529412 11 15 11 15 89 27.3529412 89 27.3529412 54.368 85 86.3028421"}))},t.NextIcon=function(){return a.default.createElement("svg",{className:"Icon NextIcon",viewBox:"0 0 100 100"},a.default.createElement("polygon",{className:"Icon-shape",points:"72.6470588 11 72.6470588 44.1141176 15 12.0911765 15 85.9988235 72.6470588 53.9717647 72.6470588 89.2352941 85 89.2352941 85 11"}))},t.SoundOnIcon=function(){return a.default.createElement("svg",{className:"Icon SoundOnIcon",viewBox:"0 0 100 100"},a.default.createElement("g",{className:"Icon-shape"},a.default.createElement("path",{d:"M28.0748663,36.3636364 L0,36.3636364 L0,65.9090909 L30.4812834,65.9090909 L54.5454545,88.6363636 L54.5454545,11.3636364 L28.0748663,36.3636364 Z"}),a.default.createElement("path",{d:"M84.6032335,82.4592965 C94.5340754,74.7600841 100.468182,62.9599381 100.468182,50.1791986 C100.468182,38.1777252 95.2347685,27.0146095 86.3177905,19.2913999 L80.3660059,26.1631456 C87.313543,32.1805749 91.3772727,40.8487007 91.3772727,50.1791986 C91.3772727,60.1143215 86.7696647,69.2766862 79.0331302,75.2746895 L84.6032335,82.4592965 L84.6032335,82.4592965 Z"}),a.default.createElement("path",{d:"M68.6941426,71.5946428 C75.48494,66.3298533 79.5454545,58.2554001 79.5454545,49.5119787 C79.5454545,41.3018627 75.9644339,33.663378 69.8670756,28.382309 L63.9152911,35.2540546 C68.0432084,38.8293434 70.4545455,43.9728382 70.4545455,49.5119787 C70.4545455,55.4097835 67.7205293,60.8464555 63.1240393,64.4100358 L68.6941426,71.5946428 L68.6941426,71.5946428 Z"})))},t.SoundOffIcon=function(){return a.default.createElement("svg",{className:"Icon SoundOffIcon",viewBox:"0 0 100 100"},a.default.createElement("g",{className:"Icon-shape"},a.default.createElement("path",{d:"M28.0748663,36.3636364 L0,36.3636364 L0,65.9090909 L30.4812834,65.9090909 L54.5454545,88.6363636 L54.5454545,11.3636364 L28.0748663,36.3636364 Z"}),a.default.createElement("polygon",{points:"69.513151 44.1232126 87.6949692 62.3050308 90.9090909 65.5191526 97.3373344 59.0909091 94.1232126 55.8767874 75.9413945 37.6949692 72.7272727 34.4808474 66.2990293 40.9090909"}),a.default.createElement("polygon",{points:"75.9413945 62.3050308 94.1232126 44.1232126 97.3373344 40.9090909 90.9090909 34.4808474 87.6949692 37.6949692 69.513151 55.8767874 66.2990293 59.0909091 72.7272727 65.5191526"})))}},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0});var o,a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),l=f(i),s=f(n(8)),c=f(n(7)),u=f(n(476));function f(e){return e&&e.__esModule?e:{default:e}}var p,d,m,h,y,b,v=(o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==r(t)&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"handleClick",value:function(e){this.props.isEnabled&&this.props.onClick(e)}},{key:"render",value:function(){var e=this.props,t=e.isEnabled,n=e.className,r=e.extraClasses,o=e.style,a=e.children;return l.default.createElement("button",{className:(0,c.default)(n,{isEnabled:t},r),style:o,disabled:!t,onClick:this.handleClick},a)}}]),t}(i.Component),p=o.prototype,d="handleClick",m=[u.default],h=Object.getOwnPropertyDescriptor(o.prototype,"handleClick"),y=o.prototype,b={},Object.keys(h).forEach((function(e){b[e]=h[e]})),b.enumerable=!!b.enumerable,b.configurable=!!b.configurable,("value"in b||b.initializer)&&(b.writable=!0),b=m.slice().reverse().reduce((function(e,t){return t(p,d,e)||e}),b),y&&void 0!==b.initializer&&(b.value=b.initializer?b.initializer.call(y):void 0,b.initializer=void 0),void 0===b.initializer&&(Object.defineProperty(p,d,b),b=null),o);v.propTypes={onClick:s.default.func.isRequired,isEnabled:s.default.bool,className:s.default.string,extraClasses:s.default.string,style:s.default.object,children:s.default.node},v.defaultProps={isEnabled:!0,className:"Button",extraClasses:"",style:{},children:null},t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.withChildClasses=t.withCustomizableClasses=t.withChildrenStyles=t.compose=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=l(n(8)),a=l(n(1677)),i=l(n(1678));function l(e){return e&&e.__esModule?e:{default:e}}t.compose=i.default,t.withChildrenStyles=(0,a.default)((function(e){return e.propTypes=r({},e.propTypes||{},{childrenStyles:o.default.object}),e.defaultProps=r({},e.defaultProps||{},{childrenStyles:{}}),e})),t.withCustomizableClasses=(0,a.default)((function(e,t){return t.propTypes=r({},t.propTypes||{},{className:o.default.string,extraClasses:o.default.string}),t.defaultProps=r({},t.defaultProps||{},{className:e,extraClasses:""}),t})),t.withChildClasses=(0,a.default)((function(e){return e.propTypes=r({},e.propTypes||{},{childClasses:o.default.object}),e.defaultProps=r({},e.defaultProps||{},{childClasses:{}}),e}))},function(e,t,n){e.exports=n.p+"media/images/app/embed/sonix-embed-logo-6ad3f7ce8d319b30fe8205d313af0c96.png"},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0});var o,a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),l=(o=i)&&o.__esModule?o:{default:o},s=n(555);var c={position:"relative"},u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==r(t)&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setRef=n.setRef.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidUpdate",value:function(e){!e.active&&this.props.active&&(0,s.confetti)(this.container,this.props.config)}},{key:"setRef",value:function(e){this.container=e}},{key:"render",value:function(){return l.default.createElement("div",{className:this.props.className,style:c,ref:this.setRef})}}]),t}(i.Component);t.default=u},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e,t)||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 a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var i=function(e){var t=o(Object(r.useState)(e),2),n=t[0],a=t[1];return[n,function(){return a(!n)}]}},,,function(e,t,n){var r=n(415).Symbol;e.exports=r},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(531),o=n(1572),a=n(1574);e.exports=function(e,t){return a(o(e,t,r),e+"")}},function(e,t,n){var r=n(566),o=n(570);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){var r=n(436),o=n(494);e.exports=n(437)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(474);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(1278),o=n(584);e.exports=function(e){return r(o(e))}},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e){var t=void 0;return"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?t=Reflect.ownKeys(e.prototype):(t=Object.getOwnPropertyNames(e.prototype),"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e.prototype)))),t.forEach((function(t){if("constructor"!==t){var n=Object.getOwnPropertyDescriptor(e.prototype,t);"function"==typeof n.value&&Object.defineProperty(e.prototype,t,a(e,t,n))}})),e}function a(e,t,n){var o=n.value;if("function"!=typeof o)throw new Error("@autobind decorator can only be applied to methods not: "+r(o));var a=!1;return{configurable:!0,get:function(){if(a||this===e.prototype||this.hasOwnProperty(t))return o;var n=o.bind(this);return a=!0,Object.defineProperty(this,t,{value:n,configurable:!0,writable:!0}),a=!1,n}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 1===t.length?o.apply(void 0,t):a.apply(void 0,t)},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEmptyImage=t.NativeTypes=void 0,t.default=function(e){return new r.default(e)};var r=i(n(1613)),o=i(n(1626)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(580));function i(e){return e&&e.__esModule?e:{default:e}}t.NativeTypes=a,t.getEmptyImage=o.default},function(e,t,n){"use strict";var r=n(0),o=n.n(r),a=n(8),i=n.n(a),l=n(500),s=n.n(l),c="undefined"==typeof document||!document||!document.createElement||"multiple"in document.createElement("input");function u(e,t){return"application/x-moz-file"===e.type||s()(e,t)}function f(e){e.preventDefault()}var p={borderStyle:"solid",borderColor:"#c66",backgroundColor:"#eee"},d={opacity:.5},m={borderStyle:"solid",borderColor:"#6c6",backgroundColor:"#eee"},h={width:200,height:200,borderWidth:2,borderColor:"#666",borderStyle:"dashed",borderRadius:5};function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}var b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function g(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var w=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==y(t)&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.renderChildren=function(e,t,n,o){return"function"==typeof e?e(b({},r.state,{isDragActive:t,isDragAccept:n,isDragReject:o})):e},r.composeHandlers=r.composeHandlers.bind(r),r.onClick=r.onClick.bind(r),r.onDocumentDrop=r.onDocumentDrop.bind(r),r.onDragEnter=r.onDragEnter.bind(r),r.onDragLeave=r.onDragLeave.bind(r),r.onDragOver=r.onDragOver.bind(r),r.onDragStart=r.onDragStart.bind(r),r.onDrop=r.onDrop.bind(r),r.onFileDialogCancel=r.onFileDialogCancel.bind(r),r.onInputElementClick=r.onInputElementClick.bind(r),r.setRef=r.setRef.bind(r),r.setRefs=r.setRefs.bind(r),r.isFileDialogActive=!1,r.state={draggedFiles:[],acceptedFiles:[],rejectedFiles:[]},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+y(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),v(t,[{key:"componentDidMount",value:function(){var e=this.props.preventDropOnDocument;this.dragTargets=[],e&&(document.addEventListener("dragover",f,!1),document.addEventListener("drop",this.onDocumentDrop,!1)),this.fileInputEl.addEventListener("click",this.onInputElementClick,!1),window.addEventListener("focus",this.onFileDialogCancel,!1)}},{key:"componentWillUnmount",value:function(){this.props.preventDropOnDocument&&(document.removeEventListener("dragover",f),document.removeEventListener("drop",this.onDocumentDrop)),null!=this.fileInputEl&&this.fileInputEl.removeEventListener("click",this.onInputElementClick,!1),window.removeEventListener("focus",this.onFileDialogCancel,!1)}},{key:"composeHandlers",value:function(e){return this.props.disabled?null:e}},{key:"onDocumentDrop",value:function(e){this.node&&this.node.contains(e.target)||(e.preventDefault(),this.dragTargets=[])}},{key:"onDragStart",value:function(e){this.props.onDragStart&&this.props.onDragStart.call(this,e)}},{key:"onDragEnter",value:function(e){var t=this;e.preventDefault(),-1===this.dragTargets.indexOf(e.target)&&this.dragTargets.push(e.target),Promise.resolve(this.props.getDataTransferItems(e)).then((function(e){t.setState({isDragActive:!0,draggedFiles:e})})),this.props.onDragEnter&&this.props.onDragEnter.call(this,e)}},{key:"onDragOver",value:function(e){e.preventDefault(),e.stopPropagation();try{e.dataTransfer.dropEffect=this.isFileDialogActive?"none":"copy"}catch(e){}return this.props.onDragOver&&this.props.onDragOver.call(this,e),!1}},{key:"onDragLeave",value:function(e){var t=this;e.preventDefault(),this.dragTargets=this.dragTargets.filter((function(n){return n!==e.target&&t.node.contains(n)})),this.dragTargets.length>0||(this.setState({isDragActive:!1,draggedFiles:[]}),this.props.onDragLeave&&this.props.onDragLeave.call(this,e))}},{key:"onDrop",value:function(e){var t=this,n=this.props,r=n.onDrop,o=n.onDropAccepted,a=n.onDropRejected,i=n.multiple,l=n.disablePreview,s=n.accept,c=n.getDataTransferItems;e.preventDefault(),this.dragTargets=[],this.isFileDialogActive=!1,this.draggedFiles=null,this.setState({isDragActive:!1,draggedFiles:[]}),Promise.resolve(c(e)).then((function(n){var c=[],f=[];n.forEach((function(e){if(!l)try{e.preview=window.URL.createObjectURL(e)}catch(e){0}u(e,s)&&function(e,t,n){return e.size<=t&&e.size>=n}(e,t.props.maxSize,t.props.minSize)?c.push(e):f.push(e)})),i||f.push.apply(f,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(c.splice(1))),r&&r.call(t,c,f,e),f.length>0&&a&&a.call(t,f,e),c.length>0&&o&&o.call(t,c,e)}))}},{key:"onClick",value:function(e){var t=this.props,n=t.onClick;t.disableClick||(e.stopPropagation(),n&&n.call(this,e),!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}(e)||function(e){return-1!==e.indexOf("Edge/")}(e)}()?this.open():setTimeout(this.open.bind(this),0))}},{key:"onInputElementClick",value:function(e){e.stopPropagation(),this.props.inputProps&&this.props.inputProps.onClick&&this.props.inputProps.onClick()}},{key:"onFileDialogCancel",value:function(){var e=this,t=this.props.onFileDialogCancel;this.isFileDialogActive&&setTimeout((function(){null!=e.fileInputEl&&(e.fileInputEl.files.length||(e.isFileDialogActive=!1));"function"==typeof t&&t()}),300)}},{key:"setRef",value:function(e){this.node=e}},{key:"setRefs",value:function(e){this.fileInputEl=e}},{key:"open",value:function(){this.isFileDialogActive=!0,this.fileInputEl.value=null,this.fileInputEl.click()}},{key:"render",value:function(){var e=this.props,t=e.accept,n=e.acceptClassName,r=e.activeClassName,a=e.children,i=e.disabled,l=e.disabledClassName,s=e.inputProps,f=e.multiple,y=e.name,v=e.rejectClassName,w=g(e,["accept","acceptClassName","activeClassName","children","disabled","disabledClassName","inputProps","multiple","name","rejectClassName"]),E=w.acceptStyle,_=w.activeStyle,k=w.className,O=void 0===k?"":k,x=w.disabledStyle,S=w.rejectStyle,j=w.style,C=g(w,["acceptStyle","activeStyle","className","disabledStyle","rejectStyle","style"]),D=this.state,N=D.isDragActive,P=D.draggedFiles,T=P.length,M=f||T<=1,A=T>0&&function(e,t){return e.every((function(e){return u(e,t)}))}(P,this.props.accept),L=T>0&&(!A||!M),R=!(O||j||_||E||S||x);N&&r&&(O+=" "+r),A&&n&&(O+=" "+n),L&&v&&(O+=" "+v),i&&l&&(O+=" "+l),R&&(j=h,_=m,E=m,S=p,x=d);var F=b({position:"relative"},j);_&&N&&(F=b({},F,_)),E&&A&&(F=b({},F,E)),S&&L&&(F=b({},F,S)),x&&i&&(F=b({},F,x));var z={accept:t,disabled:i,type:"file",style:b({position:"absolute",top:0,right:0,bottom:0,left:0,opacity:1e-5,pointerEvents:"none"},s.style),multiple:c&&f,ref:this.setRefs,onChange:this.onDrop,autoComplete:"off"};y&&y.length&&(z.name=y);C.acceptedFiles,C.preventDropOnDocument,C.disablePreview,C.disableClick,C.onDropAccepted,C.onDropRejected,C.onFileDialogCancel,C.maxSize,C.minSize,C.getDataTransferItems;var B=g(C,["acceptedFiles","preventDropOnDocument","disablePreview","disableClick","onDropAccepted","onDropRejected","onFileDialogCancel","maxSize","minSize","getDataTransferItems"]);return o.a.createElement("div",b({className:O,style:F},B,{onClick:this.composeHandlers(this.onClick),onDragStart:this.composeHandlers(this.onDragStart),onDragEnter:this.composeHandlers(this.onDragEnter),onDragOver:this.composeHandlers(this.onDragOver),onDragLeave:this.composeHandlers(this.onDragLeave),onDrop:this.composeHandlers(this.onDrop),ref:this.setRef,"aria-disabled":i}),this.renderChildren(a,N,A,L),o.a.createElement("input",b({},s,z)))}}]),t}(o.a.Component);t.a=w;w.propTypes={accept:i.a.oneOfType([i.a.string,i.a.arrayOf(i.a.string)]),children:i.a.oneOfType([i.a.node,i.a.func]),disableClick:i.a.bool,disabled:i.a.bool,disablePreview:i.a.bool,preventDropOnDocument:i.a.bool,inputProps:i.a.object,multiple:i.a.bool,name:i.a.string,maxSize:i.a.number,minSize:i.a.number,className:i.a.string,activeClassName:i.a.string,acceptClassName:i.a.string,rejectClassName:i.a.string,disabledClassName:i.a.string,style:i.a.object,activeStyle:i.a.object,acceptStyle:i.a.object,rejectStyle:i.a.object,disabledStyle:i.a.object,getDataTransferItems:i.a.func,onClick:i.a.func,onDrop:i.a.func,onDropAccepted:i.a.func,onDropRejected:i.a.func,onDragStart:i.a.func,onDragEnter:i.a.func,onDragOver:i.a.func,onDragLeave:i.a.func,onFileDialogCancel:i.a.func},w.defaultProps={preventDropOnDocument:!0,disabled:!1,disablePreview:!1,disableClick:!1,inputProps:{},multiple:!0,maxSize:1/0,minSize:0,getDataTransferItems:function(e){var t=[];if(e.dataTransfer){var n=e.dataTransfer;n.files&&n.files.length?t=n.files:n.items&&n.items.length&&(t=n.items)}else e.target&&e.target.files&&(t=e.target.files);return Array.prototype.slice.call(t)}}},,,,,,,,function(e,t,n){var r=n(39);n(487).observerBatching(r.unstable_batchedUpdates)},function(e,t,n){"use strict";e.exports=n(488)},function(e,t,n){"use strict";(function(e){function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0});var o,a=n(1),i=n(0),l=(o=i)&&"object"==r(o)&&"default"in o?o.default:o;if(!i.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!a.spy)throw new Error("mobx-react-lite requires mobx at least version 4 to be available");var s=!1;function c(){return s}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function f(){var e=i.useState(0)[1];return i.useCallback((function(){e((function(e){return e+1}))}),[])}var p={};function d(){return"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:p}var m=function(e){return"function"==typeof Symbol?Symbol.for(e):"__$mobx-react "+e+"__"}("observerBatching");function h(e){return a.getDependencyTree(e)}var y,b=new Set;function v(){void 0===y&&(y=setTimeout(g,1e4))}function g(){y=void 0;var e=Date.now();b.forEach((function(t){var n=t.current;n&&e>=n.cleanAt&&(n.reaction.dispose(),t.current=null,b.delete(t))})),b.size>0&&v()}var w={};function E(e){return"observer"+e}function _(e,t,n){if(void 0===t&&(t="observed"),void 0===n&&(n=w),c())return e();var r=(n.useForceUpdate||f)(),o=l.useRef(null);if(!o.current){var i=new a.Reaction(E(t),(function(){s.mounted?r():(i.dispose(),o.current=null)})),s=function(e){return{cleanAt:Date.now()+1e4,reaction:e}}(i);o.current=s,b.add(o),v()}var u,p,d=o.current.reaction;if(l.useDebugValue(d,h),l.useEffect((function(){return b.delete(o),o.current?o.current.mounted=!0:(o.current={reaction:new a.Reaction(E(t),(function(){r()})),cleanAt:1/0},r()),function(){o.current.reaction.dispose(),o.current=null}}),[]),d.track((function(){try{u=e()}catch(e){p=e}})),p)throw p;return u}var k={$$typeof:!0,render:!0,compare:!0,type:!0};function O(e){var t=e.children||e.render;return"function"!=typeof t?null:_(t)}function x(e,t,n,o,a){var i="function"==typeof e[t],l="function"==typeof e["children"===t?"render":"children"];return i&&l?new Error("MobX Observer: Do not use children and render in the same time in`"+n):i||l?null:new Error("Invalid prop `"+a+"` of type `"+r(e[t])+"` supplied to `"+n+"`, expected `function`.")}function S(e,t){if(!t||void 0!==e){var n=l.useState((function(){return a.observable(e,{},{deep:!1})}))[0];return a.runInAction((function(){Object.assign(n,e)})),n}}O.propTypes={children:x,render:x},O.displayName="Observer",t.Observer=O,t.isObserverBatched=function(){return d()[m]},t.isUsingStaticRendering=c,t.observer=function(e,t){if(c())return e;var n,r,o,a=u({forwardRef:!1},t),l=e.displayName||e.name,s=function(t,n){return _((function(){return e(t,n)}),l)};return s.displayName=l,n=i.memo(a.forwardRef?i.forwardRef(s):s),r=e,o=n,Object.keys(r).forEach((function(e){k[e]||Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(r,e))})),n.displayName=l,n},t.observerBatching=function(e){"function"==typeof e&&a.configure({reactionScheduler:e}),d()[m]=!0},t.observerBatchingOptOut=function(){a.configure({reactionScheduler:void 0}),d()[m]=!0},t.useAsObservableSource=function(e){return S(e,!1)},t.useForceUpdate=f,t.useLocalStore=function(e,t){var n=S(t,!0);return l.useState((function(){var t=a.observable(e(n));return function(e){if(!e||"object"!=r(e))return!1;var t=Object.getPrototypeOf(e);return!t||t===Object.prototype}(t)&&a.runInAction((function(){Object.keys(t).forEach((function(e){var n,r,o=t[e];"function"==typeof o&&(t[e]=(n=o,r=t,function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return a.transaction((function(){return n.apply(r,t)}))}))}))})),t}))[0]},t.useObserver=_,t.useStaticRendering=function(e){s=e}}).call(this,n(67))},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){var r=n(471),o=n(420);e.exports=function(e){return o(e)&&r(e)}},function(e,t,n){var r=n(1272),o=n(1618),a=n(471);e.exports=function(e){return a(e)?r(e,!0):o(e)}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports={}},function(e,t,n){var r=n(1272),o=n(1694),a=n(471);e.exports=function(e){return a(e)?r(e):o(e)}},function(e,t,n){var r=n(1442),o=n(598);e.exports=function(e,t,n,a){var i=!n;n||(n={});for(var l=-1,s=t.length;++l<s;){var c=t[l],u=a?a(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),i?o(n,c,u):r(n,c,u)}return n}},function(e,t,n){e.exports=n.p+"media/images/app/tutorials/sonix-clips-how-to-74913221af5ac5e2460370ea30c1e4ab.png"},function(e,t,n){"use strict";var r,o,a,i=n(464),l=n.n(i),s=n(0),c=n.n(s),u=n(39),f=n.n(u),p=n(1),d=n(3),m=n(9);function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return v(e)}(this,n)}}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var w,E,_,k,O,x,S=Object(d.c)((o=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(i,e);var t,n,r,o=b(i);function i(){var e,t,n,r,l;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];return e=o.call.apply(o,[this].concat(c)),t=e,n="party",r=a,l=v(e),r&&Object.defineProperty(t,n,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(l):void 0}),e.confettiConfig={angle:90,spread:140,startVelocity:35,elementCount:90,dragFriction:.1,duration:4e3,delay:0,width:"8px",height:"17px",colors:["#a864fd","#29cdff","#78ff44","#ff718d","#fdff6a"]},e.celebrate=function(){Object(m.k)("sonix_celebrate_button"),e.party=!0,setTimeout((function(){return e.party=!1}),100)},e}return t=i,(n=[{key:"render",value:function(){var e=this.props.buttonText;return c.a.createElement("div",{className:"position--relative"},c.a.createElement("button",{className:"stripe-btn px-4",onClick:this.celebrate},e||"Click to Celebrate",c.a.createElement("div",{className:"stripe-btn-icon"},c.a.createElement("i",{className:"fad fa-party-horn"}))),c.a.createElement("div",{style:{position:"absolute",left:"50%"}},c.a.createElement(l.a,{className:"d-block",active:this.party,config:this.confettiConfig})))}}])&&h(t.prototype,n),r&&h(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(c.a.Component),w=o.prototype,E="party",_=[p.observable],k={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}},x={},Object.keys(k).forEach((function(e){x[e]=k[e]})),x.enumerable=!!x.enumerable,x.configurable=!!x.configurable,("value"in x||x.initializer)&&(x.writable=!0),x=_.slice().reverse().reduce((function(e,t){return t(w,E,e)||e}),x),O&&void 0!==x.initializer&&(x.value=x.initializer?x.initializer.call(O):void 0,x.initializer=void 0),void 0===x.initializer&&(Object.defineProperty(w,E,x),x=null),a=x,r=o))||r;t.a=function(e,t){f.a.render(c.a.createElement(S,{buttonText:t}),document.getElementById(e))}},function(e,t){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}e.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=13)}([function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==n(e)?null!==e:"function"==typeof e}},function(e,t){var n=e.exports={version:"2.5.0"};"number"==typeof __e&&(__e=n)},function(e,t,n){e.exports=!n(4)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(32)("wks"),o=n(9),a=n(0).Symbol,i="function"==typeof a;(e.exports=function(e){return r[e]||(r[e]=i&&a[e]||(i?a:o)("Symbol."+e))}).store=r},function(e,t,n){var r=n(0),o=n(2),a=n(8),i=n(22),l=n(10),s=function e(t,n,s){var c,u,f,p,d=t&e.F,m=t&e.G,h=t&e.P,y=t&e.B,b=m?r:t&e.S?r[n]||(r[n]={}):(r[n]||{}).prototype,v=m?o:o[n]||(o[n]={}),g=v.prototype||(v.prototype={});for(c in m&&(s=n),s)f=((u=!d&&b&&void 0!==b[c])?b:s)[c],p=y&&u?l(f,r):h&&"function"==typeof f?l(Function.call,f):f,b&&i(b,c,f,t&e.U),v[c]!=f&&a(v,c,p),h&&g[c]!=f&&(g[c]=f)};r.core=o,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t,n){var r=n(16),o=n(21);e.exports=n(3)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(24);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},function(e,t,n){var r=n(28),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",a=o.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim();return"."===t.charAt(0)?r.toLowerCase().endsWith(t.toLowerCase()):t.endsWith("/*")?a===t.replace(/\/.*$/,""):o===t}))}return!0},n(14),n(34)},function(e,t,n){n(15),e.exports=n(2).Array.some},function(e,t,n){"use strict";var r=n(7),o=n(25)(3);r(r.P+r.F*!n(33)([].some,!0),"Array",{some:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var r=n(17),o=n(18),a=n(20),i=Object.defineProperty;t.f=n(3)?Object.defineProperty:function(e,t,n){if(r(e),t=a(t,!0),r(n),o)try{return i(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(1);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){e.exports=!n(3)&&!n(4)((function(){return 7!=Object.defineProperty(n(19)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(1),o=n(0).document,a=r(o)&&r(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},function(e,t,n){var r=n(1);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(0),o=n(8),a=n(23),i=n(9)("src"),l=Function.toString,s=(""+l).split("toString");n(2).inspectSource=function(e){return l.call(e)},(e.exports=function(e,t,n,l){var c="function"==typeof n;c&&(a(n,"name")||o(n,"name",t)),e[t]!==n&&(c&&(a(n,i)||o(n,i,e[t]?""+e[t]:s.join(String(t)))),e===r?e[t]=n:l?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[i]||l.call(this)}))},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(10),o=n(26),a=n(27),i=n(12),l=n(29);e.exports=function(e,t){var n=1==e,s=2==e,c=3==e,u=4==e,f=6==e,p=5==e||f,d=t||l;return function(t,l,m){for(var h,y,b=a(t),v=o(b),g=r(l,m,3),w=i(v.length),E=0,_=n?d(t,w):s?d(t,0):void 0;w>E;E++)if((p||E in v)&&(y=g(h=v[E],E,b),e))if(n)_[E]=y;else if(y)switch(e){case 3:return!0;case 5:return h;case 6:return E;case 2:_.push(h)}else if(u)return!1;return f?-1:c||u?u:_}}},function(e,t,n){var r=n(5);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(11);e.exports=function(e){return Object(r(e))}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(30);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(1),o=n(31),a=n(6)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=void 0),r(t)&&null===(t=t[a])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){var r=n(5);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(0),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});e.exports=function(e){return o[e]||(o[e]={})}},function(e,t,n){"use strict";var r=n(4);e.exports=function(e,t){return!!e&&r((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},function(e,t,n){n(35),e.exports=n(2).String.endsWith},function(e,t,n){"use strict";var r=n(7),o=n(12),a=n(36),i="".endsWith;r(r.P+r.F*n(38)("endsWith"),"String",{endsWith:function(e){var t=a(this,e,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=o(t.length),l=void 0===n?r:Math.min(o(n),r),s=String(e);return i?i.call(t,s,l):t.slice(l-s.length,l)===s}})},function(e,t,n){var r=n(37),o=n(11);e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(e))}},function(e,t,n){var r=n(1),o=n(5),a=n(6)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==o(e))}},function(e,t,n){var r=n(6)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}}])},function(e,t,n){var r=n(560),o=n(561);e.exports=function(e,t,n){var a=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||r)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var l=0;l<16;++l)t[a+l]=i[l];return t||o(i)}},,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r,o,a,i,l,s=n(0),c=n.n(s),u=n(1),f=n(3);function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}(this,n)}}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function b(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var v=Object(f.c)((function(e){var t=e.onPlay,n=e.playing,r={fill:e.playOverlayColor};return n?null:c.a.createElement("div",{className:"video-player--play-icon",onClick:t},c.a.createElement("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"play",className:"svg-inline--fa fa-play fa-w-14",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:"60px",width:"60px"},c.a.createElement("path",{className:"play-overlay",style:r,d:"M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"})))})),g=(r=u.action.bound,o=u.action.bound,Object(f.c)((i=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(a,e);var t,n,r,o=m(a);function a(){var e,t,n,r,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];return e=o.call.apply(o,[this].concat(c)),t=e,n="pos",r=l,i=h(e),r&&Object.defineProperty(t,n,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0}),e}return t=a,(n=[{key:"togglePlaying",value:function(){var e=this.props,t=e.store,n=e.onPlay,r=e.onPause;t.playing?r():n()}},{key:"updateVideoTime",value:function(){var e=this.props,t=e.onPositionChange,n=e.store;this.player&&n.playing&&(this.pos=this.player.currentTime,t(this.pos))}},{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.store,r=t.setDuration,o=t.setVerticalVideo;this.props.setDuration&&this.player.addEventListener("loadedmetadata",(function(){r(e.player.duration),e.player.videoHeight>e.player.videoWidth&&o&&o(!0)})),this.disposePlayingReaction=Object(u.autorun)((function(){return n.playing?e.player.play():e.player.pause()})),this.videoTimerInterval=setInterval(this.updateVideoTime,75),this.disposePositionReaction=Object(u.reaction)((function(){return n.pos}),(function(t){return t!==e.pos&&(e.player.currentTime=t)})),this.disposePlaybackSpeedReaction=Object(u.reaction)((function(){return n.playbackSpeed}),(function(t){return e.player.playbackRate=t})),this.disposeMuteReaction=Object(u.reaction)((function(){return n.muted}),(function(t){return e.player.muted=t}))}},{key:"componentWillUnmount",value:function(){this.player&&(clearInterval(this.videoTimerInterval),this.disposePlayingReaction(),this.disposePositionReaction(),this.disposePlaybackSpeedReaction(),this.disposeMuteReaction())}},{key:"render",value:function(){var e=this,t=this.props,n=t.filename,r=t.poster,o=t.onPlay,a=t.playOverlayColor,i=t.store;return c.a.createElement("div",{className:"video-player--container"},c.a.createElement(v,{playing:i.playing,playOverlayColor:a,onPlay:o}),c.a.createElement("video",{className:"video-player--video",onClick:this.togglePlaying,ref:function(t){return e.player=t},preloaud:"auto",playsInline:!0,poster:r},c.a.createElement("source",{id:"mp4",src:n,type:"video/mp4"})))}}])&&p(t.prototype,n),r&&p(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(c.a.Component),l=b(i.prototype,"pos",[u.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),b(i.prototype,"togglePlaying",[r],Object.getOwnPropertyDescriptor(i.prototype,"togglePlaying"),i.prototype),b(i.prototype,"updateVideoTime",[o],Object.getOwnPropertyDescriptor(i.prototype,"updateVideoTime"),i.prototype),a=i))||a);t.a=g},,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.END_DRAG=t.DROP=t.HOVER=t.PUBLISH_DRAG_SOURCE=t.BEGIN_DRAG=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.beginDrag=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0,clientOffset:null},n=t.publishSource,r=t.clientOffset,l=t.getSourceClientOffset;(0,o.default)((0,a.default)(e),"Expected sourceIds to be an array.");var s=this.getMonitor(),u=this.getRegistry();(0,o.default)(!s.isDragging(),"Cannot call beginDrag while dragging.");for(var f=0;f<e.length;f++)(0,o.default)(u.getSource(e[f]),"Expected sourceIds to be registered.");for(var p=null,d=e.length-1;d>=0;d--)if(s.canDragSource(e[d])){p=e[d];break}if(null===p)return;var m=null;r&&((0,o.default)("function"==typeof l,"When clientOffset is provided, getSourceClientOffset must be a function."),m=l(p));var h=u.getSource(p).beginDrag(s,p);(0,o.default)((0,i.default)(h),"Item must be an object."),u.pinSource(p);var y=u.getSourceType(p);return{type:c,itemType:y,item:h,sourceId:p,clientOffset:r,sourceClientOffset:m,isSourcePublic:n}},t.publishDragSource=function(){if(!this.getMonitor().isDragging())return;return{type:u}},t.hover=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.clientOffset,r=void 0===n?null:n;(0,o.default)((0,a.default)(e),"Expected targetIds to be an array.");var i=e.slice(0),s=this.getMonitor(),c=this.getRegistry();(0,o.default)(s.isDragging(),"Cannot call hover while not dragging."),(0,o.default)(!s.didDrop(),"Cannot call hover after drop.");for(var u=0;u<i.length;u++){var p=i[u];(0,o.default)(i.lastIndexOf(p)===u,"Expected targetIds to be unique in the passed array.");var d=c.getTarget(p);(0,o.default)(d,"Expected targetIds to be registered.")}for(var m=s.getItemType(),h=i.length-1;h>=0;h--){var y=i[h],b=c.getTargetType(y);(0,l.default)(b,m)||i.splice(h,1)}for(var v=0;v<i.length;v++){var g=i[v];c.getTarget(g).hover(s,g)}return{type:f,targetIds:i,clientOffset:r}},t.drop=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.getMonitor(),a=this.getRegistry();(0,o.default)(n.isDragging(),"Cannot call drop while not dragging."),(0,o.default)(!n.didDrop(),"Cannot call drop twice during one drag operation.");var l=n.getTargetIds().filter(n.canDropOnTarget,n);l.reverse(),l.forEach((function(l,s){var c=a.getTarget(l).drop(n,l);(0,o.default)(void 0===c||(0,i.default)(c),"Drop result must either be an object or undefined."),void 0===c&&(c=0===s?{}:n.getDropResult()),e.store.dispatch({type:p,dropResult:r({},t,c)})}))},t.endDrag=function(){var e=this.getMonitor(),t=this.getRegistry();(0,o.default)(e.isDragging(),"Cannot call endDrag while not dragging.");var n=e.getSourceId();return t.getSource(n,true).endDrag(e,n),t.unpinSource(),{type:d}};var o=s(n(181)),a=s(n(183)),i=s(n(394)),l=s(n(1255));function s(e){return e&&e.__esModule?e:{default:e}}var c=t.BEGIN_DRAG="dnd-core/BEGIN_DRAG",u=t.PUBLISH_DRAG_SOURCE="dnd-core/PUBLISH_DRAG_SOURCE",f=t.HOVER="dnd-core/HOVER",p=t.DROP="dnd-core/DROP",d=t.END_DRAG="dnd-core/END_DRAG"},function(e,t,n){var r=n(565),o=n(1566),a=n(1567);function i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}i.prototype.add=i.prototype.push=o,i.prototype.has=a,e.exports=i},function(e,t,n){var r=n(457)(Object,"create");e.exports=r},function(e,t,n){var r=n(1556),o=n(1557),a=n(1558),i=n(1559),l=n(1560);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=a,s.prototype.has=i,s.prototype.set=l,e.exports=s},function(e,t,n){var r=n(469);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(1562);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t){e.exports=function(e){return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addSource=function(e){return{type:r,sourceId:e}},t.addTarget=function(e){return{type:o,targetId:e}},t.removeSource=function(e){return{type:a,sourceId:e}},t.removeTarget=function(e){return{type:i,targetId:e}};var r=t.ADD_SOURCE="dnd-core/ADD_SOURCE",o=t.ADD_TARGET="dnd-core/ADD_TARGET",a=t.REMOVE_SOURCE="dnd-core/REMOVE_SOURCE",i=t.REMOVE_TARGET="dnd-core/REMOVE_TARGET"},function(e,t,n){var r=n(1582),o=n(420),a=Object.prototype,i=a.hasOwnProperty,l=a.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(e){return o(e)&&i.call(e,"callee")&&!l.call(e,"callee")};e.exports=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){0}},function(e,t,n){(function(e){function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=n(415),a=n(1616),i="object"==r(t)&&t&&!t.nodeType&&t,l=i&&"object"==r(e)&&e&&!e.nodeType&&e,s=l&&l.exports===i?o.Buffer:void 0,c=(s?s.isBuffer:void 0)||a;e.exports=c}).call(this,n(101)(e))},function(e,t,n){var r=n(1277),o=n(588);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t){e.exports=!0},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(584);e.exports=function(e){return Object(r(e))}},function(e,t,n){function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=n(456),a=n(420),i="[object Symbol]";e.exports=function(e){return"symbol"==r(e)||a(e)&&o(e)==i}},function(e,t,n){var r=n(527),o=n(1699),a=n(1700),i=n(1701),l=n(1702),s=n(1703);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=a,c.prototype.get=i,c.prototype.has=l,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(1709),o=n(567),a=n(1710),i=n(1264),l=n(1711),s=n(456),c=n(1258),u="[object Map]",f="[object Promise]",p="[object Set]",d="[object WeakMap]",m="[object DataView]",h=c(r),y=c(o),b=c(a),v=c(i),g=c(l),w=s;(r&&w(new r(new ArrayBuffer(1)))!=m||o&&w(new o)!=u||a&&w(a.resolve())!=f||i&&w(new i)!=p||l&&w(new l)!=d)&&(w=function(e){var t=s(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case h:return m;case y:return u;case b:return f;case v:return p;case g:return d}return t}),e.exports=w},function(e,t,n){var r=n(541),o=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findInArray=function(e,t){for(var n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]},t.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},t.isNum=function(e){return"number"==typeof e&&!isNaN(e)},t.int=function(e){return parseInt(e,10)},t.dontSetMe=function(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))}},function(e,t,n){var r=n(394),o=n(1684),a=n(1685),i="Expected a function",l=Math.max,s=Math.min;e.exports=function(e,t,n){var c,u,f,p,d,m,h=0,y=!1,b=!1,v=!0;if("function"!=typeof e)throw new TypeError(i);function g(t){var n=c,r=u;return c=u=void 0,h=t,p=e.apply(r,n)}function w(e){var n=e-m;return void 0===m||n>=t||n<0||b&&e-h>=f}function E(){var e=o();if(w(e))return _(e);d=setTimeout(E,function(e){var n=t-(e-m);return b?s(n,f-(e-h)):n}(e))}function _(e){return d=void 0,v&&c?g(e):(c=u=void 0,p)}function k(){var e=o(),n=w(e);if(c=arguments,u=this,m=e,n){if(void 0===d)return function(e){return h=e,d=setTimeout(E,t),y?g(e):p}(m);if(b)return clearTimeout(d),d=setTimeout(E,t),g(m)}return void 0===d&&(d=setTimeout(E,t)),p}return t=a(t)||0,r(n)&&(y=!!n.leading,f=(b="maxWait"in n)?l(a(n.maxWait)||0,t):f,v="trailing"in n?!!n.trailing:v),k.cancel=function(){void 0!==d&&clearTimeout(d),h=0,c=m=u=d=void 0},k.flush=function(){return void 0===d?p:_(o())},k}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(1525),a=(r=o)&&r.__esModule?r:{default:r};t.default=a.default,e.exports=t.default},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=n(1675),a=n(132);function i(e,t){return t.encode?t.strict?o(e):encodeURIComponent(e):e}function l(e){return Array.isArray(e)?e.sort():"object"===r(e)?l(Object.keys(e)).sort((function(e,t){return Number(e)-Number(t)})).map((function(t){return e[t]})):e}t.extract=function(e){return e.split("?")[1]||""},t.parse=function(e,t){var n=function(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t=a({arrayFormat:"none"},t)),o=Object.create(null);return"string"!=typeof e?o:(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach((function(e){var t=e.replace(/\+/g," ").split("="),r=t.shift(),a=t.length>0?t.join("="):void 0;a=void 0===a?null:decodeURIComponent(a),n(decodeURIComponent(r),a,o)})),Object.keys(o).sort().reduce((function(e,t){var n=o[t];return Boolean(n)&&"object"===r(n)&&!Array.isArray(n)?e[t]=l(n):e[t]=n,e}),Object.create(null))):o},t.stringify=function(e,t){var n=function(e){switch(e.arrayFormat){case"index":return function(t,n,r){return null===n?[i(t,e),"[",r,"]"].join(""):[i(t,e),"[",i(r,e),"]=",i(n,e)].join("")};case"bracket":return function(t,n){return null===n?i(t,e):[i(t,e),"[]=",i(n,e)].join("")};default:return function(t,n){return null===n?i(t,e):[i(t,e),"=",i(n,e)].join("")}}}(t=a({encode:!0,strict:!0,arrayFormat:"none"},t));return e?Object.keys(e).sort().map((function(r){var o=e[r];if(void 0===o)return"";if(null===o)return i(r,t);if(Array.isArray(o)){var a=[];return o.slice().forEach((function(e){void 0!==e&&a.push(n(r,e,a.length))})),a.join("&")}return i(r,t)+"="+i(o,t)})).filter((function(e){return e.length>0})).join("&"):""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomPicker=t.TwitterPicker=t.SwatchesPicker=t.SliderPicker=t.SketchPicker=t.PhotoshopPicker=t.MaterialPicker=t.HuePicker=t.GithubPicker=t.CompactPicker=t.ChromePicker=t.default=t.CirclePicker=t.BlockPicker=t.AlphaPicker=void 0;var r=n(1690);Object.defineProperty(t,"AlphaPicker",{enumerable:!0,get:function(){return v(r).default}});var o=n(1768);Object.defineProperty(t,"BlockPicker",{enumerable:!0,get:function(){return v(o).default}});var a=n(1770);Object.defineProperty(t,"CirclePicker",{enumerable:!0,get:function(){return v(a).default}});var i=n(1772);Object.defineProperty(t,"ChromePicker",{enumerable:!0,get:function(){return v(i).default}});var l=n(1778);Object.defineProperty(t,"CompactPicker",{enumerable:!0,get:function(){return v(l).default}});var s=n(1781);Object.defineProperty(t,"GithubPicker",{enumerable:!0,get:function(){return v(s).default}});var c=n(1783);Object.defineProperty(t,"HuePicker",{enumerable:!0,get:function(){return v(c).default}});var u=n(1785);Object.defineProperty(t,"MaterialPicker",{enumerable:!0,get:function(){return v(u).default}});var f=n(1786);Object.defineProperty(t,"PhotoshopPicker",{enumerable:!0,get:function(){return v(f).default}});var p=n(1792);Object.defineProperty(t,"SketchPicker",{enumerable:!0,get:function(){return v(p).default}});var d=n(1795);Object.defineProperty(t,"SliderPicker",{enumerable:!0,get:function(){return v(d).default}});var m=n(1799);Object.defineProperty(t,"SwatchesPicker",{enumerable:!0,get:function(){return v(m).default}});var h=n(1803);Object.defineProperty(t,"TwitterPicker",{enumerable:!0,get:function(){return v(h).default}});var y=n(1450);Object.defineProperty(t,"CustomPicker",{enumerable:!0,get:function(){return v(y).default}});var b=v(i);function v(e){return e&&e.__esModule?e:{default:e}}t.default=b.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});for(var r="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),o={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},a={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:r?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},i={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},l=1;l<20;l++)i["f"+l]=111+l;function s(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return c(e,t)})),o=function(e){return r.some((function(t){return u(t,e)}))};return null==n?o:o(n)}function c(e,t){var n=t&&t.byKey,r={},a=(e=e.replace("++","+add")).split("+"),i=a.length;for(var l in o)r[o[l]]=!1;var s=!0,c=!1,u=void 0;try{for(var d,m=a[Symbol.iterator]();!(s=(d=m.next()).done);s=!0){var h=d.value,y=h.endsWith("?")&&h.length>1;y&&(h=h.slice(0,-1));var b=p(h),v=o[b];1!==i&&v||(n?r.key=b:r.which=f(h)),v&&(r[v]=!y||null)}}catch(e){c=!0,u=e}finally{try{!s&&m.return&&m.return()}finally{if(c)throw u}}return r}function u(e,t){for(var n in e){var r=e[n],o=void 0;if(null!=r&&((null!=(o="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&o!==r))return!1}return!0}function f(e){return e=p(e),i[e]||e.toUpperCase().charCodeAt(0)}function p(e){return e=e.toLowerCase(),e=a[e]||e}t.default=s,t.isHotkey=s,t.isCodeHotkey=function(e,t){return s(e,t)},t.isKeyHotkey=function(e,t){return s(e,{byKey:!0},t)},t.parseHotkey=c,t.compareHotkey=u,t.toKeyCode=f,t.toKeyName=p},function(e,t,n){"use strict";var r=n(1808),o=r.default,a=r.DraggableCore;e.exports=o,e.exports.default=o,e.exports.DraggableCore=a},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.confetti=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign({},o,function(e){!e.stagger&&e.delay&&(e.stagger=e.delay);return e}(t)),a=n.elementCount,i=n.colors,l=n.width,s=n.height,c=n.angle,u=n.spread,f=n.startVelocity,p=n.decay,d=n.dragFriction,m=n.duration,h=n.stagger,y=n.random,b=function(e,t,n,r,o){return Array.from({length:t}).map((function(t,a){var i=document.createElement("div"),l=n[a%n.length];return i.style["background-color"]=l,i.style.width=r,i.style.height=o,i.style.position="absolute",i.style.willChange="transform, opacity",i.style.visibility="hidden",e.appendChild(i),i}))}(e,a,i,l,s).map((function(e){return{element:e,physics:r(c,u,f,y)}}));return function(e,t,n,r,o,a){var i=void 0;return new Promise((function(l){function s(c){i||(i=c);var u=c-i,f=i===c?0:(c-i)/o;t.slice(0,Math.ceil(u/a)).forEach((function(e){!function(e,t,n,r){e.physics.x+=Math.cos(e.physics.angle2D)*e.physics.velocity,e.physics.y+=Math.sin(e.physics.angle2D)*e.physics.velocity,e.physics.z+=Math.sin(e.physics.angle3D)*e.physics.velocity,e.physics.wobble+=e.physics.wobbleSpeed,r?e.physics.velocity*=r:e.physics.velocity-=e.physics.velocity*n;e.physics.y+=3,e.physics.tiltAngle+=e.physics.tiltAngleSpeed;var o=e.physics,a=o.x,i=o.y,l=o.tiltAngle,s=o.wobble,c=a+10*Math.cos(s),u=i+10*Math.sin(s),f="translate3d("+c+"px, "+u+"px, 0) rotate3d(1, 1, 1, "+l+"rad)";e.element.style.visibility="visible",e.element.style.transform=f,e.element.style.opacity=1-t}(e,f,n,r)})),c-i<o?requestAnimationFrame(s):(t.forEach((function(t){if(t.element.parentNode===e)return e.removeChild(t.element)})),l())}requestAnimationFrame(s)}))}(e,b,d,p,m,h)};function r(e,t,n,r){var o=e*(Math.PI/180),a=t*(Math.PI/180);return{x:0,y:0,wobble:10*r(),wobbleSpeed:.1+.1*r(),velocity:.5*n+r()*n,angle2D:-o+(.5*a-r()*a),angle3D:-Math.PI/4+r()*(Math.PI/2),tiltAngle:r()*Math.PI,tiltAngleSpeed:.1+.3*r()}}var o={angle:90,spread:45,startVelocity:45,elementCount:50,width:"10px",height:"10px",colors:["#a864fd","#29cdff","#78ff44","#ff718d","#fdff6a"],duration:3e3,stagger:0,dragFriction:.1,random:Math.random}},,,,function(e,t){var n;"function"!=typeof(n=window.Element.prototype).matches&&(n.matches=n.msMatchesSelector||n.mozMatchesSelector||n.webkitMatchesSelector||function(e){for(var t=this,n=(t.document||t.ownerDocument).querySelectorAll(e),r=0;n[r]&&n[r]!==t;)++r;return Boolean(n[r])}),"function"!=typeof n.closest&&(n.closest=function(e){for(var t=this;t&&1===t.nodeType;){if(t.matches(e))return t;t=t.parentNode}return null})},function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var o=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,o=n;return[o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]]].join("")}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var r,o=n(1531);var a=((r=o)&&r.__esModule?r:{default:r}).default,i=a.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=a.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=a.canUseDOM?window.NodeList:{},t.canUseDOM=a.canUseDOM;t.default=i},function(e,t,n){var r=n(1253)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(1545),o=n(1561),a=n(1563),i=n(1564),l=n(1565);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=a,s.prototype.has=i,s.prototype.set=l,e.exports=s},function(e,t,n){var r=n(456),o=n(394),a="[object AsyncFunction]",i="[object Function]",l="[object GeneratorFunction]",s="[object Proxy]";e.exports=function(e){if(!o(e))return!1;var t=r(e);return t==i||t==l||t==a||t==s}},function(e,t,n){var r=n(457)(n(415),"Map");e.exports=r},function(e,t,n){var r=n(1568);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},function(e,t){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},function(e,t){var n=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a=Object.defineProperty,i=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,s=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,u=c&&c(Object);e.exports=function e(t,n,f){if("string"!=typeof n){if(u){var p=c(n);p&&p!==u&&e(t,p,f)}var d=i(n);l&&(d=d.concat(l(n)));for(var m=0;m<d.length;++m){var h=d[m];if(!(r[h]||o[h]||f&&f[h])){var y=s(n,h);try{a(t,h,y)}catch(e){}}}return t}return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e===t)return!0;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=Object.prototype.hasOwnProperty,a=0;a<n.length;a+=1){if(!o.call(t,n[a])||e[n[a]]!==t[n[a]])return!1;if(e[n[a]]!==t[n[a]])return!1}return!0}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return Boolean(e&&"function"==typeof e.dispose)},e.exports=t.default},function(e,t){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}var r=9007199254740991,o=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var a=n(e);return!!(t=null==t?r:t)&&("number"==a||"symbol"!=a&&o.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var r=n(1617),o=n(490),a=n(578),i=a&&a.isTypedArray,l=i?o(i):r;e.exports=l},function(e,t,n){(function(e){function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=n(1252),a="object"==r(t)&&t&&!t.nodeType&&t,i=a&&"object"==r(e)&&e&&!e.nodeType&&e,l=i&&i.exports===a&&o.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||l&&l.binding&&l.binding("util")}catch(e){}}();e.exports=s}).call(this,n(101)(e))},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.FILE="__NATIVE_FILE__",t.URL="__NATIVE_URL__",t.TEXT="__NATIVE_TEXT__"},function(e,t,n){var r=n(1630);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(474);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(587)("keys"),o=n(538);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(421),o=n(435),a="__core-js_shared__",i=o[a]||(o[a]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(537)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(473),o=n(1640),a=n(588),i=n(586)("IE_PROTO"),l=function(){},s="prototype",c=function(){var e,t=n(1276)("iframe"),r=a.length;for(t.style.display="none",n(1641).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;r--;)delete c[s][a[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(l[s]=r(e),n=new l,l[s]=null,n[i]=e):n=c(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(436).f,o=n(459),a=n(422)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},function(e,t,n){t.f=n(422)},function(e,t,n){var r=n(435),o=n(421),a=n(537),i=n(592),l=n(436).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=a?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||l(t,e,{value:i.f(e)})}},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.ControlDirection=void 0;var o,a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),l=p(i),s=p(n(8)),c=p(n(476)),u=p(n(7)),f=n(462);function p(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var m=s.default.oneOfType,h=s.default.shape,y=s.default.func,b=s.default.number,v=s.default.oneOf,g=s.default.object,w=t.ControlDirection={HORIZONTAL:"HORIZONTAL",VERTICAL:"VERTICAL"},E=(o=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==r(t)&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={isDragging:!1},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentWillUnmount",value:function(){this.endDrag()}},{key:"startDrag",value:function(e){this.setState({isDragging:!0}),window.addEventListener("mousemove",this.triggerRangeChange),window.addEventListener("mouseup",this.endDrag),this.toggleSelection("none");var t=e?this.getValueFromMouseEvent(e):null;this.props.onChangeStart(t)}},{key:"endDrag",value:function(e){e&&this.triggerRangeChange(e),this.setState({isDragging:!1}),window.removeEventListener("mousemove",this.triggerRangeChange),window.removeEventListener("mouseup",this.endDrag),this.toggleSelection("");var t=e?this.getValueFromMouseEvent(e):null;this.props.onChangeEnd(t)}},{key:"toggleSelection",value:function(e){var t=document.getElementsByTagName("body")[0];t.style["user-select"]=e,t.style["-webkit-user-select"]=e,t.style["-moz-user-select"]=e,t.style["-ms-user-select"]=e}},{key:"getValueFromMouseEvent",value:function(e){return this.props.direction===w.VERTICAL?this.getVerticalValue(e.pageY):this.getHorizontalValue(e.pageX)}},{key:"triggerRangeChange",value:function(e){this.props.onValue(this.getValueFromMouseEvent(e))}},{key:"handleIntentMove",value:function(e){this.state.isDragging||this.triggerIntent(e)}},{key:"triggerIntent",value:function(e){var t=this.props,n=t.direction;(0,t.onIntent)(n===w.VERTICAL?this.getVerticalValue(e.pageY):this.getHorizontalValue(e.pageX))}},{key:"getRectFromBounds",value:function(){var e=this.props.bounds;return"function"==typeof e?e():e}},{key:"getHorizontalValue",value:function(e){var t=this.getRectFromBounds(),n=void 0!==window.pageXOffset?window.pageXOffset:(document.documentElement||document.body.parentNode||document.body).scrollLeft,r=e-(t.left+n);return r=Math.max(r,0),(r=Math.min(r,t.width))/t.width}},{key:"getVerticalValue",value:function(e){var t=this.getRectFromBounds(),n=void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop,r=e-(t.top+n);return r=Math.max(r,0),1-(r=Math.min(r,t.height))/t.height}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.extraClasses,r=e.style,o=this.state.isDragging;return l.default.createElement("div",{className:(0,u.default)(t,n,{isDragging:o}),style:r,onMouseDown:this.startDrag,onMouseMove:this.handleIntentMove})}}]),t}(i.Component),d(o.prototype,"startDrag",[c.default],Object.getOwnPropertyDescriptor(o.prototype,"startDrag"),o.prototype),d(o.prototype,"endDrag",[c.default],Object.getOwnPropertyDescriptor(o.prototype,"endDrag"),o.prototype),d(o.prototype,"triggerRangeChange",[c.default],Object.getOwnPropertyDescriptor(o.prototype,"triggerRangeChange"),o.prototype),d(o.prototype,"handleIntentMove",[c.default],Object.getOwnPropertyDescriptor(o.prototype,"handleIntentMove"),o.prototype),o);E.propTypes={bounds:m([y,h({width:b.isRequired,left:b.isRequired}),h({height:b.isRequired,top:b.isRequired})]).isRequired,onValue:y.isRequired,onChangeStart:y,onChangeEnd:y,onIntent:y,direction:v([w.HORIZONTAL,w.VERTICAL]),style:g},E.defaultProps={onChangeStart:function(){},onChangeEnd:function(){},onIntent:function(){},direction:w.HORIZONTAL,style:{}},t.default=(0,f.withCustomizableClasses)("RangeControlOverlay")(E)},function(e,t,n){var r=n(1427),o=n(1429);e.exports=function(e,t){return e&&r(e,o(t))}},function(e,t,n){var r=n(1261),o=n(1435),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,l=i?function(e){return null==e?[]:(e=Object(e),r(i(e),(function(t){return a.call(e,t)})))}:o;e.exports=l},function(e,t,n){function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=n(183),a=n(541),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l=/^\w*$/;e.exports=function(e,t){if(o(e))return!1;var n=r(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!a(e))||(l.test(e)||!i.test(e)||null!=t&&e in Object(t))}},function(e,t,n){var r=n(1259);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(1432);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Checkboard=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(0),a=s(o),i=s(n(70)),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1751));function s(e){return e&&e.__esModule?e:{default:e}}var c=t.Checkboard=function(e){var t=e.white,n=e.grey,s=e.size,c=e.renderers,u=e.borderRadius,f=e.boxShadow,p=e.children,d=(0,i.default)({default:{grid:{borderRadius:u,boxShadow:f,absolute:"0px 0px 0px 0px",background:"url("+l.get(t,n,s,c.canvas)+") center left"}}});return(0,o.isValidElement)(p)?a.default.cloneElement(p,r({},p.props,{style:r({},p.props.style,d.grid)})):a.default.createElement("div",{style:d.grid})};c.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}},t.default=c},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.matchesSelector=f,t.matchesSelectorAndParentsTo=function(e,t,n){var r=e;do{if(f(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},t.addEvent=function(e,t,n,r){if(!e)return;var o=s({capture:!0},r);e.addEventListener?e.addEventListener(t,n,o):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},t.removeEvent=function(e,t,n,r){if(!e)return;var o=s({capture:!0},r);e.removeEventListener?e.removeEventListener(t,n,o):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},t.outerHeight=function(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,o.int)(n.borderTopWidth),t+=(0,o.int)(n.borderBottomWidth)},t.outerWidth=function(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,o.int)(n.borderLeftWidth),t+=(0,o.int)(n.borderRightWidth)},t.innerHeight=function(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,o.int)(n.paddingTop),t-=(0,o.int)(n.paddingBottom)},t.innerWidth=function(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,o.int)(n.paddingLeft),t-=(0,o.int)(n.paddingRight)},t.offsetXYFromParent=function(e,t,n){var r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),o=(e.clientX+t.scrollLeft-r.left)/n,a=(e.clientY+t.scrollTop-r.top)/n;return{x:o,y:a}},t.createCSSTransform=function(e,t){var n=p(e,t,"px");return c({},(0,a.browserPrefixToKey)("transform",a.default),n)},t.createSVGTransform=function(e,t){return p(e,t,"")},t.getTranslation=p,t.getTouch=function(e,t){return e.targetTouches&&(0,o.findInArray)(e.targetTouches,(function(e){return t===e.identifier}))||e.changedTouches&&(0,o.findInArray)(e.changedTouches,(function(e){return t===e.identifier}))},t.getTouchIdentifier=function(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier},t.addUserSelectStyles=function(e){if(!e)return;var t=e.getElementById("react-draggable-style-el");t||((t=e.createElement("style")).type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t));e.body&&d(e.body,"react-draggable-transparent-selection")},t.removeUserSelectStyles=function(e){if(!e)return;try{if(e.body&&m(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{var t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}},t.addClassName=d,t.removeClassName=m;var o=n(545),a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var l=o?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(n,a,l):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(n(1809));function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u="";function f(e,t){return u||(u=(0,o.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(t){return(0,o.isFunction)(e[t])}))),!!(0,o.isFunction)(e[u])&&e[u](t)}function p(e,t,n){var r=e.x,o=e.y,a="translate(".concat(r).concat(n,",").concat(o).concat(n,")");if(t){var i="".concat("string"==typeof t.x?t.x:t.x+n),l="".concat("string"==typeof t.y?t.y:t.y+n);a="translate(".concat(i,", ").concat(l,")")+a}return a}function d(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function m(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}},,function(e,t,n){var r=n(546),o=n(394),a="Expected a function";e.exports=function(e,t,n){var i=!0,l=!0;if("function"!=typeof e)throw new TypeError(a);return o(n)&&(i="leading"in n?!!n.leading:i,l="trailing"in n?!!n.trailing:l),r(e,t,{leading:i,maxWait:t,trailing:l})}},,,,,,function(e,t,n){"use strict";e.exports=function(e){if(e=String(e||""),a.test(e))return"rtl";if(i.test(e))return"ltr";return"neutral"};var r="֑-߿יִ-﷽ﹰ-ﻼ",o="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",a=new RegExp("^[^"+o+"]*["+r+"]"),i=new RegExp("^[^"+r+"]*["+o+"]")},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=Object.prototype.hasOwnProperty,a=Object.prototype.toString,i=Object.defineProperty,l=Object.getOwnPropertyDescriptor,s=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===a.call(e)},c=function(e){if(!e||"[object Object]"!==a.call(e))return!1;var t,n=o.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&o.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||o.call(e,t)},u=function(e,t){i&&"__proto__"===t.name?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},f=function(e,t){if("__proto__"===t){if(!o.call(e,t))return;if(l)return l(e,t).value}return e[t]};e.exports=function e(){var t,n,o,a,i,l,p=arguments[0],d=1,m=arguments.length,h=!1;for("boolean"==typeof p&&(h=p,p=arguments[1]||{},d=2),(null==p||"object"!==r(p)&&"function"!=typeof p)&&(p={});d<m;++d)if(null!=(t=arguments[d]))for(n in t)o=f(p,n),p!==(a=f(t,n))&&(h&&a&&(c(a)||(i=s(a)))?(i?(i=!1,l=o&&s(o)?o:[]):l=o&&c(o)?o:{},u(p,{name:n,newValue:e(h,l,a)})):void 0!==a&&u(p,{name:n,newValue:a}));return p}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){e.exports=n(1526)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]);return n.filter(s)};var r="none",o="contents",a=/input|select|textarea|button|object|iframe/;function i(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var n=window.getComputedStyle(e),a=n.getPropertyValue("display");return t?a!==o&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,n):a===r}catch(e){return console.warn("Failed to inspect element style"),!1}}function l(e,t){var n=e.nodeName.toLowerCase();return(a.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),i(t))return!1;t=t.parentNode}return!0}(e)}function s(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&l(e,!n)}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){l&&(l.removeAttribute?l.removeAttribute("aria-hidden"):null!=l.length?l.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(l).forEach((function(e){return e.removeAttribute("aria-hidden")})));l=null},t.log=function(){0},t.assertNodeList=s,t.setElement=function(e){var t=e;if("string"==typeof t&&i.canUseDOM){var n=document.querySelectorAll(t);s(n,t),t=n}return l=t||l},t.validateElement=c,t.hide=function(e){var t=!0,n=!1,r=void 0;try{for(var o,a=c(e)[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){o.value.setAttribute("aria-hidden","true")}}catch(e){n=!0,r=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw r}}},t.show=function(e){var t=!0,n=!1,r=void 0;try{for(var o,a=c(e)[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){o.value.removeAttribute("aria-hidden")}}catch(e){n=!0,r=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw r}}},t.documentNotReadyOrSSRTesting=function(){l=null};var r,o=n(418),a=(r=o)&&r.__esModule?r:{default:r},i=n(563);var l=null;function s(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function c(e){var t=e||l;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,a.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(o.openInstances.length),o.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){o=new r};var r=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},o=new r;t.default=o},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.unpackBackendForEs5Users=t.createChildContext=t.CHILD_CONTEXT_TYPES=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)};t.default=function(e){d.default.apply(void 0,["DragDropContext","backend"].concat(Array.prototype.slice.call(arguments)));var t=b(e),n=y(t);return function(e){var t,i,c=e.displayName||e.name||"Component",u=(i=t=function(t){function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==r(t)&&"function"!=typeof t?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,t),a(i,[{key:"getDecoratedComponentInstance",value:function(){return(0,f.default)(this.child,"In order to access an instance of the decorated component it can not be a stateless component."),this.child}},{key:"getManager",value:function(){return n.dragDropManager}},{key:"getChildContext",value:function(){return n}},{key:"render",value:function(){var t=this;return s.default.createElement(e,o({},this.props,{ref:function(e){t.child=e}}))}}]),i}(l.Component),t.DecoratedComponent=e,t.displayName="DragDropContext("+c+")",t.childContextTypes=h,i);return(0,p.default)(u,e)}};var l=n(0),s=m(l),c=m(n(8)),u=n(1536),f=m(n(181)),p=m(n(573)),d=m(n(534));function m(e){return e&&e.__esModule?e:{default:e}}var h=t.CHILD_CONTEXT_TYPES={dragDropManager:c.default.object.isRequired},y=t.createChildContext=function(e,t){return{dragDropManager:new u.DragDropManager(e,t)}},b=t.unpackBackendForEs5Users=function(e){var t=e;return"object"===(void 0===t?"undefined":i(t))&&"function"==typeof t.default&&(t=t.default),(0,f.default)("function"==typeof t,"Expected the backend to be a function or an ES6 module exporting a default function. Read more: http://react-dnd.github.io/react-dnd/docs-drag-drop-context.html"),t}},function(e,t,n){(function(t){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}var r="object"==(void 0===t?"undefined":n(t))&&t&&t.Object===Object&&t;e.exports=r}).call(this,n(67))},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments[1];switch(t.type){case o.BEGIN_DRAG:return{initialSourceClientOffset:t.sourceClientOffset,initialClientOffset:t.clientOffset,clientOffset:t.clientOffset};case o.HOVER:return function(e,t){if(e===t)return!0;return e&&t&&e.x===t.x&&e.y===t.y}(e.clientOffset,t.clientOffset)?e:r({},e,{clientOffset:t.clientOffset});case o.END_DRAG:case o.DROP:return a;default:return e}},t.getSourceClientOffset=function(e){var t=e.clientOffset,n=e.initialClientOffset,r=e.initialSourceClientOffset;if(!t||!n||!r)return null;return{x:t.x+r.x-n.x,y:t.y+r.y-n.y}},t.getDifferenceFromInitialOffset=function(e){var t=e.clientOffset,n=e.initialClientOffset;if(!t||!n)return null;return{x:t.x-n.x,y:t.y-n.y}};var o=n(524),a={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,a.default)(e)?e.some((function(e){return e===t})):e===t};var r,o=n(183),a=(r=o)&&r.__esModule?r:{default:r}},function(e,t,n){var r=n(1257),o=n(470),a=n(491),i=o((function(e,t){return a(e)?r(e,t):[]}));e.exports=i},function(e,t,n){var r=n(525),o=n(568),a=n(569),i=n(489),l=n(490),s=n(530),c=200;e.exports=function(e,t,n,u){var f=-1,p=o,d=!0,m=e.length,h=[],y=t.length;if(!m)return h;n&&(t=i(t,l(n))),u?(p=a,d=!1):t.length>=c&&(p=s,d=!1,t=new r(t));e:for(;++f<m;){var b=e[f],v=null==n?b:n(b);if(b=u||0!==b?b:0,d&&v==v){for(var g=y;g--;)if(t[g]===v)continue e;h.push(b)}else p(t,v,u)||h.push(b)}return h}},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(457),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments[1],t=arguments[2];switch(e.type){case a.HOVER:break;case i.ADD_SOURCE:case i.ADD_TARGET:case i.REMOVE_TARGET:case i.REMOVE_SOURCE:return s;case a.BEGIN_DRAG:case a.PUBLISH_DRAG_SOURCE:case a.END_DRAG:case a.DROP:default:return c}var n=e.targetIds,o=t.targetIds,l=(0,r.default)(n,o),u=!1;if(0===l.length){for(var f=0;f<n.length;f++)if(n[f]!==o[f]){u=!0;break}}else u=!0;if(!u)return s;var p=o[o.length-1],d=n[n.length-1];p!==d&&(p&&l.push(p),d&&l.push(d));return l},t.areDirty=function(e,t){if(e===s)return!1;if(e===c||void 0===t)return!0;return(0,o.default)(t,e).length>0};var r=l(n(1579)),o=l(n(1584)),a=n(524),i=n(532);function l(e){return e&&e.__esModule?e:{default:e}}var s=[],c=[]},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a}},function(e,t,n){var r=n(571),o=n(1581);e.exports=function e(t,n,a,i,l){var s=-1,c=t.length;for(a||(a=o),l||(l=[]);++s<c;){var u=t[s];n>0&&a(u)?n>1?e(u,n-1,a,i,l):r(l,u):i||(l[l.length]=u)}return l}},function(e,t,n){var r=n(525),o=n(568),a=n(569),i=n(530),l=n(1583),s=n(572),c=200;e.exports=function(e,t,n){var u=-1,f=o,p=e.length,d=!0,m=[],h=m;if(n)d=!1,f=a;else if(p>=c){var y=t?null:l(e);if(y)return s(y);d=!1,f=i,h=new r}else h=t?[]:m;e:for(;++u<p;){var b=e[u],v=t?t(b):b;if(b=n||0!==b?b:0,d&&v==v){for(var g=h.length;g--;)if(h[g]===v)continue e;t&&h.push(v),m.push(b)}else f(h,v,n)||(h!==m&&h.push(v),m.push(b))}return m}},function(e,t,n){var r=n(457)(n(415),"Set");e.exports=r},function(e,t){e.exports=function(){}},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)};t.default=function(e,t){if(e===t)return!0;if("object"!==(void 0===e?"undefined":o(e))||null===e||"object"!==(void 0===t?"undefined":o(t))||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var a=Object.prototype.hasOwnProperty,i=0;i<n.length;i+=1){if(!a.call(t,n[i]))return!1;var l=e[n[i]],s=t[n[i]];if(l!==s||"object"===(void 0===l?"undefined":o(l))||"object"===(void 0===s?"undefined":o(s)))return!1}return!0}},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=function(e){var t,n,h=e.DecoratedComponent,y=e.createHandler,b=e.createMonitor,v=e.createConnector,g=e.registerHandler,w=e.containerDisplayName,E=e.getType,_=e.collect,k=e.options.arePropsEqual,O=void 0===k?m.default:k,x=h.displayName||h.name||"Component",S=(n=t=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==r(t)&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.handleChange=o.handleChange.bind(o),o.handleChildRef=o.handleChildRef.bind(o),(0,f.default)("object"===a(o.context.dragDropManager),"Could not find the drag and drop manager in the context of %s. Make sure to wrap the top-level component of your app with DragDropContext. Read more: http://react-dnd.github.io/react-dnd/docs-troubleshooting.html#could-not-find-the-drag-and-drop-manager-in-the-context",x,x),o.manager=o.context.dragDropManager,o.handlerMonitor=b(o.manager),o.handlerConnector=v(o.manager.getBackend()),o.handler=y(o.handlerMonitor),o.disposable=new u.SerialDisposable,o.receiveProps(e),o.state=o.getCurrentState(),o.dispose(),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"getHandlerId",value:function(){return this.handlerId}},{key:"getDecoratedComponentInstance",value:function(){return this.decoratedComponentInstance}},{key:"shouldComponentUpdate",value:function(e,t){return!O(e,this.props)||!(0,d.default)(t,this.state)}}]),i(t,[{key:"componentDidMount",value:function(){this.isCurrentlyMounted=!0,this.disposable=new u.SerialDisposable,this.currentType=null,this.receiveProps(this.props),this.handleChange()}},{key:"componentWillReceiveProps",value:function(e){O(e,this.props)||(this.receiveProps(e),this.handleChange())}},{key:"componentWillUnmount",value:function(){this.dispose(),this.isCurrentlyMounted=!1}},{key:"receiveProps",value:function(e){this.handler.receiveProps(e),this.receiveType(E(e))}},{key:"receiveType",value:function(e){if(e!==this.currentType){this.currentType=e;var t=g(e,this.handler,this.manager),n=t.handlerId,r=t.unregister;this.handlerId=n,this.handlerMonitor.receiveHandlerId(n),this.handlerConnector.receiveHandlerId(n);var o=this.manager.getMonitor().subscribeToStateChange(this.handleChange,{handlerIds:[n]});this.disposable.setDisposable(new u.CompositeDisposable(new u.Disposable(o),new u.Disposable(r)))}}},{key:"handleChange",value:function(){if(this.isCurrentlyMounted){var e=this.getCurrentState();(0,d.default)(e,this.state)||this.setState(e)}}},{key:"dispose",value:function(){this.disposable.dispose(),this.handlerConnector.receiveHandlerId(null)}},{key:"handleChildRef",value:function(e){this.decoratedComponentInstance=e,this.handler.receiveComponent(e)}},{key:"getCurrentState",value:function(){return _(this.handlerConnector.hooks,this.handlerMonitor)}},{key:"render",value:function(){return s.default.createElement(h,o({},this.props,this.state,{ref:this.handleChildRef}))}}]),t}(l.Component),t.DecoratedComponent=h,t.displayName=w+"("+x+")",t.contextTypes={dragDropManager:c.default.object.isRequired},n);return(0,p.default)(S,h)};var l=n(0),s=h(l),c=h(n(8)),u=n(1599),f=(h(n(426)),h(n(181))),p=h(n(573)),d=h(n(574)),m=h(n(1266));function h(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t={};return Object.keys(e).forEach((function(n){var r=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if((0,o.isValidElement)(t)){var r=t;!function(e){if("string"==typeof e.type)return;var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors.You can either wrap "+t+" into a <div>, or turn it into a drag source or a drop target itself.")}(r);var a=n?function(t){return e(t,n)}:e;return(0,i.default)(r,a)}e(t,n)}}(e[n]);t[n]=function(){return r}})),t};var r,o=n(0),a=n(1607),i=(r=a)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t===e)return!0;return null!==t&&null!==e&&(0,a.default)(t,e)};var r,o=n(574),a=(r=o)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)};t.default=function e(t,n){return"string"==typeof t||"symbol"===(void 0===t?"undefined":o(t))||n&&(0,l.default)(t)&&t.every((function(t){return e(t,!1)}))};var a,i=n(183),l=(a=i)&&a.__esModule?a:{default:a}},function(e,t,n){function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=n(469),a=n(471),i=n(576),l=n(394);e.exports=function(e,t,n){if(!l(n))return!1;var s=r(t);return!!("number"==s?a(n)&&i(t,n.length):"string"==s&&t in n)&&o(n[t],e)}},function(e,t,n){var r=n(1615),o=n(533),a=n(183),i=n(535),l=n(576),s=n(577),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),u=!n&&o(e),f=!n&&!u&&i(e),p=!n&&!u&&!f&&s(e),d=n||u||f||p,m=d?r(e.length,String):[],h=m.length;for(var y in e)!t&&!c.call(e,y)||d&&("length"==y||f&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||l(y,h))||m.push(y);return m}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSafari=t.isFirefox=void 0;var r,o=n(1274),a=(r=o)&&r.__esModule?r:{default:r};t.isFirefox=(0,a.default)((function(){return/firefox/i.test(navigator.userAgent)})),t.isSafari=(0,a.default)((function(){return Boolean(window.safari)}))},function(e,t,n){var r=n(565),o="Expected a function";function a(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(o);var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(a.Cache||r),n}a.Cache=r,e.exports=a},function(e,t,n){e.exports=!n(437)&&!n(493)((function(){return 7!=Object.defineProperty(n(1276)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(474),o=n(435).document,a=r(o)&&r(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},function(e,t,n){var r=n(459),o=n(475),a=n(1632)(!1),i=n(586)("IE_PROTO");e.exports=function(e,t){var n,l=o(e),s=0,c=[];for(n in l)n!=i&&r(l,n)&&c.push(n);for(;t.length>s;)r(l,n=t[s++])&&(~a(c,n)||c.push(n));return c}},function(e,t,n){var r=n(583);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(585),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){e.exports={default:n(1634),__esModule:!0}},function(e,t,n){"use strict";var r=n(1638)(!0);n(1282)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){"use strict";var r=n(537),o=n(458),a=n(1283),i=n(472),l=n(495),s=n(1639),c=n(591),u=n(1642),f=n(422)("iterator"),p=!([].keys&&"next"in[].keys()),d="keys",m="values",h=function(){return this};e.exports=function(e,t,n,y,b,v,g){s(n,t,y);var w,E,_,k=function(e){if(!p&&e in j)return j[e];switch(e){case d:case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},O=t+" Iterator",x=b==m,S=!1,j=e.prototype,C=j[f]||j["@@iterator"]||b&&j[b],D=C||k(b),N=b?x?k("entries"):D:void 0,P="Array"==t&&j.entries||C;if(P&&(_=u(P.call(new e)))!==Object.prototype&&_.next&&(c(_,O,!0),r||"function"==typeof _[f]||i(_,f,h)),x&&C&&C.name!==m&&(S=!0,D=function(){return C.call(this)}),r&&!g||!p&&!S&&j[f]||i(j,f,D),l[t]=D,l[O]=h,b)if(w={values:x?D:k(m),keys:v?D:k(d),entries:N},g)for(E in w)E in j||a(j,E,w[E]);else o(o.P+o.F*(p||S),t,w);return w}},function(e,t,n){e.exports=n(472)},function(e,t,n){var r=n(1277),o=n(588).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(539),o=n(494),a=n(475),i=n(582),l=n(459),s=n(1275),c=Object.getOwnPropertyDescriptor;t.f=n(437)?c:function(e,t){if(e=a(e),t=i(t,!0),s)try{return c(e,t)}catch(e){}if(l(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t){e.exports=function(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1}},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},o={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},a=function(e){return function(t,n,a,i){var l=r(t),s=o[e][r(t)];return 2===l&&(s=s[n?0:1]),s.replace(/%d/i,t)}},i=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];return e.defineLocale("ar",{months:i,monthsShort:i,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:a("s"),ss:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(e){return function(r,o,a,i){var l=t(r),s=n[e][t(r)];return 2===l&&(s=s[o?0:1]),s.replace(/%d/i,r)}},o=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];return e.defineLocale("ar-dz",{months:o,monthsShort:o,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:0,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},o=function(e){return function(t,o,a,i){var l=n(t),s=r[e][n(t)];return 2===l&&(s=s[o?0:1]),s.replace(/%d/i,t)}},a=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];return e.defineLocale("ar-ly",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:o("s"),ss:o("s"),m:o("m"),mm:o("m"),h:o("h"),hh:o("h"),d:o("d"),dd:o("d"),M:o("M"),MM:o("M"),y:o("y"),yy:o("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};return e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};return e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";function t(e,t,n){var r,o;return"m"===n?t?"хвіліна":"хвіліну":"h"===n?t?"гадзіна":"гадзіну":e+" "+(r=+e,o={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[n].split("_"),r%10==1&&r%100!=11?o[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?o[1]:o[2])}return e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:t,mm:t,h:t,hh:t,d:"дзень",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Миналата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[Миналия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};return e.defineLocale("bn",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};return e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(ཟླ་\d{1,2})/,monthsParseExact:!0,weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";function t(e,t,n){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}function n(e){return e>9?n(e%10):e}var r=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],o=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,a=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];return e.defineLocale("br",{months:"Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:a,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:a,monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warcʼhoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Decʼh da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s ʼzo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(n(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return"g.m."===e},meridiem:function(e,t,n){return e<12?"a.m.":"g.m."}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}return e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),r=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],o=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function a(e){return e>1&&e<5&&1!=~~(e/10)}function i(e,t,n,r){var o=e+" ";switch(n){case"s":return t||r?"pár sekund":"pár sekundami";case"ss":return t||r?o+(a(e)?"sekundy":"sekund"):o+"sekundami";case"m":return t?"minuta":r?"minutu":"minutou";case"mm":return t||r?o+(a(e)?"minuty":"minut"):o+"minutami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?o+(a(e)?"hodiny":"hodin"):o+"hodinami";case"d":return t||r?"den":"dnem";case"dd":return t||r?o+(a(e)?"dny":"dní"):o+"dny";case"M":return t||r?"měsíc":"měsícem";case"MM":return t||r?o+(a(e)?"měsíce":"měsíců"):o+"měsíci";case"y":return t||r?"rok":"rokem";case"yy":return t||r?o+(a(e)?"roky":"let"):o+"lety"}}return e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";function t(e,t,n,r){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}return e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";function t(e,t,n,r){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}return e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";function t(e,t,n,r){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}return e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];return e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,n){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){return 6===this.day()?"[το προηγούμενο] dddd [{}] LT":"[την προηγούμενη] dddd [{}] LT"},sameElse:"L"},calendar:function(e,t){var n,r=this._calendarEl[e],o=t&&t.hours();return n=r,("undefined"!=typeof Function&&n instanceof Function||"[object Function]"===Object.prototype.toString.call(n))&&(r=r.apply(t)),r.replace("{}",o%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:6}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;return e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha invalida"})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;return e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;return e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";function t(e,t,n,r){var o={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?o[n][2]?o[n][2]:o[n][1]:r?o[n][0]:o[n][1]}return e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};return e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function r(e,r,o,a){var i="";switch(o){case"s":return a?"muutaman sekunnin":"muutama sekunti";case"ss":i=a?"sekunnin":"sekuntia";break;case"m":return a?"minuutin":"minuutti";case"mm":i=a?"minuutin":"minuuttia";break;case"h":return a?"tunnin":"tunti";case"hh":i=a?"tunnin":"tuntia";break;case"d":return a?"päivän":"päivä";case"dd":i=a?"päivän":"päivää";break;case"M":return a?"kuukauden":"kuukausi";case"MM":i=a?"kuukauden":"kuukautta";break;case"y":return a?"vuoden":"vuosi";case"yy":i=a?"vuoden":"vuotta"}return i=function(e,r){return e<10?r?n[e]:t[e]:e}(e,a)+" "+i,i}return e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,n=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];return e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:t,monthsShortRegex:t,monthsStrictRegex:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,monthsShortStrictRegex:/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");return e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("ga",{months:["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],weekdaysShort:["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],weekdaysMin:["Do","Lu","Má","Cé","Dé","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";function t(e,t,n,r){var o={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[e+" सॅकंडांनी",e+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[e+" मिणटांनी",e+" मिणटां"],h:["एका वरान","एक वर"],hh:[e+" वरांनी",e+" वरां"],d:["एका दिसान","एक दीस"],dd:[e+" दिसांनी",e+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[e+" म्हयन्यानी",e+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[e+" वर्सांनी",e+" वर्सां"]};return r?o[n][0]:o[n][1]}return e.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार".split("_"),weekdaysShort:"आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.".split("_"),weekdaysMin:"आ_सो_मं_बु_ब्रे_सु_शे".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [वाजतां]",LTS:"A h:mm:ss [वाजतां]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [वाजतां]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM YYYY, A h:mm [वाजतां]"},calendar:{sameDay:"[आयज] LT",nextDay:"[फाल्यां] LT",nextWeek:"[फुडलो] dddd[,] LT",lastDay:"[काल] LT",lastWeek:"[फाटलो] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s आदीं",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(e,t){return"D"===t?e+"वेर":e},week:{dow:1,doy:4},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(e,t){return 12===e&&(e=0),"राती"===t?e<4?e:e+12:"सकाळीं"===t?e:"दनपारां"===t?e>12?e:e+12:"सांजे"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"राती":e<12?"सकाळीं":e<16?"दनपारां":e<20?"सांजे":"राती"}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";function t(e,t,n,r){var o={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return r?o[n][0]:o[n][1]}return e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){return"D"===t?e+"er":e},week:{dow:1,doy:4},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};return e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પહેલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,n){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?n?'לפנה"צ':"לפני הצהריים":e<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};return e.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}return e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,r){var o=e;switch(n){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"ss":return o+(r||t)?" másodperc":" másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return o+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return o+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return o+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return o+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return o+(r||t?" év":" éve")}return""}function r(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}return e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return r.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return r.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,r,o){var a=e+" ";switch(r){case"s":return n||o?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?a+(n||o?"sekúndur":"sekúndum"):a+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?a+(n||o?"mínútur":"mínútum"):n?a+"mínúta":a+"mínútu";case"hh":return t(e)?a+(n||o?"klukkustundir":"klukkustundum"):a+"klukkustund";case"d":return n?"dagur":o?"dag":"degi";case"dd":return t(e)?n?a+"dagar":a+(o?"daga":"dögum"):n?a+"dagur":a+(o?"dag":"degi");case"M":return n?"mánuður":o?"mánuð":"mánuði";case"MM":return t(e)?n?a+"mánuðir":a+(o?"mánuði":"mánuðum"):n?a+"mánuður":a+(o?"mánuð":"mánuði");case"y":return n||o?"ár":"ári";case"yy":return t(e)?a+(n||o?"ár":"árum"):a+(n||o?"ár":"ári")}}return e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(e,t){return"元"===t[1]?1:parseInt(t[1]||e,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(e){return this.week()!==e.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"y":return 1===e?"元年":e+"年";case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,(function(e,t,n){return"ი"===n?t+"ში":t+n+"ში"}))},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):e},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};return e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};return e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e,t,n){return e<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(e){return e.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};return e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];return e.defineLocale("ku",{months:r,monthsShort:r,weekdays:"یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌".split("_"),weekdaysShort:"یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره‌|به‌یانی/,isPM:function(e){return/ئێواره‌/.test(e)},meridiem:function(e,t,n){return e<12?"به‌یانی":"ئێواره‌"},calendar:{sameDay:"[ئه‌مرۆ كاتژمێر] LT",nextDay:"[به‌یانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له‌ %s",past:"%s",s:"چه‌ند چركه‌یه‌ك",ss:"چركه‌ %d",m:"یه‌ك خوله‌ك",mm:"%d خوله‌ك",h:"یه‌ك كاتژمێر",hh:"%d كاتژمێر",d:"یه‌ك ڕۆژ",dd:"%d ڕۆژ",M:"یه‌ك مانگ",MM:"%d مانگ",y:"یه‌ك ساڵ",yy:"%d ساڵ"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};return e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";function t(e,t,n,r){var o={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?o[n][0]:o[n][1]}function n(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(e/=1e3)}return e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return n(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return n(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,n){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(e,t,n,r){return t?o(n)[0]:r?o(n)[1]:o(n)[2]}function r(e){return e%10==0||e>10&&e<20}function o(e){return t[e].split("_")}function a(e,t,a,i){var l=e+" ";return 1===e?l+n(0,t,a[0],i):t?l+(r(e)?o(a)[1]:o(a)[0]):i?l+o(a)[1]:l+(r(e)?o(a)[1]:o(a)[2])}return e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(e,t,n,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"},ss:a,m:n,mm:a,h:n,hh:a,d:n,dd:a,M:n,MM:a,y:n,yy:a},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function r(e,r,o){return e+" "+n(t[o],e,r)}function o(e,r,o){return n(t[o],e,r)}return e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(e,t){return t?"dažas sekundes":"dažām sekundēm"},ss:r,m:o,mm:r,h:o,hh:r,d:o,dd:r,M:o,MM:r,y:o,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var o=t.words[r];return 1===r.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}};return e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"за %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"една минута",mm:"%d минути",h:"еден час",hh:"%d часа",d:"еден ден",dd:"%d дена",M:"еден месец",MM:"%d месеци",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";function t(e,t,n,r){switch(n){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return e+(t?" секунд":" секундын");case"m":case"mm":return e+(t?" минут":" минутын");case"h":case"hh":return e+(t?" цаг":" цагийн");case"d":case"dd":return e+(t?" өдөр":" өдрийн");case"M":case"MM":return e+(t?" сар":" сарын");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}return e.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(e){return"ҮХ"===e},meridiem:function(e,t,n){return e<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөр";default:return e}}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function r(e,t,n,r){var o="";if(t)switch(n){case"s":o="काही सेकंद";break;case"ss":o="%d सेकंद";break;case"m":o="एक मिनिट";break;case"mm":o="%d मिनिटे";break;case"h":o="एक तास";break;case"hh":o="%d तास";break;case"d":o="एक दिवस";break;case"dd":o="%d दिवस";break;case"M":o="एक महिना";break;case"MM":o="%d महिने";break;case"y":o="एक वर्ष";break;case"yy":o="%d वर्षे"}else switch(n){case"s":o="काही सेकंदां";break;case"ss":o="%d सेकंदां";break;case"m":o="एका मिनिटा";break;case"mm":o="%d मिनिटां";break;case"h":o="एका तासा";break;case"hh":o="%d तासां";break;case"d":o="एका दिवसा";break;case"dd":o="%d दिवसां";break;case"M":o="एका महिन्या";break;case"MM":o="%d महिन्यां";break;case"y":o="एका वर्षा";break;case"yy":o="%d वर्षां"}return o.replace(/%d/i,e)}return e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(e,t){return 12===e&&(e=0),"पहाटे"===t||"सकाळी"===t?e:"दुपारी"===t||"सायंकाळी"===t||"रात्री"===t?e>=12?e:e+12:void 0},meridiem:function(e,t,n){return e>=0&&e<6?"पहाटे":e<12?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};return e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};return e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;return e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;return e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._må._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};return e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");function r(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function o(e,t,n){var o=e+" ";switch(n){case"ss":return o+(r(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return o+(r(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return o+(r(e)?"godziny":"godzin");case"MM":return o+(r(e)?"miesiące":"miesięcy");case"yy":return o+(r(e)?"lata":"lat")}}return e.defineLocale("pl",{months:function(e,r){return e?""===r?"("+n[e.month()]+"|"+t[e.month()]+")":/D MMMM/.test(r)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:o,m:o,mm:o,h:o,hh:o,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:o,y:"rok",yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"do_2ª_3ª_4ª_5ª_6ª_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº"})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";function t(e,t,n){var r=" ";return(e%100>=20||e>=100&&e%100==0)&&(r=" de "),e+r+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[n]}return e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";function t(e,t,n){var r,o;return"m"===n?t?"минута":"минуту":e+" "+(r=+e,o={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n].split("_"),r%10==1&&r%100!=11?o[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?o[1]:o[2])}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];return e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:t,m:t,mm:t,h:"час",hh:t,d:"день",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];return e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,n){return e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function r(e){return e>1&&e<5}function o(e,t,n,o){var a=e+" ";switch(n){case"s":return t||o?"pár sekúnd":"pár sekundami";case"ss":return t||o?a+(r(e)?"sekundy":"sekúnd"):a+"sekundami";case"m":return t?"minúta":o?"minútu":"minútou";case"mm":return t||o?a+(r(e)?"minúty":"minút"):a+"minútami";case"h":return t?"hodina":o?"hodinu":"hodinou";case"hh":return t||o?a+(r(e)?"hodiny":"hodín"):a+"hodinami";case"d":return t||o?"deň":"dňom";case"dd":return t||o?a+(r(e)?"dni":"dní"):a+"dňami";case"M":return t||o?"mesiac":"mesiacom";case"MM":return t||o?a+(r(e)?"mesiace":"mesiacov"):a+"mesiacmi";case"y":return t||o?"rok":"rokom";case"yy":return t||o?a+(r(e)?"roky":"rokov"):a+"rokmi"}}return e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:case 4:case 5:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";function t(e,t,n,r){var o=e+" ";switch(n){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"ss":return o+=1===e?t?"sekundo":"sekundi":2===e?t||r?"sekundi":"sekundah":e<5?t||r?"sekunde":"sekundah":"sekund";case"m":return t?"ena minuta":"eno minuto";case"mm":return o+=1===e?t?"minuta":"minuto":2===e?t||r?"minuti":"minutama":e<5?t||r?"minute":"minutami":t||r?"minut":"minutami";case"h":return t?"ena ura":"eno uro";case"hh":return o+=1===e?t?"ura":"uro":2===e?t||r?"uri":"urama":e<5?t||r?"ure":"urami":t||r?"ur":"urami";case"d":return t||r?"en dan":"enim dnem";case"dd":return o+=1===e?t||r?"dan":"dnem":2===e?t||r?"dni":"dnevoma":t||r?"dni":"dnevi";case"M":return t||r?"en mesec":"enim mesecem";case"MM":return o+=1===e?t||r?"mesec":"mesecem":2===e?t||r?"meseca":"mesecema":e<5?t||r?"mesece":"meseci":t||r?"mesecev":"meseci";case"y":return t||r?"eno leto":"enim letom";case"yy":return o+=1===e?t||r?"leto":"letom":2===e?t||r?"leti":"letoma":e<5?t||r?"leta":"leti":t||r?"let":"leti"}}return e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var o=t.words[r];return 1===r.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}};return e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var o=t.words[r];return 1===r.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}};return e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?":e":1===t||2===t?":a":":e")},week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};return e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t||"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};return e.defineLocale("tg",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Пагоҳ соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};return e.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'unjy";var r=e%10;return e+(t[r]||t[e%100-r]||t[e>=100?100:null])}},week:{dow:1,doy:7}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e,n,r,o){var a=function(e){var n=Math.floor(e%1e3/100),r=Math.floor(e%100/10),o=e%10,a="";return n>0&&(a+=t[n]+"vatlh"),r>0&&(a+=(""!==a?" ":"")+t[r]+"maH"),o>0&&(a+=(""!==a?" ":"")+t[o]),""===a?"pagh":a}(e);switch(r){case"ss":return a+" lup";case"mm":return a+" tup";case"hh":return a+" rep";case"dd":return a+" jaj";case"MM":return a+" jar";case"yy":return a+" DIS"}}return e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:n,m:"wa’ tup",mm:n,h:"wa’ rep",hh:n,d:"wa’ jaj",dd:n,M:"wa’ jar",MM:n,y:"wa’ DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};return e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(e,t,n){return e<12?n?"öö":"ÖÖ":n?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(e){return"ös"===e||"ÖS"===e},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var r=e%10;return e+(t[r]||t[e%100-r]||t[e>=100?100:null])}},week:{dow:1,doy:7}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";function t(e,t,n,r){var o={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return r||t?o[n][0]:o[n][1]}return e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"يېرىم كېچە":r<900?"سەھەر":r<1130?"چۈشتىن بۇرۇن":r<1230?"چۈش":r<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";function t(e,t,n){var r,o;return"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":e+" "+(r=+e,o={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[n].split("_"),r%10==1&&r%100!=11?o[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?o[1]:o[2])}function n(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}return e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(e,t){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:n("[Сьогодні "),nextDay:n("[Завтра "),lastDay:n("[Вчора "),nextWeek:n("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[Минулої] dddd [").call(this);case 1:case 2:case 4:return n("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:t,m:t,mm:t,h:"годину",hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];return e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(e){return e.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(e){return this.week()!==e.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1200?"上午":1200===r?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}i=function(e){"use strict";return e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})},"object"===l(t)&&void 0!==e?i(n(5)):(o=[n(5)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=s(n(0)),i=s(n(461)),l=n(460);function s(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==r(t)&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(i.default);c.defaultProps=o({},i.default.defaultProps,{className:"PlayButton",children:a.default.createElement(l.PlayIcon,null),isEnabled:!1}),t.default=c},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=s(n(0)),i=s(n(461)),l=n(460);function s(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==r(t)&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(i.default);c.defaultProps=o({},i.default.defaultProps,{className:"PauseButton",children:a.default.createElement(l.PauseIcon,null)}),t.default=c},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=s(n(0)),i=s(n(461)),l=n(460);function s(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==r(t)&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(i.default);c.defaultProps=o({},i.default.defaultProps,{className:"PrevButton",children:a.default.createElement(l.PreviousIcon,null),isEnabled:!1}),t.default=c},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=s(n(0)),i=s(n(461)),l=n(460);function s(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==r(t)&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(i.default);c.defaultProps=o({},i.default.defaultProps,{className:"NextButton",children:a.default.createElement(l.NextIcon,null),isEnabled:!1}),t.default=c},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),i=u(a),l=u(n(8)),s=u(n(7)),c=n(462);function u(e){return e&&e.__esModule?e:{default:e}}var f=l.default.number,p=l.default.object,d=function(e){return(e<10?"0":"")+e},m=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==r(t)&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"getFormattedTime",value:function(){var e=this.props.numSeconds,t=e<0?"-":"",n=Math.abs(e),r=Math.floor(n/3600),o=Math.floor(n%3600/60),a=Math.floor(n)%60;return r>0?""+t+r+":"+d(o)+":"+d(a):""+t+o+":"+d(a)}},{key:"render",value:function(){var e=this.props,t=e.style,n=e.className,r=e.extraClasses;return i.default.createElement("span",{className:(0,s.default)(n,r),style:t},this.getFormattedTime())}}]),t}(a.Component);m.propTypes={numSeconds:f,style:p},m.defaultProps={numSeconds:0,style:{}},t.default=(0,c.withCustomizableClasses)("FormattedTime",m)},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=s(n(0)),i=s(n(461)),l=n(460);function s(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==r(t)&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(i.default);c.defaultProps=o({},i.default.defaultProps,{className:"SoundOnButton",children:a.default.createElement(l.SoundOnIcon,null)}),t.default=c},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=s(n(0)),i=s(n(461)),l=n(460);function s(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==r(t)&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(i.default);c.defaultProps=o({},i.default.defaultProps,{className:"SoundOffButton",children:a.default.createElement(l.SoundOffIcon,null)}),t.default=c},function(e,t,n){var r=n(1428),o=n(496);e.exports=function(e,t){return e&&r(e,t,o)}},function(e,t,n){var r=n(1693)();e.exports=r},function(e,t,n){var r=n(531);e.exports=function(e){return"function"==typeof e?e:r}},function(e,t,n){var r=n(1704),o=n(420);e.exports=function e(t,n,a,i,l){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,a,i,e,l))}},function(e,t,n){var r=n(525),o=n(1705),a=n(530),i=1,l=2;e.exports=function(e,t,n,s,c,u){var f=n&i,p=e.length,d=t.length;if(p!=d&&!(f&&d>p))return!1;var m=u.get(e);if(m&&u.get(t))return m==t;var h=-1,y=!0,b=n&l?new r:void 0;for(u.set(e,t),u.set(t,e);++h<p;){var v=e[h],g=t[h];if(s)var w=f?s(g,v,h,t,e,u):s(v,g,h,e,t,u);if(void 0!==w){if(w)continue;y=!1;break}if(b){if(!o(t,(function(e,t){if(!a(b,t)&&(v===e||c(v,e,n,s,u)))return b.push(t)}))){y=!1;break}}else if(v!==g&&!c(v,g,n,s,u)){y=!1;break}}return u.delete(e),u.delete(t),y}},function(e,t,n){var r=n(415).Uint8Array;e.exports=r},function(e,t,n){var r=n(1434),o=n(596),a=n(496);e.exports=function(e){return r(e,a,o)}},function(e,t,n){var r=n(571),o=n(183);e.exports=function(e,t,n){var a=t(e);return o(e)?a:r(a,n(e))}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(394);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},function(e,t,n){var r=n(1439),o=n(544);e.exports=function(e,t){for(var n=0,a=(t=r(t,e)).length;null!=e&&n<a;)e=e[o(t[n++])];return n&&n==a?e:void 0}},function(e,t,n){var r=n(183),o=n(597),a=n(1715),i=n(1717);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:a(i(e))}},function(e,t,n){var r=n(1427),o=n(1726)(r);e.exports=o},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},function(e,t,n){var r=n(598),o=n(469),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var i=e[t];a.call(e,t)&&o(i,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){(function(e){function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=n(415),a="object"==r(t)&&t&&!t.nodeType&&t,i=a&&"object"==r(e)&&e&&!e.nodeType&&e,l=i&&i.exports===a?o.Buffer:void 0,s=l?l.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(101)(e))},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){var r=n(571),o=n(564),a=n(596),i=n(1435),l=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,a(e)),e=o(e);return t}:i;e.exports=l},function(e,t,n){var r=n(599);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var r=n(1740),o=n(564),a=n(579);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:r(o(e))}},function(e,t,n){var r=n(598),o=n(469);e.exports=function(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.ColorWrap=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),l=u(i),s=u(n(546)),c=u(n(423));function u(e){return e&&e.__esModule?e:{default:e}}var f=t.ColorWrap=function(e){var t=function(t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==r(t)&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.handleChange=function(e,n){if(c.default.simpleCheckForValidColor(e)){var r=c.default.toState(e,e.h||t.state.oldHue);t.setState(r),t.props.onChangeComplete&&t.debounce(t.props.onChangeComplete,r,n),t.props.onChange&&t.props.onChange(r,n)}},t.handleSwatchHover=function(e,n){if(c.default.simpleCheckForValidColor(e)){var r=c.default.toState(e,e.h||t.state.oldHue);t.props.onSwatchHover&&t.props.onSwatchHover(r,n)}},t.state=o({},c.default.toState(e.color,0)),t.debounce=(0,s.default)((function(e,t,n){e(t,n)}),100),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),a(n,[{key:"render",value:function(){var t={};return this.props.onSwatchHover&&(t.onSwatchHover=this.handleSwatchHover),l.default.createElement(e,o({},this.props,this.state,{onChange:this.handleChange},t))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return o({},c.default.toState(e.color,t.oldHue))}}]),n}(i.PureComponent||i.Component);return t.propTypes=o({},e.propTypes),t.defaultProps=o({},e.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),t};t.default=f},function(e,t,n){"use strict";n.r(t),n.d(t,"red",(function(){return r})),n.d(t,"pink",(function(){return o})),n.d(t,"purple",(function(){return a})),n.d(t,"deepPurple",(function(){return i})),n.d(t,"indigo",(function(){return l})),n.d(t,"blue",(function(){return s})),n.d(t,"lightBlue",(function(){return c})),n.d(t,"cyan",(function(){return u})),n.d(t,"teal",(function(){return f})),n.d(t,"green",(function(){return p})),n.d(t,"lightGreen",(function(){return d})),n.d(t,"lime",(function(){return m})),n.d(t,"yellow",(function(){return h})),n.d(t,"amber",(function(){return y})),n.d(t,"orange",(function(){return b})),n.d(t,"deepOrange",(function(){return v})),n.d(t,"brown",(function(){return g})),n.d(t,"grey",(function(){return w})),n.d(t,"blueGrey",(function(){return E})),n.d(t,"darkText",(function(){return _})),n.d(t,"lightText",(function(){return k})),n.d(t,"darkIcons",(function(){return O})),n.d(t,"lightIcons",(function(){return x})),n.d(t,"white",(function(){return S})),n.d(t,"black",(function(){return j}));var r={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},o={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},a={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},i={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},l={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},s={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},c={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},u={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},f={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},p={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},d={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},m={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},h={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},y={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},b={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},v={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},g={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},w={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121"},E={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},_={primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",dividers:"rgba(0, 0, 0, 0.12)"},k={primary:"rgba(255, 255, 255, 1)",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",dividers:"rgba(255, 255, 255, 0.12)"},O={active:"rgba(0, 0, 0, 0.54)",inactive:"rgba(0, 0, 0, 0.38)"},x={active:"rgba(255, 255, 255, 1)",inactive:"rgba(255, 255, 255, 0.5)"},S="#ffffff",j="#000000";t.default={red:r,pink:o,purple:a,deepPurple:i,indigo:l,blue:s,lightBlue:c,cyan:u,teal:f,green:p,lightGreen:d,lime:m,yellow:h,amber:y,orange:b,deepOrange:v,brown:g,grey:w,blueGrey:E,darkText:_,lightText:k,darkIcons:O,lightIcons:x,white:S,black:j}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBoundPosition=function(e,t,n){if(!e.props.bounds)return[t,n];var i=e.props.bounds;i="string"==typeof i?i:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(i);var l=a(e);if("string"==typeof i){var s,c=l.ownerDocument,u=c.defaultView;if(!((s="parent"===i?l.parentNode:c.querySelector(i))instanceof u.HTMLElement))throw new Error('Bounds selector "'+i+'" could not find an element.');var f=u.getComputedStyle(l),p=u.getComputedStyle(s);i={left:-l.offsetLeft+(0,r.int)(p.paddingLeft)+(0,r.int)(f.marginLeft),top:-l.offsetTop+(0,r.int)(p.paddingTop)+(0,r.int)(f.marginTop),right:(0,o.innerWidth)(s)-(0,o.outerWidth)(l)-l.offsetLeft+(0,r.int)(p.paddingRight)-(0,r.int)(f.marginRight),bottom:(0,o.innerHeight)(s)-(0,o.outerHeight)(l)-l.offsetTop+(0,r.int)(p.paddingBottom)-(0,r.int)(f.marginBottom)}}(0,r.isNum)(i.right)&&(t=Math.min(t,i.right));(0,r.isNum)(i.bottom)&&(n=Math.min(n,i.bottom));(0,r.isNum)(i.left)&&(t=Math.max(t,i.left));(0,r.isNum)(i.top)&&(n=Math.max(n,i.top));return[t,n]},t.snapToGrid=function(e,t,n){var r=Math.round(t/e[0])*e[0],o=Math.round(n/e[1])*e[1];return[r,o]},t.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},t.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},t.getControlPosition=function(e,t,n){var r="number"==typeof t?(0,o.getTouch)(e,t):null;if("number"==typeof t&&!r)return null;var i=a(n),l=n.props.offsetParent||i.offsetParent||i.ownerDocument.body;return(0,o.offsetXYFromParent)(r||e,l,n.props.scale)},t.createCoreData=function(e,t,n){var o=e.state,i=!(0,r.isNum)(o.lastX),l=a(e);return i?{node:l,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:l,deltaX:t-o.lastX,deltaY:n-o.lastY,lastX:o.lastX,lastY:o.lastY,x:t,y:n}},t.createDraggableData=function(e,t){var n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}};var r=n(545),o=n(601);function a(e){var t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){void 0}},,,,,,,,,function(e,t,n){function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=n(1535);e.exports=m,e.exports.parse=i,e.exports.compile=function(e,t){return s(i(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=d;var a=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,r=[],o=0,i=0,l="",s=t&&t.delimiter||"/";null!=(n=a.exec(e));){var f=n[0],p=n[1],d=n.index;if(l+=e.slice(i,d),i=d+f.length,p)l+=p[1];else{var m=e[i],h=n[2],y=n[3],b=n[4],v=n[5],g=n[6],w=n[7];l&&(r.push(l),l="");var E=null!=h&&null!=m&&m!==h,_="+"===g||"*"===g,k="?"===g||"*"===g,O=n[2]||s,x=b||v;r.push({name:y||o++,prefix:h||"",delimiter:O,optional:k,repeat:_,partial:E,asterisk:!!w,pattern:x?u(x):w?".*":"[^"+c(O)+"]+?"})}}return i<e.length&&(l+=e.substr(i)),l&&r.push(l),r}function l(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var n=new Array(e.length),a=0;a<e.length;a++)"object"===r(e[a])&&(n[a]=new RegExp("^(?:"+e[a].pattern+")$",p(t)));return function(t,r){for(var a="",i=t||{},s=(r||{}).pretty?l:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!=typeof u){var f,p=i[u.name];if(null==p){if(u.optional){u.partial&&(a+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(o(p)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var d=0;d<p.length;d++){if(f=s(p[d]),!n[c].test(f))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(f)+"`");a+=(0===d?u.prefix:u.delimiter)+f}}else{if(f=u.asterisk?encodeURI(p).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):s(p),!n[c].test(f))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+f+'"');a+=u.prefix+f}}else a+=u}return a}}function c(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function u(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function f(e,t){return e.keys=t,e}function p(e){return e&&e.sensitive?"":"i"}function d(e,t,n){o(t)||(n=t||n,t=[]);for(var r=(n=n||{}).strict,a=!1!==n.end,i="",l=0;l<e.length;l++){var s=e[l];if("string"==typeof s)i+=c(s);else{var u=c(s.prefix),d="(?:"+s.pattern+")";t.push(s),s.repeat&&(d+="(?:"+u+d+")*"),i+=d=s.optional?s.partial?u+"("+d+")?":"(?:"+u+"("+d+"))?":u+"("+d+")"}}var m=c(n.delimiter||"/"),h=i.slice(-m.length)===m;return r||(i=(h?i.slice(0,-m.length):i)+"(?:"+m+"(?=$))?"),i+=a?"$":r&&h?"":"(?="+m+"|$)",f(new RegExp("^"+i,p(n)),t)}function m(e,t,n){return o(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return f(e,t)}(e,t):o(e)?function(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(m(e[o],t,n).source);return f(new RegExp("(?:"+r.join("|")+")",p(n)),t)}(e,t,n):function(e,t,n){return d(i(e,n),t,n)}(e,t,n)}},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";e.exports=function(){}},function(e,t,n){try{var r=n(1286)}catch(e){r=n(1286)}var o=/\s+/,a=Object.prototype.toString;function i(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}e.exports=function(e){return new i(e)},i.prototype.add=function(e){if(this.list)return this.list.add(e),this;var t=this.array();return~r(t,e)||t.push(e),this.el.className=t.join(" "),this},i.prototype.remove=function(e){if("[object RegExp]"==a.call(e))return this.removeMatching(e);if(this.list)return this.list.remove(e),this;var t=this.array(),n=r(t,e);return~n&&t.splice(n,1),this.el.className=t.join(" "),this},i.prototype.removeMatching=function(e){for(var t=this.array(),n=0;n<t.length;n++)e.test(t[n])&&this.remove(t[n]);return this},i.prototype.toggle=function(e,t){return this.list?(void 0!==t?t!==this.list.toggle(e,t)&&this.list.toggle(e):this.list.toggle(e),this):(void 0!==t?t?this.add(e):this.remove(e):this.has(e)?this.remove(e):this.add(e),this)},i.prototype.array=function(){var e=(this.el.getAttribute("class")||"").replace(/^\s+|\s+$/g,"").split(o);return""===e[0]&&e.shift(),e},i.prototype.has=i.prototype.contains=function(e){return this.list?this.list.contains(e):!!~r(this.array(),e)}},function(e,t,n){"use strict";e.exports=n(1673)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ControlDirection=t.VolumeSlider=t.MuteToggleButton=t.SoundOffButton=t.SoundOnButton=t.TimeMarkerType=t.TimeMarker=t.FormattedTime=t.ProgressBar=t.PrevButton=t.NextButton=t.PauseButton=t.PlayButton=t.PlaybackControls=t.Button=void 0;var r=n(460);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})}));var o=g(n(461)),a=g(n(1676)),i=g(n(1420)),l=g(n(1421)),s=g(n(1423)),c=g(n(1422)),u=g(n(1679)),f=g(n(1424)),p=n(1680),d=g(p),m=g(n(1425)),h=g(n(1426)),y=g(n(1682)),b=g(n(1683)),v=n(594);function g(e){return e&&e.__esModule?e:{default:e}}t.Button=o.default,t.PlaybackControls=a.default,t.PlayButton=i.default,t.PauseButton=l.default,t.NextButton=s.default,t.PrevButton=c.default,t.ProgressBar=u.default,t.FormattedTime=f.default,t.TimeMarker=d.default,t.TimeMarkerType=p.TimeMarkerType,t.SoundOnButton=m.default,t.SoundOffButton=h.default,t.MuteToggleButton=y.default,t.VolumeSlider=b.default,t.ControlDirection=v.ControlDirection},function(e,t){e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},function(e,t){e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},function(e,t,n){"use strict";e.exports=n(1686)},function(e,t,n){var r=n(1687);function o(e,t){var n,o=null;if(!e||"string"!=typeof e)return o;for(var a,i,l=r(e),s="function"==typeof t,c=0,u=l.length;c<u;c++)a=(n=l[c]).property,i=n.value,s?t(a,i,n):i&&(o||(o={}),o[a]=i);return o}e.exports=o,e.exports.default=o},function(e,t,n){(function(e){var r,o;function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}(function(){(function(){(function(){var e=[].slice;this.ActionCable={INTERNAL:{message_types:{welcome:"welcome",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]},WebSocket:window.WebSocket,logger:window.console,createConsumer:function(e){var t;return null==e&&(e=null!=(t=this.getConfig("url"))?t:this.INTERNAL.default_mount_path),new i.Consumer(this.createWebSocketURL(e))},getConfig:function(e){var t;return null!=(t=document.head.querySelector("meta[name='action-cable-"+e+"']"))?t.getAttribute("content"):void 0},createWebSocketURL:function(e){var t;return e&&!/^wss?:/i.test(e)?((t=document.createElement("a")).href=e,t.href=t.href,t.protocol=t.protocol.replace("http","ws"),t.href):e},startDebugging:function(){return this.debugging=!0},stopDebugging:function(){return this.debugging=null},log:function(){var t,n;if(t=1<=arguments.length?e.call(arguments,0):[],this.debugging)return t.push(Date.now()),(n=this.logger).log.apply(n,["[ActionCable]"].concat(e.call(t)))}}}).call(this)}).call(this);var i=this.ActionCable;(function(){(function(){var e=function(e,t){return function(){return e.apply(t,arguments)}};i.ConnectionMonitor=function(){var t,n,r;function o(t){this.connection=t,this.visibilityDidChange=e(this.visibilityDidChange,this),this.reconnectAttempts=0}return o.pollInterval={min:3,max:30},o.staleThreshold=6,o.prototype.start=function(){if(!this.isRunning())return this.startedAt=n(),delete this.stoppedAt,this.startPolling(),document.addEventListener("visibilitychange",this.visibilityDidChange),i.log("ConnectionMonitor started. pollInterval = "+this.getPollInterval()+" ms")},o.prototype.stop=function(){if(this.isRunning())return this.stoppedAt=n(),this.stopPolling(),document.removeEventListener("visibilitychange",this.visibilityDidChange),i.log("ConnectionMonitor stopped")},o.prototype.isRunning=function(){return null!=this.startedAt&&null==this.stoppedAt},o.prototype.recordPing=function(){return this.pingedAt=n()},o.prototype.recordConnect=function(){return this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,i.log("ConnectionMonitor recorded connect")},o.prototype.recordDisconnect=function(){return this.disconnectedAt=n(),i.log("ConnectionMonitor recorded disconnect")},o.prototype.startPolling=function(){return this.stopPolling(),this.poll()},o.prototype.stopPolling=function(){return clearTimeout(this.pollTimeout)},o.prototype.poll=function(){return this.pollTimeout=setTimeout((e=this,function(){return e.reconnectIfStale(),e.poll()}),this.getPollInterval());var e},o.prototype.getPollInterval=function(){var e,n,r,o;return r=(o=this.constructor.pollInterval).min,n=o.max,e=5*Math.log(this.reconnectAttempts+1),Math.round(1e3*t(e,r,n))},o.prototype.reconnectIfStale=function(){if(this.connectionIsStale())return i.log("ConnectionMonitor detected stale connection. reconnectAttempts = "+this.reconnectAttempts+", pollInterval = "+this.getPollInterval()+" ms, time disconnected = "+r(this.disconnectedAt)+" s, stale threshold = "+this.constructor.staleThreshold+" s"),this.reconnectAttempts++,this.disconnectedRecently()?i.log("ConnectionMonitor skipping reopening recent disconnect"):(i.log("ConnectionMonitor reopening"),this.connection.reopen())},o.prototype.connectionIsStale=function(){var e;return r(null!=(e=this.pingedAt)?e:this.startedAt)>this.constructor.staleThreshold},o.prototype.disconnectedRecently=function(){return this.disconnectedAt&&r(this.disconnectedAt)<this.constructor.staleThreshold},o.prototype.visibilityDidChange=function(){if("visible"===document.visibilityState)return setTimeout((e=this,function(){if(e.connectionIsStale()||!e.connection.isOpen())return i.log("ConnectionMonitor reopening stale connection on visibilitychange. visbilityState = "+document.visibilityState),e.connection.reopen()}),200);var e},n=function(){return(new Date).getTime()},r=function(e){return(n()-e)/1e3},t=function(e,t,n){return Math.max(t,Math.min(n,e))},o}()}).call(this),function(){var e,t,n,r,o,a=[].slice,l=function(e,t){return function(){return e.apply(t,arguments)}},s=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1};r=i.INTERNAL,t=r.message_types,n=r.protocols,o=2<=n.length?a.call(n,0,e=n.length-1):(e=0,[]),n[e++],i.Connection=function(){function e(e){this.consumer=e,this.open=l(this.open,this),this.subscriptions=this.consumer.subscriptions,this.monitor=new i.ConnectionMonitor(this),this.disconnected=!0}return e.reopenDelay=500,e.prototype.send=function(e){return!!this.isOpen()&&(this.webSocket.send(JSON.stringify(e)),!0)},e.prototype.open=function(){return this.isActive()?(i.log("Attempted to open WebSocket, but existing socket is "+this.getState()),!1):(i.log("Opening WebSocket, current state is "+this.getState()+", subprotocols: "+n),null!=this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new i.WebSocket(this.consumer.url,n),this.installEventHandlers(),this.monitor.start(),!0)},e.prototype.close=function(e){var t;if((null!=e?e:{allowReconnect:!0}).allowReconnect||this.monitor.stop(),this.isActive())return null!=(t=this.webSocket)?t.close():void 0},e.prototype.reopen=function(){var e;if(i.log("Reopening WebSocket, current state is "+this.getState()),!this.isActive())return this.open();try{return this.close()}catch(t){return e=t,i.log("Failed to reopen WebSocket",e)}finally{i.log("Reopening WebSocket in "+this.constructor.reopenDelay+"ms"),setTimeout(this.open,this.constructor.reopenDelay)}},e.prototype.getProtocol=function(){var e;return null!=(e=this.webSocket)?e.protocol:void 0},e.prototype.isOpen=function(){return this.isState("open")},e.prototype.isActive=function(){return this.isState("open","connecting")},e.prototype.isProtocolSupported=function(){var e;return e=this.getProtocol(),s.call(o,e)>=0},e.prototype.isState=function(){var e,t;return t=1<=arguments.length?a.call(arguments,0):[],e=this.getState(),s.call(t,e)>=0},e.prototype.getState=function(){var e,t;for(t in WebSocket)if(WebSocket[t]===(null!=(e=this.webSocket)?e.readyState:void 0))return t.toLowerCase();return null},e.prototype.installEventHandlers=function(){var e,t;for(e in this.events)t=this.events[e].bind(this),this.webSocket["on"+e]=t},e.prototype.uninstallEventHandlers=function(){var e;for(e in this.events)this.webSocket["on"+e]=function(){}},e.prototype.events={message:function(e){var n,r,o;if(this.isProtocolSupported())switch(n=(o=JSON.parse(e.data)).identifier,r=o.message,o.type){case t.welcome:return this.monitor.recordConnect(),this.subscriptions.reload();case t.ping:return this.monitor.recordPing();case t.confirmation:return this.subscriptions.notify(n,"connected");case t.rejection:return this.subscriptions.reject(n);default:return this.subscriptions.notify(n,"received",r)}},open:function(){if(i.log("WebSocket onopen event, using '"+this.getProtocol()+"' subprotocol"),this.disconnected=!1,!this.isProtocolSupported())return i.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close:function(e){if(i.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error:function(){return i.log("WebSocket onerror event")}},e}()}.call(this),function(){var e=[].slice;i.Subscriptions=function(){function t(e){this.consumer=e,this.subscriptions=[]}return t.prototype.create=function(e,t){var n,r,o;return r="object"===a(n=e)?n:{channel:n},o=new i.Subscription(this.consumer,r,t),this.add(o)},t.prototype.add=function(e){return this.subscriptions.push(e),this.consumer.ensureActiveConnection(),this.notify(e,"initialized"),this.sendCommand(e,"subscribe"),e},t.prototype.remove=function(e){return this.forget(e),this.findAll(e.identifier).length||this.sendCommand(e,"unsubscribe"),e},t.prototype.reject=function(e){var t,n,r,o,a;for(o=[],t=0,n=(r=this.findAll(e)).length;t<n;t++)a=r[t],this.forget(a),this.notify(a,"rejected"),o.push(a);return o},t.prototype.forget=function(e){var t;return this.subscriptions=function(){var n,r,o,a;for(a=[],n=0,r=(o=this.subscriptions).length;n<r;n++)(t=o[n])!==e&&a.push(t);return a}.call(this),e},t.prototype.findAll=function(e){var t,n,r,o,a;for(o=[],t=0,n=(r=this.subscriptions).length;t<n;t++)(a=r[t]).identifier===e&&o.push(a);return o},t.prototype.reload=function(){var e,t,n,r,o;for(r=[],e=0,t=(n=this.subscriptions).length;e<t;e++)o=n[e],r.push(this.sendCommand(o,"subscribe"));return r},t.prototype.notifyAll=function(){var t,n,r,o,a,i,l;for(n=arguments[0],t=2<=arguments.length?e.call(arguments,1):[],i=[],r=0,o=(a=this.subscriptions).length;r<o;r++)l=a[r],i.push(this.notify.apply(this,[l,n].concat(e.call(t))));return i},t.prototype.notify=function(){var t,n,r,o,a,i,l;for(i=arguments[0],n=arguments[1],t=3<=arguments.length?e.call(arguments,2):[],a=[],r=0,o=(l="string"==typeof i?this.findAll(i):[i]).length;r<o;r++)i=l[r],a.push("function"==typeof i[n]?i[n].apply(i,t):void 0);return a},t.prototype.sendCommand=function(e,t){var n;return n=e.identifier,this.consumer.send({command:t,identifier:n})},t}()}.call(this),function(){i.Subscription=function(){var e;function t(t,n,r){this.consumer=t,null==n&&(n={}),this.identifier=JSON.stringify(n),e(this,r)}return t.prototype.perform=function(e,t){return null==t&&(t={}),t.action=e,this.send(t)},t.prototype.send=function(e){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(e)})},t.prototype.unsubscribe=function(){return this.consumer.subscriptions.remove(this)},e=function(e,t){var n,r;if(null!=t)for(n in t)r=t[n],e[n]=r;return e},t}()}.call(this),function(){i.Consumer=function(){function e(e){this.url=e,this.subscriptions=new i.Subscriptions(this),this.connection=new i.Connection(this)}return e.prototype.send=function(e){return this.connection.send(e)},e.prototype.connect=function(){return this.connection.open()},e.prototype.disconnect=function(){return this.connection.close({allowReconnect:!1})},e.prototype.ensureActiveConnection=function(){if(!this.connection.isActive())return this.connection.open()},e}()}.call(this)}).call(this),"object"===a(e)&&e.exports?e.exports=i:void 0===(o="function"==typeof(r=i)?r.call(t,n,t,e):r)||(e.exports=o)}).call(this)}).call(this,n(101)(e))},function(e,t,n){!function(){"use strict";var t,n,r,o=new Date("2060-10-22"),a=2,i=4,l=5,s=10,c=20,u=30,f=[i,u],p=[0,a,s],d=12e4,m=["maxConcurrentParts","logging","cloudfront","encodeFilename","computeContentMd5","allowS3ExistenceOptimization","onlyRetryForSameFileName","timeUrl","cryptoMd5Method","cryptoHexEncodedHash256","awsRegion","awsSignatureVersion","evaporateChanged"],h={33:"%21",39:"%27",40:"%28",41:"%29",42:"%2A"},y=function e(o){if(this.config=T({readableStreams:!1,readableStreamPartMethod:null,bucket:null,logging:!0,maxConcurrentParts:5,partSize:6291456,retryBackoffPower:2,maxRetryBackoffSecs:300,progressIntervalMS:1e3,cloudfront:!1,s3Acceleration:!1,mockLocalStorage:!1,encodeFilename:!0,computeContentMd5:!1,allowS3ExistenceOptimization:!1,onlyRetryForSameFileName:!1,timeUrl:null,cryptoMd5Method:null,cryptoHexEncodedHash256:null,aws_key:null,awsRegion:"us-east-1",awsSignatureVersion:"4",sendCanonicalRequestToSignerUrl:!1,s3FileCacheHoursAgo:null,signParams:{},signHeaders:{},customAuthMethod:void 0,maxFileSize:null,signResponseHandler:null,xhrWithCredentials:!1,localTimeOffset:void 0,evaporateChanged:function(){},abortCompletionThrottlingMs:1e3},o),"undefined"!=typeof window&&window.console&&((n=window.console).d=n.log,n.w=window.console.warn?n.warn:n.d,n.e=window.console.error?n.error:n.d),this._instantiationError=this.validateEvaporateOptions(),"string"!=typeof this._instantiationError){delete this._instantiationError,this.config.logging||(n={d:function(){},w:function(){},e:function(){}});var a=new Date;if(t=new Date(a.setHours(a.getHours()-(this.config.s3FileCacheHoursAgo||-100))),"number"==typeof o.localTimeOffset)this.localTimeOffset=o.localTimeOffset;else{var i=this;e.getLocalTimeOffset(this.config).then((function(e){i.localTimeOffset=e}))}this.pendingFiles={},this.queuedFiles=[],this.filesInProcess=[],r=new z(this.config.mockLocalStorage)}else this.supported=!1};function b(e,t,n){this.fileTotalBytesUploaded=0,this.s3Parts=[],this.partsOnS3=[],this.partsInProcess=[],this.partsToUpload=[],this.numParts=-1,this.con=T({},t),this.evaporate=n,this.localTimeOffset=n.localTimeOffset,this.deferredCompletion=P(),T(this,e),this.id=decodeURIComponent(this.con.bucket+"/"+this.name),this.signParams=t.signParams}function v(e,t){this.fileUpload=e,this.con=e.con,this.attempts=1,this.localTimeOffset=this.fileUpload.localTimeOffset,this.awsDeferred=P(),this.started=P(),this.awsUrl=function(e){var t;e.aws_url?t=[e.aws_url]:(e.s3Acceleration?(t=["https://",e.bucket,".s3-accelerate"],e.cloudfront=!0):(t=["https://",e.cloudfront?e.bucket+".":"","s3"],"us-east-1"!==e.awsRegion&&t.push("-",e.awsRegion)),t.push(".amazonaws.com"));return t.join("")}(this.con),this.awsHost=j(this.awsUrl).hostname;var n=T({},t);e.contentType&&(n.contentType=e.contentType),this.updateRequest(n)}function g(e,t){v.call(this,e,t)}function w(e,t,n){n>-1&&(this.maxRetries=n),v.call(this,e,t)}function E(e,t){var n={method:"POST",path:"?uploads",step:"initiate",x_amz_headers:e.xAmzHeadersAtInitiate,not_signed_headers:e.notSignedHeadersAtInitiate,response_match:"<UploadId>(.+)</UploadId>"};g.call(this,e,n),this.awsKey=t}function _(e){e.info("will attempt to complete upload");var t={method:"POST",contentType:"application/xml; charset=UTF-8",path:"?uploadId="+e.uploadId,x_amz_headers:e.xAmzHeadersCommon||e.xAmzHeadersAtComplete,step:"complete"};g.call(this,e,t)}function k(e,t){this.awsKey=t,e.info("will attempt to verify existence of the file");var n={method:"HEAD",path:"",x_amz_headers:e.xAmzHeadersCommon,success404:!0,step:"head_object"};w.call(this,e,n)}function O(e){w.call(this,e),this.updateRequest(this.setupRequest(0))}function x(e,t){this.part=t,this.partNumber=t.partNumber,this.start=(this.partNumber-1)*e.con.partSize,this.end=Math.min(this.partNumber*e.con.partSize,e.sizeBytes);var n={method:"PUT",path:"?partNumber="+this.partNumber+"&uploadId="+e.uploadId,step:"upload #"+this.partNumber,x_amz_headers:e.xAmzHeadersCommon||e.xAmzHeadersAtUpload,contentSha256:"UNSIGNED-PAYLOAD",onProgress:this.onProgress.bind(this)};v.call(this,e,n)}function S(e){e.info("will attempt to abort the upload"),e.abortParts();var t={method:"DELETE",path:"?uploadId="+e.uploadId,x_amz_headers:e.xAmzHeadersCommon,success404:!0,step:"abort"};v.call(this,e,t)}function j(e){var t,n=e||"/";try{(t=new URL(n)).search=t.search||""}catch(e){(t=document.createElement("a")).href=n}return{protocol:t.protocol,hostname:t.hostname,pathname:t.pathname.replace(/(^\/?)/,"/"),port:t.port,search:"?"===t.search[0]?t.search.substr(1):t.search,hash:t.hash,host:t.host}}function C(e){return e?new Date(e).toISOString():""}function D(e){var t=N(e.responseText,"Code"),n=N(e.responseText,"Message");return t.length?["AWS Code: ",t,", Message:",n].join(""):""}function N(e,t){var n=e.match(["<",t,">(.+)</",t,">"].join(""));return n?n[1]:""}function P(){var e,t={};return e=new Promise((function(e,n){t={resolve:e,reject:n}})),{resolve:t.resolve,reject:t.reject,promise:e}}function T(e,t,n){function r(e,t){if("object"==typeof t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}return e=e||{},r(t=t||{},n=n||{}),r(e,t),e}function M(e){var n=JSON.parse(r.getItem("awsUploads")||"{}");if(e){for(var a in n)if(n.hasOwnProperty(a)){var i=n[a];new Date(i.completedAt||o)<t&&delete n[a]}r.setItem("awsUploads",JSON.stringify(n))}return n}function A(e){return[e.file.name,e.file.type,C(e.file.lastModified),e.sizeBytes].join("-")}function L(e,t){var n=M();n[e]=t,r.setItem("awsUploads",JSON.stringify(n))}function R(e,t){var n=e.indexOf(t);if(n>-1)return e.splice(n,1),!0}function F(e){for(var t=0;e>=1024;)e/=1024,++t;return[e.toFixed(2).replace(".00",""),["B","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"][t]].join(" ")}function z(e){var t=z.supported();this.cacheStore=e?{}:t?localStorage:void 0}y.create=function(e){var t=T({},e);return y.getLocalTimeOffset(t).then((function(e){return t.localTimeOffset=e,new Promise((function(e,n){var r=new y(t);!0===r.supported?e(r):n(r._instantiationError)}))}))},y.getLocalTimeOffset=function(e){return new Promise((function(t,r){if("number"==typeof e.localTimeOffset)return t(e.localTimeOffset);if(e.timeUrl){var o=new XMLHttpRequest;o.open("GET",e.timeUrl+"?requestTime="+(new Date).getTime()),o.onreadystatechange=function(){if(4===o.readyState&&200===o.status){var e=new Date(Date.parse(o.responseText))-new Date;n.d("localTimeOffset is",e,"ms"),t(e)}},o.onerror=function(e){n.e("xhr error timeUrl",e),r("Fetching offset time failed with status: "+e.status)},o.send()}else t(0)}))},y.prototype.config={},y.prototype.localTimeOffset=0,y.prototype.supported=!1,y.prototype._instantiationError=void 0,y.prototype.evaporatingCount=0,y.prototype.pendingFiles={},y.prototype.filesInProcess=[],y.prototype.queuedFiles=[],y.prototype.startNextFile=function(e){if(this.queuedFiles.length&&!(this.evaporatingCount>=this.config.maxConcurrentParts)){var t=this.queuedFiles.shift();0===t.status?(n.d("Starting",decodeURIComponent(t.name),"reason:",e),this.evaporatingCnt(1),t.start()):(n.d("Requeued",decodeURIComponent(t.name),"status:",t.status,"reason:",e),this.queuedFiles.push(t))}},y.prototype.fileCleanup=function(e){R(this.queuedFiles,e),R(this.filesInProcess,e)&&this.evaporatingCnt(-1),e.done(),this.consumeRemainingSlots()},y.prototype.queueFile=function(e){this.filesInProcess.push(e),this.queuedFiles.push(e),1===this.filesInProcess.length&&this.startNextFile("first file")},y.prototype.add=function(e,t){var n,r=this;return new Promise((function(o,a){var i,l,s,c=T(t,{});if(m.forEach((function(e){delete c[e]})),n=T(r.config,c),void 0===e||void 0===e.file)return a("Missing file");if(n.maxFileSize&&e.file.size>n.maxFileSize)return a("File size too large. Maximum size allowed is "+F(n.maxFileSize));if(void 0===e.name)return a("Missing attribute: name");n.encodeFilename&&(e.name=(i=e.name,l=i.split("/"),s=[],l.forEach((function(e){for(var t=[],n=encodeURIComponent(e),r=0;r<n.length;r++)t.push(h[n.charCodeAt(r)]||n.charAt(r));s.push(t.join(""))})),s.join("/")));var u=new b(T({started:function(){},uploadInitiated:function(){},progress:function(){},complete:function(){},cancelled:function(){},paused:function(){},resumed:function(){},pausing:function(){},nameChanged:function(){},info:function(){},warn:function(){},error:function(){},beforeSigner:void 0,xAmzHeadersAtInitiate:{},notSignedHeadersAtInitiate:{},xAmzHeadersCommon:null,xAmzHeadersAtUpload:{},xAmzHeadersAtComplete:{}},e,{status:0,priority:0,loadedBytes:0,sizeBytes:e.file.size,eTag:""}),n,r),f=u.id;r.pendingFiles[f]=u,r.queueFile(u),u.deferredCompletion.promise.then((function(){r.fileCleanup(u),o(decodeURIComponent(u.name))}),(function(e){r.fileCleanup(u),a(e)}))}))},y.prototype.cancel=function(e){return void 0===e?this._cancelAll():this._cancelOne(e)},y.prototype._cancelAll=function(){n.d("Canceling all file uploads");var e=[];for(var t in this.pendingFiles)if(this.pendingFiles.hasOwnProperty(t)){var r=this.pendingFiles[t];p.indexOf(r.status)>-1&&e.push(r.stop())}return e.length||e.push(Promise.reject("No files to cancel.")),Promise.all(e)},y.prototype._cancelOne=function(e){var t=[];return this.pendingFiles[e]?t.push(this.pendingFiles[e].stop()):t.push(Promise.reject("File does not exist")),Promise.all(t)},y.prototype.pause=function(e,t){var n=void 0!==(t=t||{}).force&&t.force;return void 0===e?this._pauseAll(n):this._pauseOne(e,n)},y.prototype._pauseAll=function(e){n.d("Pausing all file uploads");var t=[];for(var r in this.pendingFiles)if(this.pendingFiles.hasOwnProperty(r)){var o=this.pendingFiles[r];p.indexOf(o.status)>-1&&this._pause(o,e,t)}return Promise.all(t)},y.prototype._pauseOne=function(e,t){var n=[],r=this.pendingFiles[e];return void 0===r?n.push(Promise.reject("Cannot pause a file that has not been added.")):r.status===i&&n.push(Promise.reject("Cannot pause a file that is already paused.")),n.length||this._pause(r,t,n),Promise.all(n)},y.prototype._pause=function(e,t,n){n.push(e.pause(t)),R(this.filesInProcess,e),R(this.queuedFiles,e)},y.prototype.resume=function(e){return void 0===e?this._resumeAll():this._resumeOne(e)},y.prototype._resumeAll=function(){for(var e in n.d("Resuming all file uploads"),this.pendingFiles)if(this.pendingFiles.hasOwnProperty(e)){var t=this.pendingFiles[e];f.indexOf(t.status)>-1&&this.resumeFile(t)}return Promise.resolve()},y.prototype._resumeOne=function(e){var t=this.pendingFiles[e],n=[];return void 0===t?n.push(Promise.reject("Cannot pause a file that does not exist.")):-1===f.indexOf(t.status)?n.push(Promise.reject("Cannot resume a file that has not been paused.")):this.resumeFile(t),Promise.all(n)},y.prototype.resumeFile=function(e){e.resume(),this.queueFile(e)},y.prototype.forceRetry=function(){},y.prototype.consumeRemainingSlots=function(){var e=this.config.maxConcurrentParts-this.evaporatingCount;if(e)for(var t=0;t<this.filesInProcess.length;t++){var n=this.filesInProcess[t].consumeSlots();if(!(n<0)&&!(e-=n))return}},y.prototype.validateEvaporateOptions=function(){if(this.supported=!("undefined"==typeof File||"undefined"==typeof Promise),!this.supported)return"Evaporate requires support for File and Promise";if(this.config.readableStreams){if("function"!=typeof this.config.readableStreamPartMethod)return"Option readableStreamPartMethod is required when readableStreams is set."}else if("undefined"==typeof Blob||void 0===(Blob.prototype.webkitSlice||Blob.prototype.mozSlice||Blob.prototype.slice))return"Evaporate requires support for Blob [webkitSlice || mozSlice || slice]";if(!this.config.signerUrl&&"function"!=typeof this.config.customAuthMethod)return"Option signerUrl is required unless customAuthMethod is present.";if(!this.config.bucket)return"The AWS 'bucket' option must be present.";if(this.config.computeContentMd5){if(this.supported=void 0!==FileReader.prototype.readAsArrayBuffer,!this.supported)return"The browser's FileReader object does not support readAsArrayBuffer";if("function"!=typeof this.config.cryptoMd5Method)return"Option computeContentMd5 has been set but cryptoMd5Method is not defined.";if("4"===this.config.awsSignatureVersion&&"function"!=typeof this.config.cryptoHexEncodedHash256)return"Option awsSignatureVersion is 4 but cryptoHexEncodedHash256 is not defined."}else if("4"===this.config.awsSignatureVersion)return"Option awsSignatureVersion is 4 but computeContentMd5 is not enabled.";return!0},y.prototype.evaporatingCnt=function(e){this.evaporatingCount=Math.max(0,this.evaporatingCount+e),this.config.evaporateChanged(this,this.evaporatingCount)},b.prototype.con=void 0,b.prototype.evaporate=void 0,b.prototype.localTimeOffset=0,b.prototype.id=void 0,b.prototype.status=0,b.prototype.numParts=-1,b.prototype.fileTotalBytesUploaded=0,b.prototype.partsInProcess=[],b.prototype.partsToUpload=[],b.prototype.s3Parts=[],b.prototype.partsOnS3=[],b.prototype.deferredCompletion=void 0,b.prototype.abortedByUser=!1,b.prototype.progressInterval=void 0,b.prototype.startTime=void 0,b.prototype.loaded=0,b.prototype.totalUploaded=0,b.prototype.updateLoaded=function(e){this.loaded+=e,this.fileTotalBytesUploaded+=e},b.prototype.progessStats=function(){if(0===this.fileTotalBytesUploaded)return{speed:0,readableSpeed:"",loaded:0,totalUploaded:0,remainingSize:this.sizeBytes,secondsLeft:-1,fileSize:this.sizeBytes};this.totalUploaded+=this.loaded;var e=(new Date-this.startTime)/1e3,t=this.totalUploaded/e,n=this.sizeBytes-this.fileTotalBytesUploaded,r={speed:t,readableSpeed:F(t),loaded:this.loaded,totalUploaded:this.fileTotalBytesUploaded,remainingSize:n,secondsLeft:-1,fileSize:this.sizeBytes};return t>0&&(r.secondsLeft=Math.round(n/t)),r},b.prototype.onProgress=function(){-1===[c,i].indexOf(this.status)&&(this.progress(this.fileTotalBytesUploaded/this.sizeBytes,this.progessStats()),this.loaded=0)},b.prototype.startMonitor=function(){clearInterval(this.progressInterval),this.startTime=new Date,this.loaded=0,this.totalUploaded=0,this.onProgress(),this.progressInterval=setInterval(this.onProgress.bind(this),this.con.progressIntervalMS)},b.prototype.stopMonitor=function(){clearInterval(this.progressInterval)},b.prototype.startNextFile=function(e){this.evaporate.startNextFile(e)},b.prototype.evaporatingCnt=function(e){this.evaporate.evaporatingCnt(e)},b.prototype.consumeRemainingSlots=function(){this.evaporate.consumeRemainingSlots()},b.prototype.getRemainingSlots=function(){var e=this.evaporate.evaporatingCount;return!this.partsInProcess.length&&e>0&&(e-=1),this.con.maxConcurrentParts-e},b.prototype.lastPartSatisfied=Promise.resolve("onStart"),b.prototype.start=function(){if(this.status=a,this.startMonitor(),this.started(this.id),this.uploadId)return n.d("resuming FileUpload ",this.id),this.consumeSlots();var e=this.name;this.getUnfinishedFileUpload();var t=this.con.computeContentMd5&&this.con.allowS3ExistenceOptimization&&void 0!==this.firstMd5Digest&&void 0!==this.eTag;if(this.uploadId){if(t)return this.reuseS3Object(e).then(this.deferredCompletion.resolve).catch(this.uploadFileFromScratch.bind(this));this.resumeInterruptedUpload().then(this._uploadComplete.bind(this)).catch(this.uploadFileFromScratch.bind(this))}else this.uploadFileFromScratch("")},b.prototype.uploadFileFromScratch=function(e){if(-1!==p.indexOf(this.status))return n.d(e),this.uploadId=void 0,this.uploadFile(this.name).then(this._uploadComplete.bind(this)).catch(this._abortUpload.bind(this))},b.prototype._uploadComplete=function(){this.completeUpload().then(this.deferredCompletion.resolve)},b.prototype.stop=function(){n.d("stopping FileUpload ",this.id),this.setStatus(l),this.info("Canceling uploads..."),this.abortedByUser=!0;var e=this;return this.abortUpload().then((function(){throw"User aborted the upload"})).catch((function(t){e.deferredCompletion.reject(t)}))},b.prototype.pause=function(e){n.d("pausing FileUpload, force:",!!e,this.id);var t=[];return this.info("Pausing uploads..."),this.status=u,e?this.abortParts(!0):(t=this.partsInProcess.map((function(e){return this.s3Parts[e].awsRequest.awsDeferred.promise}),this),this.pausing()),Promise.all(t).then(function(){this.stopMonitor(),this.status=i,this.startNextFile("pause"),this.paused()}.bind(this))},b.prototype.resume=function(){this.status=0,this.resumed()},b.prototype.done=function(){clearInterval(this.progressInterval),this.startNextFile("file done"),this.partsOnS3=[],this.s3Parts=[]},b.prototype._startCompleteUpload=function(e){return function(){(e?this.completeUpload():Promise.resolve()).then(this.deferredCompletion.resolve.bind(this))}},b.prototype._abortUpload=function(){if(!this.abortedByUser){var e=this;this.abortUpload().then((function(){e.deferredCompletion.reject("File upload aborted due to a part failing to upload")}),this.deferredCompletion.reject.bind(this))}},b.prototype.abortParts=function(e){var t=this;this.partsInProcess.slice(0).forEach((function(n){var r=t.s3Parts[n];r&&(r.awsRequest.abort(),e&&(r.status=0),R(t.partsInProcess,r.partNumber),t.partsToUpload.length&&t.evaporatingCnt(-1))}))},b.prototype.makeParts=function(e){this.numParts=Math.ceil(this.sizeBytes/this.con.partSize)||1;var t=[],n=this;function r(e){R(n.partsToUpload,e.partNumber),R(n.partsInProcess,e.partNumber),n.partsToUpload.length&&n.evaporatingCnt(-1)}function o(e){return function(){r(e),n.partsToUpload.length&&n.consumeRemainingSlots(),n.partsToUpload.length<n.con.maxConcurrentParts&&n.startNextFile("part resolve")}}function a(e){return function(){r(e)}}for(var i=e?1:this.numParts,l=1;l<=i;l++){var s=this.s3Parts[l];if(void 0!==s){if(3===s.status)continue}else s=this.makePart(l,0,this.sizeBytes);s.awsRequest=new x(this,s),s.awsRequest.awsDeferred.promise.then(o(s),a(s)),this.partsToUpload.push(l),t.push(this.s3Parts[l].awsRequest.awsDeferred.promise)}return t},b.prototype.makePart=function(e,t,n){var r={status:t,loadedBytes:0,loadedBytesPrevious:null,isEmpty:0===n,md5_digest:null,partNumber:e};return this.s3Parts[e]=r,r},b.prototype.setStatus=function(e){this.status=e},b.prototype.createUploadFile=function(){this.status!==c&&L(A(this),{awsKey:this.name,bucket:this.con.bucket,uploadId:this.uploadId,fileSize:this.sizeBytes,fileType:this.file.type,lastModifiedDate:C(this.file.lastModified),partSize:this.con.partSize,signParams:this.con.signParams,createdAt:(new Date).toISOString()})},b.prototype.updateUploadFile=function(e){var t=A(this);L(t,T({},M()[t],e))},b.prototype.completeUploadFile=function(e){var t=M(),n=t[A(this)];void 0!==n&&(n.completedAt=(new Date).toISOString(),n.eTag=this.eTag,n.firstMd5Digest=this.firstMd5Digest,t[A(this)]=n,r.setItem("awsUploads",JSON.stringify(t))),this.complete(e,this.name,this.progessStats()),this.setStatus(3),this.onProgress()},b.prototype.removeUploadFile=function(){void 0!==this.file&&function(e){var t=M();delete t[e],r.setItem("awsUploads",JSON.stringify(t))}(A(this))},b.prototype.getUnfinishedFileUpload=function(){var e=M(!0)[A(this)];this.canRetryUpload(e)&&(this.uploadId=e.uploadId,this.name=e.awsKey,this.eTag=e.eTag,this.firstMd5Digest=e.firstMd5Digest,this.signParams=e.signParams)},b.prototype.canRetryUpload=function(e){if(void 0===e)return!1;var n=new Date(e.completedAt||o);return this.con.partSize===e.partSize&&n>t&&this.con.bucket===e.bucket&&(!this.con.onlyRetryForSameFileName||this.name===e.awsKey)},b.prototype.partSuccess=function(e,t){var r=t.part;if(n.d(t.request.step,"ETag:",e),r.isEmpty||'"d41d8cd98f00b204e9800998ecf8427e"'!==e)return r.eTag=e,r.status=3,this.partsOnS3.push(r),!0;r.status=s,t.resetLoadedBytes();var o=["eTag matches MD5 of 0 length blob for part #",t.partNumber,"Retrying part."].join(" ");n.w(o),this.warn(o)},b.prototype.listPartsSuccess=function(e,t){this.info("uploadId",this.uploadId,"is not complete. Fetching parts from part marker",e.partNumberMarker),t=t.replace(/(\r\n|\n|\r)/gm,"");for(var n=/<Part>(.+?)<\/Part\>/g;;){var r=(n.exec(t)||[])[1];if(!r)break;var o=parseInt(N(r,"Size"),10);this.fileTotalBytesUploaded+=o,this.partsOnS3.push({eTag:N(r,"ETag").replace(/&quot;/g,'"'),partNumber:parseInt(N(r,"PartNumber"),10),size:o,LastModified:N(r,"LastModified")})}return"true"===N(t,"IsTruncated")?N(t,"NextPartNumberMarker"):void 0},b.prototype.makePartsfromPartsOnS3=function(){-1!==p.indexOf(this.status)&&(this.nameChanged(this.name),this.partsOnS3.forEach(function(e){var t=this.makePart(e.partNumber,3,e.size);t.eTag=e.eTag,t.loadedBytes=e.size,t.loadedBytesPrevious=e.size,t.finishedUploadingAt=e.LastModified}.bind(this)))},b.prototype.completeUpload=function(){var e=this;return new _(this).send().then((function(t){e.eTag=N(t.responseText,"ETag").replace(/&quot;/g,'"'),e.completeUploadFile(t)}))},b.prototype.getCompletedPayload=function(){var e=[];return e.push("<CompleteMultipartUpload>"),this.s3Parts.forEach((function(t,n){n>0&&["<Part><PartNumber>",n,"</PartNumber><ETag>",t.eTag,"</ETag></Part>"].forEach((function(t){e.push(t)}))})),e.push("</CompleteMultipartUpload>"),e.join("")},b.prototype.consumeSlots=function(){if(0===this.partsToUpload.length)return-1;if(this.partsToUpload.length!==this.partsInProcess.length&&this.status===a){var e=Math.min(this.getRemainingSlots(),this.partsToUpload.length);if(!e)return-1;for(var t=0,n=0;n<this.partsToUpload.length;n++){var r=this.s3Parts[this.partsToUpload[n]];if(r.status!==a&&this.canStartPart(r)){this.partsInProcess.length&&this.partsToUpload.length>1&&this.evaporatingCnt(1),this.partsInProcess.push(r.partNumber);var o=r.awsRequest;if(this.lastPartSatisfied.then(o.delaySend.bind(o)),this.lastPartSatisfied=o.getStartedPromise(),(t+=1)===e)break}}var i=this.partsToUpload.length===this.partsInProcess.length,l=this.getRemainingSlots();return i&&l>0&&this.startNextFile("consume slots"),l}return 0},b.prototype.canStartPart=function(e){return-1===this.partsInProcess.indexOf(e.partNumber)&&!e.awsRequest.errorExceptionStatus()},b.prototype.uploadFile=function(e){this.removeUploadFile();var t=this;return new E(t,e).send().then((function(){return t.uploadInitiated(t.uploadId),t.partsToUpload=[],t.uploadParts().then((function(){}),(function(e){throw e}))}))},b.prototype.uploadParts=function(){if(this.loaded=0,this.totalUploaded=0,-1===p.indexOf(this.status))return Promise.reject("Part uploading stopped because the file was canceled");var e=this.makeParts();return this.setStatus(a),this.startTime=new Date,this.consumeSlots(),Promise.all(e)},b.prototype.abortUpload=function(){return new Promise(function(e,t){void 0!==this.uploadId?new S(this).send().then(e,t):e()}.bind(this)).then(function(){this.setStatus(c),this.cancelled(),this.removeUploadFile()}.bind(this),this.deferredCompletion.reject.bind(this))},b.prototype.resumeInterruptedUpload=function(){return new O(this).send().then(this.uploadParts.bind(this))},b.prototype.reuseS3Object=function(e){var t=this;this.makeParts(1),this.partsToUpload=[];var r=this.s3Parts[1];function o(n){throw t.name=e,n}return r.awsRequest.getPartMd5Digest().then((function(){if(t.firstMd5Digest===r.md5_digest)return new k(t,e).send().then((function(e){n.d("headObject found matching object on S3."),t.completeUploadFile(e),t.nameChanged(t.name)})).catch(o);o(t.con.allowS3ExistenceOptimization?"File's first part MD5 digest does not match what was stored.":"allowS3ExistenceOptimization is not enabled.")}))},v.prototype.fileUpload=void 0,v.prototype.con=void 0,v.prototype.awsUrl=void 0,v.prototype.awsHost=void 0,v.prototype.authorize=function(){},v.prototype.localTimeOffset=0,v.prototype.awsDeferred=void 0,v.prototype.started=void 0,v.prototype.getPath=function(){var e="/"+this.con.bucket+"/"+this.fileUpload.name;return(this.con.cloudfront||this.awsUrl.indexOf("cloudfront")>-1)&&(e="/"+this.fileUpload.name),e},v.prototype.updateRequest=function(e){this.request=e;var t=function(e,t){var n=e.con;function r(e){this.request=e}function o(e){r.call(this,e)}function a(e){this._cr=void 0,r.call(this,e)}return r.prototype.request={},r.prototype.error=function(){},r.prototype.authorizationString=function(){},r.prototype.stringToSign=function(){},r.prototype.canonicalRequest=function(){},r.prototype.setHeaders=function(){},r.prototype.datetime=function(e){return new Date((new Date).getTime()+e)},r.prototype.dateString=function(e){return this.datetime(e).toISOString().slice(0,19).replace(/-|:/g,"")+"Z"},o.prototype=Object.create(r.prototype),o.prototype.constructor=o,o.prototype.authorizationString=function(){return["AWS ",n.aws_key,":",this.request.auth].join("")},o.prototype.stringToSign=function(){var r,o="",a=[];for(var i in this.request.x_amz_headers)this.request.x_amz_headers.hasOwnProperty(i)&&a.push(i);return a.sort(),a.forEach(function(e){o+=e+":"+this.request.x_amz_headers[e]+"\n"}.bind(this)),r=this.request.method+"\n"+(this.request.md5_digest||"")+"\n"+(this.request.contentType||"")+"\n\n"+o+(n.cloudfront?"/"+n.bucket:"")+e.getPath()+this.request.path,t.d("V2 stringToSign:",r),r},o.prototype.dateString=function(e){return this.datetime(e).toUTCString()},o.prototype.getPayload=function(){return Promise.resolve()},a.prototype=Object.create(r.prototype),a.prototype.constructor=a,a.prototype._cr=void 0,a.prototype.payload=null,a.prototype.error=function(){this._cr=void 0},a.prototype.getPayload=function(){return e.getPayload().then(function(e){this.payload=e}.bind(this))},a.prototype.authorizationString=function(){var e=[],t=this.credentialString(),r=this.canonicalHeaders();return e.push(["AWS4-HMAC-SHA256 Credential=",n.aws_key,"/",t].join("")),e.push("SignedHeaders="+r.signedHeaders),e.push("Signature="+this.request.auth),e.join(", ")},a.prototype.stringToSign=function(){var e=[];e.push("AWS4-HMAC-SHA256"),e.push(this.request.dateString),e.push(this.credentialString()),e.push(n.cryptoHexEncodedHash256(this.canonicalRequest()));var r=e.join("\n");return t.d("V4 stringToSign:",r),r},a.prototype.credentialString=function(){var e=[];return e.push(this.request.dateString.slice(0,8)),e.push(n.awsRegion),e.push("s3"),e.push("aws4_request"),e.join("/")},a.prototype.canonicalQueryString=function(){var t,n,r=e.request.query_string||"",o=j([e.awsUrl,this.request.path,r].join("")).search,a=o.length?o.split("&"):[],i=[];for(n=0;n<a.length;n++)t=a[n].split("="),i.push({name:encodeURIComponent(t[0]),value:t.length>1?encodeURIComponent(t[1]):null});var l=i.sort((function(e,t){return e.name<t.name?-1:e.name>t.name?1:0})),s=[];for(n=0;n<l.length;n++)t=l[n].value?[l[n].name,l[n].value].join("="):l[n].name+"=",s.push(t);return s.join("&")},a.prototype.getPayloadSha256Content=function(){var e=this.request.contentSha256||n.cryptoHexEncodedHash256(this.payload||"");return t.d(this.request.step,"getPayloadSha256Content:",e),e},a.prototype.canonicalHeaders=function(){var t,n=[],r=[];function o(e,t){var o=e.toLowerCase();r.push(o),n[o]=t.replace(/\s+/g," ")}this.request.md5_digest&&o("Content-Md5",this.request.md5_digest),o("Host",e.awsHost),this.request.contentType&&o("Content-Type",this.request.contentType||"");var a=this.request.x_amz_headers||{};for(var i in a)a.hasOwnProperty(i)&&o(i,a[i]);var l=r.sort((function(e,t){return e<t?-1:e>t?1:0})),s=[],c=[],u=this.request.not_signed_headers||[],f=[];for(t=0;t<u.length;t++)c.push(u[t].toLowerCase());for(t=0;t<l.length;t++){var p=l[t];s.push([p,n[p]].join(":")),-1===c.indexOf(p)&&f.push(p)}return{canonicalHeaders:s.join("\n"),signedHeaders:f.join(";")}},a.prototype.canonicalRequest=function(){if(void 0!==this._cr)return this._cr;var n=[];n.push(this.request.method),n.push(j([e.awsUrl,e.getPath(),this.request.path].join("")).pathname),n.push(this.canonicalQueryString()||"");var r=this.canonicalHeaders();return n.push(r.canonicalHeaders+"\n"),n.push(r.signedHeaders),n.push(this.getPayloadSha256Content()),this._cr=n.join("\n"),t.d(this.request.step,"V4 CanonicalRequest:",this._cr),this._cr},a.prototype.setHeaders=function(e){e.setRequestHeader("x-amz-content-sha256",this.getPayloadSha256Content())},"4"===n.awsSignatureVersion?a:o}(this,n);this.signer=new t(e)},v.prototype.success=function(){this.awsDeferred.resolve(this.currentXhr)},v.prototype.backOffWait=function(){return 1===this.attempts?0:1e3*Math.min(this.con.maxRetryBackoffSecs,Math.pow(this.con.retryBackoffPower,this.attempts-2))},v.prototype.error=function(e){if(!this.errorExceptionStatus()&&(this.signer.error(),n.d(this.request.step,"error:",this.fileUpload.id,e),void 0===this.errorHandler(e))){this.fileUpload.warn("Error in ",this.request.step,e),this.fileUpload.setStatus(s);var t=this,r=this.backOffWait();this.attempts+=1,setTimeout((function(){t.errorExceptionStatus()||t.trySend()}),r)}},v.prototype.errorHandler=function(){},v.prototype.errorExceptionStatus=function(){return!1},v.prototype.getPayload=function(){return Promise.resolve(null)},v.prototype.success_status=function(e){return e.status>=200&&e.status<=299||this.request.success404&&404===e.status},v.prototype.stringToSign=function(){return encodeURIComponent(this.signer.stringToSign())},v.prototype.canonicalRequest=function(){return this.signer.canonicalRequest()},v.prototype.signResponse=function(e,t,n){var r=this;return new Promise((function(o){if("function"==typeof r.con.signResponseHandler)return r.con.signResponseHandler(e,t,n).then(o);o(e)}))},v.prototype.sendRequestToAWS=function(){var e=this;return new Promise((function(t,n){var r=new XMLHttpRequest;e.currentXhr=r;var o=[e.awsUrl,e.getPath(),e.request.path].join(""),a={};for(var i in e.request.query_string&&(o+=e.request.query_string),T(a,e.request.not_signed_headers),T(a,e.request.x_amz_headers),r.onreadystatechange=function(){if(4===r.readyState)if(e.success_status(r))e.request.response_match&&void 0===r.response.match(new RegExp(e.request.response_match))?n("AWS response does not match set pattern: "+e.request.response_match):t();else{var o=r.responseText?D(r):" ";o+="status:"+r.status,n(o)}},r.open(e.request.method,o),r.setRequestHeader("Authorization",e.signer.authorizationString()),a)a.hasOwnProperty(i)&&r.setRequestHeader(i,a[i]);e.signer.setHeaders(r),e.request.contentType&&r.setRequestHeader("Content-Type",e.request.contentType),e.request.md5_digest&&r.setRequestHeader("Content-MD5",e.request.md5_digest),r.onerror=function(e){var t=e.responseText?D(e):"transport error";n(t)},"function"==typeof e.request.onProgress&&(r.upload.onprogress=e.request.onProgress),e.getPayload().then(r.send.bind(r),n),setTimeout((function(){e.started.resolve("request sent "+e.request.step)}),20),e.signer.payload=null,e.payloadPromise=void 0}))},v.prototype.authorize=function(){return this.request.dateString=this.signer.dateString(this.localTimeOffset),this.request.x_amz_headers=T(this.request.x_amz_headers,{"x-amz-date":this.request.dateString}),this.signer.getPayload().then(function(){return function(e){var t=e.fileUpload,n=t.con,r=e.request;function o(){this.request=r}function a(){o.call(this)}if(o.prototype=Object.create(o.prototype),o.prototype.request={},o.makeSignParamsObject=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&("function"==typeof e[n]?t[n]=e[n]():t[n]=e[n]);return t},o.prototype.authorize=function(){return new Promise((function(a,i){var l=new XMLHttpRequest;e.currentXhr=l;var s=e.stringToSign(),c=[n.signerUrl,"?to_sign=",s,"&datetime=",r.dateString];n.sendCanonicalRequestToSignerUrl&&(c.push("&canonical_request="),c.push(encodeURIComponent(e.canonicalRequest()))),c=c.join("");var u=o.makeSignParamsObject(t.signParams);for(var f in u)u.hasOwnProperty(f)&&(c+="&"+encodeURIComponent(f)+"="+encodeURIComponent(u[f]));n.xhrWithCredentials&&(l.withCredentials=!0),l.onreadystatechange=function(){if(4===l.readyState)if(200===l.status)e.signResponse(l.response,s,r.dateString).then(a);else{if([401,403].indexOf(l.status)>-1){var n="status:"+l.status;return t.deferredCompletion.reject("Permission denied "+n),i(n)}i("Signature fetch returned status: "+l.status)}},l.onerror=function(e){i("authorizedSend transport error: "+e.responseText)},l.open("GET",c);var p=o.makeSignParamsObject(n.signHeaders);for(var d in p)p.hasOwnProperty(d)&&l.setRequestHeader(d,p[d]);"function"==typeof t.beforeSigner&&t.beforeSigner(l,c),l.send()}))},a.prototype=Object.create(o.prototype),a.prototype.authorize=function(){return n.customAuthMethod(o.makeSignParamsObject(t.signParams),o.makeSignParamsObject(n.signHeaders),e.stringToSign(),r.dateString,e.canonicalRequest()).catch((function(e){throw t.deferredCompletion.reject(e),e}))},"function"==typeof n.customAuthMethod)return new a;return new o}(this).authorize()}.bind(this))},v.prototype.authorizationSuccess=function(e){n.d(this.request.step,"signature:",e),this.request.auth=e},v.prototype.trySend=function(){var e=this;return this.authorize().then((function(t){e.authorizationSuccess(t),e.fileUpload.status!==c&&e.sendRequestToAWS().then(e.success.bind(e),e.error.bind(e))}),e.error.bind(e))},v.prototype.send=function(){return this.trySend(),this.awsDeferred.promise},g.prototype=Object.create(v.prototype),g.prototype.constructor=g,g.prototype.errorExceptionStatus=function(){return[c,l].indexOf(this.fileUpload.status)>-1},w.prototype=Object.create(g.prototype),w.prototype.constructor=w,w.prototype.maxRetries=1,w.prototype.errorHandler=function(e){if(this.attempts>this.maxRetries){var t=["MaxRetries exceeded. Will re-upload file id ",this.fileUpload.id,", ",e].join("");return n.w(t),this.awsDeferred.reject(t),!0}},w.prototype.rejectedSuccess=function(){var e=Array.prototype.slice.call(arguments,1).join("");return this.awsDeferred.reject(e),!1},E.prototype=Object.create(g.prototype),E.prototype.constructor=E,E.prototype.success=function(){var e=this.currentXhr.response.match(new RegExp(this.request.response_match));this.fileUpload.uploadId=e[1],this.fileUpload.awsKey=this.awsKey,n.d("InitiateMultipartUpload ID is",this.fileUpload.uploadId),this.fileUpload.createUploadFile(),this.awsDeferred.resolve(this.currentXhr)},_.prototype=Object.create(g.prototype),_.prototype.constructor=_,_.prototype.getPayload=function(){return Promise.resolve(this.fileUpload.getCompletedPayload())},k.prototype=Object.create(w.prototype),k.prototype.constructor=k,k.prototype.awsKey=void 0,k.prototype.success=function(){(this.currentXhr.getResponseHeader("Etag")===this.fileUpload.eTag||this.rejectedSuccess("uploadId ",this.fileUpload.id," found on S3 but the Etag doesn't match."))&&this.awsDeferred.resolve(this.currentXhr)},O.prototype=Object.create(w.prototype),O.prototype.constructor=O,O.prototype.awsKey=void 0,O.prototype.partNumberMarker=0,O.prototype.setupRequest=function(e){var t=["setupRequest() for uploadId:",this.fileUpload.uploadId,"for part marker:",e].join(" ");n.d(t),this.fileUpload.info(t),this.awsKey=this.fileUpload.name,this.partNumberMarker=e;var r={method:"GET",path:["?uploadId=",this.fileUpload.uploadId].join(""),query_string:"&part-number-marker="+e,x_amz_headers:this.fileUpload.xAmzHeadersCommon,step:"get upload parts",success404:!0};return this.request=r,r},O.prototype.success=function(){if(404!==this.currentXhr.status){var e=this.fileUpload.listPartsSuccess(this,this.currentXhr.responseText);if(e){var t=this.setupRequest(e);this.updateRequest(t),this.trySend()}else this.fileUpload.makePartsfromPartsOnS3(),this.awsDeferred.resolve(this.currentXhr)}else this.rejectedSuccess("uploadId ",this.fileUpload.id," not found on S3.")&&this.awsDeferred.resolve(this.currentXhr)},x.prototype=Object.create(v.prototype),x.prototype.constructor=x,x.prototype.part=1,x.prototype.payloadPromise=void 0,x.prototype.start=0,x.prototype.end=0,x.prototype.partNumber=void 0,x.prototype.getPartMd5Digest=function(){var e=this,t=this.part;return new Promise((function(n,r){e.con.computeContentMd5&&!t.md5_digest?e.getPayload().then((function(t){var r=e.con.cryptoMd5Method(t);1===e.partNumber&&e.con.computeContentMd5&&void 0===e.fileUpload.firstMd5Digest&&(e.fileUpload.firstMd5Digest=r,e.fileUpload.updateUploadFile({firstMd5Digest:r})),n(r)}),r):n(t.md5_digest)})).then((function(t){t&&(n.d(e.request.step,"MD5 digest:",t),e.request.md5_digest=t,e.part.md5_digest=t)}))},x.prototype.sendRequestToAWS=function(){return this.stalledInterval=setInterval(this.stalledPartMonitor(),d),this.stalledPartMonitor(),v.prototype.sendRequestToAWS.call(this)},x.prototype.send=function(){if(3!==this.part.status&&-1===[c,i,l].indexOf(this.fileUpload.status)){n.d("uploadPart #",this.partNumber,1===this.attempts?"submitting":"retrying"),this.part.status=a,this.attempts+=1,this.part.loadedBytesPrevious=null;var e=this;return this.getPartMd5Digest().then((function(){n.d("Sending",e.request.step),v.prototype.send.call(e)}))}},x.prototype.success=function(){clearInterval(this.stalledInterval);var e=this.currentXhr.getResponseHeader("ETag");this.currentXhr=null,this.fileUpload.partSuccess(e,this)&&this.awsDeferred.resolve(this.currentXhr)},x.prototype.onProgress=function(e){if(e.loaded>0){var t=e.loaded-this.part.loadedBytes;t&&(this.part.loadedBytes=e.loaded,this.fileUpload.updateLoaded(t))}},x.prototype.stalledPartMonitor=function(){var e=this.part.loadedBytes,t=this;return function(){clearInterval(t.stalledInterval),-1===[a,s,u,i].indexOf(t.fileUpload.status)&&t.part.status!==c&&t.part.loadedBytes<this.size&&(e===t.part.loadedBytes?(n.w("Part stalled. Will abort and retry:",t.partNumber,decodeURIComponent(t.fileUpload.name)),t.abort(),t.errorExceptionStatus()||t.delaySend()):t.stalledInterval=setInterval(t.stalledPartMonitor(),d))}},x.prototype.resetLoadedBytes=function(){this.fileUpload.updateLoaded(-this.part.loadedBytes),this.part.loadedBytes=0,this.fileUpload.onProgress()},x.prototype.errorExceptionStatus=function(){return[l,c,i,u].indexOf(this.fileUpload.status)>-1},x.prototype.delaySend=function(){var e=this.backOffWait();this.attempts+=1,setTimeout(this.send.bind(this),e)},x.prototype.errorHandler=function(e){if(clearInterval(this.stalledInterval),e.match(/status:404/)){var t="404 error on part PUT. The part and the file will abort. "+e;return n.w(t),this.fileUpload.error(t),this.part.status=c,this.awsDeferred.reject(t),!0}return this.resetLoadedBytes(),this.part.status=s,this.errorExceptionStatus()||this.delaySend(),!0},x.prototype.abort=function(){this.currentXhr&&this.currentXhr.abort(),this.resetLoadedBytes(),this.attempts=1},x.size=0,x.prototype.streamToArrayBuffer=function(e){return new Promise(function(t,n){if(!e.readable)return t([]);var r=new Uint8Array(Math.min(this.con.partSize,this.end-this.start)),o=0;function a(e){1!==e.byteLength&&(r.set(e,o),o+=e.byteLength)}function i(e){e?n(e):t(r),s()}function l(){t(r),s()}function s(){r=null,e.removeListener("data",a),e.removeListener("end",i),e.removeListener("error",i),e.removeListener("close",l)}e.on("data",a),e.on("end",i),e.on("error",i),e.on("close",l)}.bind(this))},x.prototype.getPayload=function(){return void 0===this.payloadPromise&&(this.payloadPromise=this.con.readableStreams?this.payloadFromStream():this.payloadFromBlob()),this.payloadPromise},x.prototype.payloadFromStream=function(){var e=this.con.readableStreamPartMethod(this.fileUpload.file,this.start,this.end-1);return new Promise(function(t,n){this.streamToArrayBuffer(e).then(function(e){t(e)}.bind(this),n)}.bind(this))},x.prototype.payloadFromBlob=function(){var e=this.fileUpload.file,t=e[e.slice?"slice":e.mozSlice?"mozSlice":"webkitSlice"](this.start,this.end);return this.con.computeContentMd5?new Promise((function(e){var n=new FileReader;n.onloadend=function(){var t=this.result&&void 0!==this.result.buffer?new Uint8Array(this.result.buffer):this.result;e(t)},n.readAsArrayBuffer(t)})):Promise.resolve(t)},x.prototype.stalledInterval=-1,x.prototype.getStartedPromise=function(){return this.started.promise},S.prototype=Object.create(v.prototype),S.prototype.constructor=S,S.prototype.maxRetries=1,S.prototype.success=function(){this.fileUpload.setStatus(c),this.awsDeferred.resolve(this.currentXhr)},S.prototype.errorHandler=function(e){if(this.attempts>this.maxRetries){var t="Error aborting upload, Exceeded retries deleting the file upload: "+e;return n.w(t),this.fileUpload.error(t),this.awsDeferred.reject(t),!0}},z.prototype.supported=!1,z.prototype.cacheStore=void 0,z.prototype.getItem=function(e){if(this.cacheStore)return this.cacheStore[e]},z.prototype.setItem=function(e,t){this.cacheStore&&(this.cacheStore[e]=t)},z.prototype.removeItem=function(e){if(this.cacheStore)return delete this.cacheStore[e]},z.supported=function(){var e=!1;if("undefined"==typeof window)return e;if(!("localStorage"in window))return e;try{var t="___test";localStorage[t]="OK";var n=localStorage[t];return delete localStorage[t],"OK"===n}catch(t){return e}},n={d:function(){},w:function(){},e:function(){}},e.exports?e.exports=y:"undefined"!=typeof window&&(window.Evaporate=y)}()},function(e,t,n){var r,o,a;function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}a=function(e){"use strict";var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function n(e,t){var n=e[0],r=e[1],o=e[2],a=e[3];r=((r+=((o=((o+=((a=((a+=((n=((n+=(r&o|~r&a)+t[0]-680876936|0)<<7|n>>>25)+r|0)&r|~n&o)+t[1]-389564586|0)<<12|a>>>20)+n|0)&n|~a&r)+t[2]+606105819|0)<<17|o>>>15)+a|0)&a|~o&n)+t[3]-1044525330|0)<<22|r>>>10)+o|0,r=((r+=((o=((o+=((a=((a+=((n=((n+=(r&o|~r&a)+t[4]-176418897|0)<<7|n>>>25)+r|0)&r|~n&o)+t[5]+1200080426|0)<<12|a>>>20)+n|0)&n|~a&r)+t[6]-1473231341|0)<<17|o>>>15)+a|0)&a|~o&n)+t[7]-45705983|0)<<22|r>>>10)+o|0,r=((r+=((o=((o+=((a=((a+=((n=((n+=(r&o|~r&a)+t[8]+1770035416|0)<<7|n>>>25)+r|0)&r|~n&o)+t[9]-1958414417|0)<<12|a>>>20)+n|0)&n|~a&r)+t[10]-42063|0)<<17|o>>>15)+a|0)&a|~o&n)+t[11]-1990404162|0)<<22|r>>>10)+o|0,r=((r+=((o=((o+=((a=((a+=((n=((n+=(r&o|~r&a)+t[12]+1804603682|0)<<7|n>>>25)+r|0)&r|~n&o)+t[13]-40341101|0)<<12|a>>>20)+n|0)&n|~a&r)+t[14]-1502002290|0)<<17|o>>>15)+a|0)&a|~o&n)+t[15]+1236535329|0)<<22|r>>>10)+o|0,r=((r+=((o=((o+=((a=((a+=((n=((n+=(r&a|o&~a)+t[1]-165796510|0)<<5|n>>>27)+r|0)&o|r&~o)+t[6]-1069501632|0)<<9|a>>>23)+n|0)&r|n&~r)+t[11]+643717713|0)<<14|o>>>18)+a|0)&n|a&~n)+t[0]-373897302|0)<<20|r>>>12)+o|0,r=((r+=((o=((o+=((a=((a+=((n=((n+=(r&a|o&~a)+t[5]-701558691|0)<<5|n>>>27)+r|0)&o|r&~o)+t[10]+38016083|0)<<9|a>>>23)+n|0)&r|n&~r)+t[15]-660478335|0)<<14|o>>>18)+a|0)&n|a&~n)+t[4]-405537848|0)<<20|r>>>12)+o|0,r=((r+=((o=((o+=((a=((a+=((n=((n+=(r&a|o&~a)+t[9]+568446438|0)<<5|n>>>27)+r|0)&o|r&~o)+t[14]-1019803690|0)<<9|a>>>23)+n|0)&r|n&~r)+t[3]-187363961|0)<<14|o>>>18)+a|0)&n|a&~n)+t[8]+1163531501|0)<<20|r>>>12)+o|0,r=((r+=((o=((o+=((a=((a+=((n=((n+=(r&a|o&~a)+t[13]-1444681467|0)<<5|n>>>27)+r|0)&o|r&~o)+t[2]-51403784|0)<<9|a>>>23)+n|0)&r|n&~r)+t[7]+1735328473|0)<<14|o>>>18)+a|0)&n|a&~n)+t[12]-1926607734|0)<<20|r>>>12)+o|0,r=((r+=((o=((o+=((a=((a+=((n=((n+=(r^o^a)+t[5]-378558|0)<<4|n>>>28)+r|0)^r^o)+t[8]-2022574463|0)<<11|a>>>21)+n|0)^n^r)+t[11]+1839030562|0)<<16|o>>>16)+a|0)^a^n)+t[14]-35309556|0)<<23|r>>>9)+o|0,r=((r+=((o=((o+=((a=((a+=((n=((n+=(r^o^a)+t[1]-1530992060|0)<<4|n>>>28)+r|0)^r^o)+t[4]+1272893353|0)<<11|a>>>21)+n|0)^n^r)+t[7]-155497632|0)<<16|o>>>16)+a|0)^a^n)+t[10]-1094730640|0)<<23|r>>>9)+o|0,r=((r+=((o=((o+=((a=((a+=((n=((n+=(r^o^a)+t[13]+681279174|0)<<4|n>>>28)+r|0)^r^o)+t[0]-358537222|0)<<11|a>>>21)+n|0)^n^r)+t[3]-722521979|0)<<16|o>>>16)+a|0)^a^n)+t[6]+76029189|0)<<23|r>>>9)+o|0,r=((r+=((o=((o+=((a=((a+=((n=((n+=(r^o^a)+t[9]-640364487|0)<<4|n>>>28)+r|0)^r^o)+t[12]-421815835|0)<<11|a>>>21)+n|0)^n^r)+t[15]+530742520|0)<<16|o>>>16)+a|0)^a^n)+t[2]-995338651|0)<<23|r>>>9)+o|0,r=((r+=((a=((a+=(r^((n=((n+=(o^(r|~a))+t[0]-198630844|0)<<6|n>>>26)+r|0)|~o))+t[7]+1126891415|0)<<10|a>>>22)+n|0)^((o=((o+=(n^(a|~r))+t[14]-1416354905|0)<<15|o>>>17)+a|0)|~n))+t[5]-57434055|0)<<21|r>>>11)+o|0,r=((r+=((a=((a+=(r^((n=((n+=(o^(r|~a))+t[12]+1700485571|0)<<6|n>>>26)+r|0)|~o))+t[3]-1894986606|0)<<10|a>>>22)+n|0)^((o=((o+=(n^(a|~r))+t[10]-1051523|0)<<15|o>>>17)+a|0)|~n))+t[1]-2054922799|0)<<21|r>>>11)+o|0,r=((r+=((a=((a+=(r^((n=((n+=(o^(r|~a))+t[8]+1873313359|0)<<6|n>>>26)+r|0)|~o))+t[15]-30611744|0)<<10|a>>>22)+n|0)^((o=((o+=(n^(a|~r))+t[6]-1560198380|0)<<15|o>>>17)+a|0)|~n))+t[13]+1309151649|0)<<21|r>>>11)+o|0,r=((r+=((a=((a+=(r^((n=((n+=(o^(r|~a))+t[4]-145523070|0)<<6|n>>>26)+r|0)|~o))+t[11]-1120210379|0)<<10|a>>>22)+n|0)^((o=((o+=(n^(a|~r))+t[2]+718787259|0)<<15|o>>>17)+a|0)|~n))+t[9]-343485551|0)<<21|r>>>11)+o|0,e[0]=n+e[0]|0,e[1]=r+e[1]|0,e[2]=o+e[2]|0,e[3]=a+e[3]|0}function r(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}function o(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return n}function a(e){var t,o,a,i,l,s,c=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=c;t+=64)n(u,r(e.substring(t-64,t)));for(o=(e=e.substring(t-64)).length,a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<o;t+=1)a[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(a[t>>2]|=128<<(t%4<<3),t>55)for(n(u,a),t=0;t<16;t+=1)a[t]=0;return i=(i=8*c).toString(16).match(/(.*?)(.{0,8})$/),l=parseInt(i[2],16),s=parseInt(i[1],16)||0,a[14]=l,a[15]=s,n(u,a),u}function i(e){var n,r="";for(n=0;n<4;n+=1)r+=t[e>>8*n+4&15]+t[e>>8*n&15];return r}function l(e){var t;for(t=0;t<e.length;t+=1)e[t]=i(e[t]);return e.join("")}function s(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function c(e){var t,n=[],r=e.length;for(t=0;t<r-1;t+=2)n.push(parseInt(e.substr(t,2),16));return String.fromCharCode.apply(String,n)}function u(){this.reset()}return l(a("hello")),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function t(e,t){return(e=0|e||0)<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(n,r){var o,a,i,l,s=this.byteLength,c=t(n,s),u=s;return r!==e&&(u=t(r,s)),c>u?new ArrayBuffer(0):(o=u-c,a=new ArrayBuffer(o),i=new Uint8Array(a),l=new Uint8Array(this,c,o),i.set(l),a)}}(),u.prototype.append=function(e){return this.appendBinary(s(e)),this},u.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,o=this._buff.length;for(t=64;t<=o;t+=64)n(this._hash,r(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},u.prototype.end=function(e){var t,n,r=this._buff,o=r.length,a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<o;t+=1)a[t>>2]|=r.charCodeAt(t)<<(t%4<<3);return this._finish(a,o),n=l(this._hash),e&&(n=c(n)),this.reset(),n},u.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},u.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},u.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},u.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},u.prototype._finish=function(e,t){var r,o,a,i=t;if(e[i>>2]|=128<<(i%4<<3),i>55)for(n(this._hash,e),i=0;i<16;i+=1)e[i]=0;r=(r=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),o=parseInt(r[2],16),a=parseInt(r[1],16)||0,e[14]=o,e[15]=a,n(this._hash,e)},u.hash=function(e,t){return u.hashBinary(s(e),t)},u.hashBinary=function(e,t){var n=l(a(e));return t?c(n):n},u.ArrayBuffer=function(){this.reset()},u.ArrayBuffer.prototype.append=function(e){var t,r,a,i,l,s=(r=this._buff.buffer,a=e,i=!0,(l=new Uint8Array(r.byteLength+a.byteLength)).set(new Uint8Array(r)),l.set(new Uint8Array(a),r.byteLength),i?l:l.buffer),c=s.length;for(this._length+=e.byteLength,t=64;t<=c;t+=64)n(this._hash,o(s.subarray(t-64,t)));return this._buff=t-64<c?new Uint8Array(s.buffer.slice(t-64)):new Uint8Array(0),this},u.ArrayBuffer.prototype.end=function(e){var t,n,r=this._buff,o=r.length,a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<o;t+=1)a[t>>2]|=r[t]<<(t%4<<3);return this._finish(a,o),n=l(this._hash),e&&(n=c(n)),this.reset(),n},u.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},u.ArrayBuffer.prototype.getState=function(){var e,t=u.prototype.getState.call(this);return t.buff=(e=t.buff,String.fromCharCode.apply(null,new Uint8Array(e))),t},u.ArrayBuffer.prototype.setState=function(e){return e.buff=function(e,t){var n,r=e.length,o=new ArrayBuffer(r),a=new Uint8Array(o);for(n=0;n<r;n+=1)a[n]=e.charCodeAt(n);return t?a:o}(e.buff,!0),u.prototype.setState.call(this,e)},u.ArrayBuffer.prototype.destroy=u.prototype.destroy,u.ArrayBuffer.prototype._finish=u.prototype._finish,u.ArrayBuffer.hash=function(e,t){var r=l(function(e){var t,r,a,i,l,s,c=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=c;t+=64)n(u,o(e.subarray(t-64,t)));for(r=(e=t-64<c?e.subarray(t-64):new Uint8Array(0)).length,a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<r;t+=1)a[t>>2]|=e[t]<<(t%4<<3);if(a[t>>2]|=128<<(t%4<<3),t>55)for(n(u,a),t=0;t<16;t+=1)a[t]=0;return i=(i=8*c).toString(16).match(/(.*?)(.{0,8})$/),l=parseInt(i[2],16),s=parseInt(i[1],16)||0,a[14]=l,a[15]=s,n(u,a),u}(new Uint8Array(e)));return t?c(r):r},u},"object"===i(t)?e.exports=a():void 0===(o="function"==typeof(r=a)?r.call(t,n,t,e):r)||(e.exports=o)},function(module,exports,__webpack_require__){(function(process,global,module){var __WEBPACK_AMD_DEFINE_RESULT__;function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}(function(){"use strict";var ERROR="input is invalid type",WINDOW="object"===("undefined"==typeof window?"undefined":_typeof(window)),root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"===("undefined"==typeof self?"undefined":_typeof(self)),NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"===(void 0===process?"undefined":_typeof(process))&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&"object"===_typeof(module)&&module.exports,AMD=__webpack_require__(180),ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];!root.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!ARRAY_BUFFER||!root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"===_typeof(e)&&e.buffer&&e.buffer.constructor===ArrayBuffer});var createOutputMethod=function(e,t){return function(n){return new Sha256(t,!0).update(n)[e]()}},createMethod=function(e){var t=createOutputMethod("hex",e);NODE_JS&&(t=nodeWrap(t,e)),t.create=function(){return new Sha256(e)},t.update=function(e){return t.create().update(e)};for(var n=0;n<OUTPUT_TYPES.length;++n){var r=OUTPUT_TYPES[n];t[r]=createOutputMethod(r,e)}return t},nodeWrap=function nodeWrap(method,is224){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),algorithm=is224?"sha224":"sha256",nodeMethod=function(e){if("string"==typeof e)return crypto.createHash(algorithm).update(e,"utf8").digest("hex");if(null==e)throw new Error(ERROR);return e.constructor===ArrayBuffer&&(e=new Uint8Array(e)),Array.isArray(e)||ArrayBuffer.isView(e)||e.constructor===Buffer?crypto.createHash(algorithm).update(new Buffer(e)).digest("hex"):method(e)};return nodeMethod},createHmacOutputMethod=function(e,t){return function(n,r){return new HmacSha256(n,t,!0).update(r)[e]()}},createHmacMethod=function(e){var t=createHmacOutputMethod("hex",e);t.create=function(t){return new HmacSha256(t,e)},t.update=function(e,n){return t.create(e).update(n)};for(var n=0;n<OUTPUT_TYPES.length;++n){var r=OUTPUT_TYPES[n];t[r]=createHmacOutputMethod(r,e)}return t};function Sha256(e,t){t?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=e}function HmacSha256(e,t,n){var r,o=_typeof(e);if("string"===o){var a,i=[],l=e.length,s=0;for(r=0;r<l;++r)(a=e.charCodeAt(r))<128?i[s++]=a:a<2048?(i[s++]=192|a>>6,i[s++]=128|63&a):a<55296||a>=57344?(i[s++]=224|a>>12,i[s++]=128|a>>6&63,i[s++]=128|63&a):(a=65536+((1023&a)<<10|1023&e.charCodeAt(++r)),i[s++]=240|a>>18,i[s++]=128|a>>12&63,i[s++]=128|a>>6&63,i[s++]=128|63&a);e=i}else{if("object"!==o)throw new Error(ERROR);if(null===e)throw new Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||ARRAY_BUFFER&&ArrayBuffer.isView(e)))throw new Error(ERROR)}e.length>64&&(e=new Sha256(t,!0).update(e).array());var c=[],u=[];for(r=0;r<64;++r){var f=e[r]||0;c[r]=92^f,u[r]=54^f}Sha256.call(this,t,n),this.update(u),this.oKeyPad=c,this.inner=!0,this.sharedMemory=n}Sha256.prototype.update=function(e){if(!this.finalized){var t,n=_typeof(e);if("string"!==n){if("object"!==n)throw new Error(ERROR);if(null===e)throw new Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||ARRAY_BUFFER&&ArrayBuffer.isView(e)))throw new Error(ERROR);t=!0}for(var r,o,a=0,i=e.length,l=this.blocks;a<i;){if(this.hashed&&(this.hashed=!1,l[0]=this.block,l[16]=l[1]=l[2]=l[3]=l[4]=l[5]=l[6]=l[7]=l[8]=l[9]=l[10]=l[11]=l[12]=l[13]=l[14]=l[15]=0),t)for(o=this.start;a<i&&o<64;++a)l[o>>2]|=e[a]<<SHIFT[3&o++];else for(o=this.start;a<i&&o<64;++a)(r=e.charCodeAt(a))<128?l[o>>2]|=r<<SHIFT[3&o++]:r<2048?(l[o>>2]|=(192|r>>6)<<SHIFT[3&o++],l[o>>2]|=(128|63&r)<<SHIFT[3&o++]):r<55296||r>=57344?(l[o>>2]|=(224|r>>12)<<SHIFT[3&o++],l[o>>2]|=(128|r>>6&63)<<SHIFT[3&o++],l[o>>2]|=(128|63&r)<<SHIFT[3&o++]):(r=65536+((1023&r)<<10|1023&e.charCodeAt(++a)),l[o>>2]|=(240|r>>18)<<SHIFT[3&o++],l[o>>2]|=(128|r>>12&63)<<SHIFT[3&o++],l[o>>2]|=(128|r>>6&63)<<SHIFT[3&o++],l[o>>2]|=(128|63&r)<<SHIFT[3&o++]);this.lastByteIndex=o,this.bytes+=o-this.start,o>=64?(this.block=l[16],this.start=o-64,this.hash(),this.hashed=!0):this.start=o}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=EXTRA[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var e,t,n,r,o,a,i,l,s,c=this.h0,u=this.h1,f=this.h2,p=this.h3,d=this.h4,m=this.h5,h=this.h6,y=this.h7,b=this.blocks;for(e=16;e<64;++e)t=((o=b[e-15])>>>7|o<<25)^(o>>>18|o<<14)^o>>>3,n=((o=b[e-2])>>>17|o<<15)^(o>>>19|o<<13)^o>>>10,b[e]=b[e-16]+t+b[e-7]+n<<0;for(s=u&f,e=0;e<64;e+=4)this.first?(this.is224?(a=300032,y=(o=b[0]-1413257819)-150054599<<0,p=o+24177077<<0):(a=704751109,y=(o=b[0]-210244248)-1521486534<<0,p=o+143694565<<0),this.first=!1):(t=(c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10),r=(a=c&u)^c&f^s,y=p+(o=y+(n=(d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&m^~d&h)+K[e]+b[e])<<0,p=o+(t+r)<<0),t=(p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10),r=(i=p&c)^p&u^a,h=f+(o=h+(n=(y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7))+(y&d^~y&m)+K[e+1]+b[e+1])<<0,t=((f=o+(t+r)<<0)>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),r=(l=f&p)^f&c^i,m=u+(o=m+(n=(h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&y^~h&d)+K[e+2]+b[e+2])<<0,t=((u=o+(t+r)<<0)>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10),r=(s=u&f)^u&p^l,d=c+(o=d+(n=(m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&h^~m&y)+K[e+3]+b[e+3])<<0,c=o+(t+r)<<0;this.h0=this.h0+c<<0,this.h1=this.h1+u<<0,this.h2=this.h2+f<<0,this.h3=this.h3+p<<0,this.h4=this.h4+d<<0,this.h5=this.h5+m<<0,this.h6=this.h6+h<<0,this.h7=this.h7+y<<0},Sha256.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,o=this.h4,a=this.h5,i=this.h6,l=this.h7,s=HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o]+HEX_CHARS[a>>28&15]+HEX_CHARS[a>>24&15]+HEX_CHARS[a>>20&15]+HEX_CHARS[a>>16&15]+HEX_CHARS[a>>12&15]+HEX_CHARS[a>>8&15]+HEX_CHARS[a>>4&15]+HEX_CHARS[15&a]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i];return this.is224||(s+=HEX_CHARS[l>>28&15]+HEX_CHARS[l>>24&15]+HEX_CHARS[l>>20&15]+HEX_CHARS[l>>16&15]+HEX_CHARS[l>>12&15]+HEX_CHARS[l>>8&15]+HEX_CHARS[l>>4&15]+HEX_CHARS[15&l]),s},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,o=this.h4,a=this.h5,i=this.h6,l=this.h7,s=[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,r>>24&255,r>>16&255,r>>8&255,255&r,o>>24&255,o>>16&255,o>>8&255,255&o,a>>24&255,a>>16&255,a>>8&255,255&a,i>>24&255,i>>16&255,i>>8&255,255&i];return this.is224||s.push(l>>24&255,l>>16&255,l>>8&255,255&l),s},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()}).call(this,__webpack_require__(103),__webpack_require__(67),__webpack_require__(101)(module))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){},function(e,t,n){var r,o,a,i;function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,a=function(e,t){if("object"!==f(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===f(a)?a:String(a)),r)}var o,a}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}i=function(e,t,n,r){"use strict";var o=".".concat("bs.alert"),a="close".concat(o),i="closed".concat(o),u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(f,e);var n,r,o,u=c(f);function f(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),u.apply(this,arguments)}return n=f,o=[{key:"NAME",get:function(){return"alert"}},{key:"jQueryInterface",value:function(e){return this.each((function(){var t=f.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError('No method named "'.concat(e,'"'));t[e](this)}}))}}],(r=[{key:"close",value:function(){var e=this;if(!t.trigger(this._element,a).defaultPrevented){this._element.classList.remove("show");var n=this._element.classList.contains("fade");this._queueCallback((function(){return e._destroyElement()}),this._element,n)}}},{key:"_destroyElement",value:function(){this._element.remove(),t.trigger(this._element,i),this.dispose()}}])&&l(n.prototype,r),o&&l(n,o),Object.defineProperty(n,"prototype",{writable:!1}),f}(e);return n.enableDismissTrigger(u,"close"),r.defineJQueryPlugin(u),u},"object"===f(t)&&void 0!==e?e.exports=i(n(131),n(62),n(434),n(44)):(o=[n(131),n(62),n(434),n(44)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a,i;function l(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,a=function(e,t){if("object"!==m(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===m(a)?a:String(a)),r)}var o,a}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}i=function(e,t,n,r){"use strict";var o=".".concat("bs.tab"),a="hide".concat(o),i="hidden".concat(o),s="show".concat(o),d="shown".concat(o),m="click".concat(o),h="keydown".concat(o),y="load".concat(o),b="ArrowLeft",v="ArrowRight",g="ArrowUp",w="ArrowDown",E="Home",_="End",k="active",O="fade",x="show",S=".dropdown-toggle",j=":not(".concat(S,")"),C='.list-group, .nav, [role="tablist"]',D=".nav-link".concat(j,", .list-group-item").concat(j,', [role="tab"]').concat(j),N='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',P="".concat(D,", ").concat(N),T=".".concat(k,'[data-bs-toggle="tab"], .').concat(k,'[data-bs-toggle="pill"], .').concat(k,'[data-bs-toggle="list"]'),M=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(D,e);var o,m,y,j=f(D);function D(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,D),(n=j.call(this,e))._parent=n._element.closest(C),n._parent?(n._setInitialAttributes(n._parent,n._getChildren()),t.on(n._element,h,(function(e){return n._keydown(e)})),n):p(n)}return o=D,y=[{key:"NAME",get:function(){return"tab"}},{key:"jQueryInterface",value:function(e){return this.each((function(){var t=D.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError('No method named "'.concat(e,'"'));t[e]()}}))}}],(m=[{key:"show",value:function(){var e=this._element;if(!this._elemIsActive(e)){var n=this._getActiveElem(),r=n?t.trigger(n,a,{relatedTarget:e}):null;t.trigger(e,s,{relatedTarget:n}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(n,e),this._activate(e,n))}}},{key:"_activate",value:function(e,r){var o=this;e&&(e.classList.add(k),this._activate(n.getElementFromSelector(e)),this._queueCallback((function(){"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),o._toggleDropDown(e,!0),t.trigger(e,d,{relatedTarget:r})):e.classList.add(x)}),e,e.classList.contains(O)))}},{key:"_deactivate",value:function(e,r){var o=this;e&&(e.classList.remove(k),e.blur(),this._deactivate(n.getElementFromSelector(e)),this._queueCallback((function(){"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),o._toggleDropDown(e,!1),t.trigger(e,i,{relatedTarget:r})):e.classList.remove(x)}),e,e.classList.contains(O)))}},{key:"_keydown",value:function(e){if([b,v,g,w,E,_].includes(e.key)){e.stopPropagation(),e.preventDefault();var t,n=this._getChildren().filter((function(e){return!r.isDisabled(e)}));if([E,_].includes(e.key))t=n[e.key===E?0:n.length-1];else{var o=[v,w].includes(e.key);t=r.getNextActiveElement(n,e.target,o,!0)}t&&(t.focus({preventScroll:!0}),D.getOrCreateInstance(t).show())}}},{key:"_getChildren",value:function(){return n.find(P,this._parent)}},{key:"_getActiveElem",value:function(){var e=this;return this._getChildren().find((function(t){return e._elemIsActive(t)}))||null}},{key:"_setInitialAttributes",value:function(e,t){this._setAttributeIfNotExists(e,"role","tablist");var n,r=l(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;this._setInitialAttributesOnChild(o)}}catch(e){r.e(e)}finally{r.f()}}},{key:"_setInitialAttributesOnChild",value:function(e){e=this._getInnerElement(e);var t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",t),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}},{key:"_setInitialAttributesOnTargetPanel",value:function(e){var t=n.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby","".concat(e.id)))}},{key:"_toggleDropDown",value:function(e,t){var r=this._getOuterElement(e);if(r.classList.contains("dropdown")){var o=function(e,o){var a=n.findOne(e,r);a&&a.classList.toggle(o,t)};o(S,k),o(".dropdown-menu",x),r.setAttribute("aria-expanded",t)}}},{key:"_setAttributeIfNotExists",value:function(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}},{key:"_elemIsActive",value:function(e){return e.classList.contains(k)}},{key:"_getInnerElement",value:function(e){return e.matches(P)?e:n.findOne(P,e)}},{key:"_getOuterElement",value:function(e){return e.closest(".nav-item, .list-group-item")||e}}])&&c(o.prototype,m),y&&c(o,y),Object.defineProperty(o,"prototype",{writable:!1}),D}(e);return t.on(document,m,N,(function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),r.isDisabled(this)||M.getOrCreateInstance(this).show()})),t.on(window,y,(function(){var e,t=l(n.find(T));try{for(t.s();!(e=t.n()).done;){var r=e.value;M.getOrCreateInstance(r)}}catch(e){t.e(e)}finally{t.f()}})),r.defineJQueryPlugin(M),M},"object"===m(t)&&void 0!==e?e.exports=i(n(131),n(62),n(84),n(44)):(o=[n(131),n(62),n(84),n(44)],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},function(e,t,n){var r,o,a;o=[n(129)],void 0===(a="function"==typeof(r=function(e){var t,n=navigator.userAgent,r=/iphone/i.test(n),o=/chrome/i.test(n),a=/android/i.test(n);e.mask={definitions:{9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},autoclear:!0,dataName:"rawMaskFn",placeholder:"_"},e.fn.extend({caret:function(e,t){var n;if(0!==this.length&&!this.is(":hidden"))return"number"==typeof e?(t="number"==typeof t?t:e,this.each((function(){this.setSelectionRange?this.setSelectionRange(e,t):this.createTextRange&&((n=this.createTextRange()).collapse(!0),n.moveEnd("character",t),n.moveStart("character",e),n.select())}))):(this[0].setSelectionRange?(e=this[0].selectionStart,t=this[0].selectionEnd):document.selection&&document.selection.createRange&&(n=document.selection.createRange(),e=0-n.duplicate().moveStart("character",-1e5),t=e+n.text.length),{begin:e,end:t})},unmask:function(){return this.trigger("unmask")},mask:function(n,i){var l,s,c,u,f,p,d;if(!n&&this.length>0){var m=e(this[0]).data(e.mask.dataName);return m?m():void 0}return i=e.extend({autoclear:e.mask.autoclear,placeholder:e.mask.placeholder,completed:null},i),l=e.mask.definitions,s=[],c=p=n.length,u=null,e.each(n.split(""),(function(e,t){"?"==t?(p--,c=e):l[t]?(s.push(new RegExp(l[t])),null===u&&(u=s.length-1),c>e&&(f=s.length-1)):s.push(null)})),this.trigger("unmask").each((function(){function m(){if(i.completed){for(var e=u;f>=e;e++)if(s[e]&&C[e]===h(e))return;i.completed.call(j)}}function h(e){return i.placeholder.charAt(e<i.placeholder.length?e:0)}function y(e){for(;++e<p&&!s[e];);return e}function b(e){for(;--e>=0&&!s[e];);return e}function v(e,t){var n,r;if(!(0>e)){for(n=e,r=y(t);p>n;n++)if(s[n]){if(!(p>r&&s[n].test(C[r])))break;C[n]=C[r],C[r]=h(r),r=y(r)}x(),j.caret(Math.max(u,e))}}function g(e){var t,n,r,o;for(t=e,n=h(e);p>t;t++)if(s[t]){if(r=y(t),o=C[t],C[t]=n,!(p>r&&s[r].test(o)))break;n=o}}function w(){var e=j.val(),t=j.caret();if(d&&d.length&&d.length>e.length){for(S(!0);t.begin>0&&!s[t.begin-1];)t.begin--;if(0===t.begin)for(;t.begin<u&&!s[t.begin];)t.begin++;j.caret(t.begin,t.begin)}else{for(S(!0);t.begin<p&&!s[t.begin];)t.begin++;j.caret(t.begin,t.begin)}m()}function E(){S(),j.val()!=N&&j.change()}function _(e){if(!j.prop("readonly")){var t,n,o,a=e.which||e.keyCode;d=j.val(),8===a||46===a||r&&127===a?(n=(t=j.caret()).begin,(o=t.end)-n==0&&(n=46!==a?b(n):o=y(n-1),o=46===a?y(o):o),O(n,o),v(n,o-1),e.preventDefault()):13===a?E.call(this,e):27===a&&(j.val(N),j.caret(0,S()),e.preventDefault())}}function k(t){if(!j.prop("readonly")){var n,r,o,i=t.which||t.keyCode,l=j.caret();t.ctrlKey||t.altKey||t.metaKey||32>i||!i||13===i||(l.end-l.begin!=0&&(O(l.begin,l.end),v(l.begin,l.end-1)),n=y(l.begin-1),p>n&&(r=String.fromCharCode(i),s[n].test(r))&&(g(n),C[n]=r,x(),o=y(n),a?setTimeout((function(){e.proxy(e.fn.caret,j,o)()}),0):j.caret(o),l.begin<=f&&m()),t.preventDefault())}}function O(e,t){var n;for(n=e;t>n&&p>n;n++)s[n]&&(C[n]=h(n))}function x(){j.val(C.join(""))}function S(e){var t,n,r,o=j.val(),a=-1;for(t=0,r=0;p>t;t++)if(s[t]){for(C[t]=h(t);r++<o.length;)if(n=o.charAt(r-1),s[t].test(n)){C[t]=n,a=t;break}if(r>o.length){O(t+1,p);break}}else C[t]===o.charAt(r)&&r++,c>t&&(a=t);return e?x():c>a+1?i.autoclear||C.join("")===D?(j.val()&&j.val(""),O(0,p)):x():(x(),j.val(j.val().substring(0,a+1))),c?t:u}var j=e(this),C=e.map(n.split(""),(function(e,t){return"?"!=e?l[e]?h(t):e:void 0})),D=C.join(""),N=j.val();j.data(e.mask.dataName,(function(){return e.map(C,(function(e,t){return s[t]&&e!=h(t)?e:null})).join("")})),j.one("unmask",(function(){j.off(".mask").removeData(e.mask.dataName)})).on("focus.mask",(function(){var e;j.prop("readonly")||(clearTimeout(t),N=j.val(),e=S(),t=setTimeout((function(){j.get(0)===document.activeElement&&(x(),e==n.replace("?","").length?j.caret(0,e):j.caret(e))}),10))})).on("blur.mask",E).on("keydown.mask",_).on("keypress.mask",k).on("input.mask paste.mask",(function(){j.prop("readonly")||setTimeout((function(){var e=S(!0);j.caret(e),m()}),0)})),o&&a&&j.off("input.mask").on("input.mask",w),S()}))}})})?r.apply(t,o):r)||(e.exports=a)},function(e,t){var n={eventList:{},update_line_numbers:function(e,t){var n=e.value.split("\n").length-t.children.length;if(n>0){for(var r=document.createDocumentFragment();n>0;){var o=document.createElement("span");o.className="tln-line",r.appendChild(o),n--}t.appendChild(r)}for(;n<0;)t.removeChild(t.firstChild),n++},append_line_numbers:function(e){var t=document.getElementById(e);if(null==t)return console.warn("[tln.js] Couldn't find textarea of id '"+e+"'");if(-1!=t.className.indexOf("tln-active"))return console.warn("[tln.js] textarea of id '"+e+"' is already numbered");t.classList.add("tln-active"),t.style={};var r=document.createElement("div");t.parentNode.insertBefore(r,t),r.className="tln-wrapper",n.update_line_numbers(t,r),n.eventList[e]=[];for(var o=["propertychange","input","keydown","keyup"],a=function(e,t){return function(r){(10!=+e.scrollLeft||37!=r.keyCode&&37!=r.which&&"ArrowLeft"!=r.code&&"ArrowLeft"!=r.key)&&36!=r.keyCode&&36!=r.which&&"Home"!=r.code&&"Home"!=r.key&&13!=r.keyCode&&13!=r.which&&"Enter"!=r.code&&"Enter"!=r.key&&"NumpadEnter"!=r.code||(e.scrollLeft=0),n.update_line_numbers(e,t)}}(t,r),i=o.length-1;i>=0;i--)t.addEventListener(o[i],a),n.eventList[e].push({evt:o[i],hdlr:a});var l=["change","mousewheel","scroll"],s=function(e,t){return function(){t.scrollTop=e.scrollTop}}(t,r);for(i=l.length-1;i>=0;i--)t.addEventListener(l[i],s),n.eventList[e].push({evt:l[i],hdlr:s})},remove_line_numbers:function(e){var t=document.getElementById(e);if(null==t)return console.warn("[tln.js] Couldn't find textarea of id '"+e+"'");if(-1==t.className.indexOf("tln-active"))return console.warn("[tln.js] textarea of id '"+e+"' isn't numbered");if(t.classList.remove("tln-active"),t.previousSibling.remove(),n.eventList[e]){for(var r=n.eventList[e].length-1;r>=0;r--){var o=n.eventList[e][r];t.removeEventListener(o.evt,o.hdlr)}delete n.eventList[e]}}};window.TLN=n},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),l=h(i),s=h(n(39)),c=h(n(1247)),u=h(n(1528)),f=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1249)),p=n(563),d=h(p),m=n(1534);function h(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==r(t)&&"function"!=typeof t?e:t}var b=t.portalClassName="ReactModalPortal",v=t.bodyOpenClassName="ReactModal__Body--open",g=p.canUseDOM&&void 0!==s.default.createPortal,w=function(e){return document.createElement(e)},E=function(){return g?s.default.createPortal:s.default.unstable_renderSubtreeIntoContainer};function _(e){return e()}var k=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,i=Array(a),c=0;c<a;c++)i[c]=arguments[c];return n=r=y(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.removePortal=function(){!g&&s.default.unmountComponentAtNode(r.node);var e=_(r.props.parentSelector);e&&e.contains(r.node)?e.removeChild(r.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},r.portalRef=function(e){r.portal=e},r.renderPortal=function(e){var n=E()(r,l.default.createElement(u.default,o({defaultStyles:t.defaultStyles},e)),r.node);r.portalRef(n)},y(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidMount",value:function(){p.canUseDOM&&(g||(this.node=w("div")),this.node.className=this.props.portalClassName,_(this.props.parentSelector).appendChild(this.node),!g&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:_(e.parentSelector),nextParent:_(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(p.canUseDOM){var r=this.props,o=r.isOpen,a=r.portalClassName;e.portalClassName!==a&&(this.node.className=a);var i=n.prevParent,l=n.nextParent;l!==i&&(i.removeChild(this.node),l.appendChild(this.node)),(e.isOpen||o)&&!g&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(p.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return p.canUseDOM&&g?(!this.node&&g&&(this.node=w("div")),E()(l.default.createElement(u.default,o({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){f.setElement(e)}}]),t}(i.Component);k.propTypes={isOpen:c.default.bool.isRequired,style:c.default.shape({content:c.default.object,overlay:c.default.object}),portalClassName:c.default.string,bodyOpenClassName:c.default.string,htmlOpenClassName:c.default.string,className:c.default.oneOfType([c.default.string,c.default.shape({base:c.default.string.isRequired,afterOpen:c.default.string.isRequired,beforeClose:c.default.string.isRequired})]),overlayClassName:c.default.oneOfType([c.default.string,c.default.shape({base:c.default.string.isRequired,afterOpen:c.default.string.isRequired,beforeClose:c.default.string.isRequired})]),appElement:c.default.oneOfType([c.default.instanceOf(d.default),c.default.instanceOf(p.SafeHTMLCollection),c.default.instanceOf(p.SafeNodeList),c.default.arrayOf(c.default.instanceOf(d.default))]),onAfterOpen:c.default.func,onRequestClose:c.default.func,closeTimeoutMS:c.default.number,ariaHideApp:c.default.bool,shouldFocusAfterRender:c.default.bool,shouldCloseOnOverlayClick:c.default.bool,shouldReturnFocusAfterClose:c.default.bool,preventScroll:c.default.bool,parentSelector:c.default.func,aria:c.default.object,data:c.default.object,role:c.default.string,contentLabel:c.default.string,shouldCloseOnEsc:c.default.bool,overlayRef:c.default.func,contentRef:c.default.func,id:c.default.string,overlayElement:c.default.func,contentElement:c.default.func},k.defaultProps={isOpen:!1,portalClassName:b,bodyOpenClassName:v,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return l.default.createElement("div",e,t)},contentElement:function(e,t){return l.default.createElement("div",e,t)}},k.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,m.polyfill)(k),t.default=k},function(e,t,n){"use strict";var r=n(1527);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var l=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 l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),s=b(n(1247)),c=y(n(1529)),u=b(n(1530)),f=y(n(1249)),p=y(n(1532)),d=n(563),m=b(d),h=b(n(1250));function y(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function b(e){return e&&e.__esModule?e:{default:e}}n(1533);var v={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},g=function(e){return"Tab"===e.code||9===e.keyCode},w=function(e){return"Escape"===e.code||27===e.keyCode},E=0,_=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==r(t)&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,r=e.ariaHideApp,o=e.htmlOpenClassName,a=e.bodyOpenClassName,i=e.parentSelector,l=i&&i().ownerDocument||document;a&&p.remove(l.body,a),o&&p.remove(l.getElementsByTagName("html")[0],o),r&&E>0&&0===(E-=1)&&f.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(c.returnFocus(n.props.preventScroll),c.teardownScopedFocus()):c.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),h.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(c.setupScopedFocus(n.node),c.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){g(e)&&(0,u.default)(n.content,e),n.props.shouldCloseOnEsc&&w(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var r="object"===(void 0===t?"undefined":a(t))?t:{base:v[e],afterOpen:v[e]+"--after-open",beforeClose:v[e]+"--before-close"},o=r.base;return n.state.afterOpen&&(o=o+" "+r.afterOpen),n.state.beforeClose&&(o=o+" "+r.beforeClose),"string"==typeof t&&t?o+" "+t:o},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,r){return n[e+"-"+r]=t[r],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,o=e.bodyOpenClassName,a=e.parentSelector,i=a&&a().ownerDocument||document;o&&p.add(i.body,o),r&&p.add(i.getElementsByTagName("html")[0],r),n&&(E+=1,f.hide(t)),h.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,r=e.overlayClassName,a=e.defaultStyles,i=e.children,l=n?{}:a.content,s=r?{}:a.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",r),style:o({},s,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},u=o({id:t,ref:this.setContentRef,style:o({},l,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",o({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),f=this.props.contentElement(u,i);return this.props.overlayElement(c,f)}}]),t}(l.Component);_.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},_.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),parentSelector:s.default.func,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(m.default),s.default.instanceOf(d.SafeHTMLCollection),s.default.instanceOf(d.SafeNodeList),s.default.arrayOf(s.default.instanceOf(m.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=_,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){i=[]},t.log=function(){0},t.handleBlur=c,t.handleFocus=u,t.markForFocusLater=function(){i.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==i.length&&(t=i.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){i.length>0&&i.pop()},t.setupScopedFocus=function(e){l=e,window.addEventListener?(window.addEventListener("blur",c,!1),document.addEventListener("focus",u,!0)):(window.attachEvent("onBlur",c),document.attachEvent("onFocus",u))},t.teardownScopedFocus=function(){l=null,window.addEventListener?(window.removeEventListener("blur",c),document.removeEventListener("focus",u)):(window.detachEvent("onBlur",c),document.detachEvent("onFocus",u))};var r,o=n(1248),a=(r=o)&&r.__esModule?r:{default:r};var i=[],l=null,s=!1;function c(){s=!0}function u(){if(s){if(s=!1,!l)return;setTimeout((function(){l.contains(document.activeElement)||((0,a.default)(l)[0]||l).focus()}),0)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,a.default)(e);if(!n.length)return void t.preventDefault();var r=void 0,o=t.shiftKey,l=n[0],s=n[n.length-1],c=i();if(e===c){if(!o)return;r=s}s!==c||o||(r=l);l===c&&o&&(r=s);if(r)return t.preventDefault(),void r.focus();var u=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==u||"Chrome"==u[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var f=n.indexOf(c);f>-1&&(f+=o?-1:1);if(void 0===(r=n[f]))return t.preventDefault(),void(r=o?s:l).focus();t.preventDefault(),r.focus()};var r,o=n(1248),a=(r=o)&&r.__esModule?r:{default:r};function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?i(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},function(e,t,n){var r;function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}!function(){"use strict";var a=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:a,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:a&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:a&&!!window.screen};"object"===o(n(180))&&n(180)?void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r):e.exports?e.exports=i:window.ExecutionEnvironment=i}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in r)a(e,r[t]);var n=document.body;for(var i in o)a(n,o[i]);r={},o={}},t.log=function(){0};var r={},o={};function a(e,t){e.classList.remove(t)}t.add=function(e,t){return n=e.classList,a="html"==e.nodeName.toLowerCase()?r:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(a,e),n.add(e)}));var n,a},t.remove=function(e,t){return n=e.classList,a="html"==e.nodeName.toLowerCase()?r:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(a,e),0===a[e]&&n.remove(e)}));var n,a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[i,l],t=0;t<e.length;t++){var n=e[t];n&&(n.parentNode&&n.parentNode.removeChild(n))}i=l=null,s=[]},t.log=function(){console.log("bodyTrap ----------"),console.log(s.length);for(var e=[i,l],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var r,o=n(1250),a=(r=o)&&r.__esModule?r:{default:r};var i=void 0,l=void 0,s=[];function c(){0!==s.length&&s[s.length-1].focusContent()}a.default.subscribe((function(e,t){i||l||((i=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),i.style.position="absolute",i.style.opacity="0",i.setAttribute("tabindex","0"),i.addEventListener("focus",c),(l=i.cloneNode()).addEventListener("focus",c)),(s=t).length>0?(document.body.firstChild!==i&&document.body.insertBefore(i,document.body.firstChild),document.body.lastChild!==l&&document.body.appendChild(l)):(i.parentElement&&i.parentElement.removeChild(i),l.parentElement&&l.parentElement.removeChild(l))}))},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function a(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function i(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,i=null,l=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?i="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(i="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?l="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(l="UNSAFE_componentWillUpdate"),null!==n||null!==i||null!==l){var s=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+s+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n  "+n:"")+(null!==i?"\n  "+i:"")+(null!==l?"\n  "+l:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=a;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,r)}}return e}n.r(t),n.d(t,"polyfill",(function(){return i})),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,a.__suppressDeprecationWarning=!0},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1537);Object.defineProperty(t,"DragDropManager",{enumerable:!0,get:function(){return l(r).default}});var o=n(1593);Object.defineProperty(t,"DragSource",{enumerable:!0,get:function(){return l(o).default}});var a=n(1594);Object.defineProperty(t,"DropTarget",{enumerable:!0,get:function(){return l(a).default}});var i=n(1595);function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"createTestBackend",{enumerable:!0,get:function(){return l(i).default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=s(n(1538)),a=s(n(1543)),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(524)),l=s(n(1588));function s(e){return e&&e.__esModule?e:{default:e}}var c=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var r=(0,o.default)(a.default);this.context=n,this.store=r,this.monitor=new l.default(r),this.registry=this.monitor.registry,this.backend=t(this),r.subscribe(this.handleRefCountChange.bind(this))}return r(e,[{key:"handleRefCountChange",value:function(){var e=this.store.getState().refCount>0;e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1)}},{key:"getContext",value:function(){return this.context}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.registry}},{key:"getActions",value:function(){var e=this,t=this.store.dispatch;return Object.keys(i).filter((function(e){return"function"==typeof i[e]})).reduce((function(n,r){var o,a=i[r];return n[r]=(o=a,function(){for(var n=arguments.length,r=Array(n),a=0;a<n;a++)r[a]=arguments[a];var i=o.apply(e,r);void 0!==i&&t(i)}),n}),{})}}]),e}();t.default=c},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.__esModule=!0,t.ActionTypes=void 0,t.default=function e(t,n,i){var s;"function"==typeof n&&void 0===i&&(i=n,n=void 0);if(void 0!==i){if("function"!=typeof i)throw new Error("Expected the enhancer to be a function.");return i(e)(t,n)}if("function"!=typeof t)throw new Error("Expected the reducer to be a function.");var c=t,u=n,f=[],p=f,d=!1;function m(){p===f&&(p=f.slice())}function h(){return u}function y(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return m(),p.push(e),function(){if(t){t=!1,m();var n=p.indexOf(e);p.splice(n,1)}}}function b(e){if(!(0,o.default)(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,u=c(u,e)}finally{d=!1}for(var t=f=p,n=0;n<t.length;n++){(0,t[n])()}return e}return b({type:l.INIT}),(s={dispatch:b,subscribe:y,getState:h,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");c=e,b({type:l.INIT})}})[a.default]=function(){var e,t=y;return(e={subscribe:function(e){if("object"!==r(e))throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(h())}return n(),{unsubscribe:t(n)}}})[a.default]=function(){return this},e},s};var o=i(n(426)),a=i(n(1541));function i(e){return e&&e.__esModule?e:{default:e}}var l=t.ActionTypes={INIT:"@@redux/INIT"}},function(e,t,n){var r=n(468),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var o=i.call(e);return r&&(t?e[l]=n:delete e[l]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){"use strict";n.r(t),function(e,r){var o,a=n(1463);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var i=Object(a.a)(o);t.default=i}.call(this,n(67),n(1542)(e))},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];return{dirtyHandlerIds:(0,i.default)(e.dirtyHandlerIds,t,e.dragOperation),dragOffset:(0,r.default)(e.dragOffset,t),refCount:(0,a.default)(e.refCount,t),dragOperation:(0,o.default)(e.dragOperation,t),stateId:(0,l.default)(e.stateId)}};var r=s(n(1254)),o=s(n(1544)),a=s(n(1578)),i=s(n(1260)),l=s(n(1587));function s(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments[1];switch(t.type){case l.BEGIN_DRAG:return r({},e,{itemType:t.itemType,item:t.item,sourceId:t.sourceId,isSourcePublic:t.isSourcePublic,dropResult:null,didDrop:!1});case l.PUBLISH_DRAG_SOURCE:return r({},e,{isSourcePublic:!0});case l.HOVER:return r({},e,{targetIds:t.targetIds});case s.REMOVE_TARGET:return-1===e.targetIds.indexOf(t.targetId)?e:r({},e,{targetIds:(0,i.default)(e.targetIds,t.targetId)});case l.DROP:return r({},e,{dropResult:t.dropResult,didDrop:!0,targetIds:[]});case l.END_DRAG:return r({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}};var o,a=n(1256),i=(o=a)&&o.__esModule?o:{default:o},l=n(524),s=n(532);var c={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null}},function(e,t,n){var r=n(1546),o=n(527),a=n(567);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},function(e,t,n){var r=n(1547),o=n(1552),a=n(1553),i=n(1554),l=n(1555);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=a,s.prototype.has=i,s.prototype.set=l,e.exports=s},function(e,t,n){var r=n(526);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t,n){var r=n(566),o=n(1549),a=n(394),i=n(1258),l=/^\[object .+?Constructor\]$/,s=Function.prototype,c=Object.prototype,u=s.toString,f=c.hasOwnProperty,p=RegExp("^"+u.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||o(e))&&(r(e)?p:l).test(i(e))}},function(e,t,n){var r,o=n(1550),a=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!a&&a in e}},function(e,t,n){var r=n(415)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(526),o="__lodash_hash_undefined__",a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return n===o?void 0:n}return a.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(526),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},function(e,t,n){var r=n(526),o="__lodash_hash_undefined__";e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?o:t,this}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(528),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(528);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(528);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(528);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(529);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}e.exports=function(e){var t=n(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(529);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(529);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(529);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},function(e,t){var n="__lodash_hash_undefined__";e.exports=function(e){return this.__data__.set(e,n),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(1569),o=n(1570),a=n(1571);e.exports=function(e,t,n){return t==t?a(e,t,n):r(e,o,n)}},function(e,t){e.exports=function(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a<o;)if(t(e[a],a,e))return a;return-1}},function(e,t){e.exports=function(e){return e!=e}},function(e,t){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},function(e,t,n){var r=n(1573),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var a=arguments,i=-1,l=o(a.length-t,0),s=Array(l);++i<l;)s[i]=a[t+i];i=-1;for(var c=Array(t+1);++i<t;)c[i]=a[i];return c[t]=n(s),r(e,this,c)}}},function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){var r=n(1575),o=n(1577)(r);e.exports=o},function(e,t,n){var r=n(1576),o=n(1259),a=n(531),i=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:a;e.exports=i},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t){var n=800,r=16,o=Date.now;e.exports=function(e){var t=0,a=0;return function(){var i=o(),l=r-(i-a);if(a=i,l>0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;switch(arguments[1].type){case r.ADD_SOURCE:case r.ADD_TARGET:return e+1;case r.REMOVE_SOURCE:case r.REMOVE_TARGET:return e-1;default:return e}};var r=n(532)},function(e,t,n){var r=n(1261),o=n(470),a=n(1580),i=n(491),l=o((function(e){return a(r(e,i))}));e.exports=l},function(e,t,n){var r=n(1257),o=n(1262),a=n(1263);e.exports=function(e,t,n){var i=e.length;if(i<2)return i?a(e[0]):[];for(var l=-1,s=Array(i);++l<i;)for(var c=e[l],u=-1;++u<i;)u!=l&&(s[l]=r(s[l]||c,e[u],t,n));return a(o(s,1),t,n)}},function(e,t,n){var r=n(468),o=n(533),a=n(183),i=r?r.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||o(e)||!!(i&&e&&e[i])}},function(e,t,n){var r=n(456),o=n(420),a="[object Arguments]";e.exports=function(e){return o(e)&&r(e)==a}},function(e,t,n){var r=n(1264),o=n(1265),a=n(572),i=r&&1/a(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=i},function(e,t,n){var r=n(489),o=n(1585),a=n(470),i=n(1586),l=a((function(e){var t=r(e,i);return t.length&&t[0]===e[0]?o(t):[]}));e.exports=l},function(e,t,n){var r=n(525),o=n(568),a=n(569),i=n(489),l=n(490),s=n(530),c=Math.min;e.exports=function(e,t,n){for(var u=n?a:o,f=e[0].length,p=e.length,d=p,m=Array(p),h=1/0,y=[];d--;){var b=e[d];d&&t&&(b=i(b,l(t))),h=c(b.length,h),m[d]=!n&&(t||f>=120&&b.length>=120)?new r(d&&b):void 0}b=e[0];var v=-1,g=m[0];e:for(;++v<f&&y.length<h;){var w=b[v],E=t?t(w):w;if(w=n||0!==w?w:0,!(g?s(g,E):u(y,E,n))){for(d=p;--d;){var _=m[d];if(!(_?s(_,E):u(e[d],E,n)))continue e}g&&g.push(E),y.push(w)}}return y}},function(e,t,n){var r=n(491);e.exports=function(e){return r(e)?e:[]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e+1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=u(n(181)),a=u(n(183)),i=u(n(1255)),l=u(n(1589)),s=n(1254),c=n(1260);function u(e){return e&&e.__esModule?e:{default:e}}var f=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t,this.registry=new l.default(t)}return r(e,[{key:"subscribeToStateChange",value:function(e){var t=this,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).handlerIds;(0,o.default)("function"==typeof e,"listener must be a function."),(0,o.default)(void 0===n||(0,a.default)(n),"handlerIds, when specified, must be an array of strings.");var r=this.store.getState().stateId;return this.store.subscribe((function(){var o=t.store.getState(),a=o.stateId;try{a===r||a===r+1&&!(0,c.areDirty)(o.dirtyHandlerIds,n)||e()}finally{r=a}}))}},{key:"subscribeToOffsetChange",value:function(e){var t=this;(0,o.default)("function"==typeof e,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe((function(){var r=t.store.getState().dragOffset;r!==n&&(n=r,e())}))}},{key:"canDragSource",value:function(e){var t=this.registry.getSource(e);return(0,o.default)(t,"Expected to find a valid source."),!this.isDragging()&&t.canDrag(this,e)}},{key:"canDropOnTarget",value:function(e){var t=this.registry.getTarget(e);if((0,o.default)(t,"Expected to find a valid target."),!this.isDragging()||this.didDrop())return!1;var n=this.registry.getTargetType(e),r=this.getItemType();return(0,i.default)(n,r)&&t.canDrop(this,e)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(e){var t=this.registry.getSource(e,!0);return(0,o.default)(t,"Expected to find a valid source."),!(!this.isDragging()||!this.isSourcePublic())&&(this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e))}},{key:"isOverTarget",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1}).shallow;if(!this.isDragging())return!1;var n=this.registry.getTargetType(e),r=this.getItemType();if(!(0,i.default)(n,r))return!1;var o=this.getTargetIds();if(!o.length)return!1;var a=o.indexOf(e);return t?a===o.length-1:a>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return this.store.getState().dragOperation.isSourcePublic}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return(0,s.getSourceClientOffset)(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return(0,s.getDifferenceFromInitialOffset)(this.store.getState().dragOffset)}}]),e}();t.default=f},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)},i=f(n(181)),l=f(n(183)),s=f(n(1590)),c=n(532),u=f(n(1592));function f(e){return e&&e.__esModule?e:{default:e}}var p={SOURCE:"SOURCE",TARGET:"TARGET"};function d(e,t){t&&(0,l.default)(e)?e.forEach((function(e){return d(e,!1)})):(0,i.default)("string"==typeof e||"symbol"===(void 0===e?"undefined":a(e)),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}function m(e){switch(e[0]){case"S":return p.SOURCE;case"T":return p.TARGET;default:(0,i.default)(!1,"Cannot parse handler ID: "+e)}}var h=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t,this.types={},this.handlers={},this.pinnedSourceId=null,this.pinnedSource=null}return o(e,[{key:"addSource",value:function(e,t){d(e),function(e){(0,i.default)("function"==typeof e.canDrag,"Expected canDrag to be a function."),(0,i.default)("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),(0,i.default)("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);var n=this.addHandler(p.SOURCE,e,t);return this.store.dispatch((0,c.addSource)(n)),n}},{key:"addTarget",value:function(e,t){d(e,!0),function(e){(0,i.default)("function"==typeof e.canDrop,"Expected canDrop to be a function."),(0,i.default)("function"==typeof e.hover,"Expected hover to be a function."),(0,i.default)("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);var n=this.addHandler(p.TARGET,e,t);return this.store.dispatch((0,c.addTarget)(n)),n}},{key:"addHandler",value:function(e,t,n){var r=function(e){var t=(0,u.default)().toString();switch(e){case p.SOURCE:return"S"+t;case p.TARGET:return"T"+t;default:(0,i.default)(!1,"Unknown role: "+e)}}(e);return this.types[r]=t,this.handlers[r]=n,r}},{key:"containsHandler",value:function(e){var t=this;return Object.keys(this.handlers).some((function(n){return t.handlers[n]===e}))}},{key:"getSource",value:function(e,t){return(0,i.default)(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.handlers[e]}},{key:"getTarget",value:function(e){return(0,i.default)(this.isTargetId(e),"Expected a valid target ID."),this.handlers[e]}},{key:"getSourceType",value:function(e){return(0,i.default)(this.isSourceId(e),"Expected a valid source ID."),this.types[e]}},{key:"getTargetType",value:function(e){return(0,i.default)(this.isTargetId(e),"Expected a valid target ID."),this.types[e]}},{key:"isSourceId",value:function(e){return m(e)===p.SOURCE}},{key:"isTargetId",value:function(e){return m(e)===p.TARGET}},{key:"removeSource",value:function(e){var t=this;(0,i.default)(this.getSource(e),"Expected an existing source."),this.store.dispatch((0,c.removeSource)(e)),(0,s.default)((function(){delete t.handlers[e],delete t.types[e]}))}},{key:"removeTarget",value:function(e){var t=this;(0,i.default)(this.getTarget(e),"Expected an existing target."),this.store.dispatch((0,c.removeTarget)(e)),(0,s.default)((function(){delete t.handlers[e],delete t.types[e]}))}},{key:"pinSource",value:function(e){var t=this.getSource(e);(0,i.default)(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}},{key:"unpinSource",value:function(){(0,i.default)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}}]),e}();t.default=h},function(e,t,n){"use strict";var r=n(1591),o=[],a=[],i=r.makeRequestCallFromTimer((function(){if(a.length)throw a.shift()}));function l(e){var t;(t=o.length?o.pop():new s).task=e,r(t)}function s(){this.task=null}e.exports=l,s.prototype.call=function(){try{this.task.call()}catch(e){l.onerror?l.onerror(e):(a.push(e),i())}finally{this.task=null,o[o.length]=this}}},function(e,t,n){"use strict";(function(t){function n(e){o.length||(r(),!0),o[o.length]=e}e.exports=n;var r,o=[],a=0,i=1024;function l(){for(;a<o.length;){var e=a;if(a+=1,o[e].call(),a>i){for(var t=0,n=o.length-a;t<n;t++)o[t]=o[t+a];o.length-=a,a=0}}o.length=0,a=0,!1}var s,c,u,f=void 0!==t?t:self,p=f.MutationObserver||f.WebKitMutationObserver;function d(e){return function(){var t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}"function"==typeof p?(s=1,c=new p(l),u=document.createTextNode(""),c.observe(u,{characterData:!0}),r=function(){s=-s,u.data=s}):r=d(l),n.requestFlush=r,n.makeRequestCallFromTimer=d}).call(this,n(67))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return r++};var r=0},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,[{key:"canDrag",value:function(){return!0}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,[{key:"canDrop",value:function(){return!0}},{key:"hover",value:function(){}},{key:"drop",value:function(){}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=function(e){return new l(e)};var o,a=n(1265),i=(o=a)&&o.__esModule?o:{default:o};var l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.actions=t.getActions()}return r(e,[{key:"setup",value:function(){this.didCallSetup=!0}},{key:"teardown",value:function(){this.didCallTeardown=!0}},{key:"connectDragSource",value:function(){return i.default}},{key:"connectDragPreview",value:function(){return i.default}},{key:"connectDropTarget",value:function(){return i.default}},{key:"simulateBeginDrag",value:function(e,t){this.actions.beginDrag(e,t)}},{key:"simulatePublishDragSource",value:function(){this.actions.publishDragSource()}},{key:"simulateHover",value:function(e,t){this.actions.hover(e,t)}},{key:"simulateDrop",value:function(){this.actions.drop()}},{key:"simulateEndDrag",value:function(){this.actions.endDrag()}}]),e}()},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,i,l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),c=n(8),u=(i=c)&&i.__esModule?i:{default:i},f=n(1251);var p=(a=o=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==r(t)&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.backend=(0,f.unpackBackendForEs5Users)(e.backend),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),l(t,[{key:"getChildContext",value:function(){var e=this;return(0,f.createChildContext)(this.backend,{window:e.props&&e.props.window?e.props.window:e.context&&e.context.window?e.context.window:"undefined"!=typeof window?window:void 0})}},{key:"render",value:function(){return s.Children.only(this.props.children)}}]),t}(s.Component),o.propTypes={backend:u.default.oneOfType([u.default.func,u.default.object]).isRequired,children:u.default.element.isRequired,window:u.default.object},o.defaultProps={window:void 0},o.childContextTypes=f.CHILD_CONTEXT_TYPES,o.displayName="DragDropContextProvider",o.contextTypes={window:u.default.object},a);t.default=p},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return h.default.apply(void 0,["DragLayer","collect[, options]"].concat(Array.prototype.slice.call(arguments))),(0,p.default)("function"==typeof e,'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ',"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-layer.html",e),(0,p.default)((0,f.default)(t),'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-layer.html',t),function(n){var f,h,y=t.arePropsEqual,b=void 0===y?m.default:y,v=n.displayName||n.name||"Component",g=(h=f=function(t){function l(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==r(t)&&"function"!=typeof t?e:t}(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,e));return n.handleChange=n.handleChange.bind(n),n.manager=t.dragDropManager,(0,p.default)("object"===a(n.manager),"Could not find the drag and drop manager in the context of %s. Make sure to wrap the top-level component of your app with DragDropContext. Read more: http://react-dnd.github.io/react-dnd/docs-troubleshooting.html#could-not-find-the-drag-and-drop-manager-in-the-context",v,v),n.state=n.getCurrentState(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(l,t),i(l,[{key:"getDecoratedComponentInstance",value:function(){return(0,p.default)(this.child,"In order to access an instance of the decorated component it can not be a stateless component."),this.child}},{key:"shouldComponentUpdate",value:function(e,t){return!b(e,this.props)||!(0,d.default)(t,this.state)}}]),i(l,[{key:"componentDidMount",value:function(){this.isCurrentlyMounted=!0;var e=this.manager.getMonitor();this.unsubscribeFromOffsetChange=e.subscribeToOffsetChange(this.handleChange),this.unsubscribeFromStateChange=e.subscribeToStateChange(this.handleChange),this.handleChange()}},{key:"componentWillUnmount",value:function(){this.isCurrentlyMounted=!1,this.unsubscribeFromOffsetChange(),this.unsubscribeFromStateChange()}},{key:"handleChange",value:function(){if(this.isCurrentlyMounted){var e=this.getCurrentState();(0,d.default)(e,this.state)||this.setState(e)}}},{key:"getCurrentState",value:function(){var t=this.manager.getMonitor();return e(t)}},{key:"render",value:function(){var e=this;return s.default.createElement(n,o({},this.props,this.state,{ref:function(t){e.child=t}}))}}]),l}(l.Component),f.DecoratedComponent=n,f.displayName="DragLayer("+v+")",f.contextTypes={dragDropManager:c.default.object.isRequired},h);return(0,u.default)(g,n)}};var l=n(0),s=y(l),c=y(n(8)),u=y(n(573)),f=y(n(426)),p=y(n(181)),d=y(n(574)),m=y(n(1266)),h=y(n(534));function y(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var p=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};a.default.apply(void 0,["DragSource","type, spec, collect[, options]"].concat(Array.prototype.slice.call(arguments)));var d=e;"function"!=typeof e&&((0,r.default)((0,f.default)(e),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',e),d=function(){return e});(0,r.default)((0,o.default)(t),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',t);var m=(0,s.default)(t);return(0,r.default)("function"==typeof n,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',n),(0,r.default)((0,o.default)(p),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',n),function(e){return(0,i.default)({connectBackend:function(e,t){return e.connectDragSource(t)},containerDisplayName:"DragSource",createHandler:m,registerHandler:l.default,createMonitor:c.default,createConnector:u.default,DecoratedComponent:e,getType:d,collect:n,options:p})}};var r=p(n(181)),o=p(n(426)),a=p(n(534)),i=p(n(1267)),l=p(n(1603)),s=p(n(1604)),c=p(n(1605)),u=p(n(1606)),f=p(n(1270));function p(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=r(n(575));t.isDisposable=o.default;var a=r(n(1600));t.Disposable=a.default;var i=r(n(1601));t.CompositeDisposable=i.default;var l=r(n(1602));t.SerialDisposable=l.default},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var o=function(){},a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.isDisposed=!1,this.action=t||o}return r(e,null,[{key:"empty",value:{dispose:o},enumerable:!0}]),e.prototype.dispose=function(){this.isDisposed||(this.action.call(null),this.isDisposed=!0)},e}();t.default=a,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(575),a=(r=o)&&r.__esModule?r:{default:r},i=function(){function e(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Array.isArray(n[0])&&1===n.length&&(n=n[0]);for(var o=0;o<n.length;o++)if(!a.default(n[o]))throw new Error("Expected a disposable");this.disposables=n,this.isDisposed=!1}return e.prototype.add=function(e){this.isDisposed?e.dispose():this.disposables.push(e)},e.prototype.remove=function(e){if(this.isDisposed)return!1;var t=this.disposables.indexOf(e);return-1!==t&&(this.disposables.splice(t,1),e.dispose(),!0)},e.prototype.dispose=function(){if(!this.isDisposed){for(var e=this.disposables.length,t=new Array(e),n=0;n<e;n++)t[n]=this.disposables[n];this.isDisposed=!0,this.disposables=[],this.length=0;for(n=0;n<e;n++)t[n].dispose()}},e}();t.default=i,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(575),a=(r=o)&&r.__esModule?r:{default:r},i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.isDisposed=!1,this.current=null}return e.prototype.getDisposable=function(){return this.current},e.prototype.setDisposable=function(){var e=arguments.length<=0||void 0===arguments[0]?null:arguments[0];if(null!=e&&!a.default(e))throw new Error("Expected either an empty value or a valid disposable");var t=this.isDisposed,n=void 0;t||(n=this.current,this.current=e),n&&n.dispose(),t&&e&&e.dispose()},e.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=null,e&&e.dispose()}},e}();t.default=i,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=n.getRegistry(),o=r.addSource(e,t);return{handlerId:o,unregister:function(){r.removeSource(o)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=function(e){Object.keys(e).forEach((function(t){(0,o.default)(i.indexOf(t)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',i.join(", "),t),(0,o.default)("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html",t,t,e[t])})),l.forEach((function(t){(0,o.default)("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html",t,t,e[t])}));var t=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.monitor=e,this.props=null,this.component=null}return r(t,[{key:"receiveProps",value:function(e){this.props=e}},{key:"receiveComponent",value:function(e){this.component=e}},{key:"canDrag",value:function(){return!e.canDrag||e.canDrag(this.props,this.monitor)}},{key:"isDragging",value:function(t,n){return e.isDragging?e.isDragging(this.props,this.monitor):n===t.getSourceId()}},{key:"beginDrag",value:function(){return e.beginDrag(this.props,this.monitor,this.component)}},{key:"endDrag",value:function(){e.endDrag&&e.endDrag(this.props,this.monitor,this.component)}}]),t}();return function(e){return new t(e)}};var o=a(n(181));a(n(426));function a(e){return e&&e.__esModule?e:{default:e}}var i=["canDrag","beginDrag","isDragging","endDrag"],l=["beginDrag"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=function(e){return new c(e)};var o,a=n(181),i=(o=a)&&o.__esModule?o:{default:o};var l=!1,s=!1,c=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.internalMonitor=t.getMonitor()}return r(e,[{key:"receiveHandlerId",value:function(e){this.sourceId=e}},{key:"canDrag",value:function(){(0,i.default)(!l,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source-monitor.html");try{return l=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{l=!1}}},{key:"isDragging",value:function(){(0,i.default)(!s,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source-monitor.html");try{return s=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{s=!1}}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=void 0,n=void 0,a=void 0,i=void 0,l=void 0,s=void 0,c=void 0;function u(){i&&(i(),i=null),t&&n&&(i=e.connectDragSource(t,n,a))}function f(){c&&(c(),c=null),t&&l&&(c=e.connectDragPreview(t,l,s))}return{receiveHandlerId:function(e){e!==t&&(t=e,u(),f())},hooks:(0,r.default)({dragSource:function(e,t){e===n&&(0,o.default)(t,a)||(n=e,a=t,u())},dragPreview:function(e,t){e===l&&(0,o.default)(t,s)||(l=e,s=t,f())}})}};var r=a(n(1268)),o=a(n(1269));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.ref;if((0,a.default)("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),!n)return(0,i.cloneElement)(e,{ref:t});return(0,i.cloneElement)(e,{ref:function(e){t(e),n&&n(e)}})};var r,o=n(181),a=(r=o)&&r.__esModule?r:{default:r},i=n(0)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var p=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};a.default.apply(void 0,["DropTarget","type, spec, collect[, options]"].concat(Array.prototype.slice.call(arguments)));var d=e;"function"!=typeof e&&((0,r.default)((0,f.default)(e,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',e),d=function(){return e});(0,r.default)((0,o.default)(t),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',t);var m=(0,s.default)(t);return(0,r.default)("function"==typeof n,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',n),(0,r.default)((0,o.default)(p),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',n),function(e){return(0,i.default)({connectBackend:function(e,t){return e.connectDropTarget(t)},containerDisplayName:"DropTarget",createHandler:m,registerHandler:l.default,createMonitor:c.default,createConnector:u.default,DecoratedComponent:e,getType:d,collect:n,options:p})}};var r=p(n(181)),o=p(n(426)),a=p(n(534)),i=p(n(1267)),l=p(n(1609)),s=p(n(1610)),c=p(n(1611)),u=p(n(1612)),f=p(n(1270));function p(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=n.getRegistry(),o=r.addTarget(e,t);return{handlerId:o,unregister:function(){r.removeTarget(o)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=function(e){Object.keys(e).forEach((function(t){(0,o.default)(i.indexOf(t)>-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',i.join(", "),t),(0,o.default)("function"==typeof e[t],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html",t,t,e[t])}));var t=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.monitor=e,this.props=null,this.component=null}return r(t,[{key:"receiveProps",value:function(e){this.props=e}},{key:"receiveMonitor",value:function(e){this.monitor=e}},{key:"receiveComponent",value:function(e){this.component=e}},{key:"canDrop",value:function(){return!e.canDrop||e.canDrop(this.props,this.monitor)}},{key:"hover",value:function(){e.hover&&e.hover(this.props,this.monitor,this.component)}},{key:"drop",value:function(){if(e.drop)return e.drop(this.props,this.monitor,this.component)}}]),t}();return function(e){return new t(e)}};var o=a(n(181));a(n(426));function a(e){return e&&e.__esModule?e:{default:e}}var i=["canDrop","hover","drop"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=function(e){return new s(e)};var o,a=n(181),i=(o=a)&&o.__esModule?o:{default:o};var l=!1,s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.internalMonitor=t.getMonitor()}return r(e,[{key:"receiveHandlerId",value:function(e){this.targetId=e}},{key:"canDrop",value:function(){(0,i.default)(!l,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target-monitor.html");try{return l=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{l=!1}}},{key:"isOver",value:function(e){return this.internalMonitor.isOverTarget(this.targetId,e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=void 0,n=void 0,a=void 0,i=void 0;function l(){i&&(i(),i=null),t&&n&&(i=e.connectDropTarget(t,n,a))}return{receiveHandlerId:function(e){e!==t&&(t=e,l())},hooks:(0,r.default)({dropTarget:function(e,t){e===n&&(0,o.default)(t,a)||(n=e,a=t,l())}})}};var r=a(n(1268)),o=a(n(1269));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=f(n(1614)),a=f(n(1620)),i=f(n(1621)),l=n(1273),s=n(1623),c=n(1625),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(580));function f(e){return e&&e.__esModule?e:{default:e}}var p=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.context=t.getContext(),this.sourcePreviewNodes={},this.sourcePreviewNodeOptions={},this.sourceNodes={},this.sourceNodeOptions={},this.enterLeaveCounter=new i.default,this.dragStartSourceIds=[],this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.currentDragSourceNodeOffset=null,this.currentDragSourceNodeOffsetChanged=!1,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.getSourceClientOffset=this.getSourceClientOffset.bind(this),this.handleTopDragStart=this.handleTopDragStart.bind(this),this.handleTopDragStartCapture=this.handleTopDragStartCapture.bind(this),this.handleTopDragEndCapture=this.handleTopDragEndCapture.bind(this),this.handleTopDragEnter=this.handleTopDragEnter.bind(this),this.handleTopDragEnterCapture=this.handleTopDragEnterCapture.bind(this),this.handleTopDragLeaveCapture=this.handleTopDragLeaveCapture.bind(this),this.handleTopDragOver=this.handleTopDragOver.bind(this),this.handleTopDragOverCapture=this.handleTopDragOverCapture.bind(this),this.handleTopDrop=this.handleTopDrop.bind(this),this.handleTopDropCapture=this.handleTopDropCapture.bind(this),this.handleSelectStart=this.handleSelectStart.bind(this),this.endDragIfSourceWasRemovedFromDOM=this.endDragIfSourceWasRemovedFromDOM.bind(this),this.endDragNativeItem=this.endDragNativeItem.bind(this),this.asyncEndDragNativeItem=this.asyncEndDragNativeItem.bind(this),this.isNodeInDocument=this.isNodeInDocument.bind(this)}return r(e,[{key:"setup",value:function(){if(void 0!==this.window){if(this.window.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");this.window.__isReactDndBackendSetUp=!0,this.addEventListeners(this.window)}}},{key:"teardown",value:function(){void 0!==this.window&&(this.window.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.window),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&this.window.cancelAnimationFrame(this.asyncEndDragFrameId))}},{key:"addEventListeners",value:function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"connectDragPreview",value:function(e,t,n){var r=this;return this.sourcePreviewNodeOptions[e]=n,this.sourcePreviewNodes[e]=t,function(){delete r.sourcePreviewNodes[e],delete r.sourcePreviewNodeOptions[e]}}},{key:"connectDragSource",value:function(e,t,n){var r=this;this.sourceNodes[e]=t,this.sourceNodeOptions[e]=n;var o=function(t){return r.handleDragStart(t,e)},a=function(t){return r.handleSelectStart(t,e)};return t.setAttribute("draggable",!0),t.addEventListener("dragstart",o),t.addEventListener("selectstart",a),function(){delete r.sourceNodes[e],delete r.sourceNodeOptions[e],t.removeEventListener("dragstart",o),t.removeEventListener("selectstart",a),t.setAttribute("draggable",!1)}}},{key:"connectDropTarget",value:function(e,t){var n=this,r=function(t){return n.handleDragEnter(t,e)},o=function(t){return n.handleDragOver(t,e)},a=function(t){return n.handleDrop(t,e)};return t.addEventListener("dragenter",r),t.addEventListener("dragover",o),t.addEventListener("drop",a),function(){t.removeEventListener("dragenter",r),t.removeEventListener("dragover",o),t.removeEventListener("drop",a)}}},{key:"getCurrentSourceNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions[e];return(0,o.default)(t||{},{dropEffect:this.altKeyPressed?"copy":"move"})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourcePreviewNodeOptions[e];return(0,o.default)(t||{},{anchorX:.5,anchorY:.5,captureDraggingState:!1})}},{key:"getSourceClientOffset",value:function(e){return(0,s.getNodeClientOffset)(this.sourceNodes[e])}},{key:"isDraggingNativeItem",value:function(){var e=this.monitor.getItemType();return Object.keys(u).some((function(t){return u[t]===e}))}},{key:"beginDragNativeItem",value:function(e){this.clearCurrentDragSourceNode();var t=(0,c.createNativeDragSource)(e);this.currentNativeSource=new t,this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"asyncEndDragNativeItem",value:function(){this.asyncEndDragFrameId=this.window.requestAnimationFrame(this.endDragNativeItem)}},{key:"endDragNativeItem",value:function(){this.isDraggingNativeItem()&&(this.actions.endDrag(),this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)}},{key:"isNodeInDocument",value:function(e){return!(!document.body.contains(e)&&!this.window)&&this.window.document.body.contains(e)}},{key:"endDragIfSourceWasRemovedFromDOM",value:function(){var e=this.currentDragSourceNode;this.isNodeInDocument(e)||this.clearCurrentDragSourceNode()&&this.actions.endDrag()}},{key:"setCurrentDragSourceNode",value:function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.currentDragSourceNodeOffset=(0,s.getNodeClientOffset)(e),this.currentDragSourceNodeOffsetChanged=!1;this.mouseMoveTimeoutTimer=setTimeout((function(){return t.mouseMoveTimeoutId=null,t.window.addEventListener("mousemove",t.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}},{key:"clearCurrentDragSourceNode",value:function(){return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.currentDragSourceNodeOffset=null,this.currentDragSourceNodeOffsetChanged=!1,this.window.clearTimeout(this.mouseMoveTimeoutTimer),this.window.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0),this.mouseMoveTimeoutTimer=null,!0)}},{key:"checkIfCurrentDragSourceRectChanged",value:function(){var e=this.currentDragSourceNode;return!!e&&(!!this.currentDragSourceNodeOffsetChanged||(this.currentDragSourceNodeOffsetChanged=!(0,a.default)((0,s.getNodeClientOffset)(e),this.currentDragSourceNodeOffset),this.currentDragSourceNodeOffsetChanged))}},{key:"handleTopDragStartCapture",value:function(){this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]}},{key:"handleDragStart",value:function(e,t){this.dragStartSourceIds.unshift(t)}},{key:"handleTopDragStart",value:function(e){var t=this,n=this.dragStartSourceIds;this.dragStartSourceIds=null;var r=(0,s.getEventClientOffset)(e);this.monitor.isDragging()&&this.actions.endDrag(),this.actions.beginDrag(n,{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:r});var o=e.dataTransfer,a=(0,c.matchNativeItemType)(o);if(this.monitor.isDragging()){if("function"==typeof o.setDragImage){var i=this.monitor.getSourceId(),l=this.sourceNodes[i],u=this.sourcePreviewNodes[i]||l,f=this.getCurrentSourcePreviewNodeOptions(),p={anchorX:f.anchorX,anchorY:f.anchorY},d={offsetX:f.offsetX,offsetY:f.offsetY},m=(0,s.getDragPreviewOffset)(l,u,r,p,d);o.setDragImage(u,m.x,m.y)}try{o.setData("application/json",{})}catch(e){}this.setCurrentDragSourceNode(e.target),this.getCurrentSourcePreviewNodeOptions().captureDraggingState?this.actions.publishDragSource():setTimeout((function(){return t.actions.publishDragSource()}))}else if(a)this.beginDragNativeItem(a);else{if(!(o.types||e.target.hasAttribute&&e.target.hasAttribute("draggable")))return;e.preventDefault()}}},{key:"handleTopDragEndCapture",value:function(){this.clearCurrentDragSourceNode()&&this.actions.endDrag()}},{key:"handleTopDragEnterCapture",value:function(e){if(this.dragEnterTargetIds=[],this.enterLeaveCounter.enter(e.target)&&!this.monitor.isDragging()){var t=e.dataTransfer,n=(0,c.matchNativeItemType)(t);n&&this.beginDragNativeItem(n)}}},{key:"handleDragEnter",value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:"handleTopDragEnter",value:function(e){var t=this,n=this.dragEnterTargetIds;(this.dragEnterTargetIds=[],this.monitor.isDragging())&&(this.altKeyPressed=e.altKey,(0,l.isFirefox)()||this.actions.hover(n,{clientOffset:(0,s.getEventClientOffset)(e)}),n.some((function(e){return t.monitor.canDropOnTarget(e)}))&&(e.preventDefault(),e.dataTransfer.dropEffect=this.getCurrentDropEffect()))}},{key:"handleTopDragOverCapture",value:function(){this.dragOverTargetIds=[]}},{key:"handleDragOver",value:function(e,t){this.dragOverTargetIds.unshift(t)}},{key:"handleTopDragOver",value:function(e){var t=this,n=this.dragOverTargetIds;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer.dropEffect="none");this.altKeyPressed=e.altKey,this.actions.hover(n,{clientOffset:(0,s.getEventClientOffset)(e)}),n.some((function(e){return t.monitor.canDropOnTarget(e)}))?(e.preventDefault(),e.dataTransfer.dropEffect=this.getCurrentDropEffect()):this.isDraggingNativeItem()?(e.preventDefault(),e.dataTransfer.dropEffect="none"):this.checkIfCurrentDragSourceRectChanged()&&(e.preventDefault(),e.dataTransfer.dropEffect="move")}},{key:"handleTopDragLeaveCapture",value:function(e){this.isDraggingNativeItem()&&e.preventDefault(),this.enterLeaveCounter.leave(e.target)&&this.isDraggingNativeItem()&&this.endDragNativeItem()}},{key:"handleTopDropCapture",value:function(e){this.dropTargetIds=[],e.preventDefault(),this.isDraggingNativeItem()&&this.currentNativeSource.mutateItemByReadingDataTransfer(e.dataTransfer),this.enterLeaveCounter.reset()}},{key:"handleDrop",value:function(e,t){this.dropTargetIds.unshift(t)}},{key:"handleTopDrop",value:function(e){var t=this.dropTargetIds;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:(0,s.getEventClientOffset)(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.endDragIfSourceWasRemovedFromDOM()}},{key:"handleSelectStart",value:function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))}},{key:"window",get:function(){return this.context&&this.context.window?this.context.window:"undefined"!=typeof window?window:void 0}}]),e}();t.default=p},function(e,t,n){var r=n(470),o=n(469),a=n(1271),i=n(492),l=Object.prototype,s=l.hasOwnProperty,c=r((function(e,t){e=Object(e);var n=-1,r=t.length,c=r>2?t[2]:void 0;for(c&&a(t[0],t[1],c)&&(r=1);++n<r;)for(var u=t[n],f=i(u),p=-1,d=f.length;++p<d;){var m=f[p],h=e[m];(void 0===h||o(h,l[m])&&!s.call(e,m))&&(e[m]=u[m])}return e}));e.exports=c},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(456),o=n(570),a=n(420),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&o(e.length)&&!!i[r(e)]}},function(e,t,n){var r=n(394),o=n(579),a=n(1619),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return a(e);var t=o(e),n=[];for(var l in e)("constructor"!=l||!t&&i.call(e,l))&&n.push(l);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e===t)return!0;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=Object.prototype.hasOwnProperty,a=0;a<n.length;a+=1){if(!o.call(t,n[a])||e[n[a]]!==t[n[a]])return!1;if(e[n[a]]!==t[n[a]])return!1}return!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=i(n(1622)),a=i(n(1256));function i(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.entered=[]}return r(e,[{key:"enter",value:function(e){var t=this.entered.length;return this.entered=(0,o.default)(this.entered.filter((function(t){return document.documentElement.contains(t)&&(!t.contains||t.contains(e))})),[e]),0===t&&this.entered.length>0}},{key:"leave",value:function(e){var t=this.entered.length;return this.entered=(0,a.default)(this.entered.filter((function(e){return document.documentElement.contains(e)})),e),t>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}]),e}();t.default=l},function(e,t,n){var r=n(1262),o=n(470),a=n(1263),i=n(491),l=o((function(e){return a(r(e,1,i,!0))}));e.exports=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNodeClientOffset=s,t.getEventClientOffset=function(e){return{x:e.clientX,y:e.clientY}},t.getDragPreviewOffset=function(e,t,n,r,a){var l=(E=t,"IMG"===E.nodeName&&((0,o.isFirefox)()||!document.documentElement.contains(E))),c=s(l?e:t),u={x:n.x-c.x,y:n.y-c.y},f=e.offsetWidth,p=e.offsetHeight,d=r.anchorX,m=r.anchorY,h=function(e,t,n,r){var a=e?t.width:n,i=e?t.height:r;(0,o.isSafari)()&&e&&(i/=window.devicePixelRatio,a/=window.devicePixelRatio);return{dragPreviewWidth:a,dragPreviewHeight:i}}(l,t,f,p),y=h.dragPreviewWidth,b=h.dragPreviewHeight,v=a.offsetX,g=a.offsetY,w=0===g||g;var E;return{x:0===v||v?v:new i.default([0,.5,1],[u.x,u.x/f*y,u.x+y-f]).interpolate(d),y:w?g:(_=new i.default([0,.5,1],[u.y,u.y/p*b,u.y+b-p]).interpolate(m),(0,o.isSafari)()&&l&&(_+=(window.devicePixelRatio-1)*b),_)};var _};var r,o=n(1273),a=n(1624),i=(r=a)&&r.__esModule?r:{default:r};var l=1;function s(e){var t=e.nodeType===l?e:e.parentElement;if(!t)return null;var n=t.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var o=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=t.length,o=[],a=0;a<r;a++)o.push(a);o.sort((function(e,n){return t[e]<t[n]?-1:1}));for(var i=[],l=[],s=[],c=void 0,u=void 0,f=0;f<r-1;f++)c=t[f+1]-t[f],u=n[f+1]-n[f],l.push(c),i.push(u),s.push(u/c);for(var p=[s[0]],d=0;d<l.length-1;d++){var m=s[d],h=s[d+1];if(m*h<=0)p.push(0);else{c=l[d];var y=l[d+1],b=c+y;p.push(3*b/((b+y)/m+(b+c)/h))}}p.push(s[s.length-1]);for(var v=[],g=[],w=void 0,E=0;E<p.length-1;E++){w=s[E];var _=p[E],k=1/l[E],O=_+p[E+1]-w-w;v.push((w-_-O)*k),g.push(O*k*k)}this.xs=t,this.ys=n,this.c1s=p,this.c2s=v,this.c3s=g}return r(e,[{key:"interpolate",value:function(e){var t=this.xs,n=this.ys,r=this.c1s,o=this.c2s,a=this.c3s,i=t.length-1;if(e===t[i])return n[i];for(var l=0,s=a.length-1,c=void 0;l<=s;){var u=t[c=Math.floor(.5*(l+s))];if(u<e)l=c+1;else{if(!(u>e))return n[c];s=c-1}}var f=e-t[i=Math.max(0,s)],p=f*f;return n[i]+r[i]*f+o[i]*p+a[i]*f*p}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.createNativeDragSource=function(e){var t=s[e],n=t.exposeProperty,r=t.matchesTypes,a=t.getData;return function(){function e(){var t,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.item=(t={},(r={})[n]=r[n]||{},r[n].get=function(){return console.warn("Browser doesn't allow reading \""+n+'" until the drop event.'),null},function(e,t){for(var n in t){var r=t[n];r.configurable=r.enumerable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,n,r)}}(t,r),t)}return o(e,[{key:"mutateItemByReadingDataTransfer",value:function(e){delete this.item[n],this.item[n]=a(e,r)}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}]),e}()},t.matchNativeItemType=function(e){var t=Array.prototype.slice.call(e.types||[]);return Object.keys(s).filter((function(e){return s[e].matchesTypes.some((function(e){return t.indexOf(e)>-1}))}))[0]||null};var a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(580));function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t,n){var r=t.reduce((function(t,n){return t||e.getData(n)}),null);return null!=r?r:n}var s=(i(r={},a.FILE,{exposeProperty:"files",matchesTypes:["Files"],getData:function(e){return Array.prototype.slice.call(e.files)}}),i(r,a.URL,{exposeProperty:"urls",matchesTypes:["Url","text/uri-list"],getData:function(e,t){return l(e,t,"").split("\n")}}),i(r,a.TEXT,{exposeProperty:"text",matchesTypes:["Text","text/plain"],getData:function(e,t){return l(e,t,"")}}),r)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){r||((r=new Image).src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==");return r};var r=void 0},function(e,t,n){e.exports={default:n(1628),__esModule:!0}},function(e,t,n){n(1629),e.exports=n(421).Object.assign},function(e,t,n){var r=n(458);r(r.S+r.F,"Object",{assign:n(1631)})},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var r=n(437),o=n(536),a=n(589),i=n(539),l=n(540),s=n(1278),c=Object.assign;e.exports=!c||n(493)((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r}))?function(e,t){for(var n=l(e),c=arguments.length,u=1,f=a.f,p=i.f;c>u;)for(var d,m=s(arguments[u++]),h=f?o(m).concat(f(m)):o(m),y=h.length,b=0;y>b;)d=h[b++],r&&!p.call(m,d)||(n[d]=m[d]);return n}:c},function(e,t,n){var r=n(475),o=n(1279),a=n(1633);e.exports=function(e){return function(t,n,i){var l,s=r(t),c=o(s.length),u=a(i,c);if(e&&n!=n){for(;c>u;)if((l=s[u++])!=l)return!0}else for(;c>u;u++)if((e||u in s)&&s[u]===n)return e||u||0;return!e&&-1}}},function(e,t,n){var r=n(585),o=Math.max,a=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):a(e,t)}},function(e,t,n){n(1635);var r=n(421).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},function(e,t,n){var r=n(458);r(r.S+r.F*!n(437),"Object",{defineProperty:n(436).f})},function(e,t,n){e.exports={default:n(1637),__esModule:!0}},function(e,t,n){n(1281),n(1643),e.exports=n(592).f("iterator")},function(e,t,n){var r=n(585),o=n(584);e.exports=function(e){return function(t,n){var a,i,l=String(o(t)),s=r(n),c=l.length;return s<0||s>=c?e?"":void 0:(a=l.charCodeAt(s))<55296||a>56319||s+1===c||(i=l.charCodeAt(s+1))<56320||i>57343?e?l.charAt(s):a:e?l.slice(s,s+2):i-56320+(a-55296<<10)+65536}}},function(e,t,n){"use strict";var r=n(590),o=n(494),a=n(591),i={};n(472)(i,n(422)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(i,{next:o(1,n)}),a(e,t+" Iterator")}},function(e,t,n){var r=n(436),o=n(473),a=n(536);e.exports=n(437)?Object.defineProperties:function(e,t){o(e);for(var n,i=a(t),l=i.length,s=0;l>s;)r.f(e,n=i[s++],t[n]);return e}},function(e,t,n){var r=n(435).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(459),o=n(540),a=n(586)("IE_PROTO"),i=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?i:null}},function(e,t,n){n(1644);for(var r=n(435),o=n(472),a=n(495),i=n(422)("toStringTag"),l="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),s=0;s<l.length;s++){var c=l[s],u=r[c],f=u&&u.prototype;f&&!f[i]&&o(f,i,c),a[c]=a.Array}},function(e,t,n){"use strict";var r=n(1645),o=n(1646),a=n(495),i=n(475);e.exports=n(1282)(Array,"Array",(function(e,t){this._t=i(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){e.exports={default:n(1648),__esModule:!0}},function(e,t,n){n(1649),n(1654),n(1655),n(1656),e.exports=n(421).Symbol},function(e,t,n){"use strict";var r=n(435),o=n(459),a=n(437),i=n(458),l=n(1283),s=n(1650).KEY,c=n(493),u=n(587),f=n(591),p=n(538),d=n(422),m=n(592),h=n(593),y=n(1651),b=n(1652),v=n(473),g=n(474),w=n(540),E=n(475),_=n(582),k=n(494),O=n(590),x=n(1653),S=n(1285),j=n(589),C=n(436),D=n(536),N=S.f,P=C.f,T=x.f,M=r.Symbol,A=r.JSON,L=A&&A.stringify,R="prototype",F=d("_hidden"),z=d("toPrimitive"),B={}.propertyIsEnumerable,Y=u("symbol-registry"),I=u("symbols"),H=u("op-symbols"),U=Object[R],W="function"==typeof M&&!!j.f,V=r.QObject,q=!V||!V[R]||!V[R].findChild,G=a&&c((function(){return 7!=O(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=N(U,t);r&&delete U[t],P(e,t,n),r&&e!==U&&P(U,t,r)}:P,K=function(e){var t=I[e]=O(M[R]);return t._k=e,t},$=W&&"symbol"==typeof M.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof M},J=function(e,t,n){return e===U&&J(H,t,n),v(e),t=_(t,!0),v(n),o(I,t)?(n.enumerable?(o(e,F)&&e[F][t]&&(e[F][t]=!1),n=O(n,{enumerable:k(0,!1)})):(o(e,F)||P(e,F,k(1,{})),e[F][t]=!0),G(e,t,n)):P(e,t,n)},X=function(e,t){v(e);for(var n,r=y(t=E(t)),o=0,a=r.length;a>o;)J(e,n=r[o++],t[n]);return e},Q=function(e){var t=B.call(this,e=_(e,!0));return!(this===U&&o(I,e)&&!o(H,e))&&(!(t||!o(this,e)||!o(I,e)||o(this,F)&&this[F][e])||t)},Z=function(e,t){if(e=E(e),t=_(t,!0),e!==U||!o(I,t)||o(H,t)){var n=N(e,t);return!n||!o(I,t)||o(e,F)&&e[F][t]||(n.enumerable=!0),n}},ee=function(e){for(var t,n=T(E(e)),r=[],a=0;n.length>a;)o(I,t=n[a++])||t==F||t==s||r.push(t);return r},te=function(e){for(var t,n=e===U,r=T(n?H:E(e)),a=[],i=0;r.length>i;)!o(I,t=r[i++])||n&&!o(U,t)||a.push(I[t]);return a};W||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===U&&t.call(H,n),o(this,F)&&o(this[F],e)&&(this[F][e]=!1),G(this,e,k(1,n))};return a&&q&&G(U,e,{configurable:!0,set:t}),K(e)},l(M[R],"toString",(function(){return this._k})),S.f=Z,C.f=J,n(1284).f=x.f=ee,n(539).f=Q,j.f=te,a&&!n(537)&&l(U,"propertyIsEnumerable",Q,!0),m.f=function(e){return K(d(e))}),i(i.G+i.W+i.F*!W,{Symbol:M});for(var ne="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;ne.length>re;)d(ne[re++]);for(var oe=D(d.store),ae=0;oe.length>ae;)h(oe[ae++]);i(i.S+i.F*!W,"Symbol",{for:function(e){return o(Y,e+="")?Y[e]:Y[e]=M(e)},keyFor:function(e){if(!$(e))throw TypeError(e+" is not a symbol!");for(var t in Y)if(Y[t]===e)return t},useSetter:function(){q=!0},useSimple:function(){q=!1}}),i(i.S+i.F*!W,"Object",{create:function(e,t){return void 0===t?O(e):X(O(e),t)},defineProperty:J,defineProperties:X,getOwnPropertyDescriptor:Z,getOwnPropertyNames:ee,getOwnPropertySymbols:te});var ie=c((function(){j.f(1)}));i(i.S+i.F*ie,"Object",{getOwnPropertySymbols:function(e){return j.f(w(e))}}),A&&i(i.S+i.F*(!W||c((function(){var e=M();return"[null]"!=L([e])||"{}"!=L({a:e})||"{}"!=L(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(g(t)||void 0!==e)&&!$(e))return b(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!$(t))return t}),r[1]=t,L.apply(A,r)}}),M[R][z]||n(472)(M[R],z,M[R].valueOf),f(M,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(e,t,n){var r=n(538)("meta"),o=n(474),a=n(459),i=n(436).f,l=0,s=Object.isExtensible||function(){return!0},c=!n(493)((function(){return s(Object.preventExtensions({}))})),u=function(e){i(e,r,{value:{i:"O"+ ++l,w:{}}})},f=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,r)){if(!s(e))return"F";if(!t)return"E";u(e)}return e[r].i},getWeak:function(e,t){if(!a(e,r)){if(!s(e))return!0;if(!t)return!1;u(e)}return e[r].w},onFreeze:function(e){return c&&f.NEED&&s(e)&&!a(e,r)&&u(e),e}}},function(e,t,n){var r=n(536),o=n(589),a=n(539);e.exports=function(e){var t=r(e),n=o.f;if(n)for(var i,l=n(e),s=a.f,c=0;l.length>c;)s.call(e,i=l[c++])&&t.push(i);return t}},function(e,t,n){var r=n(583);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(475),o=n(1284).f,a={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return i&&"[object Window]"==a.call(e)?function(e){try{return o(e)}catch(e){return i.slice()}}(e):o(r(e))}},function(e,t){},function(e,t,n){n(593)("asyncIterator")},function(e,t,n){n(593)("observable")},function(e,t,n){e.exports={default:n(1658),__esModule:!0}},function(e,t,n){n(1281),n(1659),e.exports=n(421).Array.from},function(e,t,n){"use strict";var r=n(581),o=n(458),a=n(540),i=n(1660),l=n(1661),s=n(1279),c=n(1662),u=n(1663);o(o.S+o.F*!n(1665)((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,o,f,p=a(e),d="function"==typeof this?this:Array,m=arguments.length,h=m>1?arguments[1]:void 0,y=void 0!==h,b=0,v=u(p);if(y&&(h=r(h,m>2?arguments[2]:void 0,2)),null==v||d==Array&&l(v))for(n=new d(t=s(p.length));t>b;b++)c(n,b,y?h(p[b],b):p[b]);else for(f=v.call(p),n=new d;!(o=f.next()).done;b++)c(n,b,y?i(f,h,[o.value,b],!0):o.value);return n.length=b,n}})},function(e,t,n){var r=n(473);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var a=e.return;throw void 0!==a&&r(a.call(e)),t}}},function(e,t,n){var r=n(495),o=n(422)("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[o]===e)}},function(e,t,n){"use strict";var r=n(436),o=n(494);e.exports=function(e,t,n){t in e?r.f(e,t,o(0,n)):e[t]=n}},function(e,t,n){var r=n(1664),o=n(422)("iterator"),a=n(495);e.exports=n(421).getIteratorMethod=function(e){if(null!=e)return e[o]||e["@@iterator"]||a[r(e)]}},function(e,t,n){var r=n(583),o=n(422)("toStringTag"),a="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:a?r(t):"Object"==(i=r(t))&&"function"==typeof t.callee?"Arguments":i}},function(e,t,n){var r=n(422)("iterator"),o=!1;try{var a=[7][r]();a.return=function(){o=!0},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var a=[7],i=a[r]();i.next=function(){return{done:n=!0}},a[r]=function(){return i},e(a)}catch(e){}return n}},function(e,t,n){e.exports={default:n(1667),__esModule:!0}},function(e,t,n){n(1668),e.exports=n(421).Object.setPrototypeOf},function(e,t,n){var r=n(458);r(r.S,"Object",{setPrototypeOf:n(1669).set})},function(e,t,n){var r=n(474),o=n(473),a=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(581)(Function.call,n(1285).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return a(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:a}},function(e,t,n){e.exports={default:n(1671),__esModule:!0}},function(e,t,n){n(1672);var r=n(421).Object;e.exports=function(e,t){return r.create(e,t)}},function(e,t,n){var r=n(458);r(r.S,"Object",{create:n(590)})},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o="function"==typeof Symbol&&Symbol.for,a=o?Symbol.for("react.element"):60103,i=o?Symbol.for("react.portal"):60106,l=o?Symbol.for("react.fragment"):60107,s=o?Symbol.for("react.strict_mode"):60108,c=o?Symbol.for("react.profiler"):60114,u=o?Symbol.for("react.provider"):60109,f=o?Symbol.for("react.context"):60110,p=o?Symbol.for("react.async_mode"):60111,d=o?Symbol.for("react.concurrent_mode"):60111,m=o?Symbol.for("react.forward_ref"):60112,h=o?Symbol.for("react.suspense"):60113,y=o?Symbol.for("react.suspense_list"):60120,b=o?Symbol.for("react.memo"):60115,v=o?Symbol.for("react.lazy"):60116,g=o?Symbol.for("react.block"):60121,w=o?Symbol.for("react.fundamental"):60117,E=o?Symbol.for("react.responder"):60118,_=o?Symbol.for("react.scope"):60119;function k(e){if("object"===r(e)&&null!==e){var t=e.$$typeof;switch(t){case a:switch(e=e.type){case p:case d:case l:case c:case s:case h:return e;default:switch(e=e&&e.$$typeof){case f:case m:case v:case b:case u:return e;default:return t}}case i:return t}}}function O(e){return k(e)===d}t.AsyncMode=p,t.ConcurrentMode=d,t.ContextConsumer=f,t.ContextProvider=u,t.Element=a,t.ForwardRef=m,t.Fragment=l,t.Lazy=v,t.Memo=b,t.Portal=i,t.Profiler=c,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return O(e)||k(e)===p},t.isConcurrentMode=O,t.isContextConsumer=function(e){return k(e)===f},t.isContextProvider=function(e){return k(e)===u},t.isElement=function(e){return"object"===r(e)&&null!==e&&e.$$typeof===a},t.isForwardRef=function(e){return k(e)===m},t.isFragment=function(e){return k(e)===l},t.isLazy=function(e){return k(e)===v},t.isMemo=function(e){return k(e)===b},t.isPortal=function(e){return k(e)===i},t.isProfiler=function(e){return k(e)===c},t.isStrictMode=function(e){return k(e)===s},t.isSuspense=function(e){return k(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===l||e===d||e===c||e===s||e===h||e===y||"object"===r(e)&&null!==e&&(e.$$typeof===v||e.$$typeof===b||e.$$typeof===u||e.$$typeof===f||e.$$typeof===m||e.$$typeof===w||e.$$typeof===E||e.$$typeof===_||e.$$typeof===g)},t.typeOf=k},function(e,t,n){var r={"./af":1287,"./af.js":1287,"./ar":1288,"./ar-dz":1289,"./ar-dz.js":1289,"./ar-kw":1290,"./ar-kw.js":1290,"./ar-ly":1291,"./ar-ly.js":1291,"./ar-ma":1292,"./ar-ma.js":1292,"./ar-sa":1293,"./ar-sa.js":1293,"./ar-tn":1294,"./ar-tn.js":1294,"./ar.js":1288,"./az":1295,"./az.js":1295,"./be":1296,"./be.js":1296,"./bg":1297,"./bg.js":1297,"./bm":1298,"./bm.js":1298,"./bn":1299,"./bn.js":1299,"./bo":1300,"./bo.js":1300,"./br":1301,"./br.js":1301,"./bs":1302,"./bs.js":1302,"./ca":1303,"./ca.js":1303,"./cs":1304,"./cs.js":1304,"./cv":1305,"./cv.js":1305,"./cy":1306,"./cy.js":1306,"./da":1307,"./da.js":1307,"./de":1308,"./de-at":1309,"./de-at.js":1309,"./de-ch":1310,"./de-ch.js":1310,"./de.js":1308,"./dv":1311,"./dv.js":1311,"./el":1312,"./el.js":1312,"./en-au":1313,"./en-au.js":1313,"./en-ca":1314,"./en-ca.js":1314,"./en-gb":1315,"./en-gb.js":1315,"./en-ie":1316,"./en-ie.js":1316,"./en-il":1317,"./en-il.js":1317,"./en-in":1318,"./en-in.js":1318,"./en-nz":1319,"./en-nz.js":1319,"./en-sg":1320,"./en-sg.js":1320,"./eo":1321,"./eo.js":1321,"./es":1322,"./es-do":1323,"./es-do.js":1323,"./es-us":1324,"./es-us.js":1324,"./es.js":1322,"./et":1325,"./et.js":1325,"./eu":1326,"./eu.js":1326,"./fa":1327,"./fa.js":1327,"./fi":1328,"./fi.js":1328,"./fil":1329,"./fil.js":1329,"./fo":1330,"./fo.js":1330,"./fr":1331,"./fr-ca":1332,"./fr-ca.js":1332,"./fr-ch":1333,"./fr-ch.js":1333,"./fr.js":1331,"./fy":1334,"./fy.js":1334,"./ga":1335,"./ga.js":1335,"./gd":1336,"./gd.js":1336,"./gl":1337,"./gl.js":1337,"./gom-deva":1338,"./gom-deva.js":1338,"./gom-latn":1339,"./gom-latn.js":1339,"./gu":1340,"./gu.js":1340,"./he":1341,"./he.js":1341,"./hi":1342,"./hi.js":1342,"./hr":1343,"./hr.js":1343,"./hu":1344,"./hu.js":1344,"./hy-am":1345,"./hy-am.js":1345,"./id":1346,"./id.js":1346,"./is":1347,"./is.js":1347,"./it":1348,"./it-ch":1349,"./it-ch.js":1349,"./it.js":1348,"./ja":1350,"./ja.js":1350,"./jv":1351,"./jv.js":1351,"./ka":1352,"./ka.js":1352,"./kk":1353,"./kk.js":1353,"./km":1354,"./km.js":1354,"./kn":1355,"./kn.js":1355,"./ko":1356,"./ko.js":1356,"./ku":1357,"./ku.js":1357,"./ky":1358,"./ky.js":1358,"./lb":1359,"./lb.js":1359,"./lo":1360,"./lo.js":1360,"./lt":1361,"./lt.js":1361,"./lv":1362,"./lv.js":1362,"./me":1363,"./me.js":1363,"./mi":1364,"./mi.js":1364,"./mk":1365,"./mk.js":1365,"./ml":1366,"./ml.js":1366,"./mn":1367,"./mn.js":1367,"./mr":1368,"./mr.js":1368,"./ms":1369,"./ms-my":1370,"./ms-my.js":1370,"./ms.js":1369,"./mt":1371,"./mt.js":1371,"./my":1372,"./my.js":1372,"./nb":1373,"./nb.js":1373,"./ne":1374,"./ne.js":1374,"./nl":1375,"./nl-be":1376,"./nl-be.js":1376,"./nl.js":1375,"./nn":1377,"./nn.js":1377,"./oc-lnc":1378,"./oc-lnc.js":1378,"./pa-in":1379,"./pa-in.js":1379,"./pl":1380,"./pl.js":1380,"./pt":1381,"./pt-br":1382,"./pt-br.js":1382,"./pt.js":1381,"./ro":1383,"./ro.js":1383,"./ru":1384,"./ru.js":1384,"./sd":1385,"./sd.js":1385,"./se":1386,"./se.js":1386,"./si":1387,"./si.js":1387,"./sk":1388,"./sk.js":1388,"./sl":1389,"./sl.js":1389,"./sq":1390,"./sq.js":1390,"./sr":1391,"./sr-cyrl":1392,"./sr-cyrl.js":1392,"./sr.js":1391,"./ss":1393,"./ss.js":1393,"./sv":1394,"./sv.js":1394,"./sw":1395,"./sw.js":1395,"./ta":1396,"./ta.js":1396,"./te":1397,"./te.js":1397,"./tet":1398,"./tet.js":1398,"./tg":1399,"./tg.js":1399,"./th":1400,"./th.js":1400,"./tk":1401,"./tk.js":1401,"./tl-ph":1402,"./tl-ph.js":1402,"./tlh":1403,"./tlh.js":1403,"./tr":1404,"./tr.js":1404,"./tzl":1405,"./tzl.js":1405,"./tzm":1406,"./tzm-latn":1407,"./tzm-latn.js":1407,"./tzm.js":1406,"./ug-cn":1408,"./ug-cn.js":1408,"./uk":1409,"./uk.js":1409,"./ur":1410,"./ur.js":1410,"./uz":1411,"./uz-latn":1412,"./uz-latn.js":1412,"./uz.js":1411,"./vi":1413,"./vi.js":1413,"./x-pseudo":1414,"./x-pseudo.js":1414,"./yo":1415,"./yo.js":1415,"./zh-cn":1416,"./zh-cn.js":1416,"./zh-hk":1417,"./zh-hk.js":1417,"./zh-mo":1418,"./zh-mo.js":1418,"./zh-tw":1419,"./zh-tw.js":1419};function o(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=a,e.exports=o,o.id=1674},function(e,t,n){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0});var o,a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),l=y(i),s=y(n(8)),c=y(n(476)),u=y(n(7)),f=n(462),p=y(n(1420)),d=y(n(1421)),m=y(n(1422)),h=y(n(1423));function y(e){return e&&e.__esModule?e:{default:e}}function b(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var v=s.default.bool,g=s.default.func,w=s.default.object,E=function(){},_=(o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==r(t)&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"handlePlay",value:function(){this.props.isPlayable&&this.props.onPlaybackChange(!0)}},{key:"handlePause",value:function(){this.props.onPlaybackChange(!1)}},{key:"render",value:function(){var e=this.props,t=e.isPlayable,n=e.isPlaying,r=e.showPrevious,o=e.hasPrevious,a=e.onPrevious,i=e.showNext,s=e.hasNext,c=e.onNext,f=e.className,y=e.extraClasses,b=e.childClasses,v=e.style,g=e.childrenStyles;return l.default.createElement("div",{className:(0,u.default)(f,{isPlayable:t,isPlaying:n},y),style:v},r&&l.default.createElement(m.default,{isEnabled:o,onClick:a,className:b.PrevButton,style:g.PrevButton}),n&&t?l.default.createElement(d.default,{onClick:this.handlePause,className:b.PauseButton,style:g.PauseButton}):l.default.createElement(p.default,{isEnabled:t,onClick:this.handlePlay,className:b.PlayButton,style:g.PlayButton}),i&&l.default.createElement(h.default,{isEnabled:s,onClick:c,className:b.NextButton,style:g.NextButton}))}}]),t}(i.Component),b(o.prototype,"handlePlay",[c.default],Object.getOwnPropertyDescriptor(o.prototype,"handlePlay"),o.prototype),b(o.prototype,"handlePause",[c.default],Object.getOwnPropertyDescriptor(o.prototype,"handlePause"),o.prototype),o);_.propTypes={onPlaybackChange:g.isRequired,isPlayable:v,isPlaying:v,showPrevious:v,hasPrevious:v,onPrevious:g,showNext:v,hasNext:v,onNext:g,style:w},_.defaultProps={isPlayable:!1,isPlaying:!1,showPrevious:!0,hasPrevious:!1,onPrevious:E,showNext:!0,hasNext:!1,onNext:E,style:{}},t.default=(0,f.compose)((0,f.withChildrenStyles)(),(0,f.withCustomizableClasses)("PlaybackControls"),(0,f.withChildClasses)())(_)},function(e,t,n){(function(t){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}var r="Expected a function",o="__lodash_placeholder__",a=1,i=2,l=4,s=8,c=16,u=32,f=64,p=128,d=512,m=1/0,h=9007199254740991,y=17976931348623157e292,b=NaN,v=[["ary",p],["bind",a],["bindKey",i],["curry",s],["curryRight",c],["flip",d],["partial",u],["partialRight",f],["rearg",256]],g="[object Function]",w="[object GeneratorFunction]",E="[object Symbol]",_=/^\s+|\s+$/g,k=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,O=/\{\n\/\* \[wrapped with (.+)\] \*/,x=/,? & /,S=/^[-+]0x[0-9a-f]+$/i,j=/^0b[01]+$/i,C=/^\[object .+?Constructor\]$/,D=/^0o[0-7]+$/i,N=/^(?:0|[1-9]\d*)$/,P=parseInt,T="object"==(void 0===t?"undefined":n(t))&&t&&t.Object===Object&&t,M="object"==("undefined"==typeof self?"undefined":n(self))&&self&&self.Object===Object&&self,A=T||M||Function("return this")();function L(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function R(e,t){return!!(e?e.length:0)&&function(e,t,n){if(t!=t)return function(e,t,n,r){var o=e.length,a=n+(r?1:-1);for(;r?a--:++a<o;)if(t(e[a],a,e))return a;return-1}(e,F,n);var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,0)>-1}function F(e){return e!=e}function z(e,t){for(var n=-1,r=e.length,a=0,i=[];++n<r;){var l=e[n];l!==t&&l!==o||(e[n]=o,i[a++]=n)}return i}var B,Y=Function.prototype,I=Object.prototype,H=A["__core-js_shared__"],U=(B=/[^.]+$/.exec(H&&H.keys&&H.keys.IE_PROTO||""))?"Symbol(src)_1."+B:"",W=Y.toString,V=I.hasOwnProperty,q=I.toString,G=RegExp("^"+W.call(V).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),K=Object.create,$=Math.max,J=Math.min,X=function(){var e=oe(Object,"defineProperty"),t=oe.name;return t&&t.length>2?e:void 0}();function Q(e){if(!fe(e)||(t=e,U&&U in t))return!1;var t,n=function(e){var t=fe(e)?q.call(e):"";return t==g||t==w}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?G:C;return n.test(function(e){if(null!=e){try{return W.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function Z(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n,r=fe(n=e.prototype)?K(n):{},o=e.apply(r,t);return fe(o)?o:r}}function ee(e,t,n,r,o,l,u,f,m,h){var y=t&p,b=t&a,v=t&i,g=t&(s|c),w=t&d,E=v?void 0:Z(e);return function a(){for(var i=arguments.length,s=Array(i),c=i;c--;)s[c]=arguments[c];if(g)var p=re(a),d=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&r++;return r}(s,p);if(r&&(s=function(e,t,n,r){for(var o=-1,a=e.length,i=n.length,l=-1,s=t.length,c=$(a-i,0),u=Array(s+c),f=!r;++l<s;)u[l]=t[l];for(;++o<i;)(f||o<a)&&(u[n[o]]=e[o]);for(;c--;)u[l++]=e[o++];return u}(s,r,o,g)),l&&(s=function(e,t,n,r){for(var o=-1,a=e.length,i=-1,l=n.length,s=-1,c=t.length,u=$(a-l,0),f=Array(u+c),p=!r;++o<u;)f[o]=e[o];for(var d=o;++s<c;)f[d+s]=t[s];for(;++i<l;)(p||o<a)&&(f[d+n[i]]=e[o++]);return f}(s,l,u,g)),i-=d,g&&i<h){var _=z(s,p);return te(e,t,ee,a.placeholder,n,s,_,f,m,h-i)}var k=b?n:this,O=v?k[e]:e;return i=s.length,f?s=function(e,t){var n=e.length,r=J(t.length,n),o=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e);for(;r--;){var a=t[r];e[r]=le(a,n)?o[a]:void 0}return e}(s,f):w&&i>1&&s.reverse(),y&&m<i&&(s.length=m),this&&this!==A&&this instanceof a&&(O=E||Z(O)),O.apply(k,s)}}function te(e,t,n,r,o,c,p,d,m,h){var y=t&s;t|=y?u:f,(t&=~(y?f:u))&l||(t&=~(a|i));var b=n(e,t,o,y?c:void 0,y?p:void 0,y?void 0:c,y?void 0:p,d,m,h);return b.placeholder=r,se(b,e,t)}function ne(e,t,n,o,l,p,d,m){var h=t&i;if(!h&&"function"!=typeof e)throw new TypeError(r);var y=o?o.length:0;if(y||(t&=~(u|f),o=l=void 0),d=void 0===d?d:$(me(d),0),m=void 0===m?m:me(m),y-=l?l.length:0,t&f){var b=o,v=l;o=l=void 0}var g=[e,t,n,o,l,b,v,p,d,m];if(e=g[0],t=g[1],n=g[2],o=g[3],l=g[4],!(m=g[9]=null==g[9]?h?0:e.length:$(g[9]-y,0))&&t&(s|c)&&(t&=~(s|c)),t&&t!=a)w=t==s||t==c?function(e,t,n){var r=Z(e);return function o(){for(var a=arguments.length,i=Array(a),l=a,s=re(o);l--;)i[l]=arguments[l];var c=a<3&&i[0]!==s&&i[a-1]!==s?[]:z(i,s);return(a-=c.length)<n?te(e,t,ee,o.placeholder,void 0,i,c,void 0,void 0,n-a):L(this&&this!==A&&this instanceof o?r:e,this,i)}}(e,t,m):t!=u&&t!=(a|u)||l.length?ee.apply(void 0,g):function(e,t,n,r){var o=t&a,i=Z(e);return function t(){for(var a=-1,l=arguments.length,s=-1,c=r.length,u=Array(c+l),f=this&&this!==A&&this instanceof t?i:e;++s<c;)u[s]=r[s];for(;l--;)u[s++]=arguments[++a];return L(f,o?n:this,u)}}(e,t,n,o);else var w=function(e,t,n){var r=t&a,o=Z(e);return function t(){return(this&&this!==A&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return se(w,e,t)}function re(e){return e.placeholder}function oe(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Q(n)?n:void 0}function ae(e){var t=e.match(O);return t?t[1].split(x):[]}function ie(e,t){var n=t.length,r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(k,"{\n/* [wrapped with "+t+"] */\n")}function le(e,t){return!!(t=null==t?h:t)&&("number"==typeof e||N.test(e))&&e>-1&&e%1==0&&e<t}var se=X?function(e,t,n){var r,o=t+"";return X(e,"toString",{configurable:!0,enumerable:!1,value:(r=ie(o,ce(ae(o),n)),function(){return r})})}:function(e){return e};function ce(e,t){return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););}(v,(function(n){var r="_."+n[0];t&n[1]&&!R(e,r)&&e.push(r)})),e.sort()}function ue(e,t,n){var r=ne(e,s,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return r.placeholder=ue.placeholder,r}function fe(e){var t=n(e);return!!e&&("object"==t||"function"==t)}function pe(e){return"symbol"==n(e)||function(e){return!!e&&"object"==n(e)}(e)&&q.call(e)==E}function de(e){return e?(e=function(e){if("number"==typeof e)return e;if(pe(e))return b;if(fe(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=fe(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(_,"");var n=j.test(e);return n||D.test(e)?P(e.slice(2),n?2:8):S.test(e)?b:+e}(e))===m||e===-m?(e<0?-1:1)*y:e==e?e:0:0===e?e:0}function me(e){var t=de(e),n=t%1;return t==t?n?t-n:t:0}ue.placeholder={},e.exports=ue}).call(this,n(67))},function(e,t,n){(function(t){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}var r="Expected a function",o=9007199254740991,a="[object Arguments]",i="[object Function]",l="[object GeneratorFunction]",s="object"==(void 0===t?"undefined":n(t))&&t&&t.Object===Object&&t,c="object"==("undefined"==typeof self?"undefined":n(self))&&self&&self.Object===Object&&self,u=s||c||Function("return this")();function f(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var p=Object.prototype,d=p.hasOwnProperty,m=p.toString,h=u.Symbol,y=p.propertyIsEnumerable,b=h?h.isConcatSpreadable:void 0,v=Math.max;function g(e,t,n,r,o){var a=-1,i=e.length;for(n||(n=w),o||(o=[]);++a<i;){var l=e[a];t>0&&n(l)?t>1?g(l,t-1,n,r,o):f(o,l):r||(o[o.length]=l)}return o}function w(e){return E(e)||function(e){return function(e){return function(e){return!!e&&"object"==n(e)}(e)&&function(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}(e.length)&&!function(e){var t=function(e){var t=n(e);return!!e&&("object"==t||"function"==t)}(e)?m.call(e):"";return t==i||t==l}(e)}(e)}(e)&&d.call(e,"callee")&&(!y.call(e,"callee")||m.call(e)==a)}(e)||!!(b&&e&&e[b])}var E=Array.isArray;var _,k,O,x=(_=!0,k=function(e){var t=(e=g(e,1)).length,n=t;for(_&&e.reverse();n--;)if("function"!=typeof e[n])throw new TypeError(r);return function(){for(var n=0,r=t?e[n].apply(this,arguments):arguments[0];++n<t;)r=e[n].call(this,r);return r}},O=v(void 0===O?k.length-1:O,0),function(){for(var e=arguments,t=-1,n=v(e.length-O,0),r=Array(n);++t<n;)r[t]=e[O+t];t=-1;for(var o=Array(O+1);++t<O;)o[t]=e[t];return o[O]=r,function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(k,this,o)});e.exports=x}).call(this,n(67))},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0});var o,a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),s=m(l),c=m(n(8)),u=m(n(476)),f=m(n(7)),p=n(462),d=m(n(594));function m(e){return e&&e.__esModule?e:{default:e}}function h(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var y=c.default.number,b=c.default.bool,v=c.default.func,g=c.default.object,w=(o=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==r(t)&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.progressBarEl=null,n.state={currentIntent:0},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"storeRef",value:function(e){this.progressBarEl=e}},{key:"handleSeek",value:function(e){var t=this.props,n=t.isSeekable,r=t.onSeek,o=t.totalTime;n&&r(e*o)}},{key:"handleSeekStart",value:function(e){var t=this.props,n=t.isSeekable,r=t.onSeekStart,o=t.totalTime;n&&r(e*o)}},{key:"handleSeekEnd",value:function(e){var t=this.props,n=t.isSeekable,r=t.onSeekEnd,o=t.totalTime;n&&r(e*o)}},{key:"handleIntent",value:function(e){var t=this.props,n=t.isSeekable,r=t.onIntent,o=t.totalTime,i=n?e:0;this.setState(a({},this.state,{currentIntent:i})),n&&r(e*o)}},{key:"render",value:function(){var e=this,t=this.props,n=t.totalTime,r=t.currentTime,o=t.bufferedTime,i=t.isSeekable,l=t.className,c=t.extraClasses,u=t.childClasses,p=t.style,m=t.childrenStyles,h=this.state.currentIntent,y=Math.min(100,100*r/n)+"%",b=0!==h&&h<r/n;return s.default.createElement("div",{className:(0,f.default)(l,c,{isSeekable:i,isRewindIntent:b}),style:p,ref:this.storeRef},s.default.createElement("div",{className:u.buffered||"ProgressBar-buffered",style:a({width:Math.min(100,100*o/n)+"%"},m.buffered||{})}),s.default.createElement("div",{className:u.elapsed||"ProgressBar-elapsed",style:a({width:y},m.elapsed||{})}),s.default.createElement("div",{className:u.intent||"ProgressBar-intent",style:a({width:100*h+"%"},m.intent||{})}),s.default.createElement("div",{className:u.handle||"ProgressBar-handle",style:a({left:y},m.handle||{})}),i&&s.default.createElement(d.default,{className:u.seek||"ProgressBar-seek",style:m.RangeControlOverlay,bounds:function(){return e.progressBarEl.getBoundingClientRect()},onValue:this.handleSeek,onChangeStart:this.handleSeekStart,onChangeEnd:this.handleSeekEnd,onIntent:this.handleIntent}))}}]),t}(l.Component),h(o.prototype,"storeRef",[u.default],Object.getOwnPropertyDescriptor(o.prototype,"storeRef"),o.prototype),h(o.prototype,"handleSeek",[u.default],Object.getOwnPropertyDescriptor(o.prototype,"handleSeek"),o.prototype),h(o.prototype,"handleSeekStart",[u.default],Object.getOwnPropertyDescriptor(o.prototype,"handleSeekStart"),o.prototype),h(o.prototype,"handleSeekEnd",[u.default],Object.getOwnPropertyDescriptor(o.prototype,"handleSeekEnd"),o.prototype),h(o.prototype,"handleIntent",[u.default],Object.getOwnPropertyDescriptor(o.prototype,"handleIntent"),o.prototype),o);w.propTypes={totalTime:y,currentTime:y,bufferedTime:y,isSeekable:b,onSeek:v,onSeekStart:v,onSeekEnd:v,onIntent:v,style:g},w.defaultProps={totalTime:1/0,currentTime:0,bufferedTime:0,isSeekable:!1,onSeek:function(){},onSeekStart:function(){},onSeekEnd:function(){},onIntent:function(){},style:{}},t.default=(0,p.compose)((0,p.withChildrenStyles)(),(0,p.withCustomizableClasses)("ProgressBar"),(0,p.withChildClasses)())(w)},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.TimeMarkerType=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),i=p(a),l=p(n(8)),s=p(n(7)),c=n(1681),u=n(462),f=p(n(1424));function p(e){return e&&e.__esModule?e:{default:e}}var d=l.default.number,m=l.default.oneOf,h=l.default.string,y=l.default.object,b=t.TimeMarkerType={ELAPSED:"ELAPSED",REMAINING:"REMAINING",REMAINING_NEGATIVE:"REMAINING_NEGATIVE",DURATION:"DURATION"},v=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==r(t)&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"getSecondsForTimeWithMarkerType",value:function(e){var t=this.props,n=t.currentTime,r=t.totalTime;return e===b.DURATION?r:e===b.ELAPSED?n:e===b.REMAINING?r-n:e===b.REMAINING_NEGATIVE?n-r:0}},{key:"render",value:function(){var e=this.props,t=e.firstMarkerType,n=e.secondMarkerType,r=e.markerSeparator,o=e.className,a=e.extraClasses,l=e.childClasses,c=e.style,u=e.childrenStyles,p=this.getSecondsForTimeWithMarkerType(t),d=this.getSecondsForTimeWithMarkerType(n);return i.default.createElement("div",{className:(0,s.default)(o,a),style:c},i.default.createElement(f.default,{numSeconds:p,extraClasses:(0,s.default)("TimeMarker-firstMarker",l.firstMarker),style:u.firstMarker}),r&&i.default.createElement("span",{className:(0,s.default)("TimeMarker-separator",l.separator),style:u.separator},r),i.default.createElement(f.default,{numSeconds:d,extraClasses:(0,s.default)("TimeMarker-secondMarker",l.secondMarker),style:u.secondMarker}))}}]),t}(a.Component);v.propTypes={totalTime:d,currentTime:d,firstMarkerType:m((0,c.values)(b)),secondMarkerType:m((0,c.values)(b)),markerSeparator:h,style:y},v.defaultProps={totalTime:1/0,currentTime:0,firstMarkerType:b.ELAPSED,secondMarkerType:b.DURATION,markerSeparator:null,style:{}},t.default=(0,u.compose)((0,u.withChildrenStyles)(),(0,u.withCustomizableClasses)("TimeMarker"),(0,u.withChildClasses)())(v)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.values=function(e){return Object.keys(e).map((function(t){return e[t]}))}},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0});var o,a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),l=m(i),s=m(n(8)),c=m(n(7)),u=m(n(476)),f=n(462),p=m(n(1425)),d=m(n(1426));function m(e){return e&&e.__esModule?e:{default:e}}var h,y,b,v,g,w,E=(o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==r(t)&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"handleMuteChange",value:function(e){this.props.isEnabled&&this.props.onMuteChange(e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.isMuted,r=t.isEnabled,o=t.className,a=t.extraClasses,i=t.childClasses,s=t.style,u=t.childrenStyles;return l.default.createElement("div",{className:(0,c.default)(o,a,{isMuted:n,isEnabled:r}),style:s},n?l.default.createElement(d.default,{className:i.SoundOffButton,style:u.SoundOffButton,isEnabled:r,onClick:function(){return e.handleMuteChange(!1)}}):l.default.createElement(p.default,{className:i.SoundOnButton,style:u.SoundOnButton,isEnabled:r,onClick:function(){return e.handleMuteChange(!0)}}))}}]),t}(i.Component),h=o.prototype,y="handleMuteChange",b=[u.default],v=Object.getOwnPropertyDescriptor(o.prototype,"handleMuteChange"),g=o.prototype,w={},Object.keys(v).forEach((function(e){w[e]=v[e]})),w.enumerable=!!w.enumerable,w.configurable=!!w.configurable,("value"in w||w.initializer)&&(w.writable=!0),w=b.slice().reverse().reduce((function(e,t){return t(h,y,e)||e}),w),g&&void 0!==w.initializer&&(w.value=w.initializer?w.initializer.call(g):void 0,w.initializer=void 0),void 0===w.initializer&&(Object.defineProperty(h,y,w),w=null),o);E.propTypes={onMuteChange:s.default.func.isRequired,isMuted:s.default.bool,isEnabled:s.default.bool,className:s.default.string,extraClasses:s.default.string,style:s.default.object},E.defaultProps={isMuted:!1,isEnabled:!0,className:"MuteToggleButton",extraClasses:"",style:{}},t.default=(0,f.withChildClasses)((0,f.withChildrenStyles)(E))},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0});var o,a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),s=h(l),c=h(n(8)),u=h(n(476)),f=h(n(7)),p=n(462),d=n(594),m=h(d);function h(e){return e&&e.__esModule?e:{default:e}}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var v=c.default.number,g=c.default.bool,w=c.default.func,E=c.default.string,_=c.default.object,k=c.default.oneOf,O=(o=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==r(t)&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.sliderEl=null,n.state={currentIntent:0},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"storeRef",value:function(e){this.sliderEl=e}},{key:"getBounds",value:function(){return this.sliderEl.getBoundingClientRect()}},{key:"handleVolumeChange",value:function(e){var t=this.props,n=t.isEnabled,r=t.onVolumeChange;n&&r(e)}},{key:"handleIntent",value:function(e){var t=this.props.isEnabled?e:0;this.setState({currentIntent:t})}},{key:"render",value:function(){var e=this.props,t=e.volume,n=e.isEnabled,r=e.direction,o=e.className,i=e.extraClasses,l=e.childClasses,c=e.style,u=e.childrenStyles,p=this.state.currentIntent,h=Math.min(100,Math.max(0,100*t))+"%",b=n&&0!==p?p:0,v=b&&p<t,g=r===d.ControlDirection.VERTICAL?"isVertical":"isHorizontal",w=r===d.ControlDirection.VERTICAL?"height":"width",E=r===d.ControlDirection.VERTICAL?"height":"width",_=r===d.ControlDirection.VERTICAL?"bottom":"left";return s.default.createElement("div",{className:(0,f.default)(o,i,g,{isEnabled:n,isDecreaseIntent:v}),style:c,ref:this.storeRef},s.default.createElement("div",{className:l.value||"VolumeSlider-value",style:a(y({},w,h),u.value||{})}),s.default.createElement("div",{className:l.intent||"VolumeSlider-intent",style:a(y({},E,100*b+"%"),u.intent||{})}),s.default.createElement("div",{className:l.handle||"VolumeSlider-handle",style:a(y({},_,h),u.handle||{})}),n&&s.default.createElement(m.default,{extraClasses:l.seek||"VolumeSlider-seek",style:u.RangeControlOverlay,bounds:this.getBounds,direction:r,onValue:this.handleVolumeChange,onIntent:this.handleIntent}))}}]),t}(l.Component),b(o.prototype,"storeRef",[u.default],Object.getOwnPropertyDescriptor(o.prototype,"storeRef"),o.prototype),b(o.prototype,"getBounds",[u.default],Object.getOwnPropertyDescriptor(o.prototype,"getBounds"),o.prototype),b(o.prototype,"handleVolumeChange",[u.default],Object.getOwnPropertyDescriptor(o.prototype,"handleVolumeChange"),o.prototype),b(o.prototype,"handleIntent",[u.default],Object.getOwnPropertyDescriptor(o.prototype,"handleIntent"),o.prototype),o);O.propTypes={volume:v,isEnabled:g,onVolumeChange:w,direction:k([d.ControlDirection.HORIZONTAL,d.ControlDirection.VERTICAL]),extraClasses:E,style:_},O.defaultProps={volume:0,isEnabled:!1,onVolumeChange:function(){},direction:d.ControlDirection.VERTICAL,extraClasses:"",style:{}},t.default=(0,p.compose)((0,p.withChildrenStyles)(),(0,p.withCustomizableClasses)("VolumeSlider"),(0,p.withChildClasses)())(O)},function(e,t,n){var r=n(415);e.exports=function(){return r.Date.now()}},function(e,t,n){var r=n(394),o=n(541),a=NaN,i=/^\s+|\s+$/g,l=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return a;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=s.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):l.test(e)?a:+e}},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o,a=Symbol.for("react.element"),i=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),f=Symbol.for("react.context"),p=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen");function g(e){if("object"===r(e)&&null!==e){var t=e.$$typeof;switch(t){case a:switch(e=e.type){case l:case c:case s:case m:case h:return e;default:switch(e=e&&e.$$typeof){case p:case f:case d:case b:case y:case u:return e;default:return t}}case i:return t}}}o=Symbol.for("react.module.reference"),t.ContextConsumer=f,t.ContextProvider=u,t.Element=a,t.ForwardRef=d,t.Fragment=l,t.Lazy=b,t.Memo=y,t.Portal=i,t.Profiler=c,t.StrictMode=s,t.Suspense=m,t.SuspenseList=h,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return g(e)===f},t.isContextProvider=function(e){return g(e)===u},t.isElement=function(e){return"object"===r(e)&&null!==e&&e.$$typeof===a},t.isForwardRef=function(e){return g(e)===d},t.isFragment=function(e){return g(e)===l},t.isLazy=function(e){return g(e)===b},t.isMemo=function(e){return g(e)===y},t.isPortal=function(e){return g(e)===i},t.isProfiler=function(e){return g(e)===c},t.isStrictMode=function(e){return g(e)===s},t.isSuspense=function(e){return g(e)===m},t.isSuspenseList=function(e){return g(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===l||e===c||e===s||e===m||e===h||e===v||"object"===r(e)&&null!==e&&(e.$$typeof===b||e.$$typeof===y||e.$$typeof===u||e.$$typeof===f||e.$$typeof===d||e.$$typeof===o||void 0!==e.getModuleId)},t.typeOf=g},function(e,t){var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,o=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,c=/^\s+|\s+$/g,u="\n",f="/",p="*",d="",m="comment",h="declaration";function y(e){return e?e.replace(c,d):d}e.exports=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var c=1,b=1;function v(e){var t=e.match(r);t&&(c+=t.length);var n=e.lastIndexOf(u);b=~n?e.length-n:b+e.length}function g(){var e={line:c,column:b};return function(t){return t.position=new w(e),O(),t}}function w(e){this.start=e,this.end={line:c,column:b},this.source=t.source}w.prototype.content=e;var E=[];function _(n){var r=new Error(t.source+":"+c+":"+b+": "+n);if(r.reason=n,r.filename=t.source,r.line=c,r.column=b,r.source=e,!t.silent)throw r;E.push(r)}function k(t){var n=t.exec(e);if(n){var r=n[0];return v(r),e=e.slice(r.length),n}}function O(){k(o)}function x(e){var t;for(e=e||[];t=S();)!1!==t&&e.push(t);return e}function S(){var t=g();if(f==e.charAt(0)&&p==e.charAt(1)){for(var n=2;d!=e.charAt(n)&&(p!=e.charAt(n)||f!=e.charAt(n+1));)++n;if(n+=2,d===e.charAt(n-1))return _("End of comment missing");var r=e.slice(2,n-2);return b+=2,v(r),e=e.slice(n),b+=2,t({type:m,comment:r})}}function j(){var e=g(),t=k(a);if(t){if(S(),!k(i))return _("property missing ':'");var r=k(l),o=e({type:h,property:y(t[0].replace(n,d)),value:r?y(r[0].replace(n,d)):d});return k(s),o}}return O(),function(){var e,t=[];for(x(t);e=j();)!1!==e&&(t.push(e),x(t));return t}()}},function(e,t,n){"use strict";var r=n(1689);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var l=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 l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlphaPicker=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=s(n(0)),a=s(n(70)),i=n(135),l=s(n(1767));function s(e){return e&&e.__esModule?e:{default:e}}var c=t.AlphaPicker=function(e){var t=e.rgb,n=e.hsl,l=e.width,s=e.height,c=e.onChange,u=e.direction,f=e.style,p=e.renderers,d=e.pointer,m=e.className,h=void 0===m?"":m,y=(0,a.default)({default:{picker:{position:"relative",width:l,height:s},alpha:{radius:"2px",style:f}}});return o.default.createElement("div",{style:y.picker,className:"alpha-picker "+h},o.default.createElement(i.Alpha,r({},y.alpha,{rgb:t,hsl:n,pointer:d,renderers:p,onChange:c,direction:u})))};c.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:l.default},t.default=(0,i.ColorWrap)(c)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flattenNames=void 0;var r=l(n(1692)),o=l(n(595)),a=l(n(426)),i=l(n(438));function l(e){return e&&e.__esModule?e:{default:e}}var s=t.flattenNames=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[];return(0,i.default)(t,(function(t){Array.isArray(t)?e(t).map((function(e){return n.push(e)})):(0,a.default)(t)?(0,o.default)(t,(function(e,t){!0===e&&n.push(t),n.push(t+"-"+e)})):(0,r.default)(t)&&n.push(t)})),n};t.default=s},function(e,t,n){var r=n(456),o=n(183),a=n(420),i="[object String]";e.exports=function(e){return"string"==typeof e||!o(e)&&a(e)&&r(e)==i}},function(e,t){e.exports=function(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),l=i.length;l--;){var s=i[e?l:++o];if(!1===n(a[s],s,a))break}return t}}},function(e,t,n){var r=n(579),o=n(1695),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(1253)(Object.keys,Object);e.exports=r},function(e,t,n){function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=n(1697),a=n(1713),i=n(531),l=n(183),s=n(1722);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==r(e)?l(e)?a(e[0],e[1]):o(e):s(e)}},function(e,t,n){var r=n(1698),o=n(1712),a=n(1437);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(542),o=n(1430),a=1,i=2;e.exports=function(e,t,n,l){var s=n.length,c=s,u=!l;if(null==e)return!c;for(e=Object(e);s--;){var f=n[s];if(u&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++s<c;){var p=(f=n[s])[0],d=e[p],m=f[1];if(u&&f[2]){if(void 0===d&&!(p in e))return!1}else{var h=new r;if(l)var y=l(d,m,p,e,t,h);if(!(void 0===y?o(m,d,a|i,l,h):y))return!1}}return!0}},function(e,t,n){var r=n(527);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(527),o=n(567),a=n(565),i=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var l=n.__data__;if(!o||l.length<i-1)return l.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(l)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(542),o=n(1431),a=n(1706),i=n(1708),l=n(543),s=n(183),c=n(535),u=n(577),f=1,p="[object Arguments]",d="[object Array]",m="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,y,b,v){var g=s(e),w=s(t),E=g?d:l(e),_=w?d:l(t),k=(E=E==p?m:E)==m,O=(_=_==p?m:_)==m,x=E==_;if(x&&c(e)){if(!c(t))return!1;g=!0,k=!1}if(x&&!k)return v||(v=new r),g||u(e)?o(e,t,n,y,b,v):a(e,t,E,n,y,b,v);if(!(n&f)){var S=k&&h.call(e,"__wrapped__"),j=O&&h.call(t,"__wrapped__");if(S||j){var C=S?e.value():e,D=j?t.value():t;return v||(v=new r),b(C,D,n,y,v)}}return!!x&&(v||(v=new r),i(e,t,n,y,b,v))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t,n){var r=n(468),o=n(1432),a=n(469),i=n(1431),l=n(1707),s=n(572),c=1,u=2,f="[object Boolean]",p="[object Date]",d="[object Error]",m="[object Map]",h="[object Number]",y="[object RegExp]",b="[object Set]",v="[object String]",g="[object Symbol]",w="[object ArrayBuffer]",E="[object DataView]",_=r?r.prototype:void 0,k=_?_.valueOf:void 0;e.exports=function(e,t,n,r,_,O,x){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case w:return!(e.byteLength!=t.byteLength||!O(new o(e),new o(t)));case f:case p:case h:return a(+e,+t);case d:return e.name==t.name&&e.message==t.message;case y:case v:return e==t+"";case m:var S=l;case b:var j=r&c;if(S||(S=s),e.size!=t.size&&!j)return!1;var C=x.get(e);if(C)return C==t;r|=u,x.set(e,t);var D=i(S(e),S(t),r,_,O,x);return x.delete(e),D;case g:if(k)return k.call(e)==k.call(t)}return!1}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},function(e,t,n){var r=n(1433),o=1,a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,l,s){var c=n&o,u=r(e),f=u.length;if(f!=r(t).length&&!c)return!1;for(var p=f;p--;){var d=u[p];if(!(c?d in t:a.call(t,d)))return!1}var m=s.get(e);if(m&&s.get(t))return m==t;var h=!0;s.set(e,t),s.set(t,e);for(var y=c;++p<f;){var b=e[d=u[p]],v=t[d];if(i)var g=c?i(v,b,d,t,e,s):i(b,v,d,e,t,s);if(!(void 0===g?b===v||l(b,v,n,i,s):g)){h=!1;break}y||(y="constructor"==d)}if(h&&!y){var w=e.constructor,E=t.constructor;w==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof E&&E instanceof E||(h=!1)}return s.delete(e),s.delete(t),h}},function(e,t,n){var r=n(457)(n(415),"DataView");e.exports=r},function(e,t,n){var r=n(457)(n(415),"Promise");e.exports=r},function(e,t,n){var r=n(457)(n(415),"WeakMap");e.exports=r},function(e,t,n){var r=n(1436),o=n(496);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var a=t[n],i=e[a];t[n]=[a,i,r(i)]}return t}},function(e,t,n){var r=n(1430),o=n(1714),a=n(1719),i=n(597),l=n(1436),s=n(1437),c=n(544),u=1,f=2;e.exports=function(e,t){return i(e)&&l(t)?s(c(e),t):function(n){var i=o(n,e);return void 0===i&&i===t?a(n,e):r(t,i,u|f)}}},function(e,t,n){var r=n(1438);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},function(e,t,n){var r=n(1716),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,i=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(a,"$1"):n||e)})),t}));e.exports=i},function(e,t,n){var r=n(1274),o=500;e.exports=function(e){var t=r(e,(function(e){return n.size===o&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){var r=n(1718);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(468),o=n(489),a=n(183),i=n(541),l=1/0,s=r?r.prototype:void 0,c=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return o(t,e)+"";if(i(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-l?"-0":n}},function(e,t,n){var r=n(1720),o=n(1721);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(1439),o=n(533),a=n(183),i=n(576),l=n(570),s=n(544);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,f=!1;++c<u;){var p=s(t[c]);if(!(f=null!=e&&n(e,p)))break;e=e[p]}return f||++c!=u?f:!!(u=null==e?0:e.length)&&l(u)&&i(p,u)&&(a(e)||o(e))}},function(e,t,n){var r=n(1723),o=n(1724),a=n(597),i=n(544);e.exports=function(e){return a(e)?r(i(e)):o(e)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(1438);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){var r=n(1440),o=n(471);e.exports=function(e,t){var n=-1,a=o(e)?Array(e.length):[];return r(e,(function(e,r,o){a[++n]=t(e,r,o)})),a}},function(e,t,n){var r=n(471);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var a=n.length,i=t?a:-1,l=Object(n);(t?i--:++i<a)&&!1!==o(l[i],i,l););return n}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeClasses=void 0;var r=i(n(595)),o=i(n(1728)),a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function i(e){return e&&e.__esModule?e:{default:e}}var l=t.mergeClasses=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.default&&(0,o.default)(e.default)||{};return t.map((function(t){var o=e[t];return o&&(0,r.default)(o,(function(e,t){n[t]||(n[t]={}),n[t]=a({},n[t],o[t])})),t})),n};t.default=l},function(e,t,n){var r=n(1729),o=1,a=4;e.exports=function(e){return r(e,o|a)}},function(e,t,n){var r=n(542),o=n(1441),a=n(1442),i=n(1730),l=n(1731),s=n(1443),c=n(1444),u=n(1732),f=n(1733),p=n(1433),d=n(1734),m=n(543),h=n(1735),y=n(1736),b=n(1447),v=n(183),g=n(535),w=n(1741),E=n(394),_=n(1743),k=n(496),O=1,x=2,S=4,j="[object Arguments]",C="[object Function]",D="[object GeneratorFunction]",N="[object Object]",P={};P[j]=P["[object Array]"]=P["[object ArrayBuffer]"]=P["[object DataView]"]=P["[object Boolean]"]=P["[object Date]"]=P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Map]"]=P["[object Number]"]=P[N]=P["[object RegExp]"]=P["[object Set]"]=P["[object String]"]=P["[object Symbol]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P["[object Error]"]=P[C]=P["[object WeakMap]"]=!1,e.exports=function e(t,n,T,M,A,L){var R,F=n&O,z=n&x,B=n&S;if(T&&(R=A?T(t,M,A,L):T(t)),void 0!==R)return R;if(!E(t))return t;var Y=v(t);if(Y){if(R=h(t),!F)return c(t,R)}else{var I=m(t),H=I==C||I==D;if(g(t))return s(t,F);if(I==N||I==j||H&&!A){if(R=z||H?{}:b(t),!F)return z?f(t,l(R,t)):u(t,i(R,t))}else{if(!P[I])return A?t:{};R=y(t,I,F)}}L||(L=new r);var U=L.get(t);if(U)return U;L.set(t,R),_(t)?t.forEach((function(r){R.add(e(r,n,T,r,t,L))})):w(t)&&t.forEach((function(r,o){R.set(o,e(r,n,T,o,t,L))}));var W=B?z?d:p:z?keysIn:k,V=Y?void 0:W(t);return o(V||t,(function(r,o){V&&(r=t[o=r]),a(R,o,e(r,n,T,o,t,L))})),R}},function(e,t,n){var r=n(497),o=n(496);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t,n){var r=n(497),o=n(492);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t,n){var r=n(497),o=n(596);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t,n){var r=n(497),o=n(1445);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t,n){var r=n(1434),o=n(1445),a=n(492);e.exports=function(e){return r(e,a,o)}},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},function(e,t,n){var r=n(599),o=n(1737),a=n(1738),i=n(1739),l=n(1446),s="[object Boolean]",c="[object Date]",u="[object Map]",f="[object Number]",p="[object RegExp]",d="[object Set]",m="[object String]",h="[object Symbol]",y="[object ArrayBuffer]",b="[object DataView]",v="[object Float32Array]",g="[object Float64Array]",w="[object Int8Array]",E="[object Int16Array]",_="[object Int32Array]",k="[object Uint8Array]",O="[object Uint8ClampedArray]",x="[object Uint16Array]",S="[object Uint32Array]";e.exports=function(e,t,n){var j=e.constructor;switch(t){case y:return r(e);case s:case c:return new j(+e);case b:return o(e,n);case v:case g:case w:case E:case _:case k:case O:case x:case S:return l(e,n);case u:return new j;case f:case m:return new j(e);case p:return a(e);case d:return new j;case h:return i(e)}}},function(e,t,n){var r=n(599);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},function(e,t){var n=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}},function(e,t,n){var r=n(468),o=r?r.prototype:void 0,a=o?o.valueOf:void 0;e.exports=function(e){return a?Object(a.call(e)):{}}},function(e,t,n){var r=n(394),o=Object.create,a=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=a},function(e,t,n){var r=n(1742),o=n(490),a=n(578),i=a&&a.isMap,l=i?o(i):r;e.exports=l},function(e,t,n){var r=n(543),o=n(420),a="[object Map]";e.exports=function(e){return o(e)&&r(e)==a}},function(e,t,n){var r=n(1744),o=n(490),a=n(578),i=a&&a.isSet,l=i?o(i):r;e.exports=l},function(e,t,n){var r=n(543),o=n(420),a="[object Set]";e.exports=function(e){return o(e)&&r(e)==a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.autoprefix=void 0;var r,o=n(595),a=(r=o)&&r.__esModule?r:{default:r},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var l={borderRadius:function(e){return{msBorderRadius:e,MozBorderRadius:e,OBorderRadius:e,WebkitBorderRadius:e,borderRadius:e}},boxShadow:function(e){return{msBoxShadow:e,MozBoxShadow:e,OBoxShadow:e,WebkitBoxShadow:e,boxShadow:e}},userSelect:function(e){return{WebkitTouchCallout:e,KhtmlUserSelect:e,MozUserSelect:e,msUserSelect:e,WebkitUserSelect:e,userSelect:e}},flex:function(e){return{WebkitBoxFlex:e,MozBoxFlex:e,WebkitFlex:e,msFlex:e,flex:e}},flexBasis:function(e){return{WebkitFlexBasis:e,flexBasis:e}},justifyContent:function(e){return{WebkitJustifyContent:e,justifyContent:e}},transition:function(e){return{msTransition:e,MozTransition:e,OTransition:e,WebkitTransition:e,transition:e}},transform:function(e){return{msTransform:e,MozTransform:e,OTransform:e,WebkitTransform:e,transform:e}},absolute:function(e){var t=e&&e.split(" ");return{position:"absolute",top:t&&t[0],right:t&&t[1],bottom:t&&t[2],left:t&&t[3]}},extend:function(e,t){var n=t[e];return n||{extend:e}}},s=t.autoprefix=function(e){var t={};return(0,a.default)(e,(function(e,n){var r={};(0,a.default)(e,(function(e,t){var n=l[t];n?r=i({},r,n(e)):r[t]=e})),t[n]=r})),t};t.default=s},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.hover=void 0;var o,a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(0),l=(o=i)&&o.__esModule?o:{default:o};function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==r(t)&&"function"!=typeof t?e:t}var c=t.hover=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function o(){var n,r,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);for(var c=arguments.length,u=Array(c),f=0;f<c;f++)u[f]=arguments[f];return r=i=s(this,(n=o.__proto__||Object.getPrototypeOf(o)).call.apply(n,[this].concat(u))),i.state={hover:!1},i.handleMouseOver=function(){return i.setState({hover:!0})},i.handleMouseOut=function(){return i.setState({hover:!1})},i.render=function(){return l.default.createElement(t,{onMouseOver:i.handleMouseOver,onMouseOut:i.handleMouseOut},l.default.createElement(e,a({},i.props,i.state)))},s(i,r)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,n),o}(l.default.Component)};t.default=c},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.active=void 0;var o,a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(0),l=(o=i)&&o.__esModule?o:{default:o};function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==r(t)&&"function"!=typeof t?e:t}var c=t.active=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function o(){var n,r,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);for(var c=arguments.length,u=Array(c),f=0;f<c;f++)u[f]=arguments[f];return r=i=s(this,(n=o.__proto__||Object.getPrototypeOf(o)).call.apply(n,[this].concat(u))),i.state={active:!1},i.handleMouseDown=function(){return i.setState({active:!0})},i.handleMouseUp=function(){return i.setState({active:!1})},i.render=function(){return l.default.createElement(t,{onMouseDown:i.handleMouseDown,onMouseUp:i.handleMouseUp},l.default.createElement(e,a({},i.props,i.state)))},s(i,r)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,n),o}(l.default.Component)};t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e,t){var n={},r=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n[e]=t};return 0===e&&r("first-child"),e===t-1&&r("last-child"),(0===e||e%2==0)&&r("even"),1===Math.abs(e%2)&&r("odd"),r("nth-child",e),n}},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.Alpha=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),l=f(i),s=f(n(70)),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1750)),u=f(n(600));function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==r(t)&&"function"!=typeof t?e:t}var d=t.Alpha=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.handleChange=function(e){var t=c.calculateChange(e,r.props.hsl,r.props.direction,r.props.a,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleChange),window.removeEventListener("mouseup",r.handleMouseUp)},p(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=this.props.rgb,n=(0,s.default)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n           rgba("+t.r+","+t.g+","+t.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*t.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n           rgba("+t.r+","+t.g+","+t.b+", 1) 100%)"},pointer:{left:0,top:100*t.a+"%"}},overwrite:o({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return l.default.createElement("div",{style:n.alpha},l.default.createElement("div",{style:n.checkboard},l.default.createElement(u.default,{renderers:this.props.renderers})),l.default.createElement("div",{style:n.gradient}),l.default.createElement("div",{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},l.default.createElement("div",{style:n.pointer},this.props.pointer?l.default.createElement(this.props.pointer,this.props):l.default.createElement("div",{style:n.slider}))))}}]),t}(i.PureComponent||i.Component);t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.calculateChange=function(e,t,n,r,o){var a=o.clientWidth,i=o.clientHeight,l="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,c=l-(o.getBoundingClientRect().left+window.pageXOffset),u=s-(o.getBoundingClientRect().top+window.pageYOffset);if("vertical"===n){var f=void 0;if(f=u<0?0:u>i?1:Math.round(100*u/i)/100,t.a!==f)return{h:t.h,s:t.s,l:t.l,a:f,source:"rgb"}}else{var p=void 0;if(r!==(p=c<0?0:c>a?1:Math.round(100*c/a)/100))return{h:t.h,s:t.s,l:t.l,a:p,source:"rgb"}}return null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={},o=t.render=function(e,t,n,r){if("undefined"==typeof document&&!r)return null;var o=r?new r:document.createElement("canvas");o.width=2*n,o.height=2*n;var a=o.getContext("2d");return a?(a.fillStyle=e,a.fillRect(0,0,o.width,o.height),a.fillStyle=t,a.fillRect(0,0,n,n),a.translate(n,n),a.fillRect(0,0,n,n),o.toDataURL()):null};t.get=function(e,t,n,a){var i=e+"-"+t+"-"+n+(a?"-server":"");if(r[i])return r[i];var l=o(e,t,n,a);return r[i]=l,l}},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.EditableInput=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),i=s(a),l=s(n(70));function s(e){return e&&e.__esModule?e:{default:e}}var c=38,u=[c,40],f=function(e){return u.indexOf(e)>-1},p=function(e){return Number(String(e).replace(/%/g,""))},d=t.EditableInput=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==r(t)&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(e){n.setUpdatedValue(e.target.value,e)},n.handleKeyDown=function(e){var t=p(e.target.value);if(!isNaN(t)&&f(e.keyCode)){var r=n.getArrowOffset(),o=e.keyCode===c?t+r:t-r;n.setUpdatedValue(o,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidUpdate",value:function(e,t){this.props.value===this.state.value||e.value===this.props.value&&t.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.props.label,e)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:"render",value:function(){var e=this,t=(0,l.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return i.default.createElement("div",{style:t.wrap},i.default.createElement("input",{style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?i.default.createElement("span",{style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(a.PureComponent||a.Component);t.default=d},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.Hue=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),i=c(a),l=c(n(70)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1754));function c(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==r(t)&&"function"!=typeof t?e:t}var f=t.Hue=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=u(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.handleChange=function(e){var t=s.calculateChange(e,r.props.direction,r.props.hsl,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},u(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.direction,n=void 0===t?"horizontal":t,r=(0,l.default)({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:"vertical"===n});return i.default.createElement("div",{style:r.hue},i.default.createElement("div",{className:"hue-"+n,style:r.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},i.default.createElement("style",null,"\n            .hue-horizontal {\n              background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n                33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n              background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n                17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n            }\n\n            .hue-vertical {\n              background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n                #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n              background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n                #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n            }\n          "),i.default.createElement("div",{style:r.pointer},this.props.pointer?i.default.createElement(this.props.pointer,this.props):i.default.createElement("div",{style:r.slider}))))}}]),t}(a.PureComponent||a.Component);t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.calculateChange=function(e,t,n,r){var o=r.clientWidth,a=r.clientHeight,i="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,s=i-(r.getBoundingClientRect().left+window.pageXOffset),c=l-(r.getBoundingClientRect().top+window.pageYOffset);if("vertical"===t){var u=void 0;if(c<0)u=359;else if(c>a)u=0;else{u=360*(-100*c/a+100)/100}if(n.h!==u)return{h:u,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var f=void 0;if(s<0)f=0;else if(s>o)f=359;else{f=360*(100*s/o)/100}if(n.h!==f)return{h:f,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Raised=void 0;var r=l(n(0)),o=l(n(8)),a=l(n(70)),i=l(n(395));function l(e){return e&&e.__esModule?e:{default:e}}var s=t.Raised=function(e){var t=e.zDepth,n=e.radius,o=e.background,l=e.children,s=e.styles,c=void 0===s?{}:s,u=(0,a.default)((0,i.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+t+"px "+4*t+"px rgba(0,0,0,.24)",borderRadius:n,background:o}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},c),{"zDepth-1":1===t});return r.default.createElement("div",{style:u.wrap},r.default.createElement("div",{style:u.bg}),r.default.createElement("div",{style:u.content},l))};s.propTypes={background:o.default.string,zDepth:o.default.oneOf([0,1,2,3,4,5]),radius:o.default.number,styles:o.default.object},s.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}},t.default=s},function(e,t,n){var r=n(542),o=n(1448),a=n(1428),i=n(1757),l=n(394),s=n(492),c=n(1449);e.exports=function e(t,n,u,f,p){t!==n&&a(n,(function(a,s){if(p||(p=new r),l(a))i(t,n,s,u,e,f,p);else{var d=f?f(c(t,s),a,s+"",t,n,p):void 0;void 0===d&&(d=a),o(t,s,d)}}),s)}},function(e,t,n){var r=n(1448),o=n(1443),a=n(1446),i=n(1444),l=n(1447),s=n(533),c=n(183),u=n(491),f=n(535),p=n(566),d=n(394),m=n(426),h=n(577),y=n(1449),b=n(1758);e.exports=function(e,t,n,v,g,w,E){var _=y(e,n),k=y(t,n),O=E.get(k);if(O)r(e,n,O);else{var x=w?w(_,k,n+"",e,t,E):void 0,S=void 0===x;if(S){var j=c(k),C=!j&&f(k),D=!j&&!C&&h(k);x=k,j||C||D?c(_)?x=_:u(_)?x=i(_):C?(S=!1,x=o(k,!0)):D?(S=!1,x=a(k,!0)):x=[]:m(k)||s(k)?(x=_,s(_)?x=b(_):d(_)&&!p(_)||(x=l(k))):S=!1}S&&(E.set(k,x),g(x,k,v,w,E),E.delete(k)),r(e,n,x)}}},function(e,t,n){var r=n(497),o=n(492);e.exports=function(e){return r(e,o(e))}},function(e,t,n){var r=n(470),o=n(1271);e.exports=function(e){return r((function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,l=a>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(a--,i):void 0,l&&o(n[0],n[1],l)&&(i=a<3?void 0:i,a=1),t=Object(t);++r<a;){var s=n[r];s&&e(t,s,r,i)}return t}))}},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.Saturation=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),i=u(a),l=u(n(70)),s=u(n(603)),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1761));function u(e){return e&&e.__esModule?e:{default:e}}var f=t.Saturation=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==r(t)&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleChange=function(e){"function"==typeof n.props.onChange&&n.throttle(n.props.onChange,c.calculateChange(e,n.props.hsl,n.container),e)},n.handleMouseDown=function(e){n.handleChange(e),window.addEventListener("mousemove",n.handleChange),window.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=(0,s.default)((function(e,t,n){e(t,n)}),50),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},n=t.color,r=t.white,o=t.black,a=t.pointer,s=t.circle,c=(0,l.default)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n            0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:r,black:o,pointer:a,circle:s}},{custom:!!this.props.style});return i.default.createElement("div",{style:c.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},i.default.createElement("style",null,"\n          .saturation-white {\n            background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n            background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n          }\n          .saturation-black {\n            background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n            background: linear-gradient(to top, #000, rgba(0,0,0,0));\n          }\n        "),i.default.createElement("div",{style:c.white,className:"saturation-white"},i.default.createElement("div",{style:c.black,className:"saturation-black"}),i.default.createElement("div",{style:c.pointer},this.props.pointer?i.default.createElement(this.props.pointer,this.props):i.default.createElement("div",{style:c.circle}))))}}]),t}(a.PureComponent||a.Component);t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.calculateChange=function(e,t,n){var r=n.getBoundingClientRect(),o=r.width,a=r.height,i="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,s=i-(n.getBoundingClientRect().left+window.pageXOffset),c=l-(n.getBoundingClientRect().top+window.pageYOffset);s<0?s=0:s>o&&(s=o),c<0?c=0:c>a&&(c=a);var u=s/o,f=1-c/a;return{h:t.h,s:u,v:f,a:t.a,source:"hsv"}}},function(e,t,n){e.exports=n(1763)},function(e,t,n){var r=n(1441),o=n(1440),a=n(1429),i=n(183);e.exports=function(e,t){return(i(e)?r:o)(e,a(t))}},function(e,t,n){var r;function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}!function(a){var i=/^\s+/,l=/\s+$/,s=0,c=a.round,u=a.min,f=a.max,p=a.random;function d(e,t){if(t=t||{},(e=e||"")instanceof d)return e;if(!(this instanceof d))return new d(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,s=null,c=null,p=!1,d=!1;"string"==typeof e&&(e=function(e){e=e.replace(i,"").replace(l,"").toLowerCase();var t,n=!1;if(P[e])e=P[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=W.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=W.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=W.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=W.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=W.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=W.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=W.hex8.exec(e))return{r:R(t[1]),g:R(t[2]),b:R(t[3]),a:Y(t[4]),format:n?"name":"hex8"};if(t=W.hex6.exec(e))return{r:R(t[1]),g:R(t[2]),b:R(t[3]),format:n?"name":"hex"};if(t=W.hex4.exec(e))return{r:R(t[1]+""+t[1]),g:R(t[2]+""+t[2]),b:R(t[3]+""+t[3]),a:Y(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=W.hex3.exec(e))return{r:R(t[1]+""+t[1]),g:R(t[2]+""+t[2]),b:R(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==o(e)&&(V(e.r)&&V(e.g)&&V(e.b)?(m=e.r,h=e.g,y=e.b,t={r:255*A(m,255),g:255*A(h,255),b:255*A(y,255)},p=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):V(e.h)&&V(e.s)&&V(e.v)?(r=z(e.s),s=z(e.v),t=function(e,t,n){e=6*A(e,360),t=A(t,100),n=A(n,100);var r=a.floor(e),o=e-r,i=n*(1-t),l=n*(1-o*t),s=n*(1-(1-o)*t),c=r%6,u=[n,l,i,i,s,n][c],f=[s,n,n,l,i,i][c],p=[i,i,s,n,n,l][c];return{r:255*u,g:255*f,b:255*p}}(e.h,r,s),p=!0,d="hsv"):V(e.h)&&V(e.s)&&V(e.l)&&(r=z(e.s),c=z(e.l),t=function(e,t,n){var r,o,a;function i(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=A(e,360),t=A(t,100),n=A(n,100),0===t)r=o=a=n;else{var l=n<.5?n*(1+t):n+t-n*t,s=2*n-l;r=i(s,l,e+1/3),o=i(s,l,e),a=i(s,l,e-1/3)}return{r:255*r,g:255*o,b:255*a}}(e.h,r,c),p=!0,d="hsl"),e.hasOwnProperty("a")&&(n=e.a));var m,h,y;return n=M(n),{ok:p,format:e.format||d,r:u(255,f(t.r,0)),g:u(255,f(t.g,0)),b:u(255,f(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=c(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=c(this._r)),this._g<1&&(this._g=c(this._g)),this._b<1&&(this._b=c(this._b)),this._ok=n.ok,this._tc_id=s++}function m(e,t,n){e=A(e,255),t=A(t,255),n=A(n,255);var r,o,a=f(e,t,n),i=u(e,t,n),l=(a+i)/2;if(a==i)r=o=0;else{var s=a-i;switch(o=l>.5?s/(2-a-i):s/(a+i),a){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:o,l:l}}function h(e,t,n){e=A(e,255),t=A(t,255),n=A(n,255);var r,o,a=f(e,t,n),i=u(e,t,n),l=a,s=a-i;if(o=0===a?0:s/a,a==i)r=0;else{switch(a){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:o,v:l}}function y(e,t,n,r){var o=[F(c(e).toString(16)),F(c(t).toString(16)),F(c(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function b(e,t,n,r){return[F(B(r)),F(c(e).toString(16)),F(c(t).toString(16)),F(c(n).toString(16))].join("")}function v(e,t){t=0===t?0:t||10;var n=d(e).toHsl();return n.s-=t/100,n.s=L(n.s),d(n)}function g(e,t){t=0===t?0:t||10;var n=d(e).toHsl();return n.s+=t/100,n.s=L(n.s),d(n)}function w(e){return d(e).desaturate(100)}function E(e,t){t=0===t?0:t||10;var n=d(e).toHsl();return n.l+=t/100,n.l=L(n.l),d(n)}function _(e,t){t=0===t?0:t||10;var n=d(e).toRgb();return n.r=f(0,u(255,n.r-c(-t/100*255))),n.g=f(0,u(255,n.g-c(-t/100*255))),n.b=f(0,u(255,n.b-c(-t/100*255))),d(n)}function k(e,t){t=0===t?0:t||10;var n=d(e).toHsl();return n.l-=t/100,n.l=L(n.l),d(n)}function O(e,t){var n=d(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,d(n)}function x(e){var t=d(e).toHsl();return t.h=(t.h+180)%360,d(t)}function S(e){var t=d(e).toHsl(),n=t.h;return[d(e),d({h:(n+120)%360,s:t.s,l:t.l}),d({h:(n+240)%360,s:t.s,l:t.l})]}function j(e){var t=d(e).toHsl(),n=t.h;return[d(e),d({h:(n+90)%360,s:t.s,l:t.l}),d({h:(n+180)%360,s:t.s,l:t.l}),d({h:(n+270)%360,s:t.s,l:t.l})]}function C(e){var t=d(e).toHsl(),n=t.h;return[d(e),d({h:(n+72)%360,s:t.s,l:t.l}),d({h:(n+216)%360,s:t.s,l:t.l})]}function D(e,t,n){t=t||6,n=n||30;var r=d(e).toHsl(),o=360/n,a=[d(e)];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(d(r));return a}function N(e,t){t=t||6;for(var n=d(e).toHsv(),r=n.h,o=n.s,a=n.v,i=[],l=1/t;t--;)i.push(d({h:r,s:o,v:a})),a=(a+l)%1;return i}d.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:a.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:a.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:a.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=M(e),this._roundA=c(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=c(360*e.h),n=c(100*e.s),r=c(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=m(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=m(this._r,this._g,this._b),t=c(360*e.h),n=c(100*e.s),r=c(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return y(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var a=[F(c(e).toString(16)),F(c(t).toString(16)),F(c(n).toString(16)),F(B(r))];if(o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:c(this._r),g:c(this._g),b:c(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+c(this._r)+", "+c(this._g)+", "+c(this._b)+")":"rgba("+c(this._r)+", "+c(this._g)+", "+c(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:c(100*A(this._r,255))+"%",g:c(100*A(this._g,255))+"%",b:c(100*A(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*A(this._r,255))+"%, "+c(100*A(this._g,255))+"%, "+c(100*A(this._b,255))+"%)":"rgba("+c(100*A(this._r,255))+"%, "+c(100*A(this._g,255))+"%, "+c(100*A(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(T[y(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+b(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=d(e);n="#"+b(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return d(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(E,arguments)},brighten:function(){return this._applyModification(_,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(v,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(w,arguments)},spin:function(){return this._applyModification(O,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(D,arguments)},complement:function(){return this._applyCombination(x,arguments)},monochromatic:function(){return this._applyCombination(N,arguments)},splitcomplement:function(){return this._applyCombination(C,arguments)},triad:function(){return this._applyCombination(S,arguments)},tetrad:function(){return this._applyCombination(j,arguments)}},d.fromRatio=function(e,t){if("object"==o(e)){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:z(e[r]));e=n}return d(e,t)},d.equals=function(e,t){return!(!e||!t)&&d(e).toRgbString()==d(t).toRgbString()},d.random=function(){return d.fromRatio({r:p(),g:p(),b:p()})},d.mix=function(e,t,n){n=0===n?0:n||50;var r=d(e).toRgb(),o=d(t).toRgb(),a=n/100;return d({r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a})},d.readability=function(e,t){var n=d(e),r=d(t);return(a.max(n.getLuminance(),r.getLuminance())+.05)/(a.min(n.getLuminance(),r.getLuminance())+.05)},d.isReadable=function(e,t,n){var r,o,a=d.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=a>=4.5;break;case"AAlarge":o=a>=3;break;case"AAAsmall":o=a>=7}return o},d.mostReadable=function(e,t,n){var r,o,a,i,l=null,s=0;o=(n=n||{}).includeFallbackColors,a=n.level,i=n.size;for(var c=0;c<t.length;c++)(r=d.readability(e,t[c]))>s&&(s=r,l=d(t[c]));return d.isReadable(e,l,{level:a,size:i})||!o?l:(n.includeFallbackColors=!1,d.mostReadable(e,["#fff","#000"],n))};var P=d.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},T=d.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(P);function M(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function A(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=u(t,f(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),a.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function L(e){return u(1,f(0,e))}function R(e){return parseInt(e,16)}function F(e){return 1==e.length?"0"+e:""+e}function z(e){return e<=1&&(e=100*e+"%"),e}function B(e){return a.round(255*parseFloat(e)).toString(16)}function Y(e){return R(e)/255}var I,H,U,W=(H="[\\s|\\(]+("+(I="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+I+")[,|\\s]+("+I+")\\s*\\)?",U="[\\s|\\(]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")\\s*\\)?",{CSS_UNIT:new RegExp(I),rgb:new RegExp("rgb"+H),rgba:new RegExp("rgba"+U),hsl:new RegExp("hsl"+H),hsla:new RegExp("hsla"+U),hsv:new RegExp("hsv"+H),hsva:new RegExp("hsva"+U),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function V(e){return!!W.CSS_UNIT.exec(e)}e.exports?e.exports=d:void 0===(r=function(){return d}.call(t,n,t,e))||(e.exports=r)}(Math)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Swatch=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=s(n(0)),a=s(n(70)),i=n(1766),l=s(n(600));function s(e){return e&&e.__esModule?e:{default:e}}var c=t.Swatch=function(e){var t=e.color,n=e.style,i=e.onClick,s=void 0===i?function(){}:i,c=e.onHover,u=e.title,f=void 0===u?t:u,p=e.children,d=e.focus,m=e.focusStyle,h=void 0===m?{}:m,y="transparent"===t,b=(0,a.default)({default:{swatch:r({background:t,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,d?h:{})}}),v={};return c&&(v.onMouseOver=function(e){return c(t,e)}),o.default.createElement("div",r({style:b.swatch,onClick:function(e){return s(t,e)},title:f,tabIndex:0,onKeyDown:function(e){return 13===e.keyCode&&s(t,e)}},v),p,y&&o.default.createElement(l.default,{borderRadius:b.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};t.default=(0,i.handleFocus)(c)},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.handleFocus=void 0;var o,a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),s=(o=l)&&o.__esModule?o:{default:o};function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==r(t)&&"function"!=typeof t?e:t}t.handleFocus=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function o(){var e,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return t=n=c(this,(e=o.__proto__||Object.getPrototypeOf(o)).call.apply(e,[this].concat(a))),n.state={focus:!1},n.handleFocus=function(){return n.setState({focus:!0})},n.handleBlur=function(){return n.setState({focus:!1})},c(n,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,n),i(o,[{key:"render",value:function(){return s.default.createElement(t,{onFocus:this.handleFocus,onBlur:this.handleBlur},s.default.createElement(e,a({},this.props,this.state)))}}]),o}(s.default.Component)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlphaPointer=void 0;var r=a(n(0)),o=a(n(70));function a(e){return e&&e.__esModule?e:{default:e}}var i=t.AlphaPointer=function(e){var t=e.direction,n=(0,o.default)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return r.default.createElement("div",{style:n.picker})};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Block=void 0;var r=u(n(0)),o=u(n(8)),a=u(n(70)),i=u(n(395)),l=u(n(423)),s=n(135),c=u(n(1769));function u(e){return e&&e.__esModule?e:{default:e}}var f=t.Block=function(e){var t=e.onChange,n=e.onSwatchHover,o=e.hex,u=e.colors,f=e.width,p=e.triangle,d=e.styles,m=void 0===d?{}:d,h=e.className,y=void 0===h?"":h,b="transparent"===o,v=function(e,n){l.default.isValidHex(e)&&t({hex:e,source:"hex"},n)},g=(0,a.default)((0,i.default)({default:{card:{width:f,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:o,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:l.default.getContrastingColor(o),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+o+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},m),{"hide-triangle":"hide"===p});return r.default.createElement("div",{style:g.card,className:"block-picker "+y},r.default.createElement("div",{style:g.triangle}),r.default.createElement("div",{style:g.head},b&&r.default.createElement(s.Checkboard,{borderRadius:"6px 6px 0 0"}),r.default.createElement("div",{style:g.label},o)),r.default.createElement("div",{style:g.body},r.default.createElement(c.default,{colors:u,onClick:v,onSwatchHover:n}),r.default.createElement(s.EditableInput,{style:{input:g.input},value:o,onChange:v})))};f.propTypes={width:o.default.oneOfType([o.default.string,o.default.number]),colors:o.default.arrayOf(o.default.string),triangle:o.default.oneOf(["top","hide"]),styles:o.default.object},f.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}},t.default=(0,s.ColorWrap)(f)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlockSwatches=void 0;var r=l(n(0)),o=l(n(70)),a=l(n(438)),i=n(135);function l(e){return e&&e.__esModule?e:{default:e}}var s=t.BlockSwatches=function(e){var t=e.colors,n=e.onClick,l=e.onSwatchHover,s=(0,o.default)({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return r.default.createElement("div",{style:s.swatches},(0,a.default)(t,(function(e){return r.default.createElement(i.Swatch,{key:e,color:e,style:s.swatch,onClick:n,onHover:l,focusStyle:{boxShadow:"0 0 4px "+e}})})),r.default.createElement("div",{style:s.clear}))};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Circle=void 0;var r=f(n(0)),o=f(n(8)),a=f(n(70)),i=f(n(438)),l=f(n(395)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1451)),c=n(135),u=f(n(1771));function f(e){return e&&e.__esModule?e:{default:e}}var p=t.Circle=function(e){var t=e.width,n=e.onChange,o=e.onSwatchHover,s=e.colors,c=e.hex,f=e.circleSize,p=e.styles,d=void 0===p?{}:p,m=e.circleSpacing,h=e.className,y=void 0===h?"":h,b=(0,a.default)((0,l.default)({default:{card:{width:t,display:"flex",flexWrap:"wrap",marginRight:-m,marginBottom:-m}}},d)),v=function(e,t){return n({hex:e,source:"hex"},t)};return r.default.createElement("div",{style:b.card,className:"circle-picker "+y},(0,i.default)(s,(function(e){return r.default.createElement(u.default,{key:e,color:e,onClick:v,onSwatchHover:o,active:c===e.toLowerCase(),circleSize:f,circleSpacing:m})})))};p.propTypes={width:o.default.oneOfType([o.default.string,o.default.number]),circleSize:o.default.number,circleSpacing:o.default.number,styles:o.default.object},p.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[s.red[500],s.pink[500],s.purple[500],s.deepPurple[500],s.indigo[500],s.blue[500],s.lightBlue[500],s.cyan[500],s.teal[500],s.green[500],s.lightGreen[500],s.lime[500],s.yellow[500],s.amber[500],s.orange[500],s.deepOrange[500],s.brown[500],s.blueGrey[500]],styles:{}},t.default=(0,c.ColorWrap)(p)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CircleSwatch=void 0;var r=l(n(0)),o=n(70),a=l(o),i=n(135);function l(e){return e&&e.__esModule?e:{default:e}}var s=t.CircleSwatch=function(e){var t=e.color,n=e.onClick,o=e.onSwatchHover,l=e.hover,s=e.active,c=e.circleSize,u=e.circleSpacing,f=(0,a.default)({default:{swatch:{width:c,height:c,marginRight:u,marginBottom:u,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(c/2+1)+"px "+t,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+t}}},{hover:l,active:s});return r.default.createElement("div",{style:f.swatch},r.default.createElement(i.Swatch,{style:f.Swatch,color:t,onClick:n,onHover:o,focusStyle:{boxShadow:f.Swatch.boxShadow+", 0 0 5px "+t}}))};s.defaultProps={circleSize:28,circleSpacing:14},t.default=(0,o.handleHover)(s)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Chrome=void 0;var r=f(n(0)),o=f(n(8)),a=f(n(70)),i=f(n(395)),l=n(135),s=f(n(1773)),c=f(n(1776)),u=f(n(1777));function f(e){return e&&e.__esModule?e:{default:e}}var p=t.Chrome=function(e){var t=e.width,n=e.onChange,o=e.disableAlpha,f=e.rgb,p=e.hsl,d=e.hsv,m=e.hex,h=e.renderers,y=e.styles,b=void 0===y?{}:y,v=e.className,g=void 0===v?"":v,w=e.defaultView,E=(0,a.default)((0,i.default)({default:{picker:{width:t,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+f.r+", "+f.g+", "+f.b+", "+f.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},b),{disableAlpha:o});return r.default.createElement("div",{style:E.picker,className:"chrome-picker "+g},r.default.createElement("div",{style:E.saturation},r.default.createElement(l.Saturation,{style:E.Saturation,hsl:p,hsv:d,pointer:u.default,onChange:n})),r.default.createElement("div",{style:E.body},r.default.createElement("div",{style:E.controls,className:"flexbox-fix"},r.default.createElement("div",{style:E.color},r.default.createElement("div",{style:E.swatch},r.default.createElement("div",{style:E.active}),r.default.createElement(l.Checkboard,{renderers:h}))),r.default.createElement("div",{style:E.toggles},r.default.createElement("div",{style:E.hue},r.default.createElement(l.Hue,{style:E.Hue,hsl:p,pointer:c.default,onChange:n})),r.default.createElement("div",{style:E.alpha},r.default.createElement(l.Alpha,{style:E.Alpha,rgb:f,hsl:p,pointer:c.default,renderers:h,onChange:n})))),r.default.createElement(s.default,{rgb:f,hsl:p,hex:m,view:w,onChange:n,disableAlpha:o})))};p.propTypes={width:o.default.oneOfType([o.default.string,o.default.number]),disableAlpha:o.default.bool,styles:o.default.object,defaultView:o.default.oneOf(["hex","rgb","hsl"])},p.defaultProps={width:225,disableAlpha:!1,styles:{}},t.default=(0,l.ColorWrap)(p)},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.ChromeFields=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=f(n(0)),i=f(n(70)),l=f(n(423)),s=f(n(1774)),c=n(135),u=f(n(1775));function f(e){return e&&e.__esModule?e:{default:e}}var p=t.ChromeFields=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==r(t)&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.toggleViews=function(){"hex"===n.state.view?n.setState({view:"rgb"}):"rgb"===n.state.view?n.setState({view:"hsl"}):"hsl"===n.state.view&&(1===n.props.hsl.a?n.setState({view:"hex"}):n.setState({view:"rgb"}))},n.handleChange=function(e,t){e.hex?l.default.isValidHex(e.hex)&&n.props.onChange({hex:e.hex,source:"hex"},t):e.r||e.g||e.b?n.props.onChange({r:e.r||n.props.rgb.r,g:e.g||n.props.rgb.g,b:e.b||n.props.rgb.b,source:"rgb"},t):e.a?(e.a<0?e.a=0:e.a>1&&(e.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"},t)):(e.h||e.s||e.l)&&("string"==typeof e.s&&e.s.includes("%")&&(e.s=e.s.replace("%","")),"string"==typeof e.l&&e.l.includes("%")&&(e.l=e.l.replace("%","")),1==e.s?e.s=.01:1==e.l&&(e.l=.01),n.props.onChange({h:e.h||n.props.hsl.h,s:Number((0,s.default)(e.s)?n.props.hsl.s:e.s),l:Number((0,s.default)(e.l)?n.props.hsl.l:e.l),source:"hsl"},t))},n.showHighlight=function(e){e.currentTarget.style.background="#eee"},n.hideHighlight=function(e){e.currentTarget.style.background="transparent"},1!==e.hsl.a&&"hex"===e.view?n.state={view:"rgb"}:n.state={view:e.view},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"render",value:function(){var e=this,t=(0,i.default)({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),n=void 0;return"hex"===this.state.view?n=a.default.createElement("div",{style:t.fields,className:"flexbox-fix"},a.default.createElement("div",{style:t.field},a.default.createElement(c.EditableInput,{style:{input:t.input,label:t.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):"rgb"===this.state.view?n=a.default.createElement("div",{style:t.fields,className:"flexbox-fix"},a.default.createElement("div",{style:t.field},a.default.createElement(c.EditableInput,{style:{input:t.input,label:t.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),a.default.createElement("div",{style:t.field},a.default.createElement(c.EditableInput,{style:{input:t.input,label:t.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),a.default.createElement("div",{style:t.field},a.default.createElement(c.EditableInput,{style:{input:t.input,label:t.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),a.default.createElement("div",{style:t.alpha},a.default.createElement(c.EditableInput,{style:{input:t.input,label:t.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(n=a.default.createElement("div",{style:t.fields,className:"flexbox-fix"},a.default.createElement("div",{style:t.field},a.default.createElement(c.EditableInput,{style:{input:t.input,label:t.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),a.default.createElement("div",{style:t.field},a.default.createElement(c.EditableInput,{style:{input:t.input,label:t.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),a.default.createElement("div",{style:t.field},a.default.createElement(c.EditableInput,{style:{input:t.input,label:t.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),a.default.createElement("div",{style:t.alpha},a.default.createElement(c.EditableInput,{style:{input:t.input,label:t.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),a.default.createElement("div",{style:t.wrap,className:"flexbox-fix"},n,a.default.createElement("div",{style:t.toggle},a.default.createElement("div",{style:t.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},a.default.createElement(u.default,{style:t.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),t}(a.default.Component);p.defaultProps={view:"hex"},t.default=p},function(e,t){e.exports=function(e){return void 0===e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(0),i=(r=a)&&r.__esModule?r:{default:r};t.default=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,a=void 0===r?24:r,l=e.height,s=void 0===l?24:l,c=e.style,u=void 0===c?{}:c,f=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return i.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:a,height:s},u)},f),i.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChromePointer=void 0;var r=a(n(0)),o=a(n(70));function a(e){return e&&e.__esModule?e:{default:e}}var i=t.ChromePointer=function(){var e=(0,o.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return r.default.createElement("div",{style:e.picker})};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChromePointerCircle=void 0;var r=a(n(0)),o=a(n(70));function a(e){return e&&e.__esModule?e:{default:e}}var i=t.ChromePointerCircle=function(){var e=(0,o.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return r.default.createElement("div",{style:e.picker})};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Compact=void 0;var r=p(n(0)),o=p(n(8)),a=p(n(70)),i=p(n(438)),l=p(n(395)),s=p(n(423)),c=n(135),u=p(n(1779)),f=p(n(1780));function p(e){return e&&e.__esModule?e:{default:e}}var d=t.Compact=function(e){var t=e.onChange,n=e.onSwatchHover,o=e.colors,p=e.hex,d=e.rgb,m=e.styles,h=void 0===m?{}:m,y=e.className,b=void 0===y?"":y,v=(0,a.default)((0,l.default)({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},h)),g=function(e,n){e.hex?s.default.isValidHex(e.hex)&&t({hex:e.hex,source:"hex"},n):t(e,n)};return r.default.createElement(c.Raised,{style:v.Compact,styles:h},r.default.createElement("div",{style:v.compact,className:"compact-picker "+b},r.default.createElement("div",null,(0,i.default)(o,(function(e){return r.default.createElement(u.default,{key:e,color:e,active:e.toLowerCase()===p,onClick:g,onSwatchHover:n})})),r.default.createElement("div",{style:v.clear})),r.default.createElement(f.default,{hex:p,rgb:d,onChange:g})))};d.propTypes={colors:o.default.arrayOf(o.default.string),styles:o.default.object},d.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}},t.default=(0,c.ColorWrap)(d)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompactColor=void 0;var r=l(n(0)),o=l(n(70)),a=l(n(423)),i=n(135);function l(e){return e&&e.__esModule?e:{default:e}}var s=t.CompactColor=function(e){var t=e.color,n=e.onClick,l=void 0===n?function(){}:n,s=e.onSwatchHover,c=e.active,u=(0,o.default)({default:{color:{background:t,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:a.default.getContrastingColor(t),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:c,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return r.default.createElement(i.Swatch,{style:u.color,color:t,onClick:l,onHover:s,focusStyle:{boxShadow:"0 0 4px "+t}},r.default.createElement("div",{style:u.dot}))};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompactFields=void 0;var r=i(n(0)),o=i(n(70)),a=n(135);function i(e){return e&&e.__esModule?e:{default:e}}var l=t.CompactFields=function(e){var t=e.hex,n=e.rgb,i=e.onChange,l=(0,o.default)({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:t},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),s=function(e,t){e.r||e.g||e.b?i({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},t):i({hex:e.hex,source:"hex"},t)};return r.default.createElement("div",{style:l.fields,className:"flexbox-fix"},r.default.createElement("div",{style:l.active}),r.default.createElement(a.EditableInput,{style:{wrap:l.HEXwrap,input:l.HEXinput,label:l.HEXlabel},label:"hex",value:t,onChange:s}),r.default.createElement(a.EditableInput,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"r",value:n.r,onChange:s}),r.default.createElement(a.EditableInput,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"g",value:n.g,onChange:s}),r.default.createElement(a.EditableInput,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"b",value:n.b,onChange:s}))};t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Github=void 0;var r=u(n(0)),o=u(n(8)),a=u(n(70)),i=u(n(438)),l=u(n(395)),s=n(135),c=u(n(1782));function u(e){return e&&e.__esModule?e:{default:e}}var f=t.Github=function(e){var t=e.width,n=e.colors,o=e.onChange,s=e.onSwatchHover,u=e.triangle,f=e.styles,p=void 0===f?{}:f,d=e.className,m=void 0===d?"":d,h=(0,a.default)((0,l.default)({default:{card:{width:t,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},p),{"hide-triangle":"hide"===u,"top-left-triangle":"top-left"===u,"top-right-triangle":"top-right"===u,"bottom-left-triangle":"bottom-left"===u,"bottom-right-triangle":"bottom-right"===u}),y=function(e,t){return o({hex:e,source:"hex"},t)};return r.default.createElement("div",{style:h.card,className:"github-picker "+m},r.default.createElement("div",{style:h.triangleShadow}),r.default.createElement("div",{style:h.triangle}),(0,i.default)(n,(function(e){return r.default.createElement(c.default,{color:e,key:e,onClick:y,onSwatchHover:s})})))};f.propTypes={width:o.default.oneOfType([o.default.string,o.default.number]),colors:o.default.arrayOf(o.default.string),triangle:o.default.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:o.default.object},f.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}},t.default=(0,s.ColorWrap)(f)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GithubSwatch=void 0;var r=l(n(0)),o=n(70),a=l(o),i=n(135);function l(e){return e&&e.__esModule?e:{default:e}}var s=t.GithubSwatch=function(e){var t=e.hover,n=e.color,o=e.onClick,l=e.onSwatchHover,s={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},c=(0,a.default)({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:s}},{hover:t});return r.default.createElement("div",{style:c.swatch},r.default.createElement(i.Swatch,{color:n,onClick:o,onHover:l,focusStyle:s}))};t.default=(0,o.handleHover)(s)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HuePicker=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=u(n(0)),a=u(n(8)),i=u(n(70)),l=u(n(395)),s=n(135),c=u(n(1784));function u(e){return e&&e.__esModule?e:{default:e}}var f=t.HuePicker=function(e){var t=e.width,n=e.height,a=e.onChange,c=e.hsl,u=e.direction,f=e.pointer,p=e.styles,d=void 0===p?{}:p,m=e.className,h=void 0===m?"":m,y=(0,i.default)((0,l.default)({default:{picker:{position:"relative",width:t,height:n},hue:{radius:"2px"}}},d));return o.default.createElement("div",{style:y.picker,className:"hue-picker "+h},o.default.createElement(s.Hue,r({},y.hue,{hsl:c,pointer:f,onChange:function(e){return a({a:1,h:e.h,l:.5,s:1})},direction:u})))};f.propTypes={styles:a.default.object},f.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:c.default,styles:{}},t.default=(0,s.ColorWrap)(f)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SliderPointer=void 0;var r=a(n(0)),o=a(n(70));function a(e){return e&&e.__esModule?e:{default:e}}var i=t.SliderPointer=function(e){var t=e.direction,n=(0,o.default)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return r.default.createElement("div",{style:n.picker})};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Material=void 0;var r=s(n(0)),o=s(n(70)),a=s(n(395)),i=s(n(423)),l=n(135);function s(e){return e&&e.__esModule?e:{default:e}}var c=t.Material=function(e){var t=e.onChange,n=e.hex,s=e.rgb,c=e.styles,u=void 0===c?{}:c,f=e.className,p=void 0===f?"":f,d=(0,o.default)((0,a.default)({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+n,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},u)),m=function(e,n){e.hex?i.default.isValidHex(e.hex)&&t({hex:e.hex,source:"hex"},n):(e.r||e.g||e.b)&&t({r:e.r||s.r,g:e.g||s.g,b:e.b||s.b,source:"rgb"},n)};return r.default.createElement(l.Raised,{styles:u},r.default.createElement("div",{style:d.material,className:"material-picker "+p},r.default.createElement(l.EditableInput,{style:{wrap:d.HEXwrap,input:d.HEXinput,label:d.HEXlabel},label:"hex",value:n,onChange:m}),r.default.createElement("div",{style:d.split,className:"flexbox-fix"},r.default.createElement("div",{style:d.third},r.default.createElement(l.EditableInput,{style:{wrap:d.RGBwrap,input:d.RGBinput,label:d.RGBlabel},label:"r",value:s.r,onChange:m})),r.default.createElement("div",{style:d.third},r.default.createElement(l.EditableInput,{style:{wrap:d.RGBwrap,input:d.RGBinput,label:d.RGBlabel},label:"g",value:s.g,onChange:m})),r.default.createElement("div",{style:d.third},r.default.createElement(l.EditableInput,{style:{wrap:d.RGBwrap,input:d.RGBinput,label:d.RGBlabel},label:"b",value:s.b,onChange:m})))))};t.default=(0,l.ColorWrap)(c)},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.Photoshop=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=h(n(0)),i=h(n(8)),l=h(n(70)),s=h(n(395)),c=n(135),u=h(n(1787)),f=h(n(1788)),p=h(n(1789)),d=h(n(1790)),m=h(n(1791));function h(e){return e&&e.__esModule?e:{default:e}}var y=t.Photoshop=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==r(t)&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={currentColor:e.hex},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"render",value:function(){var e=this.props,t=e.styles,n=void 0===t?{}:t,r=e.className,o=void 0===r?"":r,i=(0,l.default)((0,s.default)({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},n));return a.default.createElement("div",{style:i.picker,className:"photoshop-picker "+o},a.default.createElement("div",{style:i.head},this.props.header),a.default.createElement("div",{style:i.body,className:"flexbox-fix"},a.default.createElement("div",{style:i.saturation},a.default.createElement(c.Saturation,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:f.default,onChange:this.props.onChange})),a.default.createElement("div",{style:i.hue},a.default.createElement(c.Hue,{direction:"vertical",hsl:this.props.hsl,pointer:p.default,onChange:this.props.onChange})),a.default.createElement("div",{style:i.controls},a.default.createElement("div",{style:i.top,className:"flexbox-fix"},a.default.createElement("div",{style:i.previews},a.default.createElement(m.default,{rgb:this.props.rgb,currentColor:this.state.currentColor})),a.default.createElement("div",{style:i.actions},a.default.createElement(d.default,{label:"OK",onClick:this.props.onAccept,active:!0}),a.default.createElement(d.default,{label:"Cancel",onClick:this.props.onCancel}),a.default.createElement(u.default,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(a.default.Component);y.propTypes={header:i.default.string,styles:i.default.object},y.defaultProps={header:"Color Picker",styles:{}},t.default=(0,c.ColorWrap)(y)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPicker=void 0;var r=l(n(0)),o=l(n(70)),a=l(n(423)),i=n(135);function l(e){return e&&e.__esModule?e:{default:e}}var s=t.PhotoshopPicker=function(e){var t=e.onChange,n=e.rgb,l=e.hsv,s=e.hex,c=(0,o.default)({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),u=function(e,r){e["#"]?a.default.isValidHex(e["#"])&&t({hex:e["#"],source:"hex"},r):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},r):(e.h||e.s||e.v)&&t({h:e.h||l.h,s:e.s||l.s,v:e.v||l.v,source:"hsv"},r)};return r.default.createElement("div",{style:c.fields},r.default.createElement(i.EditableInput,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"h",value:Math.round(l.h),onChange:u}),r.default.createElement(i.EditableInput,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"s",value:Math.round(100*l.s),onChange:u}),r.default.createElement(i.EditableInput,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"v",value:Math.round(100*l.v),onChange:u}),r.default.createElement("div",{style:c.divider}),r.default.createElement(i.EditableInput,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"r",value:n.r,onChange:u}),r.default.createElement(i.EditableInput,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"g",value:n.g,onChange:u}),r.default.createElement(i.EditableInput,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"b",value:n.b,onChange:u}),r.default.createElement("div",{style:c.divider}),r.default.createElement(i.EditableInput,{style:{wrap:c.HEXwrap,input:c.HEXinput,label:c.HEXlabel},label:"#",value:s.replace("#",""),onChange:u}),r.default.createElement("div",{style:c.fieldSymbols},r.default.createElement("div",{style:c.symbol},"°"),r.default.createElement("div",{style:c.symbol},"%"),r.default.createElement("div",{style:c.symbol},"%")))};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPointerCircle=void 0;var r=a(n(0)),o=a(n(70));function a(e){return e&&e.__esModule?e:{default:e}}var i=t.PhotoshopPointerCircle=function(e){var t=e.hsl,n=(0,o.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":t.l>.5});return r.default.createElement("div",{style:n.picker})};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPointerCircle=void 0;var r=a(n(0)),o=a(n(70));function a(e){return e&&e.__esModule?e:{default:e}}var i=t.PhotoshopPointerCircle=function(){var e=(0,o.default)({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return r.default.createElement("div",{style:e.pointer},r.default.createElement("div",{style:e.left},r.default.createElement("div",{style:e.leftInside})),r.default.createElement("div",{style:e.right},r.default.createElement("div",{style:e.rightInside})))};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopButton=void 0;var r=a(n(0)),o=a(n(70));function a(e){return e&&e.__esModule?e:{default:e}}var i=t.PhotoshopButton=function(e){var t=e.onClick,n=e.label,a=e.children,i=e.active,l=(0,o.default)({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:i});return r.default.createElement("div",{style:l.button,onClick:t},n||a)};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPreviews=void 0;var r=a(n(0)),o=a(n(70));function a(e){return e&&e.__esModule?e:{default:e}}var i=t.PhotoshopPreviews=function(e){var t=e.rgb,n=e.currentColor,a=(0,o.default)({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+t.r+","+t.g+", "+t.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return r.default.createElement("div",null,r.default.createElement("div",{style:a.label},"new"),r.default.createElement("div",{style:a.swatches},r.default.createElement("div",{style:a.new}),r.default.createElement("div",{style:a.current})),r.default.createElement("div",{style:a.label},"current"))};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sketch=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=f(n(0)),a=f(n(8)),i=f(n(70)),l=f(n(395)),s=n(135),c=f(n(1793)),u=f(n(1794));function f(e){return e&&e.__esModule?e:{default:e}}var p=t.Sketch=function(e){var t=e.width,n=e.rgb,a=e.hex,f=e.hsv,p=e.hsl,d=e.onChange,m=e.onSwatchHover,h=e.disableAlpha,y=e.presetColors,b=e.renderers,v=e.styles,g=void 0===v?{}:v,w=e.className,E=void 0===w?"":w,_=(0,i.default)((0,l.default)({default:r({picker:{width:t,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+n.r+","+n.g+","+n.b+","+n.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},g),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},g),{disableAlpha:h});return o.default.createElement("div",{style:_.picker,className:"sketch-picker "+E},o.default.createElement("div",{style:_.saturation},o.default.createElement(s.Saturation,{style:_.Saturation,hsl:p,hsv:f,onChange:d})),o.default.createElement("div",{style:_.controls,className:"flexbox-fix"},o.default.createElement("div",{style:_.sliders},o.default.createElement("div",{style:_.hue},o.default.createElement(s.Hue,{style:_.Hue,hsl:p,onChange:d})),o.default.createElement("div",{style:_.alpha},o.default.createElement(s.Alpha,{style:_.Alpha,rgb:n,hsl:p,renderers:b,onChange:d}))),o.default.createElement("div",{style:_.color},o.default.createElement(s.Checkboard,null),o.default.createElement("div",{style:_.activeColor}))),o.default.createElement(c.default,{rgb:n,hsl:p,hex:a,onChange:d,disableAlpha:h}),o.default.createElement(u.default,{colors:y,onClick:d,onSwatchHover:m}))};p.propTypes={disableAlpha:a.default.bool,width:a.default.oneOfType([a.default.string,a.default.number]),styles:a.default.object},p.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]},t.default=(0,s.ColorWrap)(p)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SketchFields=void 0;var r=l(n(0)),o=l(n(70)),a=l(n(423)),i=n(135);function l(e){return e&&e.__esModule?e:{default:e}}var s=t.SketchFields=function(e){var t=e.onChange,n=e.rgb,l=e.hsl,s=e.hex,c=e.disableAlpha,u=(0,o.default)({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:c}),f=function(e,r){e.hex?a.default.isValidHex(e.hex)&&t({hex:e.hex,source:"hex"},r):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,a:n.a,source:"rgb"},r):e.a&&(e.a<0?e.a=0:e.a>100&&(e.a=100),e.a/=100,t({h:l.h,s:l.s,l:l.l,a:e.a,source:"rgb"},r))};return r.default.createElement("div",{style:u.fields,className:"flexbox-fix"},r.default.createElement("div",{style:u.double},r.default.createElement(i.EditableInput,{style:{input:u.input,label:u.label},label:"hex",value:s.replace("#",""),onChange:f})),r.default.createElement("div",{style:u.single},r.default.createElement(i.EditableInput,{style:{input:u.input,label:u.label},label:"r",value:n.r,onChange:f,dragLabel:"true",dragMax:"255"})),r.default.createElement("div",{style:u.single},r.default.createElement(i.EditableInput,{style:{input:u.input,label:u.label},label:"g",value:n.g,onChange:f,dragLabel:"true",dragMax:"255"})),r.default.createElement("div",{style:u.single},r.default.createElement(i.EditableInput,{style:{input:u.input,label:u.label},label:"b",value:n.b,onChange:f,dragLabel:"true",dragMax:"255"})),r.default.createElement("div",{style:u.alpha},r.default.createElement(i.EditableInput,{style:{input:u.input,label:u.label},label:"a",value:Math.round(100*n.a),onChange:f,dragLabel:"true",dragMax:"100"})))};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SketchPresetColors=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=s(n(0)),a=s(n(8)),i=s(n(70)),l=n(135);function s(e){return e&&e.__esModule?e:{default:e}}var c=t.SketchPresetColors=function(e){var t=e.colors,n=e.onClick,a=void 0===n?function(){}:n,s=e.onSwatchHover,c=(0,i.default)({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!t||!t.length}),u=function(e,t){a({hex:e,source:"hex"},t)};return o.default.createElement("div",{style:c.colors,className:"flexbox-fix"},t.map((function(e){var t="string"==typeof e?{color:e}:e,n=""+t.color+(t.title||"");return o.default.createElement("div",{key:n,style:c.swatchWrap},o.default.createElement(l.Swatch,r({},t,{style:c.swatch,onClick:u,onHover:s,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+t.color}})))})))};c.propTypes={colors:a.default.arrayOf(a.default.oneOfType([a.default.string,a.default.shape({color:a.default.string,title:a.default.string})])).isRequired},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Slider=void 0;var r=u(n(0)),o=u(n(8)),a=u(n(70)),i=u(n(395)),l=n(135),s=u(n(1796)),c=u(n(1798));function u(e){return e&&e.__esModule?e:{default:e}}var f=t.Slider=function(e){var t=e.hsl,n=e.onChange,o=e.pointer,c=e.styles,u=void 0===c?{}:c,f=e.className,p=void 0===f?"":f,d=(0,a.default)((0,i.default)({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},u));return r.default.createElement("div",{style:d.wrap||{},className:"slider-picker "+p},r.default.createElement("div",{style:d.hue},r.default.createElement(l.Hue,{style:d.Hue,hsl:t,pointer:o,onChange:n})),r.default.createElement("div",{style:d.swatches},r.default.createElement(s.default,{hsl:t,onClick:n})))};f.propTypes={styles:o.default.object},f.defaultProps={pointer:c.default,styles:{}},t.default=(0,l.ColorWrap)(f)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SliderSwatches=void 0;var r=i(n(0)),o=i(n(70)),a=i(n(1797));function i(e){return e&&e.__esModule?e:{default:e}}var l=t.SliderSwatches=function(e){var t=e.onClick,n=e.hsl,i=(0,o.default)({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),l=.1;return r.default.createElement("div",{style:i.swatches},r.default.createElement("div",{style:i.swatch},r.default.createElement(a.default,{hsl:n,offset:".80",active:Math.abs(n.l-.8)<l&&Math.abs(n.s-.5)<l,onClick:t,first:!0})),r.default.createElement("div",{style:i.swatch},r.default.createElement(a.default,{hsl:n,offset:".65",active:Math.abs(n.l-.65)<l&&Math.abs(n.s-.5)<l,onClick:t})),r.default.createElement("div",{style:i.swatch},r.default.createElement(a.default,{hsl:n,offset:".50",active:Math.abs(n.l-.5)<l&&Math.abs(n.s-.5)<l,onClick:t})),r.default.createElement("div",{style:i.swatch},r.default.createElement(a.default,{hsl:n,offset:".35",active:Math.abs(n.l-.35)<l&&Math.abs(n.s-.5)<l,onClick:t})),r.default.createElement("div",{style:i.swatch},r.default.createElement(a.default,{hsl:n,offset:".20",active:Math.abs(n.l-.2)<l&&Math.abs(n.s-.5)<l,onClick:t,last:!0})),r.default.createElement("div",{style:i.clear}))};t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SliderSwatch=void 0;var r=a(n(0)),o=a(n(70));function a(e){return e&&e.__esModule?e:{default:e}}var i=t.SliderSwatch=function(e){var t=e.hsl,n=e.offset,a=e.onClick,i=void 0===a?function(){}:a,l=e.active,s=e.first,c=e.last,u=(0,o.default)({default:{swatch:{height:"12px",background:"hsl("+t.h+", 50%, "+100*n+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:l,first:s,last:c});return r.default.createElement("div",{style:u.swatch,onClick:function(e){return i({h:t.h,s:.5,l:n,source:"hsl"},e)}})};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SliderPointer=void 0;var r=a(n(0)),o=a(n(70));function a(e){return e&&e.__esModule?e:{default:e}}var i=t.SliderPointer=function(){var e=(0,o.default)({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return r.default.createElement("div",{style:e.picker})};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Swatches=void 0;var r=f(n(0)),o=f(n(8)),a=f(n(70)),i=f(n(438)),l=f(n(395)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1451)),c=n(135),u=f(n(1800));function f(e){return e&&e.__esModule?e:{default:e}}var p=t.Swatches=function(e){var t=e.width,n=e.height,o=e.onChange,s=e.onSwatchHover,f=e.colors,p=e.hex,d=e.styles,m=void 0===d?{}:d,h=e.className,y=void 0===h?"":h,b=(0,a.default)((0,l.default)({default:{picker:{width:t,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},m)),v=function(e,t){return o({hex:e,source:"hex"},t)};return r.default.createElement("div",{style:b.picker,className:"swatches-picker "+y},r.default.createElement(c.Raised,null,r.default.createElement("div",{style:b.overflow},r.default.createElement("div",{style:b.body},(0,i.default)(f,(function(e){return r.default.createElement(u.default,{key:e.toString(),group:e,active:p,onClick:v,onSwatchHover:s})})),r.default.createElement("div",{style:b.clear})))))};p.propTypes={width:o.default.oneOfType([o.default.string,o.default.number]),height:o.default.oneOfType([o.default.string,o.default.number]),colors:o.default.arrayOf(o.default.arrayOf(o.default.string)),styles:o.default.object},p.defaultProps={width:320,height:240,colors:[[s.red[900],s.red[700],s.red[500],s.red[300],s.red[100]],[s.pink[900],s.pink[700],s.pink[500],s.pink[300],s.pink[100]],[s.purple[900],s.purple[700],s.purple[500],s.purple[300],s.purple[100]],[s.deepPurple[900],s.deepPurple[700],s.deepPurple[500],s.deepPurple[300],s.deepPurple[100]],[s.indigo[900],s.indigo[700],s.indigo[500],s.indigo[300],s.indigo[100]],[s.blue[900],s.blue[700],s.blue[500],s.blue[300],s.blue[100]],[s.lightBlue[900],s.lightBlue[700],s.lightBlue[500],s.lightBlue[300],s.lightBlue[100]],[s.cyan[900],s.cyan[700],s.cyan[500],s.cyan[300],s.cyan[100]],[s.teal[900],s.teal[700],s.teal[500],s.teal[300],s.teal[100]],["#194D33",s.green[700],s.green[500],s.green[300],s.green[100]],[s.lightGreen[900],s.lightGreen[700],s.lightGreen[500],s.lightGreen[300],s.lightGreen[100]],[s.lime[900],s.lime[700],s.lime[500],s.lime[300],s.lime[100]],[s.yellow[900],s.yellow[700],s.yellow[500],s.yellow[300],s.yellow[100]],[s.amber[900],s.amber[700],s.amber[500],s.amber[300],s.amber[100]],[s.orange[900],s.orange[700],s.orange[500],s.orange[300],s.orange[100]],[s.deepOrange[900],s.deepOrange[700],s.deepOrange[500],s.deepOrange[300],s.deepOrange[100]],[s.brown[900],s.brown[700],s.brown[500],s.brown[300],s.brown[100]],[s.blueGrey[900],s.blueGrey[700],s.blueGrey[500],s.blueGrey[300],s.blueGrey[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}},t.default=(0,c.ColorWrap)(p)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SwatchesGroup=void 0;var r=l(n(0)),o=l(n(70)),a=l(n(438)),i=l(n(1801));function l(e){return e&&e.__esModule?e:{default:e}}var s=t.SwatchesGroup=function(e){var t=e.onClick,n=e.onSwatchHover,l=e.group,s=e.active,c=(0,o.default)({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return r.default.createElement("div",{style:c.group},(0,a.default)(l,(function(e,o){return r.default.createElement(i.default,{key:e,color:e,active:e.toLowerCase()===s,first:0===o,last:o===l.length-1,onClick:t,onSwatchHover:n})})))};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SwatchesColor=void 0;var r=s(n(0)),o=s(n(70)),a=s(n(423)),i=n(135),l=s(n(1802));function s(e){return e&&e.__esModule?e:{default:e}}var c=t.SwatchesColor=function(e){var t=e.color,n=e.onClick,s=void 0===n?function(){}:n,c=e.onSwatchHover,u=e.first,f=e.last,p=e.active,d=(0,o.default)({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:t,marginBottom:"1px"},check:{color:a.default.getContrastingColor(t),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:u,last:f,active:p,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return r.default.createElement(i.Swatch,{color:t,style:d.color,onClick:s,onHover:c,focusStyle:{boxShadow:"0 0 4px "+t}},r.default.createElement("div",{style:d.check},r.default.createElement(l.default,null)))};t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(0),i=(r=a)&&r.__esModule?r:{default:r};t.default=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,a=void 0===r?24:r,l=e.height,s=void 0===l?24:l,c=e.style,u=void 0===c?{}:c,f=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return i.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:a,height:s},u)},f),i.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Twitter=void 0;var r=u(n(0)),o=u(n(8)),a=u(n(70)),i=u(n(438)),l=u(n(395)),s=u(n(423)),c=n(135);function u(e){return e&&e.__esModule?e:{default:e}}var f=t.Twitter=function(e){var t=e.onChange,n=e.onSwatchHover,o=e.hex,u=e.colors,f=e.width,p=e.triangle,d=e.styles,m=void 0===d?{}:d,h=e.className,y=void 0===h?"":h,b=(0,a.default)((0,l.default)({default:{card:{width:f,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},m),{"hide-triangle":"hide"===p,"top-left-triangle":"top-left"===p,"top-right-triangle":"top-right"===p}),v=function(e,n){s.default.isValidHex(e)&&t({hex:e,source:"hex"},n)};return r.default.createElement("div",{style:b.card,className:"twitter-picker "+y},r.default.createElement("div",{style:b.triangleShadow}),r.default.createElement("div",{style:b.triangle}),r.default.createElement("div",{style:b.body},(0,i.default)(u,(function(e,t){return r.default.createElement(c.Swatch,{key:t,color:e,hex:e,style:b.swatch,onClick:v,onHover:n,focusStyle:{boxShadow:"0 0 4px "+e}})})),r.default.createElement("div",{style:b.hash},"#"),r.default.createElement(c.EditableInput,{label:null,style:{input:b.input},value:o.replace("#",""),onChange:v}),r.default.createElement("div",{style:b.clear})))};f.propTypes={width:o.default.oneOfType([o.default.string,o.default.number]),triangle:o.default.oneOf(["hide","top-left","top-right"]),colors:o.default.arrayOf(o.default.string),styles:o.default.object},f.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}},t.default=(0,c.ColorWrap)(f)},function(e,t,n){"use strict";var r=n(1805),o=n(1806),a=n(1807);e.exports=function(){function e(e,t,n,r,i,l){l!==a&&o(!1,"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")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,o,a,i,l,s){if(r(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,o,a,i,l,s],f=0;(c=new Error(t.replace(/%s/g,(function(){return u[f++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraggableCore",{enumerable:!0,get:function(){return u.default}}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==m(e)&&"function"!=typeof e)return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),o=p(n(8)),a=p(n(39)),i=p(n(7)),l=n(601),s=n(1452),c=n(545),u=p(n(1810)),f=p(n(1453));function p(e){return e&&e.__esModule?e:{default:e}}function d(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function h(){return h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(this,arguments)}function y(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,t)}(e,t)||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 v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){j(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e,t,n){return t&&E(e.prototype,t),n&&E(e,n),e}function k(e,t){return k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},k(e,t)}function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=S(e);if(t){var o=S(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;return x(e)}(this,n)}}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var C=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}(n,e);var t=O(n);function n(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),j(x(r=t.call(this,e)),"onDragStart",(function(e,t){if((0,f.default)("Draggable: onDragStart: %j",t),!1===r.props.onStart(e,(0,s.createDraggableData)(x(r),t)))return!1;r.setState({dragging:!0,dragged:!0})})),j(x(r),"onDrag",(function(e,t){if(!r.state.dragging)return!1;(0,f.default)("Draggable: onDrag: %j",t);var n=(0,s.createDraggableData)(x(r),t),o={x:n.x,y:n.y};if(r.props.bounds){var a=o.x,i=o.y;o.x+=r.state.slackX,o.y+=r.state.slackY;var l=b((0,s.getBoundPosition)(x(r),o.x,o.y),2),c=l[0],u=l[1];o.x=c,o.y=u,o.slackX=r.state.slackX+(a-o.x),o.slackY=r.state.slackY+(i-o.y),n.x=o.x,n.y=o.y,n.deltaX=o.x-r.state.x,n.deltaY=o.y-r.state.y}if(!1===r.props.onDrag(e,n))return!1;r.setState(o)})),j(x(r),"onDragStop",(function(e,t){if(!r.state.dragging)return!1;if(!1===r.props.onStop(e,(0,s.createDraggableData)(x(r),t)))return!1;(0,f.default)("Draggable: onDragStop: %j",t);var n={dragging:!1,slackX:0,slackY:0};if(Boolean(r.props.position)){var o=r.props.position,a=o.x,i=o.y;n.x=a,n.y=i}r.setState(n)})),r.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:w({},e.position),slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),r}return _(n,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.position,r=t.prevPropsPosition;return!n||r&&n.x===r.x&&n.y===r.y?null:((0,f.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:w({},n)})}}]),_(n,[{key:"componentDidMount",value:function(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function(){return this.props.nodeRef?this.props.nodeRef.current:a.default.findDOMNode(this)}},{key:"render",value:function(){var e,t=this.props,n=(t.axis,t.bounds,t.children),o=t.defaultPosition,a=t.defaultClassName,c=t.defaultClassNameDragging,f=t.defaultClassNameDragged,p=t.position,d=t.positionOffset,m=(t.scale,y(t,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"])),b={},v=null,g=!Boolean(p)||this.state.dragging,E=p||o,_={x:(0,s.canDragX)(this)&&g?this.state.x:E.x,y:(0,s.canDragY)(this)&&g?this.state.y:E.y};this.state.isElementSVG?v=(0,l.createSVGTransform)(_,d):b=(0,l.createCSSTransform)(_,d);var k=(0,i.default)(n.props.className||"",a,(j(e={},c,this.state.dragging),j(e,f,this.state.dragged),e));return r.createElement(u.default,h({},m,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),r.cloneElement(r.Children.only(n),{className:k,style:w(w({},n.props.style),b),transform:v}))}}]),n}(r.Component);t.default=C,j(C,"displayName","Draggable"),j(C,"propTypes",w(w({},u.default.propTypes),{},{axis:o.default.oneOf(["both","x","y","none"]),bounds:o.default.oneOfType([o.default.shape({left:o.default.number,right:o.default.number,top:o.default.number,bottom:o.default.number}),o.default.string,o.default.oneOf([!1])]),defaultClassName:o.default.string,defaultClassNameDragging:o.default.string,defaultClassNameDragged:o.default.string,defaultPosition:o.default.shape({x:o.default.number,y:o.default.number}),positionOffset:o.default.shape({x:o.default.oneOfType([o.default.number,o.default.string]),y:o.default.oneOfType([o.default.number,o.default.string])}),position:o.default.shape({x:o.default.number,y:o.default.number}),className:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe})),j(C,"defaultProps",w(w({},u.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},position:null,scale:1}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPrefix=o,t.browserPrefixToKey=a,t.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},t.default=void 0;var r=["Moz","Webkit","O","ms"];function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window||void 0===window.document)return"";var t=window.document.documentElement.style;if(e in t)return"";for(var n=0;n<r.length;n++)if(a(e,r[n])in t)return r[n];return""}function a(e,t){return t?"".concat(t).concat(function(e){for(var t="",n=!0,r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e)):e}var i=o();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==p(e)&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),o=u(n(8)),a=u(n(39)),i=n(601),l=n(1452),s=n(545),c=u(n(1453));function u(e){return e&&e.__esModule?e:{default:e}}function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}(e,t)||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 m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;return v(e)}(this,n)}}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},_=E.mouse,k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(u,e);var t,n,o,s=b(u);function u(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return w(v(e=s.call.apply(s,[this].concat(n))),"state",{dragging:!1,lastX:NaN,lastY:NaN,touchIdentifier:null}),w(v(e),"mounted",!1),w(v(e),"handleDragStart",(function(t){if(e.props.onMouseDown(t),!e.props.allowAnyClick&&"number"==typeof t.button&&0!==t.button)return!1;var n=e.findDOMNode();if(!n||!n.ownerDocument||!n.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");var r=n.ownerDocument;if(!(e.props.disabled||!(t.target instanceof r.defaultView.Node)||e.props.handle&&!(0,i.matchesSelectorAndParentsTo)(t.target,e.props.handle,n)||e.props.cancel&&(0,i.matchesSelectorAndParentsTo)(t.target,e.props.cancel,n))){"touchstart"===t.type&&t.preventDefault();var o=(0,i.getTouchIdentifier)(t);e.setState({touchIdentifier:o});var a=(0,l.getControlPosition)(t,o,v(e));if(null!=a){var s=a.x,u=a.y,f=(0,l.createCoreData)(v(e),s,u);(0,c.default)("DraggableCore: handleDragStart: %j",f),(0,c.default)("calling",e.props.onStart),!1!==e.props.onStart(t,f)&&!1!==e.mounted&&(e.props.enableUserSelectHack&&(0,i.addUserSelectStyles)(r),e.setState({dragging:!0,lastX:s,lastY:u}),(0,i.addEvent)(r,_.move,e.handleDrag),(0,i.addEvent)(r,_.stop,e.handleDragStop))}}})),w(v(e),"handleDrag",(function(t){var n=(0,l.getControlPosition)(t,e.state.touchIdentifier,v(e));if(null!=n){var r=n.x,o=n.y;if(Array.isArray(e.props.grid)){var a=r-e.state.lastX,i=o-e.state.lastY,s=d((0,l.snapToGrid)(e.props.grid,a,i),2);if(a=s[0],i=s[1],!a&&!i)return;r=e.state.lastX+a,o=e.state.lastY+i}var u=(0,l.createCoreData)(v(e),r,o);if((0,c.default)("DraggableCore: handleDrag: %j",u),!1!==e.props.onDrag(t,u)&&!1!==e.mounted)e.setState({lastX:r,lastY:o});else try{e.handleDragStop(new MouseEvent("mouseup"))}catch(t){var f=document.createEvent("MouseEvents");f.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),e.handleDragStop(f)}}})),w(v(e),"handleDragStop",(function(t){if(e.state.dragging){var n=(0,l.getControlPosition)(t,e.state.touchIdentifier,v(e));if(null!=n){var r=n.x,o=n.y,a=(0,l.createCoreData)(v(e),r,o);if(!1===e.props.onStop(t,a)||!1===e.mounted)return!1;var s=e.findDOMNode();s&&e.props.enableUserSelectHack&&(0,i.removeUserSelectStyles)(s.ownerDocument),(0,c.default)("DraggableCore: handleDragStop: %j",a),e.setState({dragging:!1,lastX:NaN,lastY:NaN}),s&&((0,c.default)("DraggableCore: Removing handlers"),(0,i.removeEvent)(s.ownerDocument,_.move,e.handleDrag),(0,i.removeEvent)(s.ownerDocument,_.stop,e.handleDragStop))}}})),w(v(e),"onMouseDown",(function(t){return _=E.mouse,e.handleDragStart(t)})),w(v(e),"onMouseUp",(function(t){return _=E.mouse,e.handleDragStop(t)})),w(v(e),"onTouchStart",(function(t){return _=E.touch,e.handleDragStart(t)})),w(v(e),"onTouchEnd",(function(t){return _=E.touch,e.handleDragStop(t)})),e}return t=u,(n=[{key:"componentDidMount",value:function(){this.mounted=!0;var e=this.findDOMNode();e&&(0,i.addEvent)(e,E.touch.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.findDOMNode();if(e){var t=e.ownerDocument;(0,i.removeEvent)(t,E.mouse.move,this.handleDrag),(0,i.removeEvent)(t,E.touch.move,this.handleDrag),(0,i.removeEvent)(t,E.mouse.stop,this.handleDragStop),(0,i.removeEvent)(t,E.touch.stop,this.handleDragStop),(0,i.removeEvent)(e,E.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,i.removeUserSelectStyles)(t)}}},{key:"findDOMNode",value:function(){return this.props.nodeRef?this.props.nodeRef.current:a.default.findDOMNode(this)}},{key:"render",value:function(){return r.cloneElement(r.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}])&&h(t.prototype,n),o&&h(t,o),u}(r.Component);t.default=k,w(k,"displayName","DraggableCore"),w(k,"propTypes",{allowAnyClick:o.default.bool,disabled:o.default.bool,enableUserSelectHack:o.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:o.default.arrayOf(o.default.number),handle:o.default.string,cancel:o.default.string,nodeRef:o.default.object,onStart:o.default.func,onDrag:o.default.func,onStop:o.default.func,onMouseDown:o.default.func,scale:o.default.number,className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),w(k,"defaultProps",{allowAnyClick:!1,cancel:null,disabled:!1,enableUserSelectHack:!0,offsetParent:null,handle:null,grid:null,transform:null,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},,,,,function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"document",(function(){return XA})),n.d(r,"contentInitial",(function(){return QA})),n.d(r,"flowInitial",(function(){return ZA})),n.d(r,"flow",(function(){return eL})),n.d(r,"string",(function(){return tL})),n.d(r,"text",(function(){return nL})),n.d(r,"insideSpan",(function(){return rL})),n.d(r,"attentionMarkers",(function(){return oL})),n.d(r,"disable",(function(){return aL}));var o={};n.r(o),n.d(o,"boolean",(function(){return CR})),n.d(o,"booleanish",(function(){return DR})),n.d(o,"overloadedBoolean",(function(){return NR})),n.d(o,"number",(function(){return PR})),n.d(o,"spaceSeparated",(function(){return TR})),n.d(o,"commaSeparated",(function(){return MR})),n.d(o,"commaOrSpaceSeparated",(function(){return AR}));n(198),n(199),n(200),n(201),n(202),n(203),n(204),n(205),n(206),n(207),n(208),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(89),n(222),n(223),n(224),n(225),n(226),n(227),n(228),n(229),n(230),n(231),n(233),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(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(262),n(263),n(264),n(265),n(266),n(267),n(269),n(271),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),n(292),n(294),n(295),n(298),n(299),n(300),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(169),n(314),n(315),n(316),n(317),n(318),n(319),n(320),n(170),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(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(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(386),n(387),n(388),n(389),n(392),n(179),n(1520),n(393),n(559),n(486);var a=n(129),i=n.n(a),l=(n(44),n(1521),n(1522),n(448),n(1523),n(1524),n(0)),s=n.n(l),c=n(39),u=n.n(c),f=n(548),p=n.n(f),d=n(1),m=n(396),h=n.n(m),y=n(418),b=n.n(y),v=n(8),g=n.n(v);function w(){return w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w.apply(this,arguments)}function E(e){return"/"===e.charAt(0)}function _(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}var k=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],o=t&&t.split("/")||[],a=e&&E(e),i=t&&E(t),l=a||i;if(e&&E(e)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var s=o[o.length-1];n="."===s||".."===s||""===s}else n=!1;for(var c=0,u=o.length;u>=0;u--){var f=o[u];"."===f?_(o,u):".."===f?(_(o,u),c++):c&&(_(o,u),c--)}if(!l)for(;c--;c)o.unshift("..");!l||""===o[0]||o[0]&&E(o[0])||o.unshift("");var p=o.join("/");return n&&"/"!==p.substr(-1)&&(p+="/"),p};var O=!0,x="Invariant failed";var S=function(e,t){if(!e){if(O)throw new Error(x);throw new Error(x+": "+(t||""))}};function j(e){return"/"===e.charAt(0)?e:"/"+e}function C(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function D(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function N(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function P(e,t,n,r){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=w({},e)).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!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=k(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function T(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var a="function"==typeof e?e(t,n):e;"string"==typeof a?"function"==typeof r?r(a,o):o(!0):o(!1!==a)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var M=!("undefined"==typeof window||!window.document||!window.document.createElement);function A(e,t){t(window.confirm(e))}var L="popstate",R="hashchange";function F(){try{return window.history.state||{}}catch(e){return{}}}function z(e){void 0===e&&(e={}),M||S(!1);var t,n=window.history,r=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),a=e,i=a.forceRefresh,l=void 0!==i&&i,s=a.getUserConfirmation,c=void 0===s?A:s,u=a.keyLength,f=void 0===u?6:u,p=e.basename?D(j(e.basename)):"";function d(e){var t=e||{},n=t.key,r=t.state,o=window.location,a=o.pathname+o.search+o.hash;return p&&(a=C(a,p)),P(a,r,n)}function m(){return Math.random().toString(36).substr(2,f)}var h=T();function y(e){w(I,e),I.length=n.length,h.notifyListeners(I.location,I.action)}function b(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||E(d(e.state))}function v(){E(d(F()))}var g=!1;function E(e){if(g)g=!1,y();else{h.confirmTransitionTo(e,"POP",c,(function(t){t?y({action:"POP",location:e}):function(e){var t=I.location,n=k.indexOf(t.key);-1===n&&(n=0);var r=k.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(g=!0,x(o))}(e)}))}}var _=d(F()),k=[_.key];function O(e){return p+N(e)}function x(e){n.go(e)}var z=0;function B(e){1===(z+=e)&&1===e?(window.addEventListener(L,b),o&&window.addEventListener(R,v)):0===z&&(window.removeEventListener(L,b),o&&window.removeEventListener(R,v))}var Y=!1;var I={length:n.length,action:"POP",location:_,createHref:O,push:function(e,t){var o="PUSH",a=P(e,t,m(),I.location);h.confirmTransitionTo(a,o,c,(function(e){if(e){var t=O(a),i=a.key,s=a.state;if(r)if(n.pushState({key:i,state:s},null,t),l)window.location.href=t;else{var c=k.indexOf(I.location.key),u=k.slice(0,c+1);u.push(a.key),k=u,y({action:o,location:a})}else window.location.href=t}}))},replace:function(e,t){var o="REPLACE",a=P(e,t,m(),I.location);h.confirmTransitionTo(a,o,c,(function(e){if(e){var t=O(a),i=a.key,s=a.state;if(r)if(n.replaceState({key:i,state:s},null,t),l)window.location.replace(t);else{var c=k.indexOf(I.location.key);-1!==c&&(k[c]=a.key),y({action:o,location:a})}else window.location.replace(t)}}))},go:x,goBack:function(){x(-1)},goForward:function(){x(1)},block:function(e){void 0===e&&(e=!1);var t=h.setPrompt(e);return Y||(B(1),Y=!0),function(){return Y&&(Y=!1,B(-1)),t()}},listen:function(e){var t=h.appendListener(e);return B(1),function(){B(-1),t()}}};return I}var B=n(181),Y=n.n(B);function I(e){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(e)}var H=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function U(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==I(t)&&"function"!=typeof t?e:t}var W=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=U(this,e.call.apply(e,[this].concat(a))),r.state={match:r.computeMatch(r.props.history.location.pathname)},U(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+I(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getChildContext=function(){return{router:H({},this.context.router,{history:this.props.history,route:{location:this.props.history.location,match:this.state.match}})}},t.prototype.computeMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}},t.prototype.componentWillMount=function(){var e=this,t=this.props,n=t.children,r=t.history;Y()(null==n||1===s.a.Children.count(n),"A <Router> may have only one child element"),this.unlisten=r.listen((function(){e.setState({match:e.computeMatch(r.location.pathname)})}))},t.prototype.componentWillReceiveProps=function(e){b()(this.props.history===e.history,"You cannot change <Router history>")},t.prototype.componentWillUnmount=function(){this.unlisten()},t.prototype.render=function(){var e=this.props.children;return e?s.a.Children.only(e):null},t}(s.a.Component);W.propTypes={history:g.a.object.isRequired,children:g.a.node},W.contextTypes={router:g.a.object},W.childContextTypes={router:g.a.object.isRequired};var V=W;function q(e){return q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},q(e)}function G(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==q(t)&&"function"!=typeof t?e:t}var K=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=G(this,e.call.apply(e,[this].concat(a))),r.history=z(r.props),G(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+q(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){b()(!this.props.history,"<BrowserRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")},t.prototype.render=function(){return s.a.createElement(V,{history:this.history,children:this.props.children})},t}(s.a.Component);K.propTypes={basename:g.a.string,forceRefresh:g.a.bool,getUserConfirmation:g.a.func,keyLength:g.a.number,children:g.a.node};var $=K,J=n(1462),X=n.n(J),Q={},Z=0,ee=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=Q[n]||(Q[n]={});if(r[e])return r[e];var o=[],a={re:X()(e,o,t),keys:o};return Z<1e4&&(r[e]=a,Z++),a},te=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];"string"==typeof t&&(t={path:t});var r=t,o=r.path,a=r.exact,i=void 0!==a&&a,l=r.strict,s=void 0!==l&&l,c=r.sensitive;if(null==o)return n;var u=ee(o,{end:i,strict:s,sensitive:void 0!==c&&c}),f=u.re,p=u.keys,d=f.exec(e);if(!d)return null;var m=d[0],h=d.slice(1),y=e===m;return i&&!y?null:{path:o,url:"/"===o&&""===m?"/":m,isExact:y,params:p.reduce((function(e,t,n){return e[t.name]=h[n],e}),{})}};function ne(e){return ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ne(e)}var re=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function oe(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==ne(t)&&"function"!=typeof t?e:t}var ae=function(e){return 0===s.a.Children.count(e)},ie=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=oe(this,e.call.apply(e,[this].concat(a))),r.state={match:r.computeMatch(r.props,r.context.router)},oe(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+ne(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getChildContext=function(){return{router:re({},this.context.router,{route:{location:this.props.location||this.context.router.route.location,match:this.state.match}})}},t.prototype.computeMatch=function(e,t){var n=e.computedMatch,r=e.location,o=e.path,a=e.strict,i=e.exact,l=e.sensitive;if(n)return n;Y()(t,"You should not use <Route> or withRouter() outside a <Router>");var s=t.route,c=(r||s.location).pathname;return te(c,{path:o,strict:a,exact:i,sensitive:l},s.match)},t.prototype.componentWillMount=function(){b()(!(this.props.component&&this.props.render),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored"),b()(!(this.props.component&&this.props.children&&!ae(this.props.children)),"You should not use <Route component> and <Route children> in the same route; <Route children> will be ignored"),b()(!(this.props.render&&this.props.children&&!ae(this.props.children)),"You should not use <Route render> and <Route children> in the same route; <Route children> will be ignored")},t.prototype.componentWillReceiveProps=function(e,t){b()(!(e.location&&!this.props.location),'<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),b()(!(!e.location&&this.props.location),'<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(e,t.router)})},t.prototype.render=function(){var e=this.state.match,t=this.props,n=t.children,r=t.component,o=t.render,a=this.context.router,i=a.history,l=a.route,c=a.staticContext,u={match:e,location:this.props.location||l.location,history:i,staticContext:c};return r?e?s.a.createElement(r,u):null:o?e?o(u):null:"function"==typeof n?n(u):n&&!ae(n)?s.a.Children.only(n):null},t}(s.a.Component);ie.propTypes={computedMatch:g.a.object,path:g.a.string,exact:g.a.bool,strict:g.a.bool,sensitive:g.a.bool,component:g.a.func,render:g.a.func,children:g.a.oneOfType([g.a.func,g.a.node]),location:g.a.object},ie.contextTypes={router:g.a.shape({history:g.a.object.isRequired,route:g.a.object.isRequired,staticContext:g.a.object})},ie.childContextTypes={router:g.a.object.isRequired};var le=ie,se=n(3),ce=n(7),ue=n.n(ce),fe=Object(se.c)((function(e){var t=e.className,n=e.children,r=e.label,o=e.style,a=e.store,i=e.sortKey;if(!i)return s.a.createElement("th",{className:t,style:o},s.a.createElement("span",null,r));var l=i===a.sortKey;return s.a.createElement("th",{className:ue()("clickable",t),onClick:function(){return a.sortBy(i)},style:o},s.a.createElement("span",{className:ue()({"th--sorted":l})},r||n,s.a.createElement("i",{className:ue()("far fa-fw",{"fa-sort":!l,"fa-sort-up":l&&a.isAsc,"fa-sort-down":l&&a.isDesc})})))})),pe=function(e){var t=e.store;return s.a.createElement("thead",null,s.a.createElement("tr",null,s.a.createElement(fe,{sortKey:"name",label:"Name",store:t}),s.a.createElement(fe,{className:"data-md",sortKey:"duration",label:"Length",store:t}),s.a.createElement(fe,{className:"data-md",sortKey:"transcribedAt",label:"Transcribed",store:t}),s.a.createElement(fe,{className:"data-md",sortKey:"views",store:t},s.a.createElement("span",null,s.a.createElement("abbr",{title:"How many times the Sonix Media Player was loaded"},"Views"))),s.a.createElement(fe,{className:"data-sm",sortKey:"plays",store:t},s.a.createElement("span",null,s.a.createElement("abbr",{title:"Number of times users pressed play on the Sonix Media Player"},"Plays"))),s.a.createElement(fe,{className:"data-sm",sortKey:"downloads",store:t},s.a.createElement("span",null,s.a.createElement("abbr",{title:"Number of times users pressed play on the Sonix Media Player"},"Downloads"))),s.a.createElement(fe,{className:"data-sm",sortKey:"shares",store:t},s.a.createElement("span",null,s.a.createElement("abbr",{title:"Number of times users pressed play on the Sonix Media Player"},"Shares")))))},de=function(e){var t=e.store;return s.a.createElement("tr",{className:"total"},s.a.createElement("td",{"data-label":"Name"},s.a.createElement("strong",{className:"d-block d-md-none"},"Total ")),s.a.createElement("td",{className:"text-end","data-label":"Length"},"  "),s.a.createElement("td",{className:"text-end","data-label":"Transcribed"},"  "),s.a.createElement("td",{className:"text-end","data-label":"Views"},s.a.createElement("strong",{className:"d-block"},t.totalViews)),s.a.createElement("td",{className:"text-end","data-label":"Plays"},s.a.createElement("strong",{className:"d-block"},t.totalPlays)),s.a.createElement("td",{className:"text-end","data-label":"Downloads"},s.a.createElement("strong",{className:"d-block"},t.totalDownloads)),s.a.createElement("td",{className:"text-end","data-label":"Shares"},s.a.createElement("strong",{className:"d-block"},t.totalShares)))};function me(e){return me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},me(e)}var he=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function ye(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==me(t)&&"function"!=typeof t?e:t}var be=function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)},ve=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=ye(this,e.call.apply(e,[this].concat(a))),r.handleClick=function(e){if(r.props.onClick&&r.props.onClick(e),!e.defaultPrevented&&0===e.button&&!r.props.target&&!be(e)){e.preventDefault();var t=r.context.router.history,n=r.props,o=n.replace,a=n.to;o?t.replace(a):t.push(a)}},ye(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+me(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=(e.replace,e.to),n=e.innerRef,r=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["replace","to","innerRef"]);Y()(this.context.router,"You should not use <Link> outside a <Router>"),Y()(void 0!==t,'You must specify the "to" property');var o=this.context.router.history,a="string"==typeof t?P(t,null,null,o.location):t,i=o.createHref(a);return s.a.createElement("a",he({},r,{onClick:this.handleClick,href:i,ref:n}))},t}(s.a.Component);ve.propTypes={onClick:g.a.func,target:g.a.string,replace:g.a.bool,to:g.a.oneOfType([g.a.string,g.a.object]).isRequired,innerRef:g.a.oneOfType([g.a.string,g.a.func])},ve.defaultProps={replace:!1},ve.contextTypes={router:g.a.shape({history:g.a.shape({push:g.a.func.isRequired,replace:g.a.func.isRequired,createHref:g.a.func.isRequired}).isRequired}).isRequired};var ge=ve,we=n(9),Ee=function(e){var t=e.item;return s.a.createElement("tr",null,s.a.createElement("td",{"data-label":"Name"},s.a.createElement(ge,{className:"link--hover-underline",to:"/analytics/".concat(t.id)},s.a.createElement("div",{className:"text--icon-left"},s.a.createElement("i",{className:"far me-1 "+(t.video?"fa-video":"fa-volume-up")}),t.name))),s.a.createElement("td",{className:"text-end","data-label":"Length"},t.formattedDuration),s.a.createElement("td",{className:"text-end","data-label":"Transcribed"},t.formattedTranscribedAt),s.a.createElement("td",{className:"text-end","data-label":"Views"},Object(we.j)(t.views)),s.a.createElement("td",{className:"text-end","data-label":"Plays"},Object(we.j)(t.plays)),s.a.createElement("td",{className:"text-end","data-label":"Downloads"},Object(we.j)(t.downloads)),s.a.createElement("td",{className:"text-end","data-label":"Shares"},Object(we.j)(t.shares)))},_e=function(){return s.a.createElement("tr",{className:"table-footer"},s.a.createElement("td",{colSpan:"7","data-label":"Extra"},s.a.createElement("div",{className:"row"})))},ke=Object(se.c)((function(e){var t=e.store;return s.a.createElement("table",{className:"table table--data table--simple table--row-hover"},s.a.createElement(pe,{store:t}),s.a.createElement("tbody",null,s.a.createElement(de,{store:t}),t.items.map((function(e){return s.a.createElement(Ee,{item:e,key:e.id})})),s.a.createElement(_e,{store:t})))}));function Oe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function xe(e,t){return xe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xe(e,t)}function Se(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=je(e);if(t){var o=je(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function je(e){return je=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},je(e)}var Ce,De=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xe(e,t)}(a,e);var t,n,r,o=Se(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){return s.a.createElement("div",{className:"col-sm-12 loading-animation-container"},s.a.createElement("div",{className:"loading-animation"},s.a.createElement("div",{className:"line"}),s.a.createElement("div",{className:"line"}),s.a.createElement("div",{className:"line"}),s.a.createElement("div",{className:"line"}),s.a.createElement("div",{className:"line"})))}}])&&Oe(t.prototype,n),r&&Oe(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),Ne=De;function Pe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Te(e,t){return Te=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Te(e,t)}function Me(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ae(e);if(t){var o=Ae(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Ae(e){return Ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ae(e)}var Le,Re,Fe,ze,Be,Ye,Ie,He,Ue,We,Ve,qe,Ge,Ke,$e,Je,Xe=Object(se.b)("store")(Ce=Object(se.c)(Ce=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Te(e,t)}(a,e);var t,n,r,o=Me(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"renderEmptyAnalytics",value:function(){return s.a.createElement("div",{className:"analytics--empty my-5"},s.a.createElement("div",{className:"text--color-meta my-3"},s.a.createElement("i",{className:"fal fa-analytics fa-5x d-block"})),s.a.createElement("h2",{className:"mb-0"},"No stats have been recorded"),s.a.createElement("p",null,s.a.createElement("a",{className:"link--underline",href:"https://sonix.ai/resources/sonix-tutorial-sonix-for-radio-podcasters/",target:"_blank"},"Please embed the Sonix Media Player on your website")," and we'll show you the stats as they roll in."))}},{key:"render",value:function(){var e=this.props.store;return e.loaded?s.a.createElement("div",{className:"row justify-content-start"},s.a.createElement("div",{className:"col-sm-12"},e.items.length?s.a.createElement(ke,{store:e}):this.renderEmptyAnalytics())):s.a.createElement(Ne,null)}}])&&Pe(t.prototype,n),r&&Pe(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||Ce)||Ce,Qe=Xe,Ze=n(22),et=n.n(Ze);function tt(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function nt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function rt(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var ot,at=(Le=d.action.bound,Fe=rt((Re=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),tt(this,"loaded",Fe,this),tt(this,"id",ze,this),tt(this,"name",Be,this),tt(this,"plays",Ye,this),tt(this,"views",Ie,this),tt(this,"downloads",He,this),tt(this,"shares",Ue,this),tt(this,"duration",We,this),tt(this,"formattedDuration",Ve,this),tt(this,"transcribedAt",qe,this),tt(this,"formattedTranscribedAt",Ge,this),tt(this,"referrers",Ke,this),tt(this,"countries",$e,this),tt(this,"heatmap",Je,this),this.id=t}var t,n,r;return t=e,(n=[{key:"loadFromJson",value:function(e){var t=this;Object.keys(e).forEach((function(n){return t[n]=e[n]})),this.loaded=!0}},{key:"fetch",value:function(){var e=this;this.loaded=!1,et.a.get("/analytics/".concat(this.id,".json")).then((function(t){e.loadFromJson(t.data)}))}}])&&nt(t.prototype,n),r&&nt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()).prototype,"loaded",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ze=rt(Re.prototype,"id",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Be=rt(Re.prototype,"name",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ye=rt(Re.prototype,"plays",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ie=rt(Re.prototype,"views",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),He=rt(Re.prototype,"downloads",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ue=rt(Re.prototype,"shares",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=rt(Re.prototype,"duration",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ve=rt(Re.prototype,"formattedDuration",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),qe=rt(Re.prototype,"transcribedAt",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ge=rt(Re.prototype,"formattedTranscribedAt",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ke=rt(Re.prototype,"referrers",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),$e=rt(Re.prototype,"countries",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Je=rt(Re.prototype,"heatmap",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),rt(Re.prototype,"fetch",[Le],Object.getOwnPropertyDescriptor(Re.prototype,"fetch"),Re.prototype),Re);function it(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function lt(e,t){return lt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lt(e,t)}function st(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ct(e);if(t){var o=ct(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function ct(e){return ct=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ct(e)}var ut,ft=function(e){var t=e.idx,n=e.referrer,r=e.count;return s.a.createElement("tr",null,s.a.createElement("td",{className:"text-end"},t+1),s.a.createElement("td",{className:"td--nowrap"},n?s.a.createElement("a",{className:"",href:n,target:"_blank"},s.a.createElement("i",{className:"far fa-external-link fa-fw fa-sm me-2"}),n):"Direct"),s.a.createElement("td",{className:"text-end"},r))},pt=Object(se.c)(ot=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lt(e,t)}(a,e);var t,n,r,o=st(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props.item;return s.a.createElement("div",{className:"col-sm-12 col-md-6"},s.a.createElement("h4",{className:"text--color-meta text--header font--sans-serif my-2"},"Top 10 Referrers"),s.a.createElement("div",{className:"card"},s.a.createElement("div",{className:"card-body"},s.a.createElement("table",{className:"table table--data table--simple table-striped table--row-hover"},s.a.createElement("thead",null,s.a.createElement("tr",null,s.a.createElement("th",{width:"5%",className:"text-end"},"#"),s.a.createElement("th",null,"Referring URL"),s.a.createElement("th",{width:"20%",className:"text-end"},"Visits"))),s.a.createElement("tbody",null,e.referrers.map((function(e,t){return s.a.createElement(ft,{key:t,idx:t,referrer:e.referrer,count:e.count})})))))))}}])&&it(t.prototype,n),r&&it(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||ot,dt=pt;function mt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function ht(e,t){return ht=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ht(e,t)}function yt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bt(e);if(t){var o=bt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function bt(e){return bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bt(e)}var vt,gt=function(e){var t=e.idx,n=e.country,r=e.count,o=e.code,a="flag-icon-".concat(o);return s.a.createElement("tr",null,s.a.createElement("td",{className:"text-end"},t+1),s.a.createElement("td",{className:"td--nowrap"},s.a.createElement("i",{className:"flag-icon me-2 "+a}),n),s.a.createElement("td",{className:"text-end"},r))},wt=Object(se.c)(ut=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ht(e,t)}(a,e);var t,n,r,o=yt(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props.item;return s.a.createElement("div",{className:"col-sm-12 col-md-6"},s.a.createElement("h4",{className:"text--color-meta text--header font--sans-serif my-2"},"Top 10 Countries"),s.a.createElement("div",{className:"card"},s.a.createElement("div",{className:"card-body"},s.a.createElement("table",{className:"table table--data table--simple table-striped table--row-hover"},s.a.createElement("thead",null,s.a.createElement("tr",null,s.a.createElement("th",{width:"5%",className:"text-end"},"#"),s.a.createElement("th",null,"Country"),s.a.createElement("th",{width:"20%",className:"text-end"},"Visits"))),s.a.createElement("tbody",null,e.countries.map((function(e,t){return s.a.createElement(gt,{key:t,idx:t,country:e.country,count:e.count,code:e.code})})))))))}}])&&mt(t.prototype,n),r&&mt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||ut,Et=wt;function _t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function kt(e,t){return kt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},kt(e,t)}function Ot(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=xt(e);if(t){var o=xt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function xt(e){return xt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xt(e)}var St,jt,Ct,Dt,Nt,Pt,Tt=Object(se.c)(vt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kt(e,t)}(a,e);var t,n,r,o=Ot(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props.item;return s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col-sm-6 col-md-3"},s.a.createElement("div",{className:"card card-title"},s.a.createElement("div",{className:"card-body"},s.a.createElement("span",{className:"text--size-1600rem"},Object(we.j)(e.views)),s.a.createElement("sup",null,"Views")))),s.a.createElement("div",{className:"col-sm-6 col-md-3"},s.a.createElement("div",{className:"card card-title"},s.a.createElement("div",{className:"card-body"},s.a.createElement("span",{className:"text--size-1600rem"},Object(we.j)(e.plays)),s.a.createElement("sup",null,"Plays")))),s.a.createElement("div",{className:"col-sm-6 col-md-3"},s.a.createElement("div",{className:"card card-title"},s.a.createElement("div",{className:"card-body"},s.a.createElement("span",{className:"text--size-1600rem"},Object(we.j)(e.downloads)),s.a.createElement("sup",null,"Downloads")))),s.a.createElement("div",{className:"col-sm-6 col-md-3"},s.a.createElement("div",{className:"card card-title"},s.a.createElement("div",{className:"card-body"},s.a.createElement("span",{className:"text--size-1600rem"},Object(we.j)(e.shares)),s.a.createElement("sup",null,"Shares")))))}}])&&_t(t.prototype,n),r&&_t(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||vt,Mt=Tt;function At(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Lt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Rt(e,t){return Rt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Rt(e,t)}function Ft(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Bt(e);if(t){var o=Bt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return zt(e)}(this,n)}}function zt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bt(e){return Bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Bt(e)}function Yt(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var It,Ht,Ut,Wt=function(e){var t=e.width,n=e.alpha;return s.a.createElement("div",{className:"stats--bar-segment ",style:{backgroundColor:"rgba(".concat(19,", ").concat(85,", ").concat(137,", ").concat(n,")"),width:"".concat(t,"%")}},t)},Vt=(St=d.action.bound,jt=d.action.bound,Object(se.c)((Dt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rt(e,t)}(a,e);var t,n,r,o=Ft(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return At(e=o.call.apply(o,[this].concat(n)),"intent",Nt,zt(e)),At(e,"heatmapItem",Pt,zt(e)),e}return t=a,(n=[{key:"getXPosition",value:function(e){var t=this.props.item.duration,n=this.progressBarEl.getBoundingClientRect(),r=void 0!==window.pageXOffset?window.pageXOffset:(document.documentElement||document.body.parentNode||document.body).scrollLeft,o=e-(n.left+r);return o=Math.max(o,0),(o=Math.min(o,n.width))/n.width*t}},{key:"handleSeek",value:function(e){this.props.onPosChange(this.getXPosition(e.pageX),{seeking:!0})}},{key:"handleHover",value:function(e){var t=this;this.intent=this.getXPosition(e.pageX),this.heatmapItem=this.props.item.heatmap.find((function(e){return e.time>=t.intent}))}},{key:"renderStyle",value:function(){var e=this.props.item.duration,t=(this.intent/e*100).toFixed(2);return s.a.createElement("style",{type:"text/css"},"\n          .stats--intent .stats--intent-progress{\n            width: ".concat(t,"% !important;\n            bottom: 1.75rem;\n            background-color: rgba(").concat(19,", ").concat(85,", ").concat(137,", ").concat(1,");\n          }\n          .stats--intent .stats--intent-progress span {\n            border-color: rgba(").concat(19,", ").concat(85,", ").concat(137,", ").concat(1,");\n            background-color: rgba(").concat(19,", ").concat(85,", ").concat(137,", ").concat(1,");\n            color: ").concat("#FFFFFF",";\n          }\n        "))}},{key:"render",value:function(){var e=this,t=this.props.item;return s.a.createElement("div",{className:"row"},this.renderStyle(),s.a.createElement("div",{className:"col-sm-12"},s.a.createElement("h4",{className:"text--color-meta text--header font--sans-serif mb-0"},"Listener Hotspots"),s.a.createElement("p",{className:"text--color-meta"},"Hover over the heatmap to see number of listens"),s.a.createElement("div",{className:"card"},s.a.createElement("div",{className:"card-body"},s.a.createElement("div",{className:"stats--box stats--box-has-timecode mb-5"},s.a.createElement("div",{className:"stats--timecode stats--timecode-start"},"00:00:00"),s.a.createElement("div",{className:"stats--timecode stats--timecode-end"},Object(we.e)(t.duration)),s.a.createElement("div",{className:"stats--main stats--intent stats--intent-on-hover",onMouseMove:this.handleHover,ref:function(t){return e.progressBarEl=t}},s.a.createElement("div",{className:"stats--bar stats--bar-analytics"},t.heatmap.map((function(e,t){return s.a.createElement(Wt,{key:t,width:e.width,alpha:e.alpha})}))),s.a.createElement("div",{className:"stats--intent-progress"},s.a.createElement("span",{className:"timemarker","data-hover":"".concat(Object(we.e)(this.intent)," • ").concat(this.heatmapItem.listens)})))),s.a.createElement("div",{className:"stats--legend stats--legend-gradient stats--legend-player-heatmap"}," ")))))}}])&&Lt(t.prototype,n),r&&Lt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),Nt=Yt(Dt.prototype,"intent",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Pt=Yt(Dt.prototype,"heatmapItem",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Yt(Dt.prototype,"handleSeek",[St],Object.getOwnPropertyDescriptor(Dt.prototype,"handleSeek"),Dt.prototype),Yt(Dt.prototype,"handleHover",[jt],Object.getOwnPropertyDescriptor(Dt.prototype,"handleHover"),Dt.prototype),Ct=Dt))||Ct),qt=Vt;function Gt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Kt(e,t){return Kt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Kt(e,t)}function $t(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Xt(e);if(t){var o=Xt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Jt(e)}(this,n)}}function Jt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xt(e){return Xt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Xt(e)}var Qt,Zt,en,tn,nn,rn,on,an,ln,sn,cn,un,fn,pn,dn,mn,hn,yn,bn=Object(se.c)((Ht=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kt(e,t)}(a,e);var t,n,r,o=$t(a);function a(){var e,t,n,r,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var l=arguments.length,s=new Array(l),c=0;c<l;c++)s[c]=arguments[c];return e=o.call.apply(o,[this].concat(s)),t=e,n="item",r=Ut,i=Jt(e),r&&Object.defineProperty(t,n,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0}),e}return t=a,(n=[{key:"componentWillMount",value:function(){var e=this.props.match.params;this.item=new at(e.itemId),this.item.fetch()}},{key:"render",value:function(){return this.item.loaded?s.a.createElement("div",{className:"row justify-content-start"},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement("h3",null,this.item.name),s.a.createElement("p",{className:"text--color-meta text--size-800rem mb-3"},this.item.video?s.a.createElement("span",null,s.a.createElement("i",{className:"far fa-video"})," Video"):s.a.createElement("span",null,s.a.createElement("i",{className:"far fa-volume-up"})," Audio")," • ",this.item.formattedDuration," •  Transcribed on: ",this.item.formattedTranscribedAt," • ",s.a.createElement("a",{href:"/analytics",className:"link--hover-underline"},s.a.createElement("i",{className:"far fa-arrow-left fa-fw me-1"}),"Back to analytics")," • ",s.a.createElement("a",{href:"/recordings/".concat(this.item.id),className:"link--hover-underline",target:"_blank"},s.a.createElement("i",{className:"far fa-external-link fa-fw me-1"}),"Go to transcript")),s.a.createElement(Mt,{item:this.item}),s.a.createElement(qt,{item:this.item}),s.a.createElement("div",{className:"row"},s.a.createElement(Et,{item:this.item}),s.a.createElement(dt,{item:this.item})))):s.a.createElement(Ne,null)}}])&&Gt(t.prototype,n),r&&Gt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),Qt=Ht.prototype,Zt="item",en=[d.observable],tn={configurable:!0,enumerable:!0,writable:!0,initializer:null},rn={},Object.keys(tn).forEach((function(e){rn[e]=tn[e]})),rn.enumerable=!!rn.enumerable,rn.configurable=!!rn.configurable,("value"in rn||rn.initializer)&&(rn.writable=!0),rn=en.slice().reverse().reduce((function(e,t){return t(Qt,Zt,e)||e}),rn),nn&&void 0!==rn.initializer&&(rn.value=rn.initializer?rn.initializer.call(nn):void 0,rn.initializer=void 0),void 0===rn.initializer&&(Object.defineProperty(Qt,Zt,rn),rn=null),Ut=rn,It=Ht))||It,vn=bn;function gn(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function wn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function En(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var _n=(on=d.action.bound,an=d.action.bound,ln=d.action.bound,sn=d.action.bound,cn=d.action.bound,fn=En((un=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),gn(this,"preferences",fn,this),gn(this,"askUserSurvey",pn,this),gn(this,"totalCredit",dn,this),gn(this,"name",mn,this),gn(this,"firstName",hn,this),gn(this,"skipQualityScorePopup",yn,this),this.hasCreditFor=function(e){return!(!n.isSubscribed||n.payByCheck)||e<n.totalCredit},this.canUseAiAnalysis=function(e){var t=n.isSubscribed||n.enterpriseTrial;return!n.reachedTrialSummarizationLimit||t&&(n.hasRecurringSummarizationCredit||n.summarizationCreditRemaining>e)},et.a.defaults.headers.common["X-CSRF-TOKEN"]=window.authToken,this.loggedIn=t.loggedIn,this.name=t.name,this.firstName=t.firstName,this.email=t.email,this.accountName=t.accountName,this.isAffiliate=t.isAffiliate,this.exportSettings=t.exportSettings,this.numFilesUploaded=t.numFilesUploaded,this.isEduEmail=t.isEduEmail,this.freeSeconds=parseFloat(t.freeSeconds),this.paidCredit=t.paidCredit,this.hasFreeCredit=t.hasFreeCredit,this.totalCredit=t.totalCredit,this.isCustomer=t.isCustomer,this.isSubscribed=t.isSubscribed,this.isPayG=t.isPayG,this.payByCheck=t.payByCheck,this.enterpriseTrial=t.enterpriseTrial,this.storagePlan=t.storagePlan,this.hasPatreonAccount=t.hasPatreonAccount,this.specialPricingPlan=t.specialPricingPlan,this.pricePerHour=t.pricePerHour||0,this.multitrackEnabled=t.multitrackEnabled,this.existingTranscriptEnabled=t.existingTranscriptEnabled,this.teamAccount=t.teamAccount,this.role=t.role,this.canUpload=t.canUpload,this.hasFolders=t.hasFolders,this.preferences=Object.assign({},e.defaultPreferences,t.preferences),this.askUserSurvey=t.askUserSurvey,this.sendTranscriptionEndEmails=t.sendTranscriptionEndEmails,this.skipQualityScorePopup=t.skipQualityScorePopup,this.hasCustomStatusTags=t.hasCustomStatusTags,this.hasVersionHistory=t.hasVersionHistory,this.sharingEnabled=this.isSubscribed||t.sharingEnabled,this.useStandardTranscriptionModel=t.useStandardTranscriptionModel,this.allowingChoosingTranscriptionModel=t.allowingChoosingTranscriptionModel,this.disableTranslation=t.disableTranslation,this.disableAi=t.disableAi,this.blockYouTube=t.blockYouTube,this.reachedTrialSummarizationLimit=t.reachedTrialSummarizationLimit,this.hasRecurringSummarizationCredit=t.hasRecurringSummarizationCredit,this.summarizationAddOnEnabled=t.summarizationAddOnEnabled,this.summarizationCreditRemaining=t.summarizationCreditRemaining,this.summarizationCreditRemainingFormatted=t.summarizationCreditRemainingFormatted,this.hasTranscriptionQuota=t.hasTranscriptionQuota,this.transcriptionQuotaHours=t.transcriptionQuotaHours,this.transcriptionQuotaRemaining=t.transcriptionQuotaRemaining,this.transcriptionUsage=t.transcriptionUsage}var t,n,r;return t=e,(n=[{key:"updateSummarizationData",value:function(e){this.reachedTrialSummarizationLimit=e.reachedTrialSummarizationLimit,this.hasRecurringSummarizationCredit=e.hasRecurringSummarizationCredit,this.summarizationCreditRemaining=e.summarizationCreditRemaining,this.summarizationCreditRemainingFormatted=e.summarizationCreditRemainingFormatted}},{key:"togglePreference",value:function(e){this.preferences[e]=!this.preferences[e]}},{key:"removeCredit",value:function(e){this.totalCredit=this.totalCredit-e}},{key:"savePreferences",value:function(e){return this.preferences=e,et.a.put("/editor_preferences",{preferences:this.preferences})}},{key:"toggleSkipQualityScorePopup",value:function(){return this.skipQualityScorePopup=!this.skipQualityScorePopup,et.a.put("/user",{user:{skip_quality_score_popup:this.skipQualityScorePopup}})}},{key:"showPermissions",get:function(){return this.teamAccount}},{key:"canEditPermissions",get:function(){return this.teamAccount&&this.isAdmin}},{key:"isTrial",get:function(){return!this.isCustomer}},{key:"isAdmin",get:function(){return"owner"===this.role}},{key:"canDoBulkActions",get:function(){return"owner"===this.role||"producer"===this.role}},{key:"isExternal",get:function(){return"external_editor"===this.role||"external_viewer"===this.role}}])&&wn(t.prototype,n),r&&wn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()).prototype,"preferences",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),pn=En(un.prototype,"askUserSurvey",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),dn=En(un.prototype,"totalCredit",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),mn=En(un.prototype,"name",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),hn=En(un.prototype,"firstName",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),yn=En(un.prototype,"skipQualityScorePopup",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),En(un.prototype,"updateSummarizationData",[on],Object.getOwnPropertyDescriptor(un.prototype,"updateSummarizationData"),un.prototype),En(un.prototype,"togglePreference",[an],Object.getOwnPropertyDescriptor(un.prototype,"togglePreference"),un.prototype),En(un.prototype,"removeCredit",[ln],Object.getOwnPropertyDescriptor(un.prototype,"removeCredit"),un.prototype),En(un.prototype,"savePreferences",[sn],Object.getOwnPropertyDescriptor(un.prototype,"savePreferences"),un.prototype),En(un.prototype,"toggleSkipQualityScorePopup",[cn],Object.getOwnPropertyDescriptor(un.prototype,"toggleSkipQualityScorePopup"),un.prototype),En(un.prototype,"showPermissions",[d.computed],Object.getOwnPropertyDescriptor(un.prototype,"showPermissions"),un.prototype),En(un.prototype,"canEditPermissions",[d.computed],Object.getOwnPropertyDescriptor(un.prototype,"canEditPermissions"),un.prototype),En(un.prototype,"isTrial",[d.computed],Object.getOwnPropertyDescriptor(un.prototype,"isTrial"),un.prototype),En(un.prototype,"isAdmin",[d.computed],Object.getOwnPropertyDescriptor(un.prototype,"isAdmin"),un.prototype),En(un.prototype,"canDoBulkActions",[d.computed],Object.getOwnPropertyDescriptor(un.prototype,"canDoBulkActions"),un.prototype),En(un.prototype,"isExternal",[d.computed],Object.getOwnPropertyDescriptor(un.prototype,"isExternal"),un.prototype),un);_n.defaultPreferences={action_bubble:!0,auto_capitalize:!0,auto_pause:!1,auto_save:!0,click_to_skip:!0,high_contrast:!1,include_filename_on_copy:!1,include_speaker_name_on_copy:!0,include_timestamps_on_copy:!1,paginate_transcripts:!1,smart_paragraphs:!0,highlight_invalid_timestamps:!1,alert_for_large_pastes:!0};var kn,On,xn,Sn,jn,Cn,Dn,Nn,Pn=_n;function Tn(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Mn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function An(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var Ln=function(e){return function(t,n){return n[e]-t[e]}},Rn=(kn=d.action.bound,On=d.action.bound,xn=d.action.bound,jn=An((Sn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Tn(this,"items",jn,this),Tn(this,"loaded",Cn,this),Tn(this,"sortDirection",Dn,this),Tn(this,"sortKey",Nn,this),this.sorters={views:Ln("views"),downloads:Ln("downloads"),shares:Ln("shares"),plays:Ln("plays"),duration:Ln("duration"),transcribedAt:Ln("transcribedAt"),name:function(e,t){var n=e.name.toLowerCase(),r=t.name.toLowerCase();return n<r?1:n>r?-1:0}},this.fetch()}var t,n,r;return t=e,(n=[{key:"loadFromJson",value:function(e){var t=this;this.items=[],e.items.forEach((function(e){var n=new at(e.id);n.loadFromJson(e),t.items.push(n)})),this.sort()}},{key:"fetch",value:function(){var e=this;this.loaded=!1,et.a.get("/analytics.json").then((function(t){e.loadFromJson(t.data),e.loaded=!0}))}},{key:"isAsc",get:function(){return"asc"===this.sortDirection}},{key:"isDesc",get:function(){return"desc"===this.sortDirection}},{key:"sortBy",value:function(e){e===this.sortKey?this.sortDirection=this.isAsc?"desc":"asc":(this.sortDirection="desc",this.sortKey=e),this.sort()}},{key:"sort",value:function(){this.items=this.items.sort(this.sorters[this.sortKey]),this.isAsc&&(this.items=this.items.reverse())}},{key:"totalViews",get:function(){return this.items.reduce((function(e,t){return e+t.views}),0)}},{key:"totalDownloads",get:function(){return this.items.reduce((function(e,t){return e+t.downloads}),0)}},{key:"totalPlays",get:function(){return this.items.reduce((function(e,t){return e+t.plays}),0)}},{key:"totalShares",get:function(){return this.items.reduce((function(e,t){return e+t.shares}),0)}}])&&Mn(t.prototype,n),r&&Mn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()).prototype,"items",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Cn=An(Sn.prototype,"loaded",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Dn=An(Sn.prototype,"sortDirection",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"asc"}}),Nn=An(Sn.prototype,"sortKey",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"name"}}),An(Sn.prototype,"fetch",[kn],Object.getOwnPropertyDescriptor(Sn.prototype,"fetch"),Sn.prototype),An(Sn.prototype,"isAsc",[d.computed],Object.getOwnPropertyDescriptor(Sn.prototype,"isAsc"),Sn.prototype),An(Sn.prototype,"isDesc",[d.computed],Object.getOwnPropertyDescriptor(Sn.prototype,"isDesc"),Sn.prototype),An(Sn.prototype,"sortBy",[On],Object.getOwnPropertyDescriptor(Sn.prototype,"sortBy"),Sn.prototype),An(Sn.prototype,"sort",[xn],Object.getOwnPropertyDescriptor(Sn.prototype,"sort"),Sn.prototype),An(Sn.prototype,"totalViews",[d.computed],Object.getOwnPropertyDescriptor(Sn.prototype,"totalViews"),Sn.prototype),An(Sn.prototype,"totalDownloads",[d.computed],Object.getOwnPropertyDescriptor(Sn.prototype,"totalDownloads"),Sn.prototype),An(Sn.prototype,"totalPlays",[d.computed],Object.getOwnPropertyDescriptor(Sn.prototype,"totalPlays"),Sn.prototype),An(Sn.prototype,"totalShares",[d.computed],Object.getOwnPropertyDescriptor(Sn.prototype,"totalShares"),Sn.prototype),Sn),Fn=function(){var e=new Pn(window.userData),t=new Rn;u.a.render(s.a.createElement(se.a,{store:t,user:e},s.a.createElement($,null,s.a.createElement("div",null,s.a.createElement(le,{exact:!0,path:"/analytics",component:Qe}),s.a.createElement(le,{path:"/analytics/:itemId",component:vn})))),document.getElementById("analytics"))},zn=n(28),Bn=n.n(zn),Yn=n(417),In=n(477),Hn=n.n(In),Un=Object(se.c)((function(e){var t=e.folder,n=e.user;return s.a.createElement("tr",null,s.a.createElement("th",{className:"text-start px-1",style:{width:"4rem",fontSize:"1rem"}},n.canDoBulkActions&&s.a.createElement("a",{className:"px-0 clickable",onClick:t.toggleMultiSelect,"data-balloon":"Select multiple files","data-balloon-pos":"right"},s.a.createElement("i",{className:ue()("far fa-fw",{"far fa-square":!t.multiSelectEnabled,"fas fa-check-square":t.multiSelectEnabled})}))),s.a.createElement(fe,{className:"text-start px-1",sortKey:"name",label:"Name",store:t,style:{width:"auto"}}),s.a.createElement(fe,{className:"text-start px-1",sortKey:"status",label:"Label",store:t,style:{width:"9.5rem"}}),s.a.createElement(fe,{className:"text-end px-1",sortKey:"duration",label:"Length",store:t,style:{width:"6rem"}}),s.a.createElement(fe,{className:"text-end px-2",sortKey:"createdAt",label:"Uploaded",store:t,style:{width:"7rem"}}))})),Wn=n(431),Vn=n.n(Wn),qn=n(419),Gn=n.n(qn),Kn=n(429),$n=n.n(Kn),Jn=n(432),Xn=n.n(Jn),Qn=n(441),Zn=n.n(Qn),er=n(442),tr=n.n(er),nr=n(443),rr=n.n(nr),or=n(444),ar=n.n(or),ir=n(1464),lr=n.n(ir);function sr(e,t){!function e(n,r,o,a){Array.isArray(n)&&(n=n.filter((function(e){return!!e}))),l.Children.forEach(n,(function(n,i){var l=r+"-"+i;o.push(l);var s=[];n.props.children&&n.type&&n.type.isTreeNode&&e(n.props.children,l,s,l),t(n,i,l,n.key||l,s,a)}))}(e,0,[])}function cr(e,t,n){!function t(r){r.childrenPos.forEach((function(r){var o=e[r];o.disableCheckbox||o.disabled||(o.halfChecked=!1,o.checked=n),t(o)}))}(e[t]);!function t(n){if(n.parentPos){var r=e[n.parentPos],o=r.childrenPos.length,a=0;r.childrenPos.forEach((function(t){e[t].disableCheckbox?o-=1:!0===e[t].checked?a++:!0===e[t].halfChecked&&(a+=.5)})),a===o?(r.checked=!0,r.halfChecked=!1):a>0?(r.halfChecked=!0,r.checked=!1):(r.checked=!1,r.halfChecked=!1),t(r)}}(e[t])}function ur(e){var t=[],n=[],r=[],o=[];return Object.keys(e).forEach((function(a){var i=e[a];i.checked?(n.push(i.key),r.push(i.node),o.push({node:i.node,pos:a})):i.halfChecked&&t.push(i.key)})),{halfCheckedKeys:t,checkedKeys:n,checkedNodes:r,checkedNodesPositions:o}}function fr(e,t){return e.every((function(e,n){return e===t[n]}))}function pr(){}var dr={rcTree:g.a.shape({selectable:g.a.bool})},mr=function(e){function t(e){Zn()(this,t);var n=rr()(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));hr.call(n);var r=n.calcCheckedKeys(e);return n.state={expandedKeys:n.calcExpandedKeys(e),checkedKeys:r.checkedKeys,halfCheckedKeys:r.halfCheckedKeys,selectedKeys:n.calcSelectedKeys(e),dragNodesKeys:"",dragOverNodeKey:"",dropNodeKey:""},n}return ar()(t,e),tr()(t,[{key:"getChildContext",value:function(){return{rcTree:{selectable:this.props.selectable}}}},{key:"componentWillReceiveProps",value:function(e){var t=this.props,n={},r=e.expandedKeys!==t.expandedKeys?this.calcExpandedKeys(e,!0):void 0;r&&(n.expandedKeys=r);var o=e.checkedKeys!==t.checkedKeys||t.loadData?this.calcCheckedKeys(e,!0):void 0;o&&(n.checkedKeys=o.checkedKeys,n.halfCheckedKeys=o.halfCheckedKeys);var a=e.selectedKeys!==t.selectedKeys?this.calcSelectedKeys(e,!0):void 0;a&&(n.selectedKeys=a),this.setState(n)}},{key:"onDragStart",value:function(e,t){this.dragNode=t;var n={dragNodesKeys:this.getDragNodesKeys(t)},r=this.getExpandedKeys(t,!1);r&&(n.expandedKeys=r),this.setState(n),this.props.onDragStart({event:e,node:t})}},{key:"onDragEnter",value:function(e,t){var n=this,r=this.calcDropPosition(e,t);this.dragNode.props.eventKey!==t.props.eventKey||0!==r?(this.setState({dragOverNodeKey:t.props.eventKey,dropPosition:r}),this.delayedDragEnterLogic||(this.delayedDragEnterLogic={}),Object.keys(this.delayedDragEnterLogic).forEach((function(e){clearTimeout(n.delayedDragEnterLogic[e])})),this.delayedDragEnterLogic[t.props.pos]=setTimeout((function(){var r=n.getExpandedKeys(t,!0);r&&n.setState({expandedKeys:r}),n.props.onDragEnter({event:e,node:t,expandedKeys:r&&[].concat(Xn()(r))||[].concat(Xn()(n.state.expandedKeys))})}),400)):this.setState({dragOverNodeKey:"",dropPosition:null})}},{key:"onDragOver",value:function(e,t){this.props.onDragOver({event:e,node:t})}},{key:"onDragLeave",value:function(e,t){this.props.onDragLeave({event:e,node:t})}},{key:"onDrop",value:function(e,t){var n=this.state,r=t.props.eventKey;if(this.setState({dragOverNodeKey:"",dropNodeKey:r}),n.dragNodesKeys.indexOf(r)>-1)lr()(!1,"Can not drop to dragNode(include it's children node)");else{var o=t.props.pos.split("-"),a={event:e,node:t,dragNode:this.dragNode,dragNodesKeys:[].concat(Xn()(n.dragNodesKeys)),dropPosition:n.dropPosition+Number(o[o.length-1])};0!==n.dropPosition&&(a.dropToGap=!0),this.props.onDrop(a)}}},{key:"onDragEnd",value:function(e,t){this.setState({dragOverNodeKey:""}),this.props.onDragEnd({event:e,node:t})}},{key:"onExpand",value:function(e){var t=this,n=this.props,r=this.state,o=!e.props.expanded,a=[].concat(Xn()(r.expandedKeys)),i=e.props.eventKey,l=a.indexOf(i);o&&-1===l?a.push(i):!o&&l>-1&&a.splice(l,1);var s="expandedKeys"in n;if(s||this.setState({expandedKeys:a}),n.onExpand(a,{node:e,expanded:o}),o&&n.loadData)return n.loadData(e).then((function(){s||t.setState({expandedKeys:a})}))}},{key:"onSelect",value:function(e){var t=this.props,n=this.state,r=e.props.eventKey,o=!e.props.selected,a=[].concat(Xn()(n.selectedKeys));if(o)t.multiple?a.push(r):a=[r];else{var i=a.indexOf(r);a.splice(i,1)}var l=[];a.length&&sr(t.children,(function(e){-1!==a.indexOf(e.key)&&l.push(e)})),"selectedKeys"in t||this.setState({selectedKeys:a});var s={event:"select",selected:o,node:e,selectedNodes:l};t.onSelect(a,s)}},{key:"onMouseEnter",value:function(e,t){this.props.onMouseEnter({event:e,node:t})}},{key:"onMouseLeave",value:function(e,t){this.props.onMouseLeave({event:e,node:t})}},{key:"onContextMenu",value:function(e,t){this.props.onRightClick({event:e,node:t})}},{key:"getOpenTransitionName",value:function(){var e=this.props,t=e.openTransitionName,n=e.openAnimation;return t||"string"!=typeof n?t:e.prefixCls+"-open-"+n}},{key:"getDragNodesKeys",value:function(e){var t=[],n=e.props.pos.split("-");return sr(e.props.children,(function(r,o,a,i){var l=a.split("-");(e.props.pos===a||n.length<l.length&&fr(n,l))&&t.push(i)})),t.push(e.props.eventKey||e.props.pos),t}},{key:"getExpandedKeys",value:function(e,t){var n=e.props.eventKey,r=this.state.expandedKeys,o=r.indexOf(n);if(!t&&o>-1){var a=[].concat(Xn()(r));return a.splice(o,1),a}if(t&&-1===r.indexOf(n))return r.concat([n])}},{key:"generateTreeNodesStates",value:function(e,t){var n=[],r={};return sr(e,(function(e,o,a,i,l,s){r[a]={node:e,key:i,checked:!1,halfChecked:!1,disabled:e.props.disabled,disableCheckbox:e.props.disableCheckbox,childrenPos:l,parentPos:s},-1!==t.indexOf(i)&&(r[a].checked=!0,n.push(a))})),n.forEach((function(e){cr(r,e,!0)})),r}},{key:"calcExpandedKeys",value:function(e,t){var n=e.expandedKeys||(t?void 0:e.defaultExpandedKeys);if(n){var r=!t&&e.defaultExpandAll;if(!r&&!e.autoExpandParent)return n;var o=[];e.autoExpandParent&&sr(e.children,(function(e,t,r,a){n.indexOf(a)>-1&&o.push(r)}));var a={};sr(e.children,(function(t,n,i,l){if(r)a[l]=!0;else if(e.autoExpandParent){o.some((function(e){return fr(i.split("-"),e.split("-"))}))&&(a[l]=!0)}}));var i=Object.keys(a);return i.length?i:n}}},{key:"calcCheckedKeys",value:function(e,t){if(!e.checkable)return{checkedKeys:[],halfCheckedKeys:[]};var n=e.checkedKeys||(t&&!e.loadData?void 0:e.defaultCheckedKeys);if(n){if(Array.isArray(n)?n={checkedKeys:n,halfCheckedKeys:[]}:"object"===(void 0===n?"undefined":$n()(n))&&(n={checkedKeys:n.checked,halfCheckedKeys:n.halfChecked}),!e.checkStrictly){var r=n.checkedKeys||[];return ur(this.generateTreeNodesStates(e.children,r))}return n}}},{key:"calcSelectedKeys",value:function(e,t){var n=e.selectedKeys||(t?void 0:e.defaultSelectedKeys);if(n)return e.multiple?[].concat(Xn()(n)):n.length?[n[0]]:n}},{key:"calcDropPosition",value:function(e,t){var n=function(e){if(!e.getClientRects().length)return{top:0,left:0};var t=e.getBoundingClientRect();if(t.width||t.height){var n=e.ownerDocument,r=n.defaultView,o=n.documentElement;return{top:t.top+r.pageYOffset-o.clientTop,left:t.left+r.pageXOffset-o.clientLeft}}return t}(t.selectHandle).top,r=t.selectHandle.offsetHeight,o=e.pageY;return o>n+r-2?1:o<n+2?-1:0}},{key:"renderTreeNode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.state,o=this.props,a=n+"-"+t,i=e.key||a,l={root:this,eventKey:i,pos:a,loadData:o.loadData,prefixCls:o.prefixCls,showIcon:o.showIcon,draggable:o.draggable,dragOver:r.dragOverNodeKey===i&&0===r.dropPosition,dragOverGapTop:r.dragOverNodeKey===i&&-1===r.dropPosition,dragOverGapBottom:r.dragOverNodeKey===i&&1===r.dropPosition,expanded:-1!==r.expandedKeys.indexOf(i),selected:-1!==r.selectedKeys.indexOf(i),openTransitionName:this.getOpenTransitionName(),openAnimation:o.openAnimation,filterTreeNode:this.filterTreeNode};return o.checkable&&(l.checkable=o.checkable,l.checked=-1!==r.checkedKeys.indexOf(i),l.halfChecked=-1!==r.halfCheckedKeys.indexOf(i)),s.a.cloneElement(e,l)}},{key:"render",value:function(){var e=this.props,t=ue()(e.prefixCls,e.className,Gn()({},e.prefixCls+"-show-line",e.showLine)),n={};return e.focusable&&(n.tabIndex="0",n.onKeyDown=this.onKeyDown),s.a.createElement("ul",Vn()({},n,{className:t,role:"tree-node",unselectable:"on"}),s.a.Children.map(e.children,this.renderTreeNode,this))}}]),t}(s.a.Component);mr.propTypes={prefixCls:g.a.string,children:g.a.any,showLine:g.a.bool,showIcon:g.a.bool,selectable:g.a.bool,multiple:g.a.bool,checkable:g.a.oneOfType([g.a.bool,g.a.node]),checkStrictly:g.a.bool,draggable:g.a.bool,autoExpandParent:g.a.bool,defaultExpandAll:g.a.bool,defaultExpandedKeys:g.a.arrayOf(g.a.string),expandedKeys:g.a.arrayOf(g.a.string),defaultCheckedKeys:g.a.arrayOf(g.a.string),checkedKeys:g.a.oneOfType([g.a.arrayOf(g.a.string),g.a.object]),defaultSelectedKeys:g.a.arrayOf(g.a.string),selectedKeys:g.a.arrayOf(g.a.string),onExpand:g.a.func,onCheck:g.a.func,onSelect:g.a.func,loadData:g.a.func,onMouseEnter:g.a.func,onMouseLeave:g.a.func,onRightClick:g.a.func,onDragStart:g.a.func,onDragEnter:g.a.func,onDragOver:g.a.func,onDragLeave:g.a.func,onDrop:g.a.func,onDragEnd:g.a.func,filterTreeNode:g.a.func,openTransitionName:g.a.string,openAnimation:g.a.oneOfType([g.a.string,g.a.object])},mr.childContextTypes=dr,mr.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,checkStrictly:!1,draggable:!1,autoExpandParent:!0,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],onExpand:pr,onCheck:pr,onSelect:pr,onDragStart:pr,onDragEnter:pr,onDragOver:pr,onDragLeave:pr,onDrop:pr,onDragEnd:pr,onMouseEnter:pr,onMouseLeave:pr,onRightClick:pr};var hr=function(){var e=this;this.onCheck=function(t){var n=e.props,r=e.state,o=!t.props.checked||t.props.halfChecked,a={event:"check",node:t,checked:o};if(n.checkStrictly){var i=t.props.eventKey,l=[].concat(Xn()(r.checkedKeys)),s=l.indexOf(i);o&&-1===s&&l.push(i),!o&&s>-1&&l.splice(s,1),a.checkedNodes=[],sr(n.children,(function(e){-1!==l.indexOf(e.key)&&a.checkedNodes.push(e)})),"checkedKeys"in n||e.setState({checkedKeys:l}),n.onCheck(function(e,t){return t?{checked:e,halfChecked:t}:e}(l,r.halfCheckedKeys),a)}else{var c=e.generateTreeNodesStates(n.children,r.checkedKeys);c[t.props.pos].checked=o,c[t.props.pos].halfChecked=!1,cr(c,t.props.pos,o);var u=ur(c);a.checkedNodes=u.checkedNodes,a.checkedNodesPositions=u.checkedNodesPositions,a.halfCheckedKeys=u.halfCheckedKeys,"checkedKeys"in n||e.setState({checkedKeys:u.checkedKeys,halfCheckedKeys:u.halfCheckedKeys}),n.onCheck(u.checkedKeys,a)}},this.onKeyDown=function(e){e.preventDefault()},this.filterTreeNode=function(t){var n=e.props.filterTreeNode;return"function"==typeof n&&!t.props.disabled&&n.call(e,t)}},yr=mr,br=function(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");return"function"!=typeof t.componentWillReceiveProps?e:s.a.Profiler?(t.UNSAFE_componentWillReceiveProps=t.componentWillReceiveProps,delete t.componentWillReceiveProps,e):e};function vr(e){var t=[];return s.a.Children.forEach(e,(function(e){t.push(e)})),t}function gr(e,t){var n=null;return e&&e.forEach((function(e){n||e&&e.key===t&&(n=e)})),n}function wr(e,t,n){var r=null;return e&&e.forEach((function(e){if(e&&e.key===t&&e.props[n]){if(r)throw new Error("two child with same key for <rc-animate> children");r=e}})),r}var Er={transitionstart:{transition:"transitionstart",WebkitTransition:"webkitTransitionStart",MozTransition:"mozTransitionStart",OTransition:"oTransitionStart",msTransition:"MSTransitionStart"},animationstart:{animation:"animationstart",WebkitAnimation:"webkitAnimationStart",MozAnimation:"mozAnimationStart",OAnimation:"oAnimationStart",msAnimation:"MSAnimationStart"}},_r={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},kr=[],Or=[];function xr(e,t,n){e.addEventListener(t,n,!1)}function Sr(e,t,n){e.removeEventListener(t,n,!1)}"undefined"!=typeof window&&"undefined"!=typeof document&&function(){var e=document.createElement("div").style;function t(t,n){for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];for(var a in o)if(a in e){n.push(o[a]);break}}}"AnimationEvent"in window||(delete Er.animationstart.animation,delete _r.animationend.animation),"TransitionEvent"in window||(delete Er.transitionstart.transition,delete _r.transitionend.transition),t(Er,kr),t(_r,Or)}();var jr={startEvents:kr,addStartEventListener:function(e,t){0!==kr.length?kr.forEach((function(n){xr(e,n,t)})):window.setTimeout(t,0)},removeStartEventListener:function(e,t){0!==kr.length&&kr.forEach((function(n){Sr(e,n,t)}))},endEvents:Or,addEndEventListener:function(e,t){0!==Or.length?Or.forEach((function(n){xr(e,n,t)})):window.setTimeout(t,0)},removeEndEventListener:function(e,t){0!==Or.length&&Or.forEach((function(n){Sr(e,n,t)}))}},Cr=n(1465),Dr=n.n(Cr),Nr=0!==jr.endEvents.length,Pr=["Webkit","Moz","O","ms"],Tr=["-webkit-","-moz-","-o-","ms-",""];function Mr(e,t){for(var n=window.getComputedStyle(e,null),r="",o=0;o<Tr.length&&!(r=n.getPropertyValue(Tr[o]+t));o++);return r}function Ar(e){if(Nr){var t=parseFloat(Mr(e,"transition-delay"))||0,n=parseFloat(Mr(e,"transition-duration"))||0,r=parseFloat(Mr(e,"animation-delay"))||0,o=parseFloat(Mr(e,"animation-duration"))||0,a=Math.max(n+t,o+r);e.rcEndAnimTimeout=setTimeout((function(){e.rcEndAnimTimeout=null,e.rcEndListener&&e.rcEndListener()}),1e3*a+200)}}function Lr(e){e.rcEndAnimTimeout&&(clearTimeout(e.rcEndAnimTimeout),e.rcEndAnimTimeout=null)}var Rr=function(e,t,n){var r="object"===(void 0===t?"undefined":$n()(t)),o=r?t.name:t,a=r?t.active:t+"-active",i=n,l=void 0,s=void 0,c=Dr()(e);return n&&"[object Object]"===Object.prototype.toString.call(n)&&(i=n.end,l=n.start,s=n.active),e.rcEndListener&&e.rcEndListener(),e.rcEndListener=function(t){t&&t.target!==e||(e.rcAnimTimeout&&(clearTimeout(e.rcAnimTimeout),e.rcAnimTimeout=null),Lr(e),c.remove(o),c.remove(a),jr.removeEndEventListener(e,e.rcEndListener),e.rcEndListener=null,i&&i())},jr.addEndEventListener(e,e.rcEndListener),l&&l(),c.add(o),e.rcAnimTimeout=setTimeout((function(){e.rcAnimTimeout=null,c.add(a),s&&setTimeout(s,0),Ar(e)}),30),{stop:function(){e.rcEndListener&&e.rcEndListener()}}};Rr.style=function(e,t,n){e.rcEndListener&&e.rcEndListener(),e.rcEndListener=function(t){t&&t.target!==e||(e.rcAnimTimeout&&(clearTimeout(e.rcAnimTimeout),e.rcAnimTimeout=null),Lr(e),jr.removeEndEventListener(e,e.rcEndListener),e.rcEndListener=null,n&&n())},jr.addEndEventListener(e,e.rcEndListener),e.rcAnimTimeout=setTimeout((function(){for(var n in t)t.hasOwnProperty(n)&&(e.style[n]=t[n]);e.rcAnimTimeout=null,Ar(e)}),0)},Rr.setTransition=function(e,t,n){var r=t,o=n;void 0===n&&(o=r,r=""),r=r||"",Pr.forEach((function(t){e.style[t+"Transition"+r]=o}))},Rr.isCssAnimationSupported=Nr;var Fr=Rr,zr={isAppearSupported:function(e){return e.transitionName&&e.transitionAppear||e.animation.appear},isEnterSupported:function(e){return e.transitionName&&e.transitionEnter||e.animation.enter},isLeaveSupported:function(e){return e.transitionName&&e.transitionLeave||e.animation.leave},allowAppearCallback:function(e){return e.transitionAppear||e.animation.appear},allowEnterCallback:function(e){return e.transitionEnter||e.animation.enter},allowLeaveCallback:function(e){return e.transitionLeave||e.animation.leave}};function Br(e){return Br="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Br(e)}var Yr={enter:"transitionEnter",appear:"transitionAppear",leave:"transitionLeave"},Ir=function(e){function t(){return Zn()(this,t),rr()(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return ar()(t,e),tr()(t,[{key:"componentWillUnmount",value:function(){this.stop()}},{key:"componentWillEnter",value:function(e){zr.isEnterSupported(this.props)?this.transition("enter",e):e()}},{key:"componentWillAppear",value:function(e){zr.isAppearSupported(this.props)?this.transition("appear",e):e()}},{key:"componentWillLeave",value:function(e){zr.isLeaveSupported(this.props)?this.transition("leave",e):e()}},{key:"transition",value:function(e,t){var n=this,r=u.a.findDOMNode(this),o=this.props,a=o.transitionName,i="object"===Br(a);this.stop();var l=function(){n.stopper=null,t()};if((Nr||!o.animation[e])&&a&&o[Yr[e]]){var s=i?a[e]:a+"-"+e,c=s+"-active";i&&a[e+"Active"]&&(c=a[e+"Active"]),this.stopper=Fr(r,{name:s,active:c},l)}else this.stopper=o.animation[e](r,l)}},{key:"stop",value:function(){var e=this.stopper;e&&(this.stopper=null,e.stop())}},{key:"render",value:function(){return this.props.children}}]),t}(s.a.Component);Ir.propTypes={children:g.a.any,animation:g.a.any,transitionName:g.a.any};var Hr=Ir,Ur="rc_animate_"+Date.now();function Wr(e){var t=e.children;return s.a.isValidElement(t)&&!t.key?s.a.cloneElement(t,{key:Ur}):t}function Vr(){}var qr=function(e){function t(e){Zn()(this,t);var n=rr()(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return Gr.call(n),n.currentlyAnimatingKeys={},n.keysToEnter=[],n.keysToLeave=[],n.state={children:vr(Wr(e))},n.childrenRefs={},n}return ar()(t,e),tr()(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.showProp,n=this.state.children;t&&(n=n.filter((function(e){return!!e.props[t]}))),n.forEach((function(t){t&&e.performAppear(t.key)}))}},{key:"componentWillReceiveProps",value:function(e){var t=this;this.nextProps=e;var n=vr(Wr(e)),r=this.props;r.exclusive&&Object.keys(this.currentlyAnimatingKeys).forEach((function(e){t.stop(e)}));var o,a,i,l,c=r.showProp,u=this.currentlyAnimatingKeys,f=r.exclusive?vr(Wr(r)):this.state.children,p=[];c?(f.forEach((function(e){var t=e&&gr(n,e.key),r=void 0;(r=t&&t.props[c]||!e.props[c]?t:s.a.cloneElement(t||e,Gn()({},c,!0)))&&p.push(r)})),n.forEach((function(e){e&&gr(f,e.key)||p.push(e)}))):(o=n,a=[],i={},l=[],f.forEach((function(e){e&&gr(o,e.key)?l.length&&(i[e.key]=l,l=[]):l.push(e)})),o.forEach((function(e){e&&Object.prototype.hasOwnProperty.call(i,e.key)&&(a=a.concat(i[e.key])),a.push(e)})),p=a=a.concat(l)),this.setState({children:p}),n.forEach((function(e){var n=e&&e.key;if(!e||!u[n]){var r=e&&gr(f,n);if(c){var o=e.props[c];if(r)!wr(f,n,c)&&o&&t.keysToEnter.push(n);else o&&t.keysToEnter.push(n)}else r||t.keysToEnter.push(n)}})),f.forEach((function(e){var r=e&&e.key;if(!e||!u[r]){var o=e&&gr(n,r);if(c){var a=e.props[c];if(o)!wr(n,r,c)&&a&&t.keysToLeave.push(r);else a&&t.keysToLeave.push(r)}else o||t.keysToLeave.push(r)}}))}},{key:"componentDidUpdate",value:function(){var e=this.keysToEnter;this.keysToEnter=[],e.forEach(this.performEnter);var t=this.keysToLeave;this.keysToLeave=[],t.forEach(this.performLeave)}},{key:"isValidChildByKey",value:function(e,t){var n=this.props.showProp;return n?wr(e,t,n):gr(e,t)}},{key:"stop",value:function(e){delete this.currentlyAnimatingKeys[e];var t=this.childrenRefs[e];t&&t.stop()}},{key:"render",value:function(){var e=this,t=this.props;this.nextProps=t;var n=this.state.children,r=null;n&&(r=n.map((function(n){if(null==n)return n;if(!n.key)throw new Error("must set key for <rc-animate> children");return s.a.createElement(Hr,{key:n.key,ref:function(t){e.childrenRefs[n.key]=t},animation:t.animation,transitionName:t.transitionName,transitionEnter:t.transitionEnter,transitionAppear:t.transitionAppear,transitionLeave:t.transitionLeave},n)})));var o=t.component;if(o){var a=t;return"string"==typeof o&&(a=Vn()({className:t.className,style:t.style},t.componentProps)),s.a.createElement(o,a,r)}return r[0]||null}}]),t}(s.a.Component);qr.isAnimate=!0,qr.propTypes={className:g.a.string,style:g.a.object,component:g.a.any,componentProps:g.a.object,animation:g.a.object,transitionName:g.a.oneOfType([g.a.string,g.a.object]),transitionEnter:g.a.bool,transitionAppear:g.a.bool,exclusive:g.a.bool,transitionLeave:g.a.bool,onEnd:g.a.func,onEnter:g.a.func,onLeave:g.a.func,onAppear:g.a.func,showProp:g.a.string,children:g.a.node},qr.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:Vr,onEnter:Vr,onLeave:Vr,onAppear:Vr};var Gr=function(){var e=this;this.performEnter=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillEnter(e.handleDoneAdding.bind(e,t,"enter")))},this.performAppear=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillAppear(e.handleDoneAdding.bind(e,t,"appear")))},this.handleDoneAdding=function(t,n){var r=e.props;if(delete e.currentlyAnimatingKeys[t],!r.exclusive||r===e.nextProps){var o=vr(Wr(r));e.isValidChildByKey(o,t)?"appear"===n?zr.allowAppearCallback(r)&&(r.onAppear(t),r.onEnd(t,!0)):zr.allowEnterCallback(r)&&(r.onEnter(t),r.onEnd(t,!0)):e.performLeave(t)}},this.performLeave=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillLeave(e.handleDoneLeaving.bind(e,t)))},this.handleDoneLeaving=function(t){var n=e.props;if(delete e.currentlyAnimatingKeys[t],!n.exclusive||n===e.nextProps){var r,o,a,i,l=vr(Wr(n));if(e.isValidChildByKey(l,t))e.performEnter(t);else{var s=function(){zr.allowLeaveCallback(n)&&(n.onLeave(t),n.onEnd(t,!1))};r=e.state.children,o=l,a=n.showProp,(i=r.length===o.length)&&r.forEach((function(e,t){var n=o[t];e&&n&&(e&&!n||!e&&n||e.key!==n.key||a&&e.props[a]!==n.props[a])&&(i=!1)})),i?s():e.setState({children:l},s)}}}},Kr=br(qr),$r=n(1466);function Jr(e){var t=[];return s.a.Children.forEach(e,(function(e){null!=e&&(Array.isArray(e)?t=t.concat(Jr(e)):Object($r.isFragment)(e)&&e.props?t=t.concat(Jr(e.props.children)):t.push(e))})),t}var Xr=function(e){function t(e){Zn()(this,t);var n=rr()(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onCheck=function(){n.props.root.onCheck(n)},n.onMouseEnter=function(e){e.preventDefault(),n.props.root.onMouseEnter(e,n)},n.onMouseLeave=function(e){e.preventDefault(),n.props.root.onMouseLeave(e,n)},n.onContextMenu=function(e){e.preventDefault(),n.props.root.onContextMenu(e,n)},n.onDragStart=function(e){e.stopPropagation(),n.setState({dragNodeHighlight:!0}),n.props.root.onDragStart(e,n);try{e.dataTransfer.setData("text/plain","")}catch(e){}},n.onDragEnter=function(e){e.preventDefault(),e.stopPropagation(),n.props.root.onDragEnter(e,n)},n.onDragOver=function(e){e.preventDefault(),e.stopPropagation(),n.props.root.onDragOver(e,n)},n.onDragLeave=function(e){e.stopPropagation(),n.props.root.onDragLeave(e,n)},n.onDrop=function(e){e.preventDefault(),e.stopPropagation(),n.setState({dragNodeHighlight:!1}),n.props.root.onDrop(e,n)},n.onDragEnd=function(e){e.stopPropagation(),n.setState({dragNodeHighlight:!1}),n.props.root.onDragEnd(e,n)},n.onExpand=function(){var e=n.props.root.onExpand(n);if(e&&"object"===(void 0===e?"undefined":$n()(e))){var t=function(e){n.setState({dataLoading:e})};t(!0),e.then((function(){t(!1)}),(function(){t(!1)}))}},n.saveSelectHandle=function(e){n.selectHandle=e},n.state={dataLoading:!1,dragNodeHighlight:!1},n}return ar()(t,e),tr()(t,[{key:"onSelect",value:function(){this.props.root.onSelect(this)}},{key:"onKeyDown",value:function(e){e.preventDefault()}},{key:"isSelectable",value:function(){var e=this.props,t=this.context;return"selectable"in e?e.selectable:t.rcTree.selectable}},{key:"renderSwitcher",value:function(e,t){var n=e.prefixCls,r=ue()(n+"-switcher",n+"-switcher_"+t,Gn()({},n+"-switcher-disabled",e.disabled));return s.a.createElement("span",{className:r,onClick:e.disabled?null:this.onExpand})}},{key:"renderCheckbox",value:function(e){var t=e.prefixCls,n=Gn()({},t+"-checkbox",!0);e.checked?n[t+"-checkbox-checked"]=!0:e.halfChecked&&(n[t+"-checkbox-indeterminate"]=!0);var r=null;return"boolean"!=typeof e.checkable&&(r=e.checkable),e.disabled||e.disableCheckbox?(n[t+"-checkbox-disabled"]=!0,s.a.createElement("span",{className:ue()(n)},r)):s.a.createElement("span",{className:ue()(n),onClick:this.onCheck},r)}},{key:"renderChildren",value:function(e){var t=this.renderFirst;this.renderFirst=1;var n=!0;!t&&e.expanded&&(n=!1);var r=null;e.children&&(r=Jr(e.children).filter((function(e){return!!e})));var o=r;if(r&&(Array.isArray(r)&&r.length&&r.every((function(e){return e.type&&e.type.isTreeNode}))||r.type&&r.type.isTreeNode)){var a={};e.openTransitionName?a.transitionName=e.openTransitionName:"object"===$n()(e.openAnimation)&&(a.animation=Vn()({},e.openAnimation),n||delete a.animation.appear);var i=ue()(e.prefixCls+"-child-tree",Gn()({},e.prefixCls+"-child-tree-open",e.expanded));o=s.a.createElement(Kr,Vn()({},a,{showProp:"data-expanded",transitionAppear:n,component:""}),e.expanded?s.a.createElement("ul",{className:i,"data-expanded":e.expanded},s.a.Children.map(r,(function(t,n){return e.root.renderTreeNode(t,n,e.pos)}),e.root)):null)}return o}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.prefixCls,o=n.expanded?"open":"close",a=o,i=!0,l=n.title,c=this.renderChildren(n);c&&c!==n.children||(c=null,n.loadData&&!n.isLeaf||(i=!1,a="docu"));var u=(e={},Gn()(e,r+"-iconEle",!0),Gn()(e,r+"-icon_loading",this.state.dataLoading),Gn()(e,r+"-icon__"+a,!0),e),f={};n.draggable&&(f.onDragEnter=this.onDragEnter,f.onDragOver=this.onDragOver,f.onDragLeave=this.onDragLeave,f.onDrop=this.onDrop,f.onDragEnd=this.onDragEnd);var p="",d="";n.disabled?p=r+"-treenode-disabled":n.dragOver?d="drag-over":n.dragOverGapTop?d="drag-over-gap-top":n.dragOverGapBottom&&(d="drag-over-gap-bottom");var m,h,y,b,v=n.filterTreeNode(this)?"filter-node":"";return s.a.createElement("li",Vn()({},f,{className:ue()(n.className,p,d,v)}),i?this.renderSwitcher(n,o):s.a.createElement("span",{className:r+"-switcher "+r+"-switcher-noop"}),n.checkable?this.renderCheckbox(n):null,(m=n.showIcon||n.loadData&&t.state.dataLoading?s.a.createElement("span",{className:ue()(u)}):null,h=s.a.createElement("span",{className:r+"-title"},l),b={className:(y=r+"-node-content-wrapper")+" "+y+"-"+(a===o?a:"normal"),onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onContextMenu:t.onContextMenu},n.disabled||((n.selected||t.state.dragNodeHighlight)&&(b.className+=" "+r+"-node-selected"),b.onClick=function(e){e.preventDefault(),t.isSelectable()?t.onSelect():n.checkable&&!n.disableCheckbox&&t.onCheck()},n.draggable&&(b.className+=" draggable",b.draggable=!0,b["aria-grabbed"]=!0,b.onDragStart=t.onDragStart)),s.a.createElement("span",Vn()({ref:t.saveSelectHandle,title:"string"==typeof l?l:""},b),m,h)),c)}}]),t}(s.a.Component);Xr.propTypes={prefixCls:g.a.string,disabled:g.a.bool,disableCheckbox:g.a.bool,expanded:g.a.bool,isLeaf:g.a.bool,root:g.a.object,onSelect:g.a.func},Xr.contextTypes=dr,Xr.defaultProps={title:"---"},Xr.isTreeNode=1;var Qr=Xr;yr.TreeNode=Qr;var Zr=yr;function eo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function to(e,t){return to=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},to(e,t)}function no(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ro(e);if(t){var o=ro(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function ro(e){return ro=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ro(e)}var oo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&to(e,t)}(a,e);var t,n,r,o=no(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).onAfterOpen=function(){Bn.a.bind("enter",e.handleEnter),e.props.onAfterOpen&&e.props.onAfterOpen()},e.handleEnter=function(t){e.props.isOpen&&e.props.onEnter&&t&&!1!==e.props.onEnter()&&t.preventDefault()},e}return t=a,(n=[{key:"renderCloseButton",value:function(){return this.props.hideCloseButton?null:s.a.createElement("div",{className:"smodal--close",onClick:this.props.onRequestClose},s.a.createElement("i",{className:"far fa-fw fa-times me-2"}),"Close")}},{key:"renderContent",value:function(){var e=this.props,t=e.children,n=e.modalFooter,r=e.modalHelp,o=e.modalIcon,a=e.modalTitle;return s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{className:"smodal--wrapper"},s.a.createElement("div",{className:"smodal--body"},this.renderCloseButton(),s.a.createElement("div",{className:"smodal--main"},s.a.createElement("div",{className:"container-fluid"},s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement("div",{className:"divider--title"},s.a.createElement("div",{className:"divider--line"}),s.a.createElement("div",{className:"divider--title-content"},s.a.createElement("h2",null,s.a.createElement("i",{className:"fa-fw me-2 "+o}),a||"Need your input")),s.a.createElement("div",{className:"divider--line"})))),t))),n&&s.a.createElement("div",{className:"smodal--footer"},n)),r)}},{key:"render",value:function(){var e=this.props,t=e.modalClasses,n=e.isOpen;return s.a.createElement(p.a,Object.assign({},this.props,{onAfterOpen:this.onAfterOpen,className:t||"smodal--content",overlayClassName:"smodal--overlay",contentLabel:""}),n&&this.renderContent())}}])&&eo(t.prototype,n),r&&eo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),ao=oo;function io(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function lo(e,t){return lo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lo(e,t)}function so(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=co(e);if(t){var o=co(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function co(e){return co=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},co(e)}var uo,fo,po,mo,ho,yo,bo,vo,go,wo,Eo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lo(e,t)}(a,e);var t,n,r,o=so(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props.text||"please wait";return s.a.createElement("span",{className:"text--color-primary-dark text--size-800rem"},s.a.createElement("i",{className:"far fa-fw fa-spinner fa-spin me-2"}),e)}}])&&io(t.prototype,n),r&&io(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),_o=Eo,ko=function(e){var t=e.children,n=e.className,r=void 0===n?"":n,o=e.icon,a=void 0===o?"fa-circle-question":o;return s.a.createElement("div",{className:ue()("alert alert-information media",r),role:"alert"},s.a.createElement("i",{className:ue()("far fa-2x align-self-center icon-info me-3",a)}),s.a.createElement("div",{className:"media-body align-self-center"},t))};function Oo(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function xo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function So(e,t){return So=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},So(e,t)}function jo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Do(e);if(t){var o=Do(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Co(e)}(this,n)}}function Co(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Do(e){return Do=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Do(e)}function No(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var Po,To,Mo,Ao,Lo,Ro,Fo,zo,Bo,Yo=(uo=d.action.bound,fo=d.action.bound,po=d.action.bound,Object(se.c)((ho=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&So(e,t)}(a,e);var t,n,r,o=jo(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Oo(e=o.call.apply(o,[this].concat(n)),"error",yo,Co(e)),Oo(e,"saving",bo,Co(e)),Oo(e,"loading",vo,Co(e)),Oo(e,"rootFolder",go,Co(e)),Oo(e,"selectedFolder",wo,Co(e)),e}return t=a,(n=[{key:"onOpen",value:function(){var e=this;et.a.get("/folders.json").then((function(t){e.rootFolder=t.data[0],e.loading=!1}))}},{key:"save",value:function(){var e=this;this.selectedFolder?(this.error=null,this.saving=!0,this.props.item.move(this.selectedFolder,{onSuccess:function(){return e.props.onRequestClose()},onError:function(t){e.error=t.errors[0],e.saving=!1}})):this.error="Select a folder"}},{key:"onSelect",value:function(e){this.selectedFolder=e[0],this.error=null}},{key:"renderFolders",value:function(e){var t=this;return e.map((function(e){return s.a.createElement(Qr,{title:e.name,key:e.id},t.renderFolders(e.folders))}))}},{key:"renderRootFolder",value:function(){var e=[this.rootFolder.id];return s.a.createElement(Zr,{className:"myCls",showLine:!0,defaultExpandedKeys:e,onSelect:this.onSelect},s.a.createElement(Qr,{title:"Home",key:this.rootFolder.id},this.renderFolders(this.rootFolder.folders)))}},{key:"renderForm",value:function(){var e="";return e=this.props.item.length>1?this.props.item.isFolder?"fas fa-folders fa-lg":"far fa-files-medical fa-lg":this.props.item.isFolder?"fas fa-folder fa-lg":this.props.item.isVideo?"far fa-video fa-lg":"far fa-volume fa-lg",s.a.createElement("div",{className:"form-group has-errors"},s.a.createElement(ko,{icon:e},this.props.item.name),s.a.createElement("h4",null,"Move to the following folder"),s.a.createElement("div",{className:"form-group tree-container"},this.loading?s.a.createElement(Ne,null):this.renderRootFolder()),this.error&&s.a.createElement("div",{className:"error--text"},this.error),this.renderButtons())}},{key:"renderButtons",value:function(){var e="";return e=this.props.item.length>1?this.props.item.isFolder?"Move folders":"Move files":this.props.item.isFolder?"Move folder":this.props.item.isVideo?"Move video file":"Move file",this.saving?s.a.createElement(_o,{text:"Moving. Please wait."}):s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("button",{className:"btn btn-primary",onClick:this.save},s.a.createElement("i",{className:"far fa-check me-2"}),e),s.a.createElement("button",{className:"btn",onClick:this.props.onRequestClose},s.a.createElement("i",{className:"far fa-times me-2"}),"Cancel"))}},{key:"render",value:function(){return s.a.createElement(ao,{modalClasses:"smodal--content smodal--content-sm",onEnter:this.save,onAfterOpen:this.onOpen,isOpen:this.props.isOpen,onRequestClose:this.props.onRequestClose,modalTitle:"Move file",modalIcon:"far fa-arrows"},s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10"},this.renderForm())))}}])&&xo(t.prototype,n),r&&xo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),yo=No(ho.prototype,"error",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),bo=No(ho.prototype,"saving",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),vo=No(ho.prototype,"loading",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),go=No(ho.prototype,"rootFolder",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),wo=No(ho.prototype,"selectedFolder",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),No(ho.prototype,"onOpen",[uo],Object.getOwnPropertyDescriptor(ho.prototype,"onOpen"),ho.prototype),No(ho.prototype,"save",[fo],Object.getOwnPropertyDescriptor(ho.prototype,"save"),ho.prototype),No(ho.prototype,"onSelect",[po],Object.getOwnPropertyDescriptor(ho.prototype,"onSelect"),ho.prototype),mo=ho))||mo),Io=Yo,Ho=function(e){var t=e.children,n=e.header;return s.a.createElement("div",{className:"alert--did-you-know media alert p-3 my-3"},s.a.createElement("i",{className:"fad fa-2x fa-lightbulb-on me-3"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("h1",null,n||"Did you know"),t))},Uo=function(){return s.a.createElement("div",{className:"smodal--help"},s.a.createElement("p",{className:"mb-0 text--size-800rem"},s.a.createElement("strong",{className:"d-block d-lg-inline-block me-lg-2"},s.a.createElement("a",{href:"https://sonix.ai/translation-disclaimer",target:"_blank",className:"link--underline"},"Disclaimer:")),"Sonix disclaims all warranties; our advanced translation algorithms are fully automated and enhanced with other translation partners."))},Wo=function(){return s.a.createElement(Ho,{header:"Get more accurate translations"},s.a.createElement("p",null,'Please edit and correct your original transcription before translating to another language for optimal translation accuracy. Our translation engine uses the text to translate, not the audio. Automated translations are provided "as is", are not perfect, and may require additional editing.'))},Vo=function(e){var t=e.children,n=e.className,r=void 0===n?"":n,o=e.icon,a=void 0===o?"fa-circle-check":o;return s.a.createElement("div",{className:ue()("alert alert-success media",r),role:"alert"},s.a.createElement("i",{className:ue()("far fa-2x align-self-center icon-info me-3",a)}),s.a.createElement("div",{className:"media-body align-self-center"},t))},qo=n(428);function Go(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Ko(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function $o(e,t){return $o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$o(e,t)}function Jo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Qo(e);if(t){var o=Qo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Xo(e)}(this,n)}}function Xo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qo(e){return Qo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qo(e)}function Zo(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var ea,ta,na,ra,oa,aa,ia=(Po=d.action.bound,To=d.action.bound,Mo=d.action.bound,Object(se.c)((Lo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$o(e,t)}(a,e);var t,n,r,o=Jo(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Go(e=o.call.apply(o,[this].concat(n)),"error",Ro,Xo(e)),Go(e,"translationKickedOff",Fo,Xo(e)),Go(e,"saving",zo,Xo(e)),Go(e,"translationLanguage",Bo,Xo(e)),e}return t=a,n=[{key:"save",value:function(){var e=this;this.saving=!0,this.props.item.translate(this.translationLanguage).then((function(){e.saving=!1,e.translationKickedOff=!0}))}},{key:"setTranslationLanguage",value:function(e){this.translationLanguage=e.value}},{key:"onOpen",value:function(){this.translationKickedOff=!1,this.translationLanguage=!1,this.saving=!1}},{key:"renderForm",value:function(){var e=this.props.item.length>1?"far fa-files-medical fa-lg":"far fa-volume fa-lg",t=Object(we.i)(this.translationLanguage),n=t?t.language:"N/A",r=we.o.map((function(e){return{value:e.code,label:e.language,flag:e.flag}}));return this.saving?s.a.createElement(ko,{icon:"fa-spinner-third fa-spin"},s.a.createElement("h4",null,"Starting translations - please wait"),s.a.createElement("p",{className:"mb-0"},this.props.item.name," ",s.a.createElement("i",{className:"far fa-arrow-right mx-2"})," ",n)):this.translationKickedOff?s.a.createElement(s.a.Fragment,null,s.a.createElement(Vo,null,s.a.createElement("h4",null,"We're On It - Translation Started!"),s.a.createElement("p",{className:"mb-0"},"We're now working on translating your ",this.props.item.name," to ",n,". Once they're ready, we'll send you an email. Feel free to close this window and carry on - we've got this under control!")),s.a.createElement("div",{className:"mt-4 text-center"},s.a.createElement("button",{className:"btn mb-0",onClick:this.props.onRequestClose},s.a.createElement("i",{className:"far fa-times me-2"}),"Close"))):s.a.createElement("div",{className:"form-group has-errors"},s.a.createElement(ko,{icon:e},this.props.item.name),s.a.createElement(qo.a,{className:"form-group position--relative mb-3",prompt:"What language do you want to translate the ".concat(this.props.item.name," to?"),options:r,disabled:this.saving,value:this.translationLanguage,onChange:this.setTranslationLanguage}),s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("button",{className:"btn btn-primary",onClick:this.save,disabled:!this.translationLanguage},s.a.createElement("i",{className:"far fa-check me-2"}),"Translate"),s.a.createElement("button",{className:"btn",onClick:this.props.onRequestClose},s.a.createElement("i",{className:"far fa-times me-2"}),"Cancel")),s.a.createElement(Wo,null))}},{key:"render",value:function(){return s.a.createElement(ao,{modalClasses:"smodal--content smodal--content-sm",onEnter:this.save,onAfterOpen:this.onOpen,isOpen:this.props.isOpen,onRequestClose:this.props.onRequestClose,modalTitle:"Translate file",modalHelp:s.a.createElement(Uo,null),modalIcon:"far fa-language"},s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10"},this.renderForm())))}}],n&&Ko(t.prototype,n),r&&Ko(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),Ro=Zo(Lo.prototype,"error",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Fo=Zo(Lo.prototype,"translationKickedOff",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),zo=Zo(Lo.prototype,"saving",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Bo=Zo(Lo.prototype,"translationLanguage",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Zo(Lo.prototype,"save",[Po],Object.getOwnPropertyDescriptor(Lo.prototype,"save"),Lo.prototype),Zo(Lo.prototype,"setTranslationLanguage",[To],Object.getOwnPropertyDescriptor(Lo.prototype,"setTranslationLanguage"),Lo.prototype),Zo(Lo.prototype,"onOpen",[Mo],Object.getOwnPropertyDescriptor(Lo.prototype,"onOpen"),Lo.prototype),Ao=Lo))||Ao),la=ia;function sa(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function ca(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function ua(e,t){return ua=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ua(e,t)}function fa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=da(e);if(t){var o=da(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return pa(e)}(this,n)}}function pa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function da(e){return da=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},da(e)}function ma(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var ha,ya,ba,va,ga,wa=(ea=d.action.bound,ta=d.action.bound,Object(se.c)((ra=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ua(e,t)}(a,e);var t,n,r,o=fa(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return sa(e=o.call.apply(o,[this].concat(n)),"isMoveModalShown",oa,pa(e)),sa(e,"isTranslateModalShown",aa,pa(e)),e.showMoveModal=function(){return e.isMoveModalShown=!0},e.showTranslateMultiModal=function(){return e.isTranslateModalShown=!0},e}return t=a,(n=[{key:"closeMoveModal",value:function(){this.isMoveModalShown=!1}},{key:"closeTranslateModal",value:function(){this.isTranslateModalShown=!1}},{key:"render",value:function(){var e=this.props,t=e.folder,n=e.user,r=t.folderSelection.selectableItems.length,o=t.folderSelection.length,a=1==o?"1 selected file":o+" selected files",i=1==r?"1 file":r+" files";return t.multiSelectEnabled?s.a.createElement("tr",null,s.a.createElement("th",null," "),s.a.createElement("th",{colSpan:"4",className:"px-1 pt-0"},s.a.createElement("button",{className:"btn btn-primary mb-0 py-1",onClick:t.folderSelection.selectAll,"data-balloon":"Select all ".concat(i," in this folder"),"data-balloon-pos":"up"},s.a.createElement("i",{className:"far fa-check-square me-2"}),"Select All (",r,")"),s.a.createElement("button",{className:"btn btn-primary mb-0 py-1",onClick:t.folderSelection.clearSelection,"data-balloon":"Clear selection (".concat(o,")"),"data-balloon-pos":"up"},s.a.createElement("i",{className:"far fa-square me-2"}),"Clear"),s.a.createElement("button",{className:"btn btn-primary mb-0 py-1",onClick:this.showMoveModal,"data-balloon":"Move ".concat(a),"data-balloon-pos":"up",disabled:0==o},s.a.createElement("i",{className:"far fa-arrows me-2"}),"Move"),n.isSubscribed&&!n.disableTranslation&&s.a.createElement("button",{className:"btn btn-primary mb-0 py-1",onClick:this.showTranslateMultiModal,"data-balloon":"Translate ".concat(a),"data-balloon-pos":"up",disabled:0==o},s.a.createElement("i",{className:"far fa-language me-2"}),"Translate"),s.a.createElement("button",{className:"btn btn-red mb-0 py-1",onClick:t.folderSelection.moveToTrash,"data-balloon":"Delete ".concat(a),"data-balloon-pos":"up",disabled:0==o},s.a.createElement("i",{className:"far fa-trash me-2"}),"Delete"),s.a.createElement(Io,{item:t.folderSelection,isOpen:this.isMoveModalShown,onRequestClose:this.closeMoveModal}),n.isSubscribed&&s.a.createElement(la,{item:t.folderSelection,isOpen:this.isTranslateModalShown,onRequestClose:this.closeTranslateModal}))):null}}])&&ca(t.prototype,n),r&&ca(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),oa=ma(ra.prototype,"isMoveModalShown",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),aa=ma(ra.prototype,"isTranslateModalShown",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ma(ra.prototype,"closeMoveModal",[ea],Object.getOwnPropertyDescriptor(ra.prototype,"closeMoveModal"),ra.prototype),ma(ra.prototype,"closeTranslateModal",[ta],Object.getOwnPropertyDescriptor(ra.prototype,"closeTranslateModal"),ra.prototype),na=ra))||na),Ea=wa,_a=Object(se.c)((function(e){var t=e.folder,n=t.folderSelection.selectableItems.length,r=t.folderSelection.length,o=1==r?"1 selected file":r+" selected files",a=1==n?"1 file":n+" files";return s.a.createElement("tr",null,s.a.createElement("th",{style:{width:"4rem",fontSize:"1rem"}}," "),s.a.createElement("th",{colSpan:"4",className:"px-1"},s.a.createElement("button",{className:"btn btn-primary mb-0 py-1",onClick:t.folderSelection.selectAll,"data-balloon":"Select all ".concat(a," in this folder"),"data-balloon-pos":"up"},s.a.createElement("i",{className:"far fa-check-square me-2"}),"Select All (",n,")"),s.a.createElement("button",{className:"btn btn-primary mb-0 py-1",onClick:t.folderSelection.clearSelection,"data-balloon":"Clear selection (".concat(r,")"),"data-balloon-pos":"up"},s.a.createElement("i",{className:"far fa-square me-2"}),"Clear"),s.a.createElement("button",{className:"btn btn-primary mb-0 py-1",onClick:t.folderSelection.restoreFromTrash,"data-balloon":"Restore ".concat(o," to Home"),"data-balloon-pos":"up",disabled:0==r},s.a.createElement("i",{className:"far fa-arrow-up me-2"}),"Restore"),s.a.createElement("button",{className:"btn btn-red mb-0 py-1",onClick:t.folderSelection.deletePermanently,"data-balloon":"Permanently delete ".concat(o," right now"),"data-balloon-pos":"up",disabled:0==r},s.a.createElement("i",{className:"far fa-trash me-2"}),"Permanently Delete")))})),ka=["tag"],Oa=["tag","className","dropdownStyle","handleClose"];function xa(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Sa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ja(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Ca(e,t,n){return t&&ja(e.prototype,t),n&&ja(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Da(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Na(e,t)}function Na(e,t){return Na=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Na(e,t)}function Pa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ma(e);if(t){var o=Ma(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ta(e)}(this,n)}}function Ta(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ma(e){return Ma=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ma(e)}function Aa(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var La=(ha=d.action.bound,ya=d.action.bound,Object(se.c)((va=function(e){Da(n,e);var t=Pa(n);function n(){var e;Sa(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return function(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(e=t.call.apply(t,[this].concat(o)),"shown",ga,Ta(e)),e}return Ca(n,[{key:"componentWillUnmount",value:function(){this.props.keyboardToggle&&Bn.a.unbind(this.props.keyboardToggle)}},{key:"componentDidMount",value:function(){var e=this;this.props.keyboardToggle&&Bn.a.bind(this.props.keyboardToggle,this.toggleDropdown),this.props.isInitiallyOpen&&document.addEventListener("mousedown",this.onDocumentClick),void 0!==this.props.closeWhenChanged&&Object(d.reaction)((function(){return e.props.closeWhenChanged}),(function(){return e.shown&&e.toggleDropdown()}))}},{key:"onDocumentClick",value:function(e){var t=u.a.findDOMNode(this);t.contains(e.target)&&t!==e.target||this.toggleDropdown()}},{key:"toggleDropdown",value:function(e){e&&e.preventDefault(),this.shown=!this.shown;var t=this.props,n=t.onOpen,r=t.onClose;this.shown?(document.addEventListener("mousedown",this.onDocumentClick),this.props.pushAnalytics&&Object(we.k)(this.props.pushAnalytics),n&&n()):(document.removeEventListener("mousedown",this.onDocumentClick),r&&r())}},{key:"renderChildren",value:function(){var e=this,t=this.props.children;return s.a.Children.map(s.a.Children.toArray(t),(function(t){return t.type===n.Toggle?s.a.cloneElement(t,{onMouseDown:e.toggleDropdown}):t.type===n.Content?e.shown&&s.a.cloneElement(t,{handleClose:e.toggleDropdown}):t}))}},{key:"render",value:function(){var e=this.props,t=e.tag,n=void 0===t?"div":t,r=e.className,o=ue()("btn-group has--dropdown",r,{"dropdown--show":this.shown});return s.a.createElement(n,{className:o},this.renderChildren())}}]),n}(s.a.Component),ga=Aa(va.prototype,"shown",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.props.isInitiallyOpen}}),Aa(va.prototype,"onDocumentClick",[ha],Object.getOwnPropertyDescriptor(va.prototype,"onDocumentClick"),va.prototype),Aa(va.prototype,"toggleDropdown",[ya],Object.getOwnPropertyDescriptor(va.prototype,"toggleDropdown"),va.prototype),ba=va))||ba);La.Toggle=function(e){Da(n,e);var t=Pa(n);function n(){return Sa(this,n),t.apply(this,arguments)}return Ca(n,[{key:"render",value:function(){var e=this.props,t=e.tag,n=void 0===t?"div":t,r=xa(e,ka);return s.a.createElement(n,r)}}]),n}(s.a.Component),La.Content=function(e){Da(n,e);var t=Pa(n);function n(){return Sa(this,n),t.apply(this,arguments)}return Ca(n,[{key:"render",value:function(){var e=this.props,t=e.tag,n=void 0===t?"div":t,r=e.className,o=e.dropdownStyle,a=e.handleClose,i=xa(e,Oa),l=ue()("dropdown--content",r),c=this.props.title||"Dropdown";return s.a.createElement("div",{className:l,style:o},s.a.createElement("div",{className:"dropdown--header"},c,s.a.createElement("a",{className:"dropdown--close",href:"#",onClick:a},s.a.createElement("i",{className:"far fa-fw fa-times"}))),s.a.createElement(n,i))}}]),n}(s.a.Component);var Ra,Fa,za,Ba,Ya,Ia=La;function Ha(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Ua(e,t){return Ua=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ua(e,t)}function Wa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qa(e);if(t){var o=qa(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Va(e)}(this,n)}}function Va(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qa(e){return qa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qa(e)}function Ga(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var Ka,$a,Ja,Xa,Qa,Za=(Ra=Object(se.b)("statusTags","user"),Fa=d.action.bound,Ra(za=Object(se.c)((Ba=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ua(e,t)}(a,e);var t,n,r,o=Wa(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(e=o.call.apply(o,[this].concat(n)),"saving",Ya,Va(e)),e}return t=a,(n=[{key:"updateTag",value:function(e){var t=this;this.saving=!0,this.props.item.update({status_tag_id:e},{onSuccess:function(){return t.saving=!1}})}},{key:"isStatusEditable",get:function(){var e=this.props,t=e.item;return e.user.hasCustomStatusTags&&t.isCompleted()&&t.canEdit}},{key:"render",value:function(){var e=this.props.item,t=ue()("badge d-inline-flex text--color-white text--size-700rem",e.statusTag.badge_class,{"badge-prepend":this.isStatusEditable});return s.a.createElement("div",{className:"text--overflow-hidden d-inline-flex","data-balloon":(e.statusTag.badge||"(blank status)")+": "+(e.statusTag.badge_tooltip||"(blank description)"),"data-balloon-pos":"right","data-balloon-length":"large"},s.a.createElement("div",{className:t,style:{backgroundColor:e.statusTag.badge_color}},s.a.createElement("i",{className:"text--size-700rem far fa-fw me-1 "+e.statusTag.badge_icon}),s.a.createElement("span",{className:"badge--text-overflow"},this.saving?"Saving...":e.statusTag.badge||"(blank status)")),this.isStatusEditable&&this.renderDropdown())}},{key:"renderDropdown",value:function(){var e=this,t=this.props,n=t.statusTags,r=t.item.statusTag,o=r.badge_color?{backgroundColor:r.badge_color}:{};return s.a.createElement(Ia,{className:"d-inline-flex",closeWhenChanged:this.saving},s.a.createElement(Ia.Toggle,{tag:"span",className:"badge badge-append d-inline-flex text--color-white text--size-700rem clickable "+r.badge_class,style:o},s.a.createElement("i",{className:"text--size-700rem fas fa-fw fa-caret-down"})),s.a.createElement(Ia.Content,{className:"dropdown--content dropdown--content-badge",title:"Custom Labels"},s.a.createElement("ol",{className:"dropdown--menu"},s.a.createElement("li",null,s.a.createElement("span",{className:"text--size-800rem clickable",onClick:function(){return e.updateTag(null)},"data-balloon":"Sonix Status: Transcribed","data-balloon-pos":"right"},s.a.createElement("div",{className:"fa-stack fa-1x me-2 d-inline-block"},s.a.createElement("i",{className:"fas fa-square fa-stack-2x text--color-success"}),s.a.createElement("i",{className:"far fa-check fa-stack-1x fa-inverse"})),"Transcribed")),n.sortedTags.map((function(t){return s.a.createElement("li",{key:t.id},s.a.createElement("span",{className:"text--size-800rem clickable dropdown--badge",onClick:function(){return e.updateTag(t.id)},title:"","data-balloon":t.description||"(blank description)","data-balloon-pos":"right"},s.a.createElement("div",{className:"fa-stack fa-1x me-2 d-inline-block"},s.a.createElement("i",{className:"fas fa-square fa-stack-2x",style:{color:t.color}}),s.a.createElement("i",{className:"far fa-tag fa-stack-1x fa-inverse"})),s.a.createElement("div",{className:"dropdown--badge-text"},t.label||"(blank status)")))})),s.a.createElement("li",null,s.a.createElement("a",{href:"/status_tags",className:"pt-1 border-top--primary-light text--size-800rem",title:"Edit custom labels"},s.a.createElement("div",{className:"fa-stack fa-1x me-2 d-inline-block"},s.a.createElement("i",{className:"fas fa-square fa-stack-2x text--color-primary"}),s.a.createElement("i",{className:"far fa-pencil fa-stack-1x fa-inverse"})),"Edit custom labels")))))}}])&&Ha(t.prototype,n),r&&Ha(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),Ya=Ga(Ba.prototype,"saving",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ga(Ba.prototype,"updateTag",[Fa],Object.getOwnPropertyDescriptor(Ba.prototype,"updateTag"),Ba.prototype),Ga(Ba.prototype,"isStatusEditable",[d.computed],Object.getOwnPropertyDescriptor(Ba.prototype,"isStatusEditable"),Ba.prototype),za=Ba))||za)||za),ei=Za,ti=Object(se.c)((function(e){var t=e.item;return s.a.createElement("tr",{className:"text--hover"},s.a.createElement("td",{className:"d-none d-md-table-cell","data-label":"Actions"},s.a.createElement("a",{className:"px-1 clickable",onClick:t.toggleSelected,"data-balloon":(t.selected?"Deselect ":"Select ")+(t.isVideo?"video":"audio")+" file","data-balloon-pos":"right"},s.a.createElement("i",{className:ue()("far fa-fw",{"far fa-square":!t.selected,"fas fa-check-square":t.selected})})),s.a.createElement("i",{className:"far fa-fw d-inline-block "+t.statusTag.file_icon})),s.a.createElement("td",{className:"text--no-wrap text--size-table","data-label":"File Name"},s.a.createElement("a",{className:"text--hover text--no-overflow",href:"/recordings/"+t.id},s.a.createElement("div",null,s.a.createElement("span",{className:"d-block text--no-overflow"},t.name||"Untitled")))),s.a.createElement("td",{className:"text--size-table","data-label":"Status"},s.a.createElement(ei,{item:t})),s.a.createElement("td",{className:"text-end text--size-table","data-label":"Duration"},t.durationFormatted),s.a.createElement("td",{className:"text--size-table text-end","data-label":"Deleted On"},t.trashedAt,s.a.createElement("span",{className:"text--color-error","data-balloon":"On "+t.willDeleteAt+", we will permanently delete this file.","data-balloon-pos":"top"},s.a.createElement("i",{className:"fas fa-fw fa-trash mx-1"}))))})),ni=function(e){var t=e.children,n=e.className,r=void 0===n?"":n,o=e.icon,a=void 0===o?"fa-times-circle":o;return s.a.createElement("div",{className:ue()("alert alert-danger media",r),role:"alert"},s.a.createElement("i",{className:ue()("far fa-2x align-self-center icon-danger me-3",a)}),s.a.createElement("div",{className:"media-body align-self-center"},t))},ri=function(e){var t=e.folder;return s.a.createElement("tr",{className:""},s.a.createElement("td",{className:"d-block d-md-table-cell py-2 text-center border-bottom-0 bgcolor--white-off label--centered",colSpan:5,"data-label":t.name},s.a.createElement("span",{className:"mb-0 text--color-red"},s.a.createElement("i",{className:"fas fa-trash-can me-2"}),"We will permanently delete any file that has been in the trash folder for over 7 days.")))},oi=Object(se.c)((function(e){var t=e.folder,n=e.user;return s.a.createElement("div",null,s.a.createElement("table",{className:"table table--simple table--folders table--spacing-sm",style:{tableLayout:"fixed"}},s.a.createElement("thead",null,s.a.createElement(_a,{folder:t}),s.a.createElement("tr",null,s.a.createElement("th",{className:"text-start px-1",style:{width:"4rem",fontSize:"1rem"}}),s.a.createElement(fe,{className:"text-start",sortKey:"name",label:"Name",store:t,style:{width:"auto"}}),s.a.createElement(fe,{className:"text-start px-1",sortKey:"status",label:"Status",store:t,style:{width:"9rem"}}),s.a.createElement(fe,{className:"text-end px-1",sortKey:"duration",label:"Length",store:t,style:{width:"6rem"}}),s.a.createElement(fe,{className:"text-end px-2",sortKey:"createdAt",label:"Deleted On",store:t,style:{width:"7rem"}}))),s.a.createElement("tbody",null,t.items.map((function(e){return s.a.createElement(ti,{key:e.id,item:e,user:n,multiSelectEnabled:!0})}))),s.a.createElement("tfoot",{className:"bgcolor--transparent tfoot--shown"},!t.isEmpty&&s.a.createElement(ri,{folder:t}))))})),ai=Object(se.c)((function(e){var t=e.folder;return s.a.createElement("tr",null,s.a.createElement("th",{className:"text-center",style:{width:"4rem"}}),s.a.createElement(fe,{className:"text-start",sortKey:"name",label:"Name",store:t,style:{width:"auto"}}),s.a.createElement(fe,{className:"text-end px-1",sortKey:"duration",label:"Length",store:t,style:{width:"6rem"}}),s.a.createElement(fe,{className:"text-start px-1",sortKey:"status",label:"Label",store:t,style:{width:"10rem"}}),s.a.createElement("th",{className:"px-2",style:{width:"7rem"}},s.a.createElement("span",{className:""},"Permissions")),s.a.createElement("th",{className:"px-1",style:{width:"8rem"}},s.a.createElement("span",{className:""},"Shared By")))}));function ii(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function li(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function si(e,t){return si=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},si(e,t)}function ci(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=fi(e);if(t){var o=fi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ui(e)}(this,n)}}function ui(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fi(e){return fi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fi(e)}function pi(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var di,mi,hi,yi,bi,vi,gi=(Ka=d.action.bound,Object(se.c)((Ja=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&si(e,t)}(a,e);var t,n,r,o=ci(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ii(e=o.call.apply(o,[this].concat(n)),"errors",Xa,ui(e)),ii(e,"saving",Qa,ui(e)),e}return t=a,(n=[{key:"save",value:function(){var e=this;this.saving=!0;var t=this.refs.nameInput.value;this.props.item.updateName(t,{onSuccess:function(){e.props.onRequestClose(),e.errors=null,e.saving=!1},onError:function(t){e.errors=t.errors,e.saving=!1}})}},{key:"renderForm",value:function(){var e=this.props.item;return s.a.createElement("div",{className:"form-group has-errors"},s.a.createElement("div",{className:"form-group"},s.a.createElement("label",{htmlFor:"originalnameInput",className:"input--label"},"Original name"),s.a.createElement("input",{readOnly:!0,id:"originalnameInput",ref:"originalnameInput",defaultValue:e.name,className:"form-control"})),s.a.createElement("div",{className:"form-group"},s.a.createElement("label",{htmlFor:"nameInput",className:"input--label"},"New name"),s.a.createElement("input",{autoFocus:!0,id:"nameInput",ref:"nameInput",defaultValue:e.name,className:"form-control"}),this.renderErrors()),this.renderButtons())}},{key:"renderButtons",value:function(){var e=this.props.item.isFolder?"Rename folder":this.props.item.isVideo?"Rename video file":"Rename audio file";return this.saving?s.a.createElement(_o,{text:"Updating name. One moment please."}):s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("button",{className:"btn btn-primary",onClick:this.save},s.a.createElement("i",{className:"fa fa-check me-2"}),e),s.a.createElement("button",{className:"btn",onClick:this.props.onRequestClose},s.a.createElement("i",{className:"fa fa-times me-2"}),"Cancel"))}},{key:"renderErrors",value:function(){if(this.errors)return s.a.createElement("div",{className:"error--text"},this.errors[0])}},{key:"render",value:function(){var e=this.props.item.isFolder?"Rename folder":this.props.item.isVideo?"Rename video file":"Rename audio file";return s.a.createElement(ao,{modalClasses:"smodal--content smodal--content-sm",onEnter:this.save,isOpen:this.props.isOpen,onRequestClose:this.props.onRequestClose,modalTitle:e,modalIcon:"far fa-terminal me-2"},s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10"},this.renderForm())))}}])&&li(t.prototype,n),r&&li(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),Xa=pi(Ja.prototype,"errors",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qa=pi(Ja.prototype,"saving",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),pi(Ja.prototype,"save",[Ka],Object.getOwnPropertyDescriptor(Ja.prototype,"save"),Ja.prototype),$a=Ja))||$a),wi=gi;function Ei(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function _i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function ki(e,t){return ki=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ki(e,t)}function Oi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Si(e);if(t){var o=Si(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return xi(e)}(this,n)}}function xi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Si(e){return Si=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Si(e)}function ji(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var Ci,Di,Ni,Pi,Ti,Mi,Ai=(di=d.action.bound,mi=d.action.bound,Object(se.c)((yi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ki(e,t)}(a,e);var t,n,r,o=Oi(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ei(e=o.call.apply(o,[this].concat(n)),"copying",bi,xi(e)),Ei(e,"copiedId",vi,xi(e)),e}return t=a,(n=[{key:"copy",value:function(){var e=this,t=this.props.item,n=this.refs.nameInput.value;this.copying=!0,t.copyItem(n).then((function(t){e.copiedId=t.id,e.copying=!1}))}},{key:"renderForm",value:function(){var e=this.props,t=e.item;return e.user.isSubscribed?s.a.createElement("div",{className:"form-group has-errors"},s.a.createElement("div",{className:"form-group"},s.a.createElement("label",{htmlFor:"originalnameInput",className:"input--label"},"Original name"),s.a.createElement("input",{readOnly:!0,id:"originalnameInput",ref:"originalnameInput",defaultValue:t.name,className:"form-control"})),s.a.createElement("div",{className:"form-group"},s.a.createElement("label",{htmlFor:"nameInput",className:"input--label"},"New name"),s.a.createElement("input",{autoFocus:!0,id:"nameInput",ref:"nameInput",defaultValue:"Copy of "+t.name,className:"form-control"})),this.renderButtons()):s.a.createElement(Li,null)}},{key:"renderButtons",value:function(){return this.copiedId?s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("a",{className:"btn btn-primary",href:"/recordings/".concat(this.copiedId)},s.a.createElement("i",{className:"far fa-copy me-2"}),"Open copy"),s.a.createElement("button",{className:"btn",onClick:this.props.onRequestClose},s.a.createElement("i",{className:"far fa-times me-2"}),"Close")):this.copying?s.a.createElement(_o,{text:"Copying. One moment please."}):s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("button",{className:"btn btn-primary",onClick:this.copy},s.a.createElement("i",{className:"far fa-check me-2"}),"Make a copy"),s.a.createElement("button",{className:"btn",onClick:this.props.onRequestClose},s.a.createElement("i",{className:"far fa-times me-2"}),"Cancel"))}},{key:"onAfterOpen",value:function(){this.copiedId=null}},{key:"render",value:function(){return s.a.createElement(ao,{modalClasses:"smodal--content smodal--content-sm",onEnter:this.save,isOpen:this.props.isOpen,onRequestClose:this.props.onRequestClose,onAfterOpen:this.onAfterOpen,modalTitle:"Make a copy",modalIcon:"far fa-copy"},s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10"},this.renderForm())))}}])&&_i(t.prototype,n),r&&_i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),bi=ji(yi.prototype,"copying",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),vi=ji(yi.prototype,"copiedId",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ji(yi.prototype,"copy",[di],Object.getOwnPropertyDescriptor(yi.prototype,"copy"),yi.prototype),ji(yi.prototype,"onAfterOpen",[mi],Object.getOwnPropertyDescriptor(yi.prototype,"onAfterOpen"),yi.prototype),hi=yi))||hi),Li=function(){return s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 mb-2"},s.a.createElement("div",{className:"alert alert-warning"},s.a.createElement("p",null,"Maing a copy is available to Premium and Enterprise customers only. Please upgrade your account to enable this feature.")),s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("a",{href:"/subscribe",className:"btn btn-primary",target:"_blank"},s.a.createElement("i",{className:"fa fa-arrow-right me-2"}),"Subscribe now"))))},Ri=Ai;function Fi(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function zi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Bi(e,t){return Bi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Bi(e,t)}function Yi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Hi(e);if(t){var o=Hi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ii(e)}(this,n)}}function Ii(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hi(e){return Hi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Hi(e)}function Ui(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var Wi,Vi,qi,Gi,Ki,$i,Ji,Xi=(Ci=d.action.bound,Di=d.action.bound,Object(se.c)((Pi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bi(e,t)}(a,e);var t,n,r,o=Yi(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Fi(e=o.call.apply(o,[this].concat(n)),"privateFile",Ti,Ii(e)),Fi(e,"saving",Mi,Ii(e)),e}return t=a,(n=[{key:"componentDidMount",value:function(){this.privateFile=!this.props.item.privateFile}},{key:"handleAccessChange",value:function(e){this.privateFile="true"===e.target.value}},{key:"save",value:function(){var e=this;this.saving=!0,this.props.onSave(this.privateFile,{onSuccess:function(){e.props.onRequestClose(),e.saving=!1}})}},{key:"renderForm",value:function(){return s.a.createElement("div",{className:"form-group"},s.a.createElement(ko,{icon:this.props.item.isVideo?"fa-video fa-lg":"fa-volume fa-lg"},this.props.item.name),s.a.createElement("h4",null,"Control access to this file"),s.a.createElement("p",null,"Even though you are part of a team account, not everyone should have access to all of your files."),s.a.createElement("div",{className:"form-group position--relative mb-4"},s.a.createElement("div",{className:"custom--sonix-block custom-controls-stacked"},s.a.createElement("label",{className:"custom-control custom-radio clickable"},s.a.createElement("input",{type:"radio",className:"custom-control-input",value:!0,checked:this.privateFile,onChange:this.handleAccessChange}),s.a.createElement("div",{className:"custom-control-description custom-control-description-bg p-2"},s.a.createElement("div",{className:"media"},s.a.createElement("span",{className:"fa-stack fa-lg me-3 align-self-center"},s.a.createElement("i",{className:"far fa-fw fa-eye-slash fa-stack-1x"})),s.a.createElement("div",{className:"media-body"},s.a.createElement("p",{className:"my-2 align-self-center"},"Private file: Only you can see this file. Clean up and highlight key parts before sharing it with others."))))),s.a.createElement("label",{className:"custom-control custom-radio clickable"},s.a.createElement("input",{type:"radio",className:"custom-control-input",value:!1,checked:!this.privateFile,onChange:this.handleAccessChange}),s.a.createElement("div",{className:"custom-control-description custom-control-description-bg p-2"},s.a.createElement("div",{className:"media"},s.a.createElement("span",{className:"fa-stack fa-lg me-3 align-self-center"},s.a.createElement("i",{className:"far fa-fw fa-eye fa-stack-1x"})),s.a.createElement("div",{className:"media-body"},s.a.createElement("p",{className:"my-2 align-self-center"},"Visible to Team: Everyone on your team can see this file."))))))),this.renderButtons())}},{key:"renderButtons",value:function(){return this.saving?s.a.createElement(_o,{text:"Updating access. Just a sec."}):s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("button",{className:"btn btn-primary",onClick:this.save},s.a.createElement("i",{className:"fa fa-check me-2"}),"Save"),s.a.createElement("button",{className:"btn",onClick:this.props.onRequestClose},s.a.createElement("i",{className:"fa fa-times me-2"}),"Cancel"))}},{key:"render",value:function(){return s.a.createElement(ao,{modalClasses:"smodal--content smodal--content-sm",onEnter:this.save,isOpen:this.props.isOpen,onRequestClose:this.props.onRequestClose,modalTitle:"Make Private / Visible to Team",modalIcon:"far fa-eye-slash"},s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10"},this.renderForm())))}}])&&zi(t.prototype,n),r&&zi(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),Ti=Ui(Pi.prototype,"privateFile",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Mi=Ui(Pi.prototype,"saving",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ui(Pi.prototype,"handleAccessChange",[Ci],Object.getOwnPropertyDescriptor(Pi.prototype,"handleAccessChange"),Pi.prototype),Ui(Pi.prototype,"save",[Di],Object.getOwnPropertyDescriptor(Pi.prototype,"save"),Pi.prototype),Ni=Pi))||Ni),Qi=Xi;function Zi(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function el(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function tl(e,t){return tl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tl(e,t)}function nl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ol(e);if(t){var o=ol(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return rl(e)}(this,n)}}function rl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ol(e){return ol=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ol(e)}function al(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var il,ll=(Wi=d.action.bound,Object(se.c)((qi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tl(e,t)}(a,e);var t,n,r,o=nl(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Zi(e=o.call.apply(o,[this].concat(n)),"isMoveModalShown",Gi,rl(e)),Zi(e,"isEditModalShown",Ki,rl(e)),Zi(e,"isPrivateModalShown",$i,rl(e)),Zi(e,"isCopyItemModalShown",Ji,rl(e)),e.showMoveModal=function(){return e.isMoveModalShown=!0},e.showEditModal=function(){return e.isEditModalShown=!0},e.showPrivateModal=function(){return e.isPrivateModalShown=!0},e.showCopyItemModal=function(){return e.isCopyItemModalShown=!0},e}return t=a,(n=[{key:"closeModal",value:function(){this.isMoveModalShown=!1,this.isEditModalShown=!1,this.isPrivateModalShown=!1,this.isCopyItemModalShown=!1}},{key:"renderDeleteLink",value:function(){var e=this.props.item,t="audio";if(e.isFolder&&(t="folder"),e.isVideo&&(t="video"),e.isDeletable())return s.a.createElement("li",null,s.a.createElement("a",{className:"link--red","data-method":"delete",href:e.deletePath(),"data-confirm":"Are you sure you want to move this ".concat(e.isFolder?"folder":"file",' "').concat(e.name,'" to the Trash?'),title:"Delete "+t},s.a.createElement("i",{className:"far fa-fw fa-trash me-2"}),"Move to trash"))}},{key:"renderPrivateLink",value:function(){var e=this.props,t=e.item,n=e.user;if(n&&n.teamAccount&&t.isFileOwner)return s.a.createElement("li",null,s.a.createElement("span",{onClick:this.showPrivateModal,className:"clickable",title:"Make "+(t.isVideo?"video ":"audio ")+(t.privateFile?"public":"private")},s.a.createElement("i",{className:ue()("far fa-fw me-2",{"fa-eye":t.privateFile,"fa-eye-slash":!t.privateFile})}),t.privateFile?"Make public":"Make private"))}},{key:"renderCopyLink",value:function(){var e=this.props,t=e.item,n=e.user;if(n&&n.canDoBulkActions&&!t.isFolder&&t.isCompleted()&&!t.isShared)return s.a.createElement("li",null,s.a.createElement("span",{onClick:this.showCopyItemModal,className:"clickable",title:"Copy "+(t.isVideo?"video ":"audio ")+"file"},s.a.createElement("i",{className:ue()("far fa-fw me-2 fa-copy")}),"Make a copy"))}},{key:"render",value:function(){var e=this.props,t=e.item,n=e.icon,r=e.inSharedFolder,o=e.user,a="audio";return t.isFolder&&(a="folder"),t.isVideo&&(a="video"),t.canEdit?s.a.createElement(Ia,null,s.a.createElement(Ia.Toggle,{tag:"button",className:"dropdown--btn"},s.a.createElement("i",{className:"far fa-fw d-inline-block "+n}),s.a.createElement("i",{className:"far fa-fw fa-angle-down d-inline-block"}),s.a.createElement("span",{className:"d-md-none ms-2"},"Edit")),s.a.createElement(Ia.Content,{className:"dropdown--content",title:"Edit "+a},s.a.createElement("ol",{className:"dropdown--menu"},!t.isShared&&s.a.createElement("li",{className:"position--relative"},s.a.createElement("span",{onClick:this.showEditModal,className:"clickable",title:"Rename "+a},s.a.createElement("i",{className:"far fa-fw fa-terminal me-2"}),"Rename")),s.a.createElement("li",null,s.a.createElement("span",{onClick:this.showMoveModal,className:"clickable",title:"Move "+a},s.a.createElement("i",{className:"far fa-fw fa-arrows me-2"}),r?"Move to folder":"Move")),this.renderCopyLink(),this.renderPrivateLink(),this.renderDeleteLink())),s.a.createElement(Io,{item:t,isOpen:this.isMoveModalShown,onRequestClose:this.closeModal}),s.a.createElement(wi,{item:t,isOpen:this.isEditModalShown,onRequestClose:this.closeModal}),s.a.createElement(Ri,{item:t,user:o,isOpen:this.isCopyItemModalShown,onRequestClose:this.closeModal}),s.a.createElement(Qi,{item:t,onSave:t.updateAccess,isOpen:this.isPrivateModalShown,onRequestClose:this.closeModal})):s.a.createElement("div",{className:"has--dropdown"},s.a.createElement("span",{className:"dropdown--btn text-start clickable"},s.a.createElement("i",{className:"far fa-fw d-inline-block "+n})))}}])&&el(t.prototype,n),r&&el(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),Gi=al(qi.prototype,"isMoveModalShown",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ki=al(qi.prototype,"isEditModalShown",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),$i=al(qi.prototype,"isPrivateModalShown",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ji=al(qi.prototype,"isCopyItemModalShown",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),al(qi.prototype,"closeModal",[Wi],Object.getOwnPropertyDescriptor(qi.prototype,"closeModal"),qi.prototype),Vi=qi))||Vi),sl=ll;function cl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function ul(e,t){return ul=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ul(e,t)}function fl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pl(e);if(t){var o=pl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function pl(e){return pl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pl(e)}var dl,ml,hl,yl,bl=Object(se.c)(il=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ul(e,t)}(a,e);var t,n,r,o=fl(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"permissionBadgeTextAndMessage",value:function(){return this.props.item.readonly?["fa-eye","View only","You cannot edit this file"]:["fa-pencil","Edit","You can edit this file"]}},{key:"renderFileName",value:function(){var e=this.props.item;return s.a.createElement("div",null,s.a.createElement("span",{className:"d-block text--no-overflow"},e.name||"Untitled"))}},{key:"render",value:function(){var e=this.props,t=e.item,n=e.user,r=this.permissionBadgeTextAndMessage();return s.a.createElement("tr",{className:"text--hover"},s.a.createElement("td",{className:"d-none d-md-table-cell","data-label":"Actions"},s.a.createElement(sl,{item:t,user:n,inSharedFolder:!0,icon:t.statusTag.file_icon,status:t.statusTag.file_tooltip})),s.a.createElement("td",{className:"text--no-wrap text--size-table","data-label":"File Name"},s.a.createElement("a",{className:"text--hover text--no-overflow",href:"/recordings/"+t.id},this.renderFileName())),s.a.createElement("td",{className:"text-end text--size-table","data-label":"Duration"},t.durationFormatted),s.a.createElement("td",{className:"text--size-table","data-label":"Status"},s.a.createElement(ei,{item:t})),s.a.createElement("td",{className:"text--size-table","data-label":"Permissions"},s.a.createElement("span",{"data-balloon":r[2],"data-balloon-pos":"up"},s.a.createElement("i",{className:"far fa-fw me-1 "+r[0]}),r[1])),s.a.createElement("td",{className:"text--size-table","data-label":"Shared By"},s.a.createElement("div",{className:"p-0","data-balloon":"Please contact "+t.ownerName+" if you have any issues with this file.","data-balloon-length":"medium","data-balloon-pos":"up-right"},s.a.createElement("span",{className:"shared-by text--no-overflow"},t.ownerName))))}}])&&cl(t.prototype,n),r&&cl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||il,vl=bl,gl=function(e){var t=e.folder,n="/upload?folder_id=".concat(t.id);return s.a.createElement("tr",null,s.a.createElement("td",{className:"d-block d-md-table-cell py-2 text-center border-bottom-0",colSpan:5},s.a.createElement("div",{className:"text--color-meta-light fw-bold my-4"},s.a.createElement("i",{className:"d-block far fa-folder-open fa-2x"}),s.a.createElement("span",{className:"d-block mb-2"},"This folder is empty"),s.a.createElement("a",{href:n,className:"btn btn-primary mb-0"},s.a.createElement("i",{className:"far fa-fw fa-upload me-2"}),"Upload a file here"))))},wl=Object(se.c)((function(e){var t=e.folder,n=e.user;return s.a.createElement("tbody",null,t.items.map((function(e){return s.a.createElement(vl,{key:e.id,item:e,user:n})})),t.isEmpty&&s.a.createElement(gl,{folder:t}))})),El=Object(se.c)((function(e){var t=e.folder,n=e.user;return s.a.createElement("table",{className:"table table--simple table--folders table--spacing-sm",style:{tableLayout:"fixed"}},s.a.createElement("thead",null,s.a.createElement(ai,{folder:t,user:n})),s.a.createElement(wl,{folder:t,user:n}))})),_l=function(e){return e.show?s.a.createElement("tr",{className:"text--hover"},s.a.createElement("td",{className:"d-none d-md-table-cell has--dropdown","data-label":"Actions"},s.a.createElement("button",{className:"app-image dropdown--btn"},s.a.createElement("i",{className:"app-folder-patreon"}))),s.a.createElement("td",{className:"text--no-wrap text--size-table","data-label":"Folder Name"},s.a.createElement(ge,{className:"d-block text--hover text--weight-700",to:"/f/patreon"},s.a.createElement("div",{className:"d-inline-block d-md-none app-image py-2 me-2"},s.a.createElement("i",{className:"app-folder-patreon"},"Patreon Folder")),s.a.createElement("span",null,"Patreon - shared with me"))),s.a.createElement("td",{className:"d-none d-md-table-cell","data-label":""}," "),s.a.createElement("td",{className:"d-none d-md-table-cell","data-label":""}," "),s.a.createElement("td",{className:"d-none d-md-table-cell","data-label":""}," ")):null},kl=n(5),Ol=n.n(kl);function xl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Sl(e,t){return Sl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Sl(e,t)}function jl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Cl(e);if(t){var o=Cl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Cl(e){return Cl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Cl(e)}var Dl=(dl=Object(Yn.DragSource)("item",{beginDrag:function(e){return{item:e.item}},canDrag:function(e){return e.item.canEdit}},(function(e,t){return{connectDragSource:e.dragSource(),connectDragPreview:e.dragPreview(),isDragging:t.isDragging()}})),ml=d.action.bound,dl(hl=Object(se.c)((yl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sl(e,t)}(a,e);var t,n,r,o=jl(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"componentDidMount",value:function(){this.props.connectDragPreview(Object(In.getEmptyImage)(),{captureDraggingState:!0})}},{key:"renderFolderItemName",value:function(){var e=this.props.item;return s.a.createElement("div",{className:"media"},e.privateFile&&s.a.createElement("span",{className:"badge badge-sidebar align-self-center text--size-800rem me-2","data-balloon":"Other members cannot see this file","data-balloon-pos":"down"},s.a.createElement("i",{className:"far fa-fw fa-eye-slash me-1"})," Private"),e.isShared&&s.a.createElement("span",{className:"badge badge-sidebar align-self-center text--size-800rem me-2","data-balloon":"Shared by ".concat(e.ownerName),"data-balloon-pos":"down"},s.a.createElement("i",{className:"far fa-fw fa-share-alt me-1"})," Shared"),s.a.createElement("div",{className:"media-body py-1 text--size-800rem"},s.a.createElement("i",{className:ue()("d-inline-block d-md-none far fa-fw me-2",{"fa-video":e.isVideo},{"fa-volume":!e.isVideo})}),e.name||"Untitled"))}},{key:"renderFolderItemLink",value:function(){var e=this.props.item;return e.isFailed()||e.isBlocked()||e.isDuplicate()?s.a.createElement("div",{className:"d-block"},this.renderFolderItemName()):s.a.createElement("a",{className:"text--hover d-block",href:"/recordings/"+e.id},this.renderFolderItemName())}},{key:"toggleSelected",value:function(e){e.preventDefault(),e.shiftKey?this.props.item.toggleRange():this.props.item.toggleSelected()}},{key:"render",value:function(){var e=this.props,t=e.multiSelectEnabled,n=e.item,r=e.connectDragSource,o=e.isDragging,a=e.user,i=n.selected,l=Ol.a.unix(n.createdAt);return r(s.a.createElement("tr",{className:ue()("text--line-height-normal text--hover",{"folder-drag--selected":o},{"folder-multiselect--selected":i})},s.a.createElement("td",{className:"d-none d-md-table-cell align-middle","data-label":"Actions"},t&&!n.isShared&&s.a.createElement("a",{className:"px-1 clickable",onClick:this.toggleSelected,"data-balloon":(i?"Deselect ":"Select ")+(n.isVideo?"video":"audio")+" file","data-balloon-pos":"right"},s.a.createElement("i",{className:ue()("far fa-fw",{"far fa-square":!i,"fas fa-check-square":i})})),!t&&s.a.createElement(sl,{item:n,user:a,icon:n.statusTag.file_icon,status:n.statusTag.file_tooltip})),s.a.createElement("td",{className:"text--size-table","data-label":"File Name"},this.renderFolderItemLink()),s.a.createElement("td",{className:"text-end text-md-start text--size-table","data-label":"Status"},s.a.createElement(ei,{item:n})),s.a.createElement("td",{className:"text-end text--size-table","data-label":"Duration"},n.durationFormatted),s.a.createElement("td",{className:"text-end text--size-table px-2","data-label":"Date Created"},s.a.createElement("span",{className:"date","data-balloon":l.format("MMMM D, YYYY [at] h:mma"),"data-balloon-pos":"down"},l.format("MMM D, YYYY")))))}}])&&xl(t.prototype,n),r&&xl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),function(e,t,n,r,o){var a={};Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null)}(yl.prototype,"toggleSelected",[ml],Object.getOwnPropertyDescriptor(yl.prototype,"toggleSelected"),yl.prototype),hl=yl))||hl)||hl),Nl=Dl;function Pl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Tl(e,t){return Tl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Tl(e,t)}function Ml(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Al(e);if(t){var o=Al(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Al(e){return Al=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Al(e)}var Ll,Rl,Fl,zl,Bl,Yl,Il,Hl,Ul,Wl,Vl,ql,Gl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tl(e,t)}(a,e);var t,n,r,o=Ml(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props.text||"Please wait";return s.a.createElement("div",{className:"col-sm-12 loading-animation-container"},s.a.createElement("div",{className:"loading-animation loading-animation-mini"},s.a.createElement("div",{className:"line"}),s.a.createElement("div",{className:"line"}),s.a.createElement("div",{className:"line"}),s.a.createElement("div",{className:"line"}),s.a.createElement("div",{className:"line"})),s.a.createElement("div",{className:"loading-text"},e))}}])&&Pl(t.prototype,n),r&&Pl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),Kl=Gl;function $l(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Jl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Xl(e,t){return Xl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xl(e,t)}function Ql(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=es(e);if(t){var o=es(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Zl(e)}(this,n)}}function Zl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function es(e){return es=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},es(e)}function ts(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var ns,rs,os,as=(Ll=d.action.bound,Rl=d.action.bound,Fl=d.action.bound,zl=d.action.bound,Bl=d.action.bound,Object(se.c)((Il=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xl(e,t)}(a,e);var t,n,r,o=Ql(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return $l(e=o.call.apply(o,[this].concat(n)),"loading",Hl,Zl(e)),$l(e,"saving",Ul,Zl(e)),$l(e,"folderAccess",Wl,Zl(e)),$l(e,"preventExports",Vl,Zl(e)),$l(e,"userList",ql,Zl(e)),e.isAccess=function(t){return t===e.folderAccess},e}return t=a,n=[{key:"onAfterOpen",value:function(){var e=this,t=this.props.item;this.loading=!0,this.folderAccess=t.accessControl,this.preventExports=t.preventExports,t.fetchUserPermissionList().then((function(){e.loading=!1,e.userList=t.availableUsersForPermissions}))}},{key:"save",value:function(){var e=this,t=this.props.item;this.saving=!0,t.updateAccess(this.folderAccess,this.userList,this.preventExports).then((function(){e.props.onRequestClose(),e.saving=!1}))}},{key:"grantSubfolderAccess",value:function(e,t){e.preventDefault();var n=this.props.item,r="Are you sure that you want to grant ".concat(t.name,"'s (").concat(t.email,") access to all the subfolders in ").concat(n.name,"?");confirm(r)&&n.grantSubfolderAccess(t)}},{key:"handleAccessChange",value:function(e){this.folderAccess=e.target.value}},{key:"handlePreventExportsChange",value:function(e){this.preventExports="true"===e.target.value}},{key:"renderForm",value:function(){var e=this.props.item;return s.a.createElement("div",{className:"form-group"},s.a.createElement("p",null,"Manage permissions for the folder named:",s.a.createElement("span",{className:"text--color-primary-dark text--weight-700 mx-2"},s.a.createElement("i",{className:"fas fa-fw fa-folder me-1 align-self-center "}),e.name)),s.a.createElement("h3",{className:"text--weight-700"},"Who can access",s.a.createElement("span",{className:"ms-2 text--size-p text--weight-400","data-balloon-pos":"right","data-balloon-length":"x-large","data-balloon-break":"true","data-balloon":"View: See all folder and files.\nSearch: Files will show up in search results.\nAccess: Open and edit transcripts."},s.a.createElement("i",{className:"far fa-fw fa-info-circle"}))),s.a.createElement("div",{className:"form-group position--relative mb-4"},s.a.createElement("div",{className:"custom--sonix-block custom-controls-stacked"},s.a.createElement("label",{className:"custom-control custom-radio clickable mb-0"},s.a.createElement("input",{type:"radio",className:"custom-control-input",checked:this.isAccess("internal"),value:"internal",onChange:this.handleAccessChange}),s.a.createElement("div",{className:"custom-control-description custom-control-description-bg p-2"},s.a.createElement("div",{className:"media"},s.a.createElement("span",{className:"fa-stack fa-2x me-3 align-self-center text--size-1400rem"},s.a.createElement("i",{className:"far fa-fw fa-user-friends fa-stack-1x"})),s.a.createElement("div",{className:"media-body"},s.a.createElement("h3",{className:"text--weight-700 text--size-900rem"},"Entire team"),s.a.createElement("p",{className:"mb-0"},"Everyone on the team can view, search, and access files in this folder."))))),s.a.createElement("label",{className:"custom-control custom-radio clickable mb-0"},s.a.createElement("input",{type:"radio",className:"custom-control-input",checked:this.isAccess("external"),value:"external",onChange:this.handleAccessChange}),s.a.createElement("div",{className:"custom-control-description custom-control-description-bg p-2"},s.a.createElement("div",{className:"media"},s.a.createElement("span",{className:"fa-stack fa-2x me-3 align-self-center text--size-1400rem"},s.a.createElement("i",{className:"far fa-fw fa-users fa-stack-1x"})),s.a.createElement("div",{className:"media-body"},s.a.createElement("h3",{className:"text--weight-700 text--size-900rem"},"Entire team + external members"),s.a.createElement("p",{className:"mb-0"},"Everyone on the team and external members can view, search, and access files in this folder."))))),s.a.createElement("label",{className:"custom-control custom-radio clickable mb-0"},s.a.createElement("input",{type:"radio",className:"custom-control-input",checked:this.isAccess("restricted"),value:"restricted",onChange:this.handleAccessChange}),s.a.createElement("div",{className:"custom-control-description custom-control-description-bg p-2"},s.a.createElement("div",{className:"media"},s.a.createElement("span",{className:"fa-stack fa-2x me-3 align-self-center text--size-1400rem"},s.a.createElement("i",{className:"far fa-fw fa-user fa-stack-1x"})),s.a.createElement("div",{className:"media-body"},s.a.createElement("h3",{className:"text--weight-700 text--size-900rem"},"Specific people (most secure)"),s.a.createElement("p",{className:"mb-0"},"Visible, searchable, and accessible only by the people you allow."))))),this.isAccess("restricted")&&s.a.createElement("div",{className:"custom-control custom-extra p-2"},this.renderUserList()))),s.a.createElement("h3",{className:"text--weight-700"},"Share and export"),s.a.createElement("div",{className:"form-group position--relative mb-4"},s.a.createElement("div",{className:"custom--sonix-block custom-controls-stacked"},s.a.createElement("label",{className:"custom-control custom-radio clickable mb-0"},s.a.createElement("input",{type:"radio",className:"custom-control-input",checked:!this.preventExports,value:!1,onChange:this.handlePreventExportsChange}),s.a.createElement("div",{className:"custom-control-description custom-control-description-bg p-2"},s.a.createElement("div",{className:"media"},s.a.createElement("span",{className:"fa-stack fa-2x me-3 align-self-center text--size-1400rem"},s.a.createElement("i",{className:"far fa-fw fa-download fa-stack-1x"})),s.a.createElement("div",{className:"media-body"},s.a.createElement("h3",{className:"text--weight-700 text--size-900rem"},"Enabled"),s.a.createElement("p",{className:"mb-0"},"Everyone can share and export transcripts."))))),s.a.createElement("label",{className:"custom-control custom-radio clickable mb-0"},s.a.createElement("input",{type:"radio",className:"custom-control-input",checked:this.preventExports,value:!0,onChange:this.handlePreventExportsChange}),s.a.createElement("div",{className:"custom-control-description custom-control-description-bg p-2"},s.a.createElement("div",{className:"media"},s.a.createElement("span",{className:"fa-stack fa-2x me-3 align-self-center text--size-1400rem"},s.a.createElement("i",{className:"far fa-download fa-stack-1x text--color-error"}),s.a.createElement("i",{className:"far fa-ban fa-stack-2x"})),s.a.createElement("div",{className:"media-body"},s.a.createElement("h3",{className:"text--weight-700 text--size-900rem"},"Restricted"),s.a.createElement("p",{className:"mb-0"},"Sharing and exporting is disabled."))))))),this.renderButtons())}},{key:"renderUserRow",value:function(e){return s.a.createElement("li",{className:"list--scroll-item",key:e.id},s.a.createElement("label",{className:"custom-control custom-checkbox clickable mb-0"},s.a.createElement("input",{checked:e.restricted_user,onChange:function(t){return e.restricted_user=t.target.checked},type:"checkbox",className:"custom-control-input"}),s.a.createElement("div",{className:"custom-control-checkbox"},s.a.createElement("div",{className:"inside"})),s.a.createElement("div",{className:"custom-control-description"},s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col-6 py-1"},s.a.createElement("p",null,e.name,s.a.createElement("br",null),e.email)),s.a.createElement("div",{className:"col-3"},s.a.createElement("div",{className:"py-2"},s.a.createElement("div",{className:"".concat(e.role_class," badge rounded-pill text--size-800rem text--color-white")},e.role))),s.a.createElement("div",{className:"col-3"},s.a.createElement("div",{className:"py-2 text--size-800rem"},this.renderSubfolderOptions(e)))))))}},{key:"renderSubfolderOptions",value:function(e){var t=this;return e.subfolderAccessGranted?s.a.createElement("span",{className:"text--color-success-dark"},s.a.createElement("i",{className:"fas fa-check-circle fa-fw me-1 text--color-success-dark"})," Subfolders access granted"):e.restricted_user?s.a.createElement("a",{className:"link--arrow-right",onClick:function(n){return t.grantSubfolderAccess(n,e)}},"Grant access to subfolders"):void 0}},{key:"renderUserList",value:function(){var e=this;return this.loading?s.a.createElement("ul",{className:"list--scroll"},s.a.createElement("li",{className:"list--scroll-item border-none"},s.a.createElement("div",{className:"container-fluid"},s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement("div",{className:"p-4 text-center"},s.a.createElement(Kl,{text:"Finding users who have access... Please wait."}))))))):0===this.userList.length?s.a.createElement("ul",{className:"list--scroll"},s.a.createElement("li",{className:"list--scroll-item border-none"},s.a.createElement("div",{className:"container-fluid"},s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement("div",{className:"p-4 text-center"},s.a.createElement("i",{className:"far fa-fw fa-user-lock fa-3x text--color-primary mb-3"}),s.a.createElement("h4",{className:"mb-0 text--weight-700 "},"Accessible by admin users only"),s.a.createElement("p",{className:"mb-0"},'Only admin users can access the parent folder of "',this.props.item.name,'." Please give a non-admin user access to the parent folder to see them listed here.'))))))):s.a.createElement("ul",{className:"list--scroll list--scroll-hover"},s.a.createElement("li",{className:"alert alert-warning text-center mb-0 border-radius--none"},s.a.createElement("p",{className:"mb-0 text-center text--size-900rem"},"Admins have access to all files on the account.")),s.a.createElement("li",{className:"list--scroll-header"},s.a.createElement("div",{className:"custom-control custom-header"},s.a.createElement("div",{className:"custom-control-description"},s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col-6"},s.a.createElement("h4",null,"Name")),s.a.createElement("div",{className:"col-3"},s.a.createElement("h4",null,"Role")),s.a.createElement("div",{className:"col-3"},s.a.createElement("h4",null)))))),this.userList.map((function(t){return e.renderUserRow(t)})))}},{key:"renderButtons",value:function(){return this.saving?s.a.createElement(Kl,{text:"Updating access..."}):s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("button",{className:"btn btn-primary",onClick:this.save},s.a.createElement("i",{className:"fa fa-check me-2"}),"Save permissions"),s.a.createElement("button",{className:"btn",onClick:this.props.onRequestClose},s.a.createElement("i",{className:"fa fa-times me-2"}),"Cancel"))}},{key:"render",value:function(){return s.a.createElement(ao,{modalClasses:"smodal--content smodal--content-md",onEnter:this.save,isOpen:this.props.isOpen,onAfterOpen:this.onAfterOpen,onRequestClose:this.props.onRequestClose,modalTitle:"Folder permissions",modalIcon:"far fa-shield-check"},s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10"},this.renderForm())))}}],n&&Jl(t.prototype,n),r&&Jl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),Hl=ts(Il.prototype,"loading",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Ul=ts(Il.prototype,"saving",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Wl=ts(Il.prototype,"folderAccess",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"internal"}}),Vl=ts(Il.prototype,"preventExports",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ql=ts(Il.prototype,"userList",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),ts(Il.prototype,"onAfterOpen",[Ll],Object.getOwnPropertyDescriptor(Il.prototype,"onAfterOpen"),Il.prototype),ts(Il.prototype,"save",[Rl],Object.getOwnPropertyDescriptor(Il.prototype,"save"),Il.prototype),ts(Il.prototype,"grantSubfolderAccess",[Fl],Object.getOwnPropertyDescriptor(Il.prototype,"grantSubfolderAccess"),Il.prototype),ts(Il.prototype,"handleAccessChange",[zl],Object.getOwnPropertyDescriptor(Il.prototype,"handleAccessChange"),Il.prototype),ts(Il.prototype,"handlePreventExportsChange",[Bl],Object.getOwnPropertyDescriptor(Il.prototype,"handlePreventExportsChange"),Il.prototype),Yl=Il))||Yl),is=as;function ls(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function ss(e,t){return ss=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ss(e,t)}function cs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=fs(e);if(t){var o=fs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return us(e)}(this,n)}}function us(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fs(e){return fs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fs(e)}var ps,ds=function(){return s.a.createElement(s.a.Fragment,null,s.a.createElement("h3",{className:"text--transform-uppercase text--size-1100rem"},s.a.createElement("i",{className:"far fa-user-friends me-2"}),"Entire team"),s.a.createElement("p",{className:"text--size-800rem text--color mb-2"},"Everyone on your team (except external members) can find and access this folder."))},ms=function(){return s.a.createElement(s.a.Fragment,null,s.a.createElement("h3",{className:"text--transform-uppercase text--size-1100rem"},s.a.createElement("i",{className:"far fa-users me-2"}),"Team + external members"),s.a.createElement("p",{className:"text--size-800rem text--color mb-2"},"Everyone on the team and all external members can find and access this folder."))},hs=function(e){var t=e.user;return s.a.createElement("li",{className:"list-group-item list--scroll-item"},s.a.createElement("div",{className:"media py-1"},s.a.createElement("i",{className:"far fa-user me-2 text--color"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("h5",{className:"mb-0 text--size-800rem"},t.name),s.a.createElement("p",{className:"text--size-800rem text--color-meta-dark mb-0"},t.email))))},ys=function(e){e.user;return s.a.createElement("li",{className:"list-group-item list--scroll-item"},s.a.createElement("div",{className:"media py-1"},s.a.createElement("i",{className:"far fa-lock me-2 text--color"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("h5",{className:"mb-0 text--size-800rem"},"Admins only"),s.a.createElement("p",{className:"text--size-800rem text--color-meta-dark mb-0"},"Only Admins can access this folder"))))},bs=Object(se.c)((function(e){var t=e.folder;return s.a.createElement(s.a.Fragment,null,s.a.createElement("h3",{className:"text--transform-uppercase text--size-1100rem"},s.a.createElement("i",{className:"far fa-user me-2"}),"Specific members"),s.a.createElement("p",{className:"text--size-800rem text--color mb-2"},"Only account admins and the following members can access this folder:"),s.a.createElement("ul",{className:"list-group list--scroll list-group-border-none py-1"},t.restrictedUsers.length?t.restrictedUsers.map((function(e){return s.a.createElement(hs,{user:e,key:e.email})})):s.a.createElement(ys,null)))})),vs=function(){return s.a.createElement(s.a.Fragment,null,s.a.createElement("p",{className:"text--size-800rem text--color-error mb-3"},s.a.createElement("i",{className:"fas fa-download text--color-error me-2"}),"Sharing and exporting is disabled for this folder."))},gs=Object(se.c)((rs=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ss(e,t)}(a,e);var t,n,r,o=cs(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(e=o.call.apply(o,[this].concat(n)),"isPermissionsModalShown",os,us(e)),e.showModal=function(){return e.isPermissionsModalShown=!0},e.closeModal=function(){return e.isPermissionsModalShown=!1},e}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.folder,n=e.user;return s.a.createElement(s.a.Fragment,null,s.a.createElement(Ia,null,s.a.createElement(Ia.Toggle,{tag:"span",className:"btn btn-crumb btn-crumb-current btn-crumb-permission btn-sm","data-balloon-pos":"top","data-balloon-length":"medium","data-balloon":"See folder access. ".concat(t.preventExports?"Exports have been disabled.":"")},s.a.createElement("i",{className:ue()("fas fa-fw",{"fa-user":t.isRestrictedAccess,"fa-users":t.isExternalAccess,"fa-user-friends":t.isInternalAccess})}),t.preventExports&&s.a.createElement("i",{className:"fas fa-download text--color-error ms-2"})),s.a.createElement(Ia.Content,{className:"dropdown--content-md dropdown--content-left",title:"Folder Access"},t.isInternalAccess&&s.a.createElement(ds,null),t.isExternalAccess&&s.a.createElement(ms,null),t.isRestrictedAccess&&s.a.createElement(bs,{folder:t}),t.preventExports&&s.a.createElement(vs,null),n.canEditPermissions&&s.a.createElement("p",{className:"text--size-800rem my-2"},s.a.createElement("span",{className:"link",onClick:this.showModal},s.a.createElement("i",{className:"far fa-fw me-1 fa-shield-check"}),"Change folder permissions")))),s.a.createElement(is,{item:t,isOpen:this.isPermissionsModalShown,onRequestClose:this.closeModal}))}}])&&ls(t.prototype,n),r&&ls(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),os=function(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}(rs.prototype,"isPermissionsModalShown",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ns=rs))||ns,ws=gs;function Es(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function _s(e,t){return _s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_s(e,t)}function ks(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Os(e);if(t){var o=Os(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Os(e){return Os=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Os(e)}var xs,Ss=Object(Yn.DragSource)("item",{beginDrag:function(e){return{item:e.folder}},canDrag:function(e){return e.folder.canEdit}},(function(e,t){return{connectDragSource:e.dragSource(),connectDragPreview:e.dragPreview(),isDragging:t.isDragging()}}))(ps=Object(Yn.DropTarget)("item",{canDrop:function(e,t){var n=t.getItem().item;return e.folder.id!==n.id},drop:function(e,t){t.getItem().item.move(e.folder.id)}},(function(e,t){return{connectDropTarget:e.dropTarget(),isOver:t.isOver(),canDrop:t.canDrop()}}))(ps=Object(se.c)(ps=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_s(e,t)}(a,e);var t,n,r,o=ks(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"componentDidMount",value:function(){this.props.connectDragPreview(Object(In.getEmptyImage)(),{captureDraggingState:!0})}},{key:"render",value:function(){var e=this.props,t=e.folder,n=e.connectDragSource,r=e.connectDropTarget,o=e.isOver,a=e.isDragging,i=e.user,l=ue()("text--hover text--line-height-normal",{"folder-drag--selected":a,"folder-drag--destination":o}),c=ue()("fas",{"fa-folder":!t.preventExports,"fa-folder-times":t.preventExports});return n(r(s.a.createElement("tr",{className:l},s.a.createElement("td",{className:"d-none d-md-table-cell","data-label":"Actions"},s.a.createElement(sl,{user:i,item:t,icon:c})),s.a.createElement("td",{className:"text--size-table","data-label":"Folder Name"},s.a.createElement("div",{className:"media"},i.showPermissions&&s.a.createElement("div",{className:"d-inline-block mx-2 ms-md-0 text--size-1000rem py-md-1 pt-3 mb-2 mb-md-0"},s.a.createElement(ws,{folder:t,user:i})),s.a.createElement("div",{className:"media-body"},s.a.createElement(ge,{className:"d-block text--hover text--weight-700",to:"/f/"+t.id},s.a.createElement("div",{className:"py-2 text--size-800rem"},s.a.createElement("i",{className:"d-inline-block d-md-none far fa-folder fa-fw me-2"}),t.name))))),s.a.createElement("td",{className:"d-none d-md-table-cell","data-label":""}," "),s.a.createElement("td",{className:"d-none d-md-table-cell","data-label":""}," "),s.a.createElement("td",{className:"d-none d-md-table-cell","data-label":""}," "))))}}])&&Es(t.prototype,n),r&&Es(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||ps)||ps)||ps,js=Ss,Cs=function(){return s.a.createElement(Ia,null,s.a.createElement(Ia.Toggle,{tag:"span",className:"link d-inline-block badge badge-sidebar-error text--color-error"},s.a.createElement("i",{className:ue()("far fa-fw fa-trash")})),s.a.createElement(Ia.Content,{className:"dropdown--content-md dropdown--content-left",title:"Files to be deleted"},s.a.createElement("h3",{className:"text--transform-uppercase text--size-1100rem text--color-error"},s.a.createElement("i",{className:"far fa-trash me-2"}),"Trash"),s.a.createElement("p",{className:"text--size-800rem text--color mb-2"},"Easily restore deleted files. All files in this folder will be permanently deleted in 7 days.")))},Ds=function(e){var t=e.show,n=e.trashCount;return t?s.a.createElement("tr",{className:"text--hover"},s.a.createElement("td",{className:"d-none d-md-table-cell has--dropdown","data-label":"Actions"},s.a.createElement("button",{className:"dropdown--btn text--color-error"},s.a.createElement("i",{className:"fas fa-fw fa-folder"}))),s.a.createElement("td",{className:"text--size-table","data-label":"Folder Name"},s.a.createElement("div",{className:"media"},s.a.createElement("div",{className:"d-inline-block mx-2 ms-md-0 text--size-1000rem py-md-1 pt-3 mb-2 mb-md-0"},s.a.createElement(Cs,null)),s.a.createElement("div",{className:"media-body"},s.a.createElement(ge,{className:"d-block text--hover text--weight-700 text--color-error",to:"/f/trash"},s.a.createElement("i",{className:"d-inline-block d-md-none far fa-folder fa-fw me-2"}),s.a.createElement("span",null,"Trash (",n,")"))))),s.a.createElement("td",{className:"d-none d-md-table-cell","data-label":""}," "),s.a.createElement("td",{className:"d-none d-md-table-cell","data-label":""}," "),s.a.createElement("td",{className:"d-none d-md-table-cell","data-label":""}," ")):null},Ns=function(e){var t=e.show,n=e.folder;return t?s.a.createElement("tr",{className:"text--hover"},s.a.createElement("td",{className:"d-none d-md-table-cell has--dropdown","data-label":"Actions"},s.a.createElement("button",{className:"dropdown--btn"},s.a.createElement("i",{className:"fas fa-fw fa-brain-circuit"}))),s.a.createElement("td",{className:"text--size-table","data-label":"Folder Name"},s.a.createElement("div",{className:"media"},s.a.createElement("div",{className:"media-body"},s.a.createElement("a",{href:"/folders/".concat(n.id,"/batch_summarizations"),className:"d-block text--hover text--weight-700"},s.a.createElement("i",{className:"d-inline-block d-md-none fas fa-brain-circuit fa-fw me-2"}),s.a.createElement("span",null,"AI analysis"))))),s.a.createElement("td",{className:"d-none d-md-table-cell","data-label":""}," "),s.a.createElement("td",{className:"d-none d-md-table-cell","data-label":""}," "),s.a.createElement("td",{className:"d-none d-md-table-cell","data-label":""}," ")):null},Ps=Object(se.c)((function(){return s.a.createElement(Ia,null,s.a.createElement(Ia.Toggle,{tag:"span",className:"link d-inline-block badge badge-sidebar"},s.a.createElement("i",{className:ue()("far fa-fw fa-share-alt")})),s.a.createElement(Ia.Content,{className:"dropdown--content-md dropdown--content-left",title:"System Folder"},s.a.createElement("h3",{className:"text--transform-uppercase text--size-1100rem"},s.a.createElement("i",{className:"far fa-share-alt me-2"}),"Shared with me"),s.a.createElement("p",{className:"text--size-800rem text--color mb-2"},"A comfy home for all Sonix video or audio files that others have lovingly shared with you. This folder cannot be deleted or moved.")))})),Ts=function(e){return e.show?s.a.createElement("tr",{className:"text--hover"},s.a.createElement("td",{className:"d-none d-md-table-cell has--dropdown","data-label":"Actions"},s.a.createElement("button",{className:"dropdown--btn"},s.a.createElement("i",{className:"fas fa-fw fa-folder"}))),s.a.createElement("td",{className:"text--size-table","data-label":"Folder Name"},s.a.createElement("div",{className:"media"},s.a.createElement("div",{className:"d-inline-block mx-2 ms-md-0 text--size-1000rem py-md-1 pt-3 mb-2 mb-md-0"},s.a.createElement(Ps,null)),s.a.createElement("div",{className:"media-body"},s.a.createElement(ge,{className:"d-block text--hover text--weight-700",to:"/f/shared"},s.a.createElement("i",{className:"d-inline-block d-md-none far fa-folder fa-fw me-2"}),s.a.createElement("span",null,"Shared with me"))))),s.a.createElement("td",{className:"d-none d-md-table-cell","data-label":""}," "),s.a.createElement("td",{className:"d-none d-md-table-cell","data-label":""}," "),s.a.createElement("td",{className:"d-none d-md-table-cell","data-label":""}," ")):null},Ms=Object(se.c)((function(e){var t=e.folder,n=e.user;return s.a.createElement("tbody",null,s.a.createElement(_l,{show:t.showPatreonFolder}),s.a.createElement(Ts,{show:t.showSharedFolder}),s.a.createElement(Ns,{show:t.hasBatchSummaries,folder:t}),t.isEmpty&&s.a.createElement(gl,{folder:t}),t.folders.map((function(e){return s.a.createElement(js,{key:e.id,folder:e,user:n})})),t.items.map((function(e){return s.a.createElement(Nl,{key:e.id,item:e,user:n,multiSelectEnabled:t.multiSelectEnabled})})),s.a.createElement(Ds,{show:t.showTrashFolder,trashCount:t.trashCount}))})),As=function(e){var t=e.folder;return s.a.createElement("tr",{className:""},s.a.createElement("td",{className:"d-block d-md-table-cell py-2 text-center border-bottom-0 bgcolor--white-off label--centered",colSpan:5,"data-label":t.name},s.a.createElement("span",{className:"mb-0 text--color-primary-dark fw-bold"},t.footerDescription)))};function Ls(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Rs(e,t){return Rs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Rs(e,t)}function Fs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=zs(e);if(t){var o=zs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function zs(e){return zs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zs(e)}var Bs,Ys,Is,Hs,Us,Ws,Vs=Object(se.b)("user")(xs=Object(se.c)(xs=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rs(e,t)}(a,e);var t,n,r,o=Fs(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.folder,n=e.user;return t.sharedFolder?s.a.createElement(El,{folder:t,user:n}):t.isTrashFolder?s.a.createElement(oi,{folder:t,user:n}):s.a.createElement("table",{className:"table table--simple table--row-hover table--folders table--spacing-sm",style:{tableLayout:"fixed"}},s.a.createElement("thead",null,s.a.createElement(Un,{folder:t,user:n}),s.a.createElement(Ea,{folder:t,user:n})),s.a.createElement(Ms,{folder:t,user:n}),s.a.createElement("tfoot",{className:"bgcolor--transparent tfoot--shown"},!t.isEmpty&&s.a.createElement(As,{folder:t})))}}])&&Ls(t.prototype,n),r&&Ls(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||xs)||xs,qs=Vs;function Gs(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Ks(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function $s(e,t){return $s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$s(e,t)}function Js(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Qs(e);if(t){var o=Qs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Xs(e)}(this,n)}}function Xs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qs(e){return Qs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qs(e)}function Zs(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var ec,tc,nc,rc,oc,ac=(Bs=Object(se.b)("user"),Ys=d.action.bound,Bs(Is=Object(se.c)((Hs=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$s(e,t)}(a,e);var t,n,r,o=Js(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Gs(e=o.call.apply(o,[this].concat(n)),"errors",Us,Xs(e)),Gs(e,"saving",Ws,Xs(e)),e}return t=a,(n=[{key:"save",value:function(){var e=this;this.saving=!0;var t=this.refs.nameInput.value;this.props.folder.newFolder(t,{onSuccess:function(){e.props.onRequestClose(),e.errors=null,e.saving=!1},onError:function(t){e.errors=t.errors,e.saving=!1}})}},{key:"renderForm",value:function(){return s.a.createElement("div",{className:"form-group has-errors"},s.a.createElement("div",{className:"form-group"},s.a.createElement("label",{htmlFor:"nameInput",className:"input--label"},"Folder name",this.renderPermissionAlert()),s.a.createElement("input",{autoFocus:!0,id:"nameInput",ref:"nameInput",className:"form-control"}),this.renderErrors()),this.renderButtons())}},{key:"renderPermissionAlert",value:function(){var e=this.props,t=e.folder;if(e.user.teamAccount&&!t.isRoot)return s.a.createElement("span",{"data-balloon":"This folder will inherit permissions from its parent folder","data-balloon-length":"medium","data-balloon-pos":"right"},s.a.createElement("i",{className:"far fa-shield-check mx-2 text--color-meta-dark"}))}},{key:"renderButtons",value:function(){return this.saving?s.a.createElement(_o,{text:"Creating Folder..."}):s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("button",{className:"btn btn-primary",onClick:this.save},s.a.createElement("i",{className:"fa fa-check me-2"}),"Create new folder"),s.a.createElement("button",{className:"btn",onClick:this.props.onRequestClose},s.a.createElement("i",{className:"fa fa-times me-2"}),"Cancel"))}},{key:"renderErrors",value:function(){if(this.errors)return s.a.createElement("div",{className:"error--text"},this.errors[0])}},{key:"render",value:function(){return s.a.createElement(ao,{modalClasses:"smodal--content smodal--content-sm",onEnter:this.save,isOpen:this.props.isOpen,onRequestClose:this.props.onRequestClose,modalTitle:"Create new folder",modalIcon:"far fa-folder"},s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10"},this.props.isOpen&&this.renderForm())))}}])&&Ks(t.prototype,n),r&&Ks(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),Us=Zs(Hs.prototype,"errors",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ws=Zs(Hs.prototype,"saving",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Zs(Hs.prototype,"save",[Ys],Object.getOwnPropertyDescriptor(Hs.prototype,"save"),Hs.prototype),Is=Hs))||Is)||Is),ic=ac;function lc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function sc(e,t){return sc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sc(e,t)}function cc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=fc(e);if(t){var o=fc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return uc(e)}(this,n)}}function uc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fc(e){return fc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fc(e)}function pc(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var dc,mc,hc,yc,bc,vc,gc,wc,Ec,_c,kc,Oc,xc,Sc,jc,Cc=(ec=d.action.bound,tc=d.action.bound,Object(se.c)((rc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sc(e,t)}(a,e);var t,n,r,o=cc(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(e=o.call.apply(o,[this].concat(n)),"isModalShown",oc,uc(e)),e}return t=a,(n=[{key:"showModal",value:function(){this.isModalShown=!0}},{key:"closeModal",value:function(){this.isModalShown=!1}},{key:"render",value:function(){var e=this.props.folder;return e.sharedFolder||!e.canEdit?null:s.a.createElement("div",{className:"btn-group folder-new ms-0"},s.a.createElement("span",{className:"btn btn-hover t--btn-folder-actions-new-folder","data-balloon":"Create a new folder in “"+e.name+"”","data-balloon-pos":"up",onClick:this.showModal},s.a.createElement("i",{className:"far fa-fw me-1 fa-folder-plus"}),s.a.createElement("span",{className:""},"New folder")),s.a.createElement(ic,{folder:e,isOpen:this.isModalShown,onRequestClose:this.closeModal}))}}])&&lc(t.prototype,n),r&&lc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),oc=pc(rc.prototype,"isModalShown",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),pc(rc.prototype,"showModal",[ec],Object.getOwnPropertyDescriptor(rc.prototype,"showModal"),rc.prototype),pc(rc.prototype,"closeModal",[tc],Object.getOwnPropertyDescriptor(rc.prototype,"closeModal"),rc.prototype),nc=rc))||nc),Dc=Cc;function Nc(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Pc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Tc(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var Mc,Ac,Lc,Rc,Fc,zc,Bc,Yc=(dc=d.action.bound,mc=d.action.bound,hc=d.action.bound,yc=d.action.bound,bc=d.action.bound,gc=Tc((vc=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Nc(this,"fileCount",gc,this),Nc(this,"duration",wc,this),Nc(this,"subtype",Ec,this),Nc(this,"customPrompt",_c,this),Nc(this,"summarizationCreditRemaining",kc,this),Nc(this,"summarizationCreditRemainingFormatted",Oc,this),Nc(this,"blockFolderTooLarge",xc,this),Nc(this,"blockNotEnoughCredit",Sc,this),Nc(this,"id",jc,this),this.folder=t}var t,n,r;return t=e,(n=[{key:"isComplete",get:function(){return!!this.id}},{key:"canSummarize",get:function(){return!this.blockFolderTooLarge&&!this.blockNotEnoughCredit&&!this.empty}},{key:"empty",get:function(){return 0===this.duration||0===this.fileCount}},{key:"isCustomPrompt",get:function(){return"custom"===this.subtype}},{key:"setup",value:function(){var e=this;return et.a.get("/folders/".concat(this.folder.id,"/batch_summarizations/new.json")).then(Object(d.action)((function(t){e.fileCount=t.data.fileCount,e.duration=t.data.duration,e.summarizationCreditRemaining=t.data.summarizationCreditRemaining,e.summarizationCreditRemainingFormatted=t.data.summarizationCreditRemainingFormatted,e.blockFolderTooLarge=t.data.blockFolderTooLarge,e.blockNotEnoughCredit=t.data.blockNotEnoughCredit})))}},{key:"create",value:function(e){var t=this;return et.a.post("/folders/".concat(this.folder.id,"/batch_summarizations.json"),{subtype:this.subtype,custom_prompt:this.customPrompt}).then(Object(d.action)((function(n){setTimeout((function(){return t.checkSummaryStatus(n.data.key,e)}),4e3)})))}},{key:"checkSummaryStatus",value:function(e,t){var n=this,r="/batch_summarizations/".concat(e,"/status.json");et.a.get(r).then(Object(d.action)((function(r){"completed"===r.data.status?(n.id=e,t(r.data)):setTimeout((function(){return n.checkSummaryStatus(e,t)}),1500)})))}},{key:"updateCustomPrompt",value:function(e){this.customPrompt=e.target.value}},{key:"updateSubtype",value:function(e){this.subtype=e.target.value}}])&&Pc(t.prototype,n),r&&Pc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()).prototype,"fileCount",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),wc=Tc(vc.prototype,"duration",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ec=Tc(vc.prototype,"subtype",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"sentiment"}}),_c=Tc(vc.prototype,"customPrompt",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),kc=Tc(vc.prototype,"summarizationCreditRemaining",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Oc=Tc(vc.prototype,"summarizationCreditRemainingFormatted",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),xc=Tc(vc.prototype,"blockFolderTooLarge",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Sc=Tc(vc.prototype,"blockNotEnoughCredit",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),jc=Tc(vc.prototype,"id",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Tc(vc.prototype,"isComplete",[d.computed],Object.getOwnPropertyDescriptor(vc.prototype,"isComplete"),vc.prototype),Tc(vc.prototype,"canSummarize",[d.computed],Object.getOwnPropertyDescriptor(vc.prototype,"canSummarize"),vc.prototype),Tc(vc.prototype,"empty",[d.computed],Object.getOwnPropertyDescriptor(vc.prototype,"empty"),vc.prototype),Tc(vc.prototype,"isCustomPrompt",[d.computed],Object.getOwnPropertyDescriptor(vc.prototype,"isCustomPrompt"),vc.prototype),Tc(vc.prototype,"setup",[dc],Object.getOwnPropertyDescriptor(vc.prototype,"setup"),vc.prototype),Tc(vc.prototype,"create",[mc],Object.getOwnPropertyDescriptor(vc.prototype,"create"),vc.prototype),Tc(vc.prototype,"checkSummaryStatus",[hc],Object.getOwnPropertyDescriptor(vc.prototype,"checkSummaryStatus"),vc.prototype),Tc(vc.prototype,"updateCustomPrompt",[yc],Object.getOwnPropertyDescriptor(vc.prototype,"updateCustomPrompt"),vc.prototype),Tc(vc.prototype,"updateSubtype",[bc],Object.getOwnPropertyDescriptor(vc.prototype,"updateSubtype"),vc.prototype),vc);function Ic(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Hc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Wc(e,t,n){return t&&Uc(e.prototype,t),n&&Uc(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vc(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qc(e,t)}function qc(e,t){return qc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qc(e,t)}function Gc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=$c(e);if(t){var o=$c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Kc(e)}(this,n)}}function Kc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $c(e){return $c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$c(e)}function Jc(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var Xc,Qc,Zc,eu,tu,nu={sentiment:{title:"Sentiment Analysis",description:"Assesses the emotional tone to understand the attitudes, opinions and emotions expressed in all transcripts."},thematic:{title:"Thematic Analysis",description:"Identify, analyze, and report patterns within all transcripts, providing a deep insight into the themes present."},topic:{title:"Topic Detection",description:"Identifies the topics that are discussed in all transcripts, labeling each theme automatically."},entity:{title:"Entity Detection",description:"Identifies key elements like people, places, and things within all transcripts and labels them accordingly."},summary:{title:"Generate Summary",description:"Provides a concise version of the main points discussed in all transcripts."},custom:{title:"Custom Prompt",description:"Tailor-made analysis based on what you want to ask Sonix AI."}},ru=(Mc=d.action.bound,Ac=d.action.bound,Object(se.c)((Rc=function(e){Vc(n,e);var t=Gc(n);function n(){var e;Hc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ic(e=t.call.apply(t,[this].concat(o)),"loading",Fc,Kc(e)),Ic(e,"saving",zc,Kc(e)),Ic(e,"batchSummary",Bc,Kc(e)),e}return Wc(n,[{key:"onAfterOpen",value:function(){var e=this;this.batchSummary=new Yc(this.props.folder),this.batchSummary.setup().then(Object(d.action)((function(){return e.loading=!1})))}},{key:"save",value:function(){var e=this;this.props.folder.hasBatchSummaries=!0,this.saving=!0,this.batchSummary.create(Object(d.action)((function(){return e.saving=!1})))}},{key:"renderForm",value:function(){var e=this.props.folder;if(this.loading)return s.a.createElement("div",{className:"my-5 pt-4"},s.a.createElement(Ne,null));var t=nu[this.batchSummary.subtype]||{title:"",description:"Please select an analysis type to see more details."};return s.a.createElement("div",null,s.a.createElement("div",{className:"alert alert-info"},s.a.createElement("div",{className:"media"},s.a.createElement("i",{className:"fas fa-fw fa-folder fa-2x me-3 align-self-center mt-0 text--color-primary-dark"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("h4",{className:"text--color-primary-dark"},e.name),s.a.createElement("p",{className:"mb-0"},this.batchSummary.fileCount," files, ",this.batchSummary.duration," total length")))),s.a.createElement("div",{className:"row pb-4 justify-content-center"},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement("div",{className:"py-0"},s.a.createElement("div",{className:"form-group position--relative mb-3"},s.a.createElement("label",{className:"input--label",htmlFor:"download-format"},"Choose AI analysis for all files in this folder"),s.a.createElement("select",{className:"form-select",id:"download-format",value:this.batchSummary.subtype,onChange:this.batchSummary.updateSubtype},s.a.createElement("option",{value:"select",disabled:!0},"— Please select analysis —"),s.a.createElement("optgroup",{label:"Analysis"},s.a.createElement("option",{value:"sentiment"},"Sentiment analysis"),s.a.createElement("option",{value:"thematic"},"Thematic analysis")),s.a.createElement("optgroup",{label:"Detection"},s.a.createElement("option",{value:"topic"},"Topic detection"),s.a.createElement("option",{value:"entity"},"Entity detection")),s.a.createElement("optgroup",{label:"Summarization"},s.a.createElement("option",{value:"summary"},"Generate summary"),s.a.createElement("option",{value:"custom"},"Custom prompt")))),s.a.createElement("p",{className:"text--color-meta-dark"},s.a.createElement("strong",null,t.title,":")," ",t.description),this.batchSummary.isCustomPrompt&&s.a.createElement("div",null,s.a.createElement("label",{className:"input--label text--size-1000rem",htmlFor:"batch-custom-prompt"},"What specific questions or details would you like our AI to address when processing all transcripts in this folder?"),s.a.createElement("textarea",{id:"batch-custom-prompt",value:this.batchSummary.customPrompt,onChange:this.batchSummary.updateCustomPrompt,rows:3,className:"form-control mb-3",placeholder:"Please be as detailed as possible for a tailored output."}))),s.a.createElement("div",{className:"py-2"},this.batchSummary.isComplete?this.renderLinkToSummary():this.renderButtons()))))}},{key:"renderLinkToSummary",value:function(){return s.a.createElement("div",{className:"form-actions mt-0"},s.a.createElement("a",{href:"/batch_summarizations/"+this.batchSummary.id,className:"btn btn-primary-opposite",target:"_blank"},"Analysis complete — see results",s.a.createElement("i",{className:"far fa-external-link ms-2"})),s.a.createElement("button",{className:"btn",onClick:this.props.onRequestClose},s.a.createElement("i",{className:"far fa-times me-2"}),"Close"))}},{key:"renderButtons",value:function(){return this.saving?s.a.createElement("div",{className:"pt-4"},s.a.createElement(Ne,null),s.a.createElement("p",{className:"mt-0 text--color-primary text--weight-700 text-center"},"Our AI is analyzing all your transcripts in ",s.a.createElement("strong",{className:"mx-1"},s.a.createElement("i",{className:"fas fa-folder fa-fw me-1"}),this.props.folder.name),s.a.createElement("span",{className:"mt-2 text--color-alert d-block"},s.a.createElement("i",{className:"far fa-exclamation-triangle fa-fw me-1"}),"This might take a few minutes. Thanks for being patient!"))):this.batchSummary.canSummarize?s.a.createElement("div",{className:"form-actions mt-0"},s.a.createElement("button",{className:"btn btn-primary",onClick:this.save},s.a.createElement("i",{className:"fa fa-check me-2"}),"Run analysis"),s.a.createElement("button",{className:"btn",onClick:this.props.onRequestClose},s.a.createElement("i",{className:"fa fa-times me-2"}),"Cancel")):s.a.createElement("div",{className:"alert alert-danger"},s.a.createElement("div",{className:"media"},s.a.createElement("i",{className:"fas fa-fw fa-folder-times fa-3x me-3 align-self-start mt-0 icon-danger"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("h4",{className:""},"Cannot analyze folder"),this.renderBlockReason())))}},{key:"renderBlockReason",value:function(){var e=this.props.user;if(this.batchSummary.empty)return s.a.createElement("div",null,s.a.createElement("p",{className:"mb-0"},"This folder is currently empty. Please insert some files to begin analysis."),s.a.createElement("div",{className:"form-actions mt-3"},s.a.createElement("button",{className:"btn btn-transparent-red mb-0",onClick:this.props.onRequestClose},s.a.createElement("i",{className:"far fa-times me-2"}),"Close")));if(this.batchSummary.blockFolderTooLarge){if(e.isSubscribed)return s.a.createElement("div",null,s.a.createElement("p",{className:"mb-0"},"To analyze all the transcripts in this folder, please add the AI Analysis Add-on."),s.a.createElement("div",{className:"form-actions mt-3"},s.a.createElement("a",{className:"btn btn-primary link--underline-none mb-0",href:"/account/subscription_add_ons/summarization",target:"_blank"},"Add AI Analysis",s.a.createElement("i",{className:"far fa-external-link ms-2"}))));return s.a.createElement("div",null,s.a.createElement("p",{className:"mb-2"},"To use the advanced AI Analysis tools, you'll need to do two things:"),s.a.createElement("ol",null,s.a.createElement("li",null,"Subscribe to Sonix"),s.a.createElement("li",null,"Activate the AI Analysis Add-on.")),s.a.createElement("p",{className:"mb-0"},"More information on our ",s.a.createElement("a",{className:"link--underline",href:"https://sonix.ai/pricing",target:"_blank"},"pricing page",s.a.createElement("i",{className:"far fa-external-link ms-2"})),"."),s.a.createElement("div",{className:"form-actions mt-3"},s.a.createElement("a",{className:"btn btn-primary link--underline-none mb-0",href:"/subscribe",target:"_blank"},s.a.createElement("i",{className:"far fa-arrow-up me-2"}),"Subscribe to Sonix")))}return s.a.createElement("div",null,s.a.createElement("p",{className:"mb-0"},"The total length of the transcripts in this folder exceeds the allowable limit. Please remove some transcripts and try again."),s.a.createElement("div",{className:"form-actions mt-3"},s.a.createElement("button",{className:"btn btn-transparent-red mb-0",onClick:this.props.onRequestClose},s.a.createElement("i",{className:"far fa-times me-2"}),"Close")))}},{key:"render",value:function(){var e=this.props.folder;return s.a.createElement(ao,{modalClasses:"smodal--content smodal--content-md",onEnter:this.save,isOpen:this.props.isOpen,onAfterOpen:this.onAfterOpen,onRequestClose:this.props.onRequestClose,modalFooter:s.a.createElement(au,{loading:this.loading,batchSummary:this.batchSummary}),modalTitle:"AI Analysis of folder: “"+e.name+"”",modalIcon:"far fa-shield-check"},s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10"},this.renderForm())))}}]),n}(s.a.Component),Fc=Jc(Rc.prototype,"loading",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),zc=Jc(Rc.prototype,"saving",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Bc=Jc(Rc.prototype,"batchSummary",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Jc(Rc.prototype,"onAfterOpen",[Mc],Object.getOwnPropertyDescriptor(Rc.prototype,"onAfterOpen"),Rc.prototype),Jc(Rc.prototype,"save",[Ac],Object.getOwnPropertyDescriptor(Rc.prototype,"save"),Rc.prototype),Lc=Rc))||Lc),ou=s.a.createElement("a",{className:"link--new-window link--underline",target:"_blank",href:"/account/subscription_add_ons/summarization"},"AI analysis credit"),au=function(e){Vc(n,e);var t=Gc(n);function n(){return Hc(this,n),t.apply(this,arguments)}return Wc(n,[{key:"render",value:function(){var e=this.props,t=e.batchSummary,n=e.loading;e.user;return n?null:0===t.summarizationCreditRemaining?s.a.createElement("div",{className:ue()("alert d-flex align-items-center border-radius--flat-top","alert-info")},s.a.createElement("i",{className:"fas fa-analytics fa-2x me-3"}),s.a.createElement("p",{className:"mb-0 text--size-900rem"},s.a.createElement("strong",null,"AI Analysis: ")," Please subscribe and activate the AI Analysis add-on to use this feature.")):s.a.createElement("div",{className:ue()("alert d-flex align-items-center border-radius--flat-top","alert-warning")},s.a.createElement("i",{className:"fas fa-analytics fa-2x me-3"}),s.a.createElement("p",{className:"mb-0 text--size-900rem"},s.a.createElement("strong",null,"AI Analysis: ")," You have ",t.summarizationCreditRemainingFormatted," remaining of ",ou,"."))}}]),n}(s.a.Component),iu=ru;function lu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function su(e,t){return su=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},su(e,t)}function cu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=fu(e);if(t){var o=fu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return uu(e)}(this,n)}}function uu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fu(e){return fu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fu(e)}function pu(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var du,mu,hu,yu,bu,vu=(Xc=d.action.bound,Qc=d.action.bound,Object(se.c)((eu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&su(e,t)}(a,e);var t,n,r,o=cu(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(e=o.call.apply(o,[this].concat(n)),"isModalShown",tu,uu(e)),e}return t=a,(n=[{key:"showModal",value:function(){this.isModalShown=!0}},{key:"closeModal",value:function(){this.isModalShown=!1}},{key:"showNewBadge",value:function(){return new Date<=new Date(2024,7,1)}},{key:"render",value:function(){var e=this.props,t=e.folder,n=e.user;return t.sharedFolder||t.isRoot||!n.canDoBulkActions?null:s.a.createElement("div",{className:"btn-group"},s.a.createElement("span",{className:"clickable btn btn-hover","data-balloon":"Folder AI Analysis: “"+t.name+"”","data-balloon-pos":"up",onClick:this.showModal},s.a.createElement("i",{className:"far fa-fw fa-brain-circuit"}),this.showNewBadge()&&s.a.createElement("div",{className:"badge badge--accent mx-1"},"New"),"        "),s.a.createElement(iu,{folder:t,user:n,isOpen:this.isModalShown,onRequestClose:this.closeModal}))}}])&&lu(t.prototype,n),r&&lu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),tu=pu(eu.prototype,"isModalShown",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),pu(eu.prototype,"showModal",[Xc],Object.getOwnPropertyDescriptor(eu.prototype,"showModal"),eu.prototype),pu(eu.prototype,"closeModal",[Qc],Object.getOwnPropertyDescriptor(eu.prototype,"closeModal"),eu.prototype),Zc=eu))||Zc),gu=vu;function wu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Eu(e,t){return Eu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Eu(e,t)}function _u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ou(e);if(t){var o=Ou(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ku(e)}(this,n)}}function ku(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ou(e){return Ou=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ou(e)}function xu(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var Su,ju,Cu,Du,Nu,Pu=(du=d.action.bound,mu=d.action.bound,Object(se.c)((yu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Eu(e,t)}(a,e);var t,n,r,o=_u(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(e=o.call.apply(o,[this].concat(n)),"isModalShown",bu,ku(e)),e}return t=a,(n=[{key:"showModal",value:function(){this.isModalShown=!0}},{key:"closeModal",value:function(){this.isModalShown=!1}},{key:"render",value:function(){var e=this.props,t=e.folder,n=e.user;return t.sharedFolder||t.isRoot||!n.canEditPermissions?null:s.a.createElement("div",{className:"btn-group"},s.a.createElement("span",{className:"clickable btn btn-hover","data-balloon":"Change folder permissions of “"+t.name+"”","data-balloon-pos":"up",onClick:this.showModal},s.a.createElement("i",{className:"far fa-fw fa-shield-check"})),s.a.createElement(is,{item:t,isOpen:this.isModalShown,onRequestClose:this.closeModal}))}}])&&wu(t.prototype,n),r&&wu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),bu=xu(yu.prototype,"isModalShown",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),xu(yu.prototype,"showModal",[du],Object.getOwnPropertyDescriptor(yu.prototype,"showModal"),yu.prototype),xu(yu.prototype,"closeModal",[mu],Object.getOwnPropertyDescriptor(yu.prototype,"closeModal"),yu.prototype),hu=yu))||hu),Tu=Pu,Mu=function(e){var t=e.percentage,n=e.text;return s.a.createElement("div",{className:"py-2"},s.a.createElement("div",{className:"progress"},s.a.createElement("div",{className:"progress-bar",role:"progressbar",style:{width:t+"%"},"aria-valuenow":t,"aria-valuemin":"0","aria-valuemax":"100"},t,"%")),s.a.createElement("div",{className:"my-2 text-center"},s.a.createElement(_o,{text:n})))},Au=function(e){var t=e.children,n=e.label,r=e.checked,o=e.onChange,a=e.name;return s.a.createElement("label",{className:"label-switch switch-primary"},s.a.createElement("input",{type:"checkbox",className:"switch-square switch-bootstrap status",name:a,onChange:o,checked:r}),s.a.createElement("span",{className:"lable"}),s.a.createElement("span",{className:"switch-prompt"},t||n))},Lu=Object(se.c)((function(e){var t=e.exportOptions;return s.a.createElement("div",{className:"mb-3"},s.a.createElement("div",{className:"form-group position--relative mb-3"},s.a.createElement("label",{className:"input--label",htmlFor:"srt-speaker-options"},"How many lines?"),s.a.createElement("div",{className:"form-check text--color-sidebar-text"},s.a.createElement("select",{className:"form-select",id:"srt-speaker-options",value:t.options.subtitle_lines,onChange:t.setSubtitleLines},s.a.createElement("option",{value:-1},"Split subtitles by sentence"),s.a.createElement("option",{value:1},"Keep subtitle as a single line"),s.a.createElement("option",{value:2},"Split subtitle over 2 lines"),s.a.createElement("option",{value:3},"Split subtitle over 3 lines")))),t.options.subtitle_lines>0&&s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{className:"form-group position--relative mb-3"},s.a.createElement("label",{className:"input--label mb-0",htmlFor:"srt-character-length"},s.a.createElement("strong",null,"CPL: Characters per line (Max)"),s.a.createElement("span",{className:"ms-1","data-balloon":"Each line in your subtitle will not exceed the max characters length. We will split the text to another line.","data-balloon-pos":"down","data-balloon-length":"large"},s.a.createElement("i",{className:"far fa-info-circle fa-fw"}))),s.a.createElement("div",{className:"range-slider mt-0"},s.a.createElement("input",{id:"srt-character-length",className:"range-slider__range",type:"range",min:"10",max:"80",step:"1",value:t.options.max_characters,onChange:t.setCaptionMaxChars}),s.a.createElement("span",{className:"range-slider__value"},t.options.max_characters))),s.a.createElement("div",{className:"form-group position--relative mb-3"},s.a.createElement("label",{className:"input--label mb-0",htmlFor:"srt-time-length"},s.a.createElement("strong",null,"Time duration per subtitle (Max)"),s.a.createElement("span",{className:"ms-1","data-balloon":"If the duration is longer than this limit, the text will be split to another subtitle. Choose 10s to not enforce this limit.","data-balloon-pos":"down","data-balloon-length":"large"},s.a.createElement("i",{className:"far fa-info-circle fa-fw"}))),s.a.createElement("div",{className:"range-slider mt-0"},s.a.createElement("input",{id:"srt-time-length",className:"range-slider__range",type:"range",min:"0.4",max:"10",step:"0.1",value:t.options.max_duration,onChange:t.setCaptionMaxDuration}),s.a.createElement("span",{className:"range-slider__value"},t.options.max_duration,"s")))))})),Ru=Object(se.c)((function(e){var t=e.exportOptions,n=e.hideAdvancedOptions;if(!t.isCaptionType())return null;var r=t.options;return["none","as_typed","uppercase"].includes(r.speaker_display)||t.setCaptionSpeakerOption({target:{value:"none"}}),s.a.createElement("div",null,s.a.createElement("div",{className:"form-group position--relative mb-3"},s.a.createElement("label",{className:"input--label",htmlFor:"srt-speaker-options"},"Do you want to show speaker names?"),s.a.createElement("select",{className:"form-select",id:"srt-speaker-options",value:r.speaker_display,onChange:t.setCaptionSpeakerOption},s.a.createElement("option",{value:"none"},"No, hide the speaker names"),s.a.createElement("option",{value:"as_typed"},"Yes, show speaker names (as entered)"),s.a.createElement("option",{value:"uppercase"},"Yes, show speaker names (UPPERCASE)"))),t.isVtt()&&s.a.createElement("div",{className:"form-group position-relative"},s.a.createElement("div",{className:"embed--options-video"},s.a.createElement(Au,{onChange:t.toggleSpeakerColors,checked:r.speaker_colors},"Style each speaker with a different text color",s.a.createElement("span",{className:"ms-1","data-balloon":"We will embed color details in the VTT file so your media player will use a different color for each speaker","data-balloon-pos":"down","data-balloon-length":"large"},s.a.createElement("i",{className:"far fa-info-circle fa-fw"}))))),t.isVtt()&&"none"!==r.speaker_display&&s.a.createElement("div",{className:"form-group position-relative"},s.a.createElement("div",{className:"embed--options-video"},s.a.createElement(Au,{onChange:t.toggleSpeakerEverySubtitle,checked:r.speaker_every_subtitle},"Show speaker name on every subtitle",s.a.createElement("span",{className:"ms-1","data-balloon":"We will show the speaker name on every subtitle, otherwise, we will only show the speaker name when speakers change","data-balloon-pos":"down","data-balloon-length":"large"},s.a.createElement("i",{className:"far fa-info-circle fa-fw"}))))),!n&&s.a.createElement(s.a.Fragment,null,s.a.createElement(Lu,{exportOptions:t}),t.options.subtitle_lines>0&&s.a.createElement("div",{className:"form-group position-relative mb-3"},s.a.createElement("div",{className:"embed--options-video"},s.a.createElement(Au,{onChange:t.toggleLimitCaptions,checked:!r.limit_captions},"Paragraph breaks override limits set above",s.a.createElement("span",{className:"ms-1","data-balloon":"The paragraph breaks in the transcript override when text moves to the next caption. Sonix will try to match captions to the paragraph breaks in the transcript.","data-balloon-pos":"down","data-balloon-length":"large"},s.a.createElement("i",{className:"far fa-info-circle fa-fw"})))))))})),Fu=Object(se.c)((function(e){var t=e.exportOptions;return s.a.createElement("div",{className:"mb-3"},t.options.subtitle_lines>0&&s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{className:"form-group position--relative"},s.a.createElement("label",{className:"input--label mb-0",htmlFor:"srt-character-length"},s.a.createElement("strong",null,"CPL: Characters per line (Max)"),s.a.createElement("span",{className:"ms-1","data-balloon":"Each line in your subtitle will not exceed the max characters length. We will split the text to another line.","data-balloon-pos":"down","data-balloon-length":"large"},s.a.createElement("i",{className:"far fa-info-circle fa-fw"}))),s.a.createElement("div",{className:"range-slider mt-0"},s.a.createElement("input",{id:"srt-character-length",className:"range-slider__range",type:"range",min:"20",max:"100",step:"1",value:t.options.max_characters,onChange:t.setCaptionMaxChars}),s.a.createElement("span",{className:"range-slider__value"},t.options.max_characters)))))})),zu=Object(se.c)((function(e){var t=e.exportOptions,n=e.hideAdvancedOptions;if(!t.isScriptsyncType())return null;var r=t.options;return s.a.createElement("div",null,s.a.createElement("div",{className:"form-group position--relative mb-3"},s.a.createElement("label",{className:"input--label",htmlFor:"srt-speaker-options"},"Do you want to show speaker names?"),s.a.createElement("select",{className:"form-select",id:"srt-speaker-options",value:r.speaker_display,onChange:t.setCaptionSpeakerOption},s.a.createElement("option",{value:"none"},"No, hide the speaker names"),s.a.createElement("option",{value:"as_typed"},"Yes, show speaker names (as entered)"),s.a.createElement("option",{value:"as_typed_colon"},"Yes, show speaker names (as entered followed by a colon)"),s.a.createElement("option",{value:"uppercase"},"Yes, show speaker names (UPPERCASE)"),s.a.createElement("option",{value:"uppercase_indent"},"Yes, show speaker names (indent UPPERCASE)"))),!n&&s.a.createElement(s.a.Fragment,null,s.a.createElement(Fu,{exportOptions:t})))})),Bu=function(e,t){var n=document.createElement("a");document.body.appendChild(n),n.href=e,t&&(n.download=t),n.target="_self",n.click()},Yu=["speaker_names","timestamps_before_speaker","remove_strikethrough","highlights_only","pastable_format","fcpxml_titles"],Iu=["timestamps","timestamps_detail","word_by_word_timecodes"],Hu=Object(se.c)((function(e){var t=e.exportOptions,n=e.option,r=t.options,o=t.optionText,a=t.toggleOption;return s.a.createElement("div",{className:"form-check",key:n},s.a.createElement(Au,{label:o[n](),onChange:a,name:n,checked:r[n]}))})),Uu=Object(se.c)((function(e){var t=e.exportOptions,n=t.showOption,r=t.toggleOption,o=Iu.filter((function(e){return n[e]()}));return(t.isTextType()||t.isCsvType())&&o.length?s.a.createElement("div",{className:"form-group position--relative mb-4"},s.a.createElement("label",{className:"input--label",htmlFor:"download-timestamps"},"Timecode options"),o.map((function(e){return s.a.createElement(Hu,{key:e,option:e,exportOptions:t})})),n.timestamps_interval()&&s.a.createElement("div",{className:"form-check"},s.a.createElement(Au,{onChange:r,name:"timestamps_interval",checked:t.options.timestamps_interval},s.a.createElement("span",{className:"position--relative"},"Include timecodes every"),s.a.createElement("div",{className:"form-group position--relative d-inline-block ms-2 mb-0"},s.a.createElement("select",{value:t.options.timestamps_interval_seconds,onChange:t.setTimestampIntervalSeconds,className:"form-select py-0"},[5,10,15,20,30,60].map((function(e){return s.a.createElement("option",{key:e,value:e},e," seconds")})),s.a.createElement("option",{value:120},"2 minutes"),s.a.createElement("option",{value:300},"5 minutes"),s.a.createElement("option",{value:600},"10 minutes")))))):null})),Wu=Object(se.c)((function(e){var t=e.exportOptions,n=t.showOption,r=Yu.filter((function(e){return n[e]()}));return t.isTextType()&&r.length?s.a.createElement("div",{className:"form-group position--relative mb-4"},s.a.createElement("label",{className:"input--label",htmlFor:"download-timestamps"},"Formatting options"),r.map((function(e){return s.a.createElement(Hu,{key:e,option:e,exportOptions:t})}))):null})),Vu=Object(se.c)((function(e){var t=e.exportOptions;return s.a.createElement("div",{className:""},s.a.createElement(Au,{label:"Include all translated versions",onChange:t.toggleIncludeTranslations,name:"exportTranslations",checked:t.includeTranslations}))})),qu=Object(se.c)((function(e){var t=e.exportOptions;return s.a.createElement("div",{className:""},s.a.createElement(Au,{label:"Export files from all subfolders",onChange:t.toggleIncludeSubfolders,name:"includeSubfolders",checked:t.includeSubfolders}))}));function Gu(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Ku(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function $u(e,t){return $u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$u(e,t)}function Ju(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Qu(e);if(t){var o=Qu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Xu(e)}(this,n)}}function Xu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qu(e){return Qu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qu(e)}function Zu(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var ef,tf,nf,rf,of,af=(Su=d.action.bound,Object(se.c)((Cu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$u(e,t)}(a,e);var t,n,r,o=Ju(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Gu(e=o.call.apply(o,[this].concat(n)),"exporting",Du,Xu(e)),Gu(e,"progress",Nu,Xu(e)),e}return t=a,(n=[{key:"export",value:function(){var e=this,t=this.props.folder,n=t.exportOptions;if(n.isFileTypeSelected()){this.exporting=!0,this.progress={total:0,pending:0};var r=Object.assign({},n.options);r.file_format=n.fileFormat,r.include_translations=n.includeTranslations,r.include_nested_folders=n.includeSubfolders,t.exportTranscripts((function(t){e.exporting=!1,Bu(t.url,t.filename),e.props.onRequestClose()}),r,this.progress)}}},{key:"render",value:function(){var e=this.props,t=e.folder,n=e.isOpen,r=e.onRequestClose,o=t.exportOptions;return s.a.createElement(ao,{modalClasses:"smodal--content smodal--content-sm",isOpen:n,onRequestClose:r,onEnter:this.export,modalTitle:"Export to your computer",modalIcon:"far fa-download"},s.a.createElement("div",{className:"row pb-4 justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10"},s.a.createElement("div",{className:"py-0"},s.a.createElement("div",{className:"form-group position--relative mb-3"},s.a.createElement("label",{className:"input--label",htmlFor:"download-format"},"Choose a file format"),s.a.createElement("select",{className:"form-select",id:"download-format",value:o.fileFormat,onChange:o.updateFileFormat},s.a.createElement("option",{value:"select",disabled:!0},"— Please select —"),s.a.createElement("optgroup",{label:"Text versions"},s.a.createElement("option",{value:"docx"},"Microsoft Word (*.docx)"),s.a.createElement("option",{value:"txt"},"Text file (*.txt)"),s.a.createElement("option",{value:"pdf"},"PDF (*.pdf)")),s.a.createElement("optgroup",{label:"Subtitles"},s.a.createElement("option",{value:"srt"},"SubRip subtitle file (*.srt)"),s.a.createElement("option",{value:"vtt"},"WebVTT file (*.vtt)"),s.a.createElement("option",{value:"ttml"},"TTML file (*.ttml)")),s.a.createElement("optgroup",{label:"Research"},s.a.createElement("option",{value:"csv"},"Comma separated values (*.csv)"),s.a.createElement("option",{value:"nvivo"},"Nvivo transcript rows (*.txt)")),s.a.createElement("optgroup",{label:"Audio and video editors"},s.a.createElement("option",{value:"sesx"},"Adobe Audition session file (*.sesx)"),s.a.createElement("option",{value:"ap-xmeml"},"Adobe Premiere XML file (*.xml)"),s.a.createElement("option",{value:"avid-ds"},"Avid DS Caption file (*.txt)"),s.a.createElement("option",{value:"avid-markers"},"Avid Marker file (*.txt)"),s.a.createElement("option",{value:"avid-scriptsync"},"Avid ScriptSync file (*.txt)"),s.a.createElement("option",{value:"fcpxml"},"Final Cut Pro X file (*.fcpxml)")))),s.a.createElement(Ru,{exportOptions:o}),s.a.createElement(zu,{exportOptions:o}),s.a.createElement(Uu,{exportOptions:o}),s.a.createElement(Wu,{exportOptions:o}),this.renderBulkExportOptions()),s.a.createElement("div",{className:"py-2"},o.isFileTypeSelected()&&this.renderButton()))))}},{key:"renderBulkExportOptions",value:function(){var e=this.props.folder,t=e.exportOptions;return t.isFileTypeSelected()?e.hasTranslations||e.hasSubfolders?s.a.createElement("div",{className:"form-group position--relative mb-4"},s.a.createElement("label",{className:"input--label",htmlFor:"download-translations"},"Bulk export options"),e.hasTranslations&&s.a.createElement(Vu,{exportOptions:t}),e.hasSubfolders&&s.a.createElement(qu,{exportOptions:t})):void 0:null}},{key:"renderButton",value:function(){if(this.exporting){var e=0;return this.progress.total>0&&(e=((this.progress.total-this.progress.pending)/(this.progress.total+1)*100).toFixed(1)),s.a.createElement(Mu,{percentage:e,text:"Exporting. Thanks for being patient."})}return s.a.createElement("a",{className:"btn btn-primary t--transcript-modal-btn-export",onClick:this.export},s.a.createElement("i",{className:"far fa-fw me-2 fa-download"}),"Export")}}])&&Ku(t.prototype,n),r&&Ku(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),Du=Zu(Cu.prototype,"exporting",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Nu=Zu(Cu.prototype,"progress",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{total:0,pending:0}}}),Zu(Cu.prototype,"export",[Su],Object.getOwnPropertyDescriptor(Cu.prototype,"export"),Cu.prototype),ju=Cu))||ju),lf=af;function sf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function cf(e,t){return cf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cf(e,t)}function uf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pf(e);if(t){var o=pf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ff(e)}(this,n)}}function ff(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pf(e){return pf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pf(e)}function df(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var mf,hf=(ef=d.action.bound,tf=d.action.bound,Object(se.c)((rf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cf(e,t)}(a,e);var t,n,r,o=uf(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(e=o.call.apply(o,[this].concat(n)),"isModalShown",of,ff(e)),e}return t=a,(n=[{key:"showModal",value:function(){this.isModalShown=!0}},{key:"closeModal",value:function(){this.isModalShown=!1}},{key:"render",value:function(){var e=this.props.folder;return e.preventBulkExports?null:s.a.createElement("div",{className:"btn-group"},s.a.createElement("span",{className:"clickable btn btn-hover","data-balloon":"Export all transcripts in “"+e.name+"”","data-balloon-pos":"up",onClick:this.showModal},s.a.createElement("i",{className:"far fa-fw fa-download"})),s.a.createElement(lf,{folder:e,isOpen:this.isModalShown,onRequestClose:this.closeModal}))}}])&&sf(t.prototype,n),r&&sf(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),of=df(rf.prototype,"isModalShown",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),df(rf.prototype,"showModal",[ef],Object.getOwnPropertyDescriptor(rf.prototype,"showModal"),rf.prototype),df(rf.prototype,"closeModal",[tf],Object.getOwnPropertyDescriptor(rf.prototype,"closeModal"),rf.prototype),nf=rf))||nf),yf=hf;function bf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function vf(e,t){return vf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vf(e,t)}function gf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wf(e);if(t){var o=wf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function wf(e){return wf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},wf(e)}var Ef,_f,kf,Of,xf,Sf,jf,Cf,Df,Nf,Pf,Tf,Mf,Af,Lf,Rf,Ff,zf,Bf,Yf,If,Hf=Object(se.c)(mf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vf(e,t)}(a,e);var t,n,r,o=gf(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.folder,n=e.user,r="/upload?folder_id=".concat(t.id);return t.isTrashFolder?null:s.a.createElement("div",{className:"btn-group d-flex justify-content-md-end",role:"toolbar","aria-label":"Folder actions"},s.a.createElement("div",{className:"btn-group folder-upload"},s.a.createElement("a",{className:"btn btn-primary t--btn-folder-actions-upload",href:r},s.a.createElement("i",{className:"far fa-fw me-2 fa-upload"}),"Upload")),s.a.createElement(Dc,{folder:t}),!t.sharedFolder&&s.a.createElement(Tu,{folder:t,user:n}),!t.sharedFolder&&s.a.createElement(gu,{folder:t,user:n}),!t.sharedFolder&&s.a.createElement(yf,{folder:t,user:n}))}}])&&bf(t.prototype,n),r&&bf(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||mf,Uf=Hf;function Wf(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Vf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function qf(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var Gf,Kf,$f,Jf,Xf,Qf,Zf,ep,tp,np=(Ef=d.action.bound,_f=d.action.bound,kf=d.action.bound,Of=d.action.bound,xf=d.action.bound,Sf=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Wf(this,"id",jf,this),Wf(this,"shareId",Cf,this),Wf(this,"name",Df,this),Wf(this,"isVideo",Nf,this),Wf(this,"duration",Pf,this),Wf(this,"durationFormatted",Tf,this),Wf(this,"status",Mf,this),Wf(this,"statusTag",Af,this),Wf(this,"shareLink",Lf,this),Wf(this,"isFileOwner",Rf,this),Wf(this,"canEdit",Ff,this),Wf(this,"canDelete",zf,this),Wf(this,"privateFile",Bf,this),Wf(this,"readonly",Yf,this),Wf(this,"selected",If,this),this.type=function(){return"recording"},this.deletePath=function(){return"/recordings/".concat(r.id)},this.loadFromJSON(t),this.parent=n}var t,n,r;return t=e,n=[{key:"loadFromJSON",value:function(e){var t=this;return Object.keys(e).forEach((function(n){return t[n]=e[n]})),this}},{key:"isShared",get:function(){return!!this.shareId}},{key:"move",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.update({folder_id:e},t)}},{key:"toggleSelected",value:function(){this.selected=!this.selected,this.updateLastSelected()}},{key:"toggleRange",value:function(){this.selected=!this.selected,this.parent.toggleRange(this.selected,this),this.updateLastSelected()}},{key:"updateLastSelected",value:function(){this.parent.lastSelected=this}},{key:"updateName",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.update({name:e},t)}},{key:"updateAccess",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.update({private_file:e},t)}},{key:"update",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.onSuccess,o=n.onError,a=this.isShared?"/shares/".concat(this.shareId,".json"):"/recordings/".concat(this.id,".json");et.a.put(a,{recording:e}).then((function(e){t.parent.fetch().then((function(){r&&r()}))})).catch((function(e){o&&o(e.response.data)}))}},{key:"copyItem",value:function(e){var t=this;return et.a.post("/recordings/".concat(this.id,"/copy.json"),{name:e}).then((function(e){return t.parent.fetch(),e.data}))}},{key:"isDeletable",value:function(){return this.canDelete&&(this.isCompleted()||this.isFailed()||this.isBlocked()||this.isDuplicate())}},{key:"isFailed",value:function(){return"failed"===this.status}},{key:"isBlocked",value:function(){return"blocked"===this.status}},{key:"isNoAnswer",value:function(){return"no answer"===this.status}},{key:"isTranscribing",value:function(){return"transcribing"===this.status||"probing_quality"===this.status||"aligning"===this.status}},{key:"isRecording",value:function(){return"recording"===this.status}},{key:"isUploading",value:function(){return"uploading"===this.status||"combining_tracks"===this.status}},{key:"isCompleted",value:function(){return"completed"===this.status}},{key:"isDuplicate",value:function(){return"duplicate"===this.status}},{key:"isCopying",value:function(){return"copying"===this.status}},{key:"isInProgress",value:function(){return this.isUploading()||this.isTranscribing()||this.isCopying()}}],n&&Vf(t.prototype,n),r&&Vf(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),jf=qf(Sf.prototype,"id",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Cf=qf(Sf.prototype,"shareId",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Df=qf(Sf.prototype,"name",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Nf=qf(Sf.prototype,"isVideo",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Pf=qf(Sf.prototype,"duration",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Tf=qf(Sf.prototype,"durationFormatted",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Mf=qf(Sf.prototype,"status",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Af=qf(Sf.prototype,"statusTag",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Lf=qf(Sf.prototype,"shareLink",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Rf=qf(Sf.prototype,"isFileOwner",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ff=qf(Sf.prototype,"canEdit",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),zf=qf(Sf.prototype,"canDelete",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Bf=qf(Sf.prototype,"privateFile",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Yf=qf(Sf.prototype,"readonly",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),If=qf(Sf.prototype,"selected",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),qf(Sf.prototype,"isShared",[d.computed],Object.getOwnPropertyDescriptor(Sf.prototype,"isShared"),Sf.prototype),qf(Sf.prototype,"move",[d.action],Object.getOwnPropertyDescriptor(Sf.prototype,"move"),Sf.prototype),qf(Sf.prototype,"toggleSelected",[Ef],Object.getOwnPropertyDescriptor(Sf.prototype,"toggleSelected"),Sf.prototype),qf(Sf.prototype,"toggleRange",[_f],Object.getOwnPropertyDescriptor(Sf.prototype,"toggleRange"),Sf.prototype),qf(Sf.prototype,"updateName",[kf],Object.getOwnPropertyDescriptor(Sf.prototype,"updateName"),Sf.prototype),qf(Sf.prototype,"updateAccess",[Of],Object.getOwnPropertyDescriptor(Sf.prototype,"updateAccess"),Sf.prototype),qf(Sf.prototype,"update",[xf],Object.getOwnPropertyDescriptor(Sf.prototype,"update"),Sf.prototype),Sf),rp=np;function op(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function ap(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var ip,lp,sp,cp,up,fp,pp,dp,mp,hp,yp,bp,vp,gp,wp,Ep,_p,kp,Op,xp,Sp=(Gf=d.action.bound,Kf=d.action.bound,$f=d.action.bound,Jf=d.action.bound,Xf=d.action.bound,Qf=d.action.bound,Zf=d.action.bound,ep=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.isFolder=!1,function(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(this,"loaded",tp,this),this.type=function(){return"folder"},this.deletePath=function(){return"/folders/".concat(n.id)},this.selectedItems=function(){return n.selectableItems.filter((function(e){return e.selected}))},this.selectedItemIds=function(){return n.selectedItems().map((function(e){return e.id}))},et.a.defaults.headers.common["X-CSRF-TOKEN"]=window.authToken,this.folder=t}var t,n,r;return t=e,n=[{key:"name",get:function(){return 1==this.selectedItems().length?"1 selected file":"".concat(this.selectedItems().length," selected files")}},{key:"length",get:function(){return this.selectedItems().length}},{key:"selectableItems",get:function(){return this.folder.items.filter((function(e){return!e.isShared}))}},{key:"selectAll",value:function(){this.selectableItems.forEach((function(e){return e.selected=!0}))}},{key:"clearSelection",value:function(){this.selectableItems.forEach((function(e){return e.selected=!1}))}},{key:"deletePermanently",value:function(){window.confirm("Permanently delete ".concat(this.selectedItems().length," file").concat(1==this.selectedItems().length?"":"s"," right now? There is no way for Sonix to retrieve your file").concat(1==this.selectedItems().length?" once it has been":"s once they have been"," permanently deleted."))&&et.a.delete("/bulk_actions.json",{params:{recording_ids:this.selectedItemIds()}}).then(this.folder.fetch)}},{key:"restoreFromTrash",value:function(){return et.a.put("/bulk_actions/restore.json",{recording_ids:this.selectedItemIds()}).then(this.folder.fetch)}},{key:"moveToTrash",value:function(){window.confirm("Are you sure you want to delete ".concat(this.selectedItems().length," file").concat(1==this.selectedItems().length?"":"s","?"))&&et.a.put("/bulk_actions/trash.json",{recording_ids:this.selectedItemIds()}).then(this.folder.fetch)}},{key:"move",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.onSuccess,o=n.onError;et.a.put("/bulk_actions.json",{recording_ids:this.selectedItemIds(),folder_id:e}).then((function(e){t.folder.fetch(),r&&r()})).catch((function(e){o&&o(e.response.data)}))}},{key:"translate",value:function(e){return et.a.put("/bulk_actions/translate.json",{recording_ids:this.selectedItemIds(),language:e})}}],n&&op(t.prototype,n),r&&op(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),tp=ap(ep.prototype,"loaded",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),ap(ep.prototype,"name",[d.computed],Object.getOwnPropertyDescriptor(ep.prototype,"name"),ep.prototype),ap(ep.prototype,"length",[d.computed],Object.getOwnPropertyDescriptor(ep.prototype,"length"),ep.prototype),ap(ep.prototype,"selectableItems",[d.computed],Object.getOwnPropertyDescriptor(ep.prototype,"selectableItems"),ep.prototype),ap(ep.prototype,"selectAll",[Gf],Object.getOwnPropertyDescriptor(ep.prototype,"selectAll"),ep.prototype),ap(ep.prototype,"clearSelection",[Kf],Object.getOwnPropertyDescriptor(ep.prototype,"clearSelection"),ep.prototype),ap(ep.prototype,"deletePermanently",[$f],Object.getOwnPropertyDescriptor(ep.prototype,"deletePermanently"),ep.prototype),ap(ep.prototype,"restoreFromTrash",[Jf],Object.getOwnPropertyDescriptor(ep.prototype,"restoreFromTrash"),ep.prototype),ap(ep.prototype,"moveToTrash",[Xf],Object.getOwnPropertyDescriptor(ep.prototype,"moveToTrash"),ep.prototype),ap(ep.prototype,"move",[Qf],Object.getOwnPropertyDescriptor(ep.prototype,"move"),ep.prototype),ap(ep.prototype,"translate",[Zf],Object.getOwnPropertyDescriptor(ep.prototype,"translate"),ep.prototype),ep),jp=Sp;function Cp(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Dp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Np(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var Pp,Tp,Mp,Ap,Lp,Rp,Fp,zp,Bp,Yp,Ip,Hp,Up,Wp,Vp,qp,Gp,Kp,$p,Jp,Xp,Qp,Zp,ed,td,nd,rd,od,ad,id,ld,sd,cd,ud,fd=(ip=d.action.bound,lp=d.action.bound,sp=d.action.bound,cp=d.action.bound,up=d.action.bound,fp=d.action.bound,pp=d.action.bound,dp=d.action.bound,mp=d.action.bound,hp=d.action.bound,yp=d.action.bound,bp=d.action.bound,vp=d.action.bound,gp=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Cp(this,"fileFormat",wp,this),Cp(this,"fileExportOption",Ep,this),Cp(this,"mediaFormat",_p,this),Cp(this,"includeTranslations",kp,this),Cp(this,"includeSubfolders",Op,this),Cp(this,"options",xp,this),this.isFileTypeSelected=function(){return"select"!==n.fileFormat},this.isPdfType=function(){return"pdf"===n.fileFormat},this.isCsvType=function(){return"csv"===n.fileFormat},this.isTextType=function(){return!n.isMediaType()&&n.isFileTypeSelected()&&!n.isResearchType()&&!n.isBurnInType()},this.isResearchType=function(){return n.isCsvType()||"nvivo"===n.fileFormat},this.isMediaType=function(){return"original"===n.fileFormat||"mp3"===n.fileFormat||"mp4"==n.fileFormat},this.isMp3Type=function(){return"mp3"===n.fileFormat},this.isMp4Type=function(){return"mp4"===n.fileFormat},this.isBurnInType=function(){return"burn-in"===n.fileFormat},this.isCaptionType=function(){return"srt"===n.fileFormat||"vtt"===n.fileFormat||"avid-ds"==n.fileFormat||"ttml"==n.fileFormat},this.isVtt=function(){return"vtt"===n.fileFormat},this.isScriptsyncType=function(){return"avid-scriptsync"===n.fileFormat},this.canDownload=function(){return n.isFileTypeSelected()&&!n.isBurnInType()},this.hasHighlights=function(){return!n.store.transcript||n.store.transcript.hasHighlights},this.optionText={speaker_names:function(){return"Include speaker names"},timestamps_before_speaker:function(){return"Display timestamps before speaker names"},remove_strikethrough:function(){return"Remove strikethrough text"},highlights_only:function(){return"Export highlighted sections only"},timestamps:function(){return"Include timecodes at every paragraph"},word_by_word_timecodes:function(){return"Include start/end timecodes for each word"},pastable_format:function(){return"Use pastable format instead of importable format"},fcpxml_titles:function(){return"Text is imported as titles, not captions"},timestamps_detail:function(){if(n.store.recording){var e=n.store.recording.frameRate;return 0==e?"Include milliseconds with timecode":"Include frame rate (".concat(e,"fps) with timecode")}return"Include milliseconds/frame with timecode"},timestamps_interval:function(){return"Include timecodes every 30 seconds"}},this.showOption={speaker_names:function(){return"docx"===n.fileFormat||"txt"===n.fileFormat||"pdf"===n.fileFormat},timestamps_before_speaker:function(){return("docx"===n.fileFormat||"txt"===n.fileFormat)&&n.options.speaker_names},remove_strikethrough:function(){return"docx"===n.fileFormat},highlights_only:function(){return n.hasHighlights()&&n.isTextType()&&!n.isCaptionType()&&!n.isPdfType()},timestamps:function(){return"docx"===n.fileFormat||"txt"===n.fileFormat||"pdf"===n.fileFormat},timestamps_detail:function(){return"docx"===n.fileFormat||"txt"===n.fileFormat},timestamps_interval:function(){return"docx"===n.fileFormat||"txt"===n.fileFormat},word_by_word_timecodes:function(){return n.isCsvType()},pastable_format:function(){return"avid-markers"==n.fileFormat},fcpxml_titles:function(){return"fcpxml"==n.fileFormat}},this.store=t}var t,n,r;return t=e,(n=[{key:"reset",value:function(){this.fileFormat="select",this.store.transcript.subtitled&&(this.options.limit_captions=!1,this.options.subtitle_lines=2)}},{key:"toggleLimitCaptions",value:function(){this.options.limit_captions=!this.options.limit_captions}},{key:"toggleSpeakerColors",value:function(){this.options.speaker_colors=!this.options.speaker_colors}},{key:"toggleSpeakerEverySubtitle",value:function(){this.options.speaker_every_subtitle=!this.options.speaker_every_subtitle}},{key:"setSubtitleLines",value:function(e){this.options.subtitle_lines=e.target.value}},{key:"setCaptionMaxChars",value:function(e){this.options.max_characters=e.target.value}},{key:"setCaptionMaxDuration",value:function(e){this.options.max_duration=e.target.value}},{key:"setCaptionSpeakerOption",value:function(e){this.options.speaker_display=e.target.value}},{key:"updateFileFormat",value:function(e){this.fileFormat=e.target.value}},{key:"toggleIncludeTranslations",value:function(){this.includeTranslations=!this.includeTranslations}},{key:"toggleIncludeSubfolders",value:function(){this.includeSubfolders=!this.includeSubfolders}},{key:"setTimestampIntervalSeconds",value:function(e){this.options.timestamps_interval_seconds=e.target.value}},{key:"toggleOption",value:function(e){var t=e.target.name;this.options[t]=!this.options[t]}}])&&Dp(t.prototype,n),r&&Dp(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),wp=Np(gp.prototype,"fileFormat",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"select"}}),Ep=Np(gp.prototype,"fileExportOption",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"full"}}),_p=Np(gp.prototype,"mediaFormat",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"mp3"}}),kp=Np(gp.prototype,"includeTranslations",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Op=Np(gp.prototype,"includeSubfolders",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),xp=Np(gp.prototype,"options",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{speaker_names:!0,timestamps_before_speaker:!1,remove_strikethrough:!0,highlights_only:!1,timestamps:!0,timestamps_detail:!1,timestamps_interval:!1,timestamps_interval_seconds:30,word_by_word_timecodes:!1,pastable_format:!1,speaker_display:"none",limit_captions:!0,max_characters:45,subtitle_lines:2,max_duration:10,speaker_colors:!0,speaker_every_subtitle:!0,fcpxml_titles:!1}}}),Np(gp.prototype,"reset",[ip],Object.getOwnPropertyDescriptor(gp.prototype,"reset"),gp.prototype),Np(gp.prototype,"toggleLimitCaptions",[lp],Object.getOwnPropertyDescriptor(gp.prototype,"toggleLimitCaptions"),gp.prototype),Np(gp.prototype,"toggleSpeakerColors",[sp],Object.getOwnPropertyDescriptor(gp.prototype,"toggleSpeakerColors"),gp.prototype),Np(gp.prototype,"toggleSpeakerEverySubtitle",[cp],Object.getOwnPropertyDescriptor(gp.prototype,"toggleSpeakerEverySubtitle"),gp.prototype),Np(gp.prototype,"setSubtitleLines",[up],Object.getOwnPropertyDescriptor(gp.prototype,"setSubtitleLines"),gp.prototype),Np(gp.prototype,"setCaptionMaxChars",[fp],Object.getOwnPropertyDescriptor(gp.prototype,"setCaptionMaxChars"),gp.prototype),Np(gp.prototype,"setCaptionMaxDuration",[pp],Object.getOwnPropertyDescriptor(gp.prototype,"setCaptionMaxDuration"),gp.prototype),Np(gp.prototype,"setCaptionSpeakerOption",[dp],Object.getOwnPropertyDescriptor(gp.prototype,"setCaptionSpeakerOption"),gp.prototype),Np(gp.prototype,"updateFileFormat",[mp],Object.getOwnPropertyDescriptor(gp.prototype,"updateFileFormat"),gp.prototype),Np(gp.prototype,"toggleIncludeTranslations",[hp],Object.getOwnPropertyDescriptor(gp.prototype,"toggleIncludeTranslations"),gp.prototype),Np(gp.prototype,"toggleIncludeSubfolders",[yp],Object.getOwnPropertyDescriptor(gp.prototype,"toggleIncludeSubfolders"),gp.prototype),Np(gp.prototype,"setTimestampIntervalSeconds",[bp],Object.getOwnPropertyDescriptor(gp.prototype,"setTimestampIntervalSeconds"),gp.prototype),Np(gp.prototype,"toggleOption",[vp],Object.getOwnPropertyDescriptor(gp.prototype,"toggleOption"),gp.prototype),gp);function pd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return dd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dd(e,t)}(e,t)||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 dd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function md(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function hd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function yd(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var bd,vd=(Pp=d.action.bound,Tp=d.action.bound,Mp=d.action.bound,Ap=d.action.bound,Lp=d.action.bound,Rp=d.action.bound,Fp=d.action.bound,zp=d.action.bound,Bp=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.isFolder=!0,md(this,"loaded",Yp,this),md(this,"id",Ip,this),md(this,"name",Hp,this),md(this,"isRoot",Up,this),md(this,"accessControl",Wp,this),md(this,"showSharedFolder",Vp,this),md(this,"showPatreonFolder",qp,this),md(this,"showTrashFolder",Gp,this),md(this,"lastSelected",Kp,this),md(this,"items",$p,this),md(this,"folders",Jp,this),md(this,"breadcrumb",Xp,this),md(this,"sharedFolder",Qp,this),md(this,"hasTranslations",Zp,this),md(this,"hasBatchSummaries",ed,this),md(this,"canEdit",td,this),md(this,"multiSelectEnabled",nd,this),md(this,"sortDirection",rd,this),md(this,"sortKey",od,this),md(this,"availableUsersForPermissions",ad,this),md(this,"restrictedUsers",id,this),md(this,"preventExports",ld,this),md(this,"preventBulkExports",sd,this),md(this,"footerDescription",cd,this),md(this,"trashCount",ud,this),this.sorters={duration:function(e,t){return t.duration-e.duration},createdAt:function(e,t){return t.createdAt-e.createdAt},name:function(e,t){var n=e.name.toLowerCase(),r=t.name.toLowerCase();return n<r?-1:n>r?1:0},status:function(e,t){var n=e.statusTag.badge.toLowerCase(),r=t.statusTag.badge.toLowerCase();return n<r?-1:n>r?1:0}},this.type=function(){return"folder"},this.deletePath=function(){return"/folders/".concat(r.id)},this.isDeletable=function(){return!0},this.fetchPath=function(){var e="/f.json";return r.id&&(e="/f/".concat(r.id,".json")),e+"?cache=".concat(Date.now())},et.a.defaults.headers.common["X-CSRF-TOKEN"]=window.authToken,this.parent=n,this.exportOptions=new fd(this),this.folderSelection=new jp(this),null!==window.localStorage&&window.localStorage.getItem("sonix.sortDirection")&&(this.sortDirection=window.localStorage.getItem("sonix.sortDirection"),this.sortKey=window.localStorage.getItem("sonix.sortKey")),this.loadFromJson(t)}var t,n,r;return t=e,n=[{key:"loadFromJson",value:function(t){var n=this;this.id=t.id,this.name=t.name||"Undefined",this.isRoot=t.isRoot,this.accessControl=t.accessControl,this.restrictedUsers=t.restrictedUsers,this.preventExports=!!t.preventExports,this.preventBulkExports=t.preventBulkExports,this.breadcrumb=t.breadcrumb,this.showSharedFolder=t.showSharedFolder,this.showPatreonFolder=t.showPatreonFolder,this.showTrashFolder=t.showTrashFolder,this.sharedFolder=t.sharedFolder,this.hasTranslations=t.hasTranslations,this.hasBatchSummaries=t.hasBatchSummaries,this.canEdit=t.canEdit,this.trashCount=t.trashCount,this.footerDescription=t.footerDescription,this.folders.clear(),t.folders&&t.folders.forEach((function(t){var r=new e(t,n);n.folders.push(r)}));var r=t.recordings&&t.recordings.map((function(e){var t=n.items.find((function(t){return t.id===e.id}));return t?t.loadFromJSON(e):new rp(e,n)}));this.items.replace(r),this.sort()}},{key:"toggleMultiSelect",value:function(){this.multiSelectEnabled=!this.multiSelectEnabled}},{key:"toggleRange",value:function(e,t){if(this.lastSelected&&t){var n=this.items.indexOf(this.lastSelected),r=this.items.indexOf(t);if(-1==n||-1==r)return;var o=pd(n<r?[n,r]:[r,n],2),a=o[0],i=o[1];this.items.slice(a,i+1).forEach((function(t){return t.selected=e}))}}},{key:"isEmpty",get:function(){return 0===this.folders.length&&0===this.items.length&&!this.showSharedFolder&&!this.showTrashFolder&&!this.showPatreonFolder}},{key:"isAsc",get:function(){return"asc"===this.sortDirection}},{key:"isDesc",get:function(){return"desc"===this.sortDirection}},{key:"isInternalAccess",get:function(){return"internal"===this.accessControl}},{key:"isExternalAccess",get:function(){return"external"===this.accessControl}},{key:"isRestrictedAccess",get:function(){return"restricted"===this.accessControl}},{key:"isTrashFolder",get:function(){return"trash"==this.id}},{key:"sortBy",value:function(e){e===this.sortKey?this.sortDirection=this.isAsc?"desc":"asc":(this.sortDirection="desc",this.sortKey=e),null!==window.localStorage&&(window.localStorage.setItem("sonix.sortDirection",this.sortDirection),window.localStorage.setItem("sonix.sortKey",this.sortKey)),this.sort()}},{key:"sort",value:function(){this.items=this.items.sort(this.sorters[this.sortKey]),this.folders=this.folders.sort(this.sorters.name),this.isAsc&&(this.items=this.items.reverse(),this.isNameSort&&(this.folders=this.folders.reverse()))}},{key:"isNameSort",get:function(){return"name"===this.sortKey}},{key:"hasItemsInProgress",get:function(){return this.items.filter((function(e){return e.isInProgress()})).length}},{key:"hasSubfolders",get:function(){return!(!this.folders||!this.folders.length)}},{key:"fetch",value:function(){var e=this;return et.a.get(this.fetchPath()).then((function(t){e.loadFromJson(t.data),e.loaded=!0,!e.stoppedMonitoring&&e.hasItemsInProgress&&(e.monitorTimeout=setTimeout(e.fetch,2e4))}))}},{key:"stopMonitoring",value:function(){this.stoppedMonitoring=!0,clearInterval(this.monitorTimeout)}},{key:"exportTranscripts",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,o="/folders/".concat(this.id,"/bulk_export.json");return et.a.post(o,n).then(Object(d.action)((function(n){setTimeout((function(){return t.checkExportStatus(n.data.key,e,r)}),1e3)})))}},{key:"checkExportStatus",value:function(e,t,n){var r=this,o="/folders/".concat(this.id,"/bulk_export?key=").concat(e);return et.a.get(o).then(Object(d.action)((function(o){"completed"===o.data.status?t(o.data):(o.data.total&&(n.total=o.data.total,n.pending=o.data.pending),setTimeout((function(){return r.checkExportStatus(e,t,n)}),1e3))})))}},{key:"move",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.onSuccess,o=n.onError;et.a.put("/folders/".concat(this.id,".json"),{folder:{parent_id:e}}).then((function(e){t.parent.fetch(),r&&r()})).catch((function(e){o&&o(e.response.data)}))}},{key:"updateName",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.onSuccess,o=n.onError;et.a.put("/folders/".concat(this.id,".json"),{folder:{name:e}}).then((function(e){t.parent.fetch(),r&&r()})).catch((function(e){o&&o(e.response.data)}))}},{key:"newFolder",value:function(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.onSuccess,a=r.onError;et.a.post("/folders.json",{parent_id:this.id,name:t}).then((function(t){var r=new e(t.data);n.folders.push(r),o&&o(r)})).catch((function(e){a&&a(e.response.data)}))}},{key:"grantSubfolderAccess",value:function(e){return et.a.put("/folders/".concat(this.id,"/grant_subfolder_access/").concat(e.id)).then((function(t){e.subfolderAccessGranted=!0}))}},{key:"fetchUserPermissionList",value:function(){var e=this;return et.a.get("/folders/".concat(this.id,"/user_list")).then((function(t){e.availableUsersForPermissions=t.data}))}},{key:"updateAccess",value:function(e,t,n){var r=this,o=t.filter((function(e){return e.restricted_user})).map((function(e){return e.id}));return et.a.put("/folders/".concat(this.id,".json"),{folder:{access_control:e,restricted_user_ids:o,prevent_exports:n}}).then((function(e){return r.loadFromJson(e.data)}))}}],n&&hd(t.prototype,n),r&&hd(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Yp=yd(Bp.prototype,"loaded",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ip=yd(Bp.prototype,"id",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Hp=yd(Bp.prototype,"name",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Up=yd(Bp.prototype,"isRoot",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Wp=yd(Bp.prototype,"accessControl",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Vp=yd(Bp.prototype,"showSharedFolder",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),qp=yd(Bp.prototype,"showPatreonFolder",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Gp=yd(Bp.prototype,"showTrashFolder",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Kp=yd(Bp.prototype,"lastSelected",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),$p=yd(Bp.prototype,"items",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Jp=yd(Bp.prototype,"folders",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Xp=yd(Bp.prototype,"breadcrumb",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Qp=yd(Bp.prototype,"sharedFolder",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Zp=yd(Bp.prototype,"hasTranslations",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ed=yd(Bp.prototype,"hasBatchSummaries",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),td=yd(Bp.prototype,"canEdit",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),nd=yd(Bp.prototype,"multiSelectEnabled",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),rd=yd(Bp.prototype,"sortDirection",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"desc"}}),od=yd(Bp.prototype,"sortKey",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"createdAt"}}),ad=yd(Bp.prototype,"availableUsersForPermissions",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),id=yd(Bp.prototype,"restrictedUsers",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),ld=yd(Bp.prototype,"preventExports",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),sd=yd(Bp.prototype,"preventBulkExports",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),cd=yd(Bp.prototype,"footerDescription",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),ud=yd(Bp.prototype,"trashCount",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),yd(Bp.prototype,"loadFromJson",[d.action],Object.getOwnPropertyDescriptor(Bp.prototype,"loadFromJson"),Bp.prototype),yd(Bp.prototype,"toggleMultiSelect",[Pp],Object.getOwnPropertyDescriptor(Bp.prototype,"toggleMultiSelect"),Bp.prototype),yd(Bp.prototype,"toggleRange",[Tp],Object.getOwnPropertyDescriptor(Bp.prototype,"toggleRange"),Bp.prototype),yd(Bp.prototype,"isEmpty",[d.computed],Object.getOwnPropertyDescriptor(Bp.prototype,"isEmpty"),Bp.prototype),yd(Bp.prototype,"isAsc",[d.computed],Object.getOwnPropertyDescriptor(Bp.prototype,"isAsc"),Bp.prototype),yd(Bp.prototype,"isDesc",[d.computed],Object.getOwnPropertyDescriptor(Bp.prototype,"isDesc"),Bp.prototype),yd(Bp.prototype,"isInternalAccess",[d.computed],Object.getOwnPropertyDescriptor(Bp.prototype,"isInternalAccess"),Bp.prototype),yd(Bp.prototype,"isExternalAccess",[d.computed],Object.getOwnPropertyDescriptor(Bp.prototype,"isExternalAccess"),Bp.prototype),yd(Bp.prototype,"isRestrictedAccess",[d.computed],Object.getOwnPropertyDescriptor(Bp.prototype,"isRestrictedAccess"),Bp.prototype),yd(Bp.prototype,"isTrashFolder",[d.computed],Object.getOwnPropertyDescriptor(Bp.prototype,"isTrashFolder"),Bp.prototype),yd(Bp.prototype,"sortBy",[Mp],Object.getOwnPropertyDescriptor(Bp.prototype,"sortBy"),Bp.prototype),yd(Bp.prototype,"sort",[Ap],Object.getOwnPropertyDescriptor(Bp.prototype,"sort"),Bp.prototype),yd(Bp.prototype,"isNameSort",[d.computed],Object.getOwnPropertyDescriptor(Bp.prototype,"isNameSort"),Bp.prototype),yd(Bp.prototype,"hasItemsInProgress",[d.computed],Object.getOwnPropertyDescriptor(Bp.prototype,"hasItemsInProgress"),Bp.prototype),yd(Bp.prototype,"hasSubfolders",[d.computed],Object.getOwnPropertyDescriptor(Bp.prototype,"hasSubfolders"),Bp.prototype),yd(Bp.prototype,"fetch",[Lp],Object.getOwnPropertyDescriptor(Bp.prototype,"fetch"),Bp.prototype),yd(Bp.prototype,"stopMonitoring",[Rp],Object.getOwnPropertyDescriptor(Bp.prototype,"stopMonitoring"),Bp.prototype),yd(Bp.prototype,"exportTranscripts",[Fp],Object.getOwnPropertyDescriptor(Bp.prototype,"exportTranscripts"),Bp.prototype),yd(Bp.prototype,"checkExportStatus",[zp],Object.getOwnPropertyDescriptor(Bp.prototype,"checkExportStatus"),Bp.prototype),yd(Bp.prototype,"move",[d.action],Object.getOwnPropertyDescriptor(Bp.prototype,"move"),Bp.prototype),yd(Bp.prototype,"updateName",[d.action],Object.getOwnPropertyDescriptor(Bp.prototype,"updateName"),Bp.prototype),yd(Bp.prototype,"newFolder",[d.action],Object.getOwnPropertyDescriptor(Bp.prototype,"newFolder"),Bp.prototype),yd(Bp.prototype,"grantSubfolderAccess",[d.action],Object.getOwnPropertyDescriptor(Bp.prototype,"grantSubfolderAccess"),Bp.prototype),yd(Bp.prototype,"fetchUserPermissionList",[d.action],Object.getOwnPropertyDescriptor(Bp.prototype,"fetchUserPermissionList"),Bp.prototype),yd(Bp.prototype,"updateAccess",[d.action],Object.getOwnPropertyDescriptor(Bp.prototype,"updateAccess"),Bp.prototype),Bp),gd=vd;function wd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Ed(e,t){return Ed=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ed(e,t)}function _d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=kd(e);if(t){var o=kd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function kd(e){return kd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kd(e)}var Od,xd=Object(Yn.DropTarget)("item",{canDrop:function(e){return!e.folder.loaded},drop:function(e,t){t.getItem().item.move(e.folder.id)}},(function(e,t){return{connectDropTarget:e.dropTarget(),canDrop:t.canDrop(),isOver:t.isOver()}}))(bd=Object(se.c)(bd=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ed(e,t)}(a,e);var t,n,r,o=_d(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.folder,n=e.connectDropTarget,r=e.isOver,o=e.canDrop,a=e.current,i=ue()("fa-fw me-1",{"fa-folder":!t.isRoot&&!t.preventExports,"fa-folder-times":t.preventExports,"fa-home":t.isRoot,"fa-trash":t.isTrashFolder},{fas:a,far:!a}),l=ue()("d-inline-block",{"text--color-white":t.isTrashFolder,"text--weight-700 current":a}),c=ue()("btn btn-sm btn--shadow-none d-inline-block text--transform-none",{"folder-drag--destination":r&&o},{"btn-crumb-current":a},{"btn-crumb":!t.isTrashFolder,"btn-red":t.isTrashFolder});return n(s.a.createElement("span",{className:c},s.a.createElement(ge,{to:"/f/".concat(t.id),className:l},s.a.createElement("i",{className:i}),t.name)))}}])&&wd(t.prototype,n),r&&wd(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||bd)||bd,Sd=xd;function jd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Cd(e,t){return Cd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Cd(e,t)}function Dd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Nd(e);if(t){var o=Nd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Nd(e){return Nd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Nd(e)}var Pd={position:"fixed",pointerEvents:"none",zIndex:1e4,left:0,top:0,width:"100%",height:"100%"};function Td(e){var t=e.initialOffset,n=e.currentOffset;if(!t||!n)return{display:"none"};var r=n.x,o=n.y,a="translate(".concat(r,"px, ").concat(o,"px)");return{transform:a,WebkitTransform:a}}var Md,Ad,Ld,Rd,Fd,zd,Bd=Object(Yn.DragLayer)((function(e){return{item:e.getItem(),itemType:e.getItemType(),initialOffset:e.getInitialSourceClientOffset(),currentOffset:e.getSourceClientOffset(),isDragging:e.isDragging()}}))(Od=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cd(e,t)}(a,e);var t,n,r,o=Dd(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"renderItem",value:function(e){return s.a.createElement("div",{className:"folder-drag--moving text--size-700rem py-1 px-2"},s.a.createElement("i",{className:"far fa-fw fa-arrows me-2"}),"Moving ",e.name)}},{key:"render",value:function(){var e=this.props,t=e.item;return e.isDragging&&t.item?s.a.createElement("div",{style:Pd},s.a.createElement("div",{style:Td(this.props)},this.renderItem(t.item))):null}}])&&jd(t.prototype,n),r&&jd(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(l.Component))||Od,Yd=Bd;function Id(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Hd(e,t){return Hd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Hd(e,t)}function Ud(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Vd(e);if(t){var o=Vd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Wd(e)}(this,n)}}function Wd(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vd(e){return Vd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Vd(e)}function qd(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var Gd,Kd,$d,Jd,Xd=(Md=Object(Yn.DragDropContext)(Hn.a),Ad=Object(se.b)("user"),Ld=d.action.bound,Md(Rd=Ad(Rd=Object(se.c)((Fd=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Hd(e,t)}(a,e);var t,n,r,o=Ud(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(e=o.call.apply(o,[this].concat(n)),"folder",zd,Wd(e)),e}return t=a,(n=[{key:"componentWillMount",value:function(){var e=this.props.match.params;this.fetchFolder(e.folderId)}},{key:"componentWillReceiveProps",value:function(e){var t=e.match.params;this.fetchFolder(t.folderId)}},{key:"fetchFolder",value:function(e){this.folder&&this.folder.stopMonitoring(),this.folder=new gd({id:e}),this.folder.fetch(),window.sonix&&sonix.search&&(sonix.search.folder=this.folder)}},{key:"renderBreadcrumb",value:function(){if(!this.folder.breadcrumb)return null;var e=[];return this.folder.breadcrumb.forEach((function(t){e.push(s.a.createElement(Sd,{folder:t,current:!1,key:t.id})),e.push(s.a.createElement("i",{key:t.id+"i",className:"fas fa-chevron-right mx-1 mx-lg-2 d-none d-sm-inline-block"}))})),!this.props.user.showPermissions||this.folder.sharedFolder||this.folder.isRoot||this.folder.isTrashFolder?e.push(s.a.createElement(Sd,{folder:this.folder,current:!0,key:this.folder.id})):e.push(s.a.createElement("div",{className:"btn-group d-flex flex-row-reverse flex-sm-row d-sm-inline-flex",key:"permissions-wrapper"},s.a.createElement(Sd,{folder:this.folder,current:!0,key:this.folder.id}),s.a.createElement(ws,{folder:this.folder,user:this.props.user,key:"permissions"}))),e}},{key:"renderEmptyRecording",value:function(){var e=this.props.user;return e.isExternal?s.a.createElement("div",{className:"row justify-content-start"},s.a.createElement("div",{className:"col-sm-12 col-xl-9"},s.a.createElement("div",{className:"media my-3"},s.a.createElement("i",{className:"far fa-folder fa-fw me-2 fa-2x"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("h2",{className:"mb-0"},"Folders and files will appear here"),s.a.createElement("p",null,"Thanks for joining Sonix. Right now, you do not have access to any folders or files in the ",e.accountName," premium account."),s.a.createElement("p",null,"Please reach out to the person who invited you. They can give you access to specific folders and files that you need."))))):s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement("div",{className:"py-3"},s.a.createElement("h2",{className:"mb-0"},"Get started with Sonix"),s.a.createElement("p",null,"Transcribing/editing audio and video is painful. We make it fast, simple, and affordable. We don't claim to be 100% accurate given we are an automated system, but we can get pretty close with a clear, crisp audio track. Upload the first file (audio or video) that you'd like us to transcribe."),s.a.createElement("div",{className:"form-actions mb-3"},s.a.createElement("a",{href:"/upload",className:"btn btn-primary mb-3"},s.a.createElement("i",{className:"fa fa-upload me-2"}),"Upload your first file")),s.a.createElement("div",{className:"row justify-content-center py-3"},s.a.createElement("div",{className:"col-sm-12 col-md-4 app-image"},s.a.createElement("div",{className:"app-svg app-svg-img-rocket mx-0"}),s.a.createElement("h3",{className:"my-2"},"Fast"),s.a.createElement("p",{className:""},"Our automated algorithms convert audio-to-text faster than the length of the recording.")),s.a.createElement("div",{className:"col-sm-12 col-md-4 app-image"},s.a.createElement("div",{className:"app-svg app-svg-img-lighter mx-0"}),s.a.createElement("h3",{className:"my-2"},"Simple"),s.a.createElement("p",{className:""},"Our editor syncs the audio to text so you can quickly and easily edit the transcript.")),s.a.createElement("div",{className:"col-sm-12 col-md-4 app-image"},s.a.createElement("div",{className:"app-svg app-svg-img-piggy-bank mx-0"}),s.a.createElement("h3",{className:"my-2"},"Affordable"),s.a.createElement("p",{className:""},"We use machines to transcribe, so it is a fraction of the cost of traditional services."))))))}},{key:"render",value:function(){var e=!(!this.folder||!this.folder.loaded);return this.folder.loaded&&this.folder.isRoot&&this.folder.isEmpty?this.renderEmptyRecording():s.a.createElement("div",{className:"folder--container"},s.a.createElement("div",{className:"d-block d-sm-flex flex-wrap mb-2"},s.a.createElement("div",{className:"flex-grow-1 flex-wrap align-self-center folder--breadcrumbs btn-group mb-2"},this.renderBreadcrumb()),s.a.createElement("div",{className:"d-block d-sm-flex folder--actions mb-2",style:{zIndex:"2000"}},e&&s.a.createElement(Uf,{folder:this.folder,user:this.props.user}))),s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12"},e?s.a.createElement(qs,{folder:this.folder}):s.a.createElement(Ne,null))),s.a.createElement(Yd,null))}}])&&Id(t.prototype,n),r&&Id(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),zd=qd(Fd.prototype,"folder",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),qd(Fd.prototype,"fetchFolder",[Ld],Object.getOwnPropertyDescriptor(Fd.prototype,"fetchFolder"),Fd.prototype),Rd=Fd))||Rd)||Rd)||Rd),Qd=Xd;function Zd(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function em(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function tm(e,t){return tm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tm(e,t)}function nm(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=om(e);if(t){var o=om(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return rm(e)}(this,n)}}function rm(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function om(e){return om=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},om(e)}function am(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var im,lm,sm,cm,um,fm,pm,dm,mm,hm,ym,bm=Object(se.c)((Kd=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tm(e,t)}(a,e);var t,n,r,o=nm(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Zd(e=o.call.apply(o,[this].concat(n)),"closed",$d,rm(e)),Zd(e,"close",Jd,rm(e)),e}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.alert,n=e.notice;return this.closed?null:t.length?s.a.createElement(ni,{className:"alert-has-close"},t,s.a.createElement("i",{className:"fas fa-times close clickable",onClick:this.close})):n.length?s.a.createElement(ko,{className:"alert-has-close"},n,s.a.createElement("i",{className:"fas fa-times close clickable",onClick:this.close})):null}}])&&em(t.prototype,n),r&&em(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),$d=am(Kd.prototype,"closed",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Jd=am(Kd.prototype,"close",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){return e.closed=!0}}}),Gd=Kd))||Gd,vm=bm;function gm(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function wm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Em(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function _m(e,t,n){return t&&Em(e.prototype,t),n&&Em(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function km(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var Om=(im=d.action.bound,lm=d.action.bound,sm=d.action.bound,um=km((cm=function(){function e(t){wm(this,e),gm(this,"tags",um,this),gm(this,"newTag",fm,this),et.a.defaults.headers.common["X-CSRF-TOKEN"]=window.authToken,this.tags=t.map((function(e){return new jm(e)}))}return _m(e,[{key:"sortedTags",get:function(){return this.tags.sort((function(e,t){var n=e.label.toLowerCase(),r=t.label.toLowerCase();return n<r?-1:n>r?1:0}))}},{key:"toggleNewTag",value:function(){this.newTag?this.newTag=null:this.newTag=new jm({label:"",description:"",color:Sm()})}},{key:"saveNewTag",value:function(){var e=this,t=this.newTag;return et.a.post("/status_tags.json",{status_tag:{label:t.label,description:t.description,color:t.color}}).then((function(n){e.newTag=null,t.id=n.data.id,e.tags.push(t)}))}},{key:"delete",value:function(e){return this.tags.remove(e),et.a.delete("/status_tags/".concat(e.id,".json"))}}]),e}()).prototype,"tags",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),fm=km(cm.prototype,"newTag",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),km(cm.prototype,"sortedTags",[d.computed],Object.getOwnPropertyDescriptor(cm.prototype,"sortedTags"),cm.prototype),km(cm.prototype,"toggleNewTag",[im],Object.getOwnPropertyDescriptor(cm.prototype,"toggleNewTag"),cm.prototype),km(cm.prototype,"saveNewTag",[lm],Object.getOwnPropertyDescriptor(cm.prototype,"saveNewTag"),cm.prototype),km(cm.prototype,"delete",[sm],Object.getOwnPropertyDescriptor(cm.prototype,"delete"),cm.prototype),cm);Om.colors=["#ED0A3F","#FF7034","#5FA777","#02A4D3","#6B3FA0","#FFA6C9","#FFCBA4","#93DFB8","#76D7EA","#D6AEDD"];var xm,Sm=function(){return Om.colors[Math.floor(Math.random()*Om.colors.length)]},jm=(dm=km((pm=function(){function e(t){wm(this,e),gm(this,"id",dm,this),gm(this,"label",mm,this),gm(this,"description",hm,this),gm(this,"color",ym,this),this.id=t.id,this.label=t.label,this.description=t.description,this.color=t.color}return _m(e,[{key:"save",value:function(e,t,n){var r=this;return et.a.put("/status_tags/".concat(this.id,".json"),{status_tag:{label:e,description:t,color:n}}).then((function(){r.label=e,r.description=t,r.color=n}))}}]),e}()).prototype,"id",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),mm=km(pm.prototype,"label",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),hm=km(pm.prototype,"description",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ym=km(pm.prototype,"color",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),pm),Cm=Om,Dm=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new Pn(window.userData),n=new Cm(e.tags);Bn.a.prototype.stopCallback=function(){return!1},window.statusTags=n,u.a.render(s.a.createElement(se.a,Object.assign({user:t,statusTags:n},e),s.a.createElement($,null,s.a.createElement("div",null,s.a.createElement(vm,e),s.a.createElement(le,{exact:!0,path:"/",component:Qd}),s.a.createElement(le,{path:"/f/:folderId",component:Qd})))),document.getElementById("folder-app"))},Nm=n(549),Pm=n.n(Nm);function Tm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Mm(e,t){return Mm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Mm(e,t)}function Am(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Lm(e);if(t){var o=Lm(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Lm(e){return Lm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Lm(e)}var Rm=Object(se.c)(xm=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mm(e,t)}(a,e);var t,n,r,o=Am(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"renderTeamLink",value:function(){var e=this.props.user;if(e.teamAccount&&e.isAdmin&&e.isCustomer)return s.a.createElement("li",null,s.a.createElement("a",{href:"/account/business"},s.a.createElement("i",{className:"far fa-fw fa-building me-1"}),"Manage users"))}},{key:"render",value:function(){var e=this.props.user,t=["Hello, ","Hi, ","What's up? ","Hey, ","Howdy, "],n=t[Math.floor(Math.random()*t.length)];return s.a.createElement("ul",{className:"navbar-nav ms-md-auto"},e.loggedIn&&s.a.createElement(Ia,{tag:"li",className:"nav-item d-none d-md-block"},s.a.createElement(Ia.Toggle,{tag:"a",className:"nav-link clickable px-2"},s.a.createElement("i",{className:"far fa-fw fa-user me-1"}),e.firstName),s.a.createElement(Ia.Content,{className:"position--top-275 position--right-75 dropdown--content-md",title:n+e.firstName+"!"},s.a.createElement("ol",{className:"dropdown--menu"},s.a.createElement("li",null,s.a.createElement("a",{className:"t--nav-top-account",href:"/account"},s.a.createElement("i",{className:"far fa-fw fa-sliders-h me-1"}),"My account")),this.renderTeamLink(),s.a.createElement("li",null,s.a.createElement("a",{className:"t--nav-top-account",href:"/refer"},s.a.createElement("i",{className:"far fa-fw fa-share me-1"}),"Refer a friend")),s.a.createElement("li",null,s.a.createElement("a",{className:"t--nav-top-sign-out",href:"/accounts/sign_out","data-method":"delete"},s.a.createElement("i",{className:"far fa-fw fa-sign-out me-1"}),"Sign out"))))),e.loggedIn&&s.a.createElement("div",{className:"mb-0"},s.a.createElement("li",{className:"nav-item d-md-none"},s.a.createElement("a",{className:"nav-link t--nav-top-account",rel:"nofollow",href:"/account"},"Account")),s.a.createElement("li",{className:"nav-item d-md-none"},s.a.createElement("a",{className:"nav-link t--nav-top-sign-out",rel:"nofollow","data-method":"delete",href:"/accounts/sign_out"},"Sign Out"))))}}])&&Tm(t.prototype,n),r&&Tm(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||xm,Fm=Rm,zm=Object(se.c)((function(e){var t=e.user,n=t.specialPricingPlan,r=t.isEduEmail;if(!t.loggedIn||t.isCustomer||t.enterpriseTrial)return null;var o="Upgrade now to transcribe more",a="fa-star",i="fa-arrow-alt-up",l="Upgrade account",c="/account/subscription/select_plan",u="app.trial_alert_nav.click_upgrade",f="fa-share",p="Refer friends",d="/refer",m="app.trial_alert_nav.click_refer";return n?"annual_free"===n?(a="fa-gift",o="Free annual plan offer for you",i="fa-gift",l="Free subscription",u="app.trial_alert_nav.click_upgrade"):(a="fa-gift",o="We have a special offer for you",i="fa-gift",l="Get special offer",u="app.trial_alert_nav.click_upgrade"):r&&(o="Apply for our educational discount",a="fa-graduation-cap",i="fa-arrow-alt-right",l="Apply for discount",c="/account/edu_discount/new",u="app.trial_alert_nav.click_edu_discount",f="fa-arrow-alt-up",p="Upgrade account",d="/account/subscription/select_plan",m="app.trial_alert_nav.click_upgrade"),s.a.createElement("div",{className:"alert alert-trial alert-trial-top media mb-0"},s.a.createElement("i",{className:ue()("fas fa-2x align-self-md-center me-2",a)}),s.a.createElement("div",{className:"media-body d-md-flex justify-content-md-between"},s.a.createElement("div",{className:"alert-trial-messaging"},s.a.createElement("a",{className:"",href:c,onClick:function(){return Object(we.k)(u)}},s.a.createElement("h1",null,o),s.a.createElement("p",null,"Your free trial ",t.hasFreeCredit?" has ".concat(Object(we.c)(t.totalCredit)," remaining."):"does not have any minutes remaining."))),s.a.createElement("div",{className:"alert-trial-actions btn-toolbar justify-content-between mt-2 mt-md-0 d-flex d-md-inline-flex"},s.a.createElement("div",{className:"btn-group flex-fill"},s.a.createElement("a",{href:c,className:"btn btn-alert",onClick:function(){return Object(we.k)(u)}},s.a.createElement("i",{className:ue()("fas fa-fw me-2",i)}),l)),p&&s.a.createElement("div",{className:"btn-group ms-2 flex-fill"},s.a.createElement("a",{href:d,className:"btn btn-alert-light",onClick:function(){return Object(we.k)(m)}},s.a.createElement("i",{className:ue()("fas fa-fw me-2",f)}),p)))))}));function Bm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Ym(e,t){return Ym=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ym(e,t)}function Im(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Hm(e);if(t){var o=Hm(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Hm(e){return Hm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Hm(e)}var Um=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ym(e,t)}(a,e);var t,n,r,o=Im(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e="https://sonix.ai";return this.props.user.loggedIn?null:s.a.createElement("div",{className:"alert alert-trial alert-trial-top border-radius--none mb-0 border-0 px-4 py-1 t--top-nav-share-alert"},s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col-sm-12 col-md-7 col-xl-8"},s.a.createElement("div",{className:"py-1 py-md-2 py-lg-1"},s.a.createElement("a",{className:"t--share-url-home",href:e,target:"_blank"},s.a.createElement("h1",{className:""},"Sonix is the best online transcription service")),s.a.createElement("h2",{className:"d-none d-lg-inline-block"},s.a.createElement("a",{className:"t--share-url-convert",href:"https://sonix.ai/audio-transcription",target:"_blank"},"Easily convert your audio and video files to text.")," ",s.a.createElement("a",{className:"t--share-url-home",href:e,target:"_blank"},"Try Sonix"),"—it's ",s.a.createElement("a",{className:"t--share-url-speed",href:"https://sonix.ai/fast-transcription",target:"_blank"},"fast"),", ",s.a.createElement("a",{className:"t--share-url-features",href:"https://sonix.ai/features",target:"_blank"},"easy"),", and ",s.a.createElement("a",{className:"t--share-url-pricing",href:"https://sonix.ai/pricing",target:"_blank"},"affordable"),"."))),s.a.createElement("div",{className:"col-sm-12 col-md-5 col-xl-4 text-md-end"},s.a.createElement("div",{className:"py-1"},s.a.createElement("a",{href:"https://sonix.ai/signup",className:"btn btn-alert mb-0 py-1 px-2 link--underline-none t--share-signup",target:"_blank"},s.a.createElement("i",{className:"far fa-fw fa-paper-plane me-2"}),"Try Sonix for Free"),s.a.createElement("a",{href:e,className:"d-none d-lg-inline-block btn mb-0 py-1 px-2 link--underline-none t--share-url-home-btn",target:"_blank"},s.a.createElement("i",{className:"far fa-fw fa-compass me-2"}),"Explore Sonix")))))}}])&&Bm(t.prototype,n),r&&Bm(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),Wm=Um,Vm=function(){return s.a.createElement("a",{className:"logo--sonix t--nav-top-logo",href:"/"},s.a.createElement("svg",{width:"128px",height:"36px",viewBox:"0 0 305 100",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},s.a.createElement("title",null,"Sonix | Return home"),s.a.createElement("g",{id:"sonix-logo-word",className:"",transform:"translate(2.000000, 8.000000)",stroke:"",strokeWidth:2,fill:"none"},s.a.createElement("path",{d:"M114.333333,33 C113.276417,30.9566293 111.867217,29.3360493 110.105691,28.1382114 C108.344165,26.9403734 106.195135,26.3414634 103.658537,26.3414634 C102.460699,26.3414634 101.245264,26.4823834 100.012195,26.7642276 C98.7791266,27.0460719 97.6693816,27.4864469 96.6829268,28.0853659 C95.696472,28.6842848 94.903797,29.4417298 94.304878,30.3577236 C93.7059591,31.2737173 93.4065041,32.4010773 93.4065041,33.7398374 C93.4065041,36.0650523 94.2167941,37.7560923 95.8373984,38.8130081 C97.4580027,39.869924 99.8888727,40.785904 103.130081,41.5609756 L110.211382,43.2520325 C113.663974,44.0271041 116.535219,45.5948391 118.825203,47.9552846 C121.115188,50.31573 122.260163,53.257435 122.260163,56.7804878 C122.260163,59.458008 121.714098,61.765573 120.621951,63.703252 C119.529805,65.6409311 118.085375,67.2262811 116.288618,68.4593496 C114.491861,69.6924181 112.430906,70.5907831 110.105691,71.1544715 C107.780476,71.71816 105.420066,72 103.02439,72 C99.2194932,72 95.6788782,71.277785 92.402439,69.8333333 C89.1259999,68.3888817 86.3252149,65.9051667 84,62.3821138 L90.0243902,58.2601626 C91.4336114,60.5149164 93.2127264,62.3116464 95.3617886,63.6504065 C97.5108509,64.9891666 100.065026,65.6585366 103.02439,65.6585366 C104.433611,65.6585366 105.842811,65.5000016 107.252033,65.1829268 C108.661254,64.8658521 109.911919,64.3726321 111.004065,63.703252 C112.096211,63.033872 112.976961,62.170737 113.646341,61.1138211 C114.315722,60.0569053 114.650407,58.8238553 114.650407,57.4146341 C114.650407,54.9484972 113.734427,53.1693822 111.902439,52.0772358 C110.070452,50.9850894 107.850962,50.1219544 105.243902,49.4878049 L98.4796748,47.902439 C97.6341421,47.6910559 96.4891671,47.3387559 95.0447154,46.8455285 C93.6002638,46.3523011 92.1910638,45.6124711 90.8170732,44.6260163 C89.4430826,43.6395615 88.2628776,42.3536665 87.2764228,40.7682927 C86.289968,39.1829189 85.796748,37.2276539 85.796748,34.902439 C85.796748,32.365841 86.307583,30.146351 87.3292683,28.2439024 C88.3509536,26.3414539 89.7249236,24.7913339 91.4512195,23.5934959 C93.1775154,22.395658 95.1327804,21.497293 97.3170732,20.898374 C99.5013659,20.299455 101.756086,20 104.081301,20 C107.533893,20 110.739823,20.66937 113.699187,22.0081301 C116.658551,23.3468902 118.948501,25.6368402 120.569106,28.8780488 L114.333333,33 Z M171.858627,46 C171.858627,43.2520188 171.418252,40.6802288 170.537489,38.2845528 C169.656725,35.8888769 168.40606,33.8103069 166.785456,32.0487805 C165.164852,30.2872541 163.209587,28.8956691 160.919603,27.8739837 C158.629618,26.8522984 156.040213,26.3414634 153.15131,26.3414634 C150.262407,26.3414634 147.673002,26.8522984 145.383017,27.8739837 C143.093033,28.8956691 141.155383,30.2872541 139.570009,32.0487805 C137.984635,33.8103069 136.751585,35.8888769 135.870822,38.2845528 C134.990059,40.6802288 134.549684,43.2520188 134.549684,46 C134.549684,48.7479812 134.990059,51.3197712 135.870822,53.7154472 C136.751585,56.1111231 137.984635,58.1896931 139.570009,59.9512195 C141.155383,61.7127459 143.093033,63.1043309 145.383017,64.1260163 C147.673002,65.1477016 150.262407,65.6585366 153.15131,65.6585366 C156.040213,65.6585366 158.629618,65.1477016 160.919603,64.1260163 C163.209587,63.1043309 165.164852,61.7127459 166.785456,59.9512195 C168.40606,58.1896931 169.656725,56.1111231 170.537489,53.7154472 C171.418252,51.3197712 171.858627,48.7479812 171.858627,46 Z M179.468383,46 C179.468383,49.734436 178.816628,53.186976 177.513098,56.3577236 C176.209569,59.5284711 174.395224,62.2764111 172.070009,64.601626 C169.744794,66.9268409 166.979239,68.7411859 163.773261,70.0447154 C160.567283,71.348245 157.026668,72 153.15131,72 C149.346413,72 145.841028,71.348245 142.63505,70.0447154 C139.429072,68.7411859 136.663517,66.9268409 134.338302,64.601626 C132.013087,62.2764111 130.198742,59.5284711 128.895212,56.3577236 C127.591683,53.186976 126.939928,49.734436 126.939928,46 C126.939928,42.265564 127.591683,38.813024 128.895212,35.6422764 C130.198742,32.4715289 132.013087,29.7235889 134.338302,27.398374 C136.663517,25.0731591 139.429072,23.2588141 142.63505,21.9552846 C145.841028,20.651755 149.346413,20 153.15131,20 C157.026668,20 160.567283,20.651755 163.773261,21.9552846 C166.979239,23.2588141 169.744794,25.0731591 172.070009,27.398374 C174.395224,29.7235889 176.209569,32.4715289 177.513098,35.6422764 C178.816628,38.813024 179.468383,42.265564 179.468383,46 Z M191.837173,21.2682927 C191.978095,22.6070528 192.06617,23.9281778 192.1014,25.2317073 C192.136631,26.5352369 192.154246,27.8563619 192.154246,29.195122 L192.365628,29.195122 C193.140699,27.8563619 194.127139,26.6233119 195.324977,25.495935 C196.522815,24.368558 197.861555,23.399733 199.341238,22.5894309 C200.82092,21.7791287 202.388655,21.1449887 204.04449,20.6869919 C205.700324,20.228995 207.338519,20 208.959124,20 C215.300619,20 219.986209,21.673425 223.016034,25.0203252 C226.04586,28.3672254 227.56075,33.1408904 227.56075,39.3414634 L227.56075,70.7317073 L220.58514,70.7317073 L220.58514,43.3577236 C220.58514,37.8617611 219.63393,33.6517761 217.731481,30.7276423 C215.829033,27.8035084 212.306033,26.3414634 207.162376,26.3414634 C206.810071,26.3414634 205.823631,26.4823834 204.203026,26.7642276 C202.582422,27.0460719 200.873767,27.8211319 199.07701,29.0894309 C197.280253,30.3577299 195.677288,32.2601499 194.268067,34.796748 C192.858846,37.333346 192.154246,40.856346 192.154246,45.3658537 L192.154246,70.7317073 L185.178636,70.7317073 L185.178636,32.1544715 C185.178636,30.8157115 185.125791,29.1246715 185.020099,27.0813008 C184.914408,25.0379302 184.791103,23.1002802 184.650181,21.2682927 L191.837173,21.2682927 Z M242.22832,70.7317073 L235.25271,70.7317073 L235.25271,21.2682927 L242.22832,21.2682927 L242.22832,70.7317073 Z M268.151987,44.3089431 L250.184508,21.2682927 L259.696703,21.2682927 L273.43654,39.7642276 L286.542231,21.2682927 L295.208898,21.2682927 L277.981256,44.3089431 L298.696703,70.7317073 L289.184508,70.7317073 L272.591012,49.0650407 L256.631662,70.7317073 L247.753613,70.7317073 L268.151987,44.3089431 Z",id:"sonix"})),s.a.createElement("g",{id:"sonix-logo-lines",className:"",transform:"translate(2.000000, 8.000000)",fillRule:"nonzero",stroke:"",strokeWidth:2,fill:"none"},s.a.createElement("polygon",{id:"Line",points:"21 0 21 92 33 92 33 0"}),s.a.createElement("polygon",{id:"Line",points:"42 20 42 72 54 72 54 20"}),s.a.createElement("polygon",{id:"Line",points:"0 20 0 72 12 72 12 20"}))))};function qm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Gm(e,t){return Gm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Gm(e,t)}function Km(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=$m(e);if(t){var o=$m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function $m(e){return $m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$m(e)}var Jm="1695528000";window.maintenanceTime=Jm;var Xm=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gm(e,t)}(a,e);var t,n,r,o=Km(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){if(Math.floor(Date.now()/1e3)+300>Jm)return null;var e=Ol.a.unix(Jm).format("dddd, MMMM D, YYYY [at] h:mm a");return s.a.createElement("div",{className:"maintenance-alert-nav alert alert-warning text-md-center border-radius--none mb-0 border-0 px-3 py-2"},s.a.createElement("strong",null,s.a.createElement("i",{className:"far fa-fw me-1 fa-calendar-alt"}),"Scheduled maintenance on ",e," for up to 30 minutes. "),s.a.createElement("span",{className:"d-inline-block"},"We will be working hard to make Sonix faster, easier, and more accurate!"))}}])&&qm(t.prototype,n),r&&qm(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),Qm=Xm,Zm=Object(se.c)((function(e){var t=e.hideNavigationBar,n=e.user,r=ue()("global--top-nav",{"has-trial":!n.isCustomer});return s.a.createElement("div",{className:r},s.a.createElement(Qm,{user:n}),s.a.createElement(zm,{user:n}),s.a.createElement(Wm,{user:n}),s.a.createElement(eh,{user:n,hide:t}))})),eh=Object(se.c)((function(e){var t=e.hide,n=e.user;if(t)return null;var r=Pm.a.parse(location.search),o=r.q&&!r.folder_id?r.q:"";return s.a.createElement("nav",{className:"navbar navbar-expand-md top-nav"},s.a.createElement(Vm,null),s.a.createElement("button",{"aria-controls":"navbarSonixToggle","aria-expanded":"false","aria-label":"Toggle navigation",className:"navbar-toggler navbar-toggler-right clickable","data-bs-target":"#navbarSonixToggle","data-bs-toggle":"collapse",type:"button"},s.a.createElement("span",{className:"navbar-toggler-icon"})),s.a.createElement("div",{className:"collapse navbar-collapse",id:"navbarSonixToggle"},n.loggedIn?s.a.createElement(oh,{user:n}):s.a.createElement(nh,null),s.a.createElement("ul",{className:"navbar-nav ms-auto"},s.a.createElement(th,{user:n,searchParam:o,folder:sonix.search.folder}),s.a.createElement(Fm,{user:n}))))})),th=Object(se.c)((function(e){var t=e.searchParam,n=e.user,r=e.folder;if(!n.loggedIn)return null;var o="Search all files",a="SEARCH",i=!1;return r&&r.loaded&&!r.isRoot&&!r.sharedFolder&&(o='Search in "'+r.name+'"',a="SEARCH IN FOLDER",i=r.id),s.a.createElement("form",{className:"form nav--form form-inline me-md-2",action:"/recordings/search_all",method:"get","data-balloon-pos":"down","data-balloon-length":"large","data-balloon-text-align":"center","data-balloon":o},i&&s.a.createElement("input",{type:"hidden",name:"folder_id",value:i}),s.a.createElement("div",{className:"input-group my-1"},s.a.createElement("input",{type:"text",name:"q",defaultValue:t,placeholder:a,autoComplete:"off",className:"form-control",id:"nav--search"}),s.a.createElement("button",{className:"btn btn-outline-success mb-0",type:"submit"},s.a.createElement("i",{className:"far fa-fw fa-search"}))))}));function nh(){return s.a.createElement("ul",{className:"navbar-nav me-auto"},s.a.createElement("li",{className:"nav-item"},s.a.createElement("a",{className:"nav-link",href:"/features",target:"_blank"},"Features")),s.a.createElement("li",{className:"nav-item"},s.a.createElement("a",{className:"nav-link",href:"/pricing",target:"_blank"},"Pricing")),s.a.createElement("li",{className:"nav-item"},s.a.createElement("a",{className:"nav-link",href:"/faq",target:"_blank"},"FAQ")),s.a.createElement("li",{className:"nav-item"},s.a.createElement("a",{className:"nav-link",href:"/contact",target:"_blank"},"Contact")))}var rh,oh=Object(se.c)((function(e){var t=e.user;return s.a.createElement("ul",{className:"navbar-nav me-auto"},s.a.createElement("li",{className:"nav-item"},s.a.createElement("a",{className:"nav-link t--nav-top-home",href:"/"},s.a.createElement("i",{className:"far fa-fw fa-home d-none d-md-inline"}),"Home")),t.canUpload&&s.a.createElement("li",{className:"nav-item"},s.a.createElement("a",{className:"nav-link t--nav-top-upload",href:"/upload"},s.a.createElement("i",{className:"far fa-fw fa-upload d-none d-md-inline"}),"Upload")),t.teamAccount&&t.isAdmin&&s.a.createElement("li",{className:"nav-item"},s.a.createElement("a",{className:"nav-link t--nav-top-add",href:"/account/business/add"},s.a.createElement("i",{className:"far fa-fw fa-plus d-none d-md-inline"}),"Add User")),!t.teamAccount&&!t.isAffiliate&&s.a.createElement("li",{className:"nav-item"},s.a.createElement("a",{className:"nav-link t--nav-top-refer",href:"/refer"},s.a.createElement("i",{className:"far fa-fw fa-share d-none d-md-inline"}),"Refer")),t.isAffiliate&&s.a.createElement("li",{className:"nav-item"},s.a.createElement("a",{className:"nav-link t--nav-top-refer",href:"/refer"},s.a.createElement("i",{className:"far fa-fw fa-share d-none d-md-inline"}),"Affiliate")))})),ah=Zm,ih=n(465);function lh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function sh(e,t){return sh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sh(e,t)}function ch(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=uh(e);if(t){var o=uh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function uh(e){return uh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},uh(e)}var fh,ph=function(e){var t=e.folder,n=e.current,r=ue()("fa-fw me-1",{"fa-folder":!t.isRoot,"fa-home":t.isRoot},{far:!n,fas:n});return s.a.createElement("a",{className:"t--transcript-nav-home",href:"/f/".concat(t.id)},s.a.createElement("i",{className:r}),t.preventExports&&n&&s.a.createElement("span",{"data-balloon-pos":"down","data-balloon-length":"medium","data-balloon":"Folder permissions: Exporting has been disabled."},s.a.createElement("i",{className:ue()("fa-download text--color-error me-1",{far:!n,fas:n})})),s.a.createElement("span",{className:"text--transform-uppercase"},t.name))},dh=Object(se.b)("store","user")(rh=Object(se.c)(rh=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sh(e,t)}(a,e);var t,n,r,o=ch(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"renderBreadcrumb",value:function(){var e=this.props.store,t=e.breadcrumb,n=e.folder;if(!t)return null;var r=[];return t.forEach((function(e){r.push(s.a.createElement(ph,{folder:e,key:e.id,current:!1})),r.push(s.a.createElement("i",{key:e.id+"i",className:"fa fa-chevron-right mx-1 text--color-meta-light d-inline-block"}))})),r.push(s.a.createElement(ph,{folder:n,key:n.id,current:!0})),r}},{key:"render",value:function(){var e=this.props.user;return s.a.createElement("div",{className:"app--nav px-2 row"},s.a.createElement("div",{className:"col-sm-12 col-md-8 breadcrumbs p-0 px-md-3"},this.renderBreadcrumb()),s.a.createElement("div",{className:"col-sm-12 col-md-4"},s.a.createElement("div",{className:"d-none d-md-block text-end"},s.a.createElement("span",{className:"d-inline-block px-2 ms-auto text-start"},s.a.createElement(Fm,{user:e})))))}}])&&lh(t.prototype,n),r&&lh(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||rh)||rh,mh=dh,hh=n(1467);function yh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function bh(e,t){return bh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bh(e,t)}function vh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=gh(e);if(t){var o=gh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function gh(e){return gh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gh(e)}var wh,Eh,_h,kh,Oh,xh=Object(se.b)("store")(fh=Object(se.c)(fh=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bh(e,t)}(a,e);var t,n,r,o=vh(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props.store,t=e.duration,n=e.transcript,r=n.highlightedSegments.map((function(e,n){var r=(e.from/t*100).toFixed(2),o=((e.to-e.from)/t*100).toFixed(2);return s.a.createElement("div",{className:"highlight",key:n,style:{width:"".concat(o,"%"),left:"".concat(r,"%"),background:e.color}})})),o=n.strikedSegments.map((function(e,n){var r=(e.from/t*100).toFixed(2),o=((e.to-e.from)/t*100).toFixed(2);return s.a.createElement("div",{className:"strikethrough",key:n,style:{width:"".concat(o,"%"),left:"".concat(r,"%")}})}));return s.a.createElement("div",{className:"HighlightBar--wrapper"},s.a.createElement("div",{className:"HighlightBar--container"},r,o))}}])&&yh(t.prototype,n),r&&yh(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||fh)||fh,Sh=xh;function jh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ch(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Dh(e,t,n){return t&&Ch(e.prototype,t),n&&Ch(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Nh(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ph(e,t)}function Ph(e,t){return Ph=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ph(e,t)}function Th(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ah(e);if(t){var o=Ah(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Mh(e)}(this,n)}}function Mh(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ah(e){return Ah=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ah(e)}function Lh(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var Rh=(wh=d.action.bound,Object(se.c)((_h=function(e){Nh(n,e);var t=Th(n);function n(){var e;jh(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return function(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(e=t.call.apply(t,[this].concat(o)),"intent",kh,Mh(e)),e}return Dh(n,[{key:"onIntentChange",value:function(e){this.intent=e}},{key:"renderProgressBar",value:function(){var e=this.props,t=e.duration,n=e.pos,r=e.onSeek;return s.a.createElement(hh.ProgressBar,{totalTime:t,currentTime:n,isSeekable:!0,onSeek:r,onIntent:this.onIntentChange})}},{key:"renderSeekBar",value:function(){return s.a.createElement("div",{className:"app--center visual--waveform"},s.a.createElement("div",{className:"container--ProgressBar"},s.a.createElement("style",{type:"text/css"},"\n              .isSeekable:hover .ProgressBar-intent:after {\n                content: '".concat(Object(we.e)(this.intent),"';\n              }\n            ")),this.renderProgressBar(),s.a.createElement(Sh,null)))}},{key:"render",value:function(){var e=this.props,t=e.duration,n=e.pos,r=e.store,o=r.recording;return s.a.createElement("div",{className:"row g-0 visual--progress justify-content-center"},s.a.createElement("div",{className:"col order-first visual--timecode-playing d-lg-block d-none text-end"},s.a.createElement("span",{className:"timecode text--noselect px-2"},Object(we.e)(n))),s.a.createElement("div",{className:"col order-md-last visual--timecode-length d-lg-block d-none text-start"},s.a.createElement("span",{className:"timecode text--noselect px-2"},Object(we.e)(t))),s.a.createElement("div",{className:"w-100 d-block d-md-none"}),s.a.createElement("div",{className:"col-12 col-md-11 col-lg-10 visual--bar-wrapper"},s.a.createElement("div",{className:"row g-0 d-lg-none"},s.a.createElement("div",{className:"col order-first visual--timecode-playing text-start"},s.a.createElement("span",{className:"timecode text--noselect"},Object(we.e)(n))),s.a.createElement("div",{className:"col order-md-last visual--timecode-length text-end"},s.a.createElement("span",{className:"timecode text--noselect"},Object(we.e)(t)))),o.isArchived?s.a.createElement(Fh,{store:r}):this.renderSeekBar()))}}]),n}(s.a.Component),kh=Lh(_h.prototype,"intent",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Lh(_h.prototype,"onIntentChange",[wh],Object.getOwnPropertyDescriptor(_h.prototype,"onIntentChange"),_h.prototype),Eh=_h))||Eh),Fh=Object(se.c)(Oh=function(e){Nh(n,e);var t=Th(n);function n(){return jh(this,n),t.apply(this,arguments)}return Dh(n,[{key:"render",value:function(){return this.props.store.recording.isRestoring?this.renderRestoringBar():this.renderArchiveBar()}},{key:"renderArchiveBar",value:function(){var e=this.props.store.uiState;return s.a.createElement("div",{className:"app--center"},s.a.createElement("div",{className:"media-unloaded--wrapper d-flex row g-0 justify-content-center clickable",onClick:e.showRestoreMediaModal},s.a.createElement("div",{className:"col text-center"},s.a.createElement("i",{className:"far fa-archive me-2 align-self-center"}),s.a.createElement("div",{className:"d-inline-flex"},s.a.createElement("p",{className:"my-0"},s.a.createElement("strong",null,"This media file was archived. Click to learn more"),s.a.createElement("i",{className:"far fa-arrow-right ms-1 align-self-center"}))))))}},{key:"renderRestoringBar",value:function(){return s.a.createElement("div",{className:"app--center"},s.a.createElement("div",{className:"media-unloaded--wrapper media-retrieving d-flex row g-0 justify-content-center"},s.a.createElement("div",{className:"col text-center"},s.a.createElement("i",{className:"far fa-spin fa-loader me-2 align-self-center"}),s.a.createElement("div",{className:"d-inline-flex"},s.a.createElement("p",{className:"my-0"},s.a.createElement("strong",null,"We are restoring your media file. You'll receive an email when it is available."))))))}}]),n}(s.a.Component))||Oh,zh=Rh;function Bh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Yh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yh(e,t)}(e,t)||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 Yh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ih,Hh,Uh,Wh=Object(se.c)((function(e){var t=e.audioFile,n=e.audioRate,r=e.duration,o=e.onLoad,a=e.onSeek,i=e.onStop,c=e.pos,u=e.store,f=Object(l.useRef)(),p=Bh(Object(l.useState)(0),2),m=p[0],h=p[1],y=Object(l.useCallback)((function(e){a(e,!0)}),[]);return Object(l.useEffect)((function(){var e=f.current,t=function(){return o(e.duration)},n=function(){var t=e.currentTime;h(t),a(t,!1)};e.addEventListener("loadeddata",t),e.addEventListener("timeupdate",n),e.addEventListener("ended",i);var r=Object(d.autorun)((function(){return u.playing?f.current.play():f.current.pause()}));return function(){e.removeEventListener("loadeddata",t),e.removeEventListener("timeupdate",n),e.removeEventListener("ended",i),r()}}),[]),Object(l.useEffect)((function(){f.current.playbackRate=n}),[n]),Object(l.useEffect)((function(){c!==m&&(h(c),f.current.currentTime=c)}),[c]),s.a.createElement(s.a.Fragment,null,s.a.createElement("audio",{ref:f,preload:"auto"},t.map((function(e){return s.a.createElement("source",{src:e,key:e})}))),s.a.createElement(zh,{pos:m,duration:r,onSeek:y,store:u}))}));function Vh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function qh(e,t){return qh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qh(e,t)}function Gh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Kh(e);if(t){var o=Kh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Kh(e){return Kh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Kh(e)}var $h,Jh,Xh,Qh,Zh,ey,ty,ny,ry,oy,ay,iy,ly,sy,cy,uy,fy,py,dy,my,hy,yy,by,vy,gy,wy,Ey,_y,ky,Oy,xy,Sy,jy,Cy,Dy=(Ih=d.action.bound,Object(se.c)((Uh=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qh(e,t)}(a,e);var t,n,r,o=Gh(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,n=[{key:"handlePosChange",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Math.abs(e-this.props.store.pos)<.001||(t&&this.props.store.setNeedsScroll(),this.props.store.updatePosition(e))}},{key:"render",value:function(){var e=this.props.store,t=e.duration,n=e.pos,r=e.playing,o=e.pauseAudio,a=e.playbackSpeed,i=e.recording,l=e.setDuration,c=e.isVideo,u=i.source,f={store:this.props.store,audioFile:u,pos:parseFloat(n),duration:parseFloat(t),playing:r,onSeek:this.handlePosChange,audioRate:a,onLoad:function(e){return l(e)},onStop:o};return s.a.createElement("div",{id:"waveform",className:"flex-grow-1 d-print-none"},c?s.a.createElement(zh,f):s.a.createElement(Wh,f))}}],n&&Vh(t.prototype,n),r&&Vh(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),function(e,t,n,r,o){var a={};Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null)}(Uh.prototype,"handlePosChange",[Ih],Object.getOwnPropertyDescriptor(Uh.prototype,"handlePosChange"),Uh.prototype),Hh=Uh))||Hh),Ny=Dy,Py=n(517);function Ty(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function My(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Ay(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var Ly=function(e){var t=Math.round(255*e.rgb.a).toString(16);return 1==t.length&&(t="0"+t),e.hex+t},Ry=($h=d.action.bound,Jh=d.action.bound,Qh=Ay((Xh=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ty(this,"font",Qh,this),Ty(this,"fontSize",Zh,this),Ty(this,"fontColor",ey,this),Ty(this,"bold",ty,this),Ty(this,"italic",ny,this),Ty(this,"hAlign",ry,this),Ty(this,"vAlign",oy,this),Ty(this,"vHeightPercentage",ay,this),Ty(this,"borderStyle",iy,this),Ty(this,"borderColor",ly,this),Ty(this,"ratio",sy,this),Ty(this,"exportPosition",cy,this),Ty(this,"backgroundColor",uy,this),Ty(this,"toggleBold",fy,this),Ty(this,"toggleItalic",py,this),Ty(this,"setFont",dy,this),Ty(this,"setFontSize",my,this),Ty(this,"setFontColor",hy,this),Ty(this,"setVAlign",yy,this),Ty(this,"setVHeightPercentage",by,this),Ty(this,"setHAlignCenter",vy,this),Ty(this,"setHAlignRight",gy,this),Ty(this,"setHAlignLeft",wy,this),Ty(this,"setBorderStyleNone",Ey,this),Ty(this,"setBorderStyleOutline",_y,this),Ty(this,"setBorderStyleWrap",ky,this),Ty(this,"setBorderStyleFull",Oy,this),Ty(this,"setBorderColor",xy,this),Ty(this,"setRatio",Sy,this),Ty(this,"setExportPosition",jy,this),Ty(this,"setBackgroundColor",Cy,this),this.asJson=function(){return{font:r.font,font_size:r.fontSize,font_color:r.fontColor,bold:r.bold,italic:r.italic,h_align:r.hAlign,v_align:r.vAlign,v_height_percentage:r.vHeightPercentage,border_color:r.borderColor,border_style:r.borderStyle,ratio:r.ratio,export_position:r.exportPosition,background_color:r.backgroundColor}},this.store=n,this.loadFromJson(t)}var t,n,r;return t=e,(n=[{key:"fineTuneVAlignment",get:function(){return"finetune"==this.vAlign}},{key:"loadFromJson",value:function(e){e&&Object.keys(e).length&&(this.font=e.font,this.fontSize=e.font_size,this.fontColor=e.font_color,this.bold=e.bold,this.italic=e.italic,this.hAlign=e.h_align,this.vAlign=e.v_align,this.vHeightPercentage=e.v_height_percentage||50,this.borderColor=e.border_color,this.borderStyle=e.border_style,this.ratio=e.ratio||"original",this.exportPosition=e.export_position||"fit",this.backgroundColor=e.background_color||"#000000")}},{key:"save",value:function(){return et.a.put("/recordings/".concat(this.store.recording.id,"/caption_displays.json"),{caption_display:this.asJson()})}}])&&My(t.prototype,n),r&&My(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()).prototype,"font",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Zh=Ay(Xh.prototype,"fontSize",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ey=Ay(Xh.prototype,"fontColor",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ty=Ay(Xh.prototype,"bold",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ny=Ay(Xh.prototype,"italic",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ry=Ay(Xh.prototype,"hAlign",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),oy=Ay(Xh.prototype,"vAlign",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ay=Ay(Xh.prototype,"vHeightPercentage",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),iy=Ay(Xh.prototype,"borderStyle",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ly=Ay(Xh.prototype,"borderColor",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),sy=Ay(Xh.prototype,"ratio",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),cy=Ay(Xh.prototype,"exportPosition",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),uy=Ay(Xh.prototype,"backgroundColor",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),fy=Ay(Xh.prototype,"toggleBold",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){return e.bold=!e.bold}}}),py=Ay(Xh.prototype,"toggleItalic",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){return e.italic=!e.italic}}}),dy=Ay(Xh.prototype,"setFont",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){return e.font=t.value}}}),my=Ay(Xh.prototype,"setFontSize",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){return e.fontSize=t.target.value}}}),hy=Ay(Xh.prototype,"setFontColor",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){return e.fontColor=Ly(t)}}}),yy=Ay(Xh.prototype,"setVAlign",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){return e.vAlign=t.target.value}}}),by=Ay(Xh.prototype,"setVHeightPercentage",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){return e.vHeightPercentage=t.target.value}}}),vy=Ay(Xh.prototype,"setHAlignCenter",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){return e.hAlign="center"}}}),gy=Ay(Xh.prototype,"setHAlignRight",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){return e.hAlign="right"}}}),wy=Ay(Xh.prototype,"setHAlignLeft",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){return e.hAlign="left"}}}),Ey=Ay(Xh.prototype,"setBorderStyleNone",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){return e.borderStyle="none"}}}),_y=Ay(Xh.prototype,"setBorderStyleOutline",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){return e.borderStyle="outline"}}}),ky=Ay(Xh.prototype,"setBorderStyleWrap",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){return e.borderStyle="wrap"}}}),Oy=Ay(Xh.prototype,"setBorderStyleFull",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){return e.borderStyle="full"}}}),xy=Ay(Xh.prototype,"setBorderColor",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){return e.borderColor=Ly(t)}}}),Sy=Ay(Xh.prototype,"setRatio",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){return e.ratio=t.target.value}}}),jy=Ay(Xh.prototype,"setExportPosition",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){return e.exportPosition=t.target.value}}}),Cy=Ay(Xh.prototype,"setBackgroundColor",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){return e.backgroundColor=Ly(t)}}}),Ay(Xh.prototype,"fineTuneVAlignment",[d.computed],Object.getOwnPropertyDescriptor(Xh.prototype,"fineTuneVAlignment"),Xh.prototype),Ay(Xh.prototype,"loadFromJson",[$h],Object.getOwnPropertyDescriptor(Xh.prototype,"loadFromJson"),Xh.prototype),Ay(Xh.prototype,"save",[Jh],Object.getOwnPropertyDescriptor(Xh.prototype,"save"),Xh.prototype),Xh);Ry.FONTS=[{value:"Alien League",fontFamily:"Alien League, Gadget, Helvetica, Sans-Serif"},{value:"Arial",fontFamily:"Arial, Helvetica, Sans-Serif"},{value:"Arial Black",fontFamily:"Arial Black, Gadget, Helvetica, Sans-Serif"},{value:"Calibri",fontFamily:"Calibri, Arial, Helvetica, Sans-Serif"},{value:"Comic Sans MS",fontFamily:"Comic Sans MS, Textile, Cursive"},{value:"Courier New",fontFamily:"Courier New, Courier, Monospace"},{value:"Georgia",fontFamily:"Georgia, Times New Roman, Times, Serif"},{value:"Impact",fontFamily:"Impact, Charcoal, Sans-Serif"},{value:"Luckiest Guy",fontFamily:"Luckiest Guy, Arial Black, Gadget, Helvetica, Sans-Serif"},{value:"Lucida Grande",fontFamily:"Lucida Grande, Monaco, Monospace"},{value:"Palatino",fontFamily:"Palatino, Book Antiqua, Serif"},{value:"Praxis Next",fontFamily:"Praxis Next, Arial Black, Gadget, Helvetica, Sans-Serif"},{value:"Segoe UI",fontFamily:"Segoe UI, Geneva, Sans-Serif"},{value:"Tahoma",fontFamily:"Tahoma, Geneva, Sans-Serif"},{value:"Times New Roman",fontFamily:"Times New Roman, Times, Serif"},{value:"Tiresias Infofont",fontFamily:"Tiresias Infofont, Tahoma, Helvetica, Sans-Serif"},{value:"Trebuchet MS",fontFamily:"Trebuchet MS, Helvetica, Sans-Serif"},{value:"Verdana",fontFamily:"Verdana, Geneva, Sans-Serif"}],Ry.fontFamilyForFont=function(e){return(Ry.FONTS.find((function(t){return t.value===e}))||Ry.FONTS[0]).fontFamily},Ry.hexToRgb=function(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);if(t)return{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16),a:parseInt(t[4],16)/255};var n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16),a:1}:null},Ry.justifyContent=function(e){return"left"==e?"flex-start":"right"==e?"flex-end":"center"},Ry.alignItems=function(e){return"top"==e?"flex-start":"bottom"==e?"flex-end":"middle"==e?"center":"flex-end"};var Fy,zy,By,Yy,Iy=Ry;function Hy(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Uy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Wy(e,t){return Wy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wy(e,t)}function Vy(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Gy(e);if(t){var o=Gy(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return qy(e)}(this,n)}}function qy(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gy(e){return Gy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Gy(e)}function Ky(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var $y,Jy,Xy,Qy,Zy=Object(se.c)((zy=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wy(e,t)}(a,e);var t,n,r,o=Vy(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Hy(e=o.call.apply(o,[this].concat(n)),"heightWrapper",By,qy(e)),Hy(e,"heightCaption",Yy,qy(e)),e}return t=a,(n=[{key:"componentDidMount",value:function(){this.heightWrapper=this.divWrapper.clientHeight,this.heightCaption=this.divCaption.clientHeight}},{key:"componentDidUpdate",value:function(){var e=this.divWrapper.clientHeight;this.heightWrapper!==e&&(this.heightWrapper=e);var t=this.divCaption.clientHeight;this.heightCaption!==t&&(this.heightCaption=t)}},{key:"render",value:function(){var e=this,t=this.props,n=t.text,r=t.store,o=t.onClick,a=t.fontSizeOverride,i=r.captionDisplay,l=Iy.hexToRgb(i.borderColor),c=Iy.fontFamilyForFont(i.font),u=a||i.fontSize,f=i.vHeightPercentage,p={color:i.fontColor,textAlign:i.hAlign,fontFamily:c,fontSize:"".concat(u,"px"),lineHeight:"".concat(parseInt(u,10)+2,"px"),fontWeight:i.bold?"bold":"normal",fontStyle:i.italic?"italic":"normal",background:"transparent",padding:"full"==i.borderStyle?"10px":"5px"};if("full"===i.borderStyle)p.background="rgba(".concat(l.r,",").concat(l.g,",").concat(l.b,", ").concat(l.a,")"),p.width="100%";else if("outline"===i.borderStyle){var d="rgba(".concat(l.r,",").concat(l.g,",").concat(l.b,", ").concat(l.a,")");p.textShadow="".concat(d," -1px -1px 0px, ").concat(d," 1px -1px 0px, ").concat(d," -1px 1px 0px, ").concat(d," 1px 1px 0px")}else"wrap"===i.borderStyle&&(p.background="rgba(".concat(l.r,",").concat(l.g,",").concat(l.b,", ").concat(l.a,")"),p.width="fit-content",p.paddingInlineStart="5px",p.paddingInlineEnd="5px");return"finetune"==i.vAlign&&(p.top="-".concat((this.heightWrapper-this.heightCaption)*f/100,"px"),p.position="relative"),s.a.createElement("div",{className:"video-preview--captions",onClick:o},s.a.createElement("div",{className:"video-preview--captions-position",ref:function(t){e.divWrapper=t},style:{justifyContent:Iy.justifyContent(i.hAlign),display:"flex",width:"100%",height:"100%",alignItems:Iy.alignItems(i.vAlign),whiteSpace:"pre-wrap"}},s.a.createElement("div",{className:"video-preview--captions-text",ref:function(t){e.divCaption=t},style:p},n)))}}])&&Uy(t.prototype,n),r&&Uy(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),By=Ky(zy.prototype,"heightWrapper",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Yy=Ky(zy.prototype,"heightCaption",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Fy=zy))||Fy,eb=Zy;function tb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function nb(e,t){return nb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nb(e,t)}function rb(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ab(e);if(t){var o=ab(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ob(e)}(this,n)}}function ob(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ab(e){return ab=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ab(e)}function ib(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var lb,sb=Object(se.c)((function(e){var t=e.store,n=t.uiState,r=n.isVideoLarge,o=n.toggleLargeVideo,a=n.hideVideo,i=n.toggleCCShown,l=n.toggleCharCountShown;return s.a.createElement("div",{className:"video--content-button text--noselect"},s.a.createElement("a",{className:"video--content-btn clickable","data-balloon":"Hide the video","data-balloon-pos":"down",onClick:a},s.a.createElement("span",{className:"text-center d-block mx-auto"},s.a.createElement("i",{className:"fas fa-fw fa-video-slash me-1"}),"Video")),s.a.createElement("a",{className:ue()("video--content-btn clickable",{hidden:r}),"data-balloon":"Make the video larger","data-balloon-pos":"down",onClick:o},s.a.createElement("span",{className:"text-center d-block mx-auto"},s.a.createElement("i",{className:"fas fa-fw fa-expand-arrows me-1"}),"Expand")),s.a.createElement("a",{className:ue()("video--content-btn clickable",{hidden:!r}),"data-balloon":"Make the video smaller","data-balloon-pos":"down",onClick:o},s.a.createElement("span",{className:"text-center d-block mx-auto"},s.a.createElement("i",{className:"fas fa-fw fa-compress-arrows-alt me-1"}),"Contract")),t.transcript.subtitled&&s.a.createElement(s.a.Fragment,null,s.a.createElement("a",{className:ue()("video--content-btn clickable",{hidden:n.isCCShown}),"data-balloon":"Show subtitles on video","data-balloon-pos":"down",onClick:i},s.a.createElement("span",{className:"text-center d-block mx-auto"},s.a.createElement("i",{className:"fas fa-fw fa-closed-captioning me-1"}),"Subtitles")),s.a.createElement("a",{className:ue()("video--content-btn clickable",{hidden:!n.isCCShown}),"data-balloon":"Hide subtitles on video","data-balloon-pos":"down",onClick:i},s.a.createElement("span",{className:"text-center d-block mx-auto"},s.a.createElement("i",{className:"far fa-fw fa-closed-captioning me-1"}),"Subtitles")),s.a.createElement("a",{className:ue()("video--content-btn clickable",{hidden:n.isCharCountShown}),"data-balloon":"Show subtitle characters per line (CPL)","data-balloon-pos":"down",onClick:l},s.a.createElement("span",{className:"text-center d-block mx-auto"},s.a.createElement("i",{className:"fas fa-fw fa-stopwatch me-1"}),"CPL")),s.a.createElement("a",{className:ue()("video--content-btn clickable",{hidden:!n.isCharCountShown}),"data-balloon":"Hide subtitle characters per line (CPL)","data-balloon-pos":"down",onClick:l},s.a.createElement("span",{className:"text-center d-block mx-auto"},s.a.createElement("i",{className:"far fa-fw fa-stopwatch me-1"}),"CPL"))))})),cb=($y=d.action.bound,Object(se.c)((Xy=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nb(e,t)}(a,e);var t,n,r,o=rb(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(e=o.call.apply(o,[this].concat(n)),"videoWidthInPx",Qy,ob(e)),e}return t=a,n=[{key:"handleResize",value:function(){var e=document.getElementById("video--media");e&&(this.videoWidthInPx=e.clientWidth)}},{key:"componentDidMount",value:function(){var e=this,t=this.props.store.uiState;window.addEventListener("resize",this.handleResize),this.disposeVideoResize=Object(d.reaction)((function(){return[t.isVideoLarge,t.isVideoHidden]}),(function(){return setTimeout(e.handleResize,100)})),this.disposeMediaLoadedReaction=Object(d.reaction)((function(){return e.props.store.mediaLoaded}),(function(){return setTimeout(e.handleResize,200)}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.handleResize),this.disposeVideoResize(),this.disposeMediaLoadedReaction()}},{key:"render",value:function(){var e=this.props.store,t=e.transcript,n=e.pos,r=e.uiState;if(!e.transcript.subtitled||!r.isCCShown)return null;var o=t.value.find((function(e){return n>=parseFloat(e.from)&&n<=parseFloat(e.to)}));if(!o)return null;var a=(this.videoWidthInPx/480*e.captionDisplay.fontSize).toFixed(2),i=o.children.map((function(e){return e.strikethrough?"":e.text})).join("");return s.a.createElement(eb,{text:i,store:e,onClick:e.togglePlaying,fontSizeOverride:a})}}],n&&tb(t.prototype,n),r&&tb(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),Qy=ib(Xy.prototype,"videoWidthInPx",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),ib(Xy.prototype,"handleResize",[$y],Object.getOwnPropertyDescriptor(Xy.prototype,"handleResize"),Xy.prototype),Jy=Xy))||Jy),ub=Object(se.c)((function(e){var t=e.store,n=t.updatePosition,r=t.setDuration,o=t.pauseAudio,a=t.playAudio,i=t.uiState,l=i.isVideoHidden,c=i.isVideoLarge,u=i.isVideoVertical,f=i.showVideo,p=t.recording,d=p.poster,m=p.source;return s.a.createElement("div",{className:"position--relative row",id:"video--wrapper"},s.a.createElement("div",{id:"video--content",className:ue()("video--content position--left-0",{"video--content-lg":c},{hidden:l},{"video--content-vertical":u})},s.a.createElement(sb,{store:t}),s.a.createElement("div",{className:"video-preview--wrapper"},s.a.createElement("div",{className:"video-preview--container"},s.a.createElement(cb,{store:t}),s.a.createElement("div",{className:ue()("video-preview--media",{"video-preview--media-vertical":u}),id:"video--media"},s.a.createElement(Py.a,{store:t,setVerticalVideo:i.setVerticalVideo,filename:m,poster:d,onPause:o,onPlay:a,setDuration:r,onPositionChange:n}))))),s.a.createElement("div",{className:ue()("video--content-button text--noselect position--left-0",{hidden:!l})},s.a.createElement("a",{className:"video--content-btn clickable","data-balloon":"Show the video","data-balloon-pos":"right",onClick:f},s.a.createElement("span",{className:"text-center d-block mx-auto"},s.a.createElement("i",{className:"fas fa-fw fa-video me-2"}),"Video"))))}));function fb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function pb(e,t){return pb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pb(e,t)}function db(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=mb(e);if(t){var o=mb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function mb(e){return mb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mb(e)}var hb,yb=Object(se.b)("store")(lb=Object(se.c)(lb=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pb(e,t)}(a,e);var t,n,r,o=db(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"renderSpeeds",value:function(){var e=this.props.store,t=e.setPlaybackSpeed,n=e.playbackSpeed;return e.playbackSpeeds.map((function(e){var r=n===e,o=ue()("playback--speed text-end clickable",{current:r});return s.a.createElement("li",{className:"m-0",key:e},s.a.createElement("span",{className:o,onClick:function(){return t(e)}},e.toFixed(1),"x"))}))}},{key:"render",value:function(){return s.a.createElement("div",null,s.a.createElement("ol",{className:"dropdown--list"},this.renderSpeeds()))}}])&&fb(t.prototype,n),r&&fb(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||lb)||lb,bb=yb;function vb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function gb(e,t){return gb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gb(e,t)}function wb(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Eb(e);if(t){var o=Eb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Eb(e){return Eb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Eb(e)}var _b,kb=Object(se.c)(hb=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gb(e,t)}(a,e);var t,n,r,o=wb(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"componentDidMount",value:function(){Bn.a.bind(["ctrl+shift+z","command+shift+z"],this.props.transcript.applyRedo)}},{key:"componentWillUnmount",value:function(){Bn.a.unbind(["ctrl+shift+z","command+shift+z"])}},{key:"render",value:function(){var e=this.props.transcript;return e.hasRedos?s.a.createElement("li",{className:"d-none d-sm-block"},s.a.createElement("div",{className:"tool--wrapper"},s.a.createElement("div",{className:"tool--item"},s.a.createElement("span",{onMouseDown:e.applyRedo,"data-balloon":"Redo (Ctrl+Shift+Z)","data-balloon-pos":"down",className:"cursor--pointer clickable t--transcript-toolbar-redo"},s.a.createElement("i",{className:"far fa-fw fa-redo"}))))):s.a.createElement("li",{className:"d-none d-sm-block"},s.a.createElement("div",{className:"tool--wrapper"},s.a.createElement("div",{className:"tool--item"},s.a.createElement("span",{"data-balloon":"No actions to redo","data-balloon-pos":"down",className:"toolbar--link-inactive text--color-meta"},s.a.createElement("i",{className:"far fa-fw fa-redo"})))))}}])&&vb(t.prototype,n),r&&vb(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||hb,Ob=kb;function xb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Sb(e,t){return Sb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Sb(e,t)}function jb(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Cb(e);if(t){var o=Cb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Cb(e){return Cb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Cb(e)}var Db,Nb=Object(se.c)(_b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sb(e,t)}(a,e);var t,n,r,o=jb(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"componentDidMount",value:function(){Bn.a.bind(["ctrl+z","command+z"],this.props.transcript.applyUndo)}},{key:"componentWillUnmount",value:function(){Bn.a.unbind(["ctrl+z","command+z"])}},{key:"render",value:function(){var e=this.props,t=e.transcript,n=e.uiState;if(t.hasUndos||t.version>1){var r=t.hasUndos?t.applyUndo:n.showVersionModal;return s.a.createElement("li",{className:"d-none d-sm-block",onMouseDown:r},s.a.createElement("div",{className:"tool--wrapper"},s.a.createElement("div",{className:"tool--item"},s.a.createElement("span",{"data-balloon":"Undo (Ctrl+Z)","data-balloon-pos":"down",className:"cursor--pointer clickable t--transcript-toolbar-undo"},s.a.createElement("i",{className:"far fa-fw fa-undo"})))))}return s.a.createElement("li",{className:"d-none d-sm-block",onMouseDown:n.showVersionModal},s.a.createElement("div",{className:"tool--wrapper"},s.a.createElement("div",{className:"tool--item"},s.a.createElement("span",{"data-balloon":"No actions to undo","data-balloon-pos":"down",className:"toolbar--link toolbar--link-inactive text--color-meta"},s.a.createElement("i",{className:"far fa-fw fa-undo"})))))}}])&&xb(t.prototype,n),r&&xb(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||_b,Pb=Nb;function Tb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Mb(e,t){return Mb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Mb(e,t)}function Ab(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Lb(e);if(t){var o=Lb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Lb(e){return Lb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Lb(e)}var Rb=Object(se.c)(Db=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mb(e,t)}(a,e);var t,n,r,o=Ab(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.colors,n=e.onChange,r=e.selectedColor;return s.a.createElement("ol",{className:"dropdown--menu"},t.map((function(e){return s.a.createElement(Fb,{selected:r===e,color:e,key:e,onClick:function(){return n(e)}})})))}}])&&Tb(t.prototype,n),r&&Tb(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||Db,Fb=function(e){var t=e.color,n=e.onClick,r=e.selected;return s.a.createElement("li",null,s.a.createElement("span",{className:ue()("dropdown--palette-swatch clickable",{selected:r}),onClick:n,style:{backgroundColor:t}}))},zb=Rb,Bb={"very-confident":[1,.85],"fairly-confident":[.85,.5],"slightly-confident":[.5,-1]};var Yb={serialize:function(e){return e.map((function(e){var t={sn:e.speaker_name,ts:[e.from,e.to],nt:e.note,cd:e.completed,tr:e.track,ws:e.children.map((function(e){var t={w:e.text,t:[e.from,e.to],c:e.confidence};return e.strikethrough&&(t.s=e.strikethrough),e.highlight&&(t.h=e.highlight),t}))};return e.source_text&&(t.st=e.source_text),t}))},deserialize:function(e){var t=[];return e.forEach((function(e){if(0!==e.ws.length&&(1!==e.ws.length||""!==e.ws[0].w)){var n={type:"exchange",speaker_name:e.sn,track:e.tr,note:e.nt,completed:e.cd,from:e.ts[0],to:e.ts[1],source_text:e.st},r=!1,o=[];if(e.ws.forEach((function(e){var t={text:e.w,from:e.t[0],to:e.t[1],confidence:e.c,highlight:e.h,strikethrough:e.s};r||!e.h&&!e.s?!r||e.h||e.s||(r=!1,o[o.length-1].endSegment=!0):(r=!0,t.startSegment=!0),o.push(t)})),o.length){if(!n.from&&0!==n.from){var a=o[0];a&&a.from&&(n.from=a.from)}if(!n.to&&0!==n.to){var i=o[o.length-1];i&&i.to&&(n.to=i.to)}}r&&(o[o.length-1].endSegment=!0),n.children=o,t.push(n)}})),t}};function Ib(e){return"[object Object]"===Object.prototype.toString.call(e)}function Hb(e){var t,n;return!1!==Ib(e)&&(void 0===(t=e.constructor)||!1!==Ib(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function Ub(e){return Ub="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ub(e)}function Wb(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Vb(e){return!!e&&!!e[Tv]}function qb(e){return!!e&&(function(e){if(!e||"object"!=Ub(e))return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===Mv}(e)||Array.isArray(e)||!!e[Pv]||!!e.constructor[Pv]||Zb(e)||ev(e))}function Gb(e,t,n){void 0===n&&(n=!1),0===Kb(e)?(n?Object.keys:Av)(e).forEach((function(r){n&&"symbol"==Ub(r)||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function Kb(e){var t=e[Tv];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Zb(e)?2:ev(e)?3:0}function $b(e,t){return 2===Kb(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Jb(e,t){return 2===Kb(e)?e.get(t):e[t]}function Xb(e,t,n){var r=Kb(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function Qb(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function Zb(e){return jv&&e instanceof Map}function ev(e){return Cv&&e instanceof Set}function tv(e){return e.o||e.t}function nv(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Lv(e);delete t[Tv];for(var n=Av(t),r=0;r<n.length;r++){var o=n[r],a=t[o];!1===a.writable&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function rv(e,t){return void 0===t&&(t=!1),av(e)||Vb(e)||!qb(e)||(Kb(e)>1&&(e.set=e.add=e.clear=e.delete=ov),Object.freeze(e),t&&Gb(e,(function(e,t){return rv(t,!0)}),!0)),e}function ov(){Wb(2)}function av(e){return null==e||"object"!=Ub(e)||Object.isFrozen(e)}function iv(e){var t=Rv[e];return t||Wb(18,e),t}function lv(){return xv}function sv(e,t){t&&(iv("Patches"),e.u=[],e.s=[],e.v=t)}function cv(e){uv(e),e.p.forEach(pv),e.p=null}function uv(e){e===xv&&(xv=e.l)}function fv(e){return xv={p:[],l:xv,h:e,m:!0,_:0}}function pv(e){var t=e[Tv];0===t.i||1===t.i?t.j():t.O=!0}function dv(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||iv("ES5").S(t,e,r),r?(n[Tv].P&&(cv(t),Wb(4)),qb(e)&&(e=mv(t,e),t.l||yv(t,e)),t.u&&iv("Patches").M(n[Tv].t,e,t.u,t.s)):e=mv(t,n,[]),cv(t),t.u&&t.v(t.u,t.s),e!==Nv?e:void 0}function mv(e,t,n){if(av(t))return t;var r=t[Tv];if(!r)return Gb(t,(function(o,a){return hv(e,r,t,o,a,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return yv(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=nv(r.k):r.o;Gb(3===r.i?new Set(o):o,(function(t,a){return hv(e,r,o,t,a,n)})),yv(e,o,!1),n&&e.u&&iv("Patches").R(r,n,e.u,e.s)}return r.o}function hv(e,t,n,r,o,a){if(Vb(o)){var i=mv(e,o,a&&t&&3!==t.i&&!$b(t.D,r)?a.concat(r):void 0);if(Xb(n,r,i),!Vb(i))return;e.m=!1}if(qb(o)&&!av(o)){if(!e.h.F&&e._<1)return;mv(e,o),t&&t.A.l||yv(e,o)}}function yv(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&rv(t,n)}function bv(e,t){var n=e[Tv];return(n?tv(n):e)[t]}function vv(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function gv(e){e.P||(e.P=!0,e.l&&gv(e.l))}function wv(e){e.o||(e.o=nv(e.t))}function Ev(e,t,n){var r=Zb(t)?iv("MapSet").N(t,n):ev(t)?iv("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:lv(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,a=Fv;n&&(o=[r],a=zv);var i=Proxy.revocable(o,a),l=i.revoke,s=i.proxy;return r.k=s,r.j=l,s}(t,n):iv("ES5").J(t,n);return(n?n.A:lv()).p.push(r),r}function _v(e){return Vb(e)||Wb(22,e),function e(t){if(!qb(t))return t;var n,r=t[Tv],o=Kb(t);if(r){if(!r.P&&(r.i<4||!iv("ES5").K(r)))return r.t;r.I=!0,n=kv(t,o),r.I=!1}else n=kv(t,o);return Gb(n,(function(t,o){r&&Jb(r.t,t)===o||Xb(n,t,e(o))})),3===o?new Set(n):n}(e)}function kv(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return nv(e)}var Ov,xv,Sv="undefined"!=typeof Symbol&&"symbol"==Ub(Symbol("x")),jv="undefined"!=typeof Map,Cv="undefined"!=typeof Set,Dv="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Nv=Sv?Symbol.for("immer-nothing"):((Ov={})["immer-nothing"]=!0,Ov),Pv=Sv?Symbol.for("immer-draftable"):"__$immer_draftable",Tv=Sv?Symbol.for("immer-state"):"__$immer_state",Mv=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),Av="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Lv=Object.getOwnPropertyDescriptors||function(e){var t={};return Av(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},Rv={},Fv={get:function(e,t){if(t===Tv)return e;var n=tv(e);if(!$b(n,t))return function(e,t,n){var r,o=vv(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!qb(r)?r:r===bv(e.t,t)?(wv(e),e.o[t]=Ev(e.A.h,r,e)):r},has:function(e,t){return t in tv(e)},ownKeys:function(e){return Reflect.ownKeys(tv(e))},set:function(e,t,n){var r=vv(tv(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=bv(tv(e),t),a=null==o?void 0:o[Tv];if(a&&a.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(Qb(n,o)&&(void 0!==n||$b(e.t,t)))return!0;wv(e),gv(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==bv(e.t,t)||t in e.t?(e.D[t]=!1,wv(e),gv(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=tv(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){Wb(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Wb(12)}},zv={};Gb(Fv,(function(e,t){zv[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),zv.deleteProperty=function(e,t){return zv.set.call(this,e,t,void 0)},zv.set=function(e,t,n){return Fv.set.call(this,e[0],t,n,e[0])};var Bv=function(){function e(e){var t=this;this.g=Dv,this.F=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var a=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,i=Array(r>1?r-1:0),l=1;l<r;l++)i[l-1]=arguments[l];return a.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(i))}))}}var i;if("function"!=typeof n&&Wb(6),void 0!==r&&"function"!=typeof r&&Wb(7),qb(e)){var l=fv(t),s=Ev(t,e,void 0),c=!0;try{i=n(s),c=!1}finally{c?cv(l):uv(l)}return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(e){return sv(l,r),dv(e,l)}),(function(e){throw cv(l),e})):(sv(l,r),dv(i,l))}if(!e||"object"!=Ub(e)){if(void 0===(i=n(e))&&(i=e),i===Nv&&(i=void 0),t.F&&rv(i,!0),r){var u=[],f=[];iv("Patches").M(e,i,u,f),r(u,f)}return i}Wb(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(o))}))};var r,o,a=t.produce(e,n,(function(e,t){r=e,o=t}));return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return[e,r,o]})):[a,r,o]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){qb(e)||Wb(8),Vb(e)&&(e=_v(e));var t=fv(this),n=Ev(this,e,void 0);return n[Tv].C=!0,uv(t),n},t.finishDraft=function(e,t){var n=(e&&e[Tv]).A;return sv(n,t),dv(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!Dv&&Wb(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=iv("Patches").$;return Vb(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),Yv=new Bv,Iv=Yv.produce,Hv=(Yv.produceWithPatches.bind(Yv),Yv.setAutoFreeze.bind(Yv),Yv.setUseProxies.bind(Yv),Yv.applyPatches.bind(Yv),Yv.createDraft.bind(Yv)),Uv=Yv.finishDraft.bind(Yv);function Wv(e){return Wv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wv(e)}var Vv=$v().mark(mE),qv=$v().mark(wE),Gv=$v().mark(DE);function Kv(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Wv(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Wv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Wv(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $v(){$v=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var a=t&&t.prototype instanceof b?t:b,i=Object.create(a.prototype),l=new N(r||[]);return o(i,"_invoke",{value:S(e,n,l)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",d="suspendedYield",m="executing",h="completed",y={};function b(){}function v(){}function g(){}var w={};c(w,i,(function(){return this}));var E=Object.getPrototypeOf,_=E&&E(E(P([])));_&&_!==n&&r.call(_,i)&&(w=_);var k=g.prototype=b.prototype=Object.create(w);function O(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(o,a,i,l){var s=f(e[o],e,a);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==Wv(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,i,l)}),(function(e){n("throw",e,i,l)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return n("throw",e,i,l)}))}l(s.arg)}var a;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function S(t,n,r){var o=p;return function(a,i){if(o===m)throw new Error("Generator is already running");if(o===h){if("throw"===a)throw i;return{value:e,done:!0}}for(r.method=a,r.arg=i;;){var l=r.delegate;if(l){var s=j(l,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var c=f(t,n,r);if("normal"===c.type){if(o=r.done?h:d,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=h,r.method="throw",r.arg=c.arg)}}}function j(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,j(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var a=f(o,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,y;var i=a.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(Wv(t)+" is not iterable")}return v.prototype=g,o(k,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:v,configurable:!0}),v.displayName=c(g,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,c(e,s,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},O(x.prototype),c(x.prototype,l,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new x(u(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},O(k),c(k,s,"Generator"),c(k,i,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=P,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),D(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;D(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:P(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function Jv(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Zv(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function Xv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||Zv(e,t)||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 Qv(e){return function(e){if(Array.isArray(e))return eg(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Zv(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zv(e,t){if(e){if("string"==typeof e)return eg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eg(e,t):void 0}}function eg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var tg=function(e,t){var n=e.current,r=e.affinity;if(null!=n){var o=fg.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}},ng=function(e,t){var n=e.current,r=e.affinity;if(null!=n){var o=Lg.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}},rg=function(e,t){var n=e.current,r=e.affinity;if(null!=n){var o=wg.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}},og=new WeakMap,ag=new WeakMap,ig=new WeakMap,lg=new WeakMap,sg=new WeakMap,cg=new WeakMap,ug=new WeakMap,fg={ancestors:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.reverse,r=void 0!==n&&n,o=fg.levels(e,t);return o=r?o.slice(1):o.slice(0,-1)},common:function(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r];if(o!==t[r])break;n.push(o)}return n},compare:function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter:function(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),a=e[n],i=t[n];return fg.equals(r,o)&&a>i},endsAt:function(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return fg.equals(r,o)},endsBefore:function(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),a=e[n],i=t[n];return fg.equals(r,o)&&a<i},equals:function(e,t){return e.length===t.length&&e.every((function(e,n){return e===t[n]}))},hasPrevious:function(e){return e[e.length-1]>0},isAfter:function(e,t){return 1===fg.compare(e,t)},isAncestor:function(e,t){return e.length<t.length&&0===fg.compare(e,t)},isBefore:function(e,t){return-1===fg.compare(e,t)},isChild:function(e,t){return e.length===t.length+1&&0===fg.compare(e,t)},isCommon:function(e,t){return e.length<=t.length&&0===fg.compare(e,t)},isDescendant:function(e,t){return e.length>t.length&&0===fg.compare(e,t)},isParent:function(e,t){return e.length+1===t.length&&0===fg.compare(e,t)},isPath:function(e){return Array.isArray(e)&&(0===e.length||"number"==typeof e[0])},isSibling:function(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&fg.equals(n,r)},levels:function(e){for(var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).reverse,n=void 0!==t&&t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next:function(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},operationCanTransformPath:function(e){switch(e.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent:function(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous:function(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative:function(e,t){if(!fg.isAncestor(t,e)&&!fg.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return null;var r=Qv(e),o=n.affinity,a=void 0===o?"forward":o;if(0===e.length)return r;switch(t.type){case"insert_node":var i=t.path;(fg.equals(i,r)||fg.endsBefore(i,r)||fg.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var l=t.path;if(fg.equals(l,r)||fg.isAncestor(l,r))return null;fg.endsBefore(l,r)&&(r[l.length-1]-=1);break;case"merge_node":var s=t.path,c=t.position;fg.equals(s,r)||fg.endsBefore(s,r)?r[s.length-1]-=1:fg.isAncestor(s,r)&&(r[s.length-1]-=1,r[s.length]+=c);break;case"split_node":var u=t.path,f=t.position;if(fg.equals(u,r)){if("forward"===a)r[r.length-1]+=1;else if("backward"!==a)return null}else fg.endsBefore(u,r)?r[u.length-1]+=1:fg.isAncestor(u,r)&&e[u.length]>=f&&(r[u.length-1]+=1,r[u.length]-=f);break;case"move_node":var p=t.path,d=t.newPath;if(fg.equals(p,d))return r;if(fg.isAncestor(p,r)||fg.equals(p,r)){var m=d.slice();return fg.endsBefore(p,d)&&p.length<d.length&&(m[p.length-1]-=1),m.concat(r.slice(p.length))}fg.isSibling(p,d)&&(fg.isAncestor(d,r)||fg.equals(d,r))?fg.endsBefore(p,r)?r[p.length-1]-=1:r[p.length-1]+=1:fg.endsBefore(d,r)||fg.equals(d,r)||fg.isAncestor(d,r)?(fg.endsBefore(p,r)&&(r[p.length-1]-=1),r[d.length-1]+=1):fg.endsBefore(p,r)&&(fg.equals(d,r)&&(r[d.length-1]+=1),r[p.length-1]-=1)}return r}};function pg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dg(Object(n),!0).forEach((function(t){pg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var hg={transform:function(e,t){e.children=Hv(e.children);var n=e.selection&&Hv(e.selection);try{n=function(e,t,n){switch(n.type){case"insert_node":var r=n.path,o=n.node,a=Sg.parent(e,r),i=r[r.length-1];if(i>a.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(a.children.splice(i,0,o),t){var l,s=Jv(wg.points(t));try{for(s.s();!(l=s.n()).done;){var c=Xv(l.value,2),u=c[0];t[c[1]]=Lg.transform(u,n)}}catch(e){s.e(e)}finally{s.f()}}break;case"insert_text":var f=n.path,p=n.offset,d=n.text;if(0===d.length)break;var m=Sg.leaf(e,f),h=m.text.slice(0,p),y=m.text.slice(p);if(m.text=h+d+y,t){var b,v=Jv(wg.points(t));try{for(v.s();!(b=v.n()).done;){var g=Xv(b.value,2),w=g[0];t[g[1]]=Lg.transform(w,n)}}catch(e){v.e(e)}finally{v.f()}}break;case"merge_node":var E=n.path,_=Sg.get(e,E),k=fg.previous(E),O=Sg.get(e,k),x=Sg.parent(e,E),S=E[E.length-1];if(Ug.isText(_)&&Ug.isText(O))O.text+=_.text;else{if(Ug.isText(_)||Ug.isText(O))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(E,"] to nodes of different interfaces: ").concat(Fg.stringify(_)," ").concat(Fg.stringify(O)));var j;(j=O.children).push.apply(j,Qv(_.children))}if(x.children.splice(S,1),t){var C,D=Jv(wg.points(t));try{for(D.s();!(C=D.n()).done;){var N=Xv(C.value,2),P=N[0];t[N[1]]=Lg.transform(P,n)}}catch(e){D.e(e)}finally{D.f()}}break;case"move_node":var T=n.path,M=n.newPath;if(fg.isAncestor(T,M))throw new Error("Cannot move a path [".concat(T,"] to new path [").concat(M,"] because the destination is inside itself."));var A=Sg.get(e,T),L=Sg.parent(e,T),R=T[T.length-1];L.children.splice(R,1);var F=fg.transform(T,n),z=Sg.get(e,fg.parent(F)),B=F[F.length-1];if(z.children.splice(B,0,A),t){var Y,I=Jv(wg.points(t));try{for(I.s();!(Y=I.n()).done;){var H=Xv(Y.value,2),U=H[0];t[H[1]]=Lg.transform(U,n)}}catch(e){I.e(e)}finally{I.f()}}break;case"remove_node":var W=n.path,V=W[W.length-1];if(Sg.parent(e,W).children.splice(V,1),t){var q,G=Jv(wg.points(t));try{for(G.s();!(q=G.n()).done;){var K=Xv(q.value,2),$=K[0],J=K[1],X=Lg.transform($,n);if(null!=t&&null!=X)t[J]=X;else{var Q,Z=void 0,ee=void 0,te=Jv(Sg.texts(e));try{for(te.s();!(Q=te.n()).done;){var ne=Xv(Q.value,2),re=ne[0],oe=ne[1];if(-1!==fg.compare(oe,W)){ee=[re,oe];break}Z=[re,oe]}}catch(e){te.e(e)}finally{te.f()}var ae=!1;Z&&ee&&(ae=fg.equals(ee[1],W)?!fg.hasPrevious(ee[1]):fg.common(Z[1],W).length<fg.common(ee[1],W).length),Z&&!ae?($.path=Z[1],$.offset=Z[0].text.length):ee?($.path=ee[1],$.offset=0):t=null}}}catch(e){G.e(e)}finally{G.f()}}break;case"remove_text":var ie=n.path,le=n.offset,se=n.text;if(0===se.length)break;var ce=Sg.leaf(e,ie),ue=ce.text.slice(0,le),fe=ce.text.slice(le+se.length);if(ce.text=ue+fe,t){var pe,de=Jv(wg.points(t));try{for(de.s();!(pe=de.n()).done;){var me=Xv(pe.value,2),he=me[0];t[me[1]]=Lg.transform(he,n)}}catch(e){de.e(e)}finally{de.f()}}break;case"set_node":var ye=n.path,be=n.properties,ve=n.newProperties;if(0===ye.length)throw new Error("Cannot set properties on the root node!");var ge=Sg.get(e,ye);for(var we in ve){if("children"===we||"text"===we)throw new Error('Cannot set the "'.concat(we,'" property of nodes!'));var Ee=ve[we];null==Ee?delete ge[we]:ge[we]=Ee}for(var _e in be)ve.hasOwnProperty(_e)||delete ge[_e];break;case"set_selection":var ke=n.newProperties;if(null==ke)t=ke;else{if(null==t){if(!wg.isRange(ke))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(Fg.stringify(ke)," when there is no current selection."));t=mg({},ke)}for(var Oe in ke){var xe=ke[Oe];if(null==xe){if("anchor"===Oe||"focus"===Oe)throw new Error('Cannot remove the "'.concat(Oe,'" selection property'));delete t[Oe]}else t[Oe]=xe}}break;case"split_node":var Se=n.path,je=n.position,Ce=n.properties;if(0===Se.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(Se,"] because the root node cannot be split."));var De,Ne=Sg.get(e,Se),Pe=Sg.parent(e,Se),Te=Se[Se.length-1];if(Ug.isText(Ne)){var Me=Ne.text.slice(0,je),Ae=Ne.text.slice(je);Ne.text=Me,De=mg(mg({},Ce),{},{text:Ae})}else{var Le=Ne.children.slice(0,je),Re=Ne.children.slice(je);Ne.children=Le,De=mg(mg({},Ce),{},{children:Re})}if(Pe.children.splice(Te+1,0,De),t){var Fe,ze=Jv(wg.points(t));try{for(ze.s();!(Fe=ze.n()).done;){var Be=Xv(Fe.value,2),Ye=Be[0];t[Be[1]]=Lg.transform(Ye,n)}}catch(e){ze.e(e)}finally{ze.f()}}}return t}(e,n,t)}finally{e.children=Uv(e.children),e.selection=n?Vb(n)?Uv(n):n:null}}},yg=function e(t,n){for(var r in t){var o=t[r],a=n[r];if(Hb(o)&&Hb(a)){if(!e(o,a))return!1}else if(Array.isArray(o)&&Array.isArray(a)){if(o.length!==a.length)return!1;for(var i=0;i<o.length;i++)if(o[i]!==a[i])return!1}else if(o!==a)return!1}for(var l in n)if(void 0===t[l]&&void 0!==n[l])return!1;return!0};function bg(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var vg=["anchor","focus"];function gg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var wg={edges:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).reverse,n=void 0!==t&&t,r=e.anchor,o=e.focus;return wg.isBackward(e)===n?[r,o]:[o,r]},end:function(e){var t=Xv(wg.edges(e),2)[1];return t},equals:function(e,t){return Lg.equals(e.anchor,t.anchor)&&Lg.equals(e.focus,t.focus)},includes:function(e,t){if(wg.isRange(t)){if(wg.includes(e,t.anchor)||wg.includes(e,t.focus))return!0;var n=Xv(wg.edges(e),2),r=n[0],o=n[1],a=Xv(wg.edges(t),2),i=a[0],l=a[1];return Lg.isBefore(r,i)&&Lg.isAfter(o,l)}var s=Xv(wg.edges(e),2),c=s[0],u=s[1],f=!1,p=!1;return Lg.isPoint(t)?(f=Lg.compare(t,c)>=0,p=Lg.compare(t,u)<=0):(f=fg.compare(t,c.path)>=0,p=fg.compare(t,u.path)<=0),f&&p},intersection:function(e,t){var n=bg(e,vg),r=Xv(wg.edges(e),2),o=r[0],a=r[1],i=Xv(wg.edges(t),2),l=i[0],s=i[1],c=Lg.isBefore(o,l)?l:o,u=Lg.isBefore(a,s)?a:s;return Lg.isBefore(u,c)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gg(Object(n),!0).forEach((function(t){pg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({anchor:c,focus:u},n)},isBackward:function(e){var t=e.anchor,n=e.focus;return Lg.isAfter(t,n)},isCollapsed:function(e){var t=e.anchor,n=e.focus;return Lg.equals(t,n)},isExpanded:function(e){return!wg.isCollapsed(e)},isForward:function(e){return!wg.isBackward(e)},isRange:function(e){return Hb(e)&&Lg.isPoint(e.anchor)&&Lg.isPoint(e.focus)},points:function(e){return $v().mark((function t(){return $v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,[e.anchor,"anchor"];case 2:return t.next=4,[e.focus,"focus"];case 4:case"end":return t.stop()}}),t)}))()},start:function(e){var t=Xv(wg.edges(e),1)[0];return t},transform:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Iv(e,(function(e){if(null===e)return null;var r,o,a=n.affinity,i=void 0===a?"inward":a;if("inward"===i){var l=wg.isCollapsed(e);wg.isForward(e)?(r="forward",o=l?r:"backward"):(r="backward",o=l?r:"forward")}else"outward"===i?wg.isForward(e)?(r="backward",o="forward"):(r="forward",o="backward"):(r=i,o=i);var s=Lg.transform(e.anchor,t,{affinity:r}),c=Lg.transform(e.focus,t,{affinity:o});if(!s||!c)return null;e.anchor=s,e.focus=c}))}},Eg=function(e){return Hb(e)&&Sg.isNodeList(e.children)&&!Pg.isEditor(e)},_g={isAncestor:function(e){return Hb(e)&&Sg.isNodeList(e.children)},isElement:Eg,isElementList:function(e){return Array.isArray(e)&&e.every((function(e){return _g.isElement(e)}))},isElementProps:function(e){return void 0!==e.children},isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return Eg(e)&&e[n]===t},matches:function(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},kg=["children"],Og=["text"],xg=new WeakMap,Sg={ancestor:function(e,t){var n=Sg.get(e,t);if(Ug.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(Fg.stringify(n)));return n},ancestors:function(e,t){var n=arguments;return $v().mark((function r(){var o,a,i,l,s,c;return $v().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:o=n.length>2&&void 0!==n[2]?n[2]:{},a=Jv(fg.ancestors(t,o)),r.prev=2,a.s();case 4:if((i=a.n()).done){r.next=12;break}return l=i.value,s=Sg.ancestor(e,l),c=[s,l],r.next=10,c;case 10:r.next=4;break;case 12:r.next=17;break;case 14:r.prev=14,r.t0=r.catch(2),a.e(r.t0);case 17:return r.prev=17,a.f(),r.finish(17);case 20:case"end":return r.stop()}}),r,null,[[2,14,17,20]])}))()},child:function(e,t){if(Ug.isText(e))throw new Error("Cannot get the child of a text node: ".concat(Fg.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(Fg.stringify(e)));return n},children:function(e,t){var n=arguments;return $v().mark((function r(){var o,a,i,l,s,c,u;return $v().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:o=(n.length>2&&void 0!==n[2]?n[2]:{}).reverse,a=void 0!==o&&o,i=Sg.ancestor(e,t),l=i.children,s=a?l.length-1:0;case 5:if(!(a?s>=0:s<l.length)){r.next=13;break}return c=Sg.child(i,s),u=t.concat(s),r.next=10,[c,u];case 10:s=a?s-1:s+1,r.next=5;break;case 13:case"end":return r.stop()}}),r)}))()},common:function(e,t,n){var r=fg.common(t,n);return[Sg.get(e,r),r]},descendant:function(e,t){var n=Sg.get(e,t);if(Pg.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(Fg.stringify(n)));return n},descendants:function(e){var t=arguments;return $v().mark((function n(){var r,o,a,i,l,s,c;return $v().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=t.length>1&&void 0!==t[1]?t[1]:{},o=Jv(Sg.nodes(e,r)),n.prev=2,o.s();case 4:if((a=o.n()).done){n.next=14;break}if(i=a.value,l=Xv(i,2),s=l[0],0===(c=l[1]).length){n.next=12;break}return n.next=12,[s,c];case 12:n.next=4;break;case 14:n.next=19;break;case 16:n.prev=16,n.t0=n.catch(2),o.e(n.t0);case 19:return n.prev=19,o.f(),n.finish(19);case 22:case"end":return n.stop()}}),n,null,[[2,16,19,22]])}))()},elements:function(e){var t=arguments;return $v().mark((function n(){var r,o,a,i,l,s,c;return $v().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=t.length>1&&void 0!==t[1]?t[1]:{},o=Jv(Sg.nodes(e,r)),n.prev=2,o.s();case 4:if((a=o.n()).done){n.next=14;break}if(i=a.value,l=Xv(i,2),s=l[0],c=l[1],!_g.isElement(s)){n.next=12;break}return n.next=12,[s,c];case 12:n.next=4;break;case 14:n.next=19;break;case 16:n.prev=16,n.t0=n.catch(2),o.e(n.t0);case 19:return n.prev=19,o.f(),n.finish(19);case 22:case"end":return n.stop()}}),n,null,[[2,16,19,22]])}))()},extractProps:function(e){return _g.isAncestor(e)?bg(e,kg):bg(e,Og)},first:function(e,t){for(var n=t.slice(),r=Sg.get(e,n);r&&!Ug.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment:function(e,t){if(Ug.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(Fg.stringify(e)));return Iv({children:e.children},(function(e){var n,r=Xv(wg.edges(t),2),o=r[0],a=r[1],i=Sg.nodes(e,{reverse:!0,pass:function(e){var n=Xv(e,2)[1];return!wg.includes(t,n)}}),l=Jv(i);try{for(l.s();!(n=l.n()).done;){var s=Xv(n.value,2)[1];if(!wg.includes(t,s)){var c=Sg.parent(e,s),u=s[s.length-1];c.children.splice(u,1)}if(fg.equals(s,a.path)){var f=Sg.leaf(e,s);f.text=f.text.slice(0,a.offset)}if(fg.equals(s,o.path)){var p=Sg.leaf(e,s);p.text=p.text.slice(o.offset)}}}catch(e){l.e(e)}finally{l.f()}Pg.isEditor(e)&&(e.selection=null)})).children},get:function(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Ug.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(Fg.stringify(e)));n=n.children[o]}return n},has:function(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Ug.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:function(e){return Ug.isText(e)||_g.isElement(e)||Pg.isEditor(e)},isNodeList:function(e){if(!Array.isArray(e))return!1;var t=xg.get(e);if(void 0!==t)return t;var n=e.every((function(e){return Sg.isNode(e)}));return xg.set(e,n),n},last:function(e,t){for(var n=t.slice(),r=Sg.get(e,n);r&&!Ug.isText(r)&&0!==r.children.length;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf:function(e,t){var n=Sg.get(e,t);if(!Ug.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(Fg.stringify(n)));return n},levels:function(e,t){var n=arguments;return $v().mark((function r(){var o,a,i,l,s;return $v().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:o=n.length>2&&void 0!==n[2]?n[2]:{},a=Jv(fg.levels(t,o)),r.prev=2,a.s();case 4:if((i=a.n()).done){r.next=11;break}return l=i.value,s=Sg.get(e,l),r.next=9,[s,l];case 9:r.next=4;break;case 11:r.next=16;break;case 13:r.prev=13,r.t0=r.catch(2),a.e(r.t0);case 16:return r.prev=16,a.f(),r.finish(16);case 19:case"end":return r.stop()}}),r,null,[[2,13,16,19]])}))()},matches:function(e,t){return _g.isElement(e)&&_g.isElementProps(t)&&_g.matches(e,t)||Ug.isText(e)&&Ug.isTextProps(t)&&Ug.matches(e,t)},nodes:function(e){var t=arguments;return $v().mark((function n(){var r,o,a,i,l,s,c,u,f,p,d,m,h;return $v().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:o=(r=t.length>1&&void 0!==t[1]?t[1]:{}).pass,a=r.reverse,i=void 0!==a&&a,l=r.from,s=void 0===l?[]:l,c=r.to,u=new Set,f=[],p=e;case 6:if(!c||!(i?fg.isBefore(f,c):fg.isAfter(f,c))){n.next=9;break}return n.abrupt("break",37);case 9:if(u.has(p)){n.next=12;break}return n.next=12,[p,f];case 12:if(u.has(p)||Ug.isText(p)||0===p.children.length||null!=o&&!1!==o([p,f])){n.next=19;break}return u.add(p),d=i?p.children.length-1:0,fg.isAncestor(f,s)&&(d=s[f.length]),f=f.concat(d),p=Sg.get(e,f),n.abrupt("continue",6);case 19:if(0!==f.length){n.next=21;break}return n.abrupt("break",37);case 21:if(i){n.next=27;break}if(m=fg.next(f),!Sg.has(e,m)){n.next=27;break}return f=m,p=Sg.get(e,f),n.abrupt("continue",6);case 27:if(!i||0===f[f.length-1]){n.next=32;break}return h=fg.previous(f),f=h,p=Sg.get(e,f),n.abrupt("continue",6);case 32:f=fg.parent(f),p=Sg.get(e,f),u.add(p),n.next=6;break;case 37:case"end":return n.stop()}}),n)}))()},parent:function(e,t){var n=fg.parent(t),r=Sg.get(e,n);if(Ug.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:function(e){return Ug.isText(e)?e.text:e.children.map(Sg.string).join("")},texts:function(e){var t=arguments;return $v().mark((function n(){var r,o,a,i,l,s,c;return $v().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=t.length>1&&void 0!==t[1]?t[1]:{},o=Jv(Sg.nodes(e,r)),n.prev=2,o.s();case 4:if((a=o.n()).done){n.next=14;break}if(i=a.value,l=Xv(i,2),s=l[0],c=l[1],!Ug.isText(s)){n.next=12;break}return n.next=12,[s,c];case 12:n.next=4;break;case 14:n.next=19;break;case 16:n.prev=16,n.t0=n.catch(2),o.e(n.t0);case 19:return n.prev=19,o.f(),n.finish(19);case 22:case"end":return n.stop()}}),n,null,[[2,16,19,22]])}))()}};function jg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jg(Object(n),!0).forEach((function(t){pg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Dg={isNodeOperation:function(e){return Dg.isOperation(e)&&e.type.endsWith("_node")},isOperation:function(e){if(!Hb(e))return!1;switch(e.type){case"insert_node":case"remove_node":return fg.isPath(e.path)&&Sg.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&fg.isPath(e.path);case"merge_node":return"number"==typeof e.position&&fg.isPath(e.path)&&Hb(e.properties);case"move_node":return fg.isPath(e.path)&&fg.isPath(e.newPath);case"set_node":return fg.isPath(e.path)&&Hb(e.properties)&&Hb(e.newProperties);case"set_selection":return null===e.properties&&wg.isRange(e.newProperties)||null===e.newProperties&&wg.isRange(e.properties)||Hb(e.properties)&&Hb(e.newProperties);case"split_node":return fg.isPath(e.path)&&"number"==typeof e.position&&Hb(e.properties);default:return!1}},isOperationList:function(e){return Array.isArray(e)&&e.every((function(e){return Dg.isOperation(e)}))},isSelectionOperation:function(e){return Dg.isOperation(e)&&e.type.endsWith("_selection")},isTextOperation:function(e){return Dg.isOperation(e)&&e.type.endsWith("_text")},inverse:function(e){switch(e.type){case"insert_node":return Cg(Cg({},e),{},{type:"remove_node"});case"insert_text":return Cg(Cg({},e),{},{type:"remove_text"});case"merge_node":return Cg(Cg({},e),{},{type:"split_node",path:fg.previous(e.path)});case"move_node":var t=e.newPath,n=e.path;if(fg.equals(t,n))return e;if(fg.isSibling(n,t))return Cg(Cg({},e),{},{path:t,newPath:n});var r=fg.transform(n,e),o=fg.transform(fg.next(n),e);return Cg(Cg({},e),{},{path:r,newPath:o});case"remove_node":return Cg(Cg({},e),{},{type:"insert_node"});case"remove_text":return Cg(Cg({},e),{},{type:"insert_text"});case"set_node":var a=e.properties,i=e.newProperties;return Cg(Cg({},e),{},{properties:i,newProperties:a});case"set_selection":var l=e.properties,s=e.newProperties;return Cg(Cg({},e),{},null==l?{properties:s,newProperties:null}:null==s?{properties:null,newProperties:l}:{properties:s,newProperties:l});case"split_node":return Cg(Cg({},e),{},{type:"merge_node",path:fg.next(e.path)})}}},Ng=new WeakMap,Pg={above:function(e,t){return e.above(t)},addMark:function(e,t,n){e.addMark(t,n)},after:function(e,t,n){return e.after(t,n)},before:function(e,t,n){return e.before(t,n)},deleteBackward:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).unit,n=void 0===t?"character":t;e.deleteBackward(n)},deleteForward:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).unit,n=void 0===t?"character":t;e.deleteForward(n)},deleteFragment:function(e,t){e.deleteFragment(t)},edges:function(e,t){return e.edges(t)},elementReadOnly:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.elementReadOnly(t)},end:function(e,t){return e.end(t)},first:function(e,t){return e.first(t)},fragment:function(e,t){return e.fragment(t)},hasBlocks:function(e,t){return e.hasBlocks(t)},hasInlines:function(e,t){return e.hasInlines(t)},hasPath:function(e,t){return e.hasPath(t)},hasTexts:function(e,t){return e.hasTexts(t)},insertBreak:function(e){e.insertBreak()},insertFragment:function(e,t,n){e.insertFragment(t,n)},insertNode:function(e,t){e.insertNode(t)},insertSoftBreak:function(e){e.insertSoftBreak()},insertText:function(e,t){e.insertText(t)},isBlock:function(e,t){return e.isBlock(t)},isEdge:function(e,t,n){return e.isEdge(t,n)},isEditor:function(e){return function(e){var t=Ng.get(e);if(void 0!==t)return t;if(!Hb(e))return!1;var n="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertSoftBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isElementReadOnly&&"function"==typeof e.isInline&&"function"==typeof e.isSelectable&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&"function"==typeof e.getDirtyPaths&&(null===e.marks||Hb(e.marks))&&(null===e.selection||wg.isRange(e.selection))&&Sg.isNodeList(e.children)&&Dg.isOperationList(e.operations);return Ng.set(e,n),n}(e)},isElementReadOnly:function(e,t){return e.isElementReadOnly(t)},isEmpty:function(e,t){return e.isEmpty(t)},isEnd:function(e,t,n){return e.isEnd(t,n)},isInline:function(e,t){return e.isInline(t)},isNormalizing:function(e){return e.isNormalizing()},isSelectable:function(e,t){return e.isSelectable(t)},isStart:function(e,t,n){return e.isStart(t,n)},isVoid:function(e,t){return e.isVoid(t)},last:function(e,t){return e.last(t)},leaf:function(e,t,n){return e.leaf(t,n)},levels:function(e,t){return e.levels(t)},marks:function(e){return e.getMarks()},next:function(e,t){return e.next(t)},node:function(e,t,n){return e.node(t,n)},nodes:function(e,t){return e.nodes(t)},normalize:function(e,t){e.normalize(t)},parent:function(e,t,n){return e.parent(t,n)},path:function(e,t,n){return e.path(t,n)},pathRef:function(e,t,n){return e.pathRef(t,n)},pathRefs:function(e){return e.pathRefs()},point:function(e,t,n){return e.point(t,n)},pointRef:function(e,t,n){return e.pointRef(t,n)},pointRefs:function(e){return e.pointRefs()},positions:function(e,t){return e.positions(t)},previous:function(e,t){return e.previous(t)},range:function(e,t,n){return e.range(t,n)},rangeRef:function(e,t,n){return e.rangeRef(t,n)},rangeRefs:function(e){return e.rangeRefs()},removeMark:function(e,t){e.removeMark(t)},setNormalizing:function(e,t){e.setNormalizing(t)},start:function(e,t){return e.start(t)},string:function(e,t,n){return e.string(t,n)},unhangRange:function(e,t,n){return e.unhangRange(t,n)},void:function(e,t){return e.void(t)},withoutNormalizing:function(e,t){e.withoutNormalizing(t)}},Tg={isSpan:function(e){return Array.isArray(e)&&2===e.length&&e.every(fg.isPath)}};function Mg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ag(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mg(Object(n),!0).forEach((function(t){pg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Lg={compare:function(e,t){var n=fg.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:function(e,t){return 1===Lg.compare(e,t)},isBefore:function(e,t){return-1===Lg.compare(e,t)},equals:function(e,t){return e.offset===t.offset&&fg.equals(e.path,t.path)},isPoint:function(e){return Hb(e)&&"number"==typeof e.offset&&fg.isPath(e.path)},transform:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Iv(e,(function(e){if(null===e)return null;var r=n.affinity,o=void 0===r?"forward":r,a=e.path,i=e.offset;switch(t.type){case"insert_node":case"move_node":e.path=fg.transform(a,t,n);break;case"insert_text":fg.equals(t.path,a)&&(t.offset<i||t.offset===i&&"forward"===o)&&(e.offset+=t.text.length);break;case"merge_node":fg.equals(t.path,a)&&(e.offset+=t.position),e.path=fg.transform(a,t,n);break;case"remove_text":fg.equals(t.path,a)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(fg.equals(t.path,a)||fg.isAncestor(t.path,a))return null;e.path=fg.transform(a,t,n);break;case"split_node":if(fg.equals(t.path,a)){if(t.position===i&&null==o)return null;(t.position<i||t.position===i&&"forward"===o)&&(e.offset-=t.position,e.path=fg.transform(a,t,Ag(Ag({},n),{},{affinity:"forward"})))}else e.path=fg.transform(a,t,n)}}))}},Rg=void 0,Fg={setScrubber:function(e){Rg=e},stringify:function(e){return JSON.stringify(e,Rg)}},zg=["text"],Bg=["anchor","focus"];function Yg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ig(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yg(Object(n),!0).forEach((function(t){pg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Hg,Ug={equals:function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).loose,r=void 0!==n&&n;function o(e){return bg(e,zg)}return yg(r?o(e):e,r?o(t):t)},isText:function(e){return Hb(e)&&"string"==typeof e.text},isTextList:function(e){return Array.isArray(e)&&e.every((function(e){return Ug.isText(e)}))},isTextProps:function(e){return void 0!==e.text},matches:function(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations:function(e,t){var n,r=[Ig({},e)],o=Jv(t);try{for(o.s();!(n=o.n()).done;){var a,i=n.value,l=bg(i,Bg),s=Xv(wg.edges(i),2),c=s[0],u=s[1],f=[],p=0,d=c.offset,m=u.offset,h=Jv(r);try{for(h.s();!(a=h.n()).done;){var y=a.value,b=y.text.length,v=p;if(p+=b,d<=v&&p<=m)Object.assign(y,l),f.push(y);else if(d!==m&&(d===p||m===v)||d>p||m<v||m===v&&0!==v)f.push(y);else{var g=y,w=void 0,E=void 0;if(m<p){var _=m-v;E=Ig(Ig({},g),{},{text:g.text.slice(_)}),g=Ig(Ig({},g),{},{text:g.text.slice(0,_)})}if(d>v){var k=d-v;w=Ig(Ig({},g),{},{text:g.text.slice(0,k)}),g=Ig(Ig({},g),{},{text:g.text.slice(k)})}Object.assign(g,l),w&&f.push(w),f.push(g),E&&f.push(E)}}}catch(e){h.e(e)}finally{h.f()}r=f}}catch(e){o.e(e)}finally{o.f()}return r}},Wg=function(e){return e.selection?e.selection:e.children.length>0?Pg.end(e,[]):[0]},Vg=function(e,t){var n=Xv(Pg.node(e,t),1)[0];return function(e){return e===n}},qg=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!n,o=n?Zg(e):e,a=Hg.None,i=Hg.None,l=0,s=null,c=Jv(o);try{for(c.s();!(t=c.n()).done;){var u=t.value,f=u.codePointAt(0);if(!f)break;var p=fw(u,f),d=Xv(r?[i,p]:[p,a],2);if(a=d[0],i=d[1],pw(a,Hg.ZWJ)&&pw(i,Hg.ExtPict)&&!yw(r?e.substring(0,l):e.substring(0,e.length-l)))break;if(pw(a,Hg.RI)&&pw(i,Hg.RI)&&!(s=null!==s?!s:!!r||vw(e.substring(0,e.length-l))))break;if(a!==Hg.None&&i!==Hg.None&&mw(a,i))break;l+=u.length}}catch(e){c.e(e)}finally{c.f()}return l||1},Gg=/\s/,Kg=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,$g=/['\u2018\u2019]/,Jg=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,r=!1;e.length>0;){var o=qg(e,t),a=Xv(Xg(e,o,t),2),i=a[0],l=a[1];if(Qg(i,l,t))r=!0,n+=o;else{if(r)break;n+=o}e=l}return n},Xg=function(e,t,n){if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},Qg=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(Gg.test(t))return!1;if($g.test(t)){var o=qg(n,r),a=Xv(Xg(n,o,r),2);if(e(a[0],a[1],r))return!0}return!Kg.test(t)},Zg=$v().mark((function e(t){var n,r,o,a;return $v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.length-1,r=0;case 2:if(!(r<t.length)){e.next=16;break}if(o=t.charAt(n-r),!tw(o.charCodeAt(0))){e.next=11;break}if(a=t.charAt(n-r-1),!ew(a.charCodeAt(0))){e.next=11;break}return e.next=9,a+o;case 9:return r++,e.abrupt("continue",13);case 11:return e.next=13,o;case 13:r++,e.next=2;break;case 16:case"end":return e.stop()}}),e)})),ew=function(e){return e>=55296&&e<=56319},tw=function(e){return e>=56320&&e<=57343};!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(Hg||(Hg={}));var nw=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,rw=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,ow=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,aw=/^[\u1100-\u115F\uA960-\uA97C]$/,iw=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,lw=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,sw=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,cw=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,uw=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,fw=function(e,t){var n=Hg.Any;return-1!==e.search(nw)&&(n|=Hg.Extend),8205===t&&(n|=Hg.ZWJ),t>=127462&&t<=127487&&(n|=Hg.RI),-1!==e.search(rw)&&(n|=Hg.Prepend),-1!==e.search(ow)&&(n|=Hg.SpacingMark),-1!==e.search(aw)&&(n|=Hg.L),-1!==e.search(iw)&&(n|=Hg.V),-1!==e.search(lw)&&(n|=Hg.T),-1!==e.search(sw)&&(n|=Hg.LV),-1!==e.search(cw)&&(n|=Hg.LVT),-1!==e.search(uw)&&(n|=Hg.ExtPict),n};function pw(e,t){return 0!=(e&t)}var dw=[[Hg.L,Hg.L|Hg.V|Hg.LV|Hg.LVT],[Hg.LV|Hg.V,Hg.V|Hg.T],[Hg.LVT|Hg.T,Hg.T],[Hg.Any,Hg.Extend|Hg.ZWJ],[Hg.Any,Hg.SpacingMark],[Hg.Prepend,Hg.Any],[Hg.ZWJ,Hg.ExtPict],[Hg.RI,Hg.RI]];function mw(e,t){return-1===dw.findIndex((function(n){return pw(e,n[0])&&pw(t,n[1])}))}var hw=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,yw=function(e){return-1!==e.search(hw)},bw=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,vw=function(e){var t=e.match(bw);return null!==t&&t[0].length/2%2==1},gw={delete:function(e,t){e.delete(t)},insertFragment:function(e,t,n){e.insertFragment(t,n)},insertText:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Pg.withoutNormalizing(e,(function(){var r=n.voids,o=void 0!==r&&r,a=n.at,i=void 0===a?Wg(e):a;if(fg.isPath(i)&&(i=Pg.range(e,i)),wg.isRange(i))if(wg.isCollapsed(i))i=i.anchor;else{var l=wg.end(i);if(!o&&Pg.void(e,{at:l}))return;var s=wg.start(i),c=Pg.pointRef(e,s),u=Pg.pointRef(e,l);_w.delete(e,{at:i,voids:o});var f=c.unref(),p=u.unref();i=f||p,_w.setSelection(e,{anchor:i,focus:i})}if(!(!o&&Pg.void(e,{at:i})||Pg.elementReadOnly(e,{at:i}))){var d=i,m=d.path,h=d.offset;t.length>0&&e.apply({type:"insert_text",path:m,offset:h,text:t})}}))}};function ww(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ew(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ww(Object(n),!0).forEach((function(t){pg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ww(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _w=Ew(Ew(Ew(Ew({},hg),{insertNodes:function(e,t,n){e.insertNodes(t,n)},liftNodes:function(e,t){e.liftNodes(t)},mergeNodes:function(e,t){e.mergeNodes(t)},moveNodes:function(e,t){e.moveNodes(t)},removeNodes:function(e,t){e.removeNodes(t)},setNodes:function(e,t,n){e.setNodes(t,n)},splitNodes:function(e,t){e.splitNodes(t)},unsetNodes:function(e,t,n){e.unsetNodes(t,n)},unwrapNodes:function(e,t){e.unwrapNodes(t)},wrapNodes:function(e,t,n){e.wrapNodes(t,n)}}),{collapse:function(e,t){e.collapse(t)},deselect:function(e){e.deselect()},move:function(e,t){e.move(t)},select:function(e,t){e.select(t)},setPoint:function(e,t,n){e.setPoint(t,n)},setSelection:function(e,t){e.setSelection(t)}}),gw),kw=function(e,t){var n,r=Jv(Pg.pathRefs(e));try{for(r.s();!(n=r.n()).done;){var o=n.value;tg(o,t)}}catch(e){r.e(e)}finally{r.f()}var a,i=Jv(Pg.pointRefs(e));try{for(i.s();!(a=i.n()).done;){var l=a.value;ng(l,t)}}catch(e){i.e(e)}finally{i.f()}var s,c=Jv(Pg.rangeRefs(e));try{for(c.s();!(s=c.n()).done;){var u=s.value;rg(u,t)}}catch(e){c.e(e)}finally{c.f()}var f,p,d=og.get(e)||[],m=ag.get(e)||new Set,h=function(e){if(e){var t=e.join(",");p.has(t)||(p.add(t),f.push(e))}};if(fg.operationCanTransformPath(t)){f=[],p=new Set;var y,b=Jv(d);try{for(b.s();!(y=b.n()).done;){var v=y.value;h(fg.transform(v,t))}}catch(e){b.e(e)}finally{b.f()}}else f=d,p=m;var g,w=Jv(e.getDirtyPaths(t));try{for(w.s();!(g=w.n()).done;){h(g.value)}}catch(e){w.e(e)}finally{w.f()}og.set(e,f),ag.set(e,p),_w.transform(e,t),e.operations.push(t),Pg.normalize(e,{operation:t}),"set_selection"===t.type&&(e.marks=null),ig.get(e)||(ig.set(e,!0),Promise.resolve().then((function(){ig.set(e,!1),e.onChange({operation:t}),e.operations=[]})))},Ow=function(e,t){switch(t.type){case"insert_text":case"remove_text":case"set_node":var n=t.path;return fg.levels(n);case"insert_node":var r=t.node,o=t.path,a=fg.levels(o),i=Ug.isText(r)?[]:Array.from(Sg.nodes(r),(function(e){var t=Xv(e,2)[1];return o.concat(t)}));return[].concat(Qv(a),Qv(i));case"merge_node":var l=t.path,s=fg.ancestors(l),c=fg.previous(l);return[].concat(Qv(s),[c]);case"move_node":var u=t.path,f=t.newPath;if(fg.equals(u,f))return[];var p,d=[],m=[],h=Jv(fg.ancestors(u));try{for(h.s();!(p=h.n()).done;){var y=p.value,b=fg.transform(y,t);d.push(b)}}catch(e){h.e(e)}finally{h.f()}var v,g=Jv(fg.ancestors(f));try{for(g.s();!(v=g.n()).done;){var w=v.value,E=fg.transform(w,t);m.push(E)}}catch(e){g.e(e)}finally{g.f()}var _=m[m.length-1],k=f[f.length-1],O=_.concat(k);return[].concat(d,m,[O]);case"remove_node":var x=t.path;return Qv(fg.ancestors(x));case"split_node":var S=t.path,j=fg.levels(S),C=fg.next(S);return[].concat(Qv(j),[C]);default:return[]}},xw=function(e){var t=e.selection;return t?Sg.fragment(e,t):[]},Sw=function(e,t){var n=Xv(t,2),r=n[0],o=n[1];if(!Ug.isText(r))if(_g.isElement(r)&&0===r.children.length){_w.insertNodes(e,{text:""},{at:o.concat(0),voids:!0})}else for(var a=!Pg.isEditor(r)&&(_g.isElement(r)&&(e.isInline(r)||0===r.children.length||Ug.isText(r.children[0])||e.isInline(r.children[0]))),i=0,l=0;l<r.children.length;l++,i++){var s=Sg.get(e,o);if(!Ug.isText(s)){var c=s.children[i],u=s.children[i-1],f=l===r.children.length-1;if((Ug.isText(c)||_g.isElement(c)&&e.isInline(c))!==a)_w.removeNodes(e,{at:o.concat(i),voids:!0}),i--;else if(_g.isElement(c)){if(e.isInline(c))if(null!=u&&Ug.isText(u)){if(f){_w.insertNodes(e,{text:""},{at:o.concat(i+1),voids:!0}),i++}}else{_w.insertNodes(e,{text:""},{at:o.concat(i),voids:!0}),i++}}else null!=u&&Ug.isText(u)&&(Ug.equals(c,u,{loose:!0})?(_w.mergeNodes(e,{at:o.concat(i),voids:!0}),i--):""===u.text?(_w.removeNodes(e,{at:o.concat(i-1),voids:!0}),i--):""===c.text&&(_w.removeNodes(e,{at:o.concat(i),voids:!0}),i--))}}},jw=function(e,t){var n=t.iteration,r=42*t.initialDirtyPathsLength;if(n>r)throw new Error("Could not completely normalize the editor after ".concat(r," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state."));return!0},Cw=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.voids,r=void 0!==n&&n,o=t.mode,a=void 0===o?"lowest":o,i=t.at,l=void 0===i?e.selection:i,s=t.match;if(l){var c,u=Pg.path(e,l),f="lowest"===a,p=Jv(Pg.levels(e,{at:u,voids:r,match:s,reverse:f}));try{for(p.s();!(c=p.n()).done;){var d=Xv(c.value,2),m=d[0],h=d[1];if(!Ug.isText(m))if(wg.isRange(l)){if(fg.isAncestor(h,l.anchor.path)&&fg.isAncestor(h,l.focus.path))return[m,h]}else if(!fg.equals(u,h))return[m,h]}}catch(e){p.e(e)}finally{p.f()}}};function Dw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dw(Object(n),!0).forEach((function(t){pg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pw=function(e,t,n){var r=e.selection;if(r){var o=function(t,n){if(!Ug.isText(t))return!1;var r=Xv(Pg.parent(e,n),2),o=r[0];r[1];return!e.isVoid(o)||e.markableVoid(o)},a=wg.isExpanded(r),i=!1;if(!a){var l=Xv(Pg.node(e,r),2),s=l[0],c=l[1];if(s&&o(s,c)){var u=Xv(Pg.parent(e,c),1)[0];i=u&&e.markableVoid(u)}}if(a||i)_w.setNodes(e,Kv({},t,n),{match:o,split:!0,voids:!0});else{var f=Nw(Nw({},Pg.marks(e)||{}),{},Kv({},t,n));e.marks=f,ig.get(e)||e.onChange()}}};function Tw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tw(Object(n),!0).forEach((function(t){pg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Aw=function(e,t){var n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a={anchor:Pg.point(e,t,{edge:"end"}),focus:Pg.end(e,[])},i=o.distance,l=void 0===i?1:i,s=0,c=Jv(Pg.positions(e,Mw(Mw({},o),{},{at:a})));try{for(c.s();!(r=c.n()).done;){var u=r.value;if(s>l)break;0!==s&&(n=u),s++}}catch(e){c.e(e)}finally{c.f()}return n};function Lw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lw(Object(n),!0).forEach((function(t){pg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fw=function(e,t){var n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a={anchor:Pg.start(e,[]),focus:Pg.point(e,t,{edge:"start"})},i=o.distance,l=void 0===i?1:i,s=0,c=Jv(Pg.positions(e,Rw(Rw({},o),{},{at:a,reverse:!0})));try{for(c.s();!(r=c.n()).done;){var u=r.value;if(s>l)break;0!==s&&(n=u),s++}}catch(e){c.e(e)}finally{c.f()}return n},zw=function(e,t){var n=e.selection;n&&wg.isCollapsed(n)&&_w.delete(e,{unit:t,reverse:!0})},Bw=function(e,t){var n=e.selection;n&&wg.isCollapsed(n)&&_w.delete(e,{unit:t})},Yw=function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).direction,n=void 0===t?"forward":t,r=e.selection;r&&wg.isExpanded(r)&&_w.delete(e,{reverse:"backward"===n})},Iw=function(e,t){return[Pg.start(e,t),Pg.end(e,t)]};function Hw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Uw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hw(Object(n),!0).forEach((function(t){pg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ww=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Pg.above(e,Uw(Uw({},t),{},{match:function(t){return _g.isElement(t)&&Pg.isElementReadOnly(e,t)}}))},Vw=function(e,t){return Pg.point(e,t,{edge:"end"})},qw=function(e,t){var n=Pg.path(e,t,{edge:"start"});return Pg.node(e,n)},Gw=function(e,t){var n=Pg.range(e,t);return Sg.fragment(e,n)};function Kw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kw(Object(n),!0).forEach((function(t){pg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Jw=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Pg.above(e,$w($w({},t),{},{match:function(t){return _g.isElement(t)&&Pg.isVoid(e,t)}}))},Xw=function(e,t){return t.children.some((function(t){return _g.isElement(t)&&Pg.isBlock(e,t)}))},Qw=function(e,t){return t.children.some((function(t){return Ug.isText(t)||Pg.isInline(e,t)}))},Zw=function(e,t){return Sg.has(e,t)},eE=function(e,t){return t.children.every((function(e){return Ug.isText(e)}))},tE=function(e){_w.splitNodes(e,{always:!0})},nE=function(e,t,n){_w.insertNodes(e,t,n)},rE=function(e){_w.splitNodes(e,{always:!0})};function oE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var aE=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.selection,o=e.marks;if(r){if(o){var a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oE(Object(n),!0).forEach((function(t){pg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({text:t},o);_w.insertNodes(e,a,{at:n.at,voids:n.voids})}else _w.insertText(e,t,n);e.marks=null}},iE=function(e,t){return!e.isInline(t)},lE=function(e,t,n){return Pg.isStart(e,t,n)||Pg.isEnd(e,t,n)},sE=function(e,t){var n=t.children,r=Xv(n,1)[0];return 0===n.length||1===n.length&&Ug.isText(r)&&""===r.text&&!e.isVoid(t)},cE=function(e,t,n){var r=Pg.end(e,n);return Lg.equals(t,r)},uE=function(e){var t=lg.get(e);return void 0===t||t},fE=function(e,t,n){if(0!==t.offset)return!1;var r=Pg.start(e,n);return Lg.equals(t,r)},pE=function(e,t){var n=Pg.path(e,t,{edge:"end"});return Pg.node(e,n)},dE=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Pg.path(e,t,n);return[Sg.leaf(e,r),r]};function mE(e){var t,n,r,o,a,i,l,s,c,u,f,p,d,m,h,y,b=arguments;return $v().wrap((function(v){for(;;)switch(v.prev=v.next){case 0:if(n=(t=b.length>1&&void 0!==b[1]?b[1]:{}).at,r=void 0===n?e.selection:n,o=t.reverse,a=void 0!==o&&o,i=t.voids,l=void 0!==i&&i,null==(s=t.match)&&(s=function(){return!0}),r){v.next=6;break}return v.abrupt("return");case 6:c=[],u=Pg.path(e,r),f=Jv(Sg.levels(e,u)),v.prev=9,f.s();case 11:if((p=f.n()).done){v.next=23;break}if(d=p.value,m=Xv(d,2),h=m[0],y=m[1],s(h,y)){v.next=18;break}return v.abrupt("continue",21);case 18:if(c.push([h,y]),l||!_g.isElement(h)||!Pg.isVoid(e,h)){v.next=21;break}return v.abrupt("break",23);case 21:v.next=11;break;case 23:v.next=28;break;case 25:v.prev=25,v.t0=v.catch(9),f.e(v.t0);case 28:return v.prev=28,f.f(),v.finish(28);case 31:return a&&c.reverse(),v.delegateYield(c,"t1",33);case 33:case"end":return v.stop()}}),Vv,null,[[9,25,28,31]])}var hE=["text"],yE=["text"],bE=function(e){var t=e.marks,n=e.selection;if(!n)return null;if(t)return t;if(wg.isExpanded(n)){var r=Xv(Pg.nodes(e,{match:Ug.isText}),1)[0];return r?bg(Xv(r,1)[0],hE):{}}var o=n.anchor,a=o.path,i=Xv(Pg.leaf(e,a),1)[0];if(0===o.offset){var l=Pg.previous(e,{at:a,match:Ug.isText});if(!Pg.above(e,{match:function(t){return _g.isElement(t)&&Pg.isVoid(e,t)&&e.markableVoid(t)}})){var s=Pg.above(e,{match:function(t){return _g.isElement(t)&&Pg.isBlock(e,t)}});if(l&&s){var c=Xv(l,2),u=c[0],f=c[1],p=Xv(s,2)[1];fg.isAncestor(p,f)&&(i=u)}}}return bg(i,yE)},vE=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.mode,r=void 0===n?"lowest":n,o=t.voids,a=void 0!==o&&o,i=t.match,l=t.at,s=void 0===l?e.selection:l;if(s){var c=Pg.after(e,s,{voids:a});if(c){var u=Xv(Pg.last(e,[]),2)[1],f=[c.path,u];if(fg.isPath(s)&&0===s.length)throw new Error("Cannot get the next node from the root node!");if(null==i)if(fg.isPath(s)){var p=Xv(Pg.parent(e,s),1)[0];i=function(e){return p.children.includes(e)}}else i=function(){return!0};var d=Xv(Pg.nodes(e,{at:f,match:i,mode:r,voids:a}),1)[0];return d}}},gE=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Pg.path(e,t,n),o=Sg.get(e,r);return[o,r]};function wE(e){var t,n,r,o,a,i,l,s,c,u,f,p,d,m,h,y,b,v,g,w,E,_,k,O,x,S,j,C,D,N=arguments;return $v().wrap((function(P){for(;;)switch(P.prev=P.next){case 0:if(n=(t=N.length>1&&void 0!==N[1]?N[1]:{}).at,r=void 0===n?e.selection:n,o=t.mode,a=void 0===o?"all":o,i=t.universal,l=void 0!==i&&i,s=t.reverse,c=void 0!==s&&s,u=t.voids,f=void 0!==u&&u,p=t.ignoreNonSelectable,d=void 0!==p&&p,(m=t.match)||(m=function(){return!0}),r){P.next=6;break}return P.abrupt("return");case 6:Tg.isSpan(r)?(h=r[0],y=r[1]):(b=Pg.path(e,r,{edge:"start"}),v=Pg.path(e,r,{edge:"end"}),h=c?v:b,y=c?b:v),g=Sg.nodes(e,{reverse:c,from:h,to:y,pass:function(t){var n=Xv(t,1)[0];return!!_g.isElement(n)&&(!(f||!Pg.isVoid(e,n)&&!Pg.isElementReadOnly(e,n))||!(!d||Pg.isSelectable(e,n)))}}),w=[],_=Jv(g),P.prev=10,_.s();case 12:if((k=_.n()).done){P.next=42;break}if(O=k.value,x=Xv(O,2),S=x[0],j=x[1],!d||!_g.isElement(S)||Pg.isSelectable(e,S)){P.next=19;break}return P.abrupt("continue",40);case 19:if(C=E&&0===fg.compare(j,E[1]),"highest"!==a||!C){P.next=22;break}return P.abrupt("continue",40);case 22:if(m(S,j)){P.next=28;break}if(!l||C||!Ug.isText(S)){P.next=27;break}return P.abrupt("return");case 27:return P.abrupt("continue",40);case 28:if("lowest"!==a||!C){P.next=31;break}return E=[S,j],P.abrupt("continue",40);case 31:if(!(D="lowest"===a?E:[S,j])){P.next=39;break}if(!l){P.next=37;break}w.push(D),P.next=39;break;case 37:return P.next=39,D;case 39:E=[S,j];case 40:P.next=12;break;case 42:P.next=47;break;case 44:P.prev=44,P.t0=P.catch(10),_.e(P.t0);case 47:return P.prev=47,_.f(),P.finish(47);case 50:if("lowest"!==a||!E){P.next=57;break}if(!l){P.next=55;break}w.push(E),P.next=57;break;case 55:return P.next=57,E;case 57:if(!l){P.next=59;break}return P.delegateYield(w,"t1",59);case 59:case"end":return P.stop()}}),qv,null,[[10,44,47,50]])}var EE=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.force,r=void 0!==n&&n,o=t.operation,a=function(e){return og.get(e)||[]},i=function(e){var t=a(e).pop(),n=t.join(",");return function(e){return ag.get(e)||new Set}(e).delete(n),t};if(Pg.isNormalizing(e)){if(r){var l=Array.from(Sg.nodes(e),(function(e){return Xv(e,2)[1]})),s=new Set(l.map((function(e){return e.join(",")})));og.set(e,l),ag.set(e,s)}0!==a(e).length&&Pg.withoutNormalizing(e,(function(){var t,n=Jv(a(e));try{for(n.s();!(t=n.n()).done;){var r=t.value;if(Sg.has(e,r)){var l=Pg.node(e,r),s=Xv(l,2),c=s[0];s[1];_g.isElement(c)&&0===c.children.length&&e.normalizeNode(l,{operation:o})}}}catch(e){n.e(e)}finally{n.f()}for(var u=a(e),f=u.length,p=0;0!==u.length;){if(!e.shouldNormalize({dirtyPaths:u,iteration:p,initialDirtyPathsLength:f,operation:o}))return;var d=i(e);if(Sg.has(e,d)){var m=Pg.node(e,d);e.normalizeNode(m,{operation:o})}p++,u=a(e)}}))}},_E=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Pg.path(e,t,n),o=fg.parent(r);return Pg.node(e,o)},kE=function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).affinity,r={current:t,affinity:void 0===n?"forward":n,unref:function(){var t=r.current;return Pg.pathRefs(e).delete(r),r.current=null,t}};return Pg.pathRefs(e).add(r),r},OE=function(e){var t=sg.get(e);return t||(t=new Set,sg.set(e,t)),t},xE=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.depth,o=n.edge;if(fg.isPath(t))if("start"===o)t=Xv(Sg.first(e,t),2)[1];else if("end"===o){t=Xv(Sg.last(e,t),2)[1]}return wg.isRange(t)&&(t="start"===o?wg.start(t):"end"===o?wg.end(t):fg.common(t.anchor.path,t.focus.path)),Lg.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},SE=function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).affinity,r={current:t,affinity:void 0===n?"forward":n,unref:function(){var t=r.current;return Pg.pointRefs(e).delete(r),r.current=null,t}};return Pg.pointRefs(e).add(r),r},jE=function(e){var t=cg.get(e);return t||(t=new Set,cg.set(e,t)),t},CE=function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).edge,r=void 0===n?"start":n;if(fg.isPath(t)){var o;if("end"===r)o=Xv(Sg.last(e,t),2)[1];else o=Xv(Sg.first(e,t),2)[1];var a=Sg.get(e,o);if(!Ug.isText(a))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:o,offset:"end"===r?a.text.length:0}}if(wg.isRange(t)){var i=Xv(wg.edges(t),2),l=i[0],s=i[1];return"start"===r?l:s}return t};function DE(e){var t,n,r,o,a,i,l,s,c,u,f,p,d,m,h,y,b,v,g,w,E,_,k,O,x,S,j,C,D,N,P,T,M=arguments;return $v().wrap((function(A){for(;;)switch(A.prev=A.next){case 0:if(T=function(e,t,n){return"character"===t?qg(e,n):"word"===t?Jg(e,n):"line"===t||"block"===t?e.length:1},n=(t=M.length>1&&void 0!==M[1]?M[1]:{}).at,r=void 0===n?e.selection:n,o=t.unit,a=void 0===o?"offset":o,i=t.reverse,l=void 0!==i&&i,s=t.voids,c=void 0!==s&&s,u=t.ignoreNonSelectable,f=void 0!==u&&u,r){A.next=5;break}return A.abrupt("return");case 5:p=Pg.range(e,r),d=wg.edges(p),m=Xv(d,2),h=m[0],y=m[1],b=l?y:h,v=!1,g="",w=0,E=0,_=0,k=Jv(Pg.nodes(e,{at:r,reverse:l,voids:c,ignoreNonSelectable:f})),A.prev=14,k.s();case 16:if((O=k.n()).done){A.next=54;break}if(x=O.value,S=Xv(x,2),j=S[0],C=S[1],!_g.isElement(j)){A.next=29;break}if(c||!e.isVoid(j)&&!e.isElementReadOnly(j)){A.next=26;break}return A.next=25,Pg.start(e,C);case 25:return A.abrupt("continue",52);case 26:if(!e.isInline(j)){A.next=28;break}return A.abrupt("continue",52);case 28:Pg.hasInlines(e,j)&&(D=fg.isAncestor(C,y.path)?y:Pg.end(e,C),N=fg.isAncestor(C,h.path)?h:Pg.start(e,C),g=Pg.string(e,{anchor:N,focus:D},{voids:c}),v=!0);case 29:if(!Ug.isText(j)){A.next=52;break}if((P=fg.equals(C,b.path))?(E=l?b.offset:j.text.length-b.offset,_=b.offset):(E=j.text.length,_=l?E:0),!P&&!v&&"offset"!==a){A.next=36;break}return A.next=35,{path:C,offset:_};case 35:v=!1;case 36:if(0!==w){A.next=42;break}if(""!==g){A.next=40;break}return A.abrupt("break",52);case 40:w=T(g,a,l),g=Xg(g,w,l)[1];case 42:if(_=l?_-w:_+w,!((E-=w)<0)){A.next=47;break}return w=-E,A.abrupt("break",52);case 47:return w=0,A.next=50,{path:C,offset:_};case 50:A.next=36;break;case 52:A.next=16;break;case 54:A.next=59;break;case 56:A.prev=56,A.t0=A.catch(14),k.e(A.t0);case 59:return A.prev=59,k.f(),A.finish(59);case 62:case"end":return A.stop()}}),Gv,null,[[14,56,59,62]])}var NE=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.mode,r=void 0===n?"lowest":n,o=t.voids,a=void 0!==o&&o,i=t.match,l=t.at,s=void 0===l?e.selection:l;if(s){var c=Pg.before(e,s,{voids:a});if(c){var u=Xv(Pg.first(e,[]),2)[1],f=[c.path,u];if(fg.isPath(s)&&0===s.length)throw new Error("Cannot get the previous node from the root node!");if(null==i)if(fg.isPath(s)){var p=Xv(Pg.parent(e,s),1)[0];i=function(e){return p.children.includes(e)}}else i=function(){return!0};var d=Xv(Pg.nodes(e,{reverse:!0,at:f,match:i,mode:r,voids:a}),1)[0];return d}}},PE=function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).affinity,r={current:t,affinity:void 0===n?"forward":n,unref:function(){var t=r.current;return Pg.rangeRefs(e).delete(r),r.current=null,t}};return Pg.rangeRefs(e).add(r),r},TE=function(e){var t=ug.get(e);return t||(t=new Set,ug.set(e,t)),t},ME=function(e,t,n){return wg.isRange(t)&&!n?t:{anchor:Pg.start(e,t),focus:Pg.end(e,n||t)}};function AE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var LE=function(e,t){var n=e.selection;if(n){var r=function(t,n){if(!Ug.isText(t))return!1;var r=Xv(Pg.parent(e,n),2),o=r[0];r[1];return!e.isVoid(o)||e.markableVoid(o)},o=wg.isExpanded(n),a=!1;if(!o){var i=Xv(Pg.node(e,n),2),l=i[0],s=i[1];if(l&&r(l,s)){var c=Xv(Pg.parent(e,s),1)[0];a=c&&e.markableVoid(c)}}if(o||a)_w.unsetNodes(e,t,{match:r,split:!0,voids:!0});else{var u=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AE(Object(n),!0).forEach((function(t){pg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Pg.marks(e)||{});delete u[t],e.marks=u,ig.get(e)||e.onChange()}}},RE=function(e,t){lg.set(e,t)},FE=function(e,t){return Pg.point(e,t,{edge:"start"})},zE=function(e,t){var n,r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).voids,o=void 0!==r&&r,a=Pg.range(e,t),i=Xv(wg.edges(a),2),l=i[0],s=i[1],c="",u=Jv(Pg.nodes(e,{at:a,match:Ug.isText,voids:o}));try{for(u.s();!(n=u.n()).done;){var f=Xv(n.value,2),p=f[0],d=f[1],m=p.text;fg.equals(d,s.path)&&(m=m.slice(0,s.offset)),fg.equals(d,l.path)&&(m=m.slice(l.offset)),c+=m}}catch(e){u.e(e)}finally{u.f()}return c},BE=function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).voids,r=void 0!==n&&n,o=Xv(wg.edges(t),2),a=o[0],i=o[1];if(0!==a.offset||0!==i.offset||wg.isCollapsed(t)||fg.hasPrevious(i.path))return t;var l,s=Pg.above(e,{at:i,match:function(t){return _g.isElement(t)&&Pg.isBlock(e,t)},voids:r}),c=s?s[1]:[],u={anchor:Pg.start(e,a),focus:i},f=!0,p=Jv(Pg.nodes(e,{at:u,match:Ug.isText,reverse:!0,voids:r}));try{for(p.s();!(l=p.n()).done;){var d=Xv(l.value,2),m=d[0],h=d[1];if(f)f=!1;else if(""!==m.text||fg.isBefore(h,c)){i={path:h,offset:m.text.length};break}}}catch(e){p.e(e)}finally{p.f()}return{anchor:a,focus:i}},YE=function(e,t){var n=Pg.isNormalizing(e);Pg.setNormalizing(e,!1);try{t()}finally{Pg.setNormalizing(e,n)}Pg.normalize(e)},IE=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Pg.withoutNormalizing(e,(function(){var n,r,o=t.reverse,a=void 0!==o&&o,i=t.unit,l=void 0===i?"character":i,s=t.distance,c=void 0===s?1:s,u=t.voids,f=void 0!==u&&u,p=t.at,d=void 0===p?e.selection:p,m=t.hanging,h=void 0!==m&&m;if(d){var y=!1;if(wg.isRange(d)&&wg.isCollapsed(d)&&(y=!0,d=d.anchor),Lg.isPoint(d)){var b=Pg.void(e,{at:d,mode:"highest"});if(!f&&b){d=Xv(b,2)[1]}else{var v={unit:l,distance:c};d={anchor:d,focus:a?Pg.before(e,d,v)||Pg.start(e,[]):Pg.after(e,d,v)||Pg.end(e,[])},h=!0}}if(fg.isPath(d))_w.removeNodes(e,{at:d,voids:f});else if(!wg.isCollapsed(d)){if(!h){var g=Xv(wg.edges(d),2)[1],w=Pg.end(e,[]);Lg.equals(g,w)||(d=Pg.unhangRange(e,d,{voids:f}))}var E=Xv(wg.edges(d),2),_=E[0],k=E[1],O=Pg.above(e,{match:function(t){return _g.isElement(t)&&Pg.isBlock(e,t)},at:_,voids:f}),x=Pg.above(e,{match:function(t){return _g.isElement(t)&&Pg.isBlock(e,t)},at:k,voids:f}),S=O&&x&&!fg.equals(O[1],x[1]),j=fg.equals(_.path,k.path),C=f?null:null!==(n=Pg.void(e,{at:_,mode:"highest"}))&&void 0!==n?n:Pg.elementReadOnly(e,{at:_,mode:"highest"}),D=f?null:null!==(r=Pg.void(e,{at:k,mode:"highest"}))&&void 0!==r?r:Pg.elementReadOnly(e,{at:k,mode:"highest"});if(C){var N=Pg.before(e,_);N&&O&&fg.isAncestor(O[1],N.path)&&(_=N)}if(D){var P=Pg.after(e,k);P&&x&&fg.isAncestor(x[1],P.path)&&(k=P)}var T,M,A=[],L=Jv(Pg.nodes(e,{at:d,voids:f}));try{for(L.s();!(M=L.n()).done;){var R=M.value,F=Xv(R,2),z=F[0],B=F[1];T&&0===fg.compare(B,T)||(!f&&_g.isElement(z)&&(Pg.isVoid(e,z)||Pg.isElementReadOnly(e,z))||!fg.isCommon(B,_.path)&&!fg.isCommon(B,k.path))&&(A.push(R),T=B)}}catch(e){L.e(e)}finally{L.f()}var Y=Array.from(A,(function(t){var n=Xv(t,2)[1];return Pg.pathRef(e,n)})),I=Pg.pointRef(e,_),H=Pg.pointRef(e,k),U="";if(!j&&!C){var W=I.current,V=Xv(Pg.leaf(e,W),1)[0],q=W.path,G=_.offset,K=V.text.slice(G);K.length>0&&(e.apply({type:"remove_text",path:q,offset:G,text:K}),U=K)}if(Y.reverse().map((function(e){return e.unref()})).filter((function(e){return null!==e})).forEach((function(t){return _w.removeNodes(e,{at:t,voids:f})})),!D){var $=H.current,J=Xv(Pg.leaf(e,$),1)[0],X=$.path,Q=j?_.offset:0,Z=J.text.slice(Q,k.offset);Z.length>0&&(e.apply({type:"remove_text",path:X,offset:Q,text:Z}),U=Z)}!j&&S&&H.current&&I.current&&_w.mergeNodes(e,{at:H.current,hanging:!0,voids:f}),y&&a&&"character"===l&&U.length>1&&U.match(/[\u0E00-\u0E7F]+/)&&_w.insertText(e,U.slice(0,U.length-c));var ee=I.unref(),te=H.unref(),ne=a?ee||te:te||ee;null==t.at&&ne&&_w.select(e,ne)}}}))},HE=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Pg.withoutNormalizing(e,(function(){var r=n.hanging,o=void 0!==r&&r,a=n.voids,i=void 0!==a&&a,l=n.at,s=void 0===l?Wg(e):l;if(t.length){if(wg.isRange(s))if(o||(s=Pg.unhangRange(e,s,{voids:i})),wg.isCollapsed(s))s=s.anchor;else{var c=Xv(wg.edges(s),2)[1];if(!i&&Pg.void(e,{at:c}))return;var u=Pg.pointRef(e,c);_w.delete(e,{at:s}),s=u.unref()}else fg.isPath(s)&&(s=Pg.start(e,s));if(i||!Pg.void(e,{at:s})){var f=Pg.above(e,{at:s,match:function(t){return _g.isElement(t)&&Pg.isInline(e,t)},mode:"highest",voids:i});if(f){var p=Xv(f,2)[1];if(Pg.isEnd(e,s,p))s=Pg.after(e,p);else if(Pg.isStart(e,s,p)){s=Pg.before(e,p)}}var d,m=Xv(Pg.above(e,{match:function(t){return _g.isElement(t)&&Pg.isBlock(e,t)},at:s,voids:i}),2)[1],h=Pg.isStart(e,s,m),y=Pg.isEnd(e,s,m),b=h&&y,v=!h||h&&y,g=!y,w=Xv(Sg.first({children:t},[]),2)[1],E=Xv(Sg.last({children:t},[]),2)[1],_=[],k=function(t){var n=Xv(t,2),r=n[0],o=n[1];return!(0===o.length)&&(!!b||!(v&&fg.isAncestor(o,w)&&_g.isElement(r)&&!e.isVoid(r)&&!e.isInline(r))&&!(g&&fg.isAncestor(o,E)&&_g.isElement(r)&&!e.isVoid(r)&&!e.isInline(r)))},O=Jv(Sg.nodes({children:t},{pass:k}));try{for(O.s();!(d=O.n()).done;){var x=d.value;k(x)&&_.push(x)}}catch(e){O.e(e)}finally{O.f()}for(var S=[],j=[],C=[],D=!0,N=!1,P=0,T=_;P<T.length;P++){var M=Xv(T[P],1)[0];_g.isElement(M)&&!e.isInline(M)?(D=!1,N=!0,j.push(M)):D?S.push(M):C.push(M)}var A=Xv(Pg.nodes(e,{at:s,match:function(t){return Ug.isText(t)||Pg.isInline(e,t)},mode:"highest",voids:i}),1),L=Xv(A[0],2)[1],R=Pg.isStart(e,s,L),F=Pg.isEnd(e,s,L),z=Pg.pathRef(e,y&&!C.length?fg.next(m):m),B=Pg.pathRef(e,F?fg.next(L):L);_w.splitNodes(e,{at:s,match:function(t){return N?_g.isElement(t)&&Pg.isBlock(e,t):Ug.isText(t)||Pg.isInline(e,t)},mode:N?"lowest":"highest",always:N&&(!h||S.length>0)&&(!y||C.length>0),voids:i});var Y,I=Pg.pathRef(e,!R||R&&F?fg.next(L):L);if(_w.insertNodes(e,S,{at:I.current,match:function(t){return Ug.isText(t)||Pg.isInline(e,t)},mode:"highest",voids:i}),b&&!S.length&&j.length&&!C.length&&_w.delete(e,{at:m,voids:i}),_w.insertNodes(e,j,{at:z.current,match:function(t){return _g.isElement(t)&&Pg.isBlock(e,t)},mode:"lowest",voids:i}),_w.insertNodes(e,C,{at:B.current,match:function(t){return Ug.isText(t)||Pg.isInline(e,t)},mode:"highest",voids:i}),!n.at)if(C.length>0&&B.current?Y=fg.previous(B.current):j.length>0&&z.current?Y=fg.previous(z.current):I.current&&(Y=fg.previous(I.current)),Y){var H=Pg.end(e,Y);_w.select(e,H)}I.unref(),z.unref(),B.unref()}}}))},UE=function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).edge,n=void 0===t?"anchor":t,r=e.selection;if(r)if("anchor"===n)_w.select(e,r.anchor);else if("focus"===n)_w.select(e,r.focus);else if("start"===n){var o=Xv(wg.edges(r),1)[0];_w.select(e,o)}else if("end"===n){var a=Xv(wg.edges(r),2)[1];_w.select(e,a)}},WE=function(e){var t=e.selection;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},VE=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.selection,r=t.distance,o=void 0===r?1:r,a=t.unit,i=void 0===a?"character":a,l=t.reverse,s=void 0!==l&&l,c=t.edge,u=void 0===c?null:c;if(n){"start"===u&&(u=wg.isBackward(n)?"focus":"anchor"),"end"===u&&(u=wg.isBackward(n)?"anchor":"focus");var f=n.anchor,p=n.focus,d={distance:o,unit:i,ignoreNonSelectable:!0},m={};if(null==u||"anchor"===u){var h=s?Pg.before(e,f,d):Pg.after(e,f,d);h&&(m.anchor=h)}if(null==u||"focus"===u){var y=s?Pg.before(e,p,d):Pg.after(e,p,d);y&&(m.focus=y)}_w.setSelection(e,m)}},qE=function(e,t){var n=e.selection;if(t=Pg.range(e,t),n)_w.setSelection(e,t);else{if(!wg.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(Fg.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}};function GE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function KE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?GE(Object(n),!0).forEach((function(t){pg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $E=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.selection,o=n.edge,a=void 0===o?"both":o;if(r){"start"===a&&(a=wg.isBackward(r)?"focus":"anchor"),"end"===a&&(a=wg.isBackward(r)?"anchor":"focus");var i=r.anchor,l=r.focus,s="anchor"===a?i:l;_w.setSelection(e,Kv({},"anchor"===a?"anchor":"focus",KE(KE({},s),t)))}},JE=function(e,t){var n=e.selection,r={},o={};if(n){for(var a in t)("anchor"===a&&null!=t.anchor&&!Lg.equals(t.anchor,n.anchor)||"focus"===a&&null!=t.focus&&!Lg.equals(t.focus,n.focus)||"anchor"!==a&&"focus"!==a&&t[a]!==n[a])&&(r[a]=n[a],o[a]=t[a]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}},XE=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Pg.withoutNormalizing(e,(function(){var r=n.hanging,o=void 0!==r&&r,a=n.voids,i=void 0!==a&&a,l=n.mode,s=void 0===l?"lowest":l,c=n.at,u=n.match,f=n.select;if(Sg.isNode(t)&&(t=[t]),0!==t.length){var p=Xv(t,1)[0];if(c||(c=Wg(e),f=!0),null==f&&(f=!1),wg.isRange(c))if(o||(c=Pg.unhangRange(e,c,{voids:i})),wg.isCollapsed(c))c=c.anchor;else{var d=Xv(wg.edges(c),2)[1],m=Pg.pointRef(e,d);_w.delete(e,{at:c}),c=m.unref()}if(Lg.isPoint(c)){null==u&&(u=Ug.isText(p)?function(e){return Ug.isText(e)}:e.isInline(p)?function(t){return Ug.isText(t)||Pg.isInline(e,t)}:function(t){return _g.isElement(t)&&Pg.isBlock(e,t)});var h=Xv(Pg.nodes(e,{at:c.path,match:u,mode:s,voids:i}),1)[0];if(!h)return;var y=Xv(h,2)[1],b=Pg.pathRef(e,y),v=Pg.isEnd(e,c,y);_w.splitNodes(e,{at:c,match:u,mode:s,voids:i});var g=b.unref();c=v?fg.next(g):g}var w=fg.parent(c),E=c[c.length-1];if(i||!Pg.void(e,{at:w})){var _,k=Jv(t);try{for(k.s();!(_=k.n()).done;){var O=_.value,x=w.concat(E);E++,e.apply({type:"insert_node",path:x,node:O}),c=fg.next(c)}}catch(e){k.e(e)}finally{k.f()}if(c=fg.previous(c),f){var S=Pg.end(e,c);S&&_w.select(e,S)}}}}))},QE=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Pg.withoutNormalizing(e,(function(){var n=t.at,r=void 0===n?e.selection:n,o=t.mode,a=void 0===o?"lowest":o,i=t.voids,l=void 0!==i&&i,s=t.match;if(null==s&&(s=fg.isPath(r)?Vg(e,r):function(t){return _g.isElement(t)&&Pg.isBlock(e,t)}),r)for(var c=Pg.nodes(e,{at:r,match:s,mode:a,voids:l}),u=0,f=Array.from(c,(function(t){var n=Xv(t,2)[1];return Pg.pathRef(e,n)}));u<f.length;u++){var p=f[u].unref();if(p.length<2)throw new Error("Cannot lift node at a path [".concat(p,"] because it has a depth of less than `2`."));var d=Xv(Pg.node(e,fg.parent(p)),2),m=d[0],h=d[1],y=p[p.length-1],b=m.children.length;if(1===b){var v=fg.next(h);_w.moveNodes(e,{at:p,to:v,voids:l}),_w.removeNodes(e,{at:h,voids:l})}else if(0===y)_w.moveNodes(e,{at:p,to:h,voids:l});else if(y===b-1){var g=fg.next(h);_w.moveNodes(e,{at:p,to:g,voids:l})}else{var w=fg.next(p),E=fg.next(h);_w.splitNodes(e,{at:w,voids:l}),_w.moveNodes(e,{at:p,to:E,voids:l})}}}))},ZE=["text"],e_=["children"],t_=function e(t,n){if(_g.isElement(n)){var r=n;return!!Pg.isVoid(t,n)||1===r.children.length&&e(t,r.children[0])}return!Pg.isEditor(n)},n_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Pg.withoutNormalizing(e,(function(){var n=t.match,r=t.at,o=void 0===r?e.selection:r,a=t.hanging,i=void 0!==a&&a,l=t.voids,s=void 0!==l&&l,c=t.mode,u=void 0===c?"lowest":c;if(o){if(null==n)if(fg.isPath(o)){var f=Xv(Pg.parent(e,o),1)[0];n=function(e){return f.children.includes(e)}}else n=function(t){return _g.isElement(t)&&Pg.isBlock(e,t)};if(!i&&wg.isRange(o)&&(o=Pg.unhangRange(e,o,{voids:s})),wg.isRange(o))if(wg.isCollapsed(o))o=o.anchor;else{var p=Xv(wg.edges(o),2)[1],d=Pg.pointRef(e,p);_w.delete(e,{at:o}),o=d.unref(),null==t.at&&_w.select(e,o)}var m=Xv(Pg.nodes(e,{at:o,match:n,voids:s,mode:u}),1)[0],h=Pg.previous(e,{at:o,match:n,voids:s,mode:u});if(m&&h){var y=Xv(m,2),b=y[0],v=y[1],g=Xv(h,2),w=g[0],E=g[1];if(0!==v.length&&0!==E.length){var _,k,O=fg.next(E),x=fg.common(v,E),S=fg.isSibling(v,E),j=Array.from(Pg.levels(e,{at:v}),(function(e){return Xv(e,1)[0]})).slice(x.length).slice(0,-1),C=Pg.above(e,{at:v,mode:"highest",match:function(t){return j.includes(t)&&t_(e,t)}}),D=C&&Pg.pathRef(e,C[1]);if(Ug.isText(b)&&Ug.isText(w)){var N=bg(b,ZE);k=w.text.length,_=N}else{if(!_g.isElement(b)||!_g.isElement(w))throw new Error("Cannot merge the node at path [".concat(v,"] with the previous sibling because it is not the same kind: ").concat(Fg.stringify(b)," ").concat(Fg.stringify(w)));N=bg(b,e_);k=w.children.length,_=N}S||_w.moveNodes(e,{at:v,to:O,voids:s}),D&&_w.removeNodes(e,{at:D.current,voids:s}),_g.isElement(w)&&Pg.isEmpty(e,w)||Ug.isText(w)&&""===w.text&&0!==E[E.length-1]?_w.removeNodes(e,{at:E,voids:s}):e.apply({type:"merge_node",path:O,position:k,properties:_}),D&&D.unref()}}}}))},r_=function(e,t){Pg.withoutNormalizing(e,(function(){var n=t.to,r=t.at,o=void 0===r?e.selection:r,a=t.mode,i=void 0===a?"lowest":a,l=t.voids,s=void 0!==l&&l,c=t.match;if(o){null==c&&(c=fg.isPath(o)?Vg(e,o):function(t){return _g.isElement(t)&&Pg.isBlock(e,t)});for(var u=Pg.pathRef(e,n),f=Pg.nodes(e,{at:o,match:c,mode:i,voids:s}),p=0,d=Array.from(f,(function(t){var n=Xv(t,2)[1];return Pg.pathRef(e,n)}));p<d.length;p++){var m=d[p].unref(),h=u.current;0!==m.length&&e.apply({type:"move_node",path:m,newPath:h}),u.current&&fg.isSibling(h,m)&&fg.isAfter(h,m)&&(u.current=fg.next(u.current))}u.unref()}}))},o_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Pg.withoutNormalizing(e,(function(){var n=t.hanging,r=void 0!==n&&n,o=t.voids,a=void 0!==o&&o,i=t.mode,l=void 0===i?"lowest":i,s=t.at,c=void 0===s?e.selection:s,u=t.match;if(c){null==u&&(u=fg.isPath(c)?Vg(e,c):function(t){return _g.isElement(t)&&Pg.isBlock(e,t)}),!r&&wg.isRange(c)&&(c=Pg.unhangRange(e,c,{voids:a}));for(var f=Pg.nodes(e,{at:c,match:u,mode:l,voids:a}),p=0,d=Array.from(f,(function(t){var n=Xv(t,2)[1];return Pg.pathRef(e,n)}));p<d.length;p++){var m=d[p].unref();if(m){var h=Xv(Pg.node(e,m),1)[0];e.apply({type:"remove_node",path:m,node:h})}}}}))},a_=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Pg.withoutNormalizing(e,(function(){var r=n.match,o=n.at,a=void 0===o?e.selection:o,i=n.compare,l=n.merge,s=n.hanging,c=void 0!==s&&s,u=n.mode,f=void 0===u?"lowest":u,p=n.split,d=void 0!==p&&p,m=n.voids,h=void 0!==m&&m;if(a){if(null==r&&(r=fg.isPath(a)?Vg(e,a):function(t){return _g.isElement(t)&&Pg.isBlock(e,t)}),!c&&wg.isRange(a)&&(a=Pg.unhangRange(e,a,{voids:h})),d&&wg.isRange(a)){if(wg.isCollapsed(a)&&Pg.leaf(e,a.anchor)[0].text.length>0)return;var y=Pg.rangeRef(e,a,{affinity:"inward"}),b=Xv(wg.edges(a),2),v=b[0],g=b[1],w="lowest"===f?"lowest":"highest",E=Pg.isEnd(e,g,g.path);_w.splitNodes(e,{at:g,match:r,mode:w,voids:h,always:!E});var _=Pg.isStart(e,v,v.path);_w.splitNodes(e,{at:v,match:r,mode:w,voids:h,always:!_}),a=y.unref(),null==n.at&&_w.select(e,a)}i||(i=function(e,t){return e!==t});var k,O=Jv(Pg.nodes(e,{at:a,match:r,mode:f,voids:h}));try{for(O.s();!(k=O.n()).done;){var x=Xv(k.value,2),S=x[0],j=x[1],C={},D={};if(0!==j.length){var N=!1;for(var P in t)"children"!==P&&"text"!==P&&i(t[P],S[P])&&(N=!0,S.hasOwnProperty(P)&&(C[P]=S[P]),l?null!=t[P]&&(D[P]=l(S[P],t[P])):null!=t[P]&&(D[P]=t[P]));N&&e.apply({type:"set_node",path:j,properties:C,newProperties:D})}}}catch(e){O.e(e)}finally{O.f()}}}))},i_=function(e,t){if(wg.isCollapsed(t))return t.anchor;var n=Xv(wg.edges(t),2)[1],r=Pg.pointRef(e,n);return _w.delete(e,{at:t}),r.unref()},l_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Pg.withoutNormalizing(e,(function(){var n=t.mode,r=void 0===n?"lowest":n,o=t.voids,a=void 0!==o&&o,i=t.match,l=t.at,s=void 0===l?e.selection:l,c=t.height,u=void 0===c?0:c,f=t.always,p=void 0!==f&&f;if(null==i&&(i=function(t){return _g.isElement(t)&&Pg.isBlock(e,t)}),wg.isRange(s)&&(s=i_(e,s)),fg.isPath(s)){var d=s,m=Pg.point(e,d),h=Xv(Pg.parent(e,d),1)[0];i=function(e){return e===h},u=m.path.length-d.length+1,s=m,p=!0}if(s){var y,b=Pg.pointRef(e,s,{affinity:"backward"});try{var v=Xv(Pg.nodes(e,{at:s,match:i,mode:r,voids:a}),1)[0];if(!v)return;var g=Pg.void(e,{at:s,mode:"highest"});if(!a&&g){var w=Xv(g,2),E=w[0],_=w[1];if(_g.isElement(E)&&e.isInline(E)){var k=Pg.after(e,_);if(!k){var O=fg.next(_);_w.insertNodes(e,{text:""},{at:O,voids:a}),k=Pg.point(e,O)}s=k,p=!0}u=s.path.length-_.length+1,p=!0}y=Pg.pointRef(e,s);var x,S=s.path.length-u,j=Xv(v,2)[1],C=s.path.slice(0,S),D=0===u?s.offset:s.path[S]+0,N=Jv(Pg.levels(e,{at:C,reverse:!0,voids:a}));try{for(N.s();!(x=N.n()).done;){var P=Xv(x.value,2),T=P[0],M=P[1],A=!1;if(M.length<j.length||0===M.length||!a&&_g.isElement(T)&&Pg.isVoid(e,T))break;var L=b.current,R=Pg.isEnd(e,L,M);if(p||!b||!Pg.isEdge(e,L,M)){A=!0;var F=Sg.extractProps(T);e.apply({type:"split_node",path:M,position:D,properties:F})}D=M[M.length-1]+(A||R?1:0)}}catch(e){N.e(e)}finally{N.f()}if(null==t.at){var z=y.current||Pg.end(e,[]);_w.select(e,z)}}finally{var B;b.unref(),null===(B=y)||void 0===B||B.unref()}}}))},s_=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var r,o={},a=Jv(t);try{for(a.s();!(r=a.n()).done;){o[r.value]=null}}catch(e){a.e(e)}finally{a.f()}_w.setNodes(e,o,n)},c_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Pg.withoutNormalizing(e,(function(){var n=t.mode,r=void 0===n?"lowest":n,o=t.split,a=void 0!==o&&o,i=t.voids,l=void 0!==i&&i,s=t.at,c=void 0===s?e.selection:s,u=t.match;if(c){null==u&&(u=fg.isPath(c)?Vg(e,c):function(t){return _g.isElement(t)&&Pg.isBlock(e,t)}),fg.isPath(c)&&(c=Pg.range(e,c));var f,p=wg.isRange(c)?Pg.rangeRef(e,c):null,d=Pg.nodes(e,{at:c,match:u,mode:r,voids:l}),m=function(t){var n=t.unref(),r=Xv(Pg.node(e,n),1)[0],o=Pg.range(e,n);a&&p&&(o=wg.intersection(p.current,o)),_w.liftNodes(e,{at:o,match:function(e){return _g.isAncestor(r)&&r.children.includes(e)},voids:l})},h=Jv(Array.from(d,(function(t){var n=Xv(t,2)[1];return Pg.pathRef(e,n)})).reverse());try{for(h.s();!(f=h.n()).done;){m(f.value)}}catch(e){h.e(e)}finally{h.f()}p&&p.unref()}}))};function u_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u_(Object(n),!0).forEach((function(t){pg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p_,d_,m_,h_,y_,b_=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Pg.withoutNormalizing(e,(function(){var r=n.mode,o=void 0===r?"lowest":r,a=n.split,i=void 0!==a&&a,l=n.voids,s=void 0!==l&&l,c=n.match,u=n.at,f=void 0===u?e.selection:u;if(f){if(null==c&&(c=fg.isPath(f)?Vg(e,f):e.isInline(t)?function(t){return _g.isElement(t)&&Pg.isInline(e,t)||Ug.isText(t)}:function(t){return _g.isElement(t)&&Pg.isBlock(e,t)}),i&&wg.isRange(f)){var p=Xv(wg.edges(f),2),d=p[0],m=p[1],h=Pg.rangeRef(e,f,{affinity:"inward"});_w.splitNodes(e,{at:m,match:c,voids:s}),_w.splitNodes(e,{at:d,match:c,voids:s}),f=h.unref(),null==n.at&&_w.select(e,f)}for(var y=0,b=Array.from(Pg.nodes(e,{at:f,match:e.isInline(t)?function(t){return _g.isElement(t)&&Pg.isBlock(e,t)}:function(e){return Pg.isEditor(e)},mode:"lowest",voids:s}));y<b.length;y++){var v=Xv(b[y],2)[1],g=wg.isRange(f)?wg.intersection(f,Pg.range(e,v)):f;if(g){var w=Array.from(Pg.nodes(e,{at:g,match:c,mode:o,voids:s}));if(w.length>0)if("continue"===function(){var n=Xv(w,1)[0],r=w[w.length-1],o=Xv(n,2)[1],a=Xv(r,2)[1];if(0===o.length&&0===a.length)return"continue";var i=fg.equals(o,a)?fg.parent(o):fg.common(o,a),l=Pg.range(e,o,a),c=Xv(Pg.node(e,i),1)[0],u=i.length+1,f=fg.next(a.slice(0,u)),p=f_(f_({},t),{},{children:[]});_w.insertNodes(e,p,{at:f,voids:s}),_w.moveNodes(e,{at:l,match:function(e){return _g.isAncestor(c)&&c.children.includes(e)},to:f.concat(0),voids:s})}())continue}}}}))};function v_(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function g_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function w_(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var E_,__,k_,O_,x_,S_,j_,C_,D_,N_,P_,T_,M_,A_,L_,R_,F_,z_,B_,Y_,I_,H_,U_,W_,V_,q_,G_,K_,$_,J_,X_,Q_,Z_,ek,tk,nk,rk,ok,ak,ik=function(e,t){var n=e.getBoundingClientRect();return n.bottom>=0&&n.top<=t.clientHeight},lk=(p_=d.action.bound,d_=d.action.bound,m_=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),v_(this,"startIdx",h_,this),v_(this,"endIdx",y_,this),this.isVisible=function(e){var t=n.editor.pathFromNode(e)[0];return t>=n.startIdx&&t<=n.endIdx},this.editor=t}var t,n,r;return t=e,(n=[{key:"calculateExchangesInViewport",value:function(){var e,t,n=this.editor.children;this.container||(this.container=document.getElementById("transcript-container"));for(var r=0;r<n.length;r++){var o=n[r],a=this.editor.findDOMNode(o),i=!(!a||!ik(a,this.container));if(i&&void 0===e)e=r;else if(!i&&void 0!==e){t=r;break}}void 0===e&&(t=0),void 0===t&&(t=n.length-1),this.setViewRange(e,t)}},{key:"setViewRange",value:function(e,t){this.startIdx=e-3,this.endIdx=t+6}}])&&g_(t.prototype,n),r&&g_(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),h_=w_(m_.prototype,"startIdx",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),y_=w_(m_.prototype,"endIdx",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 20}}),w_(m_.prototype,"calculateExchangesInViewport",[p_],Object.getOwnPropertyDescriptor(m_.prototype,"calculateExchangesInViewport"),m_.prototype),w_(m_.prototype,"setViewRange",[d_],Object.getOwnPropertyDescriptor(m_.prototype,"setViewRange"),m_.prototype),m_);function sk(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=uk(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function ck(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||uk(e,t)||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 uk(e,t){if(e){if("string"==typeof e)return fk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fk(e,t):void 0}}function fk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pk(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function dk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function mk(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var hk=(E_=d.observable.ref,__=d.action.bound,k_=d.action.bound,O_=d.action.bound,x_=d.action.bound,S_=d.action.bound,j_=d.action.bound,C_=d.action.bound,D_=d.action.bound,N_=d.action.bound,P_=d.action.bound,T_=d.action.bound,M_=d.action.bound,A_=d.action.bound,L_=d.action.bound,R_=d.action.bound,F_=d.action.bound,z_=d.action.bound,B_=d.action.bound,Y_=d.action.bound,I_=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),pk(this,"value",H_,this),this.editor=null,pk(this,"hasUndos",U_,this),pk(this,"hasRedos",W_,this),pk(this,"id",V_,this),pk(this,"translated",q_,this),pk(this,"language",G_,this),pk(this,"status",K_,this),pk(this,"subtitled",$_,this),pk(this,"version",J_,this),pk(this,"lastSavedAt",X_,this),pk(this,"highlightedSegments",Q_,this),pk(this,"strikedSegments",Z_,this),pk(this,"percentCompleted",ek,this),pk(this,"completedExchangeRatio",tk,this),pk(this,"highlightColor",nk,this),pk(this,"paginated",rk,this),pk(this,"currentPage",ok,this),pk(this,"totalPages",ak,this),this.paginatedValue=[],this.setEditor=function(e){return n.editor=e,n.viewManager=new lk(e),e},this.resetFromValue=function(e){if(n.paginatedValue=[],n.currentPage=null,n.paginated&&e.length>0){var t=0,r=[];e.forEach((function(e){e.ts[[1]]<600*(t+1)?r.push(e):(t+=1,n.paginatedValue.push(r),r=[e])})),r.length&&n.paginatedValue.push(r),n.totalPages=n.paginatedValue.length,n.value=null,n.setPage(0)}else n.value=Yb.deserialize(e);n.resetEditorValue()},this.resetEditorValue=function(){n.editor&&(n.editor.children=n.value,n.editor.history={undos:[],redos:[]},n.hasUndos=!1,n.hasRedos=!1,n.editor.deselect())},this.setValue=function(e){e!==n.value&&(n.hasUndos=!!n.editor.history.undos.length,n.hasRedos=!!n.editor.history.redos.length,n.onChange()),n.value=e},this.copySelectedText=function(){n.editor&&n.editor.copyFragment()},this.selectedText=function(){return n.selectedWords().map((function(e){return e.text})).join("")},this.selectedFragment=function(){return n.value&&n.editor.selection?wg.isCollapsed(n.editor.selection)?[]:Pg.fragment(n.editor,n.editor.selection):[]},this.selectedWords=function(){return n.selectedFragment().map((function(e){return e.children})).flat()},this.selectedWord=function(){if(!n.value)return[];var e=wg.start(n.editor.selection);return Sg.get(n.editor,e.path)},this.findPlayingExchange=function(e){return n.value?n.value.find((function(t){return!!(e<=parseFloat(t.to))})):null},this.speakerNames=function(){return n.value?n.editor.speakerNames():[]},this.fullText=function(){return n.value.map((function(e){return e.children.map((function(e){return e.text})).join("")})).join("\n")},this.onChange=t}var t,n,r;return t=e,n=[{key:"nextPage",value:function(){this.setPage(this.currentPage+1)}},{key:"prevPage",value:function(){this.setPage(this.currentPage-1)}},{key:"setPage",value:function(e){this.currentPage!==e&&(this.value&&(this.paginatedValue[this.currentPage]=Yb.serialize(this.value)),this.currentPage=e,this.value=Yb.deserialize(this.paginatedValue[this.currentPage]),this.resetEditorValue(),this.editor&&this.editor.deselect())}},{key:"loadFromJSON",value:function(e){var t=e.id,n=e.state,r=e.language,o=e.version,a=e.lastSavedAt,i=e.translated,l=e.status,s=e.subtitled;this.id=t,this.language=r,this.version=o,this.lastSavedAt=a,this.translated=i,this.status=l,this.subtitled=s,"completed"===this.status&&(this.resetFromValue(n),this.calcFormattedSegments(this.value),this.calcPercentCompleted(this.value))}},{key:"setPaginated",value:function(e){var t;!!e!=!!this.paginated&&(this.paginated?(this.paginatedValue[this.currentPage]=Yb.serialize(this.value),t=this.paginatedValue.flat()):t=Yb.serialize(this.value),this.paginated=e,this.resetFromValue(t))}},{key:"serialized",value:function(){return this.paginated?(this.paginatedValue[this.currentPage]=Yb.serialize(this.value),JSON.stringify(this.paginatedValue.flat())):JSON.stringify(Yb.serialize(this.value))}},{key:"calcPercentCompleted",value:function(e){var t=e.length,n=e.filter((function(e){return e.completed})).length;this.completedExchangeRatio=[n,t],this.percentCompleted=(n/t*100).toFixed()}},{key:"calcFormattedSegments",value:function(e){var t,n,r=[],o=[],a=!1,i=!1;e.forEach((function(e){e.children.forEach((function(e){!a&&e.highlight?(t={from:e.from,color:e.highlight},a=e.highlight):a&&a!==e.highlight&&(t.to=e.from,r.push(t),(a=e.highlight)&&(t={from:e.from,color:e.highlight})),!i&&e.strikethrough?(n={from:e.from},i=!0):i&&!e.strikethrough&&(n.to=e.from,o.push(n),i=!1)}))}));var l=e[e.length-1];i&&(n.to=l.to,o.push(n)),a&&(t.to=l.to,r.push(t)),this.highlightedSegments=r,this.strikedSegments=o}},{key:"isEnglish",get:function(){return"en"===this.language}},{key:"isRtlLang",get:function(){return"ar"===this.language||"he-IL"===this.language||"he"===this.language||"fa"===this.language}},{key:"isComplete",get:function(){return"completed"===this.status}},{key:"strikeDuration",get:function(){return this.strikedSegments.reduce((function(e,t){return e+(t.to-t.from)}),0)}},{key:"highlightDuration",get:function(){return this.highlightedSegments.reduce((function(e,t){return e+(t.to-t.from)}),0)}},{key:"hasHighlights",get:function(){return!!this.highlightedSegments.length}},{key:"hasStrikethrough",get:function(){return!!this.strikedSegments.length}},{key:"findPoint",value:function(e,t,n){var r=0,o=0,a=0;return e.children.find((function(e,t){if(!(r+e.text.length<n))return o=t,a=n-r,!0;r+=e.text.length})),{path:[t,o],offset:a}}},{key:"findAndStrikethrough",value:function(e,t){var n=this,r=t?e:e.toLowerCase(),o=0;return this.value.forEach((function(e,a){var i=e.children.map((function(e){return e.text})).join("");t||(i=i.toLowerCase());var l=[],s=0,c=-1;do{if((c=i.indexOf(r,s))>=0){o++;var u={anchor:n.findPoint(e,a,c),focus:n.findPoint(e,a,c+r.length)};l.push(u),s=c+1}}while(c>=0);l.reverse().forEach((function(e){var t,r=[],o={strikethrough:!0},a=sk(Pg.nodes(n.editor,{at:e}));try{for(a.s();!(t=a.n()).done;){var i=ck(t.value,2),l=i[0],s=i[1];l.text&&r.push(s)}}catch(e){a.e(e)}finally{a.f()}r.forEach((function(e,t){o.startSegment=0===t,o.endSegment=t==r.length-1,_w.setNodes(n.editor,o,{at:e})}))}))})),o}},{key:"findAndReplace",value:function(e,t,n){var r=this,o=n?e:e.toLowerCase(),a=0;return this.value.forEach((function(e,i){var l=e.children.map((function(e){return e.text})).join("");n||(l=l.toLowerCase());var s=[],c=0,u=-1;do{if((u=l.indexOf(o,c))>=0){a++;var f={anchor:r.findPoint(e,i,u),focus:r.findPoint(e,i,u+o.length)};s.push(f),c=u+1}}while(u>=0);s.reverse().forEach((function(e){return _w.insertText(r.editor,t,{at:e})}))})),a}},{key:"setHighlightColor",value:function(e){this.highlightColor=e,this.editor&&this.editor.selection&&wg.isExpanded(this.editor.selection)&&this.toggleDataOnSelection("highlight",e)}},{key:"applyHighlight",value:function(e){e&&e.preventDefault(),this.toggleDataOnSelection("highlight")}},{key:"applyStrikethrough",value:function(e){e&&e.preventDefault(),this.toggleDataOnSelection("strikethrough")}},{key:"toggleDataOnSelection",value:function(e,t){var n,r=this,o=!1,a=[],i={},l=sk(Pg.nodes(this.editor,{at:this.editor.selection}));try{for(l.s();!(n=l.n()).done;){var s=ck(n.value,2),c=s[0],u=s[1];c.text&&(o=o||!!c[e],a.push(u))}}catch(e){l.e(e)}finally{l.f()}t=t||("highlight"===e?!o&&this.highlightColor:!o),i[e]=t,a.forEach((function(e,n){i.startSegment=!!t&&0===n,i.endSegment=!!t&&n==a.length-1,_w.setNodes(r.editor,i,{at:e})})),this.calcFormattedSegments(this.editor.children)}},{key:"applyUndo",value:function(e){e&&e.preventDefault(),this.editor.undo()}},{key:"applyRedo",value:function(e){e&&e.preventDefault(),this.editor.redo()}},{key:"cycleSpeakerOnCurrentExchange",value:function(e){if(e&&e.preventDefault(),this.value&&this.editor.selection){var t=wg.start(this.editor.selection),n=this.value[t.path[0]];if(n){var r=this.editor.speakerNames(),o=r.indexOf(n.speaker_name),a=r[(o+1)%r.length];this.editor.setSpeaker(n,a)}}}},{key:"toggleCompletedOnCurrentExchange",value:function(){if(this.value&&this.editor.selection){var e=wg.start(this.editor.selection),t=this.value[e.path[0]];t&&this.editor.setCompleted(t,!t.completed)}}},{key:"clearAllSpeakerNames",value:function(){this.editor.clearAllSpeakers()}},{key:"updateSpeakerName",value:function(e,t){e!==t&&this.editor.renameSpeaker(e,t)}},{key:"findNextNotStrikedWord",value:function(e){var t=!1,n=null;if(this.value.find((function(r){return n=r.children.find((function(n){return e===n&&(t=!0),!(!t||n.strikethrough)})),!!n})),!n){var r=this.value[this.value.length-1];n=r.children[r.children.length-1]}return n}},{key:"findPlayingWordFromExchange",value:function(e,t){return t?t.children.find((function(t){return!!(e<parseFloat(t.to))})):null}},{key:"isEmpty",get:function(){return this.value&&0===this.value.length}},{key:"wordCountForConfidenceLevels",value:function(e){var t=Bb[e];return this.value&&this.value.reduce((function(e,n){return n.children.reduce((function(e,n){var r=n.confidence||1;return r>t[1]&&r<=t[0]?e+1:e}),e)}),0)}},{key:"totalDuration",value:function(){return this.value&&this.value.reduce((function(e,t){return e+(t.to-t.from)}),0)}},{key:"wordCountForSpeaker",value:function(e){return this.value&&this.value.reduce((function(t,n){return n.speaker_name===e?t+n.children.map((function(e){return e.text})).join("").split(/\s+/).length:t}),0)}},{key:"durationForSpeaker",value:function(e){return this.value&&this.value.reduce((function(t,n){return n.speaker_name===e?t+(n.to-n.from):t}),0)}}],n&&dk(t.prototype,n),r&&dk(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),H_=mk(I_.prototype,"value",[E_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U_=mk(I_.prototype,"hasUndos",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),W_=mk(I_.prototype,"hasRedos",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),V_=mk(I_.prototype,"id",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),q_=mk(I_.prototype,"translated",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),G_=mk(I_.prototype,"language",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),K_=mk(I_.prototype,"status",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$_=mk(I_.prototype,"subtitled",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),J_=mk(I_.prototype,"version",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),X_=mk(I_.prototype,"lastSavedAt",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Q_=mk(I_.prototype,"highlightedSegments",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Z_=mk(I_.prototype,"strikedSegments",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),ek=mk(I_.prototype,"percentCompleted",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),tk=mk(I_.prototype,"completedExchangeRatio",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[0,0]}}),nk=mk(I_.prototype,"highlightColor",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return hk.hColors[0]}}),rk=mk(I_.prototype,"paginated",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ok=mk(I_.prototype,"currentPage",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ak=mk(I_.prototype,"totalPages",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),mk(I_.prototype,"nextPage",[__],Object.getOwnPropertyDescriptor(I_.prototype,"nextPage"),I_.prototype),mk(I_.prototype,"prevPage",[k_],Object.getOwnPropertyDescriptor(I_.prototype,"prevPage"),I_.prototype),mk(I_.prototype,"setPage",[O_],Object.getOwnPropertyDescriptor(I_.prototype,"setPage"),I_.prototype),mk(I_.prototype,"loadFromJSON",[x_],Object.getOwnPropertyDescriptor(I_.prototype,"loadFromJSON"),I_.prototype),mk(I_.prototype,"setPaginated",[S_],Object.getOwnPropertyDescriptor(I_.prototype,"setPaginated"),I_.prototype),mk(I_.prototype,"calcPercentCompleted",[j_],Object.getOwnPropertyDescriptor(I_.prototype,"calcPercentCompleted"),I_.prototype),mk(I_.prototype,"calcFormattedSegments",[C_],Object.getOwnPropertyDescriptor(I_.prototype,"calcFormattedSegments"),I_.prototype),mk(I_.prototype,"isEnglish",[d.computed],Object.getOwnPropertyDescriptor(I_.prototype,"isEnglish"),I_.prototype),mk(I_.prototype,"isRtlLang",[d.computed],Object.getOwnPropertyDescriptor(I_.prototype,"isRtlLang"),I_.prototype),mk(I_.prototype,"isComplete",[d.computed],Object.getOwnPropertyDescriptor(I_.prototype,"isComplete"),I_.prototype),mk(I_.prototype,"strikeDuration",[d.computed],Object.getOwnPropertyDescriptor(I_.prototype,"strikeDuration"),I_.prototype),mk(I_.prototype,"highlightDuration",[d.computed],Object.getOwnPropertyDescriptor(I_.prototype,"highlightDuration"),I_.prototype),mk(I_.prototype,"hasHighlights",[d.computed],Object.getOwnPropertyDescriptor(I_.prototype,"hasHighlights"),I_.prototype),mk(I_.prototype,"hasStrikethrough",[d.computed],Object.getOwnPropertyDescriptor(I_.prototype,"hasStrikethrough"),I_.prototype),mk(I_.prototype,"findAndStrikethrough",[D_],Object.getOwnPropertyDescriptor(I_.prototype,"findAndStrikethrough"),I_.prototype),mk(I_.prototype,"findAndReplace",[N_],Object.getOwnPropertyDescriptor(I_.prototype,"findAndReplace"),I_.prototype),mk(I_.prototype,"setHighlightColor",[P_],Object.getOwnPropertyDescriptor(I_.prototype,"setHighlightColor"),I_.prototype),mk(I_.prototype,"applyHighlight",[T_],Object.getOwnPropertyDescriptor(I_.prototype,"applyHighlight"),I_.prototype),mk(I_.prototype,"applyStrikethrough",[M_],Object.getOwnPropertyDescriptor(I_.prototype,"applyStrikethrough"),I_.prototype),mk(I_.prototype,"toggleDataOnSelection",[A_],Object.getOwnPropertyDescriptor(I_.prototype,"toggleDataOnSelection"),I_.prototype),mk(I_.prototype,"applyUndo",[L_],Object.getOwnPropertyDescriptor(I_.prototype,"applyUndo"),I_.prototype),mk(I_.prototype,"applyRedo",[R_],Object.getOwnPropertyDescriptor(I_.prototype,"applyRedo"),I_.prototype),mk(I_.prototype,"cycleSpeakerOnCurrentExchange",[F_],Object.getOwnPropertyDescriptor(I_.prototype,"cycleSpeakerOnCurrentExchange"),I_.prototype),mk(I_.prototype,"toggleCompletedOnCurrentExchange",[z_],Object.getOwnPropertyDescriptor(I_.prototype,"toggleCompletedOnCurrentExchange"),I_.prototype),mk(I_.prototype,"clearAllSpeakerNames",[B_],Object.getOwnPropertyDescriptor(I_.prototype,"clearAllSpeakerNames"),I_.prototype),mk(I_.prototype,"updateSpeakerName",[Y_],Object.getOwnPropertyDescriptor(I_.prototype,"updateSpeakerName"),I_.prototype),mk(I_.prototype,"isEmpty",[d.computed],Object.getOwnPropertyDescriptor(I_.prototype,"isEmpty"),I_.prototype),I_);hk.hColors=["#f6e6b4","#b9ebd3","#cdddf5","#e1d0fa","#f9d2dc","#fbcb00","#84cba9","#9fcbf2","#b989cb","#cc7e97"];var yk,bk=hk;function vk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function gk(e,t){return gk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gk(e,t)}function wk(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ek(e);if(t){var o=Ek(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Ek(e){return Ek=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ek(e)}var _k,kk=Object(se.c)(yk=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gk(e,t)}(a,e);var t,n,r,o=wk(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"componentDidMount",value:function(){Bn.a.bind(["ctrl+h","command+h"],this.props.transcript.applyHighlight)}},{key:"componentWillUnmount",value:function(){Bn.a.unbind(["ctrl+h","command+h"])}},{key:"render",value:function(){var e=this.props.transcript,t=e.applyHighlight,n=e.highlightColor,r=e.setHighlightColor;return s.a.createElement("li",{className:"spacer--left d-none d-sm-block"},s.a.createElement("div",{className:"tool--wrapper",style:{borderBottomColor:n}},s.a.createElement("div",{className:"tool--item"},s.a.createElement("span",{className:"mx-1 clickable t--transcript-toolbar-highlight","data-balloon":"Highlight (Ctrl+H)","data-balloon-pos":"down",onMouseDown:t},s.a.createElement("i",{className:"far fa-fw fa-highlighter"})),s.a.createElement(Ia,{tag:"div",className:"d-inline-block",closeWhenChanged:n,keyboardToggle:"ctrl+shift+h"},s.a.createElement(Ia.Toggle,{tag:"span","data-balloon":"Change highlight color","data-balloon-pos":"down",className:"toolbar--link-append clickable"},s.a.createElement("i",{className:"fas fa-caret-down"})),s.a.createElement(Ia.Content,{className:"dropdown--palette dropdown--palette-highlighter dropdown--content-left",title:"Highlight color",dropdownStyle:{left:"-0.375rem",top:"2.125rem"}},s.a.createElement(zb,{colors:bk.hColors,onChange:r,selectedColor:n}))))))}}])&&vk(t.prototype,n),r&&vk(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||yk,Ok=kk;function xk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Sk(e,t){return Sk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Sk(e,t)}function jk(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ck(e);if(t){var o=Ck(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Ck(e){return Ck=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ck(e)}var Dk,Nk=Object(se.b)("store")(_k=Object(se.c)(_k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sk(e,t)}(a,e);var t,n,r,o=jk(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"componentDidMount",value:function(){Bn.a.bind("ctrl+x",this.props.store.toggleConfidence)}},{key:"componentWillUnmount",value:function(){Bn.a.unbind("ctrl+x")}},{key:"render",value:function(){var e=this.props.store,t=e.showConfidence,n=e.toggleConfidence,r=t?"Hide confidence colors (Ctrl+X)":"Show confidence colors (Ctrl+X)";return s.a.createElement("li",{className:"spacer--left d-none d-sm-block",onMouseDown:n},s.a.createElement("div",{className:"tool--wrapper"},s.a.createElement("div",{className:"tool--item"},s.a.createElement("span",{className:"cursor--pointer clickable t--toolbar-confidence","data-balloon":r,"data-balloon-pos":"down"},t?s.a.createElement("i",{className:"far fa-fw fa-thermometer-full text--color-primary-opposite"}):s.a.createElement("i",{className:"far fa-fw fa-thermometer-empty"})))))}}])&&xk(t.prototype,n),r&&xk(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||_k)||_k,Pk=Nk;function Tk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Mk(e,t){return Mk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Mk(e,t)}function Ak(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Lk(e);if(t){var o=Lk(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Lk(e){return Lk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Lk(e)}var Rk,Fk,zk,Bk=Object(se.b)("store","user")(Dk=Object(se.c)(Dk=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mk(e,t)}(a,e);var t,n,r,o=Ak(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).togglePlayingWithTab=function(t){return e.props.store.uiState.isModalOpen||e.props.store.togglePlaying(t)},e}return t=a,(n=[{key:"componentDidMount",value:function(){var e=this.props.store,t=e.transcript,n=e.uiState;Bn.a.prototype.stopCallback=function(){return!1},Bn.a.bind("ctrl+space",e.togglePlaying),Bn.a.bind("tab",this.togglePlayingWithTab),Bn.a.bind("ctrl+p",e.togglePlaying),Bn.a.bind("ctrl+]",e.skipForward),Bn.a.bind("ctrl+[",e.skipBackward),Bn.a.bind("ctrl+enter",t.cycleSpeakerOnCurrentExchange),Bn.a.bind("ctrl+i",t.toggleCompletedOnCurrentExchange),Bn.a.bind("ctrl+shift+plus",e.skipForward),Bn.a.bind("ctrl+shift+=",e.skipForward),Bn.a.bind("ctrl+shift+-",e.skipBackward),Bn.a.bind("ctrl+shift+.",e.increasePlaybackSpeed),Bn.a.bind("ctrl+>",e.increasePlaybackSpeed),Bn.a.bind("ctrl+.",e.resetPlaybackSpeed),Bn.a.bind("ctrl+,",e.resetPlaybackSpeed),Bn.a.bind("ctrl+shift+,",e.decreasePlaybackSpeed),Bn.a.bind("ctrl+<",e.decreasePlaybackSpeed),Bn.a.bind("ctrl+h",t.applyHighlight),Bn.a.bind("ctrl+s",t.applyStrikethrough),Bn.a.bind("ctrl+c",t.copySelectedText),Bn.a.bind("ctrl+d",e.addSelectedWordToDictionary),Bn.a.bind("ctrl+shift+h",n.toggleFindAndReplaceModal),Bn.a.bind("ctrl+shift+s",n.toggleGenerateSubtitlesModal),Bn.a.bind("ctrl+k",n.toggleExportSelectedModal),Bn.a.bind("ctrl+/",n.toggleKeyboardShortcutsModal),Bn.a.bind("ctrl+u",n.cycleVideoSize),Bn.a.bind("ctrl+e",n.toggleExportModal)}},{key:"componentWillUnmount",value:function(){Bn.a.unbind("ctrl+space"),Bn.a.unbind("tab"),Bn.a.unbind("ctrl+p"),Bn.a.unbind("ctrl+]"),Bn.a.unbind("ctrl+["),Bn.a.unbind("ctrl+enter"),Bn.a.unbind("ctrl+i"),Bn.a.unbind("ctrl+plus"),Bn.a.unbind("ctrl+="),Bn.a.unbind("ctrl+0"),Bn.a.unbind("ctrl+-"),Bn.a.unbind("ctrl+h"),Bn.a.unbind("ctrl+s"),Bn.a.unbind("ctrl+c"),Bn.a.unbind("ctrl+d"),Bn.a.unbind("ctrl+shift+h"),Bn.a.unbind("ctrl+shift+s"),Bn.a.unbind("ctrl+k"),Bn.a.unbind("ctrl+/"),Bn.a.unbind("ctrl+shift+."),Bn.a.unbind("ctrl+shift+,"),Bn.a.unbind("ctrl+<"),Bn.a.unbind("ctrl+>"),Bn.a.unbind("ctrl+,"),Bn.a.unbind("ctrl+."),Bn.a.unbind("ctrl+u"),Bn.a.unbind("ctrl+e"),Bn.a.unbind("ctrl+shift+plus"),Bn.a.unbind("ctrl+shift+="),Bn.a.unbind("ctrl+shift+-")}},{key:"render",value:function(){var e=this.props,t=e.store,n=e.user,r=t.addSelectedWordToDictionary,o=t.readonly,a=t.transcript,i=t.playing,l=t.playbackSpeed,c=t.skipBackward,u=t.skipForward,f=t.showQualityStats,p=t.uiState,d=a.applyStrikethrough,m=a.copySelectedText,h=a.isEmpty,y=i?"fa-pause":"fa-play",b=ue()("d-inline-block",{"toolbar--link-inactive text--color-meta":!t.mediaLoaded});return s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement("div",{className:"transcript--toolbar pt-md-1"},s.a.createElement("ul",{className:"toolbar"},s.a.createElement("li",null,s.a.createElement("div",{className:"tool--wrapper"},s.a.createElement("div",{className:"tool--item"},s.a.createElement("span",{className:b+" cursor--pointer t--transcript-toolbar-playpause",href:"#",onClick:t.togglePlaying,"data-balloon":"Play/Pause (Tab)","data-balloon-pos":"down"},s.a.createElement("i",{className:"far fa-fw ".concat(y)}))))),s.a.createElement(Ia,{tag:"li",className:"toolbar--dropdown t--transcript-toolbar-playback",keyboardToggle:"ctrl+o"},s.a.createElement(Ia.Toggle,{tag:"div",className:"tool--wrapper"},s.a.createElement("div",{className:"tool--item tool--item-text"},s.a.createElement("span",{className:"cursor--pointer clickable t--transcript-toolbar-copy","data-balloon":"Playback Speed (Ctrl+O)","data-balloon-pos":"down"},l.toFixed(1),"x"))),s.a.createElement(Ia.Content,{className:"dropdown--content-left dropdown--content-narrow",title:"Speed"},s.a.createElement(bb,null))),s.a.createElement("li",{className:"spacer--left"},s.a.createElement("div",{className:"tool--wrapper"},s.a.createElement("div",{className:"tool--item"},s.a.createElement("span",{className:b+" cursor--pointer t--transcript-toolbar-backward",onClick:c,"data-balloon":"Rewind 5 secs (Ctrl+[)","data-balloon-pos":"down"},s.a.createElement("i",{className:"far fa-fw fa-backward"}))))),s.a.createElement("li",{className:"spacer--right"},s.a.createElement("div",{className:"tool--wrapper"},s.a.createElement("div",{className:"tool--item"},s.a.createElement("span",{className:b+" cursor--pointer t--transcript-toolbar-forward",onClick:u,"data-balloon":"Forward 5 secs (Ctrl+])","data-balloon-pos":"down"},s.a.createElement("i",{className:"far fa-fw fa-forward"}))))),!o&&s.a.createElement(Pb,{transcript:a,uiState:p}),!o&&s.a.createElement(Ob,{transcript:a}),!o&&f&&s.a.createElement(Pk,null),s.a.createElement("li",{className:ue()("spacer--left d-none d-sm-block",{hidden:o||h})},s.a.createElement("div",{className:"tool--wrapper"},s.a.createElement("div",{className:"tool--item"},s.a.createElement("span",{className:"cursor--pointer t--transcript-toolbar-replace","data-balloon":"Find and Replace (Ctrl+Shift+H)","data-balloon-pos":"down",onClick:p.showFindAndReplaceModal},s.a.createElement("i",{className:"far fa-fw fa-search"}))))),(!o||h)&&s.a.createElement(Ok,{transcript:a}),s.a.createElement("li",{className:ue()("d-none d-sm-block",{hidden:o||h})},s.a.createElement("div",{className:"tool--wrapper"},s.a.createElement("div",{className:"tool--item"},s.a.createElement("span",{className:"cursor--pointer clickable t--transcript-toolbar-strikethrough","data-balloon":"Strikethrough (Ctrl+S)","data-balloon-pos":"down",onMouseDown:d},s.a.createElement("i",{className:"far fa-fw fa-strikethrough "}))))),!a.translated&&s.a.createElement("li",{className:ue()("spacer--left d-none d-sm-block",{hidden:o||h})},s.a.createElement("div",{className:"tool--wrapper"},s.a.createElement("div",{className:"tool--item"},s.a.createElement("span",{className:"cursor--pointer clickable","data-balloon":"Add to Dictionary (Ctrl+D)","data-balloon-pos":"down",onMouseDown:r},s.a.createElement("i",{className:"far fa-fw fa-atlas "}))))),s.a.createElement("li",{className:ue()("d-none d-lg-block",{hidden:o||h})},s.a.createElement("div",{className:"tool--wrapper"},s.a.createElement("div",{className:"tool--item"},s.a.createElement("span",{className:"cursor--pointer clickable t--transcript-toolbar-copy",onMouseDown:m,"data-balloon":"Copy text (Ctrl+C)","data-balloon-pos":"down"},s.a.createElement("i",{className:"far fa-fw fa-copy"}))))),!n.preferences.auto_save&&s.a.createElement("li",{className:ue()("spacer--left d-none d-lg-block",{hidden:o||h})},s.a.createElement("div",{className:"tool--wrapper"},s.a.createElement("div",{className:"tool--item"},s.a.createElement("span",{className:"cursor--pointer clickable t--transcript-toolbar-save",onMouseDown:t.forceSaveEditorState,"data-balloon":"Save edits now","data-balloon-pos":"down"},s.a.createElement("i",{className:"far fa-fw fa-save"})))))),s.a.createElement(Yk,{store:t,user:n}))))}}])&&Tk(t.prototype,n),r&&Tk(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||Dk)||Dk,Yk=Object(se.c)((function(e){var t=e.store,n=e.user,r=t.canShare,o=t.preventExportingAndSharing,a=t.readonly,i=t.transcript,l=t.uiState,c=t.isOwner&&n.hasPatreonAccount;return o?s.a.createElement("div",{className:"btn-group ms-auto"},s.a.createElement("span",{className:"clickable btn btn-toolbar cursor--pointer t--transcript-btn-export","data-balloon":"Sharing is disabled. Please contact the admin.","data-balloon-pos":"down-left"},s.a.createElement("i",{className:"far fa-fw me-1 fa-share-alt d-none d-lg-inline-block"}),"Share"),s.a.createElement("span",{className:"clickable btn btn-toolbar cursor--pointer t--transcript-btn-export","data-balloon":"Exporting is disabled. Please contact the admin.","data-balloon-pos":"down-left"},s.a.createElement("i",{className:"far fa-fw mx-1 fa-download d-none d-lg-inline-block"}),"Export")):s.a.createElement("div",{className:"btn-group ms-auto"},c&&s.a.createElement("span",{className:"clickable btn btn-patreon cursor--pointer t--transcript-btn-patreon","data-balloon":"Share transcript with your patrons","data-balloon-pos":"down",onClick:l.showPatreonModal},s.a.createElement("i",{className:"fab fa-fw me-1 fa-patreon d-none d-lg-inline-block"}),"Patreon"),r&&s.a.createElement("span",{className:"clickable btn btn-toolbar cursor--pointer t--transcript-btn-share","data-balloon":"Share this transcript","data-balloon-pos":"down",onClick:l.showShareModal},s.a.createElement("i",{className:"far fa-fw me-1 fa-share-alt d-none d-lg-inline-block"}),"Share"),!a&&i.isComplete&&s.a.createElement("span",{className:"clickable btn btn-toolbar d-none d-md-inline-block cursor--pointer t--transcript-btn-embed","data-balloon":"Embed transcript on your website","data-balloon-pos":"down",onClick:l.showEmbedModal},s.a.createElement("i",{className:"far fa-fw me-1 fa-code d-none d-lg-inline-block"}),"Embed"),i.isComplete&&s.a.createElement("span",{className:"clickable btn btn-primary cursor--pointer t--transcript-btn-export","data-balloon":"Export and save to your computer","data-balloon-pos":"down",onClick:l.showExportModal},s.a.createElement("i",{className:"far fa-fw me-1 fa-download d-none d-lg-inline-block"}),"Export"))})),Ik=Bk;function Hk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Uk(e,t){return Uk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Uk(e,t)}function Wk(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Vk(e);if(t){var o=Vk(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Vk(e){return Vk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Vk(e)}var qk,Gk=(Rk=d.action.bound,Object(se.c)((zk=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Uk(e,t)}(a,e);var t,n,r,o=Wk(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"moveToPosition",value:function(e){this.props.store.setNeedsScroll(),this.props.store.updatePosition(e)}},{key:"renderNote",value:function(e,t){var n=this,r=e.from,o=e.note;return o?s.a.createElement("li",{key:e.from+t},s.a.createElement("span",{className:"clickable",onClick:function(){return n.moveToPosition(r)},title:"Jump to "+Object(we.e)(r)},s.a.createElement("i",{className:"fa fa-fw fa-sticky-note text--size-800rem text--color-yellow"})," ",Object(we.e)(r)),s.a.createElement("p",null,o)):null}},{key:"renderEmptyNotes",value:function(){var e=this;return s.a.createElement("li",null,s.a.createElement("div",{className:"mb-3 d-block text--size-800rem"},s.a.createElement("strong",{className:""},s.a.createElement("i",{className:"far fa-fw fa-sticky-note text--color-yellow me-1"}),"Empty sticky note:")," There isn't a note here. Click to add a note.",s.a.createElement("br",null),s.a.createElement("strong",{className:""},s.a.createElement("i",{className:"fas fa-fw fa-sticky-note text--color-yellow me-1"}),"Dark sticky note:")," Someone added a note here. Click to view/edit.",s.a.createElement("br",null),s.a.createElement("br",null),"All your notes will be shown here and they'll look like this:"),s.a.createElement("span",{className:"clickable",onClick:function(){return e.moveToPosition(0)},title:"Jump to 00:00:00"},s.a.createElement("i",{className:"fas fa-fw fa-sticky-note text--size-800rem text--color-yellow"})," 00:00:00"),s.a.createElement("p",null,"This is an example note. Instantly jump to the part of the audio associated with this note by clicking on the timestamp. This note is associated with 00:00:00, so you'll go to the beginning of the file."))}},{key:"render",value:function(){var e=this,t=this.props.store.transcript.value;if(!t)return null;var n=t.map((function(t,n){return e.renderNote(t,n)})).filter((function(e){return!!e}));return s.a.createElement("div",{className:"notes--container"},s.a.createElement("div",{className:"row notes--container-inner"},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement("h4",null,n.length?"Notes":"No Notes"),s.a.createElement("ol",{className:"text--size-800rem notes-list"},n.length?n:this.renderEmptyNotes()))))}}])&&Hk(t.prototype,n),r&&Hk(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),function(e,t,n,r,o){var a={};Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null)}(zk.prototype,"moveToPosition",[Rk],Object.getOwnPropertyDescriptor(zk.prototype,"moveToPosition"),zk.prototype),Fk=zk))||Fk),Kk=Gk,$k=Object(se.c)((function(e){var t=e.store,n=(e.user,t.uiState);return s.a.createElement("div",null,s.a.createElement("ol",{className:"dropdown--menu"},!n.isTimelineShown&&s.a.createElement("li",null,s.a.createElement("a",{className:"clickable",onClick:n.showTimeline,title:"Adjust subtitles and timestamps easily."},s.a.createElement("i",{className:"far fa-fw fa-stream me-2"}),"Show timeline")),n.isTimelineShown&&s.a.createElement("li",null,s.a.createElement("a",{className:"clickable",onClick:n.hideTimeline,title:"Adjust subtitles and timestamps easily."},s.a.createElement("i",{className:"far fa-fw fa-stream me-2"}),"Hide timeline")),s.a.createElement("li",null,s.a.createElement("a",{className:"clickable",onClick:n.showGenerateSubtitlesModal,title:"Split transcript based on character count or subtitle duration"},s.a.createElement("i",{className:"far fa-fw fa-line-columns me-2"}),"Split transcript")),t.isVideo&&!t.preventExportingAndSharing&&t.canTranslateAndAlign&&s.a.createElement(s.a.Fragment,null,s.a.createElement("li",{className:"item--spacer-top"},s.a.createElement("a",{className:"clickable",onClick:n.showCustomizeSubtitlesModal,title:"Customize the look and feel of your subtitles"},s.a.createElement("i",{className:"far fa-fw fa-edit me-2"}),"Customize style")),s.a.createElement("li",null,s.a.createElement("a",{className:"clickable",onClick:n.showBurnInSubtitlesModal,title:"Your custom subtitles will be hardcoded into your video"},s.a.createElement("i",{className:"far fa-fw fa-fire-alt me-2"}),"Burn-In")),s.a.createElement("li",null,s.a.createElement("a",{className:"clickable",onClick:n.showExportedVideosModal,title:"Access your previously exported videos"},s.a.createElement("i",{className:"far fa-fw fa-film-alt me-2"}),"Exported Videos")))))}));function Jk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Xk(e,t){return Xk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xk(e,t)}function Qk(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Zk(e);if(t){var o=Zk(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Zk(e){return Zk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Zk(e)}var eO,tO=Object(se.c)(qk=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xk(e,t)}(a,e);var t,n,r,o=Qk(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.store,n=e.user,r=t.canDelete,o=t.isOwner,a=t.recording,i=t.showQualityStats,l=t.uiState,c=a.privateFile;return s.a.createElement("div",null,s.a.createElement("ol",{className:"dropdown--menu"},s.a.createElement("li",null,s.a.createElement("a",{className:"clickable",onClick:t.forceSaveEditorState,title:"Instantly save your edits to our servers"},s.a.createElement("i",{className:"far fa-fw fa-save me-2"}),"Save edits now")),s.a.createElement("li",null,s.a.createElement("a",{className:"clickable",onClick:l.showSaveACopyModal,title:"Save a copy of this transcript with edits"},s.a.createElement("i",{className:"far fa-fw fa-file-export me-2"}),"Save a copy")),s.a.createElement("li",null,s.a.createElement("a",{className:"clickable",onClick:l.showFileNameModal,title:"Rename this file"},s.a.createElement("i",{className:"far fa-fw fa-terminal me-2"}),"Rename this file")),o&&n.teamAccount&&s.a.createElement("li",null,s.a.createElement("a",{className:"clickable",onClick:l.showMakePrivateModal,title:c?"Everyone on your team can see this file":"Only you can see this file"},s.a.createElement("i",{className:ue()("far fa-fw me-2",{"fa-eye":c,"fa-eye-slash":!c})}),c?"Make visible to team":"Make private")),r&&s.a.createElement("li",null,s.a.createElement("a",{className:"link--red","data-confirm":"Are you sure that you want to delete this file?","data-method":"delete",href:"".concat(a.basePath,"/").concat(a.id),title:"Remove this file from Sonix"},s.a.createElement("i",{className:"far fa-fw fa-trash me-2"}),"Delete this file")),s.a.createElement("li",{className:"item--spacer-top"},s.a.createElement("a",{className:"clickable",onClick:l.showTranscriptDetailsModal,title:"See all clips created"},s.a.createElement("i",{className:"far fa-fw fa-info-circle me-2"}),"Transcript details")),i&&s.a.createElement("li",null,s.a.createElement("a",{className:"clickable",onClick:l.showQualityModal,title:"See the confidence our AI had in producing your transcript"},s.a.createElement("i",{className:"far fa-fw fa-temperature-full me-2"}),"Transcript quality")),s.a.createElement("li",null,s.a.createElement("a",{className:"clickable t--timecode-adjust-menu",onClick:l.showSpeakersModal,title:"Speakers breakdown"},s.a.createElement("i",{className:"far fa-fw fa-volume me-2"}),"Speakers breakdown")),s.a.createElement("li",{className:"item--spacer-top"},s.a.createElement("a",{className:"clickable",onClick:l.showVersionModal,title:"Go back to previous versions of your transcript"},s.a.createElement("i",{className:"far fa-fw fa-history me-2"}),"Version history"))))}}])&&Jk(t.prototype,n),r&&Jk(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||qk,nO=tO;function rO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function oO(e,t){return oO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},oO(e,t)}function aO(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=iO(e);if(t){var o=iO(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function iO(e){return iO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},iO(e)}var lO,sO=Object(se.c)(eO=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oO(e,t)}(a,e);var t,n,r,o=aO(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props.store,t=(e.transcript,e.uiState,new Date),n=new Date("2024-08-01");return s.a.createElement("div",null,s.a.createElement("ol",{className:"dropdown--menu"},s.a.createElement("li",{className:""},s.a.createElement("a",{className:"clickable",onClick:e.uiState.showCustomPromptModal,title:"Interact with your transcript with your own custom AI prompt"},s.a.createElement("i",{className:"fas fa-fw fa-quotes me-2"}),"Custom prompt",t<n&&s.a.createElement("strong",{className:"d-inline-block badge badge--accent mx-2"},"New"))),s.a.createElement("li",{className:"item--spacer-top"},s.a.createElement("a",{className:"clickable",onClick:e.uiState.showSummaryModal,title:"Use cutting-edge AI to generate a summary of your transcript"},s.a.createElement("i",{className:"far fa-fw fa-indent me-2"}),"Generate summary")),s.a.createElement("li",{className:""},s.a.createElement("a",{className:"clickable",onClick:e.uiState.showAIChaptersModal,title:"Use cutting-edge AI to create chapters from your transcript"},s.a.createElement("i",{className:"far fa-fw fa-book me-2"}),"Create chapters")),s.a.createElement("li",{className:"item--spacer-top"},s.a.createElement("a",{className:"clickable",onClick:e.uiState.showAISentimentModal,title:"Use cutting-edge AI to detect the sentiment of your transcript"},s.a.createElement("i",{className:"far fa-fw fa-comment-smile me-2"}),"Sentiment analysis")),s.a.createElement("li",{className:""},s.a.createElement("a",{className:"clickable",onClick:e.uiState.showAIThemeModal,title:"Use cutting-edge AI to analyse the overall theme of your transcript"},s.a.createElement("i",{className:"far fa-fw fa-archway me-2"}),"Thematic analysis")),s.a.createElement("li",{className:"item--spacer-top"},s.a.createElement("a",{className:"clickable",onClick:e.uiState.showAITopicDetectionModal,title:"Use cutting-edge AI to detect the sentiment of your transcript"},s.a.createElement("i",{className:"far fa-fw fa-map-signs me-2"}),"Topic detection")),s.a.createElement("li",{className:""},s.a.createElement("a",{className:"clickable",onClick:e.uiState.showAIEntityDetectionModal,title:"Use cutting-edge AI to analyse the overall theme of your transcript"},s.a.createElement("i",{className:"far fa-fw fa-map-pin me-2"}),"Entity detection"))))}}])&&rO(t.prototype,n),r&&rO(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||eO,cO=sO;function uO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function fO(e,t){return fO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fO(e,t)}function pO(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=dO(e);if(t){var o=dO(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function dO(e){return dO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},dO(e)}var mO=Object(se.c)(lO=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fO(e,t)}(a,e);var t,n,r,o=pO(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props.store,t=e.transcript,n=e.uiState,r=e.canTranslateAndAlign&&!t.translated;return s.a.createElement("div",null,s.a.createElement("ol",{className:"dropdown--menu"},s.a.createElement("li",null,s.a.createElement("a",{className:"clickable t--timecode-adjust-menu",onClick:n.showFindAndReplaceModal,title:"Find and replace words or phrases"},s.a.createElement("i",{className:"far fa-fw fa-search me-2"}),"Find and replace")),s.a.createElement("li",{className:"item--spacer-bottom"},s.a.createElement("a",{className:"clickable",onClick:n.showClipsModal,title:"See all clips created"},s.a.createElement("i",{className:"far fa-fw fa-cut me-2"}),"Clips created")),r&&s.a.createElement("li",{key:"realign"},s.a.createElement("a",{className:"clickable t--timecode-realign-menu",onClick:n.showRealignTimecodesModal,title:"Regenerate per word timestamps"},s.a.createElement("i",{className:"far fa-fw fa-stopwatch me-2"}),"Realign timecodes")),s.a.createElement("li",null,s.a.createElement("a",{className:"clickable t--timecode-adjust-menu",onClick:n.showAdjustOffsetModal,title:"Shift the timecodes"},s.a.createElement("i",{className:"far fa-fw fa-hourglass-start me-2"}),"Adjust start timecode")),r&&s.a.createElement("li",{key:"paste"},s.a.createElement("a",{className:"clickable t--timecode-adjust-menu",onClick:n.showPasteExternalTranscriptModal,title:"Import an external transcript and we'll sync it to the audio"},s.a.createElement("i",{className:"far fa-fw fa-file-import me-2"}),"Import SRT or external transcript"))))}}])&&uO(t.prototype,n),r&&uO(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||lO,hO=mO;function yO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function bO(e,t){return bO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bO(e,t)}function vO(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=gO(e);if(t){var o=gO(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function gO(e){return gO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gO(e)}var wO,EO=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bO(e,t)}(a,e);var t,n,r,o=vO(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props.subject||"Please help",t=this.props.text||"wecare@sonix.ai",n="mailto:"+(this.props.email||"wecare@sonix.ai")+"?subject="+e.replace(/ /g,"%20");return s.a.createElement("a",{className:"link--underline",href:n,target:"_blank"},t)}}])&&yO(t.prototype,n),r&&yO(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),_O=EO;function kO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function OO(e,t){return OO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},OO(e,t)}function xO(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=SO(e);if(t){var o=SO(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function SO(e){return SO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},SO(e)}var jO,CO,DO,NO,PO,TO,MO,AO,LO,RO,FO,zO,BO,YO,IO,HO,UO,WO,VO,qO,GO,KO,$O,JO,XO,QO=function(e){var t=e.store,n=t.recording,r=t.transcript,o=Object(we.i)(n.language);return r.translated?s.a.createElement("li",null,s.a.createElement("a",{className:"clickable",onClick:function(){t.fetchRecording(!0),Object(we.k)("app.translation.switch_original_language",o.language)},"data-balloon":"Switch to ".concat(o.language," transcript (Original audio)"),"data-balloon-pos":"right"},s.a.createElement("i",{className:"far fa-fw fa-volume me-2"}),s.a.createElement("span",{className:"d-inline"},o.language),o.flag.split(",").map((function(e,t){return s.a.createElement("i",{key:"selected-flag-"+t,className:"flag-icon ms-2 flag-icon-"+e})})))):s.a.createElement("li",{className:"selected","data-balloon":"Current ".concat(o.language," transcript (Original audio)"),"data-balloon-pos":"right"},s.a.createElement("i",{className:"fas fa-fw fa-volume me-2"}),s.a.createElement("span",{className:"d-inline"},o.language),o.flag.split(",").map((function(e,t){return s.a.createElement("i",{key:"selected-flag-"+t,className:"flag-icon ms-2 flag-icon-"+e})})))},ZO=function(e){var t=e.store;return t.sortedTranslations.map((function(e,n){return s.a.createElement(ex,{store:t,translation:e,key:n})}))},ex=function(e){var t=e.translation,n=e.store;return n.transcript.id===t.id?s.a.createElement("li",{className:"selected","data-balloon":"Current translated ".concat(t.language," transcript"),"data-balloon-pos":"right"},s.a.createElement("i",{className:"fas fa-fw fa-globe me-2"}),s.a.createElement("span",{className:"d-inline"},t.language),t.flag.split(",").map((function(e,t){return s.a.createElement("i",{key:"selected-flag-"+t,className:"flag-icon ms-2 flag-icon-"+e})}))):s.a.createElement("li",null,s.a.createElement("a",{className:"clickable",onClick:function(){n.fetchTranslation(t.id),Object(we.k)("app.translation.switch_language",t.language)},"data-balloon":"Switch to ".concat(t.language," transcript"),"data-balloon-pos":"right"},s.a.createElement("i",{className:"far fa-fw fa-globe me-2"}),s.a.createElement("span",{className:"d-inline"},t.language),t.flag.split(",").map((function(e,t){return s.a.createElement("i",{key:"selected-flag-"+t,className:"flag-icon ms-2 flag-icon-"+e})}))))},tx=Object(se.c)(wO=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&OO(e,t)}(a,e);var t,n,r,o=xO(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props.store,t=e.canTranslateAndAlign,n=e.recording,r=e.readonly,o=e.transcript,a=e.translations,i=e.uiState;if(!o.language)return null;var l=Object(we.i)(o.language);return a.length&&!t?s.a.createElement("ol",{className:"dropdown--menu"},s.a.createElement(QO,{store:e}),s.a.createElement(ZO,{store:e})):n.isTranslationSupported?s.a.createElement("ol",{className:"dropdown--menu"},t&&s.a.createElement("li",{className:""},s.a.createElement("a",{className:"clickable t--translation-dropdown-new-language",onClick:i.showNewTranslationModal,"data-balloon":"Translate ".concat(Object(we.i)(n.language).language," transcript to a different language"),"data-balloon-pos":"right"},s.a.createElement("i",{className:"far fa-fw fa-plus me-2"}),"Translate transcript to a different language")),t&&s.a.createElement("li",{className:"item--spacer-bottom"},s.a.createElement("a",{className:"clickable t--translation-dropdown-new-language",onClick:i.showNewTranslationSrtModal,"data-balloon":"Import an SRT in a different language (not ".concat(Object(we.i)(n.language).language,")"),"data-balloon-pos":"right"},s.a.createElement("i",{className:"far fa-fw fa-file-import me-2"}),"Import SRT of a different language")),t&&o.translated&&!r&&s.a.createElement("li",{className:"item--spacer-bottom"},s.a.createElement("a",{className:"clickable link--red",onClick:e.deleteTranslation,"data-confirm":"Are you sure that you want to delete this ".concat(l.language," translation?"),"data-balloon-pos":"right"},s.a.createElement("i",{className:"far fa-fw fa-trash me-2"}),"Remove ",l.language," translation")),s.a.createElement(QO,{store:e}),s.a.createElement(ZO,{store:e})):s.a.createElement("div",{className:"media"},s.a.createElement("i",{className:"far fa-exclamation-triangle text--color-yellow fa-2x me-3"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("p",{className:"text--size-800rem"},"Currently, we do not support translating transcripts from the ",l.language," language."),s.a.createElement("p",{className:"text--size-800rem mb-0"},"Have a question? Email our support team at ",s.a.createElement(_O,{subject:"Translation language question: "+l.language}),".")))}}])&&kO(t.prototype,n),r&&kO(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||wO,nx=tx;function rx(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function ox(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ax(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function ix(e,t,n){return t&&ax(e.prototype,t),n&&ax(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function lx(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sx(e,t)}function sx(e,t){return sx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sx(e,t)}function cx(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=fx(e);if(t){var o=fx(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ux(e)}(this,n)}}function ux(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fx(e){return fx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fx(e)}function px(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var dx,mx=(jO=Object(se.b)("store"),CO=d.action.bound,DO=d.action.bound,jO(NO=Object(se.c)((PO=function(e){lx(n,e);var t=cx(n);function n(){var e;ox(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return rx(e=t.call.apply(t,[this].concat(o)),"isModalShown",TO,ux(e)),e}return ix(n,[{key:"showModal",value:function(){this.isModalShown=!0}},{key:"closeModal",value:function(){this.unlocking=!1,this.isModalShown=!1}},{key:"renderModalContent",value:function(){var e=this.props.store,t=e.canLockFile,n=e.isLockedByAnotherUser;return t?s.a.createElement(yx,{closeModal:this.closeModal}):n?s.a.createElement(hx,{closeModal:this.closeModal}):s.a.createElement(bx,{closeModal:this.closeModal})}},{key:"render",value:function(){var e,t,n,r=this.props.store,o=r.canLockFile,a=r.isLockedByAnotherUser,i=r.lockedBy;return o?(e="Click to edit",t="fa-unlock",n="No one can edit this file until you finish."):a?(e="".concat(i," is editing"),t="fa-lock",n="View only. You can edit when they finish."):(e="Editing",t="fa-lock",n="Shared with others. No one can edit while you are."),s.a.createElement("a",{className:"badge badge-info-subtle rounded-pill text--weight-400 clickable",onMouseDown:this.showModal,"data-balloon":n,"data-balloon-pos":"down"},s.a.createElement("i",{className:ue()("fas fa-fw me-1",t)}),e,s.a.createElement(ao,{modalClasses:"smodal--content smodal--content-sm",isOpen:this.isModalShown,onRequestClose:this.closeModal,modalTitle:"This file is being edited",modalIcon:"far fa-lock"},this.renderModalContent()))}}]),n}(s.a.Component),TO=px(PO.prototype,"isModalShown",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),px(PO.prototype,"showModal",[CO],Object.getOwnPropertyDescriptor(PO.prototype,"showModal"),PO.prototype),px(PO.prototype,"closeModal",[DO],Object.getOwnPropertyDescriptor(PO.prototype,"closeModal"),PO.prototype),NO=PO))||NO)||NO),hx=(MO=Object(se.b)("store"),AO=d.action.bound,MO(LO=Object(se.c)((RO=function(e){lx(n,e);var t=cx(n);function n(){var e;ox(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return rx(e=t.call.apply(t,[this].concat(o)),"unlocking",FO,ux(e)),e}return ix(n,[{key:"render",value:function(){var e=this.props.store,t=e.lockedBy,n=e.user;return s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10 mb-2"},s.a.createElement("h3",null,"You can only view this file"),s.a.createElement("p",null,"Only one person can edit at a time. Right now, ",t," is editing this file. Please wait for them to finish and try again."),n.isAdmin&&s.a.createElement("p",null,"As an account administrator, you can start editing this file immediately and prevent ",t," from making any further edits."),this.unlocking?s.a.createElement(_o,{text:"Unlocking File. Please wait."}):s.a.createElement("div",{className:"mt-4"},!n.isAdmin&&s.a.createElement("div",{className:"form-actions"},s.a.createElement("button",{className:"btn btn-primary",onClick:this.props.closeModal},s.a.createElement("i",{className:"far fa-check me-2"}),"Got it—I'll patiently wait")),n.isAdmin&&s.a.createElement("div",{className:"form-actions"},s.a.createElement("button",{className:"btn btn-red",onClick:this.forceUnlock},s.a.createElement("i",{className:"far fa-check me-2"}),"I want to edit this file"),s.a.createElement("button",{className:"btn",onClick:this.props.closeModal},s.a.createElement("i",{className:"far fa-times me-2"}),"Cancel")))))}},{key:"forceUnlock",value:function(){var e=this;this.unlocking=!0,this.props.store.unlockResource(!0).then((function(){e.unlocking=!1,e.props.closeModal()}))}}]),n}(s.a.Component),FO=px(RO.prototype,"unlocking",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),px(RO.prototype,"forceUnlock",[AO],Object.getOwnPropertyDescriptor(RO.prototype,"forceUnlock"),RO.prototype),LO=RO))||LO)||LO),yx=(zO=Object(se.b)("store"),BO=d.action.bound,YO=d.action.bound,IO=d.action.bound,zO(HO=Object(se.c)((UO=function(e){lx(n,e);var t=cx(n);function n(){var e;ox(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return rx(e=t.call.apply(t,[this].concat(o)),"locking",WO,ux(e)),rx(e,"error",VO,ux(e)),e}return ix(n,[{key:"lock",value:function(){this.locking=!0,this.props.store.lockResource().then(this.onDoneLocking).catch(this.onLockError)}},{key:"onDoneLocking",value:function(){this.locking=!1,this.props.closeModal()}},{key:"onLockError",value:function(){this.locking=!1,this.error=!0}},{key:"renderLockOptions",value:function(){return this.locking?s.a.createElement(_o,{text:"Locking File. Please wait."}):s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("button",{className:"btn btn-primary",onClick:this.lock},s.a.createElement("i",{className:"fa fa-pencil me-2"}),"I want to edit this file"),s.a.createElement("button",{className:"btn",onClick:this.props.closeModal},s.a.createElement("i",{className:"fa fa-times me-2"}),"Let others edit this file"))}},{key:"render",value:function(){var e,t=this.props.store,n=t.isOwner,r=t.ownerName;return e=n?"This file is shared with other people, but only one person can edit at a time. What would you like to do?":"".concat(r," shared this file with other people, but only one person can edit at a time. What would you like to do?"),s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10 mb-2"},this.error&&s.a.createElement(ni,null,s.a.createElement("p",{className:"mb-0"},"Whoops. Someone else just started editing this file. Please refresh the page and try again.")),s.a.createElement("h4",null,"No one is editing"),s.a.createElement("p",null,e),this.renderLockOptions()))}}]),n}(s.a.Component),WO=px(UO.prototype,"locking",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),VO=px(UO.prototype,"error",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),px(UO.prototype,"lock",[BO],Object.getOwnPropertyDescriptor(UO.prototype,"lock"),UO.prototype),px(UO.prototype,"onDoneLocking",[YO],Object.getOwnPropertyDescriptor(UO.prototype,"onDoneLocking"),UO.prototype),px(UO.prototype,"onLockError",[IO],Object.getOwnPropertyDescriptor(UO.prototype,"onLockError"),UO.prototype),HO=UO))||HO)||HO),bx=(qO=Object(se.b)("store"),GO=d.action.bound,KO=d.action.bound,qO($O=Object(se.c)((JO=function(e){lx(n,e);var t=cx(n);function n(){var e;ox(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return rx(e=t.call.apply(t,[this].concat(o)),"unlocking",XO,ux(e)),e}return ix(n,[{key:"unlock",value:function(){this.unlocking=!0,this.props.store.unlockResource().then(this.onDoneUnlocking)}},{key:"onDoneUnlocking",value:function(){this.unlocking=!1,this.props.closeModal()}},{key:"render",value:function(){var e,t=this.props.store,n=t.isOwner,r=t.ownerName;return e=n?"Only one person can edit at a time. This transcript is shared with others. What would you like to do?":"Only one person can edit this file at a time; ".concat(r," has shared it with others. What would you like to do?"),s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10 mb-2"},s.a.createElement("h4",null,"You are editing this file"),s.a.createElement("p",null,e),this.renderUnlockOptions()))}},{key:"renderUnlockOptions",value:function(){return this.unlocking?s.a.createElement(_o,{text:"Unlocking file. Please wait."}):s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("button",{className:"btn btn-primary",onClick:this.unlock},s.a.createElement("i",{className:"fa fa-check me-2"}),"Let someone else edit"),s.a.createElement("button",{className:"btn",onClick:this.props.closeModal},s.a.createElement("i",{className:"fa fa-times me-2"}),"Continue editing"))}}]),n}(s.a.Component),XO=px(JO.prototype,"unlocking",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),px(JO.prototype,"unlock",[GO],Object.getOwnPropertyDescriptor(JO.prototype,"unlock"),JO.prototype),px(JO.prototype,"onDoneUnlocking",[KO],Object.getOwnPropertyDescriptor(JO.prototype,"onDoneUnlocking"),JO.prototype),$O=JO))||$O)||$O),vx=mx;function gx(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function wx(e,t){return wx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wx(e,t)}function Ex(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_x(e);if(t){var o=_x(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function _x(e){return _x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_x(e)}var kx,Ox=Object(se.b)("store","user")(dx=Object(se.c)(dx=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wx(e,t)}(a,e);var t,n,r,o=Ex(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"renderSaveStatus",value:function(){var e=this.props,t=e.store,n=e.user,r=t.uiState;return t.readonly?null:!n.preferences.auto_save&&t.hasPendingSaves?s.a.createElement("span",{className:"badge badge-info-subtle text--weight-400 recording-menu-warning","data-balloon":"Remember to save your edits (Click on the save button below or File > Save edits now). To enable autosave, go to preferences.","data-balloon-pos":"down","data-balloon-length":"large"},s.a.createElement("i",{className:"far fa-fw fa-exclamation-triangle me-1"}),s.a.createElement("span",null,"Autosave disabled")):t.hasInFlightRequests?s.a.createElement("span",{className:"badge badge-info-subtle text--weight-400"},s.a.createElement("i",{className:"far fa-fw fa-spinner fa-spin me-1"}),s.a.createElement("span",null,"Saving")):t.transportLayer.connectionError?s.a.createElement("span",{className:"badge badge-info-subtle text--weight-400","data-balloon":"Offline-mode. All local changes will be synced when you return online.","data-balloon-pos":"down"},s.a.createElement("i",{className:"far fa-fw fa-check-circle me-1"}),s.a.createElement("span",null,"Saved locally")):t.hasPendingSaves?s.a.createElement("span",{className:"badge badge-info-subtle text--weight-400"}):n.preferences.auto_save?n.hasVersionHistory?s.a.createElement("span",{className:"badge badge-info-subtle text--weight-400 animate--fade-to-transparent clickable","data-balloon":"Autosave enabled: Click to open version history.","data-balloon-pos":"down",onClick:r.showVersionModal},s.a.createElement("i",{className:"far fa-fw fa-check me-1"}),s.a.createElement("span",null,this.lastSavedAtFormatted())):s.a.createElement("span",{className:"badge badge-info-subtle text--weight-400 animate--fade-to-transparent clickable","data-balloon":"Sonix automatically saves every change you make.","data-balloon-pos":"down"},s.a.createElement("i",{className:"far fa-fw fa-check me-1"}),s.a.createElement("span",null,this.lastSavedAtFormatted())):s.a.createElement("span",{className:"badge badge-info-subtle text--weight-400 animate--fade-to-transparent clickable","data-balloon":"Autosave disabled: This is when your last changes were saved.","data-balloon-pos":"down"},s.a.createElement("i",{className:"far fa-fw fa-check me-1"}),s.a.createElement("span",null,this.lastSavedAtFormatted()))}},{key:"renderOwner",value:function(){var e=this.props.store,t=e.isOwner,n=e.ownerName,r="".concat(n," shared this transcript with you");if(!t)return s.a.createElement("li",{className:"list-inline-item text--size-800rem"},s.a.createElement("span",{className:"recording-menu-item recording-menu-pill text--size-700rem","data-balloon":r,"data-balloon-pos":"down"},s.a.createElement("i",{className:"fa fa-fw fa-share-alt"})," Shared by ",n))}},{key:"lastSavedAtFormatted",value:function(){var e=this.props.store.transcript;if(e.lastSavedAt){var t=Ol.a.unix(e.lastSavedAt);return t.isSame(Ol.a.now(),"day")?"Last saved today at ".concat(t.format("h:mm a")):"Last saved on ".concat(t.format("MMM D [at] h:mm a"))}return"Auto-saved"}},{key:"renderLockStatus",value:function(){if(this.props.store.multiEdit)return s.a.createElement("li",{className:"list-inline-item"},s.a.createElement(vx,null))}},{key:"render",value:function(){var e=this.props,t=e.store,n=e.user,r=t.readonly,o=t.isTranscriptReady,a=t.transcript,i=(t.uiState,a.isEmpty),l=!i&&(!r||t.translations.length>0)&&!n.disableTranslation,c=!r&&!a.translated&&!n.disableAi;return s.a.createElement("div",{className:"row menu-bar--container d-print-none position-relative"},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement("ul",{className:"menu-bar list-inline"},!r&&s.a.createElement(Ia,{tag:"li",className:"list-inline-item",pushAnalytics:"app.menu.open_file",keyboardToggle:"ctrl+g"},s.a.createElement(Ia.Toggle,{tag:"a",className:"recording-menu-item text--size-800rem clickable"},"File"),s.a.createElement(Ia.Content,{className:"dropdown--content-left"},s.a.createElement(nO,{store:t,user:n}))),!r&&s.a.createElement(Ia,{tag:"li",className:"list-inline-item",pushAnalytics:"app.menu.open_tools"},s.a.createElement(Ia.Toggle,{tag:"a",className:"recording-menu-item text--size-800rem clickable"},"Tools"),s.a.createElement(Ia.Content,{className:"dropdown--content-left dropdown--content-md"},s.a.createElement(hO,{store:t,user:n}))),l&&s.a.createElement(Ia,{tag:"li",className:"list-inline-item",pushAnalytics:"app.menu.open_translations",keyboardToggle:"ctrl+t"},s.a.createElement(Ia.Toggle,{tag:"a",className:"recording-menu-item text--size-800rem clickable"},"Translations"),s.a.createElement(Ia.Content,{className:"dropdown--content-left dropdown--content-md"},s.a.createElement(nx,{store:t,user:n}))),!r&&!i&&s.a.createElement(Ia,{tag:"li",className:"list-inline-item",pushAnalytics:"app.menu.open_subtitles"},s.a.createElement(Ia.Toggle,{tag:"a",className:"recording-menu-item text--size-800rem clickable"},"Subtitles"),s.a.createElement(Ia.Content,{className:"dropdown--content-left",title:"Edit"},s.a.createElement($k,{store:t,user:n}))),c&&s.a.createElement(Ia,{tag:"li",className:"list-inline-item",pushAnalytics:"app.menu.open_tools"},s.a.createElement(Ia.Toggle,{tag:"a",className:"recording-menu-item text--size-800rem clickable"},"AI Analysis",s.a.createElement("strong",{className:"d-inline-block badge badge--accent ms-1"},"New")),s.a.createElement(Ia.Content,{className:"dropdown--content-left dropdown--content-md"},s.a.createElement(cO,{store:t,user:n}))),!i&&s.a.createElement(Ia,{tag:"li",className:"list-inline-item",pushAnalytics:"app.menu.open_notes",keyboardToggle:"ctrl+n"},s.a.createElement(Ia.Toggle,{tag:"a",className:"recording-menu-item text--size-800rem clickable"},"Notes"),s.a.createElement(Ia.Content,{className:"dropdown--content-lg dropdown--content-left"},s.a.createElement(Kk,{store:t}))),this.renderOwner(),this.renderLockStatus(),s.a.createElement("li",{className:"list-inline-item d-none d-md-inline-block"},!r&&o&&this.renderSaveStatus()))))}}])&&gx(t.prototype,n),r&&gx(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||dx)||dx,xx=Ox;function Sx(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function jx(e,t){return jx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jx(e,t)}function Cx(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Dx(e);if(t){var o=Dx(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Dx(e){return Dx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Dx(e)}var Nx=Object(se.c)((function(e){var t=e.store,n=t.recording,r=t.transcript;if(!r.language)return null;var o=Object(we.i)(r.language);return s.a.createElement("span",{className:"badge rounded-pill badge-info-subtle text--weight-400 my-1 ms-1 text--color","data-balloon":"".concat(o.language," transcript is shown"),"data-balloon-pos":"left"},n.language==r.language?s.a.createElement("i",{className:"fas fa-fw fa-volume me-1"}):s.a.createElement("i",{className:"far fa-fw fa-globe me-1"}),o.language,o.flag.split(",").map((function(e,t){return s.a.createElement("i",{key:"selected-flag-"+t,className:"flag-icon mx-1 flag-icon-"+e})})))})),Px=Object(se.c)((function(e){return e.privateFile?s.a.createElement("span",{className:"badge rounded-pill badge-info-subtle my-1 ms-1 text--color-red","data-balloon":"Other members cannot see this file","data-balloon-pos":"left"},s.a.createElement("i",{className:"far fa-fw fa-eye-slash me-1"}),"Private"):null})),Tx=Object(se.c)(kx=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jx(e,t)}(a,e);var t,n,r,o=Cx(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props.store.recording;return s.a.createElement("div",{className:"d-md-flex recording-title--container d-print-block"},s.a.createElement("div",{className:"flex-md-shrink-0 order-md-2 order-1"},s.a.createElement("div",{className:"d-flex d-print-flex"},s.a.createElement("a",{className:"me-auto d-md-none d-inline-block d-print-inline-block logo--sonix-sm t--transcript-sonix-logo",href:"/","data-balloon":"Return to Sonix home","data-balloon-pos":"right"},s.a.createElement("svg",{width:"96px",height:"27px",viewBox:"16 0 305 100",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},s.a.createElement("g",{id:"sonix-logo-word",className:"",transform:"translate(0.000000, 8.000000)",stroke:"",strokeWidth:2,fill:"#2A93D5"},s.a.createElement("path",{d:"M114.333333,33 C113.276417,30.9566293 111.867217,29.3360493 110.105691,28.1382114 C108.344165,26.9403734 106.195135,26.3414634 103.658537,26.3414634 C102.460699,26.3414634 101.245264,26.4823834 100.012195,26.7642276 C98.7791266,27.0460719 97.6693816,27.4864469 96.6829268,28.0853659 C95.696472,28.6842848 94.903797,29.4417298 94.304878,30.3577236 C93.7059591,31.2737173 93.4065041,32.4010773 93.4065041,33.7398374 C93.4065041,36.0650523 94.2167941,37.7560923 95.8373984,38.8130081 C97.4580027,39.869924 99.8888727,40.785904 103.130081,41.5609756 L110.211382,43.2520325 C113.663974,44.0271041 116.535219,45.5948391 118.825203,47.9552846 C121.115188,50.31573 122.260163,53.257435 122.260163,56.7804878 C122.260163,59.458008 121.714098,61.765573 120.621951,63.703252 C119.529805,65.6409311 118.085375,67.2262811 116.288618,68.4593496 C114.491861,69.6924181 112.430906,70.5907831 110.105691,71.1544715 C107.780476,71.71816 105.420066,72 103.02439,72 C99.2194932,72 95.6788782,71.277785 92.402439,69.8333333 C89.1259999,68.3888817 86.3252149,65.9051667 84,62.3821138 L90.0243902,58.2601626 C91.4336114,60.5149164 93.2127264,62.3116464 95.3617886,63.6504065 C97.5108509,64.9891666 100.065026,65.6585366 103.02439,65.6585366 C104.433611,65.6585366 105.842811,65.5000016 107.252033,65.1829268 C108.661254,64.8658521 109.911919,64.3726321 111.004065,63.703252 C112.096211,63.033872 112.976961,62.170737 113.646341,61.1138211 C114.315722,60.0569053 114.650407,58.8238553 114.650407,57.4146341 C114.650407,54.9484972 113.734427,53.1693822 111.902439,52.0772358 C110.070452,50.9850894 107.850962,50.1219544 105.243902,49.4878049 L98.4796748,47.902439 C97.6341421,47.6910559 96.4891671,47.3387559 95.0447154,46.8455285 C93.6002638,46.3523011 92.1910638,45.6124711 90.8170732,44.6260163 C89.4430826,43.6395615 88.2628776,42.3536665 87.2764228,40.7682927 C86.289968,39.1829189 85.796748,37.2276539 85.796748,34.902439 C85.796748,32.365841 86.307583,30.146351 87.3292683,28.2439024 C88.3509536,26.3414539 89.7249236,24.7913339 91.4512195,23.5934959 C93.1775154,22.395658 95.1327804,21.497293 97.3170732,20.898374 C99.5013659,20.299455 101.756086,20 104.081301,20 C107.533893,20 110.739823,20.66937 113.699187,22.0081301 C116.658551,23.3468902 118.948501,25.6368402 120.569106,28.8780488 L114.333333,33 Z M171.858627,46 C171.858627,43.2520188 171.418252,40.6802288 170.537489,38.2845528 C169.656725,35.8888769 168.40606,33.8103069 166.785456,32.0487805 C165.164852,30.2872541 163.209587,28.8956691 160.919603,27.8739837 C158.629618,26.8522984 156.040213,26.3414634 153.15131,26.3414634 C150.262407,26.3414634 147.673002,26.8522984 145.383017,27.8739837 C143.093033,28.8956691 141.155383,30.2872541 139.570009,32.0487805 C137.984635,33.8103069 136.751585,35.8888769 135.870822,38.2845528 C134.990059,40.6802288 134.549684,43.2520188 134.549684,46 C134.549684,48.7479812 134.990059,51.3197712 135.870822,53.7154472 C136.751585,56.1111231 137.984635,58.1896931 139.570009,59.9512195 C141.155383,61.7127459 143.093033,63.1043309 145.383017,64.1260163 C147.673002,65.1477016 150.262407,65.6585366 153.15131,65.6585366 C156.040213,65.6585366 158.629618,65.1477016 160.919603,64.1260163 C163.209587,63.1043309 165.164852,61.7127459 166.785456,59.9512195 C168.40606,58.1896931 169.656725,56.1111231 170.537489,53.7154472 C171.418252,51.3197712 171.858627,48.7479812 171.858627,46 Z M179.468383,46 C179.468383,49.734436 178.816628,53.186976 177.513098,56.3577236 C176.209569,59.5284711 174.395224,62.2764111 172.070009,64.601626 C169.744794,66.9268409 166.979239,68.7411859 163.773261,70.0447154 C160.567283,71.348245 157.026668,72 153.15131,72 C149.346413,72 145.841028,71.348245 142.63505,70.0447154 C139.429072,68.7411859 136.663517,66.9268409 134.338302,64.601626 C132.013087,62.2764111 130.198742,59.5284711 128.895212,56.3577236 C127.591683,53.186976 126.939928,49.734436 126.939928,46 C126.939928,42.265564 127.591683,38.813024 128.895212,35.6422764 C130.198742,32.4715289 132.013087,29.7235889 134.338302,27.398374 C136.663517,25.0731591 139.429072,23.2588141 142.63505,21.9552846 C145.841028,20.651755 149.346413,20 153.15131,20 C157.026668,20 160.567283,20.651755 163.773261,21.9552846 C166.979239,23.2588141 169.744794,25.0731591 172.070009,27.398374 C174.395224,29.7235889 176.209569,32.4715289 177.513098,35.6422764 C178.816628,38.813024 179.468383,42.265564 179.468383,46 Z M191.837173,21.2682927 C191.978095,22.6070528 192.06617,23.9281778 192.1014,25.2317073 C192.136631,26.5352369 192.154246,27.8563619 192.154246,29.195122 L192.365628,29.195122 C193.140699,27.8563619 194.127139,26.6233119 195.324977,25.495935 C196.522815,24.368558 197.861555,23.399733 199.341238,22.5894309 C200.82092,21.7791287 202.388655,21.1449887 204.04449,20.6869919 C205.700324,20.228995 207.338519,20 208.959124,20 C215.300619,20 219.986209,21.673425 223.016034,25.0203252 C226.04586,28.3672254 227.56075,33.1408904 227.56075,39.3414634 L227.56075,70.7317073 L220.58514,70.7317073 L220.58514,43.3577236 C220.58514,37.8617611 219.63393,33.6517761 217.731481,30.7276423 C215.829033,27.8035084 212.306033,26.3414634 207.162376,26.3414634 C206.810071,26.3414634 205.823631,26.4823834 204.203026,26.7642276 C202.582422,27.0460719 200.873767,27.8211319 199.07701,29.0894309 C197.280253,30.3577299 195.677288,32.2601499 194.268067,34.796748 C192.858846,37.333346 192.154246,40.856346 192.154246,45.3658537 L192.154246,70.7317073 L185.178636,70.7317073 L185.178636,32.1544715 C185.178636,30.8157115 185.125791,29.1246715 185.020099,27.0813008 C184.914408,25.0379302 184.791103,23.1002802 184.650181,21.2682927 L191.837173,21.2682927 Z M242.22832,70.7317073 L235.25271,70.7317073 L235.25271,21.2682927 L242.22832,21.2682927 L242.22832,70.7317073 Z M268.151987,44.3089431 L250.184508,21.2682927 L259.696703,21.2682927 L273.43654,39.7642276 L286.542231,21.2682927 L295.208898,21.2682927 L277.981256,44.3089431 L298.696703,70.7317073 L289.184508,70.7317073 L272.591012,49.0650407 L256.631662,70.7317073 L247.753613,70.7317073 L268.151987,44.3089431 Z",id:"sonix"})),s.a.createElement("g",{id:"sonix-logo-lines",className:"",transform:"translate(0.000000, 8.000000)",fillRule:"nonzero",stroke:"",strokeWidth:2,fill:"#2A93D5"},s.a.createElement("polygon",{id:"Line",points:"21 0 21 92 33 92 33 0"}),s.a.createElement("polygon",{id:"Line",points:"42 20 42 72 54 72 54 20"}),s.a.createElement("polygon",{id:"Line",points:"0 20 0 72 12 72 12 20"})))),s.a.createElement(Px,{privateFile:e.privateFile}),s.a.createElement(Nx,{store:this.props.store}))),s.a.createElement("h1",{className:"flex-md-grow-1 text--no-wrap order-md-1 order-2 d-print-block"},e.name||"Untitled"))}}])&&Sx(t.prototype,n),r&&Sx(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||kx,Mx=Tx;function Ax(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Lx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lx(e,t)}(e,t)||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 Lx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Rx=Object(se.c)((function(e){var t=e.store,n=t.isStatusComplete,r=t.playing,o=Ax(Object(ih.a)(!0),2),a=o[0],i=o[1];return Object(l.useEffect)((function(){return Bn.a.bind("ctrl+shift+f",i),function(){return Bn.a.unbind("ctrl+shift+f")}}),[a]),n?s.a.createElement("div",{className:"container-fluid container--transcript container--app"},s.a.createElement("div",{className:"app--header row margin-expand"},s.a.createElement("div",{className:"col-sm-12 px-md-0"},s.a.createElement(mh,null)),s.a.createElement("div",{className:ue()("col-sm-12",{"d-none":!a})},s.a.createElement("div",{className:"row g-0"},s.a.createElement("div",{className:"col order-first d-print-none"},s.a.createElement("div",{className:"app--logo"},s.a.createElement("a",{className:"logo--sonix-md t--transcript-sonix-logo d-print-none",href:"/","data-balloon":"Return to Sonix home","data-balloon-pos":"right"},s.a.createElement("svg",{width:"27px",height:"27px",viewBox:"0 0 500 500"},s.a.createElement("g",{id:"sonix--logo-md",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},s.a.createElement("g",{id:"sonix-logo-lines",transform:"translate(106.000000, 5.000000)",fill:"#2A93D5",fillRule:"nonzero"},s.a.createElement("polygon",{id:"Line",points:"112 0 176 0 176 490 112 490"}),s.a.createElement("polygon",{id:"Line",points:"224 107 288 107 288 384 224 384"}),s.a.createElement("polygon",{id:"Line",points:"0 107 64 107 64 384 0 384"}))))))),s.a.createElement("div",{className:"col order-last d-none d-md-flex d-print-none"}," "),s.a.createElement("div",{className:"col-sm-12 col-md-11 col-lg-10 app--menu"},s.a.createElement(Mx,{store:t}),s.a.createElement(xx,null))),s.a.createElement("div",{className:"row g-0 d-print-none"},s.a.createElement("div",{className:"col order-first"}),s.a.createElement("div",{className:"col order-last"}),s.a.createElement("div",{className:"col-sm-12 col-md-11 col-lg-10 app--menu"},s.a.createElement(Ik,null)))),s.a.createElement("div",{className:ue()("col-sm-12",{"app--header-menu-collapsed":!a})},s.a.createElement("div",{className:ue()("d-flex",{"mt-1":a})},s.a.createElement("div",{className:ue()("app--header-control",{"d-none":a})},s.a.createElement("span",{className:"link d-block app--header-button cursor--pointer","data-balloon":"Play/Pause (Tab)",onClick:t.togglePlaying,"data-balloon-pos":"right"},s.a.createElement("i",{className:ue()("far fa-fw",{"fa-pause":r,"fa-play":!r})}))),s.a.createElement(Ny,{store:t}))),s.a.createElement("span",{className:"link app--header-button app--header-collapse",onClick:i,"data-balloon":a?"Hide the menus (Ctrl+Shift+F)":"Show the menus (Ctrl+Shift+F)","data-balloon-pos":"left"},s.a.createElement("i",{className:ue()("fas fa-lg",{"fa-caret-up":a,"fa-caret-down":!a})}))),t.isVideo&&s.a.createElement(ub,{store:t})):null})),Fx=function(e){var t=e.text,n=e.lineNum;return s.a.createElement("div",{className:"badge badge-cpl d-block mx-1","data-balloon":"Line ".concat(n,": ").concat(t.length," characters"),"data-balloon-pos":"up"},t.length)},zx=function(e){return e.lines.map((function(e,t){return s.a.createElement(Fx,{key:t,text:e,lineNum:t+1})}))},Bx=Object(se.c)((function(e){var t=e.element;if(!e.uiState.isCharCountShown)return null;var n=t.children.map((function(e){return e.text})).join(""),r=n.split("\n"),o=t.to-t.from,a=(n.replace("\n","").length/o).toFixed(1),i=a>20,l=Math.floor(a),c="".concat(a,i?" characters per second may be hard to read. Please try to lower this caption's CPS.":" characters per second is easy to read. Great job!");return s.a.createElement("div",{className:"exchange--character-count text-start text--noselect",contentEditable:!1},s.a.createElement("div",{className:ue()("badge badge-cps d-block mx-0",{"badge-cps-high":i}),"data-balloon":c,"data-balloon-length":"large","data-balloon-text-align":"left","data-balloon-pos":"up"},l," CPS"),s.a.createElement(zx,{lines:r}))})),Yx=Bx;function Ix(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Hx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hx(e,t)}(e,t)||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 Hx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ux=function(e){var t=e.element,n=e.readonly,r=e.transcript,o=t.note,a=ue()("fa-fw",{"far fa-note":!o,"fas fa-note":o}),i=o?"Edit note":"Add a note",c=Object(l.useRef)(null),u=Ix(Object(l.useState)(""),2),f=u[0],p=u[1],d=Object(l.useCallback)((function(){p(t.note),requestAnimationFrame((function(){return c.current.focus()}))})),m=Object(l.useCallback)((function(){return r.editor.setNote(t,f)})),h=Object(l.useCallback)((function(e){return p(e.target.value)}));return s.a.createElement("div",{className:"note--meta text--noselect",contentEditable:!1,"data-slate-editor":!0},s.a.createElement(Ia,{onClose:m,onOpen:d},s.a.createElement(Ia.Toggle,{tag:"a",className:"pill text--noselect clickable note--button","data-balloon":i,"data-balloon-pos":"up-left"},s.a.createElement("i",{className:a}," ")),s.a.createElement(Ia.Content,{className:"dropdown--content",title:n||o?"Note":"Add a note"},s.a.createElement("textarea",{ref:c,onBeforeInput:function(e){return e.stopPropagation()},onChange:h,disabled:n,value:f}))))},Wx=s.a.memo((function(e){var t=e.element,n=e.transcript,r=!!t.completed,o=Object(l.useCallback)((function(){n.editor.setCompleted(t,!t.completed)}),[r]);return s.a.createElement("a",{className:"pill text--noselect clickable exchange--completed-toggle",contentEditable:!1,onClick:o,"data-balloon":r?"Mark as not completed":"Mark as completed","data-balloon-pos":"up-left"},s.a.createElement("i",{className:ue()("far fa-fw",{"far fa-square":!r,"fas fa-check-square":r})}))}),(function(e,t){var n=e.element,r=t.element;return n.completed===r.completed})),Vx=n(609),qx=n.n(Vx),Gx=n(546),Kx=n.n(Gx),$x=n(603),Jx=n.n($x);function Xx(e){return Xx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xx(e)}function Qx(e){return null!=e&&"object"===Xx(e)&&1===e.nodeType}function Zx(e,t){return(!t||"hidden"!==e)&&("visible"!==e&&"clip"!==e)}function eS(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return Zx(n.overflowY,t)||Zx(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function tS(e,t,n,r,o,a,i,l){return a<e&&i>t||a>e&&i<t?0:a<=e&&l<=n||i>=t&&l>=n?a-e-r:i>t&&l<n||a<e&&l>n?i-t+o:0}var nS=function(e,t){var n=t.scrollMode,r=t.block,o=t.inline,a=t.boundary,i=t.skipOverflowHiddenElements,l="function"==typeof a?a:function(e){return e!==a};if(!Qx(e))throw new TypeError("Invalid target");for(var s=document.scrollingElement||document.documentElement,c=[],u=e;Qx(u)&&l(u);){if((u=u.parentNode)===s){c.push(u);break}u===document.body&&eS(u)&&!eS(document.documentElement)||eS(u,i)&&c.push(u)}for(var f=window.visualViewport?visualViewport.width:innerWidth,p=window.visualViewport?visualViewport.height:innerHeight,d=window.scrollX||pageXOffset,m=window.scrollY||pageYOffset,h=e.getBoundingClientRect(),y=h.height,b=h.width,v=h.top,g=h.right,w=h.bottom,E=h.left,_="start"===r||"nearest"===r?v:"end"===r?w:v+y/2,k="center"===o?E+b/2:"end"===o?g:E,O=[],x=0;x<c.length;x++){var S=c[x],j=S.getBoundingClientRect(),C=j.height,D=j.width,N=j.top,P=j.right,T=j.bottom,M=j.left;if("if-needed"===n&&v>=0&&E>=0&&w<=p&&g<=f&&v>=N&&w<=T&&E>=M&&g<=P)return O;var A=getComputedStyle(S),L=parseInt(A.borderLeftWidth,10),R=parseInt(A.borderTopWidth,10),F=parseInt(A.borderRightWidth,10),z=parseInt(A.borderBottomWidth,10),B=0,Y=0,I="offsetWidth"in S?S.offsetWidth-S.clientWidth-L-F:0,H="offsetHeight"in S?S.offsetHeight-S.clientHeight-R-z:0;if(s===S)B="start"===r?_:"end"===r?_-p:"nearest"===r?tS(m,m+p,p,R,z,m+_,m+_+y,y):_-p/2,Y="start"===o?k:"center"===o?k-f/2:"end"===o?k-f:tS(d,d+f,f,L,F,d+k,d+k+b,b),B=Math.max(0,B+m),Y=Math.max(0,Y+d);else{B="start"===r?_-N-R:"end"===r?_-T+z+H:"nearest"===r?tS(N,T,C,R,z+H,_,_+y,y):_-(N+C/2)+H/2,Y="start"===o?k-M-L:"center"===o?k-(M+D/2)+I/2:"end"===o?k-P+F+I:tS(M,P,D,L,F+I,k,k+b,b);var U=S.scrollLeft,W=S.scrollTop;_+=W-(B=Math.max(0,Math.min(W+B,S.scrollHeight-C+H))),k+=U-(Y=Math.max(0,Math.min(U+Y,S.scrollWidth-D+I)))}O.push({el:S,top:B,left:Y})}return O};function rS(e){return e===Object(e)&&0!==Object.keys(e).length}var oS,aS=function(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(rS(t)&&"function"==typeof t.behavior)return t.behavior(n?[]:nS(e,t));if(!n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:rS(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,a=e.left;r.scroll&&n?r.scroll({top:o,left:a,behavior:t}):(r.scrollTop=o,r.scrollLeft=a)}))}(nS(e,r),r.behavior)}},iS=[],lS="ResizeObserver loop completed with undelivered notifications.";!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(oS||(oS={}));var sS,cS=function(e){return Object.freeze(e)},uS=function(e,t){this.inlineSize=e,this.blockSize=t,cS(this)},fS=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,cS(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),pS=function(e){return e instanceof SVGElement&&"getBBox"in e},dS=function(e){if(pS(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,a=o.offsetWidth,i=o.offsetHeight;return!(a||i||e.getClientRects().length)},mS=function(e){var t;if(e instanceof Element)return!0;var n=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},hS="undefined"!=typeof window?window:{},yS=new WeakMap,bS=/auto|scroll/,vS=/^tb|vertical/,gS=/msie|trident/i.test(hS.navigator&&hS.navigator.userAgent),wS=function(e){return parseFloat(e||"0")},ES=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new uS((n?t:e)||0,(n?e:t)||0)},_S=cS({devicePixelContentBoxSize:ES(),borderBoxSize:ES(),contentBoxSize:ES(),contentRect:new fS(0,0,0,0)}),kS=function(e,t){if(void 0===t&&(t=!1),yS.has(e)&&!t)return yS.get(e);if(dS(e))return yS.set(e,_S),_S;var n=getComputedStyle(e),r=pS(e)&&e.ownerSVGElement&&e.getBBox(),o=!gS&&"border-box"===n.boxSizing,a=vS.test(n.writingMode||""),i=!r&&bS.test(n.overflowY||""),l=!r&&bS.test(n.overflowX||""),s=r?0:wS(n.paddingTop),c=r?0:wS(n.paddingRight),u=r?0:wS(n.paddingBottom),f=r?0:wS(n.paddingLeft),p=r?0:wS(n.borderTopWidth),d=r?0:wS(n.borderRightWidth),m=r?0:wS(n.borderBottomWidth),h=f+c,y=s+u,b=(r?0:wS(n.borderLeftWidth))+d,v=p+m,g=l?e.offsetHeight-v-e.clientHeight:0,w=i?e.offsetWidth-b-e.clientWidth:0,E=o?h+b:0,_=o?y+v:0,k=r?r.width:wS(n.width)-E-w,O=r?r.height:wS(n.height)-_-g,x=k+h+w+b,S=O+y+g+v,j=cS({devicePixelContentBoxSize:ES(Math.round(k*devicePixelRatio),Math.round(O*devicePixelRatio),a),borderBoxSize:ES(x,S,a),contentBoxSize:ES(k,O,a),contentRect:new fS(f,s,k,O)});return yS.set(e,j),j},OS=function(e,t,n){var r=kS(e,n),o=r.borderBoxSize,a=r.contentBoxSize,i=r.devicePixelContentBoxSize;switch(t){case oS.DEVICE_PIXEL_CONTENT_BOX:return i;case oS.BORDER_BOX:return o;default:return a}},xS=function(e){var t=kS(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=cS([t.borderBoxSize]),this.contentBoxSize=cS([t.contentBoxSize]),this.devicePixelContentBoxSize=cS([t.devicePixelContentBoxSize])},SS=function(e){if(dS(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},jS=function(){var e=1/0,t=[];iS.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new xS(t.target),o=SS(t.target);r.push(n),t.lastReportedSize=OS(t.target,t.observedBox),o<e&&(e=o)})),t.push((function(){n.callback.call(n.observer,r,n.observer)})),n.activeTargets.splice(0,n.activeTargets.length)}}));for(var n=0,r=t;n<r.length;n++){(0,r[n])()}return e},CS=function(e){iS.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(SS(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},DS=function(){var e=0;for(CS(e);iS.some((function(e){return e.activeTargets.length>0}));)e=jS(),CS(e);return iS.some((function(e){return e.skippedTargets.length>0}))&&function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:lS}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=lS),window.dispatchEvent(e)}(),e>0},NS=[],PS=function(e){if(!sS){var t=0,n=document.createTextNode("");new MutationObserver((function(){return NS.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),sS=function(){n.textContent="".concat(t?t--:t++)}}NS.push(e),sS()},TS=0,MS={attributes:!0,characterData:!0,childList:!0,subtree:!0},AS=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],LS=function(e){return void 0===e&&(e=0),Date.now()+e},RS=!1,FS=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!RS){RS=!0;var n,r=LS(e);n=function(){var n=!1;try{n=DS()}finally{if(RS=!1,e=r-LS(),!TS)return;n?t.run(1e3):e>0?t.run(e):t.start()}},PS((function(){requestAnimationFrame(n)}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,MS)};document.body?t():hS.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),AS.forEach((function(t){return hS.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),AS.forEach((function(t){return hS.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),zS=function(e){!TS&&e>0&&FS.start(),!(TS+=e)&&FS.stop()},BS=function(){function e(e,t){this.target=e,this.observedBox=t||oS.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=OS(this.target,this.observedBox,!0);return function(e){return!pS(e)&&!function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)&&"inline"===getComputedStyle(e).display}(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),YS=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},IS=new WeakMap,HS=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},US=function(){function e(){}return e.connect=function(e,t){var n=new YS(e,t);IS.set(e,n)},e.observe=function(e,t,n){var r=IS.get(e),o=0===r.observationTargets.length;HS(r.observationTargets,t)<0&&(o&&iS.push(r),r.observationTargets.push(new BS(t,n&&n.box)),zS(1),FS.schedule())},e.unobserve=function(e,t){var n=IS.get(e),r=HS(n.observationTargets,t),o=1===n.observationTargets.length;r>=0&&(o&&iS.splice(iS.indexOf(n),1),n.observationTargets.splice(r,1),zS(-1))},e.disconnect=function(e){var t=this,n=IS.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),WS=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");US.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!mS(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");US.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!mS(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");US.unobserve(this,e)},e.prototype.disconnect=function(){US.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}(),VS=n(551);function qS(e){return qS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qS(e)}function GS(e,t,n){return(t=ej(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KS(e,t){return KS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},KS(e,t)}function $S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=JS(e);if(t){var o=JS(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===qS(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function JS(e){return JS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},JS(e)}function XS(e){return function(e){if(Array.isArray(e))return aj(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||oj(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function QS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ej(r.key),r)}}function ZS(e,t,n){return t&&QS(e.prototype,t),n&&QS(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ej(e){var t=function(e,t){if("object"!==qS(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==qS(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===qS(t)?t:String(t)}function tj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nj(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=oj(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function rj(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||oj(e,t)||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 oj(e,t){if(e){if("string"==typeof e)return aj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?aj(e,t):void 0}}function aj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ij(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lj(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var sj=Object(l.createContext)(null),cj=function(){var e=Object(l.useContext)(sj);if(!e)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return e},uj=parseInt(s.a.version.split(".")[0],10),fj="undefined"!=typeof navigator&&"undefined"!=typeof window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,pj="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),dj="undefined"!=typeof navigator&&/Android/.test(navigator.userAgent),mj="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),hj="undefined"!=typeof navigator&&/AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent),yj="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),bj="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),vj="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),gj=dj&&"undefined"!=typeof navigator&&/Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent),wj="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),Ej="undefined"!=typeof navigator&&/.*UCBrowser/.test(navigator.userAgent),_j="undefined"!=typeof navigator&&/.*Wechat/.test(navigator.userAgent)&&!/.*MacWechat/.test(navigator.userAgent),kj=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Oj=(!vj||!gj)&&!yj&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,xj=new WeakMap,Sj=new WeakMap,jj=new WeakMap,Cj=new WeakMap,Dj=new WeakMap,Nj=new WeakMap,Pj=new WeakMap,Tj=new WeakMap,Mj=new WeakMap,Aj=new WeakMap,Lj=new WeakMap,Rj=new WeakMap,Fj=new WeakMap,zj=new WeakMap,Bj=new WeakMap,Yj=new WeakMap,Ij=new WeakMap,Hj=new WeakMap,Uj=new WeakMap,Wj=new WeakMap,Vj=new WeakMap,qj=Symbol("placeholder"),Gj=Symbol("mark-placeholder"),Kj=globalThis.Text,$j=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},Jj=function(e){return Xj(e)&&1===e.nodeType},Xj=function(e){var t=$j(e);return!!t&&e instanceof t.Node},Qj=function(e){var t=e&&e.anchorNode&&$j(e.anchorNode);return!!t&&e instanceof t.Selection},Zj=function(e){return Xj(e)&&3===e.nodeType},eC=function(e,t,n){for(var r,o=e.childNodes,a=o[t],i=t,l=!1,s=!1;(Xj(r=a)&&8===r.nodeType||Jj(a)&&0===a.childNodes.length||Jj(a)&&"false"===a.getAttribute("contenteditable"))&&(!l||!s);)i>=o.length?(l=!0,i=t-1,n="backward"):i<0?(s=!0,i=t+1,n="forward"):(a=o[i],t=i,i+="forward"===n?1:-1);return[a,t]},tC=function(e,t,n){return rj(eC(e,t,n),1)[0]},nC=function e(t){var n="";if(Zj(t)&&t.nodeValue)return t.nodeValue;if(Jj(t)){for(var r=0,o=Array.from(t.childNodes);r<o.length;r++){n+=e(o[r])}var a=getComputedStyle(t).getPropertyValue("display");"block"!==a&&"list"!==a&&"BR"!==t.tagName||(n+="\n")}return n},rC=/data-slate-fragment="(.+?)"/m,oC=function(e){return rj(e.getData("text/html").match(rC)||[],2)[1]},aC=function e(t,n,r){var o=n.target;if(Jj(o)&&o.matches('[contentEditable="false"]'))return!1;if(sC.getWindow(t).document.contains(o))return sC.hasDOMNode(t,o,{editable:!0});var a=r.find((function(e){var t,n=e.addedNodes,r=e.removedNodes,a=nj(n);try{for(a.s();!(t=a.n()).done;){var i=t.value;if(i===o||i.contains(o))return!0}}catch(e){a.e(e)}finally{a.f()}var l,s=nj(r);try{for(s.s();!(l=s.n()).done;){var c=l.value;if(c===o||c.contains(o))return!0}}catch(e){s.e(e)}finally{s.f()}}));return!(!a||a===n)&&e(t,a,r)},iC=0,lC=ZS((function e(){tj(this,e),this.id="".concat(iC++)})),sC={androidPendingDiffs:function(e){return Hj.get(e)},androidScheduleFlush:function(e){var t;null===(t=Bj.get(e))||void 0===t||t()},blur:function(e){var t=sC.toDOMNode(e,e),n=sC.findDocumentOrShadowRoot(e);Lj.set(e,!1),n.activeElement===t&&t.blur()},deselect:function(e){var t=e.selection,n=sC.findDocumentOrShadowRoot(e).getSelection();n&&n.rangeCount>0&&n.removeAllRanges(),t&&_w.deselect(e)},findDocumentOrShadowRoot:function(e){var t=sC.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:t.ownerDocument},findEventRange:function(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var n=t,r=n.clientX,o=n.clientY,a=n.target;if(null==r||null==o)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var i,l=sC.toSlateNode(e,t.target),s=sC.findPath(e,l);if(_g.isElement(l)&&Pg.isVoid(e,l)){var c=a.getBoundingClientRect(),u=e.isInline(l)?r-c.left<c.left+c.width-r:o-c.top<c.top+c.height-o,f=Pg.point(e,s,{edge:u?"start":"end"}),p=u?Pg.before(e,f):Pg.after(e,f);if(p)return Pg.range(e,p)}var d=sC.getWindow(e).document;if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(r,o);else{var m=d.caretPositionFromPoint(r,o);m&&((i=d.createRange()).setStart(m.offsetNode,m.offset),i.setEnd(m.offsetNode,m.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));return sC.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},findKey:function(e,t){var n=Tj.get(t);return n||(n=new lC,Tj.set(t,n)),n},findPath:function(e,t){for(var n=[],r=t;;){var o=Sj.get(r);if(null==o){if(Pg.isEditor(r))return n;break}var a=xj.get(r);if(null==a)break;n.unshift(a),r=o}throw new Error("Unable to find the path for Slate node: ".concat(Fg.stringify(t)))},focus:function(e){var t=sC.toDOMNode(e,e),n=sC.findDocumentOrShadowRoot(e);Lj.set(e,!0),n.activeElement!==t&&t.focus({preventScroll:!0})},getWindow:function(e){var t=jj.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},hasDOMNode:function(e,t){var n,r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).editable,o=void 0!==r&&r,a=sC.toDOMNode(e,e);try{n=Jj(t)?t:t.parentElement}catch(e){if(!e.message.includes('Permission denied to access property "nodeType"'))throw e}return!!n&&!(n.closest("[data-slate-editor]")!==a||o&&!n.isContentEditable&&("boolean"!=typeof n.isContentEditable||n.closest('[contenteditable="false"]')!==a)&&!n.getAttribute("data-slate-zero-width"))},hasEditableTarget:function(e,t){return Xj(t)&&sC.hasDOMNode(e,t,{editable:!0})},hasRange:function(e,t){var n=t.anchor,r=t.focus;return Pg.hasPath(e,n.path)&&Pg.hasPath(e,r.path)},hasSelectableTarget:function(e,t){return sC.hasEditableTarget(e,t)||sC.isTargetInsideNonReadonlyVoid(e,t)},hasTarget:function(e,t){return Xj(t)&&sC.hasDOMNode(e,t)},insertData:function(e,t){e.insertData(t)},insertFragmentData:function(e,t){return e.insertFragmentData(t)},insertTextData:function(e,t){return e.insertTextData(t)},isComposing:function(e){return!!Rj.get(e)},isFocused:function(e){return!!Lj.get(e)},isReadOnly:function(e){return!!Aj.get(e)},isTargetInsideNonReadonlyVoid:function(e,t){if(Aj.get(e))return!1;var n=sC.hasTarget(e,t)&&sC.toSlateNode(e,t);return _g.isElement(n)&&Pg.isVoid(e,n)},setFragmentData:function(e,t,n){return e.setFragmentData(t,n)},toDOMNode:function(e,t){var n=Mj.get(e),r=Pg.isEditor(t)?Cj.get(e):null==n?void 0:n.get(sC.findKey(e,t));if(!r)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(Fg.stringify(t)));return r},toDOMPoint:function(e,t){var n,r=rj(Pg.node(e,t.path),1)[0],o=sC.toDOMNode(e,r);Pg.void(e,{at:t})&&(t={path:t.path,offset:0});for(var a=Array.from(o.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),i=0,l=0;l<a.length;l++){var s=a[l],c=s.childNodes[0];if(null!=c&&null!=c.textContent){var u=c.textContent.length,f=s.getAttribute("data-slate-length"),p=i+(null==f?u:parseInt(f,10)),d=a[l+1];if(t.offset===p&&null!=d&&d.hasAttribute("data-slate-mark-placeholder")){var m,h=d.childNodes[0];n=[h instanceof Kj?h:d,null!==(m=d.textContent)&&void 0!==m&&m.startsWith("\ufeff")?1:0];break}if(t.offset<=p){n=[c,Math.min(u,Math.max(0,t.offset-i))];break}i=p}}if(!n)throw new Error("Cannot resolve a DOM point from Slate point: ".concat(Fg.stringify(t)));return n},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,o=wg.isBackward(t),a=sC.toDOMPoint(e,n),i=wg.isCollapsed(t)?a:sC.toDOMPoint(e,r),l=sC.getWindow(e).document.createRange(),s=rj(o?i:a,2),c=s[0],u=s[1],f=rj(o?a:i,2),p=f[0],d=f[1],m=!!(Jj(c)?c:c.parentElement).getAttribute("data-slate-zero-width"),h=!!(Jj(p)?p:p.parentElement).getAttribute("data-slate-zero-width");return l.setStart(c,m?1:u),l.setEnd(p,h?1:d),l},toSlateNode:function(e,t){var n=Jj(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?Nj.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: ".concat(n));return r},toSlatePoint:function(e,t,n){var r=n.exactMatch,o=n.suppressThrow,a=r?t:function(e){var t=rj(e,2),n=t[0],r=t[1];if(Jj(n)&&n.childNodes.length){var o=r===n.childNodes.length,a=o?r-1:r,i=rj(eC(n,a,o?"backward":"forward"),2);for(n=i[0],o=(a=i[1])<r;Jj(n)&&n.childNodes.length;){var l=o?n.childNodes.length-1:0;n=tC(n,l,o?"backward":"forward")}r=o&&null!=n.textContent?n.textContent.length:0}return[n,r]}(t),i=rj(a,2),l=i[0],s=i[1],c=l.parentNode,u=null,f=0;if(c){var p,d,m=sC.toDOMNode(e,e),h=c.closest('[data-slate-void="true"]'),y=h&&m.contains(h)?h:null,b=c.closest("[data-slate-leaf]"),v=null;if(b){if(u=b.closest('[data-slate-node="text"]')){var g=sC.getWindow(e).document.createRange();g.setStart(u,0),g.setEnd(l,s);var w=g.cloneContents();[].concat(XS(Array.prototype.slice.call(w.querySelectorAll("[data-slate-zero-width]"))),XS(Array.prototype.slice.call(w.querySelectorAll("[contenteditable=false]")))).forEach((function(e){dj&&!r&&e.hasAttribute("data-slate-zero-width")&&e.textContent.length>0&&"\ufeff"!==e.textContext?e.textContent.startsWith("\ufeff")&&(e.textContent=e.textContent.slice(1)):e.parentNode.removeChild(e)})),f=w.textContent.length,v=u}}else if(y){for(var E=y.querySelectorAll("[data-slate-leaf]"),_=0;_<E.length;_++){var k=E[_];if(sC.hasDOMNode(e,k)){b=k;break}}b?(u=b.closest('[data-slate-node="text"]'),f=(v=b).textContent.length,v.querySelectorAll("[data-slate-zero-width]").forEach((function(e){f-=e.textContent.length}))):f=1}v&&f===v.textContent.length&&dj&&"z"===v.getAttribute("data-slate-zero-width")&&null!==(p=v.textContent)&&void 0!==p&&p.startsWith("\ufeff")&&(c.hasAttribute("data-slate-zero-width")||mj&&null!==(d=v.textContent)&&void 0!==d&&d.endsWith("\n\n"))&&f--}if(dj&&!u&&!r){var O=c.hasAttribute("data-slate-node")?c:c.closest("[data-slate-node]");if(O&&sC.hasDOMNode(e,O,{editable:!0})){var x=sC.toSlateNode(e,O),S=Pg.start(e,sC.findPath(e,x)),j=S.path,C=S.offset;return O.querySelector("[data-slate-leaf]")||(C=s),{path:j,offset:C}}}if(!u){if(o)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var D=sC.toSlateNode(e,u);return{path:sC.findPath(e,D),offset:f}},toSlateRange:function(e,t,n){var r,o,a,i,l,s,c=n.exactMatch,u=n.suppressThrow;if(Qj(t)?t.anchorNode:t.startContainer)if(Qj(t)){if(mj&&t.rangeCount>1){a=t.focusNode;var f=t.getRangeAt(0),p=t.getRangeAt(t.rangeCount-1);if(a instanceof HTMLTableRowElement&&f.startContainer instanceof HTMLTableRowElement&&p.startContainer instanceof HTMLTableRowElement){function w(e){return e.childElementCount>0?w(e.children[0]):e}var d=f.startContainer,m=p.startContainer,h=w(d.children[f.startOffset]),y=w(m.children[p.startOffset]);i=0,r=y.childNodes.length>0?y.childNodes[0]:y,a=h.childNodes.length>0?h.childNodes[0]:h,o=y instanceof HTMLElement?y.innerHTML.length:0}else f.startContainer===a?(r=p.endContainer,o=p.endOffset,i=f.startOffset):(r=f.startContainer,o=f.endOffset,i=p.startOffset)}else r=t.anchorNode,o=t.anchorOffset,a=t.focusNode,i=t.focusOffset;l=bj&&function(e){for(var t=e&&e.parentNode;t;){if("[object ShadowRoot]"===t.toString())return!0;t=t.parentNode}return!1}(r)||mj?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed}else r=t.startContainer,o=t.startOffset,a=t.endContainer,i=t.endOffset,l=t.collapsed;if(null==r||null==a||null==o||null==i)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(t));"getAttribute"in a&&"false"===a.getAttribute("contenteditable")&&"true"!==a.getAttribute("data-slate-void")&&(a=r,i=(null===(s=r.textContent)||void 0===s?void 0:s.length)||0);var b=sC.toSlatePoint(e,[r,o],{exactMatch:c,suppressThrow:u});if(!b)return null;var v=l?b:sC.toSlatePoint(e,[a,i],{exactMatch:c,suppressThrow:u});if(!v)return null;var g={anchor:b,focus:v};return wg.isExpanded(g)&&wg.isForward(g)&&Jj(a)&&Pg.void(e,{at:g.focus,mode:"highest"})&&(g=Pg.unhangRange(e,g,{voids:!0})),g}};function cC(e,t){var n=t.path,r=t.diff;if(!Pg.hasPath(e,n))return!1;var o=Sg.get(e,n);if(!Ug.isText(o))return!1;if(r.start!==o.text.length||0===r.text.length)return o.text.slice(r.start,r.start+r.text.length)===r.text;var a=fg.next(n);if(!Pg.hasPath(e,a))return!1;var i=Sg.get(e,a);return Ug.isText(i)&&i.text.startsWith(r.text)}function uC(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((function(e,t){return e.slice(0,t.start)+t.text+e.slice(t.end)}),e)}function fC(e,t){var n=t.start,r=t.end,o=t.text,a=e.slice(n,r),i=function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(e.charAt(r)!==t.charAt(r))return r;return n}(a,o),l=function(e,t,n){for(var r=Math.min(e.length,t.length,n),o=0;o<r;o++)if(e.charAt(e.length-o-1)!==t.charAt(t.length-o-1))return o;return r}(a,o,Math.min(a.length-i,o.length-i)),s={start:n+i,end:r-l,text:o.slice(i,o.length-l)};return s.start===s.end&&0===s.text.length?null:s}function pC(e){var t=e.path,n=e.diff;return{anchor:{path:t,offset:n.start},focus:{path:t,offset:n.end}}}function dC(e,t){var n=t.path,r=t.offset;if(!Pg.hasPath(e,n))return null;var o=Sg.get(e,n);if(!Ug.isText(o))return null;var a=Pg.above(e,{match:function(t){return _g.isElement(t)&&Pg.isBlock(e,t)},at:n});if(!a)return null;for(;r>o.text.length;){var i=Pg.next(e,{at:n,match:Ug.isText});if(!i||!fg.isDescendant(i[1],a[1]))return null;r-=o.text.length,o=i[0],n=i[1]}return{path:n,offset:r}}function mC(e,t){var n=dC(e,t.anchor);if(!n)return null;if(wg.isCollapsed(t))return{anchor:n,focus:n};var r=dC(e,t.focus);return r?{anchor:n,focus:r}:null}function hC(e,t,n){var r=Hj.get(e),o=null==r?void 0:r.find((function(e){var n=e.path;return fg.equals(n,t.path)}));if(!o||t.offset<=o.diff.start)return Lg.transform(t,n,{affinity:"backward"});var a=o.diff;if(t.offset<=a.start+a.text.length){var i={path:t.path,offset:a.start},l=Lg.transform(i,n,{affinity:"backward"});return l?{path:l.path,offset:l.offset+t.offset-a.start}:null}var s={path:t.path,offset:t.offset-a.text.length+a.end-a.start},c=Lg.transform(s,n,{affinity:"backward"});return c?"split_node"===n.type&&fg.equals(n.path,t.path)&&s.offset<n.position&&a.start<n.position?c:{path:c.path,offset:c.offset+a.text.length-a.end+a.start}:null}function yC(e,t,n){var r=hC(e,t.anchor,n);if(!r)return null;if(wg.isCollapsed(t))return{anchor:r,focus:r};var o=hC(e,t.focus,n);return o?{anchor:r,focus:o}:null}function bC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bC(Object(n),!0).forEach((function(t){ij(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var gC=25,wC=200,EC=function(){},_C=function(e){return"DataTransfer"===(null==e?void 0:e.constructor.name)};function kC(e){var t=e.editor,n=e.scheduleOnDOMSelectionChange,r=e.onDOMSelectionChange,o=!1,a=null,i=null,l=null,s=0,c=!1,u=function(){var e=Wj.get(t);if(Wj.delete(t),e){var n=t.selection,r=mC(t,e);!r||n&&wg.equals(r,n)||_w.select(t,r)}},f=function(){if(i&&(clearTimeout(i),i=null),l&&(clearTimeout(l),l=null),y()||h()){o||(o=!0,setTimeout((function(){return o=!1}))),h()&&(o="action");var e=t.selection&&Pg.rangeRef(t,t.selection,{affinity:"forward"});Ij.set(t,t.marks),EC("flush",Uj.get(t),Hj.get(t));for(var a,s=y();a=null===(f=Hj.get(t))||void 0===f?void 0:f[0];){var f,p,d=Yj.get(t);void 0!==d&&(Yj.delete(t),t.marks=d),d&&!1===c&&(c=null);var m=pC(a);t.selection&&wg.equals(t.selection,m)||_w.select(t,m),a.diff.text?Pg.insertText(t,a.diff.text):Pg.deleteFragment(t),Hj.set(t,null===(p=Hj.get(t))||void 0===p?void 0:p.filter((function(e){return e.id!==a.id}))),cC(t,a)||(s=!1,Uj.delete(t),Ij.delete(t),o="action",Wj.delete(t),n.cancel(),r.cancel(),null==e||e.unref())}var b=null==e?void 0:e.unref();if(!b||Wj.get(t)||t.selection&&wg.equals(b,t.selection)||_w.select(t,b),h())!function(){var e=Uj.get(t);if(Uj.delete(t),e){if(e.at){var n=Lg.isPoint(e.at)?dC(t,e.at):mC(t,e.at);if(!n)return;var r=Pg.range(t,n);t.selection&&wg.equals(t.selection,r)||_w.select(t,n)}e.run()}}();else{s&&n(),n.flush(),r.flush(),u();var v=Ij.get(t);Ij.delete(t),void 0!==v&&(t.marks=v,t.onChange())}}else u()},p=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=Dj.get(t);n&&(y()||e?n.style.display="none":n.style.removeProperty("display"))},d=function(e,n){var r,o=null!==(r=Hj.get(t))&&void 0!==r?r:[];Hj.set(t,o);var a=Sg.leaf(t,e),i=o.findIndex((function(t){return fg.equals(t.path,e)}));if(i<0)return fC(a.text,n)&&o.push({path:e,diff:n,id:s++}),void p();var l,c,u,f,d,m,h,y,b=(l=a.text,c=o[i].diff,u=n,f=Math.min(c.start,u.start),d=Math.max(0,Math.min(c.start+c.text.length,u.end)-u.start),m=uC(l,c,u),h=Math.max(u.start+u.text.length,c.start+c.text.length+(c.start+c.text.length>u.start?u.text.length:0)-d),y=m.slice(f,h),fC(l,{start:f,end:Math.max(c.end,u.end-c.text.length+(c.end-c.start)),text:y}));if(!b)return o.splice(i,1),void p();o[i]=vC(vC({},o[i]),{},{diff:b})},m=function(e){var o=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).at;c=!1,Wj.delete(t),n.cancel(),r.cancel(),h()&&f(),Uj.set(t,{at:o,run:e}),l=setTimeout(f)},h=function(){return!!Uj.get(t)},y=function(){var e;return!(null===(e=Hj.get(t))||void 0===e||!e.length)},b=function(e){Wj.set(t,e),i&&(clearTimeout(i),i=null);var n=t.selection;if(e){var r=!n||!fg.equals(n.anchor.path,e.anchor.path),o=!n||!fg.equals(n.anchor.path.slice(0,-1),e.anchor.path.slice(0,-1));(r&&c||o)&&(c=!1),(r||y())&&(i=setTimeout(f,wC))}},v=function(){h()||(l=setTimeout(f))};return{flush:f,scheduleFlush:v,hasPendingDiffs:y,hasPendingAction:h,hasPendingChanges:function(){return h()||y()},isFlushing:function(){return o},handleUserSelect:b,handleCompositionEnd:function(e){a&&clearTimeout(a),a=setTimeout((function(){Rj.set(t,!1),f()}),gC)},handleCompositionStart:function(e){Rj.set(t,!0),a&&(clearTimeout(a),a=null)},handleDOMBeforeInput:function(e){var n;i&&(clearTimeout(i),i=null);var r=e.inputType,o=null,a=e.dataTransfer||e.data||void 0;!1!==c&&"insertText"!==r&&"insertCompositionText"!==r&&(c=!1);var l=rj(e.getTargetRanges(),1)[0];l&&(o=sC.toSlateRange(t,l,{exactMatch:!1,suppressThrow:!0}));var s=sC.getWindow(t).getSelection();if(!o&&s&&(l=s,o=sC.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!0})),o=null!==(n=o)&&void 0!==n?n:t.selection){var u=!0;if(r.startsWith("delete")){if(wg.isExpanded(o)){var f=rj(wg.edges(o),2),p=f[0],h=f[1];if(Sg.leaf(t,p.path).text.length===p.offset&&0===h.offset){var y=Pg.next(t,{at:p.path,match:Ug.isText});y&&fg.equals(y[1],h.path)&&(o={anchor:h,focus:h})}}var g=r.endsWith("Backward")?"backward":"forward",w=rj(wg.edges(o),2),E=w[0],_=w[1],k=rj(Pg.leaf(t,E.path),2),O=k[0],x=k[1],S={text:"",start:E.offset,end:_.offset},j=Hj.get(t),C=null==j?void 0:j.find((function(e){return fg.equals(e.path,x)})),D=C?[C.diff,S]:[S];if(0===uC.apply(void 0,[O.text].concat(D)).length&&(u=!1),wg.isExpanded(o)){if(u&&fg.equals(o.anchor.path,o.focus.path)){var N={path:o.anchor.path,offset:E.offset},P=Pg.range(t,N,N);return b(P),d(o.anchor.path,{text:"",end:_.offset,start:E.offset})}return m((function(){return Pg.deleteFragment(t,{direction:g})}),{at:o})}}switch(r){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":return m((function(){return Pg.deleteFragment(t)}),{at:o});case"deleteContent":case"deleteContentForward":var T=o.anchor;if(u&&wg.isCollapsed(o)){var M=Sg.leaf(t,T.path);if(T.offset<M.text.length)return d(T.path,{text:"",start:T.offset,end:T.offset+1})}return m((function(){return Pg.deleteForward(t)}),{at:o});case"deleteContentBackward":var A,L=o.anchor,R=Qj(l)?l.isCollapsed:!(null===(A=l)||void 0===A||!A.collapsed);return u&&R&&wg.isCollapsed(o)&&L.offset>0?d(L.path,{text:"",start:L.offset-1,end:L.offset}):m((function(){return Pg.deleteBackward(t)}),{at:o});case"deleteEntireSoftLine":return m((function(){Pg.deleteBackward(t,{unit:"line"}),Pg.deleteForward(t,{unit:"line"})}),{at:o});case"deleteHardLineBackward":return m((function(){return Pg.deleteBackward(t,{unit:"block"})}),{at:o});case"deleteSoftLineBackward":return m((function(){return Pg.deleteBackward(t,{unit:"line"})}),{at:o});case"deleteHardLineForward":return m((function(){return Pg.deleteForward(t,{unit:"block"})}),{at:o});case"deleteSoftLineForward":return m((function(){return Pg.deleteForward(t,{unit:"line"})}),{at:o});case"deleteWordBackward":return m((function(){return Pg.deleteBackward(t,{unit:"word"})}),{at:o});case"deleteWordForward":return m((function(){return Pg.deleteForward(t,{unit:"word"})}),{at:o});case"insertLineBreak":return m((function(){return Pg.insertSoftBreak(t)}),{at:o});case"insertParagraph":return m((function(){return Pg.insertBreak(t)}),{at:o});case"insertCompositionText":case"deleteCompositionText":case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(_C(a))return m((function(){return sC.insertData(t,a)}),{at:o});var F=null!=a?a:"";if(Yj.get(t)&&(F=F.replace("\ufeff","")),"insertText"===r&&/.*\n.*\n$/.test(F)&&(F=F.slice(0,-1)),F.includes("\n"))return m((function(){var e=F.split("\n");e.forEach((function(n,r){n&&Pg.insertText(t,n),r!==e.length-1&&Pg.insertSoftBreak(t)}))}),{at:o});if(fg.equals(o.anchor.path,o.focus.path)){var z=rj(wg.edges(o),2),B=z[0],Y=z[1],I={start:B.offset,end:Y.offset,text:F};if(F&&c&&"insertCompositionText"===r){var H=c.start+c.text.search(/\S|$/);I.start+I.text.search(/\S|$/)===H+1&&I.end===c.start+c.text.length?(I.start-=1,c=null,v()):c=!1}else c="insertText"===r&&(null===c?I:!(!c||!wg.isCollapsed(o)||c.end+c.text.length!==B.offset)&&vC(vC({},c),{},{text:c.text+F}));if(u)return void d(B.path,I)}return m((function(){return Pg.insertText(t,F)}),{at:o})}}},handleKeyDown:function(e){y()||(p(!0),setTimeout(p))},handleDomMutations:function(e){var n;y()||h()||e.some((function(n){return aC(t,n,e)}))&&(null===(n=Vj.get(t))||void 0===n||n())},handleInput:function(){!h()&&y()||f()}}}var OC=kj?l.useLayoutEffect:l.useEffect;var xC=["node"];function SC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var jC={subtree:!0,childList:!0,characterData:!0},CC=dj?function(e){var t=e.node,n=lj(e,xC);if(!dj)return null;var r,o=cj(),a=(r=Object(l.useRef)(!1),Object(l.useEffect)((function(){return r.current=!0,function(){r.current=!1}}),[]),r.current),i=Object(l.useState)((function(){return kC(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SC(Object(n),!0).forEach((function(t){ij(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({editor:o},n))})),s=rj(i,1)[0];return function(e,t,n){var r=rj(Object(l.useState)((function(){return new MutationObserver(t)})),1)[0];OC((function(){r.takeRecords()})),Object(l.useEffect)((function(){if(!e.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");return r.observe(e.current,n),function(){return r.disconnect()}}),[r,e,n])}(t,s.handleDomMutations,jC),Bj.set(o,s.scheduleFlush),a&&s.flush(),s}:function(){return null},DC=["anchor","focus"],NC=["anchor","focus"],PC=function(e,t){var n,r,o=lj(e,DC),a=lj(t,NC);return e[qj]===t[qj]&&(n=o,r=a,Object.keys(n).length===Object.keys(r).length&&Object.keys(n).every((function(e){return r.hasOwnProperty(e)&&n[e]===r[e]})))},TC=function(e){var t=e.isLast,n=e.leaf,r=e.parent,o=e.text,a=cj(),i=sC.findPath(a,o),l=fg.parent(i),c=!0===n[Gj];return a.isVoid(r)?s.a.createElement(LC,{length:Sg.string(r).length}):""!==n.text||r.children[r.children.length-1]!==o||a.isInline(r)||""!==Pg.string(a,l)?""===n.text?s.a.createElement(LC,{isMarkPlaceholder:c}):t&&"\n"===n.text.slice(-1)?s.a.createElement(MC,{isTrailing:!0,text:n.text}):s.a.createElement(MC,{text:n.text}):s.a.createElement(LC,{isLineBreak:!0,isMarkPlaceholder:c})},MC=function(e){var t=e.text,n=e.isTrailing,r=void 0!==n&&n,o=Object(l.useRef)(null),a=function(){return"".concat(null!=t?t:"").concat(r?"\n":"")},i=rj(Object(l.useState)(a),1)[0];return OC((function(){var e=a();o.current&&o.current.textContent!==e&&(o.current.textContent=e)})),s.a.createElement(AC,{ref:o},i)},AC=Object(l.memo)(Object(l.forwardRef)((function(e,t){return s.a.createElement("span",{"data-slate-string":!0,ref:t},e.children)}))),LC=function(e){var t=e.length,n=void 0===t?0:t,r=e.isLineBreak,o=void 0!==r&&r,a=e.isMarkPlaceholder,i={"data-slate-zero-width":o?"n":"z","data-slate-length":n};return void 0!==a&&a&&(i["data-slate-mark-placeholder"]=!0),s.a.createElement("span",Object.assign({},i),dj&&o?null:"\ufeff",o?s.a.createElement("br",null):null)};function RC(e){e.current&&(clearTimeout(e.current),e.current=null)}var FC=function(e){var t=e.leaf,n=e.isLast,r=e.text,o=e.parent,a=e.renderPlaceholder,i=e.renderLeaf,c=void 0===i?function(e){return s.a.createElement(BC,Object.assign({},e))}:i,u=cj(),f=Object(l.useRef)(null),p=Object(l.useRef)(null),d=rj(Object(l.useState)(!1),2),m=d[0],h=d[1],y=Object(l.useRef)(null),b=Object(l.useCallback)((function(e){if(function(e,t){e.current&&(e.current.disconnect(),t&&(e.current=null))}(f,null==e),null==e){var n;Dj.delete(u),null===(n=t.onPlaceholderResize)||void 0===n||n.call(t,null)}else{if(Dj.set(u,e),!f.current){var r=window.ResizeObserver||WS;f.current=new r((function(){var n;null===(n=t.onPlaceholderResize)||void 0===n||n.call(t,e)}))}f.current.observe(e),p.current=e}}),[p,t,u]),v=s.a.createElement(TC,{isLast:n,leaf:t,parent:o,text:r}),g=t[qj];if(Object(l.useEffect)((function(){return g?y.current||(y.current=setTimeout((function(){h(!0),y.current=null}),300)):(RC(y),h(!1)),function(){return RC(y)}}),[g,h]),g&&m){var w={children:t.placeholder,attributes:{"data-slate-placeholder":!0,style:{position:"absolute",top:0,pointerEvents:"none",width:"100%",maxWidth:"100%",display:"block",opacity:"0.333",userSelect:"none",textDecoration:"none",WebkitUserModify:hj?"inherit":void 0},contentEditable:!1,ref:b}};v=s.a.createElement(s.a.Fragment,null,a(w),v)}return c({attributes:{"data-slate-leaf":!0},children:v,leaf:t,text:r})},zC=s.a.memo(FC,(function(e,t){return t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&Ug.equals(t.leaf,e.leaf)&&t.leaf[qj]===e.leaf[qj]})),BC=function(e){var t=e.attributes,n=e.children;return s.a.createElement("span",Object.assign({},t),n)},YC=function(e){for(var t=e.decorations,n=e.isLast,r=e.parent,o=e.renderPlaceholder,a=e.renderLeaf,i=e.text,c=cj(),u=Object(l.useRef)(null),f=Ug.decorations(i,t),p=sC.findKey(c,i),d=[],m=0;m<f.length;m++){var h=f[m];d.push(s.a.createElement(zC,{isLast:n&&m===f.length-1,key:"".concat(p.id,"-").concat(m),renderPlaceholder:o,leaf:h,text:i,parent:r,renderLeaf:a}))}var y=Object(l.useCallback)((function(e){var t=Mj.get(c);e?(null==t||t.set(p,e),Pj.set(i,e),Nj.set(e,i)):(null==t||t.delete(p),Pj.delete(i),u.current&&Nj.delete(u.current)),u.current=e}),[u,c,p,i]);return s.a.createElement("span",{"data-slate-node":"text",ref:y},d)},IC=s.a.memo(YC,(function(e,t){return t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],o=t[n];if(r.anchor.offset!==o.anchor.offset||r.focus.offset!==o.focus.offset||!PC(r,o))return!1}return!0}(t.decorations,e.decorations)})),HC=function(e){var t=e.decorations,n=e.element,r=e.renderElement,o=void 0===r?function(e){return s.a.createElement(WC,Object.assign({},e))}:r,a=e.renderPlaceholder,i=e.renderLeaf,c=e.selection,u=cj(),f=$C(),p=u.isInline(n),d=sC.findKey(u,n),m=Object(l.useCallback)((function(e){var t=Mj.get(u);e?(null==t||t.set(d,e),Pj.set(n,e),Nj.set(e,n)):(null==t||t.delete(d),Pj.delete(n))}),[u,d,n]),h=GC({decorations:t,node:n,renderElement:o,renderPlaceholder:a,renderLeaf:i,selection:c}),y={"data-slate-node":"element",ref:m};if(p&&(y["data-slate-inline"]=!0),!p&&Pg.hasInlines(u,n)){var b=Sg.string(n),v=qx()(b);"rtl"===v&&(y.dir=v)}if(Pg.isVoid(u,n)){y["data-slate-void"]=!0,!f&&p&&(y.contentEditable=!1);var g=p?"span":"div",w=rj(Sg.texts(n),1),E=rj(w[0],1)[0];h=s.a.createElement(g,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},s.a.createElement(IC,{renderPlaceholder:a,decorations:[],isLast:!1,parent:n,text:E})),xj.set(E,0),Sj.set(E,n)}return o({attributes:y,children:h,element:n})},UC=s.a.memo(HC,(function(e,t){return e.element===t.element&&e.renderElement===t.renderElement&&e.renderLeaf===t.renderLeaf&&e.renderPlaceholder===t.renderPlaceholder&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],o=t[n];if(!wg.equals(r,o)||!PC(r,o))return!1}return!0}(e.decorations,t.decorations)&&(e.selection===t.selection||!!e.selection&&!!t.selection&&wg.equals(e.selection,t.selection))})),WC=function(e){var t=e.attributes,n=e.children,r=e.element,o=cj().isInline(r)?"span":"div";return s.a.createElement(o,Object.assign({},t,{style:{position:"relative"}}),n)},VC=Object(l.createContext)((function(){return[]})),qC=Object(l.createContext)(!1),GC=function(e){for(var t=e.decorations,n=e.node,r=e.renderElement,o=e.renderPlaceholder,a=e.renderLeaf,i=e.selection,c=Object(l.useContext)(VC),u=cj(),f=sC.findPath(u,n),p=[],d=_g.isElement(n)&&!u.isInline(n)&&Pg.hasInlines(u,n),m=0;m<n.children.length;m++){var h,y=f.concat(m),b=n.children[m],v=sC.findKey(u,b),g=Pg.range(u,y),w=i&&wg.intersection(g,i),E=c([b,y]),_=nj(t);try{for(_.s();!(h=_.n()).done;){var k=h.value,O=wg.intersection(k,g);O&&E.push(O)}}catch(e){_.e(e)}finally{_.f()}_g.isElement(b)?p.push(s.a.createElement(qC.Provider,{key:"provider-".concat(v.id),value:!!w},s.a.createElement(UC,{decorations:E,element:b,key:v.id,renderElement:r,renderPlaceholder:o,renderLeaf:a,selection:w}))):p.push(s.a.createElement(IC,{decorations:E,key:v.id,isLast:d&&m===n.children.length-1,parent:n,renderPlaceholder:o,renderLeaf:a,text:b})),xj.set(b,m),Sj.set(b,n)}return p},KC=Object(l.createContext)(!1),$C=function(){return Object(l.useContext)(KC)},JC=Object(l.createContext)(null),XC=function(){var e=Object(l.useContext)(JC);if(!e)throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");return e.editor};var QC={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",insertSoftBreak:"shift+enter",splitBlock:"enter",undo:"mod+z"},ZC={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},eD={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},tD=function(e){var t=QC[e],n=ZC[e],r=eD[e],o=t&&Object(VS.isHotkey)(t),a=n&&Object(VS.isHotkey)(n),i=r&&Object(VS.isHotkey)(r);return function(e){return!(!o||!o(e))||(!!(pj&&a&&a(e))||!(pj||!i||!i(e)))}},nD={isBold:tD("bold"),isCompose:tD("compose"),isMoveBackward:tD("moveBackward"),isMoveForward:tD("moveForward"),isDeleteBackward:tD("deleteBackward"),isDeleteForward:tD("deleteForward"),isDeleteLineBackward:tD("deleteLineBackward"),isDeleteLineForward:tD("deleteLineForward"),isDeleteWordBackward:tD("deleteWordBackward"),isDeleteWordForward:tD("deleteWordForward"),isExtendBackward:tD("extendBackward"),isExtendForward:tD("extendForward"),isExtendLineBackward:tD("extendLineBackward"),isExtendLineForward:tD("extendLineForward"),isItalic:tD("italic"),isMoveLineBackward:tD("moveLineBackward"),isMoveLineForward:tD("moveLineForward"),isMoveWordBackward:tD("moveWordBackward"),isMoveWordForward:tD("moveWordForward"),isRedo:tD("redo"),isSoftBreak:tD("insertSoftBreak"),isSplitBlock:tD("splitBlock"),isTransposeCharacter:tD("transposeCharacter"),isUndo:tD("undo")},rD={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0},oD=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&KS(e,t)}(n,e);var t=$S(n);function n(){var e;return tj(this,n),(e=t.apply(this,arguments)).context=null,e.manager=null,e.mutationObserver=null,e}return ZS(n,[{key:"observe",value:function(){var e,t=this.props.node;if(!t.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");null===(e=this.mutationObserver)||void 0===e||e.observe(t.current,rD)}},{key:"componentDidMount",value:function(){var e=this.props.receivedUserInput,t=this.context;this.manager=function(e,t){var n=[],r=function(){n=[]};return{registerMutations:function(r){var o;if(t.current){var a=r.filter((function(t){return aC(e,t,r)}));(o=n).push.apply(o,XS(a))}},restoreDOM:function(){n.length>0&&(n.reverse().forEach((function(e){"characterData"!==e.type&&(e.removedNodes.forEach((function(t){e.target.insertBefore(t,e.nextSibling)})),e.addedNodes.forEach((function(t){e.target.removeChild(t)})))})),r())},clear:r}}(t,e),this.mutationObserver=new MutationObserver(this.manager.registerMutations),this.observe()}},{key:"getSnapshotBeforeUpdate",value:function(){var e,t,n,r,o=null===(e=this.mutationObserver)||void 0===e?void 0:e.takeRecords();null!=o&&o.length&&(null===(r=this.manager)||void 0===r||r.registerMutations(o));return null===(t=this.mutationObserver)||void 0===t||t.disconnect(),null===(n=this.manager)||void 0===n||n.restoreDOM(),null}},{key:"componentDidUpdate",value:function(){var e;null===(e=this.manager)||void 0===e||e.clear(),this.observe()}},{key:"componentWillUnmount",value:function(){var e;null===(e=this.mutationObserver)||void 0===e||e.disconnect()}},{key:"render",value:function(){return this.props.children}}]),n}(l.Component);oD.contextType=sj;var aD=dj?oD:function(e){var t=e.children;return s.a.createElement(s.a.Fragment,null,t)},iD=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","scrollSelectionIntoView","style","as","disableDefaultStyles"],lD=["text"];function sD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sD(Object(n),!0).forEach((function(t){ij(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var uD=function(e){return s.a.createElement(s.a.Fragment,null,GC(e))},fD=function(e){var t=Object(l.useCallback)((function(e){return s.a.createElement(pD,Object.assign({},e))}),[]),n=e.autoFocus,r=e.decorate,o=void 0===r?dD:r,a=e.onDOMBeforeInput,i=e.placeholder,c=e.readOnly,u=void 0!==c&&c,f=e.renderElement,p=e.renderLeaf,d=e.renderPlaceholder,m=void 0===d?t:d,h=e.scrollSelectionIntoView,y=void 0===h?mD:h,b=e.style,v=void 0===b?{}:b,g=e.as,w=void 0===g?"div":g,E=e.disableDefaultStyles,_=void 0!==E&&E,k=lj(e,iD),O=XC(),x=rj(Object(l.useState)(!1),2),S=x[0],j=x[1],C=Object(l.useRef)(null),D=Object(l.useRef)([]),N=rj(Object(l.useState)(),2),P=N[0],T=N[1],M=function(){var e=cj(),t=Object(l.useRef)(!1),n=Object(l.useRef)(0),r=Object(l.useCallback)((function(){if(!t.current){t.current=!0;var r=sC.getWindow(e);r.cancelAnimationFrame(n.current),n.current=r.requestAnimationFrame((function(){t.current=!1}))}}),[e]);return Object(l.useEffect)((function(){return function(){return cancelAnimationFrame(n.current)}}),[]),{receivedUserInput:t,onUserInput:r}}(),A=M.onUserInput,L=M.receivedUserInput,R=rj(Object(l.useReducer)((function(e){return e+1}),0),2)[1];Vj.set(O,R),Aj.set(O,u);var F=Object(l.useMemo)((function(){return{isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1}}),[]);Object(l.useEffect)((function(){C.current&&n&&C.current.focus()}),[n]);var z=Object(l.useRef)(),B=Object(l.useMemo)((function(){return Jx()((function(){var e=z.current;if((dj||!sC.isComposing(O))&&(!F.isUpdatingSelection||null!=e&&e.isFlushing())&&!F.isDraggingInternally){var t=sC.findDocumentOrShadowRoot(O),n=t.activeElement,r=sC.toDOMNode(O,O),o=t.getSelection();if(n===r?(F.latestElement=n,Lj.set(O,!0)):Lj.delete(O),!o)return _w.deselect(O);var a=o.anchorNode,i=o.focusNode,l=sC.hasEditableTarget(O,a)||sC.isTargetInsideNonReadonlyVoid(O,a),s=sC.hasEditableTarget(O,i)||sC.isTargetInsideNonReadonlyVoid(O,i);if(l&&s){var c=sC.toSlateRange(O,o,{exactMatch:!1,suppressThrow:!0});c&&(sC.isComposing(O)||null!=e&&e.hasPendingChanges()||null!=e&&e.isFlushing()?null==e||e.handleUserSelect(c):_w.select(O,c))}!u||l&&s||_w.deselect(O)}}),100)}),[O,u,F]),Y=Object(l.useMemo)((function(){return Kx()(B,0)}),[B]);z.current=CC({node:C,onDOMSelectionChange:B,scheduleOnDOMSelectionChange:Y}),OC((function(){var e,t,n;C.current&&(n=$j(C.current))?(jj.set(O,n),Cj.set(O,C.current),Pj.set(O,C.current),Nj.set(C.current,O)):Pj.delete(O);var r=O.selection,o=sC.findDocumentOrShadowRoot(O).getSelection();if(o&&sC.isFocused(O)&&(null===(e=z.current)||void 0===e||!e.hasPendingAction())){var a=function(e){var t="None"!==o.type;if(r||t){var n,a=o.focusNode;if(mj&&o.rangeCount>1){var i=o.getRangeAt(0),l=o.getRangeAt(o.rangeCount-1);n=i.startContainer===a?l.endContainer:i.startContainer}else n=o.anchorNode;var s=Cj.get(O),c=!1;if(s.contains(n)&&s.contains(a)&&(c=!0),t&&c&&r&&!e){var u=sC.toSlateRange(O,o,{exactMatch:!0,suppressThrow:!0});if(u&&wg.equals(u,r)){var f,p;if(!F.hasMarkPlaceholder)return;if(null!==(f=n)&&void 0!==f&&null!==(p=f.parentElement)&&void 0!==p&&p.hasAttribute("data-slate-mark-placeholder"))return}}if(!r||sC.hasRange(O,r)){F.isUpdatingSelection=!0;var d=r&&sC.toDOMRange(O,r);return d?(sC.isComposing(O)&&!dj?o.collapseToEnd():wg.isBackward(r)?o.setBaseAndExtent(d.endContainer,d.endOffset,d.startContainer,d.startOffset):o.setBaseAndExtent(d.startContainer,d.startOffset,d.endContainer,d.endOffset),y(O,d)):o.removeAllRanges(),d}O.selection=sC.toSlateRange(O,o,{exactMatch:!1,suppressThrow:!0})}};o.rangeCount<=1&&a();var i="action"===(null===(t=z.current)||void 0===t?void 0:t.isFlushing());if(dj&&i){var l=null,s=requestAnimationFrame((function(){if(i){var e=function(e){try{sC.toDOMNode(O,O).focus(),a(e)}catch(e){}};e(),l=setTimeout((function(){e(!0),F.isUpdatingSelection=!1}))}}));return function(){cancelAnimationFrame(s),l&&clearTimeout(l)}}setTimeout((function(){F.isUpdatingSelection=!1}))}}));var I=Object(l.useCallback)((function(e){if(A(),!u&&sC.hasEditableTarget(O,e.target)&&!bD(e,a)){var t;if(z.current)return z.current.handleDOMBeforeInput(e);Y.flush(),B.flush();var n=O.selection,r=e.inputType,o=e.dataTransfer||e.data||void 0,i="insertCompositionText"===r||"deleteCompositionText"===r;if(i&&sC.isComposing(O))return;var l=!1;if("insertText"===r&&n&&wg.isCollapsed(n)&&e.data&&1===e.data.length&&/[a-z ]/i.test(e.data)&&0!==n.anchor.offset){var s,c;l=!0,O.marks&&(l=!1);var f=n.anchor,p=rj(sC.toDOMPoint(O,f),2),d=p[0],m=p[1],h=null===(s=d.parentElement)||void 0===s?void 0:s.closest("a"),y=sC.getWindow(O);if(l&&h&&sC.hasDOMNode(O,h)){var b,v=null==y?void 0:y.document.createTreeWalker(h,NodeFilter.SHOW_TEXT).lastChild();v===d&&(null===(b=v.textContent)||void 0===b?void 0:b.length)===m&&(l=!1)}if(l&&d.parentElement&&"pre"===(null==y||null===(c=y.getComputedStyle(d.parentElement))||void 0===c?void 0:c.whiteSpace)){var g=Pg.above(O,{at:f.path,match:function(e){return _g.isElement(e)&&Pg.isBlock(O,e)}});g&&Sg.string(g[0]).includes("\t")&&(l=!1)}}if(!r.startsWith("delete")||r.startsWith("deleteBy")){var w=rj(e.getTargetRanges(),1)[0];if(w){var E=sC.toSlateRange(O,w,{exactMatch:!1,suppressThrow:!1});if(!n||!wg.equals(n,E)){l=!1;var _=!i&&O.selection&&Pg.rangeRef(O,O.selection);_w.select(O,E),_&&Fj.set(O,_)}}}if(i)return;if(l||e.preventDefault(),n&&wg.isExpanded(n)&&r.startsWith("delete")){var k=r.endsWith("Backward")?"backward":"forward";return void Pg.deleteFragment(O,{direction:k})}switch(r){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":Pg.deleteFragment(O);break;case"deleteContent":case"deleteContentForward":Pg.deleteForward(O);break;case"deleteContentBackward":Pg.deleteBackward(O);break;case"deleteEntireSoftLine":Pg.deleteBackward(O,{unit:"line"}),Pg.deleteForward(O,{unit:"line"});break;case"deleteHardLineBackward":Pg.deleteBackward(O,{unit:"block"});break;case"deleteSoftLineBackward":Pg.deleteBackward(O,{unit:"line"});break;case"deleteHardLineForward":Pg.deleteForward(O,{unit:"block"});break;case"deleteSoftLineForward":Pg.deleteForward(O,{unit:"line"});break;case"deleteWordBackward":Pg.deleteBackward(O,{unit:"word"});break;case"deleteWordForward":Pg.deleteForward(O,{unit:"word"});break;case"insertLineBreak":Pg.insertSoftBreak(O);break;case"insertParagraph":Pg.insertBreak(O);break;case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":"insertFromComposition"===r&&sC.isComposing(O)&&(j(!1),Rj.set(O,!1)),"DataTransfer"===(null==o?void 0:o.constructor.name)?sC.insertData(O,o):"string"==typeof o&&(l?D.current.push((function(){return Pg.insertText(O,o)})):Pg.insertText(O,o))}var x=null===(t=Fj.get(O))||void 0===t?void 0:t.unref();Fj.delete(O),!x||O.selection&&wg.equals(O.selection,x)||_w.select(O,x)}}),[O,B,A,a,u,Y]),H=Object(l.useCallback)((function(e){null==e?(B.cancel(),Y.cancel(),Cj.delete(O),Pj.delete(O),C.current&&Oj&&C.current.removeEventListener("beforeinput",I)):Oj&&e.addEventListener("beforeinput",I),C.current=e}),[B,Y,O,I]);OC((function(){var e=sC.getWindow(O);return e.document.addEventListener("selectionchange",Y),function(){e.document.removeEventListener("selectionchange",Y)}}),[Y]);var U=o([O,[]]),W=i&&1===O.children.length&&1===Array.from(Sg.texts(O)).length&&""===Sg.string(O)&&!S,V=Object(l.useCallback)((function(e){var t;e&&W?T(null===(t=e.getBoundingClientRect())||void 0===t?void 0:t.height):T(void 0)}),[W]);if(W){var q,G=Pg.start(O,[]);U.push((GS(q={},qj,!0),GS(q,"placeholder",i),GS(q,"onPlaceholderResize",V),GS(q,"anchor",G),GS(q,"focus",G),q))}var K=O.marks;if(F.hasMarkPlaceholder=!1,O.selection&&wg.isCollapsed(O.selection)&&K){var $=O.selection.anchor,J=Sg.leaf(O,$.path),X=lj(J,lD);if(!Ug.equals(J,K,{loose:!0})){F.hasMarkPlaceholder=!0;var Q=Object.fromEntries(Object.keys(X).map((function(e){return[e,null]})));U.push(cD(cD(cD(GS({},Gj,!0),Q),K),{},{anchor:$,focus:$}))}}return Object(l.useEffect)((function(){setTimeout((function(){var e=O.selection;if(e){var t=e.anchor,n=Sg.leaf(O,t.path);if(K&&!Ug.equals(n,K,{loose:!0}))return void Yj.set(O,K)}Yj.delete(O)}))})),s.a.createElement(KC.Provider,{value:u},s.a.createElement(VC.Provider,{value:o},s.a.createElement(aD,{node:C,receivedUserInput:L},s.a.createElement(w,Object.assign({role:u?void 0:"textbox","aria-multiline":!u||void 0},k,{spellCheck:!(!Oj&&kj)&&k.spellCheck,autoCorrect:Oj||!kj?k.autoCorrect:"false",autoCapitalize:Oj||!kj?k.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!u,zindex:-1,suppressContentEditableWarning:!0,ref:H,style:cD(cD({},_?{}:cD({position:"relative",whiteSpace:"pre-wrap",wordWrap:"break-word"},P?{minHeight:P}:{})),v),onBeforeInput:Object(l.useCallback)((function(e){if(!Oj&&!u&&!hD(e,k.onBeforeInput)&&sC.hasSelectableTarget(O,e.target)&&(e.preventDefault(),!sC.isComposing(O))){var t=e.data;Pg.insertText(O,t)}}),[k.onBeforeInput,O,u]),onInput:Object(l.useCallback)((function(e){if(!hD(e,k.onInput))if(z.current)z.current.handleInput();else{var t,n=nj(D.current);try{for(n.s();!(t=n.n()).done;){(0,t.value)()}}catch(e){n.e(e)}finally{n.f()}D.current=[]}}),[k.onInput]),onBlur:Object(l.useCallback)((function(e){if(!u&&!F.isUpdatingSelection&&sC.hasSelectableTarget(O,e.target)&&!hD(e,k.onBlur)){var t=sC.findDocumentOrShadowRoot(O);if(F.latestElement!==t.activeElement){var n=e.relatedTarget;if(!(n===sC.toDOMNode(O,O)||Jj(n)&&n.hasAttribute("data-slate-spacer"))){if(null!=n&&Xj(n)&&sC.hasDOMNode(O,n)){var r=sC.toSlateNode(O,n);if(_g.isElement(r)&&!O.isVoid(r))return}if(hj){var o=t.getSelection();null==o||o.removeAllRanges()}Lj.delete(O)}}}}),[u,F.isUpdatingSelection,F.latestElement,O,k.onBlur]),onClick:Object(l.useCallback)((function(e){if(sC.hasTarget(O,e.target)&&!hD(e,k.onClick)&&Xj(e.target)){var t=sC.toSlateNode(O,e.target),n=sC.findPath(O,t);if(!Pg.hasPath(O,n)||Sg.get(O,n)!==t)return;if(3===e.detail&&n.length>=1){var r=n;if(!_g.isElement(t)||!Pg.isBlock(O,t)){var o,a=Pg.above(O,{match:function(e){return _g.isElement(e)&&Pg.isBlock(O,e)},at:n});r=null!==(o=null==a?void 0:a[1])&&void 0!==o?o:n.slice(0,1)}var i=Pg.range(O,r);return void _w.select(O,i)}if(u)return;var l=Pg.start(O,n),s=Pg.end(O,n),c=Pg.void(O,{at:l}),f=Pg.void(O,{at:s});if(c&&f&&fg.equals(c[1],f[1])){var p=Pg.range(O,l);_w.select(O,p)}}}),[O,k.onClick,u]),onCompositionEnd:Object(l.useCallback)((function(e){if(sC.hasSelectableTarget(O,e.target)){var t;if(sC.isComposing(O)&&(j(!1),Rj.set(O,!1)),null===(t=z.current)||void 0===t||t.handleCompositionEnd(e),hD(e,k.onCompositionEnd)||dj)return;if(!hj&&!wj&&!fj&&!_j&&!Ej&&e.data){var n=Yj.get(O);Yj.delete(O),void 0!==n&&(Ij.set(O,O.marks),O.marks=n),Pg.insertText(O,e.data);var r=Ij.get(O);Ij.delete(O),void 0!==r&&(O.marks=r)}}}),[k.onCompositionEnd,O]),onCompositionUpdate:Object(l.useCallback)((function(e){sC.hasSelectableTarget(O,e.target)&&!hD(e,k.onCompositionUpdate)&&(sC.isComposing(O)||(j(!0),Rj.set(O,!0)))}),[k.onCompositionUpdate,O]),onCompositionStart:Object(l.useCallback)((function(e){if(sC.hasSelectableTarget(O,e.target)){var t;if(null===(t=z.current)||void 0===t||t.handleCompositionStart(e),hD(e,k.onCompositionStart)||dj)return;j(!0);var n=O.selection;if(n){if(wg.isExpanded(n))return void Pg.deleteFragment(O);var r=Pg.above(O,{match:function(e){return _g.isElement(e)&&Pg.isInline(O,e)},mode:"highest"});if(r){var o=rj(r,2)[1];if(Pg.isEnd(O,n.anchor,o)){var a=Pg.after(O,o);_w.setSelection(O,{anchor:a,focus:a})}}}}}),[k.onCompositionStart,O]),onCopy:Object(l.useCallback)((function(e){!sC.hasSelectableTarget(O,e.target)||hD(e,k.onCopy)||yD(e)||(e.preventDefault(),sC.setFragmentData(O,e.clipboardData,"copy"))}),[k.onCopy,O]),onCut:Object(l.useCallback)((function(e){if(!u&&sC.hasSelectableTarget(O,e.target)&&!hD(e,k.onCut)&&!yD(e)){e.preventDefault(),sC.setFragmentData(O,e.clipboardData,"cut");var t=O.selection;if(t)if(wg.isExpanded(t))Pg.deleteFragment(O);else{var n=Sg.parent(O,t.anchor.path);Pg.isVoid(O,n)&&_w.delete(O)}}}),[u,O,k.onCut]),onDragOver:Object(l.useCallback)((function(e){if(sC.hasTarget(O,e.target)&&!hD(e,k.onDragOver)){var t=sC.toSlateNode(O,e.target);_g.isElement(t)&&Pg.isVoid(O,t)&&e.preventDefault()}}),[k.onDragOver,O]),onDragStart:Object(l.useCallback)((function(e){if(!u&&sC.hasTarget(O,e.target)&&!hD(e,k.onDragStart)){var t=sC.toSlateNode(O,e.target),n=sC.findPath(O,t);if(_g.isElement(t)&&Pg.isVoid(O,t)||Pg.void(O,{at:n,voids:!0})){var r=Pg.range(O,n);_w.select(O,r)}F.isDraggingInternally=!0,sC.setFragmentData(O,e.dataTransfer,"drag")}}),[u,O,k.onDragStart,F]),onDrop:Object(l.useCallback)((function(e){if(!u&&sC.hasTarget(O,e.target)&&!hD(e,k.onDrop)){e.preventDefault();var t=O.selection,n=sC.findEventRange(O,e),r=e.dataTransfer;_w.select(O,n),F.isDraggingInternally&&(!t||wg.equals(t,n)||Pg.void(O,{at:n,voids:!0})||_w.delete(O,{at:t})),sC.insertData(O,r),sC.isFocused(O)||sC.focus(O)}F.isDraggingInternally=!1}),[u,O,k.onDrop,F]),onDragEnd:Object(l.useCallback)((function(e){!u&&F.isDraggingInternally&&k.onDragEnd&&sC.hasTarget(O,e.target)&&k.onDragEnd(e),F.isDraggingInternally=!1}),[u,F,k,O]),onFocus:Object(l.useCallback)((function(e){if(!u&&!F.isUpdatingSelection&&sC.hasEditableTarget(O,e.target)&&!hD(e,k.onFocus)){var t=sC.toDOMNode(O,O),n=sC.findDocumentOrShadowRoot(O);if(F.latestElement=n.activeElement,mj&&e.target!==t)return void t.focus();Lj.set(O,!0)}}),[u,F,O,k.onFocus]),onKeyDown:Object(l.useCallback)((function(e){if(!u&&sC.hasEditableTarget(O,e.target)){var t;null===(t=z.current)||void 0===t||t.handleKeyDown(e);var n=e.nativeEvent;if(sC.isComposing(O)&&!1===n.isComposing&&(Rj.set(O,!1),j(!1)),hD(e,k.onKeyDown)||sC.isComposing(O))return;var r=O.selection,o=O.children[null!==r?r.focus.path[0]:0],a="rtl"===qx()(Sg.string(o));if(nD.isRedo(n)){e.preventDefault();var i=O;return void("function"==typeof i.redo&&i.redo())}if(nD.isUndo(n)){e.preventDefault();var l=O;return void("function"==typeof l.undo&&l.undo())}if(nD.isMoveLineBackward(n))return e.preventDefault(),void _w.move(O,{unit:"line",reverse:!0});if(nD.isMoveLineForward(n))return e.preventDefault(),void _w.move(O,{unit:"line"});if(nD.isExtendLineBackward(n))return e.preventDefault(),void _w.move(O,{unit:"line",edge:"focus",reverse:!0});if(nD.isExtendLineForward(n))return e.preventDefault(),void _w.move(O,{unit:"line",edge:"focus"});if(nD.isMoveBackward(n))return e.preventDefault(),void(r&&wg.isCollapsed(r)?_w.move(O,{reverse:!a}):_w.collapse(O,{edge:"start"}));if(nD.isMoveForward(n))return e.preventDefault(),void(r&&wg.isCollapsed(r)?_w.move(O,{reverse:a}):_w.collapse(O,{edge:"end"}));if(nD.isMoveWordBackward(n))return e.preventDefault(),r&&wg.isExpanded(r)&&_w.collapse(O,{edge:"focus"}),void _w.move(O,{unit:"word",reverse:!a});if(nD.isMoveWordForward(n))return e.preventDefault(),r&&wg.isExpanded(r)&&_w.collapse(O,{edge:"focus"}),void _w.move(O,{unit:"word",reverse:a});if(Oj){if((bj||hj)&&r&&(nD.isDeleteBackward(n)||nD.isDeleteForward(n))&&wg.isCollapsed(r)){var s=Sg.parent(O,r.anchor.path);if(_g.isElement(s)&&Pg.isVoid(O,s)&&(Pg.isInline(O,s)||Pg.isBlock(O,s)))return e.preventDefault(),void Pg.deleteBackward(O,{unit:"block"})}}else{if(nD.isBold(n)||nD.isItalic(n)||nD.isTransposeCharacter(n))return void e.preventDefault();if(nD.isSoftBreak(n))return e.preventDefault(),void Pg.insertSoftBreak(O);if(nD.isSplitBlock(n))return e.preventDefault(),void Pg.insertBreak(O);if(nD.isDeleteBackward(n))return e.preventDefault(),void(r&&wg.isExpanded(r)?Pg.deleteFragment(O,{direction:"backward"}):Pg.deleteBackward(O));if(nD.isDeleteForward(n))return e.preventDefault(),void(r&&wg.isExpanded(r)?Pg.deleteFragment(O,{direction:"forward"}):Pg.deleteForward(O));if(nD.isDeleteLineBackward(n))return e.preventDefault(),void(r&&wg.isExpanded(r)?Pg.deleteFragment(O,{direction:"backward"}):Pg.deleteBackward(O,{unit:"line"}));if(nD.isDeleteLineForward(n))return e.preventDefault(),void(r&&wg.isExpanded(r)?Pg.deleteFragment(O,{direction:"forward"}):Pg.deleteForward(O,{unit:"line"}));if(nD.isDeleteWordBackward(n))return e.preventDefault(),void(r&&wg.isExpanded(r)?Pg.deleteFragment(O,{direction:"backward"}):Pg.deleteBackward(O,{unit:"word"}));if(nD.isDeleteWordForward(n))return e.preventDefault(),void(r&&wg.isExpanded(r)?Pg.deleteFragment(O,{direction:"forward"}):Pg.deleteForward(O,{unit:"word"}))}}}),[u,O,k.onKeyDown]),onPaste:Object(l.useCallback)((function(e){u||!sC.hasEditableTarget(O,e.target)||hD(e,k.onPaste)||(!Oj||function(e){return e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length}(e.nativeEvent)||hj)&&(e.preventDefault(),sC.insertData(O,e.clipboardData))}),[u,O,k.onPaste])}),s.a.createElement(uD,{decorations:U,node:O,renderElement:f,renderPlaceholder:m,renderLeaf:p,selection:O.selection})))))},pD=function(e){var t=e.attributes,n=e.children;return s.a.createElement("span",Object.assign({},t),n,dj&&s.a.createElement("br",null))},dD=function(){return[]},mD=function(e,t){if(t.getBoundingClientRect&&(!e.selection||e.selection&&wg.isCollapsed(e.selection))){var n=t.startContainer.parentElement;n.getBoundingClientRect=t.getBoundingClientRect.bind(t),aS(n,{scrollMode:"if-needed"}),delete n.getBoundingClientRect}},hD=function(e,t){if(!t)return!1;var n=t(e);return null!=n?n:e.isDefaultPrevented()||e.isPropagationStopped()},yD=function(e){return Xj(e.target)&&(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement)},bD=function(e,t){if(!t)return!1;var n=t(e);return null!=n?n:e.defaultPrevented},vD=Object(l.createContext)(!1);var gD=Object(l.createContext)({});var wD=["editor","children","onChange","initialValue"],ED=function(e){var t=e.editor,n=e.children,r=e.onChange,o=e.initialValue,a=lj(e,wD),i=Object(l.useRef)(!1),c=rj(s.a.useState((function(){if(!Sg.isNodeList(o))throw new Error("[Slate] initialValue is invalid! Expected a list of elements but got: ".concat(Fg.stringify(o)));if(!Pg.isEditor(t))throw new Error("[Slate] editor is invalid! You passed: ".concat(Fg.stringify(t)));return t.children=o,Object.assign(t,a),{v:0,editor:t}})),2),u=c[0],f=c[1],p=function(e){var t=Object(l.useRef)([]).current,n=Object(l.useRef)({editor:e}).current,r=Object(l.useCallback)((function(e){n.editor=e,t.forEach((function(t){return t(e)}))}),[t,n]);return{selectorContext:Object(l.useMemo)((function(){return{getSlate:function(){return n.editor},addEventListener:function(e){return t.push(e),function(){t.splice(t.indexOf(e),1)}}}}),[t,n]),onChange:r}}(t),d=p.selectorContext,m=p.onChange,h=Object(l.useCallback)((function(){r&&r(t.children),f((function(e){return{v:e.v+1,editor:t}})),m(t)}),[t,m,r]);Object(l.useEffect)((function(){return zj.set(t,h),function(){zj.set(t,(function(){})),i.current=!0}}),[t,h]);var y=rj(Object(l.useState)(sC.isFocused(t)),2),b=y[0],v=y[1];return Object(l.useEffect)((function(){v(sC.isFocused(t))}),[t]),OC((function(){var e=function(){return v(sC.isFocused(t))};return uj>=17?(document.addEventListener("focusin",e),document.addEventListener("focusout",e),function(){document.removeEventListener("focusin",e),document.removeEventListener("focusout",e)}):(document.addEventListener("focus",e,!0),document.addEventListener("blur",e,!0),function(){document.removeEventListener("focus",e,!0),document.removeEventListener("blur",e,!0)})}),[]),s.a.createElement(gD.Provider,{value:d},s.a.createElement(JC.Provider,{value:u},s.a.createElement(sj.Provider,{value:u.editor},s.a.createElement(vD.Provider,{value:b},n))))},_D=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},kD=function(e,t,n){var r=sC.toDOMRange(e,t).getBoundingClientRect(),o=sC.toDOMRange(e,n).getBoundingClientRect();return _D(r,o)&&_D(o,r)},OD=function(e,t){var n=Pg.range(e,wg.end(t)),r=Array.from(Pg.positions(e,{at:t})),o=0,a=r.length,i=Math.floor(a/2);if(kD(e,Pg.range(e,r[o]),n))return Pg.range(e,r[o],n);if(r.length<2)return Pg.range(e,r[r.length-1],n);for(;i!==r.length&&i!==o;)kD(e,Pg.range(e,r[i]),n)?a=i:o=i,i=Math.floor((o+a)/2);return Pg.range(e,r[a],n)};function xD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function SD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xD(Object(n),!0).forEach((function(t){ij(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var jD=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x-slate-fragment",n=e,r=n.apply,o=n.onChange,a=n.deleteBackward,i=n.addMark,l=n.removeMark;return Mj.set(n,new WeakMap),n.addMark=function(e,t){var r,o;null===(r=Bj.get(n))||void 0===r||r(),!Yj.get(n)&&null!==(o=Hj.get(n))&&void 0!==o&&o.length&&Yj.set(n,null),Ij.delete(n),i(e,t)},n.removeMark=function(e){var t;!Yj.get(n)&&null!==(t=Hj.get(n))&&void 0!==t&&t.length&&Yj.set(n,null),Ij.delete(n),l(e)},n.deleteBackward=function(e){if("line"!==e)return a(e);if(n.selection&&wg.isCollapsed(n.selection)){var t=Pg.above(n,{match:function(e){return _g.isElement(e)&&Pg.isBlock(n,e)},at:n.selection});if(t){var r=rj(t,2)[1],o=Pg.range(n,r,n.selection.anchor),i=OD(n,o);wg.isCollapsed(i)||_w.delete(n,{at:i})}}},n.apply=function(e){var t=[],o=Hj.get(n);if(null!=o&&o.length){var a=o.map((function(t){return function(e,t){var n=e.path,r=e.diff,o=e.id;switch(t.type){case"insert_text":return!fg.equals(t.path,n)||t.offset>=r.end?e:t.offset<=r.start?{diff:{start:t.text.length+r.start,end:t.text.length+r.end,text:r.text},id:o,path:n}:{diff:{start:r.start,end:r.end+t.text.length,text:r.text},id:o,path:n};case"remove_text":return!fg.equals(t.path,n)||t.offset>=r.end?e:t.offset+t.text.length<=r.start?{diff:{start:r.start-t.text.length,end:r.end-t.text.length,text:r.text},id:o,path:n}:{diff:{start:r.start,end:r.end-t.text.length,text:r.text},id:o,path:n};case"split_node":return!fg.equals(t.path,n)||t.position>=r.end?{diff:r,id:o,path:fg.transform(n,t,{affinity:"backward"})}:t.position>r.start?{diff:{start:r.start,end:Math.min(t.position,r.end),text:r.text},id:o,path:n}:{diff:{start:r.start-t.position,end:r.end-t.position,text:r.text},id:o,path:fg.transform(n,t,{affinity:"forward"})};case"merge_node":return fg.equals(t.path,n)?{diff:{start:r.start+t.position,end:r.end+t.position,text:r.text},id:o,path:fg.transform(n,t)}:{diff:r,id:o,path:fg.transform(n,t)}}var a=fg.transform(n,t);return a?{diff:r,path:a,id:o}:null}(t,e)})).filter(Boolean);Hj.set(n,a)}var i=Wj.get(n);i&&Wj.set(n,yC(n,i,e));var l=Uj.get(n);if(null!=l&&l.at){var s=Lg.isPoint(null==l?void 0:l.at)?hC(n,l.at,e):yC(n,l.at,e);Uj.set(n,s?SD(SD({},l),{},{at:s}):null)}switch(e.type){case"insert_text":case"remove_text":case"set_node":case"split_node":t.push.apply(t,XS(CD(n,e.path)));break;case"set_selection":var c;null===(c=Fj.get(n))||void 0===c||c.unref(),Fj.delete(n);break;case"insert_node":case"remove_node":t.push.apply(t,XS(CD(n,fg.parent(e.path))));break;case"merge_node":var u=fg.previous(e.path);t.push.apply(t,XS(CD(n,u)));break;case"move_node":var f=fg.common(fg.parent(e.path),fg.parent(e.newPath));t.push.apply(t,XS(CD(n,f)))}r(e);for(var p=0,d=t;p<d.length;p++){var m=rj(d[p],2),h=m[0],y=m[1],b=rj(Pg.node(n,h),1)[0];Tj.set(b,y)}},n.setFragmentData=function(e){var r=n.selection;if(r){var o=rj(wg.edges(r),2),a=o[0],i=o[1],l=Pg.void(n,{at:a.path}),s=Pg.void(n,{at:i.path});if(!wg.isCollapsed(r)||l){var c=sC.toDOMRange(n,r),u=c.cloneContents(),f=u.childNodes[0];if(u.childNodes.forEach((function(e){e.textContent&&""!==e.textContent.trim()&&(f=e)})),s){var p=rj(s,1)[0],d=c.cloneRange(),m=sC.toDOMNode(n,p);d.setEndAfter(m),u=d.cloneContents()}if(l&&(f=u.querySelector("[data-slate-spacer]")),Array.from(u.querySelectorAll("[data-slate-zero-width]")).forEach((function(e){var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),Zj(f)){var h=f.ownerDocument.createElement("span");h.style.whiteSpace="pre",h.appendChild(f),u.appendChild(h),f=h}var y=n.getFragment(),b=JSON.stringify(y),v=window.btoa(encodeURIComponent(b));f.setAttribute("data-slate-fragment",v),e.setData("application/".concat(t),v);var g=u.ownerDocument.createElement("div");return g.appendChild(u),g.setAttribute("hidden","true"),u.ownerDocument.body.appendChild(g),e.setData("text/html",g.innerHTML),e.setData("text/plain",nC(g)),u.ownerDocument.body.removeChild(g),e}}},n.insertData=function(e){n.insertFragmentData(e)||n.insertTextData(e)},n.insertFragmentData=function(e){var r=e.getData("application/".concat(t))||oC(e);if(r){var o=decodeURIComponent(window.atob(r)),a=JSON.parse(o);return n.insertFragment(a),!0}return!1},n.insertTextData=function(e){var t=e.getData("text/plain");if(t){var r,o=!1,a=nj(t.split(/\r\n|\r|\n/));try{for(a.s();!(r=a.n()).done;){var i=r.value;o&&_w.splitNodes(n,{always:!0}),n.insertText(i),o=!0}}catch(e){a.e(e)}finally{a.f()}return!0}return!1},n.onChange=function(e){(uj<18?u.a.unstable_batchedUpdates:function(e){return e()})((function(){var t=zj.get(n);t&&t(),o(e)}))},n},CD=function(e,t){var n,r=[],o=nj(Pg.levels(e,{at:t}));try{for(o.s();!(n=o.n()).done;){var a=rj(n.value,2),i=a[0],l=a[1],s=sC.findKey(e,i);r.push([l,s])}}catch(e){o.e(e)}finally{o.f()}return r};function DD(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ND(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ND(e,t)}(e,t)||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 ND(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var PD,TD,MD,AD,LD,RD,FD,zD,BD,YD,ID,HD,UD,WD,VD,qD,GD,KD,$D=function(e){var t=e.initiateSelecting,n=e.readonly,r=e.speakerName;return s.a.createElement("div",{className:ue()("speaker--name text--noselect",{clickable:!n},{"speaker--name-none":!r}),onClick:t,contentEditable:!1},s.a.createElement("div",{className:"speaker--name-wrap text--noselect",contentEditable:!1},r||s.a.createElement("span",{className:"speaker--name-none"},"(speaker)")))},JD=function(e){var t=e.element,n=e.onClose,r=e.speakerName,o=XC(),a=o.speakerNames(),i=Object(l.useCallback)((function(e){o.setSpeaker(t,e),n()}),[t,name]);return s.a.createElement("div",{className:"has--dropdown dropdown--show text--noselect",contentEditable:!1,"data-slate-editor":!0},s.a.createElement("div",{className:"speaker--name speaker--name-editing text--noselect",contentEditable:!1},s.a.createElement("div",{className:"speaker--name-wrap text--noselect",contentEditable:!1},r||"(speaker)")),s.a.createElement("div",{className:"dropdown--content speaker-edit-dropdown scrollbar--custom text--noselect",contentEditable:!1},s.a.createElement("ol",{className:"text--noselect",contentEditable:!1},s.a.createElement(eN,{setSpeaker:i,currentSpeaker:!0,name:r}),a.map((function(e){if(e!==r)return s.a.createElement(eN,{setSpeaker:i,key:e,name:e})})),s.a.createElement(XD,{setSpeaker:i}))))},XD=function(e){var t=e.setSpeaker,n=DD(Object(l.useState)(!1),2),r=n[0],o=n[1],a=Object(l.useCallback)((function(){return o(!0)}),[]);return r?s.a.createElement(ZD,{name:name,setSpeaker:t,setEditing:o}):s.a.createElement(QD,{name:name,setSpeaker:t,startEdit:a})},QD=function(e){var t=e.startEdit,n=e.setSpeaker,r=Object(l.useCallback)((function(){return n("")}),[]);return s.a.createElement("li",{className:"text--noselect",contentEditable:!1},s.a.createElement("div",{className:"text--noselect d-flex flex-row justify-content-between align-items-stretch",contentEditable:!1},s.a.createElement("span",{className:"clickable speaker--list-item speaker--list-item-add flex-grow-1 text--noselect",onClick:t,title:"Add a new speaker name to the list and assign",contentEditable:!1},s.a.createElement("i",{className:"fas fa-fw me-2 fa-plus"}),s.a.createElement("span",{className:"d-none d-xl-inline"},"New "),"Speaker"),s.a.createElement("a",{onClick:r,className:"speaker--edit ms-auto",title:"Remove speaker assignment, (speaker) will be shown"},"Remove")))},ZD=function(e){var t=e.setEditing,n=e.setSpeaker,r=DD(Object(l.useState)(""),2),o=r[0],a=r[1],i=Object(l.useCallback)((function(){n(o),t(!1)}),[o]),c=Object(l.useCallback)((function(e){"Enter"===e.key&&i()}),[i]);return s.a.createElement("li",{className:"text--noselect",contentEditable:!1},s.a.createElement("div",{className:"text--noselect",contentEditable:!1},s.a.createElement("div",{className:"input-group speaker-edit text--noselect",contentEditable:!1},s.a.createElement("input",{autoFocus:!0,type:"text",onKeyPress:c,value:o,onBeforeInput:function(e){return e.stopPropagation()},onChange:function(e){return a(e.target.value)},className:"speaker-input form-control"}),s.a.createElement("div",{className:"input-group-btn text--noselect",contentEditable:!1},s.a.createElement("a",{onClick:i,className:"btn speaker-save text--noselect clickable",contentEditable:!1},"save")))))},eN=function(e){var t=e.name,n=e.setSpeaker;if(""===t)return null;var r=DD(Object(l.useState)(!1),2),o=r[0],a=r[1],i=Object(l.useCallback)((function(){return a(!0)}),[]);return o?s.a.createElement(nN,{originalName:t,setEditing:a}):s.a.createElement(tN,{name:t,setSpeaker:n,startEdit:i})},tN=function(e){var t=e.currentSpeaker,n=e.startEdit,r=e.setSpeaker,o=e.name,a=ue()("clickable speaker--list-item flex-grow-1 text--noselect",{"speaker--list-item-current":t}),i=Object(l.useCallback)((function(){return r(o)}),[o]);return s.a.createElement("li",{className:"text--noselect",contentEditable:!1},s.a.createElement("div",{className:"text--noselect d-flex flex-row justify-content-between align-items-stretch",title:"Set speaker to: "+o,contentEditable:!1},s.a.createElement("div",{className:a,onClick:i,contentEditable:!1},o||" "),s.a.createElement("a",{onClick:n,className:"speaker--edit ms-auto",title:"Edit name: "+o},"Edit")))},nN=function(e){var t=e.originalName,n=e.setEditing,r=XC(),o=DD(Object(l.useState)(t),2),a=o[0],i=o[1],c=Object(l.useCallback)((function(){r.renameSpeaker(t,a),n(!1)}),[a]),u=Object(l.useCallback)((function(e){"Enter"===e.key&&c()}));return s.a.createElement("li",{className:"text--noselect",contentEditable:!1},s.a.createElement("div",{className:"text--noselect",contentEditable:!1},s.a.createElement("div",{className:"input-group speaker-edit text--noselect",contentEditable:!1},s.a.createElement("input",{autoFocus:!0,type:"text",onKeyPress:u,value:a,onBeforeInput:function(e){return e.stopPropagation()},onChange:function(e){return i(e.target.value)},className:"speaker-input form-control"}),s.a.createElement("div",{className:"input-group-btn text--noselect",contentEditable:!1},s.a.createElement("a",{onClick:c,className:"btn speaker-save text--noselect clickable",contentEditable:!1},"save")))))},rN=function(e){var t=e.element,n=e.readonly,r=t.speaker_name,o=DD(Object(l.useState)(!1),2),a=o[0],i=o[1],c=Object(l.useRef)(null),f=Object(l.useCallback)((function(e){var t=u.a.findDOMNode(c.current);t&&t.contains(e.target)||d()}),[]),p=Object(l.useCallback)((function(){n||(i(!0),document.addEventListener("mousedown",f))}),[n]),d=Object(l.useCallback)((function(){i(!1),document.removeEventListener("mousedown",f)}),[]);return s.a.createElement("div",{className:"speaker--meta text--noselect",contentEditable:!1,ref:c},a?s.a.createElement(JD,{element:t,speakerName:r,onClose:d}):s.a.createElement($D,{initiateSelecting:p,speakerName:r,readonly:n}))};function oN(e,t){return oN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},oN(e,t)}function aN(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=lN(e);if(t){var o=lN(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return iN(e)}(this,n)}}function iN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lN(e){return lN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},lN(e)}function sN(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function cN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function fN(e,t,n){return t&&uN(e.prototype,t),n&&uN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function pN(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var dN=(PD=d.action.bound,TD=d.action.bound,MD=d.action.bound,AD=d.action.bound,LD=function(){function e(){cN(this,e),sN(this,"time",RD,this),sN(this,"max",FD,this),sN(this,"min",zD,this),sN(this,"hours",BD,this),sN(this,"minutes",YD,this),sN(this,"seconds",ID,this),sN(this,"ms",HD,this)}return fN(e,[{key:"setTimestamp",value:function(e,t,n){this.time=e,this.min=t,this.max=n,this.hours=Math.floor(e/3600),this.minutes=Math.floor(e%3600/60),this.seconds=Math.floor(e%60),this.ms=Math.round(e%1*1e3)}},{key:"timeInSeconds",get:function(){return parseFloat(3600*this.hours+60*this.minutes+this.seconds+this.ms/1e3).toFixed(3)}},{key:"isOverMax",get:function(){return this.timeInSeconds>this.max}},{key:"isUnderMin",get:function(){return this.timeInSeconds<this.min}},{key:"isInvalidTime",get:function(){return this.isOverMax||this.isUnderMin}},{key:"setHours",value:function(e){this.hours=parseInt(e.target.value)}},{key:"setMinutes",value:function(e){this.minutes=parseInt(e.target.value)}},{key:"setSeconds",value:function(e){this.seconds=parseInt(e.target.value)}},{key:"setMs",value:function(e){this.ms=parseInt(e.target.value)}}]),e}(),RD=pN(LD.prototype,"time",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),FD=pN(LD.prototype,"max",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),zD=pN(LD.prototype,"min",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),BD=pN(LD.prototype,"hours",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),YD=pN(LD.prototype,"minutes",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),ID=pN(LD.prototype,"seconds",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),HD=pN(LD.prototype,"ms",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),pN(LD.prototype,"timeInSeconds",[d.computed],Object.getOwnPropertyDescriptor(LD.prototype,"timeInSeconds"),LD.prototype),pN(LD.prototype,"isOverMax",[d.computed],Object.getOwnPropertyDescriptor(LD.prototype,"isOverMax"),LD.prototype),pN(LD.prototype,"isUnderMin",[d.computed],Object.getOwnPropertyDescriptor(LD.prototype,"isUnderMin"),LD.prototype),pN(LD.prototype,"isInvalidTime",[d.computed],Object.getOwnPropertyDescriptor(LD.prototype,"isInvalidTime"),LD.prototype),pN(LD.prototype,"setHours",[PD],Object.getOwnPropertyDescriptor(LD.prototype,"setHours"),LD.prototype),pN(LD.prototype,"setMinutes",[TD],Object.getOwnPropertyDescriptor(LD.prototype,"setMinutes"),LD.prototype),pN(LD.prototype,"setSeconds",[MD],Object.getOwnPropertyDescriptor(LD.prototype,"setSeconds"),LD.prototype),pN(LD.prototype,"setMs",[AD],Object.getOwnPropertyDescriptor(LD.prototype,"setMs"),LD.prototype),LD),mN=function(e){return isNaN(e)?"":e},hN=Object(se.c)((function(e){var t=e.label,n=e.icon,r=e.timestamp,o=ue()("form-group form-time",{"form-time--error":r.isInvalidTime}),a=ue()("mb-2 d-flex justify-content-between",{"text--color-error":r.isInvalidTime});return s.a.createElement("div",{className:"timestamp--input mb-2"},s.a.createElement("label",{className:a,htmlFor:""},s.a.createElement("span",{className:"py-1"},s.a.createElement("i",{className:ue()("fas fa-fw me-1",n)}),t),r.isInvalidTime&&s.a.createElement("span",{className:"badge py-1 text-bg-danger d-flex-grow align-right","data-balloon-length":"large","data-balloon":r.isUnderMin?"This timestamp overlaps with the previous one. Please adjust the previous timestamp first.":"This timestamp overlaps with the next one. Please adjust the next timestamp first.","data-balloon-text-align":"left","data-balloon-pos":"right"},s.a.createElement("i",{className:ue()("fas fa-fw me-1 fa-exclamation-triangle")}),"Invalid timestamp")),s.a.createElement("div",{className:o},s.a.createElement("div",{className:"form-row row g-0"},s.a.createElement("div",{className:"col"},s.a.createElement("label",{className:"form-time-field","data-time-label":"hr"},s.a.createElement("input",{type:"number",id:"offsetHours",className:"form-time-hours form-control",min:"0",max:"99",placeholder:"00",value:mN(r.hours),onChange:r.setHours}))),s.a.createElement("div",{className:"col"},s.a.createElement("label",{className:"form-time-field","data-time-label":"min","data-time-separator":":"},s.a.createElement("input",{type:"number",id:"offsetMinutes",className:"form-time-field form-time-minutes form-control",min:"0",max:"60",placeholder:"00",value:mN(r.minutes),onChange:r.setMinutes}))),s.a.createElement("div",{className:"col"},s.a.createElement("label",{className:"form-time-field","data-time-label":"sec","data-time-separator":":"},s.a.createElement("input",{type:"number",id:"offsetSeconds",className:"form-time-field form-time-seconds form-control",min:"0",max:"60",placeholder:"00",value:mN(r.seconds),onChange:r.setSeconds}))),s.a.createElement("div",{className:"col"},s.a.createElement("label",{className:"form-time-field","data-time-label":"ms","data-time-separator":"."},s.a.createElement("input",{type:"number",id:"offsetMilliSeconds",className:"form-time-field form-time-mseconds form-control",min:"0",max:"999",placeholder:"000",value:mN(r.ms),onChange:r.setMs}))))))})),yN=(UD=d.action.bound,WD=d.action.bound,Object(se.c)((qD=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oN(e,t)}(n,e);var t=aN(n);function n(){var e;cN(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return sN(e=t.call.apply(t,[this].concat(o)),"startTimestamp",GD,iN(e)),sN(e,"endTimestamp",KD,iN(e)),e}return fN(n,[{key:"componentDidMount",value:function(){this.setTimestamps()}},{key:"setTimestamps",value:function(){var e=this.props,t=e.element,n=e.store,r=t.from,o=t.to,a=n.transcript.editor,i=a.pathFromNode(t),l=Pg.previous(a,{at:i}),s=(l?l[0].to:0)+Object(we.h)(),c=o+Object(we.h)();this.startTimestamp.setTimestamp(r+Object(we.h)(),s,c);var u=Pg.next(a,{at:i}),f=r+Object(we.h)(),p=(u?u[0].from:o+60)+Object(we.h)();this.endTimestamp.setTimestamp(o+Object(we.h)(),f,p)}},{key:"saveTimestamps",value:function(){var e=this.props,t=e.element,n=e.store.transcript.editor,r=+(this.startTimestamp.timeInSeconds-Object(we.h)()).toFixed(3),o=+(this.endTimestamp.timeInSeconds-Object(we.h)()).toFixed(3);n.setStartTime(t,r),n.setEndTime(t,o)}},{key:"render",value:function(){var e=this.props,t=e.element,n=e.isLanguageRtl,r=e.user,o=t.from,a=t.to,i=ue()("dropdown--content-20rem text-start",{"dropdown--content-left":!n,"dropdown--content-right":n}),l=a-o<1||this.startTimestamp.isInvalidTime||this.endTimestamp.isInvalidTime,c=ue()("btn btn-xs btn-speaker exchange--timestamp-value",{"exchange--timestamp-invalid":r.preferences.highlight_invalid_timestamps&&l});return s.a.createElement(Ia,{tag:"div",className:"btn-group",onOpen:this.setTimestamps,onClose:this.saveTimestamps},s.a.createElement(Ia.Toggle,{tag:"span",className:c,title:"Paragraph starts at "+Object(we.e)(o),"data-balloon":"Adjust timecodes","data-balloon-pos":"up"},s.a.createElement("i",{className:"fas fa-fw fa-clock mx-1"}),Object(we.e)(o)),s.a.createElement(Ia.Content,{className:i,dropdownStyle:n?{top:"30px",right:"0px"}:{top:"30px",left:"0px"},title:"Adjust timecodes"},s.a.createElement("div",{className:"mt-3",dir:"ltr","data-slate-editor":!0,contentEditable:!1},s.a.createElement(hN,{label:"Start timecode",icon:"fa-hourglass-start",timestamp:this.startTimestamp}),s.a.createElement(hN,{label:"End timecode",icon:"fa-hourglass-end",timestamp:this.endTimestamp}))))}}]),n}(s.a.Component),GD=pN(qD.prototype,"startTimestamp",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new dN}}),KD=pN(qD.prototype,"endTimestamp",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new dN}}),pN(qD.prototype,"setTimestamps",[UD],Object.getOwnPropertyDescriptor(qD.prototype,"setTimestamps"),qD.prototype),pN(qD.prototype,"saveTimestamps",[WD],Object.getOwnPropertyDescriptor(qD.prototype,"saveTimestamps"),qD.prototype),VD=qD))||VD),bN=yN,vN=s.a.memo((function(e){var t=e.speakerName;return s.a.createElement("div",{className:"speaker--meta text--noselect"},s.a.createElement("div",{className:ue()("speaker--name text--noselect",{"speaker--name-none":!t})},s.a.createElement("div",{className:"speaker--name-wrap text--noselect"},t||s.a.createElement("span",{className:"speaker--name-none"},"(speaker)"))))}),(function(){return!0})),gN=s.a.memo((function(e){var t=e.element.from;return s.a.createElement("span",{className:"btn btn-xs btn-speaker exchange--timestamp-value",style:{zIndex:1e3},title:"Paragraph starts at "+Object(we.e)(t),"data-balloon":"Adjust timecodes","data-balloon-pos":"right"},s.a.createElement("i",{className:"fas fa-fw fa-clock mx-1"}),Object(we.e)(t))}),(function(){return!0})),wN=s.a.memo((function(e){var t=e.element,n=e.store,r=n.readonly,o=n.transcript.translated,a=n.uiState.isVideoLarge,i=!!t.source_text;return s.a.createElement("div",{contentEditable:!1,className:ue()("exchange--extra col-sm-3 px-md-0 px-lg-1",{"col-md-1 order-md-2":!a},{"col-md-3 exchange--extra-video-large":a})},s.a.createElement("div",{className:"exchange--extra-functions text--noselect"},s.a.createElement("div",{className:"btn-group"},s.a.createElement("i",{className:"fas fa-fw fa-square text--color-white-smoke"}),o&&i&&s.a.createElement("i",{className:"fas fa-fw fa-square text--color-white-smoke"}),!r&&s.a.createElement("i",{className:"fas fa-fw fa-square text--color-white-smoke"}))))}),(function(){return!0})),EN=s.a.memo((function(e){var t=e.element;return s.a.createElement("span",{className:"word",contentEditable:!1},t.children.map((function(e){return e.text})).join(""))}),(function(){return!0})),_N=s.a.memo((function(e){var t=e.element,n=e.store,r=t.from,o=n.uiState,a=o.isVideoLarge,i=o.isCharCountShown;return s.a.createElement("div",{className:"row my-1",onClick:n.transcript.viewManager.calculateExchangesInViewport},s.a.createElement("div",{className:ue()("exchange--meta col-sm-9 text--noselect",{"col-md-3":!a},{"exchange--meta-video-large col-md-9":a}),contentEditable:!1},s.a.createElement("div",{className:"exchange--timestamp btn-toolbar justify-content-start text--noselect",contentEditable:!1},s.a.createElement(gN,{element:t}),s.a.createElement("div",{className:"btn-group d-print-none"},s.a.createElement("a",{className:"btn btn-xs btn-speaker btn-speaker-light text--noselect clickable","data-balloon":"Play from "+Object(we.e)(r),"data-balloon-pos":"up",contentEditable:!1},s.a.createElement("i",{className:"fas fa-fw fa-play mx-1"})),s.a.createElement("a",{className:"btn btn-xs btn-speaker btn-speaker-light text--noselect clickable","data-balloon":"Pause","data-balloon-pos":"up",contentEditable:!1},s.a.createElement("i",{className:"fas fa-fw fa-pause mx-1"})))),s.a.createElement(vN,{speakerName:t.speaker_name})),s.a.createElement(wN,{element:t,store:n}),s.a.createElement("div",{className:ue()("exchange--content-wrapper col-sm-12 position--relative",{"col-md-8":!a},{"exchange--content-video-large":a})},i&&s.a.createElement("div",{className:"exchange--character-count text--color-meta text-start text--noselect",contentEditable:!1},s.a.createElement("div",{className:"badge d-block"},"## CPS"),s.a.createElement("div",{className:"badge badge-glass-light d-block mx-2"},"##")),s.a.createElement("div",{className:ue()("exchange--content position--relative")},s.a.createElement(EN,{element:t}))))}),(function(){return!0}));function kN(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ON(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ON(e,t)}(e,t)||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 ON(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var xN=Object(se.c)((function(e){var t=e.store,n=e.element,r=e.toggleSourceText,o=e.showSourceText,a=t.readonly,i=t.recording,l=t.transcript,c=t.uiState.isVideoLarge,u=l.translated,f=i.fullLanguage,p=!!n.source_text;return s.a.createElement("div",{contentEditable:!1,className:ue()("exchange--extra col-sm-3 px-md-0 px-lg-1",{"col-md-1 order-md-2":!c},{"col-md-3 exchange--extra-video-large":c})},s.a.createElement("div",{className:"exchange--extra-functions text--noselect"},s.a.createElement("div",{className:"btn-group"},s.a.createElement(Ux,{element:n,transcript:l,readonly:a}),u&&p&&s.a.createElement("a",{className:"pill text--noselect clickable language--toggle",contentEditable:!1,onClick:r,"data-balloon":"View original language (".concat(f,")"),"data-balloon-pos":"up-left"},s.a.createElement("i",{className:ue()("far fa-fw",{"far fa-globe":!o,"fas fa-globe":o})})),!a&&s.a.createElement(Wx,{element:n,transcript:l}))))})),SN=function(e){var t=e.attributes,n=e.children,r=e.element,o=e.store,a=o.readonly,i=o.uiState,c=o.recording,u=o.user,f=r.from,p=i.isVideoLarge,d=!!t.dir,m=u.preferences.click_to_skip,h=c.fullLanguage,y=r.source_text,b=kN(Object(ih.a)(!1),2),v=b[0],g=b[1],w=Object(l.useCallback)((function(){return o.playFrom(f)}),[f]),E=Object(l.useCallback)((function(e){if(m){var t=e.target.closest(".word");if(t){var n=t.dataset.from;n&&o.updatePosition(n/100)}}}),[m]);return s.a.createElement("div",{className:"row my-1"},s.a.createElement("div",{className:ue()("exchange--meta col-sm-9 text--noselect",{"col-md-3":!p},{"exchange--meta-video-large col-md-9":p}),contentEditable:!1},s.a.createElement("div",{className:"exchange--timestamp btn-toolbar justify-content-start text--noselect",contentEditable:!1},a?s.a.createElement(gN,{element:r}):s.a.createElement(bN,{element:r,isLanguageRtl:d,user:u,store:o}),s.a.createElement("div",{className:"btn-group d-print-none"},s.a.createElement("a",{className:"btn btn-xs btn-speaker btn-speaker-light text--noselect clickable",onClick:w,"data-balloon":"Play from "+Object(we.e)(f),"data-balloon-pos":"up",contentEditable:!1},s.a.createElement("i",{className:"fas fa-fw fa-play mx-1"})),s.a.createElement("a",{className:"btn btn-xs btn-speaker btn-speaker-light text--noselect clickable",onClick:o.pauseAudio,"data-balloon":"Pause","data-balloon-pos":"up",contentEditable:!1},s.a.createElement("i",{className:"fas fa-fw fa-pause mx-1"})))),s.a.createElement(rN,{element:r,readonly:a})),s.a.createElement(xN,{element:r,store:o,toggleSourceText:g,showSourceText:v}),s.a.createElement("div",{className:ue()("exchange--content-wrapper col-sm-12 position--relative",{"col-md-8":!p},{"exchange--content-video-large":p})},s.a.createElement(Yx,{element:r,uiState:i}),s.a.createElement("div",{className:ue()("exchange--content position--relative"),onClick:E},n,v&&s.a.createElement("div",{className:"exchange--language-original text--noselect",contentEditable:!1},s.a.createElement("h4",{className:"text--noselect"},s.a.createElement("i",{className:"far fa-fw fa-volume me-2"}),"Original Language: ",h),s.a.createElement("p",{className:"text--noselect",contentEditable:!1},y)))))},jN=Object(se.c)((function(e){var t=e.attributes,n=e.children,r=e.element,o=e.store,a=o.readonly,i=o.transcript,l=o.uiState,c=i.viewManager.isVisible(r),u=!!r.completed,f=r.from,p=l.isVideoLarge,d=i.isRtlLang,m=ue()("container-fluid exchange--speaker",{"exchange--working":a||!u,"exchange--completed":u&&!a,"exchange--speaker-simple":!c,"exchange--video-large":p,"language-rtl":d});return s.a.createElement("div",Object.assign({},t,{className:m,dir:d?"rtl":"ltr","data-exchange-from":(100*f).toFixed(0)}),c?s.a.createElement(SN,{attributes:t,children:n,element:r,store:o}):s.a.createElement(_N,{element:r,store:o}))})),CN=function(e){return!0===e?null:"rgb("+(parseInt(e[1]+e[2],16)-80)+","+(parseInt(e[3]+e[4],16)-80)+","+(parseInt(e[5]+e[6],16)-80)+")"},DN=s.a.memo((function(e){var t,n=e.attributes,r=e.children,o=e.leaf,a=o.to,i=o.from,l=o.confidence,c=o.highlight,u=o.strikethrough;u&&(t="strikethrough"),c&&(t="highlight");var f=function(e){return Object.keys(Bb).find((function(t){return e>Bb[t][1]}))}(l),p=ue()("word",t,f),d=c||u,m=c?{backgroundColor:c+"88"}:{};return s.a.createElement("span",Object.assign({},n,{className:p,style:m,"data-from":(100*i).toFixed(0),"data-to":(100*a).toFixed(0),"data-tsf":Object(we.e)(i),"data-tst":Object(we.e)(a)}),o.startSegment&&s.a.createElement("em",{style:{color:CN(d)},title:"Start timestamp: "+Object(we.e)(i),className:"timestamp--start","data-tsf":Object(we.e)(i)}),r,o.endSegment&&!o.startSegment&&s.a.createElement("em",{style:{color:CN(d)},title:"End timestamp: "+Object(we.e)(a),className:"timestamp--end","data-tst":Object(we.e)(a)}))}),(function(e,t){var n=e.leaf,r=t.leaf;return n.text===r.text&&n.highlight===r.highlight&&n.strikethrough===r.strikethrough})),NN=DN;function PN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function TN(e,t){return TN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},TN(e,t)}function MN(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=AN(e);if(t){var o=AN(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function AN(e){return AN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},AN(e)}var LN=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&TN(e,t)}(a,e);var t,n,r,o=MN(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).state={hasError:!1},t}return t=a,r=[{key:"getDerivedStateFromError",value:function(e){return e.message.includes("Cannot resolve a DOM node from Slate node")?{hasError:!1}:{hasError:!0}}}],(n=[{key:"componentDidCatch",value:function(e,t){if(e.message.includes("Cannot resolve a DOM node from Slate node")){var n=this.props.editor;_w.deselect(n)}}},{key:"render",value:function(){return this.props.children}}])&&PN(t.prototype,n),r&&PN(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component);function RN(e){return"[object Object]"===Object.prototype.toString.call(e)}function FN(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return zN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zN(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function zN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var BN=function(e){return function(e){var t,n;return!1!==RN(e)&&(void 0===(t=e.constructor)||!1!==RN(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}(e)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||Dg.isOperationList(e.redos[0].operations))&&(0===e.undos.length||Dg.isOperationList(e.undos[0].operations))},YN=(new WeakMap,new WeakMap),IN=new WeakMap,HN={isHistoryEditor:function(e){return BN(e.history)&&Pg.isEditor(e)},isMerging:function(e){return IN.get(e)},isSaving:function(e){return YN.get(e)},redo:function(e){e.redo()},undo:function(e){e.undo()},withoutMerging:function(e,t){var n=HN.isMerging(e);IN.set(e,!1),t(),IN.set(e,n)},withoutSaving:function(e,t){var n=HN.isSaving(e);YN.set(e,!1),t(),YN.set(e,n)}},UN=function(e,t){return!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!fg.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!fg.equals(e.path,t.path))},WN=function(e,t){return"set_selection"!==e.type},VN=1,qN=function(){return VN+=1};var GN=function(e){var t=window.getSelection();if(!t.isCollapsed){var n=t.getRangeAt(0),r=window.document.querySelector("body"),o=window.document.createElement("div");o.setAttribute("contenteditable",!0),o.style.position="absolute",o.style.left="-9999px",o.innerText=e,r.appendChild(o);var a=window.document.createRange();a.selectNodeContents(o),t.removeAllRanges(),t.addRange(a),document.execCommand("copy"),window.requestAnimationFrame((function(){r.removeChild(o),t.removeAllRanges(),t.addRange(n)}))}};function KN(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return $N(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $N(e,t)}(e,t)||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 $N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var JN=function(e,t,n){var r=e.isInline,o=e.insertBreak,a=t.transcript,i=function(e){var t=e,n=t.apply;return t.history={undos:[],redos:[]},t.redo=function(){var e=t.history,n=e.redos;if(n.length>0){var r=n[n.length-1];r.selectionBefore&&_w.setSelection(t,r.selectionBefore),HN.withoutSaving(t,(function(){Pg.withoutNormalizing(t,(function(){var e,n=FN(r.operations);try{for(n.s();!(e=n.n()).done;){var o=e.value;t.apply(o)}}catch(e){n.e(e)}finally{n.f()}}))})),e.redos.pop(),t.writeHistory("undos",r)}},t.undo=function(){var e=t.history,n=e.undos;if(n.length>0){var r=n[n.length-1];HN.withoutSaving(t,(function(){Pg.withoutNormalizing(t,(function(){var e,n=FN(r.operations.map(Dg.inverse).reverse());try{for(n.s();!(e=n.n()).done;){var o=e.value;t.apply(o)}}catch(e){n.e(e)}finally{n.f()}r.selectionBefore&&_w.setSelection(t,r.selectionBefore)}))})),t.writeHistory("redos",r),e.undos.pop()}},t.apply=function(e){var r=t.operations,o=t.history,a=o.undos,i=a[a.length-1],l=i&&i.operations[i.operations.length-1],s=HN.isSaving(t),c=HN.isMerging(t);if(null==s&&(s=WN(e)),s){if(null==c&&(c=null!=i&&(0!==r.length||UN(e,l))),i&&c)i.operations.push(e);else{var u={operations:[e],selectionBefore:t.selection};t.writeHistory("undos",u)}for(;a.length>100;)a.shift();o.redos=[]}n(e)},t.writeHistory=function(e,n){t.history[e].push(n)},t}(jD(e));!function(){var e=sC.toDOMRange;sC.toDOMRange=function(t,n,r){try{return e(t,n,r)}catch(e){if(!e.toString().includes("Cannot resolve a DOM node from Slate"))throw e;t.deselect()}};var t=sC.toSlateRange;sC.toSlateRange=function(e,n,r){try{return t(e,n,r)}catch(e){if(!e.toString().includes("Cannot resolve a Slate point from DOM point"))throw e}}}(),i.findDOMNode=function(e){try{return sC.toDOMNode(i,e)}catch(e){return null}},i.isInline=function(e){return"word"===e.type||r(i)},i.insertSoftLineBreak=function(){_w.insertText(i,"\n")},i.insertBreak=function(){o();var e=wg.start(i.selection);_w.setNodes(i,{key:qN(),note:null},{at:[e.path[0]]})},i.pathFromNode=function(e){return sC.findPath(i,e)},i.cutFragment=function(e){if(!i.selection||wg.isCollapsed(i.selection))return null;i.copyFragment(e),Pg.deleteFragment(i)},i.pasteText=function(e){n.preferences.alert_for_large_pastes&&(e.clipboardData.getData("text/plain").length>60&&(confirm("Copy and pasting large blocks of text into Sonix may remove timestamp information. Do you want to continue?")||e.preventDefault()))},i.copyFragment=function(e){if(!i.selection||wg.isCollapsed(i.selection))return null;e&&e.preventDefault();var r=Pg.fragment(i,i.selection),o=n.preferences,a=o.include_speaker_name_on_copy,l=o.include_timestamps_on_copy,s=o.include_filename_on_copy,c=r.map((function(e,n){var r="",o="",i="",c=e.children,u=c.map((function(e){return e.text})).join("");s&&(i="".concat(t.recording.name," ")),l&&(r="[".concat(Object(we.e)(c[0].from),"-").concat(Object(we.e)(c[c.length-1].to),"] "));var f=e.speaker_name;return a&&""!==f&&(o="".concat(f,": ")),i+r+o+u})).join("\n\n");e&&e.clipboardData?(e.clipboardData.setData("text/html",c),e.clipboardData.setData("text/plain",c)):GN(c)},i.speakerNames=function(){var e=new Set(i.children.map((function(e){return e.speaker_name})));return a.paginated&&a.paginatedValue.forEach((function(t){t.forEach((function(t){t.sn&&e.add(t.sn)}))})),Array.from(e).sort((function(e,t){var n=(e||"").toLowerCase(),r=(t||"").toLowerCase();return n<r?-1:n>r?1:0}))},i.clearAllSpeakers=function(){for(var e=i.children.length,t=0;t<e;t++)_w.setNodes(i,{speaker_name:""},{at:[t]})},i.setNote=function(e,t){var n=i.pathFromNode(e);_w.setNodes(i,{note:t},{at:n})},i.setSpeaker=function(e,t){var n=i.pathFromNode(e);_w.setNodes(i,{speaker_name:t},{at:n})},i.adjustTimes=function(e,t,n){var r=i.pathFromNode(e);_w.setNodes(i,{from:+t.toFixed(3),to:+n.toFixed(3)},{at:r})},i.setStartTime=function(e,t){var n=i.pathFromNode(e),r=Pg.previous(i,{at:n});if(t=Math.max(t,0),r){var o=r[0];t=Math.max(o.to,t)}((t=Math.min(e.to,t))&&t!==e.from||0===t)&&_w.setNodes(i,{from:t},{at:n})},i.setEndTime=function(e,t){var n=i.pathFromNode(e),r=Pg.next(i,{at:n});if(t=Math.max(t,0),r){var o=r[0];t=Math.min(o.from,t)}((t=Math.max(e.from,t))&&t!==e.to||0===t)&&_w.setNodes(i,{to:t},{at:n})},i.renameSpeaker=function(e,t){for(var n=i.children.length,r=0;r<n;r++)i.children[r].speaker_name===e&&_w.setNodes(i,{speaker_name:t},{at:[r]})},i.setCompleted=function(e,t){var n=i.pathFromNode(e);_w.setNodes(i,{completed:t},{at:n}),a.calcPercentCompleted(i.children)},i.setText=function(e,t,n){var r={anchor:{path:t,offset:0},focus:{path:t,offset:e.text.length}};_w.insertText(i,n,{at:r})},i.handleExpandedSelection=function(e){var t=wg.start(i.selection),n=wg.end(i.selection);t.path[0]===n.path[0]||e.preventDefault()},i.handlePunctuation=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"toUpperCase";if(n.preferences.auto_capitalize){var o=wg.start(e.selection),a=Sg.get(e,o.path);if(" "===a.text[o.offset]){var l=a.text.substr(o.offset),s=l.search(/\S/);if(s>=0){var c={path:o.path,offset:s+o.offset};_w.delete(e,{at:c}),_w.insertText(e,l[s][r](),{at:c})}}else if(void 0===a.text[o.offset]){var u=Pg.next(i,{at:o.path});if(!u)return;var f=KN(u,2),p=f[0],d=f[1];if(d[0]!==o.path[0])return;var m=p.text.search(/\S/);if(m>=0){var h={path:d,offset:m};_w.delete(e,{at:h}),_w.insertText(e,p.text[m][r](),{at:h})}}t&&(i.insertText(t.key),t.preventDefault())}},i.mergeExchanges=function(e,t){var n=Sg.get(i,e),r=Sg.get(i,t);if(n.track===r.track){_w.mergeNodes(i,{at:t});var o={to:r.to};r.note&&(o.note=n.note?n.note+"\n\n"+r.note:r.note),_w.setNodes(i,o,{at:e})}},i.mergeWords=function(e,t){var n=Sg.get(i,t);_w.mergeNodes(i,{at:t}),_w.setNodes(i,{to:n.to},{at:e})};i.handleDelete=function(e){e.preventDefault();var t=wg.start(i.selection),n=t.path.slice(0,1),r=0===t.path[1],o=function(e){var t=e.selection;if(!t||!wg.isCollapsed(t))return null;var n=KN(Pg.node(e,t),2),r=n[0],o=n[1],a=Sg.string(r);if(t.anchor.offset!==a.length)return a[t.anchor.offset];try{var i=fg.next(o),l=Sg.get(e,i);return Sg.string(l)[0]}catch(e){return null}}(i),a=o&&o.match(/(\?|\!|\.)\s*$/);if(Lg.equals(t,Pg.end(i,n))){if(t.path[0]===i.children.length-1)return;var l=Pg.next(i,{at:n})[1];i.mergeExchanges(n,l)}else if(!r&&Pg.isStart(i,t,t.path)){var s=Pg.previous(i,{at:t.path})[1];i.deleteForward(),i.mergeWords(s,t.path)}else if(Pg.isEnd(i,t,t.path)){var c=Pg.next(i,{at:t.path})[1];i.deleteForward(),i.mergeWords(t.path,c)}else i.deleteForward();a&&i.handlePunctuation(null,"toLowerCase")};return i.handleBackspace=function(e){e.preventDefault();var t=wg.start(i.selection),n=t.path.slice(0,1),r=0===t.path[1],o=Sg.get(i,t.path),a=function(e){var t=e.selection;if(!t||!wg.isCollapsed(t))return null;var n=KN(Pg.node(e,t),2),r=n[0],o=n[1];if(0===t.anchor.offset&&0!==o[o.length-1]){var a=fg.previous(o),i=Sg.get(e,a),l=Sg.string(i);return l[l.length-1]}return t.anchor.offset>0?Sg.string(r)[t.anchor.offset-1]:null}(i),l=a&&a.match(/(\?|\!|\.)\s*$/);if(Lg.equals(t,Pg.start(i,n))&&0!==n[0]){var s=KN(Pg.previous(i,{at:n}),2)[1];i.mergeExchanges(s,n)}else if(r||1!=t.offset||" "!==o.text[0])i.deleteBackward();else{var c=Pg.previous(i,{at:t.path})[1];i.deleteBackward(),Sg.get(i,n).children.length>t.path[1]&&i.mergeWords(c,t.path)}l&&i.handlePunctuation(null,"toLowerCase")},i.splitExchange=function(){if(!i.selection)return null;var t=wg.start(i.selection),r=t.path.slice(0,1),o=[r[0]+1];if(!Lg.equals(t,Pg.start(i,r))&&!Lg.equals(t,Pg.end(i,r))){var a=!Lg.equals(t,Pg.start(i,t.path))&&!Lg.equals(t,Pg.end(i,t.path));_w.splitNodes(e,{always:!0});var l=Sg.get(i,r),s=Sg.get(i,o),c=KN(Sg.last(i,r),2),u=c[0],f=c[1];if(""===u.text.trim()&&(_w.removeNodes(i,{at:f}),a=!1),!a){var p=KN(Sg.first(i,o),2),d=p[0],m=p[1],h=d.text.replace(/^\s+/g,"");if(n.preferences.smart_paragraphs&&(h=h.charAt(0).toUpperCase()+h.slice(1)),i.setText(d,m,h),n.preferences.smart_paragraphs){var y=KN(Sg.last(i,r),2),b=y[0],v=y[1];b.text.match(/(\?|\!|,|;|\.|")\s*$/)||i.setText(b,v,b.text.replace(/\s+$/,"").concat(". "))}}var g=s.children[s.children.length-1].to;s.children[s.children.length+1]&&(g=Math.min[(s.children[s.children.length+1].from,g)]),_w.setNodes(i,{to:g},{at:[o]});var w=l.track?l.speaker_name:"",E=Sg.get(i,r),_=Math.min(E.children[E.children.length-1].to,E.to);_=Math.max(_,E.from),_w.setNodes(i,{to:_},{at:r});var k=Math.max(_,s.children[0].from);k=Math.min(k,s.to),_w.setNodes(i,{from:k,key:qN(),speaker_name:w,note:null},{at:[o]}),_w.select(i,{path:o.concat([0]),offset:0})}},a.setEditor(i),i};function XN(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return QN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return QN(e,t)}(e,t)||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 QN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ZN,eP,tP,nP,rP=function(e){var t=e.children;return u.a.createPortal(t,document.body)},oP=function(e){var t=e.store,n=Object(l.useRef)(),r=XC(),o=(t.addSelectedWordToDictionary,t.preventExportingAndSharing),a=t.transcript,i=t.uiState,c=a.applyHighlight,u=a.applyStrikethrough,f=XN(Object(l.useState)(!0),2),p=f[0],d=f[1],m=XN(Object(l.useState)(),2),h=m[0],y=m[1];Object(l.useEffect)((function(){var e=n.current,t=r.selection;if(e){if(!t||!sC.isFocused(r)||wg.isCollapsed(t)||""===Pg.string(r,t))return e.style.display="none",void(e.style.left="-1000px");var o=wg.start(r.selection),i=Sg.get(r,o.path),l=r.findDOMNode(i);if(!l)return e.style.display="none",void(e.style.left="-1000px");var s=l.getBoundingClientRect(),c=a.selectedWord();h!==c.from&&(y(c.from),d(!0)),e.style.display="block",e.style.top="".concat(s.top+window.pageYOffset-e.offsetHeight-30,"px"),e.style.left="".concat(s.left+window.pageXOffset-e.offsetWidth/2+s.width,"px")}}));var b=Object(l.useCallback)((function(e){e.preventDefault(),p&&t.updatePosition(h),t.playing===!p&&t.togglePlaying(),d(!p)})),v=ue()("far","fa-fw","clickable",{"fa-play":p,"fa-pause":!p});return s.a.createElement(rP,null,s.a.createElement("div",{ref:n,className:"action--bubble action--read-only"},s.a.createElement("div",{className:"form-group mb-0"},s.a.createElement("span",{onMouseDown:b,className:"btn btn--movement-none btn-action btn--shadow-none d-inline-block action--bubble-play-pause",title:"Play audio from here"},s.a.createElement("i",{className:v})),s.a.createElement("span",{onMouseDown:c,className:"btn btn--movement-none btn-action btn--shadow-none d-inline-block action--bubble-highlight",title:"Highlight: show timecodes for selected text"},s.a.createElement("i",{className:"far fa-highlighter clickable"})),s.a.createElement("span",{onMouseDown:u,className:"btn btn--movement-none btn-action btn--shadow-none d-inline-block action--bubble-strikethrough",title:"Strikethrough: cross out selected text"},s.a.createElement("i",{className:"far fa-strikethrough clickable"})),!a.translated&&s.a.createElement("span",null,!o&&s.a.createElement("span",{onMouseDown:i.showExportSelectedModal,className:"btn btn--movement-none btn-action btn--shadow-none d-inline-block action--bubble-strikethrough",title:"Create a clip of selected text"},s.a.createElement("i",{className:"far fa-cut clickable"}))))))},aP=Object(se.c)((function(e){var t=e.store,n=e.value,r=e.user,o=t.readonly,a=t.transcript,i=Object(l.useMemo)((function(){return JN(function(){var e={children:[],operations:[],selection:null,marks:null,isElementReadOnly:function(){return!1},isInline:function(){return!1},isSelectable:function(){return!0},isVoid:function(){return!1},markableVoid:function(){return!1},onChange:function(){},apply:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return kw.apply(void 0,[e].concat(n))},addMark:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Pw.apply(void 0,[e].concat(n))},deleteBackward:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return zw.apply(void 0,[e].concat(n))},deleteForward:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Bw.apply(void 0,[e].concat(n))},deleteFragment:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Yw.apply(void 0,[e].concat(n))},getFragment:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return xw.apply(void 0,[e].concat(n))},insertBreak:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return tE.apply(void 0,[e].concat(n))},insertSoftBreak:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return rE.apply(void 0,[e].concat(n))},insertFragment:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return HE.apply(void 0,[e].concat(n))},insertNode:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return nE.apply(void 0,[e].concat(n))},insertText:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return aE.apply(void 0,[e].concat(n))},normalizeNode:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Sw.apply(void 0,[e].concat(n))},removeMark:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return LE.apply(void 0,[e].concat(n))},getDirtyPaths:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ow.apply(void 0,[e].concat(n))},shouldNormalize:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return jw.apply(void 0,[e].concat(n))},above:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Cw.apply(void 0,[e].concat(n))},after:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Aw.apply(void 0,[e].concat(n))},before:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Fw.apply(void 0,[e].concat(n))},collapse:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return UE.apply(void 0,[e].concat(n))},delete:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return IE.apply(void 0,[e].concat(n))},deselect:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return WE.apply(void 0,[e].concat(n))},edges:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Iw.apply(void 0,[e].concat(n))},elementReadOnly:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ww.apply(void 0,[e].concat(n))},end:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Vw.apply(void 0,[e].concat(n))},first:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return qw.apply(void 0,[e].concat(n))},fragment:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Gw.apply(void 0,[e].concat(n))},getMarks:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return bE.apply(void 0,[e].concat(n))},hasBlocks:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Xw.apply(void 0,[e].concat(n))},hasInlines:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Qw.apply(void 0,[e].concat(n))},hasPath:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Zw.apply(void 0,[e].concat(n))},hasTexts:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return eE.apply(void 0,[e].concat(n))},insertNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return XE.apply(void 0,[e].concat(n))},isBlock:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return iE.apply(void 0,[e].concat(n))},isEdge:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return lE.apply(void 0,[e].concat(n))},isEmpty:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return sE.apply(void 0,[e].concat(n))},isEnd:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return cE.apply(void 0,[e].concat(n))},isNormalizing:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return uE.apply(void 0,[e].concat(n))},isStart:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return fE.apply(void 0,[e].concat(n))},last:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return pE.apply(void 0,[e].concat(n))},leaf:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return dE.apply(void 0,[e].concat(n))},levels:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return mE.apply(void 0,[e].concat(n))},liftNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return QE.apply(void 0,[e].concat(n))},mergeNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n_.apply(void 0,[e].concat(n))},move:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return VE.apply(void 0,[e].concat(n))},moveNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return r_.apply(void 0,[e].concat(n))},next:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return vE.apply(void 0,[e].concat(n))},node:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gE.apply(void 0,[e].concat(n))},nodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return wE.apply(void 0,[e].concat(n))},normalize:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return EE.apply(void 0,[e].concat(n))},parent:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _E.apply(void 0,[e].concat(n))},path:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return xE.apply(void 0,[e].concat(n))},pathRef:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return kE.apply(void 0,[e].concat(n))},pathRefs:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return OE.apply(void 0,[e].concat(n))},point:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return CE.apply(void 0,[e].concat(n))},pointRef:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return SE.apply(void 0,[e].concat(n))},pointRefs:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return jE.apply(void 0,[e].concat(n))},positions:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return DE.apply(void 0,[e].concat(n))},previous:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return NE.apply(void 0,[e].concat(n))},range:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ME.apply(void 0,[e].concat(n))},rangeRef:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return PE.apply(void 0,[e].concat(n))},rangeRefs:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return TE.apply(void 0,[e].concat(n))},removeNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return o_.apply(void 0,[e].concat(n))},select:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return qE.apply(void 0,[e].concat(n))},setNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return a_.apply(void 0,[e].concat(n))},setNormalizing:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return RE.apply(void 0,[e].concat(n))},setPoint:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return $E.apply(void 0,[e].concat(n))},setSelection:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return JE.apply(void 0,[e].concat(n))},splitNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return l_.apply(void 0,[e].concat(n))},start:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return FE.apply(void 0,[e].concat(n))},string:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return zE.apply(void 0,[e].concat(n))},unhangRange:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return BE.apply(void 0,[e].concat(n))},unsetNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return s_.apply(void 0,[e].concat(n))},unwrapNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c_.apply(void 0,[e].concat(n))},void:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Jw.apply(void 0,[e].concat(n))},withoutNormalizing:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return YE.apply(void 0,[e].concat(n))},wrapNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return b_.apply(void 0,[e].concat(n))}};return e}(),t,r)}),[]),c=!o&&r.preferences.action_bubble,u=Object(l.useCallback)((function(e){return s.a.createElement(NN,e)}),[]),f=Object(l.useCallback)((function(e){return s.a.createElement(jN,Object.assign({store:t},e))}),[]),p=Object(l.useCallback)((function(e){r.preferences.auto_pause&&a.value!==e&&t.pauseTemporarily(),a.setValue(e)}),[]);return Object(l.useEffect)((function(){return a.viewManager.calculateExchangesInViewport()}),[]),s.a.createElement("div",{className:"my-4 notranslate",id:"transcript-edit-area"},s.a.createElement(LN,{editor:i},s.a.createElement(ED,{editor:i,initialValue:n,onChange:p},c&&s.a.createElement(oP,{store:t}),s.a.createElement(fD,{readOnly:o,renderLeaf:u,renderElement:f,onCopy:i.copyFragment,onCut:i.cutFragment,onPaste:i.pasteText,style:{outline:"none"},onKeyDown:function(e){if(i.selection){var t=e.ctrlKey||e.altKey||e.metaKey,n=sC.isComposing(i);return wg.isExpanded(i.selection)&&!t?i.handleExpandedSelection(e):e.key.match(/(\?|\!|\.)\s*$/)&&wg.isCollapsed(i.selection)?i.handlePunctuation(e):"Enter"!==e.key||e.ctrlKey||n?"Backspace"!==e.key||t||n?"Delete"!==e.key||t||n?void 0:i.handleDelete(e):i.handleBackspace(e):(e.preventDefault(),e.shiftKey?i.insertSoftLineBreak():i.splitExchange())}}}))))})),iP=Object(se.c)((function(e){var t=e.isVideo,n=e.formattedDuration;return Object(we.k)("app.audio_cropped.view_alert"),s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement("div",{className:"alert alert-trial alert-cropped text--noselect px-4 py-3"},s.a.createElement("div",{className:"media"},s.a.createElement("i",{className:"far fa-cut fa-2x me-3"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("h3",{className:"mb-2"},"Transcript was shortened"),s.a.createElement("p",{className:"mb-3"},"You need more minutes to transcribe the entire ",t?"video":"audio"," file (",n,"). Access the rest of your transcript by upgrading your account or referring some friends."),s.a.createElement("div",{className:"mb-0"},s.a.createElement("a",{href:"/account/subscription/select_plan",className:"btn btn-alert mb-0 link--underline-none t--cropped-btn-subscribe",onClick:function(){return Object(we.k)("app.audio_cropped.click_upgrade_btn",n)}},s.a.createElement("i",{className:"far fa-fw fa-arrow-up me-2"}),"Upgrade"),s.a.createElement("a",{href:"/refer",className:"btn mb-0 link--underline-none t--upgrade-account-btn t--cropped-btn-refer",onClick:function(){return Object(we.k)("app.audio_cropped.click_refer_btn",n)}},s.a.createElement("i",{className:"far fa-fw fa-share me-2"}),"Refer friends")))))))}));function lP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function sP(e,t){return sP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sP(e,t)}function cP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=fP(e);if(t){var o=fP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return uP(e)}(this,n)}}function uP(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fP(e){return fP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fP(e)}function pP(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var dP="sonix.UAAlertDismissed",mP=(ZN=d.action.bound,Object(se.c)((tP=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sP(e,t)}(a,e);var t,n,r,o=cP(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),function(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(t=o.call(this,e),"alertActive",nP,uP(t));var n=window.navigator&&window.navigator.userAgent,r=/Chrome/.test(n),i=window.localStorage&&window.localStorage.getItem(dP);return t.alertActive=!r&&!i,t}return t=a,(n=[{key:"hideAlert",value:function(){window.localStorage&&window.localStorage.setItem(dP,"1"),this.alertActive=!1}},{key:"render",value:function(){return this.alertActive?s.a.createElement("div",{className:"alert alert-warning alert-has-close mt-3 alert-ie-warning",role:"alert"},s.a.createElement("button",{type:"button",className:"close clickable","data-dismiss":"alert","aria-label":"Close",onClick:this.hideAlert},s.a.createElement("span",{"aria-hidden":"true"},"×")),s.a.createElement("h3",{className:"mb-0"},s.a.createElement("i",{className:"fab fa-chrome me-2"}),"Sonix works best with Google Chrome"),s.a.createElement("p",null,"If you are having issues, please download and install ",s.a.createElement("a",{href:"https://google.com/chrome",className:"link--underline",target:"_blank"},"Google Chrome"),".")):s.a.createElement("div",null)}}])&&lP(t.prototype,n),r&&lP(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(l.Component),nP=pP(tP.prototype,"alertActive",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),pP(tP.prototype,"hideAlert",[ZN],Object.getOwnPropertyDescriptor(tP.prototype,"hideAlert"),tP.prototype),eP=tP))||eP),hP=mP;function yP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function bP(e,t){return bP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bP(e,t)}function vP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=gP(e);if(t){var o=gP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function gP(e){return gP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gP(e)}var wP,EP=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bP(e,t)}(a,e);var t,n,r,o=vP(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){return s.a.createElement("div",{className:"media"},s.a.createElement("i",{className:"far fa-page-break fa-2x align-self-top me-3"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("h3",{className:"text--color-secondary text--size-900rem mb-1"},"Pagination is recommended"),s.a.createElement("p",null,"Split your transcript into smaller 10 minute chunks to improve performance. Just click ",s.a.createElement("strong",null,'"Preferences"')," and enable ",s.a.createElement("strong",null,'"Paginate transcript."'))))}}])&&yP(t.prototype,n),r&&yP(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),_P=EP;function kP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function OP(e,t){return OP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},OP(e,t)}function xP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=SP(e);if(t){var o=SP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function SP(e){return SP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},SP(e)}var jP=Object(se.c)((function(e){var t=e.language,n=e.children;if("ko"==t)return s.a.createElement("div",{className:"transcript container-fluid position--relative transcript--language-ko",lang:"ko"},n);if("ja"==t)return s.a.createElement("div",{className:"transcript container-fluid position--relative transcript--language-ja",lang:"ja"},n);if("yue"==t||"cmn"==t)return s.a.createElement("div",{className:"transcript container-fluid position--relative transcript--language-sc",lang:"zh-Hans"},n);if("ar"==t)return s.a.createElement("div",{className:"transcript container-fluid position--relative transcript--language-ar",lang:"ar"},s.a.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Amiri:wght@400&display=swap",rel:"stylesheet"}),n);var r=ue()("transcript container-fluid position--relative","transcript--language-".concat(t));return s.a.createElement("div",{className:r,lang:t},n)})),CP=function(){return s.a.createElement("div",{className:"row py-5 justify-content-center"},s.a.createElement("div",{className:"col-sm-10 col-md-8 col-lg-6 py-5"},s.a.createElement("i",{className:"fa fa-microphone-slash mb-2 fa-4x d-block text--color-alert mb-3"}),s.a.createElement("h4",{className:"text--color-alert my-2"},"Whoops. We had a hard time hearing the audio in the file you uploaded."),s.a.createElement("p",null,"Here are some things to check:"),s.a.createElement("ol",{className:"mb-3"},s.a.createElement("li",null,"Recheck the file you uploaded to ensure that there is an audio track."),s.a.createElement("li",null,"Recheck the file you uploaded to make sure that the volume isn't soft."),s.a.createElement("li",null,"Did you upload the right file to Sonix?")),s.a.createElement("p",null,"We are happy to help you figure this out. Send a quick email to ",s.a.createElement(_O,{subject:"No audio issue"}),".")))},DP=s.a.memo((function(e){var t=e.wordTime,n=e.exchangeTime,r=e.isTimelineShown,o=e.isHighContrast,a=!!t&&(100*t).toFixed(0),i=!!n&&(100*n).toFixed(0);return o?s.a.createElement("style",{type:"text/css"},"\n              #exchanges .exchange--speaker {\n                color: #000000 !important;\n              }\n              #exchanges .exchange--speaker .speaker--name,\n              #exchanges .exchange--speaker .speaker--name .speaker--name-none,\n              #exchanges .exchange--speaker .speaker--name:after {\n                color: #000000 !important;\n              }\n              #exchanges .exchange--speaker .btn.btn-speaker,\n              #exchanges .exchange--speaker .btn i.fas {\n                color: #2A93D5 !important;\n                font-weight: 700 !important;\n              }\n              #exchanges .exchange--meta .exchange--timestamp span.exchange--timestamp-value.exchange--timestamp-invalid,\n              #exchanges .exchange--meta .exchange--timestamp span.exchange--timestamp-value.exchange--timestamp-invalid i.fas {\n                background-color: #A31621 !important;\n                color: #FFFFFF !important;\n                border-radius: 8px !important;\n              }\n        ",a&&"\n              span[data-from='".concat(a,"'] {\n                color: #007F1B !important;\n                font-weight: 700 !important;\n                background: rgba(0, 170, 40,0.1) !important;\n                border-radius: 3px !important;\n                padding-bottom: 2px !important;\n                border-bottom: 3px solid #007F1B !important;\n              }\n              span[data-from='").concat(a,"'] ~ span {\n                color: #000000 !important;\n              }\n            "),i&&"\n              div[data-exchange-from='".concat(i,"'] {\n                color: #000000 !important;\n              }\n              div[data-exchange-from='").concat(i,"'] .timestamp {\n                background-color: #F5F7FB;\n                color: #000000 !important;\n              }\n              div[data-exchange-from='").concat(i,"'] .timestamp:after {\n                color: #8C979A !important;\n              }\n              div[data-exchange-from='").concat(i,"'] ~ .exchange--speaker {\n                color: #000000 !important;\n              }\n            "),r&&"\n              #exchanges .exchange--speaker {\n                border: 1px solid transparent !important;\n              }\n              #exchanges .exchange--speaker[data-exchange-from='".concat(i,"'] {\n                background: transparent !important;\n                border: 1px solid #9A9A9A !important;\n              }\n              div[data-exchange-from='").concat(i,"'] .exchange--meta .speaker--meta .speaker--name,\n              div[data-exchange-from='").concat(i,"'] .exchange--meta .speaker--meta .speaker--name:after,\n              div[data-exchange-from='").concat(i,"'] .exchange--meta .speaker--meta .speaker--name span {\n                color:  #2A93D5 !important;\n              }\n        ")):s.a.createElement("style",{type:"text/css"},a&&"\n              span[data-from='".concat(a,"'] {\n                color: #2A93D5 !important;\n                font-weight: 700 !important;\n              }\n              span[data-from='").concat(a,"'] ~ span {\n                color: #131517;\n              }\n            "),i&&"\n              div[data-exchange-from='".concat(i,"'] {\n                color: #135589 !important;\n              }\n              div[data-exchange-from='").concat(i,"'] .timestamp {\n                background-color: #F5F7FB;\n                color: #135589 !important;\n              }\n              div[data-exchange-from='").concat(i,"'] .timestamp:after {\n                color: #8C979A;\n              }\n              div[data-exchange-from='").concat(i,"'] ~ .exchange--speaker {\n                color: #131517 !important;\n              }\n            "),r&&"\n              div[data-exchange-from='".concat(i,"'] {\n                background: #EAF4FB !important;\n                border-radius: 4px !important;\n              }\n              div[data-exchange-from='").concat(i,"'] .exchange--meta .speaker--meta .speaker--name,\n              div[data-exchange-from='").concat(i,"'] .exchange--meta .speaker--meta .speaker--name:after,\n              div[data-exchange-from='").concat(i,"'] .exchange--meta .speaker--meta .speaker--name span {\n                color:  #2A93D5 !important;\n              }\n        "))})),NP=function(e){var t=e.onClick;return s.a.createElement("div",{className:"row text--noselect"},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement("div",{className:"alert alert-trial transcript--alert pl-4 py-3 alert-has-close mb-0",role:"alert"},s.a.createElement("button",{type:"button",className:"close clickable","data-dismiss":"alert","aria-label":"Close",onClick:t},s.a.createElement("span",{"aria-hidden":"true"},"×")),s.a.createElement("div",{className:"media"},s.a.createElement("i",{className:"far fa-pencil fa-2x me-3"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("h3",{className:"text--weight-700 mb-0"},"Start editing this transcript"),s.a.createElement("p",{className:"mb-3"},"The Sonix Editor works like a word processor in your browser, but the audio is stitched to the text. Click on a word below and start typing. Hit enter to break apart who said what."),s.a.createElement("div",{className:"mb-0"},s.a.createElement("a",{href:"https://youtu.be/RbpBmABkoQw",className:"btn btn-alert me-2",target:"_blank"},s.a.createElement("i",{className:"fas fa-video me-2"}),"Video: How to edit the transcript"),s.a.createElement("span",{className:"btn btn-transparent link--underline-none","data-dismiss":"alert","aria-label":"Close",onClick:t},s.a.createElement("i",{className:"far fa-times me-2"}),"Close")))))))},PP=Object(se.c)((function(e){var t=e.transcript,n=t.paginated,r=t.currentPage,o=t.totalPages,a=t.nextPage,i=t.prevPage;if(!n)return null;if(o<2)return null;var l=r<o-1,c=r>0;return s.a.createElement("div",{className:"container-fluid"},s.a.createElement("div",{className:"row text-center bgcolor--fc-glass"},c&&s.a.createElement("span",{className:"col mb-0 btn btn-speaker flex-fill",onClick:i},s.a.createElement("i",{className:"far fa-arrow-left me-2 fa-fw"}),"Prev 10 minutes"),!c&&s.a.createElement("span",{className:"col mb-0 btn btn-speaker btn--background-none btn--movement-none text--color-meta btn--inactive btn--shadow-none flex-fill"},s.a.createElement("i",{className:"far fa-sign-out me-2 fa-fw"}),"First page"),l&&s.a.createElement("span",{className:"col mb-0 btn btn-speaker flex-fill",onClick:a},"Next 10 minutes",s.a.createElement("i",{className:"col far fa-arrow-right ms-2 fa-fw"})),!l&&s.a.createElement("span",{className:"col mb-0 btn btn-speaker btn--background-none btn--movement-none text--color-meta btn--inactive btn--shadow-none flex-fill"},"Last page",s.a.createElement("i",{className:"far fa-sign-in ms-2 fa-fw"}))))})),TP=Object(se.b)("store","user")(wP=Object(se.c)(wP=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&OP(e,t)}(a,e);var t,n,r,o=xP(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"componentDidMount",value:function(){var e=this.props,t=e.store,n=e.user;t.monitorScroll(),(t.duration>5400||t.transcript.value.length>250)&&!n.preferences.paginate_transcripts&&t.uiState.setNotification(s.a.createElement(_P,null),3e4)}},{key:"render",value:function(){var e=this.props,t=e.store,n=e.user,r=t.dismissedHelp,o=t.isCroppedTranscript,a=t.readonly,i=t.showConfidence,l=t.transcript,c=t.isVideo,u=t.uiState,f=t.recording.formattedDuration,p=u.showVideoLayout,d=u.isTimelineShown,m=u.isVideoLarge,h=ue()("transcript--content",{"transcript--content-readonly":a,"with-confidence":i,"transcript--content-video col-sm-12 col-md-12 col-lg-9 col-xl-8":p&&!m,"transcript--content-video col-sm-12 col-md-12 col-lg-6":p&&m,"transcript--content-audio col-sm-12 col-md-12 col-lg-10":!p});return s.a.createElement(jP,{language:l.language},s.a.createElement(DP,{isHighContrast:n.preferences.high_contrast,isTimelineShown:d,wordTime:t.playingWordFrom,exchangeTime:t.playingExchangeFrom}),s.a.createElement("div",{className:p?"row justify-content-end":"row justify-content-center"},s.a.createElement("div",{className:h},s.a.createElement(PP,{transcript:l}),!a&&!r&&s.a.createElement(NP,{onClick:t.dismissHelp}),s.a.createElement(hP,null),o&&s.a.createElement(iP,{isVideo:c,formattedDuration:f}),l.isEmpty?s.a.createElement(CP,null):s.a.createElement(aP,{readonly:a,store:t,value:l.value,user:n}),o&&s.a.createElement(iP,{isVideo:c,formattedDuration:f}),s.a.createElement(PP,{transcript:l}))))}}])&&kP(t.prototype,n),r&&kP(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||wP)||wP,MP=TP,AP=function(e){var t=e.store;return s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10 col-lg-8 col-xl-6"},s.a.createElement("div",{className:"py-4 text-md-center"},s.a.createElement("div",{className:"py-5"},s.a.createElement(Ne,null),s.a.createElement("h2",{className:"text--noselect text--color-primary text--weight-700 mt-4 mt-lg-0"},"We are copying your file—sit back and relax"),s.a.createElement("p",{className:"text--size-1200rem text--noselect mb-5"},"This page will automatically refresh when your transcript is ready."),s.a.createElement("h4",{className:"text--noselect text--color-meta-dark text--size-1100rem text--weight-700"},s.a.createElement("i",{className:"far fa-fw me-2 fa-file-alt"}),t.recording.name)),s.a.createElement("div",{className:"form-actions mb-4"},s.a.createElement("a",{className:"btn",href:"/"},s.a.createElement("i",{className:"far fa-fw fa-home me-2"}),"Return home")))))};function LP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function RP(e,t){return RP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},RP(e,t)}function FP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=zP(e);if(t){var o=zP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function zP(e){return zP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zP(e)}var BP=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&RP(e,t)}(a,e);var t,n,r,o=FP(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){return s.a.createElement("div",{className:"col-sm-12 app-image hocus-pocus-magic-trick text-center"},s.a.createElement("div",{className:"hocus-pocus-magic-trick-gif mx-auto"},"Hocus Pocus Hare Carrot Magic Trick"))}}])&&LP(t.prototype,n),r&&LP(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),YP=BP,IP=function(e){var t=e.store,n=t.user.sendTranscriptionEndEmails;return s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10 col-lg-8"},s.a.createElement("div",{className:"py-4 text-md-center"},s.a.createElement("p",{className:"text--noselect text--color-meta text--size-900rem text--weight-700 mb-md-5"},s.a.createElement("i",{className:"far fa-fw mr-1 fa-file-alt"}),t.recording.name),s.a.createElement("div",{className:"py-5"},s.a.createElement(YP,null),s.a.createElement("h2",{className:"text--noselect text--color-primary text--weight-700 pt-3 mb-3"},"Spellbinding transcript creation"),s.a.createElement("p",{className:"text--size-1200rem text--noselect mb-4"},"Hocus Pocus Hare is hard at work, casting spells of accuracy on your file to create a transcript like no other. We appreciate your patience and",n?" will notify you by email when the magic is complete. ":" this page will automatically refresh when your transcript is ready. ","Please sit back, relax, and enjoy the show!")),s.a.createElement("div",{className:"form-actions mb-4"},s.a.createElement("a",{className:"btn btn-primary",href:"/upload"},s.a.createElement("i",{className:"far fa-fw fa-upload me-2"}),"Upload another file"),s.a.createElement("a",{className:"btn",href:"/"},s.a.createElement("i",{className:"far fa-fw fa-home me-2"}),"Return home")))))},HP=function(){var e="https://sonix.ai/";return s.a.createElement("footer",{className:"app--footer"},s.a.createElement("div",{className:"container-fluid"},s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-6 col-lg-4 order-first"},s.a.createElement("p",{className:"text--size-800rem text--noselect text--color-meta-dark text-center text-md-start"},s.a.createElement("a",{href:e,target:"_blank",className:"text--color-meta-dark link--underline-none"},"© ",(new Date).getFullYear()," Sonix, Inc. All rights reserved."))),s.a.createElement("div",{className:"col-sm-12 col-md-6 col-lg-4 order-lg-last"},s.a.createElement("p",{className:"text--size-800rem text--noselect text--color-meta-dark text-center text-md-end"},s.a.createElement("a",{href:e,target:"_blank",className:"me-2 link--hover-underline"},"Sonix.ai"),s.a.createElement("a",{href:"https://sonix.ai/pricing/",target:"_blank",className:"me-2 link--hover-underline"},"Pricing"),s.a.createElement("a",{href:"https://sonix.ai/about/",target:"_blank",className:"me-2 link--hover-underline"},"About"),s.a.createElement("a",{href:"https://sonix.ai/privacy/",target:"_blank",className:"me-2 link--hover-underline"},"Privacy"),s.a.createElement("a",{href:"https://sonix.ai/terms/",target:"_blank",className:"me-2 link--hover-underline"},"Terms"),s.a.createElement("a",{href:"https://sonix.ai/security/",target:"_blank",className:"me-2 link--hover-underline"},"Security"))),s.a.createElement("div",{className:"col-sm-12 col-md-6 col-lg-4 mt-4 mt-lg-0"},s.a.createElement("p",{className:"text--size-800rem text--noselect text--color-meta-dark text-center"},"Made with",s.a.createElement("i",{className:"far fa-heart mx-1 text--color-red",title:"Love"}),"and",s.a.createElement("i",{className:"far fa-coffee mx-1 text--color-secondary",title:"Coffee & Tea"}),"in San Francisco")))))},UP=Object(se.c)((function(e){var t=e.store,n=t.loaded,r=t.transcript,o=t.uiState;if(!n)return s.a.createElement("div",{className:"container-fluid"},s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement("div",{className:"py-5"},s.a.createElement(Ne,null)))));if(r.translated&&!r.isComplete){var a=Object(we.i)(r.language),i=a.flag.split(","),l=o.showVideoLayout,c=o.isVideoLarge,u=ue()("transcript--content",{"transcript--content-video col-sm-12 col-md-12 col-lg-9 col-xl-8":l&&!c,"transcript--content-video col-sm-12 col-md-12 col-lg-6":l&&c,"transcript--content-audio col-sm-12 col-md-12 col-lg-10":!l});return s.a.createElement("div",{className:"text-center container-fluid mt-3"},s.a.createElement("div",{className:ue()("row",{"justify-content-end":l},{"justify-content-center":!l})},s.a.createElement("div",{className:ue()("col-sm-12 col-md-12",u)},i.map((function(e,t){return s.a.createElement("i",{key:t,className:ue()("flag-icon mx-2 fa-4x animate--pulse ","flag-icon-"+e)})})),s.a.createElement("h3",{className:"text--weight-700 text--size-1400rem text--transform-uppercase text--color-meta-dark my-3"},"Translating to ",a.language),s.a.createElement("p",{className:"text--noselect"},"Your translation should take ",Object(we.b)(t.duration,7),".",s.a.createElement("br",null),"You do not need to wait on this page."))))}return t.isStatusComplete?s.a.createElement("div",{className:"container-fluid"},s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement("section",{id:"exchanges"},s.a.createElement(MP,{store:t})))),s.a.createElement(HP,null)):s.a.createElement("div",{className:"container-fluid my-4 align-self-center"},t.recording.isCopying?s.a.createElement(AP,{store:t}):s.a.createElement(IP,{store:t}))}));function WP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function VP(e,t){return VP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},VP(e,t)}function qP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=GP(e);if(t){var o=GP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function GP(e){return GP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},GP(e)}var KP,$P="/account/subscription_add_ons/summarization",JP=s.a.createElement("a",{className:"link--new-window link--underline",target:"_blank",href:$P},"AI analysis credit"),XP=s.a.createElement("a",{className:"link--new-window link--underline",target:"_blank",href:$P},"enable the AI analysis add-on"),QP=s.a.createElement("a",{className:"link--new-window link--underline",target:"_blank",href:"https://sonix.ai/pricing"},"Subscribe to Premium or Enterprise plans"),ZP=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&VP(e,t)}(a,e);var t,n,r,o=qP(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"renderLimitedTrial",value:function(){var e=this.props,t=e.user;return e.store,t.reachedTrialSummarizationLimit?s.a.createElement("p",{className:"mb-0 text--size-900rem"},s.a.createElement("strong",null,"AI Analysis: No more tries left")," • ",QP," and ",XP," to continue enjoying the magic."):s.a.createElement("p",{className:"mb-0 text--size-900rem"},s.a.createElement("strong",null,"AI Analysis: Take it for a spin")," • You have a few more tries remaining. ",QP," and ",XP," to continue enjoying the magic.")}},{key:"renderSummarizationCreditRemaining",value:function(){var e=this.props,t=e.user,n=e.store.recording,r=t.summarizationCreditRemainingFormatted;return s.a.createElement("p",{className:"mb-0 text--size-900rem"},s.a.createElement("strong",null,"AI Analysis: You have enough credit")," • This file is ",n.formattedDuration," long and you have ",r," remaining of ",JP,".")}},{key:"renderSummarizationCreditRemainingLowAmount",value:function(){var e=this.props,t=e.user,n=e.store.recording,r=t.summarizationCreditRemainingFormatted;return s.a.createElement("p",{className:"mb-0 text--size-900rem"},s.a.createElement("strong",null,"AI Analysis: You do not have enough credit")," • This file is ",n.formattedDuration," long and you have ",r," remaining of ",JP," • If you continue, we will automatically add 20 hours to your account for just $5. That'll cover it.")}},{key:"renderSummarizationCreditRemainingWithoutAddon",value:function(){var e=this.props,t=e.user,n=e.store.recording,r=t.summarizationCreditRemainingFormatted;return s.a.createElement("p",{className:"mb-0 text--size-900rem"},s.a.createElement("strong",null,"AI Analysis: You have enough credit")," • This file is ",n.formattedDuration," long and you have ",r," remaining of your monthly ",JP,".")}},{key:"renderSummarizationCreditRemainingWithoutAddonNotEnough",value:function(){var e=this.props,t=e.user,n=e.store.recording,r=t.summarizationCreditRemainingFormatted;return s.a.createElement("p",{className:"mb-0 text--size-900rem"},s.a.createElement("strong",null,"AI Analysis: You do not have enough credit")," • This file is ",n.formattedDuration," long and you have ",r," remaining of your monthly ",JP,". Please wait until next month to continue.")}},{key:"renderSummarizationCreditUpgradeAddon",value:function(){var e=this.props,t=e.user,n=e.store.recording,r=t.summarizationCreditRemainingFormatted;return s.a.createElement("p",{className:"mb-0 text--size-900rem"},s.a.createElement("strong",null,"AI Analysis: You have enough credit")," • Your add-on is disabled and you will no longer accumulate credits; please re-activate the add-on. This file is ",n.formattedDuration," long and you have ",r," remaining of ",JP,".")}},{key:"render",value:function(){var e="",t="",n=this.props,r=n.user,o=n.store,a=r.hasRecurringSummarizationCredit,i=r.summarizationCreditRemaining;return a?r.summarizationAddOnEnabled?i>o.duration?(e="alert-info",t=this.renderSummarizationCreditRemaining()):(e="alert-danger",t=this.renderSummarizationCreditRemainingLowAmount()):i>o.duration?(e="alert-info",t=this.renderSummarizationCreditRemainingWithoutAddon()):(e="alert-info",t=this.renderSummarizationCreditRemainingWithoutAddonNotEnough()):i>o.duration?(e="alert-info",t=this.renderSummarizationCreditUpgradeAddon()):(e="alert-warning",t=this.renderLimitedTrial()),s.a.createElement("div",{className:ue()("alert d-flex align-items-center border-radius--flat-top",e)},s.a.createElement("i",{className:"fas fa-analytics fa-2x me-3"}),t)}}])&&WP(t.prototype,n),r&&WP(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),eT=ZP;function tT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function nT(e,t){return nT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nT(e,t)}function rT(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=oT(e);if(t){var o=oT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function oT(e){return oT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oT(e)}var aT="https://sonix.ai/pricing",iT=Object(se.c)(KP=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nT(e,t)}(a,e);var t,n,r,o=rT(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){return this.props.user.isSubscribed?s.a.createElement("div",{className:"alert alert-info media py-3 py-md-4"},s.a.createElement("i",{className:"fas fa-layer-plus fa-3x align-self-start me-3 me-md-4"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("h4",null,"Please enable add-on"),s.a.createElement("p",{className:"mb-3"},"You're subscribed to Sonix, and we appreciate your support. To unlock Sonix's AI analysis tools, all you have to do is enable the add-on in your settings. Get ready for a whole new level of AI magic!"),s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("a",{className:"btn btn-primary mb-0",href:"/account/subscription_add_ons/summarization"},s.a.createElement("i",{className:"far fa-arrow-up me-2"}),"Enable add-on"),s.a.createElement("a",{className:"btn mb-0",href:aT,target:"_blank"},s.a.createElement("i",{className:"far fa-external-link me-2"}),"Pricing page")))):s.a.createElement("div",{className:"alert alert-info media py-3 py-md-4"},s.a.createElement("i",{className:"fas fa-smile-plus fa-3x align-self-start me-3 me-md-4"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("h4",null,"Thanks for trying our AI analysis features"),s.a.createElement("p",{className:"mb-3"},"To continue enjoying amazing AI analysis tools, simply subscribe to our Premium or Enterprise plan. Once subscribed, enable the AI analysis add-on to get started. We're excited to have you on board!"),s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("a",{className:"btn btn-primary mb-0",href:"/upgrade"},s.a.createElement("i",{className:"far fa-arrow-up me-2"}),"Subscribe now"),s.a.createElement("a",{className:"btn mb-0",href:aT,target:"_blank"},s.a.createElement("i",{className:"far fa-external-link me-2"}),"Pricing page"))))}}])&&tT(t.prototype,n),r&&tT(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||KP,lT=iT,sT=n(184),cT=n.n(sT),uT=n(1469),fT=n.n(uT);function pT(e){return pT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pT(e)}function dT(e){return e&&"object"===pT(e)?"position"in e||"type"in e?hT(e.position):"start"in e||"end"in e?hT(e):"line"in e||"column"in e?mT(e):"":""}function mT(e){return yT(e&&e.line)+":"+yT(e&&e.column)}function hT(e){return mT(e&&e.start)+"-"+mT(e&&e.end)}function yT(e){return e&&"number"==typeof e?e:1}function bT(e){return bT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bT(e)}function vT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,a=function(e,t){if("object"!==bT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==bT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===bT(a)?a:String(a)),r)}var o,a}function gT(e){var t=_T();return function(){var n,r=OT(e);if(t){var o=OT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===bT(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function wT(e){var t="function"==typeof Map?new Map:void 0;return wT=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return ET(e,arguments,OT(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),kT(n,e)},wT(e)}function ET(e,t,n){return ET=_T()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&kT(o,n.prototype),o},ET.apply(null,arguments)}function _T(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function kT(e,t){return kT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},kT(e,t)}function OT(e){return OT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},OT(e)}var xT=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kT(e,t)}(a,e);var t,n,r,o=gT(a);function a(e,t,n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var i=[null,null],l={start:{line:null,column:null},end:{line:null,column:null}};if(r=o.call(this),"string"==typeof t&&(n=t,t=void 0),"string"==typeof n){var s=n.indexOf(":");-1===s?i[1]=n:(i[0]=n.slice(0,s),i[1]=n.slice(s+1))}return t&&("type"in t||"position"in t?t.position&&(l=t.position):"start"in t||"end"in t?l=t:("line"in t||"column"in t)&&(l.start=t)),r.name=dT(t)||"1:1",r.message="object"===bT(e)?e.message:e,r.stack="","object"===bT(e)&&e.stack&&(r.stack=e.stack),r.reason=r.message,r.fatal,r.line=l.start.line,r.column=l.start.column,r.position=l,r.source=i[0],r.ruleId=i[1],r.file,r.actual,r.expected,r.url,r.note,r}return t=a,n&&vT(t.prototype,n),r&&vT(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(wT(Error));xT.prototype.file="",xT.prototype.name="",xT.prototype.reason="",xT.prototype.message="",xT.prototype.stack="",xT.prototype.fatal=null,xT.prototype.column=null,xT.prototype.line=null,xT.prototype.source=null,xT.prototype.ruleId=null,xT.prototype.position=null;var ST={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');jT(e);var n,r=0,o=-1,a=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;a--;)if(47===e.charCodeAt(a)){if(n){r=a+1;break}}else o<0&&(n=!0,o=a+1);return o<0?"":e.slice(r,o)}if(t===e)return"";var i=-1,l=t.length-1;for(;a--;)if(47===e.charCodeAt(a)){if(n){r=a+1;break}}else i<0&&(n=!0,i=a+1),l>-1&&(e.charCodeAt(a)===t.charCodeAt(l--)?l<0&&(o=a):(l=-1,o=i));r===o?o=i:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(jT(e),0===e.length)return".";var t,n=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.charCodeAt(0)?"/":".":1===n&&47===e.charCodeAt(0)?"//":e.slice(0,n)},extname:function(e){jT(e);var t,n=e.length,r=-1,o=0,a=-1,i=0;for(;n--;){var l=e.charCodeAt(n);if(47!==l)r<0&&(t=!0,r=n+1),46===l?a<0?a=n:1!==i&&(i=1):a>-1&&(i=-1);else if(t){o=n+1;break}}if(a<0||r<0||0===i||1===i&&a===r-1&&a===o+1)return"";return e.slice(a,r)},join:function(){for(var e,t=-1,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];for(;++t<r.length;)jT(r[t]),r[t]&&(e=void 0===e?r[t]:e+"/"+r[t]);return void 0===e?".":function(e){jT(e);var t=47===e.charCodeAt(0),n=function(e,t){var n,r,o="",a=0,i=-1,l=0,s=-1;for(;++s<=e.length;){if(s<e.length)n=e.charCodeAt(s);else{if(47===n)break;n=47}if(47===n){if(i===s-1||1===l);else if(i!==s-1&&2===l){if(o.length<2||2!==a||46!==o.charCodeAt(o.length-1)||46!==o.charCodeAt(o.length-2))if(o.length>2){if((r=o.lastIndexOf("/"))!==o.length-1){r<0?(o="",a=0):a=(o=o.slice(0,r)).length-1-o.lastIndexOf("/"),i=s,l=0;continue}}else if(o.length>0){o="",a=0,i=s,l=0;continue}t&&(o=o.length>0?o+"/..":"..",a=2)}else o.length>0?o+="/"+e.slice(i+1,s):o=e.slice(i+1,s),a=s-i-1;i=s,l=0}else 46===n&&l>-1?l++:l=-1}return o}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.charCodeAt(e.length-1)&&(n+="/");return t?"/"+n:n}(e)},sep:"/"};function jT(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var CT={cwd:function(){return"/"}};function DT(e){return DT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},DT(e)}function NT(e){return null!==e&&"object"===DT(e)&&e.href&&e.origin}function PT(e){if("string"==typeof e)e=new URL(e);else if(!NT(e)){var t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){var n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return function(e){if(""!==e.hostname){var t=new TypeError('File URL host must be "localhost" or empty on darwin');throw t.code="ERR_INVALID_FILE_URL_HOST",t}var n=e.pathname,r=-1;for(;++r<n.length;)if(37===n.charCodeAt(r)&&50===n.charCodeAt(r+1)){var o=n.charCodeAt(r+2);if(70===o||102===o){var a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(n)}(e)}function TT(e){return TT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},TT(e)}function MT(e){return function(e){if(Array.isArray(e))return AT(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return AT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return AT(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function AT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function LT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,a=function(e,t){if("object"!==TT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==TT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===TT(a)?a:String(a)),r)}var o,a}var RT=["history","path","basename","stem","extname","dirname"],FT=function(){function e(t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=t?"string"==typeof t||function(e){return fT()(e)}(t)?{value:t}:NT(t)?{path:t}:t:{},this.data={},this.messages=[],this.history=[],this.cwd=CT.cwd(),this.value,this.stored,this.result,this.map;for(var r,o=-1;++o<RT.length;){var a=RT[o];a in n&&void 0!==n[a]&&null!==n[a]&&(this[a]="history"===a?MT(n[a]):n[a])}for(r in n)RT.includes(r)||(this[r]=n[r])}var t,n,r;return t=e,(n=[{key:"path",get:function(){return this.history[this.history.length-1]},set:function(e){NT(e)&&(e=PT(e)),BT(e,"path"),this.path!==e&&this.history.push(e)}},{key:"dirname",get:function(){return"string"==typeof this.path?ST.dirname(this.path):void 0},set:function(e){YT(this.basename,"dirname"),this.path=ST.join(e||"",this.basename)}},{key:"basename",get:function(){return"string"==typeof this.path?ST.basename(this.path):void 0},set:function(e){BT(e,"basename"),zT(e,"basename"),this.path=ST.join(this.dirname||"",e)}},{key:"extname",get:function(){return"string"==typeof this.path?ST.extname(this.path):void 0},set:function(e){if(zT(e,"extname"),YT(this.dirname,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ST.join(this.dirname,this.stem+(e||""))}},{key:"stem",get:function(){return"string"==typeof this.path?ST.basename(this.path,this.extname):void 0},set:function(e){BT(e,"stem"),zT(e,"stem"),this.path=ST.join(this.dirname||"",e+(this.extname||""))}},{key:"toString",value:function(e){return(this.value||"").toString(e||void 0)}},{key:"message",value:function(e,t,n){var r=new xT(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}},{key:"info",value:function(e,t,n){var r=this.message(e,t,n);return r.fatal=null,r}},{key:"fail",value:function(e,t,n){var r=this.message(e,t,n);throw r.fatal=!0,r}}])&&LT(t.prototype,n),r&&LT(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function zT(e,t){if(e&&e.includes(ST.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ST.sep+"`")}function BT(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function YT(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function IT(e){if(e)throw e}var HT=n(1468),UT=n.n(HT),WT=n(610),VT=n.n(WT);function qT(e){return qT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qT(e)}function GT(e){if("object"!==qT(e)||null===e)return!1;var t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function KT(e){return function(e){if(Array.isArray(e))return $T(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return $T(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $T(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function JT(){var e=[],t={run:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=-1,a=n.pop();if("function"!=typeof a)throw new TypeError("Expected function as last argument, not "+a);(function t(r){var i=e[++o],l=-1;if(r)a(r);else{for(var s=arguments.length,c=new Array(s>1?s-1:0),u=1;u<s;u++)c[u-1]=arguments[u];for(;++l<n.length;)null!==c[l]&&void 0!==c[l]||(c[l]=n[l]);n=c,i?function(e,t){var n;return r;function r(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var l,s=e.length>r.length;s&&r.push(o);try{l=e.apply(this,r)}catch(e){if(s&&n)throw e;return o(e)}s||(l instanceof Promise?l.then(a,o):l instanceof Error?o(l):a(l))}function o(e){if(!n){n=!0;for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];t.apply(void 0,[e].concat(o))}}function a(e){o(null,e)}}(i,t).apply(void 0,c):a.apply(void 0,[null].concat(c))}}).apply(void 0,[null].concat(KT(n)))},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}function XT(e){return XT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},XT(e)}function QT(e){return function(e){if(Array.isArray(e))return e}(e)||tM(e)||eM(e)||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 ZT(e){return function(e){if(Array.isArray(e))return nM(e)}(e)||tM(e)||eM(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eM(e,t){if(e){if("string"==typeof e)return nM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nM(e,t):void 0}}function tM(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function nM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var rM=function e(){var t,n=JT(),r=[],o={},a=-1;return i.data=function(e,n){if("string"==typeof e)return 2===arguments.length?(sM("data",t),o[e]=n,i):oM.call(o,e)&&o[e]||null;if(e)return sM("data",t),o=e,i;return o},i.Parser=void 0,i.Compiler=void 0,i.freeze=function(){if(t)return i;for(;++a<r.length;){var e=QT(r[a]),o=e[0],l=e.slice(1);if(!1!==l[0]){!0===l[0]&&(l[0]=void 0);var s=o.call.apply(o,[i].concat(ZT(l)));"function"==typeof s&&n.use(s)}}return t=!0,a=Number.POSITIVE_INFINITY,i},i.attachers=r,i.use=function(e){for(var n=arguments.length,a=new Array(n>1?n-1:0),l=1;l<n;l++)a[l-1]=arguments[l];var s;if(sM("use",t),null==e);else if("function"==typeof e)p.apply(void 0,[e].concat(a));else{if("object"!==XT(e))throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?f(e):u(e)}s&&(o.settings=Object.assign(o.settings||{},s));return i;function c(e){if("function"==typeof e)p(e);else{if("object"!==XT(e))throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){var t=QT(e),n=t[0],r=t.slice(1);p.apply(void 0,[n].concat(ZT(r)))}else u(e)}}function u(e){f(e.plugins),e.settings&&(s=Object.assign(s||{},e.settings))}function f(e){var t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){c(e[t])}}}function p(e,t){for(var n,o=-1;++o<r.length;)if(r[o][0]===e){n=r[o];break}n?(GT(n[1])&&GT(t)&&(t=VT()(!0,n[1],t)),n[1]=t):r.push(Array.prototype.slice.call(arguments))}},i.parse=function(e){i.freeze();var t=fM(e),n=i.Parser;if(iM("parse",n),aM(n,"parse"))return new n(String(t),t).parse();return n(String(t),t)},i.stringify=function(e,t){i.freeze();var n=fM(t),r=i.Compiler;if(lM("stringify",r),cM(e),aM(r,"compile"))return new r(e,n).compile();return r(e,n)},i.run=function(e,t,r){cM(e),i.freeze(),r||"function"!=typeof t||(r=t,t=void 0);if(!r)return new Promise(o);function o(o,a){function i(t,n,i){n=n||e,t?a(t):o?o(n):r(null,n,i)}n.run(e,fM(t),i)}o(null,r)},i.runSync=function(e,t){var n,r;return i.run(e,t,o),uM("runSync","run",r),n;function o(e,t){IT(e),n=t,r=!0}},i.process=function(e,t){if(i.freeze(),iM("process",i.Parser),lM("process",i.Compiler),!t)return new Promise(n);function n(n,r){var o=fM(e);function a(e,o){e||!o?r(e):n?n(o):t(null,o)}i.run(i.parse(o),o,(function(e,t,n){if(!e&&t&&n){var r=i.stringify(t,n);null==r||("string"==typeof(o=r)||UT()(o)?n.value=r:n.result=r),a(e,n)}else a(e);var o}))}n(null,t)},i.processSync=function(e){var t;i.freeze(),iM("processSync",i.Parser),lM("processSync",i.Compiler);var n=fM(e);return i.process(n,r),uM("processSync","process",t),n;function r(e){t=!0,IT(e)}},i;function i(){for(var t=e(),n=-1;++n<r.length;)t.use.apply(t,ZT(r[n]));return t.data(VT()(!0,{},o)),t}}().freeze(),oM={}.hasOwnProperty;function aM(e,t){return"function"==typeof e&&e.prototype&&(function(e){var t;for(t in e)if(oM.call(e,t))return!0;return!1}(e.prototype)||t in e.prototype)}function iM(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `Parser`")}function lM(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `Compiler`")}function sM(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function cM(e){if(!GT(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function uM(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function fM(e){return function(e){return Boolean(e&&"object"===XT(e)&&"message"in e&&"messages"in e)}(e)?e:new FT(e)}function pM(e){return pM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pM(e)}var dM={};function mM(e,t,n){if(function(e){return Boolean(e&&"object"===pM(e))}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return hM(e.children,t,n)}return Array.isArray(e)?hM(e,t,n):""}function hM(e,t,n){for(var r=[],o=-1;++o<e.length;)r[o]=mM(e[o],t,n);return r.join("")}function yM(e){return function(e){if(Array.isArray(e))return bM(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return bM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bM(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vM(e,t,n,r){var o,a=e.length,i=0;if(t=t<0?-t>a?0:a+t:t>a?a:t,n=n>0?n:0,r.length<1e4)(o=Array.from(r)).unshift(t,n),e.splice.apply(e,yM(o));else for(n&&e.splice(t,n);i<r.length;)(o=r.slice(i,i+1e4)).unshift(t,0),e.splice.apply(e,yM(o)),i+=1e4,t+=1e4}function gM(e,t){return e.length>0?(vM(e,e.length,0,t),e):t}var wM={}.hasOwnProperty;function EM(e,t){var n;for(n in t){var r=(wM.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n],a=void 0;if(o)for(a in o){wM.call(r,a)||(r[a]=[]);var i=o[a];_M(r[a],Array.isArray(i)?i:i?[i]:[])}}}function _M(e,t){for(var n=-1,r=[];++n<t.length;)("after"===t[n].add?e:r).push(t[n]);vM(e,0,0,r)}var kM=LM(/[A-Za-z]/),OM=LM(/[\dA-Za-z]/),xM=LM(/[#-'*+\--9=?A-Z^-~]/);function SM(e){return null!==e&&(e<32||127===e)}var jM=LM(/\d/),CM=LM(/[\dA-Fa-f]/),DM=LM(/[!-/:-@[-`{-~]/);function NM(e){return null!==e&&e<-2}function PM(e){return null!==e&&(e<0||32===e)}function TM(e){return-2===e||-1===e||32===e}var MM=LM(/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/),AM=LM(/\s/);function LM(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}function RM(e,t,n,r){var o=r?r-1:Number.POSITIVE_INFINITY,a=0;return function(r){if(TM(r))return e.enter(n),i(r);return t(r)};function i(r){return TM(r)&&a++<o?(e.consume(r),i):(e.exit(n),t(r))}}var FM={tokenize:function(e){var t,n=e.attempt(this.parser.constructs.contentInitial,(function(t){if(null===t)return void e.consume(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),RM(e,n,"linePrefix")}),(function(t){return e.enter("paragraph"),r(t)}));return n;function r(n){var r=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=r),t=r,o(n)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):NM(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}};var zM={tokenize:function(e){var t,n,r,o=this,a=[],i=0;return l;function l(t){if(i<a.length){var n=a[i];return o.containerState=n[1],e.attempt(n[0].continuation,s,c)(t)}return c(t)}function s(e){if(i++,o.containerState._closeFlow){o.containerState._closeFlow=void 0,t&&v();for(var n,r=o.events.length,a=r;a--;)if("exit"===o.events[a][0]&&"chunkFlow"===o.events[a][1].type){n=o.events[a][1].end;break}b(i);for(var s=r;s<o.events.length;)o.events[s][1].end=Object.assign({},n),s++;return vM(o.events,a+1,0,o.events.slice(r)),o.events.length=s,c(e)}return l(e)}function c(n){if(i===a.length){if(!t)return p(n);if(t.currentConstruct&&t.currentConstruct.concrete)return m(n);o.interrupt=Boolean(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return o.containerState={},e.check(BM,u,f)(n)}function u(e){return t&&v(),b(i),p(e)}function f(e){return o.parser.lazy[o.now().line]=i!==a.length,r=o.now().offset,m(e)}function p(t){return o.containerState={},e.attempt(BM,d,m)(t)}function d(e){return i++,a.push([o.currentConstruct,o.containerState]),p(e)}function m(r){return null===r?(t&&v(),b(0),void e.consume(r)):(t=t||o.parser.flow(o.now()),e.enter("chunkFlow",{contentType:"flow",previous:n,_tokenizer:t}),h(r))}function h(t){return null===t?(y(e.exit("chunkFlow"),!0),b(0),void e.consume(t)):NM(t)?(e.consume(t),y(e.exit("chunkFlow")),i=0,o.interrupt=void 0,l):(e.consume(t),h)}function y(e,a){var l=o.sliceStream(e);if(a&&l.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(l),o.parser.lazy[e.start.line]){for(var s=t.events.length;s--;)if(t.events[s][1].start.offset<r&&(!t.events[s][1].end||t.events[s][1].end.offset>r))return;for(var c,u,f=o.events.length,p=f;p--;)if("exit"===o.events[p][0]&&"chunkFlow"===o.events[p][1].type){if(c){u=o.events[p][1].end;break}c=!0}for(b(i),s=f;s<o.events.length;)o.events[s][1].end=Object.assign({},u),s++;vM(o.events,p+1,0,o.events.slice(f)),o.events.length=s}}function b(t){for(var n=a.length;n-- >t;){var r=a[n];o.containerState=r[1],r[0].exit.call(o,e)}a.length=t}function v(){t.write([null]),n=void 0,t=void 0,o.containerState._closeFlow=void 0}}},BM={tokenize:function(e,t,n){return RM(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var YM={tokenize:function(e,t,n){return function(t){return TM(t)?RM(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||NM(e)?t(e):n(e)}},partial:!0};function IM(e){for(var t,n,r,o,a,i,l,s={},c=-1;++c<e.length;){for(;c in s;)c=s[c];if(t=e[c],c&&"chunkFlow"===t[1].type&&"listItemPrefix"===e[c-1][1].type&&((r=0)<(i=t[1]._tokenizer.events).length&&"lineEndingBlank"===i[r][1].type&&(r+=2),r<i.length&&"content"===i[r][1].type))for(;++r<i.length&&"content"!==i[r][1].type;)"chunkText"===i[r][1].type&&(i[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(s,HM(e,c)),c=s[c],l=!0);else if(t[1]._container){for(r=c,n=void 0;r--&&("lineEnding"===(o=e[r])[1].type||"lineEndingBlank"===o[1].type);)"enter"===o[0]&&(n&&(e[n][1].type="lineEndingBlank"),o[1].type="lineEnding",n=r);n&&(t[1].end=Object.assign({},e[n][1].start),(a=e.slice(n,c)).unshift(t),vM(e,n,c-n+1,a))}}return!l}function HM(e,t){for(var n,r,o=e[t][1],a=e[t][2],i=t-1,l=[],s=o._tokenizer||a.parser[o.contentType](o.start),c=s.events,u=[],f={},p=-1,d=o,m=0,h=0,y=[h];d;){for(;e[++i][1]!==d;);l.push(i),d._tokenizer||(n=a.sliceStream(d),d.next||n.push(null),r&&s.defineSkip(d.start),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(n),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),r=d,d=d.next}for(d=o;++p<c.length;)"exit"===c[p][0]&&"enter"===c[p-1][0]&&c[p][1].type===c[p-1][1].type&&c[p][1].start.line!==c[p][1].end.line&&(h=p+1,y.push(h),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(s.events=[],d?(d._tokenizer=void 0,d.previous=void 0):y.pop(),p=y.length;p--;){var b=c.slice(y[p],y[p+1]),v=l.pop();u.unshift([v,v+b.length-1]),vM(e,v,2,b)}for(p=-1;++p<u.length;)f[m+u[p][0]]=m+u[p][1],m+=u[p][1]-u[p][0]-1;return f}var UM={tokenize:function(e,t){var n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):NM(t)?e.check(WM,a,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function a(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return IM(e),e}},WM={tokenize:function(e,t,n){var r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),RM(e,o,"linePrefix")};function o(o){if(null===o||NM(o))return n(o);var a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}},partial:!0};var VM={tokenize:function(e){var t=this,n=e.attempt(YM,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,RM(e,e.attempt(this.parser.constructs.flow,r,e.attempt(UM,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};var qM={resolveAll:JM()},GM=$M("string"),KM=$M("text");function $M(e){return{tokenize:function(t){var n=this,r=this.parser.constructs[e],o=t.attempt(r,a,i);return a;function a(e){return s(e)?o(e):i(e)}function i(e){if(null!==e)return t.enter("data"),t.consume(e),l;t.consume(e)}function l(e){return s(e)?(t.exit("data"),o(e)):(t.consume(e),l)}function s(e){if(null===e)return!0;var t=r[e],o=-1;if(t)for(;++o<t.length;){var a=t[o];if(!a.previous||a.previous.call(n,n.previous))return!0}return!1}},resolveAll:JM("text"===e?XM:void 0)}}function JM(e){return function(t,n){var r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function XM(e,t){for(var n=0;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){for(var r=e[n-1][1],o=t.sliceStream(r),a=o.length,i=-1,l=0,s=void 0;a--;){var c=o[a];if("string"==typeof c){for(i=c.length;32===c.charCodeAt(i-1);)l++,i--;if(i)break;i=-1}else if(-2===c)s=!0,l++;else if(-1!==c){a++;break}}if(l){var u={type:n===e.length||s||l<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-l,offset:r.end.offset-l,_index:r.start._index+a,_bufferIndex:a?i:r.start._bufferIndex+i},end:Object.assign({},r.end)};r.end=Object.assign({},u.start),r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}function QM(e,t,n){for(var r=[],o=-1;++o<e.length;){var a=e[o].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}function ZM(e){return function(e){if(Array.isArray(e))return eA(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return eA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eA(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function tA(e,t,n){var r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1}),o={},a=[],i=[],l=[],s={consume:function(e){NM(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,v()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===i[r._index].length&&(r._bufferIndex=-1,r._index++));c.previous=e,!0},enter:function(e,t){var n=t||{};return n.type=e,n.start=p(),c.events.push(["enter",n,c]),l.push(n),n},exit:function(e){var t=l.pop();return t.end=p(),c.events.push(["exit",t,c]),t},attempt:y((function(e,t){b(e,t.from)})),check:y(h),interrupt:y(h,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:f,sliceSerialize:function(e,t){return function(e,t){var n,r=-1,o=[];for(;++r<e.length;){var a=e[r],i=void 0;if("string"==typeof a)i=a;else switch(a){case-5:i="\r";break;case-4:i="\n";break;case-3:i="\r\n";break;case-2:i=t?" ":"\t";break;case-1:if(!t&&n)continue;i=" ";break;default:i=String.fromCharCode(a)}n=-2===a,o.push(i)}return o.join("")}(f(e),t)},now:p,defineSkip:function(e){o[e.line]=e.column,v()},write:function(e){if(i=gM(i,e),d(),null!==i[i.length-1])return[];return b(t,0),c.events=QM(a,c.events,c),c.events}},u=t.tokenize.call(c,s);return t.resolveAll&&a.push(t),c;function f(e){return function(e,t){var n,r=t.start._index,o=t.start._bufferIndex,a=t.end._index,i=t.end._bufferIndex;if(r===a)n=[e[r].slice(o,i)];else{if(n=e.slice(r,a),o>-1){var l=n[0];"string"==typeof l?n[0]=l.slice(o):n.shift()}i>0&&n.push(e[a].slice(0,i))}return n}(i,e)}function p(){var e=r;return{line:e.line,column:e.column,offset:e.offset,_index:e._index,_bufferIndex:e._bufferIndex}}function d(){for(var e;r._index<i.length;){var t=i[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)m(t.charCodeAt(r._bufferIndex));else m(t)}}function m(e){void 0,e,u=u(e)}function h(e,t){t.restore()}function y(e,t){return function(n,o,a){var i,u,f,d;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):function(e){return t;function t(t){var n=null!==t&&e[t],r=null!==t&&e.null;return m([].concat(ZM(Array.isArray(n)?n:n?[n]:[]),ZM(Array.isArray(r)?r:r?[r]:[])))(t)}}(n);function m(e){return i=e,u=0,0===e.length?a:h(e[u])}function h(e){return function(n){d=function(){var e=p(),t=c.previous,n=c.currentConstruct,o=c.events.length,a=Array.from(l);return{restore:i,from:o};function i(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=o,l=a,v()}}(),f=e,e.partial||(c.currentConstruct=e);if(e.name&&c.parser.constructs.disable.null.includes(e.name))return b(n);return e.tokenize.call(t?Object.assign(Object.create(c),t):c,s,y,b)(n)}}function y(t){return!0,e(f,d),o}function b(e){return!0,d.restore(),++u<i.length?h(i[u]):a}}}function b(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&vM(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function v(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}var nA={name:"thematicBreak",tokenize:function(e,t,n){var r,o=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,a(e)}(t)};function a(a){return a===r?(e.enter("thematicBreakSequence"),i(a)):o>=3&&(null===a||NM(a))?(e.exit("thematicBreak"),t(a)):n(a)}function i(t){return t===r?(e.consume(t),o++,i):(e.exit("thematicBreakSequence"),TM(t)?RM(e,a,"whitespace")(t):a(t))}}};var rA={name:"list",tokenize:function(e,t,n){var r=this,o=r.events[r.events.length-1],a=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,i=0;return function(t){var o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:jM(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(nA,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(t)}return n(t)};function l(t){return jM(t)&&++i<10?(e.consume(t),l):(!r.interrupt||i<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),s(t)):n(t)}function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(YM,r.interrupt?n:c,e.attempt(oA,f,u))}function c(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function u(t){return TM(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){var r=this;return r.containerState._closeFlow=void 0,e.check(YM,(function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,RM(e,t,"listItemIndent",r.containerState.size+1)(n)}),(function(n){if(r.containerState.furtherBlankLines||!TM(n))return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n);return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(aA,t,o)(n)}));function o(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,RM(e,e.attempt(rA,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)}},oA={tokenize:function(e,t,n){var r=this;return RM(e,(function(e){var o=r.events[r.events.length-1];return!TM(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},aA={tokenize:function(e,t,n){var r=this;return RM(e,(function(e){var o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0};var iA={name:"blockQuote",tokenize:function(e,t,n){var r=this;return function(t){if(62===t){var a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return TM(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){var r=this;return function(t){if(TM(t))return RM(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return o(t)};function o(r){return e.attempt(iA,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function lA(e,t,n,r,o,a,i,l,s){var c=s||Number.POSITIVE_INFINITY,u=0;return function(t){if(60===t)return e.enter(r),e.enter(o),e.enter(a),e.consume(t),e.exit(a),f;if(null===t||32===t||41===t||SM(t))return n(t);return e.enter(r),e.enter(i),e.enter(l),e.enter("chunkString",{contentType:"string"}),m(t)};function f(n){return 62===n?(e.enter(a),e.consume(n),e.exit(a),e.exit(o),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(l),f(t)):null===t||60===t||NM(t)?n(t):(e.consume(t),92===t?d:p)}function d(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function m(o){return u||null!==o&&41!==o&&!PM(o)?u<c&&40===o?(e.consume(o),u++,m):41===o?(e.consume(o),u--,m):null===o||32===o||40===o||SM(o)?n(o):(e.consume(o),92===o?h:m):(e.exit("chunkString"),e.exit(l),e.exit(i),e.exit(r),t(o))}function h(t){return 40===t||41===t||92===t?(e.consume(t),m):m(t)}}function sA(e,t,n,r,o,a){var i,l=this,s=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(a),c};function c(f){return s>999||null===f||91===f||93===f&&!i||94===f&&!s&&"_hiddenFootnoteSupport"in l.parser.constructs?n(f):93===f?(e.exit(a),e.enter(o),e.consume(f),e.exit(o),e.exit(r),t):NM(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(f))}function u(t){return null===t||91===t||93===t||NM(t)||s++>999?(e.exit("chunkString"),c(t)):(e.consume(t),i||(i=!TM(t)),92===t?f:u)}function f(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}}function cA(e,t,n,r,o,a){var i;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(o),e.consume(t),e.exit(o),i=40===t?41:t,l;return n(t)};function l(n){return n===i?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(a),s(n))}function s(t){return t===i?(e.exit(a),l(i)):null===t?n(t):NM(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),RM(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===i||null===t||NM(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?u:c)}function u(t){return t===i||92===t?(e.consume(t),c):c(t)}}function uA(e,t){var n;return function r(o){if(NM(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r;if(TM(o))return RM(e,r,n?"linePrefix":"lineSuffix")(o);return t(o)}}function fA(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var pA={name:"definition",tokenize:function(e,t,n){var r,o=this;return function(t){return e.enter("definition"),function(t){return sA.call(o,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function a(t){return r=fA(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i):n(t)}function i(t){return PM(t)?uA(e,l)(t):l(t)}function l(t){return lA(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(dA,c,c)(t)}function c(t){return TM(t)?RM(e,u,"whitespace")(t):u(t)}function u(a){return null===a||NM(a)?(e.exit("definition"),o.parser.defined.push(r),t(a)):n(a)}}},dA={tokenize:function(e,t,n){return function(t){return PM(t)?uA(e,r)(t):n(t)};function r(t){return cA(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return TM(t)?RM(e,a,"whitespace")(t):a(t)}function a(e){return null===e||NM(e)?t(e):n(e)}},partial:!0};var mA={name:"codeIndented",tokenize:function(e,t,n){var r=this;return function(t){return e.enter("codeIndented"),RM(e,o,"linePrefix",5)(t)};function o(e){var t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?a(e):n(e)}function a(t){return null===t?l(t):NM(t)?e.attempt(hA,a,l)(t):(e.enter("codeFlowValue"),i(t))}function i(t){return null===t||NM(t)?(e.exit("codeFlowValue"),a(t)):(e.consume(t),i)}function l(n){return e.exit("codeIndented"),t(n)}}},hA={tokenize:function(e,t,n){var r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):NM(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):RM(e,a,"linePrefix",5)(t)}function a(e){var a=r.events[r.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):NM(e)?o(e):n(e)}},partial:!0};var yA={name:"headingAtx",tokenize:function(e,t,n){var r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||PM(t)?(e.exit("atxHeadingSequence"),a(t)):n(t)}function a(n){return 35===n?(e.enter("atxHeadingSequence"),i(n)):null===n||NM(n)?(e.exit("atxHeading"),t(n)):TM(n)?RM(e,a,"whitespace")(n):(e.enter("atxHeadingText"),l(n))}function i(t){return 35===t?(e.consume(t),i):(e.exit("atxHeadingSequence"),a(t))}function l(t){return null===t||35===t||PM(t)?(e.exit("atxHeadingText"),a(t)):(e.consume(t),l)}},resolve:function(e,t){var n,r,o=e.length-2,a=3;"whitespace"===e[a][1].type&&(a+=2);o-2>a&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(a===o-1||o-4>a&&"whitespace"===e[o-2][1].type)&&(o-=a+1===o?2:4);o>a&&vM(e,a,o-a+1,[["enter",n={type:"atxHeadingText",start:e[a][1].start,end:e[o][1].end},t],["enter",r={type:"chunkText",start:e[a][1].start,end:e[o][1].end,contentType:"text"},t],["exit",r,t],["exit",n,t]]);return e}};var bA={name:"setextUnderline",tokenize:function(e,t,n){var r,o=this;return function(t){var i,l=o.events.length;for(;l--;)if("lineEnding"!==o.events[l][1].type&&"linePrefix"!==o.events[l][1].type&&"content"!==o.events[l][1].type){i="paragraph"===o.events[l][1].type;break}if(!o.parser.lazy[o.now().line]&&(o.interrupt||i))return e.enter("setextHeadingLine"),r=t,function(t){return e.enter("setextHeadingLineSequence"),a(t)}(t);return n(t)};function a(t){return t===r?(e.consume(t),a):(e.exit("setextHeadingLineSequence"),TM(t)?RM(e,i,"lineSuffix")(t):i(t))}function i(r){return null===r||NM(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){var n,r,o,a=e.length;for(;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){n=a;break}"paragraph"===e[a][1].type&&(r=a)}else"content"===e[a][1].type&&e.splice(a,1),o||"definition"!==e[a][1].type||(o=a);var i={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",i,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[o][1].end)):e[n][1]=i;return e.push(["exit",i,t]),e}};var vA=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],gA=["pre","script","style","textarea"],wA={name:"htmlFlow",tokenize:function(e,t,n){var r,o,a,i,l,s=this;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(i){return 33===i?(e.consume(i),u):47===i?(e.consume(i),o=!0,d):63===i?(e.consume(i),r=3,s.interrupt?t:A):kM(i)?(e.consume(i),a=String.fromCharCode(i),m):n(i)}function u(o){return 45===o?(e.consume(o),r=2,f):91===o?(e.consume(o),r=5,i=0,p):kM(o)?(e.consume(o),r=4,s.interrupt?t:A):n(o)}function f(r){return 45===r?(e.consume(r),s.interrupt?t:A):n(r)}function p(r){var o="CDATA[";return r===o.charCodeAt(i++)?(e.consume(r),i===o.length?s.interrupt?t:S:p):n(r)}function d(t){return kM(t)?(e.consume(t),a=String.fromCharCode(t),m):n(t)}function m(i){if(null===i||47===i||62===i||PM(i)){var l=47===i,c=a.toLowerCase();return l||o||!gA.includes(c)?vA.includes(a.toLowerCase())?(r=6,l?(e.consume(i),h):s.interrupt?t(i):S(i)):(r=7,s.interrupt&&!s.parser.lazy[s.now().line]?n(i):o?y(i):b(i)):(r=1,s.interrupt?t(i):S(i))}return 45===i||OM(i)?(e.consume(i),a+=String.fromCharCode(i),m):n(i)}function h(r){return 62===r?(e.consume(r),s.interrupt?t:S):n(r)}function y(t){return TM(t)?(e.consume(t),y):O(t)}function b(t){return 47===t?(e.consume(t),O):58===t||95===t||kM(t)?(e.consume(t),v):TM(t)?(e.consume(t),b):O(t)}function v(t){return 45===t||46===t||58===t||95===t||OM(t)?(e.consume(t),v):g(t)}function g(t){return 61===t?(e.consume(t),w):TM(t)?(e.consume(t),g):b(t)}function w(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,E):TM(t)?(e.consume(t),w):_(t)}function E(t){return t===l?(e.consume(t),l=null,k):null===t||NM(t)?n(t):(e.consume(t),E)}function _(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||PM(t)?g(t):(e.consume(t),_)}function k(e){return 47===e||62===e||TM(e)?b(e):n(e)}function O(t){return 62===t?(e.consume(t),x):n(t)}function x(t){return null===t||NM(t)?S(t):TM(t)?(e.consume(t),x):n(t)}function S(t){return 45===t&&2===r?(e.consume(t),N):60===t&&1===r?(e.consume(t),P):62===t&&4===r?(e.consume(t),L):63===t&&3===r?(e.consume(t),A):93===t&&5===r?(e.consume(t),M):!NM(t)||6!==r&&7!==r?null===t||NM(t)?(e.exit("htmlFlowData"),j(t)):(e.consume(t),S):(e.exit("htmlFlowData"),e.check(EA,R,j)(t))}function j(t){return e.check(_A,C,R)(t)}function C(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),D}function D(t){return null===t||NM(t)?j(t):(e.enter("htmlFlowData"),S(t))}function N(t){return 45===t?(e.consume(t),A):S(t)}function P(t){return 47===t?(e.consume(t),a="",T):S(t)}function T(t){if(62===t){var n=a.toLowerCase();return gA.includes(n)?(e.consume(t),L):S(t)}return kM(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),T):S(t)}function M(t){return 93===t?(e.consume(t),A):S(t)}function A(t){return 62===t?(e.consume(t),L):45===t&&2===r?(e.consume(t),A):S(t)}function L(t){return null===t||NM(t)?(e.exit("htmlFlowData"),R(t)):(e.consume(t),L)}function R(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){var t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},EA={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(YM,t,n)}},partial:!0},_A={tokenize:function(e,t,n){var r=this;return function(t){if(NM(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o;return n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0};var kA={tokenize:function(e,t,n){var r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},OA={name:"codeFenced",tokenize:function(e,t,n){var r,o=this,a={tokenize:function(e,t,n){var a=0;return i;function i(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s}function s(t){return e.enter("codeFencedFence"),TM(t)?RM(e,c,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===r?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===r?(a++,e.consume(t),u):a>=l?(e.exit("codeFencedFenceSequence"),TM(t)?RM(e,f,"whitespace")(t):f(t)):n(t)}function f(r){return null===r||NM(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0},i=0,l=0;return function(t){return function(t){var n=o.events[o.events.length-1];return i=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,r=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(t)}(t)};function s(t){return t===r?(l++,e.consume(t),s):l<3?n(t):(e.exit("codeFencedFenceSequence"),TM(t)?RM(e,c,"whitespace")(t):c(t))}function c(n){return null===n||NM(n)?(e.exit("codeFencedFence"),o.interrupt?t(n):e.check(kA,d,v)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||NM(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):TM(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),RM(e,f,"whitespace")(t)):96===t&&t===r?n(t):(e.consume(t),u)}function f(t){return null===t||NM(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||NM(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===r?n(t):(e.consume(t),p)}function d(t){return e.attempt(a,v,m)(t)}function m(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h}function h(t){return i>0&&TM(t)?RM(e,y,"linePrefix",i+1)(t):y(t)}function y(t){return null===t||NM(t)?e.check(kA,d,v)(t):(e.enter("codeFlowValue"),b(t))}function b(t){return null===t||NM(t)?(e.exit("codeFlowValue"),y(t)):(e.consume(t),b)}function v(n){return e.exit("codeFenced"),t(n)}},concrete:!0};var xA={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"Ĳ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"𝔑",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"​",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"⁡",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ﬃ",fflig:"ﬀ",ffllig:"ﬄ",ffr:"𝔣",filig:"ﬁ",fjlig:"fj",flat:"♭",fllig:"ﬂ",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"⁣",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ĳ",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ŉ",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"},SA={}.hasOwnProperty;function jA(e){return!!SA.call(xA,e)&&xA[e]}var CA={name:"characterReference",tokenize:function(e,t,n){var r,o,a=this,i=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),l};function l(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),r=31,o=OM,c(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,o=CM,c):(e.enter("characterReferenceValue"),r=7,o=jM,c(t))}function c(l){if(59===l&&i){var s=e.exit("characterReferenceValue");return o!==OM||jA(a.sliceSerialize(s))?(e.enter("characterReferenceMarker"),e.consume(l),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(l)}return o(l)&&i++<r?(e.consume(l),c):n(l)}}};var DA={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return DM(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};var NA={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),RM(e,t,"linePrefix")}}};var PA={name:"labelEnd",tokenize:function(e,t,n){var r,o,a=this,i=a.events.length;for(;i--;)if(("labelImage"===a.events[i][1].type||"labelLink"===a.events[i][1].type)&&!a.events[i][1]._balanced){r=a.events[i][1];break}return function(t){if(!r)return n(t);if(r._inactive)return u(t);return o=a.parser.defined.includes(fA(a.sliceSerialize({start:r.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),l};function l(t){return 40===t?e.attempt(TA,c,o?c:u)(t):91===t?e.attempt(MA,c,o?s:u)(t):o?c(t):u(t)}function s(t){return e.attempt(AA,c,u)(t)}function c(e){return t(e)}function u(e){return r._balanced=!0,n(e)}},resolveTo:function(e,t){var n,r,o,a,i=e.length,l=0;for(;i--;)if(n=e[i][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[i][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[i][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=i,"labelLink"!==n.type)){l=2;break}}else"labelEnd"===n.type&&(o=i);var s={type:"labelLink"===e[r][1].type?"link":"image",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[r][1].start),end:Object.assign({},e[o][1].end)},u={type:"labelText",start:Object.assign({},e[r+l+2][1].end),end:Object.assign({},e[o-2][1].start)};return a=[["enter",s,t],["enter",c,t]],a=gM(a,e.slice(r+1,r+l+3)),a=gM(a,[["enter",u,t]]),a=gM(a,QM(t.parser.constructs.insideSpan.null,e.slice(r+l+4,o-3),t)),a=gM(a,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]),a=gM(a,e.slice(o+1)),a=gM(a,[["exit",s,t]]),vM(e,r,e.length,a),e},resolveAll:function(e){var t=-1;for(;++t<e.length;){var n=e[t][1];"labelImage"!==n.type&&"labelLink"!==n.type&&"labelEnd"!==n.type||(e.splice(t+1,"labelImage"===n.type?4:2),n.type="data",t++)}return e}},TA={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return PM(t)?uA(e,o)(t):o(t)}function o(t){return 41===t?c(t):lA(e,a,i,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function a(t){return PM(t)?uA(e,l)(t):c(t)}function i(e){return n(e)}function l(t){return 34===t||39===t||40===t?cA(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function s(t){return PM(t)?uA(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},MA={tokenize:function(e,t,n){var r=this;return function(t){return sA.call(r,e,o,a,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(fA(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function a(e){return n(e)}}},AA={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};var LA={name:"labelStartImage",tokenize:function(e,t,n){var r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),a):n(t)}function a(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:PA.resolveAll};function RA(e){return null===e||PM(e)||AM(e)?1:MM(e)?2:void 0}var FA={name:"attention",tokenize:function(e,t){var n,r=this.parser.constructs.attentionMarkers.null,o=this.previous,a=RA(o);return function(t){return n=t,e.enter("attentionSequence"),i(t)};function i(l){if(l===n)return e.consume(l),i;var s=e.exit("attentionSequence"),c=RA(l),u=!c||2===c&&a||r.includes(l),f=!a||2===a&&c||r.includes(o);return s._open=Boolean(42===n?u:u&&(a||!f)),s._close=Boolean(42===n?f:f&&(c||!u)),t(l)}},resolveAll:function(e,t){var n,r,o,a,i,l,s,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;var f=Object.assign({},e[n][1].end),p=Object.assign({},e[u][1].start);zA(f,-l),zA(p,l),a={type:l>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[n][1].end)},i={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[u][1].start),end:p},o={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[u][1].start)},r={type:l>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},i.end)},e[n][1].end=Object.assign({},a.start),e[u][1].start=Object.assign({},i.end),s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=gM(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=gM(s,[["enter",r,t],["enter",a,t],["exit",a,t],["enter",o,t]]),s=gM(s,QM(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),s=gM(s,[["exit",o,t],["enter",i,t],["exit",i,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,s=gM(s,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,vM(e,n-1,u-n+3,s),u=n+s.length-c-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e}};function zA(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var BA={name:"autolink",tokenize:function(e,t,n){var r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return kM(t)?(e.consume(t),a):s(t)}function a(e){return 43===e||45===e||46===e||OM(e)?(r=1,i(e)):s(e)}function i(t){return 58===t?(e.consume(t),r=0,l):(43===t||45===t||46===t||OM(t))&&r++<32?(e.consume(t),i):(r=0,s(t))}function l(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||SM(r)?n(r):(e.consume(r),l)}function s(t){return 64===t?(e.consume(t),c):xM(t)?(e.consume(t),s):n(t)}function c(e){return OM(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):f(n)}function f(t){if((45===t||OM(t))&&r++<63){var o=45===t?f:u;return e.consume(t),o}return n(t)}}};var YA={name:"htmlText",tokenize:function(e,t,n){var r,o,a,i=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),l};function l(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),w):63===t?(e.consume(t),v):kM(t)?(e.consume(t),k):n(t)}function s(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),o=0,d):kM(t)?(e.consume(t),b):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),f):NM(t)?(a=u,T(t)):(e.consume(t),u)}function f(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?P(e):45===e?f(e):u(e)}function d(t){var r="CDATA[";return t===r.charCodeAt(o++)?(e.consume(t),o===r.length?m:d):n(t)}function m(t){return null===t?n(t):93===t?(e.consume(t),h):NM(t)?(a=m,T(t)):(e.consume(t),m)}function h(t){return 93===t?(e.consume(t),y):m(t)}function y(t){return 62===t?P(t):93===t?(e.consume(t),y):m(t)}function b(t){return null===t||62===t?P(t):NM(t)?(a=b,T(t)):(e.consume(t),b)}function v(t){return null===t?n(t):63===t?(e.consume(t),g):NM(t)?(a=v,T(t)):(e.consume(t),v)}function g(e){return 62===e?P(e):v(e)}function w(t){return kM(t)?(e.consume(t),E):n(t)}function E(t){return 45===t||OM(t)?(e.consume(t),E):_(t)}function _(t){return NM(t)?(a=_,T(t)):TM(t)?(e.consume(t),_):P(t)}function k(t){return 45===t||OM(t)?(e.consume(t),k):47===t||62===t||PM(t)?O(t):n(t)}function O(t){return 47===t?(e.consume(t),P):58===t||95===t||kM(t)?(e.consume(t),x):NM(t)?(a=O,T(t)):TM(t)?(e.consume(t),O):P(t)}function x(t){return 45===t||46===t||58===t||95===t||OM(t)?(e.consume(t),x):S(t)}function S(t){return 61===t?(e.consume(t),j):NM(t)?(a=S,T(t)):TM(t)?(e.consume(t),S):O(t)}function j(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,C):NM(t)?(a=j,T(t)):TM(t)?(e.consume(t),j):(e.consume(t),D)}function C(t){return t===r?(e.consume(t),r=void 0,N):null===t?n(t):NM(t)?(a=C,T(t)):(e.consume(t),C)}function D(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||PM(t)?O(t):(e.consume(t),D)}function N(e){return 47===e||62===e||PM(e)?O(e):n(e)}function P(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function T(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),M}function M(t){return TM(t)?RM(e,A,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):A(t)}function A(t){return e.enter("htmlTextData"),a(t)}}};var IA={name:"labelStartLink",tokenize:function(e,t,n){var r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:PA.resolveAll};var HA={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return NM(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};var UA,WA,VA,qA,GA,KA={name:"codeText",tokenize:function(e,t,n){var r,o,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),i(t)};function i(t){return 96===t?(e.consume(t),a++,i):(e.exit("codeTextSequence"),l(t))}function l(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),l):96===t?(o=e.enter("codeTextSequence"),r=0,c(t)):NM(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):(e.enter("codeTextData"),s(t))}function s(t){return null===t||32===t||96===t||NM(t)?(e.exit("codeTextData"),l(t)):(e.consume(t),s)}function c(n){return 96===n?(e.consume(n),r++,c):r===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",s(n))}},resolve:function(e){var t,n,r=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}t=o-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}};function $A(e){return $A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$A(e)}function JA(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==$A(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==$A(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===$A(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var XA=(JA(UA={},42,rA),JA(UA,43,rA),JA(UA,45,rA),JA(UA,48,rA),JA(UA,49,rA),JA(UA,50,rA),JA(UA,51,rA),JA(UA,52,rA),JA(UA,53,rA),JA(UA,54,rA),JA(UA,55,rA),JA(UA,56,rA),JA(UA,57,rA),JA(UA,62,iA),UA),QA=JA({},91,pA),ZA=(JA(WA={},-2,mA),JA(WA,-1,mA),JA(WA,32,mA),WA),eL=(JA(VA={},35,yA),JA(VA,42,nA),JA(VA,45,[bA,nA]),JA(VA,60,wA),JA(VA,61,bA),JA(VA,95,nA),JA(VA,96,OA),JA(VA,126,OA),VA),tL=(JA(qA={},38,CA),JA(qA,92,DA),qA),nL=(JA(GA={},-5,NA),JA(GA,-4,NA),JA(GA,-3,NA),JA(GA,33,LA),JA(GA,38,CA),JA(GA,42,FA),JA(GA,60,[BA,YA]),JA(GA,91,IA),JA(GA,92,[HA,DA]),JA(GA,93,PA),JA(GA,95,FA),JA(GA,96,KA),GA),rL={null:[FA,qM]},oL={null:[42,95]},aL={null:[]};function iL(e){return function(e){if(Array.isArray(e))return lL(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return lL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lL(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function sL(e){var t={defined:[],lazy:{},constructs:function(e){for(var t={},n=-1;++n<e.length;)EM(t,e[n]);return t}([r].concat(iL((e||{}).extensions||[]))),content:n(FM),document:n(zM),flow:n(VM),string:n(GM),text:n(KM)};return t;function n(e){return function(n){return tA(t,e,n)}}}var cL=/[\0\t\n\r]/g;function uL(e,t){var n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535==(65535&n)||65534==(65535&n)||n>1114111?"�":String.fromCharCode(n)}var fL=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function pL(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){var r=n.charCodeAt(1),o=120===r||88===r;return uL(n.slice(o?2:1),o?16:10)}return jA(n)||e}function dL(e){return function(e){if(Array.isArray(e))return mL(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return mL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mL(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var hL={}.hasOwnProperty,yL=function(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){var t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(ne),autolinkProtocol:j,autolinkEmail:j,atxHeading:l(Q),blockQuote:l(G),characterEscape:j,characterReference:j,codeFenced:l(K),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:l(K,s),codeText:l($,s),codeTextData:j,data:j,codeFlowValue:j,definition:l(J),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:l(X),hardBreakEscape:l(Z),hardBreakTrailing:l(Z),htmlFlow:l(ee,s),htmlFlowData:j,htmlText:l(ee,s),htmlTextData:j,image:l(te),label:s,link:l(ne),listItem:l(oe),listItemValue:m,listOrdered:l(re,d),listUnordered:l(re),paragraph:l(ae),reference:I,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:l(Q),strong:l(ie),thematicBreak:l(se)},exit:{atxHeading:u(),atxHeadingSequence:k,autolink:u(),autolinkEmail:q,autolinkProtocol:V,blockQuote:u(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:U,characterReferenceMarkerNumeric:U,characterReferenceValue:W,codeFenced:u(v),codeFencedFence:b,codeFencedFenceInfo:h,codeFencedFenceMeta:y,codeFlowValue:C,codeIndented:u(g),codeText:u(M),codeTextData:C,data:C,definition:u(),definitionDestinationString:_,definitionLabelString:w,definitionTitleString:E,emphasis:u(),hardBreakEscape:u(N),hardBreakTrailing:u(N),htmlFlow:u(P),htmlFlowData:C,htmlText:u(T),htmlTextData:C,image:u(L),label:F,labelText:R,lineEnding:D,link:u(A),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:H,resourceDestinationString:z,resourceTitleString:B,resource:Y,setextHeading:u(S),setextHeadingLineSequence:x,setextHeadingText:O,strong:u(),thematicBreak:u()}};vL(t,(e||{}).mdastExtensions||[]);var n={};return r;function r(e){for(var n={type:"root",children:[]},r={stack:[n],tokenStack:[],config:t,enter:c,exit:f,buffer:s,resume:p,setData:a,getData:i},l=[],u=-1;++u<e.length;){if("listOrdered"===e[u][1].type||"listUnordered"===e[u][1].type)if("enter"===e[u][0])l.push(u);else u=o(e,l.pop(),u)}for(u=-1;++u<e.length;){var d=t[e[u][0]];hL.call(d,e[u][1].type)&&d[e[u][1].type].call(Object.assign({sliceSerialize:e[u][2].sliceSerialize},r),e[u][1])}if(r.tokenStack.length>0){var m=r.tokenStack[r.tokenStack.length-1];(m[1]||wL).call(r,void 0,m[0])}for(n.position={start:bL(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:bL(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u<t.transforms.length;)n=t.transforms[u](n)||n;return n}function o(e,t,n){for(var r,o,a,i,l=t-1,s=-1,c=!1;++l<=n;){var u=e[l];if("listUnordered"===u[1].type||"listOrdered"===u[1].type||"blockQuote"===u[1].type?("enter"===u[0]?s++:s--,i=void 0):"lineEndingBlank"===u[1].type?"enter"===u[0]&&(!r||i||s||a||(a=l),i=void 0):"linePrefix"===u[1].type||"listItemValue"===u[1].type||"listItemMarker"===u[1].type||"listItemPrefix"===u[1].type||"listItemPrefixWhitespace"===u[1].type||(i=void 0),!s&&"enter"===u[0]&&"listItemPrefix"===u[1].type||-1===s&&"exit"===u[0]&&("listUnordered"===u[1].type||"listOrdered"===u[1].type)){if(r){var f=l;for(o=void 0;f--;){var p=e[f];if("lineEnding"===p[1].type||"lineEndingBlank"===p[1].type){if("exit"===p[0])continue;o&&(e[o][1].type="lineEndingBlank",c=!0),p[1].type="lineEnding",o=f}else if("linePrefix"!==p[1].type&&"blockQuotePrefix"!==p[1].type&&"blockQuotePrefixWhitespace"!==p[1].type&&"blockQuoteMarker"!==p[1].type&&"listItemIndent"!==p[1].type)break}a&&(!o||a<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:u[1].end),e.splice(o||l,0,["exit",r,u[2]]),l++,n++}"listItemPrefix"===u[1].type&&(r={type:"listItem",_spread:!1,start:Object.assign({},u[1].start),end:void 0},e.splice(l,0,["enter",r,u[2]]),l++,n++,a=void 0,i=!0)}}return e[t][1]._spread=c,n}function a(e,t){n[e]=t}function i(e){return n[e]}function l(e,t){return n;function n(n){c.call(this,e(n),n),t&&t.call(this,n)}}function s(){this.stack.push({type:"fragment",children:[]})}function c(e,t,n){return this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n]),e.position={start:bL(t.start)},e}function u(e){return t;function t(t){e&&e.call(this,t),f.call(this,t)}}function f(e,t){var n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+dT({start:e.start,end:e.end})+"): it’s not open");return r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||wL).call(this,e,r[0])),n.position.end=bL(e.end),n}function p(){return function(e,t){var n=t||dM;return mM(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}(this.stack.pop())}function d(){a("expectingFirstListItemValue",!0)}function m(e){i("expectingFirstListItemValue")&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),a("expectingFirstListItemValue"))}function h(){var e=this.resume();this.stack[this.stack.length-1].lang=e}function y(){var e=this.resume();this.stack[this.stack.length-1].meta=e}function b(){i("flowCodeInside")||(this.buffer(),a("flowCodeInside",!0))}function v(){var e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),a("flowCodeInside")}function g(){var e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function w(e){var t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=fA(this.sliceSerialize(e)).toLowerCase()}function E(){var e=this.resume();this.stack[this.stack.length-1].title=e}function _(){var e=this.resume();this.stack[this.stack.length-1].url=e}function k(e){var t=this.stack[this.stack.length-1];if(!t.depth){var n=this.sliceSerialize(e).length;t.depth=n}}function O(){a("setextHeadingSlurpLineEnding",!0)}function x(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2}function S(){a("setextHeadingSlurpLineEnding")}function j(e){var t=this.stack[this.stack.length-1],n=t.children[t.children.length-1];n&&"text"===n.type||((n=le()).position={start:bL(e.start)},t.children.push(n)),this.stack.push(n)}function C(e){var t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=bL(e.end)}function D(e){var n=this.stack[this.stack.length-1];if(i("atHardBreak"))return n.children[n.children.length-1].position.end=bL(e.end),void a("atHardBreak");!i("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(n.type)&&(j.call(this,e),C.call(this,e))}function N(){a("atHardBreak",!0)}function P(){var e=this.resume();this.stack[this.stack.length-1].value=e}function T(){var e=this.resume();this.stack[this.stack.length-1].value=e}function M(){var e=this.resume();this.stack[this.stack.length-1].value=e}function A(){var e=this.stack[this.stack.length-1];if(i("inReference")){var t=i("referenceType")||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;a("referenceType")}function L(){var e=this.stack[this.stack.length-1];if(i("inReference")){var t=i("referenceType")||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;a("referenceType")}function R(e){var t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(fL,pL)}(t),n.identifier=fA(t).toLowerCase()}function F(){var e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(a("inReference",!0),"link"===n.type){var r=e.children;n.children=r}else n.alt=t}function z(){var e=this.resume();this.stack[this.stack.length-1].url=e}function B(){var e=this.resume();this.stack[this.stack.length-1].title=e}function Y(){a("inReference")}function I(){a("referenceType","collapsed")}function H(e){var t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=fA(this.sliceSerialize(e)).toLowerCase(),a("referenceType","full")}function U(e){a("characterReferenceType",e.type)}function W(e){var t,n=this.sliceSerialize(e),r=i("characterReferenceType");r?(t=uL(n,"characterReferenceMarkerNumeric"===r?10:16),a("characterReferenceType")):t=jA(n);var o=this.stack.pop();o.value+=t,o.position.end=bL(e.end)}function V(e){C.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function q(e){C.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function G(){return{type:"blockquote",children:[]}}function K(){return{type:"code",lang:null,meta:null,value:""}}function $(){return{type:"inlineCode",value:""}}function J(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function X(){return{type:"emphasis",children:[]}}function Q(){return{type:"heading",depth:void 0,children:[]}}function Z(){return{type:"break"}}function ee(){return{type:"html",value:""}}function te(){return{type:"image",title:null,url:"",alt:null}}function ne(){return{type:"link",title:null,url:"",children:[]}}function re(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function oe(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function ae(){return{type:"paragraph",children:[]}}function ie(){return{type:"strong",children:[]}}function le(){return{type:"text",value:""}}function se(){return{type:"thematicBreak"}}}(n)(function(e){for(;!IM(e););return e}(sL(n).document().write((o=1,a="",i=!0,function(e,t,n){var l,s,c,u,f,p=[];for(e=a+e.toString(t),c=0,a="",i&&(65279===e.charCodeAt(0)&&c++,i=void 0);c<e.length;){if(cL.lastIndex=c,u=(l=cL.exec(e))&&void 0!==l.index?l.index:e.length,f=e.charCodeAt(u),!l){a=e.slice(c);break}if(10===f&&c===u&&r)p.push(-3),r=void 0;else switch(r&&(p.push(-5),r=void 0),c<u&&(p.push(e.slice(c,u)),o+=u-c),f){case 0:p.push(65533),o++;break;case 9:for(s=4*Math.ceil(o/4),p.push(-2);o++<s;)p.push(-1);break;case 10:p.push(-4),o=1;break;default:r=!0,o=1}c=u+1}return n&&(r&&p.push(-5),a&&p.push(a),p.push(null)),p})(e,t,!0))));var r,o,a,i};function bL(e){return{line:e.line,column:e.column,offset:e.offset}}function vL(e,t){for(var n=-1;++n<t.length;){var r=t[n];Array.isArray(r)?vL(e,r):gL(e,r)}}function gL(e,t){var n;for(n in t)if(hL.call(t,n))if("canContainEols"===n){var r,o=t[n];if(o)(r=e[n]).push.apply(r,dL(o))}else if("transforms"===n){var a,i=t[n];if(i)(a=e[n]).push.apply(a,dL(i))}else if("enter"===n||"exit"===n){var l=t[n];l&&Object.assign(e[n],l)}}function wL(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+dT({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+dT({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+dT({start:t.start,end:t.end})+") is still open")}function EL(e){var t=this;Object.assign(this,{Parser:function(n){var r=t.data("settings");return yL(n,Object.assign({},r,e,{extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]}))}})}function _L(e){for(var t=[],n=-1,r=0,o=0;++n<e.length;){var a=e.charCodeAt(n),i="";if(37===a&&OM(e.charCodeAt(n+1))&&OM(e.charCodeAt(n+2)))o=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(i=String.fromCharCode(a));else if(a>55295&&a<57344){var l=e.charCodeAt(n+1);a<56320&&l>56319&&l<57344?(i=String.fromCharCode(a,l),o=1):i="�"}else i=String.fromCharCode(a);i&&(t.push(e.slice(r,n),encodeURIComponent(i)),r=n+o+1,i=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function kL(e){return kL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kL(e)}function OL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?OL(Object(n),!0).forEach((function(t){SL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function SL(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==kL(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==kL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===kL(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jL(e){return jL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jL(e)}var CL=function(e){if(null==e)return PL;if("string"==typeof e)return function(e){return NL(t);function t(t){return t&&t.type===e}}(e);if("object"===jL(e))return Array.isArray(e)?DL(e):function(e){return NL(t);function t(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}(e);if("function"==typeof e)return NL(e);throw new Error("Expected function, string, or object as test")};function DL(e){for(var t=[],n=-1;++n<e.length;)t[n]=CL(e[n]);return NL((function(){for(var e=-1,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];for(;++e<t.length;){var a;if((a=t[e]).call.apply(a,[this].concat(r)))return!0}return!1}))}function NL(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return Boolean(t&&"object"===jL(t)&&"type"in t&&Boolean(e.call.apply(e,[this,t].concat(r))))}}function PL(){return!0}function TL(e){return TL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},TL(e)}var ML=!0,AL=!1,LL="skip",RL=function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null);var o=CL(t),a=r?-1:1;!function e(i,l,s){var c=i&&"object"===TL(i)?i:{};if("string"==typeof c.type){var u="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(f,"name",{value:"node ("+i.type+(u?"<"+u+">":"")+")"})}return f;function f(){var c,u,f,p=[];if((!t||o(i,l,s[s.length-1]||null))&&(p=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[ML,e];return[e]}(n(i,s)),p[0]===AL))return p;if(i.children&&p[0]!==LL)for(u=(r?i.children.length:-1)+a,f=s.concat(i);u>-1&&u<i.children.length;){if((c=e(i.children[u],u,f)())[0]===AL)return c;u="number"==typeof c[1]?c[1]:u+a}return p}}(e,void 0,[])()};var FL=function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null),RL(e,t,(function(e,t){var r=t[t.length-1];return n(e,r?r.children.indexOf(e):null,r)}),r)},zL=YL("start"),BL=YL("end");function YL(e){return function(t){var n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:n.offset>-1?n.offset:null}}}var IL={}.hasOwnProperty;function HL(e){return String(e||"").toUpperCase()}function UL(e,t){var n,r=String(t.identifier).toUpperCase(),o=_L(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);-1===a?(e.footnoteOrder.push(r),e.footnoteCounts[r]=1,n=e.footnoteOrder.length):(e.footnoteCounts[r]++,n=a+1);var i=e.footnoteCounts[r],l={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+o,id:e.clobberPrefix+"fnref-"+o+(i>1?"-"+i:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,l);var s={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,s),e.applyData(t,s)}function WL(e,t){var n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return{type:"text",value:"!["+t.alt+r};var o=e.all(t),a=o[0];a&&"text"===a.type?a.value="["+a.value:o.unshift({type:"text",value:"["});var i=o[o.length-1];return i&&"text"===i.type?i.value+=r:o.push({type:"text",value:r}),o}function VL(e){return function(e){if(Array.isArray(e))return qL(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return qL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qL(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function GL(e){var t=e.spread;return null==t?e.children.length>1:t}var KL=9,$L=32;function JL(e){for(var t=String(e),n=/\r?\n|\r/g,r=n.exec(t),o=0,a=[];r;)a.push(XL(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return a.push(XL(t.slice(o),o>0,!1)),a.join("")}function XL(e,t,n){var r=0,o=e.length;if(t)for(var a=e.codePointAt(r);a===KL||a===$L;)r++,a=e.codePointAt(r);if(n)for(var i=e.codePointAt(o-1);i===KL||i===$L;)o--,i=e.codePointAt(o-1);return o>r?e.slice(r,o):""}var QL={blockquote:function(e,t){var n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){var n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){var n=t.value?t.value+"\n":"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,o={};r&&(o.className=["language-"+r]);var a={type:"element",tagName:"code",properties:o,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a={type:"element",tagName:"pre",properties:{},children:[a=e.applyData(t,a)]},e.patch(t,a),a},delete:function(e,t){var n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){var n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:UL,footnote:function(e,t){for(var n=e.footnoteById,r=1;r in n;)r++;var o=String(r);return n[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:t.children}],position:t.position},UL(e,{type:"footnoteReference",identifier:o,position:t.position})},heading:function(e,t){var n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.dangerous){var n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null},imageReference:function(e,t){var n=e.definition(t.identifier);if(!n)return WL(e,t);var r={src:_L(n.url||""),alt:t.alt};null!==n.title&&void 0!==n.title&&(r.title=n.title);var o={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){var n={src:_L(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);var r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){var n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);var r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){var n=e.definition(t.identifier);if(!n)return WL(e,t);var r={href:_L(n.url||"")};null!==n.title&&void 0!==n.title&&(r.title=n.title);var o={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){var n={href:_L(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);var r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){var r=e.all(t),o=n?function(e){var t=!1;if("list"===e.type){t=e.spread||!1;for(var n=e.children,r=-1;!t&&++r<n.length;)t=GL(n[r])}return t}(n):GL(t),a={},i=[];if("boolean"==typeof t.checked){var l,s=r[0];s&&"element"===s.type&&"p"===s.tagName?l=s:(l={type:"element",tagName:"p",properties:{},children:[]},r.unshift(l)),l.children.length>0&&l.children.unshift({type:"text",value:" "}),l.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}for(var c=-1;++c<r.length;){var u=r[c];(o||0!==c||"element"!==u.type||"p"!==u.tagName)&&i.push({type:"text",value:"\n"}),"element"!==u.type||"p"!==u.tagName||o?i.push(u):i.push.apply(i,VL(u.children))}var f=r[r.length-1];f&&(o||"element"!==f.type||"p"!==f.tagName)&&i.push({type:"text",value:"\n"});var p={type:"element",tagName:"li",properties:a,children:i};return e.patch(t,p),e.applyData(t,p)},list:function(e,t){var n={},r=e.all(t),o=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++o<r.length;){var a=r[o];if("element"===a.type&&"li"===a.tagName&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}var i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){var n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){var n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){var n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){var n=e.all(t),r=n.shift(),o=[];if(r){var a={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],a),o.push(a)}if(n.length>0){var i={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=zL(t.children[1]),s=BL(t.children[t.children.length-1]);l.line&&s.line&&(i.position={start:l,end:s}),o.push(i)}var c={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,c),e.applyData(t,c)},tableCell:function(e,t){var n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){for(var r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",a=n&&"table"===n.type?n.align:void 0,i=a?a.length:t.children.length,l=-1,s=[];++l<i;){var c=t.children[l],u={},f=a?a[l]:void 0;f&&(u.align=f);var p={type:"element",tagName:o,properties:u,children:[]};c&&(p.children=e.all(c),e.patch(c,p),p=e.applyData(t,p)),s.push(p)}var d={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,d),e.applyData(t,d)},text:function(e,t){var n={type:"text",value:JL(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){var n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:ZL,yaml:ZL,definition:ZL,footnoteDefinition:ZL};function ZL(){return null}function eR(e){return eR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},eR(e)}function tR(e){return function(e){if(Array.isArray(e))return nR(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return nR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nR(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rR(Object(n),!0).forEach((function(t){aR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function aR(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==eR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==eR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===eR(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var iR={}.hasOwnProperty;function lR(e,t){var n=t||{},r=n.allowDangerousHtml||!1,o={};return i.dangerous=r,i.clobberPrefix=void 0===n.clobberPrefix||null===n.clobberPrefix?"user-content-":n.clobberPrefix,i.footnoteLabel=n.footnoteLabel||"Footnotes",i.footnoteLabelTagName=n.footnoteLabelTagName||"h2",i.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},i.footnoteBackLabel=n.footnoteBackLabel||"Back to content",i.unknownHandler=n.unknownHandler,i.passThrough=n.passThrough,i.handlers=oR(oR({},QL),n.handlers),i.definition=function(e){var t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return FL(e,"definition",(function(e){var n=HL(e.identifier);n&&!IL.call(t,n)&&(t[n]=e)})),function(e){var n=HL(e);return n&&IL.call(t,n)?t[n]:null}}(e),i.footnoteById=o,i.footnoteOrder=[],i.footnoteCounts={},i.patch=sR,i.applyData=cR,i.one=function(e,t){return uR(i,e,t)},i.all=function(e){return fR(i,e)},i.wrap=pR,i.augment=a,FL(e,"footnoteDefinition",(function(e){var t=String(e.identifier).toUpperCase();iR.call(o,t)||(o[t]=e)})),i;function a(e,t){if(e&&"data"in e&&e.data){var n=e.data;n.hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=n.hName),"element"===t.type&&n.hProperties&&(t.properties=oR(oR({},t.properties),n.hProperties)),"children"in t&&t.children&&n.hChildren&&(t.children=n.hChildren)}if(e){var r="type"in e?e:{position:e};(o=r)&&o.position&&o.position.start&&o.position.start.line&&o.position.start.column&&o.position.end&&o.position.end.line&&o.position.end.column&&(t.position={start:zL(r),end:BL(r)})}var o;return t}function i(e,t,n,r){return Array.isArray(n)&&(r=n,n={}),a(e,{type:"element",tagName:t,properties:n||{},children:r||[]})}}function sR(e,t){var n;e.position&&(t.position={start:zL(n=e),end:BL(n)})}function cR(e,t){var n=t;if(e&&e.data){var r=e.data.hName,o=e.data.hChildren,a=e.data.hProperties;"string"==typeof r&&("element"===n.type?n.tagName=r:n={type:"element",tagName:r,properties:{},children:[]}),"element"===n.type&&a&&(n.properties=oR(oR({},n.properties),a)),"children"in n&&n.children&&null!=o&&(n.children=o)}return n}function uR(e,t,n){var r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return iR.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?oR(oR({},t),{},{children:fR(e,t)}):t:e.unknownHandler?e.unknownHandler(e,t,n):function(e,t){var n=t.data||{},r=!("value"in t)||iR.call(n,"hProperties")||iR.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:fR(e,t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}(e,t)}function fR(e,t){var n=[];if("children"in t)for(var r=t.children,o=-1;++o<r.length;){var a=uR(e,r[o],t);if(a){if(o&&"break"===r[o-1].type&&(Array.isArray(a)||"text"!==a.type||(a.value=a.value.replace(/^\s+/,"")),!Array.isArray(a)&&"element"===a.type)){var i=a.children[0];i&&"text"===i.type&&(i.value=i.value.replace(/^\s+/,""))}Array.isArray(a)?n.push.apply(n,tR(a)):n.push(a)}}return n}function pR(e,t){var n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function dR(e,t){var n=lR(e,t),r=n.one(e,null),o=function(e){for(var t=[],n=-1;++n<e.footnoteOrder.length;){var r=e.footnoteById[e.footnoteOrder[n]];if(r){for(var o=e.all(r),a=String(r.identifier).toUpperCase(),i=_L(a.toLowerCase()),l=0,s=[];++l<=e.footnoteCounts[a];){var c={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+i+(l>1?"-"+l:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};l>1&&c.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(l)}]}),s.length>0&&s.push({type:"text",value:" "}),s.push(c)}var u=o[o.length-1];if(u&&"element"===u.type&&"p"===u.tagName){var f,p=u.children[u.children.length-1];p&&"text"===p.type?p.value+=" ":u.children.push({type:"text",value:" "}),(f=u.children).push.apply(f,s)}else o.push.apply(o,s);var d={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+i},children:e.wrap(o,!0)};e.patch(r,d),t.push(d)}}if(0!==t.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:xL(xL({},JSON.parse(JSON.stringify(e.footnoteLabelProperties))),{},{id:"footnote-label"}),children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:"\n"}]}}(n);return o&&r.children.push({type:"text",value:"\n"},o),Array.isArray(r)?{type:"root",children:r}:r}var mR=function(e,t){return e&&"run"in e?function(e,t){return function(n,r,o){e.run(dR(n,t),r,(function(e){o(e)}))}}(e,t):function(e){return function(t){return dR(t,e)}}(e||t)};var hR=n(69),yR=n.n(hR);function bR(e){return bR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bR(e)}function vR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,a=function(e,t){if("object"!==bR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==bR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===bR(a)?a:String(a)),r)}var o,a}function gR(e,t,n){return t&&vR(e.prototype,t),n&&vR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var wR=gR((function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.property=t,this.normal=n,r&&(this.space=r)}));function ER(e,t){for(var n={},r={},o=-1;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new wR(n,r,t)}function _R(e){return e.toLowerCase()}function kR(e){return kR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kR(e)}function OR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,a=function(e,t){if("object"!==kR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==kR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===kR(a)?a:String(a)),r)}var o,a}function xR(e,t,n){return t&&OR(e.prototype,t),n&&OR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}wR.prototype.property={},wR.prototype.normal={},wR.prototype.space=null;var SR=xR((function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.property=t,this.attribute=n}));SR.prototype.space=null,SR.prototype.boolean=!1,SR.prototype.booleanish=!1,SR.prototype.overloadedBoolean=!1,SR.prototype.number=!1,SR.prototype.commaSeparated=!1,SR.prototype.spaceSeparated=!1,SR.prototype.commaOrSpaceSeparated=!1,SR.prototype.mustUseProperty=!1,SR.prototype.defined=!1;var jR=0,CR=LR(),DR=LR(),NR=LR(),PR=LR(),TR=LR(),MR=LR(),AR=LR();function LR(){return Math.pow(2,++jR)}function RR(e){return RR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},RR(e)}function FR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,a=function(e,t){if("object"!==RR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==RR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===RR(a)?a:String(a)),r)}var o,a}function zR(e,t){return zR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zR(e,t)}function BR(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=IR(e);if(t){var o=IR(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===RR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return YR(e)}(this,n)}}function YR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function IR(e){return IR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},IR(e)}var HR=Object.keys(o),UR=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zR(e,t)}(i,e);var t,n,r,a=BR(i);function i(e,t,n,r){var l;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var s=-1;if(WR(YR(l=a.call(this,e,t)),"space",r),"number"==typeof n)for(;++s<HR.length;){var c=HR[s];WR(YR(l),HR[s],(n&o[c])===o[c])}return l}return t=i,n&&FR(t.prototype,n),r&&FR(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(SR);function WR(e,t,n){n&&(e[t]=n)}UR.prototype.defined=!0;var VR={}.hasOwnProperty;function qR(e){var t,n={},r={};for(t in e.properties)if(VR.call(e.properties,t)){var o=e.properties[t],a=new UR(t,e.transform(e.attributes||{},t),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(t)&&(a.mustUseProperty=!0),n[t]=a,r[_R(t)]=t,r[_R(a.attribute)]=t}return new wR(n,r,e.space)}var GR=qR({space:"xlink",transform:function(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),KR=qR({space:"xml",transform:function(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function $R(e,t){return t in e?e[t]:t}function JR(e,t){return $R(e,t.toLowerCase())}var XR=qR({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:JR,properties:{xmlns:null,xmlnsXLink:null}}),QR=qR({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:DR,ariaAutoComplete:null,ariaBusy:DR,ariaChecked:DR,ariaColCount:PR,ariaColIndex:PR,ariaColSpan:PR,ariaControls:TR,ariaCurrent:null,ariaDescribedBy:TR,ariaDetails:null,ariaDisabled:DR,ariaDropEffect:TR,ariaErrorMessage:null,ariaExpanded:DR,ariaFlowTo:TR,ariaGrabbed:DR,ariaHasPopup:null,ariaHidden:DR,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:TR,ariaLevel:PR,ariaLive:null,ariaModal:DR,ariaMultiLine:DR,ariaMultiSelectable:DR,ariaOrientation:null,ariaOwns:TR,ariaPlaceholder:null,ariaPosInSet:PR,ariaPressed:DR,ariaReadOnly:DR,ariaRelevant:null,ariaRequired:DR,ariaRoleDescription:TR,ariaRowCount:PR,ariaRowIndex:PR,ariaRowSpan:PR,ariaSelected:DR,ariaSetSize:PR,ariaSort:null,ariaValueMax:PR,ariaValueMin:PR,ariaValueNow:PR,ariaValueText:null,role:null}}),ZR=qR({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:JR,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:MR,acceptCharset:TR,accessKey:TR,action:null,allow:null,allowFullScreen:CR,allowPaymentRequest:CR,allowUserMedia:CR,alt:null,as:null,async:CR,autoCapitalize:null,autoComplete:TR,autoFocus:CR,autoPlay:CR,blocking:TR,capture:CR,charSet:null,checked:CR,cite:null,className:TR,cols:PR,colSpan:null,content:null,contentEditable:DR,controls:CR,controlsList:TR,coords:PR|MR,crossOrigin:null,data:null,dateTime:null,decoding:null,default:CR,defer:CR,dir:null,dirName:null,disabled:CR,download:NR,draggable:DR,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:CR,formTarget:null,headers:TR,height:PR,hidden:CR,high:PR,href:null,hrefLang:null,htmlFor:TR,httpEquiv:TR,id:null,imageSizes:null,imageSrcSet:null,inert:CR,inputMode:null,integrity:null,is:null,isMap:CR,itemId:null,itemProp:TR,itemRef:TR,itemScope:CR,itemType:TR,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:CR,low:PR,manifest:null,max:null,maxLength:PR,media:null,method:null,min:null,minLength:PR,multiple:CR,muted:CR,name:null,nonce:null,noModule:CR,noValidate:CR,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:CR,optimum:PR,pattern:null,ping:TR,placeholder:null,playsInline:CR,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:CR,referrerPolicy:null,rel:TR,required:CR,reversed:CR,rows:PR,rowSpan:PR,sandbox:TR,scope:null,scoped:CR,seamless:CR,selected:CR,shadowRootDelegatesFocus:CR,shadowRootMode:null,shape:null,size:PR,sizes:null,slot:null,span:PR,spellCheck:DR,src:null,srcDoc:null,srcLang:null,srcSet:null,start:PR,step:null,style:null,tabIndex:PR,target:null,title:null,translate:null,type:null,typeMustMatch:CR,useMap:null,value:DR,width:PR,wrap:null,align:null,aLink:null,archive:TR,axis:null,background:null,bgColor:null,border:PR,borderColor:null,bottomMargin:PR,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:CR,declare:CR,event:null,face:null,frame:null,frameBorder:null,hSpace:PR,leftMargin:PR,link:null,longDesc:null,lowSrc:null,marginHeight:PR,marginWidth:PR,noResize:CR,noHref:CR,noShade:CR,noWrap:CR,object:null,profile:null,prompt:null,rev:null,rightMargin:PR,rules:null,scheme:null,scrolling:DR,standby:null,summary:null,text:null,topMargin:PR,valueType:null,version:null,vAlign:null,vLink:null,vSpace:PR,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:CR,disableRemotePlayback:CR,prefix:null,property:null,results:PR,security:null,unselectable:null}}),eF=qR({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:$R,properties:{about:AR,accentHeight:PR,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:PR,amplitude:PR,arabicForm:null,ascent:PR,attributeName:null,attributeType:null,azimuth:PR,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:PR,by:null,calcMode:null,capHeight:PR,className:TR,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:PR,diffuseConstant:PR,direction:null,display:null,dur:null,divisor:PR,dominantBaseline:null,download:CR,dx:null,dy:null,edgeMode:null,editable:null,elevation:PR,enableBackground:null,end:null,event:null,exponent:PR,externalResourcesRequired:null,fill:null,fillOpacity:PR,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:MR,g2:MR,glyphName:MR,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:PR,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:PR,horizOriginX:PR,horizOriginY:PR,id:null,ideographic:PR,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:PR,k:PR,k1:PR,k2:PR,k3:PR,k4:PR,kernelMatrix:AR,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:PR,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:PR,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:PR,overlineThickness:PR,paintOrder:null,panose1:null,path:null,pathLength:PR,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:TR,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:PR,pointsAtY:PR,pointsAtZ:PR,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:AR,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:AR,rev:AR,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:AR,requiredFeatures:AR,requiredFonts:AR,requiredFormats:AR,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:PR,specularExponent:PR,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:PR,strikethroughThickness:PR,string:null,stroke:null,strokeDashArray:AR,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:PR,strokeOpacity:PR,strokeWidth:null,style:null,surfaceScale:PR,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:AR,tabIndex:PR,tableValues:null,target:null,targetX:PR,targetY:PR,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:AR,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:PR,underlineThickness:PR,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:PR,values:null,vAlphabetic:PR,vMathematical:PR,vectorEffect:null,vHanging:PR,vIdeographic:PR,version:null,vertAdvY:PR,vertOriginX:PR,vertOriginY:PR,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:PR,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),tF=ER([KR,GR,XR,QR,ZR],"html"),nF=ER([KR,GR,XR,QR,eF],"svg");function rF(e){return function(e){if(Array.isArray(e))return oF(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return oF(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oF(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function aF(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return function(t){FL(t,"element",(function(t,n,r){var o,a=r;if(e.allowedElements?o=!e.allowedElements.includes(t.tagName):e.disallowedElements&&(o=e.disallowedElements.includes(t.tagName)),!o&&e.allowElement&&"number"==typeof n&&(o=!e.allowElement(t,n,a)),o&&"number"==typeof n){var i;if(e.unwrapDisallowed&&t.children)(i=a.children).splice.apply(i,[n,1].concat(rF(t.children)));else a.children.splice(n,1);return n}}))}}var iF=n(1470),lF=n.n(iF);function sF(e){return sF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sF(e)}var cF=/^data[-\w.:]+$/i,uF=/-[a-z]/g,fF=/[A-Z]/g;function pF(e){return"-"+e.toLowerCase()}function dF(e){return e.charAt(1).toUpperCase()}var mF={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};function hF(e){return function(e){if(Array.isArray(e))return yF(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return yF(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yF(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var bF=n(1471),vF=["http","https","mailto","tel"];function gF(e){var t=(e||"").trim(),n=t.charAt(0);if("#"===n||"/"===n)return t;var r=t.indexOf(":");if(-1===r)return t;for(var o=-1;++o<vF.length;){var a=vF[o];if(r===a.length&&t.slice(0,a.length).toLowerCase()===a)return t}return-1!==(o=t.indexOf("?"))&&r>o||-1!==(o=t.indexOf("#"))&&r>o?t:"javascript:void(0)"}var wF={}.hasOwnProperty,EF=new Set(["table","thead","tbody","tfoot","tr"]);function _F(e,t){for(var n,r,o,a=[],i=-1;++i<t.children.length;)"element"===(n=t.children[i]).type?a.push(kF(e,n,i,t)):"text"===n.type?"element"===t.type&&EF.has(t.tagName)&&(o=void 0,"string"==typeof(o=(r=n)&&"object"===sF(r)&&"text"===r.type?r.value||"":r)&&""===o.replace(/[ \t\n\f\r]/g,""))||a.push(n.value):"raw"!==n.type||e.options.skipHtml||a.push(n.value);return a}function kF(e,t,n,r){var o,a=e.options,i=void 0===a.transformLinkUri?gF:a.transformLinkUri,l=e.schema,c=t.tagName,u={},f=l;if("html"===l.space&&"svg"===c&&(f=nF,e.schema=f),t.properties)for(o in t.properties)wF.call(t.properties,o)&&xF(u,o,t.properties[o],e);"ol"!==c&&"ul"!==c||e.listDepth++;var p=_F(e,t);"ol"!==c&&"ul"!==c||e.listDepth--,e.schema=l;var d,m=t.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},h=a.components&&wF.call(a.components,c)?a.components[c]:c,y="string"==typeof h||h===s.a.Fragment;if(!lF.a.isValidElementType(h))throw new TypeError("Component for name `".concat(c,"` not defined or is not renderable"));if(u.key=n,"a"===c&&a.linkTarget&&(u.target="function"==typeof a.linkTarget?a.linkTarget(String(u.href||""),t.children,"string"==typeof u.title?u.title:null):a.linkTarget),"a"===c&&i&&(u.href=i(String(u.href||""),t.children,"string"==typeof u.title?u.title:null)),y||"code"!==c||"element"!==r.type||"pre"===r.tagName||(u.inline=!0),y||"h1"!==c&&"h2"!==c&&"h3"!==c&&"h4"!==c&&"h5"!==c&&"h6"!==c||(u.level=Number.parseInt(c.charAt(1),10)),"img"===c&&a.transformImageUri&&(u.src=a.transformImageUri(String(u.src||""),String(u.alt||""),"string"==typeof u.title?u.title:null)),!y&&"li"===c&&"element"===r.type){var b=function(e){var t=-1;for(;++t<e.children.length;){var n=e.children[t];if("element"===n.type&&"input"===n.tagName)return n}return null}(t);u.checked=b&&b.properties?Boolean(b.properties.checked):null,u.index=OF(r,t),u.ordered="ol"===r.tagName}return y||"ol"!==c&&"ul"!==c||(u.ordered="ol"===c,u.depth=e.listDepth),"td"!==c&&"th"!==c||(u.align&&(u.style||(u.style={}),u.style.textAlign=u.align,delete u.align),y||(u.isHeader="th"===c)),y||"tr"!==c||"element"!==r.type||(u.isHeader=Boolean("thead"===r.tagName)),a.sourcePos&&(u["data-sourcepos"]=[(d=m).start.line,":",d.start.column,"-",d.end.line,":",d.end.column].map(String).join("")),!y&&a.rawSourcePos&&(u.sourcePosition=t.position),!y&&a.includeElementIndex&&(u.index=OF(r,t),u.siblingCount=OF(r)),y||(u.node=t),p.length>0?s.a.createElement(h,u,p):s.a.createElement(h,u)}function OF(e,t){for(var n=-1,r=0;++n<e.children.length&&e.children[n]!==t;)"element"===e.children[n].type&&r++;return r}function xF(e,t,n,r){var o,a,i,l=function(e,t){var n=_R(t),r=t,o=SR;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&cF.test(t)){if("-"===t.charAt(4)){var a=t.slice(5).replace(uF,dF);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{var i=t.slice(4);if(!uF.test(i)){var l=i.replace(fF,pF);"-"!==l.charAt(0)&&(l="-"+l),t="data"+l}}o=UR}return new o(r,t)}(r.schema,t),s=n;null!=s&&s==s&&(Array.isArray(s)&&(s=l.commaSeparated?(i=a||{},(""===(o=s)[o.length-1]?[].concat(hF(o),[""]):o).join((i.padRight?" ":"")+","+(!1===i.padLeft?"":" ")).trim()):function(e){return e.join(" ").trim()}(s)),"style"===l.property&&"string"==typeof s&&(s=function(e){var t={};try{bF(e,n)}catch(e){}return t;function n(e,n){var r="-ms-"===e.slice(0,4)?"ms-".concat(e.slice(4)):e;t[r.replace(/-([a-z])/g,SF)]=n}}(s)),l.space&&l.property?e[wF.call(mF,l.property)?mF[l.property]:l.property]=s:l.attribute&&(e[l.attribute]=s))}function SF(e,t){return t.toUpperCase()}function jF(e){return jF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jF(e)}function CF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function DF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CF(Object(n),!0).forEach((function(t){NF(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CF(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function NF(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==jF(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==jF(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===jF(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var PF={}.hasOwnProperty,TF="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",MF={plugins:{to:"remarkPlugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function AF(e){for(var t in MF)if(PF.call(MF,t)&&PF.call(e,t)){var n=MF[t];console.warn("[react-markdown] Warning: please ".concat(n.to?"use `".concat(n.to,"` instead of"):"remove"," `").concat(t,"` (see <").concat(TF,"#").concat(n.id,"> for more info)")),delete MF[t]}var r=rM().use(EL).use(e.remarkPlugins||[]).use(mR,DF(DF({},e.remarkRehypeOptions),{},{allowDangerousHtml:!0})).use(e.rehypePlugins||[]).use(aF,e),o=new FT;"string"==typeof e.children?o.value=e.children:void 0!==e.children&&null!==e.children&&console.warn("[react-markdown] Warning: please pass a string as `children` (not: `".concat(e.children,"`)"));var a=r.runSync(r.parse(o),o);if("root"!==a.type)throw new TypeError("Expected a `root` node");var i=s.a.createElement(s.a.Fragment,{},_F({options:e,schema:tF,listDepth:0},a));return e.className&&(i=s.a.createElement("div",{className:e.className},i)),i}function LF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function RF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?LF(Object(n),!0).forEach((function(t){FF(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LF(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function FF(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zF(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return BF(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return BF(e,t)}(e,t)||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 BF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}AF.propTypes={children:yR.a.string,className:yR.a.string,allowElement:yR.a.func,allowedElements:yR.a.arrayOf(yR.a.string),disallowedElements:yR.a.arrayOf(yR.a.string),unwrapDisallowed:yR.a.bool,remarkPlugins:yR.a.arrayOf(yR.a.oneOfType([yR.a.object,yR.a.func,yR.a.arrayOf(yR.a.oneOfType([yR.a.bool,yR.a.string,yR.a.object,yR.a.func,yR.a.arrayOf(yR.a.any)]))])),rehypePlugins:yR.a.arrayOf(yR.a.oneOfType([yR.a.object,yR.a.func,yR.a.arrayOf(yR.a.oneOfType([yR.a.bool,yR.a.string,yR.a.object,yR.a.func,yR.a.arrayOf(yR.a.any)]))])),sourcePos:yR.a.bool,rawSourcePos:yR.a.bool,skipHtml:yR.a.bool,includeElementIndex:yR.a.bool,transformLinkUri:yR.a.oneOfType([yR.a.func,yR.a.bool]),linkTarget:yR.a.oneOfType([yR.a.func,yR.a.string]),transformImageUri:yR.a.func,components:yR.a.object};var YF,IF,HF,UF,WF,VF,qF,GF=function(e){var t=e.summary,n=zF(Object(l.useState)({selected:null,formVisible:!1,text:""}),2),r=n[0],o=n[1],a=function(e){o(RF(RF({},r),{},{selected:e,formVisible:!0}))};return s.a.createElement("div",{className:"float-end flex-grow-1 text-end"},s.a.createElement("div",null,s.a.createElement("span",{className:"mx-2","data-balloon-pos":"up-left","data-balloon":"Feedback: Thumbs up",onClick:function(){return a("up")}},s.a.createElement("i",{className:"fa-thumbs-up fa-fw py-2 ".concat("up"===r.selected?"fas text--color-secondary":"far text--color-meta-dark")})),s.a.createElement("span",{className:"mx-2","data-balloon-pos":"up-left","data-balloon":"Feedback: Thumbs down",onClick:function(){return a("down")}},s.a.createElement("i",{className:"fa-thumbs-down fa-fw py-2 ".concat("down"===r.selected?"fas text--color-secondary":"far text--color-meta-dark")}))),r.formVisible&&s.a.createElement("div",{className:"float-end",style:{width:"260px"}},s.a.createElement("label",{className:"input--label d-block text-start",htmlFor:"feedback-textarea"},"down"===r.selected?"Why did you give this a thumbs down?":"Why did you give this a thumbs up?"),s.a.createElement("textarea",{id:"feedback-textarea",className:"d-block float-end",rows:3,style:{width:"100%"},value:r.text,onChange:function(e){o(RF(RF({},r),{},{text:e.target.value}))}}),s.a.createElement("div",{className:"btn-group mt-1",style:{width:"100%"}},s.a.createElement("button",{className:"btn btn-primary",onClick:function(){var e="/summarizations/".concat(t.id,"/feedback"),n={summary:{thumbs:r.selected,feedback:r.text}};et.a.post(e,n).then((function(e){o(RF(RF({},r),{},{formVisible:!1,text:""}))}))}},s.a.createElement("i",{className:"far fa-paper-plane fa-fw me-1"}),"Submit"),s.a.createElement("button",{className:"btn",onClick:function(){o({selected:null,formVisible:!1,text:""})}},s.a.createElement("i",{className:"far fa-times fa-fw me-1"}),"Cancel"))))},KF=Object(se.c)((function(e){var t=e.summary,n=e.title,r=e.regenerate,o=Ol.a.unix(t.created_at);return s.a.createElement("div",{className:"border-all-sidebar"},s.a.createElement("div",{className:"scrollbar--custom "},s.a.createElement("div",{className:"p-3 bgcolor--fc-glass d-flex border-bottom-sidebar"},s.a.createElement("div",{className:"mr-2"},s.a.createElement("h5",{className:"mb-0"},n),s.a.createElement("h3",{className:"text--size-800rem mb-0"},"Generated on ",o.format("MMM D [at] h:mm a"))),s.a.createElement("div",{className:"text-right flex-grow-1"})),s.a.createElement("div",{className:"modal--content font-family-roboto-mono scrollbar--custom"},s.a.createElement("div",{className:"text--size-1000rem"},s.a.createElement(AF,null,t.text))),s.a.createElement("div",{className:"p-3 bgcolor--fc-glass form-actions d-flex my-0 text-center border-top-sidebar"},s.a.createElement("div",{className:"float-start"},s.a.createElement(cT.a,{className:"btn btn-primary my-0 py-1","data-clipboard-text":t.text},s.a.createElement("span",null,s.a.createElement("i",{className:"fa fa-copy me-2"}),"Copy to clipboard")),s.a.createElement("button",{className:"btn mb-0 py-1",onClick:r},s.a.createElement("i",{className:"far fa-refresh fa-fw me-2"}),"Regenerate")),s.a.createElement(GF,{summary:t}))))}));function $F(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function JF(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function XF(e,t){return XF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},XF(e,t)}function QF(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ez(e);if(t){var o=ez(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ZF(e)}(this,n)}}function ZF(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ez(e){return ez=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ez(e)}function tz(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var nz,rz,oz,az,iz,lz,sz,cz=(YF=d.action.bound,IF=d.action.bound,Object(se.c)((UF=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&XF(e,t)}(a,e);var t,n,r,o=QF(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return $F(e=o.call.apply(o,[this].concat(n)),"lastOutput",WF,ZF(e)),$F(e,"fetching",VF,ZF(e)),$F(e,"saving",qF,ZF(e)),e}return t=a,(n=[{key:"onAfterOpen",value:function(){var e=this;(0,this.props.store.transportLayer.fetchLastAiOutput)("chapters").then(Object(d.action)((function(t){e.fetching=!1,e.lastOutput=t.data})))}},{key:"generateChapters",value:function(){var e=this;this.saving=!0,this.lastOutput=null;var t=this.props.store,n=t.user;t.transportLayer.generateSummary({subtype:"chapters"},Object(d.action)((function(t){e.lastOutput={id:t.id,created_at:t.created_at,text:t.text},n.updateSummarizationData(t),e.saving=!1})))}},{key:"renderButtons",value:function(){var e=this.props.store.uiState;return this.saving?s.a.createElement("div",{className:"my-5 pt-4"},s.a.createElement(Ne,null),s.a.createElement("p",{className:"mt-0 text--color-primary text--weight-700 text-center"},"Our AI is generating chapters.",s.a.createElement("br",null),"Please be patient—this may take a few minutes.")):s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("button",{className:"btn btn-primary t--generate-chapters-button",onClick:this.generateChapters},s.a.createElement("i",{className:"fas fa-book me-2"}),"Create chapters"),s.a.createElement("button",{className:"btn",onClick:e.hideAIChaptersModal},s.a.createElement("i",{className:"fa fa-times me-2"}),"Cancel"))}},{key:"renderModalContent",value:function(){return this.fetching?s.a.createElement("div",{className:"my-5 pt-4"},s.a.createElement(Ne,null)):this.lastOutput?s.a.createElement("div",{className:"row row-eq-height"},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement("div",{className:"h-100"},s.a.createElement(KF,{summary:this.lastOutput,title:"AI-generated chapters",regenerate:this.generateChapters})))):s.a.createElement("div",{className:"row row-eq-height justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10"},s.a.createElement("div",{className:"h-100"},s.a.createElement("div",{className:"app-image"},s.a.createElement("div",{className:"app-feature app-feature-ai-chapters img-fluid"},"Generate chapters")),s.a.createElement("p",null,"Transform your transcript into concise, engaging chapters with Sonix's advanced AI analysis. Get timestamped organization and clear summaries effortlessly."),this.renderButtons())))}},{key:"render",value:function(){var e=this.props,t=e.store,n=e.user,r=t.uiState;return s.a.createElement(ao,{modalClasses:ue()("smodal--content",{"smodal--content-md":!0}),modalTitle:"AI Analysis: Create Chapters",modalIcon:"far fa-book",modalFooter:s.a.createElement(eT,{store:t,user:n}),onAfterOpen:this.onAfterOpen,isOpen:r.modals.AIChapters,onRequestClose:r.hideAIChaptersModal},n.canUseAiAnalysis(t.duration)?this.renderModalContent():s.a.createElement(lT,{user:n}))}}])&&JF(t.prototype,n),r&&JF(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),WF=tz(UF.prototype,"lastOutput",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),VF=tz(UF.prototype,"fetching",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),qF=tz(UF.prototype,"saving",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),tz(UF.prototype,"onAfterOpen",[YF],Object.getOwnPropertyDescriptor(UF.prototype,"onAfterOpen"),UF.prototype),tz(UF.prototype,"generateChapters",[IF],Object.getOwnPropertyDescriptor(UF.prototype,"generateChapters"),UF.prototype),HF=UF))||HF),uz=cz;function fz(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function pz(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function dz(e,t){return dz=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dz(e,t)}function mz(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=yz(e);if(t){var o=yz(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return hz(e)}(this,n)}}function hz(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yz(e){return yz=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},yz(e)}function bz(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var vz,gz,wz,Ez,_z,kz,Oz,xz=(nz=d.action.bound,rz=d.action.bound,Object(se.c)((az=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dz(e,t)}(a,e);var t,n,r,o=mz(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return fz(e=o.call.apply(o,[this].concat(n)),"lastOutput",iz,hz(e)),fz(e,"fetching",lz,hz(e)),fz(e,"saving",sz,hz(e)),e}return t=a,(n=[{key:"onAfterOpen",value:function(){var e=this;(0,this.props.store.transportLayer.fetchLastAiOutput)("sentiment").then(Object(d.action)((function(t){e.fetching=!1,e.lastOutput=t.data})))}},{key:"generateSentiment",value:function(){var e=this;this.saving=!0,this.lastOutput=null;var t=this.props.store,n=t.user;t.transportLayer.generateSummary({subtype:"sentiment"},Object(d.action)((function(t){e.lastOutput={id:t.id,created_at:t.created_at,text:t.text},n.updateSummarizationData(t),e.saving=!1})))}},{key:"renderButtons",value:function(){var e=this.props.store.uiState;return this.saving?s.a.createElement("div",{className:"my-5 pt-4"},s.a.createElement(Ne,null),s.a.createElement("p",{className:"mt-0 text--color-primary text--weight-700 text-center"},"Our AI is analyzing your transcript.",s.a.createElement("br",null),"Please be patient—this may take a few minutes.")):s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("button",{className:"btn btn-primary t--generate-chapters-button",onClick:this.generateSentiment},s.a.createElement("i",{className:"fas fa-book me-2"}),"Perform Sentiment analysis"),s.a.createElement("button",{className:"btn",onClick:e.hideAISentimentModal},s.a.createElement("i",{className:"fa fa-times me-2"}),"Cancel"))}},{key:"renderModalContent",value:function(){return this.fetching?s.a.createElement("div",{className:"my-5 pt-4"},s.a.createElement(Ne,null)):this.lastOutput?s.a.createElement("div",{className:"row row-eq-height"},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement("div",{className:"h-100"},s.a.createElement(KF,{summary:this.lastOutput,title:"AI Sentiment Analysis",regenerate:this.generateSentiment})))):s.a.createElement("div",{className:"row row-eq-height justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10"},s.a.createElement("div",{className:"h-100"},s.a.createElement("div",{className:"app-image"},s.a.createElement("div",{className:"app-feature app-feature-ai-sentiment img-fluid"},"AI Sentiment analysis")),s.a.createElement("p",null,"Utilize Sonix's state-of-the-art AI to uncover the true emotions of your speakers within your transcript. We'll unveil the sentiments behind the words, offering a powerful and insightful glimpse into their feelings."),this.renderButtons())))}},{key:"render",value:function(){var e=this.props,t=e.store,n=e.user,r=t.uiState;return s.a.createElement(ao,{modalClasses:ue()("smodal--content",{"smodal--content-md":!0}),modalTitle:"AI Analysis: Sentiment analysis",modalIcon:"far fa-comment-smile",modalFooter:s.a.createElement(eT,{store:t,user:n}),isOpen:r.modals.AISentiment,onAfterOpen:this.onAfterOpen,onRequestClose:r.hideAISentimentModal},n.canUseAiAnalysis(t.duration)?this.renderModalContent():s.a.createElement(lT,{user:n}))}}])&&pz(t.prototype,n),r&&pz(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),iz=bz(az.prototype,"lastOutput",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),lz=bz(az.prototype,"fetching",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),sz=bz(az.prototype,"saving",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),bz(az.prototype,"onAfterOpen",[nz],Object.getOwnPropertyDescriptor(az.prototype,"onAfterOpen"),az.prototype),bz(az.prototype,"generateSentiment",[rz],Object.getOwnPropertyDescriptor(az.prototype,"generateSentiment"),az.prototype),oz=az))||oz),Sz=xz;function jz(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Cz(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Dz(e,t){return Dz=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Dz(e,t)}function Nz(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Tz(e);if(t){var o=Tz(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Pz(e)}(this,n)}}function Pz(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tz(e){return Tz=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Tz(e)}function Mz(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var Az,Lz,Rz,Fz,zz,Bz,Yz,Iz=(vz=d.action.bound,gz=d.action.bound,Object(se.c)((Ez=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dz(e,t)}(a,e);var t,n,r,o=Nz(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return jz(e=o.call.apply(o,[this].concat(n)),"lastOutput",_z,Pz(e)),jz(e,"fetching",kz,Pz(e)),jz(e,"saving",Oz,Pz(e)),e}return t=a,(n=[{key:"onAfterOpen",value:function(){var e=this;(0,this.props.store.transportLayer.fetchLastAiOutput)("thematic").then(Object(d.action)((function(t){e.fetching=!1,e.lastOutput=t.data})))}},{key:"generateThemes",value:function(){var e=this;this.saving=!0,this.lastOutput=null;var t=this.props.store,n=t.user;t.transportLayer.generateSummary({subtype:"thematic"},Object(d.action)((function(t){e.lastOutput={id:t.id,created_at:t.created_at,text:t.text},n.updateSummarizationData(t),e.saving=!1})))}},{key:"renderButtons",value:function(){var e=this.props.store.uiState;return this.saving?s.a.createElement("div",{className:"my-5 pt-4"},s.a.createElement(Ne,null),s.a.createElement("p",{className:"mt-0 text--color-primary text--weight-700 text-center"},"Our AI is analyzing your transcript for themes.",s.a.createElement("br",null),"Please be patient—this may take a few minutes.")):s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("button",{className:"btn btn-primary t--generate-chapters-button",onClick:this.generateThemes},s.a.createElement("i",{className:"fas fa-archway me-2"}),"Perform Thematic analysis"),s.a.createElement("button",{className:"btn",onClick:e.hideAIThemeModal},s.a.createElement("i",{className:"fa fa-times me-2"}),"Cancel"))}},{key:"renderModalContent",value:function(){return this.fetching?s.a.createElement("div",{className:"my-5 pt-4"},s.a.createElement(Ne,null)):this.lastOutput?s.a.createElement("div",{className:"row row-eq-height"},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement("div",{className:"h-100"},s.a.createElement(KF,{summary:this.lastOutput,title:"AI Thematic Analysis",regenerate:this.generateThemes})))):s.a.createElement("div",{className:"row row-eq-height justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10"},s.a.createElement("div",{className:"h-100"},s.a.createElement("div",{className:"app-image"},s.a.createElement("div",{className:"app-feature app-feature-ai-theme img-fluid"},"AI Thematic Analysis")),s.a.createElement("p",null,"Leverage Sonix's cutting-edge AI analysis to unveil the central themes expressed by the speakers. Our AI system will rigorously examine and reveal any dominant themes and patterns present in your transcript."),this.renderButtons())))}},{key:"render",value:function(){var e=this.props,t=e.store,n=e.user,r=t.uiState;return s.a.createElement(ao,{modalClasses:ue()("smodal--content",{"smodal--content-md":!0}),modalTitle:"AI Analysis: Thematic analysis",modalIcon:"far fa-archway",modalFooter:s.a.createElement(eT,{store:t,user:n}),isOpen:r.modals.AITheme,onAfterOpen:this.onAfterOpen,onRequestClose:r.hideAIThemeModal},n.canUseAiAnalysis(t.duration)?this.renderModalContent():s.a.createElement(lT,{user:n}))}}])&&Cz(t.prototype,n),r&&Cz(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),_z=Mz(Ez.prototype,"lastOutput",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),kz=Mz(Ez.prototype,"fetching",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Oz=Mz(Ez.prototype,"saving",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Mz(Ez.prototype,"onAfterOpen",[vz],Object.getOwnPropertyDescriptor(Ez.prototype,"onAfterOpen"),Ez.prototype),Mz(Ez.prototype,"generateThemes",[gz],Object.getOwnPropertyDescriptor(Ez.prototype,"generateThemes"),Ez.prototype),wz=Ez))||wz),Hz=Iz;function Uz(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Wz(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Vz(e,t){return Vz=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vz(e,t)}function qz(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Kz(e);if(t){var o=Kz(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Gz(e)}(this,n)}}function Gz(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kz(e){return Kz=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Kz(e)}function $z(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var Jz,Xz,Qz,Zz,eB,tB,nB,rB=(Az=d.action.bound,Lz=d.action.bound,Object(se.c)((Fz=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vz(e,t)}(a,e);var t,n,r,o=qz(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Uz(e=o.call.apply(o,[this].concat(n)),"lastOutput",zz,Gz(e)),Uz(e,"fetching",Bz,Gz(e)),Uz(e,"saving",Yz,Gz(e)),e}return t=a,(n=[{key:"onAfterOpen",value:function(){var e=this;(0,this.props.store.transportLayer.fetchLastAiOutput)("entity").then(Object(d.action)((function(t){e.fetching=!1,e.lastOutput=t.data})))}},{key:"generateEntities",value:function(){var e=this;this.saving=!0,this.lastOutput=null;var t=this.props.store,n=t.user;t.transportLayer.generateSummary({subtype:"entity"},Object(d.action)((function(t){e.lastOutput={id:t.id,created_at:t.created_at,text:t.text},n.updateSummarizationData(t),e.saving=!1})))}},{key:"renderButtons",value:function(){var e=this.props.store.uiState;return this.saving?s.a.createElement("div",{className:"my-5 pt-4"},s.a.createElement(Ne,null),s.a.createElement("p",{className:"mt-0 text--color-primary text--weight-700 text-center"},"Our AI is detecting entities in your transcript.",s.a.createElement("br",null),"Please be patient—this may take a few minutes.")):s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("button",{className:"btn btn-primary t--entity-detection-button",onClick:this.generateEntities},s.a.createElement("i",{className:"fas fa-archway me-2"}),"Perform entity detection"),s.a.createElement("button",{className:"btn",onClick:e.hideAIEntityDetectionModal},s.a.createElement("i",{className:"fa fa-times me-2"}),"Cancel"))}},{key:"renderModalContent",value:function(){return this.fetching?s.a.createElement("div",{className:"my-5 pt-4"},s.a.createElement(Ne,null)):this.lastOutput?s.a.createElement("div",{className:"row row-eq-height"},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement("div",{className:"h-100"},s.a.createElement(KF,{summary:this.lastOutput,title:"AI Entity Detection",regenerate:this.generateEntities})))):s.a.createElement("div",{className:"row row-eq-height justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10"},s.a.createElement("div",{className:"h-100"},s.a.createElement("div",{className:"app-image"},s.a.createElement("div",{className:"app-feature app-feature-ai-entity-detection img-fluid"},"AI Entity Detection")),s.a.createElement("p",null,"Gain valuable insights for better decision-making. Our advanced system quickly identifies and highlights people, places, and things in your transcript so you don't have to meticulously scroll through pages and pages of text."),this.renderButtons())))}},{key:"render",value:function(){var e=this.props,t=e.store,n=e.user,r=t.uiState;return s.a.createElement(ao,{modalClasses:ue()("smodal--content",{"smodal--content-md":!0}),modalTitle:"AI Analysis: Entity detection",modalIcon:"far fa-archway",modalFooter:s.a.createElement(eT,{store:t,user:n}),isOpen:r.modals.AIEntityDetection,onAfterOpen:this.onAfterOpen,onRequestClose:r.hideAIEntityDetectionModal},n.canUseAiAnalysis(t.duration)?this.renderModalContent():s.a.createElement(lT,{user:n}))}}])&&Wz(t.prototype,n),r&&Wz(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),zz=$z(Fz.prototype,"lastOutput",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Bz=$z(Fz.prototype,"fetching",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Yz=$z(Fz.prototype,"saving",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),$z(Fz.prototype,"onAfterOpen",[Az],Object.getOwnPropertyDescriptor(Fz.prototype,"onAfterOpen"),Fz.prototype),$z(Fz.prototype,"generateEntities",[Lz],Object.getOwnPropertyDescriptor(Fz.prototype,"generateEntities"),Fz.prototype),Rz=Fz))||Rz),oB=rB;function aB(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function iB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function lB(e,t){return lB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lB(e,t)}function sB(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=uB(e);if(t){var o=uB(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return cB(e)}(this,n)}}function cB(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uB(e){return uB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},uB(e)}function fB(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var pB,dB=(Jz=d.action.bound,Xz=d.action.bound,Object(se.c)((Zz=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lB(e,t)}(a,e);var t,n,r,o=sB(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return aB(e=o.call.apply(o,[this].concat(n)),"lastOutput",eB,cB(e)),aB(e,"fetching",tB,cB(e)),aB(e,"saving",nB,cB(e)),e}return t=a,(n=[{key:"onAfterOpen",value:function(){var e=this;(0,this.props.store.transportLayer.fetchLastAiOutput)("topic").then(Object(d.action)((function(t){e.fetching=!1,e.lastOutput=t.data})))}},{key:"generateTopics",value:function(){var e=this;this.saving=!0,this.lastOutput=null;var t=this.props.store,n=t.user;t.transportLayer.generateSummary({subtype:"topic"},Object(d.action)((function(t){e.lastOutput={id:t.id,created_at:t.created_at,text:t.text},n.updateSummarizationData(t),e.saving=!1})))}},{key:"renderButtons",value:function(){var e=this.props.store.uiState;return this.saving?s.a.createElement("div",{className:"my-5 pt-4"},s.a.createElement(Ne,null),s.a.createElement("p",{className:"mt-0 text--color-primary text--weight-700 text-center"},"Our AI is detecting topics in your transcript.",s.a.createElement("br",null),"Please be patient—this may take a few minutes.")):s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("button",{className:"btn btn-primary t--topic-detection-button",onClick:this.generateTopics},s.a.createElement("i",{className:"fas fa-archway me-2"}),"Perform topic detection"),s.a.createElement("button",{className:"btn",onClick:e.hideAITopicDetectionModal},s.a.createElement("i",{className:"fa fa-times me-2"}),"Cancel"))}},{key:"renderModalContent",value:function(){return this.fetching?s.a.createElement("div",{className:"my-5 pt-4"},s.a.createElement(Ne,null)):this.lastOutput?s.a.createElement("div",{className:"row row-eq-height"},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement("div",{className:"h-100"},s.a.createElement(KF,{summary:this.lastOutput,title:"AI Topic Detection",regenerate:this.generateTopics})))):s.a.createElement("div",{className:"row row-eq-height justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10"},s.a.createElement("div",{className:"h-100"},s.a.createElement("div",{className:"app-image"},s.a.createElement("div",{className:"app-feature app-feature-ai-topic-detection img-fluid"},"AI Topic Detection")),s.a.createElement("p",null,"Gain valuable insights for informed decision-making. Our innovative AI system meticulously analyzes your data, identifying and highlighting the most significant topics and subjects present in your transcript."),this.renderButtons())))}},{key:"render",value:function(){var e=this.props,t=e.store,n=e.user,r=t.uiState;return s.a.createElement(ao,{modalClasses:ue()("smodal--content",{"smodal--content-md":!0}),modalTitle:"AI Analysis: Topic detection",modalIcon:"far fa-archway",modalFooter:s.a.createElement(eT,{store:t,user:n}),isOpen:r.modals.AITopicDetection,onAfterOpen:this.onAfterOpen,onRequestClose:r.hideAITopicDetectionModal},n.canUseAiAnalysis(t.duration)?this.renderModalContent():s.a.createElement(lT,{user:n}))}}])&&iB(t.prototype,n),r&&iB(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),eB=fB(Zz.prototype,"lastOutput",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),tB=fB(Zz.prototype,"fetching",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),nB=fB(Zz.prototype,"saving",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),fB(Zz.prototype,"onAfterOpen",[Jz],Object.getOwnPropertyDescriptor(Zz.prototype,"onAfterOpen"),Zz.prototype),fB(Zz.prototype,"generateTopics",[Xz],Object.getOwnPropertyDescriptor(Zz.prototype,"generateTopics"),Zz.prototype),Qz=Zz))||Qz),mB=dB;function hB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function yB(e,t){return yB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yB(e,t)}function bB(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=vB(e);if(t){var o=vB(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function vB(e){return vB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vB(e)}var gB=Object(se.b)("store")(pB=Object(se.c)(pB=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yB(e,t)}(a,e);var t,n,r,o=bB(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.actionText,n=e.store,r=e.onCancel,o=n.forceSaveEditorState,a=n.hasInFlightRequests;return n.hasPendingSaves?s.a.createElement("div",{className:"alert alert-warning media mt-4"},s.a.createElement("i",{className:"far fa-2x fa-exclamation-triangle align-self-start me-3"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("h4",null,"Please save your transcript"),s.a.createElement("p",{className:"mb-3"},"You have some unsaved edits on your transcript. You'll need to save these changes before ",t,"."),s.a.createElement("button",{className:"btn btn-alert t--btn-save-transcript",onClick:o},s.a.createElement("i",{className:"fa fa-save me-2"}),"Save transcript"),s.a.createElement("button",{className:"btn btn-transparent",onClick:r},s.a.createElement("i",{className:"fa fa-times me-2"}),"Cancel"))):a?s.a.createElement(_o,{text:"Saving Transcript. Please wait."}):null}}])&&hB(t.prototype,n),r&&hB(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||pB)||pB,wB=gB;function EB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?EB(Object(n),!0).forEach((function(t){kB(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kB(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var OB,xB,SB,jB,CB,DB,NB={position:"relative",display:"block",justifyContent:"center",maxWidth:"480px",border:"1px solid #bec3c7",margin:"0 auto"},PB=function(e){var t=e.store,n=e.previewText,r=t.captionDisplay,o=Object(l.useCallback)((function(e){var t,n;null!==e&&(t=e,(n=document.querySelector("video"))||console.log("capturePreview error: video is undefined"),t||console.log("capturePreview error: canvas is undefined"),n&&t&&(t.width=n.videoWidth,t.height=n.videoHeight,t.getContext("2d").drawImage(n,0,0,n.videoWidth,n.videoHeight),t.toBlob=function(e){(new Image).src=window.URL.createObjectUrl(e)}))}),[]),a=_B({backgroundColor:r.backgroundColor},function(e){switch(e){case"1:1":return{width:480,height:480};case"9:16":return{width:270,height:480,margin:"0px auto"};case"16:9":return{width:480,height:270};case"5:4":return{width:480,height:384};case"4:5":return{width:480,height:600};default:return{width:480}}}(r.ratio)),i={backgroundColor:r.backgroundColor,objectFit:"fit"===r.exportPosition?"contain":"cover",height:"fit"===r.exportPosition?"":"100%",width:"fit"===r.exportPosition?"":"100%"},c=_B({objectFit:"fit"===r.exportPosition?"contain":"cover"},NB);return s.a.createElement("div",{className:"video-preview--wrapper mb-3 mb-lg-0"},s.a.createElement("div",{className:"video-preview--container",style:a},s.a.createElement(eb,{text:n,store:t}),s.a.createElement("div",{className:"video-preview--media",style:i},s.a.createElement("canvas",{ref:o,style:c}))))},TB=function(e){var t=e.store;return!t.user.isSubscribed||t.recording.compressed?t.recording.compressed?s.a.createElement("div",{className:"alert--compressed media alert p-3 my-3"},s.a.createElement("i",{className:"fad fa-2x fa-file-archive me-3 align-self-center"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("h1",null,"Compressed version"),s.a.createElement("p",{className:"mb-0"},"We will be using a compressed version of your file."))):s.a.createElement("div",{className:"alert--compressed media alert p-3 my-3"},s.a.createElement("i",{className:"fad fa-2x fa-file-archive me-3 align-self-center"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("h1",null,"Compressed version"),s.a.createElement("p",null,"We will use a compressed quality version of your file. Original quality exports are available for Premium and Enterprise customers. To use the original quality, ",s.a.createElement("a",{href:"/account/upgrade",target:"_blank",className:"link--new-window"},"please consider subscribing to Sonix.")))):null};function MB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function AB(e,t){return AB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},AB(e,t)}function LB(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=FB(e);if(t){var o=FB(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return RB(e)}(this,n)}}function RB(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FB(e){return FB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},FB(e)}function zB(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var BB,YB,IB,HB,UB,WB=function(e){var t=e.user,n=e.recording,r=t.isTrial?"You have ".concat(Object(we.c)(t.totalCredit)," remaining, but burn-in requires you to have ").concat(n.formattedDurationLong," more. Please upgrade."):"You have ".concat(Object(we.c)(t.totalCredit)," remaining. To continue with burn-in, you need to have ").concat(n.formattedDurationLong," more.");return s.a.createElement("div",{className:"alert alert-trial media"},s.a.createElement("i",{className:"far fa-fire fa-3x me-3 d-block align-self-center"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("h4",null,"You need additional time"),s.a.createElement("p",{className:"mb-3"},r),s.a.createElement("a",{className:"btn btn-alert mb-0",href:"/upgrade"},s.a.createElement("i",{className:"far fa-arrow-right me-2"}),t.isTrial?"Upgrade now":"Add more time")))},VB=(OB=Object(se.b)("store","user"),xB=d.action.bound,SB=d.action.bound,OB(jB=Object(se.c)((CB=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&AB(e,t)}(a,e);var t,n,r,o=LB(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(e=o.call.apply(o,[this].concat(n)),"saving",DB,RB(e)),e}return t=a,(n=[{key:"onAfterOpen",value:function(){Object(we.k)("app.subtitles.view_burnin_subtitles_modal")}},{key:"export",value:function(){var e=this,t=this.props,n=t.store,r=t.user,o={translated:n.transcript.translated,language:n.transcript.language};this.saving=!0,n.transportLayer.startBurnIn(o).then((function(t){e.saving=!1,Object(we.k)("app.subtitles.click_burnin_subtitles_create"),r.removeCredit(n.duration),n.uiState.hideBurnInSubtitlesModal(),window.open(t.data.url,"_blank")}))}},{key:"renderButtons",value:function(){var e=this.props.store,t=e.duration,n=e.transcript,r=e.uiState;return this.saving?s.a.createElement(_o,{text:"Starting burn-in process. Please wait."}):r.blockExportsToSave?s.a.createElement(wB,{onCancel:r.hideBurnInSubtitlesModal,actionText:"burning-in your subtitles"}):n.subtitled?t>36e3?s.a.createElement(ni,null,s.a.createElement("h4",null,"Too long for Burn-in feature"),s.a.createElement("p",{className:"mb-2"},"We are currently limiting burn in to files less than 5 hours. Please try burn-in with a shorter file. ",s.a.createElement(_O,{text:"Contact our support team with any questions.",subject:"Burned-in subtitles feedback | Over 4 hours"}))):s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("button",{className:"btn btn-primary t--timecode-realign-button",onClick:this.export},s.a.createElement("i",{className:"fa fa-video me-2"}),"Create burned-in video"),s.a.createElement("button",{className:"btn",onClick:r.hideBurnInSubtitlesModal},s.a.createElement("i",{className:"fa fa-times me-2"}),"Cancel")):s.a.createElement("div",{className:"media alert alert-warning"},s.a.createElement("i",{className:"far fa-exclamation-triangle fa-3x me-3 d-block align-self-center"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("h4",null,"Please split your transcript"),s.a.createElement("p",{className:"mb-2"},"We highly suggest that you split your transcript into subtitles before burning-in your subtitles. Please choose",s.a.createElement("span",{className:"badge badge-glass mx-1"},s.a.createElement("i",{className:"far fa-line-columns fa-fw me-2"})," Split transcript"),"from the Subtitles menu.")))}},{key:"renderChargeSection",value:function(){var e=this.props,t=e.store,n=e.user,r=t.burnInCost,o=t.recording;return n.isSubscribed&&!n.payByCheck?s.a.createElement("div",null,s.a.createElement("h4",{className:"mt-4"},s.a.createElement("i",{className:"far fa-film me-2 fa-fw"}),"Verify preview"),s.a.createElement("p",null,"If the preview isn't what you want, close this modal and go to Subtitles > Customize Subtitles to fine tune the look and feel of your subtitles."),s.a.createElement("h4",{className:"mt-4"},s.a.createElement("i",{className:"far fa-file-invoice-dollar me-2 fa-fw"}),"Additional charge"),s.a.createElement("table",{className:"table table--border table--row-hover table--header-sm table--padding-lg mb-4"},s.a.createElement("tbody",{className:"table--text-size"},s.a.createElement("tr",null,s.a.createElement("td",null,"Burn-in rate (per recorded hour)"),s.a.createElement("td",null,"$5 / hr")),s.a.createElement("tr",null,s.a.createElement("td",null,"File duration"),s.a.createElement("td",null,o.formattedDuration)),s.a.createElement("tr",{className:"text--weight-700 bgcolor--sidebar"},s.a.createElement("td",null,"Burn-in charge"),s.a.createElement("td",null,r))))):n.hasCreditFor(t.duration)?s.a.createElement("div",{className:"media"},s.a.createElement("i",{className:"far fa-file-invoice-dollar fa-2x me-3 fa-fw align-self-center"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("h4",null,"Burn-in uses additional minutes"),s.a.createElement("p",{className:"mb-0"},"You have ",Object(we.c)(n.totalCredit)," remaining. If you burn in your subtitles, we will deduct ",o.formattedDurationLong,"."))):s.a.createElement(WB,{user:n,recording:o})}},{key:"renderContent",value:function(){var e=this.props.store;return s.a.createElement("div",{className:"d-flex flex-column flex-lg-row"},s.a.createElement(PB,{store:e,previewText:"(Preview)\nThis is how your subtitles will appear.\nPlease confirm before continuing."}),s.a.createElement("div",{className:"flex-lg-grow-1 px-lg-3"},s.a.createElement("p",null,"Sonix will hardcode the subtitles directly into the video. This ensures the video will look the same no matter how it's played."),this.renderChargeSection(),this.renderButtons(),s.a.createElement(TB,{store:e})))}},{key:"render",value:function(){var e=this.props.store.uiState;return s.a.createElement(ao,{modalClasses:"smodal--content smodal--content-lg smodal--minheight-md",modalTitle:"Burn-in Subtitles",modalIcon:"far fa-fire",onEnter:this.save,isOpen:e.modals.BurnInSubtitles,onRequestClose:e.hideBurnInSubtitlesModal},e.modals.BurnInSubtitles&&this.renderContent())}}])&&MB(t.prototype,n),r&&MB(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),DB=zB(CB.prototype,"saving",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),zB(CB.prototype,"onAfterOpen",[xB],Object.getOwnPropertyDescriptor(CB.prototype,"onAfterOpen"),CB.prototype),zB(CB.prototype,"export",[SB],Object.getOwnPropertyDescriptor(CB.prototype,"export"),CB.prototype),jB=CB))||jB)||jB),qB=VB;function GB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function KB(e,t){return KB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},KB(e,t)}function $B(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=XB(e);if(t){var o=XB(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return JB(e)}(this,n)}}function JB(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XB(e){return XB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},XB(e)}function QB(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var ZB,eY,tY,nY,rY,oY,aY,iY,lY,sY,cY,uY,fY,pY,dY,mY=(BB=d.action.bound,YB=d.action.bound,Object(se.c)((HB=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&KB(e,t)}(a,e);var t,n,r,o=$B(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(e=o.call.apply(o,[this].concat(n)),"showCopied",UB,JB(e)),e.pushClickCopyAnalytics=function(){var t=e.props,n=t.analyticsEventName,r=t.shareLink;Object(we.k)(n,r)},e}return t=a,(n=[{key:"handleCopied",value:function(){var e=this;this.showCopied=!0,setTimeout((function(){e.showCopied=!1}),1300)}},{key:"selectAll",value:function(e){e.target.select()}},{key:"render",value:function(){var e=this.props,t=e.shareLink,n=e.shareLabel;return s.a.createElement("div",{className:"meta-shared position--relative"},s.a.createElement("div",{className:"form-group mb-1"},n&&s.a.createElement("label",{htmlFor:"link-share",className:"input--label"},s.a.createElement("i",{className:"far fa-globe me-2"}),n),s.a.createElement("div",{className:"input-group position--relative shadow--box-sm"},s.a.createElement("input",{ref:"textCopy",type:"text",id:"link-share",className:"form-control",value:t,onClick:this.selectAll,readOnly:!0,"aria-describedby":"sizing-addon1"}),s.a.createElement("span",{className:"input-group-addon",id:"sizing-addon1"},s.a.createElement(cT.a,{className:"btn btn-primary mb-0 t--transcript-modal-btn-share-copylink","data-clipboard-text":t,onClick:this.pushClickCopyAnalytics,onSuccess:this.handleCopied},this.renderCopyButtonText())))))}},{key:"renderCopyButtonText",value:function(){return this.showCopied?s.a.createElement("span",null,s.a.createElement("i",{className:"fas fa-copy fa-fw me-1"}),"Copied"):s.a.createElement("span",null,s.a.createElement("i",{className:"far fa-copy fa-fw me-1"}),"Copy to clipboard")}}])&&GB(t.prototype,n),r&&GB(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),UB=QB(HB.prototype,"showCopied",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),QB(HB.prototype,"handleCopied",[BB],Object.getOwnPropertyDescriptor(HB.prototype,"handleCopied"),HB.prototype),QB(HB.prototype,"selectAll",[YB],Object.getOwnPropertyDescriptor(HB.prototype,"selectAll"),HB.prototype),IB=HB))||IB),hY=mY,yY=n(498),bY=n.n(yY);function vY(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function gY(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}function wY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EY(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function _Y(e,t,n){return t&&EY(e.prototype,t),n&&EY(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function kY(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&OY(e,t)}function OY(e,t){return OY=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},OY(e,t)}function xY(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=jY(e);if(t){var o=jY(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return SY(e)}(this,n)}}function SY(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jY(e){return jY=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},jY(e)}var CY,DY,NY,PY,TY,MY=Object(se.c)(ZB=function(e){kY(n,e);var t=xY(n);function n(){return wY(this,n),t.apply(this,arguments)}return _Y(n,[{key:"renderClipsList",value:function(){var e=this.props,t=e.currentClip,n=e.setClip,r=e.store.clips;return 0==r.length?s.a.createElement("li",{className:"list-group-item list-group-item-action d-flex align-items-center media active"},s.a.createElement("i",{className:"fas fa-fw fa-ban fa-lg align-self-start me-3"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("strong",null,"No clips exist"),s.a.createElement("div",{className:"d-flex justify-content-between text--size-800rem"},s.a.createElement("span",null,"After you create your first clip, you can see them all here")))):r.map((function(e){var r=Ol.a.unix(e.created_at),o=e.id===t.id;return s.a.createElement("li",{key:e.id,onClick:function(){return n(e)},className:ue()("list-group-item list-group-item-action","d-flex align-items-center","media",{active:o})},e.video?s.a.createElement("i",{className:"fas fa-fw fa-video fa-lg align-self-start me-3"}):s.a.createElement("i",{className:"fas fa-fw fa-volume fa-lg align-self-start me-3"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("strong",null,e.name),s.a.createElement("div",{className:"d-flex justify-content-between mt-1 text--size-800rem"},s.a.createElement("span",null,s.a.createElement("i",{className:"far fa-fw fa-calendar me-1"}),r.format("MMM D, YYYY [at] h:mm a")),s.a.createElement("span",null,s.a.createElement("i",{className:"far fa-fw fa-stopwatch me-1"}),Object(we.d)(e.duration)))))}))}},{key:"renderLoadingAnimation",value:function(){return s.a.createElement("div",{className:"my-5 pt-4"},s.a.createElement(Ne,null))}},{key:"render",value:function(){var e=this.props.fetching;return s.a.createElement("div",{className:"height--100"},s.a.createElement("h4",{className:"px-2 py-2 mb-0"},"Clips"),s.a.createElement("ul",{className:"list-group modal--list scrollbar--custom"},e?this.renderLoadingAnimation():this.renderClipsList()))}}]),n}(s.a.Component))||ZB,AY=Object(se.c)((function(e){var t=e.clip,n=e.deleteClip,r=e.updateClipName,o=Ol.a.unix(t.created_at);return s.a.createElement("div",{className:"border-all-sidebar"},s.a.createElement("div",{className:"bgcolor--sidebar border-bottom-sidebar d-flex justify-content-between px-3 py-2 media text--color-sidebar-text"},t.video?s.a.createElement("i",{className:"fas fa-fw fa-video fa-lg align-self-start me-3"}):s.a.createElement("i",{className:"fas fa-fw fa-volume fa-lg align-self-start me-3"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("strong",{className:"d-block"},t.name),s.a.createElement("div",{className:"d-flex justify-content-between mt-1 text--size-800rem"},s.a.createElement("span",null,s.a.createElement("i",{className:"far fa-fw fa-calendar me-1"}),o.format("MMM D, YYYY [at] h:mm a")),s.a.createElement("span",null,s.a.createElement("i",{className:"far fa-fw fa-clock me-1"}),Object(we.f)(t.from)," - ",Object(we.f)(t.to)," ",s.a.createElement("i",{className:"far fa-fw fa-stopwatch me-1"}),Object(we.d)(t.duration))))),s.a.createElement("div",{className:"modal--content scrollbar--custom"},s.a.createElement("div",{className:"media mb-4"},s.a.createElement("i",{className:"fas fa-fw fa-share-alt fa-lg align-self-start me-3 text--color-meta-light"}),s.a.createElement("div",{className:"media-body"},s.a.createElement(hY,{shareLink:t.share_link,shareLabel:"",analyticsEventName:"app.editor.share_click_copy"}),s.a.createElement("div",{className:"mt-3"},s.a.createElement("a",{className:"btn btn-primary",href:t.share_link,target:"_blank",onClick:function(){return Object(we.k)("app.clips.clips_click_preview",t.share_link)}},s.a.createElement("i",{className:"far fa-external-link-alt me-2"}),"Preview clip in new tab"),s.a.createElement("a",{className:"btn",href:t.download_url,download:"filename",target:"_self",onClick:function(){return Object(we.k)("app.clips.clips_click_download",t.download_url)}},s.a.createElement("i",{className:"fa fa-download me-2"}),"Download File")))),s.a.createElement("div",{className:"media mb-3"},s.a.createElement("i",{className:"fas fa-fw fa-text-size fa-lg align-self-start me-3 text--color-meta-light"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("p",{className:"font-family-roboto-mono"},t.transcript),!t.isEditingName&&s.a.createElement("p",null,s.a.createElement("span",{className:"link link--hover-underline link-- color me-3",onClick:function(){return t.isEditingName=!0}},s.a.createElement("i",{className:"far fa-fw fa-pencil me-2"}),"Rename clip"),s.a.createElement("a",{className:"link link--hover-underline link--red",onClick:n,"data-confirm":"Are you sure that you want to delete this clip?"},s.a.createElement("i",{className:"far fa-fw fa-trash me-2"}),"Delete clip")),t.isEditingName&&s.a.createElement(LY,{clip:t,updateClipName:r})))))})),LY=(eY=d.action.bound,tY=d.action.bound,Object(se.c)((rY=function(e){kY(n,e);var t=xY(n);function n(){var e;wY(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return vY(e=t.call.apply(t,[this].concat(o)),"saving",oY,SY(e)),vY(e,"newClipName",aY,SY(e)),e}return _Y(n,[{key:"componentDidMount",value:function(){this.props.clip&&(this.newClipName=this.props.clip.name)}},{key:"setNewClipName",value:function(e){this.newClipName=e.target.value}},{key:"saveClipName",value:function(){var e=this,t=this.props.updateClipName;this.saving=!0,t(this.newClipName).then((function(){return e.saving=!1}))}},{key:"render",value:function(){var e=this.props.clip;return s.a.createElement("div",{className:"p-3 bgcolor--sidebar border-all-sidebar"},s.a.createElement("div",{className:"form-group"},s.a.createElement("label",{className:"input--label text--color-sidebar-text",htmlFor:"clip-name"},s.a.createElement("i",{className:"far fa-tag me-2 text--color-sidebar-text"}),"Clip name"),s.a.createElement("input",{autoFocus:!0,onChange:this.setNewClipName,value:this.newClipName,className:"form-control"})),!this.saving&&s.a.createElement("div",{className:"form-actions"},s.a.createElement("a",{className:"btn btn-primary",onClick:this.saveClipName},s.a.createElement("i",{className:"far fa-fw fa-check me-2"}),"Save"),s.a.createElement("a",{className:"btn ",onClick:function(){return e.isEditingName=!1}},s.a.createElement("i",{className:"far fa-fw fa-times me-2"}),"Cancel")),this.saving&&s.a.createElement("div",{className:"form-actions"},s.a.createElement("button",{className:"btn btn-primary",disabled:!0},s.a.createElement("i",{className:"far fa-fw fa-check me-2"}),"Saving...")))}}]),n}(s.a.Component),oY=gY(rY.prototype,"saving",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),aY=gY(rY.prototype,"newClipName",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),gY(rY.prototype,"setNewClipName",[eY],Object.getOwnPropertyDescriptor(rY.prototype,"setNewClipName"),rY.prototype),gY(rY.prototype,"saveClipName",[tY],Object.getOwnPropertyDescriptor(rY.prototype,"saveClipName"),rY.prototype),nY=rY))||nY),RY=Object(se.c)((function(e){var t=e.clip,n=e.fetching,r=e.deleteClip,o=e.updateClipName;return n||t?t?s.a.createElement(AY,{clip:t,deleteClip:r,updateClipName:o}):s.a.createElement("div",{className:"modal--content scrollbar--custom font-family-roboto-mono"},s.a.createElement("div",{className:"my-5 pt-4"},s.a.createElement(Ne,null),s.a.createElement("p",{className:"mt-0 text--color-primary text--weight-700 text-center"},"Loading clips..."))):s.a.createElement("div",{className:"border-all-sidebar"},s.a.createElement("div",{className:"bgcolor--sidebar border-bottom-sidebar d-flex justify-content-between px-3 py-2 media text--color-sidebar-text"},s.a.createElement("i",{className:"fas fa-fw fa-cut fa-lg align-self-start me-3"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("strong",{className:"d-block"},"How to create a clip"),s.a.createElement("div",{className:"d-flex justify-content-between text--size-800rem"},s.a.createElement("span",null,"Highlight the text that you want to share, then select the scissors icon to create a clip")))),s.a.createElement("div",{className:"modal--content scrollbar--custom"},s.a.createElement("img",{className:"img-fluid",src:bY.a})))})),FY=(iY=d.action.bound,lY=d.action.bound,sY=d.action.bound,cY=d.action.bound,Object(se.c)((fY=function(e){kY(n,e);var t=xY(n);function n(){var e;wY(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return vY(e=t.call.apply(t,[this].concat(o)),"fetching",pY,SY(e)),vY(e,"currentClip",dY,SY(e)),e}return _Y(n,[{key:"onAfterOpen",value:function(){var e=this;this.fetching=!0,this.currentClip=null,(0,this.props.store.fetchClips)().then(Object(d.action)((function(){var t=e.props.store.clips;e.setClip(t&&t[0]),e.fetching=!1})))}},{key:"setClip",value:function(e){e&&(Object(d.extendObservable)(e,{isEditingName:!1}),this.currentClip=e)}},{key:"updateClipName",value:function(e){var t=this.props.store.transportLayer,n=this.currentClip;return t.updateClipName(n.id,e).then(Object(d.action)((function(){n.isEditingName=!1,n.name=e})))}},{key:"deleteClip",value:function(){var e=this,t=this.props.store.transportLayer,n=this.currentClip;this.fetching=!0,this.currentClip=null,t.deleteClip(n.id).then((function(){e.onAfterOpen()}))}},{key:"render",value:function(){var e=this.props.store,t=e.uiState;return s.a.createElement(ao,{modalClasses:"smodal--content smodal--content-full",modalTitle:"Clips created",modalIcon:"far fa-cut",onAfterOpen:this.onAfterOpen,isOpen:t.modals.Clips,onRequestClose:t.hideClipsModal},s.a.createElement("div",{className:"row row-eq-height"},s.a.createElement("div",{className:"col-sm-4"},s.a.createElement(MY,{store:e,fetching:this.fetching,currentClip:this.currentClip,setClip:this.setClip})),s.a.createElement("div",{className:"col-sm-8"},s.a.createElement("div",{className:"height--100"},s.a.createElement("h4",{className:"px-2 py-2 mb-0"},"Clip Details"),s.a.createElement("div",{className:"border-all-sidebar"},s.a.createElement(RY,{clip:this.currentClip,fetching:this.fetching,updateClipName:this.updateClipName,deleteClip:this.deleteClip}))))))}}]),n}(s.a.Component),pY=gY(fY.prototype,"fetching",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),dY=gY(fY.prototype,"currentClip",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),gY(fY.prototype,"onAfterOpen",[iY],Object.getOwnPropertyDescriptor(fY.prototype,"onAfterOpen"),fY.prototype),gY(fY.prototype,"setClip",[lY],Object.getOwnPropertyDescriptor(fY.prototype,"setClip"),fY.prototype),gY(fY.prototype,"updateClipName",[sY],Object.getOwnPropertyDescriptor(fY.prototype,"updateClipName"),fY.prototype),gY(fY.prototype,"deleteClip",[cY],Object.getOwnPropertyDescriptor(fY.prototype,"deleteClip"),fY.prototype),uY=fY))||uY),zY=FY,BY=n(550);function YY(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function IY(e,t){return IY=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},IY(e,t)}function HY(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=WY(e);if(t){var o=WY(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return UY(e)}(this,n)}}function UY(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WY(e){return WY=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},WY(e)}function VY(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var qY,GY={position:"absolute",zIndex:"2040",left:"120%",top:"-300%",boxShadow:"0 1px 3px 1px rgba(0,0,0,.15), 0 3px 14px 1px rgba(50,50,93,.3)"},KY={position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"},$Y={"top-left-triangle":{triangle:{borderBottomColor:"#eaf4fb"}},default:{card:{background:"#eaf4fb"}}},JY=(CY=d.action.bound,DY=d.action.bound,Object(se.c)((PY=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&IY(e,t)}(a,e);var t,n,r,o=HY(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(e=o.call.apply(o,[this].concat(n)),"displayPicker",TY,UY(e)),e}return t=a,(n=[{key:"showPicker",value:function(){this.displayPicker=!0}},{key:"hidePicker",value:function(){this.displayPicker=!1}},{key:"render",value:function(){var e=this.props,t=e.color,n=e.disableAlpha,r=e.onChange,o={color:t};return s.a.createElement("div",{className:"position-relative"},s.a.createElement("button",{className:ue()("btn btn-color-picker",{"btn-color-picker-active":this.displayPicker}),style:o,onClick:this.showPicker},s.a.createElement("i",{className:"fas fa-square fa-fw"})),this.displayPicker?s.a.createElement("div",{style:GY},s.a.createElement("div",{style:KY,onClick:this.hidePicker}),s.a.createElement(BY.SketchPicker,{width:"276px",backgroundColor:"#F7F7FB",disableAlpha:n,styles:$Y,presetColors:["#FFFFFF","#000000","#FFFF00","#00FFFF","#0000FF","#00FF00","#FF0000","#FF00FF","#FEDE00","#2E8BC0","#145DA0"],color:t,triangle:"top-left",onChange:r})):null)}}])&&YY(t.prototype,n),r&&YY(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),TY=VY(PY.prototype,"displayPicker",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),VY(PY.prototype,"showPicker",[CY],Object.getOwnPropertyDescriptor(PY.prototype,"showPicker"),PY.prototype),VY(PY.prototype,"hidePicker",[DY],Object.getOwnPropertyDescriptor(PY.prototype,"hidePicker"),PY.prototype),NY=PY))||NY),XY=JY,QY=n(29),ZY=n(196),eI=["children"];function tI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function nI(e,t){return nI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nI(e,t)}function rI(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=oI(e);if(t){var o=oI(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function oI(e){return oI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oI(e)}function aI(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var iI,lI,sI,cI,uI,fI,pI=function(e){return s.a.createElement(QY.z.Placeholder,e)},dI=function(e){return s.a.createElement(QY.z.Option,e,s.a.createElement("span",{style:{fontFamily:e.data.fontFamily}},e.data.value))},mI=function(e){var t=e.children,n=aI(e,eI);return s.a.createElement(QY.z.SingleValue,n,s.a.createElement("span",{style:{fontFamily:n.data.fontFamily}},t))},hI=Object(se.c)(qY=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nI(e,t)}(a,e);var t,n,r,o=rI(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.disabled,n=e.onChange,r=e.value,o=e.className,a=Iy.FONTS.map((function(e){return{value:e.value,label:e.label,fontFamily:e.fontFamily}}));return s.a.createElement("div",{className:ue()("form-group ",o)},s.a.createElement(ZY.a,{className:"w-100",classNamePrefix:"btn-select",isDisabled:t,value:{value:r,label:r},onChange:n,components:{Option:dI,Placeholder:pI,SingleValue:mI},placeholder:"Please select font",options:a}))}}])&&tI(t.prototype,n),r&&tI(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||qY,yI=hI;function bI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function vI(e,t){return vI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vI(e,t)}function gI(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=EI(e);if(t){var o=EI(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return wI(e)}(this,n)}}function wI(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function EI(e){return EI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},EI(e)}function _I(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var kI,OI,xI,SI,jI=(iI=Object(se.b)("store"),lI=d.action.bound,sI=d.action.bound,iI(cI=Object(se.c)((uI=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vI(e,t)}(a,e);var t,n,r,o=gI(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(e=o.call.apply(o,[this].concat(n)),"saving",fI,wI(e)),e}return t=a,(n=[{key:"onAfterOpen",value:function(){Object(we.k)("app.subtitles.view_customize_subtitles_modal")}},{key:"onSave",value:function(){var e=this.props.store,t=e.captionDisplay,n=e.uiState;Object(we.k)("app.subtitles.click_customize_subtitles"),t.save(),n.hideCustomizeSubtitlesModal()}},{key:"render",value:function(){var e=this.props.store,t=e.captionDisplay,n=e.uiState.modals;return s.a.createElement(ao,{modalClasses:"smodal--content smodal--content-lg smodal--minheight-md",isOpen:n.CustomizeSubtitles,onRequestClose:this.onSave,modalTitle:"Customize subtitles",onAfterOpen:this.onAfterOpen,modalIcon:"far fa-edit"},s.a.createElement("div",{className:"customize-subtitles"},s.a.createElement(PB,{store:this.props.store,previewText:"This is how your captions will look.\nCustomize size and style."}),s.a.createElement("div",{className:"customize-settings"},s.a.createElement("label",{className:"input--label text--color-meta-dark mb-2"},"Subtitle text"),s.a.createElement("div",{className:"btn-toolbar btn-toolbar-full btn-toolbar-justify mb-2"},s.a.createElement("div",{className:"btn-group flex-fill"},s.a.createElement(yI,{className:"mb-0 w-100",value:t.font,onChange:t.setFont})),s.a.createElement("div",{className:"btn-group"},s.a.createElement("select",{value:t.fontSize,onChange:t.setFontSize},[10,12,14,16,18,20,22,24,26,28,32,36,40,42].map((function(e){return s.a.createElement("option",{key:e,value:e},e)})))),s.a.createElement("div",{className:"btn-group"},s.a.createElement("span",{onClick:t.toggleBold,className:ue()("btn px-2",{"btn-sidebar":t.bold})},s.a.createElement("i",{className:"fas fa-bold fa-fw"})),s.a.createElement("span",{onClick:t.toggleItalic,className:ue()("btn px-2",{"btn-sidebar":t.italic})},s.a.createElement("i",{className:"far fa-italic fa-fw"})))),s.a.createElement("div",{className:"btn-toolbar btn-toolbar-full btn-toolbar-justify mb-3"},s.a.createElement("div",{className:"btn-group"},s.a.createElement(XY,{color:t.fontColor,onChange:t.setFontColor})),s.a.createElement("div",{className:"btn-group"},s.a.createElement("span",{className:ue()("btn",{"btn-sidebar":"left"===t.hAlign}),onClick:t.setHAlignLeft},s.a.createElement("i",{className:"far fa-align-left fa-fw"})),s.a.createElement("span",{className:ue()("btn",{"btn-sidebar":"center"===t.hAlign}),onClick:t.setHAlignCenter},s.a.createElement("i",{className:"fas fa-align-center fa-fw"})),s.a.createElement("span",{className:ue()("btn",{"btn-sidebar":"right"===t.hAlign}),onClick:t.setHAlignRight},s.a.createElement("i",{className:"far fa-align-right fa-fw"}))),s.a.createElement("div",{className:"btn-group flex-fill"},s.a.createElement("select",{className:"form-select d-flex flex-fill",value:t.vAlign,onChange:t.setVAlign},s.a.createElement("option",{value:"finetune"},"Fine tune vertical alignment"),s.a.createElement("option",{value:"top"},"Align top"),s.a.createElement("option",{value:"middle"},"Align middle"),s.a.createElement("option",{value:"bottom"},"Align bottom")))),t.fineTuneVAlignment&&s.a.createElement("div",{className:"d-block bgcolor--sidebar p-3 mb-3"},s.a.createElement("label",{className:"input--label text--color-secondary mb-2"},"Fine tune vertical alignment"),s.a.createElement("div",{className:"btn-toolbar btn-toolbar-full btn-toolbar-justify"},s.a.createElement("div",{className:"btn-group flex-fill"},s.a.createElement("div",{className:"range-slider mt-0"},s.a.createElement("input",{id:"srt-time-length",className:"range-slider__range",type:"range",onChange:t.setVHeightPercentage,value:t.vHeightPercentage,min:"0",max:"100",step:"5"}),s.a.createElement("span",{className:"range-slider__value"},t.vHeightPercentage,"%"))))),s.a.createElement("label",{className:"input--label text--color-meta-dark mb-2"},"Subtitle background"),s.a.createElement("div",{className:"btn-toolbar btn-toolbar-full btn-toolbar-justify mb-3"},s.a.createElement("div",{className:"btn-group"},s.a.createElement(XY,{color:t.borderColor,onChange:t.setBorderColor})),s.a.createElement("div",{className:"btn-group flex-fill"},s.a.createElement("span",{className:ue()("btn btn-sm",{"btn-sidebar":"none"===t.borderStyle}),onClick:t.setBorderStyleNone},s.a.createElement("i",{className:"fas fa-ban fa-fw"})," None"),s.a.createElement("span",{className:ue()("btn btn-sm",{"btn-sidebar":"outline"===t.borderStyle}),onClick:t.setBorderStyleOutline},s.a.createElement("i",{className:"far fa-text fa-fw"})," Outline"),s.a.createElement("span",{className:ue()("btn btn-sm",{"btn-sidebar":"wrap"===t.borderStyle}),onClick:t.setBorderStyleWrap},s.a.createElement("i",{className:"far fa-border-outer fa-fw"})," Wrap"),s.a.createElement("span",{className:ue()("btn btn-sm",{"btn-sidebar":"full"===t.borderStyle}),onClick:t.setBorderStyleFull},s.a.createElement("i",{className:"far fa-expand-wide fa-fw"})," Full"))),s.a.createElement("label",{className:"input--label text--color-meta-dark mb-2"},"Video settings"),s.a.createElement("div",{className:"btn-toolbar btn-toolbar-full btn-toolbar-justify mb-3"},s.a.createElement("div",{className:"btn-group"},s.a.createElement(XY,{color:t.backgroundColor,disableAlpha:!0,onChange:t.setBackgroundColor})),s.a.createElement("div",{className:"btn-group flex-fill"},s.a.createElement("select",{className:"form-select d-flex",value:t.ratio,onChange:t.setRatio},s.a.createElement("option",{value:"original"},"Original video size"),s.a.createElement("option",{value:"1:1"},"Square (1:1)"),s.a.createElement("option",{value:"9:16"},"Story (9:16)"),s.a.createElement("option",{value:"16:9"},"Landscape (16:9)"),s.a.createElement("option",{value:"5:4"},"Twitter (5:4)"),s.a.createElement("option",{value:"4:5"},"Facebook (4:5)"))),s.a.createElement("div",{className:"btn-group flex-fill"},s.a.createElement("select",{className:"form-select d-flex",value:t.exportPosition,onChange:t.setExportPosition},s.a.createElement("option",{value:"fit"},"Fit everything"),s.a.createElement("option",{value:"fill"},"Zoom and fill")))),s.a.createElement("div",{className:"form-actions mt-2"},s.a.createElement("button",{className:"btn btn-block btn-primary",onClick:this.onSave},s.a.createElement("i",{className:"fa fa-check me-2"}),"Save customizations")))))}}])&&bI(t.prototype,n),r&&bI(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),fI=_I(uI.prototype,"saving",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_I(uI.prototype,"onAfterOpen",[lI],Object.getOwnPropertyDescriptor(uI.prototype,"onAfterOpen"),uI.prototype),_I(uI.prototype,"onSave",[sI],Object.getOwnPropertyDescriptor(uI.prototype,"onSave"),uI.prototype),cI=uI))||cI)||cI),CI=jI;function DI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function NI(e,t){return NI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},NI(e,t)}function PI(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=MI(e);if(t){var o=MI(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return TI(e)}(this,n)}}function TI(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MI(e){return MI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},MI(e)}function AI(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var LI,RI,FI,zI,BI,YI,II,HI,UI=(kI=d.action.bound,Object(se.c)((xI=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&NI(e,t)}(a,e);var t,n,r,o=PI(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(e=o.call.apply(o,[this].concat(n)),"saving",SI,TI(e)),e}return t=a,(n=[{key:"save",value:function(){var e=this;this.saving=!0;var t=this.props.store,n=t.transportLayer,r=t.uiState;n.saveName(this.refs.nameInput.value).then((function(){r.hideFileNameModal(),e.saving=!1}))}},{key:"renderButtons",value:function(){var e=this.props.store.uiState;return this.saving?s.a.createElement(_o,{text:"Updating name. One moment."}):s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("button",{className:"btn btn-primary",onClick:this.save},s.a.createElement("i",{className:"fa fa-check me-2"}),"Save"),s.a.createElement("button",{className:"btn",onClick:e.hideFileNameModal},s.a.createElement("i",{className:"fa fa-times me-2"}),"Cancel"))}},{key:"renderNameForm",value:function(){var e=this.props.store.recording;return s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10 mb-2"},s.a.createElement("div",{className:"form-group"},s.a.createElement("label",{htmlFor:"nameInput",className:"input--label"},"Rename file"),s.a.createElement("input",{autoFocus:!0,id:"nameInput",ref:"nameInput",defaultValue:e.name,className:"form-control"})),this.renderButtons()))}},{key:"render",value:function(){var e=this.props.store.uiState;return s.a.createElement(ao,{modalClasses:"smodal--content smodal--content-sm",modalTitle:"Rename file",modalIcon:"far fa-terminal",isOpen:e.modals.FileName,onEnter:this.save,onRequestClose:e.hideFileNameModal},this.renderNameForm())}}])&&DI(t.prototype,n),r&&DI(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),SI=AI(xI.prototype,"saving",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),AI(xI.prototype,"save",[kI],Object.getOwnPropertyDescriptor(xI.prototype,"save"),xI.prototype),OI=xI))||OI),WI=UI;function VI(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function qI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function GI(e,t){return GI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},GI(e,t)}function KI(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=JI(e);if(t){var o=JI(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return $I(e)}(this,n)}}function $I(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JI(e){return JI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},JI(e)}function XI(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var QI,ZI,eH,tH,nH,rH=(LI=Object(se.b)("store","user"),RI=d.action.bound,FI=d.action.bound,zI=d.action.bound,LI(BI=Object(se.c)((YI=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&GI(e,t)}(a,e);var t,n,r,o=KI(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return VI(e=o.call.apply(o,[this].concat(n)),"saving",II,$I(e)),VI(e,"preferences",HI,$I(e)),e}return t=a,(n=[{key:"save",value:function(){var e=this,t=this.props,n=t.user,r=t.store;this.saving=!0,n.savePreferences(this.preferences).then((function(){e.saving=!1,r.transcript.setPaginated(n.preferences.paginate_transcripts),r.uiState.hideEditorPreferencesModal()}))}},{key:"onAfterOpen",value:function(){this.preferences=Object.assign({},this.preferences,this.props.user.preferences),Object(we.k)("app.statusbar.view_preferences_modal")}},{key:"togglePreference",value:function(e){this.preferences[e]=!this.preferences[e]}},{key:"renderModalButtons",value:function(){var e=this.props.store.uiState;return this.saving?s.a.createElement(_o,{text:"Saving Preferences. Please wait."}):s.a.createElement("div",{className:"modal--actions"},s.a.createElement("button",{className:"btn btn-primary mb-0",onClick:this.save},s.a.createElement("i",{className:"far fa-fw me-2 fa-check"}),"Save preferences"),s.a.createElement("button",{className:"btn mb-0",onClick:e.hideEditorPreferencesModal},s.a.createElement("i",{className:"far fa-fw me-2 fa-times"}),"Cancel"))}},{key:"renderModalContents",value:function(){var e=this;return this.props.user,s.a.createElement("div",{className:"container-fluid"},s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-6"},s.a.createElement("h4",{className:"mb-2 text--color"},s.a.createElement("i",{className:"fas fa-window-alt fa-fw me-2"}),s.a.createElement("span",{className:"text--weight-700"},"Interface")),s.a.createElement("ul",{className:"list-group mb-4"},s.a.createElement("li",{className:"list-group-item align-items-center"},s.a.createElement("label",{className:"media mb-0"},s.a.createElement("label",{className:"align-self-start me-3 label-switch switch-primary"},s.a.createElement("input",{className:"switch-square switch-bootstrap status",checked:this.preferences.click_to_skip,onChange:function(){return e.togglePreference("click_to_skip")},type:"checkbox"}),s.a.createElement("span",{className:"lable"})),s.a.createElement("div",{className:ue()("media-body",{"text--color-primary":this.preferences.click_to_skip})},s.a.createElement("div",{className:"mb-0 media"},s.a.createElement("i",{className:ue()("fa-step-forward fa-lg fa-fw me-2",{far:!this.preferences.click_to_skip},{fas:this.preferences.click_to_skip})}),s.a.createElement("p",{className:"mb-0 media-body"},s.a.createElement("strong",null,"Click to skip: "),"When a word is clicked, the audio/video will jump to that section of the file."))))),s.a.createElement("li",{className:"list-group-item align-items-center"},s.a.createElement("label",{className:"media mb-0"},s.a.createElement("label",{className:"align-self-start me-3 label-switch switch-primary"},s.a.createElement("input",{className:"switch-square switch-bootstrap status",checked:this.preferences.action_bubble,onChange:function(){return e.togglePreference("action_bubble")},type:"checkbox"}),s.a.createElement("span",{className:"lable"})),s.a.createElement("div",{className:ue()("media-body",{"text--color-primary":this.preferences.action_bubble})},s.a.createElement("div",{className:"mb-0 media"},s.a.createElement("i",{className:ue()("fa-comment-alt fa-lg fa-fw me-2",{far:!this.preferences.action_bubble},{fas:this.preferences.action_bubble})}),s.a.createElement("p",{className:"mb-0 media-body"},s.a.createElement("strong",null,"Show action bubble: "),"When words are selected, the action bubble appears to make common actions more accessible."))))),s.a.createElement("li",{className:"list-group-item align-items-center"},s.a.createElement("label",{className:"media mb-0"},s.a.createElement("label",{className:"align-self-start me-3 label-switch switch-primary"},s.a.createElement("input",{className:"switch-square switch-bootstrap status",checked:this.preferences.auto_save,onChange:function(){return e.togglePreference("auto_save")},type:"checkbox"}),s.a.createElement("span",{className:"lable"})),s.a.createElement("div",{className:ue()("media-body",{"text--color-primary":this.preferences.auto_save})},s.a.createElement("div",{className:"mb-0 media"},s.a.createElement("i",{className:ue()("fa-save fa-lg fa-fw me-2",{far:!this.preferences.auto_save},{fas:this.preferences.auto_save})}),s.a.createElement("p",{className:"mb-0 media-body"},s.a.createElement("strong",null,"Auto Save Transcript: "),"Auto save every change.  If turned off, saves will need to be manually triggered from the File menu."))))),s.a.createElement("li",{className:"list-group-item align-items-center"},s.a.createElement("label",{className:"media mb-0"},s.a.createElement("label",{className:"align-self-start me-3 label-switch switch-primary"},s.a.createElement("input",{className:"switch-square switch-bootstrap status",checked:this.preferences.high_contrast,onChange:function(){return e.togglePreference("high_contrast")},type:"checkbox"}),s.a.createElement("span",{className:"lable"})),s.a.createElement("div",{className:ue()("media-body",{"text--color-primary":this.preferences.high_contrast})},s.a.createElement("div",{className:"mb-0 media"},s.a.createElement("i",{className:ue()("fa-adjust fa-lg fa-fw me-2",{far:!this.preferences.high_contrast},{fas:this.preferences.high_contrast})}),s.a.createElement("p",{className:"mb-0 media-body"},s.a.createElement("strong",null,"Higher contrast: "),"Editor font is darker and current word is more obvious.")))))),s.a.createElement("h4",{className:"mb-2 text--color"},s.a.createElement("i",{className:"fas fa-copy fa-fw me-2"}),s.a.createElement("span",{className:"text--weight-700"},"Copy text to clipboard")),s.a.createElement("ul",{className:"list-group mb-3"},s.a.createElement("li",{className:"list-group-item align-items-center"},s.a.createElement("label",{className:"media mb-0"},s.a.createElement("label",{className:"align-self-start me-3 label-switch switch-primary"},s.a.createElement("input",{className:"switch-square switch-bootstrap status",checked:this.preferences.include_filename_on_copy,onChange:function(){return e.togglePreference("include_filename_on_copy")},type:"checkbox"}),s.a.createElement("span",{className:"lable"})),s.a.createElement("div",{className:ue()("media-body",{"text--color-primary":this.preferences.include_filename_on_copy})},s.a.createElement("div",{className:"mb-0 media"},s.a.createElement("i",{className:ue()("fa-file fa-lg fa-fw me-2",{far:!this.preferences.include_filename_on_copy},{fas:this.preferences.include_filename_on_copy})}),s.a.createElement("p",{className:"mb-0 media-body"},s.a.createElement("strong",null,"Include filename: "),"When you copy text, the filename will be included before the selected text."))))),s.a.createElement("li",{className:"list-group-item align-items-center"},s.a.createElement("label",{className:"media mb-0"},s.a.createElement("label",{className:"align-self-start me-3 label-switch switch-primary"},s.a.createElement("input",{className:"switch-square switch-bootstrap status",checked:this.preferences.include_timestamps_on_copy,onChange:function(){return e.togglePreference("include_timestamps_on_copy")},type:"checkbox"}),s.a.createElement("span",{className:"lable"})),s.a.createElement("div",{className:ue()("media-body",{"text--color-primary":this.preferences.include_timestamps_on_copy})},s.a.createElement("div",{className:"mb-0 media"},s.a.createElement("i",{className:ue()("fa-clock fa-lg fa-fw me-2",{far:!this.preferences.include_timestamps_on_copy},{fas:this.preferences.include_timestamps_on_copy})}),s.a.createElement("p",{className:"mb-0 media-body"},s.a.createElement("strong",null,"Include timestamps: "),"When you copy text, the timestamp [hh:mm:ss] will be included before the selected text."))))),s.a.createElement("li",{className:"list-group-item align-items-center"},s.a.createElement("label",{className:"media mb-0"},s.a.createElement("label",{className:"align-self-start me-3 label-switch switch-primary"},s.a.createElement("input",{className:"switch-square switch-bootstrap status",checked:this.preferences.include_speaker_name_on_copy,onChange:function(){return e.togglePreference("include_speaker_name_on_copy")},type:"checkbox"}),s.a.createElement("span",{className:"lable"})),s.a.createElement("div",{className:ue()("media-body",{"text--color-primary":this.preferences.include_speaker_name_on_copy})},s.a.createElement("div",{className:"mb-0 media"},s.a.createElement("i",{className:ue()("fa-align-left fa-lg fa-fw me-2",{far:!this.preferences.include_speaker_name_on_copy},{fas:this.preferences.include_speaker_name_on_copy})}),s.a.createElement("p",{className:"mb-0 media-body"},s.a.createElement("strong",null,"Include speaker name: "),"When you copy text, the speaker name will be included before the selected text."))))))),s.a.createElement("div",{className:"col-sm-12 col-md-6"},s.a.createElement("h4",{className:"mb-2 text--color"},s.a.createElement("i",{className:"fas fa-pencil fa-fw me-2"}),s.a.createElement("span",{className:"text--weight-700"},"Editing")),s.a.createElement("ul",{className:"list-group mb-4"},s.a.createElement("li",{className:"list-group-item align-items-center"},s.a.createElement("label",{className:"media mb-0"},s.a.createElement("label",{className:"align-self-start me-3 label-switch switch-primary"},s.a.createElement("input",{className:"switch-square switch-bootstrap status",checked:this.preferences.auto_pause,onChange:function(){return e.togglePreference("auto_pause")},type:"checkbox"}),s.a.createElement("span",{className:"lable"})),s.a.createElement("div",{className:ue()("media-body",{"text--color-primary":this.preferences.auto_pause})},s.a.createElement("div",{className:"mb-0 media"},s.a.createElement("i",{className:ue()("fa-pause fa-lg fa-fw me-2",{far:!this.preferences.auto_pause},{fas:this.preferences.auto_pause})}),s.a.createElement("p",{className:"mb-0 media-body"},s.a.createElement("strong",null,"Auto-pause when typing: "),"The audio/video will automatically pause when when you start typing or editing a word."))))),s.a.createElement("li",{className:"list-group-item align-items-center"},s.a.createElement("label",{className:"media mb-0"},s.a.createElement("label",{className:"align-self-start me-3 label-switch switch-primary"},s.a.createElement("input",{className:"switch-square switch-bootstrap status",checked:this.preferences.auto_capitalize,onChange:function(){return e.togglePreference("auto_capitalize")},type:"checkbox"}),s.a.createElement("span",{className:"lable"})),s.a.createElement("div",{className:ue()("media-body",{"text--color-primary":this.preferences.auto_capitalize})},s.a.createElement("div",{className:"mb-0 media"},s.a.createElement("i",{className:ue()("fa-text-size fa-lg fa-fw me-2",{far:!this.preferences.auto_capitalize},{fas:this.preferences.auto_capitalize})}),s.a.createElement("p",{className:"mb-0 media-body"},s.a.createElement("strong",null,"Smart capitalization: "),"If you end a sentence with a period (",s.a.createElement("code",null,"."),"), question mark (",s.a.createElement("code",null,"?"),"), or exclamation point (",s.a.createElement("code",null,"!"),"), we will automatically capitalize the next word. If punctuation is removed, the next word will be uncapitalized."))))),s.a.createElement("li",{className:"list-group-item align-items-center"},s.a.createElement("label",{className:"media mb-0"},s.a.createElement("label",{className:"align-self-start me-3 label-switch switch-primary"},s.a.createElement("input",{className:"switch-square switch-bootstrap status",checked:this.preferences.smart_paragraphs,onChange:function(){return e.togglePreference("smart_paragraphs")},type:"checkbox"}),s.a.createElement("span",{className:"lable"})),s.a.createElement("div",{className:ue()("media-body",{"text--color-primary":this.preferences.smart_paragraphs})},s.a.createElement("div",{className:"mb-0 media"},s.a.createElement("i",{className:ue()("fa-paragraph fa-lg fa-fw me-2",{far:!this.preferences.smart_paragraphs},{fas:this.preferences.smart_paragraphs})}),s.a.createElement("p",{className:"mb-0 media-body"},s.a.createElement("strong",null,"Smart paragraph splitting: "),"Automatically end the first paragraph with a period and capitalize the first word of the next paragraph."))))),s.a.createElement("li",{className:"list-group-item align-items-center"},s.a.createElement("label",{className:"media mb-0"},s.a.createElement("label",{className:"align-self-start me-3 label-switch switch-primary"},s.a.createElement("input",{className:"switch-square switch-bootstrap status",checked:this.preferences.highlight_invalid_timestamps,onChange:function(){return e.togglePreference("highlight_invalid_timestamps")},type:"checkbox"}),s.a.createElement("span",{className:"lable"})),s.a.createElement("div",{className:ue()("media-body",{"text--color-primary":this.preferences.highlight_invalid_timestamps})},s.a.createElement("div",{className:"mb-0 media"},s.a.createElement("i",{className:ue()("fa-alarm-exclamation fa-lg fa-fw me-2",{far:!this.preferences.highlight_invalid_timestamps},{fas:this.preferences.highlight_invalid_timestamps})}),s.a.createElement("p",{className:"mb-0 media-body"},s.a.createElement("strong",null,"Invalid timestamps: "),"Show a timestamp error if a subtitle's duration is less than 1 second or overlapping."))))),s.a.createElement("li",{className:"list-group-item align-items-center"},s.a.createElement("label",{className:"media mb-0"},s.a.createElement("label",{className:"align-self-start me-3 label-switch switch-primary"},s.a.createElement("input",{className:"switch-square switch-bootstrap status",checked:this.preferences.paginate_transcripts,onChange:function(){return e.togglePreference("paginate_transcripts")},type:"checkbox"}),s.a.createElement("span",{className:"lable"})),s.a.createElement("div",{className:ue()("media-body",{"text--color-primary":this.preferences.paginate_transcripts})},s.a.createElement("div",{className:"mb-0 media"},s.a.createElement("i",{className:ue()("fa-file-dashed-line fa-lg fa-fw me-2",{far:!this.preferences.paginate_transcripts},{fas:this.preferences.paginate_transcripts})}),s.a.createElement("p",{className:"mb-0 media-body"},s.a.createElement("strong",null,"Paginate transcript: "),"Split your transcript into small 10 minute chunks. Better performance for longer files."))))),s.a.createElement("li",{className:"list-group-item align-items-center"},s.a.createElement("label",{className:"media mb-0"},s.a.createElement("label",{className:"align-self-start me-3 label-switch switch-primary"},s.a.createElement("input",{className:"switch-square switch-bootstrap status",checked:this.preferences.alert_for_large_pastes,onChange:function(){return e.togglePreference("alert_for_large_pastes")},type:"checkbox"}),s.a.createElement("span",{className:"lable"})),s.a.createElement("div",{className:ue()("media-body",{"text--color-primary":this.preferences.alert_for_large_pastes})},s.a.createElement("div",{className:"mb-0 media"},s.a.createElement("i",{className:ue()("fa-triangle-exclamation fa-lg fa-fw me-2",{far:!this.preferences.alert_for_large_pastes},{fas:this.preferences.alert_for_large_pastes})}),s.a.createElement("p",{className:"mb-0 media-body"},s.a.createElement("strong",null,"Paste alert: "),"Show an alert when a large block of text is pasted into Sonix. Inserting large blocks of text may remove timestamp information.")))))))),s.a.createElement("div",{className:"col-sm-12 mt-3 text-center"},this.renderModalButtons()))}},{key:"render",value:function(){var e=this.props.store.uiState,t=e.modals;return s.a.createElement(ao,{modalClasses:"smodal--content smodal--content-lg",onEnter:e.hideEditorPreferencesModal,isOpen:t.EditorPreferences,onRequestClose:e.hideEditorPreferencesModal,onAfterOpen:this.onAfterOpen,modalTitle:"Personalize the Sonix editor",modalIcon:"far fa-cog"},this.renderModalContents())}}])&&qI(t.prototype,n),r&&qI(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),II=XI(YI.prototype,"saving",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),HI=XI(YI.prototype,"preferences",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Pn.defaultPreferences}}),XI(YI.prototype,"save",[RI],Object.getOwnPropertyDescriptor(YI.prototype,"save"),YI.prototype),XI(YI.prototype,"onAfterOpen",[FI],Object.getOwnPropertyDescriptor(YI.prototype,"onAfterOpen"),YI.prototype),XI(YI.prototype,"togglePreference",[zI],Object.getOwnPropertyDescriptor(YI.prototype,"togglePreference"),YI.prototype),BI=YI))||BI)||BI),oH=rH;function aH(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function iH(e,t){return iH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},iH(e,t)}function lH(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=cH(e);if(t){var o=cH(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return sH(e)}(this,n)}}function sH(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cH(e){return cH=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},cH(e)}function uH(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var fH,pH,dH,mH,hH,yH,bH,vH,gH,wH,EH,_H,kH,OH,xH,SH,jH=(QI=d.action.bound,ZI=d.action.bound,Object(se.c)((tH=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&iH(e,t)}(a,e);var t,n,r,o=lH(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(e=o.call.apply(o,[this].concat(n)),"showCopied",nH,sH(e)),e}return t=a,(n=[{key:"handleCopied",value:function(){var e=this;this.showCopied=!0,this.props.onCopy&&this.props.onCopy(),setTimeout((function(){e.showCopied=!1}),1300)}},{key:"selectAll",value:function(e){e.target.select()}},{key:"render",value:function(){var e=this.props.embedCode;return s.a.createElement("div",{className:"meta-shared position--relative mt-3"},s.a.createElement("div",{className:"form-group mb-1"},s.a.createElement("div",{className:"input-group position--relative shadow--box-sm"},s.a.createElement("textarea",{rows:3,className:"form-control text--size-800rem",readOnly:!0,onClick:this.selectAll,value:e})),s.a.createElement(cT.a,{className:"btn btn-primary mb-0 btn-block t--transcript-modal-btn-embed","data-clipboard-text":e,onSuccess:this.handleCopied},this.renderCopyButtonText())))}},{key:"renderCopyButtonText",value:function(){return this.showCopied?s.a.createElement("span",null,s.a.createElement("i",{className:"fas fa-copy fa-fw me-1"}),"Copied"):s.a.createElement("span",null,s.a.createElement("i",{className:"far fa-copy fa-fw me-1"}),"Copy embed code to clipboard")}}])&&aH(t.prototype,n),r&&aH(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),nH=uH(tH.prototype,"showCopied",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),uH(tH.prototype,"handleCopied",[QI],Object.getOwnPropertyDescriptor(tH.prototype,"handleCopied"),tH.prototype),uH(tH.prototype,"selectAll",[ZI],Object.getOwnPropertyDescriptor(tH.prototype,"selectAll"),tH.prototype),eH=tH))||eH),CH=jH;function DH(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function NH(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function PH(e,t){return PH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},PH(e,t)}function TH(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=AH(e);if(t){var o=AH(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return MH(e)}(this,n)}}function MH(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AH(e){return AH=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},AH(e)}function LH(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var RH,FH=function(e){var t=e.store,n=Object(we.i)(t.recording.language);return t.transcript.translated&&(n=Object(we.i)(t.transcript.language)),s.a.createElement("span",null,"Embed your transcript: ",n.language,n.flag.split(",").map((function(e,t){return s.a.createElement("i",{key:"selected-flag-"+t,className:"flag-icon mx-1 flag-icon-"+e})})))},zH=function(){return s.a.createElement("div",{className:"smodal--help"},s.a.createElement("p",{className:"mb-0"},s.a.createElement("strong",{className:"d-block d-lg-inline-block me-lg-2"},"Need a little help?"),s.a.createElement("a",{href:"https://sonix.ai/how-to-capture-great-audio",target:"_blank",className:"link--underline link--new-window"},"See a live example")," • ",s.a.createElement("a",{href:"https://sonix.ai/seo-friendly-media-player",target:"_blank",className:"link--underline link--new-window"},"More about the media player")))},BH=(fH=Object(se.b)("store","user"),pH=d.action.bound,dH=d.action.bound,mH=d.action.bound,hH=d.action.bound,yH=d.action.bound,bH=d.action.bound,vH=d.action.bound,gH=d.action.bound,wH=d.action.bound,EH=d.action.bound,_H=d.action.bound,fH(kH=Object(se.c)((OH=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&PH(e,t)}(a,e);var t,n,r,o=TH(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return DH(e=o.call.apply(o,[this].concat(n)),"embedCode",xH,MH(e)),DH(e,"editingHostPath",SH,MH(e)),e}return t=a,(n=[{key:"onModalClose",value:function(){this.props.store.uiState.hideEmbedModal()}},{key:"fetchEmbedCode",value:function(e){var t=this,n=this.props.store,r=n.transcript,o=n.transportLayer,a=r.translated&&r.language;this.embedCode="Loading embed code...",o.getEmbedCode(e,a).then((function(e){return t.embedCode=e.data}))}},{key:"toggleShowVideo",value:function(){var e=this.props.store;e.toggleShowEmbedVideo(),this.fetchEmbedCode({show_embed_video:e.showEmbedVideo})}},{key:"toggleShowNotes",value:function(){var e=this.props.store;e.toggleShowEmbedNotes(),this.fetchEmbedCode({show_embed_notes:e.showEmbedNotes})}},{key:"toggleShowTranslations",value:function(){var e=this.props.store;e.toggleShowEmbedTranslations(),this.fetchEmbedCode({show_embed_translations:e.showEmbedTranslations})}},{key:"toggleAllowDownload",value:function(){var e=this.props.store;e.toggleAllowEmbedDownload(),this.fetchEmbedCode({allow_embed_download:e.allowEmbedDownload})}},{key:"toggleAllowShare",value:function(){var e=this.props.store;e.toggleAllowEmbedShare(),this.fetchEmbedCode({allow_embed_share:e.allowEmbedShare})}},{key:"toggleExternalHost",value:function(){var e=this.props.store;e.toggleUseExternalHost(),e.useExternalHost?this.initiateEditingHostPath():this.fetchEmbedCode({use_external_host:e.useExternalHost})}},{key:"setDefaultEmbedTab",value:function(e){var t=this.props.store;t.setDefaultEmbedTab(e.target.value),this.fetchEmbedCode({default_embed_tab:t.defaultEmbedTab})}},{key:"initiateEditingHostPath",value:function(){this.editingHostPath=!0,this.embedCode="Please save the URL to the externally hosted mp3 file..."}},{key:"saveExternalHost",value:function(){var e=this.props.store;this.editingHostPath=!1,this.fetchEmbedCode({use_external_host:e.useExternalHost,external_host_path:e.externalHostPath})}},{key:"renderDefaultTabInput",value:function(){var e=this.props.store;return s.a.createElement("div",{className:"mt-2 mb-4 switch-extra"},s.a.createElement("div",{className:"form-group"},s.a.createElement("label",{className:"input--label d-block",htmlFor:"external-host-url"},"Initial tab shown to users"),s.a.createElement("select",{className:"form-select",value:e.defaultEmbedTab||"transcript",onChange:this.setDefaultEmbedTab},s.a.createElement("option",{value:"transcript"},"Transcript"),s.a.createElement("option",{value:"notes"},"Notes"))))}},{key:"renderHostFileInput",value:function(){var e=this.props.store,t=e.useExternalHost,n=e.externalHostPath,r=e.updateExternalHostPath;return t?this.editingHostPath?s.a.createElement("div",{className:"mt-2 mb-4 switch-extra"},s.a.createElement("label",{className:"input--label d-block",htmlFor:"external-host-url"},s.a.createElement("span",{className:"text--weight-700"},"What is the URL of the externally hosted mp3 file?"),s.a.createElement("br",null),"We only accept mp3 files, please no other file formats. ",s.a.createElement("a",{href:"https://help.sonix.ai/en/articles/1997029-can-i-point-the-sonix-media-player-at-another-host",className:"link--underline",target:"_blank"},"Learn more")),s.a.createElement("div",{className:"input-group position--relative shadow--box-sm"},s.a.createElement("input",{type:"text",className:"form-control",style:{height:"auto"},value:n||"",onChange:r,placeholder:"http://example.com/audio.mp3"}),s.a.createElement("span",{className:"input-group-addon",id:"sizing-addon1"},s.a.createElement("a",{className:"btn btn-primary mb-0 px-2",onClick:this.saveExternalHost},s.a.createElement("span",{className:"px-2"},s.a.createElement("i",{className:"far fa-check fa-fw me-2"}),"Save"))))):s.a.createElement("div",{className:"mt-2 mb-4 switch-extra"},s.a.createElement("label",{className:"input--label d-block",htmlFor:"external-host-url"},s.a.createElement("span",{className:"text--weight-700"},"URL of externally hosted mp3 file")),s.a.createElement("div",{className:"input-group position--relative shadow--box-sm"},s.a.createElement("input",{type:"text",className:"form-control",value:n||"",disabled:!0}),s.a.createElement("span",{className:"input-group-addon",id:"sizing-addon1"},s.a.createElement("a",{className:"btn btn-primary mb-0 px-2",onClick:this.initiateEditingHostPath},s.a.createElement("span",{className:"px-2"},s.a.createElement("i",{className:"far fa-pencil fa-fw me-2"}),"Edit"))))):null}},{key:"renderMediaPlayerSettingsSelections",value:function(){var e=this.props.store,t=e.canShare,n=e.isVideo,r=e.showEmbedNotes,o=e.showEmbedVideo,a=e.showEmbedTranslations,i=e.allowEmbedDownload,l=e.allowEmbedShare,c=e.useExternalHost;if(t)return s.a.createElement("div",{className:"embed--options mt-4"},s.a.createElement("h4",{className:"mb-2"},s.a.createElement("i",{className:"far fa-cog fa-fw me-2"}),"Advanced settings"),s.a.createElement("div",{className:"embed--options-all"},n&&s.a.createElement("div",{className:"embed--options-video"},s.a.createElement(Au,{label:"Show video in Media Player",onChange:this.toggleShowVideo,checked:o})),s.a.createElement(Au,{label:"Show available translations",onChange:this.toggleShowTranslations,checked:a}),s.a.createElement(Au,{label:"Download tab: viewers can download media",onChange:this.toggleAllowDownload,checked:i}),s.a.createElement(Au,{label:"Share tab: viewers can share",onChange:this.toggleAllowShare,checked:l}),s.a.createElement(Au,{label:"Notes tab: table of contents",onChange:this.toggleShowNotes,checked:r}),r&&this.renderDefaultTabInput()),!n&&s.a.createElement("div",{className:"embed--options-audio"},s.a.createElement(Au,{label:"External host for audio file (mp3)",onChange:this.toggleExternalHost,checked:c}),this.renderHostFileInput()))}},{key:"renderModalContents",value:function(){var e=this.props.user,t=this.props.store.transportLayer;return s.a.createElement("div",null,s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10"},s.a.createElement("h4",null,s.a.createElement("i",{className:"far fa-play fa-fw me-2"}),"Sonix Media Player™ on your website"),s.a.createElement("p",null,"Copy the embed code from the box below. Then, paste the code into your blog or website's HTML. ",s.a.createElement("a",{href:"https://sonix.ai/how-to-capture-great-audio",target:"_blank",className:"link--underline link--new-window"},"Live example"),e.isCustomer&&e.teamAccount&&s.a.createElement("span",null," • ",s.a.createElement("a",{href:"/analytics",target:"_blank",className:"link--underline link--new-window"},"Analytics"))),s.a.createElement(CH,{embedCode:this.embedCode,onCopy:t.trackCopiedEmbedCode}),this.renderMediaPlayerSettingsSelections())))}},{key:"render",value:function(){var e=this.props.store,t=this.props.store.uiState.modals;return s.a.createElement(ao,{modalClasses:"smodal--content smodal--content-sm",onAfterOpen:this.fetchEmbedCode,onEnter:this.onModalClose,isOpen:t.Embed,onRequestClose:this.onModalClose,modalHelp:s.a.createElement(zH,null),modalTitle:s.a.createElement(FH,{store:e}),modalIcon:"far fa-code"},this.renderModalContents())}}])&&NH(t.prototype,n),r&&NH(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),xH=LH(OH.prototype,"embedCode",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),SH=LH(OH.prototype,"editingHostPath",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),LH(OH.prototype,"onModalClose",[pH],Object.getOwnPropertyDescriptor(OH.prototype,"onModalClose"),OH.prototype),LH(OH.prototype,"fetchEmbedCode",[dH],Object.getOwnPropertyDescriptor(OH.prototype,"fetchEmbedCode"),OH.prototype),LH(OH.prototype,"toggleShowVideo",[mH],Object.getOwnPropertyDescriptor(OH.prototype,"toggleShowVideo"),OH.prototype),LH(OH.prototype,"toggleShowNotes",[hH],Object.getOwnPropertyDescriptor(OH.prototype,"toggleShowNotes"),OH.prototype),LH(OH.prototype,"toggleShowTranslations",[yH],Object.getOwnPropertyDescriptor(OH.prototype,"toggleShowTranslations"),OH.prototype),LH(OH.prototype,"toggleAllowDownload",[bH],Object.getOwnPropertyDescriptor(OH.prototype,"toggleAllowDownload"),OH.prototype),LH(OH.prototype,"toggleAllowShare",[vH],Object.getOwnPropertyDescriptor(OH.prototype,"toggleAllowShare"),OH.prototype),LH(OH.prototype,"toggleExternalHost",[gH],Object.getOwnPropertyDescriptor(OH.prototype,"toggleExternalHost"),OH.prototype),LH(OH.prototype,"setDefaultEmbedTab",[wH],Object.getOwnPropertyDescriptor(OH.prototype,"setDefaultEmbedTab"),OH.prototype),LH(OH.prototype,"initiateEditingHostPath",[EH],Object.getOwnPropertyDescriptor(OH.prototype,"initiateEditingHostPath"),OH.prototype),LH(OH.prototype,"saveExternalHost",[_H],Object.getOwnPropertyDescriptor(OH.prototype,"saveExternalHost"),OH.prototype),kH=OH))||kH)||kH),YH=BH;function IH(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function HH(e,t){return HH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},HH(e,t)}function UH(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=WH(e);if(t){var o=WH(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function WH(e){return WH=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},WH(e)}var VH,qH,GH,KH,$H,JH,XH=Object(se.c)(RH=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&HH(e,t)}(a,e);var t,n,r,o=UH(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).isVideo=function(){return e.props.exportOptions.isMp4Type()},e.mediaType=function(){return e.isVideo()?"video":"audio"},e}return t=a,(n=[{key:"highlightText",value:function(){return this.props.hasHighlights?"You'll download only the "+this.mediaType()+" sections you highlighted in the transcript":"You can't use this because you do not have any highlighted text"}},{key:"strikeThroughText",value:function(){return this.props.hasStrikethrough?"You'll download the entire audio except for the strikethrough "+this.mediaType()+" sections":"You can't use this because you didn't strikethrough any text in your transcript"}},{key:"fullExportBalloonText",value:function(){return this.isVideo()?"Download your video as a MP4 file":"Download a 92kbs mono version of your audio"}},{key:"renderAudioFormatDropdown",value:function(){var e=this.props.exportOptions;return e.isMp4Type()?null:s.a.createElement("div",{className:"form-group position--relative my-4"},s.a.createElement("label",{className:"input--label",htmlFor:"download-audio-format"},"Download audio format"),s.a.createElement("select",{value:e.mediaFormat,onChange:function(t){return e.mediaFormat=t.target.value},className:"form-control",id:"download-audio-format"},s.a.createElement("option",{value:"mp3"},"Download as MP3"),s.a.createElement("option",{value:"wav"},"Download as WAV")))}},{key:"render",value:function(){var e=this.props,t=e.exportOptions,n=e.hasHighlights,r=e.hasStrikethrough,o=e.store;return t.isMp4Type()||t.isMp3Type()?s.a.createElement("div",null,s.a.createElement(TB,{store:o}),this.renderAudioFormatDropdown(),s.a.createElement("div",{className:"form-group position--relative my-4"},s.a.createElement("label",{className:"input--label",htmlFor:"srt-speaker-options"},"What would you like to download?"),s.a.createElement("div",{className:"custom--sonix-block custom-controls-stacked"},s.a.createElement("label",{className:"custom-control custom-radio clickable mb-0"},s.a.createElement("input",{id:"export-original",name:"radio-stacked",type:"radio",className:"custom-control-input",value:"original",checked:"full"===t.fileExportOption,onChange:function(){return t.fileExportOption="full"}}),s.a.createElement("div",{className:"custom-control-radio"},s.a.createElement("div",{className:"inside"})),s.a.createElement("div",{className:"custom-control-description"},s.a.createElement("p",null,"The entire ",this.isVideo()?"video file (*.MP4)":"audio file",s.a.createElement("span",{className:"ms-2","data-balloon":this.fullExportBalloonText(),"data-balloon-pos":"down","data-balloon-length":"medium"},s.a.createElement("i",{className:"far fa-info-circle fa-fw"}))))),s.a.createElement("label",{className:"custom-control custom-radio clickable mb-0"},s.a.createElement("input",{id:"export-highlights",name:"radio-stacked",type:"radio",className:"custom-control-input",value:"highlights",checked:"highlights"===t.fileExportOption,onChange:function(){return t.fileExportOption="highlights"},disabled:!n}),s.a.createElement("div",{className:"custom-control-radio"},s.a.createElement("div",{className:"inside"})),s.a.createElement("div",{className:"custom-control-description"},s.a.createElement("p",null,"Only the highlighted sections of ",this.mediaType(),s.a.createElement("span",{className:"ms-2","data-balloon":this.highlightText(),"data-balloon-pos":"down","data-balloon-length":"medium"},s.a.createElement("i",{className:"far fa-info-circle fa-fw"}))))),s.a.createElement("label",{className:"custom-control custom-radio clickable mb-0"},s.a.createElement("input",{id:"export-highlights",name:"radio-stacked",type:"radio",className:"custom-control-input",value:"remove_strikethrough",checked:"remove_strikethrough"===t.fileExportOption,onChange:function(){return t.fileExportOption="remove_strikethrough"},disabled:!r}),s.a.createElement("div",{className:"custom-control-radio"},s.a.createElement("div",{className:"inside"})),s.a.createElement("div",{className:"custom-control-description"},s.a.createElement("p",null,"The ",this.isVideo()?"video file (*.MP4)":"audio file"," with strikethroughs removed",s.a.createElement("span",{className:"ms-2","data-balloon":this.strikeThroughText(),"data-balloon-pos":"down","data-balloon-length":"medium"},s.a.createElement("i",{className:"far fa-info-circle fa-fw"})))))))):null}}])&&IH(t.prototype,n),r&&IH(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||RH,QH=XH;function ZH(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function eU(e,t){return eU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},eU(e,t)}function tU(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=rU(e);if(t){var o=rU(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return nU(e)}(this,n)}}function nU(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rU(e){return rU=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rU(e)}function oU(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var aU,iU,lU,sU,cU,uU,fU,pU,dU=function(e){switch(e){case"original":return"Original";case"1:1":return"Square (1:1)";case"9:16":return"Story (9:16)";case"16:9":return"Landscape (16:9)";case"5:4":return"Twitter (5:4)";case"4:5":return"Facebook (4:5)"}},mU=function(e){return"fit"===e?"Fit Everything":"Zoom and Fill"},hU=function(e){var t=e.condensedTable,n=e.videoExports,r=e.onDelete;return n.map((function(e){var n=Ol.a.unix(e.createdAt),o=Object(we.i)(e.language);return s.a.createElement("tr",{className:"text--size-p",key:e.createdAt},s.a.createElement("td",{className:"py-2","data-label":"Date created"},s.a.createElement("p",{className:"mb-0"},s.a.createElement("a",{href:e.shareLink,target:"_blank",onClick:function(){return Object(we.k)("app.subtitles.click_burnin_video_export",e.shareLink)},className:"link--new-window"},n.format("MMM D, YYYY [at] h:mma")))),t&&s.a.createElement("td",{className:"py-2","data-label":"Video details"},s.a.createElement("p",{className:"mb-0"},o&&s.a.createElement("span",null,o.language,o.flag.split(",").map((function(e,t){return s.a.createElement("i",{key:"selected-flag-"+t,className:"flag-icon ms-2 flag-icon-"+e})})))),s.a.createElement("p",{className:"mb-0"},s.a.createElement("span",{"data-balloon":e.width+" x "+e.height+"px","data-balloon-pos":"up"},s.a.createElement("i",{className:"far fa-rectangle-landscape fa-fw me-1 text--color-meta-dark"}),dU(e.ratio)),s.a.createElement("i",{className:"far fa-compress-wide fa-fw me-1 ms-2 text--color-meta-dark"}),mU(e.exportPosition))),!t&&s.a.createElement("td",{className:"py-2","data-label":"Video details"},s.a.createElement("p",{className:"mb-0"},o&&s.a.createElement("span",null,o.language,o.flag.split(",").map((function(e,t){return s.a.createElement("i",{key:"selected-flag-"+t,className:"flag-icon ms-2 flag-icon-"+e})}))))),!t&&s.a.createElement("td",{className:"py-2","data-label":"Video details"},s.a.createElement("p",{className:"mb-0"},s.a.createElement("i",{className:"far fa-arrows-h fa-fw me-1 text--color-meta-dark"}),e.width,"px",s.a.createElement("i",{className:"far fa-arrows-v fa-fw me-1 ms-2 text--color-meta-dark"}),e.height,"px"),s.a.createElement("p",{className:"mb-0"},s.a.createElement("i",{className:"far fa-rectangle-landscape fa-fw me-1 text--color-meta-dark"}),dU(e.ratio),s.a.createElement("i",{className:"far fa-compress-wide fa-fw me-1 ms-2 text--color-meta-dark"}),mU(e.exportPosition))),!t&&s.a.createElement("td",{className:"py-2","data-label":"Delete"},s.a.createElement("p",{className:"mb-0"},s.a.createElement("a",{className:"text--color-red","data-balloon":"Delete","data-balloon-pos":"up","data-confirm":"Are you sure that you want to delete this video?",onClick:function(){return r(e)}},s.a.createElement("i",{className:"fas fa-trash fa-fw mx-1 text--color-red"})))))}))},yU=function(e){var t=e.condensedTable,n=e.videoExports,r=e.onDelete;return s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement("table",{className:"table table--simple table--padding-md table--border table--row-hover"},s.a.createElement("thead",null,s.a.createElement("tr",null,s.a.createElement("th",null,"Date created"),t&&s.a.createElement("th",null,"Video details"),!t&&s.a.createElement("th",null,"Language settings"),!t&&s.a.createElement("th",null,"Video settings"),!t&&s.a.createElement("th",null))),s.a.createElement("tbody",null,s.a.createElement(hU,{condensedTable:t,videoExports:n,onDelete:r})))))},bU=function(){return s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10"},s.a.createElement(ko,{icon:"fa-fire-alt fa-3x me-3 me-md-4",className:"p-4"},s.a.createElement("h4",null,"No burn-in videos have been created"),s.a.createElement("p",{className:"mb-3"},"Download future burn-in videos from here. By the way, it is easy to create a burn-in video:"),s.a.createElement("ul",{className:"list-unstyled"},s.a.createElement("li",null,s.a.createElement("strong",null,"Step 1: "),"Split your video into subtitles"),s.a.createElement("li",null,s.a.createElement("strong",null,"Step 2: "),"Customize your subtiles"),s.a.createElement("li",null,s.a.createElement("strong",null,"Step 3: "),"Burn-in video")),s.a.createElement("p",{className:"mb-0"},s.a.createElement("a",{href:"https://youtu.be/puCBBh2Syds",className:"link--underline",target:"_blank"},"Crystal Lee shows how to create subtitled burn-in videos",s.a.createElement("i",{className:"far fa-external-link-alt ms-1"}))))))},vU=function(){return s.a.createElement("div",{className:"modal--content scrollbar--custom font-family-roboto-mono"},s.a.createElement("div",{className:"my-5 pt-4"},s.a.createElement(Ne,null),s.a.createElement("p",{className:"mt-0 text--color-primary text--weight-700 text-center"},"Loading...")))},gU=(VH=Object(se.b)("store"),qH=d.action.bound,GH=d.action.bound,VH(KH=Object(se.c)(($H=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&eU(e,t)}(a,e);var t,n,r,o=tU(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(e=o.call.apply(o,[this].concat(n)),"loading",JH,nU(e)),e}return t=a,(n=[{key:"componentDidMount",value:function(){Object(we.k)("app.subtitles.view_burnin_video_exports_modal"),this.fetchVideoExports()}},{key:"fetchVideoExports",value:function(){var e=this,t=this.props.store;this.loading=!0,t.fetchVideoExports().then(Object(d.action)((function(t){e.loading=!1})))}},{key:"deleteExport",value:function(e){var t=this.props.store.transportLayer;this.loading=!0,t.deleteVideoExport(e.id).then(this.fetchVideoExports)}},{key:"render",value:function(){if(this.loading)return s.a.createElement(vU,null);var e=this.props,t=e.store,n=e.condensedTable,r=t.videoExports;return r.length?s.a.createElement(yU,{videoExports:r,onDelete:this.deleteExport,condensedTable:n}):s.a.createElement(bU,null)}}])&&ZH(t.prototype,n),r&&ZH(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),JH=oU($H.prototype,"loading",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),oU($H.prototype,"fetchVideoExports",[qH],Object.getOwnPropertyDescriptor($H.prototype,"fetchVideoExports"),$H.prototype),oU($H.prototype,"deleteExport",[GH],Object.getOwnPropertyDescriptor($H.prototype,"deleteExport"),$H.prototype),KH=$H))||KH)||KH),wU=gU,EU=Object(se.c)((function(e){return e.exportOptions.isBurnInType()?s.a.createElement(wU,{condensedTable:!0}):null}));function _U(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function kU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OU(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function xU(e,t,n){return t&&OU(e.prototype,t),n&&OU(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function SU(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jU(e,t)}function jU(e,t){return jU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jU(e,t)}function CU(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=NU(e);if(t){var o=NU(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return DU(e)}(this,n)}}function DU(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function NU(e){return NU=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},NU(e)}function PU(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var TU,MU,AU,LU,RU,FU,zU,BU,YU,IU,HU,UU,WU,VU,qU,GU,KU,$U=function(){return s.a.createElement("div",{className:"smodal--help"},s.a.createElement("p",{className:"mb-0"},s.a.createElement("strong",{className:"d-block d-lg-inline-block me-lg-2"},"Need a little help?"),s.a.createElement("a",{href:"https://youtu.be/kThqkvwnIkk",className:"link--underline",target:"_blank"},"Crystal explains exporting your Sonix transcript in this video",s.a.createElement("i",{className:"far fa-external-link-alt ms-2"}))))},JU=(aU=Object(se.b)("store","user"),iU=d.action.bound,lU=d.action.bound,sU=d.action.bound,aU(cU=Object(se.c)((uU=function(e){SU(n,e);var t=CU(n);function n(){var e;kU(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return _U(e=t.call.apply(t,[this].concat(o)),"exporting",fU,DU(e)),_U(e,"showGoogleDriveDownload",pU,DU(e)),e.onAfterModalOpen=function(){var t=e.props,n=t.store,r=t.user;n.exportOptions.reset(),r.isTrial&&Object(we.k)("sonix_onboarding_export_modal")},e}return xU(n,[{key:"_showGoogleDriveDownload",value:function(){this.showGoogleDriveDownload=!0}},{key:"export",value:function(){var e=this,t=this.props.store,n=t.exportOptions,r=t.recording,o=t.transcript,a=t.transportLayer,i=t.uiState;if(this.props.user.isTrial&&Object(we.k)("sonix_onboarding_export_button"),n.isPdfType()){var l=Object.assign({},n.options);o.translated&&(l.translated=!0,l.language=o.language,l.translation_id=o.id);var s=Object.keys(l).map((function(e){return e+"="+l[e]})).join("&"),c="".concat(r.basePath,"/").concat(r.id,"/transcript.pdf?").concat(s);Bu(c,"transcript.pdf"),i.hideExportModal()}else if(n.isTextType()||n.isResearchType()){this.exporting=!0;var u=Object.assign({},n.options);u.file_format=n.fileFormat,u.translated=o.translated,u.language=o.language,o.translated&&(u.translation_id=o.id),o.hasHighlights||(u.highlights_only=!1),a.exportTranscript((function(t){e.exporting=!1,Bu(t.url,t.filename),i.hideExportModal()}),u)}else if(n.isMediaType()&&"full"!==n.fileExportOption){this.exporting=!0;var f={remove_strikethrough:"remove_strikethrough"===n.fileExportOption,video:n.isMp4Type(),media_format:n.mediaFormat};a.exportAudioHighlights((function(t){e.exporting=!1,Bu(t.url,r.name+"."+n.fileFormat),i.hideExportModal()}),f)}else{var p="".concat(r.basePath,"/").concat(r.id,"/download?version=").concat(n.fileFormat);Bu(p,r.name),i.hideExportModal()}}},{key:"updateFileFormat",value:function(e){this.props.store.exportOptions.updateFileFormat(e),this.showGoogleDriveDownload=!1}},{key:"render",value:function(){var e=this.props,t=e.store,n=e.user,r=t.exportOptions,o=t.isVideo,a=t.isCroppedTranscript,i=t.transcript,l=t.recording,c=t.uiState,u=t.readonly,f=i.hasHighlights,p=i.hasStrikethrough;return s.a.createElement(ao,{modalClasses:"smodal--content smodal--content-sm",isOpen:c.modals.Export,onAfterOpen:this.onAfterModalOpen,onRequestClose:c.hideExportModal,onEnter:this.export,modalHelp:s.a.createElement($U,null),modalTitle:"Export and save to your computer",modalIcon:"far fa-download"},s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10"},a&&s.a.createElement(iP,{isVideo:o,formattedDuration:l.formattedDuration}),s.a.createElement("div",{className:"py-0"},s.a.createElement("div",{className:"form-group position--relative mb-3"},s.a.createElement("label",{className:"input--label",htmlFor:"download-format"},"Choose a file format"),s.a.createElement("select",{className:"form-select",id:"download-format",defaultValue:"select",onChange:this.updateFileFormat},s.a.createElement("option",{value:"select",disabled:!0},"— Please select —"),s.a.createElement("optgroup",{label:"Text versions"},s.a.createElement("option",{value:"docx"},"Microsoft Word (*.docx)"),s.a.createElement("option",{value:"txt"},"Text file (*.txt)"),s.a.createElement("option",{value:"pdf"},"PDF (*.pdf)")),s.a.createElement("optgroup",{label:"Subtitles"},s.a.createElement("option",{value:"srt"},"SubRip subtitle file (*.srt)"),s.a.createElement("option",{value:"vtt"},"WebVTT file (*.vtt)"),s.a.createElement("option",{value:"ttml"},"TTML file (*.ttml)"),o&&s.a.createElement("option",{value:"burn-in"},"Burn-in videos (*.mp4)")),s.a.createElement("optgroup",{label:"Research"},s.a.createElement("option",{value:"csv"},"Comma separated values (*.csv)"),s.a.createElement("option",{value:"nvivo"},"Nvivo transcript rows (*.txt)")),s.a.createElement("optgroup",{label:"Audio and video editors"},s.a.createElement("option",{value:"sesx"},"Adobe Audition session file (*.sesx)"),s.a.createElement("option",{value:"ap-xmeml"},"Adobe Premiere XML file (*.xml)"),s.a.createElement("option",{value:"avid-ds"},"Avid DS Caption file (*.txt)"),s.a.createElement("option",{value:"avid-markers"},"Avid Marker file (*.txt)"),s.a.createElement("option",{value:"avid-scriptsync"},"Avid ScriptSync file (*.txt)"),s.a.createElement("option",{value:"fcpxml"},"Final Cut Pro X file (*.fcpxml)")),s.a.createElement("optgroup",{label:"Underlying media"},!i.translated&&s.a.createElement(s.a.Fragment,null,s.a.createElement("option",{value:"mp3"},"Audio file (wav or mp3)"),o&&s.a.createElement("option",{value:"mp4"},"Video MP4 file (*.mp4)")),!t.recording.compressed&&s.a.createElement("option",{value:"original"},"Original ",o?"video":"audio"," file")))),s.a.createElement(QH,{store:t,readonly:u,exportOptions:r,hasHighlights:f,hasStrikethrough:p}),s.a.createElement(Ru,{exportOptions:r,hideAdvancedOptions:i.subtitled}),s.a.createElement(zu,{exportOptions:r,hideAdvancedOptions:i.subtitled}),s.a.createElement(Uu,{exportOptions:r}),s.a.createElement(Wu,{exportOptions:r}),s.a.createElement(EU,{exportOptions:r})),s.a.createElement("div",{className:"py-2"},r.canDownload()&&this.renderButton()),r.isCaptionType()&&s.a.createElement("div",null,s.a.createElement(Ho,null,s.a.createElement("p",{className:"mb-0"},"You can preview and adjust subtitles by clicking the",s.a.createElement("span",{className:"badge badge-glass mx-1"},s.a.createElement("i",{className:"far fa-stream fa-fw me-2"}),"Subtitles"),"button at the bottom of the Sonix editor."))),!r.isCaptionType()&&!n.isCustomer&&s.a.createElement("div",null,s.a.createElement(Ho,null,s.a.createElement("p",{className:"mb-0"},"Give 100 and get 100 free minutes. Refer your friends to try Sonix. ",s.a.createElement("a",{href:"/refer",className:"link--new-window",onClick:function(){return Object(we.k)("app.refer.click_export_dyk_refer_link")},target:"_blank"},"Learn more")))))))}},{key:"renderButton",value:function(){var e=this.props.store.uiState;if(e.blockExportsToSave)return s.a.createElement(wB,{onCancel:e.hideExportModal,actionText:"exporting"});if(this.exporting)return s.a.createElement(_o,{text:"Preparing export..."});var t=this.props.store,n=t.exportOptions,r=t.recording,o=r.name,a=r.id;return s.a.createElement("div",{className:"d-block"},s.a.createElement("a",{className:"btn btn-primary t--transcript-modal-btn-export",onClick:this.export},s.a.createElement("i",{className:"fas fa-fw me-2 fa-download"}),"Download"),this.renderGoogleDriveButton(),this.showGoogleDriveDownload&&s.a.createElement(XU,{id:a,name:o,extension:n.fileFormat}))}},{key:"renderGoogleDriveButton",value:function(){if("docx"==this.props.store.exportOptions.fileFormat)return s.a.createElement("a",{className:"btn t--transcript-modal-btn-export",onClick:this._showGoogleDriveDownload},s.a.createElement("i",{className:"fab fa-fw me-2 fa-google-drive"}),"Google Drive")}}]),n}(s.a.Component),fU=PU(uU.prototype,"exporting",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),pU=PU(uU.prototype,"showGoogleDriveDownload",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),PU(uU.prototype,"_showGoogleDriveDownload",[iU],Object.getOwnPropertyDescriptor(uU.prototype,"_showGoogleDriveDownload"),uU.prototype),PU(uU.prototype,"export",[lU],Object.getOwnPropertyDescriptor(uU.prototype,"export"),uU.prototype),PU(uU.prototype,"updateFileFormat",[sU],Object.getOwnPropertyDescriptor(uU.prototype,"updateFileFormat"),uU.prototype),cU=uU))||cU)||cU),XU=function(e){SU(n,e);var t=CU(n);function n(){return kU(this,n),t.apply(this,arguments)}return xU(n,[{key:"componentDidMount",value:function(){if(window.gapi){var e=this.props,t=e.id,n=e.name,r="".concat(n,".docx");window.gapi.savetodrive.render("g-savetodrive-container",{src:"//my.sonix.ai/recordings/".concat(t,"/export/gdrive.docx"),filename:r,sitename:"Sonix"})}}},{key:"render",value:function(){return"docx"===this.props.extension&&window.gapi?s.a.createElement("div",{className:"alert alert-linen border-radius--normal d-block my-0 p-3 text-center text-sm-start"},s.a.createElement("p",{className:"text--color-meta-dark mb-0"},"To download your document to Google Drive, use the button below:"),s.a.createElement("div",{className:"position--relative bgcolor--white",style:{height:"29px",width:"58px"}},s.a.createElement("div",{id:"g-savetodrive-container",className:"position--absolute"}))):null}}]),n}(s.a.Component),QU=JU;function ZU(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function eW(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function tW(e,t){return tW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tW(e,t)}function nW(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=oW(e);if(t){var o=oW(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return rW(e)}(this,n)}}function rW(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oW(e){return oW=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oW(e)}function aW(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var iW,lW,sW,cW,uW,fW,pW,dW,mW,hW,yW,bW,vW,gW=Object(se.c)((function(e){var t=e.from,n=e.to,r=e.text;return s.a.createElement("div",{className:"form-group mb-0"},s.a.createElement("label",{className:"input--label mb-1",htmlFor:"transcript-selected-text-export"},s.a.createElement("i",{className:"far fa-text-size me-2"}),"Selected text"),s.a.createElement("div",{className:"smodal--scrollable-container mb-0",style:{maxHeight:"7.5rem"}},s.a.createElement("p",{className:"my-2"},s.a.createElement("em",{className:"text--selection has--background","data-tsf":Object(we.e)(t),"data-tst":Object(we.e)(n)},r))))})),wW=function(){return s.a.createElement("div",{className:"mt-3"},s.a.createElement(_o,{text:"Creating your clip. It'll take a moment. Thank you for being patient."}))},EW=function(e){var t=e.shareLink,n=e.fileName,r=e.downloadUrl;return s.a.createElement("div",{className:"form-actions mt-3"},s.a.createElement("div",{className:"mb-3"},s.a.createElement(hY,{shareLink:t,shareLabel:"Share the link to this clip",analyticsEventName:"app.clips.clips_click_copy"})),s.a.createElement("a",{className:"btn btn-primary",href:t,target:"_blank",onClick:function(){return Object(we.k)("app.clips.clips_click_preview",t)}},s.a.createElement("i",{className:"far fa-external-link-alt me-2"}),"Preview clip in new tab"),s.a.createElement("a",{className:"btn",href:r,download:n,target:"_self",onClick:function(){return Object(we.k)("app.clips.clips_click_download",t)}},s.a.createElement("i",{className:"fa fa-download me-2"}),"Download File"))},_W=(TU=d.action.bound,MU=d.action.bound,AU=d.action.bound,LU=d.action.bound,RU=d.action.bound,Object(se.c)((zU=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tW(e,t)}(a,e);var t,n,r,o=nW(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ZU(e=o.call.apply(o,[this].concat(n)),"exporting",BU,rW(e)),ZU(e,"exported",YU,rW(e)),ZU(e,"fragment",IU,rW(e)),ZU(e,"text",HU,rW(e)),ZU(e,"mediaFormat",UU,rW(e)),ZU(e,"clipName",WU,rW(e)),ZU(e,"shareLink",VU,rW(e)),ZU(e,"downloadUrl",qU,rW(e)),ZU(e,"from",GU,rW(e)),ZU(e,"to",KU,rW(e)),e.onAfterOpenActions=function(){var t=e.props.store.recording;Object(we.k)("sonix_clips_modal_view",t.id),e.determineSelectedWords()},e}return t=a,n=[{key:"export",value:function(){var e=this;this.exporting=!0;var t=this.props.store.transportLayer,n=Yb.serialize(this.fragment);Object(we.k)("sonix_clips_export",this.mediaFormat),t.exportAudioHighlights((function(t){e.exporting=!1,e.exported=!0,e.downloadUrl=t.url,e.shareLink=t.share_link}),{from:this.from,to:this.to,media_format:this.mediaFormat,transcript:n,name:this.clipName})}},{key:"determineSelectedWords",value:function(){var e=this.props.store,t=e.transcript,n=e.recording,r=e.isVideo,o=t.selectedFragment(),a=o.map((function(e){return e.children})).flat();a.length&&(this.from=a[0].from,this.to=a[a.length-1].to),this.text=a.map((function(e){return e.text})).join(""),this.fragment=o,this.clipName=n.name,this.mediaFormat=r?"mp4":"mp3",this.exporting=!1,this.exported=!1}},{key:"setClipName",value:function(e){this.clipName=e.target.value}},{key:"toggleAudioFormat",value:function(){this.mediaFormat="mp3"===this.mediaFormat?"wav":"mp3"}},{key:"toggleAudioOnly",value:function(){this.mediaFormat="mp3"===this.mediaFormat?"mp4":"mp3"}},{key:"renderClipOptions",value:function(){var e=this.props.store,t=e.isVideo,n=e.user,r=e.recording;return s.a.createElement("div",{className:"form-group position--relative mb-3"},t&&s.a.createElement("div",{className:"form-check"},s.a.createElement(Au,{onChange:this.toggleAudioOnly,checked:"mp3"===this.mediaFormat,label:"Make this an audio-only clip (MP3)",name:"AudioOnly"})),!t&&n.isSubscribed&&!r.compressed&&s.a.createElement("div",{className:"form-check"},s.a.createElement(Au,{onChange:this.toggleAudioFormat,checked:"wav"===this.mediaFormat,label:"Create audio clip as WAV",name:"AudioWav"})))}},{key:"renderForm",value:function(){var e=this.props.store;if(this.exporting)return s.a.createElement(wW,null);if(this.exported)return s.a.createElement(EW,{fileName:this.clipName+"."+this.mediaFormat,downloadUrl:this.downloadUrl,shareLink:this.shareLink});var t=e.uiState;return s.a.createElement("div",{className:"clip--settings mt-3"},s.a.createElement("div",{className:"form-group mb-3"},s.a.createElement("label",{className:"input--label",htmlFor:"clip-name"},s.a.createElement("i",{className:"far fa-tag me-2"}),"Clip name"),s.a.createElement("input",{id:"clip-name",onChange:this.setClipName,value:this.clipName,className:"form-control"})),this.renderClipOptions(),s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("button",{className:"btn btn-primary",onClick:this.export},s.a.createElement("i",{className:"fa fa-cut me-2"}),"mp4"===this.mediaFormat?"Create video clip":"Create audio clip ("+this.mediaFormat+")"),s.a.createElement("button",{className:"btn",onClick:t.hideExportSelectedModal},s.a.createElement("i",{className:"fa fa-times me-2"}),"Cancel")),s.a.createElement(TB,{store:e}))}},{key:"render",value:function(){var e=this.props.store.uiState;return s.a.createElement(ao,{modalClasses:"smodal--content smodal--content-md",modalTitle:"Create a clip of selected text",modalIcon:"far fa-cut",shouldReturnFocusAfterClose:!1,onAfterOpen:this.onAfterOpenActions,onEnter:this.export,isOpen:e.modals.ExportSelected,onRequestClose:e.hideExportSelectedModal},s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10 mb-2"},s.a.createElement(gW,{from:this.from,to:this.to,text:this.text}),this.renderForm())))}}],n&&eW(t.prototype,n),r&&eW(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),BU=aW(zU.prototype,"exporting",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),YU=aW(zU.prototype,"exported",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),IU=aW(zU.prototype,"fragment",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),HU=aW(zU.prototype,"text",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),UU=aW(zU.prototype,"mediaFormat",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"mp3"}}),WU=aW(zU.prototype,"clipName",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),VU=aW(zU.prototype,"shareLink",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),qU=aW(zU.prototype,"downloadUrl",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),GU=aW(zU.prototype,"from",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),KU=aW(zU.prototype,"to",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),aW(zU.prototype,"export",[TU],Object.getOwnPropertyDescriptor(zU.prototype,"export"),zU.prototype),aW(zU.prototype,"determineSelectedWords",[MU],Object.getOwnPropertyDescriptor(zU.prototype,"determineSelectedWords"),zU.prototype),aW(zU.prototype,"setClipName",[AU],Object.getOwnPropertyDescriptor(zU.prototype,"setClipName"),zU.prototype),aW(zU.prototype,"toggleAudioFormat",[LU],Object.getOwnPropertyDescriptor(zU.prototype,"toggleAudioFormat"),zU.prototype),aW(zU.prototype,"toggleAudioOnly",[RU],Object.getOwnPropertyDescriptor(zU.prototype,"toggleAudioOnly"),zU.prototype),FU=zU))||FU),kW=_W,OW=function(e){var t=e.iconFalse,n=e.iconTrue;return t&&n?s.a.createElement("style",{type:"text/css"},'\n            .switch-square.switch-bootstrap.switch-custom-icon + .lable::before {\n              content: "'.concat(t,'";\n              text-indent: 2rem;\n            }\n            .switch-square.switch-bootstrap.switch-custom-icon:checked + .lable::before {\n              content: "').concat(n,'";\n              text-indent: 0.5rem;\n            }\n          ')):null},xW=function(e){var t=e.labelLeftFalse,n=e.labelRightTrue,r=e.iconFalse,o=e.iconTrue,a=e.checked,i=e.onChange,l=e.name;return s.a.createElement("label",{className:"label-switch"},s.a.createElement(OW,{iconFalse:r,iconTrue:o}),s.a.createElement("div",{className:"d-flex justify-content-between"},s.a.createElement("span",{className:ue()("d-inline-flex text--size-900rem")},t),s.a.createElement("div",{className:"d-inline-flex mx-2 switch-primary"},s.a.createElement("input",{type:"checkbox",className:"switch-square switch-bootstrap switch-custom-icon status",name:l,onChange:i,checked:a}),s.a.createElement("span",{className:"d-inline-flex lable"})),s.a.createElement("span",{className:ue()("d-inline-flex text--size-900rem",{"text--color-primary":a})},n)))};function SW(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function jW(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function CW(e,t){return CW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},CW(e,t)}function DW(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=PW(e);if(t){var o=PW(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return NW(e)}(this,n)}}function NW(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PW(e){return PW=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},PW(e)}function TW(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var MW,AW,LW,RW,FW,zW,BW,YW,IW,HW,UW,WW,VW,qW,GW=(iW=Object(se.b)("store"),lW=d.action.bound,sW=d.action.bound,cW=d.action.bound,uW=d.action.bound,fW=d.action.bound,pW=d.action.bound,iW(dW=Object(se.c)((mW=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&CW(e,t)}(a,e);var t,n,r,o=DW(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),SW(t=o.call(this,e),"search",hW,NW(t)),SW(t,"replace",yW,NW(t)),SW(t,"matchCase",bW,NW(t)),SW(t,"findAndStrikeThrough",vW,NW(t)),t.findInputRef=s.a.createRef(),t.shouldFocusInput=!1,t}return t=a,(n=[{key:"setSearch",value:function(e){this.search=e.target.value}},{key:"setReplace",value:function(e){this.replace=e.target.value}},{key:"setSelectedText",value:function(){this.search=this.props.store.transcript.selectedText(),this.replace=""}},{key:"notification",value:function(e){return this.findAndStrikeThrough?e>1?s.a.createElement("p",null,e," instances of '",this.search,"' were striked out."):1===e?s.a.createElement("p",null,e," instance of '",this.search,"' were striekd out."):s.a.createElement("p",null,"No instances of '",this.search,"' were found."):e>1?s.a.createElement("p",null,e," instances of '",this.search,"' were found and replaced with '",this.replace,"'."):1===e?s.a.createElement("p",null,e," instance of '",this.search,"' was found and replaced with '",this.replace,"'."):s.a.createElement("p",null,"No instances of '",this.search,"' were found.")}},{key:"findAndReplace",value:function(){var e=this.props.store,t=e.transcript,n=e.uiState,r=0;r=""==this.search?0:this.findAndStrikeThrough?t.findAndStrikethrough(this.search,this.matchCase):t.findAndReplace(this.search,this.replace,this.matchCase),n.setNotification(this.notification(r)),n.hideFindAndReplaceModal()}},{key:"toggleMatchCase",value:function(){this.matchCase=!this.matchCase}},{key:"toggleFindAndStrikeThrough",value:function(){this.findAndStrikeThrough=!this.findAndStrikeThrough,this.shouldFocusInput=!0}},{key:"componentDidUpdate",value:function(){this.focusInputIfNeeded()}},{key:"focusInputIfNeeded",value:function(){this.shouldFocusInput&&this.findInputRef.current&&(this.findInputRef.current.focus(),this.shouldFocusInput=!1)}},{key:"renderForm",value:function(){var e=this.props.store.uiState.hideFindAndReplaceModal;return this.findAndStrikeThrough?s.a.createElement("div",null,s.a.createElement("div",{className:"form-group mb-2"},s.a.createElement("label",{htmlFor:"findInput",className:"input--label"},"Find what"),s.a.createElement("input",{id:"findInput",ref:this.findInputRef,value:this.search,onChange:this.setSearch,tabIndex:"1",className:"form-control"})),s.a.createElement("div",{className:"form-group"},s.a.createElement(Au,{onChange:this.toggleMatchCase,checked:this.matchCase},"Match case",s.a.createElement("span",{className:"ms-2","data-balloon":"We will find and replace only instances that are written the exact same way.","data-balloon-pos":"right","data-balloon-length":"large"},s.a.createElement("i",{className:"far fa-info-circle fa-fw"})))),s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("button",{className:"btn btn-primary",tabIndex:2,onClick:this.findAndReplace},s.a.createElement("i",{className:"fa fa-check me-2"}),"Strikethrough all"),s.a.createElement("button",{className:"btn",tabIndex:3,onClick:e},s.a.createElement("i",{className:"fa fa-times me-2"}),"Cancel"))):s.a.createElement("div",null,s.a.createElement("div",{className:"form-group mb-2"},s.a.createElement("label",{htmlFor:"findInput",className:"input--label"},"Find what"),s.a.createElement("input",{autoFocus:!0,id:"findInput",ref:this.findInputRef,value:this.search,onChange:this.setSearch,className:"form-control"})),s.a.createElement("div",{className:"form-group mb-3"},s.a.createElement(Au,{onChange:this.toggleMatchCase,checked:this.matchCase},"Match case",s.a.createElement("span",{className:"ms-2","data-balloon":"We will find and replace only instances that are written the exact same way.","data-balloon-pos":"right","data-balloon-length":"large"},s.a.createElement("i",{className:"far fa-info-circle fa-fw"})))),s.a.createElement("div",{className:"form-group"},s.a.createElement("label",{htmlFor:"replaceInput",className:"input--label"},"Replace with"),s.a.createElement("input",{id:"replaceInput",ref:"replaceInput",value:this.replace,onChange:this.setReplace,className:"form-control"})),s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("button",{className:"btn btn-primary",onClick:this.findAndReplace},s.a.createElement("i",{className:"fa fa-check me-2"}),"Replace all"),s.a.createElement("button",{className:"btn",onClick:e},s.a.createElement("i",{className:"fa fa-times me-2"}),"Cancel")))}},{key:"render",value:function(){var e=this.props.store,t=e.transcript,n=e.uiState,r=n.hideFindAndReplaceModal,o=n.modals;return s.a.createElement(ao,{modalClasses:"smodal--content smodal--content-sm",isOpen:o.FindAndReplace,onEnter:this.findAndReplace,onAfterOpen:this.setSelectedText,onRequestClose:r,modalTitle:"Find and ".concat(this.findAndStrikeThrough?"strikethrough":"replace"),modalIcon:"far fa-search"},s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10"},!t.paginated&&s.a.createElement("div",{className:"pb-3"},s.a.createElement("p",null,s.a.createElement("strong",null,"To find a word or phrase: "),"Use your browser's built-in search function (Edit > Find) or the keyboard shortcuts: ",s.a.createElement("span",{className:"badge badge-glass"},s.a.createElement("i",{className:"fab fa-windows fa-fw me-1"}),"CTRL + F")," or ",s.a.createElement("span",{className:"badge badge-glass"},s.a.createElement("i",{className:"fab fa-apple fa-fw me-1"}),"Command ⌘ + F"))),s.a.createElement("div",{className:"p-3 bgcolor--fc-glass"},s.a.createElement("div",{className:"text-md-center mb-3 mb-md-0"},s.a.createElement("div",{className:"d-inline-block text--weight-700"},s.a.createElement(xW,{labelLeftFalse:"Replace",labelRightTrue:"Strikethrough",iconFalse:"\\f0ec",iconTrue:"\\f0cc",onChange:this.toggleFindAndStrikeThrough,checked:this.findAndStrikeThrough}))),this.renderForm(),t.paginated&&s.a.createElement("div",{className:"media alert alert-warning mt-3"},s.a.createElement("i",{className:"far fa-exclamation-triangle fa-2x me-3"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("h4",null,"Pagination active"),s.a.createElement("p",null,"We will only ",this.findAndStrikeThrough?"strikethrough":"replace"," words within the current 10 minute section. To ",this.findAndStrikeThrough?"strikethrough":"replace"," words within the entire document, please disable pagination.")))))))}}])&&jW(t.prototype,n),r&&jW(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),hW=TW(mW.prototype,"search",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),yW=TW(mW.prototype,"replace",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),bW=TW(mW.prototype,"matchCase",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),vW=TW(mW.prototype,"findAndStrikeThrough",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),TW(mW.prototype,"setSearch",[lW],Object.getOwnPropertyDescriptor(mW.prototype,"setSearch"),mW.prototype),TW(mW.prototype,"setReplace",[sW],Object.getOwnPropertyDescriptor(mW.prototype,"setReplace"),mW.prototype),TW(mW.prototype,"setSelectedText",[cW],Object.getOwnPropertyDescriptor(mW.prototype,"setSelectedText"),mW.prototype),TW(mW.prototype,"findAndReplace",[uW],Object.getOwnPropertyDescriptor(mW.prototype,"findAndReplace"),mW.prototype),TW(mW.prototype,"toggleMatchCase",[fW],Object.getOwnPropertyDescriptor(mW.prototype,"toggleMatchCase"),mW.prototype),TW(mW.prototype,"toggleFindAndStrikeThrough",[pW],Object.getOwnPropertyDescriptor(mW.prototype,"toggleFindAndStrikeThrough"),mW.prototype),dW=mW))||dW)||dW),KW=function(e){var t=e.header,n=e.text;return s.a.createElement("div",{className:"media bgcolor--fc-glass border-radius--normal p-2 my-3"},s.a.createElement("i",{className:"fad fa-3x fa-spinner-third fa-spin me-3 text--color-primary"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("h4",{className:"text--color-primary mb-0"},t||"Please wait"),s.a.createElement("p",{className:"text--color-primary mb-0"},n||"We appreciate your patience.")))};function $W(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function JW(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function XW(e,t){return XW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},XW(e,t)}function QW(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=eV(e);if(t){var o=eV(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ZW(e)}(this,n)}}function ZW(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eV(e){return eV=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},eV(e)}function tV(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var nV,rV,oV,aV,iV,lV=(MW=Object(se.b)("store"),AW=d.action.bound,LW=d.action.bound,RW=d.action.bound,FW=d.action.bound,zW=d.action.bound,BW=d.action.bound,MW(YW=Object(se.c)((IW=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&XW(e,t)}(a,e);var t,n,r,o=QW(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return $W(e=o.call.apply(o,[this].concat(n)),"saving",HW,ZW(e)),$W(e,"subtitleLines",UW,ZW(e)),$W(e,"maxCharacters",WW,ZW(e)),$W(e,"maxCPS",VW,ZW(e)),$W(e,"maxDuration",qW,ZW(e)),e}return t=a,(n=[{key:"setSubtitleLines",value:function(e){this.subtitleLines=e.target.value}},{key:"setMaxCharacters",value:function(e){this.maxCharacters=e.target.value}},{key:"onAfterOpen",value:function(){Object(we.k)("app.subtitles.view_subtitles_modal")}},{key:"setMaxDuration",value:function(e){this.maxDuration=e.target.value}},{key:"setMaxCPS",value:function(e){this.maxCPS=e.target.value}},{key:"generateSubtitles",value:function(){var e=this,t=this.props.store;this.saving=!0,t.generateSubtitles({maxCPS:this.maxCPS,maxDuration:this.maxDuration,maxCharacters:this.maxCharacters,subtitleLines:this.subtitleLines}).then((function(){e.saving=!1,Object(we.k)("app.subtitles.click_split_subtitles"),t.uiState.hideGenerateSubtitlesModal()}))}},{key:"renderButtons",value:function(){var e=this.props.store;return this.saving?s.a.createElement(KW,{header:"Splitting your transcript",text:"Your subtitles will be ready in a few seconds. Thank you for being patient."}):s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("button",{className:"btn btn-primary",onClick:this.generateSubtitles},s.a.createElement("i",{className:"fa fa-check me-2"}),0==this.subtitleLines?"Enable subtitles":"Split into subtitles"),s.a.createElement("button",{className:"btn",onClick:e.uiState.hideGenerateSubtitlesModal},s.a.createElement("i",{className:"fa fa-times me-2"}),"Cancel"))}},{key:"renderSplitOptions",value:function(){return s.a.createElement("div",{className:"split-options"},s.a.createElement("div",{className:"form-group position--relative mb-3"},s.a.createElement("label",{className:"input--label mb-0",htmlFor:"srt-character-length"},s.a.createElement("strong",null,"CPL: Characters per line (Max)"),s.a.createElement("span",{className:"ms-1","data-balloon":"Each line in your subtitle will not exceed the max characters length. We will split the text text to another line.","data-balloon-pos":"down","data-balloon-length":"large"},s.a.createElement("i",{className:"far fa-info-circle fa-fw"}))),s.a.createElement("div",{className:"range-slider mt-0"},s.a.createElement("input",{id:"srt-character-length",className:"range-slider__range",type:"range",min:"10",max:"80",step:"1",value:this.maxCharacters,onChange:this.setMaxCharacters}),s.a.createElement("span",{className:"range-slider__value"},this.maxCharacters))),s.a.createElement("div",{className:"form-group position--relative mb-3"},s.a.createElement("label",{className:"input--label mb-0",htmlFor:"srt-time-length"},s.a.createElement("strong",null,"CPS: Characters per second (Max)"),s.a.createElement("span",{className:"ms-1","data-balloon":"We will try to limit how many characters are shown per second to improve the subtitle's readability. We recommend below 20 CPS; industry standard for best accessibility is 12 CPS.","data-balloon-pos":"down","data-balloon-length":"large"},s.a.createElement("i",{className:"far fa-info-circle fa-fw"}))),s.a.createElement("div",{className:"range-slider mt-0"},s.a.createElement("input",{id:"srt-time-length",className:"range-slider__range",type:"range",min:"10",max:"40",step:"1",value:this.maxCPS,onChange:this.setMaxCPS}),s.a.createElement("span",{className:"range-slider__value"},this.maxCPS))),s.a.createElement("div",{className:"form-group position--relative mb-3"},s.a.createElement("label",{className:"input--label mb-0",htmlFor:"srt-time-length"},s.a.createElement("strong",null,"Time duration per subtitle (Max)"),s.a.createElement("span",{className:"ms-1","data-balloon":"If the duration is longer than this limit, the text will be split to another subtitle. Choose 10s to not enforce the limit.","data-balloon-pos":"down","data-balloon-length":"large"},s.a.createElement("i",{className:"far fa-info-circle fa-fw"}))),s.a.createElement("div",{className:"range-slider mt-0"},s.a.createElement("input",{id:"srt-time-length",className:"range-slider__range",type:"range",min:"0.4",max:"10",step:"0.1",value:this.maxDuration,onChange:this.setMaxDuration}),s.a.createElement("span",{className:"range-slider__value"},this.maxDuration,"s"))))}},{key:"render",value:function(){var e=this.props.store.uiState,t=e.hideGenerateSubtitlesModal,n=e.modals;return s.a.createElement(ao,{modalClasses:"smodal--content smodal--content-md",isOpen:n.GenerateSubtitles,onRequestClose:t,modalTitle:"Split transcript into subtitles",onAfterOpen:this.onAfterOpen,modalIcon:"far fa-line-columns"},s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10"},s.a.createElement("div",{className:"form-group mb-4"},s.a.createElement("div",{className:"form-group position--relative"},s.a.createElement("label",{className:"input--label",htmlFor:"srt-speaker-options"},s.a.createElement("strong",null,"How many lines?")),s.a.createElement("div",{className:"form-check text--color-sidebar-text"},s.a.createElement("select",{className:"form-select",id:"srt-speaker-options",value:this.subtitleLines,onChange:this.setSubtitleLines},s.a.createElement("option",{value:-1},"Split subtitles by sentence"),s.a.createElement("option",{value:0},"I have split my transcript into subtitles manually"),s.a.createElement("option",{value:1},"Keep subtitle as a single line"),s.a.createElement("option",{value:2},"Split subtitle over 2 lines"),s.a.createElement("option",{value:3},"Split subtitle over 3 lines"))))),this.subtitleLines>0&&this.renderSplitOptions(),this.renderButtons(),s.a.createElement(Ho,null,s.a.createElement("p",{className:"mb-0"},"You can edit the exact timestamps of each paragraph by clicking on the clock icon",s.a.createElement("span",{className:"badge badge-glass mx-1"},s.a.createElement("i",{className:"far fa-clock fa-fw"})),"in the editor.")))))}}])&&JW(t.prototype,n),r&&JW(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),HW=tV(IW.prototype,"saving",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),UW=tV(IW.prototype,"subtitleLines",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 2}}),WW=tV(IW.prototype,"maxCharacters",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 45}}),VW=tV(IW.prototype,"maxCPS",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 12}}),qW=tV(IW.prototype,"maxDuration",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 10}}),tV(IW.prototype,"setSubtitleLines",[AW],Object.getOwnPropertyDescriptor(IW.prototype,"setSubtitleLines"),IW.prototype),tV(IW.prototype,"setMaxCharacters",[LW],Object.getOwnPropertyDescriptor(IW.prototype,"setMaxCharacters"),IW.prototype),tV(IW.prototype,"onAfterOpen",[RW],Object.getOwnPropertyDescriptor(IW.prototype,"onAfterOpen"),IW.prototype),tV(IW.prototype,"setMaxDuration",[FW],Object.getOwnPropertyDescriptor(IW.prototype,"setMaxDuration"),IW.prototype),tV(IW.prototype,"setMaxCPS",[zW],Object.getOwnPropertyDescriptor(IW.prototype,"setMaxCPS"),IW.prototype),tV(IW.prototype,"generateSubtitles",[BW],Object.getOwnPropertyDescriptor(IW.prototype,"generateSubtitles"),IW.prototype),YW=IW))||YW)||YW),sV=lV;function cV(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function uV(e,t){return uV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},uV(e,t)}function fV(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pV(e);if(t){var o=pV(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function pV(e){return pV=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pV(e)}function dV(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var mV,hV,yV,bV,vV,gV,wV,EV,_V=(nV=Object(se.b)("store"),rV=d.action.bound,oV=d.action.bound,nV(aV=Object(se.c)((iV=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uV(e,t)}(a,e);var t,n,r,o=fV(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"onModalClose",value:function(){this.props.store.uiState.hideKeyboardShortcutsModal()}},{key:"onAfterOpen",value:function(){Object(we.k)("app.statusbar.view_shortcuts_modal")}},{key:"renderModalContents",value:function(){return s.a.createElement("div",{className:"container-fluid"},s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-6"},s.a.createElement("h4",{className:"mb-2 text--color"},s.a.createElement("i",{className:"fas fa-play fa-fw me-2"}),s.a.createElement("span",{className:"fw-bold"},"Playback")),s.a.createElement("ul",{className:"list-group list-group-hover mb-4"},s.a.createElement("li",{className:"list-group-item align-items-center"},s.a.createElement("div",{className:"media mb-0"},s.a.createElement("kbd",{className:"me-3"},s.a.createElement("kbd",null,"TAB")),s.a.createElement("div",{className:"media-body"},s.a.createElement("p",{className:"fw-bold my-1"},s.a.createElement("i",{className:"fas fa-play fa-fw me-1"})," Play or ",s.a.createElement("i",{className:"fas fa-pause fa-fw me-1"})," Pause the media")))),s.a.createElement("li",{className:"list-group-item align-items-center"},s.a.createElement("div",{className:"media mb-0"},s.a.createElement("kbd",{className:"me-3"},s.a.createElement("kbd",null,"CTRL")," + ",s.a.createElement("kbd",null,"SHIFT")," + ",s.a.createElement("kbd",null,",")),s.a.createElement("div",{className:"media-body"},s.a.createElement("p",{className:"fw-bold my-1"},s.a.createElement("i",{className:"fas fa-chevrons-left fa-fw me-1"})," Decrease the playback speed")))),s.a.createElement("li",{className:"list-group-item align-items-center"},s.a.createElement("div",{className:"media mb-0"},s.a.createElement("kbd",{className:"me-3"},s.a.createElement("kbd",null,"CTRL")," + ",s.a.createElement("kbd",null,"SHIFT")," + ",s.a.createElement("kbd",null,".")),s.a.createElement("div",{className:"media-body"},s.a.createElement("p",{className:"fw-bold my-1"},s.a.createElement("i",{className:"fas fa-chevrons-right fa-fw me-1"})," Increase the playback speed")))),s.a.createElement("li",{className:"list-group-item align-items-center"},s.a.createElement("div",{className:"media mb-0"},s.a.createElement("kbd",{className:"me-3"},s.a.createElement("kbd",null,"CTRL")," + ",s.a.createElement("kbd",null,".")),s.a.createElement("div",{className:"media-body"},s.a.createElement("p",{className:"fw-bold my-1"},s.a.createElement("i",{className:"fas fa-circle-chevron-right fa-fw me-1"})," Reset the playback speed to 1.0 x")))),s.a.createElement("li",{className:"list-group-item align-items-center"},s.a.createElement("div",{className:"media mb-0"},s.a.createElement("kbd",{className:"me-3"},s.a.createElement("kbd",null,"CTRL")," + ",s.a.createElement("kbd",null,"[")),s.a.createElement("div",{className:"media-body"},s.a.createElement("p",{className:"fw-bold my-1"},s.a.createElement("i",{className:"fas fa-backward fa-fw me-1"})," Go back 5 seconds in the audio")))),s.a.createElement("li",{className:"list-group-item align-items-center"},s.a.createElement("div",{className:"media mb-0"},s.a.createElement("kbd",{className:"me-3"},s.a.createElement("kbd",null,"CTRL")," + ",s.a.createElement("kbd",null,"]")),s.a.createElement("div",{className:"media-body"},s.a.createElement("p",{className:"fw-bold my-1"},s.a.createElement("i",{className:"fas fa-forward fa-fw me-1"})," Skip forward 5 seconds in the audio"))))),s.a.createElement("h4",{className:"mb-2 text--color"},s.a.createElement("i",{className:"fas fa-pencil fa-fw me-2"}),s.a.createElement("span",{className:"fw-bold"},"Editing")),s.a.createElement("ul",{className:"list-group list-group-hover mb-4"},s.a.createElement("li",{className:"list-group-item align-items-center"},s.a.createElement("div",{className:"media mb-0"},s.a.createElement("kbd",{className:"me-3"},s.a.createElement("kbd",null,"ENTER")),s.a.createElement("div",{className:"media-body"},s.a.createElement("p",{className:"fw-bold my-1"},s.a.createElement("i",{className:"fas fa-paragraph fa-fw me-1"})," Split a paragraph and identify a new speaker")))),s.a.createElement("li",{className:"list-group-item align-items-center"},s.a.createElement("div",{className:"media mb-0"},s.a.createElement("kbd",{className:"me-3"},s.a.createElement("kbd",null,"SHIFT")," + ",s.a.createElement("kbd",null,"ENTER")),s.a.createElement("div",{className:"media-body"},s.a.createElement("p",{className:"fw-bold my-1"},s.a.createElement("i",{className:"fas fa-level-down fa-rotate-90 fa-fw me-1"})," Add a new line to the paragraph")))),s.a.createElement("li",{className:"list-group-item align-items-center"},s.a.createElement("div",{className:"media mb-0"},s.a.createElement("kbd",{className:"me-3"},s.a.createElement("kbd",null,"CTRL")," + ",s.a.createElement("kbd",null,"ENTER")),s.a.createElement("div",{className:"media-body"},s.a.createElement("p",{className:"fw-bold my-1"},s.a.createElement("i",{className:"fas fa-volume fa-fw me-1"})," Current paragraph: cycle through speakers")))),s.a.createElement("li",{className:"list-group-item align-items-center"},s.a.createElement("div",{className:"media mb-0"},s.a.createElement("kbd",{className:"me-3"},s.a.createElement("kbd",null,"CTRL")," + ",s.a.createElement("kbd",null,"Z")),s.a.createElement("div",{className:"media-body"},s.a.createElement("p",{className:"fw-bold my-1"},s.a.createElement("i",{className:"fas fa-undo fa-fw me-1"})," Undo the last change(s) you made")))),s.a.createElement("li",{className:"list-group-item align-items-center"},s.a.createElement("div",{className:"media mb-0"},s.a.createElement("kbd",{className:"me-3"},s.a.createElement("kbd",null,"CTRL")," + ",s.a.createElement("kbd",null,"SHIFT")," + ",s.a.createElement("kbd",null,"Z")),s.a.createElement("div",{className:"media-body"},s.a.createElement("p",{className:"fw-bold my-1"},s.a.createElement("i",{className:"fas fa-redo fa-fw me-1"})," Redo the last change(s) you made")))))),s.a.createElement("div",{className:"col-sm-12 col-md-6"},s.a.createElement("h4",{className:"mb-2 text--color"},s.a.createElement("i",{className:"fas fa-search-plus fa-fw me-2"}),s.a.createElement("span",{className:"fw-bold"},"Search transcript")),s.a.createElement("ul",{className:"list-group list-group-hover mb-4"},s.a.createElement("li",{className:"list-group-item align-items-center"},s.a.createElement("div",{className:"media mb-0"},s.a.createElement("kbd",{className:"me-3"},s.a.createElement("kbd",null,"CTRL")," + ",s.a.createElement("kbd",null,"F")),s.a.createElement("div",{className:"media-body"},s.a.createElement("p",{className:"fw-bold my-1"},s.a.createElement("i",{className:"fas fa-search fa-fw me-1"})," Find text with browser's search function")))),s.a.createElement("li",{className:"list-group-item align-items-center"},s.a.createElement("div",{className:"media mb-0"},s.a.createElement("kbd",{className:"me-3"},s.a.createElement("kbd",null,"CTRL")," + ",s.a.createElement("kbd",null,"SHIFT")," + ",s.a.createElement("kbd",null,"H")),s.a.createElement("div",{className:"media-body"},s.a.createElement("p",{className:"fw-bold my-1"},s.a.createElement("i",{className:"fas fa-window-restore fa-fw me-1"})," Find and replace text or phrases"))))),s.a.createElement("h4",{className:"mb-2 text--color"},s.a.createElement("i",{className:"fas fa-mouse-pointer fa-fw me-2"}),s.a.createElement("span",{className:"fw-bold"},"Selecting")),s.a.createElement("ul",{className:"list-group list-group-hover mb-4"},s.a.createElement("li",{className:"list-group-item align-items-center"},s.a.createElement("div",{className:"media mb-0"},s.a.createElement("kbd",{className:"me-3"},s.a.createElement("kbd",null,"CTRL")," + ",s.a.createElement("kbd",null,"H")),s.a.createElement("div",{className:"media-body"},s.a.createElement("p",{className:"fw-bold my-1"},s.a.createElement("i",{className:"fas fa-highlighter fa-fw me-1"})," Highlight selected text and see timestamps")))),s.a.createElement("li",{className:"list-group-item align-items-center"},s.a.createElement("div",{className:"media mb-0"},s.a.createElement("kbd",{className:"me-3"},s.a.createElement("kbd",null,"CTRL")," + ",s.a.createElement("kbd",null,"S")),s.a.createElement("div",{className:"media-body"},s.a.createElement("p",{className:"fw-bold my-1"},s.a.createElement("i",{className:"fas fa-strikethrough fa-fw me-1"})," Red strikethrough selected text with timestamps")))),s.a.createElement("li",{className:"list-group-item align-items-center"},s.a.createElement("div",{className:"media mb-0"},s.a.createElement("kbd",{className:"me-3"},s.a.createElement("kbd",null,"CTRL")," + ",s.a.createElement("kbd",null,"D")),s.a.createElement("div",{className:"media-body"},s.a.createElement("p",{className:"fw-bold my-1"},s.a.createElement("i",{className:"fas fa-atlas fa-fw me-1"})," Add selected text to your custom dictionary")))),s.a.createElement("li",{className:"list-group-item align-items-center"},s.a.createElement("div",{className:"media mb-0"},s.a.createElement("kbd",{className:"me-3"},s.a.createElement("kbd",null,"CTRL")," + ",s.a.createElement("kbd",null,"K")),s.a.createElement("div",{className:"media-body"},s.a.createElement("p",{className:"fw-bold my-1"},s.a.createElement("i",{className:"fas fa-cut fa-fw me-1"})," Create a clip with selected text")))),s.a.createElement("li",{className:"list-group-item align-items-center"},s.a.createElement("div",{className:"media mb-0"},s.a.createElement("kbd",{className:"me-3"},s.a.createElement("kbd",null,"CTRL")," + ",s.a.createElement("kbd",null,"I")),s.a.createElement("div",{className:"media-body"},s.a.createElement("p",{className:"fw-bold my-1"},s.a.createElement("i",{className:"fas fa-check-square fa-fw me-1"})," Mark current paragraph as completed"))))),s.a.createElement("h4",{className:"mb-2 text--color"},s.a.createElement("i",{className:"fas fa-computer-classic fa-fw me-2"}),s.a.createElement("span",{className:"fw-bold"},"Editor-specific")),s.a.createElement("ul",{className:"list-group list-group-hover mb-4"},s.a.createElement("li",{className:"list-group-item align-items-center"},s.a.createElement("div",{className:"media mb-0"},s.a.createElement("kbd",{className:"me-3"},s.a.createElement("kbd",null,"CTRL")," + ",s.a.createElement("kbd",null,"SHIFT")," + ",s.a.createElement("kbd",null,"F")),s.a.createElement("div",{className:"media-body"},s.a.createElement("p",{className:"fw-bold my-1"},s.a.createElement("i",{className:"fas fa-caret-square-up fa-fw me-1"})," Collapse top menu for more space")))),s.a.createElement("li",{className:"list-group-item align-items-center"},s.a.createElement("div",{className:"media mb-0"},s.a.createElement("kbd",{className:"me-3"},s.a.createElement("kbd",null,"CTRL")," + ",s.a.createElement("kbd",null,"U")),s.a.createElement("div",{className:"media-body"},s.a.createElement("p",{className:"fw-bold my-1"},s.a.createElement("i",{className:"fas fa-video fa-fw me-1"})," Toggle video size (small, large, hidden)")))),s.a.createElement("li",{className:"list-group-item align-items-center"},s.a.createElement("div",{className:"media mb-0"},s.a.createElement("kbd",{className:"me-3"},s.a.createElement("kbd",null,"CTRL")," + ",s.a.createElement("kbd",null,"E")),s.a.createElement("div",{className:"media-body"},s.a.createElement("p",{className:"fw-bold my-1"},s.a.createElement("i",{className:"fas fa-download fa-fw me-1"})," Export to your computer")))),s.a.createElement("li",{className:"list-group-item align-items-center"},s.a.createElement("div",{className:"media mb-0"},s.a.createElement("kbd",{className:"me-3"},s.a.createElement("kbd",null,"CTRL")," + ",s.a.createElement("kbd",null,"/")),s.a.createElement("div",{className:"media-body"},s.a.createElement("p",{className:"fw-bold my-1"},s.a.createElement("i",{className:"fas fa-keyboard fa-fw me-1"})," Show keyboard shortcuts (this window)"))))))))}},{key:"render",value:function(){var e=this.props.store.uiState.modals;return s.a.createElement(ao,{modalClasses:"smodal--content smodal--content-lg",onEnter:this.onModalClose,isOpen:e.KeyboardShortcuts,onRequestClose:this.onModalClose,onAfterOpen:this.onAfterOpen,modalTitle:"Edit faster with these keyboard shortcuts",modalIcon:"far fa-keyboard"},this.renderModalContents())}}])&&cV(t.prototype,n),r&&cV(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),dV(iV.prototype,"onModalClose",[rV],Object.getOwnPropertyDescriptor(iV.prototype,"onModalClose"),iV.prototype),dV(iV.prototype,"onAfterOpen",[oV],Object.getOwnPropertyDescriptor(iV.prototype,"onAfterOpen"),iV.prototype),aV=iV))||aV)||aV),kV=_V,OV=function(e){var t=e.recording,n=Object(we.i)(t.language);return s.a.createElement("div",{className:"form-group position--relative mb-3"},s.a.createElement("label",{className:"mb-1 text--color-meta-dark"},s.a.createElement("i",{className:"far fa-volume fa-fw me-2"}),"Original transcript language"),s.a.createElement("div",{className:"form-control h-auto text--size-1000rem",readOnly:!0},s.a.createElement("div",{className:"d-inline-block text--noselect"},s.a.createElement("span",{className:"me-2"},n.language),n.flag.split(",").map((function(e,t){return s.a.createElement("i",{key:"selected-flag-"+t,className:"flag-icon mx-1 flag-icon-"+e})})))))};function xV(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function SV(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function jV(e,t){return jV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jV(e,t)}function CV(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=NV(e);if(t){var o=NV(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return DV(e)}(this,n)}}function DV(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function NV(e){return NV=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},NV(e)}function PV(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var TV,MV,AV,LV,RV,FV,zV,BV,YV,IV,HV=function(e){var t=e.recording,n=e.translationCost,r=e.translationPricePerHour;return s.a.createElement("table",{className:"table table--border table--row-hover table--header-sm table--padding-lg mb-4"},s.a.createElement("tbody",{className:"table--text-size"},s.a.createElement("tr",null,s.a.createElement("td",null,"Translation rate"),s.a.createElement("td",{className:"text-sm-end"},r," / hr")),s.a.createElement("tr",null,s.a.createElement("td",null,"File duration"),s.a.createElement("td",{className:"text-sm-end"},t.formattedDuration)),s.a.createElement("tr",{className:"text--weight-700 bgcolor--sidebar"},s.a.createElement("td",null,"Translation charge"),s.a.createElement("td",{className:"text-sm-end"},n))))},UV=function(e){var t=e.user,n=e.recording;return s.a.createElement("div",{className:"mb-3"},s.a.createElement(ko,{icon:"fa-globe fa-3x me-3 me-md-4"},s.a.createElement("h4",null,"Translation uses additional minutes"),s.a.createElement("p",{className:"mb-0"},"You have ",Object(we.c)(t.totalCredit)," remaining. If you translate this transcript, we will deduct ",n.formattedDurationLong,".")))},WV=function(e){var t=e.user,n=e.recording,r=t.isTrial?"You have ".concat(Object(we.c)(t.totalCredit)," remaining, but translating requires you to have ").concat(n.formattedDurationLong,". Please upgrade."):"You have ".concat(Object(we.c)(t.totalCredit)," remaining. To continue translating this transcript, you need to have ").concat(n.formattedDurationLong,".");return s.a.createElement("div",{className:"mb-3"},s.a.createElement("div",{className:"alert alert-trial media"},s.a.createElement("i",{className:"far fa-globe fa-3x me-3 d-block align-self-center"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("h4",null,"You need additional time"),s.a.createElement("p",{className:"mb-3"},r),s.a.createElement("a",{className:"btn btn-alert mb-0",href:"/upgrade"},s.a.createElement("i",{className:"far fa-arrow-right me-2"}),t.isTrial?"Upgrade now":"Add more time"))))},VV=(mV=Object(se.b)("store","user"),hV=d.action.bound,yV=d.action.bound,bV=d.action.bound,mV(vV=Object(se.c)((gV=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jV(e,t)}(a,e);var t,n,r,o=CV(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return xV(e=o.call.apply(o,[this].concat(n)),"saving",wV,DV(e)),xV(e,"translationLanguage",EV,DV(e)),e}return t=a,n=[{key:"translate",value:function(){var e=this,t=this.props,n=t.store,r=t.user;this.saving=!0,n.startTranslation(this.translationLanguage).then((function(){e.saving=!1,r.removeCredit(n.duration),Object(we.k)("app.translation.new_translation",e.translationLanguage,n.duration),n.uiState.hideNewTranslationModal()}))}},{key:"setTranslationLanguage",value:function(e){this.translationLanguage=e.value}},{key:"onAfterOpen",value:function(){Object(we.k)("app.translation.view_new_translation_modal")}},{key:"renderButtons",value:function(e){var t=this.props,n=t.store,r=t.user.hasCreditFor(n.duration),o=n.uiState,a=o.blockExportsToSave,i=o.hideNewTranslationModal;return a?s.a.createElement(wB,{onCancel:i,actionText:"translating"}):this.saving?s.a.createElement(_o,{text:"Starting Translation. Please wait."}):r?s.a.createElement("div",{className:"mb-4"},s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("button",{className:"btn btn-primary t--translation-button-translate",onClick:this.translate},s.a.createElement("i",{className:"far fa-arrow-right me-2"}),e?"Re-translate now":"Translate now"),s.a.createElement("button",{className:"btn",onClick:i},s.a.createElement("i",{className:"far fa-times me-2"}),"Cancel"))):void 0}},{key:"renderPricingSection",value:function(){var e=this.props,t=e.store,n=e.user,r=t.recording,o=t.translationCost,a=t.translationPricePerHour;return n.isSubscribed&&!n.payByCheck?s.a.createElement("div",{className:"mb-0"},s.a.createElement("label",{className:"mb-0"},s.a.createElement("h3",{className:"text--size-1000rem text--color-meta-dark text--transform-none"},s.a.createElement("i",{className:"far fa-file-invoice-dollar fa-fw me-2"}),"Additional charge for translation")),s.a.createElement(HV,{recording:r,translationCost:o,translationPricePerHour:a})):n.hasCreditFor(t.duration)?s.a.createElement(UV,{user:n,recording:r}):s.a.createElement(WV,{user:n,recording:r})}},{key:"renderContent",value:function(){var e=this,t=this.props.store,n=t.recording,r=t.sourceLangDeepLSupported,o=t.translations.map((function(e){return e.language})),a=we.o.filter((function(e){return!(r?e.awsOnly:e.deepLOnly)&&e.code!==n.languageCodeForTranslation})),i=a.map((function(e){return{value:e.code,label:e.language,flag:e.flag}}));null===this.translationLanguage&&(this.translationLanguage=i[0].value);var l=i.find((function(t){return t.value===e.translationLanguage})),c=!!l&&o.includes(this.translationLanguage);return s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10"},s.a.createElement(OV,{recording:n}),s.a.createElement(qo.a,{className:"form-group position--relative mb-3",options:i,disabled:this.saving,value:this.translationLanguage,onChange:this.setTranslationLanguage}),this.renderPricingSection(),c&&s.a.createElement("div",{className:"alert alert-warning media"},s.a.createElement("i",{className:"far fa-exclamation-triangle me-3 fa-2x"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("h4",null,s.a.createElement("strong",{className:"d-block"},"Replace existing ",l.label," transcript?")),s.a.createElement("span",null,"We will re-translate and overwrite your ",l.label," transcript. All prior edits cannot be recovered."))),this.renderButtons(c),s.a.createElement(Wo,null)))}},{key:"render",value:function(){var e=this.props.store.uiState,t=e.hideNewTranslationModal,n=e.modals;return s.a.createElement(ao,{modalClasses:"smodal--content smodal--content-sm",modalTitle:"Automated translation",modalIcon:"far fa-globe",modalHelp:s.a.createElement(Uo,null),onEnter:this.save,onAfterOpen:this.onAfterOpen,isOpen:n.NewTranslation,onRequestClose:t},this.renderContent())}}],n&&SV(t.prototype,n),r&&SV(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),wV=PV(gV.prototype,"saving",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),EV=PV(gV.prototype,"translationLanguage",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"es"}}),PV(gV.prototype,"translate",[hV],Object.getOwnPropertyDescriptor(gV.prototype,"translate"),gV.prototype),PV(gV.prototype,"setTranslationLanguage",[yV],Object.getOwnPropertyDescriptor(gV.prototype,"setTranslationLanguage"),gV.prototype),PV(gV.prototype,"onAfterOpen",[bV],Object.getOwnPropertyDescriptor(gV.prototype,"onAfterOpen"),gV.prototype),vV=gV))||vV)||vV),qV=VV;function GV(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function KV(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function $V(e,t){return $V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$V(e,t)}function JV(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=QV(e);if(t){var o=QV(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return XV(e)}(this,n)}}function XV(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QV(e){return QV=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},QV(e)}function ZV(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var eq,tq,nq,rq,oq,aq,iq,lq,sq,cq,uq,fq,pq,dq,mq,hq=(TV=d.action.bound,MV=d.action.bound,AV=d.action.bound,Object(se.c)((RV=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$V(e,t)}(a,e);var t,n,r,o=JV(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return GV(e=o.call.apply(o,[this].concat(n)),"saving",FV,XV(e)),GV(e,"serverError",zV,XV(e)),GV(e,"newTranscript",BV,XV(e)),GV(e,"translationLanguage",YV,XV(e)),GV(e,"showBlankError",IV,XV(e)),e}return t=a,n=[{key:"setNewTranscript",value:function(e){this.newTranscript=e.target.value,this.showBlankError=!1}},{key:"setTranslationLanguage",value:function(e){this.translationLanguage=e.value}},{key:"save",value:function(){var e=this,t=this.props.store;this.serverError="",""!==this.newTranscript.trim()?(this.showBlankError=!1,this.saving=!0,t.transportLayer.importTranslationSrt({text:this.newTranscript,language:this.translationLanguage}).then((function(n){e.saving=!1,t.translations=n.data.translations,t.fetchTranslation(n.data.new_translation.id),t.uiState.hideNewTranslationSrtModal()})).catch((function(t){e.saving=!1,e.serverError=t.response.data.error}))):this.showBlankError=!0}},{key:"renderButtons",value:function(){var e=this.props.store.uiState;return this.saving?s.a.createElement(_o,{text:"Importing SRT. Just a moment."}):s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("button",{className:"btn btn-primary t--timecode-import-transcript",onClick:this.save},s.a.createElement("i",{className:"fa fa-check me-2"}),"Import Translated SRT"),s.a.createElement("button",{className:"btn",onClick:e.hideNewTranslationSrtModal},s.a.createElement("i",{className:"fa fa-times me-2"}),"Cancel"))}},{key:"renderContent",value:function(){var e=this.props.store.recording,t=we.o.map((function(e){return{value:e.code,label:e.language,flag:e.flag}}));return s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10 mb-2"},s.a.createElement(OV,{recording:e}),s.a.createElement(qo.a,{className:"form-group position--relative mb-3",options:t,prompt:"What language is your translated SRT in?",disabled:this.saving,value:this.translationLanguage,onChange:this.setTranslationLanguage}),s.a.createElement("label",{className:"input--label text--size-1000rem text--color-meta-dark text--transform-none",htmlFor:"transcript-text"},"Please copy and paste your translated SRT file below:"),s.a.createElement("textarea",{value:this.newTranscript,onChange:this.setNewTranscript,rows:5,className:"form-control border-radius--flat-bottom",placeholder:"Make sure your SRT file is properly formatted with correct timestamps. We will automatically remove the timestamps when showing you the transcript."}),this.showBlankError&&s.a.createElement(ni,null,"Transcript cannot be blank"),!!this.serverError&&s.a.createElement(ni,null,this.serverError),this.renderButtons()))}},{key:"render",value:function(){var e=this.props.store.uiState;return s.a.createElement(ao,{modalClasses:"smodal--content smodal--content-sm",modalTitle:"Import Translated SRT",modalIcon:"far fa-file-import",onEnter:this.save,isOpen:e.modals.NewTranslationSrt,onRequestClose:e.hideNewTranslationSrtModal},this.renderContent())}}],n&&KV(t.prototype,n),r&&KV(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),FV=ZV(RV.prototype,"saving",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),zV=ZV(RV.prototype,"serverError",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),BV=ZV(RV.prototype,"newTranscript",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),YV=ZV(RV.prototype,"translationLanguage",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"es"}}),IV=ZV(RV.prototype,"showBlankError",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ZV(RV.prototype,"setNewTranscript",[TV],Object.getOwnPropertyDescriptor(RV.prototype,"setNewTranscript"),RV.prototype),ZV(RV.prototype,"setTranslationLanguage",[MV],Object.getOwnPropertyDescriptor(RV.prototype,"setTranslationLanguage"),RV.prototype),ZV(RV.prototype,"save",[AV],Object.getOwnPropertyDescriptor(RV.prototype,"save"),RV.prototype),LV=RV))||LV),yq=hq,bq=function(e){var t=e.onChange,n=e.uploadSRT;return s.a.createElement("div",{className:"custom--sonix-block custom-controls-stacked"},s.a.createElement("label",{className:"custom-control custom-radio clickable mb-0"},s.a.createElement("input",{type:"radio",className:"custom-control-input",checked:!n,value:"txt",onChange:t}),s.a.createElement("div",{className:"custom-control-description custom-control-description-bg p-2"},s.a.createElement("div",{className:"media"},s.a.createElement("span",{className:"fa-stack fa-lg me-3 align-self-center"},s.a.createElement("i",{className:"far fa-fw fa-file-lines fa-stack-1x"})),s.a.createElement("div",{className:"media-body"},s.a.createElement("p",{className:"my-2 align-self-center"},"Plain text: Only includes text of what was spoken (no timecodes or speaker names)"))))),s.a.createElement("label",{className:"custom-control custom-radio clickable mb-0"},s.a.createElement("input",{type:"radio",className:"custom-control-input",checked:n,value:"srt",onChange:t}),s.a.createElement("div",{className:"custom-control-description custom-control-description-bg p-2"},s.a.createElement("div",{className:"media"},s.a.createElement("span",{className:"fa-stack fa-lg me-3 align-self-center"},s.a.createElement("i",{className:"far fa-fw fa-timer fa-stack-1x"})),s.a.createElement("div",{className:"media-body"},s.a.createElement("p",{className:"my-2 align-self-center"},"SRT file format: Existing transcript has text of what was spoken with timecodes"))))))};function vq(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function gq(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function wq(e,t){return wq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wq(e,t)}function Eq(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=kq(e);if(t){var o=kq(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _q(e)}(this,n)}}function _q(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kq(e){return kq=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kq(e)}function Oq(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var xq=(eq=d.action.bound,tq=d.action.bound,nq=d.action.bound,rq=d.action.bound,oq=d.action.bound,Object(se.c)((iq=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wq(e,t)}(a,e);var t,n,r,o=Eq(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return vq(e=o.call.apply(o,[this].concat(n)),"fetchingData",lq,_q(e)),vq(e,"saving",sq,_q(e)),vq(e,"serverError",cq,_q(e)),vq(e,"alignmentData",uq,_q(e)),vq(e,"newTranscript",fq,_q(e)),vq(e,"showBlankError",pq,_q(e)),vq(e,"showSrtDetectedError",dq,_q(e)),vq(e,"uploadSRT",mq,_q(e)),e}return t=a,(n=[{key:"toggleUploadSRT",value:function(e){this.uploadSRT="srt"===e.target.value}},{key:"setNewTranscript",value:function(e){this.newTranscript=e.target.value,this.showBlankError=!1,this.showSrtDetectedError=!1}},{key:"fetchAlignmentData",value:function(){var e=this,t=this.props.store.transportLayer;this.fetchingData=!0,t.fetchAlignmentData().then(Object(d.action)((function(t){e.alignmentData=t,e.fetchingData=!1,e.showBlankError=!1,e.showSrtDetectedError=!1})))}},{key:"detectedSrtFile",value:function(){var e=this.newTranscript.split("\n");return"1"==e[0]&&!!e[1].match("--\x3e")}},{key:"save",value:function(){var e=this,t=this.props,n=t.store,r=t.user;this.serverError="",""!==this.newTranscript.trim()?this.uploadSRT||!this.detectedSrtFile()?(this.showSrtDetectedError=!1,this.showBlankError=!1,this.saving=!0,n.transportLayer.startAlignment({text:this.newTranscript,upload_srt:this.uploadSRT}).then((function(){r.removeCredit(n.duration),n.fetchRecording().then((function(){e.saving=!1,n.uiState.hidePasteExternalTranscriptModal()}))})).catch((function(t){e.saving=!1,e.serverError=t.response.data.error}))):this.showSrtDetectedError=!0:this.showBlankError=!0}},{key:"renderButtons",value:function(){var e=this.props.store.uiState;return this.saving?s.a.createElement(_o,{text:"Starting realignment process. Just a moment."}):s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("button",{className:"btn btn-primary t--timecode-import-transcript",onClick:this.save},s.a.createElement("i",{className:"fa fa-check me-2"}),"Import and align"),s.a.createElement("button",{className:"btn",onClick:e.hidePasteExternalTranscriptModal},s.a.createElement("i",{className:"fa fa-times me-2"}),"Cancel"))}},{key:"renderChargeSection",value:function(){var e=this.props,t=e.store,n=e.user,r=t.duration,o=t.recording,a=t.isVideo;return n.isSubscribed&&!n.payByCheck?s.a.createElement("div",{className:"alert alert-warning media mt-4"},s.a.createElement("i",{className:"far fa-file-invoice-dollar me-3 fa-2x align-self-center"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("p",null,"This ",a?"video":"audio"," file is ",o.formattedDuration," long. There is an additional charge of ",this.alignmentData.cost," to import and align this transcript."),r>3600&&s.a.createElement("p",{className:"mt-2"},s.a.createElement("strong",null,"Heads up: ",a?"Video":"Audio"," files longer than one hour or with low quality audio may take a while to complete.")))):s.a.createElement("div",{className:"alert alert-warning media"},s.a.createElement("i",{className:"far fa-clock me-2 fa-fw fa-2x align-self-center"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("p",null,"You have ",Object(we.c)(n.totalCredit)," remaining. We will deduct ",o.formattedDurationLong," to realign the words to this file.")))}},{key:"renderContent",value:function(){var e=this.props,t=e.store,n=e.user;return this.fetchingData?s.a.createElement(_o,null):this.alignmentData.can_align?s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10 mb-2"},s.a.createElement("p",null,"You may have edited your transcript in other programs; now, have our algorithms realign the words to the audio. What are you importing?"),s.a.createElement("div",{className:"d-block mb-3"},s.a.createElement(bq,{onChange:this.toggleUploadSRT,uploadSRT:this.uploadSRT})),s.a.createElement("label",{className:"input--label text--size-1000rem text--color-meta-dark text--transform-none",htmlFor:"transcript-text"},this.uploadSRT?"Please copy and paste your SRT below:":"Please copy and paste your existing text transcript below:"),s.a.createElement("textarea",{value:this.newTranscript,onChange:this.setNewTranscript,rows:5,className:"form-control border-radius--flat-bottom",placeholder:this.uploadSRT?"Make sure your SRT file is properly formatted. We will automatically remove the timestamps for you when we realign it.":"Paste your text transcript here. Use a new line to separate different speakers."}),this.showBlankError&&s.a.createElement(ni,null,"Transcript cannot be blank"),this.showSrtDetectedError&&s.a.createElement(ni,null,"Transcript is SRT but text was chosen."),!!this.serverError&&s.a.createElement(ni,null,this.serverError),this.renderButtons(),this.renderChargeSection())):s.a.createElement(Sq,{user:n,recording:t.recording})}},{key:"render",value:function(){var e=this.props.store.uiState;return s.a.createElement(ao,{modalClasses:"smodal--content smodal--content-sm",onAfterOpen:this.fetchAlignmentData,modalTitle:"Import SRT or External Transcript",modalIcon:"far fa-file-import",onEnter:this.save,isOpen:e.modals.PasteExternalTranscript,onRequestClose:e.hidePasteExternalTranscriptModal},this.renderContent())}}])&&gq(t.prototype,n),r&&gq(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),lq=Oq(iq.prototype,"fetchingData",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),sq=Oq(iq.prototype,"saving",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),cq=Oq(iq.prototype,"serverError",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),uq=Oq(iq.prototype,"alignmentData",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),fq=Oq(iq.prototype,"newTranscript",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),pq=Oq(iq.prototype,"showBlankError",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),dq=Oq(iq.prototype,"showSrtDetectedError",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),mq=Oq(iq.prototype,"uploadSRT",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Oq(iq.prototype,"toggleUploadSRT",[eq],Object.getOwnPropertyDescriptor(iq.prototype,"toggleUploadSRT"),iq.prototype),Oq(iq.prototype,"setNewTranscript",[tq],Object.getOwnPropertyDescriptor(iq.prototype,"setNewTranscript"),iq.prototype),Oq(iq.prototype,"fetchAlignmentData",[nq],Object.getOwnPropertyDescriptor(iq.prototype,"fetchAlignmentData"),iq.prototype),Oq(iq.prototype,"detectedSrtFile",[rq],Object.getOwnPropertyDescriptor(iq.prototype,"detectedSrtFile"),iq.prototype),Oq(iq.prototype,"save",[oq],Object.getOwnPropertyDescriptor(iq.prototype,"save"),iq.prototype),aq=iq))||aq),Sq=function(e){var t=e.user,n=e.recording;return t.isTrial?s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10 mb-2"},s.a.createElement("h4",null,s.a.createElement("i",{className:"far fa-file-import me-2 fa-fw"}),"Import transcript"),s.a.createElement("p",null,"You may have edited your transcript in other programs; Now, have our algorithms realign the words to the audio."),s.a.createElement("div",{className:"alert alert-warning"},s.a.createElement("h4",null,s.a.createElement("i",{className:"far fa-fw fa-exclamation-triangle me-2"}),"Importing uses additional minutes"),s.a.createElement("p",{className:"mb-3"},"You have ",Object(we.c)(t.totalCredit)," remaining, but this requires you to have ",n.formattedDurationLong,". Please upgrade to realign the timecodes in this transcript."),s.a.createElement("a",{href:"/upgrade",className:"btn btn-alert",target:"_blank"},s.a.createElement("i",{className:"fa fa-arrow-right me-2"}),"Upgrade now")))):s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10 mb-2"},s.a.createElement("h4",null,s.a.createElement("i",{className:"far fa-file-import me-2 fa-fw"}),"Import transcript"),s.a.createElement("p",null,"You may have edited your transcript in other programs; Now, have our algorithms realign the words to the audio."),s.a.createElement("div",{className:"alert alert-warning"},s.a.createElement("h4",null,s.a.createElement("i",{className:"far fa-fw fa-exclamation-triangle me-2"}),"Importing uses additional minutes"),s.a.createElement("p",{className:"mb-3"},"You have ",Object(we.c)(t.totalCredit)," remaining. To continue realigning the timecodes in this transcript, you need to have ",n.formattedDurationLong,". Please add more hours."),s.a.createElement("a",{href:"/upgrade",className:"btn btn-alert",target:"_blank"},s.a.createElement("i",{className:"fa fa-plus me-2"}),"Add more hours"))))},jq=xq,Cq=n(190),Dq=n.n(Cq);function Nq(e,t,n,r,o,a,i){if(void 0===t&&(t=2),void 0===n&&(n="."),void 0===r&&(r=","),void 0===o&&(o=!1),void 0===a&&(a=""),void 0===i&&(i=""),t<0&&(t=0),t>20&&(t=20),null==e)return{value:0,maskedValue:""};if(0==(e=String(e)).length)return{value:0,maskedValue:""};var l=e.match(/\d/g)||["0"],s=!1;if(o){s=(e.match(/-/g)||[]).length%2==1;for(var c=!0,u=0;u<l.length;u+=1)if("0"!==l[u]){c=!1;break}c&&(s=!1)}for(;l.length<=t;)l.unshift("0");t>0&&l.splice(l.length-t,0,"."),l=Number(l.join("")).toFixed(t).split("");var f=Number(l.join("")),p=l.length-t-1;t>0?l[p]=n:p=l.length;for(var d=p-3;d>0;d-=3)l.splice(d,0,r);return a.length>0&&l.unshift(a),i.length>0&&l.push(i),o&&s&&(l.unshift("-"),f=-f),{value:f,maskedValue:l.join("").trim()}}Object.assign=Object.assign||function(e){for(var t=arguments,n=1;n<arguments.length;n++){var r=t[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Number.parseFloat=parseFloat;var Pq=function(e){function t(t){e.call(this,t),this.prepareProps=this.prepareProps.bind(this),this.handleChange=this.handleChange.bind(this),this.handleFocus=this.handleFocus.bind(this),this.state=this.prepareProps(this.props),this.inputSelectionStart=1,this.inputSelectionEnd=1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getMaskedValue=function(){return this.state.maskedValue},t.prototype.prepareProps=function(e){var t=Object.assign({},e);delete t.onChange,delete t.onChangeEvent,delete t.value,delete t.decimalSeparator,delete t.thousandSeparator,delete t.precision,delete t.inputType,delete t.allowNegative,delete t.allowEmpty,delete t.prefix,delete t.suffix,delete t.selectAllOnFocus,delete t.autoFocus;var n=e.value;null===n?n=e.allowEmpty?null:"":("string"==typeof n&&("."===e.thousandSeparator&&(n=n.replace(/\./g,"")),"."!=e.decimalSeparator&&(n=n.replace(new RegExp(e.decimalSeparator,"g"),".")),n=n.replace(/[^0-9-.]/g,""),n=Number.parseFloat(n)),n=Number(n).toLocaleString(void 0,{style:"decimal",minimumFractionDigits:e.precision,maximumFractionDigits:e.precision}));var r=Nq(n,e.precision,e.decimalSeparator,e.thousandSeparator,e.allowNegative,e.prefix,e.suffix);return{maskedValue:r.maskedValue,value:r.value,customProps:t}},t.prototype.componentWillReceiveProps=function(e){this.setState(this.prepareProps(e))},t.prototype.componentDidMount=function(){var e,t,n=u.a.findDOMNode(this.theInput);this.props.autoFocus?(this.theInput.focus(),e=t=this.state.maskedValue.length-this.props.suffix.length):(t=Math.min(n.selectionEnd,this.theInput.value.length-this.props.suffix.length),e=Math.min(n.selectionStart,t)),n.setSelectionRange(e,t)},t.prototype.componentWillUpdate=function(){var e=u.a.findDOMNode(this.theInput);this.inputSelectionStart=e.selectionStart,this.inputSelectionEnd=e.selectionEnd},t.prototype.componentDidUpdate=function(e,t){var n=this.props.decimalSeparator,r=u.a.findDOMNode(this.theInput),o=(this.theInput.value.match(/-/g)||[]).length%2==1,a=this.props.prefix.length+(o?1:0),i=Math.max(a,Math.min(this.inputSelectionEnd,this.theInput.value.length-this.props.suffix.length)),l=Math.max(a,Math.min(this.inputSelectionEnd,i)),s=/[-[\]{}()*+?.,\\^$|#\s]/g,c=new RegExp(n.replace(s,"\\$&")+"|"+this.props.thousandSeparator.replace(s,"\\$&"),"g"),f=(this.state.maskedValue.match(c)||[]).length,p=(t.maskedValue.match(c)||[]).length,d=Math.max(f-p,0);i+=d,l+=d;var m=Number(this.props.precision),h=this.props.suffix.length+this.props.prefix.length+(m>0?n.length:0)+m+1;this.state.maskedValue.length==h&&(l=i=this.theInput.value.length-this.props.suffix.length),r.setSelectionRange(l,i),this.inputSelectionStart=l,this.inputSelectionEnd=i},t.prototype.handleChange=function(e){var t=this;e.preventDefault();var n=Nq(e.target.value,this.props.precision,this.props.decimalSeparator,this.props.thousandSeparator,this.props.allowNegative,this.props.prefix,this.props.suffix),r=n.maskedValue,o=n.value;e.persist(),this.setState({maskedValue:r,value:o},(function(){t.props.onChange(r,o,e),t.props.onChangeEvent(e,r,o)}))},t.prototype.handleFocus=function(e){if(this.theInput){var t=this.theInput.value.length-this.props.suffix.length,n=(this.theInput.value.match(/-/g)||[]).length%2==1,r=this.props.prefix.length+(n?1:0);this.props.selectAllOnFocus&&e.target.setSelectionRange(r,t),this.inputSelectionStart=r,this.inputSelectionEnd=t}},t.prototype.handleBlur=function(e){this.inputSelectionStart=0,this.inputSelectionEnd=0},t.prototype.render=function(){var e=this;return s.a.createElement("input",Object.assign({},{ref:function(t){e.theInput=t},type:this.props.inputType,value:this.state.maskedValue,onChange:this.handleChange,onFocus:this.handleFocus,onMouseUp:this.handleFocus},this.state.customProps))},t}(l.Component);Pq.propTypes={onChange:Dq.a.func,value:Dq.a.oneOfType([Dq.a.number,Dq.a.string]),decimalSeparator:Dq.a.string,thousandSeparator:Dq.a.string,precision:Dq.a.oneOfType([Dq.a.number,Dq.a.string]),inputType:Dq.a.string,allowNegative:Dq.a.bool,allowEmpty:Dq.a.bool,prefix:Dq.a.string,suffix:Dq.a.string,selectAllOnFocus:Dq.a.bool},Pq.defaultProps={onChange:function(e,t,n){},onChangeEvent:function(e,t,n){},autoFocus:!1,value:"0",decimalSeparator:".",thousandSeparator:",",precision:"2",inputType:"text",allowNegative:!1,prefix:"",suffix:"",selectAllOnFocus:!1};var Tq,Mq,Aq,Lq,Rq,Fq,zq,Bq,Yq,Iq=Pq;function Hq(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Uq(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Wq(e,t){return Wq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wq(e,t)}function Vq(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Gq(e);if(t){var o=Gq(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return qq(e)}(this,n)}}function qq(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gq(e){return Gq=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Gq(e)}function Kq(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var $q,Jq=(Tq=Object(se.b)("store"),Mq=d.action.bound,Aq=d.action.bound,Lq=d.action.bound,Tq(Rq=Object(se.c)((Fq=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wq(e,t)}(a,e);var t,n,r,o=Vq(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),Hq(t=o.call(this,e),"saving",zq,qq(t)),Hq(t,"shareWithPatrons",Bq,qq(t)),Hq(t,"minPatronageAmount",Yq,qq(t)),t.shareWithPatrons=t.props.store.recording.shareWithPatrons,t.minPatronageAmount=t.props.store.recording.minPatronageAmount,t}return t=a,(n=[{key:"updateShareWithPatrons",value:function(e){this.shareWithPatrons="true"===e.target.value}},{key:"updateMinPatronageAmount",value:function(e,t){this.minPatronageAmount=t}},{key:"save",value:function(){var e=this,t=this.props.store.uiState;this.saving=!0,this.props.store.transportLayer.updateShareWithPatrons(this.shareWithPatrons,this.minPatronageAmount).then((function(){t.hidePatreonModal(),e.saving=!1}))}},{key:"renderButtons",value:function(){var e=this.props.store.uiState;return this.saving?s.a.createElement("div",{className:"form-actions position--relative"},s.a.createElement(_o,{text:"Updating settings. Please wait."})):s.a.createElement("div",{className:"form-actions position--relative"},s.a.createElement("button",{className:"btn btn-primary",onClick:this.save},s.a.createElement("i",{className:"fa fa-check me-2"}),"Save"),s.a.createElement("button",{className:"btn",onClick:e.hidePatreonModal},s.a.createElement("i",{className:"fa fa-times me-2"}),"Cancel"))}},{key:"renderPatronageAmountInput",value:function(){if(this.shareWithPatrons)return s.a.createElement("div",{className:"form-group position--relative mb-4"},s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement("label",{className:"input--label",htmlFor:"inputEmails"},"Level of patronage to view"),s.a.createElement("div",{className:"input-group"},s.a.createElement("div",{className:"input-group-addon"},s.a.createElement("span",null,"$")),s.a.createElement(Iq,{value:this.minPatronageAmount,onChangeEvent:this.updateMinPatronageAmount,className:"form-control",id:"Minimum thingy",placeholder:"Min: $[ 5 ]"})))))}},{key:"render",value:function(){var e=this.props.store.uiState;return s.a.createElement(ao,{modalClasses:"smodal--content smodal--content-sm",onEnter:this.save,isOpen:e.modals.Patreon,onRequestClose:e.hidePatreonModal,modalTitle:"Share with your patrons",modalIcon:"fab fa-patreon"},s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10"},s.a.createElement("div",{className:"app-image"},s.a.createElement("div",{className:"app-sonix-loves-patreon img-fluid"},"Sonix loves Patreon")),s.a.createElement("p",null,"Control which patrons receive exclusive access to an interactive transcript of your content. Perfect way to share behind the scenes content."),s.a.createElement("p",null,"For your patrons who do not have a Sonix account, direct them to ",s.a.createElement("a",{href:"https://sonix.ai/patreon-access",target:"_blank"},"https://sonix.ai/patreon-access")," to get started."),s.a.createElement("div",{className:"form-group position--relative mb-4"},s.a.createElement("div",{className:"custom--sonix-block custom-controls-stacked"},s.a.createElement("label",{className:"custom-control custom-radio clickable"},s.a.createElement("input",{id:"patreon-private",name:"radio-stacked",type:"radio",className:"custom-control-input",value:!1,checked:!this.shareWithPatrons,onChange:this.updateShareWithPatrons}),s.a.createElement("div",{className:"custom-control-radio"},s.a.createElement("div",{className:"inside"})),s.a.createElement("div",{className:"custom-control-description"},s.a.createElement("h4",null,"Private"),s.a.createElement("p",{className:"text--size-800rem"},"Only you can see this transcript. Clean up and highlight key parts before sharing."))),s.a.createElement("label",{className:"custom-control custom-radio clickable"},s.a.createElement("input",{id:"patreon-shared",name:"radio-stacked",type:"radio",className:"custom-control-input",value:!0,checked:this.shareWithPatrons,onChange:this.updateShareWithPatrons}),s.a.createElement("div",{className:"custom-control-radio"},s.a.createElement("div",{className:"inside"})),s.a.createElement("div",{className:"custom-control-description"},s.a.createElement("h4",null,"Shared with patrons"),s.a.createElement("p",{className:"text--size-800rem"},"Patrons who contribute can view interactive transcript."))))),this.renderPatronageAmountInput(),this.renderButtons())))}}])&&Uq(t.prototype,n),r&&Uq(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),zq=Kq(Fq.prototype,"saving",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Bq=Kq(Fq.prototype,"shareWithPatrons",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Yq=Kq(Fq.prototype,"minPatronageAmount",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Kq(Fq.prototype,"updateShareWithPatrons",[Mq],Object.getOwnPropertyDescriptor(Fq.prototype,"updateShareWithPatrons"),Fq.prototype),Kq(Fq.prototype,"updateMinPatronageAmount",[Aq],Object.getOwnPropertyDescriptor(Fq.prototype,"updateMinPatronageAmount"),Fq.prototype),Kq(Fq.prototype,"save",[Lq],Object.getOwnPropertyDescriptor(Fq.prototype,"save"),Fq.prototype),Rq=Fq))||Rq)||Rq);function Xq(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Qq(e,t){return Qq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Qq(e,t)}function Zq(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=eG(e);if(t){var o=eG(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function eG(e){return eG=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},eG(e)}var tG,nG=Object(se.b)("store")($q=Object(se.c)($q=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qq(e,t)}(a,e);var t,n,r,o=Zq(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"superStar",value:function(){return s.a.createElement("div",{className:"stats--box"},s.a.createElement("h3",{className:"stats--green"},"Very minimal edits required"),s.a.createElement("p",{className:"text--size-800rem"},"It will take you very little time to polish the transcript so that it is perfect. Almost all of the words were easily transcribed with a high level of confidence. This is among the best audio quality that we see."))}},{key:"excellent",value:function(){return s.a.createElement("div",{className:"stats--box"},s.a.createElement("h3",{className:"stats--green"},"Minimal edits required"),s.a.createElement("p",{className:"text--size-800rem mb-2"},"It will take you a few minutes to polish the transcript so that it is perfect. Most of the words were easily transcribed with a high level of confidence. Thanks for uploading such a clear audio file."))}},{key:"good",value:function(){return s.a.createElement("div",{className:"stats--box"},s.a.createElement("h3",{className:"stats--blue"},"Few edits required"),s.a.createElement("p",{className:"text--size-800rem"},"It will take you some time to polish the transcript so that it is perfect. Many of the words were transcribed with a high level of confidence. We hope you enjoy reading along."),s.a.createElement("p",{className:"text--size-800rem"},"Want to spend less time editing next time? ",s.a.createElement("a",{href:"//sonix.ai/how-to-capture-great-audio",target:"_blank"},"A few tips to improve how you record audio for better automated transcription from other Sonix users.")))}},{key:"okay",value:function(){return s.a.createElement("div",{className:"stats--box"},s.a.createElement("h3",{className:"stats--orange"},"Some editing required"),s.a.createElement("p",{className:"text--size-800rem"},"It will take time to polish the transcript to perfection. We couldn't understand what was being said in a few areas. Those areas might be challenging to read. Great for finding key quotes in your audio file."),s.a.createElement("p",{className:"text--size-800rem"},"Want to spend less time editing next time? ",s.a.createElement("a",{href:"//sonix.ai/how-to-capture-great-audio",target:"_blank"},"A few tips to improve how you record audio for better automated transcription from other Sonix users.")))}},{key:"poor",value:function(){return s.a.createElement("div",{className:"stats--box"},s.a.createElement("h3",{className:"stats--red"},"Editing required"),s.a.createElement("p",{className:"text--size-800rem"},"It will take time to edit this transcript to perfection. It might be better to use the transcript to find key quotes."),s.a.createElement("p",{className:"text--size-800rem"},"There are a few areas that will be challenging to read. Want to spend less time editing next time? ",s.a.createElement("a",{href:"//sonix.ai/how-to-capture-great-audio",target:"_blank"},"A few tips to improve how you record audio for better automated transcription from other Sonix users.")))}},{key:"veryPoor",value:function(){return s.a.createElement("div",{className:"stats--box"},s.a.createElement("h3",{className:"stats--red"},"Significant editing required"),s.a.createElement("p",{className:"text--size-800rem"},"It will take a significant amount of time to edit this transcript to perfection. It will be better to use the transcript to identify when key words were said. Also, you should consider human transcription services."),s.a.createElement("p",{className:"text--size-800rem"},"There are a number of areas that will be challenging to read. Want to spend less time editing next time? ",s.a.createElement("a",{href:"//sonix.ai/how-to-capture-great-audio",target:"_blank"},"A few tips to improve how you record audio for better automated transcription from other Sonix users.")))}},{key:"render",value:function(){return this[this.props.store.recording.qualityGrade]()}}])&&Xq(t.prototype,n),r&&Xq(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||$q)||$q,rG=nG;function oG(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function aG(e,t){return aG=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},aG(e,t)}function iG(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=lG(e);if(t){var o=lG(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function lG(e){return lG=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},lG(e)}var sG,cG=Object(se.b)("store")(tG=Object(se.c)(tG=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&aG(e,t)}(a,e);var t,n,r,o=iG(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props.store.transcript,t=Object.keys(Bb),n={};t.forEach((function(t){n[t]=e.wordCountForConfidenceLevels(t)}));var r=t.reduce((function(e,t){return e+n[t]}),0);return s.a.createElement("div",{className:"stats--box stats--box-8rem stats--box-grey"},s.a.createElement("h3",{className:""},"Confidence levels"),s.a.createElement("div",{className:"stats--bar stats--bar-confidence mb-3"},t.map((function(e){var t=(Math.floor(n[e]/r*1e4)/100).toFixed(2);return s.a.createElement("div",{key:e,className:"stats--bar-segment stats--bar-hover-data "+e,style:{width:"".concat(t,"%")},"data-title":Object(we.a)(e.replace(/-/g," "))+", "+t+"% of words"},"".concat(t,"%"),s.a.createElement("span",{"data-hover":n[e]+" words, "+t+"%"},t))}))),s.a.createElement("table",{className:"table simple--table table--border table--row-hover stats--legend stats--legend-confidence pb-0 my-0"},s.a.createElement("thead",null,s.a.createElement("tr",null,s.a.createElement("th",{style:{width:"2.375rem"},className:"text--transform-uppercase py-2"}," "),s.a.createElement("th",{style:{width:"10rem"},className:"text--transform-uppercase py-2"},"Level"),s.a.createElement("th",{style:{width:"auto"},className:"text--transform-uppercase py-2"},"Statistics"))),s.a.createElement("tbody",null,t.map((function(e){var t=(n[e]/r*100).toFixed(2);return s.a.createElement("tr",{key:e,className:e},s.a.createElement("td",{className:"d-none d-md-block"},s.a.createElement("span",{className:"block--legend"}," ")),s.a.createElement("td",{"data-label":"Level"},s.a.createElement("p",{className:" "+e},s.a.createElement("strong",null,Object(we.a)(e.replace(/-/g," "))))),s.a.createElement("td",{"data-label":"Stats"},s.a.createElement("p",{className:"font-family-roboto-mono "+e,style:{letterSpacing:"-0.7px"}},t,"% | ",n[e]," words")))})))))}}])&&oG(t.prototype,n),r&&oG(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||tG)||tG,uG=cG;function fG(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function pG(e,t){return pG=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pG(e,t)}function dG(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=mG(e);if(t){var o=mG(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function mG(e){return mG=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mG(e)}var hG,yG,bG,vG,gG,wG,EG,_G=Object(se.c)(sG=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pG(e,t)}(a,e);var t,n,r,o=dG(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"renderStatsBoxes",value:function(){var e=this.props.store,t=e.user;return e.loaded&&"completed"===e.recording.status?s.a.createElement("div",{className:"stats--wrapper"},s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10"},s.a.createElement(rG,null)),s.a.createElement("div",{className:"col-sm-12 col-md-10"},s.a.createElement(uG,null)),s.a.createElement("div",{className:"col-sm-12 col-md-10"},s.a.createElement(Ho,null,s.a.createElement("div",null,s.a.createElement("p",{className:"mb-2"},"To improve accuracy of future transcriptions, add specific words or phrases to your ",s.a.createElement("span",{className:"badge badge-glass"},s.a.createElement("i",{className:"far fa-atlas fa-fw me-1"}),"Custom dictionary"),"."),s.a.createElement("p",{className:"mb-0"},s.a.createElement("a",{href:"/dictionary",onClick:function(){return Object(we.k)("app.confidence.click_add_to_custom_dictionary")},target:"_blank"},"Start by adding a few now ",s.a.createElement("i",{className:"far fa-external-link mx-1"}))))),s.a.createElement("div",{className:"text-center mt-3"},s.a.createElement("div",{className:"custom--sonix-text custom-controls-stacked text--size-smaller d-inline-block"},s.a.createElement("label",{className:"custom-control custom-checkbox clickable mb-0"},s.a.createElement("input",{checked:t.skipQualityScorePopup,onChange:t.toggleSkipQualityScorePopup,type:"checkbox",className:"custom-control-input"}),s.a.createElement("div",{className:"custom-control-check"},s.a.createElement("div",{className:"inside"})),s.a.createElement("div",{className:"custom-control-description text-start"},"Do not automatically show me the quality score for future transcripts"))))))):null}},{key:"render",value:function(){var e=this.props.store.uiState;return s.a.createElement(ao,{modalClasses:"smodal--content smodal--content-sm",shouldCloseOnOverlayClick:!0,modalTitle:"Transcript Quality",modalIcon:"far fa-temperature-full",isOpen:e.modals.Quality,onEnter:e.hideQualityModal,onRequestClose:e.hideQualityModal},this.renderStatsBoxes())}}])&&fG(t.prototype,n),r&&fG(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||sG,kG=_G;function OG(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function xG(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function SG(e,t){return SG=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},SG(e,t)}function jG(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=DG(e);if(t){var o=DG(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return CG(e)}(this,n)}}function CG(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function DG(e){return DG=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},DG(e)}function NG(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var PG,TG,MG,AG,LG=function(e){var t=e.user,n=e.recording;return t.isTrial?s.a.createElement(ko,{icon:"fa-clock"},s.a.createElement("h3",null,"Realignment uses additional minutes"),s.a.createElement("p",{className:"mb-3"},"You have ",Object(we.c)(t.totalCredit)," remaining, but this requires you to have ",n.formattedDurationLong,". Please upgrade to realign the timecodes in this transcript."),s.a.createElement("a",{className:"btn btn-primary mb-0",href:"/upgrade"},s.a.createElement("i",{className:"far fa-arrow-right me-2"}),"Upgrade now")):s.a.createElement(ko,{icon:"fa-clock"},s.a.createElement("h3",null,"Realignment uses additional minutes"),s.a.createElement("p",{className:"mb-3"},"You have ",Object(we.c)(t.totalCredit)," remaining. To continue realigning the timecodes in this transcript, you need to have ",n.formattedDurationLong,". Please add more hours."),s.a.createElement("a",{className:"btn btn-primary mb-0",href:"/upgrade"},s.a.createElement("i",{className:"far fa-plus me-2"}),"Add more hours"))},RG=(hG=d.action.bound,yG=d.action.bound,Object(se.c)((vG=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&SG(e,t)}(a,e);var t,n,r,o=jG(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return OG(e=o.call.apply(o,[this].concat(n)),"fetchingData",gG,CG(e)),OG(e,"saving",wG,CG(e)),OG(e,"alignmentData",EG,CG(e)),e}return t=a,(n=[{key:"fetchAlignmentData",value:function(){var e=this,t=this.props.store.transportLayer;this.fetchingData=!0,t.fetchAlignmentData().then((function(t){e.alignmentData=t,e.fetchingData=!1}))}},{key:"save",value:function(){var e=this,t=this.props,n=t.store,r=t.user,o=n.uiState;this.saving=!0,n.transportLayer.startAlignment().then((function(){r.removeCredit(n.duration),n.fetchRecording().then((function(){e.saving=!1,o.hideRealignTimecodesModal()}))}))}},{key:"renderButtons",value:function(){var e=this.props.store.uiState;return this.saving?s.a.createElement(_o,{text:"Starting realignment process. Please wait."}):s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("button",{className:"btn btn-primary t--timecode-realign-button",onClick:this.save},s.a.createElement("i",{className:"fa fa-check me-2"}),"Realign timecodes"),s.a.createElement("button",{className:"btn",onClick:e.hideRealignTimecodesModal},s.a.createElement("i",{className:"fa fa-times me-2"}),"Cancel"))}},{key:"renderChargeSection",value:function(){var e=this.props,t=e.store,n=e.user,r=t.recording,o=this.alignmentData,a=o.cost,i=o.price_per_hour,l=o.credit;return n.isSubscribed&&!n.payByCheck?s.a.createElement("div",null,s.a.createElement("h4",{className:"mt-4"},s.a.createElement("i",{className:"far fa-file-invoice-dollar me-2 fa-fw"}),"Additional charge"),s.a.createElement("table",{className:"table table--border table--row-hover table--header-sm table--padding-lg mb-4"},s.a.createElement("tbody",{className:"table--text-size"},s.a.createElement("tr",null,s.a.createElement("td",null,"Realignment rate (per recorded hour)"),s.a.createElement("td",{className:""},i," / hr")),s.a.createElement("tr",null,s.a.createElement("td",null,"File duration"),s.a.createElement("td",{className:""},r.formattedDuration)),s.a.createElement("tr",{className:"text--weight-700 bgcolor--sidebar"},s.a.createElement("td",null,"Realignment charge"),s.a.createElement("td",null,a)))),s.a.createElement("p",null,l>0&&s.a.createElement("strong",{className:"text--color-secondary"},"You have ",l," minutes of free timecode realignment remaining. "))):s.a.createElement(ko,{icon:"fa-file-invoice-dollar"},s.a.createElement("h4",null,"Realignment uses additional minutes"),s.a.createElement("p",null,"You have ",Object(we.c)(n.totalCredit)," remaining. If you realign the timecodes in this transcript, we will deduct ",r.formattedDurationLong,"."))}},{key:"renderContent",value:function(){var e=this.props.user,t=this.props.store,n=t.duration,r=t.isVideo,o=t.recording,a=this.alignmentData.can_align;return this.fetchingData?s.a.createElement(_o,null):a?s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10 mb-2"},s.a.createElement("div",{className:"app-image"},s.a.createElement("div",{className:"app-feature app-feature-realign-timecodes img-fluid"},"Realign Timecodes")),s.a.createElement("p",null,"After a lot of editing, words and phrases may no longer align to the audio file. We can realign the individual words to the audio and regenerate each word's timecode."),this.renderChargeSection(),n>3600&&s.a.createElement("p",{className:"text--color-meta-dark"},s.a.createElement("strong",null,"Long realignment processing time:")," ",r?"Video":"Audio"," files longer than one hour or with low quality audio can take a while to complete."),this.renderButtons())):s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10 mb-2"},s.a.createElement("div",{className:"app-image"},s.a.createElement("div",{className:"app-feature app-feature-realign-timecodes img-fluid"},"Realign Timecodes")),s.a.createElement("h4",{className:"text--weight-700 mb-2"},"Realign timecodes"),s.a.createElement("p",null,"After a lot of editing, words and phrases may no longer align to the audio file. We can realign the individual words to the audio and regenerate each word's timecode."),s.a.createElement(LG,{user:e,recording:o})))}},{key:"render",value:function(){var e=this.props.store.uiState;return s.a.createElement(ao,{modalClasses:"smodal--content smodal--content-sm",onAfterOpen:this.fetchAlignmentData,modalTitle:"Realign timecodes",modalIcon:"far fa-stopwatch",onEnter:this.save,isOpen:e.modals.RealignTimecodes,onRequestClose:e.hideRealignTimecodesModal},this.renderContent())}}])&&xG(t.prototype,n),r&&xG(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),gG=NG(vG.prototype,"fetchingData",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),wG=NG(vG.prototype,"saving",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),EG=NG(vG.prototype,"alignmentData",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),NG(vG.prototype,"fetchAlignmentData",[hG],Object.getOwnPropertyDescriptor(vG.prototype,"fetchAlignmentData"),vG.prototype),NG(vG.prototype,"save",[yG],Object.getOwnPropertyDescriptor(vG.prototype,"save"),vG.prototype),bG=vG))||bG),FG=RG;function zG(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function BG(e,t){return BG=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},BG(e,t)}function YG(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=HG(e);if(t){var o=HG(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return IG(e)}(this,n)}}function IG(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function HG(e){return HG=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},HG(e)}function UG(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var WG,VG,qG,GG,KG,$G,JG,XG,QG,ZG,eK=(PG=d.action.bound,Object(se.c)((MG=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&BG(e,t)}(a,e);var t,n,r,o=YG(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(e=o.call.apply(o,[this].concat(n)),"saving",AG,IG(e)),e}return t=a,(n=[{key:"restore",value:function(){var e=this;this.saving=!0;var t=this.props.store,n=t.transportLayer,r=t.uiState,o=t.recording;n.restore().then((function(){r.hideRestoreMediaModal(),o.isRestoring=!0,e.saving=!1}))}},{key:"renderButtons",value:function(){var e=this.props.store.uiState;return this.saving?s.a.createElement(_o,{text:"Kicking off restore!  One moment..."}):s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("button",{className:"btn btn-primary",onClick:this.restore},s.a.createElement("i",{className:"fa fa-check me-2"}),"Restore media file"),s.a.createElement("button",{className:"btn",onClick:e.hideRestoreMediaModal},s.a.createElement("i",{className:"fa fa-times me-2"}),"Cancel"))}},{key:"renderContent",value:function(){return s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10 mb-2"},s.a.createElement("p",null,"Sonix automatically archives media files that have not been accessed in over 6 months. You can still edit and export the transcript."),s.a.createElement("h4",null,"Restore media file"),s.a.createElement("p",null,"Restoring your media files can take 3-5 hours. You will receive an email when the media file has been restored."),this.renderButtons()))}},{key:"render",value:function(){var e=this.props.store.uiState;return s.a.createElement(ao,{modalClasses:"smodal--content smodal--content-sm",modalTitle:"Archived media file",modalIcon:"far fa-archive",isOpen:e.modals.RestoreMedia,onEnter:this.save,onRequestClose:e.hideRestoreMediaModal},this.renderContent())}}])&&zG(t.prototype,n),r&&zG(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),AG=UG(MG.prototype,"saving",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),UG(MG.prototype,"restore",[PG],Object.getOwnPropertyDescriptor(MG.prototype,"restore"),MG.prototype),TG=MG))||TG),tK=eK;function nK(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function rK(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function oK(e,t){return oK=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},oK(e,t)}function aK(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=lK(e);if(t){var o=lK(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return iK(e)}(this,n)}}function iK(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lK(e){return lK=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},lK(e)}function sK(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var cK,uK,fK,pK,dK,mK,hK,yK,bK,vK,gK,wK,EK,_K,kK,OK,xK,SK,jK,CK,DK,NK,PK,TK,MK,AK,LK,RK,FK=(WG=d.action.bound,VG=d.action.bound,qG=d.action.bound,GG=d.action.bound,Object(se.c)(($G=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oK(e,t)}(a,e);var t,n,r,o=aK(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return nK(e=o.call.apply(o,[this].concat(n)),"saving",JG,iK(e)),nK(e,"copyMethod",XG,iK(e)),nK(e,"copyName",QG,iK(e)),nK(e,"copyId",ZG,iK(e)),e}return t=a,(n=[{key:"save",value:function(){var e=this,t=this.props.store.transportLayer;this.saving=!0,t.copyRecording(this.copyName,this.copyMethod).then((function(t){e.saving=!1,e.copyId=t.data.id}))}},{key:"highlightText",value:function(){var e=this.props.store.transcript,t=this.props.store.isVideo?"video":"audio";return e.hasHighlights?"The "+t+" copy will only have the sections you highlighted in the transcript":"You do not have any highlighted sections in your "+t+" transcript"}},{key:"strikeThroughText",value:function(){var e=this.props.store.transcript,t=this.props.store.isVideo?"video":"audio";return e.hasStrikethrough?"The "+t+" copy will have everything except the strikethrough sections":"You do not have any strikethroughs in your "+t+" transcript"}},{key:"fullExportBalloonText",value:function(){return this.props.user.isSubscribed?"The copy will be an exact duplicate of this transcript as is":"The copy will be an exact duplicate of this transcript as is. The other options are only available on Premium and Enterprise plans."}},{key:"renderButtons",value:function(){var e=this.props.store.uiState;return e.blockExportsToSave?s.a.createElement(wB,{onCancel:e.hideSaveACopyModal,actionText:"saving a copy"}):this.saving?s.a.createElement(_o,{text:"Copying in process. Please wait."}):this.copyId?s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("a",{href:"/recordings/".concat(this.copyId),target:"_blank",className:"btn btn-primary t--timecode-realign-button"},s.a.createElement("i",{className:"far fa-external-link-alt me-2"}),"View copy in new tab"),s.a.createElement("button",{className:"btn",onClick:e.hideSaveACopyModal},s.a.createElement("i",{className:"far fa-times me-2"}),"Close")):s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("button",{className:"btn btn-primary t--timecode-realign-button",onClick:this.save},s.a.createElement("i",{className:"far fa-file-export me-2"}),"Save a copy"),s.a.createElement("button",{className:"btn",onClick:e.hideSaveACopyModal},s.a.createElement("i",{className:"far fa-times me-2"}),"Cancel"))}},{key:"renderStartAndEndTimestampSection",value:function(){return s.a.createElement("div",{className:"custom-control custom-radio-extra"},s.a.createElement("div",{className:"form-group mb-0"},s.a.createElement("label",{className:"input--label text--weight-700 text--color-secondary"},"Start time")),s.a.createElement("div",{className:"form-group form-time d-flex flex-row"},s.a.createElement("div",{className:"form-row row g-0 flex-grow-1"},s.a.createElement("div",{className:"col"},s.a.createElement("label",{className:"form-time-field",htmlFor:"startHours","data-time-label":"hours"},s.a.createElement("input",{type:"number",id:"startHours",ref:"startHours",className:"form-time-input form-time-hours form-control-time form-control",min:"0",max:"99",placeholder:"00",defaultValue:0}))),s.a.createElement("div",{className:"col"},s.a.createElement("label",{className:"form-time-field",htmlFor:"startMinutes","data-time-label":"minutes","data-time-separator":":"},s.a.createElement("input",{type:"number",id:"startMinutes",ref:"startMinutes",className:"form-time-input form-time-minutes form-control",min:"0",max:"60",placeholder:"00",defaultValue:0}))),s.a.createElement("div",{className:"col"},s.a.createElement("label",{className:"form-time-field",htmlFor:"startSeconds","data-time-label":"seconds","data-time-separator":":"},s.a.createElement("input",{type:"number",id:"startSeconds",ref:"startSeconds",className:"form-time-input form-time-seconds form-control",min:"0",max:"60",placeholder:"00",defaultValue:0}))),s.a.createElement("div",{className:"col"},s.a.createElement("label",{className:"form-time-field",htmlFor:"startMilliSeconds","data-time-label":"milliseconds","data-time-separator":"."},s.a.createElement("input",{type:"number",id:"startMilliSeconds",ref:"startMilliSeconds",className:"form-time-field form-time-mseconds form-control",min:"0",max:"999",placeholder:"000",defaultValue:0}))))),s.a.createElement("div",{className:"form-group mb-0"},s.a.createElement("label",{className:"input--label text--weight-700 text--color-secondary"},"End time")),s.a.createElement("div",{className:"form-group form-time d-flex flex-row mb-0"},s.a.createElement("div",{className:"form-row row g-0 flex-grow-1"},s.a.createElement("div",{className:"col"},s.a.createElement("label",{className:"form-time-field",htmlFor:"endHours","data-time-label":"hours"},s.a.createElement("input",{type:"number",id:"endHours",ref:"endHours",className:"form-time-input form-time-hours form-control-time form-control",min:"0",max:"99",placeholder:"00",defaultValue:0}))),s.a.createElement("div",{className:"col"},s.a.createElement("label",{className:"form-time-field",htmlFor:"endMinutes","data-time-label":"minutes","data-time-separator":":"},s.a.createElement("input",{type:"number",id:"endMinutes",ref:"endMinutes",className:"form-time-input form-time-minutes form-control",min:"0",max:"60",placeholder:"00",defaultValue:0}))),s.a.createElement("div",{className:"col"},s.a.createElement("label",{className:"form-time-field",htmlFor:"endSeconds","data-time-label":"seconds","data-time-separator":":"},s.a.createElement("input",{type:"number",id:"endSeconds",ref:"endSeconds",className:"form-time-input form-time-seconds form-control",min:"0",max:"60",placeholder:"00",defaultValue:0}))),s.a.createElement("div",{className:"col"},s.a.createElement("label",{className:"form-time-field",htmlFor:"endMilliSeconds","data-time-label":"milliseconds","data-time-separator":"."},s.a.createElement("input",{type:"number",id:"endMilliSeconds",ref:"endMilliSeconds",className:"form-time-field form-time-mseconds form-control",min:"0",max:"999",placeholder:"000",defaultValue:0}))))))}},{key:"setCopyMethod",value:function(e){this.copyMethod=e}},{key:"setCopyName",value:function(e){this.copyName=e.target.value}},{key:"renderSaveACopyOptionsSection",value:function(){var e=this,t=this.props,n=t.user,r=t.store.transcript,o=r.hasHighlights,a=r.hasStrikethrough;return s.a.createElement("div",{className:"form-group"},s.a.createElement("label",{className:"input--label",htmlFor:"save-as-options"},"What would you like in the new transcript copy?"),s.a.createElement("div",{className:"custom--sonix-block custom-controls-stacked"},s.a.createElement("label",{className:"custom-control custom-radio clickable mb-0"},s.a.createElement("input",{id:"save-as-copy",name:"radio-stacked",type:"radio",className:"custom-control-input",checked:"all"===this.copyMethod,onChange:function(){return e.setCopyMethod("all")}}),s.a.createElement("div",{className:"custom-control-radio"},s.a.createElement("div",{className:"inside"})),s.a.createElement("div",{className:"custom-control-description"},s.a.createElement("p",null,"The entire transcript",s.a.createElement("span",{className:"ms-2","data-balloon":this.fullExportBalloonText(),"data-balloon-pos":"down","data-balloon-length":"large"},s.a.createElement("i",{className:"far fa-info-circle fa-fw"}))))),s.a.createElement("label",{className:"custom-control custom-radio clickable mb-0"},s.a.createElement("input",{id:"save-as-highlights",name:"radio-stacked",type:"radio",className:"custom-control-input",checked:"highlights"===this.copyMethod,disabled:!o||!n.isSubscribed,onChange:function(){return e.setCopyMethod("highlights")}}),s.a.createElement("div",{className:"custom-control-radio"},s.a.createElement("div",{className:"inside"})),s.a.createElement("div",{className:"custom-control-description"},s.a.createElement("p",null,"Only highlighted sections of the transcript",s.a.createElement("span",{className:"ms-1","data-balloon":this.highlightText(),"data-balloon-pos":"down","data-balloon-length":"large"},!n.isSubscribed&&s.a.createElement("abbr",{className:"me-1"},"(advanced)"),s.a.createElement("i",{className:"far fa-info-circle fa-fw"}))))),s.a.createElement("label",{className:"custom-control custom-radio clickable mb-0"},s.a.createElement("input",{id:"save-as-strikethrough",name:"radio-stacked",type:"radio",className:"custom-control-input",value:"remove_strikethrough",checked:"remove_strikethrough"===this.copyMethod,disabled:!a||!n.isSubscribed,onChange:function(){return e.setCopyMethod("remove_strikethrough")}}),s.a.createElement("div",{className:"custom-control-radio"},s.a.createElement("div",{className:"inside"})),s.a.createElement("div",{className:"custom-control-description"},s.a.createElement("p",null,"Transcript with strikethroughs removed",s.a.createElement("span",{className:"ms-1","data-balloon":this.strikeThroughText(),"data-balloon-pos":"down","data-balloon-length":"large"},!n.isSubscribed&&s.a.createElement("abbr",{className:"me-1"},"(advanced)"),s.a.createElement("i",{className:"far fa-info-circle fa-fw"})))))))}},{key:"renderUpgradeMessage",value:function(){if(!this.props.user.isSubscribed)return s.a.createElement(Ho,null,s.a.createElement("p",{className:"mb-0"},s.a.createElement("a",{href:"/subscribe",className:"link--new-window me-1",onClick:function(){return Object(we.k)("app.save_as.click_upgrade_link")},target:"_blank"},"Upgrade your plan to Premium or Enterprise")," to enable the advanced options."))}},{key:"renderContent",value:function(){return s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10 mb-2"},s.a.createElement("div",{className:"form-group mb-3"},s.a.createElement("label",{htmlFor:"nameInput",className:"input--label"},"New transcript name"),s.a.createElement("input",{autoFocus:!0,value:this.copyName,onChange:this.setCopyName,className:"form-control"})),this.renderSaveACopyOptionsSection(),this.renderButtons(),this.renderUpgradeMessage()))}},{key:"onAfterOpen",value:function(){var e=this.props.store.recording;this.copyName="Copy of ".concat(e.name),this.copyMethod="all",this.copyId=null,this.saving=!1}},{key:"render",value:function(){var e=this.props.store.uiState;return s.a.createElement(ao,{modalClasses:"smodal--content smodal--content-sm",modalTitle:"Save a copy",modalIcon:"far fa-file-export",onEnter:this.save,onAfterOpen:this.onAfterOpen,isOpen:e.modals.SaveACopy,onRequestClose:e.hideSaveACopyModal},this.renderContent())}}])&&rK(t.prototype,n),r&&rK(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),JG=sK($G.prototype,"saving",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),XG=sK($G.prototype,"copyMethod",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"all"}}),QG=sK($G.prototype,"copyName",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),ZG=sK($G.prototype,"copyId",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),sK($G.prototype,"save",[WG],Object.getOwnPropertyDescriptor($G.prototype,"save"),$G.prototype),sK($G.prototype,"setCopyMethod",[VG],Object.getOwnPropertyDescriptor($G.prototype,"setCopyMethod"),$G.prototype),sK($G.prototype,"setCopyName",[qG],Object.getOwnPropertyDescriptor($G.prototype,"setCopyName"),$G.prototype),sK($G.prototype,"onAfterOpen",[GG],Object.getOwnPropertyDescriptor($G.prototype,"onAfterOpen"),$G.prototype),KG=$G))||KG),zK=FK;function BK(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function YK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IK(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function HK(e,t,n){return t&&IK(e.prototype,t),n&&IK(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function UK(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&WK(e,t)}function WK(e,t){return WK=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},WK(e,t)}function VK(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=GK(e);if(t){var o=GK(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return qK(e)}(this,n)}}function qK(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function GK(e){return GK=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},GK(e)}function KK(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var $K,JK=function(e){var t=e.store,n=Object(we.i)(t.recording.language);return t.transcript.translated&&(n=Object(we.i)(t.transcript.language)),s.a.createElement("span",null,"Share transcript: ",n.language,n.flag.split(",").map((function(e,t){return s.a.createElement("i",{key:"selected-flag-"+t,className:"flag-icon mx-1 flag-icon-"+e})})))},XK=function(){return s.a.createElement("div",{className:"smodal--help"},s.a.createElement("p",{className:"mb-0"},s.a.createElement("strong",{className:"d-block d-lg-inline-block me-lg-2"},"Need a little help?"),s.a.createElement("a",{href:"https://youtu.be/hkcRYMrXk5I",className:"link--underline",target:"_blank"},"Crystal explains how to share your Sonix transcript in this video",s.a.createElement("i",{className:"far fa-external-link-alt ms-2"}))))},QK=(cK=Object(se.b)("store","user"),uK=d.action.bound,fK=d.action.bound,pK=d.action.bound,dK=d.action.bound,cK(mK=Object(se.c)((hK=function(e){UK(n,e);var t=VK(n);function n(){var e;YK(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return BK(e=t.call.apply(t,[this].concat(o)),"advancedOptions",yK,qK(e)),e}return HK(n,[{key:"onModalClose",value:function(){this.advancedOptions=!1,this.props.store.uiState.hideShareModal()}},{key:"onEnter",value:function(){if(!this.advancedOptions)return!1;this.advancedOptionsView.save()}},{key:"showAdvancedOptions",value:function(){this.advancedOptions=!0}},{key:"hideAdvancedOptions",value:function(){this.advancedOptions=!1}},{key:"renderModalContents",value:function(){var e=this,t=this.props,n=t.store,r=t.user;if(this.advancedOptions)return s.a.createElement(ZK,{ref:function(t){return e.advancedOptionsView=t},onDone:this.hideAdvancedOptions,store:n});var o=n.recording.shareLink;return n.transcript.translated&&(o=o+"/"+n.transcript.language),s.a.createElement("div",null,s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10"},s.a.createElement(hY,{shareLink:o,shareLabel:"Share this link",analyticsEventName:"app.editor.share_click_copy"}))),!r.sharingEnabled&&s.a.createElement("div",{className:"row justify-content-center pt-4"},s.a.createElement("div",{className:"col-sm-12 col-md-10"},s.a.createElement("h4",null,s.a.createElement("i",{className:"far fa-pencil fa-fw me-2"}),"Sharing with editing permissions"),s.a.createElement("p",null,s.a.createElement("a",{href:"/account/subscription/select_plan",target:"blank",className:"link--underline"},"Please upgrade your account to Premium or Enterprise")," to invite colleagues to share and edit your transcripts. Easily manage their access and permission levels as well.")),s.a.createElement("div",{className:"col-sm-12 col-md-10"},s.a.createElement("h4",{className:"mt-3"},s.a.createElement("i",{className:"far fa-keyboard fa-fw me-2"}),"Transcript clean-up"),s.a.createElement("p",null,s.a.createElement("a",{href:"https://sonix.ai/transcriptionists",target:"blank",className:"link--underline"},"Hire a transcriptionist from our directory.")," If you need to let someone edit this transcript, let us know by emailing: ",s.a.createElement(_O,{subject:"Help me share my transcript with a Sonix transcriptionist"}),"."))),n.canShare&&r.sharingEnabled&&s.a.createElement(e$,{store:n,onDone:this.onModalClose,showAdvanced:this.showAdvancedOptions}))}},{key:"render",value:function(){var e=this.props.store,t=e.uiState.modals;return s.a.createElement(ao,{modalClasses:"smodal--content smodal--content-sm",onEnter:this.onEnter,isOpen:t.Share,onRequestClose:this.onModalClose,modalHelp:s.a.createElement(XK,null),modalTitle:s.a.createElement(JK,{store:e}),modalIcon:"far fa-share-alt"},this.renderModalContents())}}]),n}(s.a.Component),yK=KK(hK.prototype,"advancedOptions",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),KK(hK.prototype,"onModalClose",[uK],Object.getOwnPropertyDescriptor(hK.prototype,"onModalClose"),hK.prototype),KK(hK.prototype,"onEnter",[fK],Object.getOwnPropertyDescriptor(hK.prototype,"onEnter"),hK.prototype),KK(hK.prototype,"showAdvancedOptions",[pK],Object.getOwnPropertyDescriptor(hK.prototype,"showAdvancedOptions"),hK.prototype),KK(hK.prototype,"hideAdvancedOptions",[dK],Object.getOwnPropertyDescriptor(hK.prototype,"hideAdvancedOptions"),hK.prototype),mK=hK))||mK)||mK),ZK=(bK=d.action.bound,vK=d.action.bound,gK=d.action.bound,Object(se.c)((EK=function(e){UK(n,e);var t=VK(n);function n(){var e;YK(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return BK(e=t.call.apply(t,[this].concat(o)),"fetching",_K,qK(e)),BK(e,"saving",kK,qK(e)),BK(e,"shares",OK,qK(e)),e}return HK(n,[{key:"componentDidMount",value:function(){var e=this;this.props.store.transportLayer.fetchShares().then(Object(d.action)((function(t){e.shares=t.data,e.fetching=!1})))}},{key:"updateCanEdit",value:function(e,t){t.canEdit=e.target.value}},{key:"removeShare",value:function(e){e.deleted=!0}},{key:"save",value:function(){var e=this,t=this.props.store.transportLayer;this.saving=!0,t.updateShares(this.shares).then(Object(d.action)((function(t){e.saving=!1,e.props.onDone()})))}},{key:"renderShareRow",value:function(e){var t=this;return e.deleted?s.a.createElement("tr",{key:e.id,className:"tr--deleted"},s.a.createElement("td",{className:"text--size-table","data-label":"Email",style:{lineHeight:"2.5rem"}},e.email),s.a.createElement("td",{className:"text--size-table","data-label":"Permissions",colSpan:"2",style:{lineHeight:"2.5rem"}},s.a.createElement("i",{className:"far fa-times me-2"}),"Access removed")):s.a.createElement("tr",{key:e.id},s.a.createElement("td",{className:"text--size-table","data-label":"Email",style:{lineHeight:"2.5rem"}},s.a.createElement("span",{className:"d-block text--no-overflow",title:e.email,style:{fontSize:"1rem"}},e.email)),s.a.createElement("td",{className:"text--size-table","data-label":"Change Permissions"},s.a.createElement("select",{className:"form-select",id:"selectPermissions",onChange:function(n){return t.updateCanEdit(n,e)},value:e.canEdit},s.a.createElement("option",{value:!1},"Can view only"),s.a.createElement("option",{value:!0},"Can edit and view"))),s.a.createElement("td",{className:"text--size-table"},s.a.createElement("button",{className:"btn btn-transparent-red float-md-end mb-0",onClick:function(){return t.removeShare(e)}},s.a.createElement("i",{className:"far fa-trash-alt me-2"}),"Remove")))}},{key:"renderShareRows",value:function(){var e=this;return this.shares.map((function(t){return e.renderShareRow(t)}))}},{key:"renderButtons",value:function(){return this.saving?s.a.createElement("div",{className:""},s.a.createElement(_o,{text:"Saving. Please wait."})):s.a.createElement("div",{className:"form-actions position--relative"},s.a.createElement("button",{className:"btn btn-primary t--transcript-modal-btn-share-update",onClick:this.save},s.a.createElement("i",{className:"far fa-check me-2"}),"Update permissions"),s.a.createElement("button",{className:"btn",onClick:this.props.onDone},s.a.createElement("i",{className:"far fa-times me-2 t--transcript-modal-btn-share-cancel"}),"Cancel"))}},{key:"render",value:function(){return this.fetching?s.a.createElement(_o,{text:"Loading. Just a sec."}):0===this.shares.length?s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-10"},s.a.createElement("div",{className:"text-center"},s.a.createElement("i",{className:"far fa-3x mt-4 mb-3 text--color-secondary-faded fa-mail-bulk"}),s.a.createElement("h4",null,"This transcript hasn't been shared yet"),s.a.createElement("p",null,"Please go back to the previous screen and share this transcript via email. Then, you can manage their access from here."),s.a.createElement("button",{className:"btn",onClick:this.props.onDone},s.a.createElement("i",{className:"far fa-arrow-left me-2"}),"Go back")))):s.a.createElement("div",null,s.a.createElement("table",{className:"table table--row-hover"},s.a.createElement("thead",null,s.a.createElement("tr",null,s.a.createElement("th",{className:"text--transform-uppercase px-2 py-1",style:{width:"auto"}},"Email"),s.a.createElement("th",{className:"text--transform-uppercase px-2 py-1",style:{width:"12rem"}},"Permissions"),s.a.createElement("th",{className:"text--transform-uppercase px-2 py-1",style:{width:"8rem"}}," "))),s.a.createElement("tbody",null,this.renderShareRows(),s.a.createElement("tr",null,s.a.createElement("td",{colSpan:1}),s.a.createElement("td",{colSpan:2},this.renderButtons())))))}}]),n}(s.a.Component),_K=KK(EK.prototype,"fetching",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),kK=KK(EK.prototype,"saving",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),OK=KK(EK.prototype,"shares",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),KK(EK.prototype,"updateCanEdit",[bK],Object.getOwnPropertyDescriptor(EK.prototype,"updateCanEdit"),EK.prototype),KK(EK.prototype,"removeShare",[vK],Object.getOwnPropertyDescriptor(EK.prototype,"removeShare"),EK.prototype),KK(EK.prototype,"save",[gK],Object.getOwnPropertyDescriptor(EK.prototype,"save"),EK.prototype),wK=EK))||wK),e$=(xK=d.action.bound,SK=d.action.bound,jK=d.action.bound,CK=d.action.bound,DK=d.action.bound,Object(se.c)((PK=function(e){UK(n,e);var t=VK(n);function n(){var e;YK(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return BK(e=t.call.apply(t,[this].concat(o)),"emailAddresses",TK,qK(e)),BK(e,"notes",MK,qK(e)),BK(e,"canEdit",AK,qK(e)),BK(e,"sharing",LK,qK(e)),BK(e,"error",RK,qK(e)),e.cancel=function(){e.props.onDone()},e.share=function(){e.sharing=!0,e.props.store.transportLayer.share({emails:e.emailAddresses,notes:e.notes,canEdit:e.canEdit,onSuccess:e.onSuccess,onError:e.onError})},e}return HK(n,[{key:"onSuccess",value:function(){this.error=null,this.notes="",this.emailAddresses="",this.props.onDone()}},{key:"onError",value:function(e){this.error=e.error,this.sharing=!1}},{key:"updateNotes",value:function(e){this.notes=e.target.value}},{key:"updateEmailAddresses",value:function(e){this.emailAddresses=e.target.value}},{key:"updateCanEdit",value:function(e){this.canEdit=e.target.value}},{key:"renderButton",value:function(){return this.sharing?s.a.createElement("div",{className:"form-actions position--relative"},s.a.createElement(_o,{text:"Sending emails. Please wait."})):s.a.createElement("div",{className:"form-actions position--relative"},s.a.createElement("button",{className:"btn btn-primary t--transcript-modal-btn-share-invite",onClick:this.share},s.a.createElement("i",{className:"far fa-envelope me-2"}),"Share via email"),s.a.createElement("button",{className:"btn",onClick:this.cancel},s.a.createElement("i",{className:"far fa-times me-2 t--transcript-modal-btn-share-cancel"}),"Cancel"),s.a.createElement("button",{className:"btn float-end t--transcript-modal-btn-share-advanced",onClick:this.props.showAdvanced},s.a.createElement("i",{className:"far fa-sliders-h me-2"}),"Manage access"))}},{key:"renderError",value:function(){if(this.error)return s.a.createElement(ni,null,this.error)}},{key:"render",value:function(){return s.a.createElement("div",null,s.a.createElement("div",{className:"divider--title"},s.a.createElement("div",{className:"divider--line"}),s.a.createElement("div",{className:"divider--title-content"},"Share transcript privately",s.a.createElement("span",{className:"ms-2 app--emoji app--emoji-mail"})),s.a.createElement("div",{className:"divider--line"})),s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10"},this.renderError(),s.a.createElement("div",{className:"form-group position--relative mb-2"},s.a.createElement("label",{className:"input--label",htmlFor:"inputEmails"},s.a.createElement("i",{className:"far fa-user me-2"}),"Who do you want share this transcript with?"),s.a.createElement("div",{className:"row g-0"},s.a.createElement("div",{className:"col-sm-8"},s.a.createElement("input",{type:"text",onChange:this.updateEmailAddresses,value:this.emailAddresses,className:"form-control",id:"inputEmails",placeholder:"Enter emails separated by commas..."})),s.a.createElement("div",{className:"col-sm-4"},s.a.createElement("select",{className:"form-select form-control-adjacent",id:"selectPermissions",value:this.canEdit,onChange:this.updateCanEdit},s.a.createElement("option",{value:!1},"Can view only"),s.a.createElement("option",{value:!0},"Can edit and view"))))),s.a.createElement("div",{className:"form-group position--relative mb-3"},s.a.createElement("textarea",{className:"form-control",onChange:this.updateNotes,value:this.notes,rows:4,id:"textareaNotes",placeholder:"Optional: Add a personal message here..."})),this.renderButton())))}}]),n}(s.a.Component),TK=KK(PK.prototype,"emailAddresses",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),MK=KK(PK.prototype,"notes",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),AK=KK(PK.prototype,"canEdit",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),LK=KK(PK.prototype,"sharing",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),RK=KK(PK.prototype,"error",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),KK(PK.prototype,"onSuccess",[xK],Object.getOwnPropertyDescriptor(PK.prototype,"onSuccess"),PK.prototype),KK(PK.prototype,"onError",[SK],Object.getOwnPropertyDescriptor(PK.prototype,"onError"),PK.prototype),KK(PK.prototype,"updateNotes",[jK],Object.getOwnPropertyDescriptor(PK.prototype,"updateNotes"),PK.prototype),KK(PK.prototype,"updateEmailAddresses",[CK],Object.getOwnPropertyDescriptor(PK.prototype,"updateEmailAddresses"),PK.prototype),KK(PK.prototype,"updateCanEdit",[DK],Object.getOwnPropertyDescriptor(PK.prototype,"updateCanEdit"),PK.prototype),NK=PK))||NK),t$=QK;function n$(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function r$(e,t){return r$=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r$(e,t)}function o$(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=a$(e);if(t){var o=a$(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function a$(e){return a$=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a$(e)}var i$,l$=Object(se.b)("store")($K=Object(se.c)($K=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r$(e,t)}(a,e);var t,n,r,o=o$(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props.store.transcript,t=e.speakerNames(),n=e.totalDuration(),r={};t.forEach((function(t){r[t]=e.durationForSpeaker(t)}));var o={};return t.forEach((function(t){o[t]=e.wordCountForSpeaker(t)})),s.a.createElement("div",{className:"stats--box stats--box-8rem stats--box-grey"},s.a.createElement("div",{className:"stats--bar stats--bar-multi mb-3"},t.map((function(e){var t=r[e]/n*100;return s.a.createElement("div",{key:e,className:"stats--bar-segment stats--bar-hover-data",style:{width:"".concat((Math.floor(100*t)/100).toFixed(2),"%")}},"".concat(t.toFixed(0),"%"),s.a.createElement("span",{"data-hover":Object(we.e)(r[e],0)+",\n "+(Math.floor(100*t)/100).toFixed(2)+"% "+(e||"(speaker)")},t))}))),s.a.createElement("div",{className:"stats--scroll scrollbar--custom border-all--meta-light"},s.a.createElement("table",{className:"table simple--table table--row-hover stats--legend stats--legend-multi pb-0 my-0"},s.a.createElement("tbody",null,t.map((function(t){if(t)return s.a.createElement("tr",{key:t},s.a.createElement("td",{className:"d-none d-md-block"},s.a.createElement("span",{className:"block--legend"}," ")),s.a.createElement("td",{"data-label":"Speaker Name"},s.a.createElement("p",{className:"text--size-800rem mb-0"},s.a.createElement("strong",{className:"font-family-roboto-mono d-block"},t||"(speaker)")),s.a.createElement("p",{className:"text--size-700rem font-family-roboto-mono mb-0",style:{letterSpacing:"-0.7px"}},Object(we.e)(r[t],0)," | ",(Math.floor(r[t]/n*100*100)/100).toFixed(1)+"%"," | ",o[t]," words")),s.a.createElement("td",null,s.a.createElement("span",{className:"btn btn-transparent d-block","data-balloon-length":"medium","data-balloon-text-align":"left","data-balloon-pos":"left","data-balloon":"Label empty speakers to '"+t+"'",onClick:function(){return e.updateSpeakerName("",t)}},s.a.createElement("i",{className:"far fa-fw fa-tag me-2"}),"Label remaining")))})),s.a.createElement("tr",null,s.a.createElement("td",{className:"d-none d-md-block"},s.a.createElement("span",{className:"block--legend"}," ")),s.a.createElement("td",{"data-label":"Speaker Name"},s.a.createElement("p",{className:"text--size-800rem mb-0"},s.a.createElement("strong",{className:"font-family-roboto-mono d-block"},"(speaker)")),s.a.createElement("p",{className:"text--size-700rem font-family-roboto-mono mb-0",style:{letterSpacing:"-0.7px"}},Object(we.e)(r[""]||0,0)," | ",(Math.floor((r[""]||0)/n*100*100)/100).toFixed(1)+"%"," | ",o[""]||0," words")),s.a.createElement("td",null,s.a.createElement("span",{className:"btn btn-transparent-red d-block","data-balloon-length":"medium","data-balloon-text-align":"left","data-balloon-pos":"left","data-balloon":"Remove all speaker labels and change them to (speaker)",onClick:function(){return e.clearAllSpeakerNames()}},s.a.createElement("i",{className:"fas fa-fw fa-eraser me-2"}),"Clear all labels")))))))}}])&&n$(t.prototype,n),r&&n$(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||$K)||$K,s$=l$;function c$(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function u$(e,t){return u$=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u$(e,t)}function f$(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p$(e);if(t){var o=p$(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function p$(e){return p$=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p$(e)}var d$,m$,h$,y$,b$,v$,g$,w$=Object(se.b)("store")(i$=Object(se.c)(i$=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u$(e,t)}(a,e);var t,n,r,o=f$(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props.store;return e.loaded?"completed"==e.recording.status?this.renderStatsBoxes():void 0:null}},{key:"renderStatsBoxes",value:function(){return this.props.store.uiState,s.a.createElement("div",{className:"stats--wrapper"},s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement(s$,null))))}}])&&c$(t.prototype,n),r&&c$(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||i$)||i$,E$=w$;function _$(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function k$(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function O$(e,t){return O$=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O$(e,t)}function x$(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=j$(e);if(t){var o=j$(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return S$(e)}(this,n)}}function S$(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j$(e){return j$=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},j$(e)}function C$(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var D$,N$,P$,T$,M$,A$,L$,R$,F$,z$,B$=(d$=d.action.bound,m$=d.action.bound,Object(se.c)((y$=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O$(e,t)}(a,e);var t,n,r,o=x$(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _$(e=o.call.apply(o,[this].concat(n)),"saving",b$,S$(e)),_$(e,"fixMethod",v$,S$(e)),_$(e,"showFixSpeakersContent",g$,S$(e)),e.toggleFixSpeakersContent=function(){e.showFixSpeakersContent=!e.showFixSpeakersContent},e}return t=a,(n=[{key:"save",value:function(){var e=this,t=this.props.store;this.saving=!0,t.collapseAdjacentSpeakers(this.fixMethod).then((function(){e.saving=!1,t.uiState.hideSpeakersModal()}))}},{key:"setFixMethod",value:function(e){this.fixMethod=e}},{key:"isMergeAdjacentMethod",get:function(){return"adjacent"===this.fixMethod}},{key:"renderButtons",value:function(){var e=this.props.store.uiState;return e.blockExportsToSave?s.a.createElement(wB,{onCancel:e.hideSpeakersModal,actionText:"collapsing matching speakers"}):this.saving?s.a.createElement(_o,{text:"Collapsing matching speakers. Please wait."}):s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("button",{className:"btn btn-primary t--btn-collapse-matching",onClick:this.save},s.a.createElement("i",{className:"fa fa-check me-2"}),"clearSpeakers"===this.fixMethod?"Clear all speakers":"Merge adjacent matching speakers"),s.a.createElement("button",{className:"btn",onClick:e.hideSpeakersModal},s.a.createElement("i",{className:"fa fa-times me-2"}),"Cancel"))}},{key:"renderCollapseMatchingSpeakersImage",value:function(){return s.a.createElement("div",{className:"app-image"},s.a.createElement("div",{className:"app-feature app-feature-collapse-matching-speakers img-fluid",style:{margin:"0 2rem 1rem"}},"Collapse matching speakers image"))}},{key:"renderFixSpeakers",value:function(){var e=this;return s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10 mb-2"},s.a.createElement("div",{className:"form-group mt-4"},s.a.createElement("h4",null,"Fix speakers"),s.a.createElement("label",{className:"input--label",htmlFor:"save-as-options"},"What would you like us to do?"),s.a.createElement("div",{className:"custom--sonix-block custom-controls-stacked"},s.a.createElement("label",{className:"custom-control custom-radio clickable mb-0"},s.a.createElement("input",{id:"save-as-copy",name:"radio-stacked",type:"radio",className:"custom-control-input",checked:"clear"===this.fixMethod,onChange:function(){return e.setFixMethod("clear")}}),s.a.createElement("div",{className:"custom-control-radio"},s.a.createElement("div",{className:"inside"})),s.a.createElement("div",{className:"custom-control-description"},s.a.createElement("p",null,"Condense and clear all speaker names from my",s.a.createElement("span",{className:"text-nowrap"}," transcript",s.a.createElement("span",{className:"ms-2","data-balloon":"Auto-detect speakers may split transcript into too many sections, condense the transcript and remove all speaker names.","data-balloon-pos":"down-left","data-balloon-length":"medium"},s.a.createElement("i",{className:"far fa-info-circle fa-fw"})))))),s.a.createElement("label",{className:"custom-control custom-radio clickable mb-0"},s.a.createElement("input",{id:"save-as-highlights",name:"radio-stacked",type:"radio",className:"custom-control-input",checked:"adjacent"===this.fixMethod,onChange:function(){return e.setFixMethod("adjacent")}}),s.a.createElement("div",{className:"custom-control-radio"},s.a.createElement("div",{className:"inside"})),s.a.createElement("div",{className:"custom-control-description"},s.a.createElement("p",null,"Merge adjacent paragraphs with the same speaker name",s.a.createElement("span",{className:"ms-2","data-balloon":"We will only merge adjacent paragraphs that have the same speaker name.","data-balloon-pos":"down-left","data-balloon-length":"medium"},s.a.createElement("i",{className:"far fa-info-circle fa-fw"}))))),this.isMergeAdjacentMethod&&this.renderCollapseMatchingSpeakersImage())),this.renderButtons()))}},{key:"renderContent",value:function(){return s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 mb-3"},s.a.createElement(E$,null)),s.a.createElement("div",{className:"col-sm-12"},s.a.createElement("span",{className:"btn btn-toolbar btn-block mb-0",onClick:this.toggleFixSpeakersContent},s.a.createElement("i",{className:"far fa-fw me-2 fa-wrench"}),this.showFixSpeakersContent?"Hide fix speakers":"Fix speakers"),this.showFixSpeakersContent&&this.renderFixSpeakers()))}},{key:"render",value:function(){var e=this.props.store.uiState;return s.a.createElement(ao,{modalClasses:"smodal--content smodal--content-sm",onAfterOpen:this.fetchAlignmentData,modalTitle:"Speakers breakdown",modalIcon:"far fa-volume",onEnter:this.save,isOpen:e.modals.Speakers,onRequestClose:e.hideSpeakersModal},this.renderContent())}}])&&k$(t.prototype,n),r&&k$(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),b$=C$(y$.prototype,"saving",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),v$=C$(y$.prototype,"fixMethod",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"clear"}}),g$=C$(y$.prototype,"showFixSpeakersContent",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),C$(y$.prototype,"save",[d$],Object.getOwnPropertyDescriptor(y$.prototype,"save"),y$.prototype),C$(y$.prototype,"setFixMethod",[m$],Object.getOwnPropertyDescriptor(y$.prototype,"setFixMethod"),y$.prototype),C$(y$.prototype,"isMergeAdjacentMethod",[d.computed],Object.getOwnPropertyDescriptor(y$.prototype,"isMergeAdjacentMethod"),y$.prototype),h$=y$))||h$),Y$=B$,I$=function(e){var t=e.onChange,n=e.summarizeFormat;return s.a.createElement("div",{className:"custom--sonix-block custom-controls-stacked"},s.a.createElement("label",{className:"custom-control custom-radio clickable mb-0"},s.a.createElement("input",{type:"radio",className:"custom-control-input",checked:"text"===n,value:"text",onChange:t}),s.a.createElement("div",{className:"custom-control-description custom-control-description-bg p-2"},s.a.createElement("div",{className:"media"},s.a.createElement("span",{className:"fa-stack fa-lg me-3 align-self-center"},s.a.createElement("i",{className:"far fa-fw fa-align-left fa-stack-1x"})),s.a.createElement("div",{className:"media-body"},s.a.createElement("p",{className:"my-2 align-self-center"},"Sentences: Summarize transcript in a few sentences"))))),s.a.createElement("label",{className:"custom-control custom-radio clickable mb-0"},s.a.createElement("input",{type:"radio",className:"custom-control-input",checked:"bullets"===n,value:"bullets",onChange:t}),s.a.createElement("div",{className:"custom-control-description custom-control-description-bg p-2"},s.a.createElement("div",{className:"media"},s.a.createElement("span",{className:"fa-stack fa-lg me-3 align-self-center"},s.a.createElement("i",{className:"far fa-fw fa-list fa-stack-1x"})),s.a.createElement("div",{className:"media-body"},s.a.createElement("p",{className:"my-2 align-self-center"},"Bulleted list: Summarize transcript in a few bullet points"))))))};function H$(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function U$(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function W$(e,t){return W$=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},W$(e,t)}function V$(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=G$(e);if(t){var o=G$(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return q$(e)}(this,n)}}function q$(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G$(e){return G$=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},G$(e)}function K$(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var $$,J$,X$,Q$=(D$=d.action.bound,N$=d.action.bound,P$=d.action.bound,T$=d.action.bound,Object(se.c)((A$=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&W$(e,t)}(a,e);var t,n,r,o=V$(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return H$(e=o.call.apply(o,[this].concat(n)),"saving",L$,q$(e)),H$(e,"sentenceCount",R$,q$(e)),H$(e,"summarizeFormat",F$,q$(e)),H$(e,"setSentenceCount",z$,q$(e)),e}return t=a,(n=[{key:"summarizeWithBullets",get:function(){return"bullets"===this.summarizeFormat}},{key:"summarizeAdvanced",get:function(){return"prompt"===this.summarizeFormat}},{key:"summarizeFormatChanged",value:function(e){this.summarizeFormat=e.target.value}},{key:"summaryFormat",value:function(e){var t=this.summarizeWithBullets?"bullet point":"sentence";return e>1?"".concat(e," ").concat(t,"s"):"".concat(e," ").concat(t)}},{key:"save",value:function(){var e=this;this.saving=!0;var t=this.props.store,n=t.user,r=t.transportLayer,o={subtype:"summary",sentenceCount:this.sentenceCount,summarizeFormat:this.summarizeFormat};r.generateSummary(o,Object(d.action)((function(r){var o={id:r.id,created_at:r.created_at,prompt:r.prompt,text:r.text};t.summaries.unshift(o),t.setViewingSummary(o),e.saving=!1,n.updateSummarizationData(r)})))}},{key:"renderButtons",value:function(){var e=this.props.store.uiState;return this.saving?s.a.createElement("div",{className:"my-5 pt-4"},s.a.createElement(Ne,null),s.a.createElement("p",{className:"mt-0 text--color-primary text--weight-700 text-center"},"Our AI is generating a summary...")):s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("button",{className:"btn btn-primary mb-0",onClick:this.save},s.a.createElement("i",{className:"fa fa-indent me-2"}),"Generate summary"),s.a.createElement("button",{className:"btn mb-0",onClick:e.hideSummaryModal},s.a.createElement("i",{className:"fa fa-times me-2"}),"Cancel"))}},{key:"renderSummaryDropdowns",value:function(){var e=this;return s.a.createElement("div",{className:"form-group mb-2 mt-4"},s.a.createElement("label",{className:"input--label",htmlFor:"download-format"},s.a.createElement("i",{className:"far fa-align-left me-2"}),"How long would you like your summary?"),s.a.createElement("select",{value:this.sentenceCount,onChange:this.setSentenceCount,className:"form-control"},[1,2,3,4,5,6,7,8,9,10].map((function(t){return s.a.createElement("option",{key:t,value:t},e.summaryFormat(t))}))))}},{key:"renderSummaryForm",value:function(){var e=this.props.store.recording;return s.a.createElement(s.a.Fragment,null,s.a.createElement("p",null,"Sonix’s advanced AI will summarize your transcript, which is ",s.a.createElement("strong",null,e.formattedDurationLong)," long. Choose your preferred summary format below."),s.a.createElement(I$,{onChange:this.summarizeFormatChanged,summarizeFormat:this.summarizeFormat}),this.renderSummaryDropdowns())}},{key:"renderContent",value:function(){var e=this.props,t=e.user,n=e.store,r=t.hasRecurringSummarizationCredit,o=t.summarizationCreditRemaining,a=t.summarizationAddOnEnabled||(r?o>n.duration:!t.reachedTrialSummarizationLimit);return s.a.createElement("div",{className:"border-all-sidebar"},s.a.createElement("div",{className:"row justify-content-center",style:{minHeight:"25rem"}},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement("div",{className:"p-3"},s.a.createElement("form",null,!this.saving&&this.renderSummaryForm(),a&&this.renderButtons())))))}},{key:"render",value:function(){var e=this.props,t=e.user,n=e.store;return this.saving||t.canUseAiAnalysis(n.duration)?this.renderContent():s.a.createElement(lT,{user:t})}}])&&U$(t.prototype,n),r&&U$(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),L$=K$(A$.prototype,"saving",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),R$=K$(A$.prototype,"sentenceCount",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 3}}),F$=K$(A$.prototype,"summarizeFormat",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"text"}}),K$(A$.prototype,"summarizeWithBullets",[d.computed],Object.getOwnPropertyDescriptor(A$.prototype,"summarizeWithBullets"),A$.prototype),K$(A$.prototype,"summarizeAdvanced",[d.computed],Object.getOwnPropertyDescriptor(A$.prototype,"summarizeAdvanced"),A$.prototype),K$(A$.prototype,"summarizeFormatChanged",[D$],Object.getOwnPropertyDescriptor(A$.prototype,"summarizeFormatChanged"),A$.prototype),K$(A$.prototype,"summaryFormat",[N$],Object.getOwnPropertyDescriptor(A$.prototype,"summaryFormat"),A$.prototype),K$(A$.prototype,"save",[P$],Object.getOwnPropertyDescriptor(A$.prototype,"save"),A$.prototype),z$=K$(A$.prototype,"setSentenceCount",[T$],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){return e.sentenceCount=t.target.value}}}),M$=A$))||M$),Z$=Q$;function eJ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function tJ(e,t){return tJ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tJ(e,t)}function nJ(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=oJ(e);if(t){var o=oJ(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return rJ(e)}(this,n)}}function rJ(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oJ(e){return oJ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oJ(e)}var aJ,iJ=Object(se.c)((J$=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tJ(e,t)}(a,e);var t,n,r,o=nJ(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(e=o.call.apply(o,[this].concat(n)),"fetching",X$,rJ(e)),e}return t=a,(n=[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.custom;(0,t.store.fetchSummaries)({custom:n}).then(Object(d.action)((function(){return e.fetching=!1})))}},{key:"renderSummaryList",value:function(){var e=this.props.store,t=e.summaries,n=e.viewingSummary,r=e.setViewingSummary;return t.map((function(e){var t=Ol.a.unix(e.created_at);return s.a.createElement("li",{key:e.id,onClick:function(){return r(e)},className:ue()("list-group-item list-group-item-action clickable","d-flex align-items-center",{active:e.id===n.id})},s.a.createElement("div",{className:"media"},s.a.createElement("i",{className:"far fa-fw fa-file-alt me-3 mt-0 align-self-center"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("h5",{className:"d-block text--weight-700 mb-0"},t.format("MMM D, YYYY [at] h:mm a")),s.a.createElement("p",{className:"mb-0"},e.prompt))))}))}},{key:"renderLoadingAnimation",value:function(){return s.a.createElement("div",{className:"my-5 pt-4"},s.a.createElement(Ne,null))}},{key:"render",value:function(){var e=this.props,t=e.custom,n=e.store,r=n.viewingSummary,o=n.setViewingSummary;return s.a.createElement("div",{className:"h-100"},s.a.createElement("ul",{className:"list-group modal--list scrollbar--custom"},s.a.createElement("li",{key:"new",onClick:function(){return o({id:null})},className:ue()("list-group-item list-group-item-action clickable","d-flex",{active:!r.id})},s.a.createElement("div",{className:"media"},s.a.createElement("i",{className:"far fa-fw mt-0 fa-file-circle-plus me-3 align-self-center"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("p",{className:"d-block text--weight-700 mb-0"},t?"New analysis":"New summary")))),this.fetching?this.renderLoadingAnimation():this.renderSummaryList()))}}])&&eJ(t.prototype,n),r&&eJ(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),X$=function(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}(J$.prototype,"fetching",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),$$=J$))||$$,lJ=iJ,sJ=Object(se.c)((function(e){var t=e.summary;return s.a.createElement("div",{className:"border-all-sidebar"},s.a.createElement("div",{className:"scrollbar--custom font-family-roboto-mono"},s.a.createElement("div",{className:"p-3 bgcolor--fc-glass"},s.a.createElement("h5",{className:"mb-0"},"Prompt"),s.a.createElement("h3",{className:"text--weight-700 mb-0"},t.prompt)),s.a.createElement("div",{className:"modal--content"},s.a.createElement("h5",{className:"mb-0"},"Result"),s.a.createElement("p",{style:{whiteSpace:"pre-line"}},t.text)),s.a.createElement("div",{className:"p-3 bgcolor--fc-glass form-actions text-center my-0"},s.a.createElement(cT.a,{className:"btn btn-primary my-0","data-clipboard-text":t.text},s.a.createElement("span",null,s.a.createElement("i",{className:"fa fa-copy me-2"}),"Copy to clipboard")))))}));function cJ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function uJ(e,t){return uJ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},uJ(e,t)}function fJ(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pJ(e);if(t){var o=pJ(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function pJ(e){return pJ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pJ(e)}var dJ,mJ,hJ,yJ,bJ,vJ,gJ=Object(se.c)(aJ=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uJ(e,t)}(a,e);var t,n,r,o=fJ(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"renderModalContent",value:function(){var e=this.props,t=e.store,n=e.user,r=t.viewingSummary;return s.a.createElement("div",{className:"row row-eq-height"},s.a.createElement("div",{className:"col-sm-4"},s.a.createElement(lJ,{store:t})),s.a.createElement("div",{className:"col-sm-8"},s.a.createElement("div",{className:"h-100"},r.id?s.a.createElement(sJ,{summary:r}):s.a.createElement(Z$,{store:t,user:n}))))}},{key:"render",value:function(){var e=this.props,t=e.store,n=e.user,r=t.uiState;return s.a.createElement(ao,{modalClasses:ue()("smodal--content",{"smodal--content-full":!0},{"smodal--content-sm":!1}),modalTitle:"AI Analysis: Generate Summary",modalIcon:"far fa-indent",modalFooter:s.a.createElement(eT,{store:t,user:n}),isOpen:r.modals.Summary,onRequestClose:r.hideSummaryModal},this.renderModalContent())}}])&&cJ(t.prototype,n),r&&cJ(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||aJ,wJ=gJ;function EJ(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function _J(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function kJ(e,t){return kJ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},kJ(e,t)}function OJ(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=SJ(e);if(t){var o=SJ(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return xJ(e)}(this,n)}}function xJ(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function SJ(e){return SJ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},SJ(e)}function jJ(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var CJ,DJ=(dJ=d.action.bound,mJ=d.action.bound,Object(se.c)((yJ=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kJ(e,t)}(a,e);var t,n,r,o=OJ(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return EJ(e=o.call.apply(o,[this].concat(n)),"saving",bJ,xJ(e)),EJ(e,"customPrompt",vJ,xJ(e)),e}return t=a,(n=[{key:"customPromptChanged",value:function(e){this.customPrompt=e.target.value}},{key:"save",value:function(){var e=this;this.saving=!0;var t=this.props.store,n=t.user,r=t.transportLayer,o={subtype:"custom",customPrompt:this.customPrompt};r.generateSummary(o,Object(d.action)((function(r){var o={id:r.id,created_at:r.created_at,prompt:r.prompt,text:r.text};t.summaries.unshift(o),t.setViewingSummary(o),e.saving=!1,n.updateSummarizationData(r)})))}},{key:"renderButtons",value:function(){var e=this.props.store.uiState;return this.saving?s.a.createElement("div",{className:"my-5 pt-4"},s.a.createElement(Ne,null),s.a.createElement("p",{className:"mt-0 text--color-primary text--weight-700 text-center"},"Got it! Our AI is analyzing your transcript. Please wait...")):s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("button",{className:"btn btn-primary mb-0",onClick:this.save},s.a.createElement("i",{className:"fa fa-indent me-2"}),"Generate Analysis"),s.a.createElement("button",{className:"btn mb-0",onClick:e.hideCustomPromptModal},s.a.createElement("i",{className:"fa fa-times me-2"}),"Cancel"))}},{key:"renderAdvancedPrompt",value:function(){return s.a.createElement("div",{className:"form-group mb-2 mt-4"},s.a.createElement("label",{className:"input--label",htmlFor:"download-format"},s.a.createElement("i",{className:"far fa-chevrons-right me-2"}),"Ask your transcript anything, type your custom prompt below:"),s.a.createElement("textarea",{onChange:this.customPromptChanged,value:this.customPrompt,className:"form-control",rows:"4",placeholder:"For the best results, please be as detailed as possible."}),s.a.createElement("small",{className:"form-text text-muted"},'Example prompts: "Classify entities mentioned into pre-defined categories: person names, organizations, locations", "What are the main topics and categorize them into themes",  "Write fun, engaging tweets about this transcript", "Summarize in French"'))}},{key:"renderSummaryForm",value:function(){var e=this.props.store.recording;return s.a.createElement(s.a.Fragment,null,s.a.createElement("p",null,"Sonix’s advanced AI processes your transcript, which is ",s.a.createElement("strong",null,e.formattedDurationLong)," long. Have specific questions? Just type your custom prompt below and get the answers you need!"),this.renderAdvancedPrompt())}},{key:"renderContent",value:function(){var e=this.props,t=e.user,n=e.store,r=t.hasRecurringSummarizationCredit,o=t.summarizationCreditRemaining,a=t.summarizationAddOnEnabled||(r?o>n.duration:!t.reachedTrialSummarizationLimit);return s.a.createElement("div",{className:"border-all-sidebar"},s.a.createElement("div",{className:"row justify-content-center",style:{minHeight:"25rem"}},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement("div",{className:"p-3"},s.a.createElement("form",null,!this.saving&&this.renderSummaryForm(),a&&this.renderButtons())))))}},{key:"render",value:function(){var e=this.props,t=e.user,n=e.store;return this.saving||t.canUseAiAnalysis(n.duration)?this.renderContent():s.a.createElement(lT,{user:t})}}])&&_J(t.prototype,n),r&&_J(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),bJ=jJ(yJ.prototype,"saving",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),vJ=jJ(yJ.prototype,"customPrompt",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),jJ(yJ.prototype,"customPromptChanged",[dJ],Object.getOwnPropertyDescriptor(yJ.prototype,"customPromptChanged"),yJ.prototype),jJ(yJ.prototype,"save",[mJ],Object.getOwnPropertyDescriptor(yJ.prototype,"save"),yJ.prototype),hJ=yJ))||hJ),NJ=DJ;function PJ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function TJ(e,t){return TJ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},TJ(e,t)}function MJ(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=AJ(e);if(t){var o=AJ(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function AJ(e){return AJ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},AJ(e)}var LJ,RJ,FJ,zJ,BJ,YJ,IJ,HJ,UJ,WJ,VJ=Object(se.c)(CJ=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&TJ(e,t)}(a,e);var t,n,r,o=MJ(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"renderModalContent",value:function(){var e=this.props,t=e.store,n=e.user,r=t.viewingSummary;return s.a.createElement("div",{className:"row row-eq-height"},s.a.createElement("div",{className:"col-sm-4"},s.a.createElement(lJ,{store:t,custom:!0})),s.a.createElement("div",{className:"col-sm-8"},s.a.createElement("div",{className:"h-100"},r.id?s.a.createElement(sJ,{summary:r}):s.a.createElement(NJ,{store:t,user:n}))))}},{key:"render",value:function(){var e=this.props,t=e.store,n=e.user,r=t.uiState;return s.a.createElement(ao,{modalClasses:ue()("smodal--content",{"smodal--content-full":!0},{"smodal--content-sm":!1}),modalTitle:"AI Analysis: Custom Prompt",modalIcon:"far fa-indent",modalFooter:s.a.createElement(eT,{store:t,user:n}),isOpen:r.modals.CustomPrompt,onRequestClose:r.hideCustomPromptModal},this.renderModalContent())}}])&&PJ(t.prototype,n),r&&PJ(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||CJ,qJ=VJ;function GJ(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function KJ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function $J(e,t){return $J=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$J(e,t)}function JJ(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=QJ(e);if(t){var o=QJ(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return XJ(e)}(this,n)}}function XJ(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QJ(e){return QJ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},QJ(e)}function ZJ(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var eX,tX,nX,rX,oX=(LJ=d.action.bound,RJ=d.action.bound,FJ=d.action.bound,zJ=d.action.bound,Object(se.c)((YJ=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$J(e,t)}(a,e);var t,n,r,o=JJ(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return GJ(e=o.call.apply(o,[this].concat(n)),"saving",IJ,XJ(e)),GJ(e,"frameRate",HJ,XJ(e)),GJ(e,"frameOffset",UJ,XJ(e)),GJ(e,"negativeOffset",WJ,XJ(e)),e}return t=a,(n=[{key:"toggleNegativeOffset",value:function(){this.negativeOffset=!this.negativeOffset}},{key:"assignFormValues",value:function(){var e=this.props.store.recording,t=e.frameRate,n=e.timecodeOffset;this.frameRate=t,this.negativeOffset=n<0}},{key:"save",value:function(){var e=this;this.saving=!0;var t,n=this.props.store,r=n.transportLayer,o=n.uiState;this.frameOffset=parseInt(this.refs.offsetMilliSeconds.value)||0,t=0==this.frameRate?this.frameOffset:this.frameOffset*(1e3/this.frameRate);var a=parseInt(this.refs.offsetSeconds.value)||0,i=parseInt(this.refs.offsetMinutes.value)||0,l=3600*(parseInt(this.refs.offsetHours.value)||0)+60*i+a+t/1e3;this.negativeOffset&&(l*=-1),r.setTimecodeOffset(l,this.frameRate,this.frameOffset).then((function(){o.hideAdjustOffsetModal(),e.saving=!1}))}},{key:"setFrameRate",value:function(e){this.frameRate=parseFloat(e.target.value)}},{key:"renderButtons",value:function(){var e=this.props.store.uiState;return this.saving?s.a.createElement(_o,{text:"Updating offset. Please wait."}):s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("button",{className:"btn btn-primary t--timecode-offset-button",onClick:this.save},s.a.createElement("i",{className:"fa fa-sliders-h me-2"}),"Adjust start timecode"),s.a.createElement("button",{className:"btn",onClick:e.hideAdjustOffsetModal},s.a.createElement("i",{className:"fa fa-times me-2"}),"Cancel"))}},{key:"renderForm",value:function(){var e=this.props.store.recording.timecodeOffset;e=Math.abs(e);var t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.floor(e%60);return s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10 mb-2"},s.a.createElement("div",{className:"app-image"},s.a.createElement("div",{className:"app-feature app-feature-time-offset img-fluid"},"Time Offset")),s.a.createElement("p",null,"Transcripts usually start at 00:00:00.000, but you might want to offset the start time. Adding timestamps is tedious and we can automatically do that for you."),s.a.createElement("div",{className:"form-group mb-3"},s.a.createElement("label",{className:"input--label",htmlFor:"frameRate"},"Offset by framerate"),s.a.createElement("select",{className:"form-select",id:"frameRate",value:this.frameRate,onChange:this.setFrameRate},s.a.createElement("option",{value:0},"No framerate (Milliseconds)"),s.a.createElement("option",{value:23.98},"23.98 frames/second"),s.a.createElement("option",{value:24},"24 frames/second"),s.a.createElement("option",{value:25},"25 frames/second"),s.a.createElement("option",{value:29.97},"29.97 frames/second"),s.a.createElement("option",{value:30},"30 frames/second"),s.a.createElement("option",{value:50},"50 frames/second"),s.a.createElement("option",{value:60},"60 frames/second"))),s.a.createElement("div",{className:"form-group form-time d-flex flex-row"},s.a.createElement("div",{className:"align-self-center"},s.a.createElement(xW,{labelLeftFalse:"",labelRightTrue:"",iconFalse:"\\f068",iconTrue:"\\2b",onChange:this.toggleNegativeOffset,checked:!this.negativeOffset})),s.a.createElement("div",{className:"form-row row g-0 flex-grow-1"},s.a.createElement("div",{className:"col"},s.a.createElement("label",{className:"form-time-field",htmlFor:"offsetHours","data-time-label":"hours"},s.a.createElement("input",{type:"number",id:"offsetHours",ref:"offsetHours",className:"form-time-input form-time-hours form-control-time form-control",min:"0",max:"99",placeholder:"00",defaultValue:t}))),s.a.createElement("div",{className:"col"},s.a.createElement("label",{className:"form-time-field",htmlFor:"offsetMinutes","data-time-label":"minutes","data-time-separator":":"},s.a.createElement("input",{type:"number",id:"offsetMinutes",ref:"offsetMinutes",className:"form-time-input form-time-minutes form-control",min:"0",max:"60",placeholder:"00",defaultValue:n}))),s.a.createElement("div",{className:"col"},s.a.createElement("label",{className:"form-time-field",htmlFor:"offsetSeconds","data-time-label":"seconds","data-time-separator":":"},s.a.createElement("input",{type:"number",id:"offsetSeconds",ref:"offsetSeconds",className:"form-time-input form-time-seconds form-control",min:"0",max:"60",placeholder:"00",defaultValue:r}))),s.a.createElement("div",{className:"col"},this.renderFrameOffset()))),this.renderButtons()))}},{key:"renderFrameOffset",value:function(){var e=this.props.store.recording.frameOffset;return 0===this.frameRate?s.a.createElement("label",{className:"form-time-field",htmlFor:"offsetMilliSeconds","data-time-label":"milliseconds","data-time-separator":"."},s.a.createElement("input",{type:"number",id:"offsetMilliSeconds",ref:"offsetMilliSeconds",className:"form-time-field form-time-mseconds form-control",min:"0",max:"999",placeholder:"000",defaultValue:e})):s.a.createElement("label",{className:"form-time-field",htmlFor:"offsetMilliSeconds","data-time-label":"frames","data-time-separator":":"},s.a.createElement("input",{type:"number",id:"offsetMilliSeconds",ref:"offsetMilliSeconds",className:"form-time-field form-time-mseconds form-control",min:"0",max:"99",placeholder:"00",defaultValue:e}))}},{key:"render",value:function(){var e=this.props.store.uiState;return s.a.createElement(ao,{modalClasses:"smodal--content smodal--content-md",onAfterOpen:this.assignFormValues,modalTitle:"Adjust start timecode",modalIcon:"far fa-sliders-h",onEnter:this.save,isOpen:e.modals.AdjustOffset,onRequestClose:e.hideAdjustOffsetModal},this.renderForm())}}])&&KJ(t.prototype,n),r&&KJ(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),IJ=ZJ(YJ.prototype,"saving",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),HJ=ZJ(YJ.prototype,"frameRate",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),UJ=ZJ(YJ.prototype,"frameOffset",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),WJ=ZJ(YJ.prototype,"negativeOffset",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ZJ(YJ.prototype,"toggleNegativeOffset",[LJ],Object.getOwnPropertyDescriptor(YJ.prototype,"toggleNegativeOffset"),YJ.prototype),ZJ(YJ.prototype,"assignFormValues",[RJ],Object.getOwnPropertyDescriptor(YJ.prototype,"assignFormValues"),YJ.prototype),ZJ(YJ.prototype,"save",[FJ],Object.getOwnPropertyDescriptor(YJ.prototype,"save"),YJ.prototype),ZJ(YJ.prototype,"setFrameRate",[zJ],Object.getOwnPropertyDescriptor(YJ.prototype,"setFrameRate"),YJ.prototype),BJ=YJ))||BJ),aX=oX;function iX(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function lX(e,t){return lX=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lX(e,t)}function sX(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=uX(e);if(t){var o=uX(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return cX(e)}(this,n)}}function cX(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uX(e){return uX=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},uX(e)}function fX(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var pX,dX,mX,hX,yX,bX,vX,gX,wX,EX,_X=(eX=d.action.bound,Object(se.c)((nX=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lX(e,t)}(a,e);var t,n,r,o=sX(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(e=o.call.apply(o,[this].concat(n)),"compressing",rX,cX(e)),e}return t=a,(n=[{key:"handleClick",value:function(e){var t=this,n=this.props.store;e.preventDefault(),window.confirm("Are you sure that you want to permanently compress your original file to save storage space?")&&(this.compressing=!0,n.transportLayer.compress().then((function(){t.compressing=!1,n.recording.compressed=!0})))}},{key:"render",value:function(){var e=this.props.store;return e.recording.compressed?s.a.createElement("tr",null,s.a.createElement("td",{className:"d-none d-md-table-cell text--color-meta-dark"},"File quality"),s.a.createElement("td",{className:"fw-bold text-end","data-label":"Quality"},"Compressed")):s.a.createElement(s.a.Fragment,null,s.a.createElement("tr",null,s.a.createElement("td",{className:"d-none d-md-table-cell text--color-meta-dark"},"File size"),s.a.createElement("td",{className:"fw-bold text-end","data-label":"File size"},e.recording.fileSize," MB")),s.a.createElement("tr",null,s.a.createElement("td",{className:"d-none d-md-table-cell text--color-meta-dark"},"File quality"),s.a.createElement("td",{className:"fw-bold text-end","data-label":"File quality"},"Original",e.isOwner&&!this.compressing&&s.a.createElement(s.a.Fragment,null,s.a.createElement("br",null),s.a.createElement("a",{href:"#",onClick:this.handleClick},s.a.createElement("i",{className:"far fa-file-archive fa-fw me-1"}),"Compress to save storage")))))}}])&&iX(t.prototype,n),r&&iX(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),rX=fX(nX.prototype,"compressing",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),fX(nX.prototype,"handleClick",[eX],Object.getOwnPropertyDescriptor(nX.prototype,"handleClick"),nX.prototype),tX=nX))||tX),kX=function(e){var t=e.store,n=t.recording,r=t.transcript,o=Ol.a.unix(n.createdAt),a=Ol.a.unix(r.lastSavedAt),i=r.fullText(),l=Object(we.i)(r.language);return s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10"},s.a.createElement("table",{className:"table table--padding-lg table--row-hover"},s.a.createElement("tbody",{className:"table--text-size"},s.a.createElement("tr",null,s.a.createElement("td",{className:"d-none d-md-table-cell text--color-meta-dark"},"ID"),s.a.createElement("td",{className:"fw-bold text-end","data-label":"ID"},n.id)),s.a.createElement("tr",null,s.a.createElement("td",{className:"d-none d-md-table-cell text--color-meta-dark"},"Filename"),s.a.createElement("td",{className:"fw-bold text-end","data-label":"Filename"},n.name)),s.a.createElement("tr",null,s.a.createElement("td",{className:"d-none d-md-table-cell text--color-meta-dark"},"Length"),s.a.createElement("td",{className:"fw-bold text-end","data-label":"Length"},Object(we.d)(t.duration))),s.a.createElement(_X,{store:t}),s.a.createElement("tr",{className:"border-top--primary-light",style:{borderTopWidth:"3px"}},s.a.createElement("td",{className:"d-none d-md-table-cell text--color-meta-dark"},"Owner"),s.a.createElement("td",{className:"fw-bold text-end","data-label":"Owner"},t.ownerName,s.a.createElement("br",null),t.ownerEmail)),s.a.createElement("tr",null,s.a.createElement("td",{className:"d-none d-md-table-cell text--color-meta-dark"},"Created on"),s.a.createElement("td",{className:"fw-bold text-end","data-label":"Created on"},o.format("MMMM D, YYYY [at] h:mm a"))),s.a.createElement("tr",null,s.a.createElement("td",{className:"d-none d-md-table-cell text--color-meta-dark"},"Last modified"),s.a.createElement("td",{className:"fw-bold text-end","data-label":"Last modified"},a.format("MMMM D, YYYY [at] h:mm a"))),s.a.createElement("tr",{className:"border-top--primary-light",style:{borderTopWidth:"3px"}},s.a.createElement("td",{className:"d-none d-md-table-cell text--color-meta-dark"},"Language"),s.a.createElement("td",{className:"fw-bold text-end","data-label":"Language"},l.language,l.flag.split(",").map((function(e,t){return s.a.createElement("i",{key:"selected-flag-"+t,className:"flag-icon mx-1 flag-icon-"+e})})))),s.a.createElement("tr",null,s.a.createElement("td",{className:"d-none d-md-table-cell text--color-meta-dark"},"Words"),s.a.createElement("td",{className:"fw-bold text-end","data-label":"Words"},i.split(/\s/).length)),s.a.createElement("tr",null,s.a.createElement("td",{className:"d-none d-md-table-cell text--color-meta-dark"},"Characters"),s.a.createElement("td",{className:"fw-bold text-end","data-label":"Characters"},i.length)),s.a.createElement("tr",null,s.a.createElement("td",{className:"d-none d-md-table-cell text--color-meta-dark"},"Characters excluding spaces"),s.a.createElement("td",{className:"fw-bold text-end","data-label":"Characters excluding spaces"},i.replace(/\s+/g,"").length)),n.customData&&s.a.createElement("tr",null,s.a.createElement("td",{className:"d-none d-md-table-cell text--color-meta-dark"},"Custom Data"),s.a.createElement("td",{className:"fw-bold","data-label":"Characters excluding spaces"},s.a.createElement("pre",null,JSON.stringify(n.customData,null,2))))))))},OX=Object(se.c)((function(e){var t=e.store,n=t.uiState;return s.a.createElement(ao,{modalClasses:"smodal--content smodal--content-sm",modalTitle:"Transcript Details",modalIcon:"far fa-info-circle",isOpen:n.modals.TranscriptDetails,onRequestClose:n.hideTranscriptDetailsModal},s.a.createElement(kX,{store:t}))}));function xX(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function SX(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function jX(e,t){return jX=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jX(e,t)}function CX(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=NX(e);if(t){var o=NX(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return DX(e)}(this,n)}}function DX(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function NX(e){return NX=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},NX(e)}function PX(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var TX,MX,AX,LX,RX,FX,zX,BX,YX=["Archivist","Author / Blogger","Church","Coach","Conference Organizer","Court Reporter","Documentary Filmmaker","Education","Financial services","Government","Journalist","Legal","Marketing","Medical","Non-Profit","Podcast","Qualitative Researcher","Radio","Recruiting / Interviews","Student","TV Production","User Experience","Video Production","Other"],IX=["Under 5 hours","5-20 hours","21-100 hours","More than 100 hours"],HX=["Less than 1 month","1-3 months","3-6 months","6-12 months","More than a year"],UX=["Just me","1-10","11-50","51-200","Over 200"],WX=["Less than $100","$101-$500","$501-$1000","$1001-$2000","$2001-$5000","Over $5000"],VX=(pX=Object(se.b)("store","user"),dX=d.action.bound,pX(mX=Object(se.c)((hX=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jX(e,t)}(a,e);var t,n,r,o=CX(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return xX(e=o.call.apply(o,[this].concat(n)),"showError",yX,DX(e)),xX(e,"industry",bX,DX(e)),xX(e,"hours",vX,DX(e)),xX(e,"months",gX,DX(e)),xX(e,"companySize",wX,DX(e)),xX(e,"budget",EX,DX(e)),e.pushModalSurveyEvent=function(){Object(we.k)("sonix_onboarding_user_survey_modal")},e}return t=a,(n=[{key:"submitSurvey",value:function(){var e=this.props,t=e.user,n=e.store;""!==this.industry&&""!==this.hours&&""!==this.months&&""!==this.companySize&&""!=this.budget?(this.showError=!1,Object(we.k)("sonix_onboarding_user_survey_completed"),n.transportLayer.saveUserSurver({industry:this.industry,hours:this.hours,months:this.months,company_size:this.companySize,budget:this.budget}),t.askUserSurvey=!1):this.showError=!0}},{key:"render",value:function(){var e=this,t=this.props.user;return s.a.createElement(ao,{modalClasses:"smodal--content smodal--content-sm",onAfterOpen:this.pushModalSurveyEvent,isOpen:t.askUserSurvey,hideCloseButton:!0,modalTitle:"Tell us about yourself",modalIcon:"far fa-comment-alt-smile"},s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10"},this.showError&&s.a.createElement(ni,null,s.a.createElement("p",{className:"mb-0"},"Please answer these four quick questions so we can better serve you.")),s.a.createElement("div",{className:"form-group"},s.a.createElement("label",{htmlFor:"findInput",className:"input--label text--size-1000rem text--color-secondary"},"What industry are you in?"),s.a.createElement("select",{required:!0,className:"form-control",value:this.industry,onChange:function(t){return e.industry=t.target.value}},s.a.createElement("option",{disabled:!0,value:""},"---"),YX.map((function(e){return s.a.createElement("option",{value:e,key:e},e)})))),s.a.createElement("div",{className:"form-group"},s.a.createElement("label",{htmlFor:"replaceInput",className:"input--label text--size-1000rem text--color-secondary"},"How big is your company?"),s.a.createElement("select",{required:!0,className:"form-control",value:this.companySize,onChange:function(t){return e.companySize=t.target.value}},s.a.createElement("option",{disabled:!0,value:""},"---"),UX.map((function(e){return s.a.createElement("option",{value:e,key:e},e)})))),s.a.createElement("div",{className:"form-group"},s.a.createElement("label",{htmlFor:"replaceInput",className:"input--label text--size-1000rem text--color-secondary"},"How many hours do you plan on transcribing?"),s.a.createElement("select",{required:!0,className:"form-control",value:this.hours,onChange:function(t){return e.hours=t.target.value}},s.a.createElement("option",{disabled:!0,value:""},"---"),IX.map((function(e){return s.a.createElement("option",{value:e,key:e},e)})))),s.a.createElement("div",{className:"form-group"},s.a.createElement("label",{htmlFor:"replaceInput",className:"input--label text--size-1000rem text--color-secondary"},"How long will it take to complete your project?"),s.a.createElement("select",{required:!0,className:"form-control",value:this.months,onChange:function(t){return e.months=t.target.value}},s.a.createElement("option",{disabled:!0,value:""},"---"),HX.map((function(e){return s.a.createElement("option",{value:e,key:e},e)})))),s.a.createElement("div",{className:"form-group"},s.a.createElement("label",{htmlFor:"replaceInput",className:"input--label text--size-1000rem text--color-secondary"},"What is your estimated annual budget for transcription and translation services in USD?"),s.a.createElement("select",{required:!0,className:"form-control",value:this.budget,onChange:function(t){return e.budget=t.target.value}},s.a.createElement("option",{disabled:!0,value:""},"---"),WX.map((function(e){return s.a.createElement("option",{value:e,key:e},e)})))),s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("button",{className:"btn btn-primary d-block w-100 btn-md text--size-1000rem",onClick:this.submitSurvey},"Submit and see transcript",s.a.createElement("i",{className:"fa fa-arrow-right ms-2"}))))))}}])&&SX(t.prototype,n),r&&SX(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),yX=PX(hX.prototype,"showError",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),bX=PX(hX.prototype,"industry",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),vX=PX(hX.prototype,"hours",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),gX=PX(hX.prototype,"months",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),wX=PX(hX.prototype,"companySize",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),EX=PX(hX.prototype,"budget",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),PX(hX.prototype,"submitSurvey",[dX],Object.getOwnPropertyDescriptor(hX.prototype,"submitSurvey"),hX.prototype),mX=hX))||mX)||mX),qX=VX;function GX(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function KX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $X(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function JX(e,t,n){return t&&$X(e.prototype,t),n&&$X(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function XX(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&QX(e,t)}function QX(e,t){return QX=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},QX(e,t)}function ZX(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=tQ(e);if(t){var o=tQ(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return eQ(e)}(this,n)}}function eQ(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tQ(e){return tQ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tQ(e)}function nQ(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var rQ,oQ=Object(se.c)((MX=function(e){XX(n,e);var t=ZX(n);function n(){var e;KX(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return GX(e=t.call.apply(t,[this].concat(o)),"fetching",AX,eQ(e)),e}return JX(n,[{key:"componentDidMount",value:function(){var e=this;(0,this.props.store.fetchVersions)().then(Object(d.action)((function(){return e.fetching=!1})))}},{key:"renderVersionList",value:function(){var e=this.props.store,t=e.setViewingVersion,n=e.versions,r=e.viewingVersion,o=n.length-1;return n.length>0?n.map((function(e){var n=Ol.a.unix(e.created_at);return s.a.createElement("li",{key:e.id,onClick:function(){return t(e.id,e.type)},className:ue()("list-group-item list-group-item-action","d-flex align-items-center",{active:e.id===r.id})},s.a.createElement("span",{className:"badge badge-primary me-3"},0==o?"Original":o--),s.a.createElement("div",null,s.a.createElement("span",{className:"d-block text--weight-700 mb-0"},n.format("MMM D, YYYY [at] h:mm a")),s.a.createElement("span",{className:"d-block mb-0"},e.user&&s.a.createElement("span",null,"Edited by ",e.user)),e.subtitled&&s.a.createElement("span",{className:"badge badge-info","data-balloon":"This version contains subtitles","data-balloon-length":"medium","data-balloon-pos":"down"},s.a.createElement("i",{className:"fas fa-stream fa-fw me-2"}),"Subtitles")))})):s.a.createElement("li",{className:"list-group-item list-group-item-action d-flex align-items-center active"},s.a.createElement("div",null,s.a.createElement("span",{className:"d-block text--weight-700 mb-0"},s.a.createElement("i",{className:"far fa-circle-star fa-fw me-2"}),"Original transcript")))}},{key:"renderLoadingAnimation",value:function(){return s.a.createElement("div",{className:"my-5 pt-4"},s.a.createElement(Ne,null))}},{key:"render",value:function(){return s.a.createElement("div",{className:"h-100"},s.a.createElement("h4",{className:"px-2 py-2 mb-0"},"Versions"),s.a.createElement("ul",{className:"list-group modal--list scrollbar--custom"},this.fetching?this.renderLoadingAnimation():this.renderVersionList(),s.a.createElement("li",{className:"media p-2 text--color-meta"},s.a.createElement("i",{className:"far fa-info-circle me-2 mt-1 text--color-meta"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("p",{className:"text--color-meta"},"Versions are saved for at least one year.")))))}}]),n}(s.a.Component),AX=nQ(MX.prototype,"fetching",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),TX=MX))||TX,aQ=Object(se.c)((function(e){var t=e.version;return t.loaded&&!t.id?s.a.createElement("div",{className:"row py-4 justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10 col-xl-8"},s.a.createElement("div",{className:"text-center text--color-secondary py-5"},s.a.createElement("i",{className:"far fa-3x fa-history mb-4"}),s.a.createElement("h3",{className:"text--weight-700 text--color-secondary"},"Automated backups for your peace of mind"),s.a.createElement("p",{className:"text--color-secondary"},"Sonix automatically saves a version every few minutes as you edit your transcript.")))):t.loaded&&t.id?s.a.createElement("div",{className:"modal--content scrollbar--custom font-family-roboto-mono"},t.preview.map((function(e,t){return s.a.createElement(iQ,{exchange:e,key:t})}))):s.a.createElement("div",{className:"modal--content scrollbar--custom font-family-roboto-mono"},s.a.createElement("div",{className:"my-5 pt-4"},s.a.createElement(Ne,null),s.a.createElement("p",{className:"mt-0 text--color-primary text--weight-700 text-center"},"Loading version...")))})),iQ=function(e){var t=e.exchange;return s.a.createElement("div",{className:"version--exchange"},s.a.createElement("div",{className:"version--exchange-meta"},s.a.createElement("span",{className:"timestamp text--color-meta text--size-800rem d-block"},s.a.createElement("i",{className:"far fa-fw fa-clock me-2"}),Object(we.e)(t.from)),s.a.createElement("strong",{className:"me-2"},t.speaker||"(speaker)"),t.note?s.a.createElement("span",{className:"notes text--color-yellow","data-balloon":t.note,"data-balloon-length":"medium","data-balloon-pos":"top"},s.a.createElement("i",{className:"fas fa-fw fa-sticky-note mx-2"})):s.a.createElement("span",{className:"notes text--color-yellow"},s.a.createElement("i",{className:"far fa-fw fa-sticky-note mx-2"}))),s.a.createElement("p",{style:{whiteSpace:"pre-wrap"}},t.segments.map((function(e,t){return s.a.createElement(lQ,{segment:e,key:t})}))))},lQ=function(e){var t=e.segment;return"highlight"===t.styling?s.a.createElement("span",{className:"highlight--yellow"},t.text):"strike"===t.styling?s.a.createElement("span",{className:"strikethrough--red"},t.text):s.a.createElement("span",null,t.text)},sQ=(LX=d.action.bound,RX=d.action.bound,Object(se.c)((zX=function(e){XX(n,e);var t=ZX(n);function n(){var e;KX(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return GX(e=t.call.apply(t,[this].concat(o)),"restoring",BX,eQ(e)),e}return JX(n,[{key:"restore",value:function(){var e=this,t=this.props.store;this.restoring=!0,t.restoreViewingVersion().then((function(){Object(we.k)("app.versions.click_restore_button"),e.restoring=!1,t.uiState.hideVersionModal()}))}},{key:"onAfterOpen",value:function(){Object(we.k)("app.versions.view_versions_modal")}},{key:"renderRestoreButton",value:function(){var e=this.props.store.versions;return this.props.store.readonly?null:e.length>0?this.restoring?s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{className:"bgcolor--sidebar d-flex justify-content-between px-3 py-2"},s.a.createElement("p",{className:"text--color-sidebar-text my-1"},s.a.createElement("i",{className:"far fa-spin fa-spinner me-2 fa-fw"}),"Restoring version. Please wait."))):s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{className:"bgcolor--sidebar d-flex justify-content-between px-3 py-2"},s.a.createElement("button",{onClick:this.restore,className:"btn btn-primary btn-sm mb-0 mx-0"},s.a.createElement("i",{className:"far fa-window-restore me-2"}),"Restore this version"))):void 0}},{key:"renderModalContent",value:function(){var e=this.props,t=e.user,n=e.store;if(t.hasVersionHistory)return s.a.createElement("div",{className:"row row-eq-height"},s.a.createElement("div",{className:"col-sm-4"},s.a.createElement(oQ,{store:n})),s.a.createElement("div",{className:"col-sm-8"},s.a.createElement("div",{className:"h-100"},s.a.createElement("h4",{className:"px-2 py-2 mb-0"},"Preview"),s.a.createElement("div",{className:"border-all-sidebar"},this.renderRestoreButton(),s.a.createElement(aQ,{version:n.viewingVersion})))));return s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10 mb-2"},s.a.createElement("div",{className:"app-image"},s.a.createElement("div",{className:"app-feature app-feature-previous-versions img-fluid"},"Previous versions")),s.a.createElement("h4",{className:"text--weight-700 mb-2"},"Restore previous version"),s.a.createElement("p",null,"We all make mistakes from time-to-time. But the Sonix editor takes frequent snapshots of your work as you edit. Go back in time and restore a previous version of your transcript."),s.a.createElement("div",{className:"media alert alert-trial"},s.a.createElement("i",{className:"fas fa-history fa-2x me-3"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("h4",{className:"mb-2"},"Subscribers only feature"),s.a.createElement("p",{className:"mb-3"},"Version history is only available to subscribers. Upgrade your account to unlock this and many more great features! "),s.a.createElement("div",{className:"mb-2"},s.a.createElement("a",{href:"/account/subscription/select_plan",target:"_blank",className:"btn btn-alert mb-0 link--underline-none t--btn-subscribe",onClick:function(){return Object(we.k)("app.audio_cropped.click_upgrade_btn")}},s.a.createElement("i",{className:"far fa-fw fa-arrow-up me-2"}),"Upgrade now"),s.a.createElement("a",{href:"https://sonix.ai/pricing",target:"_blank",className:"btn mb-0 link--underline-none t--upgrade-account-btn",onClick:function(){return Object(we.k)("app.audio_cropped.click_refer_btn",formattedDuration)}},s.a.createElement("i",{className:"far fa-fw fa-arrow-up-right-from-square me-2"}),"See pricing"))))))}},{key:"render",value:function(){var e=this.props,t=e.store,n=e.user,r=t.uiState;return s.a.createElement(ao,{modalClasses:ue()("smodal--content",{"smodal--content-full":n.hasVersionHistory},{"smodal--content-sm":!n.hasVersionHistory}),modalTitle:"Version history",modalIcon:"far fa-history",onAfterOpen:this.onAfterOpen,isOpen:r.modals.Version,onRequestClose:r.hideVersionModal},this.renderModalContent())}}]),n}(s.a.Component),BX=nQ(zX.prototype,"restoring",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),nQ(zX.prototype,"restore",[LX],Object.getOwnPropertyDescriptor(zX.prototype,"restore"),zX.prototype),nQ(zX.prototype,"onAfterOpen",[RX],Object.getOwnPropertyDescriptor(zX.prototype,"onAfterOpen"),zX.prototype),FX=zX))||FX),cQ=sQ;function uQ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function fQ(e,t){return fQ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fQ(e,t)}function pQ(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=dQ(e);if(t){var o=dQ(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function dQ(e){return dQ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},dQ(e)}var mQ,hQ,yQ,bQ,vQ=Object(se.b)("store","user")(rQ=Object(se.c)(rQ=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fQ(e,t)}(a,e);var t,n,r,o=pQ(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props.store,t=e.uiState,n=e.videoExports;return s.a.createElement(ao,{modalClasses:ue()("smodal--content",{"smodal--content-sm":0===n.length},{"smodal--content-md":n.length>0}),modalTitle:"Exported Burn-in Videos",modalIcon:"far fa-film-alt",isOpen:t.modals.ExportedVideos,onRequestClose:t.hideExportedVideosModal},s.a.createElement(wU,{condensedTable:!1}))}}])&&uQ(t.prototype,n),r&&uQ(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||rQ)||rQ,gQ=vQ,wQ=Object(se.c)((function(e){var t=e.store,n=e.user,r=t.canShare,o=t.preventExportingAndSharing,a=t.recording,i=t.uiState,l=t.transportLayer,c=t.isOwner&&n.hasPatreonAccount;return s.a.createElement(s.a.Fragment,null,s.a.createElement(uz,{user:n,store:t}),s.a.createElement(Sz,{user:n,store:t}),s.a.createElement(Hz,{user:n,store:t}),s.a.createElement(oB,{user:n,store:t}),s.a.createElement(mB,{user:n,store:t}),s.a.createElement(qB,null),s.a.createElement(zY,{store:t}),s.a.createElement(CI,null),s.a.createElement(WI,{store:t}),s.a.createElement(oH,null),!o&&s.a.createElement(YH,null),!o&&s.a.createElement(QU,null),!o&&s.a.createElement(kW,{store:t}),s.a.createElement(GW,null),s.a.createElement(sV,null),s.a.createElement(kV,null),s.a.createElement(qV,null),s.a.createElement(yq,{user:n,store:t}),s.a.createElement(OX,{store:t}),s.a.createElement(jq,{user:n,store:t}),c&&s.a.createElement(Jq,null),s.a.createElement(kG,{store:t}),s.a.createElement(FG,{user:n,store:t}),s.a.createElement(tK,{user:n,store:t}),r&&!o&&s.a.createElement(t$,null),s.a.createElement(wJ,{user:n,store:t}),s.a.createElement(qJ,{user:n,store:t}),s.a.createElement(zK,{user:n,store:t}),s.a.createElement(Y$,{user:n,store:t}),s.a.createElement(aX,{store:t}),s.a.createElement(qX,null),s.a.createElement(cQ,{user:n,store:t}),s.a.createElement(gQ,null),s.a.createElement(Qi,{item:a,onSave:l.updateAccess,isOpen:i.modals.MakePrivate,onRequestClose:i.hideMakePrivateModal}))})),EQ=Object(se.c)((function(e){var t=e.transcript,n={};return t.highlightedSegments.forEach((function(e){var t=!0===e.color?bk.hColors[0]:e.color;n[t]=n[t]||0,n[t]=n[t]+(e.to-e.from)})),s.a.createElement("ul",{className:"palette--stats"},Object.keys(n).sort((function(e,t){return n[t]-n[e]})).map((function(e){return s.a.createElement("li",{key:e},s.a.createElement("p",{className:"palette--duration"},s.a.createElement("i",{className:"fas fa-square fa-fw me-2",style:{color:e}}),s.a.createElement("span",{className:"text--color"},Object(we.g)(n[e],0))))})))})),_Q=Object(se.c)((function(e){var t=e.transcript,n=t.highlightDuration;return s.a.createElement(Ia,{tag:"div",className:"btn-group"},s.a.createElement(Ia.Toggle,{tag:"span",className:"btn border-none highlight","data-balloon":"Duration of all highlighted sections. Click to see duration by color.","data-balloon-text-align":"left","data-balloon-length":"large","data-balloon-pos":"up-left"},s.a.createElement("i",{className:"far fa-fw fa-highlighter me-2"}),Object(we.g)(n,0)),s.a.createElement(Ia.Content,{className:"dropdown--content-sm dropdown--content-up dropdown--content-right text-start",title:"Highlight duration by color"},n>0?s.a.createElement(EQ,{transcript:t}):s.a.createElement("div",{className:"media"},s.a.createElement("i",{className:"fa fa-ban text--color-red me-2"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("p",{className:"mb-2"},s.a.createElement("strong",{className:"text--color-red"},"No highlights yet")),s.a.createElement("p",null,"Use the",s.a.createElement("span",{className:"badge badge-glass text--transform-uppercase mx-1"},s.a.createElement("i",{className:"far fa-highlighter fa-fw me-2"}),"Highlighter"),"to highlight important words or phrases.")))))})),kQ=function(){return s.a.createElement("a",{className:"btn btn-sm btn-alert",href:"/refer",target:"_blank","data-balloon":"Have a great transcript? Refer a friend and you both can get 100 free minutes.","data-balloon-pos":"up-right","data-balloon-text-align":"left","data-balloon-length":"large",onClick:function(){return Object(we.k)("app.statusbar.click_refer_btn")}},s.a.createElement("i",{className:"far fa-share fa-fw me-1"}),"Refer",s.a.createElement("span",{className:"d-none d-lg-inline"}," friends"))},OQ=n(464),xQ=n.n(OQ);function SQ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function jQ(e,t){return jQ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jQ(e,t)}function CQ(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=NQ(e);if(t){var o=NQ(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return DQ(e)}(this,n)}}function DQ(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function NQ(e){return NQ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},NQ(e)}function PQ(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var TQ=function(e,t){return 100==e?"Click to celebrate!\nAll ".concat(t," paragraphs marked as completed.")+"\n\n“Success is the result of perfection,\nhard work, learning from failure, loyalty,\nand persistence.” —Colin Powell":e>=90?"“Many of life's failures are people who did\nnot realize how close they were to\nsuccess when they gave up.”\n—Thomas Edison"+"\n\n".concat(t," paragraphs"):e>=80?"“It's crazy how fast time flies and how\nthings progress.” —Nathan Chen"+"\n\n".concat(t," paragraphs"):e>=50&&e<60?"“Believe you can and you are halfway\nthere.” —Theodore Roosevelt"+"\n\n".concat(t," paragraphs"):e<=10?"“A journey of a thousand miles begins\nwith a single step” —Lao Tzu"+"\n\n".concat(t," paragraphs"):"Marked as completed: ".concat(t," paragraphs")},MQ=(mQ=d.action.bound,Object(se.c)((yQ=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jQ(e,t)}(a,e);var t,n,r,o=CQ(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(e=o.call.apply(o,[this].concat(n)),"party",bQ,DQ(e)),e.confettiConfig={angle:90,spread:100,startVelocity:40,elementCount:90,dragFriction:.1,duration:4e3,delay:0,width:"8px",height:"17px",colors:["#a864fd","#29cdff","#78ff44","#ff718d","#fdff6a"]},e}return t=a,(n=[{key:"celebrate",value:function(){var e=this;Object(we.k)("sonix_transcript_completed_100_celebrate"),this.party=!0,setTimeout((function(){return e.party=!1}),100)}},{key:"render",value:function(){var e=this.props.transcript,t=e.completedExchangeRatio,n=e.percentCompleted,r="".concat(t[0],"/").concat(t[1]);return 0==n?null:100==n?s.a.createElement("div",{className:"btn-group"},s.a.createElement("span",{className:"btn border-none exchange-completed exchange-completed-100 mb-0",style:{zIndex:200},"data-balloon":TQ(n,t[1]),"data-balloon-length":"large","data-balloon-text-align":"left","data-balloon-break":!0,"data-balloon-pos":"up-left",onClick:this.celebrate},s.a.createElement("i",{className:"fas fa-fw fa-glass-cheers me-2"}),s.a.createElement("span",{className:"font-family-roboto-mono"},"100%")),s.a.createElement("span",{className:"btn border-none",style:{position:"absolute",left:"40%",zIndex:100}},s.a.createElement(xQ.a,{className:"d-block",active:this.party,config:this.confettiConfig}))):s.a.createElement("div",{className:"btn-group"},s.a.createElement("span",{className:"btn border-none exchange-completed mb-0","data-balloon":TQ(n,r),"data-balloon-length":"large","data-balloon-text-align":"left","data-balloon-break":!0,"data-balloon-pos":"up-left"},s.a.createElement("i",{className:"far fa-fw fa-check me-2"}),s.a.createElement("span",{className:"font-family-roboto-mono"},n,"%")))}}])&&SQ(t.prototype,n),r&&SQ(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),bQ=PQ(yQ.prototype,"party",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),PQ(yQ.prototype,"celebrate",[mQ],Object.getOwnPropertyDescriptor(yQ.prototype,"celebrate"),yQ.prototype),hQ=yQ))||hQ),AQ=MQ;function LQ(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function RQ(e){return function(e){if(Array.isArray(e))return BQ(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||zQ(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function FQ(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=zQ(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function zQ(e,t){if(e){if("string"==typeof e)return BQ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?BQ(e,t):void 0}}function BQ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function YQ(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&IQ(e,t)}function IQ(e,t){return IQ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},IQ(e,t)}function HQ(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=WQ(e);if(t){var o=WQ(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===JQ(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return UQ(e)}(this,n)}}function UQ(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WQ(e){return WQ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},WQ(e)}function VQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qQ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$Q(r.key),r)}}function GQ(e,t,n){return t&&qQ(e.prototype,t),n&&qQ(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function KQ(e,t,n){return(t=$Q(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $Q(e){var t=function(e,t){if("object"!==JQ(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==JQ(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===JQ(t)?t:String(t)}function JQ(e){return JQ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},JQ(e)}var XQ={arr:Array.isArray,obj:function(e){return"[object Object]"===Object.prototype.toString.call(e)},fun:function(e){return"function"==typeof e},str:function(e){return"string"==typeof e},num:function(e){return"number"==typeof e},und:function(e){return void 0===e},nul:function(e){return null===e},set:function(e){return e instanceof Set},map:function(e){return e instanceof Map},equ:function(e,t){if(JQ(e)!==JQ(t))return!1;if(XQ.str(e)||XQ.num(e))return e===t;if(XQ.obj(e)&&XQ.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!XQ.und(n)||e===t}};function QQ(){var e=Object(l.useState)(!1)[1];return Object(l.useCallback)((function(){return e((function(e){return!e}))}),[])}function ZQ(e,t){return XQ.und(e)||XQ.nul(e)?t:e}function eZ(e){return XQ.und(e)?[]:XQ.arr(e)?e:[e]}function tZ(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return XQ.fun(e)?e.apply(void 0,n):e}function nZ(e){var t=function(e){return e.to,e.from,e.config,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.delay,e.attach,e.destroyed,e.interpolateTo,e.ref,e.lazy,LQ(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(XQ.und(t))return w({to:t},e);var n=Object.keys(e).reduce((function(n,r){return XQ.und(t[r])?w({},n,KQ({},r,e[r])):n}),{});return w({to:t},n)}var rZ,oZ,aZ=function(){function e(){VQ(this,e),this.payload=void 0,this.children=[]}return GQ(e,[{key:"getAnimatedValue",value:function(){return this.getValue()}},{key:"getPayload",value:function(){return this.payload||this}},{key:"attach",value:function(){}},{key:"detach",value:function(){}},{key:"getChildren",value:function(){return this.children}},{key:"addChild",value:function(e){0===this.children.length&&this.attach(),this.children.push(e)}},{key:"removeChild",value:function(e){var t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()}}]),e}(),iZ=function(e){YQ(n,e);var t=HQ(n);function n(){var e;return VQ(this,n),(e=t.apply(this,arguments)).payload=[],e.attach=function(){return e.payload.forEach((function(t){return t instanceof aZ&&t.addChild(UQ(e))}))},e.detach=function(){return e.payload.forEach((function(t){return t instanceof aZ&&t.removeChild(UQ(e))}))},e}return GQ(n)}(aZ),lZ=function(e){YQ(n,e);var t=HQ(n);function n(){var e;return VQ(this,n),(e=t.apply(this,arguments)).payload={},e.attach=function(){return Object.values(e.payload).forEach((function(t){return t instanceof aZ&&t.addChild(UQ(e))}))},e.detach=function(){return Object.values(e.payload).forEach((function(t){return t instanceof aZ&&t.removeChild(UQ(e))}))},e}return GQ(n,[{key:"getValue",value:function(e){void 0===e&&(e=!1);var t={};for(var n in this.payload){var r=this.payload[n];(!e||r instanceof aZ)&&(t[n]=r instanceof aZ?r[e?"getAnimatedValue":"getValue"]():r)}return t}},{key:"getAnimatedValue",value:function(){return this.getValue(!0)}}]),n}(aZ);function sZ(e,t){rZ={fn:e,transform:t}}function cZ(e){oZ=e}var uZ,fZ=function(e){return"undefined"!=typeof window?window.requestAnimationFrame(e):-1};function pZ(e){uZ=e}var dZ=function(){return Date.now()};function mZ(e){e}var hZ,yZ,bZ=function(e){return e.current};function vZ(e){hZ=e}var gZ=function(e){YQ(n,e);var t=HQ(n);function n(e,r){var o;return VQ(this,n),(o=t.call(this)).update=void 0,o.payload=e.style?w({},e,{style:hZ(e.style)}):e,o.update=r,o.attach(),o}return GQ(n)}(lZ),wZ=!1,EZ=new Set,_Z=function e(){if(!wZ)return!1;var t,n=dZ(),r=FQ(EZ);try{for(r.s();!(t=r.n()).done;){for(var o=t.value,a=!1,i=0;i<o.configs.length;i++){for(var l=o.configs[i],s=void 0,c=void 0,u=0;u<l.animatedValues.length;u++){var f=l.animatedValues[u];if(!f.done){var p=l.fromValues[u],d=l.toValues[u],m=f.lastPosition,h=d instanceof aZ,y=Array.isArray(l.initialVelocity)?l.initialVelocity[u]:l.initialVelocity;if(h&&(d=d.getValue()),l.immediate)f.setValue(d),f.done=!0;else if("string"!=typeof p&&"string"!=typeof d){if(void 0!==l.duration)m=p+l.easing((n-f.startTime)/l.duration)*(d-p),s=n>=f.startTime+l.duration;else if(l.decay)m=p+y/(1-.998)*(1-Math.exp(-(1-.998)*(n-f.startTime))),(s=Math.abs(f.lastPosition-m)<.1)&&(d=m);else{c=void 0!==f.lastTime?f.lastTime:n,y=void 0!==f.lastVelocity?f.lastVelocity:l.initialVelocity,n>c+64&&(c=n);for(var b=Math.floor(n-c),v=0;v<b;++v){m+=1*(y+=1*((-l.tension*(m-d)+-l.friction*y)/l.mass)/1e3)/1e3}var g=!(!l.clamp||0===l.tension)&&(p<d?m>d:m<d),w=Math.abs(y)<=l.precision,E=0===l.tension||Math.abs(d-m)<=l.precision;s=g||w&&E,f.lastVelocity=y,f.lastTime=n}h&&!l.toValues[u].done&&(s=!1),s?(f.value!==d&&(m=d),f.done=!0):a=!0,f.setValue(m),f.lastPosition=m}else f.setValue(d),f.done=!0}}o.props.onFrame&&(o.values[l.name]=l.interpolation.getValue())}o.props.onFrame&&o.props.onFrame(o.values),a||(EZ.delete(o),o.stop(!0))}}catch(e){r.e(e)}finally{r.f()}return EZ.size?yZ?yZ():fZ(e):wZ=!1,wZ};function kZ(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return kZ({range:e,output:t,extrapolate:n});if(uZ&&"string"==typeof e.output[0])return uZ(e);var r=e,o=r.output,a=r.range||[0,1],i=r.extrapolateLeft||r.extrapolate||"extend",l=r.extrapolateRight||r.extrapolate||"extend",s=r.easing||function(e){return e};return function(e){var t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,a);return function(e,t,n,r,o,a,i,l,s){var c=s?s(e):e;if(c<t){if("identity"===i)return c;"clamp"===i&&(c=t)}if(c>n){if("identity"===l)return c;"clamp"===l&&(c=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=a(c),r===-1/0?c=-c:o===1/0?c+=r:c=c*(o-r)+r;return c}(e,a[t],a[t+1],o[t],o[t+1],s,i,l,r.map)}}var OZ=function(e){YQ(n,e);var t=HQ(n);function n(e,r,o,a){var i;return VQ(this,n),(i=t.call(this)).calc=void 0,i.payload=e instanceof iZ&&!(e instanceof n)?e.getPayload():Array.isArray(e)?e:[e],i.calc=kZ(r,o,a),i}return GQ(n,[{key:"getValue",value:function(){return this.calc.apply(this,RQ(this.payload.map((function(e){return e.getValue()}))))}},{key:"updateConfig",value:function(e,t,n){this.calc=kZ(e,t,n)}},{key:"interpolate",value:function(e,t,r){return new n(this,e,t,r)}}]),n}(iZ);function xZ(e,t){"update"in e?t.add(e):e.getChildren().forEach((function(e){return xZ(e,t)}))}var SZ=function(e){YQ(n,e);var t=HQ(n);function n(e){var r,o;return VQ(this,n),r=t.call(this),o=UQ(r),r.animatedStyles=new Set,r.value=void 0,r.startPosition=void 0,r.lastPosition=void 0,r.lastVelocity=void 0,r.startTime=void 0,r.lastTime=void 0,r.done=!1,r.setValue=function(e,t){void 0===t&&(t=!0),o.value=e,t&&o.flush()},r.value=e,r.startPosition=e,r.lastPosition=e,r}return GQ(n,[{key:"flush",value:function(){0===this.animatedStyles.size&&xZ(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))}},{key:"clearStyles",value:function(){this.animatedStyles.clear()}},{key:"getValue",value:function(){return this.value}},{key:"interpolate",value:function(e,t,n){return new OZ(this,e,t,n)}}]),n}(aZ),jZ=function(e){YQ(n,e);var t=HQ(n);function n(e){var r;return VQ(this,n),(r=t.call(this)).payload=e.map((function(e){return new SZ(e)})),r}return GQ(n,[{key:"setValue",value:function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))}},{key:"getValue",value:function(){return this.payload.map((function(e){return e.getValue()}))}},{key:"interpolate",value:function(e,t){return new OZ(this,e,t)}}]),n}(iZ),CZ=0,DZ=function(){function e(){var t=this;VQ(this,e),this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return t.interpolations},this.id=CZ++}return GQ(e,[{key:"update",value:function(e){if(!e)return this;var t=nZ(e),n=t.delay,r=void 0===n?0:n,o=t.to,a=LQ(t,["delay","to"]);if(XQ.arr(o)||XQ.fun(o))this.queue.push(w({},a,{delay:r,to:o}));else if(o){var i={};Object.entries(o).forEach((function(e){var t=e[0],n=w({to:KQ({},t,e[1]),delay:tZ(r,t)},a),o=i[n.delay]&&i[n.delay].to;i[n.delay]=w({},i[n.delay],n,{to:w({},o,n.to)})})),this.queue=Object.values(i)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(a),this}},{key:"start",value:function(e){var t,n=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var t=e.from,r=void 0===t?{}:t,o=e.to,a=void 0===o?{}:o;XQ.obj(r)&&(n.merged=w({},r,n.merged)),XQ.obj(a)&&(n.merged=w({},n.merged,a))}));var r=this.local=++this.guid,o=this.localQueue=this.queue;this.queue=[],o.forEach((function(t,a){var i=t.delay,l=LQ(t,["delay"]),s=function(t){a===o.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},c=XQ.arr(l.to)||XQ.fun(l.to);i?setTimeout((function(){r===n.guid&&(c?n.runAsync(l,s):n.diff(l).start(s))}),i):c?n.runAsync(l,s):n.diff(l).start(s)}))}else XQ.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,EZ.has(t)||EZ.add(t),wZ||(wZ=!0,fZ(yZ||_Z));return this}},{key:"stop",value:function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this}},{key:"pause",value:function(e){var t;return this.stop(!0),e&&(t=this,EZ.has(t)&&EZ.delete(t)),this}},{key:"runAsync",value:function(e,t){var n=this,r=this,o=(e.delay,LQ(e,["delay"])),a=this.local,i=Promise.resolve(void 0);if(XQ.arr(o.to))for(var l=function(){var e=s,t=w({},o,nZ(o.to[e]));XQ.arr(t.config)&&(t.config=t.config[e]),i=i.then((function(){if(a===n.guid)return new Promise((function(e){return n.diff(t).start(e)}))}))},s=0;s<o.to.length;s++)l();else if(XQ.fun(o.to)){var c,u=0;i=i.then((function(){return o.to((function(e){var t=w({},o,nZ(e));if(XQ.arr(t.config)&&(t.config=t.config[u]),u++,a===n.guid)return c=new Promise((function(e){return n.diff(t).start(e)}))}),(function(e){return void 0===e&&(e=!0),r.stop(e)})).then((function(){return c}))}))}i.then(t)}},{key:"diff",value:function(e){var t=this;this.props=w({},this.props,e);var n=this.props,r=n.from,o=void 0===r?{}:r,a=n.to,i=void 0===a?{}:a,l=n.config,s=void 0===l?{}:l,c=n.reverse,u=n.attach,f=n.reset,p=n.immediate;if(c){var d=[i,o];o=d[0],i=d[1]}this.merged=w({},o,this.merged,i),this.hasChanged=!1;var m=u&&u(this);if(this.animations=Object.entries(this.merged).reduce((function(e,n){var r=n[0],a=n[1],i=e[r]||{},l=XQ.num(a),c=XQ.str(a)&&!a.startsWith("#")&&!/\d/.test(a)&&!oZ[a],u=XQ.arr(a),d=!l&&!u&&!c,h=XQ.und(o[r])?a:o[r],y=l||u||c?a:1,b=tZ(s,r);m&&(y=m.animations[r].parent);var v,g=i.parent,E=i.interpolation,_=eZ(m?y.getPayload():y),k=a;d&&(k=uZ({range:[0,1],output:[a,a]})(1));var O=E&&E.getValue(),x=!XQ.und(g)&&i.animatedValues.some((function(e){return!e.done})),S=!XQ.equ(k,O),j=!XQ.equ(k,i.previous),C=!XQ.equ(b,i.config);if(f||j&&S||C){if(l||c)g=E=i.parent||new SZ(h);else if(u)g=E=i.parent||new jZ(h);else if(d){var D=i.interpolation&&i.interpolation.calc(i.parent.value);D=void 0===D||f?h:D,i.parent?(g=i.parent).setValue(0,!1):g=new SZ(0);var N={output:[D,a]};i.interpolation?(E=i.interpolation,i.interpolation.updateConfig(N)):E=g.interpolate(N)}return _=eZ(m?y.getPayload():y),v=eZ(g.getPayload()),f&&!d&&g.setValue(h,!1),t.hasChanged=!0,v.forEach((function(e){e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=x?e.lastVelocity:void 0,e.lastTime=x?e.lastTime:void 0,e.startTime=dZ(),e.done=!1,e.animatedStyles.clear()})),tZ(p,r)&&g.setValue(d?y:a,!1),w({},e,KQ({},r,w({},i,{name:r,parent:g,interpolation:E,animatedValues:v,toValues:_,previous:k,config:b,fromValues:eZ(g.getValue()),immediate:tZ(p,r),initialVelocity:ZQ(b.velocity,0),clamp:ZQ(b.clamp,!1),precision:ZQ(b.precision,.01),tension:ZQ(b.tension,170),friction:ZQ(b.friction,26),mass:ZQ(b.mass,1),duration:b.duration,easing:ZQ(b.easing,(function(e){return e})),decay:b.decay})))}return S?e:(d&&(g.setValue(1,!1),E.updateConfig({output:[k,k]})),g.done=!0,t.hasChanged=!0,w({},e,KQ({},r,w({},e[r],{previous:k}))))}),this.animations),this.hasChanged)for(var h in this.configs=Object.values(this.animations),this.values={},this.interpolations={},this.animations)this.interpolations[h]=this.animations[h].interpolation,this.values[h]=this.animations[h].interpolation.getValue();return this}},{key:"destroy",value:function(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0}}]),e}(),NZ=function(e,t){var n=Object(l.useRef)(!1),r=Object(l.useRef)(),o=XQ.fun(t),a=Object(l.useMemo)((function(){var n;return r.current&&(r.current.map((function(e){return e.destroy()})),r.current=void 0),[new Array(e).fill().map((function(e,r){var a=new DZ,i=o?tZ(t,r,a):t[r];return 0===r&&(n=i.ref),a.update(i),n||a.start(),a})),n]}),[e]),i=a[0],s=a[1];r.current=i;Object(l.useImperativeHandle)(s,(function(){return{start:function(){return Promise.all(r.current.map((function(e){return new Promise((function(t){return e.start(t)}))})))},stop:function(e){return r.current.forEach((function(t){return t.stop(e)}))},get controllers(){return r.current}}}));var c=Object(l.useMemo)((function(){return function(e){return r.current.map((function(t,n){t.update(o?tZ(e,n,t):e[n]),s||t.start()}))}}),[e]);Object(l.useEffect)((function(){n.current?o||c(t):s||r.current.forEach((function(e){return e.start()}))})),Object(l.useEffect)((function(){return n.current=!0,function(){return r.current.forEach((function(e){return e.destroy()}))}}),[]);var u=r.current.map((function(e){return e.getValues()}));return o?[u,c,function(e){return r.current.forEach((function(t){return t.pause(e)}))}]:u};var PZ=function(e){YQ(n,e);var t=HQ(n);function n(e){var r;return VQ(this,n),void 0===e&&(e={}),r=t.call(this),!e.transform||e.transform instanceof aZ||(e=rZ.transform(e)),r.payload=e,r}return GQ(n)}(lZ),TZ={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},MZ="[-+]?\\d*\\.?\\d+",AZ=MZ+"%";function LZ(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var RZ=new RegExp("rgb"+LZ(MZ,MZ,MZ)),FZ=new RegExp("rgba"+LZ(MZ,MZ,MZ,MZ)),zZ=new RegExp("hsl"+LZ(MZ,AZ,AZ)),BZ=new RegExp("hsla"+LZ(MZ,AZ,AZ,MZ)),YZ=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,IZ=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,HZ=/^#([0-9a-fA-F]{6})$/,UZ=/^#([0-9a-fA-F]{8})$/;function WZ(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function VZ(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,a=WZ(o,r,e+1/3),i=WZ(o,r,e),l=WZ(o,r,e-1/3);return Math.round(255*a)<<24|Math.round(255*i)<<16|Math.round(255*l)<<8}function qZ(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function GZ(e){return(parseFloat(e)%360+360)%360/360}function KZ(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function $Z(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function JZ(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=HZ.exec(t))?parseInt(n[1]+"ff",16)>>>0:TZ.hasOwnProperty(t)?TZ[t]:(n=RZ.exec(t))?(qZ(n[1])<<24|qZ(n[2])<<16|qZ(n[3])<<8|255)>>>0:(n=FZ.exec(t))?(qZ(n[1])<<24|qZ(n[2])<<16|qZ(n[3])<<8|KZ(n[4]))>>>0:(n=YZ.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=UZ.exec(t))?parseInt(n[1],16)>>>0:(n=IZ.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=zZ.exec(t))?(255|VZ(GZ(n[1]),$Z(n[2]),$Z(n[3])))>>>0:(n=BZ.exec(t))?(VZ(GZ(n[1]),$Z(n[2]),$Z(n[3]))|KZ(n[4]))>>>0:null;if(null===r)return e;var o=(16711680&(r=r||0))>>>16,a=(65280&r)>>>8,i=(255&r)/255;return"rgba(".concat((4278190080&r)>>>24,", ").concat(o,", ").concat(a,", ").concat(i,")")}var XZ=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,QZ=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ZZ=new RegExp("(".concat(Object.keys(TZ).join("|"),")"),"g"),e0={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,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},t0=["Webkit","Ms","Moz","O"];function n0(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||e0.hasOwnProperty(e)&&e0[e]?(""+t).trim():t+"px"}e0=Object.keys(e0).reduce((function(e,t){return t0.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),e0);var r0={};vZ((function(e){return new PZ(e)})),mZ("div"),pZ((function(e){var t=e.output.map((function(e){return e.replace(QZ,JZ)})).map((function(e){return e.replace(ZZ,JZ)})),n=t[0].match(XZ).map((function(){return[]}));t.forEach((function(e){e.match(XZ).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(XZ).map((function(t,r){return kZ(w({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(XZ,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,o){return"rgba(".concat(Math.round(t),", ").concat(Math.round(n),", ").concat(Math.round(r),", ").concat(o,")")}))}})),cZ(TZ),sZ((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,o=t.scrollTop,a=t.scrollLeft,i=LQ(t,["style","children","scrollTop","scrollLeft"]),l="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var s in void 0!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(s)){var c=0===s.indexOf("--"),u=n0(s,n[s],c);"float"===s&&(s="cssFloat"),c?e.style.setProperty(s,u):e.style[s]=u}for(var f in i){var p=l?f:r0[f]||(r0[f]=f.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(p)&&e.setAttribute(p,i[f])}}),(function(e){return e}));var o0=function(e,t){return void 0===t&&(t=!0),function(n){return(XQ.arr(n)?n:Object.keys(n)).reduce((function(n,r){var o=t?r[0].toLowerCase()+r.substring(1):r;return n[o]=e(o),n}),e)}}((function(e){return Object(l.forwardRef)((function(t,n){var r=QQ(),o=Object(l.useRef)(!0),a=Object(l.useRef)(null),i=Object(l.useRef)(null),c=Object(l.useCallback)((function(e){var t=a.current;a.current=new gZ(e,(function(){var e=!1;i.current&&(e=rZ.fn(i.current,a.current.getAnimatedValue())),i.current&&!1!==e||r()})),t&&t.detach()}),[]);Object(l.useEffect)((function(){return function(){o.current=!1,a.current&&a.current.detach()}}),[]),Object(l.useImperativeHandle)(n,(function(){return bZ(i,o,r)})),c(t);var u,f=a.current.getValue(),p=(f.scrollTop,f.scrollLeft,LQ(f,["scrollTop","scrollLeft"])),d=(u=e,!XQ.fun(u)||u.prototype instanceof s.a.Component?function(e){return i.current=function(e,t){return t&&(XQ.fun(t)?t(e):XQ.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return s.a.createElement(e,w({},p,{ref:d}))}))}),!1),a0=o0(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),i0=n(552);function l0(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return s0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s0(e,t)}(e,t)||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 s0(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var c0=Object(se.c)((function(e){var t=e.exchange,n=e.editor,r=e.isCurrent,o=e.store,a=e.timelineUnitSeconds,i=e.idx,c=e.minTime,u=e.maxTime,f=l0(Object(l.useState)(0),2),p=f[0],m=f[1],h=l0(Object(l.useState)(0),2),y=h[0],b=h[1],v=t.from*a,g=t.to-t.from,w=g*a,E=Object(l.useRef)({clientX:0,clientY:0}),_=Object(l.useRef)({lastX:0,lastY:0}),k=function(e){if(e.type.startsWith("mouse")){var t=event.clientX,n=event.clientY,r=t-_.current.lastX,o=n-_.current.lastY;return _.current={lastX:t,lastY:n},{deltaX:r,deltaY:o}}var a=e.changedTouches[0],i=a.clientX-E.current.clientX,l=a.clientY-E.current.clientY;return E.current={clientX:a.clientX,clientY:a.clientY},{deltaX:i,deltaY:l}},O=Object(l.useCallback)((function(e){var t=e.clientX,n=e.clientY;_.current={lastX:t,lastY:n},e.stopPropagation()})),x=Object(l.useCallback)((function(e){var t=e.changedTouches[0];E.current={clientX:t.clientX,clientY:t.clientY},e.stopPropagation()}),[]),S=Object(l.useCallback)(Object(d.action)((function(){var e=p/a,r=y/a;n.adjustTimes(t,t.from+e,t.to+e+r),m(0),b(0)})),[p,y,a,t]),j=Object(l.useCallback)((function(e){var t=k(e).deltaX,n=p+t;n=Math.max(n,c*a-v),n=Math.min(n,u*a-w-v),m(n)}),[p,a,t,u,c]),C=Object(l.useCallback)((function(e){var n=k(e).deltaX,r=p+n;r=Math.max(r,c*a-v),r=Math.min(r,(t.to-.3)*a-v),m(r),b(-r)}),[p,y,a,t,u,c]),D=Object(l.useCallback)((function(e){var n=k(e).deltaX,r=y+n;r=Math.min(r,u*a-w-v),r=Math.max(r,(t.from+.3)*a-v-w),b(r)}),[p,y,a,t,u,c]),N=Object(l.useCallback)((function(){o.scrollToPlayingExchange(t)}),[]),P=w+y>60?i+1:"",T=g.toFixed(1).toString()+"s",M=t.children.map((function(e){return e.text})).join("");return s.a.createElement("div",{className:ue()("subtitle--box text--noselect",{"current--box":r}),onDoubleClick:N,style:{left:"".concat((v+p).toFixed(3),"px"),top:"42px",width:"".concat((w+y).toFixed(3),"px"),position:"absolute"}},s.a.createElement(i0.DraggableCore,{onDrag:C,onStart:O,onStop:S,enableUserSelectHack:!1},s.a.createElement("div",{onTouchStart:x,className:"card-handle",onMouseDown:function(e){return e.stopPropagation()}})),s.a.createElement(i0.DraggableCore,{onDrag:j,onStart:O,onStop:S,enableUserSelectHack:!1},s.a.createElement("div",{className:"card",onTouchStart:x},s.a.createElement("h4",{className:"card-header mb-0 d-flex justify-content-between","data-balloon":Object(we.g)(t.from)+" — "+Object(we.g)(t.to)+"\n"+M.length+" characters","data-balloon-pos":"up","data-balloon-text-align":"center","data-balloon-color":"secondary","data-balloon-break":!0},s.a.createElement("span",{className:"subtitle--box-index"},P),s.a.createElement("span",{className:"subtitle--box-duration"},T)),s.a.createElement("div",{className:"card-body"},s.a.createElement("p",{className:"card-text"},M)))),s.a.createElement(i0.DraggableCore,{onDrag:D,onStart:O,onStop:S,enableUserSelectHack:!1},s.a.createElement("div",{onTouchStart:x,className:"card-handle"})))})),u0=c0;function f0(e){return function(e){if(Array.isArray(e))return m0(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||d0(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p0(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||d0(e,t)||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 d0(e,t){if(e){if("string"==typeof e)return m0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m0(e,t):void 0}}function m0(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var h0,y0=Object(se.c)((function(e){var t=e.store,n=e.timelineUnitSeconds,r=e.timeInView,o=t.transcript,a=o.value,i=o.editor;return a.map((function(e,o){if(r.from>e.to||r.to<e.from)return null;var l=0===o?0:a[o-1].to,c=o===a.length-1?t.duration:a[o+1].from,u=t.pos>=e.from&&t.pos<=e.to;return s.a.createElement(u0,{store:t,editor:i,exchange:e,isCurrent:u,timelineUnitSeconds:n,maxTime:c,minTime:l,key:o,idx:o})}))})),b0=Object(se.c)((function(e){var t=e.container,n=e.lengthInSeconds,r=e.store,o=e.timelineUnitSeconds,a=e.width,i=Object(l.useCallback)((function(e){var n=e.clientX+t.current.scrollLeft-t.current.clientWidth/2;r.updatePosition(n/o)}),[o]);return s.a.createElement("div",{className:"timeline--bar",onClick:i},s.a.createElement("ul",{className:"timeline--timecodes",style:{width:"".concat(a,"px"),backgroundSize:"".concat(o,"px 18px")}},n.map((function(e,t){return s.a.createElement("li",{className:"timecode",key:t,style:{left:"".concat(t*o-28,"px")}},Object(we.e)(e))}))))})),v0=!0,g0=0,w0=Object(se.c)((function(e){var t,n,r,o,a,i,c=e.onClose,u=e.store,f=u.uiState,p=f.toggleCharCountShown,d=p0(Object(l.useState)(60),2),m=d[0],h=d[1],y=p0(Object(l.useState)({from:0,to:80}),2),b=y[0],v=y[1],g=f0(Array(parseInt(u.duration)+1).keys()),w=(parseInt(u.duration)+1)*m,E=Object(l.useRef)(null),_=p0((t=function(){return{config:{friction:15,tension:100,clamp:!0},scroll:0}},n=XQ.fun(t),r=NZ(1,n?t:[t]),o=r[0],a=r[1],i=r[2],n?[o[0],a,i]:o),2),k=_[0],O=_[1],x=Object(l.useCallback)((function(e){var t=parseInt(e.target.value),n=u.pos*t;h(t),E.current.scrollTo(n,0),Object(we.k)("app.subtitles.zoom_timeline")}),[]);Object(l.useEffect)((function(){if(v0){var e=u.pos*m;E.current.scrollLeft!==e&&O({scroll:e,immediate:!1})}else v0=!0}),[u.pos]);var S=Object(l.useCallback)((function(e){e.preventDefault();var t=E.current,n=t.offsetWidth,r=t.scrollLeft;if(Math.abs(g0-r)>500){var o=Math.max((r-n)/m,0);g0=r,v({from:o,to:(r+n)/m})}}),[m]),j=Object(l.useCallback)((function(e){var t=Math.max(k.scroll.value+e.deltaY,0),n=(t=Math.min(u.duration*m,t))/m;v0=!1,O({scroll:t,immediate:!0}),u.updatePosition(n)}),[m,k.scroll.value]),C=((m-60)/60).toFixed(3);return s.a.createElement("div",{className:"app--timeline-wrapper"},s.a.createElement("div",{className:"app--timeline-container"},s.a.createElement("div",{className:"app--timeline-controls"},s.a.createElement("ul",{className:"list-group list-group-horizontal list-group-compact list-group-border-none"},s.a.createElement("li",{className:"list-group-item"},s.a.createElement("h4",null,s.a.createElement("i",{className:"far fa-stream fa-fw me-2"}),s.a.createElement("span",{"data-balloon":"Visualize and adjust your caption timestamps","data-balloon-pos":"up-right"},"Subtitles"))),s.a.createElement("li",{className:"list-group-item"},s.a.createElement("div",{className:"form-group my-1"},s.a.createElement("span",{className:"d-block","data-balloon":"Zoom timeline","data-balloon-pos":"up","data-balloon-text-align":"left"},s.a.createElement("input",{type:"range",min:"60",max:"120",step:"10",value:m,onChange:x,className:"form-control-range",style:{height:"6px",marginTop:"10px",marginBottom:"0px",backgroundImage:"-webkit-gradient(linear, 0% 0%, 100% 0%, color-stop(".concat(C,", rgb(42, 147, 213)), color-stop(").concat(C,", rgb(227, 227, 241)))")}})))),s.a.createElement("span",{className:"btn btn-primary list-group-item list-group-action border-radius--none","data-balloon":"Split transcript into subtitles","data-balloon-pos":"up","data-balloon-text-align":"left",onClick:f.showGenerateSubtitlesModal},s.a.createElement("i",{className:"far fa-line-columns fa-fw me-1"}),"Split"),s.a.createElement("span",{className:"btn list-group-item list-group-action border-radius--none","data-balloon":f.isCharCountShown?"Hide subtitle characters per line (CPL)":"Show subtitle characters per line (CPL)","data-balloon-pos":"up","data-balloon-text-align":"left",onClick:p},f.isCharCountShown?s.a.createElement("i",{className:"far fa-fw fa-stopwatch mx-1"}):s.a.createElement("i",{className:"fas fa-fw fa-stopwatch mx-1"})),s.a.createElement("span",{className:"btn list-group-item list-group-action",onClick:c},s.a.createElement("i",{className:"far fa-times fa-fw me-1"}),"Close"))),s.a.createElement("div",{className:"timeline--current"}),s.a.createElement(a0.div,{className:"app--timeline disable-scrollbars",style:{display:"flex"},ref:E,id:"timeline-content",onScroll:S,scrollLeft:k.scroll,onWheel:j},s.a.createElement("div",{className:"timeline--spacer"}),s.a.createElement("div",{className:"timeline--main",style:{position:"relative"}},s.a.createElement(b0,{store:u,container:E,width:w,lengthInSeconds:g,timelineUnitSeconds:m}),s.a.createElement("div",{className:"timeline--content",style:{width:"".concat(w,"px")}},s.a.createElement(y0,{store:u,timelineUnitSeconds:m,timeInView:b}))),s.a.createElement("div",{className:"timeline--spacer"}))))}));function E0(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function _0(e,t){return _0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_0(e,t)}function k0(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O0(e);if(t){var o=O0(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function O0(e){return O0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O0(e)}var x0,S0,j0,C0,D0,N0=Object(se.b)("store","user")(h0=Object(se.c)(h0=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_0(e,t)}(a,e);var t,n,r,o=k0(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.store,n=e.user,r=t.duration,o=t.readonly,a=t.uiState,i=t.transcript.strikeDuration,l=t.recording.isGoodQuality&&n.loggedIn&&n.isTrial,c=parseFloat(r)-i,u="Total duration ("+Object(we.g)(parseFloat(r),0)+") minus strikethrough duration ("+Object(we.g)(i,0)+")";return a.isTimelineShown?(Object(we.k)("app.subtitles.view_timeline"),s.a.createElement("div",{className:"app--bottom"},s.a.createElement(w0,{store:t,onClose:a.hideTimeline}))):s.a.createElement("div",{className:"app--bottom"},s.a.createElement("div",{className:"status--bottom"},s.a.createElement("div",{className:"container--transcript container--app d-flex justify-content-center justify-content-md-between px-3"},s.a.createElement("div",{className:"d-none d-md-block text-center text-md-start py-1"},s.a.createElement("div",{className:"btn-group"},n.loggedIn&&s.a.createElement("button",{className:"btn btn-sm","data-balloon":"Edit your way. Customize the editor.","data-balloon-pos":"up-right","data-balloon-length":"medium","data-balloon-text-align":"left",onClick:a.showEditorPreferencesModal},s.a.createElement("i",{className:"far fa-cog fa-fw me-1"}),"Preferences"),s.a.createElement("button",{className:"btn btn-sm","data-balloon":"Keyboard shortcuts. Edit faster.","data-balloon-pos":"up-right","data-balloon-length":"medium","data-balloon-text-align":"left",onClick:a.showKeyboardShortcutsModal},s.a.createElement("i",{className:"far fa-keyboard fa-fw me-1"}),"Shortcuts"),!o&&s.a.createElement("button",{className:"btn btn-sm btn-primary",onClick:a.showTimeline,"data-balloon":"Adjust subtitles and timestamps easily.","data-balloon-pos":"up-right","data-balloon-length":"medium","data-balloon-text-align":"left"},s.a.createElement("i",{className:"far fa-stream fa-fw me-1"}),"Subtitles"),l&&s.a.createElement(kQ,null))),s.a.createElement("div",{className:"text-center text-md-end py-1"},s.a.createElement("div",{className:"btn-group border-none"},s.a.createElement(AQ,{transcript:t.transcript}),s.a.createElement("div",{className:"btn-group"},s.a.createElement("span",{className:"btn border-none strikethrough mb-0","data-balloon":"Duration of all strikethrough sections","data-balloon-length":"large","data-balloon-text-align":"left","data-balloon-pos":"up-left"},s.a.createElement("i",{className:"far fa-fw fa-strikethrough me-2"}),Object(we.g)(i,0))),s.a.createElement(_Q,{transcript:t.transcript}),s.a.createElement("div",{className:"btn-group"},s.a.createElement("span",{className:"btn border-none duration mb-0","data-balloon":u,"data-balloon-length":"large","data-balloon-text-align":"left","data-balloon-pos":"up-left"},s.a.createElement("i",{className:"far fa-fw fa-clock me-2"}),Object(we.g)(c,0))))))))}}])&&E0(t.prototype,n),r&&E0(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||h0)||h0,P0=N0;function T0(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function M0(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function A0(e,t){return A0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},A0(e,t)}function L0(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=F0(e);if(t){var o=F0(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return R0(e)}(this,n)}}function R0(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F0(e){return F0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},F0(e)}function z0(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var B0,Y0,I0,H0,U0,W0,V0,q0,G0,K0,$0,J0,X0,Q0,Z0,e1,t1,n1,r1,o1,a1,i1,l1=(x0=d.action.bound,Object(se.c)((j0=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&A0(e,t)}(a,e);var t,n,r,o=L0(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return T0(e=o.call.apply(o,[this].concat(n)),"notificationShown",C0,R0(e)),T0(e,"firstNotificationShown",D0,R0(e)),e}return t=a,(n=[{key:"componentDidMount",value:function(){var e=this,t=this.props.uiState;Object(d.autorun)((function(){if(t.notification){var n=t.notificationTimeout||5e3;e.firstNotificationShown=!0,clearTimeout(e.timeOut),e.notificationShown=!0,e.timeOut=setTimeout(e.hideNotification,n)}else e.hideNotification()}))}},{key:"hideNotification",value:function(){this.notificationShown=!1}},{key:"render",value:function(){var e=this.props.uiState,t=ue()("ns-box ns-growl ns-effect-jelly ns-type-notice",{hidden:!this.firstNotificationShown,"ns-show":this.notificationShown,"ns-hide":!this.notificationShown});return s.a.createElement("div",{className:"app--notification"},s.a.createElement("div",{className:"notification text--noselect"},s.a.createElement("div",{className:t},s.a.createElement("div",{className:"ns-box-inner"},e.notification),s.a.createElement("span",{className:"ns-close",onClick:this.hideNotification}))))}}])&&M0(t.prototype,n),r&&M0(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),C0=z0(j0.prototype,"notificationShown",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),D0=z0(j0.prototype,"firstNotificationShown",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),z0(j0.prototype,"hideNotification",[x0],Object.getOwnPropertyDescriptor(j0.prototype,"hideNotification"),j0.prototype),S0=j0))||S0),s1=l1,c1=Object(se.c)((function(e){var t=e.store,n=e.user,r=t.isStatusComplete,o=t.uiState,a=n.isTrial&&!n.enterpriseTrial,i=ue()("nav--top",{"nav--trial":a});return s.a.createElement("div",{className:"app--layout"},s.a.createElement("div",{className:i},s.a.createElement(ah,{user:n,hideNavigationBar:t.isStatusComplete}),s.a.createElement(Rx,{store:t})),s.a.createElement("main",{className:"app--transcript",id:"transcript-container"},s.a.createElement(UP,{store:t})),r&&s.a.createElement(P0,null),s.a.createElement(s1,{uiState:o}),s.a.createElement(wQ,{store:t,user:n}))}));function u1(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function f1(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function p1(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var d1,m1,h1,y1,b1,v1,g1,w1,E1,_1,k1,O1,x1,S1,j1,C1,D1,N1,P1,T1=(B0=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),u1(this,"id",Y0,this),u1(this,"qualityGrade",I0,this),u1(this,"name",H0,this),u1(this,"language",U0,this),u1(this,"filename",W0,this),u1(this,"privateFile",V0,this),u1(this,"timecodeOffset",q0,this),u1(this,"frameOffset",G0,this),u1(this,"frameRate",K0,this),u1(this,"source",$0,this),u1(this,"compressed",J0,this),u1(this,"poster",X0,this),u1(this,"formattedDuration",Q0,this),u1(this,"formattedDurationLong",Z0,this),u1(this,"createdAt",e1,this),u1(this,"status",t1,this),u1(this,"shareToken",n1,this),u1(this,"shareLink",r1,this),u1(this,"shareWithPatrons",o1,this),u1(this,"isArchived",a1,this),u1(this,"isRestoring",i1,this),this.id=t.id,this.name=t.name,this.showPauses=t.showPauses,this.basePath=t.basePath,this.filename=t.filename,this.language=t.language,this.privateFile=t.privateFile,this.source=t.source,this.compressed=t.compressed,this.customData=t.customData,this.poster=t.poster,this.status=t.status,this.shareToken=t.shareToken,this.shareLink=t.shareLink,this.createdAt=t.createdAt,this.shareWithPatrons=t.shareWithPatrons,this.minPatronageAmount=t.minPatronageAmount,this.timecodeOffset=t.timecodeOffset,this.frameOffset=t.frameOffset,this.frameRate=t.frameRate,this.isVideo=t.isVideo,this.fileSize=t.fileSize,this.isArchived=t.isArchived,this.isRestoring=t.isRestoring,Object(d.autorun)((function(){return Object(we.m)(n.timecodeOffset)}))}var t,n,r;return t=e,n=[{key:"loadFromJson",value:function(e){this.status=e.status,this.source=e.source,this.filename=e.filename,this.privateFile=e.privateFile,this.name=e.name,this.shareLink=e.shareLink,this.isComplete&&(this.qualityGrade=e.qualityGrade,this.formattedDuration=e.formattedDuration,this.formattedDurationLong=e.formattedDurationLong)}},{key:"fullLanguage",get:function(){return Object(we.i)(this.language).language}},{key:"languageCodeForTranslation",get:function(){return"cmn"===this.language?"zh":"yue"===this.language?"zh-TW":"es-en"===this.language?"es-en":this.language.slice(0,2)}},{key:"isTranslationSupported",get:function(){var e=we.o.map((function(e){return e.code}));return"es-en"==this.languageCodeForTranslation||e.includes(this.languageCodeForTranslation)}},{key:"isComplete",get:function(){return"completed"===this.status}},{key:"isCopying",get:function(){return"copying"===this.status}},{key:"isGoodQuality",get:function(){return"superStar"===this.qualityGrade||"excellent"===this.qualityGrade||"good"==this.qualityGrade}}],n&&f1(t.prototype,n),r&&f1(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Y0=p1(B0.prototype,"id",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I0=p1(B0.prototype,"qualityGrade",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),H0=p1(B0.prototype,"name",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U0=p1(B0.prototype,"language",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),W0=p1(B0.prototype,"filename",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V0=p1(B0.prototype,"privateFile",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),q0=p1(B0.prototype,"timecodeOffset",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),G0=p1(B0.prototype,"frameOffset",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),K0=p1(B0.prototype,"frameRate",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),$0=p1(B0.prototype,"source",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),J0=p1(B0.prototype,"compressed",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),X0=p1(B0.prototype,"poster",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Q0=p1(B0.prototype,"formattedDuration",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Z0=p1(B0.prototype,"formattedDurationLong",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),e1=p1(B0.prototype,"createdAt",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),t1=p1(B0.prototype,"status",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n1=p1(B0.prototype,"shareToken",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r1=p1(B0.prototype,"shareLink",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o1=p1(B0.prototype,"shareWithPatrons",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a1=p1(B0.prototype,"isArchived",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),i1=p1(B0.prototype,"isRestoring",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),p1(B0.prototype,"loadFromJson",[d.action],Object.getOwnPropertyDescriptor(B0.prototype,"loadFromJson"),B0.prototype),p1(B0.prototype,"fullLanguage",[d.computed],Object.getOwnPropertyDescriptor(B0.prototype,"fullLanguage"),B0.prototype),p1(B0.prototype,"languageCodeForTranslation",[d.computed],Object.getOwnPropertyDescriptor(B0.prototype,"languageCodeForTranslation"),B0.prototype),p1(B0.prototype,"isTranslationSupported",[d.computed],Object.getOwnPropertyDescriptor(B0.prototype,"isTranslationSupported"),B0.prototype),p1(B0.prototype,"isComplete",[d.computed],Object.getOwnPropertyDescriptor(B0.prototype,"isComplete"),B0.prototype),p1(B0.prototype,"isCopying",[d.computed],Object.getOwnPropertyDescriptor(B0.prototype,"isCopying"),B0.prototype),p1(B0.prototype,"isGoodQuality",[d.computed],Object.getOwnPropertyDescriptor(B0.prototype,"isGoodQuality"),B0.prototype),B0),M1=T1;function A1(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function L1(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function R1(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var F1,z1,B1,Y1,I1,H1,U1,W1,V1,q1,G1,K1,$1,J1,X1,Q1,Z1,e2,t2,n2,r2=["AdjustOffset","AIChapters","AISentiment","AITheme","AIEntityDetection","AITopicDetection","BurnInSubtitles","Clips","CustomizeSubtitles","EditorPreferences","Embed","Export","ExportSelected","ExportedVideos","FileName","FindAndReplace","GenerateSubtitles","KeyboardShortcuts","MakePrivate","NewTranslation","NewTranslationSrt","Patreon","PasteExternalTranscript","Quality","RealignTimecodes","RestoreMedia","SaveACopy","Share","Speakers","Summary","CustomPrompt","TranscriptDetails","UserSurvey","Version"],o2=(d1=d.action.bound,m1=d.action.bound,h1=d.action.bound,y1=d.action.bound,b1=d.action.bound,v1=d.action.bound,g1=d.action.bound,w1=d.action.bound,E1=d.action.bound,k1=R1((_1=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),A1(this,"isTimelineShown",k1,this),A1(this,"isVideoVertical",O1,this),A1(this,"isVideoHidden",x1,this),A1(this,"isVideoLarge",S1,this),A1(this,"isCCShown",j1,this),A1(this,"isCharCountShown",C1,this),A1(this,"modals",D1,this),A1(this,"notification",N1,this),A1(this,"setNotification",P1,this),this.store=t,this.setupModals()}var t,n,r;return t=e,(n=[{key:"setVerticalVideo",value:function(e){this.isVideoVertical=e}},{key:"showTimeline",value:function(){this.isTimelineShown=!0}},{key:"hideTimeline",value:function(){this.isTimelineShown=!1}},{key:"toggleLargeVideo",value:function(){this.isVideoLarge=!this.isVideoLarge}},{key:"toggleCCShown",value:function(){this.isCCShown=!this.isCCShown}},{key:"toggleCharCountShown",value:function(){this.isCharCountShown=!this.isCharCountShown}},{key:"showVideo",value:function(){this.isVideoHidden=!1}},{key:"hideVideo",value:function(){this.isVideoHidden=!0}},{key:"cycleVideoSize",value:function(){this.isVideoHidden?(this.isVideoHidden=!1,this.isVideoLarge=!1):this.isVideoLarge?(this.isVideoHidden=!0,this.isVideoLarge=!1):this.isVideoLarge=!0}},{key:"showVideoLayout",get:function(){return this.store.isVideo&&!this.isVideoHidden}},{key:"setupModals",value:function(){var e=this;r2.forEach((function(t){Object(d.set)(e.modals,t,!1),e["show".concat(t,"Modal")]=function(){return e.modals[t]=!0},e["hide".concat(t,"Modal")]=function(){return e.modals[t]=!1},e["toggle".concat(t,"Modal")]=function(n){n&&n.preventDefault(),e.modals[t]=!e.modals[t]}}))}},{key:"isModalOpen",get:function(){var e=this;return r2.reduce((function(t,n){return t||e.modals[n]}),!1)}},{key:"blockExportsToSave",get:function(){return this.store.hasPendingSaves||this.store.hasInFlightRequests}}])&&L1(t.prototype,n),r&&L1(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()).prototype,"isTimelineShown",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),O1=R1(_1.prototype,"isVideoVertical",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),x1=R1(_1.prototype,"isVideoHidden",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),S1=R1(_1.prototype,"isVideoLarge",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),j1=R1(_1.prototype,"isCCShown",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),C1=R1(_1.prototype,"isCharCountShown",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),D1=R1(_1.prototype,"modals",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),R1(_1.prototype,"setVerticalVideo",[d1],Object.getOwnPropertyDescriptor(_1.prototype,"setVerticalVideo"),_1.prototype),R1(_1.prototype,"showTimeline",[m1],Object.getOwnPropertyDescriptor(_1.prototype,"showTimeline"),_1.prototype),R1(_1.prototype,"hideTimeline",[h1],Object.getOwnPropertyDescriptor(_1.prototype,"hideTimeline"),_1.prototype),R1(_1.prototype,"toggleLargeVideo",[y1],Object.getOwnPropertyDescriptor(_1.prototype,"toggleLargeVideo"),_1.prototype),R1(_1.prototype,"toggleCCShown",[b1],Object.getOwnPropertyDescriptor(_1.prototype,"toggleCCShown"),_1.prototype),R1(_1.prototype,"toggleCharCountShown",[v1],Object.getOwnPropertyDescriptor(_1.prototype,"toggleCharCountShown"),_1.prototype),R1(_1.prototype,"showVideo",[g1],Object.getOwnPropertyDescriptor(_1.prototype,"showVideo"),_1.prototype),R1(_1.prototype,"hideVideo",[w1],Object.getOwnPropertyDescriptor(_1.prototype,"hideVideo"),_1.prototype),R1(_1.prototype,"cycleVideoSize",[E1],Object.getOwnPropertyDescriptor(_1.prototype,"cycleVideoSize"),_1.prototype),R1(_1.prototype,"showVideoLayout",[d.computed],Object.getOwnPropertyDescriptor(_1.prototype,"showVideoLayout"),_1.prototype),R1(_1.prototype,"isModalOpen",[d.computed],Object.getOwnPropertyDescriptor(_1.prototype,"isModalOpen"),_1.prototype),R1(_1.prototype,"blockExportsToSave",[d.computed],Object.getOwnPropertyDescriptor(_1.prototype,"blockExportsToSave"),_1.prototype),N1=R1(_1.prototype,"notification",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P1=R1(_1.prototype,"setNotification",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t,n){e.notification=t,e.notificationTimeout=n}}}),_1),a2=n(1472),i2=n.n(a2);function l2(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function s2(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function c2(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var u2,f2,p2,d2,m2,h2,y2,b2,v2,g2,w2,E2,_2,k2,O2,x2,S2,j2,C2,D2,N2,P2,T2,M2,A2,L2,R2,F2,z2,B2,Y2,I2,H2,U2,W2,V2,q2,G2,K2,$2,J2,X2,Q2,Z2,e3,t3,n3,r3,o3,a3,i3,l3,s3,c3,u3,f3,p3,d3,m3,h3,y3,b3,v3,g3,w3,E3,_3,k3,O3,x3,S3,j3,C3,D3,N3,P3,T3,M3,A3,L3,R3,F3,z3,B3,Y3,I3,H3,U3,W3,V3,q3,G3,K3,$3,J3,X3,Q3,Z3,e4,t4,n4,r4,o4,a4=(F1=d.action.bound,z1=d.action.bound,B1=d.action.bound,Y1=d.action.bound,I1=d.action.bound,H1=d.action.bound,U1=d.action.bound,W1=d.action.bound,V1=d.action.bound,q1=d.action.bound,G1=d.action.bound,K1=d.action.bound,$1=d.action.bound,J1=d.action.bound,X1=d.action.bound,Q1=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),l2(this,"serverMessages",Z1,this),l2(this,"connected",e2,this),l2(this,"connectionError",t2,this),this.localStateKey=function(){return"tr_".concat(r.recording.id)},this.localStateVersionKey=function(){return"tr_".concat(r.recording.id,"_version")},l2(this,"clearServerMessages",n2,this),this.saveUserSurver=function(e){return et.a.post("/account/user_survey.json",{user_survey:e})},this.getEmbedCode=function(e,t){var n={};return e&&(n.embed_settings=e),t&&(n.language=t),et.a.get("".concat(r.baseUrl,"/embed_code"),{params:n})},this.trackCopiedEmbedCode=function(){return et.a.post("".concat(r.baseUrl,"/embed_code_copied"))},this.fetchShares=function(){return et.a.get("".concat(r.baseUrl,"/shares.json"))},this.fetchClips=function(){return et.a.get("".concat(r.baseUrl,"/clips.json"))},this.fetchVideoExports=function(){return et.a.get("".concat(r.baseUrl,"/video_exports.json"))},this.deleteVideoExport=function(e){return et.a.delete("/video_exports/".concat(e,".json"))},this.deleteClip=function(e){return et.a.delete("/clips/".concat(e,".json"))},this.updateClipName=function(e,t){return et.a.put("/clips/".concat(e,".json"),{highlight:{name:t}})},this.fetchVersions=function(e){var t=e.translated,n=e.transcript_id;return et.a.get("".concat(r.baseUrl,"/versions.json"),{params:{translated:t,transcript_id:n}})},this.fetchSummaries=function(e){var t=e.custom;return et.a.get("".concat(r.baseUrl,"/summarizations.json"),{params:{custom:t}})},this.fetchLastAiOutput=function(e){return et.a.get("".concat(r.baseUrl,"/summarizations/").concat(e,"/last.json"))},this.fetchVersion=function(e){return et.a.get("/versions/".concat(e,".json"))},this.restoreVersion=function(e){var t=e.id,n=e.translated,r=e.transcript_id;return et.a.post("/versions/".concat(t,"/restore.json"),{translated:n,transcript_id:r})},this.updateShares=function(e){var t=e.map((function(e){return{id:e.id,_destroy:e.deleted,can_edit:e.canEdit}}));return et.a.put("".concat(r.baseUrl,"/shares/update_all.json"),{recording:{shares_attributes:t}})},this.share=function(e){var t=e.emails,n=e.notes,o=e.canEdit,a=e.onSuccess,i=e.onError;et.a.post("".concat(r.baseUrl,"/shares.json"),{emails:t,notes:n,can_edit:o}).then((function(e){a&&a()})).catch((function(e){i&&i(e.response.data)}))},this.updateAccess=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return et.a.put("".concat(r.baseUrl,".json"),{recording:{private_file:e}}).then(Object(d.action)((function(n){r.recording.privateFile=e,t.onSuccess&&t.onSuccess()})))},this.saveName=function(e){return et.a.put("".concat(r.baseUrl,".json"),{recording:{name:e}}).then(Object(d.action)((function(e){r.recording.name=e.data.name})))},this.dismissStats=function(){return et.a.put("".concat(r.baseUrl,".json"),{recording:{seen_stats:!0}})},this.dismissHelp=function(){return et.a.put("".concat(r.baseUrl,"/dismiss_help.json"))},this.restore=function(){return et.a.put("".concat(r.baseUrl,"/restore.json"))},this.compress=function(){return et.a.put("".concat(r.baseUrl,"/compress.json"))},this.onReceiveData=function(e){var t=r._socketUpdateMethods[e.type];t&&t(e.data)},this._socketUpdateMethods={call_status:function(e){r.call&&e.call&&r.call.updateFromJson(e.call),e.recording&&(r.recording.status=e.recording.status)}},this.recording=t,this.call=n,this.baseUrl="".concat(this.recording.basePath,"/").concat(this.recording.id),et.a.defaults.headers.common["X-CSRF-TOKEN"]=window.authToken,this.call&&this._initializeCable()}var t,n,r;return t=e,n=[{key:"generateSummary",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return et.a.post("".concat(this.baseUrl,"/summarizations.json"),{subtype:t.subtype||"summary",sentence_count:t.sentenceCount||5,custom_prompt:t.customPrompt||"",summarize_format:t.summarizeFormat}).then(Object(d.action)((function(t){setTimeout((function(){return e.checkSummaryStatus(t.data.key,n)}),4e3)})))}},{key:"checkSummaryStatus",value:function(e,t){var n=this,r="/summarizations/".concat(e,".json");et.a.get(r).then(Object(d.action)((function(r){"completed"===r.data.status?t(r.data):setTimeout((function(){return n.checkSummaryStatus(e,t)}),1500)})))}},{key:"exportTranscript",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="".concat(this.baseUrl,"/export.json");et.a.post(r,n).then(Object(d.action)((function(n){setTimeout((function(){return t.checkExportStatus(n.data.key,e)}),1e3)})))}},{key:"checkExportStatus",value:function(e,t){var n=this,r="".concat(this.baseUrl,"/export?key=").concat(e);et.a.get(r).then(Object(d.action)((function(r){"completed"===r.data.status?t(r.data):setTimeout((function(){return n.checkExportStatus(e,t)}),1e3)})))}},{key:"exportAudioHighlights",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="/recordings/".concat(this.recording.id,"/highlights.json");et.a.post(r,n).then(Object(d.action)((function(n){setTimeout((function(){return t.checkHighlightStatus(n.data.id,e)}),1e3)})))}},{key:"checkHighlightStatus",value:function(e,t){var n=this,r="/highlights/".concat(e,".json");et.a.get(r).then(Object(d.action)((function(r){"completed"===r.data.status?t(r.data):setTimeout((function(){return n.checkHighlightStatus(e,t)}),1e3)})))}},{key:"fetchRecording",value:function(){return et.a.get("".concat(this.baseUrl,".json?cache=").concat(Date.now())).then(Object(d.action)((function(e){return e.data})))}},{key:"fetchTranslation",value:function(e,t){var n="/translations/".concat(e,".json?cache=").concat(Date.now());return t&&"/r"===this.recording.basePath&&(n+="&token=".concat(t)),et.a.get(n).then(Object(d.action)((function(e){return e.data})))}},{key:"deleteTranslation",value:function(e){var t="/translations/".concat(e,".json");return et.a.delete(t)}},{key:"unlockResource",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"recording",t=arguments.length>1?arguments[1]:void 0;return"recording"===e?et.a.delete("".concat(this.baseUrl,"/padlocks.json")):"translation"===e?et.a.delete("/translations/".concat(t,"/padlocks.json")):void 0}},{key:"lockResource",value:function(e,t){return"recording"===e?et.a.post("".concat(this.baseUrl,"/padlocks.json")):"translation"===e?et.a.post("/translations/".concat(t,"/padlocks.json")):void 0}},{key:"addDictionaryWord",value:function(e){return et.a.post("/dictionaries/add.json",{word:e})}},{key:"updateShareWithPatrons",value:function(e,t){var n=this;return et.a.put("".concat(this.baseUrl,".json"),{recording:{share_with_patrons:e,min_patronage_amount:t}}).then(Object(d.action)((function(r){n.recording.shareWithPatrons=e,n.recording.minPatronageAmount=t})))}},{key:"setTimecodeOffset",value:function(e,t,n){var r=this;return et.a.put("".concat(this.baseUrl,".json"),{recording:{timecode_offset:e,frame_rate:t,frame_offset:n}}).then(Object(d.action)((function(o){r.recording.timecodeOffset=e,r.recording.frameRate=t,r.recording.frameOffset=n})))}},{key:"fetchAlignmentData",value:function(){return et.a.get("".concat(this.baseUrl,"/alignments/new")).then(Object(d.action)((function(e){return e.data})))}},{key:"startAlignment",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return et.a.post("".concat(this.baseUrl,"/alignments"),t).then(Object(d.action)((function(t){e.recording.status="aligning"})))}},{key:"importTranslationSrt",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return et.a.post("".concat(this.baseUrl,"/alignments/import_srt"),e)}},{key:"copyRecording",value:function(e,t){return et.a.post("".concat(this.baseUrl,"/copy"),{copy_method:t,name:e})}},{key:"startTranslation",value:function(e){return et.a.post("".concat(this.baseUrl,"/translations"),{language:e})}},{key:"startBurnIn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return et.a.post("".concat(this.baseUrl,"/video_exports"),e)}},{key:"saveLocalState",value:function(e,t){try{null!==window.localStorage&&(window.localStorage.setItem(this.localStateKey(),e),window.localStorage.setItem(this.localStateVersionKey(),t))}catch(e){console.log("Could not save local state: ",e)}}},{key:"clearLocalState",value:function(){try{null!==window.localStorage&&(window.localStorage.removeItem(this.localStateKey()),window.localStorage.removeItem(this.localStateVersionKey()))}catch(e){console.log("Could not clear local state: ",e)}}},{key:"getLocalState",value:function(){try{return null!==window.localStorage?{state:window.localStorage.getItem(this.localStateKey()),version:window.localStorage.getItem(this.localStateVersionKey())}:{}}catch(e){console.log("Could not get local state: ",e)}}},{key:"generateSubtitles",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="".concat(this.baseUrl,"/generate_subtitles.json");return et.a.post(n,{transcript_id:e.id,translated:e.translated,language:e.language,version:e.version,max_duration:t.maxDuration,max_characters:t.maxCharacters,max_cps:t.maxCPS,subtitle_lines:t.subtitleLines},{timeout:9e4})}},{key:"collapseAdjacentSpeakers",value:function(e,t){var n="".concat(this.baseUrl,"/collapse_speakers.json");return et.a.post(n,{transcript_id:e.id,translated:e.translated,language:e.language,merge_method:t,version:e.version},{timeout:9e4})}},{key:"saveSlateState",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(new Date).getTime().toString(),o=e.translated?"/translations/".concat(e.id,".json"):"".concat(this.baseUrl,"/transcript.json");this.serverMessages.set(r,null);var a=setTimeout((function(){t.clearServerMessages(),t.connectionError=!0,n.onError&&n.onError()}),105e3),i=e.serialized();return this.saveLocalState(i,e.version),et.a.put(o,{transcript_id:e.id,state:i,version:e.version,force:n.forceSave},{timeout:9e4}).then(Object(d.action)((function(n){e.version=n.data.version,e.lastSavedAt=n.data.saved_at,t.clearServerMessages(),clearTimeout(a),t.clearLocalState(),t.connectionError=!1}))).catch(Object(d.action)((function(e){t.clearServerMessages(),clearTimeout(a),e.response&&423===e.response.status?(t.clearLocalState(),n.onLocked&&n.onLocked()):e.response&&409===e.response.status?(t.clearLocalState(),n.onVersionError&&n.onVersionError()):e.response&&401===e.response.status?(t.connectionError=!0,n.onAuthenticationError&&n.onAuthenticationError()):(t.connectionError=!0,n.onError&&n.onError())})))}},{key:"_initializeCable",value:function(){var e=this;this.cable=i2.a.createConsumer("/cable"),this.connected=!1,this.channel=this.cable.subscriptions.create({channel:"RecordingsChannel",token:this.recording.shareToken},{connected:function(t){e.connected=!0},disconnected:function(t){return e.connected=!1},received:this.onReceiveData.bind(this)})}}],n&&s2(t.prototype,n),r&&s2(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Z1=c2(Q1.prototype,"serverMessages",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return d.observable.map()}}),e2=c2(Q1.prototype,"connected",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),t2=c2(Q1.prototype,"connectionError",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),c2(Q1.prototype,"generateSummary",[F1],Object.getOwnPropertyDescriptor(Q1.prototype,"generateSummary"),Q1.prototype),c2(Q1.prototype,"checkSummaryStatus",[z1],Object.getOwnPropertyDescriptor(Q1.prototype,"checkSummaryStatus"),Q1.prototype),c2(Q1.prototype,"exportTranscript",[B1],Object.getOwnPropertyDescriptor(Q1.prototype,"exportTranscript"),Q1.prototype),c2(Q1.prototype,"checkExportStatus",[Y1],Object.getOwnPropertyDescriptor(Q1.prototype,"checkExportStatus"),Q1.prototype),c2(Q1.prototype,"exportAudioHighlights",[I1],Object.getOwnPropertyDescriptor(Q1.prototype,"exportAudioHighlights"),Q1.prototype),c2(Q1.prototype,"checkHighlightStatus",[H1],Object.getOwnPropertyDescriptor(Q1.prototype,"checkHighlightStatus"),Q1.prototype),c2(Q1.prototype,"fetchRecording",[U1],Object.getOwnPropertyDescriptor(Q1.prototype,"fetchRecording"),Q1.prototype),c2(Q1.prototype,"fetchTranslation",[W1],Object.getOwnPropertyDescriptor(Q1.prototype,"fetchTranslation"),Q1.prototype),c2(Q1.prototype,"deleteTranslation",[V1],Object.getOwnPropertyDescriptor(Q1.prototype,"deleteTranslation"),Q1.prototype),c2(Q1.prototype,"unlockResource",[q1],Object.getOwnPropertyDescriptor(Q1.prototype,"unlockResource"),Q1.prototype),c2(Q1.prototype,"lockResource",[G1],Object.getOwnPropertyDescriptor(Q1.prototype,"lockResource"),Q1.prototype),c2(Q1.prototype,"addDictionaryWord",[K1],Object.getOwnPropertyDescriptor(Q1.prototype,"addDictionaryWord"),Q1.prototype),n2=c2(Q1.prototype,"clearServerMessages",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){return e.serverMessages.clear()}}}),c2(Q1.prototype,"generateSubtitles",[$1],Object.getOwnPropertyDescriptor(Q1.prototype,"generateSubtitles"),Q1.prototype),c2(Q1.prototype,"collapseAdjacentSpeakers",[J1],Object.getOwnPropertyDescriptor(Q1.prototype,"collapseAdjacentSpeakers"),Q1.prototype),c2(Q1.prototype,"saveSlateState",[X1],Object.getOwnPropertyDescriptor(Q1.prototype,"saveSlateState"),Q1.prototype),Q1),i4=a4;function l4(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function s4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function c4(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var u4=(u2=d.action.bound,f2=d.action.bound,p2=d.action.bound,d2=d.action.bound,m2=d.action.bound,h2=d.action.bound,y2=d.action.bound,b2=d.action.bound,v2=d.action.bound,g2=d.action.bound,w2=d.action.bound,E2=d.action.bound,_2=d.action.bound,k2=d.action.bound,O2=d.action.bound,x2=d.action.bound,S2=d.action.bound,j2=d.action.bound,C2=d.action.bound,D2=d.action.bound,N2=d.action.bound,P2=d.action.bound,T2=d.action.bound,M2=d.action.bound,A2=d.action.bound,L2=d.action.bound,R2=d.action.bound,F2=d.action.bound,z2=d.action.bound,B2=d.action.bound,Y2=d.action.bound,I2=d.action.bound,H2=d.action.bound,U2=d.action.bound,W2=d.action.bound,V2=d.action.bound,q2=d.action.bound,G2=d.action.bound,K2=d.action.bound,$2=d.action.bound,J2=d.action.bound,X2=d.action.bound,Q2=d.action.bound,Z2=d.action.bound,e3=d.action.bound,t3=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.playbackSpeeds=[.4,.6,.8,1,1.2,1.4,1.6,1.8,2,2.5,3,3.5,4],l4(this,"folder",n3,this),l4(this,"breadcrumb",r3,this),l4(this,"pos",o3,this),l4(this,"playbackSpeed",a3,this),l4(this,"duration",i3,this),l4(this,"playing",l3,this),l4(this,"mediaLoaded",s3,this),l4(this,"pendingScroll",c3,this),l4(this,"autoScrolling",u3,this),l4(this,"recording",f3,this),l4(this,"transcript",p3,this),l4(this,"versions",d3,this),l4(this,"viewingVersion",m3,this),l4(this,"summaries",h3,this),l4(this,"viewingSummary",y3,this),l4(this,"isSummarizationSupported",b3,this),l4(this,"provider",v3,this),l4(this,"showEmbedNotes",g3,this),l4(this,"showEmbedVideo",w3,this),l4(this,"showEmbedTranslations",E3,this),l4(this,"allowEmbedDownload",_3,this),l4(this,"allowEmbedShare",k3,this),l4(this,"defaultEmbedTab",O3,this),l4(this,"useExternalHost",x3,this),l4(this,"externalHostPath",S3,this),l4(this,"loaded",j3,this),l4(this,"readonly",C3,this),l4(this,"sourceLangDeepLSupported",D3,this),l4(this,"translations",N3,this),l4(this,"videoExports",P3,this),l4(this,"isOwner",T3,this),l4(this,"ownerName",M3,this),l4(this,"ownerEmail",A3,this),l4(this,"canShare",L3,this),l4(this,"canDelete",R3,this),l4(this,"canTranslateAndAlign",F3,this),l4(this,"disableExports",z3,this),l4(this,"preventExportingAndSharing",B3,this),l4(this,"customDictionaryEnabled",Y3,this),l4(this,"multiEdit",I3,this),l4(this,"lockedBy",H3,this),l4(this,"hasStateChanged",U3,this),l4(this,"showConfidence",W3,this),l4(this,"isCroppedTranscript",V3,this),l4(this,"playingExchange",q3,this),l4(this,"playingWordFrom",G3,this),l4(this,"playingWordTo",K3,this),l4(this,"dismissedHelp",$3,this),l4(this,"isVideo",J3,this),l4(this,"toggleShowEmbedNotes",X3,this),l4(this,"toggleShowEmbedTranslations",Q3,this),l4(this,"toggleShowEmbedVideo",Z3,this),l4(this,"toggleAllowEmbedDownload",e4,this),l4(this,"toggleAllowEmbedShare",t4,this),l4(this,"setDefaultEmbedTab",n4,this),l4(this,"toggleUseExternalHost",r4,this),l4(this,"updateExternalHostPath",o4,this),this.monitorScroll=function(){if(r.transcript.isEmpty)return!1;var e=r.transcript.viewManager.calculateExchangesInViewport,t=document.getElementById("transcript-container");r.mouseDown=!1;var n,o=window.scrollY;t.addEventListener("scroll",(function(){r.autoScrolling||(window.clearTimeout(n),n=setTimeout((function(){Math.abs(t.scrollTop-o)>150&&(r.mouseDown||(o=t.scrollTop,e()))}),150))}))},this.user=n,this.recording=new M1(t),this.transcript=new bk(this.markAsChanged),this.transcript.paginated=!!n.preferences.paginate_transcripts,this.uiState=new o2(this),this.exportOptions=new fd(this),this.captionDisplay=new Iy(t.captionDisplay,this),this.folder=t.folder,this.breadcrumb=t.breadcrumb,this.readonly=t.readonly,this.duration=t.duration,this.isVideo=t.isVideo,this.dismissedHelp=t.dismissedHelp,this.seenStats=t.seenStats,this.isCroppedTranscript=t.isCroppedTranscript,this.isSummarizationSupported=t.isSummarizationSupported,this.sourceLangDeepLSupported=t.sourceLangDeepLSupported,this.translations=t.translations,this.translationCost=t.translationCost,this.translationPricePerHour=t.translationPricePerHour,this.burnInCost=t.burnInCost,this.isOwner=t.isOwner,this.ownerName=t.ownerName,this.ownerEmail=t.ownerEmail,this.canDelete=t.canDelete,this.canShare=t.canShare,this.canTranslateAndAlign=t.canTranslateAndAlign,this.disableExports=t.disableExports,this.preventExportingAndSharing=t.preventExportingAndSharing,this.customDictionaryEnabled=t.customDictionaryEnabled,this.showEmbedNotes=t.showEmbedNotes,this.showEmbedVideo=t.showEmbedVideo,this.showEmbedTranslations=t.showEmbedTranslations,this.allowEmbedDownload=t.allowEmbedDownload,this.allowEmbedShare=t.allowEmbedShare,this.useExternalHost=t.useExternalHost,this.externalHostPath=t.externalHostPath,this.defaultEmbedTab=t.defaultEmbedTab,this.multiEdit=t.multiEdit,this.lockedBy=t.lockedBy,this.transportLayer=new i4(this.recording),this.fetchRecording()}var t,n,r;return t=e,n=[{key:"fetchRecording",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(this.loaded=!1),clearTimeout(this.fetchTimeout),this.transportLayer.fetchRecording().then(this.onRecordingFetch)}},{key:"fetchTranslation",value:function(e){return e&&(this.loaded=!1,this.transcript.id=e),clearTimeout(this.fetchTimeout),this.transportLayer.fetchTranslation(this.transcript.id,this.recording.id).then(this.onTranslationFetch)}},{key:"deleteTranslation",value:function(){return this.transportLayer.deleteTranslation(this.transcript.id).then(this.fetchRecording)}},{key:"fetchSummaries",value:function(){var e=this,t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{custom:!1}).custom,n=void 0!==t&&t;return this.setViewingSummary({id:null,loaded:!1}),this.transportLayer.fetchSummaries({custom:n}).then(Object(d.action)((function(t){e.summaries=t.data})))}},{key:"setViewingSummary",value:function(e){this.viewingSummary=e}},{key:"fetchVersions",value:function(){var e=this;return this.viewingVersion={id:null,loaded:!1},this.transportLayer.fetchVersions({translated:this.transcript.translated,transcript_id:this.transcript.id}).then(Object(d.action)((function(t){e.versions=t.data,e.versions.length?e.setViewingVersion(e.versions[0].id):e.viewingVersion.loaded=!0})))}},{key:"fetchClips",value:function(){var e=this;return this.transportLayer.fetchClips().then(Object(d.action)((function(t){e.clips=t.data})))}},{key:"fetchVideoExports",value:function(){var e=this;return this.transportLayer.fetchVideoExports().then(Object(d.action)((function(t){e.videoExports=t.data})))}},{key:"startTranslation",value:function(e){var t=this;return this.transportLayer.startTranslation(e).then(Object(d.action)((function(e){t.translations=e.data.translations,t.fetchTranslation(e.data.new_translation.id)})))}},{key:"sortedTranslations",get:function(){return this.translations.map((function(e){var t=we.o.find((function(t){return t.code===e.language}));return Object.assign({},e,t)})).sort((function(e,t){return e.language<t.language?-1:e.language>t.language?1:0}))}},{key:"restoreViewingVersion",value:function(){var e=this,t=this.viewingVersion.id;return this.transportLayer.restoreVersion({id:t,translated:this.transcript.translated,transcript_id:this.transcript.id}).then(Object(d.action)((function(t){var n=t.data;e.loadTranscriptJson({id:e.transcript.id,state:n.transcript,translated:e.transcript.translated,status:"completed",language:n.language,version:n.version,lastSavedAt:n.lastSavedAt})})))}},{key:"generateSubtitles",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.transportLayer.generateSubtitles(this.transcript,t).then(Object(d.action)((function(t){var n=t.data;e.transcript.loadFromJSON({id:e.transcript.id,state:n.transcript,subtitled:!0,translated:e.transcript.translated,status:"completed",language:e.transcript.language,version:n.version,lastSavedAt:n.saved_at})})))}},{key:"collapseAdjacentSpeakers",value:function(e){var t=this;return this.transportLayer.collapseAdjacentSpeakers(this.transcript,e).then(Object(d.action)((function(e){var n=e.data;t.transcript.loadFromJSON({id:t.transcript.id,state:n.transcript,subtitled:!1,translated:t.transcript.translated,status:"completed",language:t.transcript.language,version:n.version,lastSavedAt:n.saved_at})})))}},{key:"setViewingVersion",value:function(e){var t=this;return this.viewingVersion={id:e,loaded:!1},this.transportLayer.fetchVersion(e).then(Object(d.action)((function(e){t.viewingVersion.loaded=!0,t.viewingVersion.preview=e.data.preview})))}},{key:"onTranslationFetch",value:function(e){var t=this;this.loaded=!0,this.loadTranscriptJson({id:e.id,translated:!0,subtitled:e.subtitled,state:e.transcript,status:e.status,language:e.language,version:e.version,lastSavedAt:e.lastSavedAt}),this.multiEdit&&(this.readonly=e.readonly,this.lockedBy=e.lockedBy),"completed"===e.status?(requestAnimationFrame((function(){return t.syncAudioWithTranscript(t.pos)})),this.setNeedsScroll()):this.fetchTimeout=setTimeout(this.fetchTranslation,3e3)}},{key:"onRecordingFetch",value:function(e){var t=this;if(this.loaded=!0,this.recording.loadFromJson(e),this.isStatusComplete)if(this.translations=e.translations,this.isVideo=e.isVideo,this.provider=e.provider,this.isCroppedTranscript=e.isCroppedTranscript,this.transcript.version=e.transcriptVersion,this.transcript.lastSavedAt=e.lastSavedAt,this.multiEdit&&(this.readonly=e.readonly,this.lockedBy=e.lockedBy),this.loadTranscriptJson({id:e.transcriptId,translated:!1,subtitled:e.subtitled,state:e.transcript,language:e.language,status:"completed",version:e.transcriptVersion,lastSavedAt:e.lastSavedAt}),!this.seenStats&&this.isOwner&&this.showQualityStats&&!this.user.skipQualityScorePopup&&(setTimeout((function(){t.transportLayer.dismissStats()}),2e3),this.uiState.showQualityModal()),this.pendingTranslationLang){var n=this.translations.find((function(e){return e.language===t.pendingTranslationLang}));n&&this.fetchTranslation(n.id),this.pendingTranslationLang=null}else requestAnimationFrame((function(){return t.syncAudioWithTranscript(t.pos)}));else"failed"!==e.status&&(this.fetchTimeout=setTimeout(this.fetchRecording,3e3))}},{key:"canLockFile",get:function(){return this.multiEdit&&this.readonly&&!this.lockedBy}},{key:"isLockedByAnotherUser",get:function(){return this.multiEdit&&this.readonly&&this.lockedBy}},{key:"isTranscriptReady",get:function(){return this.loaded&&this.isStatusComplete}},{key:"showQualityStats",get:function(){return"google_beta"!==this.provider&&!this.transcript.isEmpty&&!this.transcript.translated&&"unknown"!==this.recording.qualityGrade}},{key:"isStatusComplete",get:function(){return this.recording.isComplete}},{key:"unlockResource",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.transcript.translated?"translation":"recording";return this.transportLayer.unlockResource(n,this.transcript.id).then(Object(d.action)((function(n){t?(e.loaded=!1,e.transcript.translated?e.fetchTranslation():e.fetchRecording()):(e.readonly=!0,e.lockedBy=null)})))}},{key:"lockResource",value:function(){var e=this,t=this.transcript.translated?"translation":"recording";return this.transportLayer.lockResource(t,this.transcript.id).then(Object(d.action)((function(t){e.readonly=!1,e.lockedBy=t.data.lockedBy})))}},{key:"dismissHelp",value:function(){this.dismissedHelp=!0,this.transportLayer.dismissHelp()}},{key:"loadTranscriptJson",value:function(e){var t=this.transportLayer.getLocalState();t.state&&t.version&&t.version.toString()===e.version.toString()&&(this.markAsChanged(),e.state=JSON.parse(t.state)),this.transcript.loadFromJSON(e)}},{key:"forceSaveEditorState",value:function(){this.hasStateChanged=!1,this.clearFirstEdit(),this.transportLayer.clearServerMessages(),this.transportLayer.saveSlateState(this.transcript,{onError:this.markAsChanged,onLocked:this.onRecordingLockedError,onVersionError:this.onWrongRecordingVersionError,forceSave:!0})}},{key:"saveEditorState",value:function(){if(this.hasInFlightRequests)return clearTimeout(this.editorSaveTimer),void(this.editorSaveTimer=setTimeout(this.saveEditorState,2e3));this.hasStateChanged=!1,this.clearFirstEdit(),this.transportLayer.saveSlateState(this.transcript,{onError:this.markAsChanged,onLocked:this.onRecordingLockedError,onVersionError:this.onWrongRecordingVersionError,onAuthenticationError:this.onAuthenticationError})}},{key:"addSelectedWordToDictionary",value:function(e){e&&e.preventDefault();var t=this.transcript.selectedWords().map((function(e){return e.text})).join("");""!=t&&(this.transportLayer.addDictionaryWord(t),this.uiState.setNotification('Added "'.concat(t,'" to your custom dictionary!')))}},{key:"onAuthenticationError",value:function(){this.readonly=!0,alert("Looks like you are currently logged out of Sonix.  Please login again to save your transcript!")}},{key:"onRecordingLockedError",value:function(){this.readonly=!0,alert("Whoops. Someone else just started editing this file. Please refresh the page and try again.")}},{key:"onWrongRecordingVersionError",value:function(){this.readonly=!0,alert("Whoops. Looks like you are editing an older version of the transcript.  Someone else must be editing or you have edited in another window. Refresh to get the newest transcript.")}},{key:"markAsChanged",value:function(){this.readonly||(this.hasStateChanged?this.within15SecondsOfEdit()&&this.user.preferences.auto_save&&(clearTimeout(this.editorSaveTimer),this.editorSaveTimer=setTimeout(this.saveEditorState,2e3)):(this.hasStateChanged=!0,this.setFirstEdit(),this.user.preferences.auto_save&&(this.editorSaveTimer=setTimeout(this.saveEditorState,2e3))))}},{key:"within15SecondsOfEdit",value:function(){return(new Date).getTime().toString()-15e3<this.lastEdit}},{key:"setFirstEdit",value:function(){this.lastEdit=(new Date).getTime().toString()}},{key:"clearFirstEdit",value:function(){this.lastEdit=null}},{key:"hasInFlightRequests",get:function(){return 0!==this.transportLayer.serverMessages.size}},{key:"hasPendingSaves",get:function(){return this.hasStateChanged}},{key:"syncAudioWithTranscript",value:function(e){var t=this;if(e=parseFloat(e.toFixed(2)),this.transcript.paginated&&this.pendingScroll){var n=Math.floor(e/600);this.transcript.setPage(n)}var r=this.transcript.findPlayingExchange(e),o=this.transcript.findPlayingWordFromExchange(e,r);return r&&this.pendingScroll&&(this.transcript.paginated?setTimeout((function(){return t.scrollToPlayingExchange(r)}),200):this.scrollToPlayingExchange(r)),this.playingExchange=r,o?(this.playingWordFrom=o.from,this.playingWordTo=o.to):(this.playingWordFrom=null,this.playingWordTo=null),o}},{key:"playingExchangeFrom",get:function(){return this.playingExchange&&this.playingExchange.from}},{key:"setDuration",value:function(e){e>0&&(this.mediaLoaded=!0,this.duration=e)}},{key:"increasePlaybackSpeed",value:function(){var e=this.playbackSpeeds.indexOf(this.playbackSpeed);if(void 0!==e){var t=this.playbackSpeeds[e+1];t&&this.setPlaybackSpeed(t)}}},{key:"decreasePlaybackSpeed",value:function(){var e=this.playbackSpeeds.indexOf(this.playbackSpeed);if(void 0!==e){var t=this.playbackSpeeds[e-1];t&&this.setPlaybackSpeed(t)}}},{key:"resetPlaybackSpeed",value:function(){this.setPlaybackSpeed(1)}},{key:"setPlaybackSpeed",value:function(e){this.playbackSpeed=e}},{key:"playFrom",value:function(e){this.updatePosition(e),this.playing=!0}},{key:"skipForward",value:function(e){e&&e.preventDefault();var t=this.pos+5;t>this.duration&&(t=this.duration),this.updatePosition(t)}},{key:"skipBackward",value:function(e){e&&e.preventDefault();var t=this.pos-5;this.updatePosition(Math.max(t,.01))}},{key:"updatePosition",value:function(e){if(this.pos=parseFloat(e),!(this.pos>=this.playingWordFrom&&this.pos<this.playingWordTo)){var t=this.syncAudioWithTranscript(this.pos);this.handleStrikethrough(t)}}},{key:"handleStrikethrough",value:function(e){if(e&&e.strikethrough){var t=this.transcript.findNextNotStrikedWord(e);if(t.strikethrough)this.pos=parseFloat(t.to);else{this.pos=parseFloat(t.from);var n=this.transcript.findPlayingExchange(this.pos);this.playingExchange=n,this.playingWordFrom=t.from,this.playingWordTo=t.to}}}},{key:"scrollToPlayingExchange",value:function(e){var t=this,n=this.transcript.editor.findDOMNode(e);if(n){var r=document.getElementById("transcript-container");this.autoScrolling=!0,Object(we.l)(r,n.offsetTop+20,300,(function(){return t.autoScrolling=!1}))}this.pendingScroll=!1}},{key:"togglePlaying",value:function(e){e&&e.preventDefault(),this.duration>0&&this.mediaLoaded&&(this.playing=!this.playing)}},{key:"toggleConfidence",value:function(e){e&&e.preventDefault(),this.showConfidence=!this.showConfidence}},{key:"pauseTemporarily",value:function(){(this.playing||this.pauseTimeout)&&(this.pauseAudio(),clearTimeout(this.pauseTimeout),this.pauseTimeout=setTimeout(this.playAudio,1e3))}},{key:"pauseAudio",value:function(){this.playing=!1}},{key:"playAudio",value:function(){this.pauseTimeout=null,this.playing=!0}},{key:"setNeedsScroll",value:function(){this.pendingScroll=!0}},{key:"setTranslation",value:function(e){this.pendingTranslationLang=e}},{key:"setStartTime",value:function(e){e&&(this.updatePosition(parseFloat(e)),this.setNeedsScroll())}}],n&&s4(t.prototype,n),r&&s4(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),n3=c4(t3.prototype,"folder",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),r3=c4(t3.prototype,"breadcrumb",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),o3=c4(t3.prototype,"pos",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),a3=c4(t3.prototype,"playbackSpeed",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),i3=c4(t3.prototype,"duration",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),l3=c4(t3.prototype,"playing",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),s3=c4(t3.prototype,"mediaLoaded",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),c3=c4(t3.prototype,"pendingScroll",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),u3=c4(t3.prototype,"autoScrolling",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),f3=c4(t3.prototype,"recording",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p3=c4(t3.prototype,"transcript",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d3=c4(t3.prototype,"versions",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),m3=c4(t3.prototype,"viewingVersion",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{id:null,loaded:!1}}}),h3=c4(t3.prototype,"summaries",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),y3=c4(t3.prototype,"viewingSummary",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{id:null,loaded:!1}}}),b3=c4(t3.prototype,"isSummarizationSupported",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),v3=c4(t3.prototype,"provider",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g3=c4(t3.prototype,"showEmbedNotes",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w3=c4(t3.prototype,"showEmbedVideo",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E3=c4(t3.prototype,"showEmbedTranslations",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_3=c4(t3.prototype,"allowEmbedDownload",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k3=c4(t3.prototype,"allowEmbedShare",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O3=c4(t3.prototype,"defaultEmbedTab",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x3=c4(t3.prototype,"useExternalHost",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S3=c4(t3.prototype,"externalHostPath",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j3=c4(t3.prototype,"loaded",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),C3=c4(t3.prototype,"readonly",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),D3=c4(t3.prototype,"sourceLangDeepLSupported",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),N3=c4(t3.prototype,"translations",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),P3=c4(t3.prototype,"videoExports",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),T3=c4(t3.prototype,"isOwner",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M3=c4(t3.prototype,"ownerName",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A3=c4(t3.prototype,"ownerEmail",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L3=c4(t3.prototype,"canShare",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R3=c4(t3.prototype,"canDelete",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F3=c4(t3.prototype,"canTranslateAndAlign",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z3=c4(t3.prototype,"disableExports",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B3=c4(t3.prototype,"preventExportingAndSharing",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Y3=c4(t3.prototype,"customDictionaryEnabled",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I3=c4(t3.prototype,"multiEdit",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),H3=c4(t3.prototype,"lockedBy",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U3=c4(t3.prototype,"hasStateChanged",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),W3=c4(t3.prototype,"showConfidence",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),V3=c4(t3.prototype,"isCroppedTranscript",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),q3=c4(t3.prototype,"playingExchange",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),G3=c4(t3.prototype,"playingWordFrom",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),K3=c4(t3.prototype,"playingWordTo",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$3=c4(t3.prototype,"dismissedHelp",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),J3=c4(t3.prototype,"isVideo",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),X3=c4(t3.prototype,"toggleShowEmbedNotes",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){return e.showEmbedNotes=!e.showEmbedNotes}}}),Q3=c4(t3.prototype,"toggleShowEmbedTranslations",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){return e.showEmbedTranslations=!e.showEmbedTranslations}}}),Z3=c4(t3.prototype,"toggleShowEmbedVideo",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){return e.showEmbedVideo=!e.showEmbedVideo}}}),e4=c4(t3.prototype,"toggleAllowEmbedDownload",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){return e.allowEmbedDownload=!e.allowEmbedDownload}}}),t4=c4(t3.prototype,"toggleAllowEmbedShare",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){return e.allowEmbedShare=!e.allowEmbedShare}}}),n4=c4(t3.prototype,"setDefaultEmbedTab",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){return e.defaultEmbedTab=t}}}),r4=c4(t3.prototype,"toggleUseExternalHost",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){return e.useExternalHost=!e.useExternalHost}}}),o4=c4(t3.prototype,"updateExternalHostPath",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){return e.externalHostPath=t.target.value}}}),c4(t3.prototype,"fetchRecording",[u2],Object.getOwnPropertyDescriptor(t3.prototype,"fetchRecording"),t3.prototype),c4(t3.prototype,"fetchTranslation",[f2],Object.getOwnPropertyDescriptor(t3.prototype,"fetchTranslation"),t3.prototype),c4(t3.prototype,"deleteTranslation",[p2],Object.getOwnPropertyDescriptor(t3.prototype,"deleteTranslation"),t3.prototype),c4(t3.prototype,"fetchSummaries",[d2],Object.getOwnPropertyDescriptor(t3.prototype,"fetchSummaries"),t3.prototype),c4(t3.prototype,"setViewingSummary",[m2],Object.getOwnPropertyDescriptor(t3.prototype,"setViewingSummary"),t3.prototype),c4(t3.prototype,"fetchVersions",[h2],Object.getOwnPropertyDescriptor(t3.prototype,"fetchVersions"),t3.prototype),c4(t3.prototype,"fetchClips",[y2],Object.getOwnPropertyDescriptor(t3.prototype,"fetchClips"),t3.prototype),c4(t3.prototype,"fetchVideoExports",[b2],Object.getOwnPropertyDescriptor(t3.prototype,"fetchVideoExports"),t3.prototype),c4(t3.prototype,"startTranslation",[v2],Object.getOwnPropertyDescriptor(t3.prototype,"startTranslation"),t3.prototype),c4(t3.prototype,"sortedTranslations",[d.computed],Object.getOwnPropertyDescriptor(t3.prototype,"sortedTranslations"),t3.prototype),c4(t3.prototype,"restoreViewingVersion",[g2],Object.getOwnPropertyDescriptor(t3.prototype,"restoreViewingVersion"),t3.prototype),c4(t3.prototype,"generateSubtitles",[w2],Object.getOwnPropertyDescriptor(t3.prototype,"generateSubtitles"),t3.prototype),c4(t3.prototype,"collapseAdjacentSpeakers",[E2],Object.getOwnPropertyDescriptor(t3.prototype,"collapseAdjacentSpeakers"),t3.prototype),c4(t3.prototype,"setViewingVersion",[_2],Object.getOwnPropertyDescriptor(t3.prototype,"setViewingVersion"),t3.prototype),c4(t3.prototype,"onTranslationFetch",[k2],Object.getOwnPropertyDescriptor(t3.prototype,"onTranslationFetch"),t3.prototype),c4(t3.prototype,"onRecordingFetch",[O2],Object.getOwnPropertyDescriptor(t3.prototype,"onRecordingFetch"),t3.prototype),c4(t3.prototype,"canLockFile",[d.computed],Object.getOwnPropertyDescriptor(t3.prototype,"canLockFile"),t3.prototype),c4(t3.prototype,"isLockedByAnotherUser",[d.computed],Object.getOwnPropertyDescriptor(t3.prototype,"isLockedByAnotherUser"),t3.prototype),c4(t3.prototype,"isTranscriptReady",[d.computed],Object.getOwnPropertyDescriptor(t3.prototype,"isTranscriptReady"),t3.prototype),c4(t3.prototype,"showQualityStats",[d.computed],Object.getOwnPropertyDescriptor(t3.prototype,"showQualityStats"),t3.prototype),c4(t3.prototype,"isStatusComplete",[d.computed],Object.getOwnPropertyDescriptor(t3.prototype,"isStatusComplete"),t3.prototype),c4(t3.prototype,"unlockResource",[x2],Object.getOwnPropertyDescriptor(t3.prototype,"unlockResource"),t3.prototype),c4(t3.prototype,"lockResource",[S2],Object.getOwnPropertyDescriptor(t3.prototype,"lockResource"),t3.prototype),c4(t3.prototype,"dismissHelp",[j2],Object.getOwnPropertyDescriptor(t3.prototype,"dismissHelp"),t3.prototype),c4(t3.prototype,"forceSaveEditorState",[C2],Object.getOwnPropertyDescriptor(t3.prototype,"forceSaveEditorState"),t3.prototype),c4(t3.prototype,"saveEditorState",[D2],Object.getOwnPropertyDescriptor(t3.prototype,"saveEditorState"),t3.prototype),c4(t3.prototype,"addSelectedWordToDictionary",[N2],Object.getOwnPropertyDescriptor(t3.prototype,"addSelectedWordToDictionary"),t3.prototype),c4(t3.prototype,"onAuthenticationError",[P2],Object.getOwnPropertyDescriptor(t3.prototype,"onAuthenticationError"),t3.prototype),c4(t3.prototype,"onRecordingLockedError",[T2],Object.getOwnPropertyDescriptor(t3.prototype,"onRecordingLockedError"),t3.prototype),c4(t3.prototype,"onWrongRecordingVersionError",[M2],Object.getOwnPropertyDescriptor(t3.prototype,"onWrongRecordingVersionError"),t3.prototype),c4(t3.prototype,"markAsChanged",[A2],Object.getOwnPropertyDescriptor(t3.prototype,"markAsChanged"),t3.prototype),c4(t3.prototype,"hasInFlightRequests",[d.computed],Object.getOwnPropertyDescriptor(t3.prototype,"hasInFlightRequests"),t3.prototype),c4(t3.prototype,"hasPendingSaves",[d.computed],Object.getOwnPropertyDescriptor(t3.prototype,"hasPendingSaves"),t3.prototype),c4(t3.prototype,"syncAudioWithTranscript",[L2],Object.getOwnPropertyDescriptor(t3.prototype,"syncAudioWithTranscript"),t3.prototype),c4(t3.prototype,"playingExchangeFrom",[d.computed],Object.getOwnPropertyDescriptor(t3.prototype,"playingExchangeFrom"),t3.prototype),c4(t3.prototype,"setDuration",[R2],Object.getOwnPropertyDescriptor(t3.prototype,"setDuration"),t3.prototype),c4(t3.prototype,"increasePlaybackSpeed",[F2],Object.getOwnPropertyDescriptor(t3.prototype,"increasePlaybackSpeed"),t3.prototype),c4(t3.prototype,"decreasePlaybackSpeed",[z2],Object.getOwnPropertyDescriptor(t3.prototype,"decreasePlaybackSpeed"),t3.prototype),c4(t3.prototype,"resetPlaybackSpeed",[B2],Object.getOwnPropertyDescriptor(t3.prototype,"resetPlaybackSpeed"),t3.prototype),c4(t3.prototype,"setPlaybackSpeed",[Y2],Object.getOwnPropertyDescriptor(t3.prototype,"setPlaybackSpeed"),t3.prototype),c4(t3.prototype,"playFrom",[I2],Object.getOwnPropertyDescriptor(t3.prototype,"playFrom"),t3.prototype),c4(t3.prototype,"skipForward",[H2],Object.getOwnPropertyDescriptor(t3.prototype,"skipForward"),t3.prototype),c4(t3.prototype,"skipBackward",[U2],Object.getOwnPropertyDescriptor(t3.prototype,"skipBackward"),t3.prototype),c4(t3.prototype,"updatePosition",[W2],Object.getOwnPropertyDescriptor(t3.prototype,"updatePosition"),t3.prototype),c4(t3.prototype,"handleStrikethrough",[V2],Object.getOwnPropertyDescriptor(t3.prototype,"handleStrikethrough"),t3.prototype),c4(t3.prototype,"scrollToPlayingExchange",[q2],Object.getOwnPropertyDescriptor(t3.prototype,"scrollToPlayingExchange"),t3.prototype),c4(t3.prototype,"togglePlaying",[G2],Object.getOwnPropertyDescriptor(t3.prototype,"togglePlaying"),t3.prototype),c4(t3.prototype,"toggleConfidence",[K2],Object.getOwnPropertyDescriptor(t3.prototype,"toggleConfidence"),t3.prototype),c4(t3.prototype,"pauseTemporarily",[$2],Object.getOwnPropertyDescriptor(t3.prototype,"pauseTemporarily"),t3.prototype),c4(t3.prototype,"pauseAudio",[J2],Object.getOwnPropertyDescriptor(t3.prototype,"pauseAudio"),t3.prototype),c4(t3.prototype,"playAudio",[X2],Object.getOwnPropertyDescriptor(t3.prototype,"playAudio"),t3.prototype),c4(t3.prototype,"setNeedsScroll",[Q2],Object.getOwnPropertyDescriptor(t3.prototype,"setNeedsScroll"),t3.prototype),c4(t3.prototype,"setTranslation",[Z2],Object.getOwnPropertyDescriptor(t3.prototype,"setTranslation"),t3.prototype),c4(t3.prototype,"setStartTime",[e3],Object.getOwnPropertyDescriptor(t3.prototype,"setStartTime"),t3.prototype),t3),f4=u4;function p4(e){window.onbeforeunload=function(){if(e())return"You have unsaved changed.  Are you sure you want to leave?"}}var d4,m4,h4,y4,b4,v4,g4=function(e){var t=Pm.a.parse(location.search),n=new Pn(window.userData),r=new f4(e,n);n.exportSettings&&(Object.assign(r.exportOptions.options,n.exportSettings),r.exportOptions.options.limit_captions=!0),r.setStartTime(t.t),r.setTranslation(t.lang),p4((function(){return r.hasPendingSaves})),u.a.render(s.a.createElement(se.a,{store:r,user:n,readonly:r.readonly,recording:r.recording,transportLayer:r.transportLayer},s.a.createElement(c1,{store:r,user:n})),document.getElementById("root"))};function w4(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function E4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function _4(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var k4,O4,x4,S4,j4=(m4=_4((d4=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),w4(this,"id",m4,this),w4(this,"title",h4,this),w4(this,"status",y4,this),w4(this,"allowTermination",b4,this),w4(this,"statusText",v4,this),this.id=t.id,this.title=t.title,this.updateFromJson(t)}var t,n,r;return t=e,(n=[{key:"updateFromJson",value:function(e){this.isComplete||(this.allowTermination=e.allow_termination,this.status=e.status,this.statusText=e.status_text)}},{key:"terminateCall",value:function(){et.a.defaults.headers.common["X-CSRF-TOKEN"]=window.authToken,et.a.put("/calls/".concat(this.id,"/terminate.json"),{id:this.id})}},{key:"isComplete",get:function(){return"Completed"===this.status}}])&&E4(t.prototype,n),r&&E4(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()).prototype,"id",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h4=_4(d4.prototype,"title",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y4=_4(d4.prototype,"status",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b4=_4(d4.prototype,"allowTermination",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v4=_4(d4.prototype,"statusText",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_4(d4.prototype,"updateFromJson",[d.action],Object.getOwnPropertyDescriptor(d4.prototype,"updateFromJson"),d4.prototype),_4(d4.prototype,"terminateCall",[d.action],Object.getOwnPropertyDescriptor(d4.prototype,"terminateCall"),d4.prototype),_4(d4.prototype,"isComplete",[d.computed],Object.getOwnPropertyDescriptor(d4.prototype,"isComplete"),d4.prototype),d4);function C4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function D4(e,t){return D4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},D4(e,t)}function N4(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=T4(e);if(t){var o=T4(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return P4(e)}(this,n)}}function P4(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T4(e){return T4=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},T4(e)}function M4(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var A4,L4,R4,F4,z4=(k4=d.action.bound,Object(se.c)((x4=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&D4(e,t)}(a,e);var t,n,r,o=N4(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),function(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(t=o.call(this,e),"name",S4,P4(t)),t.name=t.props.recording.name,t}return t=a,(n=[{key:"componentDidMount",value:function(){this.saveInterval=setInterval(this.saveRecordingName.bind(this),2e3)}},{key:"componentWillUnmount",value:function(){clearInterval(this.saveInterval)}},{key:"saveStatus",value:function(){var e=this.props,t=e.recording,n=e.transportLayer;return t.name!=this.name?"Unsaved":0!==n.serverMessages.size?[s.a.createElement("i",{className:"fa fa-fw me-1 fa-spin fa-spinner",key:1}),"Saving"]:[s.a.createElement("i",{className:"fa fa-fw me-1 fa-check-circle",key:2}),"Auto-saved"]}},{key:"saveRecordingName",value:function(){this.name!==this.props.recording.name&&this.props.transportLayer.saveName(this.name)}},{key:"updateName",value:function(e){this.name=e.target.value}},{key:"render",value:function(){return s.a.createElement("div",{className:"form-group position--relative"},s.a.createElement("label",{htmlFor:"call-name",className:"input--label d-block position--relative"},"Recording name",s.a.createElement("span",{className:"ms-auto textarea-autosave text-status position--absolute position--right-0 position--top-0 pt-0 text--color-primary"},this.saveStatus())),s.a.createElement("input",{className:"form-control",id:"call-name",onChange:this.updateName,value:this.name,type:"text"}))}}])&&C4(t.prototype,n),r&&C4(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),S4=M4(x4.prototype,"name",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),M4(x4.prototype,"updateName",[k4],Object.getOwnPropertyDescriptor(x4.prototype,"updateName"),x4.prototype),O4=x4))||O4),B4=z4;function Y4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function I4(e,t){return I4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},I4(e,t)}function H4(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=W4(e);if(t){var o=W4(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return U4(e)}(this,n)}}function U4(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function W4(e){return W4=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},W4(e)}function V4(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var q4=(A4=d.action.bound,Object(se.c)((R4=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&I4(e,t)}(a,e);var t,n,r,o=H4(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(e=o.call.apply(o,[this].concat(n)),"terminated",F4,U4(e)),e}return t=a,(n=[{key:"handleTermination",value:function(){this.terminated=!0,this.props.call.terminateCall()}},{key:"render",value:function(){var e=this.props.call;return s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement("h2",{className:"my-0"},e.status),s.a.createElement("p",null,e.statusText),s.a.createElement("div",{className:"mb-5 actions-call"},this.renderTerminateCall()),s.a.createElement("h2",{className:"my-0"},"Name your call below"),s.a.createElement("p",null,"We made it easy. Everything autosaves."),s.a.createElement("div",{className:"section--notes-in-call"},s.a.createElement(B4,{recording:this.props.recording,transportLayer:this.props.transportLayer}),this.renderRecordingLink())))}},{key:"renderRecordingLink",value:function(){var e=this.props.recording;return"recording"!==e.status?s.a.createElement("div",{className:"mb-5"},s.a.createElement("a",{className:"btn btn-primary",href:"/recordings/".concat(e.id)},s.a.createElement("i",{className:"fa fa-chevron-right me-2"}),"Go to transcript")):"failed"===e.status?s.a.createElement("p",null,"No audio imported"):this.props.call.isComplete?s.a.createElement("p",{className:"text--color-success"},"Getting audio. Thanks for being patient."):void 0}},{key:"renderTerminateCall",value:function(){if(this.props.call.allowTermination&&!this.terminated)return s.a.createElement("div",{className:"mb-5"},s.a.createElement("button",{onClick:this.handleTermination,className:"btn btn-red btn-shadow"},s.a.createElement("i",{className:"fa fa-stop me-2"}),"End call and stop recording"))}}])&&Y4(t.prototype,n),r&&Y4(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),F4=V4(R4.prototype,"terminated",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),V4(R4.prototype,"handleTermination",[A4],Object.getOwnPropertyDescriptor(R4.prototype,"handleTermination"),R4.prototype),L4=R4))||L4),G4=q4,K4=function(e,t){var n={recording:new M1(e),call:new j4(t)};n.transportLayer=new i4(n.recording,n.call),n.readonly=!1,u.a.render(s.a.createElement(se.a,{store:n},s.a.createElement(G4,n)),document.getElementById("call"))};function $4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function J4(e,t){return J4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},J4(e,t)}function X4(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Q4(e);if(t){var o=Q4(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Q4(e){return Q4=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Q4(e)}var Z4,e5,t5,n5=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&J4(e,t)}(a,e);var t,n,r,o=X4(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"renderSteps",value:function(){var e=this.props,t=e.stepNames,n=e.stepIcons,r=e.currentStep;return t.map((function(e,t){var o=t+1;return o<r?s.a.createElement("div",{key:t,className:"step done","data-desc":e},s.a.createElement("i",{className:"far fa-fw fa-check"})," ",e):s.a.createElement("div",{key:t,className:ue()("step",{active:o===r}),"data-desc":e},s.a.createElement("i",{className:ue()("far fa-fw me-2",n[t])})," ",e)}))}},{key:"render",value:function(){var e=this.props.stepNames;return s.a.createElement("div",{className:ue()("steps pb-3","steps--"+e.length)},this.renderSteps())}}])&&$4(t.prototype,n),r&&$4(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),r5=n5;function o5(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function a5(e,t){return a5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a5(e,t)}function i5(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=l5(e);if(t){var o=l5(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function l5(e){return l5=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l5(e)}var s5,c5,u5,f5,p5,d5,m5,h5,y5,b5=(Z4=d.action.bound,Object(se.c)((t5=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a5(e,t)}(a,e);var t,n,r,o=i5(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"updateName",value:function(e){this.props.file.name=e.target.value}},{key:"renderLabelText",value:function(){var e=this.props,t=e.file;return e.multitrack?"Track #".concat(this.props.num,': Who is speaking in "').concat(t.filename,'"?'):"".concat(this.props.num,': Rename "').concat(t.filename,'"?')}},{key:"renderProgressStatus",value:function(){var e=this.props.file;return e.uploadProgress<100?s.a.createElement("label",{className:"text--color-alert text--size-800rem mb-0"},s.a.createElement("i",{className:"far fa-fw me-1 fa-spin fa-spinner"}),e.readableSpeed?s.a.createElement("span",null,"Uploading (",e.uploadedSizeInMb,"MB / ",e.sizeInMb,"MB at ",e.readableSpeed,"/s)"):s.a.createElement("span",null,"'Preparing to Upload...'")):s.a.createElement("label",{className:"text--color-success-dark text--weight-700 text--size-800rem mb-0"},s.a.createElement("i",{className:"far fa-fw me-1 fa-check"}),"100% Uploaded ",0===e.size?"":"(".concat(e.sizeInMb,"MB)"))}},{key:"render",value:function(){var e=this.props.file,t={width:e.uploadProgress+"%"},n=ue()({"progress--bar":!0,"progress--bar-uploading":e.uploadProgress<100,"progress--bar-completed":100==e.uploadProgress});return s.a.createElement("div",{className:"mb-0"},s.a.createElement("div",{className:"form-group position--relative mb-3"},s.a.createElement("label",{className:"input--label d-block text--color-meta-dark",htmlFor:"name-audio-".concat(this.props.num)},this.renderLabelText()),s.a.createElement("input",{id:"name-audio-".concat(this.props.num),className:"form-control border-radius--flat-bottom",onChange:this.updateName,value:e.name,type:"text"}),s.a.createElement("div",{className:"position--relative"},s.a.createElement("div",{className:"progress--upload-sm"},s.a.createElement("div",{className:n,style:t})),s.a.createElement("div",{className:"row mt-1"},s.a.createElement("div",{className:"col-sm-12 col-md-8 text--size-800rem"},this.renderProgressStatus()),s.a.createElement("div",{className:"col-sm-12 col-md-4 text-md-end text--size-800rem"},s.a.createElement("span",{className:"pill-btn pill-btn-error clickable",onClick:this.props.onRemove},s.a.createElement("i",{className:"fa fa-fw me-1 fa-times"}),"Remove"))))))}}])&&o5(t.prototype,n),r&&o5(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),function(e,t,n,r,o){var a={};Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null)}(t5.prototype,"updateName",[Z4],Object.getOwnPropertyDescriptor(t5.prototype,"updateName"),t5.prototype),e5=t5))||e5),v5=b5;function g5(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function w5(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function E5(e,t){return E5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},E5(e,t)}function _5(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O5(e);if(t){var o=O5(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return k5(e)}(this,n)}}function k5(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O5(e){return O5=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O5(e)}function x5(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var S5,j5,C5,D5=(s5=d.action.bound,c5=d.action.bound,u5=d.action.bound,Object(se.c)((p5=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E5(e,t)}(a,e);var t,n,r,o=_5(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return g5(e=o.call.apply(o,[this].concat(n)),"error",d5,k5(e)),g5(e,"loading",m5,k5(e)),g5(e,"rootFolder",h5,k5(e)),g5(e,"selectedFolder",y5,k5(e)),e}return t=a,(n=[{key:"onOpen",value:function(){var e=this;this.selectedFolder={id:null,name:"Home"},et.a.get("/folders.json").then((function(t){e.rootFolder=t.data[0],e.loading=!1}))}},{key:"chooseFolder",value:function(){this.selectedFolder.id?(this.props.store.setFolder(this.selectedFolder),this.props.onRequestClose()):this.error="Select a folder"}},{key:"onSelect",value:function(e,t){this.selectedFolder={id:e[0],name:t.node.props.title},this.error=null}},{key:"renderFolders",value:function(e){var t=this;return e.map((function(e){return s.a.createElement(Qr,{title:e.name,key:e.id},t.renderFolders(e.folders))}))}},{key:"renderRootFolder",value:function(){var e=[this.rootFolder.id];return s.a.createElement(Zr,{className:"myCls",showLine:!0,defaultExpandedKeys:e,onSelect:this.onSelect},s.a.createElement(Qr,{title:"Home",key:this.rootFolder.id},this.renderFolders(this.rootFolder.folders)))}},{key:"renderPrivateFileSelect",value:function(){var e=this.props,t=e.showPrivateFileSelection,n=e.store,r=n.files;if(t)return s.a.createElement("div",{className:"form-group position--relative mb-4 custom-controls-stacked"},s.a.createElement("p",{className:"mb-2"},r.length>1?"Do you want to hide these transcripts from other teammates?":"Do you want to hide this transcript from other teammates?"),s.a.createElement("div",{className:"form-check px-0"},s.a.createElement("label",{className:"label-switch switch-primary"},s.a.createElement("input",{className:"switch-square switch-bootstrap status",type:"checkbox",name:"private_file",checked:n.privateFile,onChange:function(){return n.privateFile=!n.privateFile}}),s.a.createElement("span",{className:"lable"}),s.a.createElement("span",{className:"switch-prompt"},r.length>1?"Make transcripts private":"Make transcript private",s.a.createElement("div",{className:"d-inline-block ms-2","data-balloon":"Your team members can see your uploads by default. Only you can see private transcripts.","data-balloon-length":"large","data-balloon-pos":"up"},s.a.createElement("i",{className:"far fa-info-circle"}))))))}},{key:"renderForm",value:function(){var e=this.props.store.files;return s.a.createElement("div",{className:"form-group has-errors"},s.a.createElement("p",{className:"mb-2"},e&&e.length>1?"Where do you want to store your files?":"Where do you want to store your file?"),s.a.createElement("div",{className:"form-group tree-container"},this.loading?s.a.createElement(Ne,null):this.renderRootFolder()),this.renderPrivateFileSelect(),this.error&&s.a.createElement("div",{className:"error--text"},this.error),this.renderButtons())}},{key:"renderButtons",value:function(){return s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("button",{className:"btn btn-primary",onClick:this.chooseFolder},s.a.createElement("i",{className:"fa fa-check me-2"}),"Select"),s.a.createElement("button",{className:"btn",onClick:this.props.onRequestClose},s.a.createElement("i",{className:"fa fa-times me-2"}),"Cancel"))}},{key:"render",value:function(){return s.a.createElement(ao,{modalClasses:"smodal--content smodal--content-sm",onAfterOpen:this.onOpen,isOpen:this.props.isOpen,onRequestClose:this.props.onRequestClose,modalTitle:"Select Folder",modalIcon:"far fa-folder"},s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10"},this.renderForm())))}}])&&w5(t.prototype,n),r&&w5(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),d5=x5(p5.prototype,"error",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m5=x5(p5.prototype,"loading",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),h5=x5(p5.prototype,"rootFolder",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),y5=x5(p5.prototype,"selectedFolder",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{id:null,name:"Home"}}}),x5(p5.prototype,"onOpen",[s5],Object.getOwnPropertyDescriptor(p5.prototype,"onOpen"),p5.prototype),x5(p5.prototype,"chooseFolder",[c5],Object.getOwnPropertyDescriptor(p5.prototype,"chooseFolder"),p5.prototype),x5(p5.prototype,"onSelect",[u5],Object.getOwnPropertyDescriptor(p5.prototype,"onSelect"),p5.prototype),f5=p5))||f5),N5=D5,P5=n(427);function T5(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function M5(e,t){return M5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},M5(e,t)}function A5(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=L5(e);if(t){var o=L5(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function L5(e){return L5=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},L5(e)}function R5(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var F5,z5=(S5=d.action.bound,Object(se.c)((C5=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&M5(e,t)}(a,e);var t,n,r,o=A5(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).onAfterOpen=function(){e.props.qualityAnswers.correct_language=e.isLanguageAuto,Object(we.k)("sonix_onboarding_trial_upload_quality_modal")},e}return t=a,(n=[{key:"updateQualityAnswer",value:function(e){var t=this.props.qualityAnswers;t[e.target.name]=!t[e.target.name]}},{key:"isAllGoodQuality",get:function(){var e=this.props.qualityAnswers;return Object.keys(e).reduce((function(t,n){return t&&e[n]}),!0)}},{key:"isLanguageCorrect",get:function(){return this.props.qualityAnswers.correct_language||this.isLanguageAuto}},{key:"isLanguageAuto",get:function(){return"auto"==this.props.language}},{key:"renderButtons",value:function(){var e=this.props,t=e.onRequestClose,n=e.startTranscribing;return this.isAllGoodQuality?s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("button",{className:"btn btn-primary t--quality-modal-transcribe",onClick:n},s.a.createElement("i",{className:"fa fa-arrow-right me-3"}),"Transcribe now"),s.a.createElement("button",{className:"btn t--quality-modal-different-file",onClick:t},s.a.createElement("i",{className:"fa fa-times me-3"}),"Cancel")):this.isLanguageCorrect?s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("button",{className:"btn btn-red t--quality-modal-different-file",onClick:t},s.a.createElement("i",{className:"fa fa-times me-3"}),"Try a different file"),s.a.createElement("button",{className:"btn t--quality-modal-proceed-anyways",onClick:n},s.a.createElement("i",{className:"fa fa-arrow-right me-3"}),"Continue transcribing")):s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("button",{className:"btn btn-red t--quality-modal-wrong-language",onClick:t},s.a.createElement("i",{className:"fa fa-arrow-left me-3"}),"Go back and select the correct language"))}},{key:"renderQualityAlert",value:function(){return this.isAllGoodQuality?s.a.createElement(ko,{icon:"fa-birthday-cake"},s.a.createElement("h4",null,s.a.createElement("span",null,"Looking good... Very good!")),s.a.createElement("p",null,"Thanks for uploading high quality audio. You'll be impressed with the accuracy of the transcript and how fast you'll receive it. Buckle your seatbelts!")):this.isLanguageCorrect?s.a.createElement("div",{className:"alert alert-warning media"},s.a.createElement("i",{className:"far fa-2x fa-exclamation-triangle align-self-center me-3"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("h4",null,s.a.createElement("span",null,"Your transcript may have a lower accuracy score")),s.a.createElement("p",null,s.a.createElement("span",null,s.a.createElement("span",null,"We want you to have a great first experience. Based on your answers above, please try uploading a different file with "),s.a.createElement("abbr",{title:"Loud background noise, speakers far away from the microphone, speakers talking over each other, or heavily-accented speakers do not jive with our speech-to-text algorithms and results in a low accuracy transcript."},s.a.createElement("span",null,"better audio quality.")))))):s.a.createElement("div",{className:"alert alert-warning media"},s.a.createElement("i",{className:"far fa-2x fa-exclamation-triangle align-self-center me-3"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("h4",null,s.a.createElement("span",null,"Please select the correct language")),s.a.createElement("p",null,"With the wrong language selected, our system will incorrectly transcribe your file. If you'd like a translation, you'll first need to transcribe in the original language.")))}},{key:"render",value:function(){var e=this.props,t=e.qualityAnswers,n=e.language,r=Object(we.i)(n);return s.a.createElement(ao,{modalClasses:"smodal--content smodal--content-md",isOpen:this.props.isOpen,onAfterOpen:this.onAfterOpen,onRequestClose:this.props.onRequestClose,modalTitle:"Transcribing your first file",modalIcon:"far fa-volume-up"},s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10"},s.a.createElement("div",{className:"form-group has-errors"},s.a.createElement("h2",{className:"text--weight-700 mb-3"},"A few quick questions..."),!this.isLanguageAuto&&r&&s.a.createElement(s.a.Fragment,null,s.a.createElement("p",null,s.a.createElement("strong",null,"Language: "),"For the file you just uploaded..."),s.a.createElement("div",{className:"form-group"},s.a.createElement(Au,{onChange:this.updateQualityAnswer,checked:t.correct_language,name:"correct_language"},s.a.createElement("p",null,"...is ",r.language," the ",s.a.createElement("abbr",{title:"Selecting the correct language ensures that you have no issues with the transcript"},"language spoken"),"?")))),s.a.createElement("p",null,s.a.createElement("strong",null,"Quality: "),"Our speech-to-text algorithms are best in class. However, to get the most accurate transcript, uploading high quality audio helps tremendously. For the file you just uploaded..."),s.a.createElement("div",{className:"form-group"},s.a.createElement(Au,{onChange:this.updateQualityAnswer,checked:t.no_background_noise,name:"no_background_noise"},s.a.createElement("p",null,"...is the audio free from ",s.a.createElement("abbr",{title:"Loud background noise interferes with our speech-to-text algorithms and results in a lower accuracy score"},"background noise"),"?")),s.a.createElement(Au,{onChange:this.updateQualityAnswer,checked:t.close_to_mic,name:"close_to_mic"},s.a.createElement("p",null,"...are speakers ",s.a.createElement("abbr",{title:"The closer the speakers are to a microphone, the better the accuracy of the transcription"},"close to the microphone"),"?")),s.a.createElement(Au,{onChange:this.updateQualityAnswer,checked:t.no_cross_talk,name:"no_cross_talk"},s.a.createElement("p",null,"...are speakers ",s.a.createElement("abbr",{title:"When speakers talk over each other, our speech-to-text algorithms find it hard to distinguish who said what"},"talking one at a time"),"?")),s.a.createElement(Au,{onChange:this.updateQualityAnswer,checked:t.clear_accents,name:"clear_accents"},s.a.createElement("p",null,"...are speakers ",s.a.createElement("abbr",{title:"Clear speech transcribes the best, heavy accents will reduce the accuracy of your transcript"},"talking clearly"),"?")))),this.renderQualityAlert(),this.renderButtons())))}}])&&T5(t.prototype,n),r&&T5(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),R5(C5.prototype,"updateQualityAnswer",[S5],Object.getOwnPropertyDescriptor(C5.prototype,"updateQualityAnswer"),C5.prototype),R5(C5.prototype,"isAllGoodQuality",[d.computed],Object.getOwnPropertyDescriptor(C5.prototype,"isAllGoodQuality"),C5.prototype),R5(C5.prototype,"isLanguageCorrect",[d.computed],Object.getOwnPropertyDescriptor(C5.prototype,"isLanguageCorrect"),C5.prototype),R5(C5.prototype,"isLanguageAuto",[d.computed],Object.getOwnPropertyDescriptor(C5.prototype,"isLanguageAuto"),C5.prototype),j5=C5))||j5),B5=z5;function Y5(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function I5(e,t){return I5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},I5(e,t)}function H5(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=U5(e);if(t){var o=U5(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function U5(e){return U5=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},U5(e)}var W5=Object(se.c)(F5=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&I5(e,t)}(a,e);var t,n,r,o=H5(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).updateTranscriptText=function(t){e.props.store.setTranscriptText(t.target.value)},e}return t=a,(n=[{key:"render",value:function(){var e=this.props.store,t=e.toggleUploadSRT,n=e.transcriptText,r=e.uploadSRT;return s.a.createElement("div",{className:"form-group position--relative mt-5"},s.a.createElement("h3",{className:"text--size-1600rem text--color-primary mb-2"},"Step 3: Existing transcript"),s.a.createElement("div",{className:"form-group position--relative mb-4"},s.a.createElement(bq,{onChange:t,uploadSRT:r})),s.a.createElement("label",{className:"input--label text--size-1000rem text--color-meta-dark text--transform-none",htmlFor:"transcript-text"},r?"Please copy and paste your SRT file format below:":"Please copy and paste your plain text transcript below:"),s.a.createElement("textarea",{id:"transcript-text",className:"form-control border-radius--flat-bottom",onChange:this.updateTranscriptText,placeholder:r?"Make sure that your SRT is properly formatted. We will automatically remove the timecodes for you.":"To separate speakers, please add an empty line between paragraphs.",value:n,type:"text",rows:"10"}),s.a.createElement("div",{className:"alert alert-warning media"},s.a.createElement("i",{className:"far fa-exclamation-triangle align-self-center me-2 fa-lg"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("strong",null,r?"Heads up: Aligning a SRT file to the audio may take extra time":"Heads up: Aligning an existing transcript to the audio may take extra time"))))}}])&&Y5(t.prototype,n),r&&Y5(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||F5,V5=W5;function q5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function G5(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q5(Object(n),!0).forEach((function(t){K5(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q5(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function K5(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $5,J5=Object(se.c)((function(e){var t=e.store,n=t.dictionaries,r={multiValue:function(e,t){t.data;return G5(G5({},e),{},{backgroundColor:"rgba(170, 212, 238, .4)"})},multiValueLabel:function(e,t){t.data;return G5(G5({},e),{},{color:"#3E3E3B",fontWeight:"700"})},multiValueRemove:function(e,t){t.data;return G5(G5({},e),{},{color:"#135589"})}};if(!t.hasMultipleDictionaries)return null;var o=t.selectedDictionaries.map((function(e){return{label:e.label,value:e.value,key:e.value}}));return s.a.createElement("div",{className:"form-group position--relative"},s.a.createElement("label",{className:"input--label text--size-1000rem text--color-meta-dark text--transform-none",htmlFor:"recording-dictionaries"},"Which custom dictionaries should be used?"),s.a.createElement("div",{className:"form-group"},s.a.createElement(ZY.a,{value:o,name:"recording-dictionaries",placeholder:"Please select which custom dictionaries to use.",isMulti:!0,onChange:t.setSelectedDictionaries,options:n,styles:r})))}));function X5(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Q5(e,t){return Q5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Q5(e,t)}function Z5(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=e6(e);if(t){var o=e6(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function e6(e){return e6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e6(e)}var t6,n6=Object(se.c)($5=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Q5(e,t)}(a,e);var t,n,r,o=Z5(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).showDropboxChooser=function(t){t.stopPropagation(),Dropbox.choose({success:Object(d.action)((function(t){var n=e.props.store;t.forEach((function(e){return n.addDropboxFile(e)}))})),linkType:"direct",multiselect:e.props.store.allowMultiselect,extensions:["audio","video"]})},e}return t=a,(n=[{key:"render",value:function(){var e="compact"===this.props.btnSize;return s.a.createElement("a",{className:"clickable btn btn-partner text-md-start py-1",onClick:this.showDropboxChooser,"data-balloon":e?"Upload from Dropbox":void 0,"data-balloon-pos":e?"up":void 0},s.a.createElement("span",{className:"btn-partner__icon"},s.a.createElement("svg",{width:"16px",height:"16px",viewBox:"0 0 75 64"},s.a.createElement("g",{id:"Dropbox",transform:"translate(-105.000000, 0.000000)",fillRule:"nonzero",fill:"#0061FF"},s.a.createElement("path",{d:"M142.6,12 L123.8,24 L142.6,36 L123.8,48 L105,35.9 L123.8,23.9 L105,12 L123.8,0 L142.6,12 Z M123.7,51.8 L142.5,39.8 L161.3,51.8 L142.5,63.8 L123.7,51.8 Z M142.6,35.9 L161.4,23.9 L142.6,12 L161.3,0 L180.1,12 L161.3,24 L180.1,36 L161.3,48 L142.6,35.9 Z",id:"Shape"})))),!e&&s.a.createElement("span",{className:"btn-partner__text"},"Dropbox"))}}])&&X5(t.prototype,n),r&&X5(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||$5,r6=n6,o6=function(){return s.a.createElement("a",{className:"clickable btn btn-partner text-md-start py-1",href:"/zoom",onClick:function(e){return e.stopPropagation()}},s.a.createElement("span",{className:"btn-partner__icon"},s.a.createElement("svg",{width:"16px",height:"16px",viewBox:"0 0 55.75 34.17"},s.a.createElement("path",{d:"M45.72,25.7C66.07,8.77,58.37,10.83,59.82,47.39c0,2-1,1.8-1.88,1l-12.22-10ZM4.38,16.77v22.9C4.4,44.85,8.15,49,12.73,49H42.32a1.61,1.61,0,0,0,1.52-1.69V24.4c0-5.18-3.77-9.34-8.34-9.32C34.82,15.91,3.07,13.11,4.38,16.77Z",transform:"translate(-4.34 -14.83)",fill:"#2d8cff"}))),s.a.createElement("span",{className:"btn-partner__text"},"Zoom.us"))};function a6(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function i6(e,t){return i6=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i6(e,t)}function l6(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=s6(e);if(t){var o=s6(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function s6(e){return s6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s6(e)}var c6,u6,f6,p6=Object(se.c)(t6=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i6(e,t)}(a,e);var t,n,r,o=l6(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).developerKey="AIzaSyCzOOTDJpgR2vAph-s9YoaJZX1cPO8xK6o",e.clientId="392755187048-lujokdteuq9ch98v3bq119a0h6nr66j1.apps.googleusercontent.com",e.appId="392755187048",e.scope=["https://www.googleapis.com/auth/drive.file"],e.oauthToken=!1,e.pickerApiLoaded=!1,e.onAuthApiLoad=function(){window.gapi.auth.authorize({client_id:e.clientId,scope:e.scope,immediate:!1},e.handleAuthResult)},e.onPickerApiLoad=function(){e.pickerApiLoaded=!0,e.createPicker()},e.handleAuthResult=function(t){t&&!t.error&&(e.oauthToken=t.access_token,e.createPicker())},e.createPicker=function(){e.pickerApiLoaded&&e.oauthToken&&(e.picker=(new google.picker.PickerBuilder).addView(google.picker.ViewId.DOCS).setAppId(e.appId).setOAuthToken(e.oauthToken).setDeveloperKey(e.developerKey).setCallback(e.pickerCallback),e.props.store.allowMultiselect&&e.picker.enableFeature(google.picker.Feature.MULTISELECT_ENABLED),e.picker=e.picker.build(),e.picker.setVisible(!0))},e.pickerCallback=function(t){if(t[google.picker.Response.ACTION]==google.picker.Action.PICKED){var n=e.props.store;t[google.picker.Response.DOCUMENTS].forEach((function(t){return n.addGDriveFile(t,e.oauthToken)})),e.picker.dispose()}},e.showGDriveChooser=function(t){t.stopPropagation(),e.pickerApiLoaded&&e.oauthToken?e.createPicker():(gapi.load("auth",{callback:e.onAuthApiLoad}),gapi.load("picker",{callback:e.onPickerApiLoad}))},e}return t=a,(n=[{key:"render",value:function(){var e="compact"===this.props.btnSize;return s.a.createElement("a",{className:"clickable btn btn-partner text-md-start py-1",onClick:this.showGDriveChooser,"data-balloon":e?"Upload from Google Drive":void 0,"data-balloon-pos":e?"up":void 0},s.a.createElement("span",{className:"btn-partner__icon"},s.a.createElement("svg",{width:"16px",height:"16px",viewBox:"0 0 139 120.4"},s.a.createElement("radialGradient",{id:"a",cx:"-254.81979",cy:"705.83588",gradientTransform:"matrix(2.827 1.6322 -1.6322 2.827 2092.1199 -1494.5786)",gradientUnits:"userSpaceOnUse",r:"82.978401"},s.a.createElement("stop",{offset:"0",stopColor:"#4387fd"}),s.a.createElement("stop",{offset:".65",stopColor:"#3078f0"}),s.a.createElement("stop",{offset:".9099",stopColor:"#2b72ea"}),s.a.createElement("stop",{offset:"1",stopColor:"#286ee6"})),s.a.createElement("radialGradient",{id:"b",cx:"-254.8174",cy:"705.83691",gradientTransform:"matrix(2.827 1.6322 -1.6322 2.827 2092.1199 -1494.5786)",gradientUnits:"userSpaceOnUse",r:"82.973"},s.a.createElement("stop",{offset:"0",stopColor:"#ffd24d"}),s.a.createElement("stop",{offset:"1",stopColor:"#f6c338"})),s.a.createElement("path",{d:"m24.2 120.4-24.2-41.9 45.3-78.5 24.2 41.9z",fill:"#0da960"}),s.a.createElement("path",{d:"m24.2 120.4 24.2-41.9h90.6l-24.2 41.9z",fill:"url(#a)"}),s.a.createElement("path",{d:"m139 78.5h-48.4l-45.3-78.5h48.4z",fill:"url(#b)"}),s.a.createElement("path",{d:"m69.5 78.5h-21.1l10.5-18.3-34.7 60.2z",fill:"#2d6fdd"}),s.a.createElement("path",{d:"m90.6 78.5h48.4l-58.9-18.3z",fill:"#e5b93c"}),s.a.createElement("path",{d:"m58.9 60.2 10.6-18.3-24.2-41.9z",fill:"#0c9b57"}))),!e&&s.a.createElement("span",{className:"btn-partner__text"},"Drive"))}}])&&a6(t.prototype,n),r&&a6(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||t6,d6=p6;function m6(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function h6(e,t){return h6=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h6(e,t)}function y6(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b6(e);if(t){var o=b6(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function b6(e){return b6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b6(e)}var v6,g6,w6,E6=(c6=d.action.bound,Object(se.c)((f6=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h6(e,t)}(a,e);var t,n,r,o=y6(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"showModal",value:function(e){e.stopPropagation(),this.props.store.isAddingVideoLink=!0,this.props.store.isAddingYouTubeLink=!0}},{key:"render",value:function(){var e="compact"===this.props.btnSize;return s.a.createElement("a",{className:"clickable btn btn-partner text-md-start py-1",onClick:this.showModal,"data-balloon":e?"Upload from YouTube":void 0,"data-balloon-pos":e?"up":void 0},s.a.createElement("span",{className:"btn-partner__icon"},s.a.createElement("svg",{id:"Layer_1",x:"0px",y:"0px",viewBox:"0 0 461.001 461.001",width:"16px",height:"16px"},s.a.createElement("path",{fill:"#F61C0D",d:"M365.257,67.393H95.744C42.866,67.393,0,110.259,0,163.137v134.728 c0,52.878,42.866,95.744,95.744,95.744h269.513c52.878,0,95.744-42.866,95.744-95.744V163.137 C461.001,110.259,418.135,67.393,365.257,67.393z M300.506,237.056l-126.06,60.123c-3.359,1.602-7.239-0.847-7.239-4.568V168.607 c0-3.774,3.982-6.22,7.348-4.514l126.06,63.881C304.363,229.873,304.298,235.248,300.506,237.056z"}))),!e&&s.a.createElement("span",{className:"btn-partner__text"},"YouTube"))}}])&&m6(t.prototype,n),r&&m6(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),function(e,t,n,r,o){var a={};Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null)}(f6.prototype,"showModal",[c6],Object.getOwnPropertyDescriptor(f6.prototype,"showModal"),f6.prototype),u6=f6))||u6),_6=E6;function k6(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function O6(e,t){return O6=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O6(e,t)}function x6(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=S6(e);if(t){var o=S6(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function S6(e){return S6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S6(e)}var j6,C6,D6,N6,P6,T6,M6=(v6=d.action.bound,Object(se.c)((w6=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O6(e,t)}(a,e);var t,n,r,o=x6(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"showModal",value:function(e){e.stopPropagation(),this.props.store.isAddingVideoLink=!0}},{key:"render",value:function(){var e="compact"===this.props.btnSize;return s.a.createElement("a",{className:"clickable btn btn-partner text-md-start py-1",onClick:this.showModal,"data-balloon":e?"Video link":void 0,"data-balloon-pos":e?"up":void 0},s.a.createElement("i",{className:"fas fa-link fa-fw align-self-center btn-partner__icon"}),!e&&s.a.createElement("span",{className:"btn-partner__text"},"Video link"))}}])&&k6(t.prototype,n),r&&k6(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),function(e,t,n,r,o){var a={};Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null)}(w6.prototype,"showModal",[v6],Object.getOwnPropertyDescriptor(w6.prototype,"showModal"),w6.prototype),g6=w6))||g6),A6=M6,L6=function(e){var t=e.children,n=e.className,r=void 0===n?"":n,o=e.icon,a=void 0===o?"fa-times-circle":o;return s.a.createElement("div",{className:ue()("alert alert-warning media",r),role:"alert"},s.a.createElement("i",{className:ue()("far fa-2x align-self-center icon-danger me-3",a)}),s.a.createElement("div",{className:"media-body align-self-center"},t))};function R6(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function F6(e,t){return F6=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},F6(e,t)}function z6(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Y6(e);if(t){var o=Y6(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return B6(e)}(this,n)}}function B6(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Y6(e){return Y6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Y6(e)}function I6(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var H6,U6,W6,V6=(j6=d.action.bound,C6=d.action.bound,D6=d.action.bound,Object(se.c)((P6=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&F6(e,t)}(a,e);var t,n,r,o=z6(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(e=o.call.apply(o,[this].concat(n)),"youTubeLink",T6,B6(e)),e}return t=a,(n=[{key:"save",value:function(){this.props.store.addYouTubeFile(this.youTubeLink),this.youTubeLink="",this.closeModal()}},{key:"onAfterOpen",value:function(){var e=this.props.store;e.user.blockYouTube?Object(we.k)("sonix_onboarding_trial_upload_youtube"):e.isAddingYouTubeLink?Object(we.k)("app.upload.youtube"):Object(we.k)("app.upload.external_link")}},{key:"closeModal",value:function(){var e=this.props.store;e.isAddingVideoLink=!1,e.isAddingYouTubeLink=!1}},{key:"renderTempDoesNotWorkAlert",value:function(){return s.a.createElement(L6,{icon:"fa-triangle-exclamation me-4"},s.a.createElement("h4",null,"Video access update"),s.a.createElement("p",{className:"mb-3"},"Due to recent changes on YouTube, Vimeo, and other sites, we can’t access videos directly. Our team is working on a solution. For now, please download the video and upload it to Sonix if needed."),s.a.createElement("p",{className:"mb-0"},"Thank you for your understanding, and we apologize for the inconvenience."))}},{key:"renderYouTubeForm",value:function(){var e=this;return s.a.createElement("div",{className:"form-group"},s.a.createElement("p",null,"Automatically import and transcribe a YouTube video with Sonix's industry-leading speech-to-text algorithms."),s.a.createElement("div",{className:"form-group"},s.a.createElement("label",{htmlFor:"youtubeLink",className:"input--label text--weight-700"},s.a.createElement("i",{className:"fab fa-youtube text--color-red fa-fw me-2"}),"YouTube Video URL"),s.a.createElement("input",{autoFocus:!0,id:"youtubeLink",onChange:function(t){return e.youTubeLink=t.target.value},value:this.youTubeLink,className:"form-control"}),s.a.createElement("p",{className:"mt-1 text--color-meta-dark"},"Note: Please make sure that you have permission from the copyright owner and the video is publicly accessible.")),this.renderYouTubeButtons())}},{key:"renderYouTubeButtons",value:function(){return this.youTubeLink.indexOf("list=")>=0?s.a.createElement(ni,{hasClose:!0},s.a.createElement("h4",null,"That's a URL that we do not support"),s.a.createElement("p",{className:"mb-0"},"To get the correct URL, ",s.a.createElement("a",{className:"link--underline",target:"_blank",href:"https://help.sonix.ai/en/articles/5576382-how-to-get-the-correct-youtube-url-for-sonix-to-transcribe"},"simply use YouTube's share feature."))):s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("button",{className:"btn btn-primary",onClick:this.save},s.a.createElement("i",{className:"far fa-arrow-right me-2"}),"Transcribe YouTube video"),s.a.createElement("button",{className:"btn",onClick:this.closeModal},s.a.createElement("i",{className:"fa fa-times me-2"}),"Cancel"))}},{key:"renderVideoLinkForm",value:function(){var e=this;return s.a.createElement("div",{className:"form-group"},s.a.createElement("p",{className:"mb-2"},"Automatically import and transcribe a video with Sonix's industry-leading speech-to-text algorithms. Below are some sites that we support:"),s.a.createElement("ul",{className:"row list-unstyled mb-4"},s.a.createElement("li",{className:"col-sm-12 col-md-6 col-lg-4"},s.a.createElement("i",{className:"fas fa-video fa-fw me-2 text--color-meta"}),"Vimeo"),s.a.createElement("li",{className:"col-sm-12 col-md-6 col-lg-4"},s.a.createElement("i",{className:"fas fa-video fa-fw me-2 text--color-meta"}),"Dailymotion"),s.a.createElement("li",{className:"col-sm-12 col-md-6 col-lg-4"},s.a.createElement("i",{className:"fas fa-video fa-fw me-2 text--color-meta"}),"Twitch"),s.a.createElement("li",{className:"col-sm-12 col-md-6 col-lg-4"},s.a.createElement("i",{className:"fas fa-video fa-fw me-2 text--color-meta"}),"9GAG"),s.a.createElement("li",{className:"col-sm-12 col-md-6 col-lg-4"},s.a.createElement("i",{className:"fas fa-video fa-fw me-2 text--color-meta"}),"Wistia"),s.a.createElement("li",{className:"col-sm-12 col-md-6 col-lg-4"},s.a.createElement("i",{className:"fas fa-video fa-fw me-2 text--color-meta"}),"Vidler")),s.a.createElement("div",{className:"form-group"},s.a.createElement("label",{htmlFor:"youtubeLink",className:"input--label text--weight-700"},s.a.createElement("i",{className:"fas fa-link fa-fw me-2"}),"Paste Video Link Here"),s.a.createElement("input",{autoFocus:!0,id:"youtubeLink",onChange:function(t){return e.youTubeLink=t.target.value},value:this.youTubeLink,className:"form-control"}),s.a.createElement("p",{className:"mt-1 text--color-meta-dark"},"Note: Please make sure that you have permission from the copyright owner and the video link is publicly accessible.")),s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("button",{className:"btn btn-primary",onClick:this.save},s.a.createElement("i",{className:"far fa-arrow-right me-2"}),"Transcribe video link"),s.a.createElement("button",{className:"btn",onClick:this.closeModal},s.a.createElement("i",{className:"fa fa-times me-2"}),"Cancel")))}},{key:"renderForm",value:function(){return this.props.store.isAddingYouTubeLink?this.renderYouTubeForm():this.renderVideoLinkForm()}},{key:"renderUpgradeAlert",value:function(){var e=this.props.store;return s.a.createElement("div",{className:"form-group"},e.isAddingYouTubeLink&&s.a.createElement("p",null,"Automatically import and transcribe a YouTube video with Sonix's industry-leading speech-to-text algorithms."),!e.isAddingYouTubeLink&&s.a.createElement("div",null,s.a.createElement("p",{className:"mb-2"},"Automatically import and transcribe a video with Sonix's industry-leading speech-to-text algorithms. Below are some sites that we support:"),s.a.createElement("ul",{className:"row list-unstyled mb-4"},s.a.createElement("li",{className:"col-sm-12 col-md-6 col-lg-4"},s.a.createElement("i",{className:"fas fa-video fa-fw me-2 text--color-meta"}),"Vimeo"),s.a.createElement("li",{className:"col-sm-12 col-md-6 col-lg-4"},s.a.createElement("i",{className:"fas fa-video fa-fw me-2 text--color-meta"}),"Dailymotion"),s.a.createElement("li",{className:"col-sm-12 col-md-6 col-lg-4"},s.a.createElement("i",{className:"fas fa-video fa-fw me-2 text--color-meta"}),"Twitch"),s.a.createElement("li",{className:"col-sm-12 col-md-6 col-lg-4"},s.a.createElement("i",{className:"fas fa-video fa-fw me-2 text--color-meta"}),"9GAG"),s.a.createElement("li",{className:"col-sm-12 col-md-6 col-lg-4"},s.a.createElement("i",{className:"fas fa-video fa-fw me-2 text--color-meta"}),"Wistia"),s.a.createElement("li",{className:"col-sm-12 col-md-6 col-lg-4"},s.a.createElement("i",{className:"fas fa-video fa-fw me-2 text--color-meta"}),"Vidler"))),s.a.createElement(ko,{icon:"fa-circle-arrow-up me-4"},s.a.createElement("h4",null,"Upgrade to ",e.isAddingYouTubeLink?"import a YouTube link":"import an External link"),s.a.createElement("p",{className:"mb-3"},"YouTube and external video links are available with our paid plans. Upgrade now, or email us at ",s.a.createElement(_O,{subject:"Trial account: I would like to try the YouTube & External link uploads"})," to try it out!"),s.a.createElement("a",{className:"btn btn-primary mb-0",href:"/upgrade"},s.a.createElement("i",{className:"far fa-arrow-right me-2"}),"Upgrade now")))}},{key:"render",value:function(){var e=this.props.store,t=e.isAddingYouTubeLink?"Import YouTube Video Link":"Import Video Link",n=e.isAddingYouTubeLink?"fab fa-youtube text--color-red":"fas fa-link";return s.a.createElement(ao,{modalClasses:"smodal--content smodal--content-sm",onEnter:this.save,isOpen:e.isAddingVideoLink,onRequestClose:this.closeModal,modalTitle:t,modalIcon:n},s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10"},e.user.blockYouTube?this.renderUpgradeAlert():this.renderForm())))}}])&&R6(t.prototype,n),r&&R6(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),T6=I6(P6.prototype,"youTubeLink",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),I6(P6.prototype,"save",[j6],Object.getOwnPropertyDescriptor(P6.prototype,"save"),P6.prototype),I6(P6.prototype,"onAfterOpen",[C6],Object.getOwnPropertyDescriptor(P6.prototype,"onAfterOpen"),P6.prototype),I6(P6.prototype,"closeModal",[D6],Object.getOwnPropertyDescriptor(P6.prototype,"closeModal"),P6.prototype),N6=P6))||N6),q6=V6,G6=function(){var e=["WAV","MP3","MPA","MOV","AVI","MP4"].map((function(e,t){return s.a.createElement("span",{key:t},s.a.createElement("svg",{width:"35px",height:"35px",viewBox:"0 0 520 524",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},s.a.createElement("title",null,"File Format"),s.a.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},s.a.createElement("g",{id:"File"},s.a.createElement("g",{id:"Shading",transform:"translate(23.000000, 20.000000)",fillRule:"nonzero",fill:"#EBECED"},s.a.createElement("polygon",{id:"Shape",points:"0.788 163.122 0.788 158.332 156.584 0.876 156.584 163.122"}),s.a.createElement("rect",{id:"Rectangle-path",x:"177.157",y:"205.435",width:"296.061",height:"163.65"})),s.a.createElement("g",{id:"Shape",transform:"translate(8.000000, 6.000000)",fillRule:"nonzero",fill:"#135589"},s.a.createElement("path",{d:"M488.218,204.559 L449.436,204.559 L449.436,14.876 C449.436,6.661 442.775,0 434.56,0 L171.584,0 C171.4,0 171.218,0.021 171.035,0.028 C170.871,0.034 170.709,0.041 170.547,0.052 C169.9,0.098 169.257,0.171 168.628,0.299 C168.625,0.299 168.622,0.3 168.619,0.3 C167.99,0.428 167.375,0.609 166.77,0.818 C166.62,0.87 166.471,0.924 166.322,0.98 C165.73,1.205 165.147,1.455 164.587,1.752 C164.574,1.759 164.559,1.764 164.545,1.771 C163.974,2.077 163.431,2.434 162.903,2.815 C162.771,2.91 162.64,3.008 162.51,3.11 C161.986,3.513 161.479,3.939 161.01,4.413 L5.213,161.87 C4.863,162.223 4.535,162.591 4.225,162.974 C4.023,163.224 3.844,163.486 3.66,163.745 C3.563,163.88 3.458,164.01 3.365,164.148 C3.154,164.468 2.966,164.798 2.782,165.13 C2.733,165.218 2.676,165.303 2.629,165.392 C2.449,165.733 2.291,166.084 2.14,166.435 C2.101,166.526 2.054,166.612 2.017,166.704 C1.88,167.04 1.766,167.382 1.654,167.724 C1.615,167.842 1.569,167.955 1.534,168.074 C1.44,168.389 1.369,168.708 1.296,169.028 C1.26,169.183 1.217,169.333 1.186,169.488 C1.129,169.781 1.094,170.076 1.055,170.37 C1.03,170.556 0.995,170.739 0.978,170.926 C0.951,171.213 0.947,171.5 0.935,171.787 C0.929,171.97 0.908,172.15 0.908,172.333 L0.908,177.125 C0.908,185.339 7.569,192.001 15.784,192.001 L171.58,192.001 C179.794,192.001 186.456,185.34 186.456,177.125 L186.456,29.752 L419.687,29.752 L419.687,204.559 L192.157,204.559 C183.942,204.559 177.281,211.22 177.281,219.435 L177.281,383.079 C177.281,391.293 183.942,397.955 192.157,397.955 L488.218,397.955 C496.433,397.955 503.094,391.294 503.094,383.079 L503.094,219.435 C503.094,211.219 496.432,204.559 488.218,204.559 Z M156.708,162.246 L46.693,162.246 L156.708,51.06 L156.708,162.246 Z M473.342,368.203 L207.033,368.203 L207.033,234.311 L473.342,234.311 L473.342,368.203 Z",id:"Top"}),s.a.createElement("path",{d:"M434.56,512 L15.788,512 C7.574,512 0.912,504.276503 0.912,494.751128 L0.912,216.226372 C0.912,206.702156 7.573,198.9775 15.788,198.9775 C24.003,198.9775 30.664,206.700997 30.664,216.226372 L30.664,477.502256 L419.685,477.502256 L419.685,439.432062 C419.685,429.907846 426.346,422.18319 434.561,422.18319 C442.776,422.18319 449.437,429.906687 449.437,439.432062 L449.437,494.751128 C449.436,504.276503 442.775,512 434.56,512 Z",id:"Bottom"})),s.a.createElement("text",{id:"WAV",fontFamily:"Roboto Mono, monospace, serif",fontSize:"100",fontWeight:"700",fill:"#2A93D5"},s.a.createElement("tspan",{x:"260.554688",y:"346"},e))))))}));return s.a.createElement("div",{className:"animate--files animate--bounce mt-3"},e)},K6=n(478);function $6(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function J6(e,t){return J6=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},J6(e,t)}function X6(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Q6(e);if(t){var o=Q6(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Q6(e){return Q6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Q6(e)}function Z6(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var e7,t7=(H6=d.action.bound,Object(se.c)((W6=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&J6(e,t)}(a,e);var t,n,r,o=X6(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,n=[{key:"uploadStep",get:function(){return this.props.store.hasFiles?2:1}},{key:"onDrop",value:function(e){var t=this.props.store;t.uploader.then((function(n){e.forEach((function(e){e.index=t.files.length;var r=t.addFile(e);r&&n.add({file:e,name:"cache/"+r.awsId,notSignedHeadersAtInitiate:{"Content-Disposition":'attachment; filename="'+encodeURIComponent(r.filename)+'"'},started:function(e){return r.uploadKey=e},progress:function(e,t){return r.setProgress(e,t)}}).then((function(e){return r.setFinished(e)}),(function(e){return console.log("File did not upload sucessfully:",e)}))}))}))}},{key:"render",value:function(){var e=this.props.store,t=ue()({dropzone:!0,"dropzone--compact":e.hasFiles,hidden:e.hasFiles&&!e.allowMultiselect}),n={backgroundColor:"#7DBBF2"},r={borderColor:"#a4375d",backgroundColor:"#A31621"};return e.hasFiles?s.a.createElement("div",{className:"upload--area"},s.a.createElement(K6.a,{className:t,accept:".m4a, .mp3, .wav, .webm, audio/*, video/mp4,video/x-m4v, video/*, application/mxf, ",onDrop:this.onDrop,activeStyle:n,rejectStyle:r,multiple:e.allowMultiselect},s.a.createElement("div",{className:"dropzone--wrapper"},s.a.createElement("div",{className:"dropzone--content text-center text-lg-start py-3"},s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col-sm-12 col-md-4"},s.a.createElement("h3",{className:"text--color-meta-dark text--size-1100rem mb-4 mb-md-0"},"Drag and drop additional",s.a.createElement("br",null),"audio/video file(s) here")),s.a.createElement("div",{className:"col-sm-12 col-md-8 d-flex align-items-md-center justify-content-around justify-content-md-end"},s.a.createElement("a",{href:"#",className:"btn btn-partner link--select-file d-inline-block mb-0 py-1"},s.a.createElement("i",{className:"far fa-file-upload fa-fw align-self-center me-2"}),"Upload"),s.a.createElement(r6,{btnSize:"compact",store:e}),s.a.createElement(d6,{btnSize:"compact",store:e}),s.a.createElement(_6,{btnSize:"compact",store:e}),s.a.createElement(A6,{btnSize:"compact",store:e})))))),s.a.createElement(q6,{store:e})):s.a.createElement("div",{className:"upload--area"},s.a.createElement(K6.a,{className:t,accept:".m4a, .mp3, .wav, .webm, audio/*, video/mp4,video/x-m4v, video/*, application/mxf, ",onDrop:this.onDrop,activeStyle:n,rejectStyle:r,multiple:e.allowMultiselect},s.a.createElement("div",{className:"dropzone--wrapper"},s.a.createElement("div",{className:"dropzone--content text-center text-lg-start"},s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col-sm-12 col-lg-6"},s.a.createElement("div",{className:"px-lg-4"},s.a.createElement(G6,null),s.a.createElement("h3",{className:"mt-3 text--color-meta-dark"},"Drag and drop your",s.a.createElement("br",null),"audio/video file(s) here"),s.a.createElement("p",{className:"text--size-800rem text--color-meta-dark my-0"},"We accept most file formats",s.a.createElement("span",{className:"d-block d-md-inline-block mx-1","data-balloon":"Popular file formats:\nAudio: wav, mp3, m4a, aiff, aac, ogg, wma\nVideo: avi, wmv, mov, mp4, m4v, mpeg, ogg","data-balloon-text-align":"left","data-balloon-length":"large","data-balloon-break":!0,"data-balloon-pos":"up"},s.a.createElement("strong",{className:"mx-1 d-inline-block d-md-none"},"more info"),s.a.createElement("i",{className:"far fa-info-circle"})),s.a.createElement("br",null),"Our max file size is 4GB",s.a.createElement("span",{className:"d-block d-md-inline-block mx-1","data-balloon":"Larger files (over 100MB) can take a considerable time to upload depending on your internet connection. Please use Dropbox or Google Drive to upload larger files.","data-balloon-text-align":"left","data-balloon-length":"large","data-balloon-pos":"up"},s.a.createElement("strong",{className:"mx-1 d-inline-block d-md-none"},"more info"),s.a.createElement("i",{className:"far fa-info-circle"}))),s.a.createElement("p",{className:"text--size-800rem mt-3"},s.a.createElement("a",{href:"#",className:"link--select-file d-inline-block mb-2 py-1 link--underline"},"Select from computer")))),s.a.createElement("div",{className:"col-sm-12 col-lg-6 col-xl-4"},s.a.createElement("div",{className:"px-lg-4 mt-4"},s.a.createElement("h4",{className:"text--color-meta-dark text--size-900rem text--transform-uppercase mb-3"},"Or select from:"),e.standardUpload&&s.a.createElement(o6,{store:e}),s.a.createElement(r6,{store:e}),s.a.createElement(d6,{store:e}),s.a.createElement(_6,{store:e}),s.a.createElement(A6,{store:e}))))))),s.a.createElement(q6,{store:e}))}}],n&&$6(t.prototype,n),r&&$6(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),Z6(W6.prototype,"uploadStep",[d.computed],Object.getOwnPropertyDescriptor(W6.prototype,"uploadStep"),W6.prototype),Z6(W6.prototype,"onDrop",[H6],Object.getOwnPropertyDescriptor(W6.prototype,"onDrop"),W6.prototype),U6=W6))||U6),n7=t7;function r7(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function o7(e,t){return o7=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o7(e,t)}function a7(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=i7(e);if(t){var o=i7(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function i7(e){return i7=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},i7(e)}var l7,s7,c7,u7,f7,p7,d7,m7=Object(se.c)(e7=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o7(e,t)}(a,e);var t,n,r,o=a7(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).updateMultitrackName=function(t){e.props.store.setMultitrackName(t.target.value)},e}return t=a,(n=[{key:"render",value:function(){var e=this.props.store,t=e.multitrackName;return e.multitrack?s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col-sm-12 mb-3"},s.a.createElement("div",{className:"form-group position--relative mb-0"},s.a.createElement("label",{className:"input--label text--color-meta-dark",htmlFor:"multitrack-name"},"Multi-track transcript name",s.a.createElement("span",{className:"d-inline-block text--color-meta","data-balloon-length":"large","data-balloon-pos":"right","data-balloon":"We will combine all tracks into one transcript. What do you want to call your combined transcript?"},s.a.createElement("i",{className:"far fa-info-circle fa-fw mx-2"}))),s.a.createElement("input",{id:"multitrack-name",className:"form-control border-radius--flat-bottom mb-0",onChange:this.updateMultitrackName,placeholder:"Multi-track transcript",value:t,type:"text"}))),s.a.createElement("div",{className:"col-sm-12 mb-0"},s.a.createElement("div",{className:"alert alert-warning media mb-0"},s.a.createElement("i",{className:"far fa-info-circle fa-2x me-3 align-self-center"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("p",{className:"text--size-900rem"},s.a.createElement("strong",null,"For best results with multi-track uploading: "),s.a.createElement("br",null),"Please make sure that all tracks are the ",s.a.createElement("abbr",{title:"Tracks of different durations can cause alignment issues in the final transcript."},"same length"),"  and each track's audio is ",s.a.createElement("abbr",{title:"If the audio from one track can be heard in another, our algorithm identifies that as an echo which can cause an inaccurate transcript."},"fully isolated"),"."))))):null}}])&&r7(t.prototype,n),r&&r7(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||e7,h7=m7;function y7(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function b7(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function v7(e,t){return v7=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v7(e,t)}function g7(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=E7(e);if(t){var o=E7(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return w7(e)}(this,n)}}function w7(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E7(e){return E7=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},E7(e)}function _7(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var k7,O7,x7=(l7=d.action.bound,s7=d.action.bound,c7=d.action.bound,Object(se.c)((f7=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v7(e,t)}(a,e);var t,n,r,o=g7(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return y7(e=o.call.apply(o,[this].concat(n)),"saving",p7,w7(e)),y7(e,"qualityModalShown",d7,w7(e)),e}return t=a,(n=[{key:"componentDidMount",value:function(){var e=this,t=this.props.store;Object(d.reaction)((function(){return t.allFilesUploaded}),(function(n){n&&t.autoSubmitAfterUpload&&e.initiateSave()}))}},{key:"updateLanguage",value:function(e){this.props.store.language=e.value}},{key:"initiateSave",value:function(){var e=this.props.store;e.user.isTrial&&Object(we.k)("sonix_onboarding_trial_upload_submit"),e.askQualityQuestionnaire?this.qualityModalShown=!0:this.saveFile()}},{key:"saveFile",value:function(){var e=this;this.qualityModalShown=!1,this.saving=!0,this.props.store.saveFiles((function(e){window.location.pathname="/f/".concat(e.folder)}),(function(){return e.saving=!1}))}},{key:"renderSaveButton",value:function(){var e=this.props.store,t=this.props.store,n=t.allFilesUploaded,r=t.errorMessages,o=t.files,a=t.multitrack,i=t.serverError,l=t.transcriptText,c=t.useExistingTranscript,u=t.language;if(i)return s.a.createElement(ni,null,s.a.createElement("p",{className:"mb-0"},s.a.createElement("strong",null,"Whoops—something went wrong!"),s.a.createElement("br",null),"Our engineers have been notified. You will not be charged for these files. ",s.a.createElement("a",{className:"link--underline",href:"#",onClick:function(){return window.location.reload()}},"Please reload your browser")," and try again."));if(this.saving)return s.a.createElement(_o,{text:c?"Ready. Set. Go.":"Ready. Set. Transcribing."});if(a&&o.length<2)return s.a.createElement("div",{className:"alert-warning alert media",role:"alert"},s.a.createElement("i",{className:"far fa-exclamation-triangle me-3 fa-2x align-self-center"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("p",{className:"mb-0 text--size-900rem"},s.a.createElement("strong",null,"Cannot continue"),s.a.createElement("br",null),"Multitrack Upload requires at least two tracks. Please upload at least another track.")));if(c&&l.length<1)return s.a.createElement("div",null,s.a.createElement("a",{className:"btn btn-alert btn-lg d-block disabled mb-0",role:"alert"},s.a.createElement("i",{className:"far fa-fw me-2 fa-exclamation-circle"}),s.a.createElement("span",null,"Existing transcript required")));if(c&&!e.uploadSRT&&e.isSrtDetected)return s.a.createElement("div",null,s.a.createElement("a",{className:"btn btn-alert btn-lg d-block disabled mb-0",role:"alert"},s.a.createElement("i",{className:"far fa-fw me-2 fa-exclamation-circle"}),s.a.createElement("span",null,"SRT File Detected.  Please choose correct file format")));if(u){if(n){var f=Object(we.i)(u),p="";return"auto"===u?p="Auto-detect language & transcribe":(p=c?"Align":"Transcribe",p+=" in "+f.language),s.a.createElement("div",null,!!r.length&&s.a.createElement(ni,null,s.a.createElement("p",{className:"mb-0"},s.a.createElement("strong",null,"We found some errors"),s.a.createElement("br",null),r[0])),s.a.createElement("a",{className:"btn btn-primary btn-lg d-block t--transcribe-btn mb-0",onClick:this.initiateSave,role:"button"},s.a.createElement("span",null,s.a.createElement("span",null,p),s.a.createElement("i",{className:"far fa-fw ms-2 fa-arrow-right"}))))}return s.a.createElement("div",{className:"alert alert-info d-block mb-0",role:"alert"},s.a.createElement("div",{className:"text-center mb-2"},s.a.createElement("h3",null,s.a.createElement("i",{className:"fas fa-fw me-2 fa-spinner fa-spin"}),"Uploading... Please wait...")),s.a.createElement("div",{className:"d-flex justify-content-center"},s.a.createElement("div",{className:"mb-0",style:{width:"490px"}},s.a.createElement(Au,{onChange:e.toggleAutoSubmitAfterUpload,checked:e.autoSubmitAfterUpload},"Check to auto-start transcribing when uploads finish",s.a.createElement("span",{className:"d-inline-block text--color-meta","data-balloon-length":"large","data-balloon-pos":"down","data-balloon":"Save time and stop waiting for your upload(s) to finish. Once uploading finishes, we'll automatically start transcribing!"},s.a.createElement("i",{className:"far fa-info-circle text--color-meta-dark fa-fw ms-2"}))))))}return s.a.createElement("div",null,s.a.createElement("a",{className:"btn btn-alert btn-lg d-block disabled mb-0",role:"alert"},s.a.createElement("i",{className:"far fa-fw me-2 fa-exclamation-circle"}),s.a.createElement("span",null,"Please select a language")))}},{key:"renderAccuracyAlert",value:function(){if((new Date).setHours(0,0,0,0)<=new Date("2021-11-1"))return s.a.createElement(ko,{icon:"fa-calculator"},s.a.createElement("h2",{className:"text--weight-700 text--size-1200rem"},"Sonix transcripts are now even more accurate!"),s.a.createElement("p",{className:"mb-0"},"We recently released new language models which produce more accurate transcripts. However, you may notice a slower turnaround speed. If that's an issue for you, please let us know by emailing ",s.a.createElement("a",{className:"link--underline",href:"mailto:wecare@sonix.ai?subject=Upload%20Turnaround%20Speed"},"wecare@sonix.ai"),"."))}},{key:"renderFilesUploadedHeader",value:function(){var e=this.props.store,t=e.allFilesUploaded,n=e.files;return t?n.length>1?s.a.createElement("div",{className:"d-inline-block text--color-success-dark text--weight-700"},s.a.createElement("span",null,"Step 1: All "),s.a.createElement("span",null,n.length),s.a.createElement("span",null," files uploaded — scroll down")):s.a.createElement("div",{className:"d-inline-block text--color-success-dark text--weight-700"},s.a.createElement("span",null,"Step 1: File uploaded — scroll down")):n.length>1?s.a.createElement("div",{className:"d-inline-block text--color-success-dark text--weight-700"},s.a.createElement("span",null,"Step 1: All "),s.a.createElement("span",null,n.length),s.a.createElement("span",null," files uploading — please wait")):s.a.createElement("div",{className:"d-inline-block text--color-success-dark text--weight-700"},s.a.createElement("span",null,"Step 1: File uploading — please wait"))}},{key:"render",value:function(){var e=this,t=this.props.store,n=t.hasFiles,r=t.files,o=t.removeFile,a=t.multitrack,i=t.standardUpload,l=t.useExistingTranscript,c=t.user;return n?s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col-sm-12",style:{marginBottom:"8rem"}},s.a.createElement("div",{className:"mb-4"},s.a.createElement("h3",{className:"text--size-1600rem mb-2"},this.renderFilesUploadedHeader()),r.map((function(e,t){return s.a.createElement(v5,{file:e,key:t,num:t+1,multitrack:a,onRemove:function(){return o(e)}})})),!t.allowMultiselect&&i&&s.a.createElement(ko,null,s.a.createElement("p",null,"Need to upload multiple files at a time? ",s.a.createElement("a",{href:"/account/subscription/select_plan",target:"_blank"},"Please upgrade your account."))),s.a.createElement("div",{className:"mb-5"},s.a.createElement(n7,{store:t}),s.a.createElement(h7,{store:t}))),s.a.createElement("div",{className:"mb-4"},s.a.createElement("h3",{className:"text--size-1600rem text--color-primary mb-2"},"Step 2: Details"),s.a.createElement("div",{className:"mb-3"},s.a.createElement(S7,{store:t}),s.a.createElement(N5,{store:t,showPrivateFileSelection:c.teamAccount,isOpen:t.isChoosingFolder,onRequestClose:function(){return t.isChoosingFolder=!1}})),s.a.createElement("div",{className:"mb-3"},s.a.createElement(J5,{store:t})),s.a.createElement("div",{className:"mb-3"},s.a.createElement(P5.a,{className:"form-group position--relative mb-3",labelIcon:!1,multitrack:a,showAutoDetect:i,disabled:this.saving,value:t.language,onChange:this.updateLanguage}),i&&s.a.createElement(Au,{onChange:t.toggleSkipDiarization,checked:!t.skipDiarization},"Auto-detect and label speakers",s.a.createElement("span",{className:"d-inline-block text--color-meta","data-balloon-length":"large","data-balloon-pos":"right","data-balloon":"To help you save time, we will automatically identify who spoke when and label them for you. You just need to rename the speakers."},s.a.createElement("i",{className:"far fa-info-circle fa-fw mx-2"}))),i&&c.allowingChoosingTranscriptionModel&&s.a.createElement(Au,{onChange:t.toggleEnhancedTranscription,checked:t.enhancedTranscription},"Use faster transcription model",s.a.createElement("span",{className:"d-inline-block text--color-meta","data-balloon-length":"large","data-balloon-pos":"right","data-balloon":"Warning: The faster transcription model is slightly less accurate than our normal model."},s.a.createElement("i",{className:"far fa-info-circle fa-fw mx-2"}))),l&&s.a.createElement(V5,{store:t})),s.a.createElement("div",{className:"p-0 my-3"},this.renderSaveButton()),this.renderAccuracyAlert(),s.a.createElement(B5,{startTranscribing:this.saveFile,language:t.language,isOpen:this.qualityModalShown,onRequestClose:function(){return e.qualityModalShown=!1},qualityAnswers:t.qualityAnswers})))):null}}])&&b7(t.prototype,n),r&&b7(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),p7=_7(f7.prototype,"saving",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),d7=_7(f7.prototype,"qualityModalShown",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_7(f7.prototype,"updateLanguage",[l7],Object.getOwnPropertyDescriptor(f7.prototype,"updateLanguage"),f7.prototype),_7(f7.prototype,"initiateSave",[s7],Object.getOwnPropertyDescriptor(f7.prototype,"initiateSave"),f7.prototype),_7(f7.prototype,"saveFile",[c7],Object.getOwnPropertyDescriptor(f7.prototype,"saveFile"),f7.prototype),u7=f7))||u7),S7=function(e){var t=e.store,n=t.files,r=t.folder;return t.user.hasFolders?s.a.createElement("div",{className:"form-group position--relative"},s.a.createElement("label",{className:"input--label text--size-1000rem text--color-meta-dark text--transform-none"},n.length>1?"Where should we put these transcripts?":"Where should we put this transcript?"),s.a.createElement("div",{className:"form-control h-auto bgcolor--transparent text--size-1000rem",onClick:function(){return t.isChoosingFolder=!0}},s.a.createElement("div",{className:"text--weight-700 d-inline-block"},s.a.createElement("i",{className:"far fa-fw fa-folder-open me-2"}),r.name),s.a.createElement("span",{className:"d-block d-md-inline-block btn btn-xs mb-0 mt-2 px-3 mt-md-0 float-none float-md-end"},s.a.createElement("i",{className:"far fa-fw fa-folders me-2"}),s.a.createElement("span",null,"Change folder")))):null},j7=x7,C7=function(e){var t=e.user;if(t.isTrial)return s.a.createElement("div",{className:"mt-0 alert alert-trial text-center"},s.a.createElement("a",{href:"/account/subscription/select_plan"},s.a.createElement("h3",{className:"mt-0"},"Free trial: ",Object(we.c)(t.totalCredit)," remaining"),s.a.createElement("p",{className:"text--size-1000rem"},s.a.createElement("span",{className:"text--underline"},"Have more to transcribe? Upgrade now."))));if(t.hasTranscriptionQuota)return s.a.createElement("div",{className:"alert alert-information media flash",id:"",role:"alert"},s.a.createElement("i",{className:"far fa-2x align-self-center icon-info me-3 fa-hourglass"}),s.a.createElement("div",{className:"media-body align-self-center"},s.a.createElement("h3",null,"Your account has an upload quota "),s.a.createElement("p",null,"You have ",t.transcriptionQuotaRemaining," remaining. Please contact your account administrator if you need to upload more. ",s.a.createElement("span",{"data-balloon":"Your account's upload quota is ".concat(t.transcriptionQuotaHours," hours and you have used ").concat(t.transcriptionUsage,"."),"data-balloon-length":"large","data-balloon-pos":"down"},s.a.createElement("i",{className:"far fa-info-circle ms-1"})))));if(t.isSubscribed)return t.hasFreeCredit?s.a.createElement(ko,{icon:"fa-clock"},s.a.createElement("h3",{className:"mt-0"},Object(we.c)(t.totalCredit)," free remaining"),s.a.createElement("p",{className:"text--size-1000rem"},"After this, ",s.a.createElement("span",{"data-balloon":"We only charge for what you use. If you transcribe 15 mins, you will be charged $"+(t.pricePerHour/4).toFixed(2)+"—not for the full hour.","data-balloon-pos":"down","data-balloon-length":"large"},"transcription will be billed monthly at $",t.pricePerHour.toFixed(2),"/hour"),".")):null;if(t.storagePlan){return s.a.createElement(ko,{icon:"fa-archive"},s.a.createElement("a",{href:"/account/upgrade/upgrade_from_storage",className:"info-text"},s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col-sm-12 col-md-8 col-xl-9"},s.a.createElement("h3",{className:"mt-0"},"Upgrade account to upload more files"),s.a.createElement("p",{className:"text--size-1000rem"},s.a.createElement("span",null,Object(we.c)(t.totalCredit)," credit remaining. "))),s.a.createElement("div",{className:"col-sm-12 col-md-4 col-xl-3 align-self-center"},s.a.createElement("span",{className:"btn btn-primary d-block align-self-center py-2 my-1"},s.a.createElement("i",{className:"far fa-arrow-up me-2"}),"Upgrade")))))}var n="/account/standard_checkout/new";return t.hasFreeCredit?s.a.createElement(ko,{icon:"fa-clock"},s.a.createElement("a",{href:n,className:"info-text"},s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col-sm-12 col-md-8 col-xl-9 align-self-center"},s.a.createElement("h3",{className:"mt-0"},Object(we.c)(t.paidCredit)," remaining"),s.a.createElement("p",{className:"text--size-1000rem"},Object(we.c)(t.freeSeconds)," free transcription which will be used first")),s.a.createElement("div",{className:"col-sm-12 col-md-4 col-xl-3"},s.a.createElement("span",{className:"btn btn-primary d-block py-2 my-1"},s.a.createElement("i",{className:"far fa-plus me-2"})," Add more time"))))):s.a.createElement(ko,{icon:"fa-clock"},s.a.createElement("a",{href:n,className:"info-text"},s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col-sm-12 col-md-8 col-xl-9 align-self-center"},s.a.createElement("h3",{className:"mt-0"},Object(we.c)(t.paidCredit)," remaining")),s.a.createElement("div",{className:"col-sm-12 col-md-4 col-xl-3"},s.a.createElement("span",{className:"btn btn-primary d-block py-2 my-1"},s.a.createElement("i",{className:"far fa-plus me-2"})," Add more time")))))},D7=function(e){var t=e.store;return s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement("h4",{className:"my-3"},"What are you uploading?")),s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col"},s.a.createElement("a",{href:"#",onClick:t.setToStandardMode,className:"card col-md-12 col btn p-0 t--singletrack-upload"},s.a.createElement("div",{className:"card-header text-start text--color-primary"},s.a.createElement("div",{className:"media"},s.a.createElement("i",{className:"far fa-window-minimize fa-fw fa-lg align-self-center me-1"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("p",{className:"text--size-p mb-0"},"Single-track")))),s.a.createElement("div",{className:"card-body"},s.a.createElement("h5",{className:"text-start"},"Normal"),s.a.createElement("p",{className:"text-start mb-2 text--transform-none text--size-800rem text--weight-400 text--color"},"Most files are recorded on one track (usually with one microphone) and may contain multiple speakers."),s.a.createElement("p",{className:"text-start mb-2 text--transform-none text--size-800rem text--weight-400 text--color"},"If you have multiple single-track recordings, we will create a separate transcript for each file.")))),t.user.multitrackEnabled&&s.a.createElement("div",{className:"col"},s.a.createElement("a",{href:"#",onClick:t.setToMultitrackMode,className:"card col-md-12 col btn p-0 t--multitrack-upload"},s.a.createElement("div",{className:"card-header text-start text--color-primary"},s.a.createElement("div",{className:"media"},s.a.createElement("i",{className:"far fa-bars fa-fw fa-lg align-self-center me-1"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("p",{className:"text--size-p mb-0"},"Multi-track")))),s.a.createElement("div",{className:"card-body"},s.a.createElement("h5",{className:"text-start"},"Advanced"),s.a.createElement("p",{className:"text-start mb-2 text--transform-none text--size-800rem text--weight-400 text--color"},"If you record separate tracks for each speaker, Sonix can combine those tracks into one transcript. The result is one transcript with speakers automatically labeled."),s.a.createElement("p",{className:"text-start mb-2 text--transform-none text--size-800rem text--weight-400 text--color"},"Please make sure each track is the same length and each track's audio is fully isolated.")))),t.user.existingTranscriptEnabled&&s.a.createElement("div",{className:"col"},s.a.createElement("a",{href:"#",onClick:t.setToExistingTranscriptMode,className:"card col-md-12 col btn p-0 t--existing-transcript-upload"},s.a.createElement("div",{className:"card-header text-start text--color-primary"},s.a.createElement("div",{className:"media"},s.a.createElement("i",{className:"far fa-file-alt fa-fw fa-lg align-self-center me-1"}),s.a.createElement("div",{className:"media-body"},s.a.createElement("p",{className:"text--size-p mb-0"},"SRT or existing transcript")))),s.a.createElement("div",{className:"card-body"},s.a.createElement("h5",{className:"text-start"},"Advanced"),s.a.createElement("p",{className:"text-start mb-2 text--transform-none text--size-800rem text--weight-400 text--color"},"Already have a SRT file? What about an existing transcript? Sonix can align your existing transcript or SRT file with your audio or video file."),s.a.createElement("p",{className:"text-start mb-2 text--transform-none text--size-800rem text--weight-400 text--color"},"You can only upload one audio or video file and one existing transcript at a time."))))))};function N7(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function P7(e,t){return P7=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},P7(e,t)}function T7(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=M7(e);if(t){var o=M7(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function M7(e){return M7=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},M7(e)}var A7,L7,R7,F7,z7,B7,Y7,I7,H7,U7,W7,V7,q7,G7,K7,$7,J7,X7,Q7,Z7,e8,t8,n8,r8,o8,a8,i8,l8,s8,c8,u8,f8,p8,d8,m8,h8,y8,b8,v8,g8,w8=Object(se.c)((O7=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&P7(e,t)}(a,e);var t,n,r,o=T7(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"uploadStep",get:function(){return this.props.store.hasFiles?2:1}},{key:"renderMainForm",value:function(){var e=this.props.store,t=e.uploadModesEnabled;return e.askUploadMode?s.a.createElement(D7,{store:e}):s.a.createElement("div",null,!e.hasFiles&&s.a.createElement("div",{className:"mb-3"},t&&s.a.createElement("a",{href:"#",className:"btn",onClick:e.clearUploadState},s.a.createElement("i",{className:"far fa-arrow-left me-2 fa-fw"}),"Back"),s.a.createElement(h7,{store:e}),s.a.createElement(n7,{store:e})),s.a.createElement(j7,{store:e}),s.a.createElement(hP,null))}},{key:"render",value:function(){var e,t,n=this.props.store,r=n.uploadModesEnabled,o=n.multitrack,a=n.useExistingTranscript,i=n.user;return r&&!n.askUploadMode?o?(e="Upload multi-track file",t="fa-bars"):a?(e="Upload file with transcript",t="fa-file-alt"):(e="Upload single-track file",t="fa-window-minimize"):(e="Upload file",t="fa-file-upload"),i.storagePlan&&0===i.totalCredit?s.a.createElement("div",{className:"upload-container"},s.a.createElement("a",{href:"/account/upgrade/upgrade_from_storage"},s.a.createElement("div",{className:"alert alert-warning text-md-center py-4"},s.a.createElement("i",{className:"fad fa-archive fa-4x my-4"}),s.a.createElement("h3",null,"Upgrade to Premium to upload more files"),s.a.createElement("p",{className:"mb-4"},"You are on the storage plan. Please upgrade your account to upload and transcribe more files."),s.a.createElement("span",{className:"btn btn-primary d-sm-block d-lg-inline-block align-self-center py-2 my-3"},s.a.createElement("i",{className:"far fa-arrow-up me-2"}),"Upgrade to Premium")))):s.a.createElement("div",{className:"upload-container"},s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement(C7,{user:n.user}),s.a.createElement(r5,{stepNames:[e,"Add details","We transcribe"],stepIcons:[t,"fa-info-circle","fa-pencil"],currentStep:this.uploadStep}))),s.a.createElement("div",{className:"row my-2"},s.a.createElement("div",{className:"col-sm-12"},this.renderMainForm())))}}])&&N7(t.prototype,n),r&&N7(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),function(e,t,n,r,o){var a={};Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null)}(O7.prototype,"uploadStep",[d.computed],Object.getOwnPropertyDescriptor(O7.prototype,"uploadStep"),O7.prototype),k7=O7))||k7,E8=w8,_8=n(445),k8=n(1473),O8=n.n(k8),x8=n(1474),S8=n.n(x8),j8=n(1475),C8=n.n(j8);function D8(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function N8(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function P8(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var T8,M8,A8,L8,R8,F8,z8,B8,Y8,I8,H8,U8,W8,V8,q8=(A7=d.action.bound,L7=d.action.bound,R7=d.action.bound,F7=d.action.bound,z7=d.action.bound,B7=d.action.bound,Y7=d.action.bound,I7=d.action.bound,H7=d.action.bound,U7=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),D8(this,"serverError",W7,this),D8(this,"errorMessages",V7,this),D8(this,"files",q7,this),D8(this,"dictionaries",G7,this),D8(this,"selectedDictionaries",K7,this),D8(this,"language",$7,this),D8(this,"privateFile",J7,this),D8(this,"folder",X7,this),D8(this,"skipDiarization",Q7,this),D8(this,"enhancedTranscription",Z7,this),D8(this,"autoSubmitAfterUpload",e8,this),D8(this,"isChoosingFolder",t8,this),D8(this,"isAddingYouTubeLink",n8,this),D8(this,"isAddingVideoLink",r8,this),D8(this,"uploadeMode",o8,this),D8(this,"multitrackName",a8,this),D8(this,"transcriptText",i8,this),D8(this,"uploadSRT",l8,this),D8(this,"qualityAnswers",s8,this),D8(this,"unsaved",c8,this),D8(this,"setMultitrackName",u8,this),D8(this,"setTranscriptText",f8,this),D8(this,"toggleUploadSRT",p8,this),D8(this,"clearUploadState",d8,this),D8(this,"setToMultitrackMode",m8,this),D8(this,"setToExistingTranscriptMode",h8,this),D8(this,"setToStandardMode",y8,this),D8(this,"toggleSkipDiarization",b8,this),D8(this,"toggleEnhancedTranscription",v8,this),D8(this,"toggleAutoSubmitAfterUpload",g8,this),this.folder=n.folder||{id:null,name:"Home"},this.user=t,this.dictionaries=n.dictionaries,this.setupDictionary(),t.useStandardTranscriptionModel&&(this.enhancedTranscription=!1),n.initLanguage&&(this.language=uploadFormData.initLanguage),this.uploadModesEnabled&&this.clearUploadState(),this.uploader=O8.a.create({signerUrl:"/recordings/auth",timeUrl:"/sign_auth/current_time",aws_key:"AKIAIZFDZG7XHN4W4HDQ",bucket:"sonix-ai",computeContentMd5:!0,logging:!1,partSize:10485760,s3Acceleration:!0,cryptoMd5Method:function(e){return btoa(S8.a.ArrayBuffer.hash(e,!0))},cryptoHexEncodedHash256:C8.a})}var t,n,r;return t=e,n=[{key:"hasMultipleDictionaries",get:function(){return this.dictionaries.length>1}},{key:"multitrack",get:function(){return"multitrack"==this.uploadeMode}},{key:"useExistingTranscript",get:function(){return"existing"==this.uploadeMode}},{key:"standardUpload",get:function(){return"standard"==this.uploadeMode}},{key:"isSrtDetected",get:function(){var e=this.transcriptText.split("\n");return"1"==e[0]&&!!e[1].match("--\x3e")}},{key:"addFile",value:function(e){if(this.files.find((function(t){return t.filename===e.name&&t.size==e.size})))return!1;if(this.files.length>=5&&this.multitrack)return!1;var t=new _8.a;return t.setFile(e),this.files.push(t),t}},{key:"setFolder",value:function(e){this.folder=e}},{key:"setupDictionary",value:function(){if(0!==this.dictionaries.length){var e=this.dictionaries.length?[this.dictionaries[0]]:[];if(localStorage){var t=JSON.parse(localStorage.getItem("selectedDictionariesValues"));if(t){var n=this.dictionaries.filter((function(e){return t.includes(e.value)}));this.setSelectedDictionaries(n)}else this.setSelectedDictionaries(e)}else this.setSelectedDictionaries(e)}}},{key:"setSelectedDictionaries",value:function(e){if(this.selectedDictionaries=e&&e.length?e:[],localStorage){var t=this.selectedDictionaries.map((function(e){return e.value}));localStorage.setItem("selectedDictionariesValues",JSON.stringify(t))}}},{key:"removeFile",value:function(e){return e.uploadKey&&this.uploader.then((function(t){return t.cancel(e.uploadKey)})),this.files.remove(e)}},{key:"addYouTubeFile",value:function(e){var t=new _8.a;t.filename=e,t.name=e,t.remoteFile={type:"youtube",filename:e,link:e},t.setFinished(),this.files.push(t)}},{key:"addGDriveFile",value:function(e,t){if(e.mimeType.match(/audio|video/)){if(this.files.find((function(t){return t.filename===e.name&&t.size==e.sizeBytes})))return!1;var n=new _8.a;n.size=e.sizeBytes,n.filename=e.name,n.name=e.name,n.remoteFile={type:"gdrive",filename:e.name,file_id:e.id,access_token:t},n.setFinished(),this.files.push(n)}}},{key:"addDropboxFile",value:function(e){if(this.files.find((function(t){return t.filename===e.name&&t.size==e.bytes})))return!1;var t=new _8.a;t.size=e.bytes,t.filename=e.name,t.name=e.name,t.remoteFile={type:"dropbox",filename:e.name,link:e.link},t.setFinished(),this.files.push(t)}},{key:"saveFiles",value:function(e,t){var n=this,r={folder_id:this.folder.id,multitrack:this.multitrack,skip_diarization:this.skipDiarization,enhanced:this.enhancedTranscription,existing_transcript:this.useExistingTranscript,transcript_text:this.transcriptText,upload_srt:this.uploadSRT,multitrack_name:this.multitrackName,private_file:this.privateFile,language:this.language,files:this.files.map((function(e){return e.params()}))};return this.hasMultipleDictionaries&&this.selectedDictionaries&&(r.dictionaries=this.selectedDictionaries.map((function(e){return e.value}))),this.askQualityQuestionnaire&&(r.quality_questionnaire=this.qualityAnswers),et.a.defaults.headers.common["X-CSRF-TOKEN"]=window.authToken,et.a.post("/recordings.json",r).then((function(t){n.unsaved=!1,e&&e(t.data)})).catch((function(e){e.response.data&&e.response.data.errors?n.errorMessages=e.response.data.errors:n.serverError=!0,t&&t(e.data)}))}},{key:"askQualityQuestionnaire",get:function(){return!1}},{key:"totalUploadedDuration",get:function(){return this.files.reduce((function(e,t){return e+t.duration}),0)||0}},{key:"askUploadMode",get:function(){return!this.uploadeMode}},{key:"uploadModesEnabled",get:function(){return this.user.multitrackEnabled||this.user.existingTranscriptEnabled}},{key:"blockNavigation",get:function(){return this.unsaved&&this.hasFiles&&!this.serverError}},{key:"allowMultiselect",get:function(){return!this.useExistingTranscript&&(this.user.isCustomer||this.multitrack||this.user.enterpriseTrial)}},{key:"hasFiles",get:function(){return!!this.files.length}},{key:"allFilesUploaded",get:function(){return!this.files.find((function(e){return!e.uploaded}))}}],n&&N8(t.prototype,n),r&&N8(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),W7=P8(U7.prototype,"serverError",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V7=P8(U7.prototype,"errorMessages",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),q7=P8(U7.prototype,"files",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),G7=P8(U7.prototype,"dictionaries",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),K7=P8(U7.prototype,"selectedDictionaries",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),$7=P8(U7.prototype,"language",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),J7=P8(U7.prototype,"privateFile",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),X7=P8(U7.prototype,"folder",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{id:null,name:"Home"}}}),Q7=P8(U7.prototype,"skipDiarization",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Z7=P8(U7.prototype,"enhancedTranscription",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),e8=P8(U7.prototype,"autoSubmitAfterUpload",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),t8=P8(U7.prototype,"isChoosingFolder",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),n8=P8(U7.prototype,"isAddingYouTubeLink",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),r8=P8(U7.prototype,"isAddingVideoLink",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),o8=P8(U7.prototype,"uploadeMode",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"standard"}}),a8=P8(U7.prototype,"multitrackName",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),i8=P8(U7.prototype,"transcriptText",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),l8=P8(U7.prototype,"uploadSRT",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),s8=P8(U7.prototype,"qualityAnswers",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{correct_language:!1,no_background_noise:!1,close_to_mic:!1,no_cross_talk:!1,clear_accents:!1}}}),c8=P8(U7.prototype,"unsaved",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),P8(U7.prototype,"hasMultipleDictionaries",[d.computed],Object.getOwnPropertyDescriptor(U7.prototype,"hasMultipleDictionaries"),U7.prototype),P8(U7.prototype,"multitrack",[d.computed],Object.getOwnPropertyDescriptor(U7.prototype,"multitrack"),U7.prototype),P8(U7.prototype,"useExistingTranscript",[d.computed],Object.getOwnPropertyDescriptor(U7.prototype,"useExistingTranscript"),U7.prototype),P8(U7.prototype,"standardUpload",[d.computed],Object.getOwnPropertyDescriptor(U7.prototype,"standardUpload"),U7.prototype),P8(U7.prototype,"isSrtDetected",[d.computed],Object.getOwnPropertyDescriptor(U7.prototype,"isSrtDetected"),U7.prototype),u8=P8(U7.prototype,"setMultitrackName",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){return e.multitrackName=t}}}),f8=P8(U7.prototype,"setTranscriptText",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){return e.transcriptText=t}}}),p8=P8(U7.prototype,"toggleUploadSRT",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){return e.uploadSRT="srt"===t.target.value}}}),d8=P8(U7.prototype,"clearUploadState",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){return e.uploadeMode=null}}}),m8=P8(U7.prototype,"setToMultitrackMode",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){return e.uploadeMode="multitrack"}}}),h8=P8(U7.prototype,"setToExistingTranscriptMode",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){return e.uploadeMode="existing"}}}),y8=P8(U7.prototype,"setToStandardMode",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){return e.uploadeMode="standard"}}}),b8=P8(U7.prototype,"toggleSkipDiarization",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){return e.skipDiarization=!e.skipDiarization}}}),v8=P8(U7.prototype,"toggleEnhancedTranscription",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){return e.enhancedTranscription=!e.enhancedTranscription}}}),g8=P8(U7.prototype,"toggleAutoSubmitAfterUpload",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){return e.autoSubmitAfterUpload=!e.autoSubmitAfterUpload}}}),P8(U7.prototype,"addFile",[A7],Object.getOwnPropertyDescriptor(U7.prototype,"addFile"),U7.prototype),P8(U7.prototype,"setFolder",[L7],Object.getOwnPropertyDescriptor(U7.prototype,"setFolder"),U7.prototype),P8(U7.prototype,"setupDictionary",[R7],Object.getOwnPropertyDescriptor(U7.prototype,"setupDictionary"),U7.prototype),P8(U7.prototype,"setSelectedDictionaries",[F7],Object.getOwnPropertyDescriptor(U7.prototype,"setSelectedDictionaries"),U7.prototype),P8(U7.prototype,"removeFile",[z7],Object.getOwnPropertyDescriptor(U7.prototype,"removeFile"),U7.prototype),P8(U7.prototype,"addYouTubeFile",[B7],Object.getOwnPropertyDescriptor(U7.prototype,"addYouTubeFile"),U7.prototype),P8(U7.prototype,"addGDriveFile",[Y7],Object.getOwnPropertyDescriptor(U7.prototype,"addGDriveFile"),U7.prototype),P8(U7.prototype,"addDropboxFile",[I7],Object.getOwnPropertyDescriptor(U7.prototype,"addDropboxFile"),U7.prototype),P8(U7.prototype,"saveFiles",[H7],Object.getOwnPropertyDescriptor(U7.prototype,"saveFiles"),U7.prototype),P8(U7.prototype,"askQualityQuestionnaire",[d.computed],Object.getOwnPropertyDescriptor(U7.prototype,"askQualityQuestionnaire"),U7.prototype),P8(U7.prototype,"totalUploadedDuration",[d.computed],Object.getOwnPropertyDescriptor(U7.prototype,"totalUploadedDuration"),U7.prototype),P8(U7.prototype,"askUploadMode",[d.computed],Object.getOwnPropertyDescriptor(U7.prototype,"askUploadMode"),U7.prototype),P8(U7.prototype,"uploadModesEnabled",[d.computed],Object.getOwnPropertyDescriptor(U7.prototype,"uploadModesEnabled"),U7.prototype),P8(U7.prototype,"blockNavigation",[d.computed],Object.getOwnPropertyDescriptor(U7.prototype,"blockNavigation"),U7.prototype),P8(U7.prototype,"allowMultiselect",[d.computed],Object.getOwnPropertyDescriptor(U7.prototype,"allowMultiselect"),U7.prototype),P8(U7.prototype,"hasFiles",[d.computed],Object.getOwnPropertyDescriptor(U7.prototype,"hasFiles"),U7.prototype),P8(U7.prototype,"allFilesUploaded",[d.computed],Object.getOwnPropertyDescriptor(U7.prototype,"allFilesUploaded"),U7.prototype),U7),G8=q8,K8=function(e){var t=new Pn(window.userData),n=new G8(t,e);p4((function(){return n.blockNavigation})),u.a.render(s.a.createElement(E8,{store:n}),document.getElementById("upload"))};function $8(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function J8(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X8(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Q8(e,t,n){return t&&X8(e.prototype,t),n&&X8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Z8(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&e9(e,t)}function e9(e,t){return e9=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e9(e,t)}function t9(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=r9(e);if(t){var o=r9(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return n9(e)}(this,n)}}function n9(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r9(e){return r9=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r9(e)}function o9(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var a9,i9,l9,s9,c9=(T8=d.action.bound,M8=d.action.bound,Object(se.c)((L8=function(e){Z8(n,e);var t=t9(n);function n(){var e;J8(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return $8(e=t.call.apply(t,[this].concat(o)),"editing",R8,n9(e)),$8(e,"deleting",F8,n9(e)),$8(e,"pairActive",z8,n9(e)),e}return Q8(n,[{key:"toggleActive",value:function(){this.pairActive=!this.pairActive}},{key:"delete",value:function(){var e=this.props,t=e.store,n=e.replacement;t.delete(n)}},{key:"renderButtons",value:function(){var e=this;return this.deleting||this.editing?null:s.a.createElement("span",{className:"d-block has--label py-2 px-2","data-label":"Actions"},s.a.createElement("span",{className:"link d-inline-block me-3 mb-0 clickable","data-balloon":"Edit this pair","data-balloon-pos":"up",onClick:function(){return e.editing=!0}},s.a.createElement("i",{className:"far fa-pencil fa-fw me-2"}),"Edit"),s.a.createElement("span",{className:"link text--color-red d-inline-block mb-0 clickable","data-balloon":"Delete this pair","data-balloon-pos":"up",onClick:function(){return e.deleting=!0}},s.a.createElement("i",{className:"fas fa-trash fa-fw mx-2"})))}},{key:"renderDeleteWarning",value:function(){var e=this;return this.deleting?s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col-sm-12 col-lg-1"}," "),s.a.createElement("div",{className:"col-sm-12 col-lg-11"},s.a.createElement(ni,null,s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col-sm-12 col-md-6 col-xl-7"},s.a.createElement("p",{className:"mb-3 mb-md-0"},s.a.createElement("strong",null,"Are you sure you want to delete this pair?"),s.a.createElement("br",null),"We will no longer automatically find & replace this term.")),s.a.createElement("div",{className:"col-sm-12 col-md-6 col-xl-5 text-md-end"},s.a.createElement("button",{className:"btn btn-red d-inline-block mb-0",onClick:this.delete},s.a.createElement("i",{className:"far fa-fw fa-trash me-2"}),"Delete"),s.a.createElement("button",{className:"btn d-inline-block mb-0",onClick:function(){return e.deleting=!1}},s.a.createElement("i",{className:"far fa-fw fa-times me-2"}),"Cancel")))))):s.a.createElement("div",null)}},{key:"render",value:function(){var e=this,t=this.props.replacement;return this.editing?s.a.createElement("li",{className:"list--table-item text--size-900rem"},s.a.createElement(u9,{replacement:t,onClose:function(){return e.editing=!1}})):s.a.createElement("li",{className:"list--table-item text--size-900rem"},s.a.createElement("div",{className:"container-fluid"},s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col-sm-12 col-lg-1"},t.enabled?s.a.createElement("div",{"data-balloon":"Active pair","data-balloon-pos":"up",className:"d-block py-2 px-2"},s.a.createElement("i",{className:"fas fa-fw fa-lg fa-check-square text--color-primary"})):s.a.createElement("div",{"data-balloon":"Inactive pair","data-balloon-pos":"up",className:"d-block py-2 px-2"},s.a.createElement("i",{className:"far fa-fw fa-lg fa-times text--color-meta"}))),s.a.createElement("div",{className:"col-sm-12 col-lg-4"},s.a.createElement("span",{className:"d-block has--label py-2 px-2","data-label":"Find"},s.a.createElement("i",{className:"far fa-fw fa-search-minus me-1 text--color-meta"}),t.find||"(blank status)")),s.a.createElement("div",{className:"col-sm-12 col-lg-4"},s.a.createElement("span",{className:"d-block has--label py-2 px-2","data-label":"Replace"},s.a.createElement("i",{className:"far fa-fw fa-search-plus me-1 text--color-meta"}),t.replace||"(blank description)")),s.a.createElement("div",{className:"col-sm-12 col-lg-3 text-md-end"},this.renderButtons())),this.renderDeleteWarning()))}}]),n}(s.a.Component),R8=o9(L8.prototype,"editing",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),F8=o9(L8.prototype,"deleting",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),z8=o9(L8.prototype,"pairActive",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),o9(L8.prototype,"toggleActive",[T8],Object.getOwnPropertyDescriptor(L8.prototype,"toggleActive"),L8.prototype),o9(L8.prototype,"delete",[M8],Object.getOwnPropertyDescriptor(L8.prototype,"delete"),L8.prototype),A8=L8))||A8),u9=(B8=d.action.bound,Object(se.c)((I8=function(e){Z8(n,e);var t=t9(n);function n(e){var r;return J8(this,n),$8(r=t.call(this,e),"find",H8,n9(r)),$8(r,"replace",U8,n9(r)),$8(r,"enabled",W8,n9(r)),$8(r,"saving",V8,n9(r)),r.find=e.replacement.find,r.replace=e.replacement.replace,r.enabled=e.replacement.enabled,r}return Q8(n,[{key:"save",value:function(){var e=this,t=this.props,n=t.onClose,r=t.replacement;this.saving=!0,r.save(this.find,this.replace,this.enabled).then((function(){e.saving=!1,n()}))}},{key:"renderButtons",value:function(){var e=this.props.onClose;return this.saving?s.a.createElement("span",{className:"d-block has--label py-2 px-2","data-label":"Actions"},s.a.createElement("button",{className:"btn btn-primary d-inline-block mb-0",disabled:!0},s.a.createElement("i",{className:"far fa-fw fa-check me-2"}),"Saving...")):s.a.createElement("span",{className:"d-block has--label py-2 px-2","data-label":"Actions"},s.a.createElement("button",{className:"btn btn-primary d-inline-block mb-0",onClick:this.save},s.a.createElement("i",{className:"far fa-fw fa-check me-2"}),"Save"),s.a.createElement("button",{className:"btn d-inline-block mb-0",onClick:e},s.a.createElement("i",{className:"far fa-fw fa-times me-2"}),"Cancel"))}},{key:"render",value:function(){var e=this;return s.a.createElement("div",{className:"container-fluid list--table-item-edit"},s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col-sm-12 col-lg-6"},s.a.createElement("span",{className:"d-block py-2 px-2"},s.a.createElement("label",{className:"input--label text--size-800rem",htmlFor:"status-name"},s.a.createElement("i",{className:"far fa-fw fa-search-minus me-1 text--color-secondary"}),"Find this"),s.a.createElement("input",{className:"form-control",type:"text",id:"status-name",value:this.find,onChange:function(t){return e.find=t.target.value}}))),s.a.createElement("div",{className:"col-sm-12 col-lg-6"},s.a.createElement("span",{className:"d-block py-2 px-2"},s.a.createElement("label",{className:"input--label text--size-800rem",htmlFor:"status-description"},s.a.createElement("i",{className:"far fa-fw fa-search-plus me-1 text--color-secondary"}),"Replace with"),s.a.createElement("input",{className:"form-control",size:"10",type:"text",id:"status-description",value:this.replace,onChange:function(t){return e.replace=t.target.value}})))),s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col-sm-6"},s.a.createElement("span",{className:"d-inline-block has--label pt-2 px-2","data-label":"Status"},s.a.createElement(xW,{labelLeftFalse:"Off",labelRightTrue:"On",iconFalse:"\\f00d",iconTrue:"\\f00c",onChange:function(){return e.enabled=!e.enabled},checked:this.enabled}))),s.a.createElement("div",{className:"col-sm-6 text-md-end"},this.renderButtons())))}}]),n}(s.a.Component),H8=o9(I8.prototype,"find",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),U8=o9(I8.prototype,"replace",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),W8=o9(I8.prototype,"enabled",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),V8=o9(I8.prototype,"saving",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),o9(I8.prototype,"save",[B8],Object.getOwnPropertyDescriptor(I8.prototype,"save"),I8.prototype),Y8=I8))||Y8),f9=c9;function p9(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function d9(e,t){return d9=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d9(e,t)}function m9(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y9(e);if(t){var o=y9(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h9(e)}(this,n)}}function h9(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y9(e){return y9=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y9(e)}function b9(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var v9,g9,w9,E9=(a9=d.action.bound,Object(se.c)((l9=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d9(e,t)}(a,e);var t,n,r,o=m9(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(e=o.call.apply(o,[this].concat(n)),"saving",s9,h9(e)),e}return t=a,(n=[{key:"save",value:function(){var e=this,t=this.props.store;this.saving=!0,t.saveNewReplacement().then((function(){return e.saving=!1}))}},{key:"renderButtons",value:function(){var e=this.props.store;return this.saving?s.a.createElement("span",{className:"d-block has--label py-2 px-2","data-label":"Actions"},s.a.createElement("label",{className:"input--label d-block mt-2"}," "),s.a.createElement("button",{className:"btn btn-primary d-inline-block mb-0",disabled:!0},s.a.createElement("i",{className:"far fa-fw fa-plus me-2"}),"Saving...")):s.a.createElement("span",{className:"d-block text-center text-lg-end has--label py-2 px-2","data-label":"Actions"},s.a.createElement("button",{className:"btn btn-primary d-inline-block mb-0",onClick:this.save},s.a.createElement("i",{className:"far fa-fw fa-plus me-2"}),"Add Pair"),s.a.createElement("button",{className:"btn d-inline-block mb-0",onClick:e.toggleNewReplacement},s.a.createElement("i",{className:"far fa-fw fa-times me-2"}),"Cancel"))}},{key:"render",value:function(){var e=this.props.store.newReplacement;return e?s.a.createElement("li",{className:"list--table-item text--size-900rem mb-3"},s.a.createElement("div",{className:"container-fluid list--table-item-edit"},s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"w-100"},s.a.createElement("h2",{className:"px-2 px-lg-4 mb-0"},"New find & replace pair"))),s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col-sm-12 col-lg-6"},s.a.createElement("span",{className:"d-block py-2 px-2"},s.a.createElement("label",{className:"input--label text--size-800rem",htmlFor:"status-name"},s.a.createElement("i",{className:"far fa-fw fa-search-minus me-1 text--color-secondary"}),"Find this"),s.a.createElement("input",{className:"form-control",type:"text",id:"status-name",placeholder:"Find this word or phrase",value:e.find,onChange:function(t){return e.find=t.target.value}}))),s.a.createElement("div",{className:"col-sm-12 col-lg-6"},s.a.createElement("span",{className:"d-block py-2 px-2"},s.a.createElement("label",{className:"input--label text--size-800rem",htmlFor:"status-description"},s.a.createElement("i",{className:"far fa-fw fa-search-plus me-1 text--color-secondary"}),"Replace with"),s.a.createElement("input",{className:"form-control",size:"10",type:"text",id:"status-description",placeholder:"Replace with this word or phase",value:e.replace,onChange:function(t){return e.replace=t.target.value}})))),s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col-sm-6"},s.a.createElement("span",{className:"d-inline-block py-2 px-2"},s.a.createElement(xW,{labelLeftFalse:"Off",labelRightTrue:"On",iconFalse:"\\f00d",iconTrue:"\\f00c",onChange:function(){return e.enabled=!e.enabled},checked:e.enabled}))),s.a.createElement("div",{className:"col-sm-6"},this.renderButtons())))):null}}])&&p9(t.prototype,n),r&&p9(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),s9=b9(l9.prototype,"saving",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),b9(l9.prototype,"save",[a9],Object.getOwnPropertyDescriptor(l9.prototype,"save"),l9.prototype),i9=l9))||i9),_9=E9;function k9(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function O9(e,t){return O9=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O9(e,t)}function x9(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=j9(e);if(t){var o=j9(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return S9(e)}(this,n)}}function S9(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j9(e){return j9=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},j9(e)}var C9,D9,N9,P9=Object(se.c)((g9=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O9(e,t)}(a,e);var t,n,r,o=x9(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(e=o.call.apply(o,[this].concat(n)),"fetchedData",w9,S9(e)),e}return t=a,(n=[{key:"componentDidMount",value:function(){var e=this;this.props.store.fetchLogHistory().then((function(){e.fetchedData=!0}))}},{key:"render",value:function(){var e=this.props.store;return this.fetchedData?s.a.createElement("div",null,s.a.createElement("h3",{className:"text--color-secondary my-3"},s.a.createElement("i",{className:"far fa-history fa-fw me-2"}),"Auto-replace history"),s.a.createElement("ul",{className:"list--table"},s.a.createElement("li",{className:"list--table-header d-none d-lg-block"},s.a.createElement("div",{className:"container-fluid"},s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col-sm-12 col-md-3 col-lg-2"},s.a.createElement("span",{className:"d-block text--weight-700 py-2"},s.a.createElement("i",{className:"far fa-fw fa-calendar me-2"}),"Date/Time")),s.a.createElement("div",{className:"col-sm-12 col-md-3 col-lg-2"},s.a.createElement("span",{className:"d-block text--weight-700 py-2"},s.a.createElement("i",{className:"far fa-fw fa-user me-2"}),"User")),s.a.createElement("div",{className:"col-sm-12 col-md-3 col-lg-4"},s.a.createElement("span",{className:"d-block text--weight-700 py-2"},s.a.createElement("i",{className:"far fa-fw fa-hourglass-start me-2"}),"Before")),s.a.createElement("div",{className:"col-sm-12 col-md-3 col-lg-4"},s.a.createElement("span",{className:"d-block text--weight-700 py-2"},s.a.createElement("i",{className:"far fa-fw fa-hourglass-end me-2"}),"After"))))),e.updateHistory.map((function(e){return s.a.createElement(T9,{event:e,key:e.id})})))):s.a.createElement("div",{className:"py-4 mt-5"},s.a.createElement(Ne,null))}}])&&k9(t.prototype,n),r&&k9(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),w9=function(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}(g9.prototype,"fetchedData",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),v9=g9))||v9,T9=function(e){var t=e.event,n=Ol.a.unix(t.createdAt);return s.a.createElement("li",{className:"list--table-item text--size-900rem"},s.a.createElement("div",{className:"container-fluid"},s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col-sm-12 col-md-4 col-lg-2 d-flex"},s.a.createElement("span",{className:"d-block py-2 align-self-center"},n.format("MM/DD/YYYY [at] h:mm a"))),s.a.createElement("div",{className:"col-sm-12 col-md-4 col-lg-2 d-flex"},s.a.createElement("span",{className:"d-block py-2 align-self-center"},t.user)),s.a.createElement("div",{className:"col-sm-12 col-md-4 col-lg-4 d-flex"},t.oldAttributes?s.a.createElement(M9,{attributes:t.oldAttributes}):s.a.createElement("span",{className:"d-block py-2 align-self-center text--color-secondary"},s.a.createElement("i",{className:"far fa-fw fa-plus-circle fa-lg me-2"})," Created")),s.a.createElement("div",{className:"col-sm-12 col-md-4 col-lg-4 d-flex"},t.newAttributes?s.a.createElement(M9,{attributes:t.newAttributes}):s.a.createElement("span",{className:"d-block py-2 align-self-center text--color-error"},s.a.createElement("i",{className:"far fa-fw fa-trash fa-lg me-2"})," Deleted")))))},M9=function(e){var t=e.attributes;return s.a.createElement("span",{className:"d-block py-2 align-self-center align-self-center"},"Find: ",t.find,s.a.createElement("br",null),"Replace: ",t.replace,s.a.createElement("br",null),"Status: ",t.enabled?"on":"off")},A9=P9;function L9(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function R9(e,t){return R9=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},R9(e,t)}function F9(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=B9(e);if(t){var o=B9(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return z9(e)}(this,n)}}function z9(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B9(e){return B9=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},B9(e)}var Y9,I9,H9,U9,W9,V9,q9,G9,K9,$9,J9,X9,Q9,Z9,eee,tee,nee=Object(se.c)((D9=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&R9(e,t)}(a,e);var t,n,r,o=F9(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(e=o.call.apply(o,[this].concat(n)),"showingUpdateHistory",N9,z9(e)),e}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.props.store;return this.showingUpdateHistory?s.a.createElement("div",null,s.a.createElement("p",{className:"text--size-1200rem mb-4"},"Sonix will automatically find & replace words or phrases after the AI finishes transcribing or translating your transcript."),s.a.createElement("div",{className:"my-3 d-flex justify-content-between"},s.a.createElement("button",{onClick:function(){return e.showingUpdateHistory=!1},className:"btn mb-0 clickable"},s.a.createElement("i",{className:"far fa-arrow-left fa-fw me-2"}),"Back to Find & Replace pairs")),s.a.createElement(A9,{store:t})):s.a.createElement("div",null,s.a.createElement("p",{className:"text--size-1200rem mb-4"},"Sonix will automatically find & replace words or phrases after the AI finishes transcribing or translating your transcript. ",s.a.createElement("span",{onClick:function(){return e.showingUpdateHistory=!0},className:"link link--underline clickable"},"See auto-replace history")),s.a.createElement("div",{className:"status-tag-container "},s.a.createElement("div",{className:"my-3 d-flex justify-content-between"},s.a.createElement("button",{className:"btn btn-primary mb-0",onClick:t.toggleNewReplacement},s.a.createElement("i",{className:"far fa-fw fa-plus me-2"}),"Add find & replace pair"),s.a.createElement("span",{className:"align-self-center"},s.a.createElement(xW,{labelLeftFalse:"Transcriptions",labelRightTrue:"Translations",iconFalse:"\\f036",iconTrue:"\\f1ab",onChange:t.toggleShowingTranslation,checked:t.showingTranslation}))),s.a.createElement("ul",{className:"list--table"},s.a.createElement(_9,{store:t}),t.filteredReplacements.length?s.a.createElement(ree,{store:t}):s.a.createElement(oee,{store:t}))))}}])&&L9(t.prototype,n),r&&L9(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),N9=function(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}(D9.prototype,"showingUpdateHistory",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),C9=D9))||C9,ree=Object(se.c)((function(e){var t=e.store;return s.a.createElement("div",{className:"list--table-content"},s.a.createElement("li",{className:"list--table-header d-none d-lg-block"},s.a.createElement("div",{className:"container-fluid"},s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col-sm-12 col-lg-1"},s.a.createElement("span",{"data-balloon":"Status","data-balloon-pos":"up",className:"d-block text--weight-700 py-2 px-2"},s.a.createElement("i",{className:"far fa-fw fa-check-circle mx-1"}))),s.a.createElement("div",{className:"col-sm-12 col-lg-4"},s.a.createElement("span",{className:"d-block text--weight-700 py-2 px-2"},s.a.createElement("i",{className:"far fa-fw fa-search-minus me-2"}),"Find this")),s.a.createElement("div",{className:"col-sm-12 col-lg-4"},s.a.createElement("span",{className:"d-block text--weight-700 py-2 px-2"},s.a.createElement("i",{className:"far fa-fw fa-search-plus me-2"}),"Replace with")),s.a.createElement("div",{className:"col-sm-12 col-lg-3 text-md-end"},s.a.createElement("span",{className:"d-block text--weight-700 py-2 px-2"}," "))))),t.filteredReplacements.map((function(e){return s.a.createElement(f9,{replacement:e,key:e.id,store:t})})))})),oee=Object(se.c)((function(e){var t=e.store;return s.a.createElement("li",{className:"list--table-item text--size-900rem border-all-sidebar"},s.a.createElement("div",{className:"container-fluid"},s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement("div",{className:"p-4 text-center"},s.a.createElement("i",{className:"far fa-fw fa-search-plus fa-3x text--color-primary mb-3"}),s.a.createElement("h4",{className:"mb-0"},"No find and replace pairs, yet..."),s.a.createElement("p",{className:"mb-4"},"Add your first find and replace pair to make editing even easier."),s.a.createElement("button",{className:"btn btn-primary mb-0",onClick:t.toggleNewReplacement},s.a.createElement("i",{className:"far fa-fw fa-plus me-2"}),"Add find & replace pair"))))))})),aee=nee;function iee(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function lee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function see(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function cee(e,t,n){return t&&see(e.prototype,t),n&&see(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function uee(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var fee,pee=(Y9=d.action.bound,I9=d.action.bound,H9=d.action.bound,U9=d.action.bound,W9=d.action.bound,V9=function(){function e(t){lee(this,e),iee(this,"replacements",q9,this),iee(this,"newReplacement",G9,this),iee(this,"updateHistory",K9,this),iee(this,"showingTranslation",$9,this),this.replacements=t.map((function(e){return new dee(e)}))}return cee(e,[{key:"toggleShowingTranslation",value:function(){this.showingTranslation=!this.showingTranslation}},{key:"filteredReplacements",get:function(){var e=this;return this.replacements.filter((function(t){return t.translation===e.showingTranslation}))}},{key:"fetchLogHistory",value:function(){var e=this;return et.a.get("/auto_replacements/update_history.json").then((function(t){e.updateHistory=t.data}))}},{key:"toggleNewReplacement",value:function(){this.newReplacement?this.newReplacement=null:this.newReplacement=new dee({enabled:!0,find:"",replace:""})}},{key:"saveNewReplacement",value:function(){var e=this,t=this.newReplacement;return et.a.post("/auto_replacements.json",{auto_replacement:{enabled:t.enabled,find:t.find,replace:t.replace,translation:this.showingTranslation}}).then((function(n){e.newReplacement=null,t.id=n.data.id,t.translation=n.data.translation,e.replacements.push(t)}))}},{key:"delete",value:function(e){return this.replacements.remove(e),et.a.delete("/auto_replacements/".concat(e.id,".json"))}}]),e}(),q9=uee(V9.prototype,"replacements",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),G9=uee(V9.prototype,"newReplacement",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),K9=uee(V9.prototype,"updateHistory",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),$9=uee(V9.prototype,"showingTranslation",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),uee(V9.prototype,"toggleShowingTranslation",[Y9],Object.getOwnPropertyDescriptor(V9.prototype,"toggleShowingTranslation"),V9.prototype),uee(V9.prototype,"filteredReplacements",[d.computed],Object.getOwnPropertyDescriptor(V9.prototype,"filteredReplacements"),V9.prototype),uee(V9.prototype,"fetchLogHistory",[I9],Object.getOwnPropertyDescriptor(V9.prototype,"fetchLogHistory"),V9.prototype),uee(V9.prototype,"toggleNewReplacement",[H9],Object.getOwnPropertyDescriptor(V9.prototype,"toggleNewReplacement"),V9.prototype),uee(V9.prototype,"saveNewReplacement",[U9],Object.getOwnPropertyDescriptor(V9.prototype,"saveNewReplacement"),V9.prototype),uee(V9.prototype,"delete",[W9],Object.getOwnPropertyDescriptor(V9.prototype,"delete"),V9.prototype),V9),dee=(X9=uee((J9=function(){function e(t){lee(this,e),iee(this,"id",X9,this),iee(this,"find",Q9,this),iee(this,"replace",Z9,this),iee(this,"enabled",eee,this),iee(this,"translation",tee,this),this.id=t.id,this.find=t.find,this.replace=t.replace,this.enabled=t.enabled,this.translation=t.translation}return cee(e,[{key:"save",value:function(e,t,n){var r=this;return et.a.put("/auto_replacements/".concat(this.id,".json"),{auto_replacement:{find:e,replace:t,enabled:n}}).then((function(){r.find=e,r.replace=t,r.enabled=n}))}}]),e}()).prototype,"id",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Q9=uee(J9.prototype,"find",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Z9=uee(J9.prototype,"replace",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),eee=uee(J9.prototype,"enabled",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),tee=uee(J9.prototype,"translation",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),J9),mee=pee,hee=function(e){var t=new mee(e);u.a.render(s.a.createElement(aee,{store:t}),document.getElementById("auto_replace"))};function yee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function bee(e,t){return bee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bee(e,t)}function vee(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=gee(e);if(t){var o=gee(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function gee(e){return gee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gee(e)}var wee,Eee,_ee,kee,Oee,xee,See,jee,Cee,Dee,Nee,Pee,Tee=Object(se.c)(fee=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bee(e,t)}(a,e);var t,n,r,o=vee(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.onChange,n=e.value;return s.a.createElement(Ia,{closeWhenChanged:n},s.a.createElement(Ia.Toggle,{tag:"button",className:"dropdown--btn"},s.a.createElement("div",{className:"fa-stack fa-1x d-block"},s.a.createElement("i",{className:"fas fa-square fa-stack-2x",style:{color:n}}),s.a.createElement("i",{className:"far fa-eye-dropper fa-stack-1x fa-inverse"}))),s.a.createElement(Ia.Content,{className:"dropdown--content dropdown--palette",title:"Change Status Color"},s.a.createElement(zb,{colors:Cm.colors,onChange:t,selectedColor:n})))}}])&&yee(t.prototype,n),r&&yee(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||fee,Mee=Tee;function Aee(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Lee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ree(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Fee(e,t,n){return t&&Ree(e.prototype,t),n&&Ree(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function zee(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bee(e,t)}function Bee(e,t){return Bee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Bee(e,t)}function Yee(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Hee(e);if(t){var o=Hee(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Iee(e)}(this,n)}}function Iee(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hee(e){return Hee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Hee(e)}function Uee(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var Wee,Vee,qee,Gee,Kee=(wee=d.action.bound,Object(se.c)((_ee=function(e){zee(n,e);var t=Yee(n);function n(){var e;Lee(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Aee(e=t.call.apply(t,[this].concat(o)),"editing",kee,Iee(e)),Aee(e,"deleting",Oee,Iee(e)),e}return Fee(n,[{key:"delete",value:function(){var e=this.props,t=e.store,n=e.tag;t.delete(n)}},{key:"renderButtons",value:function(){var e=this;return this.deleting?s.a.createElement("span",{className:"d-block has--label py-2 px-2","data-label":"Actions"},s.a.createElement("span",{className:"d-block py-2 px-2"},s.a.createElement("button",{className:"btn btn-red d-inline-block mb-0",onClick:this.delete},s.a.createElement("i",{className:"far fa-fw fa-trash me-2"}),"Delete"),s.a.createElement("button",{className:"btn d-inline-block mb-0",onClick:function(){return e.deleting=!1}},s.a.createElement("i",{className:"far fa-fw fa-times me-2"}),"Cancel"))):this.editing?null:s.a.createElement("span",{className:"d-block has--label py-2 px-2","data-label":"Actions"},s.a.createElement("span",{className:"link d-inline-block me-3 mb-0 clickable",onClick:function(){return e.editing=!0}},s.a.createElement("i",{className:"far fa-fw fa-pencil me-2"}),"Edit"),s.a.createElement("span",{className:"link text--color-red d-inline-block mb-0 clickable",onClick:function(){return e.deleting=!0}},s.a.createElement("i",{className:"far fa-fw fa-trash me-2"}),"Delete"))}},{key:"renderDescription",value:function(){var e=this.props.tag;return this.deleting?s.a.createElement("span",{className:"d-block py-2 px-2"},s.a.createElement("strong",{className:"text--color-red"},"Are you sure?"),s.a.createElement("br",null),"Deleting a status will remove it from all files."):s.a.createElement("span",{className:"d-block has--label py-2 px-2","data-label":"Description"},e.description||"(blank description)")}},{key:"render",value:function(){var e=this,t=this.props.tag;return s.a.createElement("li",{className:"list--table-item text--size-900rem"},s.a.createElement("div",{className:"container-fluid"},s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col-sm-12 col-lg-1"},s.a.createElement("span",{className:"d-block has--label py-2 px-2","data-label":"Color"},s.a.createElement("div",{className:"fa-stack fa-1x d-inline-block"},s.a.createElement("i",{className:"fas fa-square fa-stack-2x",style:{color:t.color}}),s.a.createElement("i",{className:"far fa-tag fa-stack-1x fa-inverse"})))),s.a.createElement("div",{className:"col-sm-12 col-lg-3"},s.a.createElement("span",{className:"d-block has--label py-2 px-2","data-label":"Label"},t.label||"(blank status)")),s.a.createElement("div",{className:"col-sm-12 col-lg-4"},this.renderDescription()),s.a.createElement("div",{className:"col-sm-12 col-lg-4 text-md-end"},this.renderButtons()))),this.editing&&s.a.createElement($ee,{tag:t,onClose:function(){return e.editing=!1}}))}}]),n}(s.a.Component),kee=Uee(_ee.prototype,"editing",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Oee=Uee(_ee.prototype,"deleting",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Uee(_ee.prototype,"delete",[wee],Object.getOwnPropertyDescriptor(_ee.prototype,"delete"),_ee.prototype),Eee=_ee))||Eee),$ee=(xee=d.action.bound,Object(se.c)((jee=function(e){zee(n,e);var t=Yee(n);function n(e){var r;return Lee(this,n),Aee(r=t.call(this,e),"label",Cee,Iee(r)),Aee(r,"description",Dee,Iee(r)),Aee(r,"color",Nee,Iee(r)),Aee(r,"saving",Pee,Iee(r)),r.label=e.tag.label,r.description=e.tag.description,r.color=e.tag.color,r}return Fee(n,[{key:"save",value:function(){var e=this,t=this.props,n=t.onClose,r=t.tag;this.saving=!0,r.save(this.label,this.description,this.color).then((function(){e.saving=!1,n()}))}},{key:"renderButtons",value:function(){var e=this.props.onClose;return this.saving?s.a.createElement("span",{className:"d-block has--label py-2 px-2","data-label":"Actions"},s.a.createElement("label",{className:"input--label d-block mt-2"}," "),s.a.createElement("button",{className:"btn btn-primary d-inline-block mb-0",disabled:!0},s.a.createElement("i",{className:"fa fa-fw fa-check me-2"}),"Saving...")):s.a.createElement("span",{className:"d-block has--label py-2 px-2","data-label":"Actions"},s.a.createElement("label",{className:"input--label d-block mt-2"}," "),s.a.createElement("button",{className:"btn btn-primary d-inline-block mb-0",onClick:this.save},s.a.createElement("i",{className:"fa fa-fw fa-check me-2"}),"Save"),s.a.createElement("button",{className:"btn d-inline-block mb-0",onClick:e},s.a.createElement("i",{className:"fa fa-fw fa-times me-2"}),"Cancel"))}},{key:"render",value:function(){var e=this;return s.a.createElement("div",{className:"container-fluid list--table-item-edit"},s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"w-100"},s.a.createElement("h2",{className:"px-2 px-lg-4 mb-0"},"Editing custom label"))),s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col-sm-12 col-lg-1"},s.a.createElement("span",{className:"d-block py-2 px-2"},s.a.createElement("label",{className:"input--label"},"Color"),s.a.createElement(Mee,{value:this.color,onChange:function(t){return e.color=t}}))),s.a.createElement("div",{className:"col-sm-12 col-lg-3"},s.a.createElement("span",{className:"d-block py-2 px-2"},s.a.createElement("label",{className:"input--label",htmlFor:"status-name"},"Label"),s.a.createElement("input",{className:"form-control",type:"text",id:"status-name",value:this.label,onChange:function(t){return e.label=t.target.value}}))),s.a.createElement("div",{className:"col-sm-12 col-lg-4"},s.a.createElement("span",{className:"d-block py-2 px-2"},s.a.createElement("label",{className:"input--label",htmlFor:"status-description"},"Description"),s.a.createElement("input",{className:"form-control",size:"10",type:"text",id:"status-description",value:this.description,onChange:function(t){return e.description=t.target.value}}))),s.a.createElement("div",{className:"col-sm-12 col-lg-4 text-md-end"},this.renderButtons())))}}]),n}(s.a.Component),Cee=Uee(jee.prototype,"label",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Dee=Uee(jee.prototype,"description",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Nee=Uee(jee.prototype,"color",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Pee=Uee(jee.prototype,"saving",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Uee(jee.prototype,"save",[xee],Object.getOwnPropertyDescriptor(jee.prototype,"save"),jee.prototype),See=jee))||See),Jee=Kee;function Xee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Qee(e,t){return Qee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Qee(e,t)}function Zee(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=tte(e);if(t){var o=tte(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ete(e)}(this,n)}}function ete(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tte(e){return tte=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tte(e)}function nte(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var rte,ote=(Wee=d.action.bound,Object(se.c)((qee=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qee(e,t)}(a,e);var t,n,r,o=Zee(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(e=o.call.apply(o,[this].concat(n)),"saving",Gee,ete(e)),e}return t=a,n=[{key:"save",value:function(){var e=this,t=this.props.store;this.saving=!0,t.saveNewTag().then((function(){return e.saving=!1}))}},{key:"renderButtons",value:function(){var e=this.props.store;return this.saving?s.a.createElement("span",{className:"d-block has--label py-2 px-2","data-label":"Actions"},s.a.createElement("label",{className:"input--label d-block mt-2"}," "),s.a.createElement("button",{className:"btn btn-primary d-inline-block mb-0",disabled:!0},s.a.createElement("i",{className:"far fa-fw fa-plus me-2"}),"Saving...")):s.a.createElement("span",{className:"d-block has--label py-2 px-2","data-label":"Actions"},s.a.createElement("label",{className:"input--label d-block mt-2"}," "),s.a.createElement("button",{className:"btn btn-primary d-inline-block mb-0",onClick:this.save},s.a.createElement("i",{className:"far fa-fw fa-plus me-2"}),"Add"),s.a.createElement("button",{className:"btn d-inline-block mb-0",onClick:e.toggleNewTag},s.a.createElement("i",{className:"far fa-fw fa-times me-2"}),"Cancel"))}},{key:"render",value:function(){var e=this.props.store.newTag;return e?s.a.createElement("li",{className:"list--table-item text--size-900rem mb-3"},s.a.createElement("div",{className:"container-fluid list--table-item-edit"},s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"w-100"},s.a.createElement("h2",{className:"px-2 px-lg-4 mb-0"},"Add a new custom label"))),s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col-sm-12 col-lg-1"},s.a.createElement("span",{className:"d-block py-2 px-2"},s.a.createElement("label",{className:"input--label"},"Color"),s.a.createElement(Mee,{value:e.color,onChange:function(t){return e.color=t}}))),s.a.createElement("div",{className:"col-sm-12 col-lg-3"},s.a.createElement("span",{className:"d-block py-2 px-2"},s.a.createElement("label",{className:"input--label",htmlFor:"status-name"},"Label"),s.a.createElement("input",{className:"form-control",type:"text",id:"status-name",placeholder:"New label",value:e.label,onChange:function(t){return e.label=t.target.value}}))),s.a.createElement("div",{className:"col-sm-12 col-lg-4"},s.a.createElement("span",{className:"d-block py-2 px-2"},s.a.createElement("label",{className:"input--label",htmlFor:"status-description"},"Description"),s.a.createElement("input",{className:"form-control",size:"10",type:"text",id:"status-description",placeholder:"Describe your new label",value:e.description,onChange:function(t){return e.description=t.target.value}}))),s.a.createElement("div",{className:"col-sm-12 col-lg-4 text-md-end"},this.renderButtons())))):null}}],n&&Xee(t.prototype,n),r&&Xee(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),Gee=nte(qee.prototype,"saving",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),nte(qee.prototype,"save",[Wee],Object.getOwnPropertyDescriptor(qee.prototype,"save"),qee.prototype),Vee=qee))||Vee),ate=ote,ite=Object(se.c)((function(e){var t=e.store;return s.a.createElement("div",{className:"status-tag-container"},s.a.createElement("p",{className:"mt-3"},s.a.createElement("button",{className:"btn btn-primary mb-2",onClick:t.toggleNewTag},s.a.createElement("i",{className:"far fa-fw fa-plus me-2"}),"Add new label")),s.a.createElement("ul",{className:"list--table"},s.a.createElement(ate,{store:t}),t.tags.length?s.a.createElement(lte,{store:t}):s.a.createElement(ste,{store:t})))})),lte=Object(se.c)((function(e){var t=e.store;return s.a.createElement("div",{className:"list--table-content"},s.a.createElement("li",{className:"list--table-header d-none d-lg-block"},s.a.createElement("div",{className:"container-fluid"},s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col-sm-12 col-lg-1"},s.a.createElement("span",{className:"d-block text--weight-700 py-2 px-2"},"Color")),s.a.createElement("div",{className:"col-sm-12 col-lg-3"},s.a.createElement("span",{className:"d-block text--weight-700 py-2 px-2"},"Custom label")),s.a.createElement("div",{className:"col-sm-12 col-lg-4"},s.a.createElement("span",{className:"d-block text--weight-700 py-2 px-2"},"Description")),s.a.createElement("div",{className:"col-sm-12 col-lg-4 text-md-end"},s.a.createElement("span",{className:"d-block text--weight-700 py-2 px-2"}," "))))),t.sortedTags.map((function(e){return s.a.createElement(Jee,{tag:e,key:e.id,store:t})})))})),ste=function(){return s.a.createElement("li",{className:"list--table-item text--size-900rem border-all-sidebar"},s.a.createElement("div",{className:"container-fluid"},s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement("div",{className:"p-4 text-center"},s.a.createElement("i",{className:"far fa-fw fa-tags fa-3x text--color-primary mb-3"}),s.a.createElement("h4",{className:"mb-0"},"No custom labels, yet..."),s.a.createElement("p",{className:"mb-0"},"Add your first one and keep your files organized."))))))},cte=ite,ute=function(e){var t=new Cm(e);u.a.render(s.a.createElement(cte,{store:t}),document.getElementById("status_tags"))},fte=n(463),pte=n.n(fte),dte=Object(se.c)((function(e){var t=e.store;return s.a.createElement("div",{className:"container-fluid"},s.a.createElement("div",{className:"row shadow--box-sm",style:{borderWidth:"1rem",borderStyle:"solid",borderColor:t.backgroundColor}},s.a.createElement("div",{className:"col-sm-12 py-2 d-flex justify-content-between",style:{backgroundColor:t.backgroundColor}},s.a.createElement("p",{className:"mb-0 text--weight-700",style:{fontSize:"1rem",color:t.primaryColor}},"This is the audio player title"),s.a.createElement("p",{className:"mb-0 text--weight-700",style:{fontSize:"1rem",color:t.primaryColor}},s.a.createElement("i",{className:"far fa-list me-2",style:{color:t.primaryColor}}),s.a.createElement("i",{className:"far fa-share-alt",style:{color:t.secondaryColor}}))),s.a.createElement("div",{className:"col-sm-12 px-0",style:{height:t.playerSizeInRem,overflowY:"scroll",backgroundColor:t.textBackgroundColor,borderWidth:"1px",borderStyle:"solid",borderColor:t.secondaryColorWithAlpha}},s.a.createElement("div",{className:"d-flex px-3",style:{borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:t.secondaryColorWithAlpha}},s.a.createElement("p",{className:"text--size-900 my-2",style:{color:t.textColor}},s.a.createElement("i",{className:"far fa-list me-2"}),"Transcript")),s.a.createElement("div",{className:"p-3"},s.a.createElement("p",{className:"text--size-800rem mb-2",style:{color:t.textColor}},"Your sample Sonix transcript will go here and we will highlight the current word with this",s.a.createElement("span",{style:{color:t.textHighlightColor}}," color"),"."),s.a.createElement("p",{className:"text--size-800rem mb-2",style:{color:t.textColor}},"This is a reduced scale mock-up so you can see what everything looks like. This is for illustrative purposes only. Please keep accessibility in mind as you make the modifications to the left."),s.a.createElement("p",{className:"text--size-800rem mb-2",style:{color:t.textColor}},"This paragraph is here to let you see what it would look like if you had a longer transcript. There is no more important text here, this is just sample text so you as the content creator have a better sense of the overall look and feel that results from making the following customizations on the left."),s.a.createElement("p",{className:"text--size-800rem mb-2",style:{color:t.textColor}},"This final paragraph is to take up a bit more space so you can better see the scrolling experience for your listeners. Especially if they make it this far down in the recording. Unfortunately, there isn't a pot of gold at the end of this rainbow."))),s.a.createElement("div",{className:"col-sm-12 text-end",style:{backgroundColor:t.backgroundColor}},t.customLogoFileUrl?s.a.createElement("img",{src:t.customLogoFileUrl,height:"20px"}):s.a.createElement("img",{src:pte.a})),s.a.createElement("div",{className:"col-sm-12 py-2",style:{height:"4rem",backgroundColor:t.backgroundColor}},s.a.createElement("div",{className:"text-center px-4 pt-2 pb-3"},s.a.createElement("i",{className:"far fa-backward mx-3",style:{color:t.secondaryColor}}),s.a.createElement("i",{className:"fas fa-play mx-3",style:{color:t.primaryColor}}),s.a.createElement("i",{className:"far fa-forward mx-3",style:{color:t.secondaryColor}})),s.a.createElement("div",{className:"d-flex position-relative align-content-start",style:{height:"3px",backgroundColor:t.secondaryColorWithAlpha}},s.a.createElement("div",{className:"d-inline-flex",style:{height:"3px",backgroundColor:t.primaryColor,width:"33%"}})))))})),mte=Object(se.c)((function(e){var t=e.store;return s.a.createElement("div",{className:"container-fluid"},s.a.createElement("div",{className:"row shadow--box-sm",style:{borderWidth:"1rem",borderStyle:"solid",borderColor:t.backgroundColor}},s.a.createElement("div",{className:"col-sm-12 py-2 d-flex justify-content-between",style:{backgroundColor:t.backgroundColor}},s.a.createElement("p",{className:"mb-0 text--weight-700",style:{fontSize:"1rem",color:t.primaryColor}},"This is the video player title"),s.a.createElement("p",{className:"mb-0 text--weight-700",style:{fontSize:"1rem",color:t.primaryColor}},s.a.createElement("i",{className:"far fa-list me-2",style:{color:t.primaryColor}}),s.a.createElement("i",{className:"far fa-share-alt",style:{color:t.secondaryColor}}))),s.a.createElement("div",{className:"col-sm-12 p-0 position-relative",style:{height:t.videoPlayerSizeInRem,backgroundColor:t.videoBackgroundColor}},s.a.createElement("div",{className:"mx-5",style:{height:t.videoPlayerSizeInRem,backgroundColor:"#DEDEDE"}}),s.a.createElement("div",{className:"text-center pt-2 pb-3 position-absolute",style:{bottom:0,left:0,right:0,height:"4rem",backgroundColor:t.videoBackgroundColorWithAlpha}},s.a.createElement("div",{className:"mx-3 px-4 pt-2 pb-2"},s.a.createElement("i",{className:"far fa-backward mx-3",style:{color:"#A2AAB0"}}),s.a.createElement("i",{className:"fas fa-play mx-3",style:{color:t.primaryColor}}),s.a.createElement("i",{className:"far fa-forward mx-3",style:{color:"#A2AAB0"}})),s.a.createElement("div",{className:"mx-4"},s.a.createElement("div",{className:"d-flex position-relative align-content-start",style:{height:"3px",backgroundColor:t.secondaryColorWithAlpha}},s.a.createElement("div",{className:"d-inline-flex",style:{height:"3px",backgroundColor:t.primaryColor,width:"33%"}}))))),s.a.createElement("div",{className:"col-sm-12 px-0",style:{height:t.playerSizeInRem,overflowY:"scroll",backgroundColor:t.textBackgroundColor,borderWidth:"1px",borderStyle:"solid",borderColor:t.secondaryColorWithAlpha}},s.a.createElement("div",{className:"d-flex px-3",style:{borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:t.secondaryColorWithAlpha}},s.a.createElement("p",{className:"text--size-900 my-2",style:{color:t.textColor}},s.a.createElement("i",{className:"far fa-list me-2"}),"Transcript")),s.a.createElement("div",{className:"p-3"},s.a.createElement("p",{className:"text--size-800rem mb-2",style:{color:t.textColor}},"Your sample Sonix transcript will go here and we will highlight the current word with this",s.a.createElement("span",{style:{color:t.textHighlightColor}}," color"),"."),s.a.createElement("p",{className:"text--size-800rem mb-2",style:{color:t.textColor}},"This is a reduced scale mock-up so you can see what everything looks like. This is for illustrative purposes only. Please keep accessibility in mind as you make the modifications to the left."),s.a.createElement("p",{className:"text--size-800rem mb-2",style:{color:t.textColor}},"This paragraph is here to let you see what it would look like if you had a longer transcript. There is no more important text here, this is just sample text so you as the content creator have a better sense of the overall look and feel that results from making the following customizations on the left."),s.a.createElement("p",{className:"text--size-800rem mb-2",style:{color:t.textColor}},"This final paragraph is to take up a bit more space so you can better see the scrolling experience for your listeners. Especially if they make it this far down in the recording. Unfortunately, there isn't a pot of gold at the end of this rainbow."))),s.a.createElement("div",{className:"col-sm-12 text-end",style:{backgroundColor:t.backgroundColor}},t.customLogoFileUrl?s.a.createElement("img",{src:t.customLogoFileUrl,height:"20px"}):s.a.createElement("img",{src:pte.a}))))}));function hte(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function yte(e,t){return yte=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yte(e,t)}function bte(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=vte(e);if(t){var o=vte(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function vte(e){return vte=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vte(e)}var gte,wte,Ete,_te,kte=function(e){var t,n=(t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e),{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)});return Math.sqrt(n.r*n.r*.299+n.g*n.g*.587+n.b*n.b*.114)>140},Ote=Object(se.c)(rte=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yte(e,t)}(a,e);var t,n,r,o=bte(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.onChange,n=e.value,r=e.fieldName,o=kte(n)?"#000000":"#FFFFFF";return s.a.createElement(Ia,null,s.a.createElement(Ia.Toggle,{tag:"span",className:"dropdown--btn text-start p-0"},s.a.createElement("div",{className:"d-inline-flex"},s.a.createElement("div",{className:"d-flex justify-content-center align-content-center border-radius--normal border-all--meta-light ms-1",style:{height:"1.5em",width:"1.5em",backgroundColor:n}},s.a.createElement("i",{className:"far fa-eye-dropper",style:{lineHeight:"1.5em",color:o}}))),s.a.createElement("div",{className:"d-inline-block ms-2",style:{lineHeight:"1.5em",fontSize:"0.9em"}},n.toUpperCase())),s.a.createElement(Ia.Content,{className:"dropdown--content dropdown--chrome-picker",title:r},s.a.createElement(BY.ChromePicker,{color:n,onChange:t,disableAlpha:!0})))}}])&&hte(t.prototype,n),r&&hte(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component))||rte,xte=Ote,Ste=Object(se.c)((function(e){var t=e.labelName,n=e.color,r=e.onChange;return s.a.createElement("li",{className:"list--table-item form-group row py-1"},s.a.createElement("label",{className:"col-sm-12 col-md-6 col-form-label input--label"},t," color"),s.a.createElement("div",{className:"col-sm-12 col-md-6"},s.a.createElement(xte,{fieldName:t,value:n,onChange:r})))})),jte=function(){return s.a.createElement("div",{className:"form-actions row"},s.a.createElement("div",{className:"alert alert-trial mb-0 p-3"},s.a.createElement("h4",{className:"text--color-yellow"},"Subscribe to enable"),s.a.createElement("p",{className:"text--color-yellow text--size-900rem mb-3"},"Customizing the media player is only available to subscribers. Please upgrade your account."),s.a.createElement("a",{className:"btn btn-alert mb-0",href:"/account/upgrade"},s.a.createElement("i",{className:"far fa-arrow-up me-2"}),"Upgrade account")))},Cte=Object(se.c)((function(e){var t=e.store;return s.a.createElement("div",{className:"form-actions mt-3 text-center"},s.a.createElement("div",{className:"p-0"},s.a.createElement("button",{className:"btn btn-primary t--timecode-realign-button",onClick:t.save},s.a.createElement("i",{className:"far fa-check me-2"}),t.saving?"Applying settings...":"Save and apply"),s.a.createElement("a",{className:"btn",href:"/"},s.a.createElement("i",{className:"far fa-times me-2"}),"Cancel")))})),Dte=Object(se.c)((function(e){var t=e.store,n=e.user;return s.a.createElement("div",{className:"container-fluid border-all-sidebar"},s.a.createElement("ul",{className:"list--table list--table-compact "},s.a.createElement("li",{className:"list--table-header row"},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement("h6",{className:"text--size-800rem text--weight-700 text--color-secondary my-1"},"Player"))),s.a.createElement("li",{className:"list--table-item form-group row py-1"},s.a.createElement("label",{className:"col-sm-12 col-md-6 col-form-label input--label"},"Player size"),s.a.createElement("div",{className:"col-sm-12 col-md-6"},s.a.createElement("select",{className:"form-select",value:t.playerSize,onChange:t.setPlayerSize},s.a.createElement("option",{value:"s"},"Small"),s.a.createElement("option",{value:"m"},"Medium"),s.a.createElement("option",{value:"l"},"Large")))),s.a.createElement(Ste,{color:t.backgroundColor,onChange:t.setBackgroundColor,labelName:"Background"}),s.a.createElement(Ste,{color:t.primaryColor,onChange:t.setPrimaryColor,labelName:"Primary"}),s.a.createElement(Ste,{color:t.secondaryColor,onChange:t.setSecondaryColor,labelName:"Secondary"}),s.a.createElement("li",{className:"list--table-header row"},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement("h6",{className:"text--size-800rem text--weight-700 text--color-secondary my-1"},"Video"))),s.a.createElement(Ste,{color:t.videoBackgroundColor,onChange:t.setVideoBackgroundColor,labelName:"Video background"}),s.a.createElement("li",{className:"list--table-header row"},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement("h6",{className:"text--size-800rem text--weight-700 text--color-secondary my-1"},"Content"))),s.a.createElement(Ste,{color:t.textBackgroundColor,onChange:t.setTextBackgroundColor,labelName:"Text background"}),s.a.createElement(Ste,{color:t.textColor,onChange:t.setTextColor,labelName:"Text"}),s.a.createElement(Ste,{color:t.textHighlightColor,onChange:t.setTextHighlightColor,labelName:"Text highlight"}),s.a.createElement("li",{className:"list--table-item form-group upload row py-1"},s.a.createElement("label",{className:"col-sm-12 col-md-6 col-form-label input--label"},"Custom logo"),s.a.createElement("div",{className:"col-sm-12 col-md-6 mb-0"},s.a.createElement("div",{className:"px-2"},!t.customLogoFileUrl&&s.a.createElement("label",{className:"d-block mb-0"},s.a.createElement("a",{className:"upload-button btn mb-0 py-1",onClick:null},s.a.createElement("input",{className:"form-control d-none",type:"file",onChange:t.setCustomLogo}),s.a.createElement("i",{className:"far fa-upload me-2"}),"Upload logo"),s.a.createElement("span",{className:"d-block text--size-800rem mt-1"},"Will resize to fit 240px x 24px. Transparent pngs work the best.")),t.customLogoFileUrl&&s.a.createElement("div",{className:"d-block mb-0 py-2"},s.a.createElement("img",{src:t.customLogoFileUrl,height:"24px",className:"d-block img-fluid border-all--meta-light shadow--box-sm mb-2"}),s.a.createElement("span",{className:"text--color-red clickable d-inline-block text--size-800rem","data-balloon":"Remove custom logo","data-balloon-pos":"down",onClick:t.clearCustomLogo},s.a.createElement("i",{className:"far fa-trash fa-fw me-2"}),"Remove logo"))))),s.a.createElement("li",{className:"list--table-header row"},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement("h6",{className:"text--size-800rem text--weight-700 text--color-secondary my-1"},"PDF Download"))),s.a.createElement("li",{className:"list--table-item form-group upload row py-1"},s.a.createElement("label",{className:"col-sm-12 col-md-6 col-form-label input--label"},"Custom footer text"),s.a.createElement("div",{className:"col-sm-12 col-md-6 mb-0"},s.a.createElement("textarea",{className:"form-control text--size-800rem",value:t.pdfFooterText,onChange:t.setPdfFooterText,placeholder:"Insert your custom footer text here"})))),n.isSubscribed?s.a.createElement(Cte,{store:t}):s.a.createElement(jte,null))}));function Nte(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Pte(e,t){return Pte=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Pte(e,t)}function Tte(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ate(e);if(t){var o=Ate(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Mte(e)}(this,n)}}function Mte(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ate(e){return Ate=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ate(e)}function Lte(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var Rte,Fte,zte,Bte,Yte,Ite,Hte,Ute,Wte,Vte,qte=(gte=d.action.bound,Object(se.c)((Ete=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pte(e,t)}(a,e);var t,n,r,o=Tte(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(e=o.call.apply(o,[this].concat(n)),"renderPreviewVideo",_te,Mte(e)),e}return t=a,(n=[{key:"togglePreviewVideo",value:function(){this.renderPreviewVideo=!this.renderPreviewVideo}},{key:"render",value:function(){var e=this.props,t=e.store,n=e.user;return s.a.createElement("div",{className:"status-tag-container"},s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col-sm-12 col-lg-6 mb-4"},s.a.createElement("div",{className:"d-flex justify-content-between mb-3"},s.a.createElement("h4",{className:"d-inline-flex mb-0"},"Customizations"),s.a.createElement("div",{className:"d-inline-flex text--size-1000rem"},t.saved&&s.a.createElement("span",{className:"text--color-success-dark text--weight-700 me-3","data-balloon":"Changes can take up to an hour to show on embedded players","data-balloon-length":"medium","data-balloon-pos":"down"},s.a.createElement("i",{className:"far fa-check me-1"}),"Saved"),s.a.createElement("span",{className:"link",onClick:t.reset,"data-balloon":"Reset all customizations to the Sonix default.","data-balloon-length":"medium","data-balloon-pos":"down"},s.a.createElement("i",{className:"far fa-recycle me-1"}),"Reset"))),s.a.createElement(Dte,{store:t,user:n})),s.a.createElement("div",{className:"col-sm-12 col-lg-6"},s.a.createElement("div",{className:"d-flex justify-content-between"},s.a.createElement("h4",{className:"d-inline-flex mb-3"},"Preview"),s.a.createElement(xW,{labelLeftFalse:"Audio",labelRightTrue:"Video",iconFalse:"\\f028",iconTrue:"\\f03d",onChange:this.togglePreviewVideo,checked:this.renderPreviewVideo})),this.renderPreviewVideo?s.a.createElement(mte,{store:t}):s.a.createElement(dte,{store:t}))))}}])&&Nte(t.prototype,n),r&&Nte(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),_te=Lte(Ete.prototype,"renderPreviewVideo",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Lte(Ete.prototype,"togglePreviewVideo",[gte],Object.getOwnPropertyDescriptor(Ete.prototype,"togglePreviewVideo"),Ete.prototype),wte=Ete))||wte),Gte=qte,Kte=n(440),$te=function(e){var t=new Kte.a(e),n=new Pn(window.userData);u.a.render(s.a.createElement(Gte,{store:t,user:n}),document.getElementById("media_player_settings"))};function Jte(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Xte(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Qte(e,t){return Qte=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Qte(e,t)}function Zte(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=tne(e);if(t){var o=tne(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ene(e)}(this,n)}}function ene(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tne(e){return tne=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tne(e)}function nne(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var rne,one,ane,ine,lne,sne,cne,une,fne=(Rte=d.action.bound,Fte=d.action.bound,Object(se.c)((Bte=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qte(e,t)}(a,e);var t,n,r,o=Zte(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Jte(e=o.call.apply(o,[this].concat(n)),"cancelling",Yte,ene(e)),Jte(e,"showError",Ite,ene(e)),Jte(e,"setLeavingReason",Hte,ene(e)),Jte(e,"setRating",Ute,ene(e)),Jte(e,"setComments",Wte,ene(e)),Jte(e,"setPreventionComments",Vte,ene(e)),e}return t=a,(n=[{key:"submitForm",value:function(){this.props.store.missingCancelFields?this.showError=!0:(this.showError=!1,Object(we.k)("app.account.cancel.click_cancel_final_btn"),this.cancelAccount())}},{key:"cancelAccount",value:function(){this.cancelling=!0,this.props.store.cancelSubscription().then((function(e){window.location.pathname=e.data.redirect}))}},{key:"renderCancelButton",value:function(){var e=this.props.store;return this.cancelling?s.a.createElement("p",{className:"text--color-red text--size-800rem"},s.a.createElement("i",{className:"far fa-fw fa-spinner fa-spin me-2"}),"Cancelling subscription. Please wait."):s.a.createElement("div",{className:"mb-0"},s.a.createElement("a",{className:"btn btn-success t--nevermind-cancel-btn mb-0",href:"/",onclick:"dataLayer.push({'event': 'app.account.cancel.click_nevermind_btn'});"},s.a.createElement("i",{className:"far fa-fw fa-arrow-left me-2"}),"Nevermind! Take me back to my account."),e.missingCancelFields?s.a.createElement("a",{className:"btn btn-meta link--disabled t--cancel-btn mb-0"},s.a.createElement("i",{className:"far fa-fw fa-compress-alt me-2"}),"Cancel & compress my media files"):s.a.createElement("a",{className:"btn btn-red t--cancel-btn mb-0",onClick:this.submitForm},s.a.createElement("i",{className:"far fa-fw fa-compress-alt me-2"}),"Cancel & compress my media files"))}},{key:"renderError",value:function(){if(this.showError)return s.a.createElement(ni,null,s.a.createElement("p",{className:"mb-0"},"Please answer all of the questions below"))}},{key:"render",value:function(){var e=this.props.store;return s.a.createElement("div",{className:"cancel-container"},s.a.createElement("form",{action:"/account/subscription"},s.a.createElement("div",{className:"form-group position--relative"},this.renderError(),s.a.createElement("label",{className:"input--label"},"Why are you cancelling your subscription?"),s.a.createElement("select",{className:"form-select mb-3",value:e.leavingReason,onChange:this.setLeavingReason},s.a.createElement("option",{value:""},"-- Please select --"),s.a.createElement("option",null,"I no longer need to transcribe audio/video files"),s.a.createElement("option",null,"I cannot afford transcribing with Sonix"),s.a.createElement("option",null,"I decided to transcribe with a different service"),s.a.createElement("option",null,"I wasn't happy with the accuracy of my transcript"),s.a.createElement("option",null,"I wasn't using it or had no time"),s.a.createElement("option",null,"I couldn't set up my account correctly"),s.a.createElement("option",null,"I'm restricted by feature limitations"),s.a.createElement("option",null,"My project ended"),s.a.createElement("option",null,"My business is downsizing or I'm out of budget"),s.a.createElement("option",null,"My business is shutting down"),s.a.createElement("option",null,"I'm not leaving; I'm using another account"),s.a.createElement("option",null,"I have another reason and will explain below"))),s.a.createElement("div",{className:"form-group position--relative"},s.a.createElement("label",{className:"input--label mb-2",htmlFor:"preventCancellingFeature"},"Is there something we could have done to prevent you from cancelling?",s.a.createElement("br",null),"(i.e. Adding a missing functionality?)"),s.a.createElement("textarea",{name:"prevent_cancelling_feature",id:"preventCancellingFeature",placeholder:"Thanks for letting us know.",value:e.preventionComments,onChange:this.setPreventionComments,className:"form-control mb-3",rows:"4"})),s.a.createElement("div",{className:"form-group position--relative"},s.a.createElement("label",{className:"input--label"},"On a scale between 1 and 10, what was your experience with Sonix like?"),s.a.createElement("select",{className:"form-select mb-3",value:e.rating,onChange:this.setRating},s.a.createElement("option",{value:""},"-- Please select --"),s.a.createElement("option",{value:"1"},"1 — It was awful"),s.a.createElement("option",{value:"2"},"2"),s.a.createElement("option",{value:"3"},"3"),s.a.createElement("option",{value:"4"},"4"),s.a.createElement("option",{value:"5"},"5 — It was okay"),s.a.createElement("option",{value:"6"},"6"),s.a.createElement("option",{value:"7"},"7"),s.a.createElement("option",{value:"8"},"8"),s.a.createElement("option",{value:"9"},"9"),s.a.createElement("option",{value:"10"},"10 — It was awesome!"))),s.a.createElement("div",{className:"form-group position--relative"},s.a.createElement("label",{className:"input--label mb-2",htmlFor:"pauseReason"},"Why did you choose that rating? And what can we do better?"),s.a.createElement("textarea",{name:"pause_reason",id:"pauseReason",placeholder:"Thanks for your feedback. We'd like to know how we can improve.",value:e.comments,onChange:this.setComments,className:"form-control mb-3",rows:"4"})),!e.storage&&s.a.createElement("div",{className:"row my-2"},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement("div",{className:"mb-4"},s.a.createElement("h4",null,"Canceling your subscription"),e.usageCost>0&&s.a.createElement("p",null,"We will immediately charge your credit card for the $",e.usageCost," of outstanding charges."),s.a.createElement("p",null,"Once all of your files are permanently compressed, we will be unable to retrieve the original media files. Please download and export any files that are mission critical to your business."),s.a.createElement(Au,{label:"Permanently compress all of my files when my subscription ends on ".concat(e.cancelDate,"."),onChange:e.toggleConfirmAction,name:"deleteAgree",checked:e.confirmAction})))),e.storage&&s.a.createElement("div",{className:"row my-2"},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement("div",{className:"mb-4"},s.a.createElement("h4",null,"Canceling your storage plan"),s.a.createElement("p",null,"Your original media files will be deleted and we will be unable to retrieve the original media files. Please download and export any files that are mission critical to your business before proceeding."),s.a.createElement(Au,{label:"Permanently compress all of my files on ".concat(e.cancelDate,"."),onChange:e.toggleConfirmAction,name:"deleteAgree",checked:e.confirmAction})))),s.a.createElement("div",{className:"row my-2"},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement("div",{className:"p-0 mb-3"},this.renderCancelButton())))))}}])&&Xte(t.prototype,n),r&&Xte(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.a.Component),Yte=nne(Bte.prototype,"cancelling",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ite=nne(Bte.prototype,"showError",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),nne(Bte.prototype,"submitForm",[Rte],Object.getOwnPropertyDescriptor(Bte.prototype,"submitForm"),Bte.prototype),Hte=nne(Bte.prototype,"setLeavingReason",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){return e.props.store.leavingReason=t.target.value}}}),Ute=nne(Bte.prototype,"setRating",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){return e.props.store.rating=t.target.value}}}),Wte=nne(Bte.prototype,"setComments",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){return e.props.store.comments=t.target.value}}}),Vte=nne(Bte.prototype,"setPreventionComments",[d.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){return e.props.store.preventionComments=t.target.value}}}),nne(Bte.prototype,"cancelAccount",[Fte],Object.getOwnPropertyDescriptor(Bte.prototype,"cancelAccount"),Bte.prototype),zte=Bte))||zte),pne=fne;function dne(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function mne(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function hne(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var yne,bne,vne,gne,wne,Ene,_ne,kne,One,xne,Sne=(rne=d.action.bound,one=d.action.bound,ine=hne((ane=function(){function e(t){var n=t.user,r=t.storage,o=t.usageCost,a=t.cancelDate;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),dne(this,"leavingReason",ine,this),dne(this,"comments",lne,this),dne(this,"preventionComments",sne,this),dne(this,"rating",cne,this),dne(this,"confirmAction",une,this),this.user=n,this.storage=r,this.usageCost=o,this.cancelDate=a}var t,n,r;return t=e,(n=[{key:"toggleConfirmAction",value:function(){this.confirmAction=!this.confirmAction}},{key:"cancelSubscription",value:function(){return et.a.delete("/account/subscription.json",{params:{reason:this.leavingReason,comments:this.comments,prevention:this.preventionComments,rating:this.rating}})}},{key:"missingCancelFields",get:function(){return""===this.leavingReason||""===this.rating||!this.confirmAction}}])&&mne(t.prototype,n),r&&mne(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()).prototype,"leavingReason",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),lne=hne(ane.prototype,"comments",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),sne=hne(ane.prototype,"preventionComments",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),cne=hne(ane.prototype,"rating",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),une=hne(ane.prototype,"confirmAction",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),hne(ane.prototype,"toggleConfirmAction",[rne],Object.getOwnPropertyDescriptor(ane.prototype,"toggleConfirmAction"),ane.prototype),hne(ane.prototype,"cancelSubscription",[one],Object.getOwnPropertyDescriptor(ane.prototype,"cancelSubscription"),ane.prototype),hne(ane.prototype,"missingCancelFields",[d.computed],Object.getOwnPropertyDescriptor(ane.prototype,"missingCancelFields"),ane.prototype),ane),jne=function(e){var t=e.storage,n=e.usageCost,r=e.cancelDate,o=new Pn(window.userData),a=new Sne({user:o,storage:t,usageCost:n,cancelDate:r});u.a.render(s.a.createElement(pne,{store:a}),document.getElementById("cancel-app"))};function Cne(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Dne(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Nne(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var Pne,Tne,Mne,Ane,Lne,Rne,Fne,zne,Bne,Yne,Ine,Hne,Une,Wne,Vne,qne,Gne,Kne,$ne,Jne,Xne,Qne,Zne,ere,tre,nre,rre,ore,are,ire=(yne=d.action.bound,bne=d.action.bound,gne=Nne((vne=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Cne(this,"status",gne,this),Cne(this,"duration",wne,this),Cne(this,"name",Ene,this),Cne(this,"fileUrl",_ne,this),Cne(this,"shareLink",kne,this),Cne(this,"progress",One,this),Cne(this,"language",xne,this),this.id=t,this.fetch()}var t,n,r;return t=e,(n=[{key:"loadJson",value:function(e){this.status=e.status,this.duration=e.duration,this.name=e.name,this.fileUrl=e.fileUrl,this.shareLink=e.shareLink,this.progress=e.progress,this.language=e.language}},{key:"fetch",value:function(){var e=this;return et.a.get("/video_exports/".concat(this.id,".json")).then((function(t){e.loadJson(t.data),"processing"===e.status&&setTimeout(e.fetch,3e3)}))}},{key:"isLoading",get:function(){return"loading"===this.status}},{key:"isProcessing",get:function(){return"processing"===this.status}},{key:"isComplete",get:function(){return"completed"===this.status}},{key:"isFailure",get:function(){return"failed"===this.status}}])&&Dne(t.prototype,n),r&&Dne(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()).prototype,"status",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"loading"}}),wne=Nne(vne.prototype,"duration",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Ene=Nne(vne.prototype,"name",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_ne=Nne(vne.prototype,"fileUrl",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),kne=Nne(vne.prototype,"shareLink",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),One=Nne(vne.prototype,"progress",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),xne=Nne(vne.prototype,"language",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Nne(vne.prototype,"loadJson",[yne],Object.getOwnPropertyDescriptor(vne.prototype,"loadJson"),vne.prototype),Nne(vne.prototype,"fetch",[bne],Object.getOwnPropertyDescriptor(vne.prototype,"fetch"),vne.prototype),Nne(vne.prototype,"isLoading",[d.computed],Object.getOwnPropertyDescriptor(vne.prototype,"isLoading"),vne.prototype),Nne(vne.prototype,"isProcessing",[d.computed],Object.getOwnPropertyDescriptor(vne.prototype,"isProcessing"),vne.prototype),Nne(vne.prototype,"isComplete",[d.computed],Object.getOwnPropertyDescriptor(vne.prototype,"isComplete"),vne.prototype),Nne(vne.prototype,"isFailure",[d.computed],Object.getOwnPropertyDescriptor(vne.prototype,"isFailure"),vne.prototype),vne),lre=Object(se.c)((function(e){var t=e.user;return s.a.createElement("nav",{className:"navbar navbar-expand-md navbar-video-exports-header"},s.a.createElement(Vm,null),s.a.createElement("button",{"aria-controls":"navbarSonixToggle","aria-expanded":"false","aria-label":"Toggle navigation",className:"navbar-toggler navbar-toggler-right clickable","data-target":"#navbarSonixToggle","data-toggle":"collapse",type:"button"},s.a.createElement("span",{className:"navbar-toggler-icon"})),s.a.createElement("div",{className:"collapse navbar-collapse",id:"navbarSonixToggle"},s.a.createElement("ul",{className:"navbar-nav ms-auto"},t.loggedIn?s.a.createElement("a",{className:"btn btn-primary mb-0",href:"https://my.sonix.ai/"},s.a.createElement("i",{className:"far fa-home me-2"}),"Return home"):s.a.createElement("a",{className:"btn btn-primary mb-0",href:"https://sonix.ai/accounts/sign_up"},s.a.createElement("i",{className:"far fa-paper-plane me-2"}),"Try Sonix for free"))))})),sre=Object(se.c)((function(e){var t=e.store;return s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{className:"video-export-wrapper"},s.a.createElement("video",{preload:"metadata",controls:!0},s.a.createElement("source",{src:t.fileUrl,type:"video/mp4"}))),s.a.createElement("div",{className:"btn-toolbar"},s.a.createElement("div",{className:"btn-group"},s.a.createElement(hY,{shareLink:t.shareLink,shareLabel:"",analyticsEventName:"app.subtitles.click_burnin_video_export_share"})),s.a.createElement("div",{className:"btn-group ms-auto"},s.a.createElement("div",{className:"form-group mb-1"},s.a.createElement("a",{href:t.fileUrl,className:"btn btn-success",style:{lineHeight:"1.625rem"},onClick:function(){return Object(we.k)("app.subtitles.click_burnin_video_export_download",t.shareLink)},download:!0},s.a.createElement("i",{className:"far fa-download fa-fw me-2"}),"Download")))))})),cre=Object(se.c)((function(e){var t=e.store;return s.a.createElement("div",{className:"video-export-status video-export-error"},s.a.createElement("i",{className:"far fa-exclamation-triangle fa-3x animate--pulse text--color-error mb-3"}),s.a.createElement("h3",{className:"font-style-h4 text--color-error mb-4"},"Something went wrong"),s.a.createElement("p",{className:"text--color-meta-dark"},s.a.createElement("a",{className:"link--underline text--color-error",href:"mailto:wecare@sonix.ai?subject=Video%20export%20issue&body=Error%20code:"+t.id},"Please contact our support team at wecare@sonix.ai"),s.a.createElement("br",null),"and they can help you with this issue."))})),ure=function(){return s.a.createElement("div",{className:"video-export-status video-export-loading"},s.a.createElement("i",{className:"far fa-circle-notch fa-3x fa-spin mb-3 text--color-meta-light"}),s.a.createElement("h3",{className:"font-style-h4 mb-4 text--color-meta-light"},"Loading. Please wait."))},fre=Object(se.c)((function(e){var t=e.store,n=(100*parseFloat(t.progress)).toFixed(0),r="Encoding video";0==n?r="Preparing video":100==n&&(r="Wrapping up");var o=t.duration>1200;return s.a.createElement("div",null,s.a.createElement("div",{className:"video-export-status video-export-processing"},s.a.createElement("div",{className:"sk-cube-grid"},s.a.createElement("div",{className:"sk-cube sk-cube1"}),s.a.createElement("div",{className:"sk-cube sk-cube2"}),s.a.createElement("div",{className:"sk-cube sk-cube3"}),s.a.createElement("div",{className:"sk-cube sk-cube4"}),s.a.createElement("div",{className:"sk-cube sk-cube5"}),s.a.createElement("div",{className:"sk-cube sk-cube6"}),s.a.createElement("div",{className:"sk-cube sk-cube7"}),s.a.createElement("div",{className:"sk-cube sk-cube8"}),s.a.createElement("div",{className:"sk-cube sk-cube9"})),s.a.createElement("h3",{className:"font-style-h4 text--color-primary-dark mb-0"},"Processing video"),s.a.createElement("p",{className:"text--color-primary-dark mb-5"},"This may take a while, thanks for being patient."),s.a.createElement(Mu,{percentage:n,text:r})),o&&s.a.createElement("div",{className:"media alert alert-warning mt-3"},s.a.createElement("i",{className:"far fa-2x align-self-center me-3 fa-exclamation-triangle"}),s.a.createElement("div",{className:"media-body text-start"},s.a.createElement("p",{className:"mb-0"},s.a.createElement("strong",null,"This is a long video. "),"Please do not restart the burn-in. We'll send you an email when it is finished."))))})),pre=Object(se.c)((function(e){var t=e.user,n=e.store;return n.isProcessing?s.a.createElement(fre,{store:n}):n.isComplete?s.a.createElement(sre,{store:n,user:t}):n.isLoading?s.a.createElement(ure,null):s.a.createElement(cre,{store:n,user:t})})),dre=Object(se.c)((function(e){var t=e.user,n=e.store;return s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10 col-lg-8 col-xl-6 text-md-center"},s.a.createElement("h1",{className:"font-style-h3 text--color-secondary mb-3 "},n.name),s.a.createElement(pre,{user:t,store:n})))})),mre=function(e){var t=new Pn(window.userData),n=new ire(e);Object(we.k)("app.subtitles.view_burnin_video_export_page",e),u.a.render(s.a.createElement(lre,{user:t}),document.getElementById("top-nav")),u.a.render(s.a.createElement(dre,{user:t,store:n}),document.getElementById("root"))},hre=Object(se.c)((function(e){var t=e.meeting;return s.a.createElement("div",{className:"form-group"},s.a.createElement("label",{htmlFor:"nameInput",className:"input--label text--color"},s.a.createElement("i",{className:"far fa-pen-alt me-2 text--color"}),"Do you want to rename your transcript?"),s.a.createElement("input",{autoFocus:!0,value:t.recordingName,onChange:t.setRecordingName,className:"form-control"}))})),yre=Object(se.c)((function(e){var t=e.meeting;return s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("button",{className:"btn btn-primary",onClick:t.transcribe},s.a.createElement("i",{className:"fa fa-check me-2"})," Continue & Transcribe"),s.a.createElement("button",{className:"btn",onClick:t.stopAskingToTranscribe},s.a.createElement("i",{className:"fa fa-times me-2"})," Cancel"))})),bre=Object(se.c)((function(e){var t=e.meeting,n=t.store,r=n.language,o=n.folder,a=Object(we.i)(r);return s.a.createElement(ao,{modalClasses:"smodal--content smodal--content-sm",isOpen:t.askingToTranscribe,onRequestClose:t.stopAskingToTranscribe,modalTitle:"Transcribe Zoom meeting",modalIcon:"far fa-video me-2"},s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10"},s.a.createElement("h4",null,"Zoom Meeting"),s.a.createElement("p",null,s.a.createElement("i",{className:"fas fa-fw fa-video me-2"}),t.recordingName,s.a.createElement("br",null),s.a.createElement("i",{className:"far fa-fw fa-clock me-2"}),t.formattedStartTime," • ",t.duration,s.a.createElement("br",null),s.a.createElement("i",{className:"far fa-fw fa-comment-alt-dots me-2"}),"Language spoken: ",s.a.createElement("strong",null,a.language),s.a.createElement("br",null),s.a.createElement("i",{className:"far fa-fw fa-folder me-2"}),"Save to: ",s.a.createElement("strong",null,o.name)),s.a.createElement("div",{className:"form-group"},s.a.createElement(hre,{meeting:t}),t.saving?s.a.createElement(_o,null):s.a.createElement(yre,{meeting:t})))))})),vre=Object(se.c)((function(e){var t=e.store;return s.a.createElement("tbody",null,t.meetings.length?t.meetings.map((function(e){return s.a.createElement(Ere,{key:e.id,meeting:e})})):s.a.createElement(wre,null))})),gre=Object(se.c)((function(e){var t=e.meeting;return s.a.createElement(s.a.Fragment,null,s.a.createElement("button",{className:"btn btn-secondary py-2 text--line-height-1em mb-0",onClick:t.askToTranscribe},"Transcribe",s.a.createElement("i",{className:"far fa-arrow-right ms-2"})),s.a.createElement(bre,{meeting:t}))})),wre=function(){return s.a.createElement("tr",{className:"text--hover text--color"},s.a.createElement("td",{className:"text--size-table text-center",colSpan:4},s.a.createElement("i",{className:"far fa-video fa-3x mt-4 text--color-secondary"}),s.a.createElement("h4",{className:"text--color-secondary"},"No recordings found"),s.a.createElement("p",{className:"text--color"},"Please record a meeting using Zoom Cloud Recording.",s.a.createElement("br",null),s.a.createElement("a",{href:"https://support.zoom.us/hc/en-us/articles/203741855-Cloud-recording",className:"link--new-window link--color link--underline"},"How to use Zoom's Cloud Recording"))))},Ere=Object(se.c)((function(e){var t=e.meeting;return s.a.createElement("tr",{className:"text--hover text--color"},s.a.createElement("td",{className:"text--size-table text-start"},s.a.createElement("i",{className:"far fa-video me-2"}),t.name),s.a.createElement("td",{className:"text--size-table text-end"},t.formattedStartTime),s.a.createElement("td",{className:"text--size-table text-end"},t.duration),s.a.createElement("td",{className:"text--size-table text-end"},t.recordingId?s.a.createElement("a",{href:"/recordings/".concat(t.recordingId),className:"btn btn-success py-2 text--line-height-1em mb-0 text--color-white",target:"_blank"},"See Transcript",s.a.createElement("i",{className:"far fa-external-link ms-2"})):s.a.createElement(gre,{meeting:t})))})),_re=Object(se.c)((function(e){var t=e.store;return s.a.createElement("div",{className:""},s.a.createElement("h4",{className:"text--color-secondary"},"Zoom cloud recordings"),s.a.createElement("table",{className:"table table--simple table--spacing-md"},s.a.createElement("thead",null,s.a.createElement("tr",null,s.a.createElement("th",{className:"text-start px-1"},s.a.createElement("span",null,s.a.createElement("i",{className:"far fa-video me-2"}),"Name")),s.a.createElement("th",{className:"text-end px-1"},s.a.createElement("span",null,"Meeting date & time")),s.a.createElement("th",{className:"text-end px-1"},s.a.createElement("span",null,"Duration")),s.a.createElement("th",{className:"text-end px-1"},s.a.createElement("span",null," ")))),s.a.createElement(vre,{store:t})))})),kre=Object(se.c)((function(e){var t=e.store;return s.a.createElement("div",{className:"container-fluid border-all-sidebar mb-5"},s.a.createElement("ul",{className:"list--table list--table-compact "},s.a.createElement("li",{className:"list--table-header row"},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement("h6",{className:"text--size-800rem text--weight-700 text--color-secondary my-1"},"Zoom integration settings",t.saved&&s.a.createElement("span",{className:"badge badge-success float-lg-end ms-2 my-0 my-lg-1"},s.a.createElement("i",{className:"far fa-check me-1"}),"Saved")))),s.a.createElement("li",{className:"list--table-item form-group row py-1"},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement(P5.a,{className:"form-group position--relative mb-3",labelIcon:!1,value:t.language,showAutoDetect:!0,onChange:t.setLanguage,label:"Default meeting language"}))),s.a.createElement("li",{className:"list--table-item form-group row py-1"},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement("h3",{className:"text--size-1000rem text--color-meta-dark text--transform-none"},"Default folder for Zoom transcripts"),s.a.createElement("div",{className:"form-control h-auto bgcolor--white text--size-1000rem mb-2",onClick:t.startChoosingFolder},s.a.createElement("div",{className:"text--weight-700 d-inline-block"},s.a.createElement("i",{className:"far fa-fw fa-folder-open me-2"}),t.folder.name),s.a.createElement("a",{className:"link d-block d-md-inline-block btn btn-xs mb-0 mt-2 px-3 mt-md-0 float-none float-md-end"},s.a.createElement("i",{className:"far fa-fw fa-folders me-2"}),"Change folder")),s.a.createElement(N5,{store:t,isOpen:t.isChoosingFolder,onRequestClose:t.stopChoosingFolder}))),s.a.createElement("li",{className:"list--table-item form-group row py-1"},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement("h3",{className:"text--size-1000rem text--color-meta-dark text--transform-none"},"Automate Zoom transcripts"),s.a.createElement(Au,{label:"Automatically transcribe new Zoom recordings",onChange:t.toggleAutoTranscribe,checked:t.autoTranscribe})))),s.a.createElement("div",{className:"form-actions mt-3"},s.a.createElement("div",{className:"p-0"},s.a.createElement("button",{className:"btn btn-primary t--timecode-realign-button",onClick:t.save},s.a.createElement("i",{className:"far fa-check me-2"}),t.saving?"Applying settings...":"Save and apply"),s.a.createElement("a",{className:"btn",href:"/"},s.a.createElement("i",{className:"far fa-times me-2"}),"Cancel"))))})),Ore=Object(se.c)((function(e){var t=e.store;return s.a.createElement("div",{className:"zoom-app-container"},s.a.createElement(kre,{store:t}),t.isLoading&&s.a.createElement("div",{className:"text-center text--color-secondary"},s.a.createElement("i",{className:"fad fa-4x fa-spinner-third fa-spin"})),t.isImporting&&s.a.createElement("div",{className:"text-center text--color-secondary"},s.a.createElement("i",{className:"fad fa-4x fa-spinner-third fa-spin"}),s.a.createElement("h4",{className:"mt-3 text--color-secondary"},"Importing Zoom recordings")),t.isConnected&&s.a.createElement(_re,{store:t}))}));function xre(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Sre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jre(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Cre(e,t,n){return t&&jre(e.prototype,t),n&&jre(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dre(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var Nre,Pre,Tre,Mre,Are,Lre,Rre,Fre,zre,Bre,Yre,Ire,Hre,Ure,Wre,Vre,qre,Gre,Kre,$re,Jre,Xre,Qre,Zre,eoe,toe,noe,roe,ooe=(Pne=d.action.bound,Tne=d.action.bound,Mne=d.action.bound,Ane=d.action.bound,Lne=d.action.bound,Rne=d.action.bound,Fne=d.action.bound,Bne=Dre((zne=function(){function e(t){var n=this;Sre(this,e),xre(this,"saving",Bne,this),xre(this,"saved",Yne,this),xre(this,"status",Ine,this),xre(this,"meetings",Hne,this),xre(this,"language",Une,this),xre(this,"autoTranscribe",Wne,this),xre(this,"folder",Vne,this),xre(this,"isChoosingFolder",qne,this),this.toJSON=function(){return{default_language:n.language,default_folder_id:n.folder.id,auto_transcribe:n.autoTranscribe}},this.language=t.defaultLanguage,this.autoTranscribe=t.autoTranscribe,Object(d.reaction)((function(){return n.toJSON()}),(function(){return n.saved=!1})),t.defaultFolder&&(this.folder=t.defaultFolder)}return Cre(e,[{key:"fetch",value:function(){var e=this;et.a.get("/zoom_meetings.json").then((function(t){var n=t.data;e.status=n.status,"importing"===e.status?setTimeout(e.fetch,3e3):e.meetings=n.meetings.map((function(t){return new aoe(e,t)}))}))}},{key:"save",value:function(){var e=this;return this.saving=!0,et.a.put("/zoom.json",this.toJSON()).then((function(){e.saved=!0,e.saving=!1}))}},{key:"toggleAutoTranscribe",value:function(){this.autoTranscribe=!this.autoTranscribe}},{key:"setLanguage",value:function(e){this.language=e.value}},{key:"setFolder",value:function(e){this.folder=e}},{key:"startChoosingFolder",value:function(){this.isChoosingFolder=!0}},{key:"stopChoosingFolder",value:function(){this.isChoosingFolder=!1}},{key:"isLoading",get:function(){return"loading"===this.status}},{key:"isImporting",get:function(){return"importing"===this.status}},{key:"isConnected",get:function(){return"connected"===this.status}}]),e}()).prototype,"saving",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Yne=Dre(zne.prototype,"saved",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ine=Dre(zne.prototype,"status",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"loading"}}),Hne=Dre(zne.prototype,"meetings",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Une=Dre(zne.prototype,"language",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"en"}}),Wne=Dre(zne.prototype,"autoTranscribe",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Vne=Dre(zne.prototype,"folder",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{id:null,name:"Home"}}}),qne=Dre(zne.prototype,"isChoosingFolder",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Dre(zne.prototype,"fetch",[Pne],Object.getOwnPropertyDescriptor(zne.prototype,"fetch"),zne.prototype),Dre(zne.prototype,"save",[Tne],Object.getOwnPropertyDescriptor(zne.prototype,"save"),zne.prototype),Dre(zne.prototype,"toggleAutoTranscribe",[Mne],Object.getOwnPropertyDescriptor(zne.prototype,"toggleAutoTranscribe"),zne.prototype),Dre(zne.prototype,"setLanguage",[Ane],Object.getOwnPropertyDescriptor(zne.prototype,"setLanguage"),zne.prototype),Dre(zne.prototype,"setFolder",[Lne],Object.getOwnPropertyDescriptor(zne.prototype,"setFolder"),zne.prototype),Dre(zne.prototype,"startChoosingFolder",[Rne],Object.getOwnPropertyDescriptor(zne.prototype,"startChoosingFolder"),zne.prototype),Dre(zne.prototype,"stopChoosingFolder",[Fne],Object.getOwnPropertyDescriptor(zne.prototype,"stopChoosingFolder"),zne.prototype),Dre(zne.prototype,"isLoading",[d.computed],Object.getOwnPropertyDescriptor(zne.prototype,"isLoading"),zne.prototype),Dre(zne.prototype,"isImporting",[d.computed],Object.getOwnPropertyDescriptor(zne.prototype,"isImporting"),zne.prototype),Dre(zne.prototype,"isConnected",[d.computed],Object.getOwnPropertyDescriptor(zne.prototype,"isConnected"),zne.prototype),zne),aoe=(Gne=d.action.bound,Kne=d.action.bound,$ne=d.action.bound,Jne=d.action.bound,Qne=Dre((Xne=function(){function e(t,n){Sre(this,e),xre(this,"id",Qne,this),xre(this,"recordingId",Zne,this),xre(this,"name",ere,this),xre(this,"startTime",tre,this),xre(this,"duration",nre,this),xre(this,"recordingName",rre,this),xre(this,"askingToTranscribe",ore,this),xre(this,"saving",are,this),this.store=t,this.id=n.id,this.name=n.name,this.recordingName=n.recording_name||n.name,this.startTime=n.recording_start,this.duration=n.duration,this.recordingId=n.recording_id}return Cre(e,[{key:"transcribe",value:function(){var e=this;this.saving=!0,et.a.put("/zoom_meetings/".concat(this.id,"/transcribe.json"),{name:this.recordingName,language:this.store.language,folder_id:this.store.folder.id}).then((function(t){var n=t.data;e.recordingId=n.recording_id,e.stopAskingToTranscribe()}))}},{key:"setRecordingName",value:function(e){this.recordingName=e.target.value}},{key:"askToTranscribe",value:function(){this.askingToTranscribe=!0}},{key:"stopAskingToTranscribe",value:function(){this.askingToTranscribe=!1}},{key:"formattedStartTime",get:function(){return Ol.a.unix(this.startTime).format("MM/DD/YYYY [@] h:mm a")}}]),e}()).prototype,"id",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Zne=Dre(Xne.prototype,"recordingId",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ere=Dre(Xne.prototype,"name",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),tre=Dre(Xne.prototype,"startTime",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),nre=Dre(Xne.prototype,"duration",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),rre=Dre(Xne.prototype,"recordingName",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ore=Dre(Xne.prototype,"askingToTranscribe",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),are=Dre(Xne.prototype,"saving",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Dre(Xne.prototype,"transcribe",[Gne],Object.getOwnPropertyDescriptor(Xne.prototype,"transcribe"),Xne.prototype),Dre(Xne.prototype,"setRecordingName",[Kne],Object.getOwnPropertyDescriptor(Xne.prototype,"setRecordingName"),Xne.prototype),Dre(Xne.prototype,"askToTranscribe",[$ne],Object.getOwnPropertyDescriptor(Xne.prototype,"askToTranscribe"),Xne.prototype),Dre(Xne.prototype,"stopAskingToTranscribe",[Jne],Object.getOwnPropertyDescriptor(Xne.prototype,"stopAskingToTranscribe"),Xne.prototype),Dre(Xne.prototype,"formattedStartTime",[d.computed],Object.getOwnPropertyDescriptor(Xne.prototype,"formattedStartTime"),Xne.prototype),Xne),ioe=ooe,loe=function(){var e=new ioe(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});e.fetch(),u.a.render(s.a.createElement(Ore,{store:e}),document.getElementById("zoom_app"))},soe=Object(se.c)((function(e){var t=e.meeting;return s.a.createElement("div",{className:"form-group"},s.a.createElement("label",{htmlFor:"nameInput",className:"input--label text--color"},s.a.createElement("i",{className:"far fa-pen-alt me-2 text--color"}),"Do you want to rename your transcript?"),s.a.createElement("input",{autoFocus:!0,value:t.recordingName,onChange:t.setRecordingName,className:"form-control"}))})),coe=Object(se.c)((function(e){var t=e.meeting;return s.a.createElement("div",{className:"form-actions mt-4"},s.a.createElement("button",{className:"btn btn-primary",onClick:t.transcribe},s.a.createElement("i",{className:"fa fa-check me-2"})," Continue & Transcribe"),s.a.createElement("button",{className:"btn",onClick:t.stopAskingToTranscribe},s.a.createElement("i",{className:"fa fa-times me-2"})," Cancel"))})),uoe=Object(se.c)((function(e){var t=e.meeting,n=t.store,r=n.language,o=n.folder,a=Object(we.i)(r);return s.a.createElement(ao,{modalClasses:"smodal--content smodal--content-sm",isOpen:t.askingToTranscribe,onRequestClose:t.stopAskingToTranscribe,modalTitle:"Transcribe Teams Recording",modalIcon:"far fa-video me-2"},s.a.createElement("div",{className:"row justify-content-center"},s.a.createElement("div",{className:"col-sm-12 col-md-10"},s.a.createElement("h4",null,"Microsoft Teams Recording"),s.a.createElement("p",null,s.a.createElement("i",{className:"fas fa-fw fa-video me-2"}),t.recordingName,s.a.createElement("br",null),s.a.createElement("i",{className:"far fa-fw fa-comment-alt-dots me-2"}),"Language spoken: ",s.a.createElement("strong",null,a.language),s.a.createElement("br",null),s.a.createElement("i",{className:"far fa-fw fa-folder me-2"}),"Save to: ",s.a.createElement("strong",null,o.name)),s.a.createElement("div",{className:"form-group"},s.a.createElement(soe,{meeting:t}),t.saving?s.a.createElement(_o,null):s.a.createElement(coe,{meeting:t})))))})),foe=Object(se.c)((function(e){var t=e.store;return s.a.createElement("tbody",null,t.teamsRecordings.length?t.teamsRecordings.map((function(e){return s.a.createElement(moe,{key:e.id,meeting:e})})):s.a.createElement(doe,null))})),poe=Object(se.c)((function(e){var t=e.meeting;return s.a.createElement(s.a.Fragment,null,s.a.createElement("button",{className:"btn btn-secondary py-2 text--line-height-1em mb-0",onClick:t.askToTranscribe},"Transcribe",s.a.createElement("i",{className:"far fa-arrow-right ms-2"})),s.a.createElement(uoe,{meeting:t}))})),doe=function(){return s.a.createElement("tr",{className:"text--hover text--color"},s.a.createElement("td",{className:"text--size-table text-center",colSpan:4},s.a.createElement("i",{className:"far fa-video fa-3x mt-4 text--color-secondary"}),s.a.createElement("h4",{className:"text--color-secondary mb-0"},"No recordings were found"),s.a.createElement("p",{className:"text--color mb-4"},"Start by recording a meeting in Microsoft Teams. Then, come back here to transcribe your first meeting. We can't wait to help you!")))},moe=Object(se.c)((function(e){var t=e.meeting;return s.a.createElement("tr",{className:"text--hover text--color"},s.a.createElement("td",{className:"text--size-table text-start"},s.a.createElement("i",{className:"fas fa-video me-2 text--color-meta"}),t.name),s.a.createElement("td",{className:"text--size-table text-end"},t.formattedMeetingCreatedAt),s.a.createElement("td",{className:"text--size-table text-end"},t.recordingId?s.a.createElement("a",{href:"/recordings/".concat(t.recordingId),className:"btn btn-success py-2 text--line-height-1em mb-0 text--color-white",target:"_blank"},"See Transcript",s.a.createElement("i",{className:"far fa-external-link ms-2"})):s.a.createElement(poe,{meeting:t})))})),hoe=Object(se.c)((function(e){var t=e.store;return s.a.createElement("div",{className:""},s.a.createElement("h4",{className:"text--color-secondary"},"Recordings in Microsoft Teams"),s.a.createElement("table",{className:"table table--simple table--spacing-md"},t.teamsRecordings.length&&s.a.createElement("thead",null,s.a.createElement("tr",null,s.a.createElement("th",{className:"text-start px-1"},s.a.createElement("span",null,s.a.createElement("i",{className:"fas fa-video me-2 text--color-meta"}),"Name")),s.a.createElement("th",{className:"text-end px-1"},s.a.createElement("span",null,s.a.createElement("i",{className:"fas fa-calendar me-2 text--color-meta"}),"Recording date & time")),s.a.createElement("th",{className:"text-end px-1"},s.a.createElement("span",null," ")))),s.a.createElement(foe,{store:t})))})),yoe=Object(se.c)((function(e){var t=e.store;return s.a.createElement("div",{className:"container-fluid border-all-sidebar mb-5"},s.a.createElement("ul",{className:"list--table list--table-compact "},s.a.createElement("li",{className:"list--table-header row"},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement("h6",{className:"text--size-800rem text--weight-700 text--color-secondary my-1"},"Integration Settings for Microsoft Teams",t.saved&&s.a.createElement("span",{className:"badge badge-success float-lg-end ms-2 my-0 my-lg-1"},s.a.createElement("i",{className:"far fa-check me-1"}),"Saved")))),s.a.createElement("li",{className:"list--table-item form-group row py-1"},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement(P5.a,{className:"form-group position--relative mb-3",labelIcon:!1,value:t.language,showAutoDetect:!0,onChange:t.setLanguage,label:"Default meeting language"}))),s.a.createElement("li",{className:"list--table-item form-group row py-1"},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement("h3",{className:"text--size-1000rem text--color-meta-dark text--transform-none"},"Default folder for Microsoft Teams transcripts"),s.a.createElement("div",{className:"form-control h-auto bgcolor--white text--size-1000rem mb-2",onClick:t.startChoosingFolder},s.a.createElement("div",{className:"text--weight-700 d-inline-block"},s.a.createElement("i",{className:"far fa-fw fa-folder-open me-2"}),t.folder.name),s.a.createElement("a",{className:"link d-block d-md-inline-block btn btn-xs mb-0 mt-2 px-3 mt-md-0 float-none float-md-end"},s.a.createElement("i",{className:"far fa-fw fa-folders me-2"}),"Change folder")),s.a.createElement(N5,{store:t,isOpen:t.isChoosingFolder,onRequestClose:t.stopChoosingFolder}))),s.a.createElement("li",{className:"list--table-item form-group row py-1"},s.a.createElement("div",{className:"col-sm-12"},s.a.createElement("h3",{className:"text--size-1000rem text--color-meta-dark text--transform-none"},"Automate Microsoft Teams transcripts"),s.a.createElement(Au,{label:"Automatically transcribe new Microsoft Teams recordings",onChange:t.toggleAutoTranscribe,checked:t.autoTranscribe})))),s.a.createElement("div",{className:"form-actions mt-3"},s.a.createElement("div",{className:"p-0"},s.a.createElement("button",{className:"btn btn-primary t--timecode-realign-button",onClick:t.save},s.a.createElement("i",{className:"far fa-check me-2"}),t.saving?"Applying settings...":"Save and apply"),s.a.createElement("a",{className:"btn",href:"/"},s.a.createElement("i",{className:"far fa-times me-2"}),"Cancel"))))})),boe=Object(se.c)((function(e){var t=e.store;return s.a.createElement("div",{className:"zoom-app-container"},s.a.createElement(yoe,{store:t}),t.isLoading&&s.a.createElement("div",{className:"text-center text--color-secondary"},s.a.createElement("i",{className:"fad fa-4x fa-spinner-third fa-spin"})),t.isImporting&&s.a.createElement("div",{className:"text-center text--color-secondary"},s.a.createElement("i",{className:"fad fa-4x fa-spinner-third fa-spin"}),s.a.createElement("h4",{className:"mt-3 text--color-secondary"},"Importing Microsoft Teams recordings")),t.isConnected&&s.a.createElement(hoe,{store:t}))}));function voe(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function goe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function woe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,"symbol"==typeof(a=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?a:String(a)),r)}var o,a}function Eoe(e,t,n){return t&&woe(e.prototype,t),n&&woe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _oe(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var koe=(Nre=d.action.bound,Pre=d.action.bound,Tre=d.action.bound,Mre=d.action.bound,Are=d.action.bound,Lre=d.action.bound,Rre=d.action.bound,zre=_oe((Fre=function(){function e(t){var n=this;goe(this,e),voe(this,"saving",zre,this),voe(this,"saved",Bre,this),voe(this,"status",Yre,this),voe(this,"teamsRecordings",Ire,this),voe(this,"language",Hre,this),voe(this,"autoTranscribe",Ure,this),voe(this,"folder",Wre,this),voe(this,"isChoosingFolder",Vre,this),this.toJSON=function(){return{default_language:n.language,default_folder_id:n.folder.id,auto_transcribe:n.autoTranscribe}},this.language=t.defaultLanguage,this.autoTranscribe=t.autoTranscribe,Object(d.reaction)((function(){return n.toJSON()}),(function(){return n.saved=!1})),t.defaultFolder&&(this.folder=t.defaultFolder)}return Eoe(e,[{key:"fetch",value:function(){var e=this;et.a.get("/microsoft_teams_recordings.json").then((function(t){var n=t.data;e.status=n.status,"importing"===e.status?setTimeout(e.fetch,3e3):"error"===e.status?window.location="/microsoft_teams_recordings/error":e.teamsRecordings=n.teams_recordings.map((function(t){return new Ooe(e,t)}))}))}},{key:"save",value:function(){var e=this;return this.saving=!0,et.a.put("/microsoft_graph.json",this.toJSON()).then((function(){e.saved=!0,e.saving=!1}))}},{key:"toggleAutoTranscribe",value:function(){this.autoTranscribe=!this.autoTranscribe}},{key:"setLanguage",value:function(e){this.language=e.value}},{key:"setFolder",value:function(e){this.folder=e}},{key:"startChoosingFolder",value:function(){this.isChoosingFolder=!0}},{key:"stopChoosingFolder",value:function(){this.isChoosingFolder=!1}},{key:"isLoading",get:function(){return"loading"===this.status}},{key:"isImporting",get:function(){return"importing"===this.status}},{key:"isConnected",get:function(){return"connected"===this.status}}]),e}()).prototype,"saving",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Bre=_oe(Fre.prototype,"saved",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Yre=_oe(Fre.prototype,"status",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"loading"}}),Ire=_oe(Fre.prototype,"teamsRecordings",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Hre=_oe(Fre.prototype,"language",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"en"}}),Ure=_oe(Fre.prototype,"autoTranscribe",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Wre=_oe(Fre.prototype,"folder",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{id:null,name:"Home"}}}),Vre=_oe(Fre.prototype,"isChoosingFolder",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_oe(Fre.prototype,"fetch",[Nre],Object.getOwnPropertyDescriptor(Fre.prototype,"fetch"),Fre.prototype),_oe(Fre.prototype,"save",[Pre],Object.getOwnPropertyDescriptor(Fre.prototype,"save"),Fre.prototype),_oe(Fre.prototype,"toggleAutoTranscribe",[Tre],Object.getOwnPropertyDescriptor(Fre.prototype,"toggleAutoTranscribe"),Fre.prototype),_oe(Fre.prototype,"setLanguage",[Mre],Object.getOwnPropertyDescriptor(Fre.prototype,"setLanguage"),Fre.prototype),_oe(Fre.prototype,"setFolder",[Are],Object.getOwnPropertyDescriptor(Fre.prototype,"setFolder"),Fre.prototype),_oe(Fre.prototype,"startChoosingFolder",[Lre],Object.getOwnPropertyDescriptor(Fre.prototype,"startChoosingFolder"),Fre.prototype),_oe(Fre.prototype,"stopChoosingFolder",[Rre],Object.getOwnPropertyDescriptor(Fre.prototype,"stopChoosingFolder"),Fre.prototype),_oe(Fre.prototype,"isLoading",[d.computed],Object.getOwnPropertyDescriptor(Fre.prototype,"isLoading"),Fre.prototype),_oe(Fre.prototype,"isImporting",[d.computed],Object.getOwnPropertyDescriptor(Fre.prototype,"isImporting"),Fre.prototype),_oe(Fre.prototype,"isConnected",[d.computed],Object.getOwnPropertyDescriptor(Fre.prototype,"isConnected"),Fre.prototype),Fre),Ooe=(qre=d.action.bound,Gre=d.action.bound,Kre=d.action.bound,$re=d.action.bound,Xre=_oe((Jre=function(){function e(t,n){goe(this,e),voe(this,"id",Xre,this),voe(this,"recordingId",Qre,this),voe(this,"name",Zre,this),voe(this,"meetingCreatedAt",eoe,this),voe(this,"recordingName",toe,this),voe(this,"askingToTranscribe",noe,this),voe(this,"saving",roe,this),this.store=t,this.id=n.id,this.name=n.name,this.recordingName=n.recording_name||n.name,this.meetingCreatedAt=n.meeting_created_at,this.recordingId=n.recording_id}return Eoe(e,[{key:"transcribe",value:function(){var e=this;this.saving=!0,et.a.put("/microsoft_teams_recordings/".concat(this.id,"/transcribe.json"),{name:this.recordingName,language:this.store.language,folder_id:this.store.folder.id}).then((function(t){var n=t.data;e.recordingId=n.recording_id,e.stopAskingToTranscribe()}))}},{key:"setRecordingName",value:function(e){this.recordingName=e.target.value}},{key:"askToTranscribe",value:function(){this.askingToTranscribe=!0}},{key:"stopAskingToTranscribe",value:function(){this.askingToTranscribe=!1}},{key:"formattedMeetingCreatedAt",get:function(){return Ol.a.unix(this.meetingCreatedAt).format("MM/DD/YYYY [@] h:mm a")}}]),e}()).prototype,"id",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qre=_oe(Jre.prototype,"recordingId",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Zre=_oe(Jre.prototype,"name",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),eoe=_oe(Jre.prototype,"meetingCreatedAt",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),toe=_oe(Jre.prototype,"recordingName",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),noe=_oe(Jre.prototype,"askingToTranscribe",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),roe=_oe(Jre.prototype,"saving",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_oe(Jre.prototype,"transcribe",[qre],Object.getOwnPropertyDescriptor(Jre.prototype,"transcribe"),Jre.prototype),_oe(Jre.prototype,"setRecordingName",[Gre],Object.getOwnPropertyDescriptor(Jre.prototype,"setRecordingName"),Jre.prototype),_oe(Jre.prototype,"askToTranscribe",[Kre],Object.getOwnPropertyDescriptor(Jre.prototype,"askToTranscribe"),Jre.prototype),_oe(Jre.prototype,"stopAskingToTranscribe",[$re],Object.getOwnPropertyDescriptor(Jre.prototype,"stopAskingToTranscribe"),Jre.prototype),_oe(Jre.prototype,"formattedMeetingCreatedAt",[d.computed],Object.getOwnPropertyDescriptor(Jre.prototype,"formattedMeetingCreatedAt"),Jre.prototype),Jre),xoe=koe,Soe=function(){var e=new xoe(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});e.fetch(),u.a.render(s.a.createElement(boe,{store:e}),document.getElementById("teams_app"))},joe=n(499);window.$=window.jQuery=i.a,n(447).start(),window.sonix={initAnalyticsApp:Fn,initAutoReplacePage:hee,initTranscriptPage:g4,initFolderPage:Dm,initUploadPage:K8,initCallPage:K4,initCancelPage:jne,initStatusTagsPage:ute,initSonixMediaPlayerSettings:$te,initCelebration:joe.a,initVideoExportsPage:mre,initMicrosoftTeamsApp:Soe,initZoomPage:loe,search:Object(d.observable)({folder:null})},document.addEventListener("DOMContentLoaded",(function(){if(new h.a(".clipboard-btn"),p.a.setAppElement(document.body),!window.transcriptPage&&window.userData){var e=new Pn(window.userData);u.a.render(s.a.createElement(ah,{user:e}),document.getElementById("top-nav"))}}))}]);