mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.3 MiB
56 lines
1.3 MiB
"use strict";(function(){var une=Object.create;var fm=Object.defineProperty;var sne=Object.getOwnPropertyDescriptor;var lne=Object.getOwnPropertyNames;var cne=Object.getPrototypeOf,fne=Object.prototype.hasOwnProperty;var n=function(r,e){return fm(r,"name",{value:e,configurable:!0})};var x=function(r,e){return function(){return e||r((e={exports:{}}).exports,e),e.exports}},pm=function(r,e){for(var t in e)fm(r,t,{get:e[t],enumerable:!0})},pne=function(r,e,t,i){if(e&&typeof e=="object"||typeof e=="function")for(var o=lne(e),a=0,u=o.length,c;a<u;a++)c=o[a],!fne.call(r,c)&&c!==t&&fm(r,c,{get:function(l){return e[l]}.bind(null,c),enumerable:!(i=sne(e,c))||i.enumerable});return r};var Ce=function(r,e,t){return t=r!=null?une(cne(r)):{},pne(e||!r||!r.__esModule?fm(t,"default",{value:r,enumerable:!0}):t,r)};var ye=x(function(scr,$F){function jl(r){"@babel/helpers - typeof";return jl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jl(r)}n(jl,"_typeof");var dm=n(function(e){return e&&e.Math==Math&&e},"check");$F.exports=dm((typeof globalThis=="undefined"?"undefined":jl(globalThis))=="object"&&globalThis)||dm((typeof window=="undefined"?"undefined":jl(window))=="object"&&window)||dm((typeof self=="undefined"?"undefined":jl(self))=="object"&&self)||dm((typeof global=="undefined"?"undefined":jl(global))=="object"&&global)||function(){return this}()||Function("return this")()});var ue=x(function(ccr,GF){GF.exports=function(r){try{return!!r()}catch(e){return!0}}});var Ae=x(function(fcr,zF){var dne=ue();zF.exports=!dne(function(){return Object.defineProperty({},1,{get:n(function(){return 7},"get")})[1]!=7})});var Fl=x(function(dcr,HF){var hne=ue();HF.exports=!hne(function(){var r=function(){}.bind();return typeof r!="function"||r.hasOwnProperty("prototype")})});var le=x(function(hcr,WF){var vne=Fl(),hm=Function.prototype.call;WF.exports=vne?hm.bind(hm):function(){return hm.apply(hm,arguments)}});var Pp=x(function(YF){"use strict";var VF={}.propertyIsEnumerable,KF=Object.getOwnPropertyDescriptor,yne=KF&&!VF.call({1:2},1);YF.f=yne?n(function(e){var t=KF(this,e);return!!t&&t.enumerable},"propertyIsEnumerable"):VF});var gn=x(function(mcr,XF){XF.exports=function(r,e){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:e}}});var se=x(function(gcr,ZF){var QF=Fl(),JF=Function.prototype,mne=JF.bind,gO=JF.call,gne=QF&&mne.bind(gO,gO);ZF.exports=QF?function(r){return r&&gne(r)}:function(r){return r&&function(){return gO.apply(r,arguments)}}});var Zt=x(function(bcr,rC){var eC=se(),bne=eC({}.toString),wne=eC("".slice);rC.exports=function(r){return wne(bne(r),8,-1)}});var Oa=x(function(wcr,tC){var Sne=se(),One=ue(),Pne=Zt(),bO=Object,_ne=Sne("".split);tC.exports=One(function(){return!bO("z").propertyIsEnumerable(0)})?function(r){return Pne(r)=="String"?_ne(r,""):bO(r)}:bO});var Br=x(function(Scr,nC){var Ene=TypeError;nC.exports=function(r){if(r==null)throw Ene("Can't call method on "+r);return r}});var $r=x(function(Ocr,iC){var Tne=Oa(),Rne=Br();iC.exports=function(r){return Tne(Rne(r))}});var ke=x(function(Pcr,aC){aC.exports=function(r){return typeof r=="function"}});var Le=x(function(_cr,oC){function wO(r){"@babel/helpers - typeof";return wO=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wO(r)}n(wO,"_typeof");var Ane=ke();oC.exports=function(r){return wO(r)=="object"?r!==null:Ane(r)}});var ge=x(function(Tcr,uC){var SO=ye(),Ine=ke(),qne=n(function(e){return Ine(e)?e:void 0},"aFunction");uC.exports=function(r,e){return arguments.length<2?qne(SO[r]):SO[r]&&SO[r][e]}});var Nt=x(function(Acr,sC){var kne=se();sC.exports=kne({}.isPrototypeOf)});var Pa=x(function(Icr,lC){var jne=ge();lC.exports=jne("navigator","userAgent")||""});var _o=x(function(qcr,vC){var hC=ye(),OO=Pa(),cC=hC.process,fC=hC.Deno,pC=cC&&cC.versions||fC&&fC.version,dC=pC&&pC.v8,pi,vm;dC&&(pi=dC.split("."),vm=pi[0]>0&&pi[0]<4?1:+(pi[0]+pi[1]));!vm&&OO&&(pi=OO.match(/Edge\/(\d+)/),(!pi||pi[1]>=74)&&(pi=OO.match(/Chrome\/(\d+)/),pi&&(vm=+pi[1])));vC.exports=vm});var Eu=x(function(kcr,mC){var yC=_o(),Fne=ue();mC.exports=!!Object.getOwnPropertySymbols&&!Fne(function(){var r=Symbol();return!String(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&yC&&yC<41})});var _O=x(function(jcr,gC){function PO(r){"@babel/helpers - typeof";return PO=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},PO(r)}n(PO,"_typeof");var Cne=Eu();gC.exports=Cne&&!Symbol.sham&&PO(Symbol.iterator)=="symbol"});var Eo=x(function(Ccr,bC){function EO(r){"@babel/helpers - typeof";return EO=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},EO(r)}n(EO,"_typeof");var Lne=ge(),Nne=ke(),xne=Nt(),Dne=_O(),Mne=Object;bC.exports=Dne?function(r){return EO(r)=="symbol"}:function(r){var e=Lne("Symbol");return Nne(e)&&xne(e.prototype,Mne(r))}});var To=x(function(Ncr,wC){var Une=String;wC.exports=function(r){try{return Une(r)}catch(e){return"Object"}}});var ve=x(function(xcr,SC){var Bne=ke(),$ne=To(),Gne=TypeError;SC.exports=function(r){if(Bne(r))return r;throw Gne($ne(r)+" is not a function")}});var Qr=x(function(Dcr,OC){var zne=ve();OC.exports=function(r,e){var t=r[e];return t==null?void 0:zne(t)}});var IO=x(function(Mcr,PC){var TO=le(),RO=ke(),AO=Le(),Hne=TypeError;PC.exports=function(r,e){var t,i;if(e==="string"&&RO(t=r.toString)&&!AO(i=TO(t,r))||RO(t=r.valueOf)&&!AO(i=TO(t,r))||e!=="string"&&RO(t=r.toString)&&!AO(i=TO(t,r)))return i;throw Hne("Can't convert object to primitive value")}});var mr=x(function(Ucr,_C){_C.exports=!1});var ym=x(function(Bcr,TC){var EC=ye(),Wne=Object.defineProperty;TC.exports=function(r,e){try{Wne(EC,r,{value:e,configurable:!0,writable:!0})}catch(t){EC[r]=e}return e}});var _p=x(function($cr,AC){var Vne=ye(),Kne=ym(),RC="__core-js_shared__",Yne=Vne[RC]||Kne(RC,{});AC.exports=Yne});var Ro=x(function(Gcr,qC){var Xne=mr(),IC=_p();(qC.exports=function(r,e){return IC[r]||(IC[r]=e!==void 0?e:{})})("versions",[]).push({version:"3.24.1",mode:Xne?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"})});var Ue=x(function(zcr,kC){var Qne=Br(),Jne=Object;kC.exports=function(r){return Jne(Qne(r))}});var Ne=x(function(Hcr,jC){var Zne=se(),eie=Ue(),rie=Zne({}.hasOwnProperty);jC.exports=Object.hasOwn||n(function(e,t){return rie(eie(e),t)},"hasOwn")});var Tu=x(function(Vcr,FC){var tie=se(),nie=0,iie=Math.random(),aie=tie(1 .toString);FC.exports=function(r){return"Symbol("+(r===void 0?"":r)+")_"+aie(++nie+iie,36)}});var Se=x(function(Kcr,DC){var oie=ye(),uie=Ro(),CC=Ne(),sie=Tu(),LC=Eu(),xC=_O(),Cl=uie("wks"),Ru=oie.Symbol,NC=Ru&&Ru.for,lie=xC?Ru:Ru&&Ru.withoutSetter||sie;DC.exports=function(r){if(!CC(Cl,r)||!(LC||typeof Cl[r]=="string")){var e="Symbol."+r;LC&&CC(Ru,r)?Cl[r]=Ru[r]:xC&&NC?Cl[r]=NC(e):Cl[r]=lie(e)}return Cl[r]}});var mm=x(function(Ycr,BC){var cie=le(),MC=Le(),UC=Eo(),fie=Qr(),pie=IO(),die=Se(),hie=TypeError,vie=die("toPrimitive");BC.exports=function(r,e){if(!MC(r)||UC(r))return r;var t=fie(r,vie),i;if(t){if(e===void 0&&(e="default"),i=cie(t,r,e),!MC(i)||UC(i))return i;throw hie("Can't convert object to primitive value")}return e===void 0&&(e="number"),pie(r,e)}});var Ui=x(function(Xcr,$C){var yie=mm(),mie=Eo();$C.exports=function(r){var e=yie(r,"string");return mie(e)?e:e+""}});var Ep=x(function(Qcr,zC){var gie=ye(),GC=Le(),qO=gie.document,bie=GC(qO)&&GC(qO.createElement);zC.exports=function(r){return bie?qO.createElement(r):{}}});var kO=x(function(Jcr,HC){var wie=Ae(),Sie=ue(),Oie=Ep();HC.exports=!wie&&!Sie(function(){return Object.defineProperty(Oie("div"),"a",{get:n(function(){return 7},"get")}).a!=7})});var ht=x(function(VC){var Pie=Ae(),_ie=le(),Eie=Pp(),Tie=gn(),Rie=$r(),Aie=Ui(),Iie=Ne(),qie=kO(),WC=Object.getOwnPropertyDescriptor;VC.f=Pie?WC:n(function(e,t){if(e=Rie(e),t=Aie(t),qie)try{return WC(e,t)}catch(i){}if(Iie(e,t))return Tie(!_ie(Eie.f,e,t),e[t])},"getOwnPropertyDescriptor")});var jO=x(function(tfr,KC){var kie=Ae(),jie=ue();KC.exports=kie&&jie(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})});var re=x(function(nfr,YC){var Fie=Le(),Cie=String,Lie=TypeError;YC.exports=function(r){if(Fie(r))return r;throw Lie(Cie(r)+" is not an object")}});var tr=x(function(QC){var Nie=Ae(),xie=kO(),Die=jO(),gm=re(),XC=Ui(),Mie=TypeError,FO=Object.defineProperty,Uie=Object.getOwnPropertyDescriptor,CO="enumerable",LO="configurable",NO="writable";QC.f=Nie?Die?n(function(e,t,i){if(gm(e),t=XC(t),gm(i),typeof e=="function"&&t==="prototype"&&"value"in i&&NO in i&&!i[NO]){var o=Uie(e,t);o&&o[NO]&&(e[t]=i.value,i={configurable:LO in i?i[LO]:o[LO],enumerable:CO in i?i[CO]:o[CO],writable:!1})}return FO(e,t,i)},"defineProperty"):FO:n(function(e,t,i){if(gm(e),t=XC(t),gm(i),xie)try{return FO(e,t,i)}catch(o){}if("get"in i||"set"in i)throw Mie("Accessors not supported");return"value"in i&&(e[t]=i.value),e},"defineProperty")});var Jr=x(function(ofr,JC){var Bie=Ae(),$ie=tr(),Gie=gn();JC.exports=Bie?function(r,e,t){return $ie.f(r,e,Gie(1,t))}:function(r,e,t){return r[e]=t,r}});var Au=x(function(ufr,eL){var xO=Ae(),zie=Ne(),ZC=Function.prototype,Hie=xO&&Object.getOwnPropertyDescriptor,DO=zie(ZC,"name"),Wie=DO&&n(function(){},"something").name==="something",Vie=DO&&(!xO||xO&&Hie(ZC,"name").configurable);eL.exports={EXISTS:DO,PROPER:Wie,CONFIGURABLE:Vie}});var Ll=x(function(lfr,rL){var Kie=se(),Yie=ke(),MO=_p(),Xie=Kie(Function.toString);Yie(MO.inspectSource)||(MO.inspectSource=function(r){return Xie(r)});rL.exports=MO.inspectSource});var UO=x(function(cfr,nL){var Qie=ye(),Jie=ke(),Zie=Ll(),tL=Qie.WeakMap;nL.exports=Jie(tL)&&/native code/.test(Zie(tL))});var Tp=x(function(ffr,aL){var eae=Ro(),rae=Tu(),iL=eae("keys");aL.exports=function(r){return iL[r]||(iL[r]=rae(r))}});var Nl=x(function(pfr,oL){oL.exports={}});var ar=x(function(dfr,fL){var tae=UO(),cL=ye(),BO=se(),nae=Le(),iae=Jr(),$O=Ne(),GO=_p(),aae=Tp(),oae=Nl(),uL="Object already initialized",HO=cL.TypeError,uae=cL.WeakMap,bm,Rp,wm,sae=n(function(e){return wm(e)?Rp(e):bm(e,{})},"enforce"),lae=n(function(e){return function(t){var i;if(!nae(t)||(i=Rp(t)).type!==e)throw HO("Incompatible receiver, "+e+" required");return i}},"getterFor");tae||GO.state?(Ao=GO.state||(GO.state=new uae),sL=BO(Ao.get),zO=BO(Ao.has),lL=BO(Ao.set),bm=n(function(e,t){if(zO(Ao,e))throw new HO(uL);return t.facade=e,lL(Ao,e,t),t},"set"),Rp=n(function(e){return sL(Ao,e)||{}},"get"),wm=n(function(e){return zO(Ao,e)},"has")):(Iu=aae("state"),oae[Iu]=!0,bm=n(function(e,t){if($O(e,Iu))throw new HO(uL);return t.facade=e,iae(e,Iu,t),t},"set"),Rp=n(function(e){return $O(e,Iu)?e[Iu]:{}},"get"),wm=n(function(e){return $O(e,Iu)},"has"));var Ao,sL,zO,lL,Iu;fL.exports={set:bm,get:Rp,has:wm,enforce:sae,getterFor:lae}});var Pm=x(function(vfr,dL){var cae=ue(),fae=ke(),Sm=Ne(),WO=Ae(),pae=Au().CONFIGURABLE,dae=Ll(),pL=ar(),hae=pL.enforce,vae=pL.get,Om=Object.defineProperty,yae=WO&&!cae(function(){return Om(function(){},"length",{value:8}).length!==8}),mae=String(String).split("String"),gae=dL.exports=function(r,e,t){String(e).slice(0,7)==="Symbol("&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),t&&t.getter&&(e="get "+e),t&&t.setter&&(e="set "+e),(!Sm(r,"name")||pae&&r.name!==e)&&(WO?Om(r,"name",{value:e,configurable:!0}):r.name=e),yae&&t&&Sm(t,"arity")&&r.length!==t.arity&&Om(r,"length",{value:t.arity});try{t&&Sm(t,"constructor")&&t.constructor?WO&&Om(r,"prototype",{writable:!1}):r.prototype&&(r.prototype=void 0)}catch(o){}var i=hae(r);return Sm(i,"source")||(i.source=mae.join(typeof e=="string"?e:"")),r};Function.prototype.toString=gae(n(function(){return fae(this)&&vae(this).source||dae(this)},"toString"),"toString")});var gr=x(function(mfr,hL){var bae=ke(),wae=tr(),Sae=Pm(),Oae=ym();hL.exports=function(r,e,t,i){i||(i={});var o=i.enumerable,a=i.name!==void 0?i.name:e;if(bae(t)&&Sae(t,a,i),i.global)o?r[e]=t:Oae(e,t);else{try{i.unsafe?r[e]&&(o=!0):delete r[e]}catch(u){}o?r[e]=t:wae.f(r,e,{value:t,enumerable:!1,configurable:!i.nonConfigurable,writable:!i.nonWritable})}return r}});var VO=x(function(gfr,vL){var Pae=Math.ceil,_ae=Math.floor;vL.exports=Math.trunc||n(function(e){var t=+e;return(t>0?_ae:Pae)(t)},"trunc")});var Pr=x(function(wfr,yL){var Eae=VO();yL.exports=function(r){var e=+r;return e!==e||e===0?0:Eae(e)}});var di=x(function(Sfr,mL){var Tae=Pr(),Rae=Math.max,Aae=Math.min;mL.exports=function(r,e){var t=Tae(r);return t<0?Rae(t+e,0):Aae(t,e)}});var bn=x(function(Ofr,gL){var Iae=Pr(),qae=Math.min;gL.exports=function(r){return r>0?qae(Iae(r),9007199254740991):0}});var $e=x(function(Pfr,bL){var kae=bn();bL.exports=function(r){return kae(r.length)}});var Ap=x(function(_fr,SL){var jae=$r(),Fae=di(),Cae=$e(),wL=n(function(e){return function(t,i,o){var a=jae(t),u=Cae(a),c=Fae(o,u),l;if(e&&i!=i){for(;u>c;)if(l=a[c++],l!=l)return!0}else for(;u>c;c++)if((e||c in a)&&a[c]===i)return e||c||0;return!e&&-1}},"createMethod");SL.exports={includes:wL(!0),indexOf:wL(!1)}});var YO=x(function(Tfr,PL){var Lae=se(),KO=Ne(),Nae=$r(),xae=Ap().indexOf,Dae=Nl(),OL=Lae([].push);PL.exports=function(r,e){var t=Nae(r),i=0,o=[],a;for(a in t)!KO(Dae,a)&&KO(t,a)&&OL(o,a);for(;e.length>i;)KO(t,a=e[i++])&&(~xae(o,a)||OL(o,a));return o}});var _m=x(function(Rfr,_L){_L.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var _a=x(function(EL){var Mae=YO(),Uae=_m(),Bae=Uae.concat("length","prototype");EL.f=Object.getOwnPropertyNames||n(function(e){return Mae(e,Bae)},"getOwnPropertyNames")});var Ip=x(function(TL){TL.f=Object.getOwnPropertySymbols});var Em=x(function(kfr,RL){var $ae=ge(),Gae=se(),zae=_a(),Hae=Ip(),Wae=re(),Vae=Gae([].concat);RL.exports=$ae("Reflect","ownKeys")||n(function(e){var t=zae.f(Wae(e)),i=Hae.f;return i?Vae(t,i(e)):t},"ownKeys")});var qp=x(function(Ffr,IL){var AL=Ne(),Kae=Em(),Yae=ht(),Xae=tr();IL.exports=function(r,e,t){for(var i=Kae(e),o=Xae.f,a=Yae.f,u=0;u<i.length;u++){var c=i[u];!AL(r,c)&&!(t&&AL(t,c))&&o(r,c,a(e,c))}}});var xl=x(function(Cfr,qL){var Qae=ue(),Jae=ke(),Zae=/#|\.prototype\./,kp=n(function(e,t){var i=roe[eoe(e)];return i==noe?!0:i==toe?!1:Jae(t)?Qae(t):!!t},"isForced"),eoe=kp.normalize=function(r){return String(r).replace(Zae,".").toLowerCase()},roe=kp.data={},toe=kp.NATIVE="N",noe=kp.POLYFILL="P";qL.exports=kp});var B=x(function(Nfr,kL){function Tm(r){"@babel/helpers - typeof";return Tm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tm(r)}n(Tm,"_typeof");var XO=ye(),ioe=ht().f,aoe=Jr(),ooe=gr(),uoe=ym(),soe=qp(),loe=xl();kL.exports=function(r,e){var t=r.target,i=r.global,o=r.stat,a,u,c,l,d,y;if(i?u=XO:o?u=XO[t]||uoe(t,{}):u=(XO[t]||{}).prototype,u)for(c in e){if(d=e[c],r.dontCallGetSet?(y=ioe(u,c),l=y&&y.value):l=u[c],a=loe(i?c:t+(o?".":"#")+c,r.forced),!a&&l!==void 0){if(Tm(d)==Tm(l))continue;soe(d,l)}(r.sham||l&&l.sham)&&aoe(d,"sham",!0),ooe(u,c,d,r)}}});var Rm=x(function(Dfr,FL){var coe=Se(),foe=coe("toStringTag"),jL={};jL[foe]="z";FL.exports=String(jL)==="[object z]"});var hi=x(function(Mfr,CL){var poe=Rm(),doe=ke(),Am=Zt(),hoe=Se(),voe=hoe("toStringTag"),yoe=Object,moe=Am(function(){return arguments}())=="Arguments",goe=n(function(e,t){try{return e[t]}catch(i){}},"tryGet");CL.exports=poe?Am:function(r){var e,t,i;return r===void 0?"Undefined":r===null?"Null":typeof(t=goe(e=yoe(r),voe))=="string"?t:moe?Am(e):(i=Am(e))=="Object"&&doe(e.callee)?"Arguments":i}});var Ge=x(function(Bfr,LL){var boe=hi(),woe=String;LL.exports=function(r){if(boe(r)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return woe(r)}});var qu=x(function($fr,NL){var Soe=YO(),Ooe=_m();NL.exports=Object.keys||n(function(e){return Soe(e,Ooe)},"keys")});var Im=x(function(xL){var Poe=Ae(),_oe=jO(),Eoe=tr(),Toe=re(),Roe=$r(),Aoe=qu();xL.f=Poe&&!_oe?Object.defineProperties:n(function(e,t){Toe(e);for(var i=Roe(t),o=Aoe(t),a=o.length,u=0,c;a>u;)Eoe.f(e,c=o[u++],i[c]);return e},"defineProperties")});var QO=x(function(Wfr,DL){var Ioe=ge();DL.exports=Ioe("document","documentElement")});var Gr=x(function(Vfr,HL){var qoe=re(),koe=Im(),ML=_m(),joe=Nl(),Foe=QO(),Coe=Ep(),Loe=Tp(),UL=">",BL="<",ZO="prototype",e1="script",GL=Loe("IE_PROTO"),JO=n(function(){},"EmptyConstructor"),zL=n(function(e){return BL+e1+UL+e+BL+"/"+e1+UL},"scriptTag"),$L=n(function(e){e.write(zL("")),e.close();var t=e.parentWindow.Object;return e=null,t},"NullProtoObjectViaActiveX"),Noe=n(function(){var e=Coe("iframe"),t="java"+e1+":",i;return e.style.display="none",Foe.appendChild(e),e.src=String(t),i=e.contentWindow.document,i.open(),i.write(zL("document.F=Object")),i.close(),i.F},"NullProtoObjectViaIFrame"),qm,km=n(function(){try{qm=new ActiveXObject("htmlfile")}catch(t){}km=typeof document!="undefined"?document.domain&&qm?$L(qm):Noe():$L(qm);for(var e=ML.length;e--;)delete km[ZO][ML[e]];return km()},"NullProtoObject");joe[GL]=!0;HL.exports=Object.create||n(function(e,t){var i;return e!==null?(JO[ZO]=qoe(e),i=new JO,JO[ZO]=null,i[GL]=e):i=km(),t===void 0?i:koe.f(i,t)},"create")});var Bi=x(function(Yfr,WL){"use strict";var xoe=Ui(),Doe=tr(),Moe=gn();WL.exports=function(r,e,t){var i=xoe(e);i in r?Doe.f(r,i,Moe(0,t)):r[i]=t}});var Dl=x(function(Xfr,KL){var VL=di(),Uoe=$e(),Boe=Bi(),$oe=Array,Goe=Math.max;KL.exports=function(r,e,t){for(var i=Uoe(r),o=VL(e,i),a=VL(t===void 0?i:t,i),u=$oe(Goe(a-o,0)),c=0;o<a;o++,c++)Boe(u,c,r[o]);return u.length=c,u}});var jm=x(function(Qfr,QL){function r1(r){"@babel/helpers - typeof";return r1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r1(r)}n(r1,"_typeof");var zoe=Zt(),Hoe=$r(),YL=_a().f,Woe=Dl(),XL=(typeof window=="undefined"?"undefined":r1(window))=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Voe=n(function(e){try{return YL(e)}catch(t){return Woe(XL)}},"getWindowNames");QL.exports.f=n(function(e){return XL&&zoe(e)=="Window"?Voe(e):YL(Hoe(e))},"getOwnPropertyNames")});var t1=x(function(JL){var Koe=Se();JL.f=Koe});var eN=x(function(epr,ZL){var Yoe=ye();ZL.exports=Yoe});var _r=x(function(rpr,tN){var rN=eN(),Xoe=Ne(),Qoe=t1(),Joe=tr().f;tN.exports=function(r){var e=rN.Symbol||(rN.Symbol={});Xoe(e,r)||Joe(e,r,{value:Qoe.f(r)})}});var n1=x(function(tpr,nN){var Zoe=le(),eue=ge(),rue=Se(),tue=gr();nN.exports=function(){var r=eue("Symbol"),e=r&&r.prototype,t=e&&e.valueOf,i=rue("toPrimitive");e&&!e[i]&&tue(e,i,function(o){return Zoe(t,this)},{arity:1})}});var en=x(function(npr,aN){var nue=tr().f,iue=Ne(),aue=Se(),iN=aue("toStringTag");aN.exports=function(r,e,t){r&&!t&&(r=r.prototype),r&&!iue(r,iN)&&nue(r,iN,{configurable:!0,value:e})}});var or=x(function(ipr,uN){var oN=se(),oue=ve(),uue=Fl(),sue=oN(oN.bind);uN.exports=function(r,e){return oue(r),e===void 0?r:uue?sue(r,e):function(){return r.apply(e,arguments)}}});var ku=x(function(apr,sN){var lue=Zt();sN.exports=Array.isArray||n(function(e){return lue(e)=="Array"},"isArray")});var vi=x(function(upr,dN){var cue=se(),fue=ue(),lN=ke(),pue=hi(),due=ge(),hue=Ll(),cN=n(function(){},"noop"),vue=[],fN=due("Reflect","construct"),i1=/^\s*(?:class|function)\b/,yue=cue(i1.exec),mue=!i1.exec(cN),jp=n(function(e){if(!lN(e))return!1;try{return fN(cN,vue,e),!0}catch(t){return!1}},"isConstructor"),pN=n(function(e){if(!lN(e))return!1;switch(pue(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return mue||!!yue(i1,hue(e))}catch(t){return!0}},"isConstructor");pN.sham=!0;dN.exports=!fN||fue(function(){var r;return jp(jp.call)||!jp(Object)||!jp(function(){r=!0})||r})?pN:jp});var mN=x(function(lpr,yN){var hN=ku(),gue=vi(),bue=Le(),wue=Se(),Sue=wue("species"),vN=Array;yN.exports=function(r){var e;return hN(r)&&(e=r.constructor,gue(e)&&(e===vN||hN(e.prototype))?e=void 0:bue(e)&&(e=e[Sue],e===null&&(e=void 0))),e===void 0?vN:e}});var ju=x(function(cpr,gN){var Oue=mN();gN.exports=function(r,e){return new(Oue(r))(e===0?0:e)}});var zr=x(function(fpr,wN){var Pue=or(),_ue=se(),Eue=Oa(),Tue=Ue(),Rue=$e(),Aue=ju(),bN=_ue([].push),Io=n(function(e){var t=e==1,i=e==2,o=e==3,a=e==4,u=e==6,c=e==7,l=e==5||u;return function(d,y,m,b){for(var w=Tue(d),S=Eue(w),P=Pue(y,m),R=Rue(S),I=0,T=b||Aue,F=t?T(d,R):i||c?T(d,0):void 0,k,U;R>I;I++)if((l||I in S)&&(k=S[I],U=P(k,I,w),e))if(t)F[I]=U;else if(U)switch(e){case 3:return!0;case 5:return k;case 6:return I;case 2:bN(F,k)}else switch(e){case 4:return!1;case 7:bN(F,k)}return u?-1:o||a?a:F}},"createMethod");wN.exports={forEach:Io(0),map:Io(1),filter:Io(2),some:Io(3),every:Io(4),find:Io(5),findIndex:Io(6),filterReject:Io(7)}});var NN=x(function(){"use strict";var Fm=B(),d1=ye(),h1=le(),Iue=se(),que=mr(),Ml=Ae(),Ul=Eu(),kue=ue(),ft=Ne(),jue=Nt(),s1=re(),Cm=$r(),v1=Ui(),Fue=Ge(),l1=gn(),Cp=Gr(),PN=qu(),Cue=_a(),_N=jm(),Lue=Ip(),EN=ht(),TN=tr(),Nue=Im(),RN=Pp(),a1=gr(),y1=Ro(),xue=Tp(),AN=Nl(),SN=Tu(),Due=Se(),Mue=t1(),Uue=_r(),Bue=n1(),$ue=en(),IN=ar(),Lm=zr().forEach,rn=xue("hidden"),Nm="Symbol",Lp="prototype",Gue=IN.set,ON=IN.getterFor(Nm),Vn=Object[Lp],Fu=d1.Symbol,Fp=Fu&&Fu[Lp],zue=d1.TypeError,o1=d1.QObject,qN=EN.f,qo=TN.f,kN=_N.f,Hue=RN.f,jN=Iue([].push),Ea=y1("symbols"),Np=y1("op-symbols"),Wue=y1("wks"),c1=!o1||!o1[Lp]||!o1[Lp].findChild,f1=Ml&&kue(function(){return Cp(qo({},"a",{get:n(function(){return qo(this,"a",{value:7}).a},"get")})).a!=7})?function(r,e,t){var i=qN(Vn,e);i&&delete Vn[e],qo(r,e,t),i&&r!==Vn&&qo(Vn,e,i)}:qo,u1=n(function(e,t){var i=Ea[e]=Cp(Fp);return Gue(i,{type:Nm,tag:e,description:t}),Ml||(i.description=t),i},"wrap"),xm=n(function(e,t,i){e===Vn&&xm(Np,t,i),s1(e);var o=v1(t);return s1(i),ft(Ea,o)?(i.enumerable?(ft(e,rn)&&e[rn][o]&&(e[rn][o]=!1),i=Cp(i,{enumerable:l1(0,!1)})):(ft(e,rn)||qo(e,rn,l1(1,{})),e[rn][o]=!0),f1(e,o,i)):qo(e,o,i)},"defineProperty"),m1=n(function(e,t){s1(e);var i=Cm(t),o=PN(i).concat(LN(i));return Lm(o,function(a){(!Ml||h1(p1,i,a))&&xm(e,a,i[a])}),e},"defineProperties"),Vue=n(function(e,t){return t===void 0?Cp(e):m1(Cp(e),t)},"create"),p1=n(function(e){var t=v1(e),i=h1(Hue,this,t);return this===Vn&&ft(Ea,t)&&!ft(Np,t)?!1:i||!ft(this,t)||!ft(Ea,t)||ft(this,rn)&&this[rn][t]?i:!0},"propertyIsEnumerable"),FN=n(function(e,t){var i=Cm(e),o=v1(t);if(!(i===Vn&&ft(Ea,o)&&!ft(Np,o))){var a=qN(i,o);return a&&ft(Ea,o)&&!(ft(i,rn)&&i[rn][o])&&(a.enumerable=!0),a}},"getOwnPropertyDescriptor"),CN=n(function(e){var t=kN(Cm(e)),i=[];return Lm(t,function(o){!ft(Ea,o)&&!ft(AN,o)&&jN(i,o)}),i},"getOwnPropertyNames"),LN=n(function(e){var t=e===Vn,i=kN(t?Np:Cm(e)),o=[];return Lm(i,function(a){ft(Ea,a)&&(!t||ft(Vn,a))&&jN(o,Ea[a])}),o},"$getOwnPropertySymbols");Ul||(Fu=n(function(){if(jue(Fp,this))throw zue("Symbol is not a constructor");var e=!arguments.length||arguments[0]===void 0?void 0:Fue(arguments[0]),t=SN(e),i=n(function o(a){this===Vn&&h1(o,Np,a),ft(this,rn)&&ft(this[rn],t)&&(this[rn][t]=!1),f1(this,t,l1(1,a))},"setter");return Ml&&c1&&f1(Vn,t,{configurable:!0,set:i}),u1(t,e)},"_Symbol"),Fp=Fu[Lp],a1(Fp,"toString",n(function(){return ON(this).tag},"toString")),a1(Fu,"withoutSetter",function(r){return u1(SN(r),r)}),RN.f=p1,TN.f=xm,Nue.f=m1,EN.f=FN,Cue.f=_N.f=CN,Lue.f=LN,Mue.f=function(r){return u1(Due(r),r)},Ml&&(qo(Fp,"description",{configurable:!0,get:n(function(){return ON(this).description},"description")}),que||a1(Vn,"propertyIsEnumerable",p1,{unsafe:!0})));Fm({global:!0,constructor:!0,wrap:!0,forced:!Ul,sham:!Ul},{Symbol:Fu});Lm(PN(Wue),function(r){Uue(r)});Fm({target:Nm,stat:!0,forced:!Ul},{useSetter:n(function(){c1=!0},"useSetter"),useSimple:n(function(){c1=!1},"useSimple")});Fm({target:"Object",stat:!0,forced:!Ul,sham:!Ml},{create:Vue,defineProperty:xm,defineProperties:m1,getOwnPropertyDescriptor:FN});Fm({target:"Object",stat:!0,forced:!Ul},{getOwnPropertyNames:CN});Bue();$ue(Fu,Nm);AN[rn]=!0});var g1=x(function(ypr,xN){var Kue=Eu();xN.exports=Kue&&!!Symbol.for&&!!Symbol.keyFor});var MN=x(function(){var Yue=B(),Xue=ge(),Que=Ne(),Jue=Ge(),DN=Ro(),Zue=g1(),b1=DN("string-to-symbol-registry"),ese=DN("symbol-to-string-registry");Yue({target:"Symbol",stat:!0,forced:!Zue},{for:n(function(e){var t=Jue(e);if(Que(b1,t))return b1[t];var i=Xue("Symbol")(t);return b1[t]=i,ese[i]=t,i},"_for")})});var BN=x(function(){var rse=B(),tse=Ne(),nse=Eo(),ise=To(),ase=Ro(),ose=g1(),UN=ase("symbol-to-string-registry");rse({target:"Symbol",stat:!0,forced:!ose},{keyFor:n(function(e){if(!nse(e))throw TypeError(ise(e)+" is not a symbol");if(tse(UN,e))return UN[e]},"keyFor")})});var tn=x(function(Ppr,HN){function w1(r){"@babel/helpers - typeof";return w1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w1(r)}n(w1,"_typeof");var use=Fl(),zN=Function.prototype,$N=zN.apply,GN=zN.call;HN.exports=(typeof Reflect=="undefined"?"undefined":w1(Reflect))=="object"&&Reflect.apply||(use?GN.bind($N):function(){return GN.apply($N,arguments)})});var ko=x(function(Epr,WN){var sse=se();WN.exports=sse([].slice)});var S1=x(function(){var lse=B(),ZN=ge(),ex=tn(),cse=le(),xp=se(),rx=ue(),fse=ku(),pse=ke(),dse=Le(),VN=Eo(),tx=ko(),hse=Eu(),jo=ZN("JSON","stringify"),Dm=xp(/./.exec),KN=xp("".charAt),vse=xp("".charCodeAt),yse=xp("".replace),mse=xp(1 .toString),gse=/[\uD800-\uDFFF]/g,YN=/^[\uD800-\uDBFF]$/,XN=/^[\uDC00-\uDFFF]$/,QN=!hse||rx(function(){var r=ZN("Symbol")();return jo([r])!="[null]"||jo({a:r})!="{}"||jo(Object(r))!="{}"}),JN=rx(function(){return jo("\uDF06\uD834")!=='"\\udf06\\ud834"'||jo("\uDEAD")!=='"\\udead"'}),bse=n(function(e,t){var i=tx(arguments),o=t;if(!(!dse(t)&&e===void 0||VN(e)))return fse(t)||(t=n(function(u,c){if(pse(o)&&(c=cse(o,this,u,c)),!VN(c))return c},"replacer")),i[1]=t,ex(jo,null,i)},"stringifyWithSymbolsFix"),wse=n(function(e,t,i){var o=KN(i,t-1),a=KN(i,t+1);return Dm(YN,e)&&!Dm(XN,a)||Dm(XN,e)&&!Dm(YN,o)?"\\u"+mse(vse(e,0),16):e},"fixIllFormed");jo&&lse({target:"JSON",stat:!0,arity:3,forced:QN||JN},{stringify:n(function(e,t,i){var o=tx(arguments),a=ex(QN?bse:jo,null,o);return JN&&typeof a=="string"?yse(a,gse,wse):a},"stringify")})});var ix=x(function(){var Sse=B(),Ose=Eu(),Pse=ue(),nx=Ip(),_se=Ue(),Ese=!Ose||Pse(function(){nx.f(1)});Sse({target:"Object",stat:!0,forced:Ese},{getOwnPropertySymbols:n(function(e){var t=nx.f;return t?t(_se(e)):[]},"getOwnPropertySymbols")})});var _1=x(function(Fpr,fx){function P1(r){"@babel/helpers - typeof";return P1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P1(r)}n(P1,"_typeof");var Qse=ke(),Jse=String,Zse=TypeError;fx.exports=function(r){if(P1(r)=="object"||Qse(r))return r;throw Zse("Can't set "+Jse(r)+" as a prototype")}});var $i=x(function(Lpr,px){var ele=se(),rle=re(),tle=_1();px.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var r=!1,e={},t;try{t=ele(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),t(e,[]),r=e instanceof Array}catch(i){}return n(function(o,a){return rle(o),tle(a),r?t(o,a):o.__proto__=a,o},"setPrototypeOf")}():void 0)});var E1=x(function(xpr,dx){var nle=tr().f;dx.exports=function(r,e,t){t in r||nle(r,t,{configurable:!0,get:n(function(){return e[t]},"get"),set:n(function(o){e[t]=o},"set")})}});var Lu=x(function(Mpr,vx){var ile=ke(),ale=Le(),hx=$i();vx.exports=function(r,e,t){var i,o;return hx&&ile(i=e.constructor)&&i!==t&&ale(o=i.prototype)&&o!==t.prototype&&hx(r,o),r}});var Bl=x(function(Upr,yx){var ole=Ge();yx.exports=function(r,e){return r===void 0?arguments.length<2?"":e:ole(r)}});var T1=x(function(Bpr,mx){var ule=Le(),sle=Jr();mx.exports=function(r,e){ule(e)&&"cause"in e&&sle(r,"cause",e.cause)}});var Mp=x(function($pr,wx){var lle=se(),gx=Error,cle=lle("".replace),fle=function(r){return String(gx(r).stack)}("zxcasd"),bx=/\n\s*at [^:]*:[^\n]*/,ple=bx.test(fle);wx.exports=function(r,e){if(ple&&typeof r=="string"&&!gx.prepareStackTrace)for(;e--;)r=cle(r,bx,"");return r}});var Um=x(function(Gpr,Sx){var dle=ue(),hle=gn();Sx.exports=!dle(function(){var r=Error("a");return"stack"in r?(Object.defineProperty(r,"stack",hle(1,7)),r.stack!==7):!0})});var A1=x(function(zpr,Rx){"use strict";var Ox=ge(),vle=Ne(),R1=Jr(),yle=Nt(),Px=$i(),_x=qp(),Ex=E1(),mle=Lu(),gle=Bl(),ble=T1(),wle=Mp(),Sle=Um(),Ole=Ae(),Tx=mr();Rx.exports=function(r,e,t,i){var o="stackTraceLimit",a=i?2:1,u=r.split("."),c=u[u.length-1],l=Ox.apply(null,u);if(l){var d=l.prototype;if(!Tx&&vle(d,"cause")&&delete d.cause,!t)return l;var y=Ox("Error"),m=e(function(b,w){var S=gle(i?w:b,void 0),P=i?new l(b):new l;return S!==void 0&&R1(P,"message",S),Sle&&R1(P,"stack",wle(P.stack,2)),this&&yle(d,this)&&mle(P,this,m),arguments.length>a&&ble(P,arguments[a]),P});if(m.prototype=d,c!=="Error"?Px?Px(m,y):_x(m,y,{name:!0}):Ole&&o in l&&(Ex(m,l,o),Ex(m,l,"prepareStackTrace")),_x(m,l),!Tx)try{d.name!==c&&R1(d,"name",c),d.constructor=m}catch(b){}return m}}});var $m=x(function(Wpr,kx){var _le=ue();kx.exports=!_le(function(){function r(){}return n(r,"F"),r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype})});var vt=x(function(Kpr,Fx){var Ele=Ne(),Tle=ke(),Rle=Ue(),Ale=Tp(),Ile=$m(),jx=Ale("IE_PROTO"),k1=Object,qle=k1.prototype;Fx.exports=Ile?k1.getPrototypeOf:function(r){var e=Rle(r);if(Ele(e,jx))return e[jx];var t=e.constructor;return Tle(t)&&e instanceof t?t.prototype:e instanceof k1?qle:null}});var $l=x(function(Ypr,Cx){Cx.exports={}});var Gm=x(function(Xpr,Lx){var kle=Se(),jle=$l(),Fle=kle("iterator"),Cle=Array.prototype;Lx.exports=function(r){return r!==void 0&&(jle.Array===r||Cle[Fle]===r)}});var zi=x(function(Qpr,xx){var Lle=hi(),Nx=Qr(),Nle=$l(),xle=Se(),Dle=xle("iterator");xx.exports=function(r){if(r!=null)return Nx(r,Dle)||Nx(r,"@@iterator")||Nle[Lle(r)]}});var Kn=x(function(Jpr,Dx){var Mle=le(),Ule=ve(),Ble=re(),$le=To(),Gle=zi(),zle=TypeError;Dx.exports=function(r,e){var t=arguments.length<2?Gle(r):e;if(Ule(t))return Ble(Mle(t,r));throw zle($le(r)+" is not iterable")}});var xu=x(function(Zpr,Ux){var Hle=le(),Mx=re(),Wle=Qr();Ux.exports=function(r,e,t){var i,o;Mx(r);try{if(i=Wle(r,"return"),!i){if(e==="throw")throw t;return t}i=Hle(i,r)}catch(a){o=!0,i=a}if(e==="throw")throw t;if(o)throw i;return Mx(i),t}});var Pe=x(function(edr,zx){function j1(r){"@babel/helpers - typeof";return j1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j1(r)}n(j1,"_typeof");var Vle=or(),Kle=le(),Yle=re(),Xle=To(),Qle=Gm(),Jle=$e(),Bx=Nt(),Zle=Kn(),ece=zi(),$x=xu(),rce=TypeError,zm=n(function(e,t){this.stopped=e,this.result=t},"Result"),Gx=zm.prototype;zx.exports=function(r,e,t){var i=t&&t.that,o=!!(t&&t.AS_ENTRIES),a=!!(t&&t.IS_RECORD),u=!!(t&&t.IS_ITERATOR),c=!!(t&&t.INTERRUPTED),l=Vle(e,i),d,y,m,b,w,S,P,R=n(function(F){return d&&$x(d,"normal",F),new zm(!0,F)},"stop"),I=n(function(F){return o?(Yle(F),c?l(F[0],F[1],R):l(F[0],F[1])):c?l(F,R):l(F)},"callFn");if(a)d=r.iterator;else if(u)d=r;else{if(y=ece(r),!y)throw rce(Xle(r)+" is not iterable");if(Qle(y)){for(m=0,b=Jle(r);b>m;m++)if(w=I(r[m]),w&&Bx(Gx,w))return w;return new zm(!1)}d=Zle(r,y)}for(S=a?r.next:d.next;!(P=Kle(S,d)).done;){try{w=I(P.value)}catch(T){$x(d,"throw",T)}if(j1(w)=="object"&&w&&Bx(Gx,w))return w}return new zm(!1)}});var Wx=x(function(){"use strict";var tce=B(),nce=Nt(),ice=vt(),Wm=$i(),ace=qp(),Hx=Gr(),Hm=Jr(),F1=gn(),oce=Mp(),uce=T1(),sce=Pe(),lce=Bl(),cce=Se(),fce=Um(),pce=cce("toStringTag"),Vm=Error,dce=[].push,Up=n(function(e,t){var i=arguments.length>2?arguments[2]:void 0,o=nce(C1,this),a;Wm?a=Wm(new Vm,o?ice(this):C1):(a=o?this:Hx(C1),Hm(a,pce,"Error")),t!==void 0&&Hm(a,"message",lce(t)),fce&&Hm(a,"stack",oce(a.stack,1)),uce(a,i);var u=[];return sce(e,dce,{that:u}),Hm(a,"errors",u),a},"AggregateError");Wm?Wm(Up,Vm):ace(Up,Vm,{name:!0});var C1=Up.prototype=Hx(Vm.prototype,{constructor:F1(1,Up),message:F1(1,""),name:F1(1,"AggregateError")});tce({global:!0,constructor:!0,arity:2},{AggregateError:Up})});var br=x(function(odr,Xx){var gce=Se(),bce=Gr(),wce=tr().f,N1=gce("unscopables"),x1=Array.prototype;x1[N1]==null&&wce(x1,N1,{configurable:!0,value:bce(null)});Xx.exports=function(r){x1[N1][r]=!0}});var Du=x(function(sdr,Qx){var Tce=TypeError,Rce=9007199254740991;Qx.exports=function(r){if(r>Rce)throw Tce("Maximum allowed index exceeded");return r}});var Gl=x(function(ldr,Jx){var Ace=ue(),Ice=Se(),qce=_o(),kce=Ice("species");Jx.exports=function(r){return qce>=51||!Ace(function(){var e=[],t=e.constructor={};return t[kce]=function(){return{foo:1}},e[r](Boolean).foo!==1})}});var Km=x(function(fdr,nD){"use strict";var tD=To(),Wce=TypeError;nD.exports=function(r,e){if(!delete r[e])throw Wce("Cannot delete property "+tD(e)+" of "+tD(r))}});var M1=x(function(pdr,iD){"use strict";var Vce=Ue(),D1=di(),Kce=$e(),Yce=Km(),Xce=Math.min;iD.exports=[].copyWithin||n(function(e,t){var i=Vce(this),o=Kce(i),a=D1(e,o),u=D1(t,o),c=arguments.length>2?arguments[2]:void 0,l=Xce((c===void 0?o:D1(c,o))-u,o-a),d=1;for(u<a&&a<u+l&&(d=-1,u+=l-1,a+=l-1);l-- >0;)u in i?i[a]=i[u]:Yce(i,a),a+=d,u+=d;return i},"copyWithin")});var Ym=x(function(hdr,oD){"use strict";var efe=Ue(),aD=di(),rfe=$e();oD.exports=n(function(e){for(var t=efe(this),i=rfe(t),o=arguments.length,a=aD(o>1?arguments[1]:void 0,i),u=o>2?arguments[2]:void 0,c=u===void 0?i:aD(u,i);c>a;)t[a++]=e;return t},"fill")});var Bp=x(function(bdr,cD){var vfe=or(),yfe=Oa(),mfe=Ue(),gfe=$e(),lD=n(function(e){var t=e==1;return function(i,o,a){for(var u=mfe(i),c=yfe(u),l=vfe(o,a),d=gfe(c),y,m;d-- >0;)if(y=c[d],m=l(y,d,u),m)switch(e){case 0:return y;case 1:return d}return t?-1:void 0}},"createMethod");cD.exports={findLast:lD(0),findLastIndex:lD(1)}});var $1=x(function(Pdr,fD){"use strict";var Efe=ku(),Tfe=$e(),Rfe=Du(),Afe=or(),Ife=n(function r(e,t,i,o,a,u,c,l){for(var d=a,y=0,m=c?Afe(c,l):!1,b,w;y<o;)y in i&&(b=m?m(i[y],y,t):i[y],u>0&&Efe(b)?(w=Tfe(b),d=r(e,t,b,w,d,u-1)-1):(Rfe(d+1),e[d]=b),d++),y++;return d},"flattenIntoArray");fD.exports=Ife});var Xm=x(function(Rdr,pD){var $fe=re(),Gfe=xu();pD.exports=function(r,e,t,i){try{return i?e($fe(t)[0],t[1]):e(t)}catch(o){Gfe(r,"throw",o)}}});var G1=x(function(Adr,vD){"use strict";var zfe=or(),Hfe=le(),Wfe=Ue(),Vfe=Xm(),Kfe=Gm(),Yfe=vi(),Xfe=$e(),dD=Bi(),Qfe=Kn(),Jfe=zi(),hD=Array;vD.exports=n(function(e){var t=Wfe(e),i=Yfe(this),o=arguments.length,a=o>1?arguments[1]:void 0,u=a!==void 0;u&&(a=zfe(a,o>2?arguments[2]:void 0));var c=Jfe(t),l=0,d,y,m,b,w,S;if(c&&!(this===hD&&Kfe(c)))for(b=Qfe(t,c),w=b.next,y=i?new this:[];!(m=Hfe(w,b)).done;l++)S=u?Vfe(b,a,[m.value,l],!0):m.value,dD(y,l,S);else for(d=Xfe(t),y=i?new this(d):hD(d);d>l;l++)S=u?a(t[l],l):t[l],dD(y,l,S);return y.length=l,y},"from")});var $p=x(function(qdr,bD){var Zfe=Se(),mD=Zfe("iterator"),gD=!1;try{yD=0,z1={next:n(function(){return{done:!!yD++}},"next"),return:n(function(){gD=!0},"_return")},z1[mD]=function(){return this},Array.from(z1,function(){throw 2})}catch(r){}var yD,z1;bD.exports=function(r,e){if(!e&&!gD)return!1;var t=!1;try{var i={};i[mD]=function(){return{next:n(function(){return{done:t=!0}},"next")}},r(i)}catch(o){}return t}});var zl=x(function(Fdr,OD){"use strict";var lpe=ue(),cpe=ke(),fpe=Gr(),wD=vt(),ppe=gr(),dpe=Se(),hpe=mr(),V1=dpe("iterator"),SD=!1,Ra,H1,W1;[].keys&&(W1=[].keys(),"next"in W1?(H1=wD(wD(W1)),H1!==Object.prototype&&(Ra=H1)):SD=!0);var vpe=Ra==null||lpe(function(){var r={};return Ra[V1].call(r)!==r});vpe?Ra={}:hpe&&(Ra=fpe(Ra));cpe(Ra[V1])||ppe(Ra,V1,function(){return this});OD.exports={IteratorPrototype:Ra,BUGGY_SAFARI_ITERATORS:SD}});var Fo=x(function(Cdr,PD){"use strict";var ype=zl().IteratorPrototype,mpe=Gr(),gpe=gn(),bpe=en(),wpe=$l(),Spe=n(function(){return this},"returnThis");PD.exports=function(r,e,t,i){var o=e+" Iterator";return r.prototype=mpe(ype,{next:gpe(+!i,t)}),bpe(r,o,!1,!0),wpe[o]=Spe,r}});var Zm=x(function(Ndr,FD){"use strict";var Ope=B(),Ppe=le(),Qm=mr(),kD=Au(),_pe=ke(),Epe=Fo(),_D=vt(),ED=$i(),Tpe=en(),Rpe=Jr(),K1=gr(),Ape=Se(),TD=$l(),jD=zl(),Ipe=kD.PROPER,qpe=kD.CONFIGURABLE,RD=jD.IteratorPrototype,Jm=jD.BUGGY_SAFARI_ITERATORS,Gp=Ape("iterator"),AD="keys",zp="values",ID="entries",qD=n(function(){return this},"returnThis");FD.exports=function(r,e,t,i,o,a,u){Epe(t,e,i);var c=n(function(T){if(T===o&&b)return b;if(!Jm&&T in y)return y[T];switch(T){case AD:return n(function(){return new t(this,T)},"keys");case zp:return n(function(){return new t(this,T)},"values");case ID:return n(function(){return new t(this,T)},"entries")}return function(){return new t(this)}},"getIterationMethod"),l=e+" Iterator",d=!1,y=r.prototype,m=y[Gp]||y["@@iterator"]||o&&y[o],b=!Jm&&m||c(o),w=e=="Array"&&y.entries||m,S,P,R;if(w&&(S=_D(w.call(new r)),S!==Object.prototype&&S.next&&(!Qm&&_D(S)!==RD&&(ED?ED(S,RD):_pe(S[Gp])||K1(S,Gp,qD)),Tpe(S,l,!0,!0),Qm&&(TD[l]=qD))),Ipe&&o==zp&&m&&m.name!==zp&&(!Qm&&qpe?Rpe(y,"name",zp):(d=!0,b=n(function(){return Ppe(m,this)},"values"))),o)if(P={values:c(zp),keys:a?b:c(AD),entries:c(ID)},u)for(R in P)(Jm||d||!(R in y))&&K1(y,R,P[R]);else Ope({target:e,proto:!0,forced:Jm||d},P);return(!Qm||u)&&y[Gp]!==b&&K1(y,Gp,b,{name:o}),TD[e]=b,P}});var Hp=x(function(Ddr,DD){"use strict";var kpe=$r(),Y1=br(),CD=$l(),ND=ar(),jpe=tr().f,Fpe=Zm(),Cpe=mr(),Lpe=Ae(),xD="Array Iterator",Npe=ND.set,xpe=ND.getterFor(xD);DD.exports=Fpe(Array,"Array",function(r,e){Npe(this,{type:xD,target:kpe(r),index:0,kind:e})},function(){var r=xpe(this),e=r.target,t=r.kind,i=r.index++;return!e||i>=e.length?(r.target=void 0,{value:void 0,done:!0}):t=="keys"?{value:i,done:!1}:t=="values"?{value:e[i],done:!1}:{value:[i,e[i]],done:!1}},"values");var LD=CD.Arguments=CD.Array;Y1("keys");Y1("values");Y1("entries");if(!Cpe&&Lpe&&LD.name!=="values")try{jpe(LD,"name",{value:"values"})}catch(r){}});var Mu=x(function(Mdr,MD){"use strict";var Dpe=ue();MD.exports=function(r,e){var t=[][r];return!!t&&Dpe(function(){t.call(null,e||function(){return 1},1)})}});var eg=x(function(Hdr,zD){var GD=Dl(),Sde=Math.floor,Ode=n(function r(e,t){var i=e.length,o=Sde(i/2);return i<8?Pde(e,t):_de(e,r(GD(e,0,o),t),r(GD(e,o),t),t)},"mergeSort"),Pde=n(function(e,t){for(var i=e.length,o=1,a,u;o<i;){for(u=o,a=e[o];u&&t(e[u-1],a)>0;)e[u]=e[--u];u!==o++&&(e[u]=a)}return e},"insertionSort"),_de=n(function(e,t,i,o){for(var a=t.length,u=i.length,c=0,l=0;c<a||l<u;)e[c+l]=c<a&&l<u?o(t[c],i[l])<=0?t[c++]:i[l++]:c<a?t[c++]:i[l++];return e},"merge");zD.exports=Ode});var Q1=x(function(Vdr,WD){var Ede=Pa(),HD=Ede.match(/firefox\/(\d+)/i);WD.exports=!!HD&&+HD[1]});var J1=x(function(Kdr,VD){var Tde=Pa();VD.exports=/MSIE|Trident/.test(Tde)});var rg=x(function(Ydr,YD){var Rde=Pa(),KD=Rde.match(/AppleWebKit\/(\d+)\./);YD.exports=!!KD&&+KD[1]});var Lo=x(function(Qdr,i5){"use strict";var $de=ge(),Gde=tr(),zde=Se(),Hde=Ae(),n5=zde("species");i5.exports=function(r){var e=$de(r),t=Gde.f;Hde&&e&&!e[n5]&&t(e,n5,{configurable:!0,get:n(function(){return this},"get")})}});var rP=x(function(ehr,a5){a5.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"});var Hi=x(function(rhr,o5){var uhe=gr();o5.exports=function(r,e,t){for(var i in e)uhe(r,i,e[i],t);return r}});var nn=x(function(thr,u5){var she=Nt(),lhe=TypeError;u5.exports=function(r,e){if(she(e,r))return r;throw lhe("Incorrect invocation")}});var tP=x(function(nhr,s5){var che=Pr(),fhe=bn(),phe=RangeError;s5.exports=function(r){if(r===void 0)return 0;var e=che(r),t=fhe(e);if(e!==t)throw phe("Wrong length or index");return t}});var c5=x(function(ihr,l5){var dhe=Array,hhe=Math.abs,Aa=Math.pow,vhe=Math.floor,yhe=Math.log,mhe=Math.LN2,ghe=n(function(e,t,i){var o=dhe(i),a=i*8-t-1,u=(1<<a)-1,c=u>>1,l=t===23?Aa(2,-24)-Aa(2,-77):0,d=e<0||e===0&&1/e<0?1:0,y=0,m,b,w;for(e=hhe(e),e!=e||e===1/0?(b=e!=e?1:0,m=u):(m=vhe(yhe(e)/mhe),w=Aa(2,-m),e*w<1&&(m--,w*=2),m+c>=1?e+=l/w:e+=l*Aa(2,1-c),e*w>=2&&(m++,w/=2),m+c>=u?(b=0,m=u):m+c>=1?(b=(e*w-1)*Aa(2,t),m=m+c):(b=e*Aa(2,c-1)*Aa(2,t),m=0));t>=8;)o[y++]=b&255,b/=256,t-=8;for(m=m<<t|b,a+=t;a>0;)o[y++]=m&255,m/=256,a-=8;return o[--y]|=d*128,o},"pack"),bhe=n(function(e,t){var i=e.length,o=i*8-t-1,a=(1<<o)-1,u=a>>1,c=o-7,l=i-1,d=e[l--],y=d&127,m;for(d>>=7;c>0;)y=y*256+e[l--],c-=8;for(m=y&(1<<-c)-1,y>>=-c,c+=t;c>0;)m=m*256+e[l--],c-=8;if(y===0)y=1-u;else{if(y===a)return m?NaN:d?-1/0:1/0;m=m+Aa(2,t),y=y-u}return(d?-1:1)*m*Aa(2,y-t)},"unpack");l5.exports={pack:ghe,unpack:bhe}});var cP=x(function(ohr,I5){"use strict";var sg=ye(),lP=se(),nP=Ae(),whe=rP(),O5=Au(),f5=Jr(),p5=Hi(),iP=ue(),tg=nn(),She=Pr(),Ohe=bn(),ag=tP(),P5=c5(),Phe=vt(),d5=$i(),_he=_a().f,Ehe=tr().f,The=Ym(),Rhe=Dl(),_5=en(),E5=ar(),Ahe=O5.PROPER,h5=O5.CONFIGURABLE,Vl=E5.get,v5=E5.set,og="ArrayBuffer",T5="DataView",Wl="prototype",Ihe="Wrong length",R5="Wrong index",yi=sg[og],wn=yi,Hl=wn&&wn[Wl],Wi=sg[T5],Uu=Wi&&Wi[Wl],y5=Object.prototype,qhe=sg.Array,ug=sg.RangeError,khe=lP(The),jhe=lP([].reverse),A5=P5.pack,m5=P5.unpack,g5=n(function(e){return[e&255]},"packInt8"),b5=n(function(e){return[e&255,e>>8&255]},"packInt16"),w5=n(function(e){return[e&255,e>>8&255,e>>16&255,e>>24&255]},"packInt32"),S5=n(function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},"unpackInt32"),Fhe=n(function(e){return A5(e,23,4)},"packFloat32"),Che=n(function(e){return A5(e,52,8)},"packFloat64"),ng=n(function(e,t){Ehe(e[Wl],t,{get:n(function(){return Vl(this)[t]},"get")})},"addGetter"),No=n(function(e,t,i,o){var a=ag(i),u=Vl(e);if(a+t>u.byteLength)throw ug(R5);var c=Vl(u.buffer).bytes,l=a+u.byteOffset,d=Rhe(c,l,l+t);return o?d:jhe(d)},"get"),xo=n(function(e,t,i,o,a,u){var c=ag(i),l=Vl(e);if(c+t>l.byteLength)throw ug(R5);for(var d=Vl(l.buffer).bytes,y=c+l.byteOffset,m=o(+a),b=0;b<t;b++)d[y+b]=m[u?b:t-b-1]},"set");if(!whe)wn=n(function(e){tg(this,Hl);var t=ag(e);v5(this,{bytes:khe(qhe(t),0),byteLength:t}),nP||(this.byteLength=t)},"ArrayBuffer"),Hl=wn[Wl],Wi=n(function(e,t,i){tg(this,Uu),tg(e,Hl);var o=Vl(e).byteLength,a=She(t);if(a<0||a>o)throw ug("Wrong offset");if(i=i===void 0?o-a:Ohe(i),a+i>o)throw ug(Ihe);v5(this,{buffer:e,byteLength:i,byteOffset:a}),nP||(this.buffer=e,this.byteLength=i,this.byteOffset=a)},"DataView"),Uu=Wi[Wl],nP&&(ng(wn,"byteLength"),ng(Wi,"buffer"),ng(Wi,"byteLength"),ng(Wi,"byteOffset")),p5(Uu,{getInt8:n(function(e){return No(this,1,e)[0]<<24>>24},"getInt8"),getUint8:n(function(e){return No(this,1,e)[0]},"getUint8"),getInt16:n(function(e){var t=No(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},"getInt16"),getUint16:n(function(e){var t=No(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},"getUint16"),getInt32:n(function(e){return S5(No(this,4,e,arguments.length>1?arguments[1]:void 0))},"getInt32"),getUint32:n(function(e){return S5(No(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},"getUint32"),getFloat32:n(function(e){return m5(No(this,4,e,arguments.length>1?arguments[1]:void 0),23)},"getFloat32"),getFloat64:n(function(e){return m5(No(this,8,e,arguments.length>1?arguments[1]:void 0),52)},"getFloat64"),setInt8:n(function(e,t){xo(this,1,e,g5,t)},"setInt8"),setUint8:n(function(e,t){xo(this,1,e,g5,t)},"setUint8"),setInt16:n(function(e,t){xo(this,2,e,b5,t,arguments.length>2?arguments[2]:void 0)},"setInt16"),setUint16:n(function(e,t){xo(this,2,e,b5,t,arguments.length>2?arguments[2]:void 0)},"setUint16"),setInt32:n(function(e,t){xo(this,4,e,w5,t,arguments.length>2?arguments[2]:void 0)},"setInt32"),setUint32:n(function(e,t){xo(this,4,e,w5,t,arguments.length>2?arguments[2]:void 0)},"setUint32"),setFloat32:n(function(e,t){xo(this,4,e,Fhe,t,arguments.length>2?arguments[2]:void 0)},"setFloat32"),setFloat64:n(function(e,t){xo(this,8,e,Che,t,arguments.length>2?arguments[2]:void 0)},"setFloat64")});else{if(aP=Ahe&&yi.name!==og,!iP(function(){yi(1)})||!iP(function(){new yi(-1)})||iP(function(){return new yi,new yi(1.5),new yi(NaN),aP&&!h5})){for(wn=n(function(e){return tg(this,Hl),new yi(ag(e))},"ArrayBuffer"),wn[Wl]=Hl,oP=_he(yi),uP=0;oP.length>uP;)(ig=oP[uP++])in wn||f5(wn,ig,yi[ig]);Hl.constructor=wn}else aP&&h5&&f5(yi,"name",og);d5&&Phe(Uu)!==y5&&d5(Uu,y5),Wp=new Wi(new wn(2)),sP=lP(Uu.setInt8),Wp.setInt8(0,2147483648),Wp.setInt8(1,2147483649),(Wp.getInt8(0)||!Wp.getInt8(1))&&p5(Uu,{setInt8:n(function(e,t){sP(this,e,t<<24>>24)},"setInt8"),setUint8:n(function(e,t){sP(this,e,t<<24>>24)},"setUint8")},{unsafe:!0})}var aP,oP,uP,ig,Wp,sP;_5(wn,og);_5(Wi,T5);I5.exports={ArrayBuffer:wn,DataView:Wi}});var j5=x(function(shr,k5){"use strict";var Uhe=re(),Bhe=IO(),$he=TypeError;k5.exports=function(r){if(Uhe(this),r==="string"||r==="default")r="string";else if(r!=="number")throw $he("Incorrect hint");return Bhe(this,r)}});var lg=x(function(chr,U5){var sve=ue();U5.exports=sve(function(){if(typeof ArrayBuffer=="function"){var r=new ArrayBuffer(8);Object.isExtensible(r)&&Object.defineProperty(r,"a",{value:8})}})});var Vp=x(function(fhr,$5){var lve=ue(),cve=Le(),fve=Zt(),B5=lg(),cg=Object.isExtensible,pve=lve(function(){cg(1)});$5.exports=pve||B5?n(function(e){return!cve(e)||B5&&fve(e)=="ArrayBuffer"?!1:cg?cg(e):!0},"isExtensible"):cg});var Kl=x(function(dhr,G5){var dve=ue();G5.exports=!dve(function(){return Object.isExtensible(Object.preventExtensions({}))})});var Do=x(function(hhr,W5){function dP(r){"@babel/helpers - typeof";return dP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dP(r)}n(dP,"_typeof");var hve=B(),vve=se(),yve=Nl(),mve=Le(),hP=Ne(),gve=tr().f,z5=_a(),bve=jm(),vP=Vp(),wve=Tu(),Sve=Kl(),H5=!1,Ia=wve("meta"),Ove=0,yP=n(function(e){gve(e,Ia,{value:{objectID:"O"+Ove++,weakData:{}}})},"setMetadata"),Pve=n(function(e,t){if(!mve(e))return dP(e)=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!hP(e,Ia)){if(!vP(e))return"F";if(!t)return"E";yP(e)}return e[Ia].objectID},"fastKey"),_ve=n(function(e,t){if(!hP(e,Ia)){if(!vP(e))return!0;if(!t)return!1;yP(e)}return e[Ia].weakData},"getWeakData"),Eve=n(function(e){return Sve&&H5&&vP(e)&&!hP(e,Ia)&&yP(e),e},"onFreeze"),Tve=n(function(){Rve.enable=function(){},H5=!0;var e=z5.f,t=vve([].splice),i={};i[Ia]=1,e(i).length&&(z5.f=function(o){for(var a=e(o),u=0,c=a.length;u<c;u++)if(a[u]===Ia){t(a,u,1);break}return a},hve({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:bve.f}))},"enable"),Rve=W5.exports={enable:Tve,fastKey:Pve,getWeakData:_ve,onFreeze:Eve};yve[Ia]=!0});var Kp=x(function(yhr,K5){"use strict";var Ave=B(),Ive=ye(),qve=se(),V5=xl(),kve=gr(),jve=Do(),Fve=Pe(),Cve=nn(),Lve=ke(),mP=Le(),gP=ue(),Nve=$p(),xve=en(),Dve=Lu();K5.exports=function(r,e,t){var i=r.indexOf("Map")!==-1,o=r.indexOf("Weak")!==-1,a=i?"set":"add",u=Ive[r],c=u&&u.prototype,l=u,d={},y=n(function(T){var F=qve(c[T]);kve(c,T,T=="add"?n(function(U){return F(this,U===0?0:U),this},"add"):T=="delete"?function(k){return o&&!mP(k)?!1:F(this,k===0?0:k)}:T=="get"?n(function(U){return o&&!mP(U)?void 0:F(this,U===0?0:U)},"get"):T=="has"?n(function(U){return o&&!mP(U)?!1:F(this,U===0?0:U)},"has"):n(function(U,D){return F(this,U===0?0:U,D),this},"set"))},"fixMethod"),m=V5(r,!Lve(u)||!(o||c.forEach&&!gP(function(){new u().entries().next()})));if(m)l=t.getConstructor(e,r,i,a),jve.enable();else if(V5(r,!0)){var b=new l,w=b[a](o?{}:-0,1)!=b,S=gP(function(){b.has(1)}),P=Nve(function(I){new u(I)}),R=!o&&gP(function(){for(var I=new u,T=5;T--;)I[a](T,T);return!I.has(-0)});P||(l=e(function(I,T){Cve(I,c);var F=Dve(new u,I,l);return T!=null&&Fve(T,F[a],{that:F,AS_ENTRIES:i}),F}),l.prototype=c,c.constructor=l),(S||R)&&(y("delete"),y("has"),i&&y("get")),(R||w)&&y(a),o&&c.clear&&delete c.clear}return d[r]=l,Ave({global:!0,constructor:!0,forced:l!=u},d),xve(l,r),o||t.setStrong(l,r,i),l}});var wP=x(function(ghr,Z5){"use strict";var Mve=tr().f,Uve=Gr(),Y5=Hi(),Bve=or(),$ve=nn(),Gve=Pe(),zve=Zm(),Hve=Lo(),Yp=Ae(),X5=Do().fastKey,J5=ar(),Q5=J5.set,bP=J5.getterFor;Z5.exports={getConstructor:n(function(e,t,i,o){var a=e(function(y,m){$ve(y,u),Q5(y,{type:t,index:Uve(null),first:void 0,last:void 0,size:0}),Yp||(y.size=0),m!=null&&Gve(m,y[o],{that:y,AS_ENTRIES:i})}),u=a.prototype,c=bP(t),l=n(function(m,b,w){var S=c(m),P=d(m,b),R,I;return P?P.value=w:(S.last=P={index:I=X5(b,!0),key:b,value:w,previous:R=S.last,next:void 0,removed:!1},S.first||(S.first=P),R&&(R.next=P),Yp?S.size++:m.size++,I!=="F"&&(S.index[I]=P)),m},"define"),d=n(function(m,b){var w=c(m),S=X5(b),P;if(S!=="F")return w.index[S];for(P=w.first;P;P=P.next)if(P.key==b)return P},"getEntry");return Y5(u,{clear:n(function(){for(var m=this,b=c(m),w=b.index,S=b.first;S;)S.removed=!0,S.previous&&(S.previous=S.previous.next=void 0),delete w[S.index],S=S.next;b.first=b.last=void 0,Yp?b.size=0:m.size=0},"clear"),delete:n(function(m){var b=this,w=c(b),S=d(b,m);if(S){var P=S.next,R=S.previous;delete w.index[S.index],S.removed=!0,R&&(R.next=P),P&&(P.previous=R),w.first==S&&(w.first=P),w.last==S&&(w.last=R),Yp?w.size--:b.size--}return!!S},"_delete"),forEach:n(function(m){for(var b=c(this),w=Bve(m,arguments.length>1?arguments[1]:void 0),S;S=S?S.next:b.first;)for(w(S.value,S.key,this);S&&S.removed;)S=S.previous},"forEach"),has:n(function(m){return!!d(this,m)},"has")}),Y5(u,i?{get:n(function(m){var b=d(this,m);return b&&b.value},"get"),set:n(function(m,b){return l(this,m===0?0:m,b)},"set")}:{add:n(function(m){return l(this,m=m===0?0:m,m)},"add")}),Yp&&Mve(u,"size",{get:n(function(){return c(this).size},"get")}),a},"getConstructor"),setStrong:n(function(e,t,i){var o=t+" Iterator",a=bP(t),u=bP(o);zve(e,t,function(c,l){Q5(this,{type:o,target:c,state:a(c),kind:l,last:void 0})},function(){for(var c=u(this),l=c.kind,d=c.last;d&&d.removed;)d=d.previous;return!c.target||!(c.last=d=d?d.next:c.state.first)?(c.target=void 0,{value:void 0,done:!0}):l=="keys"?{value:d.key,done:!1}:l=="values"?{value:d.value,done:!1}:{value:[d.key,d.value],done:!1}},i?"entries":"values",!i,!0),Hve(t)},"setStrong")}});var eM=x(function(){"use strict";var Wve=Kp(),Vve=wP();Wve("Map",function(r){return n(function(){return r(this,arguments.length?arguments[0]:void 0)},"Map")},Vve)});var fg=x(function(){eM()});var SP=x(function(Ehr,rM){var Kve=Math.log;rM.exports=Math.log1p||n(function(e){var t=+e;return t>-1e-8&&t<1e-8?t-t*t/2:Kve(1+t)},"log1p")});var pg=x(function(qhr,oM){oM.exports=Math.sign||n(function(e){var t=+e;return t==0||t!=t?t:t<0?-1:1},"sign")});var Qp=x(function(Chr,uM){var Xp=Math.expm1,dye=Math.exp;uM.exports=!Xp||Xp(10)>22025.465794806718||Xp(10)<22025.465794806718||Xp(-2e-17)!=-2e-17?n(function(e){var t=+e;return t==0?t:t>-1e-6&&t<1e-6?t+t*t/2:dye(t)-1},"expm1"):Xp});var TP=x(function(xhr,cM){var gye=pg(),bye=Math.abs,hg=Math.pow,EP=hg(2,-52),dg=hg(2,-23),wye=hg(2,127)*(2-dg),_P=hg(2,-126),Sye=n(function(e){return e+1/EP-1/EP},"roundTiesToEven");cM.exports=Math.fround||n(function(e){var t=+e,i=bye(t),o=gye(t),a,u;return i<_P?o*Sye(i/_P/dg)*_P*dg:(a=(1+dg/EP)*i,u=a-(a-i),u>wye||u!=u?o*(1/0):o*u)},"fround")});var RP=x(function(Bhr,dM){var kye=Math.log,jye=Math.LOG10E;dM.exports=Math.log10||n(function(e){return kye(e)*jye},"log10")});var vg=x(function(Whr,gM){var Qye=se();gM.exports=Qye(1 .valueOf)});var Jp=x(function(Vhr,bM){bM.exports=" \n\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF"});var Bu=x(function(Khr,SM){var Jye=se(),Zye=Br(),eme=Ge(),rme=Jp(),wM=Jye("".replace),yg="["+rme+"]",tme=RegExp("^"+yg+yg+"*"),nme=RegExp(yg+yg+"*$"),AP=n(function(e){return function(t){var i=eme(Zye(t));return e&1&&(i=wM(i,tme,"")),e&2&&(i=wM(i,nme,"")),i}},"createMethod");SM.exports={start:AP(1),end:AP(2),trim:AP(3)}});var FP=x(function(Qhr,EM){var Sme=ye(),Ome=Sme.isFinite;EM.exports=Number.isFinite||n(function(e){return typeof e=="number"&&Ome(e)},"isFinite")});var bg=x(function(Zhr,TM){var Eme=Le(),Tme=Math.floor;TM.exports=Number.isInteger||n(function(e){return!Eme(e)&&isFinite(e)&&Tme(e)===e},"isInteger")});var kM=x(function(nvr,qM){var IM=ye(),Lme=ue(),Nme=se(),xme=Ge(),Dme=Bu().trim,Mme=Jp(),Ume=Nme("".charAt),wg=IM.parseFloat,RM=IM.Symbol,AM=RM&&RM.iterator,Bme=1/wg(Mme+"-0")!==-1/0||AM&&!Lme(function(){wg(Object(AM))});qM.exports=Bme?n(function(e){var t=Dme(xme(e)),i=wg(t);return i===0&&Ume(t,0)=="-"?-0:i},"parseFloat"):wg});var CP=x(function(avr,DM){var NM=ye(),Gme=ue(),zme=se(),Hme=Ge(),Wme=Bu().trim,FM=Jp(),ed=NM.parseInt,CM=NM.Symbol,LM=CM&&CM.iterator,xM=/^[+-]?0x/i,Vme=zme(xM.exec),Kme=ed(FM+"08")!==8||ed(FM+"0x16")!==22||LM&&!Gme(function(){ed(Object(LM))});DM.exports=Kme?n(function(e,t){var i=Wme(Hme(e));return ed(i,t>>>0||(Vme(xM,i)?16:10))},"parseInt"):ed});var rd=x(function(uvr,UM){"use strict";var Xme=Pr(),Qme=Ge(),Jme=Br(),Zme=RangeError;UM.exports=n(function(e){var t=Qme(Jme(this)),i="",o=Xme(e);if(o<0||o==1/0)throw Zme("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(t+=t))o&1&&(i+=t);return i},"repeat")});var UP=x(function(fvr,JM){"use strict";var XM=Ae(),Sge=se(),Oge=le(),Pge=ue(),MP=qu(),_ge=Ip(),Ege=Pp(),Tge=Ue(),Rge=Oa(),Xl=Object.assign,QM=Object.defineProperty,Age=Sge([].concat);JM.exports=!Xl||Pge(function(){if(XM&&Xl({b:1},Xl(QM({},"a",{enumerable:!0,get:n(function(){QM(this,"b",{value:3,enumerable:!1})},"get")}),{b:2})).b!==1)return!0;var r={},e={},t=Symbol(),i="abcdefghijklmnopqrst";return r[t]=7,i.split("").forEach(function(o){e[o]=o}),Xl({},r)[t]!=7||MP(Xl({},e)).join("")!=i})?n(function(e,t){for(var i=Tge(e),o=arguments.length,a=1,u=_ge.f,c=Ege.f;o>a;)for(var l=Rge(arguments[a++]),d=u?Age(MP(l),u(l)):MP(l),y=d.length,m=0,b;y>m;)b=d[m++],(!XM||Oge(c,l,b))&&(i[b]=l[b]);return i},"assign"):Xl});var nd=x(function(dvr,r3){"use strict";var qge=mr(),kge=ye(),jge=ue(),e3=rg();r3.exports=qge||!jge(function(){if(!(e3&&e3<535)){var r=Math.random();__defineSetter__.call(null,r,function(){}),delete kge[r]}})});var BP=x(function(yvr,i3){var Hge=Ae(),n3=se(),Wge=qu(),Vge=$r(),Kge=Pp().f,Yge=n3(Kge),Xge=n3([].push),t3=n(function(e){return function(t){for(var i=Vge(t),o=Wge(i),a=o.length,u=0,c=[],l;a>u;)l=o[u++],(!Hge||Yge(i,l))&&Xge(c,e?[l,i[l]]:i[l]);return c}},"createMethod");i3.exports={entries:t3(!0),values:t3(!1)}});var GP=x(function(_vr,s3){s3.exports=Object.is||n(function(e,t){return e===t?e!==0||1/e===1/t:e!=e&&t!=t},"is")});var h3=x(function(Fvr,d3){"use strict";var bwe=Rm(),wwe=hi();d3.exports=bwe?{}.toString:n(function(){return"[object "+wwe(this)+"]"},"toString")});var Uo=x(function(Nvr,v3){var Twe=Zt(),Rwe=ye();v3.exports=Twe(Rwe.process)=="process"});var Ql=x(function(xvr,y3){var Awe=vi(),Iwe=To(),qwe=TypeError;y3.exports=function(r){if(Awe(r))return r;throw qwe(Iwe(r)+" is not a constructor")}});var xt=x(function(Dvr,g3){var m3=re(),kwe=Ql(),jwe=Se(),Fwe=jwe("species");g3.exports=function(r,e){var t=m3(r).constructor,i;return t===void 0||(i=m3(t)[Fwe])==null?e:kwe(i)}});var Bo=x(function(Mvr,b3){var Cwe=TypeError;b3.exports=function(r,e){if(r<e)throw Cwe("Not enough arguments");return r}});var KP=x(function(Uvr,w3){var Lwe=Pa();w3.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(Lwe)});var n_=x(function(Bvr,A3){var Sn=ye(),Nwe=tn(),xwe=or(),S3=ke(),Dwe=Ne(),Mwe=ue(),O3=QO(),Uwe=ko(),P3=Ep(),Bwe=Bo(),$we=KP(),Gwe=Uo(),e_=Sn.setImmediate,r_=Sn.clearImmediate,zwe=Sn.process,YP=Sn.Dispatch,Hwe=Sn.Function,_3=Sn.MessageChannel,Wwe=Sn.String,XP=0,id={},E3="onreadystatechange",ad,Gu,QP,JP;try{ad=Sn.location}catch(r){}var t_=n(function(e){if(Dwe(id,e)){var t=id[e];delete id[e],t()}},"run"),ZP=n(function(e){return function(){t_(e)}},"runner"),T3=n(function(e){t_(e.data)},"listener"),R3=n(function(e){Sn.postMessage(Wwe(e),ad.protocol+"//"+ad.host)},"post");(!e_||!r_)&&(e_=n(function(e){Bwe(arguments.length,1);var t=S3(e)?e:Hwe(e),i=Uwe(arguments,1);return id[++XP]=function(){Nwe(t,void 0,i)},Gu(XP),XP},"setImmediate"),r_=n(function(e){delete id[e]},"clearImmediate"),Gwe?Gu=n(function(e){zwe.nextTick(ZP(e))},"defer"):YP&&YP.now?Gu=n(function(e){YP.now(ZP(e))},"defer"):_3&&!$we?(QP=new _3,JP=QP.port2,QP.port1.onmessage=T3,Gu=xwe(JP.postMessage,JP)):Sn.addEventListener&&S3(Sn.postMessage)&&!Sn.importScripts&&ad&&ad.protocol!=="file:"&&!Mwe(R3)?(Gu=R3,Sn.addEventListener("message",T3,!1)):E3 in P3("script")?Gu=n(function(e){O3.appendChild(P3("script"))[E3]=function(){O3.removeChild(this),t_(e)}},"defer"):Gu=n(function(e){setTimeout(ZP(e),0)},"defer"));A3.exports={set:e_,clear:r_}});var q3=x(function(Gvr,I3){var Vwe=Pa(),Kwe=ye();I3.exports=/ipad|iphone|ipod/i.test(Vwe)&&Kwe.Pebble!==void 0});var j3=x(function(zvr,k3){var Ywe=Pa();k3.exports=/web0s(?!.*chrome)/i.test(Ywe)});var s_=x(function(Hvr,U3){var Hu=ye(),F3=or(),Xwe=ht().f,i_=n_().set,Qwe=KP(),Jwe=q3(),Zwe=j3(),a_=Uo(),C3=Hu.MutationObserver||Hu.WebKitMutationObserver,L3=Hu.document,N3=Hu.process,Pg=Hu.Promise,x3=Xwe(Hu,"queueMicrotask"),M3=x3&&x3.value,od,zu,ud,Jl,o_,u_,_g,D3;M3||(od=n(function(){var e,t;for(a_&&(e=N3.domain)&&e.exit();zu;){t=zu.fn,zu=zu.next;try{t()}catch(i){throw zu?Jl():ud=void 0,i}}ud=void 0,e&&e.enter()},"flush"),!Qwe&&!a_&&!Zwe&&C3&&L3?(o_=!0,u_=L3.createTextNode(""),new C3(od).observe(u_,{characterData:!0}),Jl=n(function(){u_.data=o_=!o_},"notify")):!Jwe&&Pg&&Pg.resolve?(_g=Pg.resolve(void 0),_g.constructor=Pg,D3=F3(_g.then,_g),Jl=n(function(){D3(od)},"notify")):a_?Jl=n(function(){N3.nextTick(od)},"notify"):(i_=F3(i_,Hu),Jl=n(function(){i_(od)},"notify")));U3.exports=M3||function(r){var e={fn:r,next:void 0};ud&&(ud.next=e),zu||(zu=e,Jl()),ud=e}});var l_=x(function(Vvr,B3){var e0e=ye();B3.exports=function(r,e){var t=e0e.console;t&&t.error&&(arguments.length==1?t.error(r):t.error(r,e))}});var $o=x(function(Kvr,$3){$3.exports=function(r){try{return{error:!1,value:r()}}catch(e){return{error:!0,value:e}}}});var H3=x(function(Yvr,z3){var G3=n(function(){this.head=null,this.tail=null},"Queue");G3.prototype={add:n(function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},"add"),get:n(function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item},"get")};z3.exports=G3});var Wu=x(function(Qvr,W3){var r0e=ye();W3.exports=r0e.Promise});var Tg=x(function(Jvr,V3){function Eg(r){"@babel/helpers - typeof";return Eg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Eg(r)}n(Eg,"_typeof");V3.exports=(typeof Deno=="undefined"?"undefined":Eg(Deno))=="object"&&Deno&&Eg(Deno.version)=="object"});var c_=x(function(eyr,K3){function Rg(r){"@babel/helpers - typeof";return Rg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rg(r)}n(Rg,"_typeof");var t0e=Tg(),n0e=Uo();K3.exports=!t0e&&!n0e&&(typeof window=="undefined"?"undefined":Rg(window))=="object"&&(typeof document=="undefined"?"undefined":Rg(document))=="object"});var Zl=x(function(tyr,Q3){var i0e=ye(),sd=Wu(),a0e=ke(),o0e=xl(),u0e=Ll(),s0e=Se(),l0e=c_(),c0e=Tg(),f0e=mr(),f_=_o(),Y3=sd&&sd.prototype,p0e=s0e("species"),p_=!1,X3=a0e(i0e.PromiseRejectionEvent),d0e=o0e("Promise",function(){var r=u0e(sd),e=r!==String(sd);if(!e&&f_===66||f0e&&!(Y3.catch&&Y3.finally))return!0;if(!f_||f_<51||!/native code/.test(r)){var t=new sd(function(a){a(1)}),i=n(function(u){u(function(){},function(){})},"FakePromise"),o=t.constructor={};if(o[p0e]=i,p_=t.then(function(){})instanceof i,!p_)return!0}return!e&&(l0e||c0e)&&!X3});Q3.exports={CONSTRUCTOR:d0e,REJECTION_EVENT:X3,SUBCLASSING:p_}});var qa=x(function(iyr,Z3){"use strict";var J3=ve(),h0e=n(function(e){var t,i;this.promise=new e(function(o,a){if(t!==void 0||i!==void 0)throw TypeError("Bad Promise constructor");t=o,i=a}),this.resolve=J3(t),this.reject=J3(i)},"PromiseCapability");Z3.exports.f=function(r){return new h0e(r)}});var bU=x(function(){"use strict";var v0e=B(),y0e=mr(),kg=Uo(),Go=ye(),nc=le(),eU=gr(),rU=$i(),m0e=en(),g0e=Lo(),b0e=ve(),qg=ke(),w0e=Le(),S0e=nn(),O0e=xt(),uU=n_().set,y_=s_(),P0e=l_(),_0e=$o(),E0e=H3(),sU=ar(),jg=Wu(),m_=Zl(),lU=qa(),Fg="Promise",cU=m_.CONSTRUCTOR,T0e=m_.REJECTION_EVENT,R0e=m_.SUBCLASSING,d_=sU.getterFor(Fg),A0e=sU.set,ec=jg&&jg.prototype,Vu=jg,Ag=ec,fU=Go.TypeError,h_=Go.document,g_=Go.process,v_=lU.f,I0e=v_,q0e=!!(h_&&h_.createEvent&&Go.dispatchEvent),pU="unhandledrejection",k0e="rejectionhandled",tU=0,dU=1,j0e=2,b_=1,hU=2,Ig,nU,F0e,iU,vU=n(function(e){var t;return w0e(e)&&qg(t=e.then)?t:!1},"isThenable"),yU=n(function(e,t){var i=t.value,o=t.state==dU,a=o?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain,d,y,m;try{a?(o||(t.rejection===hU&&L0e(t),t.rejection=b_),a===!0?d=i:(l&&l.enter(),d=a(i),l&&(l.exit(),m=!0)),d===e.promise?c(fU("Promise-chain cycle")):(y=vU(d))?nc(y,d,u,c):u(d)):c(i)}catch(b){l&&!m&&l.exit(),c(b)}},"callReaction"),mU=n(function(e,t){e.notified||(e.notified=!0,y_(function(){for(var i=e.reactions,o;o=i.get();)yU(o,e);e.notified=!1,t&&!e.rejection&&C0e(e)}))},"notify"),gU=n(function(e,t,i){var o,a;q0e?(o=h_.createEvent("Event"),o.promise=t,o.reason=i,o.initEvent(e,!1,!0),Go.dispatchEvent(o)):o={promise:t,reason:i},!T0e&&(a=Go["on"+e])?a(o):e===pU&&P0e("Unhandled promise rejection",i)},"dispatchEvent"),C0e=n(function(e){nc(uU,Go,function(){var t=e.facade,i=e.value,o=aU(e),a;if(o&&(a=_0e(function(){kg?g_.emit("unhandledRejection",i,t):gU(pU,t,i)}),e.rejection=kg||aU(e)?hU:b_,a.error))throw a.value})},"onUnhandled"),aU=n(function(e){return e.rejection!==b_&&!e.parent},"isUnhandled"),L0e=n(function(e){nc(uU,Go,function(){var t=e.facade;kg?g_.emit("rejectionHandled",t):gU(k0e,t,e.value)})},"onHandleUnhandled"),rc=n(function(e,t,i){return function(o){e(t,o,i)}},"bind"),tc=n(function(e,t,i){e.done||(e.done=!0,i&&(e=i),e.value=t,e.state=j0e,mU(e,!0))},"internalReject"),oU=n(function r(e,t,i){if(!e.done){e.done=!0,i&&(e=i);try{if(e.facade===t)throw fU("Promise can't be resolved itself");var o=vU(t);o?y_(function(){var a={done:!1};try{nc(o,t,rc(r,a,e),rc(tc,a,e))}catch(u){tc(a,u,e)}}):(e.value=t,e.state=dU,mU(e,!1))}catch(a){tc({done:!1},a,e)}}},"internalResolve");if(cU&&(Vu=n(function(e){S0e(this,Ag),b0e(e),nc(Ig,this);var t=d_(this);try{e(rc(oU,t),rc(tc,t))}catch(i){tc(t,i)}},"Promise"),Ag=Vu.prototype,Ig=n(function(e){A0e(this,{type:Fg,done:!1,notified:!1,parent:!1,reactions:new E0e,rejection:!1,state:tU,value:void 0})},"Promise"),Ig.prototype=eU(Ag,"then",n(function(e,t){var i=d_(this),o=v_(O0e(this,Vu));return i.parent=!0,o.ok=qg(e)?e:!0,o.fail=qg(t)&&t,o.domain=kg?g_.domain:void 0,i.state==tU?i.reactions.add(o):y_(function(){yU(o,i)}),o.promise},"then")),nU=n(function(){var e=new Ig,t=d_(e);this.promise=e,this.resolve=rc(oU,t),this.reject=rc(tc,t)},"OwnPromiseCapability"),lU.f=v_=n(function(e){return e===Vu||e===F0e?new nU(e):I0e(e)},"newPromiseCapability"),!y0e&&qg(jg)&&ec!==Object.prototype)){iU=ec.then,R0e||eU(ec,"then",n(function(e,t){var i=this;return new Vu(function(o,a){nc(iU,i,o,a)}).then(e,t)},"then"),{unsafe:!0});try{delete ec.constructor}catch(r){}rU&&rU(ec,Ag)}v0e({global:!0,constructor:!0,wrap:!0,forced:cU},{Promise:Vu});m0e(Vu,Fg,!1,!0);g0e(Fg)});var w_=x(function(lyr,wU){var N0e=Wu(),x0e=$p(),D0e=Zl().CONSTRUCTOR;wU.exports=D0e||!x0e(function(r){N0e.all(r).then(void 0,function(){})})});var SU=x(function(){"use strict";var M0e=B(),U0e=le(),B0e=ve(),$0e=qa(),G0e=$o(),z0e=Pe(),H0e=w_();M0e({target:"Promise",stat:!0,forced:H0e},{all:n(function(e){var t=this,i=$0e.f(t),o=i.resolve,a=i.reject,u=G0e(function(){var c=B0e(t.resolve),l=[],d=0,y=1;z0e(e,function(m){var b=d++,w=!1;y++,U0e(c,t,m).then(function(S){w||(w=!0,l[b]=S,--y||o(l))},a)}),--y||o(l)});return u.error&&a(u.value),i.promise},"all")})});var PU=x(function(){"use strict";var W0e=B(),V0e=mr(),K0e=Zl().CONSTRUCTOR,O_=Wu(),Y0e=ge(),X0e=ke(),Q0e=gr(),OU=O_&&O_.prototype;W0e({target:"Promise",proto:!0,forced:K0e,real:!0},{catch:n(function(e){return this.then(void 0,e)},"_catch")});!V0e&&X0e(O_)&&(S_=Y0e("Promise").prototype.catch,OU.catch!==S_&&Q0e(OU,"catch",S_,{unsafe:!0}));var S_});var _U=x(function(){"use strict";var J0e=B(),Z0e=le(),eSe=ve(),rSe=qa(),tSe=$o(),nSe=Pe(),iSe=w_();J0e({target:"Promise",stat:!0,forced:iSe},{race:n(function(e){var t=this,i=rSe.f(t),o=i.reject,a=tSe(function(){var u=eSe(t.resolve);nSe(e,function(c){Z0e(u,t,c).then(i.resolve,o)})});return a.error&&o(a.value),i.promise},"race")})});var EU=x(function(){"use strict";var aSe=B(),oSe=le(),uSe=qa(),sSe=Zl().CONSTRUCTOR;aSe({target:"Promise",stat:!0,forced:sSe},{reject:n(function(e){var t=uSe.f(this);return oSe(t.reject,void 0,e),t.promise},"reject")})});var P_=x(function(Oyr,TU){var lSe=re(),cSe=Le(),fSe=qa();TU.exports=function(r,e){if(lSe(r),cSe(e)&&e.constructor===r)return e;var t=fSe.f(r),i=t.resolve;return i(e),t.promise}});var IU=x(function(){"use strict";var pSe=B(),dSe=ge(),RU=mr(),hSe=Wu(),AU=Zl().CONSTRUCTOR,vSe=P_(),ySe=dSe("Promise"),mSe=RU&&!AU;pSe({target:"Promise",stat:!0,forced:RU||AU},{resolve:n(function(e){return vSe(mSe&&this===ySe?hSe:this,e)},"resolve")})});var DU=x(function(qyr,xU){"use strict";var LU=se(),GSe=ve(),zSe=Le(),HSe=Ne(),CU=ko(),WSe=Fl(),NU=Function,VSe=LU([].concat),KSe=LU([].join),T_={},YSe=n(function(e,t,i){if(!HSe(T_,t)){for(var o=[],a=0;a<t;a++)o[a]="a["+a+"]";T_[t]=NU("C,a","return new C("+KSe(o,",")+")")}return T_[t](e,i)},"construct");xU.exports=WSe?NU.bind:n(function(e){var t=GSe(this),i=t.prototype,o=CU(arguments,1),a=n(function(){var c=VSe(o,CU(arguments));return this instanceof a?YSe(t,c.length,c):t.apply(e,c)},"bound");return zSe(i)&&(a.prototype=i),a},"bind")});var I_=x(function(Lyr,KU){var VU=Ne();KU.exports=function(r){return r!==void 0&&(VU(r,"value")||VU(r,"writable"))}});var ic=x(function(zyr,r8){var YOe=Le(),XOe=Zt(),QOe=Se(),JOe=QOe("match");r8.exports=function(r){var e;return YOe(r)&&((e=r[JOe])!==void 0?!!e:XOe(r)=="RegExp")}});var Lg=x(function(Hyr,t8){"use strict";var ZOe=re();t8.exports=function(){var r=ZOe(this),e="";return r.hasIndices&&(e+="d"),r.global&&(e+="g"),r.ignoreCase&&(e+="i"),r.multiline&&(e+="m"),r.dotAll&&(e+="s"),r.unicode&&(e+="u"),r.unicodeSets&&(e+="v"),r.sticky&&(e+="y"),e}});var ac=x(function(Wyr,i8){var e1e=le(),r1e=Ne(),t1e=Nt(),n1e=Lg(),n8=RegExp.prototype;i8.exports=function(r){var e=r.flags;return e===void 0&&!("flags"in n8)&&!r1e(r,"flags")&&t1e(n8,r)?e1e(n1e,r):e}});var ld=x(function(Vyr,a8){var k_=ue(),i1e=ye(),j_=i1e.RegExp,F_=k_(function(){var r=j_("a","y");return r.lastIndex=2,r.exec("abcd")!=null}),a1e=F_||k_(function(){return!j_("a","y").sticky}),o1e=F_||k_(function(){var r=j_("^r","gy");return r.lastIndex=2,r.exec("str")!=null});a8.exports={BROKEN_CARET:o1e,MISSED_STICKY:a1e,UNSUPPORTED_Y:F_}});var Ng=x(function(Kyr,o8){var u1e=ue(),s1e=ye(),l1e=s1e.RegExp;o8.exports=u1e(function(){var r=l1e(".","s");return!(r.dotAll&&r.exec("\n")&&r.flags==="s")})});var C_=x(function(Yyr,u8){var c1e=ue(),f1e=ye(),p1e=f1e.RegExp;u8.exports=c1e(function(){var r=p1e("(?<a>b)","g");return r.exec("b").groups.a!=="b"||"b".replace(r,"$<a>c")!=="bc"})});var ka=x(function(Qyr,m8){var y8=Pm(),x1e=tr();m8.exports=function(r,e,t){return t.get&&y8(t.get,e,{getter:!0}),t.set&&y8(t.set,e,{setter:!0}),x1e.f(r,e,t)}});var fd=x(function(Zyr,w8){"use strict";var uc=le(),Mg=se(),z1e=Ge(),H1e=Lg(),W1e=ld(),V1e=Ro(),K1e=Gr(),Y1e=ar().get,X1e=Ng(),Q1e=C_(),J1e=V1e("native-string-replace",String.prototype.replace),Dg=RegExp.prototype.exec,U_=Dg,Z1e=Mg("".charAt),ePe=Mg("".indexOf),rPe=Mg("".replace),M_=Mg("".slice),B_=function(){var r=/a/,e=/b*/g;return uc(Dg,r,"a"),uc(Dg,e,"a"),r.lastIndex!==0||e.lastIndex!==0}(),b8=W1e.BROKEN_CARET,$_=/()??/.exec("")[1]!==void 0,tPe=B_||$_||b8||X1e||Q1e;tPe&&(U_=n(function(e){var t=this,i=Y1e(t),o=z1e(e),a=i.raw,u,c,l,d,y,m,b;if(a)return a.lastIndex=t.lastIndex,u=uc(U_,a,o),t.lastIndex=a.lastIndex,u;var w=i.groups,S=b8&&t.sticky,P=uc(H1e,t),R=t.source,I=0,T=o;if(S&&(P=rPe(P,"y",""),ePe(P,"g")===-1&&(P+="g"),T=M_(o,t.lastIndex),t.lastIndex>0&&(!t.multiline||t.multiline&&Z1e(o,t.lastIndex-1)!=="\n")&&(R="(?: "+R+")",T=" "+T,I++),c=new RegExp("^(?:"+R+")",P)),$_&&(c=new RegExp("^"+R+"$(?!\\s)",P)),B_&&(l=t.lastIndex),d=uc(Dg,S?c:t,T),S?d?(d.input=M_(d.input,I),d[0]=M_(d[0],I),d.index=t.lastIndex,t.lastIndex+=d[0].length):t.lastIndex=0:B_&&d&&(t.lastIndex=t.global?d.index+d[0].length:l),$_&&d&&d.length>1&&uc(J1e,d[0],c,function(){for(y=1;y<arguments.length-2;y++)arguments[y]===void 0&&(d[y]=void 0)}),d&&w)for(d.groups=m=K1e(null),y=0;y<w.length;y++)b=w[y],m[b[0]]=d[b[1]];return d},"exec"));w8.exports=U_});var Ug=x(function(){"use strict";var nPe=B(),S8=fd();nPe({target:"RegExp",proto:!0,forced:/./.exec!==S8},{exec:S8})});var R8=x(function(){"use strict";var jPe=Kp(),FPe=wP();jPe("Set",function(r){return n(function(){return r(this,arguments.length?arguments[0]:void 0)},"Set")},FPe)});var Yu=x(function(fmr,q8){var z_=se(),$Pe=Pr(),GPe=Ge(),zPe=Br(),HPe=z_("".charAt),A8=z_("".charCodeAt),WPe=z_("".slice),I8=n(function(e){return function(t,i){var o=GPe(zPe(t)),a=$Pe(i),u=o.length,c,l;return a<0||a>=u?e?"":void 0:(c=A8(o,a),c<55296||c>56319||a+1===u||(l=A8(o,a+1))<56320||l>57343?e?HPe(o,a):c:e?WPe(o,a,a+2):(c-55296<<10)+(l-56320)+65536)}},"createMethod");q8.exports={codeAt:I8(!1),charAt:I8(!0)}});var Bg=x(function(hmr,k8){var YPe=ic(),XPe=TypeError;k8.exports=function(r){if(YPe(r))throw XPe("The method doesn't accept regular expressions");return r}});var $g=x(function(vmr,j8){var QPe=Se(),JPe=QPe("match");j8.exports=function(r){var e=/./;try{"/./"[r](e)}catch(t){try{return e[JPe]=!1,"/./"[r](e)}catch(i){}}return!1}});var H_=x(function(){"use strict";var S_e=Yu().charAt,O_e=Ge(),U8=ar(),P_e=Zm(),B8="String Iterator",__e=U8.set,E_e=U8.getterFor(B8);P_e(String,"String",function(r){__e(this,{type:B8,string:O_e(r),index:0})},n(function(){var e=E_e(this),t=e.string,i=e.index,o;return i>=t.length?{value:void 0,done:!0}:(o=S_e(t,i),e.index+=o.length,{value:o,done:!1})},"next"))});var pd=x(function(Omr,W8){"use strict";Ug();var $8=se(),G8=gr(),T_e=fd(),z8=ue(),H8=Se(),R_e=Jr(),A_e=H8("species"),W_=RegExp.prototype;W8.exports=function(r,e,t,i){var o=H8(r),a=!z8(function(){var d={};return d[o]=function(){return 7},""[r](d)!=7}),u=a&&!z8(function(){var d=!1,y=/a/;return r==="split"&&(y={},y.constructor={},y.constructor[A_e]=function(){return y},y.flags="",y[o]=/./[o]),y.exec=function(){return d=!0,null},y[o](""),!d});if(!a||!u||t){var c=$8(/./[o]),l=e(o,""[r],function(d,y,m,b,w){var S=$8(d),P=y.exec;return P===T_e||P===W_.exec?a&&!w?{done:!0,value:c(y,m,b)}:{done:!0,value:S(m,y,b)}:{done:!1}});G8(String.prototype,r,l[0]),G8(W_,o,l[1])}i&&R_e(W_[o],"sham",!0)}});var dd=x(function(Pmr,V8){"use strict";var I_e=Yu().charAt;V8.exports=function(r,e,t){return e+(t?I_e(r,e).length:1)}});var sc=x(function(_mr,Y8){var K8=le(),q_e=re(),k_e=ke(),j_e=Zt(),F_e=fd(),C_e=TypeError;Y8.exports=function(r,e){var t=r.exec;if(k_e(t)){var i=K8(t,r,e);return i!==null&&q_e(i),i}if(j_e(r)==="RegExp")return K8(F_e,r,e);throw C_e("RegExp#exec called on incompatible receiver")}});var J_=x(function(Rmr,l4){var s4=se(),iEe=bn(),o4=Ge(),aEe=rd(),oEe=Br(),uEe=s4(aEe),sEe=s4("".slice),lEe=Math.ceil,u4=n(function(e){return function(t,i,o){var a=o4(oEe(t)),u=iEe(i),c=a.length,l=o===void 0?" ":o4(o),d,y;return u<=c||l==""?a:(d=u-c,y=uEe(l,lEe(d/l.length)),y.length>d&&(y=sEe(y,0,d)),e?a+y:y+a)}},"createMethod");l4.exports={start:u4(!1),end:u4(!0)}});var Z_=x(function(Imr,c4){var cEe=Pa();c4.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(cEe)});var nE=x(function(Fmr,h4){var tE=se(),_Ee=Ue(),EEe=Math.floor,eE=tE("".charAt),TEe=tE("".replace),rE=tE("".slice),REe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,AEe=/\$([$&'`]|\d{1,2})/g;h4.exports=function(r,e,t,i,o,a){var u=t+r.length,c=i.length,l=AEe;return o!==void 0&&(o=_Ee(o),l=REe),TEe(a,l,function(d,y){var m;switch(eE(y,0)){case"$":return"$";case"&":return r;case"`":return rE(e,0,t);case"'":return rE(e,u);case"<":m=o[rE(y,1,-1)];break;default:var b=+y;if(b===0)return d;if(b>c){var w=EEe(b/10);return w===0?d:w<=c?i[w-1]===void 0?eE(y,1):i[w-1]+eE(y,1):d}m=i[b-1]}return m===void 0?"":m})}});var Wg=x(function(Mmr,N4){var xTe=Au().PROPER,DTe=ue(),C4=Jp(),L4="\u200B\x85\u180E";N4.exports=function(r){return DTe(function(){return!!C4[r]()||L4[r]()!==L4||xTe&&C4[r].name!==r})}});var lE=x(function(Bmr,x4){"use strict";var $Te=Bu().end,GTe=Wg();x4.exports=GTe("trimEnd")?n(function(){return $Te(this)},"trimEnd"):"".trimEnd});var M4=x(function(){var zTe=B(),D4=lE();zTe({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==D4},{trimRight:D4})});var cE=x(function(Hmr,B4){"use strict";var WTe=Bu().start,VTe=Wg();B4.exports=VTe("trimStart")?n(function(){return WTe(this)},"trimStart"):"".trimStart});var G4=x(function(){var KTe=B(),$4=cE();KTe({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==$4},{trimLeft:$4})});var an=x(function(Ymr,W4){var XTe=se(),QTe=Br(),H4=Ge(),JTe=/"/g,ZTe=XTe("".replace);W4.exports=function(r,e,t,i){var o=H4(QTe(r)),a="<"+e;return t!==""&&(a+=" "+t+'="'+ZTe(H4(i),JTe,""")+'"'),a+">"+o+"</"+e+">"}});var on=x(function(Xmr,V4){var eRe=ue();V4.exports=function(r){return eRe(function(){var e=""[r]('"');return e!==e.toLowerCase()||e.split('"').length>3})}});var Ie=x(function(cgr,tB){"use strict";var URe=rP(),hE=Ae(),Dt=ye(),Q4=ke(),Yg=Le(),Vo=Ne(),vE=hi(),BRe=To(),$Re=Jr(),fE=gr(),GRe=tr().f,zRe=Nt(),Xg=vt(),hc=$i(),HRe=Se(),WRe=Tu(),J4=ar(),Z4=J4.enforce,VRe=J4.get,Vg=Dt.Int8Array,pE=Vg&&Vg.prototype,K4=Dt.Uint8ClampedArray,Y4=K4&&K4.prototype,Ki=Vg&&Xg(Vg),mi=pE&&Xg(pE),KRe=Object.prototype,yE=Dt.TypeError,X4=HRe("toStringTag"),dE=WRe("TYPED_ARRAY_TAG"),Kg="TypedArrayConstructor",ja=URe&&!!hc&&vE(Dt.opera)!=="Opera",eB=!1,un,Wo,dc,Fa={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},mE={BigInt64Array:8,BigUint64Array:8},YRe=n(function(e){if(!Yg(e))return!1;var t=vE(e);return t==="DataView"||Vo(Fa,t)||Vo(mE,t)},"isView"),XRe=n(function r(e){var t=Xg(e);if(Yg(t)){var i=VRe(t);return i&&Vo(i,Kg)?i[Kg]:r(t)}},"getTypedArrayConstructor"),rB=n(function(e){if(!Yg(e))return!1;var t=vE(e);return Vo(Fa,t)||Vo(mE,t)},"isTypedArray"),QRe=n(function(e){if(rB(e))return e;throw yE("Target is not a typed array")},"aTypedArray"),JRe=n(function(e){if(Q4(e)&&(!hc||zRe(Ki,e)))return e;throw yE(BRe(e)+" is not a typed array constructor")},"aTypedArrayConstructor"),ZRe=n(function(e,t,i,o){if(hE){if(i)for(var a in Fa){var u=Dt[a];if(u&&Vo(u.prototype,e))try{delete u.prototype[e]}catch(c){try{u.prototype[e]=t}catch(l){}}}(!mi[e]||i)&&fE(mi,e,i?t:ja&&pE[e]||t,o)}},"exportTypedArrayMethod"),eAe=n(function(e,t,i){var o,a;if(hE){if(hc){if(i){for(o in Fa)if(a=Dt[o],a&&Vo(a,e))try{delete a[e]}catch(u){}}if(!Ki[e]||i)try{return fE(Ki,e,i?t:ja&&Ki[e]||t)}catch(u){}else return}for(o in Fa)a=Dt[o],a&&(!a[e]||i)&&fE(a,e,t)}},"exportTypedArrayStaticMethod");for(un in Fa)Wo=Dt[un],dc=Wo&&Wo.prototype,dc?Z4(dc)[Kg]=Wo:ja=!1;for(un in mE)Wo=Dt[un],dc=Wo&&Wo.prototype,dc&&(Z4(dc)[Kg]=Wo);if((!ja||!Q4(Ki)||Ki===Function.prototype)&&(Ki=n(function(){throw yE("Incorrect invocation")},"TypedArray"),ja))for(un in Fa)Dt[un]&&hc(Dt[un],Ki);if((!ja||!mi||mi===KRe)&&(mi=Ki.prototype,ja))for(un in Fa)Dt[un]&&hc(Dt[un].prototype,mi);ja&&Xg(Y4)!==mi&&hc(Y4,mi);if(hE&&!Vo(mi,X4)){eB=!0,GRe(mi,X4,{get:n(function(){return Yg(this)?this[dE]:void 0},"get")});for(un in Fa)Dt[un]&&$Re(Dt[un],dE,un)}tB.exports={NATIVE_ARRAY_BUFFER_VIEWS:ja,TYPED_ARRAY_TAG:eB&&dE,aTypedArray:QRe,aTypedArrayConstructor:JRe,exportTypedArrayMethod:ZRe,exportTypedArrayStaticMethod:eAe,getTypedArrayConstructor:XRe,isView:YRe,isTypedArray:rB,TypedArray:Ki,TypedArrayPrototype:mi}});var Qg=x(function(pgr,iB){var nB=ye(),gE=ue(),rAe=$p(),tAe=Ie().NATIVE_ARRAY_BUFFER_VIEWS,nAe=nB.ArrayBuffer,Xu=nB.Int8Array;iB.exports=!tAe||!gE(function(){Xu(1)})||!gE(function(){new Xu(-1)})||!rAe(function(r){new Xu,new Xu(null),new Xu(1.5),new Xu(r)},!0)||gE(function(){return new Xu(new nAe(2),1,void 0).length!==1})});var vc=x(function(dgr,aB){var iAe=Pr(),aAe=RangeError;aB.exports=function(r){var e=iAe(r);if(e<0)throw aAe("The argument can't be less than 0");return e}});var bE=x(function(hgr,oB){var oAe=vc(),uAe=RangeError;oB.exports=function(r,e){var t=oAe(r);if(t%e)throw uAe("Wrong offset");return t}});var wE=x(function(vgr,uB){var sAe=or(),lAe=le(),cAe=Ql(),fAe=Ue(),pAe=$e(),dAe=Kn(),hAe=zi(),vAe=Gm(),yAe=Ie().aTypedArrayConstructor;uB.exports=n(function(e){var t=cAe(this),i=fAe(e),o=arguments.length,a=o>1?arguments[1]:void 0,u=a!==void 0,c=hAe(i),l,d,y,m,b,w;if(c&&!vAe(c))for(b=dAe(i,c),w=b.next,i=[];!(m=lAe(w,b)).done;)i.push(m.value);for(u&&o>2&&(a=sAe(a,arguments[2])),d=pAe(i),y=new(yAe(t))(d),l=0;d>l;l++)y[l]=u?a(i[l],l):i[l];return y},"from")});var Yi=x(function(mgr,RE){"use strict";var sB=B(),bB=ye(),lB=le(),mAe=Ae(),gAe=Qg(),yc=Ie(),wB=cP(),cB=nn(),bAe=gn(),md=Jr(),wAe=bg(),SAe=bn(),fB=tP(),SE=bE(),SB=Ui(),gd=Ne(),OAe=hi(),_E=Le(),PAe=Eo(),_Ae=Gr(),EAe=Nt(),Jg=$i(),TAe=_a().f,pB=wE(),RAe=zr().forEach,AAe=Lo(),OB=tr(),PB=ht(),AE=ar(),IAe=Lu(),EE=AE.get,qAe=AE.set,kAe=AE.enforce,IE=OB.f,jAe=PB.f,FAe=Math.round,OE=bB.RangeError,_B=wB.ArrayBuffer,CAe=_B.prototype,LAe=wB.DataView,Zg=yc.NATIVE_ARRAY_BUFFER_VIEWS,dB=yc.TYPED_ARRAY_TAG,hB=yc.TypedArray,bd=yc.TypedArrayPrototype,NAe=yc.aTypedArrayConstructor,TE=yc.isTypedArray,eb="BYTES_PER_ELEMENT",PE="Wrong length",vB=n(function(e,t){NAe(e);for(var i=0,o=t.length,a=new e(o);o>i;)a[i]=t[i++];return a},"fromList"),rb=n(function(e,t){IE(e,t,{get:n(function(){return EE(this)[t]},"get")})},"addGetter"),yB=n(function(e){var t;return EAe(CAe,e)||(t=OAe(e))=="ArrayBuffer"||t=="SharedArrayBuffer"},"isArrayBuffer"),EB=n(function(e,t){return TE(e)&&!PAe(t)&&t in e&&wAe(+t)&&t>=0},"isTypedArrayIndex"),mB=n(function(e,t){return t=SB(t),EB(e,t)?bAe(2,e[t]):jAe(e,t)},"getOwnPropertyDescriptor"),gB=n(function(e,t,i){return t=SB(t),EB(e,t)&&_E(i)&&gd(i,"value")&&!gd(i,"get")&&!gd(i,"set")&&!i.configurable&&(!gd(i,"writable")||i.writable)&&(!gd(i,"enumerable")||i.enumerable)?(e[t]=i.value,e):IE(e,t,i)},"defineProperty");mAe?(Zg||(PB.f=mB,OB.f=gB,rb(bd,"buffer"),rb(bd,"byteOffset"),rb(bd,"byteLength"),rb(bd,"length")),sB({target:"Object",stat:!0,forced:!Zg},{getOwnPropertyDescriptor:mB,defineProperty:gB}),RE.exports=function(r,e,t){var i=r.match(/\d+$/)[0]/8,o=r+(t?"Clamped":"")+"Array",a="get"+r,u="set"+r,c=bB[o],l=c,d=l&&l.prototype,y={},m=n(function(R,I){var T=EE(R);return T.view[a](I*i+T.byteOffset,!0)},"getter"),b=n(function(R,I,T){var F=EE(R);t&&(T=(T=FAe(T))<0?0:T>255?255:T&255),F.view[u](I*i+F.byteOffset,T,!0)},"setter"),w=n(function(R,I){IE(R,I,{get:n(function(){return m(this,I)},"get"),set:n(function(F){return b(this,I,F)},"set"),enumerable:!0})},"addElement");Zg?gAe&&(l=e(function(P,R,I,T){return cB(P,d),IAe(function(){return _E(R)?yB(R)?T!==void 0?new c(R,SE(I,i),T):I!==void 0?new c(R,SE(I,i)):new c(R):TE(R)?vB(l,R):lB(pB,l,R):new c(fB(R))}(),P,l)}),Jg&&Jg(l,hB),RAe(TAe(c),function(P){P in l||md(l,P,c[P])}),l.prototype=d):(l=e(function(P,R,I,T){cB(P,d);var F=0,k=0,U,D,H;if(!_E(R))H=fB(R),D=H*i,U=new _B(D);else if(yB(R)){U=R,k=SE(I,i);var $=R.byteLength;if(T===void 0){if($%i||(D=$-k,D<0))throw OE(PE)}else if(D=SAe(T)*i,D+k>$)throw OE(PE);H=D/i}else return TE(R)?vB(l,R):lB(pB,l,R);for(qAe(P,{buffer:U,byteOffset:k,byteLength:D,length:H,view:new LAe(U)});F<H;)w(P,F++)}),Jg&&Jg(l,hB),d=l.prototype=_Ae(bd)),d.constructor!==l&&md(d,"constructor",l),kAe(d).TypedArrayConstructor=l,dB&&md(d,dB,o);var S=l!=c;y[o]=l,sB({global:!0,constructor:!0,forced:S,sham:!Zg},y),eb in l||md(l,eb,i),eb in d||md(d,eb,i),AAe(o)}):RE.exports=function(){}});var qE=x(function(kgr,IB){var iIe=mm(),aIe=TypeError;IB.exports=function(r){var e=iIe(r,"number");if(typeof e=="number")throw aIe("Can't convert number to bigint");return BigInt(e)}});var mc=x(function(Fgr,kB){var yIe=$e();kB.exports=function(r,e){for(var t=0,i=yIe(e),o=new r(i);i>t;)o[t]=e[t++];return o}});var gc=x(function(Cgr,FB){var jB=Ie(),mIe=xt(),gIe=jB.aTypedArrayConstructor,bIe=jB.getTypedArrayConstructor;FB.exports=function(r){return gIe(mIe(r,bIe(r)))}});var wd=x(function(Lgr,CB){var wIe=mc(),SIe=gc();CB.exports=function(r,e){return wIe(SIe(r),e)}});var XB=x(function(Wgr,YB){"use strict";var oqe=tn(),uqe=$r(),sqe=Pr(),lqe=$e(),cqe=Mu(),fqe=Math.min,LE=[].lastIndexOf,KB=!!LE&&1/[1].lastIndexOf(1,-0)<0,pqe=cqe("lastIndexOf"),dqe=KB||!pqe;YB.exports=dqe?n(function(e){if(KB)return oqe(LE,this,arguments)||0;var t=uqe(this),i=lqe(t),o=i-1;for(arguments.length>1&&(o=fqe(o,sqe(arguments[1]))),o<0&&(o=i+o);o>=0;o--)if(o in t&&t[o]===e)return o||0;return-1},"lastIndexOf"):LE});var NE=x(function(Qgr,r6){var Eqe=ve(),Tqe=Ue(),Rqe=Oa(),Aqe=$e(),Iqe=TypeError,e6=n(function(e){return function(t,i,o,a){Eqe(i);var u=Tqe(t),c=Rqe(u),l=Aqe(u),d=e?l-1:0,y=e?-1:1;if(o<2)for(;;){if(d in c){a=c[d],d+=y;break}if(d+=y,e?d<0:l<=d)throw Iqe("Reduce of empty array with no initial value")}for(;e?d>=0:l>d;d+=y)d in c&&(a=i(a,c[d],d,u));return a}},"createMethod");r6.exports={left:e6(!1),right:e6(!0)}});var zE=x(function(lbr,I6){"use strict";var Tke=se(),_6=Hi(),ob=Do().getWeakData,Rke=re(),$E=Le(),Ake=nn(),Ike=Pe(),T6=zr(),E6=Ne(),R6=ar(),qke=R6.set,kke=R6.getterFor,jke=T6.find,Fke=T6.findIndex,Cke=Tke([].splice),Lke=0,ub=n(function(e){return e.frozen||(e.frozen=new A6)},"uncaughtFrozenStore"),A6=n(function(){this.entries=[]},"UncaughtFrozenStore"),GE=n(function(e,t){return jke(e.entries,function(i){return i[0]===t})},"findUncaughtFrozen");A6.prototype={get:n(function(e){var t=GE(this,e);if(t)return t[1]},"get"),has:n(function(e){return!!GE(this,e)},"has"),set:n(function(e,t){var i=GE(this,e);i?i[1]=t:this.entries.push([e,t])},"set"),delete:n(function(e){var t=Fke(this.entries,function(i){return i[0]===e});return~t&&Cke(this.entries,t,1),!!~t},"_delete")};I6.exports={getConstructor:n(function(e,t,i,o){var a=e(function(d,y){Ake(d,u),qke(d,{type:t,id:Lke++,frozen:void 0}),y!=null&&Ike(y,d[o],{that:d,AS_ENTRIES:i})}),u=a.prototype,c=kke(t),l=n(function(y,m,b){var w=c(y),S=ob(Rke(m),!0);return S===!0?ub(w).set(m,b):S[w.id]=b,y},"define");return _6(u,{delete:n(function(y){var m=c(this);if(!$E(y))return!1;var b=ob(y);return b===!0?ub(m).delete(y):b&&E6(b,m.id)&&delete b[m.id]},"_delete"),has:n(function(y){var m=c(this);if(!$E(y))return!1;var b=ob(y);return b===!0?ub(m).has(y):b&&E6(b,m.id)},"has")}),_6(u,i?{get:n(function(y){var m=c(this);if($E(y)){var b=ob(y);return b===!0?ub(m).get(y):b?b[m.id]:void 0}},"get"),set:n(function(y,m){return l(this,y,m)},"set")}:{add:n(function(y){return l(this,y,!0)},"add")}),a},"getConstructor")}});var F6=x(function(){"use strict";var q6=ye(),sb=se(),Nke=Hi(),xke=Do(),Dke=Kp(),k6=zE(),lb=Le(),cb=Vp(),fb=ar().enforce,Mke=UO(),Uke=!q6.ActiveXObject&&"ActiveXObject"in q6,Od,j6=n(function(e){return n(function(){return e(this,arguments.length?arguments[0]:void 0)},"WeakMap")},"wrapper"),Bke=Dke("WeakMap",j6,k6);Mke&&Uke&&(Od=k6.getConstructor(j6,"WeakMap",!0),xke.enable(),Sc=Bke.prototype,HE=sb(Sc.delete),Pd=sb(Sc.has),WE=sb(Sc.get),VE=sb(Sc.set),Nke(Sc,{delete:n(function(e){if(lb(e)&&!cb(e)){var t=fb(this);return t.frozen||(t.frozen=new Od),HE(this,e)||t.frozen.delete(e)}return HE(this,e)},"_delete"),has:n(function(e){if(lb(e)&&!cb(e)){var t=fb(this);return t.frozen||(t.frozen=new Od),Pd(this,e)||t.frozen.has(e)}return Pd(this,e)},"has"),get:n(function(e){if(lb(e)&&!cb(e)){var t=fb(this);return t.frozen||(t.frozen=new Od),Pd(this,e)?WE(this,e):t.frozen.get(e)}return WE(this,e)},"get"),set:n(function(e,t){if(lb(e)&&!cb(e)){var i=fb(this);i.frozen||(i.frozen=new Od),Pd(this,e)?VE(this,e,t):i.frozen.set(e,t)}else VE(this,e,t);return this},"set")}));var Sc,HE,Pd,WE,VE});var pb=x(function(){F6()});var C6=x(function(){"use strict";var $ke=Kp(),Gke=zE();$ke("WeakSet",function(r){return n(function(){return r(this,arguments.length?arguments[0]:void 0)},"WeakSet")},Gke)});var _d=x(function(bbr,$6){var M6=ye(),U6=_p(),B6=ke(),zke=Gr(),db=vt(),Hke=gr(),Wke=Se(),Vke=mr(),L6="USE_FUNCTION_CONSTRUCTOR",N6=Wke("asyncIterator"),x6=M6.AsyncIterator,D6=U6.AsyncIteratorPrototype,Xi,KE;if(D6)Xi=D6;else if(B6(x6))Xi=x6.prototype;else if(U6[L6]||M6[L6])try{KE=db(db(db(Function("return async function*(){}()")()))),db(KE)===Object.prototype&&(Xi=KE)}catch(r){}Xi?Vke&&(Xi=zke(Xi)):Xi={};B6(Xi[N6])||Hke(Xi,N6,function(){return this});$6.exports=Xi});var Ed=x(function(wbr,Y6){"use strict";var G6=le(),YE=re(),Kke=Gr(),Yke=Qr(),Xke=Hi(),W6=ar(),Qke=ge(),Jke=_d(),XE=Qke("Promise"),V6="AsyncFromSyncIterator",Zke=W6.set,z6=W6.getterFor(V6),H6=n(function(e,t,i){var o=e.done;XE.resolve(e.value).then(function(a){t({done:o,value:a})},i)},"asyncFromSyncIteratorContinuation"),K6=n(function(e){Zke(this,{type:V6,iterator:YE(e),next:e.next})},"AsyncIterator");K6.prototype=Xke(Kke(Jke),{next:n(function(){var e=z6(this);return new XE(function(t,i){var o=YE(G6(e.next,e.iterator));H6(o,t,i)})},"next"),return:n(function(){var e=z6(this).iterator;return new XE(function(t,i){var o=Yke(e,"return");if(o===void 0)return t({done:!0,value:void 0});var a=YE(G6(o,e));H6(a,t,i)})},"_return")});Y6.exports=K6});var hb=x(function(Obr,X6){var e2e=le(),r2e=Ed(),t2e=re(),n2e=Kn(),i2e=Qr(),a2e=Se(),o2e=a2e("asyncIterator");X6.exports=function(r,e){var t=arguments.length<2?i2e(r,o2e):e;return t?t2e(e2e(t,r)):new r2e(n2e(r))}});var QE=x(function(Pbr,Q6){var u2e=ye();Q6.exports=function(r){return u2e[r].prototype}});var wr=x(function(_br,J6){var s2e=ve(),l2e=re();J6.exports=function(r){return{iterator:r,next:s2e(l2e(r).next)}}});var Oc=x(function(Ebr,Z6){var c2e=le(),f2e=ge(),p2e=Qr();Z6.exports=function(r,e,t,i){try{var o=p2e(r,"return");if(o)return f2e("Promise").resolve(c2e(o,r)).then(function(){e(t)},function(a){i(a)})}catch(a){return i(a)}e(t)}});var Qu=x(function(Tbr,r7){"use strict";var d2e=le(),h2e=ve(),e7=re(),v2e=Du(),y2e=ge(),m2e=wr(),JE=Oc(),Td=n(function(e){var t=e==0,i=e==1,o=e==2,a=e==3;return function(u,c,l){var d=m2e(u),y=y2e("Promise"),m=d.iterator,b=d.next,w=0,S=c!==void 0;return(S||!t)&&h2e(c),new y(function(P,R){var I=n(function(k){JE(m,R,k,R)},"ifAbruptCloseAsyncIterator"),T=n(function F(){try{if(t&&S)try{v2e(w)}catch(k){I(k)}y.resolve(e7(d2e(b,m))).then(function(k){try{if(e7(k).done)t?(l.length=w,P(l)):P(a?!1:o||void 0);else{var U=k.value;try{S?y.resolve(t?c(U,w):c(U)).then(function(D){if(i)F();else if(o)D?F():JE(m,P,!1,R);else if(t)try{l[w++]=D,F()}catch(H){I(H)}else D?JE(m,P,a||U,R):F()},I):(l[w++]=U,F())}catch(D){I(D)}}}catch(D){R(D)}},R)}catch(k){R(k)}},"loop");T()})}},"createMethod");r7.exports={toArray:Td(0),forEach:Td(1),every:Td(2),some:Td(3),find:Td(4)}});var ZE=x(function(Abr,t7){"use strict";var g2e=or(),b2e=Ue(),w2e=vi(),S2e=hb(),O2e=Kn(),P2e=zi(),_2e=Qr(),E2e=QE(),T2e=ge(),R2e=Se(),A2e=Ed(),I2e=Qu().toArray,q2e=R2e("asyncIterator"),k2e=E2e("Array").values;t7.exports=n(function(e){var t=this,i=arguments.length,o=i>1?arguments[1]:void 0,a=i>2?arguments[2]:void 0;return new(T2e("Promise"))(function(u){var c=b2e(e);o!==void 0&&(o=g2e(o,a));var l=_2e(c,q2e),d=l?void 0:P2e(c)||k2e,y=w2e(t)?new t:[],m=l?S2e(c,l):new A2e(O2e(c,d));u(I2e(m,o,y))})},"fromAsync")});var vb=x(function(jbr,n7){var U2e=or(),B2e=se(),$2e=Oa(),G2e=Ue(),z2e=Ui(),H2e=$e(),W2e=Gr(),V2e=mc(),K2e=Array,Y2e=B2e([].push);n7.exports=function(r,e,t,i){for(var o=G2e(r),a=$2e(o),u=U2e(e,t),c=W2e(null),l=H2e(a),d=0,y,m,b;l>d;d++)b=a[d],m=z2e(u(b,d,o)),m in c?Y2e(c[m],b):c[m]=[b];if(i&&(y=i(o),y!==K2e))for(m in c)c[m]=V2e(y,c[m]);return c}});var rT=x(function(Lbr,a7){"use strict";var nje=ge(),ije=or(),yb=se(),aje=Oa(),oje=Ue(),uje=$e(),i7=nje("Map"),eT=i7.prototype,sje=yb(eT.get),lje=yb(eT.has),cje=yb(eT.set),fje=yb([].push);a7.exports=n(function(e){for(var t=oje(this),i=aje(t),o=ije(e,arguments.length>1?arguments[1]:void 0),a=new i7,u=uje(i),c=0,l,d;u>c;c++)d=i[c],l=o(d,c,t),lje(a,l)?fje(sje(a,l),d):cje(a,l,[d]);return a},"groupToMap")});var tT=x(function(Ubr,c7){var Ije=$e();c7.exports=function(r,e){for(var t=Ije(r),i=new e(t),o=0;o<t;o++)i[o]=r[t-o-1];return i}});var gb=x(function(zbr,p7){"use strict";var eFe=ge(),mb=se(),rFe=ve(),tFe=$e(),nFe=Ue(),iFe=ju(),f7=eFe("Map"),nT=f7.prototype,aFe=mb(nT.forEach),oFe=mb(nT.has),uFe=mb(nT.set),sFe=mb([].push);p7.exports=n(function(e){var t=nFe(this),i=tFe(t),o=iFe(t,0),a=new f7,u=e!=null?rFe(e):function(y){return y},c,l,d;for(c=0;c<i;c++)l=t[c],d=u(l),oFe(a,d)||uFe(a,d,l);return aFe(a,function(y){sFe(o,y)}),o},"uniqueBy")});var iT=x(function(Wbr,d7){var pFe=$e(),dFe=Pr(),hFe=RangeError;d7.exports=function(r,e,t,i){var o=pFe(r),a=dFe(t),u=a<0?o+a:a;if(u>=o||u<0)throw hFe("Incorrect index");for(var c=new e(o),l=0;l<o;l++)c[l]=l===u?i:r[l];return c}});var Ko=x(function(Ybr,E7){"use strict";var OFe=le(),g7=$o(),b7=re(),PFe=Gr(),_Fe=Jr(),EFe=Hi(),TFe=Se(),S7=ar(),RFe=ge(),AFe=Qr(),IFe=_d(),w7=xu(),Zu=RFe("Promise"),O7="AsyncIteratorHelper",P7="WrapForValidAsyncIterator",qFe=S7.set,kFe=TFe("toStringTag"),_7=n(function(e){var t=!e,i=e?P7:O7,o=S7.getterFor(i),a=n(function(d){var y=g7(function(){return o(d)}),m=y.error,b=y.value;return m||t&&b.done?{exit:!0,value:m?Zu.reject(b):Zu.resolve({done:!0,value:void 0})}:{exit:!1,value:b}},"getStateOrEarlyExit"),u=n(function(d,y){var m=n(function(){var w=y();if(t){d.awaiting=w;var S=n(function(){d.awaiting===w&&(d.awaiting=null)},"clean");w.then(S,S)}return w},"task");return d.awaiting?d.awaiting=d.awaiting.then(m,m):m()},"enqueue"),c=EFe(PFe(IFe),{next:n(function(){var d=a(this),y=d.exit,m=d.value;return y?m:u(m,function(){var b=g7(function(){return b7(m.nextHandler(Zu))}),w=b.error,S=b.value;return w&&(m.done=!0),w?Zu.reject(S):Zu.resolve(S)})},"next"),return:n(function(){var d=a(this),y=d.exit,m=d.value;return y?m:u(m,function(){return new Zu(function(b,w){var S=m.iterator,P=m.innerIterator;if(m.done=!0,P)try{w7(P,"return")}catch(I){return w7(S,"throw",I)}var R=AFe(S,"return");if(R===void 0)return b({done:!0,value:void 0});Zu.resolve(OFe(R,S)).then(function(I){b7(I),b({done:!0,value:void 0})},w)})})},"_return")});return t&&_Fe(c,kFe,"Async Iterator Helper"),c},"createAsyncIteratorProxyPrototype"),jFe=_7(!1),FFe=_7(!0);E7.exports=function(r,e){var t=e?P7:O7,i=n(function(a,u){u?(u.iterator=a.iterator,u.next=a.next):u=a,u.type=t,u.nextHandler=r,u.done=!1,u.awaiting=null,qFe(this,u)},"AsyncIterator");return i.prototype=e?FFe:jFe,i}});var oT=x(function(Qbr,R7){"use strict";var CFe=le(),T7=re(),LFe=wr(),NFe=Ko(),xFe=NFe(function(r){var e=this,t=e.iterator;return r.resolve(T7(CFe(e.next,t))).then(function(i){return T7(i).done?(e.done=!0,{done:!0,value:void 0}):{done:!1,value:[e.index++,i.value]}}).then(null,function(i){throw e.done=!0,i})});R7.exports=n(function(){return new xFe(LFe(this),{index:0})},"indexed")});var Rd=x(function(Zbr,A7){var UFe=RangeError;A7.exports=function(r){if(r===r)return r;throw UFe("NaN is not allowed")}});var uT=x(function(owr,F7){var dCe=le(),hCe=Ko();F7.exports=hCe(function(){return dCe(this.next,this.iterator)},!0)});var fT=x(function(dwr,B7){"use strict";function Pc(r){"@babel/helpers - typeof";return Pc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pc(r)}n(Pc,"_typeof");var D7=ar(),rLe=Fo(),tLe=Le(),nLe=Im().f,M7=Ae(),Ad="Incorrect Number.range arguments",cT="NumericRangeIterator",iLe=D7.set,Id=D7.getterFor(cT),x7=RangeError,lT=TypeError,U7=rLe(n(function(e,t,i,o,a,u){if(Pc(e)!=o||t!==1/0&&t!==-1/0&&Pc(t)!=o)throw new lT(Ad);if(e===1/0||e===-1/0)throw new x7(Ad);var c=t>e,l=!1,d;if(i===void 0)d=void 0;else if(tLe(i))d=i.step,l=!!i.inclusive;else if(Pc(i)==o)d=i;else throw new lT(Ad);if(d==null&&(d=c?u:-u),Pc(d)!=o)throw new lT(Ad);if(d===1/0||d===-1/0||d===a&&e!==t)throw new x7(Ad);var y=e!=e||t!=t||d!=d||t>e!=d>a;iLe(this,{type:cT,start:e,end:t,step:d,inclusiveEnd:l,hitsEnd:y,currentCount:a,zero:a}),M7||(this.start=e,this.end=t,this.step=d,this.inclusive=l)},"NumericRangeIterator"),cT,n(function(){var e=Id(this);if(e.hitsEnd)return{value:void 0,done:!0};var t=e.start,i=e.end,o=e.step,a=t+o*e.currentCount++;a===i&&(e.hitsEnd=!0);var u=e.inclusiveEnd,c;return i>t?c=u?a>i:a>=i:c=u?i>a:i>=a,c?{value:void 0,done:e.hitsEnd=!0}:{value:a,done:!1}},"next")),wb=n(function(e){return{get:e,set:n(function(){},"set"),configurable:!0,enumerable:!1}},"getter");M7&&nLe(U7.prototype,{start:wb(function(){return Id(this).start}),end:wb(function(){return Id(this).end}),inclusive:wb(function(){return Id(this).inclusiveEnd}),step:wb(function(){return Id(this).step})});B7.exports=U7});var pT=x(function(ywr,H7){fg();pb();var z7=ge(),uLe=Gr(),$7=Le(),sLe=Object,lLe=TypeError,cLe=z7("Map"),fLe=z7("WeakMap"),Sb=n(function(){this.object=null,this.symbol=null,this.primitives=null,this.objectsByIndex=uLe(null)},"Node");Sb.prototype.get=function(r,e){return this[r]||(this[r]=e())};Sb.prototype.next=function(r,e,t){var i=t?this.objectsByIndex[r]||(this.objectsByIndex[r]=new fLe):this.primitives||(this.primitives=new cLe),o=i.get(e);return o||i.set(e,o=new Sb),o};var G7=new Sb;H7.exports=function(){var r=G7,e=arguments.length,t,i;for(t=0;t<e;t++)$7(i=arguments[t])&&(r=r.next(t,i,!0));if(this===sLe&&r===G7)throw lLe("Composite keys must contain a non-primitive component");for(t=0;t<e;t++)$7(i=arguments[t])||(r=r.next(t,i,!1));return r}});var Xo=x(function(Pwr,i9){"use strict";var $Le=le(),GLe=re(),zLe=Gr(),HLe=Jr(),WLe=Hi(),VLe=Se(),e9=ar(),KLe=Qr(),YLe=zl().IteratorPrototype,Z7=xu(),r9="IteratorHelper",t9="WrapForValidIterator",XLe=e9.set,QLe=VLe("toStringTag"),n9=n(function(e){var t=e?t9:r9,i=e9.getterFor(t),o=WLe(zLe(YLe),{next:n(function(){var u=i(this);if(e)return u.nextHandler();try{var c=u.done?void 0:u.nextHandler();return{done:u.done,value:c}}catch(l){throw u.done=!0,l}},"next"),return:n(function(){var u=i(this),c=u.iterator,l=u.innerIterator;if(u.done=!0,l)try{Z7(l,"return")}catch(y){return Z7(c,"throw",y)}var d=KLe(c,"return");return{done:!0,value:d?GLe($Le(d,c)).value:void 0}},"_return")});return e||HLe(o,QLe,"Iterator Helper"),o},"createIteratorProxyPrototype"),JLe=n9(!1),ZLe=n9(!0);i9.exports=function(r,e){var t=e?t9:r9,i=n(function(a,u){u?(u.iterator=a.iterator,u.next=a.next):u=a,u.type=t,u.nextHandler=r,u.done=!1,XLe(this,u)},"Iterator");return i.prototype=e?ZLe:JLe,i}});var vT=x(function(Ewr,a9){"use strict";var eNe=le(),rNe=re(),tNe=wr(),nNe=Xo(),iNe=nNe(function(){var r=rNe(eNe(this.next,this.iterator)),e=this.done=!!r.done;if(!e)return[this.index++,r.value]});a9.exports=n(function(){return new iNe(tNe(this),{index:0})},"indexed")});var qd=x(function(Uwr,c9){"use strict";var qxe=le(),kxe=ve(),jxe=re();c9.exports=n(function(){for(var e=jxe(this),t=kxe(e.delete),i=!0,o,a=0,u=arguments.length;a<u;a++)o=qxe(t,e,arguments[a]),i=i&&o;return!!i},"deleteAll")});var bT=x(function($wr,f9){"use strict";var Ob=le(),gT=ve(),Lxe=re();f9.exports=n(function(e,t){var i=Lxe(this),o=gT(i.get),a=gT(i.has),u=gT(i.set),c,l;return Ob(a,i,e)?(c=Ob(o,i,e),"update"in t&&(c=t.update(c,e,i),Ob(u,i,e,c)),c):(l=t.insert(e,i),Ob(u,i,e,l),l)},"emplace")});var gi=x(function(zwr,p9){var Dxe=le();p9.exports=function(r){return Dxe(Map.prototype.entries,r)}});var kd=x(function(Ywr,v9){"use strict";var lDe=or(),cDe=le(),fDe=ve(),pDe=Ql(),d9=Pe(),h9=[].push;v9.exports=n(function(e){var t=arguments.length,i=t>1?arguments[1]:void 0,o,a,u,c;return pDe(this),o=i!==void 0,o&&fDe(i),e==null?new this:(a=[],o?(u=0,c=lDe(i,t>2?arguments[2]:void 0),d9(e,function(l){cDe(h9,a,c(l,u++))})):d9(e,h9,{that:a}),new this(a))},"from")});var m9=x(function(Jwr,y9){y9.exports=function(r,e){return r===e||r!=r&&e!=e}});var jd=x(function(a0r,b9){"use strict";var e5e=ko();b9.exports=n(function(){return new this(e5e(arguments))},"of")});var Tb=x(function(c0r,w9){"use strict";var _b=le(),OT=ve(),Eb=ke(),m5e=re(),g5e=TypeError;w9.exports=n(function(e,t){var i=m5e(this),o=OT(i.get),a=OT(i.has),u=OT(i.set),c=arguments.length>2?arguments[2]:void 0,l;if(!Eb(t)&&!Eb(c))throw g5e("At least one callback required");return _b(a,i,e)?(l=_b(o,i,e),Eb(t)&&(l=t(l),_b(u,i,e,l))):Eb(c)&&(l=c(),_b(u,i,e,l)),l},"upsert")});var PT=x(function(h0r,S9){S9.exports=Math.scale||n(function(e,t,i,o,a){var u=+e,c=+t,l=+i,d=+o,y=+a;return u!=u||c!=c||l!=l||d!=d||y!=y?NaN:u===1/0||u===-1/0?u:(u-c)*(y-d)/(l-c)+d},"scale")});var Ib=x(function(T0r,A9){"use strict";var T9=ar(),lMe=Fo(),cMe=Ne(),fMe=qu(),pMe=Ue(),R9="Object Iterator",dMe=T9.set,hMe=T9.getterFor(R9);A9.exports=lMe(n(function(e,t){var i=pMe(e);dMe(this,{type:R9,mode:t,object:i,keys:fMe(i),index:0})},"ObjectIterator"),"Object",n(function(){for(var e=hMe(this),t=e.keys;;){if(t===null||e.index>=t.length)return e.object=e.keys=null,{value:void 0,done:!0};var i=t[e.index++],o=e.object;if(cMe(o,i)){switch(e.mode){case"keys":return{value:i,done:!1};case"values":return{value:o[i],done:!1}}return{value:[i,o[i]],done:!1}}}},"next"))});var qb=x(function(k0r,q9){var SMe=ye(),Cd=ke(),OMe=Se(),PMe=OMe("observable"),Ld=SMe.Observable,I9=Ld&&Ld.prototype;q9.exports=!Cd(Ld)||!Cd(Ld.from)||!Cd(Ld.of)||!Cd(I9.subscribe)||!Cd(I9[PMe])});var U9=x(function(){"use strict";var _Me=B(),kb=le(),Nd=Ae(),EMe=Lo(),k9=ve(),j9=ke(),TMe=re(),RMe=Le(),AMe=nn(),jb=Qr(),IMe=gr(),ET=Hi(),F9=ka(),_c=l_(),qMe=Se(),C9=ar(),kMe=qb(),jMe=qMe("observable"),TT="Observable",L9="Subscription",N9="SubscriptionObserver",RT=C9.getterFor,AT=C9.set,FMe=RT(TT),x9=RT(L9),Fb=RT(N9),D9=n(function(e){this.observer=TMe(e),this.cleanup=void 0,this.subscriptionObserver=void 0},"SubscriptionState");D9.prototype={type:L9,clean:n(function(){var e=this.cleanup;if(e){this.cleanup=void 0;try{e()}catch(t){_c(t)}}},"clean"),close:n(function(){if(!Nd){var e=this.facade,t=this.subscriptionObserver;e.closed=!0,t&&(t.closed=!0)}this.observer=void 0},"close"),isClosed:n(function(){return this.observer===void 0},"isClosed")};var IT=n(function(e,t){var i=AT(this,new D9(e)),o;Nd||(this.closed=!1);try{(o=jb(e,"start"))&&kb(o,e,this)}catch(l){_c(l)}if(!i.isClosed()){var a=i.subscriptionObserver=new qT(i);try{var u=t(a),c=u;u!=null&&(i.cleanup=j9(u.unsubscribe)?function(){c.unsubscribe()}:k9(u))}catch(l){a.error(l);return}i.isClosed()&&i.clean()}},"Subscription");IT.prototype=ET({},{unsubscribe:n(function(){var e=x9(this);e.isClosed()||(e.close(),e.clean())},"unsubscribe")});Nd&&F9(IT.prototype,"closed",{configurable:!0,get:n(function(){return x9(this).isClosed()},"closed")});var qT=n(function(e){AT(this,{type:N9,subscriptionState:e}),Nd||(this.closed=!1)},"SubscriptionObserver");qT.prototype=ET({},{next:n(function(e){var t=Fb(this).subscriptionState;if(!t.isClosed()){var i=t.observer;try{var o=jb(i,"next");o&&kb(o,i,e)}catch(a){_c(a)}}},"next"),error:n(function(e){var t=Fb(this).subscriptionState;if(!t.isClosed()){var i=t.observer;t.close();try{var o=jb(i,"error");o?kb(o,i,e):_c(e)}catch(a){_c(a)}t.clean()}},"error"),complete:n(function(){var e=Fb(this).subscriptionState;if(!e.isClosed()){var t=e.observer;e.close();try{var i=jb(t,"complete");i&&kb(i,t)}catch(o){_c(o)}e.clean()}},"complete")});Nd&&F9(qT.prototype,"closed",{configurable:!0,get:n(function(){return Fb(this).subscriptionState.isClosed()},"closed")});var M9=n(function(e){AMe(this,kT),AT(this,{type:TT,subscriber:k9(e)})},"Observable"),kT=M9.prototype;ET(kT,{subscribe:n(function(e){var t=arguments.length;return new IT(j9(e)?{next:e,error:t>1?arguments[1]:void 0,complete:t>2?arguments[2]:void 0}:RMe(e)?e:{},FMe(this).subscriber)},"subscribe")});IMe(kT,jMe,function(){return this});_Me({global:!0,constructor:!0,forced:kMe},{Observable:M9});EMe(TT)});var $9=x(function(){"use strict";var CMe=B(),LMe=ge(),NMe=le(),B9=re(),xMe=vi(),DMe=Kn(),MMe=Qr(),UMe=Pe(),BMe=Se(),$Me=qb(),GMe=BMe("observable");CMe({target:"Observable",stat:!0,forced:$Me},{from:n(function(e){var t=xMe(this)?this:LMe("Observable"),i=MMe(B9(e),GMe);if(i){var o=B9(NMe(i,e));return o.constructor===t?o:new t(function(u){return o.subscribe(u)})}var a=DMe(e);return new t(function(u){UMe(a,function(c,l){if(u.next(c),u.closed)return l()},{IS_ITERATOR:!0,INTERRUPTED:!0}),u.complete()})},"from")})});var z9=x(function(){"use strict";var zMe=B(),G9=ge(),HMe=vi(),WMe=qb(),VMe=G9("Array");zMe({target:"Observable",stat:!0,forced:WMe},{of:n(function(){for(var e=HMe(this)?this:G9("Observable"),t=arguments.length,i=VMe(t),o=0;o<t;)i[o]=arguments[o++];return new e(function(a){for(var u=0;u<t;u++)if(a.next(i[u]),a.closed)return;a.complete()})},"of")})});var Qi=x(function($0r,K9){function jT(r){"@babel/helpers - typeof";return jT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jT(r)}n(jT,"_typeof");fg();pb();var V9=ge(),QMe=se(),JMe=Ro(),H9=V9("Map"),ZMe=V9("WeakMap"),e3e=QMe([].push),W9=JMe("metadata"),FT=W9.store||(W9.store=new ZMe),xd=n(function(e,t,i){var o=FT.get(e);if(!o){if(!i)return;FT.set(e,o=new H9)}var a=o.get(t);if(!a){if(!i)return;o.set(t,a=new H9)}return a},"getOrCreateMetadataMap"),r3e=n(function(e,t,i){var o=xd(t,i,!1);return o===void 0?!1:o.has(e)},"ordinaryHasOwnMetadata"),t3e=n(function(e,t,i){var o=xd(t,i,!1);return o===void 0?void 0:o.get(e)},"ordinaryGetOwnMetadata"),n3e=n(function(e,t,i,o){xd(i,o,!0).set(e,t)},"ordinaryDefineOwnMetadata"),i3e=n(function(e,t){var i=xd(e,t,!1),o=[];return i&&i.forEach(function(a,u){e3e(o,u)}),o},"ordinaryOwnMetadataKeys"),a3e=n(function(e){return e===void 0||jT(e)=="symbol"?e:String(e)},"toMetadataKey");K9.exports={store:FT,getMap:xd,has:r3e,get:t3e,set:n3e,keys:i3e,toKey:a3e}});var NT=x(function(Z0r,i$){"use strict";var J3e=le(),Z3e=ve(),eUe=re();i$.exports=n(function(){for(var e=eUe(this),t=Z3e(e.add),i=0,o=arguments.length;i<o;i++)J3e(t,e,arguments[i]);return e},"addAll")});var Qo=x(function(tSr,a$){var pUe=le();a$.exports=function(r){return pUe(Set.prototype.values,r)}});var P$=x(function(RSr,O$){var sBe=hi(),lBe=se(),cBe=lBe("".slice);O$.exports=function(r){return cBe(sBe(r),0,3)==="Big"}});var UT=x(function(ISr,T$){var _$="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",E$={};for(Dd=0;Dd<66;Dd++)E$[_$.charAt(Dd)]=Dd;var Dd;T$.exports={itoc:_$,ctoi:E$}});var WT=x(function(jSr,U$){U$.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}});var KT=x(function(FSr,$$){var XBe=Ep(),VT=XBe("span").classList,B$=VT&&VT.constructor&&VT.constructor.prototype;$$.exports=B$===Object.prototype?void 0:B$});var z$=x(function(CSr,G$){"use strict";var QBe=zr().forEach,JBe=Mu(),ZBe=JBe("forEach");G$.exports=ZBe?[].forEach:n(function(e){return QBe(this,e,arguments.length>1?arguments[1]:void 0)},"forEach")});var eG=x(function(DSr,Z$){var n6e=Uo();Z$.exports=function(r){try{if(n6e)return Function('return require("'+r+'")')()}catch(e){}}});var nG=x(function(MSr,tG){"use strict";var i6e=Ae(),a6e=ue(),o6e=re(),u6e=Gr(),rG=Bl(),xb=Error.prototype.toString,s6e=a6e(function(){if(i6e){var r=u6e(Object.defineProperty({},"name",{get:n(function(){return this===r},"get")}));if(xb.call(r)!=="true")return!0}return xb.call({message:1,name:2})!=="2: 1"||xb.call({})!=="Error"});tG.exports=s6e?n(function(){var e=o6e(this),t=rG(e.name,"Error"),i=rG(e.message);return t?i?t+": "+i:t:i},"toString"):xb});var ZT=x(function(BSr,iG){iG.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}});var AR=x(function(WSr,jG){var S7e=ue(),O7e=Se(),P7e=mr(),_7e=O7e("iterator");jG.exports=!S7e(function(){var r=new URL("b?a=1&b=2&c=3","http://a"),e=r.searchParams,t="";return r.pathname="c%20d",e.forEach(function(i,o){e.delete("b"),t+=o+i}),P7e&&!r.toJSON||!e.sort||r.href!=="http://a/c%20d?a=1&c=3"||e.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!e[_7e]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://\u0442\u0435\u0441\u0442").host!=="xn--e1aybc"||new URL("http://a#\u0431").hash!=="#%D0%B1"||t!=="a1c3"||new URL("http://x",void 0).host!=="x"})});var BG=x(function(VSr,UG){"use strict";var ts=se(),IR=2147483647,Qd=36,xG=1,jR=26,E7e=38,T7e=700,R7e=72,A7e=128,I7e="-",q7e=/[^\0-\u007E]/,DG=/[.\u3002\uFF0E\uFF61]/g,FG="Overflow: input needs wider integers to process",qR=Qd-xG,CG=RangeError,k7e=ts(DG.exec),Ac=Math.floor,kR=String.fromCharCode,LG=ts("".charCodeAt),MG=ts([].join),eu=ts([].push),j7e=ts("".replace),F7e=ts("".split),C7e=ts("".toLowerCase),L7e=n(function(e){for(var t=[],i=0,o=e.length;i<o;){var a=LG(e,i++);if(a>=55296&&a<=56319&&i<o){var u=LG(e,i++);(u&64512)==56320?eu(t,((a&1023)<<10)+(u&1023)+65536):(eu(t,a),i--)}else eu(t,a)}return t},"ucs2decode"),NG=n(function(e){return e+22+75*(e<26)},"digitToBasic"),N7e=n(function(e,t,i){var o=0;for(e=i?Ac(e/T7e):e>>1,e+=Ac(e/t);e>qR*jR>>1;)e=Ac(e/qR),o+=Qd;return Ac(o+(qR+1)*e/(e+E7e))},"adapt"),x7e=n(function(e){var t=[];e=L7e(e);var i=e.length,o=A7e,a=0,u=R7e,c,l;for(c=0;c<e.length;c++)l=e[c],l<128&&eu(t,kR(l));var d=t.length,y=d;for(d&&eu(t,I7e);y<i;){var m=IR;for(c=0;c<e.length;c++)l=e[c],l>=o&&l<m&&(m=l);var b=y+1;if(m-o>Ac((IR-a)/b))throw CG(FG);for(a+=(m-o)*b,o=m,c=0;c<e.length;c++){if(l=e[c],l<o&&++a>IR)throw CG(FG);if(l==o){for(var w=a,S=Qd;;){var P=S<=u?xG:S>=u+jR?jR:S-u;if(w<P)break;var R=w-P,I=Qd-P;eu(t,kR(NG(P+R%I))),w=Ac(R/I),S+=Qd}eu(t,kR(NG(w))),u=N7e(a,b,y==d),a=0,y++}}a++,o++}return MG(t,"")},"encode");UG.exports=function(r){var e=[],t=F7e(j7e(C7e(r),DG,"."),"."),i,o;for(i=0;i<t.length;i++)o=t[i],eu(e,k7e(q7e,o)?"xn--"+x7e(o):o);return MG(e,".")}});var $R=x(function(YSr,uz){"use strict";Hp();var xR=B(),qc=ye(),Kb=le(),Ji=se(),D7e=Ae(),ZG=AR(),ez=gr(),M7e=Hi(),U7e=en(),B7e=Fo(),UR=ar(),rz=nn(),FR=ke(),$7e=Ne(),G7e=or(),z7e=hi(),H7e=re(),tz=Le(),On=Ge(),W7e=Gr(),$G=gn(),DR=Kn(),V7e=zi(),Ic=Bo(),K7e=Se(),Y7e=eg(),X7e=K7e("iterator"),eh="URLSearchParams",nz=eh+"Iterator",iz=UR.set,bi=UR.getterFor(eh),Q7e=UR.getterFor(nz),J7e=Object.getOwnPropertyDescriptor,BR=n(function(e){if(!D7e)return qc[e];var t=J7e(qc,e);return t&&t.value},"safeGetBuiltIn"),GG=BR("fetch"),Xb=BR("Request"),Jd=BR("Headers"),CR=Xb&&Xb.prototype,zG=Jd&&Jd.prototype,Z7e=qc.RegExp,e9e=qc.TypeError,az=qc.decodeURIComponent,r9e=qc.encodeURIComponent,t9e=Ji("".charAt),HG=Ji([].join),ns=Ji([].push),MR=Ji("".replace),n9e=Ji([].shift),WG=Ji([].splice),VG=Ji("".split),i9e=Ji("".slice),a9e=/\+/g,KG=Array(4),o9e=n(function(e){return KG[e-1]||(KG[e-1]=Z7e("((?:%[\\da-f]{2}){"+e+"})","gi"))},"percentSequence"),u9e=n(function(e){try{return az(e)}catch(t){return e}},"percentDecode"),YG=n(function(e){var t=MR(e,a9e," "),i=4;try{return az(t)}catch(o){for(;i;)t=MR(t,o9e(i--),u9e);return t}},"deserialize"),s9e=/[!'()~]|%20/g,l9e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},c9e=n(function(e){return l9e[e]},"replacer"),XG=n(function(e){return MR(r9e(e),s9e,c9e)},"serialize"),LR=B7e(n(function(e,t){iz(this,{type:nz,iterator:DR(bi(e).entries),kind:t})},"Iterator"),"Iterator",n(function(){var e=Q7e(this),t=e.kind,i=e.iterator.next(),o=i.value;return i.done||(i.value=t==="keys"?o.key:t==="values"?o.value:[o.key,o.value]),i},"next"),!0),oz=n(function(e){this.entries=[],this.url=null,e!==void 0&&(tz(e)?this.parseObject(e):this.parseQuery(typeof e=="string"?t9e(e,0)==="?"?i9e(e,1):e:On(e)))},"URLSearchParamsState");oz.prototype={type:eh,bindURL:n(function(e){this.url=e,this.update()},"bindURL"),parseObject:n(function(e){var t=V7e(e),i,o,a,u,c,l,d;if(t)for(i=DR(e,t),o=i.next;!(a=Kb(o,i)).done;){if(u=DR(H7e(a.value)),c=u.next,(l=Kb(c,u)).done||(d=Kb(c,u)).done||!Kb(c,u).done)throw e9e("Expected sequence with length 2");ns(this.entries,{key:On(l.value),value:On(d.value)})}else for(var y in e)$7e(e,y)&&ns(this.entries,{key:y,value:On(e[y])})},"parseObject"),parseQuery:n(function(e){if(e)for(var t=VG(e,"&"),i=0,o,a;i<t.length;)o=t[i++],o.length&&(a=VG(o,"="),ns(this.entries,{key:YG(n9e(a)),value:YG(HG(a,"="))}))},"parseQuery"),serialize:n(function(){for(var e=this.entries,t=[],i=0,o;i<e.length;)o=e[i++],ns(t,XG(o.key)+"="+XG(o.value));return HG(t,"&")},"serialize"),update:n(function(){this.entries.length=0,this.parseQuery(this.url.query)},"update"),updateURL:n(function(){this.url&&this.url.update()},"updateURL")};var Qb=n(function(){rz(this,Zd);var e=arguments.length>0?arguments[0]:void 0;iz(this,new oz(e))},"URLSearchParams"),Zd=Qb.prototype;M7e(Zd,{append:n(function(e,t){Ic(arguments.length,2);var i=bi(this);ns(i.entries,{key:On(e),value:On(t)}),i.updateURL()},"append"),delete:n(function(e){Ic(arguments.length,1);for(var t=bi(this),i=t.entries,o=On(e),a=0;a<i.length;)i[a].key===o?WG(i,a,1):a++;t.updateURL()},"_delete"),get:n(function(e){Ic(arguments.length,1);for(var t=bi(this).entries,i=On(e),o=0;o<t.length;o++)if(t[o].key===i)return t[o].value;return null},"get"),getAll:n(function(e){Ic(arguments.length,1);for(var t=bi(this).entries,i=On(e),o=[],a=0;a<t.length;a++)t[a].key===i&&ns(o,t[a].value);return o},"getAll"),has:n(function(e){Ic(arguments.length,1);for(var t=bi(this).entries,i=On(e),o=0;o<t.length;)if(t[o++].key===i)return!0;return!1},"has"),set:n(function(e,t){Ic(arguments.length,1);for(var i=bi(this),o=i.entries,a=!1,u=On(e),c=On(t),l=0,d;l<o.length;l++)d=o[l],d.key===u&&(a?WG(o,l--,1):(a=!0,d.value=c));a||ns(o,{key:u,value:c}),i.updateURL()},"set"),sort:n(function(){var e=bi(this);Y7e(e.entries,function(t,i){return t.key>i.key?1:-1}),e.updateURL()},"sort"),forEach:n(function(e){for(var t=bi(this).entries,i=G7e(e,arguments.length>1?arguments[1]:void 0),o=0,a;o<t.length;)a=t[o++],i(a.value,a.key,this)},"forEach"),keys:n(function(){return new LR(this,"keys")},"keys"),values:n(function(){return new LR(this,"values")},"values"),entries:n(function(){return new LR(this,"entries")},"entries")},{enumerable:!0});ez(Zd,X7e,Zd.entries,{name:"entries"});ez(Zd,"toString",n(function(){return bi(this).serialize()},"toString"),{enumerable:!0});U7e(Qb,eh);xR({global:!0,constructor:!0,forced:!ZG},{URLSearchParams:Qb});!ZG&&FR(Jd)&&(QG=Ji(zG.has),JG=Ji(zG.set),NR=n(function(e){if(tz(e)){var t=e.body,i;if(z7e(t)===eh)return i=e.headers?new Jd(e.headers):new Jd,QG(i,"content-type")||JG(i,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),W7e(e,{body:$G(0,On(t)),headers:$G(0,i)})}return e},"wrapRequestOptions"),FR(GG)&&xR({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:n(function(e){return GG(e,arguments.length>1?NR(arguments[1]):{})},"fetch")}),FR(Xb)&&(Yb=n(function(e){return rz(this,CR),new Xb(e,arguments.length>1?NR(arguments[1]):{})},"Request"),CR.constructor=Yb,Yb.prototype=CR,xR({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Yb})));var QG,JG,NR,Yb;uz.exports={URLSearchParams:Qb,getState:bi}});var Rz=x(function(){"use strict";function rA(r){"@babel/helpers - typeof";return rA=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rA(r)}n(rA,"_typeof");H_();var f9e=B(),aA=Ae(),p9e=AR(),oA=ye(),sz=or(),Zn=se(),tw=gr(),Yn=ka(),d9e=nn(),tA=Ne(),uA=UP(),kc=G1(),wi=Dl(),h9e=Yu().codeAt,v9e=BG(),xa=Ge(),y9e=en(),m9e=Bo(),wz=$R(),Sz=ar(),g9e=Sz.set,nw=Sz.getterFor("URL"),b9e=wz.URLSearchParams,w9e=wz.getState,rh=oA.URL,nA=oA.TypeError,iw=oA.parseInt,S9e=Math.floor,lz=Math.pow,Jn=Zn("".charAt),Si=Zn(/./.exec),nh=Zn([].join),O9e=Zn(1 .toString),P9e=Zn([].pop),Fc=Zn([].push),cz=Zn("".replace),_9e=Zn([].shift),E9e=Zn("".split),ah=Zn("".slice),aw=Zn("".toLowerCase),T9e=Zn([].unshift),R9e="Invalid authority",GR="Invalid scheme",is="Invalid host",fz="Invalid port",Oz=/[a-z]/i,A9e=/[\d+-.a-z]/i,iA=/\d/,I9e=/^0x/i,q9e=/^[0-7]+$/,k9e=/^\d+$/,Pz=/^[\da-f]+$/i,j9e=/[\0\t\n\r #%/:<>?@[\\\]^|]/,F9e=/[\0\t\n\r #/:<>?@[\\\]^|]/,C9e=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,L9e=/[\t\n\r]/g,Xn,N9e=n(function(e){var t=E9e(e,"."),i,o,a,u,c,l,d;if(t.length&&t[t.length-1]==""&&t.length--,i=t.length,i>4)return e;for(o=[],a=0;a<i;a++){if(u=t[a],u=="")return e;if(c=10,u.length>1&&Jn(u,0)=="0"&&(c=Si(I9e,u)?16:8,u=ah(u,c==8?1:2)),u==="")l=0;else{if(!Si(c==10?k9e:c==8?q9e:Pz,u))return e;l=iw(u,c)}Fc(o,l)}for(a=0;a<i;a++)if(l=o[a],a==i-1){if(l>=lz(256,5-i))return null}else if(l>255)return null;for(d=P9e(o),a=0;a<o.length;a++)d+=o[a]*lz(256,3-a);return d},"parseIPv4"),x9e=n(function(e){var t=[0,0,0,0,0,0,0,0],i=0,o=null,a=0,u,c,l,d,y,m,b,w=n(function(){return Jn(e,a)},"chr");if(w()==":"){if(Jn(e,1)!=":")return;a+=2,i++,o=i}for(;w();){if(i==8)return;if(w()==":"){if(o!==null)return;a++,i++,o=i;continue}for(u=c=0;c<4&&Si(Pz,w());)u=u*16+iw(w(),16),a++,c++;if(w()=="."){if(c==0||(a-=c,i>6))return;for(l=0;w();){if(d=null,l>0)if(w()=="."&&l<4)a++;else return;if(!Si(iA,w()))return;for(;Si(iA,w());){if(y=iw(w(),10),d===null)d=y;else{if(d==0)return;d=d*10+y}if(d>255)return;a++}t[i]=t[i]*256+d,l++,(l==2||l==4)&&i++}if(l!=4)return;break}else if(w()==":"){if(a++,!w())return}else if(w())return;t[i++]=u}if(o!==null)for(m=i-o,i=7;i!=0&&m>0;)b=t[i],t[i--]=t[o+m-1],t[o+--m]=b;else if(i!=8)return;return t},"parseIPv6"),D9e=n(function(e){for(var t=null,i=1,o=null,a=0,u=0;u<8;u++)e[u]!==0?(a>i&&(t=o,i=a),o=null,a=0):(o===null&&(o=u),++a);return a>i&&(t=o,i=a),t},"findLongestZeroSequence"),th=n(function(e){var t,i,o,a;if(typeof e=="number"){for(t=[],i=0;i<4;i++)T9e(t,e%256),e=S9e(e/256);return nh(t,".")}else if(rA(e)=="object"){for(t="",o=D9e(e),i=0;i<8;i++)a&&e[i]===0||(a&&(a=!1),o===i?(t+=i?":":"::",a=!0):(t+=O9e(e[i],16),i<7&&(t+=":")));return"["+t+"]"}return e},"serializeHost"),rw={},_z=uA({},rw,{" ":1,'"':1,"<":1,">":1,"`":1}),Ez=uA({},_z,{"#":1,"?":1,"{":1,"}":1}),zR=uA({},Ez,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ru=n(function(e,t){var i=h9e(e,0);return i>32&&i<127&&!tA(t,e)?e:encodeURIComponent(e)},"percentEncode"),Jb={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ih=n(function(e,t){var i;return e.length==2&&Si(Oz,Jn(e,0))&&((i=Jn(e,1))==":"||!t&&i=="|")},"isWindowsDriveLetter"),pz=n(function(e){var t;return e.length>1&&ih(ah(e,0,2))&&(e.length==2||(t=Jn(e,2))==="/"||t==="\\"||t==="?"||t==="#")},"startsWithWindowsDriveLetter"),M9e=n(function(e){return e==="."||aw(e)==="%2e"},"isSingleDot"),U9e=n(function(e){return e=aw(e),e===".."||e==="%2e."||e===".%2e"||e==="%2e%2e"},"isDoubleDot"),HR={},dz={},WR={},hz={},vz={},VR={},yz={},mz={},Zb={},ew={},KR={},YR={},XR={},QR={},gz={},JR={},jc={},Zi={},bz={},as={},Na={},Tz=n(function r(e,t,i){var o=xa(e),a,u,c;if(t){if(u=this.parse(o),u)throw nA(u);this.searchParams=null}else{if(i!==void 0&&(a=new r(i,!0)),u=this.parse(o,null,a),u)throw nA(u);c=w9e(new b9e),c.bindURL(this),this.searchParams=c}},"URLState");Tz.prototype={type:"URL",parse:n(function(e,t,i){var o=this,a=t||HR,u=0,c="",l=!1,d=!1,y=!1,m,b,w,S;for(e=xa(e),t||(o.scheme="",o.username="",o.password="",o.host=null,o.port=null,o.path=[],o.query=null,o.fragment=null,o.cannotBeABaseURL=!1,e=cz(e,C9e,"")),e=cz(e,L9e,""),m=kc(e);u<=m.length;){switch(b=m[u],a){case HR:if(b&&Si(Oz,b))c+=aw(b),a=dz;else{if(t)return GR;a=WR;continue}break;case dz:if(b&&(Si(A9e,b)||b=="+"||b=="-"||b=="."))c+=aw(b);else if(b==":"){if(t&&(o.isSpecial()!=tA(Jb,c)||c=="file"&&(o.includesCredentials()||o.port!==null)||o.scheme=="file"&&!o.host))return;if(o.scheme=c,t){o.isSpecial()&&Jb[o.scheme]==o.port&&(o.port=null);return}c="",o.scheme=="file"?a=QR:o.isSpecial()&&i&&i.scheme==o.scheme?a=hz:o.isSpecial()?a=mz:m[u+1]=="/"?(a=vz,u++):(o.cannotBeABaseURL=!0,Fc(o.path,""),a=bz)}else{if(t)return GR;c="",a=WR,u=0;continue}break;case WR:if(!i||i.cannotBeABaseURL&&b!="#")return GR;if(i.cannotBeABaseURL&&b=="#"){o.scheme=i.scheme,o.path=wi(i.path),o.query=i.query,o.fragment="",o.cannotBeABaseURL=!0,a=Na;break}a=i.scheme=="file"?QR:VR;continue;case hz:if(b=="/"&&m[u+1]=="/")a=Zb,u++;else{a=VR;continue}break;case vz:if(b=="/"){a=ew;break}else{a=Zi;continue}case VR:if(o.scheme=i.scheme,b==Xn)o.username=i.username,o.password=i.password,o.host=i.host,o.port=i.port,o.path=wi(i.path),o.query=i.query;else if(b=="/"||b=="\\"&&o.isSpecial())a=yz;else if(b=="?")o.username=i.username,o.password=i.password,o.host=i.host,o.port=i.port,o.path=wi(i.path),o.query="",a=as;else if(b=="#")o.username=i.username,o.password=i.password,o.host=i.host,o.port=i.port,o.path=wi(i.path),o.query=i.query,o.fragment="",a=Na;else{o.username=i.username,o.password=i.password,o.host=i.host,o.port=i.port,o.path=wi(i.path),o.path.length--,a=Zi;continue}break;case yz:if(o.isSpecial()&&(b=="/"||b=="\\"))a=Zb;else if(b=="/")a=ew;else{o.username=i.username,o.password=i.password,o.host=i.host,o.port=i.port,a=Zi;continue}break;case mz:if(a=Zb,b!="/"||Jn(c,u+1)!="/")continue;u++;break;case Zb:if(b!="/"&&b!="\\"){a=ew;continue}break;case ew:if(b=="@"){l&&(c="%40"+c),l=!0,w=kc(c);for(var P=0;P<w.length;P++){var R=w[P];if(R==":"&&!y){y=!0;continue}var I=ru(R,zR);y?o.password+=I:o.username+=I}c=""}else if(b==Xn||b=="/"||b=="?"||b=="#"||b=="\\"&&o.isSpecial()){if(l&&c=="")return R9e;u-=kc(c).length+1,c="",a=KR}else c+=b;break;case KR:case YR:if(t&&o.scheme=="file"){a=JR;continue}else if(b==":"&&!d){if(c=="")return is;if(S=o.parseHost(c),S)return S;if(c="",a=XR,t==YR)return}else if(b==Xn||b=="/"||b=="?"||b=="#"||b=="\\"&&o.isSpecial()){if(o.isSpecial()&&c=="")return is;if(t&&c==""&&(o.includesCredentials()||o.port!==null))return;if(S=o.parseHost(c),S)return S;if(c="",a=jc,t)return;continue}else b=="["?d=!0:b=="]"&&(d=!1),c+=b;break;case XR:if(Si(iA,b))c+=b;else if(b==Xn||b=="/"||b=="?"||b=="#"||b=="\\"&&o.isSpecial()||t){if(c!=""){var T=iw(c,10);if(T>65535)return fz;o.port=o.isSpecial()&&T===Jb[o.scheme]?null:T,c=""}if(t)return;a=jc;continue}else return fz;break;case QR:if(o.scheme="file",b=="/"||b=="\\")a=gz;else if(i&&i.scheme=="file")if(b==Xn)o.host=i.host,o.path=wi(i.path),o.query=i.query;else if(b=="?")o.host=i.host,o.path=wi(i.path),o.query="",a=as;else if(b=="#")o.host=i.host,o.path=wi(i.path),o.query=i.query,o.fragment="",a=Na;else{pz(nh(wi(m,u),""))||(o.host=i.host,o.path=wi(i.path),o.shortenPath()),a=Zi;continue}else{a=Zi;continue}break;case gz:if(b=="/"||b=="\\"){a=JR;break}i&&i.scheme=="file"&&!pz(nh(wi(m,u),""))&&(ih(i.path[0],!0)?Fc(o.path,i.path[0]):o.host=i.host),a=Zi;continue;case JR:if(b==Xn||b=="/"||b=="\\"||b=="?"||b=="#"){if(!t&&ih(c))a=Zi;else if(c==""){if(o.host="",t)return;a=jc}else{if(S=o.parseHost(c),S)return S;if(o.host=="localhost"&&(o.host=""),t)return;c="",a=jc}continue}else c+=b;break;case jc:if(o.isSpecial()){if(a=Zi,b!="/"&&b!="\\")continue}else if(!t&&b=="?")o.query="",a=as;else if(!t&&b=="#")o.fragment="",a=Na;else if(b!=Xn&&(a=Zi,b!="/"))continue;break;case Zi:if(b==Xn||b=="/"||b=="\\"&&o.isSpecial()||!t&&(b=="?"||b=="#")){if(U9e(c)?(o.shortenPath(),b!="/"&&!(b=="\\"&&o.isSpecial())&&Fc(o.path,"")):M9e(c)?b!="/"&&!(b=="\\"&&o.isSpecial())&&Fc(o.path,""):(o.scheme=="file"&&!o.path.length&&ih(c)&&(o.host&&(o.host=""),c=Jn(c,0)+":"),Fc(o.path,c)),c="",o.scheme=="file"&&(b==Xn||b=="?"||b=="#"))for(;o.path.length>1&&o.path[0]==="";)_9e(o.path);b=="?"?(o.query="",a=as):b=="#"&&(o.fragment="",a=Na)}else c+=ru(b,Ez);break;case bz:b=="?"?(o.query="",a=as):b=="#"?(o.fragment="",a=Na):b!=Xn&&(o.path[0]+=ru(b,rw));break;case as:!t&&b=="#"?(o.fragment="",a=Na):b!=Xn&&(b=="'"&&o.isSpecial()?o.query+="%27":b=="#"?o.query+="%23":o.query+=ru(b,rw));break;case Na:b!=Xn&&(o.fragment+=ru(b,_z));break}u++}},"parse"),parseHost:n(function(e){var t,i,o;if(Jn(e,0)=="["){if(Jn(e,e.length-1)!="]"||(t=x9e(ah(e,1,-1)),!t))return is;this.host=t}else if(this.isSpecial()){if(e=v9e(e),Si(j9e,e)||(t=N9e(e),t===null))return is;this.host=t}else{if(Si(F9e,e))return is;for(t="",i=kc(e),o=0;o<i.length;o++)t+=ru(i[o],rw);this.host=t}},"parseHost"),cannotHaveUsernamePasswordPort:n(function(){return!this.host||this.cannotBeABaseURL||this.scheme=="file"},"cannotHaveUsernamePasswordPort"),includesCredentials:n(function(){return this.username!=""||this.password!=""},"includesCredentials"),isSpecial:n(function(){return tA(Jb,this.scheme)},"isSpecial"),shortenPath:n(function(){var e=this.path,t=e.length;t&&(this.scheme!="file"||t!=1||!ih(e[0],!0))&&e.length--},"shortenPath"),serialize:n(function(){var e=this,t=e.scheme,i=e.username,o=e.password,a=e.host,u=e.port,c=e.path,l=e.query,d=e.fragment,y=t+":";return a!==null?(y+="//",e.includesCredentials()&&(y+=i+(o?":"+o:"")+"@"),y+=th(a),u!==null&&(y+=":"+u)):t=="file"&&(y+="//"),y+=e.cannotBeABaseURL?c[0]:c.length?"/"+nh(c,"/"):"",l!==null&&(y+="?"+l),d!==null&&(y+="#"+d),y},"serialize"),setHref:n(function(e){var t=this.parse(e);if(t)throw nA(t);this.searchParams.update()},"setHref"),getOrigin:n(function(){var e=this.scheme,t=this.port;if(e=="blob")try{return new Cc(e.path[0]).origin}catch(i){return"null"}return e=="file"||!this.isSpecial()?"null":e+"://"+th(this.host)+(t!==null?":"+t:"")},"getOrigin"),getProtocol:n(function(){return this.scheme+":"},"getProtocol"),setProtocol:n(function(e){this.parse(xa(e)+":",HR)},"setProtocol"),getUsername:n(function(){return this.username},"getUsername"),setUsername:n(function(e){var t=kc(xa(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var i=0;i<t.length;i++)this.username+=ru(t[i],zR)}},"setUsername"),getPassword:n(function(){return this.password},"getPassword"),setPassword:n(function(e){var t=kc(xa(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var i=0;i<t.length;i++)this.password+=ru(t[i],zR)}},"setPassword"),getHost:n(function(){var e=this.host,t=this.port;return e===null?"":t===null?th(e):th(e)+":"+t},"getHost"),setHost:n(function(e){this.cannotBeABaseURL||this.parse(e,KR)},"setHost"),getHostname:n(function(){var e=this.host;return e===null?"":th(e)},"getHostname"),setHostname:n(function(e){this.cannotBeABaseURL||this.parse(e,YR)},"setHostname"),getPort:n(function(){var e=this.port;return e===null?"":xa(e)},"getPort"),setPort:n(function(e){this.cannotHaveUsernamePasswordPort()||(e=xa(e),e==""?this.port=null:this.parse(e,XR))},"setPort"),getPathname:n(function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+nh(e,"/"):""},"getPathname"),setPathname:n(function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,jc))},"setPathname"),getSearch:n(function(){var e=this.query;return e?"?"+e:""},"getSearch"),setSearch:n(function(e){e=xa(e),e==""?this.query=null:(Jn(e,0)=="?"&&(e=ah(e,1)),this.query="",this.parse(e,as)),this.searchParams.update()},"setSearch"),getSearchParams:n(function(){return this.searchParams.facade},"getSearchParams"),getHash:n(function(){var e=this.fragment;return e?"#"+e:""},"getHash"),setHash:n(function(e){if(e=xa(e),e==""){this.fragment=null;return}Jn(e,0)=="#"&&(e=ah(e,1)),this.fragment="",this.parse(e,Na)},"setHash"),update:n(function(){this.query=this.searchParams.serialize()||null},"update")};var Cc=n(function(e){var t=d9e(this,Ut),i=m9e(arguments.length,1)>1?arguments[1]:void 0,o=g9e(t,new Tz(e,!1,i));aA||(t.href=o.serialize(),t.origin=o.getOrigin(),t.protocol=o.getProtocol(),t.username=o.getUsername(),t.password=o.getPassword(),t.host=o.getHost(),t.hostname=o.getHostname(),t.port=o.getPort(),t.pathname=o.getPathname(),t.search=o.getSearch(),t.searchParams=o.getSearchParams(),t.hash=o.getHash())},"URL"),Ut=Cc.prototype,Qn=n(function(e,t){return{get:n(function(){return nw(this)[e]()},"get"),set:t&&function(i){return nw(this)[t](i)},configurable:!0,enumerable:!0}},"accessorDescriptor");aA&&(Yn(Ut,"href",Qn("serialize","setHref")),Yn(Ut,"origin",Qn("getOrigin")),Yn(Ut,"protocol",Qn("getProtocol","setProtocol")),Yn(Ut,"username",Qn("getUsername","setUsername")),Yn(Ut,"password",Qn("getPassword","setPassword")),Yn(Ut,"host",Qn("getHost","setHost")),Yn(Ut,"hostname",Qn("getHostname","setHostname")),Yn(Ut,"port",Qn("getPort","setPort")),Yn(Ut,"pathname",Qn("getPathname","setPathname")),Yn(Ut,"search",Qn("getSearch","setSearch")),Yn(Ut,"searchParams",Qn("getSearchParams")),Yn(Ut,"hash",Qn("getHash","setHash")));tw(Ut,"toJSON",n(function(){return nw(this).serialize()},"toJSON"),{enumerable:!0});tw(Ut,"toString",n(function(){return nw(this).serialize()},"toString"),{enumerable:!0});rh&&(ZR=rh.createObjectURL,eA=rh.revokeObjectURL,ZR&&tw(Cc,"createObjectURL",sz(ZR,rh)),eA&&tw(Cc,"revokeObjectURL",sz(eA,rh)));var ZR,eA;y9e(Cc,"URL");f9e({global:!0,constructor:!0,forced:!p9e,sham:!aA},{URL:Cc})});var Bz=x(function(uOr,lw){function uh(r){"@babel/helpers - typeof";return uh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},uh(r)}n(uh,"_typeof");var hA=function(r){"use strict";var e=Object.prototype,t=e.hasOwnProperty,i,o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(g,h,O){return Object.defineProperty(g,h,{value:O,enumerable:!0,configurable:!0,writable:!0}),g[h]}n(l,"define");try{l({},"")}catch(g){l=n(function(O,E,A){return O[E]=A},"define")}function d(g,h,O,E){var A=h&&h.prototype instanceof R?h:R,C=Object.create(A.prototype),N=new s(E||[]);return C._invoke=V(g,O,N),C}n(d,"wrap"),r.wrap=d;function y(g,h,O){try{return{type:"normal",arg:g.call(h,O)}}catch(E){return{type:"throw",arg:E}}}n(y,"tryCatch");var m="suspendedStart",b="suspendedYield",w="executing",S="completed",P={};function R(){}n(R,"Generator");function I(){}n(I,"GeneratorFunction");function T(){}n(T,"GeneratorFunctionPrototype");var F={};l(F,a,function(){return this});var k=Object.getPrototypeOf,U=k&&k(k(f([])));U&&U!==e&&t.call(U,a)&&(F=U);var D=T.prototype=R.prototype=Object.create(F);I.prototype=T,l(D,"constructor",T),l(T,"constructor",I),I.displayName=l(T,c,"GeneratorFunction");function H(g){["next","throw","return"].forEach(function(h){l(g,h,function(O){return this._invoke(h,O)})})}n(H,"defineIteratorMethods"),r.isGeneratorFunction=function(g){var h=typeof g=="function"&&g.constructor;return h?h===I||(h.displayName||h.name)==="GeneratorFunction":!1},r.mark=function(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,T):(g.__proto__=T,l(g,c,"GeneratorFunction")),g.prototype=Object.create(D),g},r.awrap=function(g){return{__await:g}};function $(g,h){function O(C,N,M,Te){var be=y(g[C],g,N);if(be.type==="throw")Te(be.arg);else{var _e=be.arg,Oe=_e.value;return Oe&&uh(Oe)==="object"&&t.call(Oe,"__await")?h.resolve(Oe.__await).then(function(Me){O("next",Me,M,Te)},function(Me){O("throw",Me,M,Te)}):h.resolve(Oe).then(function(Me){_e.value=Me,M(_e)},function(Me){return O("throw",Me,M,Te)})}}n(O,"invoke");var E;function A(C,N){function M(){return new h(function(Te,be){O(C,N,Te,be)})}return n(M,"callInvokeWithMethodAndArg"),E=E?E.then(M,M):M()}n(A,"enqueue"),this._invoke=A}n($,"AsyncIterator"),H($.prototype),l($.prototype,u,function(){return this}),r.AsyncIterator=$,r.async=function(g,h,O,E,A){A===void 0&&(A=Promise);var C=new $(d(g,h,O,E),A);return r.isGeneratorFunction(h)?C:C.next().then(function(N){return N.done?N.value:C.next()})};function V(g,h,O){var E=m;return n(function(C,N){if(E===w)throw new Error("Generator is already running");if(E===S){if(C==="throw")throw N;return v()}for(O.method=C,O.arg=N;;){var M=O.delegate;if(M){var Te=W(M,O);if(Te){if(Te===P)continue;return Te}}if(O.method==="next")O.sent=O._sent=O.arg;else if(O.method==="throw"){if(E===m)throw E=S,O.arg;O.dispatchException(O.arg)}else O.method==="return"&&O.abrupt("return",O.arg);E=w;var be=y(g,h,O);if(be.type==="normal"){if(E=O.done?S:b,be.arg===P)continue;return{value:be.arg,done:O.done}}else be.type==="throw"&&(E=S,O.method="throw",O.arg=be.arg)}},"invoke")}n(V,"makeInvokeMethod");function W(g,h){var O=g.iterator[h.method];if(O===i){if(h.delegate=null,h.method==="throw"){if(g.iterator.return&&(h.method="return",h.arg=i,W(g,h),h.method==="throw"))return P;h.method="throw",h.arg=new TypeError("The iterator does not provide a 'throw' method")}return P}var E=y(O,g.iterator,h.arg);if(E.type==="throw")return h.method="throw",h.arg=E.arg,h.delegate=null,P;var A=E.arg;if(!A)return h.method="throw",h.arg=new TypeError("iterator result is not an object"),h.delegate=null,P;if(A.done)h[g.resultName]=A.value,h.next=g.nextLoc,h.method!=="return"&&(h.method="next",h.arg=i);else return A;return h.delegate=null,P}n(W,"maybeInvokeDelegate"),H(D),l(D,c,"Generator"),l(D,a,function(){return this}),l(D,"toString",function(){return"[object Generator]"});function Y(g){var h={tryLoc:g[0]};1 in g&&(h.catchLoc=g[1]),2 in g&&(h.finallyLoc=g[2],h.afterLoc=g[3]),this.tryEntries.push(h)}n(Y,"pushTryEntry");function p(g){var h=g.completion||{};h.type="normal",delete h.arg,g.completion=h}n(p,"resetTryEntry");function s(g){this.tryEntries=[{tryLoc:"root"}],g.forEach(Y,this),this.reset(!0)}n(s,"Context"),r.keys=function(g){var h=[];for(var O in g)h.push(O);return h.reverse(),n(function E(){for(;h.length;){var A=h.pop();if(A in g)return E.value=A,E.done=!1,E}return E.done=!0,E},"next")};function f(g){if(g){var h=g[a];if(h)return h.call(g);if(typeof g.next=="function")return g;if(!isNaN(g.length)){var O=-1,E=n(function A(){for(;++O<g.length;)if(t.call(g,O))return A.value=g[O],A.done=!1,A;return A.value=i,A.done=!0,A},"next");return E.next=E}}return{next:v}}n(f,"values"),r.values=f;function v(){return{value:i,done:!0}}return n(v,"doneResult"),s.prototype={constructor:s,reset:n(function(h){if(this.prev=0,this.next=0,this.sent=this._sent=i,this.done=!1,this.delegate=null,this.method="next",this.arg=i,this.tryEntries.forEach(p),!h)for(var O in this)O.charAt(0)==="t"&&t.call(this,O)&&!isNaN(+O.slice(1))&&(this[O]=i)},"reset"),stop:n(function(){this.done=!0;var h=this.tryEntries[0],O=h.completion;if(O.type==="throw")throw O.arg;return this.rval},"stop"),dispatchException:n(function(h){if(this.done)throw h;var O=this;function E(be,_e){return N.type="throw",N.arg=h,O.next=be,_e&&(O.method="next",O.arg=i),!!_e}n(E,"handle");for(var A=this.tryEntries.length-1;A>=0;--A){var C=this.tryEntries[A],N=C.completion;if(C.tryLoc==="root")return E("end");if(C.tryLoc<=this.prev){var M=t.call(C,"catchLoc"),Te=t.call(C,"finallyLoc");if(M&&Te){if(this.prev<C.catchLoc)return E(C.catchLoc,!0);if(this.prev<C.finallyLoc)return E(C.finallyLoc)}else if(M){if(this.prev<C.catchLoc)return E(C.catchLoc,!0)}else if(Te){if(this.prev<C.finallyLoc)return E(C.finallyLoc)}else throw new Error("try statement without catch or finally")}}},"dispatchException"),abrupt:n(function(h,O){for(var E=this.tryEntries.length-1;E>=0;--E){var A=this.tryEntries[E];if(A.tryLoc<=this.prev&&t.call(A,"finallyLoc")&&this.prev<A.finallyLoc){var C=A;break}}C&&(h==="break"||h==="continue")&&C.tryLoc<=O&&O<=C.finallyLoc&&(C=null);var N=C?C.completion:{};return N.type=h,N.arg=O,C?(this.method="next",this.next=C.finallyLoc,P):this.complete(N)},"abrupt"),complete:n(function(h,O){if(h.type==="throw")throw h.arg;return h.type==="break"||h.type==="continue"?this.next=h.arg:h.type==="return"?(this.rval=this.arg=h.arg,this.method="return",this.next="end"):h.type==="normal"&&O&&(this.next=O),P},"complete"),finish:n(function(h){for(var O=this.tryEntries.length-1;O>=0;--O){var E=this.tryEntries[O];if(E.finallyLoc===h)return this.complete(E.completion,E.afterLoc),p(E),P}},"finish"),catch:n(function(h){for(var O=this.tryEntries.length-1;O>=0;--O){var E=this.tryEntries[O];if(E.tryLoc===h){var A=E.completion;if(A.type==="throw"){var C=A.arg;p(E)}return C}}throw new Error("illegal catch attempt")},"_catch"),delegateYield:n(function(h,O,E){return this.delegate={iterator:f(h),resultName:O,nextLoc:E},this.method==="next"&&(this.arg=i),P},"delegateYield")},r}((typeof lw=="undefined"?"undefined":uh(lw))==="object"?lw.exports:{});try{regeneratorRuntime=hA}catch(r){(typeof globalThis=="undefined"?"undefined":uh(globalThis))==="object"?globalThis.regeneratorRuntime=hA:Function("r","regeneratorRuntime = r")(hA)}});var vA=x(function(fOr,Vz){Vz.exports=n(function(){var e={},t=e._fns={};e.emit=n(function(u,c,l,d,y,m,b){var w=i(u);w.length&&o(u,w,[c,l,d,y,m,b])},"emit"),e.on=n(function(u,c){t[u]||(t[u]=[]),t[u].push(c)},"on"),e.once=n(function(u,c){function l(){c.apply(this,arguments),e.off(u,l)}n(l,"one"),this.on(u,l)},"once"),e.off=n(function(u,c){var l=[];if(u&&c){var d=this._fns[u],y=0,m=d?d.length:0;for(y;y<m;y++)d[y]!==c&&l.push(d[y])}l.length?this._fns[u]=l:delete this._fns[u]},"off");function i(a){var u=t[a]?t[a]:[],c=a.indexOf(":"),l=c===-1?[a]:[a.substring(0,c),a.substring(c+1)],d=Object.keys(t),y=0,m=d.length;for(y;y<m;y++){var b=d[y];if(b==="*"&&(u=u.concat(t[b])),l.length===2&&l[0]===b){u=u.concat(t[b]);break}}return u}n(i,"getListeners");function o(a,u,c){var l=0,d=u.length;for(l;l<d&&u[l];l++)u[l].event=a,u[l].apply(u[l],c)}return n(o,"emitAll"),e},"createNamespaceEmitter")});var dw=x(function(vOr,Kz){function yA(r){"@babel/helpers - typeof";return yA=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yA(r)}n(yA,"_typeof");function E$e(r){var e=yA(r);return r!=null&&(e=="object"||e=="function")}n(E$e,"isObject");Kz.exports=E$e});var Xz=x(function(mOr,Yz){function mA(r){"@babel/helpers - typeof";return mA=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mA(r)}n(mA,"_typeof");var T$e=(typeof global=="undefined"?"undefined":mA(global))=="object"&&global&&global.Object===Object&&global;Yz.exports=T$e});var bA=x(function(bOr,Qz){function gA(r){"@babel/helpers - typeof";return gA=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gA(r)}n(gA,"_typeof");var R$e=Xz(),A$e=(typeof self=="undefined"?"undefined":gA(self))=="object"&&self&&self.Object===Object&&self,I$e=R$e||A$e||Function("return this")();Qz.exports=I$e});var Zz=x(function(SOr,Jz){var q$e=bA(),k$e=n(function(){return q$e.Date.now()},"now");Jz.exports=k$e});var rH=x(function(POr,eH){var j$e=/\s/;function F$e(r){for(var e=r.length;e--&&j$e.test(r.charAt(e)););return e}n(F$e,"trimmedEndIndex");eH.exports=F$e});var nH=x(function(EOr,tH){var C$e=rH(),L$e=/^\s+/;function N$e(r){return r&&r.slice(0,C$e(r)+1).replace(L$e,"")}n(N$e,"baseTrim");tH.exports=N$e});var wA=x(function(ROr,iH){var x$e=bA(),D$e=x$e.Symbol;iH.exports=D$e});var sH=x(function(AOr,uH){var aH=wA(),oH=Object.prototype,M$e=oH.hasOwnProperty,U$e=oH.toString,ch=aH?aH.toStringTag:void 0;function B$e(r){var e=M$e.call(r,ch),t=r[ch];try{r[ch]=void 0;var i=!0}catch(a){}var o=U$e.call(r);return i&&(e?r[ch]=t:delete r[ch]),o}n(B$e,"getRawTag");uH.exports=B$e});var cH=x(function(qOr,lH){var $$e=Object.prototype,G$e=$$e.toString;function z$e(r){return G$e.call(r)}n(z$e,"objectToString");lH.exports=z$e});var hH=x(function(jOr,dH){var fH=wA(),H$e=sH(),W$e=cH(),V$e="[object Null]",K$e="[object Undefined]",pH=fH?fH.toStringTag:void 0;function Y$e(r){return r==null?r===void 0?K$e:V$e:pH&&pH in Object(r)?H$e(r):W$e(r)}n(Y$e,"baseGetTag");dH.exports=Y$e});var yH=x(function(COr,vH){function SA(r){"@babel/helpers - typeof";return SA=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},SA(r)}n(SA,"_typeof");function X$e(r){return r!=null&&SA(r)=="object"}n(X$e,"isObjectLike");vH.exports=X$e});var gH=x(function(NOr,mH){function OA(r){"@babel/helpers - typeof";return OA=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},OA(r)}n(OA,"_typeof");var Q$e=hH(),J$e=yH(),Z$e="[object Symbol]";function eGe(r){return OA(r)=="symbol"||J$e(r)&&Q$e(r)==Z$e}n(eGe,"isSymbol");mH.exports=eGe});var OH=x(function(DOr,SH){var rGe=nH(),bH=dw(),tGe=gH(),wH=0/0,nGe=/^[-+]0x[0-9a-f]+$/i,iGe=/^0b[01]+$/i,aGe=/^0o[0-7]+$/i,oGe=parseInt;function uGe(r){if(typeof r=="number")return r;if(tGe(r))return wH;if(bH(r)){var e=typeof r.valueOf=="function"?r.valueOf():r;r=bH(e)?e+"":e}if(typeof r!="string")return r===0?r:+r;r=rGe(r);var t=iGe.test(r);return t||aGe.test(r)?oGe(r.slice(2),t?2:8):nGe.test(r)?wH:+r}n(uGe,"toNumber");SH.exports=uGe});var _A=x(function(UOr,_H){var sGe=dw(),PA=Zz(),PH=OH(),lGe="Expected a function",cGe=Math.max,fGe=Math.min;function pGe(r,e,t){var i,o,a,u,c,l,d=0,y=!1,m=!1,b=!0;if(typeof r!="function")throw new TypeError(lGe);e=PH(e)||0,sGe(t)&&(y=!!t.leading,m="maxWait"in t,a=m?cGe(PH(t.maxWait)||0,e):a,b="trailing"in t?!!t.trailing:b);function w(D){var H=i,$=o;return i=o=void 0,d=D,u=r.apply($,H),u}n(w,"invokeFunc");function S(D){return d=D,c=setTimeout(I,e),y?w(D):u}n(S,"leadingEdge");function P(D){var H=D-l,$=D-d,V=e-H;return m?fGe(V,a-$):V}n(P,"remainingWait");function R(D){var H=D-l,$=D-d;return l===void 0||H>=e||H<0||m&&$>=a}n(R,"shouldInvoke");function I(){var D=PA();if(R(D))return T(D);c=setTimeout(I,P(D))}n(I,"timerExpired");function T(D){return c=void 0,b&&i?w(D):(i=o=void 0,u)}n(T,"trailingEdge");function F(){c!==void 0&&clearTimeout(c),d=0,i=l=o=c=void 0}n(F,"cancel");function k(){return c===void 0?u:T(PA())}n(k,"flush");function U(){var D=PA(),H=R(D);if(i=arguments,o=this,l=D,H){if(c===void 0)return S(l);if(m)return clearTimeout(c),c=setTimeout(I,e),w(l)}return c===void 0&&(c=setTimeout(I,e)),u}return n(U,"debounced"),U.cancel=F,U.flush=k,U}n(pGe,"debounce");_H.exports=pGe});var hw=x(function($Or,EH){var dGe=_A(),hGe=dw(),vGe="Expected a function";function yGe(r,e,t){var i=!0,o=!0;if(typeof r!="function")throw new TypeError(vGe);return hGe(t)&&(i="leading"in t?!!t.leading:i,o="trailing"in t?!!t.trailing:o),dGe(r,e,{leading:i,maxWait:e,trailing:o})}n(yGe,"throttle");EH.exports=yGe});var gw=x(function(f1r,xH){function qA(r){"@babel/helpers - typeof";return qA=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qA(r)}n(qA,"_typeof");xH.exports=n(function(e){if(typeof e!="number"||isNaN(e))throw new TypeError("Expected a number, got ".concat(qA(e)));var t=e<0,i=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return"".concat((t?"-":"")+e," B");var o=Math.min(Math.floor(Math.log(e)/Math.log(1024)),i.length-1);e=Number(e/Math.pow(1024,o));var a=i[o];return e>=10||e%1===0?"".concat((t?"-":"")+e.toFixed(0)," ").concat(a):"".concat((t?"-":"")+e.toFixed(1)," ").concat(a)},"prettierBytes")});var UH=x(function(d1r,MH){"use strict";function kA(r){"@babel/helpers - typeof";return kA=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kA(r)}n(kA,"_typeof");function DH(r,e){this.text=r=r||"",this.hasWild=~r.indexOf("*"),this.separator=e,this.parts=r.split(e)}n(DH,"WildcardMatcher");DH.prototype.match=function(r){var e=!0,t=this.parts,i,o=t.length,a;if(typeof r=="string"||r instanceof String)if(!this.hasWild&&this.text!=r)e=!1;else{for(a=(r||"").split(this.separator),i=0;e&&i<o;i++)t[i]!=="*"&&(i<a.length?e=t[i]===a[i]:e=!1);e=e&&a}else if(typeof r.splice=="function")for(e=[],i=r.length;i--;)this.match(r[i])&&(e[e.length]=r[i]);else if(kA(r)=="object"){e={};for(var u in r)this.match(u)&&(e[u]=r[u])}return e};MH.exports=function(r,e,t){var i=new DH(r,t||/[\/\.]/);return typeof e!="undefined"?i.match(e):i}});var $H=x(function(v1r,BH){var CGe=UH(),LGe=/[\/\+\.]/;BH.exports=function(r,e){function t(i){var o=CGe(i,r,LGe);return o&&o.length>=2}return n(t,"test"),e?t(e.split(";")[0]):t}});var xW=x(function(iPr,NW){function ti(r,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(r)),this._timeouts=r,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}n(ti,"RetryOperation");NW.exports=ti;ti.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};ti.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};ti.prototype.retry=function(r){if(this._timeout&&clearTimeout(this._timeout),!r)return!1;var e=new Date().getTime();if(r&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(r),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(r);var t=this._timeouts.shift();if(t===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),t=this._cachedTimeouts.slice(-1);else return!1;var i=this;return this._timer=setTimeout(function(){i._attempts++,i._operationTimeoutCb&&(i._timeout=setTimeout(function(){i._operationTimeoutCb(i._attempts)},i._operationTimeout),i._options.unref&&i._timeout.unref()),i._fn(i._attempts)},t),this._options.unref&&this._timer.unref(),!0};ti.prototype.attempt=function(r,e){this._fn=r,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var t=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){t._operationTimeoutCb()},t._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};ti.prototype.try=function(r){console.log("Using RetryOperation.try() is deprecated"),this.attempt(r)};ti.prototype.start=function(r){console.log("Using RetryOperation.start() is deprecated"),this.attempt(r)};ti.prototype.start=ti.prototype.try;ti.prototype.errors=function(){return this._errors};ti.prototype.attempts=function(){return this._attempts};ti.prototype.mainError=function(){if(this._errors.length===0)return null;for(var r={},e=null,t=0,i=0;i<this._errors.length;i++){var o=this._errors[i],a=o.message,u=(r[a]||0)+1;r[a]=u,u>=t&&(e=o,t=u)}return e}});var DW=x(function(hs){var eHe=xW();hs.operation=function(r){var e=hs.timeouts(r);return new eHe(e,{forever:r&&(r.forever||r.retries===1/0),unref:r&&r.unref,maxRetryTime:r&&r.maxRetryTime})};hs.timeouts=function(r){if(r instanceof Array)return[].concat(r);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var t in r)e[t]=r[t];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var i=[],o=0;o<e.retries;o++)i.push(this.createTimeout(o,e));return r&&r.forever&&!i.length&&i.push(this.createTimeout(o,e)),i.sort(function(a,u){return a-u}),i};hs.createTimeout=function(r,e){var t=e.randomize?Math.random()+1:1,i=Math.round(t*Math.max(e.minTimeout,1)*Math.pow(e.factor,r));return i=Math.min(i,e.maxTimeout),i};hs.wrap=function(r,e,t){if(e instanceof Array&&(t=e,e=null),!t){t=[];for(var i in r)typeof r[i]=="function"&&t.push(i)}for(var o=0;o<t.length;o++){var a=t[o],u=r[a];r[a]=n(function(l){var d=hs.operation(e),y=Array.prototype.slice.call(arguments,1),m=y.pop();y.push(function(b){d.retry(b)||(b&&(arguments[0]=d.mainError()),m.apply(this,arguments))}),d.attempt(function(){l.apply(r,y)})},"retryWrapper").bind(r,u),r[a].options=e}}});var UW=x(function(sPr,MW){MW.exports=DW()});var AV=x(function(JPr,dI){"use strict";var $We=Object.prototype.hasOwnProperty,Bt="~";function Kh(){}n(Kh,"Events");Object.create&&(Kh.prototype=Object.create(null),new Kh().__proto__||(Bt=!1));function GWe(r,e,t){this.fn=r,this.context=e,this.once=t||!1}n(GWe,"EE");function RV(r,e,t,i,o){if(typeof t!="function")throw new TypeError("The listener must be a function");var a=new GWe(t,i||r,o),u=Bt?Bt+e:e;return r._events[u]?r._events[u].fn?r._events[u]=[r._events[u],a]:r._events[u].push(a):(r._events[u]=a,r._eventsCount++),r}n(RV,"addListener");function Uw(r,e){--r._eventsCount===0?r._events=new Kh:delete r._events[e]}n(Uw,"clearEvent");function qt(){this._events=new Kh,this._eventsCount=0}n(qt,"EventEmitter");qt.prototype.eventNames=n(function(){var e=[],t,i;if(this._eventsCount===0)return e;for(i in t=this._events)$We.call(t,i)&&e.push(Bt?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e},"eventNames");qt.prototype.listeners=n(function(e){var t=Bt?Bt+e:e,i=this._events[t];if(!i)return[];if(i.fn)return[i.fn];for(var o=0,a=i.length,u=new Array(a);o<a;o++)u[o]=i[o].fn;return u},"listeners");qt.prototype.listenerCount=n(function(e){var t=Bt?Bt+e:e,i=this._events[t];return i?i.fn?1:i.length:0},"listenerCount");qt.prototype.emit=n(function(e,t,i,o,a,u){var c=Bt?Bt+e:e;if(!this._events[c])return!1;var l=this._events[c],d=arguments.length,y,m;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),d){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,i),!0;case 4:return l.fn.call(l.context,t,i,o),!0;case 5:return l.fn.call(l.context,t,i,o,a),!0;case 6:return l.fn.call(l.context,t,i,o,a,u),!0}for(m=1,y=new Array(d-1);m<d;m++)y[m-1]=arguments[m];l.fn.apply(l.context,y)}else{var b=l.length,w;for(m=0;m<b;m++)switch(l[m].once&&this.removeListener(e,l[m].fn,void 0,!0),d){case 1:l[m].fn.call(l[m].context);break;case 2:l[m].fn.call(l[m].context,t);break;case 3:l[m].fn.call(l[m].context,t,i);break;case 4:l[m].fn.call(l[m].context,t,i,o);break;default:if(!y)for(w=1,y=new Array(d-1);w<d;w++)y[w-1]=arguments[w];l[m].fn.apply(l[m].context,y)}}return!0},"emit");qt.prototype.on=n(function(e,t,i){return RV(this,e,t,i,!1)},"on");qt.prototype.once=n(function(e,t,i){return RV(this,e,t,i,!0)},"once");qt.prototype.removeListener=n(function(e,t,i,o){var a=Bt?Bt+e:e;if(!this._events[a])return this;if(!t)return Uw(this,a),this;var u=this._events[a];if(u.fn)u.fn===t&&(!o||u.once)&&(!i||u.context===i)&&Uw(this,a);else{for(var c=0,l=[],d=u.length;c<d;c++)(u[c].fn!==t||o&&!u[c].once||i&&u[c].context!==i)&&l.push(u[c]);l.length?this._events[a]=l.length===1?l[0]:l:Uw(this,a)}return this},"removeListener");qt.prototype.removeAllListeners=n(function(e){var t;return e?(t=Bt?Bt+e:e,this._events[t]&&Uw(this,t)):(this._events=new Kh,this._eventsCount=0),this},"removeAllListeners");qt.prototype.off=qt.prototype.removeListener;qt.prototype.addListener=qt.prototype.on;qt.prefixed=Bt;qt.EventEmitter=qt;typeof dI!="undefined"&&(dI.exports=qt)});var qn=x(function(q_r,e0){function r0(r){"@babel/helpers - typeof";return r0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r0(r)}n(r0,"_typeof");(function(){"use strict";var r={}.hasOwnProperty;function e(){for(var t=[],i=0;i<arguments.length;i++){var o=arguments[i];if(o){var a=r0(o);if(a==="string"||a==="number")t.push(o);else if(Array.isArray(o)){if(o.length){var u=e.apply(null,o);u&&t.push(u)}}else if(a==="object")if(o.toString===Object.prototype.toString)for(var c in o)r.call(o,c)&&o[c]&&t.push(c);else t.push(o.toString())}}return t.join(" ")}n(e,"classNames"),typeof e0!="undefined"&&e0.exports?(e.default=e,e0.exports=e):typeof define=="function"&&r0(define.amd)==="object"&&define.amd?define("classnames",[],function(){return e}):window.classNames=e})()});var TX=x(function(MRr,EX){EX.exports=n(function(e,t){if(e===t)return!0;for(var i in e)if(!(i in t))return!1;for(var i in t)if(e[i]!==t[i])return!1;return!0},"isShallowEqual")});var IX=x(function(oAr,AX){function zq(r){"@babel/helpers - typeof";return zq=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zq(r)}n(zq,"_typeof");AX.exports=n(function(e){if(typeof e!="number"||isNaN(e))throw new TypeError("Expected a number, got "+zq(e));var t=e<0,i=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var o=Math.min(Math.floor(Math.log(e)/Math.log(1024)),i.length-1);e=Number(e/Math.pow(1024,o));var a=i[o];return e>=10||e%1===0?(t?"-":"")+e.toFixed(0)+" "+a:(t?"-":"")+e.toFixed(1)+" "+a},"prettierBytes")});var IQ=x(function(Q0,wk){function bk(r){"@babel/helpers - typeof";return bk=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bk(r)}n(bk,"_typeof2");(function(r,e){(typeof Q0=="undefined"?"undefined":bk(Q0))==="object"&&typeof wk!="undefined"?wk.exports=e():typeof define=="function"&&define.amd?define(e):(r=r||self,r.Cropper=e())})(Q0,function(){"use strict";function r(G){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?r=n(function(L){return typeof L},"_typeof"):r=n(function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},"_typeof"),r(G)}n(r,"_typeof");function e(G,q){if(!(G instanceof q))throw new TypeError("Cannot call a class as a function")}n(e,"_classCallCheck");function t(G,q){for(var L=0;L<q.length;L++){var j=q[L];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(G,j.key,j)}}n(t,"_defineProperties");function i(G,q,L){return q&&t(G.prototype,q),L&&t(G,L),G}n(i,"_createClass");function o(G,q,L){return q in G?Object.defineProperty(G,q,{value:L,enumerable:!0,configurable:!0,writable:!0}):G[q]=L,G}n(o,"_defineProperty");function a(G,q){var L=Object.keys(G);if(Object.getOwnPropertySymbols){var j=Object.getOwnPropertySymbols(G);q&&(j=j.filter(function(K){return Object.getOwnPropertyDescriptor(G,K).enumerable})),L.push.apply(L,j)}return L}n(a,"ownKeys");function u(G){for(var q=1;q<arguments.length;q++){var L=arguments[q]!=null?arguments[q]:{};q%2?a(Object(L),!0).forEach(function(j){o(G,j,L[j])}):Object.getOwnPropertyDescriptors?Object.defineProperties(G,Object.getOwnPropertyDescriptors(L)):a(Object(L)).forEach(function(j){Object.defineProperty(G,j,Object.getOwnPropertyDescriptor(L,j))})}return G}n(u,"_objectSpread2");function c(G){return l(G)||d(G)||y(G)||b()}n(c,"_toConsumableArray");function l(G){if(Array.isArray(G))return m(G)}n(l,"_arrayWithoutHoles");function d(G){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(G))return Array.from(G)}n(d,"_iterableToArray");function y(G,q){if(G){if(typeof G=="string")return m(G,q);var L=Object.prototype.toString.call(G).slice(8,-1);if(L==="Object"&&G.constructor&&(L=G.constructor.name),L==="Map"||L==="Set")return Array.from(G);if(L==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(L))return m(G,q)}}n(y,"_unsupportedIterableToArray");function m(G,q){(q==null||q>G.length)&&(q=G.length);for(var L=0,j=new Array(q);L<q;L++)j[L]=G[L];return j}n(m,"_arrayLikeToArray");function b(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n(b,"_nonIterableSpread");var w=typeof window!="undefined"&&typeof window.document!="undefined",S=w?window:{},P=w&&S.document.documentElement?"ontouchstart"in S.document.documentElement:!1,R=w?"PointerEvent"in S:!1,I="cropper",T="all",F="crop",k="move",U="zoom",D="e",H="w",$="s",V="n",W="ne",Y="nw",p="se",s="sw",f="".concat(I,"-crop"),v="".concat(I,"-disabled"),g="".concat(I,"-hidden"),h="".concat(I,"-hide"),O="".concat(I,"-invisible"),E="".concat(I,"-modal"),A="".concat(I,"-move"),C="".concat(I,"Action"),N="".concat(I,"Preview"),M="crop",Te="move",be="none",_e="crop",Oe="cropend",Me="cropmove",Qe="cropstart",ot="dblclick",ut=P?"touchstart":"mousedown",Re=P?"touchmove":"mousemove",Kr=P?"touchend touchcancel":"mouseup",qr=R?"pointerdown":ut,si=R?"pointermove":Re,Al=R?"pointerup pointercancel":Kr,mo="ready",go="resize",bo="wheel",ga="zoom",ba="image/jpeg",st=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,lt=/^data:/,nm=/^data:image\/jpeg;base64,/,im=/^img|canvas$/i,gp={viewMode:0,dragMode:M,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:200,minContainerHeight:100,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},am='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>',om=Number.isNaN||S.isNaN;function Fe(G){return typeof G=="number"&&!om(G)}n(Fe,"isNumber");var bp=n(function(q){return q>0&&q<1/0},"isPositiveNumber");function Il(G){return typeof G=="undefined"}n(Il,"isUndefined");function xi(G){return r(G)==="object"&&G!==null}n(xi,"isObject");var fO=Object.prototype.hasOwnProperty;function wo(G){if(!xi(G))return!1;try{var q=G.constructor,L=q.prototype;return q&&L&&fO.call(L,"isPrototypeOf")}catch(j){return!1}}n(wo,"isPlainObject");function Rt(G){return typeof G=="function"}n(Rt,"isFunction");var pO=Array.prototype.slice;function ql(G){return Array.from?Array.from(G):pO.call(G)}n(ql,"toArray");function Or(G,q){return G&&Rt(q)&&(Array.isArray(G)||Fe(G.length)?ql(G).forEach(function(L,j){q.call(G,L,j,G)}):xi(G)&&Object.keys(G).forEach(function(L){q.call(G,G[L],L,G)})),G}n(Or,"forEach");var sr=Object.assign||n(function(q){for(var L=arguments.length,j=new Array(L>1?L-1:0),K=1;K<L;K++)j[K-1]=arguments[K];return xi(q)&&j.length>0&&j.forEach(function(z){xi(z)&&Object.keys(z).forEach(function(X){q[X]=z[X]})}),q},"assign"),wp=/\.\d*(?:0|9){12}\d*$/;function Di(G){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return wp.test(G)?Math.round(G*q)/q:G}n(Di,"normalizeDecimalNumber");var um=/^width|height|left|top|marginLeft|marginTop$/;function li(G,q){var L=G.style;Or(q,function(j,K){um.test(K)&&Fe(j)&&(j="".concat(j,"px")),L[K]=j})}n(li,"setStyle");function sm(G,q){return G.classList?G.classList.contains(q):G.className.indexOf(q)>-1}n(sm,"hasClass");function Fr(G,q){if(q){if(Fe(G.length)){Or(G,function(j){Fr(j,q)});return}if(G.classList){G.classList.add(q);return}var L=G.className.trim();L?L.indexOf(q)<0&&(G.className="".concat(L," ").concat(q)):G.className=q}}n(Fr,"addClass");function ci(G,q){if(q){if(Fe(G.length)){Or(G,function(L){ci(L,q)});return}if(G.classList){G.classList.remove(q);return}G.className.indexOf(q)>=0&&(G.className=G.className.replace(q,""))}}n(ci,"removeClass");function So(G,q,L){if(q){if(Fe(G.length)){Or(G,function(j){So(j,q,L)});return}L?Fr(G,q):ci(G,q)}}n(So,"toggleClass");var Mte=/([a-z\d])([A-Z])/g;function dO(G){return G.replace(Mte,"$1-$2").toLowerCase()}n(dO,"toParamCase");function hO(G,q){return xi(G[q])?G[q]:G.dataset?G.dataset[q]:G.getAttribute("data-".concat(dO(q)))}n(hO,"getData");function Sp(G,q,L){xi(L)?G[q]=L:G.dataset?G.dataset[q]=L:G.setAttribute("data-".concat(dO(q)),L)}n(Sp,"setData");function Ute(G,q){if(xi(G[q]))try{delete G[q]}catch(L){G[q]=void 0}else if(G.dataset)try{delete G.dataset[q]}catch(L){G.dataset[q]=void 0}else G.removeAttribute("data-".concat(dO(q)))}n(Ute,"removeData");var kF=/\s\s*/,jF=function(){var G=!1;if(w){var q=!1,L=n(function(){},"listener"),j=Object.defineProperty({},"once",{get:n(function(){return G=!0,q},"get"),set:n(function(z){q=z},"set")});S.addEventListener("test",L,j),S.removeEventListener("test",L,j)}return G}();function fi(G,q,L){var j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},K=L;q.trim().split(kF).forEach(function(z){if(!jF){var X=G.listeners;X&&X[z]&&X[z][L]&&(K=X[z][L],delete X[z][L],Object.keys(X[z]).length===0&&delete X[z],Object.keys(X).length===0&&delete G.listeners)}G.removeEventListener(z,K,j)})}n(fi,"removeListener");function Hn(G,q,L){var j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},K=L;q.trim().split(kF).forEach(function(z){if(j.once&&!jF){var X=G.listeners,Q=X===void 0?{}:X;K=n(function(){delete Q[z][L],G.removeEventListener(z,K,j);for(var ee=arguments.length,Z=new Array(ee),J=0;J<ee;J++)Z[J]=arguments[J];L.apply(G,Z)},"handler"),Q[z]||(Q[z]={}),Q[z][L]&&G.removeEventListener(z,Q[z][L],j),Q[z][L]=K,G.listeners=Q}G.addEventListener(z,K,j)})}n(Hn,"addListener");function kl(G,q,L){var j;return Rt(Event)&&Rt(CustomEvent)?j=new CustomEvent(q,{detail:L,bubbles:!0,cancelable:!0}):(j=document.createEvent("CustomEvent"),j.initCustomEvent(q,!0,!0,L)),G.dispatchEvent(j)}n(kl,"dispatchEvent");function FF(G){var q=G.getBoundingClientRect();return{left:q.left+(window.pageXOffset-document.documentElement.clientLeft),top:q.top+(window.pageYOffset-document.documentElement.clientTop)}}n(FF,"getOffset");var vO=S.location,Bte=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function CF(G){var q=G.match(Bte);return q!==null&&(q[1]!==vO.protocol||q[2]!==vO.hostname||q[3]!==vO.port)}n(CF,"isCrossOriginURL");function LF(G){var q="timestamp=".concat(new Date().getTime());return G+(G.indexOf("?")===-1?"?":"&")+q}n(LF,"addTimestamp");function Op(G){var q=G.rotate,L=G.scaleX,j=G.scaleY,K=G.translateX,z=G.translateY,X=[];Fe(K)&&K!==0&&X.push("translateX(".concat(K,"px)")),Fe(z)&&z!==0&&X.push("translateY(".concat(z,"px)")),Fe(q)&&q!==0&&X.push("rotate(".concat(q,"deg)")),Fe(L)&&L!==1&&X.push("scaleX(".concat(L,")")),Fe(j)&&j!==1&&X.push("scaleY(".concat(j,")"));var Q=X.length?X.join(" "):"none";return{WebkitTransform:Q,msTransform:Q,transform:Q}}n(Op,"getTransforms");function $te(G){var q=u({},G),L=[];return Or(G,function(j,K){delete q[K],Or(q,function(z){var X=Math.abs(j.startX-z.startX),Q=Math.abs(j.startY-z.startY),ne=Math.abs(j.endX-z.endX),ee=Math.abs(j.endY-z.endY),Z=Math.sqrt(X*X+Q*Q),J=Math.sqrt(ne*ne+ee*ee),te=(J-Z)/Z;L.push(te)})}),L.sort(function(j,K){return Math.abs(j)<Math.abs(K)}),L[0]}n($te,"getMaxZoomRatio");function lm(G,q){var L=G.pageX,j=G.pageY,K={endX:L,endY:j};return q?K:u({startX:L,startY:j},K)}n(lm,"getPointer");function Gte(G){var q=0,L=0,j=0;return Or(G,function(K){var z=K.startX,X=K.startY;q+=z,L+=X,j+=1}),q/=j,L/=j,{pageX:q,pageY:L}}n(Gte,"getPointersCenter");function Oo(G){var q=G.aspectRatio,L=G.height,j=G.width,K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",z=bp(j),X=bp(L);if(z&&X){var Q=L*q;K==="contain"&&Q>j||K==="cover"&&Q<j?L=j/q:j=L*q}else z?L=j/q:X&&(j=L*q);return{width:j,height:L}}n(Oo,"getAdjustedSizes");function zte(G){var q=G.width,L=G.height,j=G.degree;if(j=Math.abs(j)%180,j===90)return{width:L,height:q};var K=j%90*Math.PI/180,z=Math.sin(K),X=Math.cos(K),Q=q*X+L*z,ne=q*z+L*X;return j>90?{width:ne,height:Q}:{width:Q,height:ne}}n(zte,"getRotatedSizes");function Hte(G,q,L,j){var K=q.aspectRatio,z=q.naturalWidth,X=q.naturalHeight,Q=q.rotate,ne=Q===void 0?0:Q,ee=q.scaleX,Z=ee===void 0?1:ee,J=q.scaleY,te=J===void 0?1:J,We=L.aspectRatio,ze=L.naturalWidth,yr=L.naturalHeight,Je=j.fillColor,Yr=Je===void 0?"transparent":Je,ct=j.imageSmoothingEnabled,Ur=ct===void 0?!0:ct,wa=j.imageSmoothingQuality,mn=wa===void 0?"low":wa,oe=j.maxWidth,Ze=oe===void 0?1/0:oe,Xr=j.maxHeight,Wn=Xr===void 0?1/0:Xr,Sa=j.minWidth,Ou=Sa===void 0?0:Sa,Pu=j.minHeight,Po=Pu===void 0?0:Pu,Mi=document.createElement("canvas"),Jt=Mi.getContext("2d"),_u=Oo({aspectRatio:We,width:Ze,height:Wn}),cm=Oo({aspectRatio:We,width:Ou,height:Po},"cover"),yO=Math.min(_u.width,Math.max(cm.width,ze)),mO=Math.min(_u.height,Math.max(cm.height,yr)),DF=Oo({aspectRatio:K,width:Ze,height:Wn}),MF=Oo({aspectRatio:K,width:Ou,height:Po},"cover"),UF=Math.min(DF.width,Math.max(MF.width,z)),BF=Math.min(DF.height,Math.max(MF.height,X)),ane=[-UF/2,-BF/2,UF,BF];return Mi.width=Di(yO),Mi.height=Di(mO),Jt.fillStyle=Yr,Jt.fillRect(0,0,yO,mO),Jt.save(),Jt.translate(yO/2,mO/2),Jt.rotate(ne*Math.PI/180),Jt.scale(Z,te),Jt.imageSmoothingEnabled=Ur,Jt.imageSmoothingQuality=mn,Jt.drawImage.apply(Jt,[G].concat(c(ane.map(function(one){return Math.floor(Di(one))})))),Jt.restore(),Mi}n(Hte,"getSourceCanvas");var NF=String.fromCharCode;function Wte(G,q,L){var j="";L+=q;for(var K=q;K<L;K+=1)j+=NF(G.getUint8(K));return j}n(Wte,"getStringFromCharCode");var Vte=/^data:.*,/;function Kte(G){var q=G.replace(Vte,""),L=atob(q),j=new ArrayBuffer(L.length),K=new Uint8Array(j);return Or(K,function(z,X){K[X]=L.charCodeAt(X)}),j}n(Kte,"dataURLToArrayBuffer");function Yte(G,q){for(var L=[],j=8192,K=new Uint8Array(G);K.length>0;)L.push(NF.apply(null,ql(K.subarray(0,j)))),K=K.subarray(j);return"data:".concat(q,";base64,").concat(btoa(L.join("")))}n(Yte,"arrayBufferToDataURL");function Xte(G){var q=new DataView(G),L;try{var j,K,z;if(q.getUint8(0)===255&&q.getUint8(1)===216)for(var X=q.byteLength,Q=2;Q+1<X;){if(q.getUint8(Q)===255&&q.getUint8(Q+1)===225){K=Q;break}Q+=1}if(K){var ne=K+4,ee=K+10;if(Wte(q,ne,4)==="Exif"){var Z=q.getUint16(ee);if(j=Z===18761,(j||Z===19789)&&q.getUint16(ee+2,j)===42){var J=q.getUint32(ee+4,j);J>=8&&(z=ee+J)}}}if(z){var te=q.getUint16(z,j),We,ze;for(ze=0;ze<te;ze+=1)if(We=z+ze*12+2,q.getUint16(We,j)===274){We+=8,L=q.getUint16(We,j),q.setUint16(We,1,j);break}}}catch(yr){L=1}return L}n(Xte,"resetAndGetOrientation");function Qte(G){var q=0,L=1,j=1;switch(G){case 2:L=-1;break;case 3:q=-180;break;case 4:j=-1;break;case 5:q=90,j=-1;break;case 6:q=90;break;case 7:q=90,L=-1;break;case 8:q=-90;break}return{rotate:q,scaleX:L,scaleY:j}}n(Qte,"parseOrientation");var Jte={render:n(function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},"render"),initContainer:n(function(){var q=this.element,L=this.options,j=this.container,K=this.cropper;Fr(K,g),ci(q,g);var z={width:Math.max(j.offsetWidth,Number(L.minContainerWidth)||200),height:Math.max(j.offsetHeight,Number(L.minContainerHeight)||100)};this.containerData=z,li(K,{width:z.width,height:z.height}),Fr(q,g),ci(K,g)},"initContainer"),initCanvas:n(function(){var q=this.containerData,L=this.imageData,j=this.options.viewMode,K=Math.abs(L.rotate)%180===90,z=K?L.naturalHeight:L.naturalWidth,X=K?L.naturalWidth:L.naturalHeight,Q=z/X,ne=q.width,ee=q.height;q.height*Q>q.width?j===3?ne=q.height*Q:ee=q.width/Q:j===3?ee=q.width/Q:ne=q.height*Q;var Z={aspectRatio:Q,naturalWidth:z,naturalHeight:X,width:ne,height:ee};Z.left=(q.width-ne)/2,Z.top=(q.height-ee)/2,Z.oldLeft=Z.left,Z.oldTop=Z.top,this.canvasData=Z,this.limited=j===1||j===2,this.limitCanvas(!0,!0),this.initialImageData=sr({},L),this.initialCanvasData=sr({},Z)},"initCanvas"),limitCanvas:n(function(q,L){var j=this.options,K=this.containerData,z=this.canvasData,X=this.cropBoxData,Q=j.viewMode,ne=z.aspectRatio,ee=this.cropped&&X;if(q){var Z=Number(j.minCanvasWidth)||0,J=Number(j.minCanvasHeight)||0;Q>1?(Z=Math.max(Z,K.width),J=Math.max(J,K.height),Q===3&&(J*ne>Z?Z=J*ne:J=Z/ne)):Q>0&&(Z?Z=Math.max(Z,ee?X.width:0):J?J=Math.max(J,ee?X.height:0):ee&&(Z=X.width,J=X.height,J*ne>Z?Z=J*ne:J=Z/ne));var te=Oo({aspectRatio:ne,width:Z,height:J});Z=te.width,J=te.height,z.minWidth=Z,z.minHeight=J,z.maxWidth=1/0,z.maxHeight=1/0}if(L)if(Q>(ee?0:1)){var We=K.width-z.width,ze=K.height-z.height;z.minLeft=Math.min(0,We),z.minTop=Math.min(0,ze),z.maxLeft=Math.max(0,We),z.maxTop=Math.max(0,ze),ee&&this.limited&&(z.minLeft=Math.min(X.left,X.left+(X.width-z.width)),z.minTop=Math.min(X.top,X.top+(X.height-z.height)),z.maxLeft=X.left,z.maxTop=X.top,Q===2&&(z.width>=K.width&&(z.minLeft=Math.min(0,We),z.maxLeft=Math.max(0,We)),z.height>=K.height&&(z.minTop=Math.min(0,ze),z.maxTop=Math.max(0,ze))))}else z.minLeft=-z.width,z.minTop=-z.height,z.maxLeft=K.width,z.maxTop=K.height},"limitCanvas"),renderCanvas:n(function(q,L){var j=this.canvasData,K=this.imageData;if(L){var z=zte({width:K.naturalWidth*Math.abs(K.scaleX||1),height:K.naturalHeight*Math.abs(K.scaleY||1),degree:K.rotate||0}),X=z.width,Q=z.height,ne=j.width*(X/j.naturalWidth),ee=j.height*(Q/j.naturalHeight);j.left-=(ne-j.width)/2,j.top-=(ee-j.height)/2,j.width=ne,j.height=ee,j.aspectRatio=X/Q,j.naturalWidth=X,j.naturalHeight=Q,this.limitCanvas(!0,!1)}(j.width>j.maxWidth||j.width<j.minWidth)&&(j.left=j.oldLeft),(j.height>j.maxHeight||j.height<j.minHeight)&&(j.top=j.oldTop),j.width=Math.min(Math.max(j.width,j.minWidth),j.maxWidth),j.height=Math.min(Math.max(j.height,j.minHeight),j.maxHeight),this.limitCanvas(!1,!0),j.left=Math.min(Math.max(j.left,j.minLeft),j.maxLeft),j.top=Math.min(Math.max(j.top,j.minTop),j.maxTop),j.oldLeft=j.left,j.oldTop=j.top,li(this.canvas,sr({width:j.width,height:j.height},Op({translateX:j.left,translateY:j.top}))),this.renderImage(q),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},"renderCanvas"),renderImage:n(function(q){var L=this.canvasData,j=this.imageData,K=j.naturalWidth*(L.width/L.naturalWidth),z=j.naturalHeight*(L.height/L.naturalHeight);sr(j,{width:K,height:z,left:(L.width-K)/2,top:(L.height-z)/2}),li(this.image,sr({width:j.width,height:j.height},Op(sr({translateX:j.left,translateY:j.top},j)))),q&&this.output()},"renderImage"),initCropBox:n(function(){var q=this.options,L=this.canvasData,j=q.aspectRatio||q.initialAspectRatio,K=Number(q.autoCropArea)||.8,z={width:L.width,height:L.height};j&&(L.height*j>L.width?z.height=z.width/j:z.width=z.height*j),this.cropBoxData=z,this.limitCropBox(!0,!0),z.width=Math.min(Math.max(z.width,z.minWidth),z.maxWidth),z.height=Math.min(Math.max(z.height,z.minHeight),z.maxHeight),z.width=Math.max(z.minWidth,z.width*K),z.height=Math.max(z.minHeight,z.height*K),z.left=L.left+(L.width-z.width)/2,z.top=L.top+(L.height-z.height)/2,z.oldLeft=z.left,z.oldTop=z.top,this.initialCropBoxData=sr({},z)},"initCropBox"),limitCropBox:n(function(q,L){var j=this.options,K=this.containerData,z=this.canvasData,X=this.cropBoxData,Q=this.limited,ne=j.aspectRatio;if(q){var ee=Number(j.minCropBoxWidth)||0,Z=Number(j.minCropBoxHeight)||0,J=Q?Math.min(K.width,z.width,z.width+z.left,K.width-z.left):K.width,te=Q?Math.min(K.height,z.height,z.height+z.top,K.height-z.top):K.height;ee=Math.min(ee,K.width),Z=Math.min(Z,K.height),ne&&(ee&&Z?Z*ne>ee?Z=ee/ne:ee=Z*ne:ee?Z=ee/ne:Z&&(ee=Z*ne),te*ne>J?te=J/ne:J=te*ne),X.minWidth=Math.min(ee,J),X.minHeight=Math.min(Z,te),X.maxWidth=J,X.maxHeight=te}L&&(Q?(X.minLeft=Math.max(0,z.left),X.minTop=Math.max(0,z.top),X.maxLeft=Math.min(K.width,z.left+z.width)-X.width,X.maxTop=Math.min(K.height,z.top+z.height)-X.height):(X.minLeft=0,X.minTop=0,X.maxLeft=K.width-X.width,X.maxTop=K.height-X.height))},"limitCropBox"),renderCropBox:n(function(){var q=this.options,L=this.containerData,j=this.cropBoxData;(j.width>j.maxWidth||j.width<j.minWidth)&&(j.left=j.oldLeft),(j.height>j.maxHeight||j.height<j.minHeight)&&(j.top=j.oldTop),j.width=Math.min(Math.max(j.width,j.minWidth),j.maxWidth),j.height=Math.min(Math.max(j.height,j.minHeight),j.maxHeight),this.limitCropBox(!1,!0),j.left=Math.min(Math.max(j.left,j.minLeft),j.maxLeft),j.top=Math.min(Math.max(j.top,j.minTop),j.maxTop),j.oldLeft=j.left,j.oldTop=j.top,q.movable&&q.cropBoxMovable&&Sp(this.face,C,j.width>=L.width&&j.height>=L.height?k:T),li(this.cropBox,sr({width:j.width,height:j.height},Op({translateX:j.left,translateY:j.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},"renderCropBox"),output:n(function(){this.preview(),kl(this.element,_e,this.getData())},"output")},Zte={initPreview:n(function(){var q=this.element,L=this.crossOrigin,j=this.options.preview,K=L?this.crossOriginUrl:this.url,z=q.alt||"The image to preview",X=document.createElement("img");if(L&&(X.crossOrigin=L),X.src=K,X.alt=z,this.viewBox.appendChild(X),this.viewBoxImage=X,!!j){var Q=j;typeof j=="string"?Q=q.ownerDocument.querySelectorAll(j):j.querySelector&&(Q=[j]),this.previews=Q,Or(Q,function(ne){var ee=document.createElement("img");Sp(ne,N,{width:ne.offsetWidth,height:ne.offsetHeight,html:ne.innerHTML}),L&&(ee.crossOrigin=L),ee.src=K,ee.alt=z,ee.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',ne.innerHTML="",ne.appendChild(ee)})}},"initPreview"),resetPreview:n(function(){Or(this.previews,function(q){var L=hO(q,N);li(q,{width:L.width,height:L.height}),q.innerHTML=L.html,Ute(q,N)})},"resetPreview"),preview:n(function(){var q=this.imageData,L=this.canvasData,j=this.cropBoxData,K=j.width,z=j.height,X=q.width,Q=q.height,ne=j.left-L.left-q.left,ee=j.top-L.top-q.top;!this.cropped||this.disabled||(li(this.viewBoxImage,sr({width:X,height:Q},Op(sr({translateX:-ne,translateY:-ee},q)))),Or(this.previews,function(Z){var J=hO(Z,N),te=J.width,We=J.height,ze=te,yr=We,Je=1;K&&(Je=te/K,yr=z*Je),z&&yr>We&&(Je=We/z,ze=K*Je,yr=We),li(Z,{width:ze,height:yr}),li(Z.getElementsByTagName("img")[0],sr({width:X*Je,height:Q*Je},Op(sr({translateX:-ne*Je,translateY:-ee*Je},q))))}))},"preview")},ene={bind:n(function(){var q=this.element,L=this.options,j=this.cropper;Rt(L.cropstart)&&Hn(q,Qe,L.cropstart),Rt(L.cropmove)&&Hn(q,Me,L.cropmove),Rt(L.cropend)&&Hn(q,Oe,L.cropend),Rt(L.crop)&&Hn(q,_e,L.crop),Rt(L.zoom)&&Hn(q,ga,L.zoom),Hn(j,qr,this.onCropStart=this.cropStart.bind(this)),L.zoomable&&L.zoomOnWheel&&Hn(j,bo,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),L.toggleDragModeOnDblclick&&Hn(j,ot,this.onDblclick=this.dblclick.bind(this)),Hn(q.ownerDocument,si,this.onCropMove=this.cropMove.bind(this)),Hn(q.ownerDocument,Al,this.onCropEnd=this.cropEnd.bind(this)),L.responsive&&Hn(window,go,this.onResize=this.resize.bind(this))},"bind"),unbind:n(function(){var q=this.element,L=this.options,j=this.cropper;Rt(L.cropstart)&&fi(q,Qe,L.cropstart),Rt(L.cropmove)&&fi(q,Me,L.cropmove),Rt(L.cropend)&&fi(q,Oe,L.cropend),Rt(L.crop)&&fi(q,_e,L.crop),Rt(L.zoom)&&fi(q,ga,L.zoom),fi(j,qr,this.onCropStart),L.zoomable&&L.zoomOnWheel&&fi(j,bo,this.onWheel,{passive:!1,capture:!0}),L.toggleDragModeOnDblclick&&fi(j,ot,this.onDblclick),fi(q.ownerDocument,si,this.onCropMove),fi(q.ownerDocument,Al,this.onCropEnd),L.responsive&&fi(window,go,this.onResize)},"unbind")},rne={resize:n(function(){if(!this.disabled){var q=this.options,L=this.container,j=this.containerData,K=L.offsetWidth/j.width;if(K!==1||L.offsetHeight!==j.height){var z,X;q.restore&&(z=this.getCanvasData(),X=this.getCropBoxData()),this.render(),q.restore&&(this.setCanvasData(Or(z,function(Q,ne){z[ne]=Q*K})),this.setCropBoxData(Or(X,function(Q,ne){X[ne]=Q*K})))}}},"resize"),dblclick:n(function(){this.disabled||this.options.dragMode===be||this.setDragMode(sm(this.dragBox,f)?Te:M)},"dblclick"),wheel:n(function(q){var L=this,j=Number(this.options.wheelZoomRatio)||.1,K=1;this.disabled||(q.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){L.wheeling=!1},50),q.deltaY?K=q.deltaY>0?1:-1:q.wheelDelta?K=-q.wheelDelta/120:q.detail&&(K=q.detail>0?1:-1),this.zoom(-K*j,q)))},"wheel"),cropStart:n(function(q){var L=q.buttons,j=q.button;if(!(this.disabled||(q.type==="mousedown"||q.type==="pointerdown"&&q.pointerType==="mouse")&&(Fe(L)&&L!==1||Fe(j)&&j!==0||q.ctrlKey))){var K=this.options,z=this.pointers,X;q.changedTouches?Or(q.changedTouches,function(Q){z[Q.identifier]=lm(Q)}):z[q.pointerId||0]=lm(q),Object.keys(z).length>1&&K.zoomable&&K.zoomOnTouch?X=U:X=hO(q.target,C),st.test(X)&&kl(this.element,Qe,{originalEvent:q,action:X})!==!1&&(q.preventDefault(),this.action=X,this.cropping=!1,X===F&&(this.cropping=!0,Fr(this.dragBox,E)))}},"cropStart"),cropMove:n(function(q){var L=this.action;if(!(this.disabled||!L)){var j=this.pointers;q.preventDefault(),kl(this.element,Me,{originalEvent:q,action:L})!==!1&&(q.changedTouches?Or(q.changedTouches,function(K){sr(j[K.identifier]||{},lm(K,!0))}):sr(j[q.pointerId||0]||{},lm(q,!0)),this.change(q))}},"cropMove"),cropEnd:n(function(q){if(!this.disabled){var L=this.action,j=this.pointers;q.changedTouches?Or(q.changedTouches,function(K){delete j[K.identifier]}):delete j[q.pointerId||0],L&&(q.preventDefault(),Object.keys(j).length||(this.action=""),this.cropping&&(this.cropping=!1,So(this.dragBox,E,this.cropped&&this.options.modal)),kl(this.element,Oe,{originalEvent:q,action:L}))}},"cropEnd")},tne={change:n(function(q){var L=this.options,j=this.canvasData,K=this.containerData,z=this.cropBoxData,X=this.pointers,Q=this.action,ne=L.aspectRatio,ee=z.left,Z=z.top,J=z.width,te=z.height,We=ee+J,ze=Z+te,yr=0,Je=0,Yr=K.width,ct=K.height,Ur=!0,wa;!ne&&q.shiftKey&&(ne=J&&te?J/te:1),this.limited&&(yr=z.minLeft,Je=z.minTop,Yr=yr+Math.min(K.width,j.width,j.left+j.width),ct=Je+Math.min(K.height,j.height,j.top+j.height));var mn=X[Object.keys(X)[0]],oe={x:mn.endX-mn.startX,y:mn.endY-mn.startY},Ze=n(function(Wn){switch(Wn){case D:We+oe.x>Yr&&(oe.x=Yr-We);break;case H:ee+oe.x<yr&&(oe.x=yr-ee);break;case V:Z+oe.y<Je&&(oe.y=Je-Z);break;case $:ze+oe.y>ct&&(oe.y=ct-ze);break}},"check");switch(Q){case T:ee+=oe.x,Z+=oe.y;break;case D:if(oe.x>=0&&(We>=Yr||ne&&(Z<=Je||ze>=ct))){Ur=!1;break}Ze(D),J+=oe.x,J<0&&(Q=H,J=-J,ee-=J),ne&&(te=J/ne,Z+=(z.height-te)/2);break;case V:if(oe.y<=0&&(Z<=Je||ne&&(ee<=yr||We>=Yr))){Ur=!1;break}Ze(V),te-=oe.y,Z+=oe.y,te<0&&(Q=$,te=-te,Z-=te),ne&&(J=te*ne,ee+=(z.width-J)/2);break;case H:if(oe.x<=0&&(ee<=yr||ne&&(Z<=Je||ze>=ct))){Ur=!1;break}Ze(H),J-=oe.x,ee+=oe.x,J<0&&(Q=D,J=-J,ee-=J),ne&&(te=J/ne,Z+=(z.height-te)/2);break;case $:if(oe.y>=0&&(ze>=ct||ne&&(ee<=yr||We>=Yr))){Ur=!1;break}Ze($),te+=oe.y,te<0&&(Q=V,te=-te,Z-=te),ne&&(J=te*ne,ee+=(z.width-J)/2);break;case W:if(ne){if(oe.y<=0&&(Z<=Je||We>=Yr)){Ur=!1;break}Ze(V),te-=oe.y,Z+=oe.y,J=te*ne}else Ze(V),Ze(D),oe.x>=0?We<Yr?J+=oe.x:oe.y<=0&&Z<=Je&&(Ur=!1):J+=oe.x,oe.y<=0?Z>Je&&(te-=oe.y,Z+=oe.y):(te-=oe.y,Z+=oe.y);J<0&&te<0?(Q=s,te=-te,J=-J,Z-=te,ee-=J):J<0?(Q=Y,J=-J,ee-=J):te<0&&(Q=p,te=-te,Z-=te);break;case Y:if(ne){if(oe.y<=0&&(Z<=Je||ee<=yr)){Ur=!1;break}Ze(V),te-=oe.y,Z+=oe.y,J=te*ne,ee+=z.width-J}else Ze(V),Ze(H),oe.x<=0?ee>yr?(J-=oe.x,ee+=oe.x):oe.y<=0&&Z<=Je&&(Ur=!1):(J-=oe.x,ee+=oe.x),oe.y<=0?Z>Je&&(te-=oe.y,Z+=oe.y):(te-=oe.y,Z+=oe.y);J<0&&te<0?(Q=p,te=-te,J=-J,Z-=te,ee-=J):J<0?(Q=W,J=-J,ee-=J):te<0&&(Q=s,te=-te,Z-=te);break;case s:if(ne){if(oe.x<=0&&(ee<=yr||ze>=ct)){Ur=!1;break}Ze(H),J-=oe.x,ee+=oe.x,te=J/ne}else Ze($),Ze(H),oe.x<=0?ee>yr?(J-=oe.x,ee+=oe.x):oe.y>=0&&ze>=ct&&(Ur=!1):(J-=oe.x,ee+=oe.x),oe.y>=0?ze<ct&&(te+=oe.y):te+=oe.y;J<0&&te<0?(Q=W,te=-te,J=-J,Z-=te,ee-=J):J<0?(Q=p,J=-J,ee-=J):te<0&&(Q=Y,te=-te,Z-=te);break;case p:if(ne){if(oe.x>=0&&(We>=Yr||ze>=ct)){Ur=!1;break}Ze(D),J+=oe.x,te=J/ne}else Ze($),Ze(D),oe.x>=0?We<Yr?J+=oe.x:oe.y>=0&&ze>=ct&&(Ur=!1):J+=oe.x,oe.y>=0?ze<ct&&(te+=oe.y):te+=oe.y;J<0&&te<0?(Q=Y,te=-te,J=-J,Z-=te,ee-=J):J<0?(Q=s,J=-J,ee-=J):te<0&&(Q=W,te=-te,Z-=te);break;case k:this.move(oe.x,oe.y),Ur=!1;break;case U:this.zoom($te(X),q),Ur=!1;break;case F:if(!oe.x||!oe.y){Ur=!1;break}wa=FF(this.cropper),ee=mn.startX-wa.left,Z=mn.startY-wa.top,J=z.minWidth,te=z.minHeight,oe.x>0?Q=oe.y>0?p:W:oe.x<0&&(ee-=J,Q=oe.y>0?s:Y),oe.y<0&&(Z-=te),this.cropped||(ci(this.cropBox,g),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}Ur&&(z.width=J,z.height=te,z.left=ee,z.top=Z,this.action=Q,this.renderCropBox()),Or(X,function(Xr){Xr.startX=Xr.endX,Xr.startY=Xr.endY})},"change")},nne={crop:n(function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&Fr(this.dragBox,E),ci(this.cropBox,g),this.setCropBoxData(this.initialCropBoxData)),this},"crop"),reset:n(function(){return this.ready&&!this.disabled&&(this.imageData=sr({},this.initialImageData),this.canvasData=sr({},this.initialCanvasData),this.cropBoxData=sr({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},"reset"),clear:n(function(){return this.cropped&&!this.disabled&&(sr(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),ci(this.dragBox,E),Fr(this.cropBox,g)),this},"clear"),replace:n(function(q){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&q&&(this.isImg&&(this.element.src=q),L?(this.url=q,this.image.src=q,this.ready&&(this.viewBoxImage.src=q,Or(this.previews,function(j){j.getElementsByTagName("img")[0].src=q}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(q))),this},"replace"),enable:n(function(){return this.ready&&this.disabled&&(this.disabled=!1,ci(this.cropper,v)),this},"enable"),disable:n(function(){return this.ready&&!this.disabled&&(this.disabled=!0,Fr(this.cropper,v)),this},"disable"),destroy:n(function(){var q=this.element;return q[I]?(q[I]=void 0,this.isImg&&this.replaced&&(q.src=this.originalUrl),this.uncreate(),this):this},"destroy"),move:n(function(q){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:q,j=this.canvasData,K=j.left,z=j.top;return this.moveTo(Il(q)?q:K+Number(q),Il(L)?L:z+Number(L))},"move"),moveTo:n(function(q){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:q,j=this.canvasData,K=!1;return q=Number(q),L=Number(L),this.ready&&!this.disabled&&this.options.movable&&(Fe(q)&&(j.left=q,K=!0),Fe(L)&&(j.top=L,K=!0),K&&this.renderCanvas(!0)),this},"moveTo"),zoom:n(function(q,L){var j=this.canvasData;return q=Number(q),q<0?q=1/(1-q):q=1+q,this.zoomTo(j.width*q/j.naturalWidth,null,L)},"zoom"),zoomTo:n(function(q,L,j){var K=this.options,z=this.canvasData,X=z.width,Q=z.height,ne=z.naturalWidth,ee=z.naturalHeight;if(q=Number(q),q>=0&&this.ready&&!this.disabled&&K.zoomable){var Z=ne*q,J=ee*q;if(kl(this.element,ga,{ratio:q,oldRatio:X/ne,originalEvent:j})===!1)return this;if(j){var te=this.pointers,We=FF(this.cropper),ze=te&&Object.keys(te).length?Gte(te):{pageX:j.pageX,pageY:j.pageY};z.left-=(Z-X)*((ze.pageX-We.left-z.left)/X),z.top-=(J-Q)*((ze.pageY-We.top-z.top)/Q)}else wo(L)&&Fe(L.x)&&Fe(L.y)?(z.left-=(Z-X)*((L.x-z.left)/X),z.top-=(J-Q)*((L.y-z.top)/Q)):(z.left-=(Z-X)/2,z.top-=(J-Q)/2);z.width=Z,z.height=J,this.renderCanvas(!0)}return this},"zoomTo"),rotate:n(function(q){return this.rotateTo((this.imageData.rotate||0)+Number(q))},"rotate"),rotateTo:n(function(q){return q=Number(q),Fe(q)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=q%360,this.renderCanvas(!0,!0)),this},"rotateTo"),scaleX:n(function(q){var L=this.imageData.scaleY;return this.scale(q,Fe(L)?L:1)},"scaleX"),scaleY:n(function(q){var L=this.imageData.scaleX;return this.scale(Fe(L)?L:1,q)},"scaleY"),scale:n(function(q){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:q,j=this.imageData,K=!1;return q=Number(q),L=Number(L),this.ready&&!this.disabled&&this.options.scalable&&(Fe(q)&&(j.scaleX=q,K=!0),Fe(L)&&(j.scaleY=L,K=!0),K&&this.renderCanvas(!0,!0)),this},"scale"),getData:n(function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,L=this.options,j=this.imageData,K=this.canvasData,z=this.cropBoxData,X;if(this.ready&&this.cropped){X={x:z.left-K.left,y:z.top-K.top,width:z.width,height:z.height};var Q=j.width/j.naturalWidth;if(Or(X,function(Z,J){X[J]=Z/Q}),q){var ne=Math.round(X.y+X.height),ee=Math.round(X.x+X.width);X.x=Math.round(X.x),X.y=Math.round(X.y),X.width=ee-X.x,X.height=ne-X.y}}else X={x:0,y:0,width:0,height:0};return L.rotatable&&(X.rotate=j.rotate||0),L.scalable&&(X.scaleX=j.scaleX||1,X.scaleY=j.scaleY||1),X},"getData"),setData:n(function(q){var L=this.options,j=this.imageData,K=this.canvasData,z={};if(this.ready&&!this.disabled&&wo(q)){var X=!1;L.rotatable&&Fe(q.rotate)&&q.rotate!==j.rotate&&(j.rotate=q.rotate,X=!0),L.scalable&&(Fe(q.scaleX)&&q.scaleX!==j.scaleX&&(j.scaleX=q.scaleX,X=!0),Fe(q.scaleY)&&q.scaleY!==j.scaleY&&(j.scaleY=q.scaleY,X=!0)),X&&this.renderCanvas(!0,!0);var Q=j.width/j.naturalWidth;Fe(q.x)&&(z.left=q.x*Q+K.left),Fe(q.y)&&(z.top=q.y*Q+K.top),Fe(q.width)&&(z.width=q.width*Q),Fe(q.height)&&(z.height=q.height*Q),this.setCropBoxData(z)}return this},"setData"),getContainerData:n(function(){return this.ready?sr({},this.containerData):{}},"getContainerData"),getImageData:n(function(){return this.sized?sr({},this.imageData):{}},"getImageData"),getCanvasData:n(function(){var q=this.canvasData,L={};return this.ready&&Or(["left","top","width","height","naturalWidth","naturalHeight"],function(j){L[j]=q[j]}),L},"getCanvasData"),setCanvasData:n(function(q){var L=this.canvasData,j=L.aspectRatio;return this.ready&&!this.disabled&&wo(q)&&(Fe(q.left)&&(L.left=q.left),Fe(q.top)&&(L.top=q.top),Fe(q.width)?(L.width=q.width,L.height=q.width/j):Fe(q.height)&&(L.height=q.height,L.width=q.height*j),this.renderCanvas(!0)),this},"setCanvasData"),getCropBoxData:n(function(){var q=this.cropBoxData,L;return this.ready&&this.cropped&&(L={left:q.left,top:q.top,width:q.width,height:q.height}),L||{}},"getCropBoxData"),setCropBoxData:n(function(q){var L=this.cropBoxData,j=this.options.aspectRatio,K,z;return this.ready&&this.cropped&&!this.disabled&&wo(q)&&(Fe(q.left)&&(L.left=q.left),Fe(q.top)&&(L.top=q.top),Fe(q.width)&&q.width!==L.width&&(K=!0,L.width=q.width),Fe(q.height)&&q.height!==L.height&&(z=!0,L.height=q.height),j&&(K?L.height=L.width/j:z&&(L.width=L.height*j)),this.renderCropBox()),this},"setCropBoxData"),getCroppedCanvas:n(function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var L=this.canvasData,j=Hte(this.image,this.imageData,L,q);if(!this.cropped)return j;var K=this.getData(),z=K.x,X=K.y,Q=K.width,ne=K.height,ee=j.width/Math.floor(L.naturalWidth);ee!==1&&(z*=ee,X*=ee,Q*=ee,ne*=ee);var Z=Q/ne,J=Oo({aspectRatio:Z,width:q.maxWidth||1/0,height:q.maxHeight||1/0}),te=Oo({aspectRatio:Z,width:q.minWidth||0,height:q.minHeight||0},"cover"),We=Oo({aspectRatio:Z,width:q.width||(ee!==1?j.width:Q),height:q.height||(ee!==1?j.height:ne)}),ze=We.width,yr=We.height;ze=Math.min(J.width,Math.max(te.width,ze)),yr=Math.min(J.height,Math.max(te.height,yr));var Je=document.createElement("canvas"),Yr=Je.getContext("2d");Je.width=Di(ze),Je.height=Di(yr),Yr.fillStyle=q.fillColor||"transparent",Yr.fillRect(0,0,ze,yr);var ct=q.imageSmoothingEnabled,Ur=ct===void 0?!0:ct,wa=q.imageSmoothingQuality;Yr.imageSmoothingEnabled=Ur,wa&&(Yr.imageSmoothingQuality=wa);var mn=j.width,oe=j.height,Ze=z,Xr=X,Wn,Sa,Ou,Pu,Po,Mi;Ze<=-Q||Ze>mn?(Ze=0,Wn=0,Ou=0,Po=0):Ze<=0?(Ou=-Ze,Ze=0,Wn=Math.min(mn,Q+Ze),Po=Wn):Ze<=mn&&(Ou=0,Wn=Math.min(Q,mn-Ze),Po=Wn),Wn<=0||Xr<=-ne||Xr>oe?(Xr=0,Sa=0,Pu=0,Mi=0):Xr<=0?(Pu=-Xr,Xr=0,Sa=Math.min(oe,ne+Xr),Mi=Sa):Xr<=oe&&(Pu=0,Sa=Math.min(ne,oe-Xr),Mi=Sa);var Jt=[Ze,Xr,Wn,Sa];if(Po>0&&Mi>0){var _u=ze/Q;Jt.push(Ou*_u,Pu*_u,Po*_u,Mi*_u)}return Yr.drawImage.apply(Yr,[j].concat(c(Jt.map(function(cm){return Math.floor(Di(cm))})))),Je},"getCroppedCanvas"),setAspectRatio:n(function(q){var L=this.options;return!this.disabled&&!Il(q)&&(L.aspectRatio=Math.max(0,q)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},"setAspectRatio"),setDragMode:n(function(q){var L=this.options,j=this.dragBox,K=this.face;if(this.ready&&!this.disabled){var z=q===M,X=L.movable&&q===Te;q=z||X?q:be,L.dragMode=q,Sp(j,C,q),So(j,f,z),So(j,A,X),L.cropBoxMovable||(Sp(K,C,q),So(K,f,z),So(K,A,X))}return this},"setDragMode")},ine=S.Cropper,xF=function(){function G(q){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e(this,G),!q||!im.test(q.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=q,this.options=sr({},gp,wo(L)&&L),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return n(G,"Cropper"),i(G,[{key:"init",value:n(function(){var L=this.element,j=L.tagName.toLowerCase(),K;if(!L[I]){if(L[I]=this,j==="img"){if(this.isImg=!0,K=L.getAttribute("src")||"",this.originalUrl=K,!K)return;K=L.src}else j==="canvas"&&window.HTMLCanvasElement&&(K=L.toDataURL());this.load(K)}},"init")},{key:"load",value:n(function(L){var j=this;if(L){this.url=L,this.imageData={};var K=this.element,z=this.options;if(!z.rotatable&&!z.scalable&&(z.checkOrientation=!1),!z.checkOrientation||!window.ArrayBuffer){this.clone();return}if(lt.test(L)){nm.test(L)?this.read(Kte(L)):this.clone();return}var X=new XMLHttpRequest,Q=this.clone.bind(this);this.reloading=!0,this.xhr=X,X.onabort=Q,X.onerror=Q,X.ontimeout=Q,X.onprogress=function(){X.getResponseHeader("content-type")!==ba&&X.abort()},X.onload=function(){j.read(X.response)},X.onloadend=function(){j.reloading=!1,j.xhr=null},z.checkCrossOrigin&&CF(L)&&K.crossOrigin&&(L=LF(L)),X.open("GET",L),X.responseType="arraybuffer",X.withCredentials=K.crossOrigin==="use-credentials",X.send()}},"load")},{key:"read",value:n(function(L){var j=this.options,K=this.imageData,z=Xte(L),X=0,Q=1,ne=1;if(z>1){this.url=Yte(L,ba);var ee=Qte(z);X=ee.rotate,Q=ee.scaleX,ne=ee.scaleY}j.rotatable&&(K.rotate=X),j.scalable&&(K.scaleX=Q,K.scaleY=ne),this.clone()},"read")},{key:"clone",value:n(function(){var L=this.element,j=this.url,K=L.crossOrigin,z=j;this.options.checkCrossOrigin&&CF(j)&&(K||(K="anonymous"),z=LF(j)),this.crossOrigin=K,this.crossOriginUrl=z;var X=document.createElement("img");K&&(X.crossOrigin=K),X.src=z||j,X.alt=L.alt||"The image to crop",this.image=X,X.onload=this.start.bind(this),X.onerror=this.stop.bind(this),Fr(X,h),L.parentNode.insertBefore(X,L.nextSibling)},"clone")},{key:"start",value:n(function(){var L=this,j=this.image;j.onload=null,j.onerror=null,this.sizing=!0;var K=S.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(S.navigator.userAgent),z=n(function(ee,Z){sr(L.imageData,{naturalWidth:ee,naturalHeight:Z,aspectRatio:ee/Z}),L.sizing=!1,L.sized=!0,L.build()},"done");if(j.naturalWidth&&!K){z(j.naturalWidth,j.naturalHeight);return}var X=document.createElement("img"),Q=document.body||document.documentElement;this.sizingImage=X,X.onload=function(){z(X.width,X.height),K||Q.removeChild(X)},X.src=j.src,K||(X.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",Q.appendChild(X))},"start")},{key:"stop",value:n(function(){var L=this.image;L.onload=null,L.onerror=null,L.parentNode.removeChild(L),this.image=null},"stop")},{key:"build",value:n(function(){if(!(!this.sized||this.ready)){var L=this.element,j=this.options,K=this.image,z=L.parentNode,X=document.createElement("div");X.innerHTML=am;var Q=X.querySelector(".".concat(I,"-container")),ne=Q.querySelector(".".concat(I,"-canvas")),ee=Q.querySelector(".".concat(I,"-drag-box")),Z=Q.querySelector(".".concat(I,"-crop-box")),J=Z.querySelector(".".concat(I,"-face"));this.container=z,this.cropper=Q,this.canvas=ne,this.dragBox=ee,this.cropBox=Z,this.viewBox=Q.querySelector(".".concat(I,"-view-box")),this.face=J,ne.appendChild(K),Fr(L,g),z.insertBefore(Q,L.nextSibling),this.isImg||ci(K,h),this.initPreview(),this.bind(),j.initialAspectRatio=Math.max(0,j.initialAspectRatio)||NaN,j.aspectRatio=Math.max(0,j.aspectRatio)||NaN,j.viewMode=Math.max(0,Math.min(3,Math.round(j.viewMode)))||0,Fr(Z,g),j.guides||Fr(Z.getElementsByClassName("".concat(I,"-dashed")),g),j.center||Fr(Z.getElementsByClassName("".concat(I,"-center")),g),j.background&&Fr(Q,"".concat(I,"-bg")),j.highlight||Fr(J,O),j.cropBoxMovable&&(Fr(J,A),Sp(J,C,T)),j.cropBoxResizable||(Fr(Z.getElementsByClassName("".concat(I,"-line")),g),Fr(Z.getElementsByClassName("".concat(I,"-point")),g)),this.render(),this.ready=!0,this.setDragMode(j.dragMode),j.autoCrop&&this.crop(),this.setData(j.data),Rt(j.ready)&&Hn(L,mo,j.ready,{once:!0}),kl(L,mo)}},"build")},{key:"unbuild",value:n(function(){this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),ci(this.element,g))},"unbuild")},{key:"uncreate",value:n(function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()},"uncreate")}],[{key:"noConflict",value:n(function(){return window.Cropper=ine,G},"noConflict")},{key:"setDefaults",value:n(function(L){sr(gp,wo(L)&&L)},"setDefaults")}]),G}();return sr(xF.prototype,Jte,Zte,ene,rne,tne,nne),xF})});var XJ=x(function(_Fr,qS){"use strict";qS.exports=c2;qS.exports.isMobile=c2;qS.exports.default=c2;var inr=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,anr=/CrOS/,onr=/android|ipad|playbook|silk/i;function c2(r){r||(r={});var e=r.ua;if(!e&&typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),typeof e!="string")return!1;var t=inr.test(e)&&!anr.test(e)||!!r.tablet&&onr.test(e);return!t&&r.tablet&&r.featureDetect&&navigator&&navigator.maxTouchPoints>1&&e.indexOf("Macintosh")!==-1&&e.indexOf("Safari")!==-1&&(t=!0),t}n(c2,"isMobile")});var mee=x(function(RLr,yee){"use strict";yee.exports=n(function(e,t){if(t=t.split(":")[0],e=+e,!e)return!1;switch(t){case"http":case"ws":return e!==80;case"https":case"wss":return e!==443;case"ftp":return e!==21;case"gopher":return e!==70;case"file":return!1}return e!==0},"required")});var wee=x(function(aj){"use strict";var Lar=Object.prototype.hasOwnProperty,Nar;function gee(r){try{return decodeURIComponent(r.replace(/\+/g," "))}catch(e){return null}}n(gee,"decode");function bee(r){try{return encodeURIComponent(r)}catch(e){return null}}n(bee,"encode");function xar(r){for(var e=/([^=?#&]+)=?([^&]*)/g,t={},i;i=e.exec(r);){var o=gee(i[1]),a=gee(i[2]);o===null||a===null||o in t||(t[o]=a)}return t}n(xar,"querystring");function Dar(r,e){e=e||"";var t=[],i,o;typeof e!="string"&&(e="?");for(o in r)if(Lar.call(r,o)){if(i=r[o],!i&&(i===null||i===Nar||isNaN(i))&&(i=""),o=bee(o),i=bee(i),o===null||i===null)continue;t.push(o+"="+i)}return t.length?e+t.join("&"):""}n(Dar,"querystringify");aj.stringify=Dar;aj.parse=xar});var Aee=x(function(kLr,Ree){"use strict";function Ty(r){"@babel/helpers - typeof";return Ty=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ty(r)}n(Ty,"_typeof");var Oee=mee(),GS=wee(),Mar=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,Pee=/[\n\r\t]/g,Uar=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,_ee=/:\d+$/,Bar=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,$ar=/^[a-zA-Z]:/;function uj(r){return(r||"").toString().replace(Mar,"")}n(uj,"trimLeft");var oj=[["#","hash"],["?","query"],n(function(e,t){return ha(t.protocol)?e.replace(/\\/g,"/"):e},"sanitize"),["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],See={hash:1,query:1};function Eee(r){var e;typeof window!="undefined"?e=window:typeof global!="undefined"?e=global:typeof self!="undefined"?e=self:e={};var t=e.location||{};r=r||t;var i={},o=Ty(r),a;if(r.protocol==="blob:")i=new va(unescape(r.pathname),{});else if(o==="string"){i=new va(r,{});for(a in See)delete i[a]}else if(o==="object"){for(a in r)a in See||(i[a]=r[a]);i.slashes===void 0&&(i.slashes=Uar.test(r.href))}return i}n(Eee,"lolcation");function ha(r){return r==="file:"||r==="ftp:"||r==="http:"||r==="https:"||r==="ws:"||r==="wss:"}n(ha,"isSpecial");function Tee(r,e){r=uj(r),r=r.replace(Pee,""),e=e||{};var t=Bar.exec(r),i=t[1]?t[1].toLowerCase():"",o=!!t[2],a=!!t[3],u=0,c;return o?a?(c=t[2]+t[3]+t[4],u=t[2].length+t[3].length):(c=t[2]+t[4],u=t[2].length):a?(c=t[3]+t[4],u=t[3].length):c=t[4],i==="file:"?u>=2&&(c=c.slice(2)):ha(i)?c=t[4]:i?o&&(c=c.slice(2)):u>=2&&ha(e.protocol)&&(c=t[4]),{protocol:i,slashes:o||ha(i),slashesCount:u,rest:c}}n(Tee,"extractProtocol");function Gar(r,e){if(r==="")return e;for(var t=(e||"/").split("/").slice(0,-1).concat(r.split("/")),i=t.length,o=t[i-1],a=!1,u=0;i--;)t[i]==="."?t.splice(i,1):t[i]===".."?(t.splice(i,1),u++):u&&(i===0&&(a=!0),t.splice(i,1),u--);return a&&t.unshift(""),(o==="."||o==="..")&&t.push(""),t.join("/")}n(Gar,"resolve");function va(r,e,t){if(r=uj(r),r=r.replace(Pee,""),!(this instanceof va))return new va(r,e,t);var i,o,a,u,c,l,d=oj.slice(),y=Ty(e),m=this,b=0;for(y!=="object"&&y!=="string"&&(t=e,e=null),t&&typeof t!="function"&&(t=GS.parse),e=Eee(e),o=Tee(r||"",e),i=!o.protocol&&!o.slashes,m.slashes=o.slashes||i&&e.slashes,m.protocol=o.protocol||e.protocol||"",r=o.rest,(o.protocol==="file:"&&(o.slashesCount!==2||$ar.test(r))||!o.slashes&&(o.protocol||o.slashesCount<2||!ha(m.protocol)))&&(d[3]=[/(.*)/,"pathname"]);b<d.length;b++){if(u=d[b],typeof u=="function"){r=u(r,m);continue}a=u[0],l=u[1],a!==a?m[l]=r:typeof a=="string"?(c=a==="@"?r.lastIndexOf(a):r.indexOf(a),~c&&(typeof u[2]=="number"?(m[l]=r.slice(0,c),r=r.slice(c+u[2])):(m[l]=r.slice(c),r=r.slice(0,c)))):(c=a.exec(r))&&(m[l]=c[1],r=r.slice(0,c.index)),m[l]=m[l]||i&&u[3]&&e[l]||"",u[4]&&(m[l]=m[l].toLowerCase())}t&&(m.query=t(m.query)),i&&e.slashes&&m.pathname.charAt(0)!=="/"&&(m.pathname!==""||e.pathname!=="")&&(m.pathname=Gar(m.pathname,e.pathname)),m.pathname.charAt(0)!=="/"&&ha(m.protocol)&&(m.pathname="/"+m.pathname),Oee(m.port,m.protocol)||(m.host=m.hostname,m.port=""),m.username=m.password="",m.auth&&(c=m.auth.indexOf(":"),~c?(m.username=m.auth.slice(0,c),m.username=encodeURIComponent(decodeURIComponent(m.username)),m.password=m.auth.slice(c+1),m.password=encodeURIComponent(decodeURIComponent(m.password))):m.username=encodeURIComponent(decodeURIComponent(m.auth)),m.auth=m.password?m.username+":"+m.password:m.username),m.origin=m.protocol!=="file:"&&ha(m.protocol)&&m.host?m.protocol+"//"+m.host:"null",m.href=m.toString()}n(va,"Url");function zar(r,e,t){var i=this;switch(r){case"query":typeof e=="string"&&e.length&&(e=(t||GS.parse)(e)),i[r]=e;break;case"port":i[r]=e,Oee(e,i.protocol)?e&&(i.host=i.hostname+":"+e):(i.host=i.hostname,i[r]="");break;case"hostname":i[r]=e,i.port&&(e+=":"+i.port),i.host=e;break;case"host":i[r]=e,_ee.test(e)?(e=e.split(":"),i.port=e.pop(),i.hostname=e.join(":")):(i.hostname=e,i.port="");break;case"protocol":i.protocol=e.toLowerCase(),i.slashes=!t;break;case"pathname":case"hash":if(e){var o=r==="pathname"?"/":"#";i[r]=e.charAt(0)!==o?o+e:e}else i[r]=e;break;case"username":case"password":i[r]=encodeURIComponent(e);break;case"auth":var a=e.indexOf(":");~a?(i.username=e.slice(0,a),i.username=encodeURIComponent(decodeURIComponent(i.username)),i.password=e.slice(a+1),i.password=encodeURIComponent(decodeURIComponent(i.password))):i.username=encodeURIComponent(decodeURIComponent(e))}for(var u=0;u<oj.length;u++){var c=oj[u];c[4]&&(i[c[1]]=i[c[1]].toLowerCase())}return i.auth=i.password?i.username+":"+i.password:i.username,i.origin=i.protocol!=="file:"&&ha(i.protocol)&&i.host?i.protocol+"//"+i.host:"null",i.href=i.toString(),i}n(zar,"set");function Har(r){(!r||typeof r!="function")&&(r=GS.stringify);var e,t=this,i=t.host,o=t.protocol;o&&o.charAt(o.length-1)!==":"&&(o+=":");var a=o+(t.protocol&&t.slashes||ha(t.protocol)?"//":"");return t.username?(a+=t.username,t.password&&(a+=":"+t.password),a+="@"):t.password?(a+=":"+t.password,a+="@"):t.protocol!=="file:"&&ha(t.protocol)&&!i&&t.pathname!=="/"&&(a+="@"),(i[i.length-1]===":"||_ee.test(t.hostname)&&!t.port)&&(i+=":"),a+=i+t.pathname,e=Ty(t.query)==="object"?r(t.query):t.query,e&&(a+=e.charAt(0)!=="?"?"?"+e:e),t.hash&&(a+=t.hash),a}n(Har,"toString");va.prototype={set:zar,toString:Har};va.extractProtocol=Tee;va.location=Eee;va.trimLeft=uj;va.qs=GS;Ree.exports=va});var Aj=x(function(GNr,Rj){typeof Rj!="undefined"&&(Rj.exports=Bn);function Bn(r){if(r)return Zor(r)}n(Bn,"Emitter");function Zor(r){for(var e in Bn.prototype)r[e]=Bn.prototype[e];return r}n(Zor,"mixin");Bn.prototype.on=Bn.prototype.addEventListener=function(r,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+r]=this._callbacks["$"+r]||[]).push(e),this};Bn.prototype.once=function(r,e){function t(){this.off(r,t),e.apply(this,arguments)}return n(t,"on"),t.fn=e,this.on(r,t),this};Bn.prototype.off=Bn.prototype.removeListener=Bn.prototype.removeAllListeners=Bn.prototype.removeEventListener=function(r,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+r];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+r],this;for(var i,o=0;o<t.length;o++)if(i=t[o],i===e||i.fn===e){t.splice(o,1);break}return t.length===0&&delete this._callbacks["$"+r],this};Bn.prototype.emit=function(r){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),t=this._callbacks["$"+r],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(t){t=t.slice(0);for(var i=0,o=t.length;i<o;++i)t[i].apply(this,e)}return this};Bn.prototype.listeners=function(r){return this._callbacks=this._callbacks||{},this._callbacks["$"+r]||[]};Bn.prototype.hasListeners=function(r){return!!this.listeners(r).length}});var Hre=x(function(nO,bF){function gF(r){"@babel/helpers - typeof";return gF=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gF(r)}n(gF,"_typeof");(function(r,e){(typeof nO=="undefined"?"undefined":gF(nO))==="object"&&typeof bF!="undefined"?bF.exports=e():typeof define=="function"&&define.amd?define(e):(r=typeof globalThis!="undefined"?globalThis:r||self,r.Compressor=e())})(nO,function(){"use strict";function r(O,E){var A=Object.keys(O);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(O);E&&(C=C.filter(function(N){return Object.getOwnPropertyDescriptor(O,N).enumerable})),A.push.apply(A,C)}return A}n(r,"ownKeys");function e(O){for(var E=1;E<arguments.length;E++){var A=arguments[E]!=null?arguments[E]:{};E%2?r(Object(A),!0).forEach(function(C){a(O,C,A[C])}):Object.getOwnPropertyDescriptors?Object.defineProperties(O,Object.getOwnPropertyDescriptors(A)):r(Object(A)).forEach(function(C){Object.defineProperty(O,C,Object.getOwnPropertyDescriptor(A,C))})}return O}n(e,"_objectSpread2");function t(O,E){if(!(O instanceof E))throw new TypeError("Cannot call a class as a function")}n(t,"_classCallCheck");function i(O,E){for(var A=0;A<E.length;A++){var C=E[A];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(O,C.key,C)}}n(i,"_defineProperties");function o(O,E,A){return E&&i(O.prototype,E),A&&i(O,A),O}n(o,"_createClass");function a(O,E,A){return E in O?Object.defineProperty(O,E,{value:A,enumerable:!0,configurable:!0,writable:!0}):O[E]=A,O}n(a,"_defineProperty");function u(){return u=Object.assign||function(O){for(var E=1;E<arguments.length;E++){var A=arguments[E];for(var C in A)Object.prototype.hasOwnProperty.call(A,C)&&(O[C]=A[C])}return O},u.apply(this,arguments)}n(u,"_extends");var c={exports:{}};(function(O){typeof window!="undefined"&&function(E){var A=E.HTMLCanvasElement&&E.HTMLCanvasElement.prototype,C=E.Blob&&function(){try{return!!new Blob}catch(_e){return!1}}(),N=C&&E.Uint8Array&&function(){try{return new Blob([new Uint8Array(100)]).size===100}catch(_e){return!1}}(),M=E.BlobBuilder||E.WebKitBlobBuilder||E.MozBlobBuilder||E.MSBlobBuilder,Te=/^data:((.*?)(;charset=.*?)?)(;base64)?,/,be=(C||M)&&E.atob&&E.ArrayBuffer&&E.Uint8Array&&function(_e){var Oe,Me,Qe,ot,ut,Re,Kr,qr,si;if(Oe=_e.match(Te),!Oe)throw new Error("invalid data URI");for(Me=Oe[2]?Oe[1]:"text/plain"+(Oe[3]||";charset=US-ASCII"),Qe=!!Oe[4],ot=_e.slice(Oe[0].length),Qe?ut=atob(ot):ut=decodeURIComponent(ot),Re=new ArrayBuffer(ut.length),Kr=new Uint8Array(Re),qr=0;qr<ut.length;qr+=1)Kr[qr]=ut.charCodeAt(qr);return C?new Blob([N?Kr:Re],{type:Me}):(si=new M,si.append(Re),si.getBlob(Me))};E.HTMLCanvasElement&&!A.toBlob&&(A.mozGetAsFile?A.toBlob=function(_e,Oe,Me){var Qe=this;setTimeout(function(){Me&&A.toDataURL&&be?_e(be(Qe.toDataURL(Oe,Me))):_e(Qe.mozGetAsFile("blob",Oe))})}:A.toDataURL&&be&&(A.msToBlob?A.toBlob=function(_e,Oe,Me){var Qe=this;setTimeout(function(){(Oe&&Oe!=="image/png"||Me)&&A.toDataURL&&be?_e(be(Qe.toDataURL(Oe,Me))):_e(Qe.msToBlob(Oe))})}:A.toBlob=function(_e,Oe,Me){var Qe=this;setTimeout(function(){_e(be(Qe.toDataURL(Oe,Me)))})})),O.exports?O.exports=be:E.dataURLtoBlob=be}(window)})(c);var l=c.exports,d=n(function(E){return typeof Blob=="undefined"?!1:E instanceof Blob||Object.prototype.toString.call(E)==="[object Blob]"},"isBlob"),y={strict:!0,checkOrientation:!0,maxWidth:1/0,maxHeight:1/0,minWidth:0,minHeight:0,width:void 0,height:void 0,resize:"none",quality:.8,mimeType:"auto",convertTypes:["image/png"],convertSize:5e6,beforeDraw:null,drew:null,success:null,error:null},m=typeof window!="undefined"&&typeof window.document!="undefined",b=m?window:{},w=n(function(E){return E>0&&E<1/0},"isPositiveNumber"),S=Array.prototype.slice;function P(O){return Array.from?Array.from(O):S.call(O)}n(P,"toArray");var R=/^image\/.+$/;function I(O){return R.test(O)}n(I,"isImageType");function T(O){var E=I(O)?O.substr(6):"";return E==="jpeg"&&(E="jpg"),".".concat(E)}n(T,"imageTypeToExtension");var F=String.fromCharCode;function k(O,E,A){var C="",N;for(A+=E,N=E;N<A;N+=1)C+=F(O.getUint8(N));return C}n(k,"getStringFromCharCode");var U=b.btoa;function D(O,E){for(var A=[],C=8192,N=new Uint8Array(O);N.length>0;)A.push(F.apply(null,P(N.subarray(0,C)))),N=N.subarray(C);return"data:".concat(E,";base64,").concat(U(A.join("")))}n(D,"arrayBufferToDataURL");function H(O){var E=new DataView(O),A;try{var C,N,M;if(E.getUint8(0)===255&&E.getUint8(1)===216)for(var Te=E.byteLength,be=2;be+1<Te;){if(E.getUint8(be)===255&&E.getUint8(be+1)===225){N=be;break}be+=1}if(N){var _e=N+4,Oe=N+10;if(k(E,_e,4)==="Exif"){var Me=E.getUint16(Oe);if(C=Me===18761,(C||Me===19789)&&E.getUint16(Oe+2,C)===42){var Qe=E.getUint32(Oe+4,C);Qe>=8&&(M=Oe+Qe)}}}if(M){var ot=E.getUint16(M,C),ut,Re;for(Re=0;Re<ot;Re+=1)if(ut=M+Re*12+2,E.getUint16(ut,C)===274){ut+=8,A=E.getUint16(ut,C),E.setUint16(ut,1,C);break}}}catch(Kr){A=1}return A}n(H,"resetAndGetOrientation");function $(O){var E=0,A=1,C=1;switch(O){case 2:A=-1;break;case 3:E=-180;break;case 4:C=-1;break;case 5:E=90,C=-1;break;case 6:E=90;break;case 7:E=90,A=-1;break;case 8:E=-90;break}return{rotate:E,scaleX:A,scaleY:C}}n($,"parseOrientation");var V=/\.\d*(?:0|9){12}\d*$/;function W(O){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return V.test(O)?Math.round(O*E)/E:O}n(W,"normalizeDecimalNumber");function Y(O){var E=O.aspectRatio,A=O.height,C=O.width,N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none",M=w(C),Te=w(A);if(M&&Te){var be=A*E;(N==="contain"||N==="none")&&be>C||N==="cover"&&be<C?A=C/E:C=A*E}else M?A=C/E:Te&&(C=A*E);return{width:C,height:A}}n(Y,"getAdjustedSizes");var p=b.ArrayBuffer,s=b.FileReader,f=b.URL||b.webkitURL,v=/\.\w+$/,g=b.Compressor,h=function(){function O(E,A){t(this,O),this.file=E,this.image=new Image,this.options=e(e({},y),A),this.aborted=!1,this.result=null,this.init()}return n(O,"Compressor"),o(O,[{key:"init",value:n(function(){var A=this,C=this.file,N=this.options;if(!d(C)){this.fail(new Error("The first argument must be a File or Blob object."));return}var M=C.type;if(!I(M)){this.fail(new Error("The first argument must be an image File or Blob object."));return}if(!f||!s){this.fail(new Error("The current browser does not support image compression."));return}if(p||(N.checkOrientation=!1),f&&!N.checkOrientation)this.load({url:f.createObjectURL(C)});else{var Te=new s,be=N.checkOrientation&&M==="image/jpeg";this.reader=Te,Te.onload=function(_e){var Oe=_e.target,Me=Oe.result,Qe={};if(be){var ot=H(Me);ot>1||!f?(Qe.url=D(Me,M),ot>1&&u(Qe,$(ot))):Qe.url=f.createObjectURL(C)}else Qe.url=Me;A.load(Qe)},Te.onabort=function(){A.fail(new Error("Aborted to read the image with FileReader."))},Te.onerror=function(){A.fail(new Error("Failed to read the image with FileReader."))},Te.onloadend=function(){A.reader=null},be?Te.readAsArrayBuffer(C):Te.readAsDataURL(C)}},"init")},{key:"load",value:n(function(A){var C=this,N=this.file,M=this.image;M.onload=function(){C.draw(e(e({},A),{},{naturalWidth:M.naturalWidth,naturalHeight:M.naturalHeight}))},M.onabort=function(){C.fail(new Error("Aborted to load the image."))},M.onerror=function(){C.fail(new Error("Failed to load the image."))},b.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(b.navigator.userAgent)&&(M.crossOrigin="anonymous"),M.alt=N.name,M.src=A.url},"load")},{key:"draw",value:n(function(A){var C=this,N=A.naturalWidth,M=A.naturalHeight,Te=A.rotate,be=Te===void 0?0:Te,_e=A.scaleX,Oe=_e===void 0?1:_e,Me=A.scaleY,Qe=Me===void 0?1:Me,ot=this.file,ut=this.image,Re=this.options,Kr=document.createElement("canvas"),qr=Kr.getContext("2d"),si=Math.abs(be)%180===90,Al=(Re.resize==="contain"||Re.resize==="cover")&&w(Re.width)&&w(Re.height),mo=Math.max(Re.maxWidth,0)||1/0,go=Math.max(Re.maxHeight,0)||1/0,bo=Math.max(Re.minWidth,0)||0,ga=Math.max(Re.minHeight,0)||0,ba=N/M,st=Re.width,lt=Re.height;if(si){var nm=[go,mo];mo=nm[0],go=nm[1];var im=[ga,bo];bo=im[0],ga=im[1];var gp=[lt,st];st=gp[0],lt=gp[1]}Al&&(ba=st/lt);var am=Y({aspectRatio:ba,width:mo,height:go},"contain");mo=am.width,go=am.height;var om=Y({aspectRatio:ba,width:bo,height:ga},"cover");if(bo=om.width,ga=om.height,Al){var Fe=Y({aspectRatio:ba,width:st,height:lt},Re.resize);st=Fe.width,lt=Fe.height}else{var bp=Y({aspectRatio:ba,width:st,height:lt}),Il=bp.width;st=Il===void 0?N:Il;var xi=bp.height;lt=xi===void 0?M:xi}st=Math.floor(W(Math.min(Math.max(st,bo),mo))),lt=Math.floor(W(Math.min(Math.max(lt,ga),go)));var fO=-st/2,wo=-lt/2,Rt=st,pO=lt,ql=[];if(Al){var Or=0,sr=0,wp=N,Di=M,um=Y({aspectRatio:ba,width:N,height:M},{contain:"cover",cover:"contain"}[Re.resize]);wp=um.width,Di=um.height,Or=(N-wp)/2,sr=(M-Di)/2,ql.push(Or,sr,wp,Di)}if(ql.push(fO,wo,Rt,pO),si){var li=[lt,st];st=li[0],lt=li[1]}Kr.width=st,Kr.height=lt,I(Re.mimeType)||(Re.mimeType=ot.type);var sm="transparent";if(ot.size>Re.convertSize&&Re.convertTypes.indexOf(Re.mimeType)>=0&&(Re.mimeType="image/jpeg"),Re.mimeType==="image/jpeg"&&(sm="#fff"),qr.fillStyle=sm,qr.fillRect(0,0,st,lt),Re.beforeDraw&&Re.beforeDraw.call(this,qr,Kr),!this.aborted&&(qr.save(),qr.translate(st/2,lt/2),qr.rotate(be*Math.PI/180),qr.scale(Oe,Qe),qr.drawImage.apply(qr,[ut].concat(ql)),qr.restore(),Re.drew&&Re.drew.call(this,qr,Kr),!this.aborted)){var Fr=n(function(So){C.aborted||C.done({naturalWidth:N,naturalHeight:M,result:So})},"done");Kr.toBlob?Kr.toBlob(Fr,Re.mimeType,Re.quality):Fr(l(Kr.toDataURL(Re.mimeType,Re.quality)))}},"draw")},{key:"done",value:n(function(A){var C=A.naturalWidth,N=A.naturalHeight,M=A.result,Te=this.file,be=this.image,_e=this.options;if(f&&!_e.checkOrientation&&f.revokeObjectURL(be.src),M)if(_e.strict&&M.size>Te.size&&_e.mimeType===Te.type&&!(_e.width>C||_e.height>N||_e.minWidth>C||_e.minHeight>N||_e.maxWidth<C||_e.maxHeight<N))M=Te;else{var Oe=new Date;M.lastModified=Oe.getTime(),M.lastModifiedDate=Oe,M.name=Te.name,M.name&&M.type!==Te.type&&(M.name=M.name.replace(v,T(M.type)))}else M=Te;this.result=M,_e.success&&_e.success.call(this,M)},"done")},{key:"fail",value:n(function(A){var C=this.options;if(C.error)C.error.call(this,A);else throw A},"fail")},{key:"abort",value:n(function(){this.aborted||(this.aborted=!0,this.reader?this.reader.abort():this.image.complete?this.fail(new Error("The compression process has been aborted.")):(this.image.onload=null,this.image.onabort()))},"abort")}],[{key:"noConflict",value:n(function(){return window.Compressor=g,O},"noConflict")},{key:"setDefaults",value:n(function(A){u(y,A)},"setDefaults")}]),O}();return h})});NN();MN();BN();S1();ix();var Tse=B(),Rse=Ae(),Ase=ye(),Mm=se(),Ise=Ne(),qse=ke(),kse=Nt(),jse=Ge(),Fse=tr().f,Cse=qp(),Ta=Ase.Symbol,Cu=Ta&&Ta.prototype;Rse&&qse(Ta)&&(!("description"in Cu)||Ta().description!==void 0)&&(O1={},Dp=n(function(){var e=arguments.length<1||arguments[0]===void 0?void 0:jse(arguments[0]),t=kse(Cu,this)?new Ta(e):e===void 0?Ta():Ta(e);return e===""&&(O1[t]=!0),t},"_Symbol"),Cse(Dp,Ta),Dp.prototype=Cu,Cu.constructor=Dp,ax=String(Ta("test"))=="Symbol(test)",ox=Mm(Cu.toString),ux=Mm(Cu.valueOf),sx=/^Symbol\((.*)\)[^)]+$/,lx=Mm("".replace),cx=Mm("".slice),Fse(Cu,"description",{configurable:!0,get:n(function(){var e=ux(this),t=ox(e);if(Ise(O1,e))return"";var i=ax?cx(t,7,-1):lx(t,sx,"$1");return i===""?void 0:i},"description")}),Tse({global:!0,constructor:!0,forced:!0},{Symbol:Dp}));var O1,Dp,ax,ox,ux,sx,lx,cx;var Lse=_r();Lse("asyncIterator");var Nse=_r();Nse("hasInstance");var xse=_r();xse("isConcatSpreadable");var Dse=_r();Dse("iterator");var Mse=_r();Mse("match");var Use=_r();Use("matchAll");var Bse=_r();Bse("replace");var $se=_r();$se("search");var Gse=_r();Gse("species");var zse=_r();zse("split");var Hse=_r(),Wse=n1();Hse("toPrimitive");Wse();var Vse=ge(),Kse=_r(),Yse=en();Kse("toStringTag");Yse(Vse("Symbol"),"Symbol");var Xse=_r();Xse("unscopables");var Ix=B(),Ple=ye(),Gi=tn(),qx=A1(),I1="WebAssembly",Ax=Ple[I1],Bm=Error("e",{cause:7}).cause!==7,Nu=n(function(e,t){var i={};i[e]=qx(e,t,Bm),Ix({global:!0,constructor:!0,arity:1,forced:Bm},i)},"exportGlobalErrorCauseWrapper"),q1=n(function(e,t){if(Ax&&Ax[e]){var i={};i[e]=qx(I1+"."+e,t,Bm),Ix({target:I1,stat:!0,constructor:!0,arity:1,forced:Bm},i)}},"exportWebAssemblyErrorCauseWrapper");Nu("Error",function(r){return n(function(t){return Gi(r,this,arguments)},"Error")});Nu("EvalError",function(r){return n(function(t){return Gi(r,this,arguments)},"EvalError")});Nu("RangeError",function(r){return n(function(t){return Gi(r,this,arguments)},"RangeError")});Nu("ReferenceError",function(r){return n(function(t){return Gi(r,this,arguments)},"ReferenceError")});Nu("SyntaxError",function(r){return n(function(t){return Gi(r,this,arguments)},"SyntaxError")});Nu("TypeError",function(r){return n(function(t){return Gi(r,this,arguments)},"TypeError")});Nu("URIError",function(r){return n(function(t){return Gi(r,this,arguments)},"URIError")});q1("CompileError",function(r){return n(function(t){return Gi(r,this,arguments)},"CompileError")});q1("LinkError",function(r){return n(function(t){return Gi(r,this,arguments)},"LinkError")});q1("RuntimeError",function(r){return n(function(t){return Gi(r,this,arguments)},"RuntimeError")});Wx();var hce=B(),vce=ge(),yce=tn(),Vx=ue(),mce=A1(),L1="AggregateError",Kx=vce(L1),Yx=!Vx(function(){return Kx([1]).errors[0]!==1})&&Vx(function(){return Kx([1],L1,{cause:7}).cause!==7});hce({global:!0,constructor:!0,arity:2,forced:Yx},{AggregateError:mce(L1,function(r){return n(function(t,i){return yce(r,this,arguments)},"AggregateError")},Yx,!0)});var Sce=B(),Oce=Ue(),Pce=$e(),_ce=Pr(),Ece=br();Sce({target:"Array",proto:!0},{at:n(function(e){var t=Oce(this),i=Pce(t),o=_ce(e),a=o>=0?o:i+o;return a<0||a>=i?void 0:t[a]},"at")});Ece("at");var jce=B(),Fce=ue(),Cce=ku(),Lce=Le(),Nce=Ue(),xce=$e(),Zx=Du(),eD=Bi(),Dce=ju(),Mce=Gl(),Uce=Se(),Bce=_o(),rD=Uce("isConcatSpreadable"),$ce=Bce>=51||!Fce(function(){var r=[];return r[rD]=!1,r.concat()[0]!==r}),Gce=Mce("concat"),zce=n(function(e){if(!Lce(e))return!1;var t=e[rD];return t!==void 0?!!t:Cce(e)},"isConcatSpreadable"),Hce=!$ce||!Gce;jce({target:"Array",proto:!0,arity:1,forced:Hce},{concat:n(function(e){var t=Nce(this),i=Dce(t,0),o=0,a,u,c,l,d;for(a=-1,c=arguments.length;a<c;a++)if(d=a===-1?t:arguments[a],zce(d))for(l=xce(d),Zx(o+l),u=0;u<l;u++,o++)u in d&&eD(i,o,d[u]);else Zx(o+1),eD(i,o++,d);return i.length=o,i},"concat")});var Qce=B(),Jce=M1(),Zce=br();Qce({target:"Array",proto:!0},{copyWithin:Jce});Zce("copyWithin");var tfe=B(),nfe=Ym(),ife=br();tfe({target:"Array",proto:!0},{fill:nfe});ife("fill");var afe=B(),ofe=zr().filter,ufe=Gl(),sfe=ufe("filter");afe({target:"Array",proto:!0,forced:!sfe},{filter:n(function(e){return ofe(this,e,arguments.length>1?arguments[1]:void 0)},"filter")});var lfe=B(),cfe=zr().find,ffe=br(),U1="find",uD=!0;U1 in[]&&Array(1)[U1](function(){uD=!1});lfe({target:"Array",proto:!0,forced:uD},{find:n(function(e){return cfe(this,e,arguments.length>1?arguments[1]:void 0)},"find")});ffe(U1);var pfe=B(),dfe=zr().findIndex,hfe=br(),B1="findIndex",sD=!0;B1 in[]&&Array(1)[B1](function(){sD=!1});pfe({target:"Array",proto:!0,forced:sD},{findIndex:n(function(e){return dfe(this,e,arguments.length>1?arguments[1]:void 0)},"findIndex")});hfe(B1);var bfe=B(),wfe=Bp().findLast,Sfe=br();bfe({target:"Array",proto:!0},{findLast:n(function(e){return wfe(this,e,arguments.length>1?arguments[1]:void 0)},"findLast")});Sfe("findLast");var Ofe=B(),Pfe=Bp().findLastIndex,_fe=br();Ofe({target:"Array",proto:!0},{findLastIndex:n(function(e){return Pfe(this,e,arguments.length>1?arguments[1]:void 0)},"findLastIndex")});_fe("findLastIndex");var qfe=B(),kfe=$1(),jfe=Ue(),Ffe=$e(),Cfe=Pr(),Lfe=ju();qfe({target:"Array",proto:!0},{flat:n(function(){var e=arguments.length?arguments[0]:void 0,t=jfe(this),i=Ffe(t),o=Lfe(t,0);return o.length=kfe(o,t,t,i,0,e===void 0?1:Cfe(e)),o},"flat")});var Nfe=B(),xfe=$1(),Dfe=ve(),Mfe=Ue(),Ufe=$e(),Bfe=ju();Nfe({target:"Array",proto:!0},{flatMap:n(function(e){var t=Mfe(this),i=Ufe(t),o;return Dfe(e),o=Bfe(t,0),o.length=xfe(o,t,t,i,0,1,e,arguments.length>1?arguments[1]:void 0),o},"flatMap")});var epe=B(),rpe=G1(),tpe=$p(),npe=!tpe(function(r){Array.from(r)});epe({target:"Array",stat:!0,forced:npe},{from:rpe});var ipe=B(),ape=Ap().includes,ope=ue(),upe=br(),spe=ope(function(){return!Array(1).includes()});ipe({target:"Array",proto:!0,forced:spe},{includes:n(function(e){return ape(this,e,arguments.length>1?arguments[1]:void 0)},"includes")});upe("includes");var S5r=Ce(Hp(),1);var Mpe=B(),Upe=se(),Bpe=Oa(),$pe=$r(),Gpe=Mu(),zpe=Upe([].join),Hpe=Bpe!=Object,Wpe=Gpe("join",",");Mpe({target:"Array",proto:!0,forced:Hpe||!Wpe},{join:n(function(e){return zpe($pe(this),e===void 0?",":e)},"join")});var Vpe=B(),Kpe=zr().map,Ype=Gl(),Xpe=Ype("map");Vpe({target:"Array",proto:!0,forced:!Xpe},{map:n(function(e){return Kpe(this,e,arguments.length>1?arguments[1]:void 0)},"map")});var Qpe=B(),Jpe=ue(),Zpe=vi(),ede=Bi(),UD=Array,rde=Jpe(function(){function r(){}return n(r,"F"),!(UD.of.call(r)instanceof r)});Qpe({target:"Array",stat:!0,forced:rde},{of:n(function(){for(var e=0,t=arguments.length,i=new(Zpe(this)?this:UD)(t);t>e;)ede(i,e,arguments[e++]);return i.length=t,i},"of")});var tde=B(),nde=Ue(),ide=$e(),ade=Du(),ode=ue(),ude=ode(function(){return[].push.call({length:4294967296},1)!==4294967297}),sde=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(r){return r instanceof TypeError}}();tde({target:"Array",proto:!0,arity:1,forced:ude||sde},{push:n(function(e){var t=nde(this),i=ide(t),o=arguments.length;ade(i+o);for(var a=0;a<o;a++)t[i]=arguments[a],i++;return t.length=i,i},"push")});var lde=B(),BD=ku(),cde=vi(),fde=Le(),$D=di(),pde=$e(),dde=$r(),hde=Bi(),vde=Se(),yde=Gl(),mde=ko(),gde=yde("slice"),bde=vde("species"),X1=Array,wde=Math.max;lde({target:"Array",proto:!0,forced:!gde},{slice:n(function(e,t){var i=dde(this),o=pde(i),a=$D(e,o),u=$D(t===void 0?o:t,o),c,l,d;if(BD(i)&&(c=i.constructor,cde(c)&&(c===X1||BD(c.prototype))?c=void 0:fde(c)&&(c=c[bde],c===null&&(c=void 0)),c===X1||c===void 0))return mde(i,a,u);for(l=new(c===void 0?X1:c)(wde(u-a,0)),d=0;a<u;a++,d++)a in i&&hde(l,d,i[a]);return l.length=d,l},"slice")});var Ade=B(),r5=se(),Ide=ve(),qde=Ue(),kde=$e(),jde=Km(),XD=Ge(),Z1=ue(),Fde=eg(),Cde=Mu(),QD=Q1(),Lde=J1(),JD=_o(),ZD=rg(),Co=[],e5=r5(Co.sort),Nde=r5(Co.push),xde=Z1(function(){Co.sort(void 0)}),Dde=Z1(function(){Co.sort(null)}),Mde=Cde("sort"),t5=!Z1(function(){if(JD)return JD<70;if(!(QD&&QD>3)){if(Lde)return!0;if(ZD)return ZD<603;var r="",e,t,i,o;for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:i=3;break;case 68:case 71:i=4;break;default:i=2}for(o=0;o<47;o++)Co.push({k:t+o,v:i})}for(Co.sort(function(a,u){return u.v-a.v}),o=0;o<Co.length;o++)t=Co[o].k.charAt(0),r.charAt(r.length-1)!==t&&(r+=t);return r!=="DGBEFHACIJK"}}),Ude=xde||!Dde||!Mde||!t5,Bde=n(function(e){return function(t,i){return i===void 0?-1:t===void 0?1:e!==void 0?+e(t,i)||0:XD(t)>XD(i)?1:-1}},"getSortCompare");Ade({target:"Array",proto:!0,forced:Ude},{sort:n(function(e){e!==void 0&&Ide(e);var t=qde(this);if(t5)return e===void 0?e5(t):e5(t,e);var i=[],o=kde(t),a,u;for(u=0;u<o;u++)u in t&&Nde(i,t[u]);for(Fde(i,Bde(e)),a=i.length,u=0;u<a;)t[u]=i[u++];for(;u<o;)jde(t,u++);return t},"sort")});var Wde=Lo();Wde("Array");var Vde=B(),Kde=Ue(),Yde=di(),Xde=Pr(),Qde=$e(),Jde=Du(),Zde=ju(),ehe=Bi(),eP=Km(),rhe=Gl(),the=rhe("splice"),nhe=Math.max,ihe=Math.min;Vde({target:"Array",proto:!0,forced:!the},{splice:n(function(e,t){var i=Kde(this),o=Qde(i),a=Yde(e,o),u=arguments.length,c,l,d,y,m,b;for(u===0?c=l=0:u===1?(c=0,l=o-a):(c=u-2,l=ihe(nhe(Xde(t),0),o-a)),Jde(o+c-l),d=Zde(i,l),y=0;y<l;y++)m=a+y,m in i&&ehe(d,y,i[m]);if(d.length=l,c<l){for(y=a;y<o-l;y++)m=y+l,b=y+c,m in i?i[b]=i[m]:eP(i,b);for(y=o;y>o-l+c;y--)eP(i,y-1)}else if(c>l)for(y=o-l;y>a;y--)m=y+l-1,b=y+c-1,m in i?i[b]=i[m]:eP(i,b);for(y=0;y<c;y++)i[y+a]=arguments[y+2];return i.length=o-l+c,d},"splice")});var ahe=br();ahe("flat");var ohe=br();ohe("flatMap");var Lhe=B(),Nhe=ye(),xhe=cP(),Dhe=Lo(),fP="ArrayBuffer",q5=xhe[fP],Mhe=Nhe[fP];Lhe({global:!0,constructor:!0,forced:Mhe!==q5},{ArrayBuffer:q5});Dhe(fP);var Ghe=Ne(),zhe=gr(),Hhe=j5(),Whe=Se(),F5=Whe("toPrimitive"),C5=Date.prototype;Ghe(C5,F5)||zhe(C5,F5,Hhe);var Vhe=ke(),L5=Le(),Khe=tr(),Yhe=vt(),Xhe=Se(),Qhe=Pm(),pP=Xhe("hasInstance"),N5=Function.prototype;pP in N5||Khe.f(N5,pP,{value:Qhe(function(r){if(!Vhe(this)||!L5(r))return!1;var e=this.prototype;if(!L5(e))return r instanceof this;for(;r=Yhe(r);)if(e===r)return!0;return!1},pP)});var Jhe=Ae(),Zhe=Au().EXISTS,x5=se(),eve=tr().f,D5=Function.prototype,rve=x5(D5.toString),M5=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,tve=x5(M5.exec),nve="name";Jhe&&!Zhe&&eve(D5,nve,{configurable:!0,get:n(function(){try{return tve(M5,rve(this))[1]}catch(e){return""}},"get")});var ive=B(),ave=ye();ive({global:!0},{globalThis:ave});var x5r=Ce(S1(),1);var ove=ye(),uve=en();uve(ove.JSON,"JSON",!0);var M5r=Ce(fg(),1);var Yve=B(),Xve=SP(),OP=Math.acosh,Qve=Math.log,tM=Math.sqrt,Jve=Math.LN2,Zve=!OP||Math.floor(OP(Number.MAX_VALUE))!=710||OP(1/0)!=1/0;Yve({target:"Math",stat:!0,forced:Zve},{acosh:n(function(e){var t=+e;return t<1?NaN:t>9490626562425156e-8?Qve(t)+Jve:Xve(t-1+tM(t-1)*tM(t+1))},"acosh")});var eye=B(),nM=Math.asinh,rye=Math.log,tye=Math.sqrt;function iM(r){var e=+r;return!isFinite(e)||e==0?e:e<0?-iM(-e):rye(e+tye(e*e+1))}n(iM,"asinh");eye({target:"Math",stat:!0,forced:!(nM&&1/nM(0)>0)},{asinh:iM});var nye=B(),aM=Math.atanh,iye=Math.log;nye({target:"Math",stat:!0,forced:!(aM&&1/aM(-0)<0)},{atanh:n(function(e){var t=+e;return t==0?t:iye((1+t)/(1-t))/2},"atanh")});var aye=B(),oye=pg(),uye=Math.abs,sye=Math.pow;aye({target:"Math",stat:!0},{cbrt:n(function(e){var t=+e;return oye(t)*sye(uye(t),1/3)},"cbrt")});var lye=B(),cye=Math.floor,fye=Math.log,pye=Math.LOG2E;lye({target:"Math",stat:!0},{clz32:n(function(e){var t=e>>>0;return t?31-cye(fye(t+.5)*pye):32},"clz32")});var hye=B(),vye=Qp(),sM=Math.cosh,yye=Math.abs,PP=Math.E;hye({target:"Math",stat:!0,forced:!sM||sM(710)===1/0},{cosh:n(function(e){var t=vye(yye(e)-1)+1;return(t+1/(t*PP*PP))*(PP/2)},"cosh")});var mye=B(),lM=Qp();mye({target:"Math",stat:!0,forced:lM!=Math.expm1},{expm1:lM});var Oye=B(),Pye=TP();Oye({target:"Math",stat:!0},{fround:Pye});var _ye=B(),fM=Math.hypot,Eye=Math.abs,Tye=Math.sqrt,Rye=!!fM&&fM(1/0,NaN)!==1/0;_ye({target:"Math",stat:!0,arity:2,forced:Rye},{hypot:n(function(e,t){for(var i=0,o=0,a=arguments.length,u=0,c,l;o<a;)c=Eye(arguments[o++]),u<c?(l=u/c,i=i*l*l+1,u=c):c>0?(l=c/u,i+=l*l):i+=c;return u===1/0?1/0:u*Tye(i)},"hypot")});var Aye=B(),Iye=ue(),pM=Math.imul,qye=Iye(function(){return pM(4294967295,5)!=-5||pM.length!=2});Aye({target:"Math",stat:!0,forced:qye},{imul:n(function(e,t){var i=65535,o=+e,a=+t,u=i&o,c=i&a;return 0|u*c+((i&o>>>16)*c+u*(i&a>>>16)<<16>>>0)},"imul")});var Fye=B(),Cye=RP();Fye({target:"Math",stat:!0},{log10:Cye});var Lye=B(),Nye=SP();Lye({target:"Math",stat:!0},{log1p:Nye});var xye=B(),Dye=Math.log,Mye=Math.LN2;xye({target:"Math",stat:!0},{log2:n(function(e){return Dye(e)/Mye},"log2")});var Uye=B(),Bye=pg();Uye({target:"Math",stat:!0},{sign:Bye});var $ye=B(),Gye=ue(),hM=Qp(),zye=Math.abs,vM=Math.exp,Hye=Math.E,Wye=Gye(function(){return Math.sinh(-2e-17)!=-2e-17});$ye({target:"Math",stat:!0,forced:Wye},{sinh:n(function(e){var t=+e;return zye(t)<1?(hM(t)-hM(-t))/2:(vM(t-1)-vM(-t-1))*(Hye/2)},"sinh")});var Vye=B(),yM=Qp(),mM=Math.exp;Vye({target:"Math",stat:!0},{tanh:n(function(e){var t=+e,i=yM(t),o=yM(-t);return i==1/0?1:o==1/0?-1:(i-o)/(mM(t)+mM(-t))},"tanh")});var Kye=en();Kye(Math,"Math",!0);var Yye=B(),Xye=VO();Yye({target:"Math",stat:!0},{trunc:Xye});var ime=Ae(),jP=ye(),PM=se(),ame=xl(),ome=gr(),OM=Ne(),ume=Lu(),sme=Nt(),lme=Eo(),_M=mm(),cme=ue(),fme=_a().f,pme=ht().f,dme=tr().f,hme=vg(),vme=Bu().trim,kP="Number",Mo=jP[kP],IP=Mo.prototype,yme=jP.TypeError,mme=PM("".slice),mg=PM("".charCodeAt),gme=n(function(e){var t=_M(e,"number");return typeof t=="bigint"?t:bme(t)},"toNumeric"),bme=n(function(e){var t=_M(e,"number"),i,o,a,u,c,l,d,y;if(lme(t))throw yme("Cannot convert a Symbol value to a number");if(typeof t=="string"&&t.length>2){if(t=vme(t),i=mg(t,0),i===43||i===45){if(o=mg(t,2),o===88||o===120)return NaN}else if(i===48){switch(mg(t,1)){case 66:case 98:a=2,u=49;break;case 79:case 111:a=8,u=55;break;default:return+t}for(c=mme(t,2),l=c.length,d=0;d<l;d++)if(y=mg(c,d),y<48||y>u)return NaN;return parseInt(c,a)}}return+t},"toNumber");if(ame(kP,!Mo(" 0o1")||!Mo("0b1")||Mo("+0x1"))){for($u=n(function(e){var t=arguments.length<1?0:Mo(gme(e)),i=this;return sme(IP,i)&&cme(function(){hme(i)})?ume(Object(t),i,$u):t},"Number"),qP=ime?fme(Mo):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),gg=0;qP.length>gg;gg++)OM(Mo,Zp=qP[gg])&&!OM($u,Zp)&&dme($u,Zp,pme(Mo,Zp));$u.prototype=IP,IP.constructor=$u,ome(jP,kP,$u,{constructor:!0})}var $u,qP,gg,Zp;var wme=B();wme({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)});var Pme=B(),_me=FP();Pme({target:"Number",stat:!0},{isFinite:_me});var Rme=B(),Ame=bg();Rme({target:"Number",stat:!0},{isInteger:Ame});var Ime=B();Ime({target:"Number",stat:!0},{isNaN:n(function(e){return e!=e},"isNaN")});var qme=B(),kme=bg(),jme=Math.abs;qme({target:"Number",stat:!0},{isSafeInteger:n(function(e){return kme(e)&&jme(e)<=9007199254740991},"isSafeInteger")});var Fme=B();Fme({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991});var Cme=B();Cme({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991});var $me=B(),jM=kM();$me({target:"Number",stat:!0,forced:Number.parseFloat!=jM},{parseFloat:jM});var Yme=B(),MM=CP();Yme({target:"Number",stat:!0,forced:Number.parseInt!=MM},{parseInt:MM});var ege=B(),LP=se(),rge=Pr(),tge=vg(),nge=rd(),ige=RP(),Sg=ue(),age=RangeError,BM=String,oge=isFinite,uge=Math.abs,sge=Math.floor,$M=Math.pow,lge=Math.round,Vi=LP(1 .toExponential),cge=LP(nge),GM=LP("".slice),zM=Vi(-69e-12,4)==="-6.9000e-11"&&Vi(1.255,2)==="1.25e+0"&&Vi(12345,3)==="1.235e+4"&&Vi(25,0)==="3e+1",fge=Sg(function(){Vi(1,1/0)})&&Sg(function(){Vi(1,-1/0)}),pge=!Sg(function(){Vi(1/0,1/0)})&&!Sg(function(){Vi(NaN,1/0)}),dge=!zM||!fge||!pge;ege({target:"Number",proto:!0,forced:dge},{toExponential:n(function(e){var t=tge(this);if(e===void 0)return Vi(t);var i=rge(e);if(!oge(t))return String(t);if(i<0||i>20)throw age("Incorrect fraction digits");if(zM)return Vi(t,i);var o="",a="",u=0,c="",l="";if(t<0&&(o="-",t=-t),t===0)u=0,a=cge("0",i+1);else{var d=ige(t);u=sge(d);var y=0,m=$M(10,u-i);y=lge(t/m),2*t>=(2*y+1)*m&&(y+=1),y>=$M(10,i+1)&&(y/=10,u+=1),a=BM(y)}return i!==0&&(a=GM(a,0,1)+"."+GM(a,1)),u===0?(c="+",l="0"):(c=u>0?"+":"-",l=BM(uge(u))),a+="e"+c+l,o+a},"toExponential")});var hge=B(),DP=se(),vge=Pr(),yge=vg(),mge=rd(),HM=ue(),gge=RangeError,KM=String,YM=Math.floor,xP=DP(mge),WM=DP("".slice),td=DP(1 .toFixed),Og=n(function r(e,t,i){return t===0?i:t%2===1?r(e,t-1,i*e):r(e*e,t/2,i)},"pow"),bge=n(function(e){for(var t=0,i=e;i>=4096;)t+=12,i/=4096;for(;i>=2;)t+=1,i/=2;return t},"log"),Yl=n(function(e,t,i){for(var o=-1,a=i;++o<6;)a+=t*e[o],e[o]=a%1e7,a=YM(a/1e7)},"multiply"),NP=n(function(e,t){for(var i=6,o=0;--i>=0;)o+=e[i],e[i]=YM(o/t),o=o%t*1e7},"divide"),VM=n(function(e){for(var t=6,i="";--t>=0;)if(i!==""||t===0||e[t]!==0){var o=KM(e[t]);i=i===""?o:i+xP("0",7-o.length)+o}return i},"dataToString"),wge=HM(function(){return td(8e-5,3)!=="0.000"||td(.9,0)!=="1"||td(1.255,2)!=="1.25"||td(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!HM(function(){td({})});hge({target:"Number",proto:!0,forced:wge},{toFixed:n(function(e){var t=yge(this),i=vge(e),o=[0,0,0,0,0,0],a="",u="0",c,l,d,y;if(i<0||i>20)throw gge("Incorrect fraction digits");if(t!=t)return"NaN";if(t<=-1e21||t>=1e21)return KM(t);if(t<0&&(a="-",t=-t),t>1e-21)if(c=bge(t*Og(2,69,1))-69,l=c<0?t*Og(2,-c,1):t/Og(2,c,1),l*=4503599627370496,c=52-c,c>0){for(Yl(o,0,l),d=i;d>=7;)Yl(o,1e7,0),d-=7;for(Yl(o,Og(10,d,1),0),d=c-1;d>=23;)NP(o,1<<23),d-=23;NP(o,1<<d),Yl(o,1,1),NP(o,2),u=VM(o)}else Yl(o,0,l),Yl(o,1<<-c,0),u=VM(o)+xP("0",i);return i>0?(y=u.length,u=a+(y<=i?"0."+xP("0",i-y)+u:WM(u,0,y-i)+"."+WM(u,y-i))):u=a+u,u},"toFixed")});var Ige=B(),ZM=UP();Ige({target:"Object",stat:!0,arity:2,forced:Object.assign!==ZM},{assign:ZM});var Fge=B(),Cge=Ae(),Lge=nd(),Nge=ve(),xge=Ue(),Dge=tr();Cge&&Fge({target:"Object",proto:!0,forced:Lge},{__defineGetter__:n(function(e,t){Dge.f(xge(this),e,{get:Nge(t),enumerable:!0,configurable:!0})},"__defineGetter__")});var Mge=B(),Uge=Ae(),Bge=nd(),$ge=ve(),Gge=Ue(),zge=tr();Uge&&Mge({target:"Object",proto:!0,forced:Bge},{__defineSetter__:n(function(e,t){zge.f(Gge(this),e,{set:$ge(t),enumerable:!0,configurable:!0})},"__defineSetter__")});var Qge=B(),Jge=BP().entries;Qge({target:"Object",stat:!0},{entries:n(function(e){return Jge(e)},"entries")});var Zge=B(),ebe=Kl(),rbe=ue(),tbe=Le(),nbe=Do().onFreeze,$P=Object.freeze,ibe=rbe(function(){$P(1)});Zge({target:"Object",stat:!0,forced:ibe,sham:!ebe},{freeze:n(function(e){return $P&&tbe(e)?$P(nbe(e)):e},"freeze")});var abe=B(),obe=Pe(),ube=Bi();abe({target:"Object",stat:!0},{fromEntries:n(function(e){var t={};return obe(e,function(i,o){ube(t,i,o)},{AS_ENTRIES:!0}),t},"fromEntries")});var sbe=B(),lbe=ue(),cbe=$r(),a3=ht().f,o3=Ae(),fbe=lbe(function(){a3(1)}),pbe=!o3||fbe;sbe({target:"Object",stat:!0,forced:pbe,sham:!o3},{getOwnPropertyDescriptor:n(function(e,t){return a3(cbe(e),t)},"getOwnPropertyDescriptor")});var dbe=B(),hbe=Ae(),vbe=Em(),ybe=$r(),mbe=ht(),gbe=Bi();dbe({target:"Object",stat:!0,sham:!hbe},{getOwnPropertyDescriptors:n(function(e){for(var t=ybe(e),i=mbe.f,o=vbe(t),a={},u=0,c,l;o.length>u;)l=i(t,c=o[u++]),l!==void 0&&gbe(a,c,l);return a},"getOwnPropertyDescriptors")});var bbe=B(),wbe=ue(),Sbe=jm().f,Obe=wbe(function(){return!Object.getOwnPropertyNames(1)});bbe({target:"Object",stat:!0,forced:Obe},{getOwnPropertyNames:Sbe});var Pbe=B(),_be=ue(),Ebe=Ue(),u3=vt(),Tbe=$m(),Rbe=_be(function(){u3(1)});Pbe({target:"Object",stat:!0,forced:Rbe,sham:!Tbe},{getPrototypeOf:n(function(e){return u3(Ebe(e))},"getPrototypeOf")});var Abe=B(),Ibe=Ne();Abe({target:"Object",stat:!0},{hasOwn:Ibe});var qbe=B(),kbe=GP();qbe({target:"Object",stat:!0},{is:kbe});var jbe=B(),l3=Vp();jbe({target:"Object",stat:!0,forced:Object.isExtensible!==l3},{isExtensible:l3});var Fbe=B(),Cbe=ue(),Lbe=Le(),Nbe=Zt(),c3=lg(),zP=Object.isFrozen,xbe=Cbe(function(){zP(1)});Fbe({target:"Object",stat:!0,forced:xbe||c3},{isFrozen:n(function(e){return!Lbe(e)||c3&&Nbe(e)=="ArrayBuffer"?!0:zP?zP(e):!1},"isFrozen")});var Dbe=B(),Mbe=ue(),Ube=Le(),Bbe=Zt(),f3=lg(),HP=Object.isSealed,$be=Mbe(function(){HP(1)});Dbe({target:"Object",stat:!0,forced:$be||f3},{isSealed:n(function(e){return!Ube(e)||f3&&Bbe(e)=="ArrayBuffer"?!0:HP?HP(e):!1},"isSealed")});var Gbe=B(),zbe=Ue(),p3=qu(),Hbe=ue(),Wbe=Hbe(function(){p3(1)});Gbe({target:"Object",stat:!0,forced:Wbe},{keys:n(function(e){return p3(zbe(e))},"keys")});var Vbe=B(),Kbe=Ae(),Ybe=nd(),Xbe=Ue(),Qbe=Ui(),Jbe=vt(),Zbe=ht().f;Kbe&&Vbe({target:"Object",proto:!0,forced:Ybe},{__lookupGetter__:n(function(e){var t=Xbe(this),i=Qbe(e),o;do if(o=Zbe(t,i))return o.get;while(t=Jbe(t))},"__lookupGetter__")});var ewe=B(),rwe=Ae(),twe=nd(),nwe=Ue(),iwe=Ui(),awe=vt(),owe=ht().f;rwe&&ewe({target:"Object",proto:!0,forced:twe},{__lookupSetter__:n(function(e){var t=nwe(this),i=iwe(e),o;do if(o=owe(t,i))return o.set;while(t=awe(t))},"__lookupSetter__")});var uwe=B(),swe=Le(),lwe=Do().onFreeze,cwe=Kl(),fwe=ue(),WP=Object.preventExtensions,pwe=fwe(function(){WP(1)});uwe({target:"Object",stat:!0,forced:pwe,sham:!cwe},{preventExtensions:n(function(e){return WP&&swe(e)?WP(lwe(e)):e},"preventExtensions")});var dwe=B(),hwe=Le(),vwe=Do().onFreeze,ywe=Kl(),mwe=ue(),VP=Object.seal,gwe=mwe(function(){VP(1)});dwe({target:"Object",stat:!0,forced:gwe,sham:!ywe},{seal:n(function(e){return VP&&hwe(e)?VP(vwe(e)):e},"seal")});var Swe=Rm(),Owe=gr(),Pwe=h3();Swe||Owe(Object.prototype,"toString",Pwe,{unsafe:!0});var _we=B(),Ewe=BP().values;_we({target:"Object",stat:!0},{values:n(function(e){return Ewe(e)},"values")});bU();SU();PU();_U();EU();IU();var gSe=B(),bSe=le(),wSe=ve(),SSe=qa(),OSe=$o(),PSe=Pe();gSe({target:"Promise",stat:!0},{allSettled:n(function(e){var t=this,i=SSe.f(t),o=i.resolve,a=i.reject,u=OSe(function(){var c=wSe(t.resolve),l=[],d=0,y=1;PSe(e,function(m){var b=d++,w=!1;y++,bSe(c,t,m).then(function(S){w||(w=!0,l[b]={status:"fulfilled",value:S},--y||o(l))},function(S){w||(w=!0,l[b]={status:"rejected",reason:S},--y||o(l))})}),--y||o(l)});return u.error&&a(u.value),i.promise},"allSettled")});var _Se=B(),ESe=le(),TSe=ve(),RSe=ge(),ASe=qa(),ISe=$o(),qSe=Pe(),qU="No one promise resolved";_Se({target:"Promise",stat:!0},{any:n(function(e){var t=this,i=RSe("AggregateError"),o=ASe.f(t),a=o.resolve,u=o.reject,c=ISe(function(){var l=TSe(t.resolve),d=[],y=0,m=1,b=!1;qSe(e,function(w){var S=y++,P=!1;m++,ESe(l,t,w).then(function(R){P||b||(b=!0,a(R))},function(R){P||b||(P=!0,d[S]=R,--m||u(new i(d,qU)))})}),--m||u(new i(d,qU))});return c.error&&u(c.value),o.promise},"any")});var kSe=B(),jSe=mr(),Cg=Wu(),FSe=ue(),jU=ge(),FU=ke(),CSe=xt(),kU=P_(),LSe=gr(),E_=Cg&&Cg.prototype,NSe=!!Cg&&FSe(function(){E_.finally.call({then:n(function(){},"then")},function(){})});kSe({target:"Promise",proto:!0,real:!0,forced:NSe},{finally:n(function(e){var t=CSe(this,jU("Promise")),i=FU(e);return this.then(i?function(o){return kU(t,e()).then(function(){return o})}:e,i?function(o){return kU(t,e()).then(function(){throw o})}:e)},"_finally")});!jSe&&FU(Cg)&&(__=jU("Promise").prototype.finally,E_.finally!==__&&LSe(E_,"finally",__,{unsafe:!0}));var __;var xSe=B(),DSe=tn(),MSe=ve(),USe=re(),BSe=ue(),$Se=!BSe(function(){Reflect.apply(function(){})});xSe({target:"Reflect",stat:!0,forced:$Se},{apply:n(function(e,t,i){return DSe(MSe(e),t,USe(i))},"apply")});var XSe=B(),QSe=ge(),R_=tn(),JSe=DU(),MU=Ql(),ZSe=re(),UU=Le(),eOe=Gr(),$U=ue(),A_=QSe("Reflect","construct"),rOe=Object.prototype,tOe=[].push,GU=$U(function(){function r(){}return n(r,"F"),!(A_(function(){},[],r)instanceof r)}),zU=!$U(function(){A_(function(){})}),BU=GU||zU;XSe({target:"Reflect",stat:!0,forced:BU,sham:BU},{construct:n(function(e,t){MU(e),ZSe(t);var i=arguments.length<3?e:MU(arguments[2]);if(zU&&!GU)return A_(e,t,i);if(e==i){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 o=[null];return R_(tOe,o,t),new(R_(JSe,e,o))}var a=i.prototype,u=eOe(UU(a)?a:rOe),c=R_(e,u,t);return UU(c)?c:u},"construct")});var nOe=B(),iOe=Ae(),HU=re(),aOe=Ui(),WU=tr(),oOe=ue(),uOe=oOe(function(){Reflect.defineProperty(WU.f({},1,{value:1}),1,{value:2})});nOe({target:"Reflect",stat:!0,forced:uOe,sham:!iOe},{defineProperty:n(function(e,t,i){HU(e);var o=aOe(t);HU(i);try{return WU.f(e,o,i),!0}catch(a){return!1}},"defineProperty")});var sOe=B(),lOe=re(),cOe=ht().f;sOe({target:"Reflect",stat:!0},{deleteProperty:n(function(e,t){var i=cOe(lOe(e),t);return i&&!i.configurable?!1:delete e[t]},"deleteProperty")});var fOe=B(),pOe=le(),dOe=Le(),hOe=re(),vOe=I_(),yOe=ht(),mOe=vt();function YU(r,e){var t=arguments.length<3?r:arguments[2],i,o;if(hOe(r)===t)return r[e];if(i=yOe.f(r,e),i)return vOe(i)?i.value:i.get===void 0?void 0:pOe(i.get,t);if(dOe(o=mOe(r)))return YU(o,e,t)}n(YU,"get");fOe({target:"Reflect",stat:!0},{get:YU});var gOe=B(),bOe=Ae(),wOe=re(),SOe=ht();gOe({target:"Reflect",stat:!0,sham:!bOe},{getOwnPropertyDescriptor:n(function(e,t){return SOe.f(wOe(e),t)},"getOwnPropertyDescriptor")});var OOe=B(),POe=re(),_Oe=vt(),EOe=$m();OOe({target:"Reflect",stat:!0,sham:!EOe},{getPrototypeOf:n(function(e){return _Oe(POe(e))},"getPrototypeOf")});var TOe=B();TOe({target:"Reflect",stat:!0},{has:n(function(e,t){return t in e},"has")});var ROe=B(),AOe=re(),IOe=Vp();ROe({target:"Reflect",stat:!0},{isExtensible:n(function(e){return AOe(e),IOe(e)},"isExtensible")});var qOe=B(),kOe=Em();qOe({target:"Reflect",stat:!0},{ownKeys:kOe});var jOe=B(),FOe=ge(),COe=re(),LOe=Kl();jOe({target:"Reflect",stat:!0,sham:!LOe},{preventExtensions:n(function(e){COe(e);try{var t=FOe("Object","preventExtensions");return t&&t(e),!0}catch(i){return!1}},"preventExtensions")});var NOe=B(),xOe=le(),DOe=re(),XU=Le(),MOe=I_(),UOe=ue(),q_=tr(),QU=ht(),BOe=vt(),JU=gn();function ZU(r,e,t){var i=arguments.length<4?r:arguments[3],o=QU.f(DOe(r),e),a,u,c;if(!o){if(XU(u=BOe(r)))return ZU(u,e,t,i);o=JU(0)}if(MOe(o)){if(o.writable===!1||!XU(i))return!1;if(a=QU.f(i,e)){if(a.get||a.set||a.writable===!1)return!1;a.value=t,q_.f(i,e,a)}else q_.f(i,e,JU(0,t))}else{if(c=o.set,c===void 0)return!1;xOe(c,i,t)}return!0}n(ZU,"set");var $Oe=UOe(function(){var r=n(function(){},"Constructor"),e=q_.f(new r,"a",{configurable:!0});return Reflect.set(r.prototype,"a",1,e)!==!1});NOe({target:"Reflect",stat:!0,forced:$Oe},{set:ZU});var GOe=B(),zOe=re(),HOe=_1(),e8=$i();e8&&GOe({target:"Reflect",stat:!0},{setPrototypeOf:n(function(e,t){zOe(e),HOe(t);try{return e8(e,t),!0}catch(i){return!1}},"setPrototypeOf")});var WOe=B(),VOe=ye(),KOe=en();WOe({global:!0},{Reflect:{}});KOe(VOe.Reflect,"Reflect",!0);var d1e=Ae(),D_=ye(),cd=se(),h1e=xl(),v1e=Lu(),y1e=Jr(),m1e=_a().f,s8=Nt(),g1e=ic(),l8=Ge(),b1e=ac(),p8=ld(),w1e=E1(),S1e=gr(),O1e=ue(),P1e=Ne(),_1e=ar().enforce,E1e=Lo(),T1e=Se(),d8=Ng(),h8=C_(),R1e=T1e("match"),Ho=D_.RegExp,oc=Ho.prototype,A1e=D_.SyntaxError,I1e=cd(oc.exec),xg=cd("".charAt),c8=cd("".replace),f8=cd("".indexOf),q1e=cd("".slice),k1e=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Ku=/a/g,L_=/a/g,j1e=new Ho(Ku)!==Ku,v8=p8.MISSED_STICKY,F1e=p8.UNSUPPORTED_Y,C1e=d1e&&(!j1e||v8||d8||h8||O1e(function(){return L_[R1e]=!1,Ho(Ku)!=Ku||Ho(L_)==L_||Ho(Ku,"i")!="/a/i"})),L1e=n(function(e){for(var t=e.length,i=0,o="",a=!1,u;i<=t;i++){if(u=xg(e,i),u==="\\"){o+=u+xg(e,++i);continue}!a&&u==="."?o+="[\\s\\S]":(u==="["?a=!0:u==="]"&&(a=!1),o+=u)}return o},"handleDotAll"),N1e=n(function(e){for(var t=e.length,i=0,o="",a=[],u={},c=!1,l=!1,d=0,y="",m;i<=t;i++){if(m=xg(e,i),m==="\\")m=m+xg(e,++i);else if(m==="]")c=!1;else if(!c)switch(!0){case m==="[":c=!0;break;case m==="(":I1e(k1e,q1e(e,i+1))&&(i+=2,l=!0),o+=m,d++;continue;case(m===">"&&l):if(y===""||P1e(u,y))throw new A1e("Invalid capture group name");u[y]=!0,a[a.length]=[y,d],l=!1,y="";continue}l?y+=m:o+=m}return[o,a]},"handleNCG");if(h1e("RegExp",C1e)){for(zo=n(function(e,t){var i=s8(oc,this),o=g1e(e),a=t===void 0,u=[],c=e,l,d,y,m,b,w;if(!i&&o&&a&&e.constructor===zo)return e;if((o||s8(oc,e))&&(e=e.source,a&&(t=b1e(c))),e=e===void 0?"":l8(e),t=t===void 0?"":l8(t),c=e,d8&&"dotAll"in Ku&&(d=!!t&&f8(t,"s")>-1,d&&(t=c8(t,/s/g,""))),l=t,v8&&"sticky"in Ku&&(y=!!t&&f8(t,"y")>-1,y&&F1e&&(t=c8(t,/y/g,""))),h8&&(m=N1e(e),e=m[0],u=m[1]),b=v1e(Ho(e,t),i?this:oc,zo),(d||y||u.length)&&(w=_1e(b),d&&(w.dotAll=!0,w.raw=zo(L1e(e),l)),y&&(w.sticky=!0),u.length&&(w.groups=u)),e!==c)try{y1e(b,"source",c===""?"(?:)":c)}catch(S){}return b},"RegExp"),N_=m1e(Ho),x_=0;N_.length>x_;)w1e(zo,Ho,N_[x_++]);oc.constructor=zo,zo.prototype=oc,S1e(D_,"RegExp",zo,{constructor:!0})}var zo,N_,x_;E1e("RegExp");var D1e=Ae(),M1e=Ng(),U1e=Zt(),B1e=ka(),$1e=ar().get,g8=RegExp.prototype,G1e=TypeError;D1e&&M1e&&B1e(g8,"dotAll",{configurable:!0,get:n(function(){if(this!==g8){if(U1e(this)==="RegExp")return!!$1e(this).dotAll;throw G1e("Incompatible receiver, RegExp required")}},"dotAll")});var i3r=Ce(Ug(),1);var iPe=ye(),aPe=Ae(),oPe=ka(),uPe=Lg(),sPe=ue(),O8=iPe.RegExp,P8=O8.prototype,lPe=aPe&&sPe(function(){var r=!0;try{O8(".","d")}catch(l){r=!1}var e={},t="",i=r?"dgimsy":"gimsy",o=n(function(d,y){Object.defineProperty(e,d,{get:n(function(){return t+=y,!0},"get")})},"addGetter"),a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};r&&(a.hasIndices="d");for(var u in a)o(u,a[u]);var c=Object.getOwnPropertyDescriptor(P8,"flags").get.call(e);return c!==i||t!==i});lPe&&oPe(P8,"flags",{configurable:!0,get:uPe});var cPe=Ae(),fPe=ld().MISSED_STICKY,pPe=Zt(),dPe=ka(),hPe=ar().get,_8=RegExp.prototype,vPe=TypeError;cPe&&fPe&&dPe(_8,"sticky",{configurable:!0,get:n(function(){if(this!==_8){if(pPe(this)==="RegExp")return!!hPe(this).sticky;throw vPe("Incompatible receiver, RegExp required")}},"sticky")});Ug();var yPe=B(),mPe=le(),gPe=se(),bPe=ke(),wPe=Le(),SPe=function(){var r=!1,e=/[ac]/;return e.exec=function(){return r=!0,/./.exec.apply(this,arguments)},e.test("abc")===!0&&r}(),OPe=TypeError,PPe=gPe(/./.test);yPe({target:"RegExp",proto:!0,forced:!SPe},{test:n(function(e){var t=this.exec;if(!bPe(t))return PPe(this,e);var i=mPe(t,this,e);if(i!==null&&!wPe(i))throw new OPe("RegExp exec method returned something other than an Object or null");return!!i},"test")});var _Pe=Au().PROPER,EPe=gr(),TPe=re(),E8=Ge(),RPe=ue(),APe=ac(),G_="toString",IPe=RegExp.prototype,T8=IPe[G_],qPe=RPe(function(){return T8.call({source:"a",flags:"b"})!="/a/b"}),kPe=_Pe&&T8.name!=G_;(qPe||kPe)&&EPe(RegExp.prototype,G_,n(function(){var e=TPe(this),t=E8(e.source),i=E8(APe(e));return"/"+t+"/"+i},"toString"),{unsafe:!0});R8();var CPe=B(),LPe=se(),NPe=Br(),xPe=Pr(),DPe=Ge(),MPe=ue(),UPe=LPe("".charAt),BPe=MPe(function(){return"\uD842\uDFB7".at(-2)!=="\uD842"});CPe({target:"String",proto:!0,forced:BPe},{at:n(function(e){var t=DPe(NPe(this)),i=t.length,o=xPe(e),a=o>=0?o:i+o;return a<0||a>=i?void 0:UPe(t,a)},"at")});var VPe=B(),KPe=Yu().codeAt;VPe({target:"String",proto:!0},{codePointAt:n(function(e){return KPe(this,e)},"codePointAt")});var ZPe=B(),L8=se(),e_e=ht().f,r_e=bn(),F8=Ge(),t_e=Bg(),n_e=Br(),i_e=$g(),a_e=mr(),C8=L8("".endsWith),o_e=L8("".slice),u_e=Math.min,N8=i_e("endsWith"),s_e=!a_e&&!N8&&!!function(){var r=e_e(String.prototype,"endsWith");return r&&!r.writable}();ZPe({target:"String",proto:!0,forced:!s_e&&!N8},{endsWith:n(function(e){var t=F8(n_e(this));t_e(e);var i=arguments.length>1?arguments[1]:void 0,o=t.length,a=i===void 0?o:u_e(r_e(i),o),u=F8(e);return C8?C8(t,u,a):o_e(t,a-u.length,a)===u},"endsWith")});var l_e=B(),c_e=se(),f_e=di(),p_e=RangeError,x8=String.fromCharCode,D8=String.fromCodePoint,d_e=c_e([].join),h_e=!!D8&&D8.length!=1;l_e({target:"String",stat:!0,arity:1,forced:h_e},{fromCodePoint:n(function(e){for(var t=[],i=arguments.length,o=0,a;i>o;){if(a=+arguments[o++],f_e(a,1114111)!==a)throw p_e(a+" is not a valid code point");t[o]=a<65536?x8(a):x8(((a-=65536)>>10)+55296,a%1024+56320)}return d_e(t,"")},"fromCodePoint")});var v_e=B(),y_e=se(),m_e=Bg(),g_e=Br(),M8=Ge(),b_e=$g(),w_e=y_e("".indexOf);v_e({target:"String",proto:!0,forced:!b_e("includes")},{includes:n(function(e){return!!~w_e(M8(g_e(this)),M8(m_e(e)),arguments.length>1?arguments[1]:void 0)},"includes")});var v3r=Ce(H_(),1);var L_e=le(),N_e=pd(),x_e=re(),D_e=bn(),V_=Ge(),M_e=Br(),U_e=Qr(),B_e=dd(),X8=sc();N_e("match",function(r,e,t){return[n(function(o){var a=M_e(this),u=o==null?void 0:U_e(o,r);return u?L_e(u,o,a):new RegExp(o)[r](V_(a))},"match"),function(i){var o=x_e(this),a=V_(i),u=t(e,o,a);if(u.done)return u.value;if(!o.global)return X8(o,a);var c=o.unicode;o.lastIndex=0;for(var l=[],d=0,y;(y=X8(o,a))!==null;){var m=V_(y[0]);l[d]=m,m===""&&(o.lastIndex=B_e(a,D_e(o.lastIndex),c)),d++}return d===0?null:l}]});var $_e=B(),Q8=le(),e4=se(),G_e=Fo(),J8=Br(),r4=bn(),hd=Ge(),z_e=re(),H_e=Zt(),W_e=ic(),t4=ac(),V_e=Qr(),K_e=gr(),Y_e=ue(),X_e=Se(),Q_e=xt(),J_e=dd(),Z_e=sc(),n4=ar(),Y_=mr(),Gg=X_e("matchAll"),i4="RegExp String",a4=i4+" Iterator",eEe=n4.set,rEe=n4.getterFor(a4),Z8=RegExp.prototype,tEe=TypeError,X_=e4("".indexOf),zg=e4("".matchAll),K_=!!zg&&!Y_e(function(){zg("a",/./)}),nEe=G_e(n(function(e,t,i,o){eEe(this,{type:a4,regexp:e,string:t,global:i,unicode:o,done:!1})},"RegExpStringIterator"),i4,n(function(){var e=rEe(this);if(e.done)return{value:void 0,done:!0};var t=e.regexp,i=e.string,o=Z_e(t,i);return o===null?{value:void 0,done:e.done=!0}:e.global?(hd(o[0])===""&&(t.lastIndex=J_e(i,r4(t.lastIndex),e.unicode)),{value:o,done:!1}):(e.done=!0,{value:o,done:!1})},"next")),Q_=n(function(e){var t=z_e(this),i=hd(e),o=Q_e(t,RegExp),a=hd(t4(t)),u,c,l;return u=new o(o===RegExp?t.source:t,a),c=!!~X_(a,"g"),l=!!~X_(a,"u"),u.lastIndex=r4(t.lastIndex),new nEe(u,i,c,l)},"$matchAll");$_e({target:"String",proto:!0,forced:K_},{matchAll:n(function(e){var t=J8(this),i,o,a,u;if(e!=null){if(W_e(e)&&(i=hd(J8(t4(e))),!~X_(i,"g")))throw tEe("`.matchAll` does not allow non-global regexes");if(K_)return zg(t,e);if(a=V_e(e,Gg),a===void 0&&Y_&&H_e(e)=="RegExp"&&(a=Q_),a)return Q8(a,e,t)}else if(K_)return zg(t,e);return o=hd(t),u=new RegExp(e,"g"),Y_?Q8(Q_,u,o):u[Gg](o)},"matchAll")});Y_||Gg in Z8||K_e(Z8,Gg,Q_);var fEe=B(),pEe=J_().end,dEe=Z_();fEe({target:"String",proto:!0,forced:dEe},{padEnd:n(function(e){return pEe(this,e,arguments.length>1?arguments[1]:void 0)},"padEnd")});var hEe=B(),vEe=J_().start,yEe=Z_();hEe({target:"String",proto:!0,forced:yEe},{padStart:n(function(e){return vEe(this,e,arguments.length>1?arguments[1]:void 0)},"padStart")});var mEe=B(),d4=se(),gEe=$r(),bEe=Ue(),f4=Ge(),wEe=$e(),p4=d4([].push),SEe=d4([].join);mEe({target:"String",stat:!0},{raw:n(function(e){for(var t=gEe(bEe(e).raw),i=wEe(t),o=arguments.length,a=[],u=0;i>u;){if(p4(a,f4(t[u++])),u===i)return SEe(a,"");u<o&&p4(a,f4(arguments[u]))}},"raw")});var OEe=B(),PEe=rd();OEe({target:"String",proto:!0},{repeat:PEe});var IEe=tn(),v4=le(),Hg=se(),qEe=pd(),kEe=ue(),jEe=re(),FEe=ke(),CEe=Pr(),LEe=bn(),lc=Ge(),NEe=Br(),xEe=dd(),DEe=Qr(),MEe=nE(),UEe=sc(),BEe=Se(),aE=BEe("replace"),$Ee=Math.max,GEe=Math.min,zEe=Hg([].concat),iE=Hg([].push),y4=Hg("".indexOf),m4=Hg("".slice),HEe=n(function(e){return e===void 0?e:String(e)},"maybeToString"),WEe=function(){return"a".replace(/./,"$0")==="$0"}(),g4=function(){return/./[aE]?/./[aE]("a","$0")==="":!1}(),VEe=!kEe(function(){var r=/./;return r.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(r,"$<a>")!=="7"});qEe("replace",function(r,e,t){var i=g4?"$":"$0";return[n(function(a,u){var c=NEe(this),l=a==null?void 0:DEe(a,aE);return l?v4(l,a,c,u):v4(e,lc(c),a,u)},"replace"),function(o,a){var u=jEe(this),c=lc(o);if(typeof a=="string"&&y4(a,i)===-1&&y4(a,"$<")===-1){var l=t(e,u,c,a);if(l.done)return l.value}var d=FEe(a);d||(a=lc(a));var y=u.global;if(y){var m=u.unicode;u.lastIndex=0}for(var b=[];;){var w=UEe(u,c);if(w===null||(iE(b,w),!y))break;var S=lc(w[0]);S===""&&(u.lastIndex=xEe(c,LEe(u.lastIndex),m))}for(var P="",R=0,I=0;I<b.length;I++){w=b[I];for(var T=lc(w[0]),F=$Ee(GEe(CEe(w.index),c.length),0),k=[],U=1;U<w.length;U++)iE(k,HEe(w[U]));var D=w.groups;if(d){var H=zEe([T],k,F,c);D!==void 0&&iE(H,D);var $=lc(IEe(a,void 0,H))}else $=MEe(T,c,F,k,D,a);F>=R&&(P+=m4(c,R,F)+$,R=F+T.length)}return P+m4(c,R)}]},!VEe||!WEe||g4);var KEe=B(),YEe=le(),oE=se(),b4=Br(),XEe=ke(),QEe=ic(),cc=Ge(),JEe=Qr(),ZEe=ac(),eTe=nE(),rTe=Se(),tTe=mr(),nTe=rTe("replace"),iTe=TypeError,O4=oE("".indexOf),aTe=oE("".replace),w4=oE("".slice),oTe=Math.max,S4=n(function(e,t,i){return i>e.length?-1:t===""?i:O4(e,t,i)},"stringIndexOf");KEe({target:"String",proto:!0},{replaceAll:n(function(e,t){var i=b4(this),o,a,u,c,l,d,y,m,b,w=0,S=0,P="";if(e!=null){if(o=QEe(e),o&&(a=cc(b4(ZEe(e))),!~O4(a,"g")))throw iTe("`.replaceAll` does not allow non-global regexes");if(u=JEe(e,nTe),u)return YEe(u,e,i,t);if(tTe&&o)return aTe(cc(i),e,t)}for(c=cc(i),l=cc(e),d=XEe(t),d||(t=cc(t)),y=l.length,m=oTe(1,y),w=S4(c,l,0);w!==-1;)b=d?cc(t(l,w,c)):eTe(l,c,w,[],void 0,t),P+=w4(c,S,w)+b,S=w+y,w=S4(c,l,w+m);return S<c.length&&(P+=w4(c,S)),P},"replaceAll")});var uTe=le(),sTe=pd(),lTe=re(),cTe=Br(),P4=GP(),_4=Ge(),fTe=Qr(),pTe=sc();sTe("search",function(r,e,t){return[n(function(o){var a=cTe(this),u=o==null?void 0:fTe(o,r);return u?uTe(u,o,a):new RegExp(o)[r](_4(a))},"search"),function(i){var o=lTe(this),a=_4(i),u=t(e,o,a);if(u.done)return u.value;var c=o.lastIndex;P4(c,0)||(o.lastIndex=0);var l=pTe(o,a);return P4(o.lastIndex,c)||(o.lastIndex=c),l===null?-1:l.index}]});var dTe=tn(),vd=le(),sE=se(),hTe=pd(),vTe=ic(),yTe=re(),E4=Br(),mTe=xt(),gTe=dd(),bTe=bn(),uE=Ge(),wTe=Qr(),T4=Dl(),R4=sc(),STe=fd(),OTe=ld(),PTe=ue(),fc=OTe.UNSUPPORTED_Y,A4=4294967295,_Te=Math.min,I4=[].push,ETe=sE(/./.exec),pc=sE(I4),yd=sE("".slice),TTe=!PTe(function(){var r=/(?:)/,e=r.exec;r.exec=function(){return e.apply(this,arguments)};var t="ab".split(r);return t.length!==2||t[0]!=="a"||t[1]!=="b"});hTe("split",function(r,e,t){var i;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?i=n(function(a,u){var c=uE(E4(this)),l=u===void 0?A4:u>>>0;if(l===0)return[];if(a===void 0)return[c];if(!vTe(a))return vd(e,c,a,l);for(var d=[],y=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(a.sticky?"y":""),m=0,b=new RegExp(a.source,y+"g"),w,S,P;(w=vd(STe,b,c))&&(S=b.lastIndex,!(S>m&&(pc(d,yd(c,m,w.index)),w.length>1&&w.index<c.length&&dTe(I4,d,T4(w,1)),P=w[0].length,m=S,d.length>=l)));)b.lastIndex===w.index&&b.lastIndex++;return m===c.length?(P||!ETe(b,""))&&pc(d,""):pc(d,yd(c,m)),d.length>l?T4(d,0,l):d},"internalSplit"):"0".split(void 0,0).length?i=n(function(a,u){return a===void 0&&u===0?[]:vd(e,this,a,u)},"internalSplit"):i=e,[n(function(a,u){var c=E4(this),l=a==null?void 0:wTe(a,r);return l?vd(l,a,c,u):vd(i,uE(c),a,u)},"split"),function(o,a){var u=yTe(this),c=uE(o),l=t(i,u,c,a,i!==e);if(l.done)return l.value;var d=mTe(u,RegExp),y=u.unicode,m=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(fc?"g":"y"),b=new d(fc?"^(?:"+u.source+")":u,m),w=a===void 0?A4:a>>>0;if(w===0)return[];if(c.length===0)return R4(b,c)===null?[c]:[];for(var S=0,P=0,R=[];P<c.length;){b.lastIndex=fc?0:P;var I=R4(b,fc?yd(c,P):c),T;if(I===null||(T=_Te(bTe(b.lastIndex+(fc?P:0)),c.length))===S)P=gTe(c,P,y);else{if(pc(R,yd(c,S,P)),R.length===w)return R;for(var F=1;F<=I.length-1;F++)if(pc(R,I[F]),R.length===w)return R;P=S=T}}return pc(R,yd(c,S)),R}]},!TTe,fc);var RTe=B(),j4=se(),ATe=ht().f,ITe=bn(),q4=Ge(),qTe=Bg(),kTe=Br(),jTe=$g(),FTe=mr(),k4=j4("".startsWith),CTe=j4("".slice),LTe=Math.min,F4=jTe("startsWith"),NTe=!FTe&&!F4&&!!function(){var r=ATe(String.prototype,"startsWith");return r&&!r.writable}();RTe({target:"String",proto:!0,forced:!NTe&&!F4},{startsWith:n(function(e){var t=q4(kTe(this));qTe(e);var i=ITe(LTe(arguments.length>1?arguments[1]:void 0,t.length)),o=q4(e);return k4?k4(t,o,i):CTe(t,i,i+o.length)===o},"startsWith")});var MTe=B(),UTe=Bu().trim,BTe=Wg();MTe({target:"String",proto:!0,forced:BTe("trim")},{trim:n(function(){return UTe(this)},"trim")});M4();var HTe=B(),U4=lE();HTe({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==U4},{trimEnd:U4});G4();var YTe=B(),z4=cE();YTe({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==z4},{trimStart:z4});var rRe=B(),tRe=an(),nRe=on();rRe({target:"String",proto:!0,forced:nRe("anchor")},{anchor:n(function(e){return tRe(this,"a","name",e)},"anchor")});var iRe=B(),aRe=an(),oRe=on();iRe({target:"String",proto:!0,forced:oRe("big")},{big:n(function(){return aRe(this,"big","","")},"big")});var uRe=B(),sRe=an(),lRe=on();uRe({target:"String",proto:!0,forced:lRe("blink")},{blink:n(function(){return sRe(this,"blink","","")},"blink")});var cRe=B(),fRe=an(),pRe=on();cRe({target:"String",proto:!0,forced:pRe("bold")},{bold:n(function(){return fRe(this,"b","","")},"bold")});var dRe=B(),hRe=an(),vRe=on();dRe({target:"String",proto:!0,forced:vRe("fixed")},{fixed:n(function(){return hRe(this,"tt","","")},"fixed")});var yRe=B(),mRe=an(),gRe=on();yRe({target:"String",proto:!0,forced:gRe("fontcolor")},{fontcolor:n(function(e){return mRe(this,"font","color",e)},"fontcolor")});var bRe=B(),wRe=an(),SRe=on();bRe({target:"String",proto:!0,forced:SRe("fontsize")},{fontsize:n(function(e){return wRe(this,"font","size",e)},"fontsize")});var ORe=B(),PRe=an(),_Re=on();ORe({target:"String",proto:!0,forced:_Re("italics")},{italics:n(function(){return PRe(this,"i","","")},"italics")});var ERe=B(),TRe=an(),RRe=on();ERe({target:"String",proto:!0,forced:RRe("link")},{link:n(function(e){return TRe(this,"a","href",e)},"link")});var ARe=B(),IRe=an(),qRe=on();ARe({target:"String",proto:!0,forced:qRe("small")},{small:n(function(){return IRe(this,"small","","")},"small")});var kRe=B(),jRe=an(),FRe=on();kRe({target:"String",proto:!0,forced:FRe("strike")},{strike:n(function(){return jRe(this,"strike","","")},"strike")});var CRe=B(),LRe=an(),NRe=on();CRe({target:"String",proto:!0,forced:NRe("sub")},{sub:n(function(){return LRe(this,"sub","","")},"sub")});var xRe=B(),DRe=an(),MRe=on();xRe({target:"String",proto:!0,forced:MRe("sup")},{sup:n(function(){return DRe(this,"sup","","")},"sup")});var xAe=Yi();xAe("Float32",function(r){return n(function(t,i,o){return r(this,t,i,o)},"Float32Array")});var DAe=Yi();DAe("Float64",function(r){return n(function(t,i,o){return r(this,t,i,o)},"Float64Array")});var MAe=Yi();MAe("Int8",function(r){return n(function(t,i,o){return r(this,t,i,o)},"Int8Array")});var UAe=Yi();UAe("Int16",function(r){return n(function(t,i,o){return r(this,t,i,o)},"Int16Array")});var BAe=Yi();BAe("Int32",function(r){return n(function(t,i,o){return r(this,t,i,o)},"Int32Array")});var $Ae=Yi();$Ae("Uint8",function(r){return n(function(t,i,o){return r(this,t,i,o)},"Uint8Array")});var GAe=Yi();GAe("Uint8",function(r){return n(function(t,i,o){return r(this,t,i,o)},"Uint8ClampedArray")},!0);var zAe=Yi();zAe("Uint16",function(r){return n(function(t,i,o){return r(this,t,i,o)},"Uint16Array")});var HAe=Yi();HAe("Uint32",function(r){return n(function(t,i,o){return r(this,t,i,o)},"Uint32Array")});var TB=Ie(),WAe=$e(),VAe=Pr(),KAe=TB.aTypedArray,YAe=TB.exportTypedArrayMethod;YAe("at",n(function(e){var t=KAe(this),i=WAe(t),o=VAe(e),a=o>=0?o:i+o;return a<0||a>=i?void 0:t[a]},"at"));var XAe=se(),RB=Ie(),QAe=M1(),JAe=XAe(QAe),ZAe=RB.aTypedArray,eIe=RB.exportTypedArrayMethod;eIe("copyWithin",n(function(e,t){return JAe(ZAe(this),e,t,arguments.length>2?arguments[2]:void 0)},"copyWithin"));var AB=Ie(),rIe=zr().every,tIe=AB.aTypedArray,nIe=AB.exportTypedArrayMethod;nIe("every",n(function(e){return rIe(tIe(this),e,arguments.length>1?arguments[1]:void 0)},"every"));var qB=Ie(),oIe=Ym(),uIe=qE(),sIe=hi(),lIe=le(),cIe=se(),fIe=ue(),pIe=qB.aTypedArray,dIe=qB.exportTypedArrayMethod,hIe=cIe("".slice),vIe=fIe(function(){var r=0;return new Int8Array(2).fill({valueOf:n(function(){return r++},"valueOf")}),r!==1});dIe("fill",n(function(e){var t=arguments.length;pIe(this);var i=hIe(sIe(this),0,3)==="Big"?uIe(e):+e;return lIe(oIe,this,i,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)},"fill"),vIe);var LB=Ie(),OIe=zr().filter,PIe=wd(),_Ie=LB.aTypedArray,EIe=LB.exportTypedArrayMethod;EIe("filter",n(function(e){var t=OIe(_Ie(this),e,arguments.length>1?arguments[1]:void 0);return PIe(this,t)},"filter"));var NB=Ie(),TIe=zr().find,RIe=NB.aTypedArray,AIe=NB.exportTypedArrayMethod;AIe("find",n(function(e){return TIe(RIe(this),e,arguments.length>1?arguments[1]:void 0)},"find"));var xB=Ie(),IIe=zr().findIndex,qIe=xB.aTypedArray,kIe=xB.exportTypedArrayMethod;kIe("findIndex",n(function(e){return IIe(qIe(this),e,arguments.length>1?arguments[1]:void 0)},"findIndex"));var DB=Ie(),jIe=Bp().findLast,FIe=DB.aTypedArray,CIe=DB.exportTypedArrayMethod;CIe("findLast",n(function(e){return jIe(FIe(this),e,arguments.length>1?arguments[1]:void 0)},"findLast"));var MB=Ie(),LIe=Bp().findLastIndex,NIe=MB.aTypedArray,xIe=MB.exportTypedArrayMethod;xIe("findLastIndex",n(function(e){return LIe(NIe(this),e,arguments.length>1?arguments[1]:void 0)},"findLastIndex"));var UB=Ie(),DIe=zr().forEach,MIe=UB.aTypedArray,UIe=UB.exportTypedArrayMethod;UIe("forEach",n(function(e){DIe(MIe(this),e,arguments.length>1?arguments[1]:void 0)},"forEach"));var BIe=Qg(),$Ie=Ie().exportTypedArrayStaticMethod,GIe=wE();$Ie("from",GIe,BIe);var BB=Ie(),zIe=Ap().includes,HIe=BB.aTypedArray,WIe=BB.exportTypedArrayMethod;WIe("includes",n(function(e){return zIe(HIe(this),e,arguments.length>1?arguments[1]:void 0)},"includes"));var $B=Ie(),VIe=Ap().indexOf,KIe=$B.aTypedArray,YIe=$B.exportTypedArrayMethod;YIe("indexOf",n(function(e){return VIe(KIe(this),e,arguments.length>1?arguments[1]:void 0)},"indexOf"));var XIe=ye(),QIe=ue(),kE=se(),zB=Ie(),jE=Hp(),JIe=Se(),FE=JIe("iterator"),GB=XIe.Uint8Array,ZIe=kE(jE.values),eqe=kE(jE.keys),rqe=kE(jE.entries),CE=zB.aTypedArray,tb=zB.exportTypedArrayMethod,bc=GB&&GB.prototype,nb=!QIe(function(){bc[FE].call([1])}),HB=!!bc&&bc.values&&bc[FE]===bc.values&&bc.values.name==="values",WB=n(function(){return ZIe(CE(this))},"values");tb("entries",n(function(){return rqe(CE(this))},"entries"),nb);tb("keys",n(function(){return eqe(CE(this))},"keys"),nb);tb("values",WB,nb||!HB,{name:"values"});tb(FE,WB,nb||!HB,{name:"values"});var VB=Ie(),tqe=se(),nqe=VB.aTypedArray,iqe=VB.exportTypedArrayMethod,aqe=tqe([].join);iqe("join",n(function(e){return aqe(nqe(this),e)},"join"));var QB=Ie(),hqe=tn(),vqe=XB(),yqe=QB.aTypedArray,mqe=QB.exportTypedArrayMethod;mqe("lastIndexOf",n(function(e){var t=arguments.length;return hqe(vqe,yqe(this),t>1?[e,arguments[1]]:[e])},"lastIndexOf"));var JB=Ie(),gqe=zr().map,bqe=gc(),wqe=JB.aTypedArray,Sqe=JB.exportTypedArrayMethod;Sqe("map",n(function(e){return gqe(wqe(this),e,arguments.length>1?arguments[1]:void 0,function(t,i){return new(bqe(t))(i)})},"map"));var ZB=Ie(),Oqe=Qg(),Pqe=ZB.aTypedArrayConstructor,_qe=ZB.exportTypedArrayStaticMethod;_qe("of",n(function(){for(var e=0,t=arguments.length,i=new(Pqe(this))(t);t>e;)i[e]=arguments[e++];return i},"of"),Oqe);var t6=Ie(),qqe=NE().left,kqe=t6.aTypedArray,jqe=t6.exportTypedArrayMethod;jqe("reduce",n(function(e){var t=arguments.length;return qqe(kqe(this),e,t,t>1?arguments[1]:void 0)},"reduce"));var n6=Ie(),Fqe=NE().right,Cqe=n6.aTypedArray,Lqe=n6.exportTypedArrayMethod;Lqe("reduceRight",n(function(e){var t=arguments.length;return Fqe(Cqe(this),e,t,t>1?arguments[1]:void 0)},"reduceRight"));var i6=Ie(),Nqe=i6.aTypedArray,xqe=i6.exportTypedArrayMethod,Dqe=Math.floor;xqe("reverse",n(function(){for(var e=this,t=Nqe(e).length,i=Dqe(t/2),o=0,a;o<i;)a=e[o],e[o++]=e[--t],e[t]=a;return e},"reverse"));var o6=ye(),u6=le(),ME=Ie(),Mqe=$e(),Uqe=bE(),Bqe=Ue(),s6=ue(),$qe=o6.RangeError,xE=o6.Int8Array,a6=xE&&xE.prototype,l6=a6&&a6.set,Gqe=ME.aTypedArray,zqe=ME.exportTypedArrayMethod,DE=!s6(function(){var r=new Uint8ClampedArray(2);return u6(l6,r,{length:1,0:3},1),r[1]!==3}),Hqe=DE&&ME.NATIVE_ARRAY_BUFFER_VIEWS&&s6(function(){var r=new xE(2);return r.set(1),r.set("2",1),r[0]!==0||r[1]!==2});zqe("set",n(function(e){Gqe(this);var t=Uqe(arguments.length>1?arguments[1]:void 0,1),i=Bqe(e);if(DE)return u6(l6,this,i,t);var o=this.length,a=Mqe(i),u=0;if(a+t>o)throw $qe("Wrong length");for(;u<a;)this[t+u]=i[u++]},"set"),!DE||Hqe);var c6=Ie(),Wqe=gc(),Vqe=ue(),Kqe=ko(),Yqe=c6.aTypedArray,Xqe=c6.exportTypedArrayMethod,Qqe=Vqe(function(){new Int8Array(1).slice()});Xqe("slice",n(function(e,t){for(var i=Kqe(Yqe(this),e,t),o=Wqe(this),a=0,u=i.length,c=new o(u);u>a;)c[a]=i[a++];return c},"slice"),Qqe);var f6=Ie(),Jqe=zr().some,Zqe=f6.aTypedArray,eke=f6.exportTypedArrayMethod;eke("some",n(function(e){return Jqe(Zqe(this),e,arguments.length>1?arguments[1]:void 0)},"some"));var rke=ye(),tke=se(),UE=ue(),nke=ve(),ike=eg(),y6=Ie(),p6=Q1(),ake=J1(),d6=_o(),h6=rg(),oke=y6.aTypedArray,uke=y6.exportTypedArrayMethod,Sd=rke.Uint16Array,wc=Sd&&tke(Sd.prototype.sort),ske=!!wc&&!(UE(function(){wc(new Sd(2),null)})&&UE(function(){wc(new Sd(2),{})})),v6=!!wc&&!UE(function(){if(d6)return d6<74;if(p6)return p6<67;if(ake)return!0;if(h6)return h6<602;var r=new Sd(516),e=Array(516),t,i;for(t=0;t<516;t++)i=t%4,r[t]=515-t,e[t]=t-2*i+3;for(wc(r,function(o,a){return(o/4|0)-(a/4|0)}),t=0;t<516;t++)if(r[t]!==e[t])return!0}),lke=n(function(e){return function(t,i){return e!==void 0?+e(t,i)||0:i!==i?-1:t!==t?1:t===0&&i===0?1/t>0&&1/i<0?1:-1:t>i}},"getSortCompare");uke("sort",n(function(e){return e!==void 0&&nke(e),v6?wc(this,e):ike(oke(this),lke(e))},"sort"),!v6||ske);var g6=Ie(),cke=bn(),m6=di(),fke=gc(),pke=g6.aTypedArray,dke=g6.exportTypedArrayMethod;dke("subarray",n(function(e,t){var i=pke(this),o=i.length,a=m6(e,o),u=fke(i);return new u(i.buffer,i.byteOffset+a*i.BYTES_PER_ELEMENT,cke((t===void 0?o:m6(t,o))-a))},"subarray"));var hke=ye(),vke=tn(),S6=Ie(),BE=ue(),b6=ko(),ib=hke.Int8Array,w6=S6.aTypedArray,yke=S6.exportTypedArrayMethod,O6=[].toLocaleString,mke=!!ib&&BE(function(){O6.call(new ib(1))}),gke=BE(function(){return[1,2].toLocaleString()!=new ib([1,2]).toLocaleString()})||!BE(function(){ib.prototype.toLocaleString.call([1,2])});yke("toLocaleString",n(function(){return vke(O6,mke?b6(w6(this)):w6(this),b6(arguments))},"toLocaleString"),gke);var bke=Ie().exportTypedArrayMethod,wke=ue(),Ske=ye(),Oke=se(),P6=Ske.Uint8Array,Pke=P6&&P6.prototype||{},ab=[].toString,_ke=Oke([].join);wke(function(){ab.call({})})&&(ab=n(function(){return _ke(this)},"toString"));var Eke=Pke.toString!=ab;bke("toString",ab,Eke);var TUr=Ce(pb(),1);C6();var j2e=B(),F2e=ZE();j2e({target:"Array",stat:!0,forced:!0},{fromAsync:F2e});var C2e=B(),L2e=zr().filterReject,N2e=br();C2e({target:"Array",proto:!0,forced:!0},{filterOut:n(function(e){return L2e(this,e,arguments.length>1?arguments[1]:void 0)},"filterOut")});N2e("filterOut");var x2e=B(),D2e=zr().filterReject,M2e=br();x2e({target:"Array",proto:!0,forced:!0},{filterReject:n(function(e){return D2e(this,e,arguments.length>1?arguments[1]:void 0)},"filterReject")});M2e("filterReject");var X2e=B(),Q2e=vb(),J2e=br();X2e({target:"Array",proto:!0},{group:n(function(e){var t=arguments.length>1?arguments[1]:void 0;return Q2e(this,e,t)},"group")});J2e("group");var Z2e=B(),eje=vb(),rje=Mu(),tje=br();Z2e({target:"Array",proto:!0,forced:!rje("groupBy")},{groupBy:n(function(e){var t=arguments.length>1?arguments[1]:void 0;return eje(this,e,t)},"groupBy")});tje("groupBy");var pje=B(),dje=Mu(),hje=br(),vje=rT();pje({target:"Array",proto:!0,name:"groupToMap",forced:!dje("groupByToMap")},{groupByToMap:vje});hje("groupByToMap");var yje=B(),mje=br(),gje=rT();yje({target:"Array",proto:!0},{groupToMap:gje});mje("groupToMap");var bje=B(),wje=ku(),o7=Object.isFrozen,u7=n(function(e,t){if(!o7||!wje(e)||!o7(e))return!1;for(var i=0,o=e.length,a;i<o;)if(a=e[i++],!(typeof a=="string"||t&&typeof a=="undefined"))return!1;return o!==0},"isFrozenStringArray");bje({target:"Array",stat:!0,sham:!0,forced:!0},{isTemplateObject:n(function(e){if(!u7(e,!0))return!1;var t=e.raw;return t.length===e.length&&u7(t,!1)},"isTemplateObject")});var Sje=Ae(),Oje=br(),Pje=Ue(),_je=$e(),Eje=ka();Sje&&(Eje(Array.prototype,"lastIndex",{configurable:!0,get:n(function(){var e=Pje(this),t=_je(e);return t==0?0:t-1},"lastIndex")}),Oje("lastIndex"));var Tje=Ae(),Rje=br(),s7=Ue(),l7=$e(),Aje=ka();Tje&&(Aje(Array.prototype,"lastItem",{configurable:!0,get:n(function(){var e=s7(this),t=l7(e);return t==0?void 0:e[t-1]},"lastItem"),set:n(function(e){var t=s7(this),i=l7(t);return t[i==0?0:i-1]=e},"lastItem")}),Rje("lastItem"));var qje=B(),kje=tT(),jje=$r(),Fje=br(),Cje=Array;qje({target:"Array",proto:!0},{toReversed:n(function(){return kje(jje(this),Cje)},"toReversed")});Fje("toReversed");var Lje=B(),Nje=se(),xje=ve(),Dje=$r(),Mje=mc(),Uje=QE(),Bje=br(),$je=Array,Gje=Nje(Uje("Array").sort);Lje({target:"Array",proto:!0},{toSorted:n(function(e){e!==void 0&&xje(e);var t=Dje(this),i=Mje($je,t);return Gje(i,e)},"toSorted")});Bje("toSorted");var zje=B(),Hje=br(),Wje=Du(),Vje=$e(),Kje=di(),Yje=$r(),Xje=Pr(),Qje=Array,Jje=Math.max,Zje=Math.min;zje({target:"Array",proto:!0},{toSpliced:n(function(e,t){var i=Yje(this),o=Vje(i),a=Kje(e,o),u=arguments.length,c=0,l,d,y,m;for(u===0?l=d=0:u===1?(l=0,d=o-a):(l=u-2,d=Zje(Jje(Xje(t),0),o-a)),y=Wje(o+l-d),m=Qje(y);c<a;c++)m[c]=i[c];for(;c<a+l;c++)m[c]=arguments[c-a+2];for(;c<y;c++)m[c]=i[c+d-l];return m},"toSpliced")});Hje("toSpliced");var lFe=B(),cFe=br(),fFe=gb();lFe({target:"Array",proto:!0,forced:!0},{uniqueBy:fFe});cFe("uniqueBy");var vFe=B(),yFe=iT(),mFe=$r(),gFe=Array;vFe({target:"Array",proto:!0},{with:n(function(e,t){return yFe(mFe(this),gFe,e,t)},"_with")});var bFe=B(),wFe=nn(),v7=Jr(),y7=Ne(),SFe=Se(),Ju=_d(),m7=mr(),h7=SFe("toStringTag"),aT=n(function(){wFe(this,Ju)},"AsyncIterator");aT.prototype=Ju;y7(Ju,h7)||v7(Ju,h7,"AsyncIterator");(m7||!y7(Ju,"constructor")||Ju.constructor===Object)&&v7(Ju,"constructor",aT);bFe({global:!0,constructor:!0,forced:m7},{AsyncIterator:aT});var DFe=B(),MFe=oT();DFe({target:"AsyncIterator",name:"indexed",proto:!0,real:!0,forced:!0},{asIndexedPairs:MFe});var BFe=B(),$Fe=le(),I7=re(),GFe=wr(),zFe=Rd(),HFe=vc(),WFe=Ko(),VFe=WFe(function(r){var e=this;return new r(function(t,i){var o=n(function(c){e.done=!0,i(c)},"doneAndReject"),a=n(function u(){try{r.resolve(I7($Fe(e.next,e.iterator))).then(function(c){try{I7(c).done?(e.done=!0,t({done:!0,value:void 0})):e.remaining?(e.remaining--,u()):t({done:!1,value:c.value})}catch(l){o(l)}},o)}catch(c){o(c)}},"loop");a()})});BFe({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{drop:n(function(e){return new VFe(GFe(this),{remaining:HFe(zFe(+e))})},"drop")});var KFe=B(),YFe=Qu().every;KFe({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{every:n(function(e){return YFe(this,e)},"every")});var XFe=B(),QFe=le(),JFe=ve(),q7=re(),ZFe=wr(),eCe=Ko(),rCe=Oc(),tCe=eCe(function(r){var e=this,t=e.iterator,i=e.filterer;return new r(function(o,a){var u=n(function(y){e.done=!0,a(y)},"doneAndReject"),c=n(function(y){rCe(t,u,y,u)},"ifAbruptCloseAsyncIterator"),l=n(function d(){try{r.resolve(q7(QFe(e.next,t))).then(function(y){try{if(q7(y).done)e.done=!0,o({done:!0,value:void 0});else{var m=y.value;try{r.resolve(i(m)).then(function(b){b?o({done:!1,value:m}):d()},c)}catch(b){c(b)}}}catch(b){u(b)}},u)}catch(y){u(y)}},"loop");l()})});XFe({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{filter:n(function(e){return new tCe(ZFe(this),{filterer:JFe(e)})},"filter")});var nCe=B(),iCe=Qu().find;nCe({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{find:n(function(e){return iCe(this,e)},"find")});var aCe=B(),k7=le(),j7=ve(),bb=re(),oCe=wr(),uCe=Ko(),sCe=hb(),lCe=Oc(),cCe=uCe(function(r){var e=this,t=e.iterator,i=e.mapper,o;return new r(function(a,u){var c=n(function(b){e.done=!0,u(b)},"doneAndReject"),l=n(function(b){lCe(t,c,b,c)},"ifAbruptCloseAsyncIterator"),d=n(function(){try{r.resolve(bb(k7(e.next,t))).then(function(b){try{if(bb(b).done)e.done=!0,a({done:!0,value:void 0});else{var w=b.value;try{r.resolve(i(w)).then(function(S){try{e.innerIterator=o=sCe(S),e.innerNext=j7(o.next),y()}catch(P){l(P)}},l)}catch(S){l(S)}}}catch(S){c(S)}},c)}catch(b){c(b)}},"outerLoop"),y=n(function(){if(o=e.innerIterator)try{r.resolve(bb(k7(e.innerNext,o))).then(function(b){try{bb(b).done?(e.innerIterator=e.innerNext=null,d()):a({done:!1,value:b.value})}catch(w){l(w)}},l)}catch(b){l(b)}else d()},"innerLoop");y()})});aCe({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{flatMap:n(function(e){return new cCe(oCe(this),{mapper:j7(e),innerIterator:null,innerNext:null})},"flatMap")});var fCe=B(),pCe=Qu().forEach;fCe({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{forEach:n(function(e){return pCe(this,e)},"forEach")});var vCe=B(),yCe=Ue(),mCe=Nt(),gCe=_d(),bCe=hb(),wCe=Kn(),SCe=wr(),OCe=zi(),PCe=Qr(),_Ce=Se(),ECe=Ed(),TCe=uT(),RCe=_Ce("asyncIterator");vCe({target:"AsyncIterator",stat:!0,forced:!0},{from:n(function(e){var t=yCe(e),i=PCe(t,RCe),o;return i&&(o=bCe(t,i),mCe(gCe,o))?o:(o===void 0&&(i=OCe(t),i&&(o=new ECe(wCe(t,i)))),new TCe(SCe(o!==void 0?o:t)))},"from")});var ACe=B(),ICe=oT();ACe({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{indexed:ICe});var qCe=B(),kCe=le(),jCe=ve(),C7=re(),FCe=wr(),CCe=Ko(),LCe=Oc(),NCe=CCe(function(r){var e=this,t=e.iterator,i=e.mapper;return new r(function(o,a){var u=n(function(d){e.done=!0,a(d)},"doneAndReject"),c=n(function(d){LCe(t,u,d,u)},"ifAbruptCloseAsyncIterator");r.resolve(C7(kCe(e.next,t))).then(function(l){try{if(C7(l).done)e.done=!0,o({done:!0,value:void 0});else{var d=l.value;try{r.resolve(i(d)).then(function(y){o({done:!1,value:y})},c)}catch(y){c(y)}}}catch(y){u(y)}},u)})});qCe({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{map:n(function(e){return new NCe(FCe(this),{mapper:jCe(e)})},"map")});var xCe=B(),DCe=le(),MCe=ve(),L7=re(),UCe=ge(),BCe=wr(),$Ce=Oc(),sT=UCe("Promise"),GCe=TypeError;xCe({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{reduce:n(function(e){var t=BCe(this),i=t.iterator,o=t.next,a=arguments.length<2,u=a?void 0:arguments[1];return MCe(e),new sT(function(c,l){var d=n(function(b){$Ce(i,l,b,l)},"ifAbruptCloseAsyncIterator"),y=n(function m(){try{sT.resolve(L7(DCe(o,i))).then(function(b){try{if(L7(b).done)a?l(GCe("Reduce of empty iterator with no initial value")):c(u);else{var w=b.value;if(a)a=!1,u=w,m();else try{sT.resolve(e(u,w)).then(function(S){u=S,m()},d)}catch(S){d(S)}}}catch(S){l(S)}},l)}catch(b){l(b)}},"loop");y()})},"reduce")});var zCe=B(),HCe=Qu().some;zCe({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{some:n(function(e){return HCe(this,e)},"some")});var WCe=B(),N7=le(),VCe=re(),KCe=wr(),YCe=Rd(),XCe=vc(),QCe=Ko(),JCe=QCe(function(r){var e=this,t=e.iterator,i;if(!e.remaining--){var o={done:!0,value:void 0};return e.done=!0,i=t.return,i!==void 0?r.resolve(N7(i,t,void 0)).then(function(){return o}):o}return r.resolve(N7(e.next,t)).then(function(a){return VCe(a).done?(e.done=!0,{done:!0,value:void 0}):{done:!1,value:a.value}}).then(null,function(a){throw e.done=!0,a})});WCe({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{take:n(function(e){return new JCe(KCe(this),{remaining:XCe(YCe(+e))})},"take")});var ZCe=B(),eLe=Qu().toArray;ZCe({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{toArray:n(function(){return eLe(this,void 0,[])},"toArray")});var aLe=B(),oLe=fT();typeof BigInt=="function"&&aLe({target:"BigInt",stat:!0,forced:!0},{range:n(function(e,t,i){return new oLe(e,t,i,"bigint",BigInt(0),BigInt(1))},"range")});var pLe=B(),dLe=tn(),hLe=pT(),vLe=ge(),W7=Gr(),yLe=Object,mLe=n(function(){var e=vLe("Object","freeze");return e?e(W7(null)):W7(null)},"initializer");pLe({global:!0,forced:!0},{compositeKey:n(function(){return dLe(hLe,yLe,arguments).get("object",mLe)},"compositeKey")});var gLe=B(),bLe=pT(),V7=ge(),wLe=tn();gLe({global:!0,forced:!0},{compositeSymbol:n(function(){return arguments.length==1&&typeof arguments[0]=="string"?V7("Symbol").for(arguments[0]):wLe(bLe,null,arguments).get("symbol",V7("Symbol"))},"compositeSymbol")});var SLe=B(),OLe=se(),PLe=ke(),_Le=Ll(),ELe=Ne(),TLe=Ae(),RLe=Object.getOwnPropertyDescriptor,K7=/^\s*class\b/,ALe=OLe(K7.exec),ILe=n(function(e){try{if(!TLe||!ALe(K7,_Le(e)))return!1}catch(i){}var t=RLe(e,"prototype");return!!t&&ELe(t,"writable")&&!t.writable},"isClassConstructor");SLe({target:"Function",stat:!0,sham:!0,forced:!0},{isCallable:n(function(e){return PLe(e)&&!ILe(e)},"isCallable")});var qLe=B(),kLe=vi();qLe({target:"Function",stat:!0,forced:!0},{isConstructor:kLe});var jLe=B(),FLe=se(),CLe=ve();jLe({target:"Function",proto:!0,forced:!0},{unThis:n(function(){return FLe(CLe(this))},"unThis")});var LLe=B(),NLe=ye(),xLe=nn(),DLe=ke(),X7=Jr(),MLe=ue(),Q7=Ne(),ULe=Se(),Yo=zl().IteratorPrototype,BLe=mr(),Y7=ULe("toStringTag"),dT=NLe.Iterator,J7=BLe||!DLe(dT)||dT.prototype!==Yo||!MLe(function(){dT({})}),hT=n(function(){xLe(this,Yo)},"Iterator");Q7(Yo,Y7)||X7(Yo,Y7,"Iterator");(J7||!Q7(Yo,"constructor")||Yo.constructor===Object)&&X7(Yo,"constructor",hT);hT.prototype=Yo;LLe({global:!0,constructor:!0,forced:J7},{Iterator:hT});var aNe=B(),oNe=vT();aNe({target:"Iterator",name:"indexed",proto:!0,real:!0,forced:!0},{asIndexedPairs:oNe});var uNe=B(),o9=le(),u9=re(),sNe=wr(),lNe=Rd(),cNe=vc(),fNe=Xo(),pNe=fNe(function(){for(var r=this.iterator,e=this.next,t,i;this.remaining;)if(this.remaining--,t=u9(o9(e,r)),i=this.done=!!t.done,i)return;if(t=u9(o9(e,r)),i=this.done=!!t.done,!i)return t.value});uNe({target:"Iterator",proto:!0,real:!0,forced:!0},{drop:n(function(e){return new pNe(sNe(this),{remaining:cNe(lNe(+e))})},"drop")});var dNe=B(),hNe=Pe(),vNe=ve(),yNe=wr();dNe({target:"Iterator",proto:!0,real:!0,forced:!0},{every:n(function(e){var t=yNe(this);return vNe(e),!hNe(t,function(i,o){if(!e(i))return o()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped},"every")});var mNe=B(),gNe=le(),bNe=ve(),wNe=re(),SNe=wr(),ONe=Xo(),PNe=Xm(),_Ne=ONe(function(){for(var r=this.iterator,e=this.filterer,t=this.next,i,o,a;;){if(i=wNe(gNe(t,r)),o=this.done=!!i.done,o)return;if(a=i.value,PNe(r,e,a))return a}});mNe({target:"Iterator",proto:!0,real:!0,forced:!0},{filter:n(function(e){return new _Ne(SNe(this),{filterer:bNe(e)})},"filter")});var ENe=B(),TNe=Pe(),RNe=ve(),ANe=wr();ENe({target:"Iterator",proto:!0,real:!0,forced:!0},{find:n(function(e){var t=ANe(this);return RNe(e),TNe(t,function(i,o){if(e(i))return o(i)},{IS_RECORD:!0,INTERRUPTED:!0}).result},"find")});var INe=B(),yT=le(),l9=ve(),mT=re(),qNe=wr(),kNe=zi(),jNe=Xo(),s9=xu(),FNe=TypeError,CNe=jNe(function(){for(var r=this.iterator,e=this.mapper,t,i,o,a;;){if(a=this.innerIterator)try{if(t=mT(yT(this.innerNext,a)),!t.done)return t.value;this.innerIterator=this.innerNext=null}catch(u){s9(r,"throw",u)}if(t=mT(yT(this.next,r)),this.done=!!t.done)return;try{if(i=e(t.value),o=kNe(i),!o)throw FNe(".flatMap callback should return an iterable object");this.innerIterator=a=mT(yT(o,i)),this.innerNext=l9(a.next)}catch(u){s9(r,"throw",u)}}});INe({target:"Iterator",proto:!0,real:!0,forced:!0},{flatMap:n(function(e){return new CNe(qNe(this),{mapper:l9(e),innerIterator:null,innerNext:null})},"flatMap")});var LNe=B(),NNe=Pe(),xNe=wr();LNe({target:"Iterator",proto:!0,real:!0,forced:!0},{forEach:n(function(e){NNe(xNe(this),e,{IS_RECORD:!0})},"forEach")});var DNe=B(),MNe=le(),UNe=Ue(),BNe=Nt(),$Ne=zl().IteratorPrototype,GNe=Xo(),zNe=Kn(),HNe=wr(),WNe=zi(),VNe=GNe(function(){return MNe(this.next,this.iterator)},!0);DNe({target:"Iterator",stat:!0,forced:!0},{from:n(function(e){var t=UNe(e),i=WNe(t),o;if(i){if(o=zNe(t,i),BNe($Ne,o))return o}else o=t;return new VNe(HNe(o))},"from")});var KNe=B(),YNe=vT();KNe({target:"Iterator",proto:!0,real:!0,forced:!0},{indexed:YNe});var XNe=B(),QNe=le(),JNe=ve(),ZNe=re(),exe=wr(),rxe=Xo(),txe=Xm(),nxe=rxe(function(){var r=this.iterator,e=ZNe(QNe(this.next,r)),t=this.done=!!e.done;if(!t)return txe(r,this.mapper,e.value)});XNe({target:"Iterator",proto:!0,real:!0,forced:!0},{map:n(function(e){return new nxe(exe(this),{mapper:JNe(e)})},"map")});var ixe=B(),axe=Pe(),oxe=ve(),uxe=wr(),sxe=TypeError;ixe({target:"Iterator",proto:!0,real:!0,forced:!0},{reduce:n(function(e){var t=uxe(this);oxe(e);var i=arguments.length<2,o=i?void 0:arguments[1];if(axe(t,function(a){i?(i=!1,o=a):o=e(o,a)},{IS_RECORD:!0}),i)throw sxe("Reduce of empty iterator with no initial value");return o},"reduce")});var lxe=B(),cxe=Pe(),fxe=ve(),pxe=wr();lxe({target:"Iterator",proto:!0,real:!0,forced:!0},{some:n(function(e){var t=pxe(this);return fxe(e),cxe(t,function(i,o){if(e(i))return o()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped},"some")});var dxe=B(),hxe=le(),vxe=re(),yxe=wr(),mxe=Rd(),gxe=vc(),bxe=Xo(),wxe=xu(),Sxe=bxe(function(){var r=this.iterator;if(!this.remaining--)return this.done=!0,wxe(r,"normal",void 0);var e=vxe(hxe(this.next,r)),t=this.done=!!e.done;if(!t)return e.value});dxe({target:"Iterator",proto:!0,real:!0,forced:!0},{take:n(function(e){return new Sxe(yxe(this),{remaining:gxe(mxe(+e))})},"take")});var Oxe=B(),Pxe=Pe(),_xe=wr(),Exe=[].push;Oxe({target:"Iterator",proto:!0,real:!0,forced:!0},{toArray:n(function(){var e=[];return Pxe(_xe(this),Exe,{that:e,IS_RECORD:!0}),e},"toArray")});var Txe=B(),Rxe=Ed(),Axe=uT(),Ixe=wr();Txe({target:"Iterator",proto:!0,real:!0,forced:!0},{toAsync:n(function(){return new Axe(Ixe(new Rxe(this)))},"toAsync")});var Fxe=B(),Cxe=qd();Fxe({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:Cxe});var Nxe=B(),xxe=bT();Nxe({target:"Map",proto:!0,real:!0,forced:!0},{emplace:xxe});var Mxe=B(),Uxe=re(),Bxe=or(),$xe=gi(),Gxe=Pe();Mxe({target:"Map",proto:!0,real:!0,forced:!0},{every:n(function(e){var t=Uxe(this),i=$xe(t),o=Bxe(e,arguments.length>1?arguments[1]:void 0);return!Gxe(i,function(a,u,c){if(!o(u,a,t))return c()},{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped},"every")});var zxe=B(),Hxe=ge(),Wxe=or(),Vxe=le(),Kxe=ve(),Yxe=re(),Xxe=xt(),Qxe=gi(),Jxe=Pe();zxe({target:"Map",proto:!0,real:!0,forced:!0},{filter:n(function(e){var t=Yxe(this),i=Qxe(t),o=Wxe(e,arguments.length>1?arguments[1]:void 0),a=new(Xxe(t,Hxe("Map"))),u=Kxe(a.set);return Jxe(i,function(c,l){o(l,c,t)&&Vxe(u,a,c,l)},{AS_ENTRIES:!0,IS_ITERATOR:!0}),a},"filter")});var Zxe=B(),eDe=re(),rDe=or(),tDe=gi(),nDe=Pe();Zxe({target:"Map",proto:!0,real:!0,forced:!0},{find:n(function(e){var t=eDe(this),i=tDe(t),o=rDe(e,arguments.length>1?arguments[1]:void 0);return nDe(i,function(a,u,c){if(o(u,a,t))return c(u)},{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result},"find")});var iDe=B(),aDe=re(),oDe=or(),uDe=gi(),sDe=Pe();iDe({target:"Map",proto:!0,real:!0,forced:!0},{findKey:n(function(e){var t=aDe(this),i=uDe(t),o=oDe(e,arguments.length>1?arguments[1]:void 0);return sDe(i,function(a,u,c){if(o(u,a,t))return c(a)},{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result},"findKey")});var dDe=B(),hDe=kd();dDe({target:"Map",stat:!0,forced:!0},{from:hDe});var vDe=B(),wT=le(),yDe=se(),Pb=ve(),mDe=Kn(),gDe=Pe(),bDe=yDe([].push);vDe({target:"Map",stat:!0,forced:!0},{groupBy:n(function(e,t){Pb(t);var i=mDe(e),o=new this,a=Pb(o.has),u=Pb(o.get),c=Pb(o.set);return gDe(i,function(l){var d=t(l);wT(a,o,d)?bDe(wT(u,o,d),l):wT(c,o,d,[l])},{IS_ITERATOR:!0}),o},"groupBy")});var wDe=B(),SDe=re(),ODe=gi(),PDe=m9(),_De=Pe();wDe({target:"Map",proto:!0,real:!0,forced:!0},{includes:n(function(e){return _De(ODe(SDe(this)),function(t,i,o){if(PDe(i,e))return o()},{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped},"includes")});var EDe=B(),TDe=le(),RDe=Pe(),g9=ve();EDe({target:"Map",stat:!0,forced:!0},{keyBy:n(function(e,t){var i=new this;g9(t);var o=g9(i.set);return RDe(e,function(a){TDe(o,i,t(a),a)}),i},"keyBy")});var ADe=B(),IDe=re(),qDe=gi(),kDe=Pe();ADe({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:n(function(e){return kDe(qDe(IDe(this)),function(t,i,o){if(i===e)return o(t)},{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result},"keyOf")});var jDe=B(),FDe=ge(),CDe=or(),LDe=le(),NDe=ve(),xDe=re(),DDe=xt(),MDe=gi(),UDe=Pe();jDe({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:n(function(e){var t=xDe(this),i=MDe(t),o=CDe(e,arguments.length>1?arguments[1]:void 0),a=new(DDe(t,FDe("Map"))),u=NDe(a.set);return UDe(i,function(c,l){LDe(u,a,o(l,c,t),l)},{AS_ENTRIES:!0,IS_ITERATOR:!0}),a},"mapKeys")});var BDe=B(),$De=ge(),GDe=or(),zDe=le(),HDe=ve(),WDe=re(),VDe=xt(),KDe=gi(),YDe=Pe();BDe({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:n(function(e){var t=WDe(this),i=KDe(t),o=GDe(e,arguments.length>1?arguments[1]:void 0),a=new(VDe(t,$De("Map"))),u=HDe(a.set);return YDe(i,function(c,l){zDe(u,a,c,o(l,c,t))},{AS_ENTRIES:!0,IS_ITERATOR:!0}),a},"mapValues")});var XDe=B(),QDe=ve(),JDe=re(),ZDe=Pe();XDe({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:n(function(e){for(var t=JDe(this),i=QDe(t.set),o=arguments.length,a=0;a<o;)ZDe(arguments[a++],i,{that:t,AS_ENTRIES:!0});return t},"merge")});var r5e=B(),t5e=jd();r5e({target:"Map",stat:!0,forced:!0},{of:t5e});var n5e=B(),i5e=re(),a5e=ve(),o5e=gi(),u5e=Pe(),s5e=TypeError;n5e({target:"Map",proto:!0,real:!0,forced:!0},{reduce:n(function(e){var t=i5e(this),i=o5e(t),o=arguments.length<2,a=o?void 0:arguments[1];if(a5e(e),u5e(i,function(u,c){o?(o=!1,a=c):a=e(a,c,u,t)},{AS_ENTRIES:!0,IS_ITERATOR:!0}),o)throw s5e("Reduce of empty map with no initial value");return a},"reduce")});var l5e=B(),c5e=re(),f5e=or(),p5e=gi(),d5e=Pe();l5e({target:"Map",proto:!0,real:!0,forced:!0},{some:n(function(e){var t=c5e(this),i=p5e(t),o=f5e(e,arguments.length>1?arguments[1]:void 0);return d5e(i,function(a,u,c){if(o(u,a,t))return c()},{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped},"some")});var h5e=B(),ST=le(),v5e=re(),Fd=ve(),y5e=TypeError;h5e({target:"Map",proto:!0,real:!0,forced:!0},{update:n(function(e,t){var i=v5e(this),o=Fd(i.get),a=Fd(i.has),u=Fd(i.set),c=arguments.length;Fd(t);var l=ST(a,i,e);if(!l&&c<3)throw y5e("Updating absent value");var d=l?ST(o,i,e):Fd(c>2?arguments[2]:void 0)(e,i);return ST(u,i,e,t(d,e,i)),i},"update")});var b5e=B(),w5e=Tb();b5e({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:w5e});var S5e=B(),O5e=Tb();S5e({target:"Map",proto:!0,real:!0,forced:!0},{upsert:O5e});var P5e=B(),_5e=Math.min,E5e=Math.max;P5e({target:"Math",stat:!0,forced:!0},{clamp:n(function(e,t,i){return _5e(i,E5e(t,e))},"clamp")});var T5e=B();T5e({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{DEG_PER_RAD:Math.PI/180});var R5e=B(),A5e=180/Math.PI;R5e({target:"Math",stat:!0,forced:!0},{degrees:n(function(e){return e*A5e},"degrees")});var I5e=B(),q5e=PT(),k5e=TP();I5e({target:"Math",stat:!0,forced:!0},{fscale:n(function(e,t,i,o,a){return k5e(q5e(e,t,i,o,a))},"fscale")});var j5e=B();j5e({target:"Math",stat:!0,forced:!0},{iaddh:n(function(e,t,i,o){var a=e>>>0,u=t>>>0,c=i>>>0;return u+(o>>>0)+((a&c|(a|c)&~(a+c>>>0))>>>31)|0},"iaddh")});var F5e=B();F5e({target:"Math",stat:!0,forced:!0},{imulh:n(function(e,t){var i=65535,o=+e,a=+t,u=o&i,c=a&i,l=o>>16,d=a>>16,y=(l*c>>>0)+(u*c>>>16);return l*d+(y>>16)+((u*d>>>0)+(y&i)>>16)},"imulh")});var C5e=B();C5e({target:"Math",stat:!0,forced:!0},{isubh:n(function(e,t,i,o){var a=e>>>0,u=t>>>0,c=i>>>0;return u-(o>>>0)-((~a&c|~(a^c)&a-c>>>0)>>>31)|0},"isubh")});var L5e=B();L5e({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{RAD_PER_DEG:180/Math.PI});var N5e=B(),x5e=Math.PI/180;N5e({target:"Math",stat:!0,forced:!0},{radians:n(function(e){return e*x5e},"radians")});var D5e=B(),M5e=PT();D5e({target:"Math",stat:!0,forced:!0},{scale:M5e});var U5e=B(),B5e=re(),$5e=FP(),G5e=Fo(),O9=ar(),P9="Seeded Random",_9=P9+" Generator",z5e='Math.seededPRNG() argument should have a "seed" field with a finite value.',H5e=O9.set,W5e=O9.getterFor(_9),V5e=TypeError,K5e=G5e(n(function(e){H5e(this,{type:_9,seed:e%2147483647})},"SeededRandomGenerator"),P9,n(function(){var e=W5e(this),t=e.seed=(e.seed*1103515245+12345)%2147483647;return{value:(t&1073741823)/1073741823,done:!1}},"next"));U5e({target:"Math",stat:!0,forced:!0},{seededPRNG:n(function(e){var t=B5e(e).seed;if(!$5e(t))throw V5e(z5e);return new K5e(t)},"seededPRNG")});var Y5e=B();Y5e({target:"Math",stat:!0,forced:!0},{signbit:n(function(e){var t=+e;return t==t&&t==0?1/t==-1/0:t<0},"signbit")});var X5e=B();X5e({target:"Math",stat:!0,forced:!0},{umulh:n(function(e,t){var i=65535,o=+e,a=+t,u=o&i,c=a&i,l=o>>>16,d=a>>>16,y=(l*c>>>0)+(u*c>>>16);return l*d+(y>>>16)+((u*d>>>0)+(y&i)>>>16)},"umulh")});var Q5e=B(),Ab=se(),J5e=Pr(),Z5e=CP(),Rb="Invalid number representation",eMe="Invalid radix",rMe=RangeError,_T=SyntaxError,tMe=TypeError,E9=/^[\da-z]+$/,nMe=Ab("".charAt),iMe=Ab(E9.exec),aMe=Ab(1 .toString),oMe=Ab("".slice);Q5e({target:"Number",stat:!0,forced:!0},{fromString:n(function(e,t){var i=1,o,a;if(typeof e!="string")throw tMe(Rb);if(!e.length||nMe(e,0)=="-"&&(i=-1,e=oMe(e,1),!e.length))throw _T(Rb);if(o=t===void 0?10:J5e(t),o<2||o>36)throw rMe(eMe);if(!iMe(E9,e)||aMe(a=Z5e(e,o),o)!==e)throw _T(Rb);return i*a},"fromString")});var uMe=B(),sMe=fT();uMe({target:"Number",stat:!0,forced:!0},{range:n(function(e,t,i){return new sMe(e,t,i,"number",0,1)},"range")});var vMe=B(),yMe=Ib();vMe({target:"Object",stat:!0,forced:!0},{iterateEntries:n(function(e){return new yMe(e,"entries")},"iterateEntries")});var mMe=B(),gMe=Ib();mMe({target:"Object",stat:!0,forced:!0},{iterateKeys:n(function(e){return new gMe(e,"keys")},"iterateKeys")});var bMe=B(),wMe=Ib();bMe({target:"Object",stat:!0,forced:!0},{iterateValues:n(function(e){return new wMe(e,"values")},"iterateValues")});U9();$9();z9();var KMe=B(),YMe=qa(),XMe=$o();KMe({target:"Promise",stat:!0,forced:!0},{try:n(function(e){var t=YMe.f(this),i=XMe(e);return(i.error?t.reject:t.resolve)(i.value),t.promise},"_try")});var o3e=B(),Y9=Qi(),u3e=re(),s3e=Y9.toKey,l3e=Y9.set;o3e({target:"Reflect",stat:!0},{defineMetadata:n(function(e,t,i){var o=arguments.length<4?void 0:s3e(arguments[3]);l3e(e,t,u3e(i),o)},"defineMetadata")});var c3e=B(),CT=Qi(),f3e=re(),p3e=CT.toKey,d3e=CT.getMap,X9=CT.store;c3e({target:"Reflect",stat:!0},{deleteMetadata:n(function(e,t){var i=arguments.length<3?void 0:p3e(arguments[2]),o=d3e(f3e(t),i,!1);if(o===void 0||!o.delete(e))return!1;if(o.size)return!0;var a=X9.get(t);return a.delete(i),!!a.size||X9.delete(t)},"deleteMetadata")});var h3e=B(),LT=Qi(),v3e=re(),y3e=vt(),m3e=LT.has,g3e=LT.get,b3e=LT.toKey,w3e=n(function r(e,t,i){var o=m3e(e,t,i);if(o)return g3e(e,t,i);var a=y3e(t);return a!==null?r(e,a,i):void 0},"ordinaryGetMetadata");h3e({target:"Reflect",stat:!0},{getMetadata:n(function(e,t){var i=arguments.length<3?void 0:b3e(arguments[2]);return w3e(e,v3e(t),i)},"getMetadata")});var S3e=B(),Q9=se(),J9=Qi(),O3e=re(),P3e=vt(),_3e=gb(),E3e=Q9(_3e),T3e=Q9([].concat),R3e=J9.keys,A3e=J9.toKey,I3e=n(function r(e,t){var i=R3e(e,t),o=P3e(e);if(o===null)return i;var a=r(o,t);return a.length?i.length?E3e(T3e(i,a)):a:i},"ordinaryMetadataKeys");S3e({target:"Reflect",stat:!0},{getMetadataKeys:n(function(e){var t=arguments.length<2?void 0:A3e(arguments[1]);return I3e(O3e(e),t)},"getMetadataKeys")});var q3e=B(),Z9=Qi(),k3e=re(),j3e=Z9.get,F3e=Z9.toKey;q3e({target:"Reflect",stat:!0},{getOwnMetadata:n(function(e,t){var i=arguments.length<3?void 0:F3e(arguments[2]);return j3e(e,k3e(t),i)},"getOwnMetadata")});var C3e=B(),e$=Qi(),L3e=re(),N3e=e$.keys,x3e=e$.toKey;C3e({target:"Reflect",stat:!0},{getOwnMetadataKeys:n(function(e){var t=arguments.length<2?void 0:x3e(arguments[1]);return N3e(L3e(e),t)},"getOwnMetadataKeys")});var D3e=B(),r$=Qi(),M3e=re(),U3e=vt(),B3e=r$.has,$3e=r$.toKey,G3e=n(function r(e,t,i){var o=B3e(e,t,i);if(o)return!0;var a=U3e(t);return a!==null?r(e,a,i):!1},"ordinaryHasMetadata");D3e({target:"Reflect",stat:!0},{hasMetadata:n(function(e,t){var i=arguments.length<3?void 0:$3e(arguments[2]);return G3e(e,M3e(t),i)},"hasMetadata")});var z3e=B(),t$=Qi(),H3e=re(),W3e=t$.has,V3e=t$.toKey;z3e({target:"Reflect",stat:!0},{hasOwnMetadata:n(function(e,t){var i=arguments.length<3?void 0:V3e(arguments[2]);return W3e(e,H3e(t),i)},"hasOwnMetadata")});var K3e=B(),n$=Qi(),Y3e=re(),X3e=n$.toKey,Q3e=n$.set;K3e({target:"Reflect",stat:!0},{metadata:n(function(e,t){return n(function(o,a){Q3e(e,t,Y3e(o),X3e(a))},"decorator")},"metadata")});var rUe=B(),tUe=NT();rUe({target:"Set",proto:!0,real:!0,forced:!0},{addAll:tUe});var nUe=B(),iUe=qd();nUe({target:"Set",proto:!0,real:!0,forced:!0},{deleteAll:iUe});var aUe=B(),oUe=ge(),uUe=le(),sUe=ve(),lUe=re(),cUe=xt(),fUe=Pe();aUe({target:"Set",proto:!0,real:!0,forced:!0},{difference:n(function(e){var t=lUe(this),i=new(cUe(t,oUe("Set")))(t),o=sUe(i.delete);return fUe(e,function(a){uUe(o,i,a)}),i},"difference")});var dUe=B(),hUe=re(),vUe=or(),yUe=Qo(),mUe=Pe();dUe({target:"Set",proto:!0,real:!0,forced:!0},{every:n(function(e){var t=hUe(this),i=yUe(t),o=vUe(e,arguments.length>1?arguments[1]:void 0);return!mUe(i,function(a,u){if(!o(a,a,t))return u()},{IS_ITERATOR:!0,INTERRUPTED:!0}).stopped},"every")});var gUe=B(),bUe=ge(),wUe=le(),SUe=ve(),OUe=re(),PUe=or(),_Ue=xt(),EUe=Qo(),TUe=Pe();gUe({target:"Set",proto:!0,real:!0,forced:!0},{filter:n(function(e){var t=OUe(this),i=EUe(t),o=PUe(e,arguments.length>1?arguments[1]:void 0),a=new(_Ue(t,bUe("Set"))),u=SUe(a.add);return TUe(i,function(c){o(c,c,t)&&wUe(u,a,c)},{IS_ITERATOR:!0}),a},"filter")});var RUe=B(),AUe=re(),IUe=or(),qUe=Qo(),kUe=Pe();RUe({target:"Set",proto:!0,real:!0,forced:!0},{find:n(function(e){var t=AUe(this),i=qUe(t),o=IUe(e,arguments.length>1?arguments[1]:void 0);return kUe(i,function(a,u){if(o(a,a,t))return u(a)},{IS_ITERATOR:!0,INTERRUPTED:!0}).result},"find")});var jUe=B(),FUe=kd();jUe({target:"Set",stat:!0,forced:!0},{from:FUe});var CUe=B(),LUe=ge(),o$=le(),u$=ve(),NUe=re(),xUe=xt(),DUe=Pe();CUe({target:"Set",proto:!0,real:!0,forced:!0},{intersection:n(function(e){var t=NUe(this),i=new(xUe(t,LUe("Set"))),o=u$(t.has),a=u$(i.add);return DUe(e,function(u){o$(o,t,u)&&o$(a,i,u)}),i},"intersection")});var MUe=B(),UUe=le(),BUe=ve(),$Ue=re(),GUe=Pe();MUe({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:n(function(e){var t=$Ue(this),i=BUe(t.has);return!GUe(e,function(o,a){if(UUe(i,t,o)===!0)return a()},{INTERRUPTED:!0}).stopped},"isDisjointFrom")});var zUe=B(),HUe=ge(),WUe=le(),VUe=ve(),KUe=ke(),YUe=re(),XUe=Kn(),QUe=Pe();zUe({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:n(function(e){var t=XUe(this),i=YUe(e),o=i.has;return KUe(o)||(i=new(HUe("Set"))(e),o=VUe(i.has)),!QUe(t,function(a,u){if(WUe(o,i,a)===!1)return u()},{IS_ITERATOR:!0,INTERRUPTED:!0}).stopped},"isSubsetOf")});var JUe=B(),ZUe=le(),e8e=ve(),r8e=re(),t8e=Pe();JUe({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:n(function(e){var t=r8e(this),i=e8e(t.has);return!t8e(e,function(o,a){if(ZUe(i,t,o)===!1)return a()},{INTERRUPTED:!0}).stopped},"isSupersetOf")});var n8e=B(),i8e=se(),a8e=re(),o8e=Ge(),u8e=Qo(),s8e=Pe(),l8e=i8e([].join),c8e=[].push;n8e({target:"Set",proto:!0,real:!0,forced:!0},{join:n(function(e){var t=a8e(this),i=u8e(t),o=e===void 0?",":o8e(e),a=[];return s8e(i,c8e,{that:a,IS_ITERATOR:!0}),l8e(a,o)},"join")});var f8e=B(),p8e=ge(),d8e=or(),h8e=le(),v8e=ve(),y8e=re(),m8e=xt(),g8e=Qo(),b8e=Pe();f8e({target:"Set",proto:!0,real:!0,forced:!0},{map:n(function(e){var t=y8e(this),i=g8e(t),o=d8e(e,arguments.length>1?arguments[1]:void 0),a=new(m8e(t,p8e("Set"))),u=v8e(a.add);return b8e(i,function(c){h8e(u,a,o(c,c,t))},{IS_ITERATOR:!0}),a},"map")});var w8e=B(),S8e=jd();w8e({target:"Set",stat:!0,forced:!0},{of:S8e});var O8e=B(),P8e=ve(),_8e=re(),E8e=Qo(),T8e=Pe(),R8e=TypeError;O8e({target:"Set",proto:!0,real:!0,forced:!0},{reduce:n(function(e){var t=_8e(this),i=E8e(t),o=arguments.length<2,a=o?void 0:arguments[1];if(P8e(e),T8e(i,function(u){o?(o=!1,a=u):a=e(a,u,u,t)},{IS_ITERATOR:!0}),o)throw R8e("Reduce of empty set with no initial value");return a},"reduce")});var A8e=B(),I8e=re(),q8e=or(),k8e=Qo(),j8e=Pe();A8e({target:"Set",proto:!0,real:!0,forced:!0},{some:n(function(e){var t=I8e(this),i=k8e(t),o=q8e(e,arguments.length>1?arguments[1]:void 0);return j8e(i,function(a,u){if(o(a,a,t))return u()},{IS_ITERATOR:!0,INTERRUPTED:!0}).stopped},"some")});var F8e=B(),C8e=ge(),s$=le(),l$=ve(),L8e=re(),N8e=xt(),x8e=Pe();F8e({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:n(function(e){var t=L8e(this),i=new(N8e(t,C8e("Set")))(t),o=l$(i.delete),a=l$(i.add);return x8e(e,function(u){s$(o,i,u)||s$(a,i,u)}),i},"symmetricDifference")});var D8e=B(),M8e=ge(),U8e=ve(),B8e=re(),$8e=xt(),G8e=Pe();D8e({target:"Set",proto:!0,real:!0,forced:!0},{union:n(function(e){var t=B8e(this),i=new($8e(t,M8e("Set")))(t);return G8e(e,U8e(i.add),{that:i}),i},"union")});var z8e=B(),H8e=Yu().charAt,W8e=Br(),V8e=Pr(),K8e=Ge();z8e({target:"String",proto:!0,forced:!0},{at:n(function(e){var t=K8e(W8e(this)),i=t.length,o=V8e(e),a=o>=0?o:i+o;return a<0||a>=i?void 0:H8e(t,a)},"at")});var Y8e=B(),p$=se(),X8e=$r(),c$=Ge(),Q8e=$e(),J8e=TypeError,d$=Array.prototype,f$=p$(d$.push),Z8e=p$(d$.join);Y8e({target:"String",stat:!0,forced:!0},{cooked:n(function(e){for(var t=X8e(e),i=Q8e(t),o=arguments.length,a=[],u=0;i>u;){var c=t[u++];if(c===void 0)throw J8e("Incorrect template");if(f$(a,c$(c)),u===i)return Z8e(a,"");u<o&&f$(a,c$(arguments[u]))}},"cooked")});var e4e=B(),r4e=Fo(),t4e=Br(),n4e=Ge(),h$=ar(),v$=Yu(),i4e=v$.codeAt,a4e=v$.charAt,y$="String Iterator",o4e=h$.set,u4e=h$.getterFor(y$),s4e=r4e(n(function(e){o4e(this,{type:y$,string:e,index:0})},"StringIterator"),"String",n(function(){var e=u4e(this),t=e.string,i=e.index,o;return i>=t.length?{value:void 0,done:!0}:(o=a4e(t,i),e.index+=o.length,{value:{codePoint:i4e(o,0),position:i},done:!1})},"next"));e4e({target:"String",proto:!0,forced:!0},{codePoints:n(function(){return new s4e(n4e(t4e(this)))},"codePoints")});var l4e=_r();l4e("asyncDispose");var c4e=_r();c4e("dispose");var f4e=_r();f4e("matcher");var p4e=_r();p4e("metadata");var d4e=_r();d4e("metadataKey");var h4e=_r();h4e("observable");var v4e=_r();v4e("patternMatch");var y4e=_r();y4e("replaceAll");var m4e=ge(),g4e=Ql(),b4e=ZE(),m$=Ie(),w4e=mc(),S4e=m$.aTypedArrayConstructor,O4e=m$.exportTypedArrayStaticMethod;O4e("fromAsync",n(function(e){var t=this,i=arguments.length,o=i>1?arguments[1]:void 0,a=i>2?arguments[2]:void 0;return new(m4e("Promise"))(function(u){g4e(t),u(b4e(e,o,a))}).then(function(u){return w4e(S4e(t),u)})},"fromAsync"),!0);var g$=Ie(),P4e=zr().filterReject,_4e=wd(),E4e=g$.aTypedArray,T4e=g$.exportTypedArrayMethod;T4e("filterOut",n(function(e){var t=P4e(E4e(this),e,arguments.length>1?arguments[1]:void 0);return _4e(this,t)},"filterOut"),!0);var b$=Ie(),R4e=zr().filterReject,A4e=wd(),I4e=b$.aTypedArray,q4e=b$.exportTypedArrayMethod;q4e("filterReject",n(function(e){var t=R4e(I4e(this),e,arguments.length>1?arguments[1]:void 0);return A4e(this,t)},"filterReject"),!0);var w$=Ie(),k4e=vb(),j4e=gc(),F4e=w$.aTypedArray,C4e=w$.exportTypedArrayMethod;C4e("groupBy",n(function(e){var t=arguments.length>1?arguments[1]:void 0;return k4e(F4e(this),e,t,j4e)},"groupBy"),!0);var L4e=tT(),xT=Ie(),N4e=xT.aTypedArray,x4e=xT.exportTypedArrayMethod,D4e=xT.getTypedArrayConstructor;x4e("toReversed",n(function(){return L4e(N4e(this),D4e(this))},"toReversed"));var Cb=Ie(),M4e=se(),U4e=ve(),B4e=mc(),$4e=Cb.aTypedArray,G4e=Cb.getTypedArrayConstructor,z4e=Cb.exportTypedArrayMethod,H4e=M4e(Cb.TypedArrayPrototype.sort);z4e("toSorted",n(function(e){e!==void 0&&U4e(e);var t=$4e(this),i=B4e(G4e(t),t);return H4e(i,e)},"toSorted"));var DT=Ie(),W4e=$e(),V4e=di(),K4e=Pr(),Y4e=ue(),X4e=DT.aTypedArray,Q4e=DT.getTypedArrayConstructor,J4e=DT.exportTypedArrayMethod,Z4e=Math.max,eBe=Math.min,rBe=!Y4e(function(){var r=new Int8Array([1]),e=r.toSpliced(1,0,{valueOf:n(function(){return r[0]=2,3},"valueOf")});return e[0]!==2||e[1]!==3});J4e("toSpliced",n(function(e,t){var i=X4e(this),o=Q4e(i),a=W4e(i),u=V4e(e,a),c=arguments.length,l=0,d,y,m,b,w;if(c===0)d=y=0;else if(c===1)d=0,y=a-u;else if(y=eBe(Z4e(K4e(t),0),a-u),d=c-2,d){m=new o(d);for(var S=2;S<c;S++)m[S-2]=arguments[S]}for(b=a+d-y,w=new o(b);l<u;l++)w[l]=i[l];for(;l<u+d;l++)w[l]=m[l-u];for(;l<b;l++)w[l]=i[l+y-d];return w},"toSpliced"),!rBe);var tBe=se(),S$=Ie(),nBe=gb(),iBe=wd(),aBe=S$.aTypedArray,oBe=S$.exportTypedArrayMethod,uBe=tBe(nBe);oBe("uniqueBy",n(function(e){return iBe(this,uBe(aBe(this),e))},"uniqueBy"),!0);var fBe=iT(),MT=Ie(),pBe=P$(),dBe=Pr(),hBe=qE(),vBe=MT.aTypedArray,yBe=MT.getTypedArrayConstructor,mBe=MT.exportTypedArrayMethod,gBe=!!function(){try{new Int8Array(1).with(2,{valueOf:n(function(){throw 8},"valueOf")})}catch(r){return r===8}}();mBe("with",n(function(e,t){var i=vBe(this),o=dBe(e),a=pBe(i)?hBe(t):+t;return fBe(i,yBe(i),o,a)},"_with"),!gBe);var bBe=B(),wBe=qd();bBe({target:"WeakMap",proto:!0,real:!0,forced:!0},{deleteAll:wBe});var SBe=B(),OBe=kd();SBe({target:"WeakMap",stat:!0,forced:!0},{from:OBe});var PBe=B(),_Be=jd();PBe({target:"WeakMap",stat:!0,forced:!0},{of:_Be});var EBe=B(),TBe=bT();EBe({target:"WeakMap",proto:!0,real:!0,forced:!0},{emplace:TBe});var RBe=B(),ABe=Tb();RBe({target:"WeakMap",proto:!0,real:!0,forced:!0},{upsert:ABe});var IBe=B(),qBe=NT();IBe({target:"WeakSet",proto:!0,real:!0,forced:!0},{addAll:qBe});var kBe=B(),jBe=qd();kBe({target:"WeakSet",proto:!0,real:!0,forced:!0},{deleteAll:jBe});var FBe=B(),CBe=kd();FBe({target:"WeakSet",stat:!0,forced:!0},{from:CBe});var LBe=B(),NBe=jd();LBe({target:"WeakSet",stat:!0,forced:!0},{of:NBe});var xBe=B(),q$=ge(),$T=se(),GT=ue(),DBe=Ge(),MBe=Ne(),UBe=Bo(),BT=UT().ctoi,k$=/[^\d+/a-z]/i,BBe=/[\t\n\f\r ]+/g,$Be=/[=]+$/,Md=q$("atob"),GBe=String.fromCharCode,zBe=$T("".charAt),R$=$T("".replace),HBe=$T(k$.exec),zT=GT(function(){return Md(" ")!==""}),HT=!GT(function(){Md("a")}),A$=!zT&&!HT&&!GT(function(){Md()}),I$=!zT&&!HT&&Md.length!==1;xBe({global:!0,enumerable:!0,forced:zT||HT||A$||I$},{atob:n(function(e){if(UBe(arguments.length,1),A$||I$)return Md(e);var t=R$(DBe(e),BBe,""),i="",o=0,a=0,u,c;if(t.length%4==0&&(t=R$(t,$Be,"")),t.length%4==1||HBe(k$,t))throw new(q$("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;u=zBe(t,o++);)MBe(BT,u)&&(c=a%4?c*64+BT[u]:BT[u],a++%4&&(i+=GBe(255&c>>(-2*a&6))));return i},"atob")});var WBe=B(),x$=ge(),D$=se(),M$=ue(),j$=Ge(),VBe=Bo(),KBe=UT().itoc,es=x$("btoa"),F$=D$("".charAt),YBe=D$("".charCodeAt),C$=!!es&&!M$(function(){es()}),L$=!!es&&M$(function(){return es(null)!=="bnVsbA=="}),N$=!!es&&es.length!==1;WBe({global:!0,enumerable:!0,forced:C$||L$||N$},{btoa:n(function(e){if(VBe(arguments.length,1),C$||L$||N$)return es(j$(e));for(var t=j$(e),i="",o=0,a=KBe,u,c;F$(t,o)||(a="=",o%1);){if(c=YBe(t,o+=3/4),c>255)throw new(x$("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");u=u<<8|c,i+=F$(a,63&u>>8-o%1*8)}return i},"btoa")});var H$=ye(),W$=WT(),e6e=KT(),YT=z$(),r6e=Jr(),V$=n(function(e){if(e&&e.forEach!==YT)try{r6e(e,"forEach",YT)}catch(t){e.forEach=YT}},"handlePrototype");for(Lb in W$)W$[Lb]&&V$(H$[Lb]&&H$[Lb].prototype);var Lb;V$(e6e);var K$=ye(),X$=WT(),t6e=KT(),Ud=Hp(),XT=Jr(),Q$=Se(),QT=Q$("iterator"),Y$=Q$("toStringTag"),JT=Ud.values,J$=n(function(e,t){if(e){if(e[QT]!==JT)try{XT(e,QT,JT)}catch(o){e[QT]=JT}if(e[Y$]||XT(e,Y$,t),X$[t]){for(var i in Ud)if(e[i]!==Ud[i])try{XT(e,i,Ud[i])}catch(o){e[i]=Ud[i]}}}},"handlePrototype");for(Nb in X$)J$(K$[Nb]&&K$[Nb].prototype,Nb);var Nb;J$(t6e,"DOMTokenList");var l6e=B(),c6e=eG(),Ub=ge(),aR=ue(),f6e=Gr(),oR=gn(),Bb=tr().f,p6e=gr(),Db=ka(),Mb=Ne(),d6e=nn(),h6e=re(),uG=nG(),aG=Bl(),Ec=ZT(),v6e=Mp(),sG=ar(),uR=Ae(),lG=mr(),Tc="DOMException",iR="DATA_CLONE_ERR",Gb=Ub("Error"),Ca=Ub(Tc)||function(){try{var r=Ub("MessageChannel")||c6e("worker_threads").MessageChannel;new r().port1.postMessage(new WeakMap)}catch(e){if(e.name==iR&&e.code==25)return e.constructor}}(),y6e=Ca&&Ca.prototype,cG=Gb.prototype,m6e=sG.set,g6e=sG.getterFor(Tc),b6e="stack"in Gb(Tc),fG=n(function(e){return Mb(Ec,e)&&Ec[e].m?Ec[e].c:0},"codeFor"),sR=n(function(){d6e(this,$d);var e=arguments.length,t=aG(e<1?void 0:arguments[0]),i=aG(e<2?void 0:arguments[1],"Error"),o=fG(i);if(m6e(this,{type:Tc,name:i,message:t,code:o}),uR||(this.name=i,this.message=t,this.code=o),b6e){var a=Gb(t);a.name=Tc,Bb(this,"stack",oR(1,v6e(a.stack,1)))}},"DOMException"),$d=sR.prototype=f6e(cG),pG=n(function(e){return{enumerable:!0,configurable:!0,get:e}},"createGetterDescriptor"),eR=n(function(e){return pG(function(){return g6e(this)[e]})},"getterFor");uR&&(Db($d,"code",eR("code")),Db($d,"message",eR("message")),Db($d,"name",eR("name")));Bb($d,"constructor",oR(1,sR));var zb=aR(function(){return!(new Ca instanceof Gb)}),dG=zb||aR(function(){return cG.toString!==uG||String(new Ca(1,2))!=="2: 1"}),hG=zb||aR(function(){return new Ca(1,"DataCloneError").code!==25}),w6e=zb||Ca[iR]!==25||y6e[iR]!==25,oG=lG?dG||hG||w6e:zb;l6e({global:!0,constructor:!0,forced:oG},{DOMException:oG?sR:Ca});var Gd=Ub(Tc),$b=Gd.prototype;dG&&(lG||Ca===Gd)&&p6e($b,"toString",uG);hG&&uR&&Ca===Gd&&Db($b,"code",pG(function(){return fG(h6e(this).name)}));for(rR in Ec)Mb(Ec,rR)&&(tR=Ec[rR],Bd=tR.s,nR=oR(6,tR.c),Mb(Gd,Bd)||Bb(Gd,Bd,nR),Mb($b,Bd)||Bb($b,Bd,nR));var tR,Bd,nR,rR;var S6e=B(),O6e=ye(),yR=ge(),hR=gn(),vR=tr().f,vG=Ne(),P6e=nn(),_6e=Lu(),yG=Bl(),lR=ZT(),E6e=Mp(),T6e=Ae(),bG=mr(),Hd="DOMException",wG=yR("Error"),Wd=yR(Hd),mR=n(function(){P6e(this,R6e);var e=arguments.length,t=yG(e<1?void 0:arguments[0]),i=yG(e<2?void 0:arguments[1],"Error"),o=new Wd(t,i),a=wG(t);return a.name=Hd,vR(o,"stack",hR(1,E6e(a.stack,1))),_6e(o,this,mR),o},"DOMException"),R6e=mR.prototype=Wd.prototype,A6e="stack"in wG(Hd),I6e="stack"in new Wd(1,2),cR=Wd&&T6e&&Object.getOwnPropertyDescriptor(O6e,Hd),q6e=!!cR&&!(cR.writable&&cR.configurable),mG=A6e&&!q6e&&!I6e;S6e({global:!0,constructor:!0,forced:bG||mG},{DOMException:mG?mR:Wd});var zd=yR(Hd),gG=zd.prototype;if(gG.constructor!==zd){bG||vR(gG,"constructor",hR(1,zd));for(fR in lR)vG(lR,fR)&&(pR=lR[fR],dR=pR.s,vG(zd,dR)||vR(zd,dR,hR(6,pR.c)))}var pR,dR,fR;var k6e=ge(),j6e=en(),SG="DOMException";j6e(k6e(SG),SG);var F6e=B(),C6e=ye(),L6e=s_(),N6e=ve(),x6e=Bo(),D6e=Uo(),M6e=C6e.process;F6e({global:!0,enumerable:!0,dontCallGetSet:!0},{queueMicrotask:n(function(e){x6e(arguments.length,1),N6e(e);var t=D6e&&M6e.domain;L6e(t?t.bind(e):e)},"queueMicrotask")});function OR(r){"@babel/helpers - typeof";return OR=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},OR(r)}n(OR,"_typeof");var U6e=mr(),B6e=B(),Cr=ye(),Yd=ge(),La=se(),Vb=ue(),$6e=Tu(),PR=ke(),PG=vi(),_R=Le(),G6e=Eo(),z6e=Pe(),_G=re(),EG=hi(),H6e=Ne(),W6e=Bi(),gR=Jr(),ER=$e(),V6e=Bo(),K6e=ac(),Y6e=Um(),bR=_o(),X6e=c_(),Q6e=Tg(),J6e=Uo(),Vd=Cr.Object,TG=Cr.Date,Xd=Cr.Error,Z6e=Cr.EvalError,e7e=Cr.RangeError,r7e=Cr.ReferenceError,t7e=Cr.SyntaxError,RG=Cr.TypeError,n7e=Cr.URIError,i7e=Cr.PerformanceMark,Rc=Cr.WebAssembly,a7e=Rc&&Rc.CompileError||Xd,o7e=Rc&&Rc.LinkError||Xd,u7e=Rc&&Rc.RuntimeError||Xd,rs=Yd("DOMException"),AG=Yd("Set"),Hb=Yd("Map"),RR=Hb.prototype,IG=La(RR.has),s7e=La(RR.get),Wb=La(RR.set),l7e=La(AG.prototype.add),c7e=Yd("Object","keys"),f7e=La([].push),p7e=La((!0).valueOf),d7e=La(1 .valueOf),h7e=La("".valueOf),v7e=La(TG.prototype.getTime),TR=$6e("structuredClone"),Kd="DataCloneError",wR="Transferring",qG=n(function(e){return!Vb(function(){var t=new Cr.Set([7]),i=e(t),o=e(Vd(7));return i==t||!i.has(7)||OR(o)!="object"||o!=7})&&e},"checkBasicSemantic"),OG=n(function(e,t){return!Vb(function(){var i=new t,o=e({a:i,b:i});return!(o&&o.a===o.b&&o.a instanceof t&&o.a.stack===i.stack)})},"checkErrorsCloning"),y7e=n(function(e){return!Vb(function(){var t=e(new Cr.AggregateError([1],TR,{cause:3}));return t.name!="AggregateError"||t.errors[0]!=1||t.message!=TR||t.cause!=3})},"checkNewErrorsCloningSemantic"),Zo=Cr.structuredClone,m7e=U6e||!OG(Zo,Xd)||!OG(Zo,rs)||!y7e(Zo),g7e=!Zo&&qG(function(r){return new i7e(TR,{detail:r}).detail}),Jo=qG(Zo)||g7e,SR=n(function(e){throw new rs("Uncloneable type: "+e,Kd)},"throwUncloneable"),Mt=n(function(e,t){throw new rs((t||"Cloning")+" of "+e+" cannot be properly polyfilled in this engine",Kd)},"throwUnpolyfillable"),b7e=n(function r(e,t){if(G6e(e)&&SR("Symbol"),!_R(e))return e;if(t){if(IG(t,e))return s7e(t,e)}else t=new Hb;var i=EG(e),o=!1,a,u,c,l,d,y,m,b,w,S;switch(i){case"Array":c=[],o=!0;break;case"Object":c={},o=!0;break;case"Map":c=new Hb,o=!0;break;case"Set":c=new AG,o=!0;break;case"RegExp":c=new RegExp(e.source,K6e(e));break;case"Error":switch(u=e.name,u){case"AggregateError":c=Yd("AggregateError")([]);break;case"EvalError":c=Z6e();break;case"RangeError":c=e7e();break;case"ReferenceError":c=r7e();break;case"SyntaxError":c=t7e();break;case"TypeError":c=RG();break;case"URIError":c=n7e();break;case"CompileError":c=a7e();break;case"LinkError":c=o7e();break;case"RuntimeError":c=u7e();break;default:c=Xd()}o=!0;break;case"DOMException":c=new rs(e.message,e.name),o=!0;break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":a=Cr[i],_R(a)||Mt(i),c=new a(r(e.buffer,t),e.byteOffset,i==="DataView"?e.byteLength:e.length);break;case"DOMQuad":try{c=new DOMQuad(r(e.p1,t),r(e.p2,t),r(e.p3,t),r(e.p4,t))}catch(P){Jo?c=Jo(e):Mt(i)}break;case"FileList":if(a=Cr.DataTransfer,PG(a)){for(l=new a,d=0,y=ER(e);d<y;d++)l.items.add(r(e[d],t));c=l.files}else Jo?c=Jo(e):Mt(i);break;case"ImageData":try{c=new ImageData(r(e.data,t),e.width,e.height,{colorSpace:e.colorSpace})}catch(P){Jo?c=Jo(e):Mt(i)}break;default:if(Jo)c=Jo(e);else switch(i){case"BigInt":c=Vd(e.valueOf());break;case"Boolean":c=Vd(p7e(e));break;case"Number":c=Vd(d7e(e));break;case"String":c=Vd(h7e(e));break;case"Date":c=new TG(v7e(e));break;case"ArrayBuffer":a=Cr.DataView,!a&&typeof e.slice!="function"&&Mt(i);try{if(typeof e.slice=="function")c=e.slice(0);else for(y=e.byteLength,c=new ArrayBuffer(y),w=new a(e),S=new a(c),d=0;d<y;d++)S.setUint8(d,w.getUint8(d))}catch(P){throw new rs("ArrayBuffer is detached",Kd)}break;case"SharedArrayBuffer":c=e;break;case"Blob":try{c=e.slice(0,e.size,e.type)}catch(P){Mt(i)}break;case"DOMPoint":case"DOMPointReadOnly":a=Cr[i];try{c=a.fromPoint?a.fromPoint(e):new a(e.x,e.y,e.z,e.w)}catch(P){Mt(i)}break;case"DOMRect":case"DOMRectReadOnly":a=Cr[i];try{c=a.fromRect?a.fromRect(e):new a(e.x,e.y,e.width,e.height)}catch(P){Mt(i)}break;case"DOMMatrix":case"DOMMatrixReadOnly":a=Cr[i];try{c=a.fromMatrix?a.fromMatrix(e):new a(e)}catch(P){Mt(i)}break;case"AudioData":case"VideoFrame":PR(e.clone)||Mt(i);try{c=e.clone()}catch(P){SR(i)}break;case"File":try{c=new File([e],e.name,e)}catch(P){Mt(i)}break;case"CryptoKey":case"GPUCompilationMessage":case"GPUCompilationInfo":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":Mt(i);default:SR(i)}}if(Wb(t,e,c),o)switch(i){case"Array":case"Object":for(m=c7e(e),d=0,y=ER(m);d<y;d++)b=m[d],W6e(c,b,r(e[b],t));break;case"Map":e.forEach(function(P,R){Wb(c,r(R,t),r(P,t))});break;case"Set":e.forEach(function(P){l7e(c,r(P,t))});break;case"Error":gR(c,"message",r(e.message,t)),H6e(e,"cause")&&gR(c,"cause",r(e.cause,t)),u=="AggregateError"&&(c.errors=r(e.errors,t));case"DOMException":Y6e&&gR(c,"stack",r(e.stack,t))}return c},"structuredCloneInternal"),kG=Zo&&!Vb(function(){if(Q6e&&bR>92||J6e&&bR>94||X6e&&bR>97)return!1;var r=new ArrayBuffer(8),e=Zo(r,{transfer:[r]});return r.byteLength!=0||e.byteLength!=8}),w7e=n(function(e,t){if(!_R(e))throw RG("Transfer option cannot be converted to a sequence");var i=[];z6e(e,function(w){f7e(i,_G(w))});var o=0,a=ER(i),u,c,l,d,y,m,b;if(kG)for(d=Zo(i,{transfer:i});o<a;)Wb(t,i[o],d[o++]);else for(;o<a;){if(u=i[o++],IG(t,u))throw new rs("Duplicate transferable",Kd);switch(c=EG(u),c){case"ImageBitmap":l=Cr.OffscreenCanvas,PG(l)||Mt(c,wR);try{m=new l(u.width,u.height),b=m.getContext("bitmaprenderer"),b.transferFromImageBitmap(u),y=m.transferToImageBitmap()}catch(w){}break;case"AudioData":case"VideoFrame":(!PR(u.clone)||!PR(u.close))&&Mt(c,wR);try{y=u.clone(),u.close()}catch(w){}break;case"ArrayBuffer":case"MessagePort":case"OffscreenCanvas":case"ReadableStream":case"TransformStream":case"WritableStream":Mt(c,wR)}if(y===void 0)throw new rs("This object cannot be transferred: "+c,Kd);Wb(t,u,y)}},"tryToTransfer");B6e({global:!0,enumerable:!0,sham:!kG,forced:m7e},{structuredClone:n(function(e){var t=V6e(arguments.length,1)>1&&arguments[1]!=null?_G(arguments[1]):void 0,i=t?t.transfer:void 0,o;return i!==void 0&&(o=new Hb,w7e(i,o)),b7e(e,o)},"structuredClone")});Rz();var B9e=B(),$9e=le();B9e({target:"URL",proto:!0,enumerable:!0},{toJSON:n(function(){return $9e(URL.prototype.toString,this)},"toJSON")});$R();function lA(r){"@babel/helpers - typeof";return lA=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lA(r)}n(lA,"_typeof");var At=typeof globalThis!="undefined"&&globalThis||typeof self!="undefined"&&self||typeof At!="undefined"&&At,sn={searchParams:"URLSearchParams"in At,iterable:"Symbol"in At&&"iterator"in Symbol,blob:"FileReader"in At&&"Blob"in At&&function(){try{return new Blob,!0}catch(r){return!1}}(),formData:"FormData"in At,arrayBuffer:"ArrayBuffer"in At};function G9e(r){return r&&DataView.prototype.isPrototypeOf(r)}n(G9e,"isDataView");sn.arrayBuffer&&(Az=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],qz=ArrayBuffer.isView||function(r){return r&&Az.indexOf(Object.prototype.toString.call(r))>-1});var Az,qz;function oh(r){if(typeof r!="string"&&(r=String(r)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(r)||r==="")throw new TypeError('Invalid character in header field name: "'+r+'"');return r.toLowerCase()}n(oh,"normalizeName");function cA(r){return typeof r!="string"&&(r=String(r)),r}n(cA,"normalizeValue");function fA(r){var e={next:n(function(){var i=r.shift();return{done:i===void 0,value:i}},"next")};return sn.iterable&&(e[Symbol.iterator]=function(){return e}),e}n(fA,"iteratorFor");function Zr(r){this.map={},r instanceof Zr?r.forEach(function(e,t){this.append(t,e)},this):Array.isArray(r)?r.forEach(function(e){this.append(e[0],e[1])},this):r&&Object.getOwnPropertyNames(r).forEach(function(e){this.append(e,r[e])},this)}n(Zr,"Headers");Zr.prototype.append=function(r,e){r=oh(r),e=cA(e);var t=this.map[r];this.map[r]=t?t+", "+e:e};Zr.prototype.delete=function(r){delete this.map[oh(r)]};Zr.prototype.get=function(r){return r=oh(r),this.has(r)?this.map[r]:null};Zr.prototype.has=function(r){return this.map.hasOwnProperty(oh(r))};Zr.prototype.set=function(r,e){this.map[oh(r)]=cA(e)};Zr.prototype.forEach=function(r,e){for(var t in this.map)this.map.hasOwnProperty(t)&&r.call(e,this.map[t],t,this)};Zr.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),fA(r)};Zr.prototype.values=function(){var r=[];return this.forEach(function(e){r.push(e)}),fA(r)};Zr.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),fA(r)};sn.iterable&&(Zr.prototype[Symbol.iterator]=Zr.prototype.entries);function sA(r){if(r.bodyUsed)return Promise.reject(new TypeError("Already read"));r.bodyUsed=!0}n(sA,"consumed");function kz(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}n(kz,"fileReaderReady");function z9e(r){var e=new FileReader,t=kz(e);return e.readAsArrayBuffer(r),t}n(z9e,"readBlobAsArrayBuffer");function H9e(r){var e=new FileReader,t=kz(e);return e.readAsText(r),t}n(H9e,"readBlobAsText");function W9e(r){for(var e=new Uint8Array(r),t=new Array(e.length),i=0;i<e.length;i++)t[i]=String.fromCharCode(e[i]);return t.join("")}n(W9e,"readArrayBufferAsText");function Iz(r){if(r.slice)return r.slice(0);var e=new Uint8Array(r.byteLength);return e.set(new Uint8Array(r)),e.buffer}n(Iz,"bufferClone");function jz(){return this.bodyUsed=!1,this._initBody=function(r){this.bodyUsed=this.bodyUsed,this._bodyInit=r,r?typeof r=="string"?this._bodyText=r:sn.blob&&Blob.prototype.isPrototypeOf(r)?this._bodyBlob=r:sn.formData&&FormData.prototype.isPrototypeOf(r)?this._bodyFormData=r:sn.searchParams&&URLSearchParams.prototype.isPrototypeOf(r)?this._bodyText=r.toString():sn.arrayBuffer&&sn.blob&&G9e(r)?(this._bodyArrayBuffer=Iz(r.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):sn.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(r)||qz(r))?this._bodyArrayBuffer=Iz(r):this._bodyText=r=Object.prototype.toString.call(r):this._bodyText="",this.headers.get("content-type")||(typeof r=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):sn.searchParams&&URLSearchParams.prototype.isPrototypeOf(r)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},sn.blob&&(this.blob=function(){var r=sA(this);if(r)return r;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var r=sA(this);return r||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(z9e)}),this.text=function(){var r=sA(this);if(r)return r;if(this._bodyBlob)return H9e(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(W9e(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},sn.formData&&(this.formData=function(){return this.text().then(Y9e)}),this.json=function(){return this.text().then(JSON.parse)},this}n(jz,"Body");var V9e=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function K9e(r){var e=r.toUpperCase();return V9e.indexOf(e)>-1?e:r}n(K9e,"normalizeMethod");function us(r,e){if(!(this instanceof us))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e=e||{};var t=e.body;if(r instanceof us){if(r.bodyUsed)throw new TypeError("Already read");this.url=r.url,this.credentials=r.credentials,e.headers||(this.headers=new Zr(r.headers)),this.method=r.method,this.mode=r.mode,this.signal=r.signal,!t&&r._bodyInit!=null&&(t=r._bodyInit,r.bodyUsed=!0)}else this.url=String(r);if(this.credentials=e.credentials||this.credentials||"same-origin",(e.headers||!this.headers)&&(this.headers=new Zr(e.headers)),this.method=K9e(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&t)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(t),(this.method==="GET"||this.method==="HEAD")&&(e.cache==="no-store"||e.cache==="no-cache")){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+new Date().getTime());else{var o=/\?/;this.url+=(o.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}n(us,"Request");us.prototype.clone=function(){return new us(this,{body:this._bodyInit})};function Y9e(r){var e=new FormData;return r.trim().split("&").forEach(function(t){if(t){var i=t.split("="),o=i.shift().replace(/\+/g," "),a=i.join("=").replace(/\+/g," ");e.append(decodeURIComponent(o),decodeURIComponent(a))}}),e}n(Y9e,"decode");function X9e(r){var e=new Zr,t=r.replace(/\r?\n[\t ]+/g," ");return t.split("\r").map(function(i){return i.indexOf("\n")===0?i.substr(1,i.length):i}).forEach(function(i){var o=i.split(":"),a=o.shift().trim();if(a){var u=o.join(":").trim();e.append(a,u)}}),e}n(X9e,"parseHeaders");jz.call(us.prototype);function ea(r,e){if(!(this instanceof ea))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=e.status===void 0?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText=e.statusText===void 0?"":""+e.statusText,this.headers=new Zr(e.headers),this.url=e.url||"",this._initBody(r)}n(ea,"Response");jz.call(ea.prototype);ea.prototype.clone=function(){return new ea(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Zr(this.headers),url:this.url})};ea.error=function(){var r=new ea(null,{status:0,statusText:""});return r.type="error",r};var Q9e=[301,302,303,307,308];ea.redirect=function(r,e){if(Q9e.indexOf(e)===-1)throw new RangeError("Invalid status code");return new ea(null,{status:e,headers:{location:r}})};var os=At.DOMException;try{new os}catch(r){os=n(function(t,i){this.message=t,this.name=i;var o=Error(t);this.stack=o.stack},"DOMException"),os.prototype=Object.create(Error.prototype),os.prototype.constructor=os}function Fz(r,e){return new Promise(function(t,i){var o=new us(r,e);if(o.signal&&o.signal.aborted)return i(new os("Aborted","AbortError"));var a=new XMLHttpRequest;function u(){a.abort()}n(u,"abortXhr"),a.onload=function(){var l={status:a.status,statusText:a.statusText,headers:X9e(a.getAllResponseHeaders()||"")};l.url="responseURL"in a?a.responseURL:l.headers.get("X-Request-URL");var d="response"in a?a.response:a.responseText;setTimeout(function(){t(new ea(d,l))},0)},a.onerror=function(){setTimeout(function(){i(new TypeError("Network request failed"))},0)},a.ontimeout=function(){setTimeout(function(){i(new TypeError("Network request failed"))},0)},a.onabort=function(){setTimeout(function(){i(new os("Aborted","AbortError"))},0)};function c(l){try{return l===""&&At.location.href?At.location.href:l}catch(d){return l}}n(c,"fixUrl"),a.open(o.method,c(o.url),!0),o.credentials==="include"?a.withCredentials=!0:o.credentials==="omit"&&(a.withCredentials=!1),"responseType"in a&&(sn.blob?a.responseType="blob":sn.arrayBuffer&&o.headers.get("Content-Type")&&o.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(a.responseType="arraybuffer")),e&&lA(e.headers)==="object"&&!(e.headers instanceof Zr)?Object.getOwnPropertyNames(e.headers).forEach(function(l){a.setRequestHeader(l,cA(e.headers[l]))}):o.headers.forEach(function(l,d){a.setRequestHeader(d,l)}),o.signal&&(o.signal.addEventListener("abort",u),a.onreadystatechange=function(){a.readyState===4&&o.signal.removeEventListener("abort",u)}),a.send(typeof o._bodyInit=="undefined"?null:o._bodyInit)})}n(Fz,"fetch");Fz.polyfill=!0;At.fetch||(At.fetch=Fz,At.Headers=Zr,At.Request=us,At.Response=ea);function pA(r){"@babel/helpers - typeof";return pA=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pA(r)}n(pA,"_typeof");(function(r){typeof define=="function"&&define.amd?define(r):r()})(function(){"use strict";function r(I,T){if(!(I instanceof T))throw new TypeError("Cannot call a class as a function")}n(r,"_classCallCheck");function e(I,T){for(var F=0;F<T.length;F++){var k=T[F];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(I,k.key,k)}}n(e,"_defineProperties");function t(I,T,F){return T&&e(I.prototype,T),F&&e(I,F),I}n(t,"_createClass");function i(I,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(T&&T.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),T&&a(I,T)}n(i,"_inherits");function o(I){return o=Object.setPrototypeOf?Object.getPrototypeOf:n(function(F){return F.__proto__||Object.getPrototypeOf(F)},"_getPrototypeOf"),o(I)}n(o,"_getPrototypeOf");function a(I,T){return a=Object.setPrototypeOf||n(function(k,U){return k.__proto__=U,k},"_setPrototypeOf"),a(I,T)}n(a,"_setPrototypeOf");function u(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(I){return!1}}n(u,"_isNativeReflectConstruct");function c(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}n(c,"_assertThisInitialized");function l(I,T){return T&&(pA(T)==="object"||typeof T=="function")?T:c(I)}n(l,"_possibleConstructorReturn");function d(I){var T=u();return n(function(){var k=o(I),U;if(T){var D=o(this).constructor;U=Reflect.construct(k,arguments,D)}else U=k.apply(this,arguments);return l(this,U)},"_createSuperInternal")}n(d,"_createSuper");function y(I,T){for(;!Object.prototype.hasOwnProperty.call(I,T)&&(I=o(I),I!==null););return I}n(y,"_superPropBase");function m(I,T,F){return typeof Reflect!="undefined"&&Reflect.get?m=Reflect.get:m=n(function(U,D,H){var $=y(U,D);if($){var V=Object.getOwnPropertyDescriptor($,D);return V.get?V.get.call(H):V.value}},"_get"),m(I,T,F||I)}n(m,"_get");var b=function(){function I(){r(this,I),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return n(I,"Emitter"),t(I,[{key:"addEventListener",value:n(function(F,k,U){F in this.listeners||(this.listeners[F]=[]),this.listeners[F].push({callback:k,options:U})},"addEventListener")},{key:"removeEventListener",value:n(function(F,k){if(F in this.listeners){for(var U=this.listeners[F],D=0,H=U.length;D<H;D++)if(U[D].callback===k){U.splice(D,1);return}}},"removeEventListener")},{key:"dispatchEvent",value:n(function(F){var k=this;if(F.type in this.listeners){for(var U=this.listeners[F.type],D=U.slice(),H=n(function(){W=D[$];try{W.callback.call(k,F)}catch(p){Promise.resolve().then(function(){throw p})}W.options&&W.options.once&&k.removeEventListener(F.type,W.callback)},"_loop"),$=0,V=D.length;$<V;$++){var W;H()}return!F.defaultPrevented}},"dispatchEvent")}]),I}(),w=function(I){i(F,I);var T=d(F);function F(){var k;return r(this,F),k=T.call(this),k.listeners||b.call(c(k)),Object.defineProperty(c(k),"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(c(k),"onabort",{value:null,writable:!0,configurable:!0}),k}return n(F,"AbortSignal"),t(F,[{key:"toString",value:n(function(){return"[object AbortSignal]"},"toString")},{key:"dispatchEvent",value:n(function(U){U.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,U)),m(o(F.prototype),"dispatchEvent",this).call(this,U)},"dispatchEvent")}]),F}(b),S=function(){function I(){r(this,I),Object.defineProperty(this,"signal",{value:new w,writable:!0,configurable:!0})}return n(I,"AbortController"),t(I,[{key:"abort",value:n(function(){var F;try{F=new Event("abort")}catch(k){typeof document!="undefined"?document.createEvent?(F=document.createEvent("Event"),F.initEvent("abort",!1,!1)):(F=document.createEventObject(),F.type="abort"):F={type:"abort",bubbles:!1,cancelable:!1}}this.signal.dispatchEvent(F)},"abort")},{key:"toString",value:n(function(){return"[object AbortController]"},"toString")}]),I}();typeof Symbol!="undefined"&&Symbol.toStringTag&&(S.prototype[Symbol.toStringTag]="AbortController",w.prototype[Symbol.toStringTag]="AbortSignal");function P(I){return I.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof I.Request=="function"&&!I.Request.prototype.hasOwnProperty("signal")||!I.AbortController}n(P,"polyfillNeeded");function R(I){typeof I=="function"&&(I={fetch:I});var T=I,F=T.fetch,k=T.Request,U=k===void 0?F.Request:k,D=T.AbortController,H=T.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL,$=H===void 0?!1:H;if(!P({fetch:F,Request:U,AbortController:D,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:$}))return{fetch:F,Request:V};var V=U;(V&&!V.prototype.hasOwnProperty("signal")||$)&&(V=n(function(s,f){var v;f&&f.signal&&(v=f.signal,delete f.signal);var g=new U(s,f);return v&&Object.defineProperty(g,"signal",{writable:!1,enumerable:!1,configurable:!0,value:v}),g},"Request"),V.prototype=U.prototype);var W=F,Y=n(function(s,f){var v=V&&V.prototype.isPrototypeOf(s)?s.signal:f?f.signal:void 0;if(v){var g;try{g=new DOMException("Aborted","AbortError")}catch(O){g=new Error("Aborted"),g.name="AbortError"}if(v.aborted)return Promise.reject(g);var h=new Promise(function(O,E){v.addEventListener("abort",function(){return E(g)},{once:!0})});return f&&f.signal&&delete f.signal,Promise.race([h,W(s,f)])}return W(s,f)},"abortableFetch");return{fetch:Y,Request:V}}n(R,"abortableFetchDecorator"),function(I){if(P(I)){if(!I.fetch){console.warn("fetch() is not available, cannot install abortcontroller-polyfill");return}var T=R(I),F=T.fetch,k=T.Request;I.fetch=F,I.Request=k,Object.defineProperty(I,"AbortController",{writable:!0,enumerable:!1,configurable:!0,value:S}),Object.defineProperty(I,"AbortSignal",{writable:!0,enumerable:!1,configurable:!0,value:w})}}(typeof self!="undefined"?self:global)});(function(){var r=n(function(t,i,o){var a=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia;return a?new Promise(function(u,c){a.call(navigator,t,u,c)}):Promise.reject(new Error("getUserMedia is not implemented in this browser"))},"promisifiedOldGUM");navigator.mediaDevices===void 0&&(navigator.mediaDevices={}),navigator.mediaDevices.getUserMedia===void 0&&(navigator.mediaDevices.getUserMedia=r)})();var Lz=function(){if(typeof Map!="undefined")return Map;function r(e,t){var i=-1;return e.some(function(o,a){return o[0]===t?(i=a,!0):!1}),i}return n(r,"getIndex"),function(){function e(){this.__entries__=[]}return n(e,"class_1"),Object.defineProperty(e.prototype,"size",{get:n(function(){return this.__entries__.length},"get"),enumerable:!0,configurable:!0}),e.prototype.get=function(t){var i=r(this.__entries__,t),o=this.__entries__[i];return o&&o[1]},e.prototype.set=function(t,i){var o=r(this.__entries__,t);~o?this.__entries__[o][1]=i:this.__entries__.push([t,i])},e.prototype.delete=function(t){var i=this.__entries__,o=r(i,t);~o&&i.splice(o,1)},e.prototype.has=function(t){return!!~r(this.__entries__,t)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,i){i===void 0&&(i=null);for(var o=0,a=this.__entries__;o<a.length;o++){var u=a[o];t.call(i,u[1],u[0])}},e}()}(),dA=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,ow=function(){return typeof global!="undefined"&&global.Math===Math?global:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),J9e=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(ow):function(r){return setTimeout(function(){return r(Date.now())},1e3/60)}}(),Z9e=2;function e$e(r,e){var t=!1,i=!1,o=0;function a(){t&&(t=!1,r()),i&&c()}n(a,"resolvePending");function u(){J9e(a)}n(u,"timeoutCallback");function c(){var l=Date.now();if(t){if(l-o<Z9e)return;i=!0}else t=!0,i=!1,setTimeout(u,e);o=l}return n(c,"proxy"),c}n(e$e,"throttle");var r$e=20,t$e=["top","right","bottom","left","width","height","size","weight"],n$e=typeof MutationObserver!="undefined",i$e=function(){function r(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=e$e(this.refresh.bind(this),r$e)}return n(r,"ResizeObserverController"),r.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},r.prototype.removeObserver=function(e){var t=this.observers_,i=t.indexOf(e);~i&&t.splice(i,1),!t.length&&this.connected_&&this.disconnect_()},r.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},r.prototype.updateObservers_=function(){var e=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return e.forEach(function(t){return t.broadcastActive()}),e.length>0},r.prototype.connect_=function(){!dA||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),n$e?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},r.prototype.disconnect_=function(){!dA||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},r.prototype.onTransitionEnd_=function(e){var t=e.propertyName,i=t===void 0?"":t,o=t$e.some(function(a){return!!~i.indexOf(a)});o&&this.refresh()},r.getInstance=function(){return this.instance_||(this.instance_=new r),this.instance_},r.instance_=null,r}(),Nz=n(function(e,t){for(var i=0,o=Object.keys(t);i<o.length;i++){var a=o[i];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},"defineConfigurable"),Lc=n(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||ow},"getWindowOf"),xz=sw(0,0,0,0);function uw(r){return parseFloat(r)||0}n(uw,"toFloat");function Cz(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return e.reduce(function(i,o){var a=r["border-"+o+"-width"];return i+uw(a)},0)}n(Cz,"getBordersSize");function a$e(r){for(var e=["top","right","bottom","left"],t={},i=0,o=e;i<o.length;i++){var a=o[i],u=r["padding-"+a];t[a]=uw(u)}return t}n(a$e,"getPaddings");function o$e(r){var e=r.getBBox();return sw(0,0,e.width,e.height)}n(o$e,"getSVGContentRect");function u$e(r){var e=r.clientWidth,t=r.clientHeight;if(!e&&!t)return xz;var i=Lc(r).getComputedStyle(r),o=a$e(i),a=o.left+o.right,u=o.top+o.bottom,c=uw(i.width),l=uw(i.height);if(i.boxSizing==="border-box"&&(Math.round(c+a)!==e&&(c-=Cz(i,"left","right")+a),Math.round(l+u)!==t&&(l-=Cz(i,"top","bottom")+u)),!l$e(r)){var d=Math.round(c+a)-e,y=Math.round(l+u)-t;Math.abs(d)!==1&&(c-=d),Math.abs(y)!==1&&(l-=y)}return sw(o.left,o.top,c,l)}n(u$e,"getHTMLElementContentRect");var s$e=function(){return typeof SVGGraphicsElement!="undefined"?function(r){return r instanceof Lc(r).SVGGraphicsElement}:function(r){return r instanceof Lc(r).SVGElement&&typeof r.getBBox=="function"}}();function l$e(r){return r===Lc(r).document.documentElement}n(l$e,"isDocumentElement");function c$e(r){return dA?s$e(r)?o$e(r):u$e(r):xz}n(c$e,"getContentRect");function f$e(r){var e=r.x,t=r.y,i=r.width,o=r.height,a=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,u=Object.create(a.prototype);return Nz(u,{x:e,y:t,width:i,height:o,top:t,right:e+i,bottom:o+t,left:e}),u}n(f$e,"createReadOnlyRect");function sw(r,e,t,i){return{x:r,y:e,width:t,height:i}}n(sw,"createRectInit");var p$e=function(){function r(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=sw(0,0,0,0),this.target=e}return n(r,"ResizeObservation"),r.prototype.isActive=function(){var e=c$e(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},r.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},r}(),d$e=function(){function r(e,t){var i=f$e(t);Nz(this,{target:e,contentRect:i})}return n(r,"ResizeObserverEntry"),r}(),h$e=function(){function r(e,t,i){if(this.activeObservations_=[],this.observations_=new Lz,typeof e!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=i}return n(r,"ResizeObserverSPI"),r.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(e instanceof Lc(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new p$e(e)),this.controller_.addObserver(this),this.controller_.refresh())}},r.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(e instanceof Lc(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},r.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},r.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},r.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(i){return new d$e(i.target,i.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},r.prototype.clearActive=function(){this.activeObservations_.splice(0)},r.prototype.hasActive=function(){return this.activeObservations_.length>0},r}(),Dz=typeof WeakMap!="undefined"?new WeakMap:new Lz,Mz=function(){function r(e){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=i$e.getInstance(),i=new h$e(e,t,this);Dz.set(this,i)}return n(r,"ResizeObserver"),r}();["observe","unobserve","disconnect"].forEach(function(r){Mz.prototype[r]=function(){var e;return(e=Dz.get(this))[r].apply(e,arguments)}});var v$e=function(){return typeof ow.ResizeObserver!="undefined"?ow.ResizeObserver:Mz}(),Uz=v$e;var qBr=Ce(Bz(),1);var qF={};pm(qF,{Audio:function(){return iS},AwsS3:function(){return ej},AwsS3Multipart:function(){return yy},BasePlugin:function(){return fr},Box:function(){return Tf},Compressor:function(){return rte},Core:function(){return icr},Dashboard:function(){return z0},DefaultStore:function(){return yw},DragDrop:function(){return W0},DropTarget:function(){return mk},Dropbox:function(){return Af},Facebook:function(){return qf},FileInput:function(){return X0},Form:function(){return PF},GoldenRetriever:function(){return TF},GoogleDrive:function(){return Cf},ImageEditor:function(){return eS},Informer:function(){return lf},Instagram:function(){return Nf},OneDrive:function(){return Df},ProgressBar:function(){return tS},ReduxDevTools:function(){return IF},ReduxStore:function(){return ZK},RemoteSources:function(){return r2},ScreenCapture:function(){return IS},StatusBar:function(){return af},ThumbnailGenerator:function(){return jv},Transloadit:function(){return wu},Tus:function(){return op},UIPlugin:function(){return Ee},Unsplash:function(){return Uf},Uppy:function(){return BA},Url:function(){return io},Webcam:function(){return LS},XHRUpload:function(){return mF},Zoom:function(){return Gf},debugLogger:function(){return hh},locales:function(){return ocr},server:function(){return pI},views:function(){return acr}});function $z(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n($z,"ownKeys");function cw(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?$z(Object(t),!0).forEach(function(i){y$e(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):$z(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(cw,"_objectSpread");function y$e(r,e,t){return e=Hz(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(y$e,"_defineProperty");function Nc(r){"@babel/helpers - typeof";return Nc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nc(r)}n(Nc,"_typeof");function m$e(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(m$e,"_classCallCheck");function Gz(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,Hz(i.key),i)}}n(Gz,"_defineProperties");function g$e(r,e,t){return e&&Gz(r.prototype,e),t&&Gz(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(g$e,"_createClass");function Hz(r){var e=b$e(r,"string");return Nc(e)==="symbol"?e:String(e)}n(Hz,"_toPropertyKey");function b$e(r,e){if(Nc(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Nc(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(b$e,"_toPrimitive");function fw(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}n(fw,"_classPrivateFieldLooseBase");var w$e=0;function Wz(r){return"__private_"+w$e+++"_"+r}n(Wz,"_classPrivateFieldLooseKey");function S$e(r,e,t){var i=[];return r.forEach(function(o){return typeof o!="string"?i.push(o):e[Symbol.split](o).forEach(function(a,u,c){a!==""&&i.push(a),u<c.length-1&&i.push(t)})}),i}n(S$e,"insertReplacement");function zz(r,e){var t=/\$/g,i="$$$$",o=[r];if(e==null)return o;for(var a=0,u=Object.keys(e);a<u.length;a++){var c=u[a];if(c!=="_"){var l=e[c];typeof l=="string"&&(l=t[Symbol.replace](l,i)),o=S$e(o,new RegExp("%\\{".concat(c,"\\}"),"g"),l)}}return o}n(zz,"interpolate");var O$e=n(function(e){throw new Error("missing string: ".concat(e))},"defaultOnMissingKey"),sh=Wz("onMissingKey"),lh=Wz("apply"),pw=function(){function r(e,t){m$e(this,r);var i=t===void 0?{}:t,o=i.onMissingKey,a=o===void 0?O$e:o;Object.defineProperty(this,lh,{value:P$e}),Object.defineProperty(this,sh,{writable:!0,value:void 0}),this.locale={strings:{},pluralize:n(function(c){return c===1?0:1},"pluralize")},Array.isArray(e)?e.forEach(fw(this,lh)[lh],this):fw(this,lh)[lh](e),fw(this,sh)[sh]=a}return n(r,"Translator"),g$e(r,[{key:"translate",value:n(function(t,i){return this.translateArray(t,i).join("")},"translate")},{key:"translateArray",value:n(function(t,i){var o=this.locale.strings[t];o==null&&(fw(this,sh)[sh](t),o=t);var a=Nc(o)==="object";if(a){if(i&&typeof i.smart_count!="undefined"){var u=this.locale.pluralize(i.smart_count);return zz(o[u],i)}throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}if(typeof o!="string")throw new Error("string was not a string");return zz(o,i)},"translateArray")}]),r}();function P$e(r){if(r!=null&&r.strings){var e=this.locale;this.locale=cw(cw({},e),{},{strings:cw(cw({},e.strings),r.strings)}),this.locale.pluralize=r.pluralize||e.pluralize}}n(P$e,"_apply2");var uW=Ce(vA(),1);var _$e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var It=n(function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:21,t="",i=e;i--;)t+=_$e[Math.random()*64|0];return t},"nanoid");var sW=Ce(hw(),1);function fh(r){"@babel/helpers - typeof";return fh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fh(r)}n(fh,"_typeof");function TH(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(TH,"ownKeys");function EA(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?TH(Object(t),!0).forEach(function(i){mGe(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):TH(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(EA,"_objectSpread");function mGe(r,e,t){return e=AH(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(mGe,"_defineProperty");function gGe(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(gGe,"_classCallCheck");function RH(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,AH(i.key),i)}}n(RH,"_defineProperties");function bGe(r,e,t){return e&&RH(r.prototype,e),t&&RH(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(bGe,"_createClass");function AH(r){var e=wGe(r,"string");return fh(e)==="symbol"?e:String(e)}n(AH,"_toPropertyKey");function wGe(r,e){if(fh(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(fh(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(wGe,"_toPrimitive");function vw(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}n(vw,"_classPrivateFieldLooseBase");var SGe=0;function IH(r){return"__private_"+SGe+++"_"+r}n(IH,"_classPrivateFieldLooseKey");var OGe={version:"3.2.0"},ss=IH("callbacks"),TA=IH("publish"),qH=function(){function r(){gGe(this,r),Object.defineProperty(this,TA,{value:PGe}),this.state={},Object.defineProperty(this,ss,{writable:!0,value:new Set})}return n(r,"DefaultStore"),bGe(r,[{key:"getState",value:n(function(){return this.state},"getState")},{key:"setState",value:n(function(t){var i=EA({},this.state),o=EA(EA({},this.state),t);this.state=o,vw(this,TA)[TA](i,o,t)},"setState")},{key:"subscribe",value:n(function(t){var i=this;return vw(this,ss)[ss].add(t),function(){vw(i,ss)[ss].delete(t)}},"subscribe")}]),r}();function PGe(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];vw(this,ss)[ss].forEach(function(i){i.apply(void 0,e)})}n(PGe,"_publish2");qH.VERSION=OGe.version;var yw=qH;function ra(r){var e=r.lastIndexOf(".");return e===-1||e===r.length-1?{name:r,extension:void 0}:{name:r.slice(0,e),extension:r.slice(e+1)}}n(ra,"getFileNameAndExtension");var ph={__proto__:null,md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",webp:"image/webp",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",dicom:"application/dicom",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function ls(r){var e;if(r.type)return r.type;var t=r.name?(e=ra(r.name).extension)==null?void 0:e.toLowerCase():null;return t&&t in ph?ph[t]:"application/octet-stream"}n(ls,"getFileType");function dh(r){"@babel/helpers - typeof";return dh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dh(r)}n(dh,"_typeof");function kH(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(kH,"ownKeys");function jH(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?kH(Object(t),!0).forEach(function(i){_Ge(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):kH(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(jH,"_objectSpread");function _Ge(r,e,t){return e=EGe(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(_Ge,"_defineProperty");function EGe(r){var e=TGe(r,"string");return dh(e)==="symbol"?e:String(e)}n(EGe,"_toPropertyKey");function TGe(r,e){if(dh(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(dh(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(TGe,"_toPrimitive");function RGe(r){return r.charCodeAt(0).toString(32)}n(RGe,"encodeCharacter");function FH(r){var e="";return r.replace(/[^A-Z0-9]/gi,function(t){return e+="-".concat(RGe(t)),"/"})+e}n(FH,"encodeFilename");function CH(r){var e="uppy";return typeof r.name=="string"&&(e+="-".concat(FH(r.name.toLowerCase()))),r.type!==void 0&&(e+="-".concat(r.type)),r.meta&&typeof r.meta.relativePath=="string"&&(e+="-".concat(FH(r.meta.relativePath.toLowerCase()))),r.data.size!==void 0&&(e+="-".concat(r.data.size)),r.data.lastModified!==void 0&&(e+="-".concat(r.data.lastModified)),e}n(CH,"generateFileID");function AGe(r){if(!r.isRemote||!r.remote)return!1;var e=new Set(["box","dropbox","drive","facebook","unsplash"]);return e.has(r.remote.provider)}n(AGe,"hasFileStableId");function mw(r){if(AGe(r))return r.id;var e=ls(r);return CH(jH(jH({},r),{},{type:e}))}n(mw,"getSafeFileId");function IGe(r,e){return FGe(r)||jGe(r,e)||kGe(r,e)||qGe()}n(IGe,"_slicedToArray");function qGe(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n(qGe,"_nonIterableRest");function kGe(r,e){if(r){if(typeof r=="string")return LH(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return LH(r,e)}}n(kGe,"_unsupportedIterableToArray");function LH(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=r[t];return i}n(LH,"_arrayLikeToArray");function jGe(r,e){var t=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var i,o,a,u,c=[],l=!0,d=!1;try{if(a=(t=t.call(r)).next,e===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(i=a.call(t)).done)&&(c.push(i.value),c.length!==e);l=!0);}catch(y){d=!0,o=y}finally{try{if(!l&&t.return!=null&&(u=t.return(),Object(u)!==u))return}finally{if(d)throw o}}return c}}n(jGe,"_iterableToArrayLimit");function FGe(r){if(Array.isArray(r))return r}n(FGe,"_arrayWithHoles");function RA(r){if(r==null&&typeof navigator!="undefined"&&(r=navigator.userAgent),!r)return!0;var e=/Edge\/(\d+\.\d+)/.exec(r);if(!e)return!0;var t=e[1],i=t.split("."),o=IGe(i,2),a=o[0],u=o[1];return a=parseInt(a,10),u=parseInt(u,10),a<15||a===15&&u<15063||a>18||a===18&&u>=18218}n(RA,"supportsUploadProgress");function AA(r,e){return e.name?e.name:r.split("/")[0]==="image"?"".concat(r.split("/")[0],".").concat(r.split("/")[1]):"noname"}n(AA,"getFileName");function IA(r){return r<10?"0".concat(r):r.toString()}n(IA,"pad");function xc(){var r=new Date,e=IA(r.getHours()),t=IA(r.getMinutes()),i=IA(r.getSeconds());return"".concat(e,":").concat(t,":").concat(i)}n(xc,"getTimeStamp");var NH={debug:n(function(){},"debug"),warn:n(function(){},"warn"),error:n(function(){for(var e,t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return(e=console).error.apply(e,["[Uppy] [".concat(xc(),"]")].concat(i))},"error")},hh={debug:n(function(){for(var e,t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return(e=console).debug.apply(e,["[Uppy] [".concat(xc(),"]")].concat(i))},"debug"),warn:n(function(){for(var e,t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return(e=console).warn.apply(e,["[Uppy] [".concat(xc(),"]")].concat(i))},"warn"),error:n(function(){for(var e,t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return(e=console).error.apply(e,["[Uppy] [".concat(xc(),"]")].concat(i))},"error")};var ww=Ce(gw(),1),YH=Ce($H(),1);function Dc(r){"@babel/helpers - typeof";return Dc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dc(r)}n(Dc,"_typeof");function GH(r,e){var t=typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=NGe(r))||e&&r&&typeof r.length=="number"){t&&(r=t);var i=0,o=n(function(){},"F");return{s:o,n:n(function(){return i>=r.length?{done:!0}:{done:!1,value:r[i++]}},"n"),e:n(function(d){throw d},"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=!0,u=!1,c;return{s:n(function(){t=t.call(r)},"s"),n:n(function(){var d=t.next();return a=d.done,d},"n"),e:n(function(d){u=!0,c=d},"e"),f:n(function(){try{!a&&t.return!=null&&t.return()}finally{if(u)throw c}},"f")}}n(GH,"_createForOfIteratorHelper");function NGe(r,e){if(r){if(typeof r=="string")return zH(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return zH(r,e)}}n(NGe,"_unsupportedIterableToArray");function zH(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=r[t];return i}n(zH,"_arrayLikeToArray");function HH(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,xGe(i.key),i)}}n(HH,"_defineProperties");function WH(r,e,t){return e&&HH(r.prototype,e),t&&HH(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(WH,"_createClass");function xGe(r){var e=DGe(r,"string");return Dc(e)==="symbol"?e:String(e)}n(xGe,"_toPropertyKey");function DGe(r,e){if(Dc(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Dc(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(DGe,"_toPrimitive");function VH(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(VH,"_classCallCheck");function MGe(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&vh(r,e)}n(MGe,"_inherits");function UGe(r){var e=KH();return n(function(){var i=yh(r),o;if(e){var a=yh(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return BGe(this,o)},"_createSuperInternal")}n(UGe,"_createSuper");function BGe(r,e){if(e&&(Dc(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $Ge(r)}n(BGe,"_possibleConstructorReturn");function $Ge(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n($Ge,"_assertThisInitialized");function jA(r){var e=typeof Map=="function"?new Map:void 0;return jA=n(function(i){if(i===null||!GGe(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(i))return e.get(i);e.set(i,o)}function o(){return bw(i,arguments,yh(this).constructor)}return n(o,"Wrapper"),o.prototype=Object.create(i.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),vh(o,i)},"_wrapNativeSuper"),jA(r)}n(jA,"_wrapNativeSuper");function bw(r,e,t){return KH()?bw=Reflect.construct.bind():bw=n(function(o,a,u){var c=[null];c.push.apply(c,a);var l=Function.bind.apply(o,c),d=new l;return u&&vh(d,u.prototype),d},"_construct"),bw.apply(null,arguments)}n(bw,"_construct");function KH(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(KH,"_isNativeReflectConstruct");function GGe(r){return Function.toString.call(r).indexOf("[native code]")!==-1}n(GGe,"_isNativeFunction");function vh(r,e){return vh=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),vh(r,e)}n(vh,"_setPrototypeOf");function yh(r){return yh=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),yh(r)}n(yh,"_getPrototypeOf");var XH={maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},ei=function(r){MGe(t,r);var e=UGe(t);function t(i,o){var a;VH(this,t);var u=o===void 0?{}:o,c=u.isUserFacing,l=c===void 0?!0:c,d=u.file;return a=e.call(this,i),a.isRestriction=!0,a.isUserFacing=l,d!=null&&(a.file=d),a}return n(t,"RestrictionError"),WH(t)}(jA(Error)),QH=function(){function r(e,t){VH(this,r),this.i18n=t,this.getOpts=function(){var i=e();if(i.restrictions.allowedFileTypes!=null&&!Array.isArray(i.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");return i}}return n(r,"Restricter"),WH(r,[{key:"validateAggregateRestrictions",value:n(function(t,i){var o=this.getOpts().restrictions,a=o.maxTotalFileSize,u=o.maxNumberOfFiles;if(u){var c=t.filter(function(b){return!b.isGhost});if(c.length+i.length>u)throw new ei("".concat(this.i18n("youCanOnlyUploadX",{smart_count:u})))}if(a){var l=t.reduce(function(b,w){return b+w.size},0),d=GH(i),y;try{for(d.s();!(y=d.n()).done;){var m=y.value;if(m.size!=null&&(l+=m.size,l>a))throw new ei(this.i18n("exceedsSize",{size:(0,ww.default)(a),file:m.name}))}}catch(b){d.e(b)}finally{d.f()}}},"validateAggregateRestrictions")},{key:"validateSingleFile",value:n(function(t){var i=this.getOpts().restrictions,o=i.maxFileSize,a=i.minFileSize,u=i.allowedFileTypes;if(u){var c=u.some(function(d){return d.includes("/")?t.type?(0,YH.default)(t.type.replace(/;.*?$/,""),d):!1:d[0]==="."&&t.extension?t.extension.toLowerCase()===d.slice(1).toLowerCase():!1});if(!c){var l=u.join(", ");throw new ei(this.i18n("youCanOnlyUploadFileTypes",{types:l}),{file:t})}}if(o&&t.size!=null&&t.size>o)throw new ei(this.i18n("exceedsSize",{size:(0,ww.default)(o),file:t.name}),{file:t});if(a&&t.size!=null&&t.size<a)throw new ei(this.i18n("inferiorSize",{size:(0,ww.default)(a)}),{file:t})},"validateSingleFile")},{key:"validate",value:n(function(t,i){var o=this;i.forEach(function(a){o.validateSingleFile(a)}),this.validateAggregateRestrictions(t,i)},"validate")},{key:"validateMinNumberOfFiles",value:n(function(t){var i=this.getOpts().restrictions.minNumberOfFiles;if(Object.keys(t).length<i)throw new ei(this.i18n("youHaveToAtLeastSelectX",{smart_count:i}))},"validateMinNumberOfFiles")},{key:"getMissingRequiredMetaFields",value:n(function(t){var i=new ei(this.i18n("missingRequiredMetaFieldOnFile",{fileName:t.name})),o=this.getOpts().restrictions.requiredMetaFields,a=[],u=GH(o),c;try{for(u.s();!(c=u.n()).done;){var l=c.value;(!Object.hasOwn(t.meta,l)||t.meta[l]==="")&&a.push(l)}}catch(d){u.e(d)}finally{u.f()}return{missingFields:a,error:i}},"getMissingRequiredMetaFields")}]),r}();var JH={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",noSearchResults:"Unfortunately, there are no results for this search",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",loadedXFiles:"Loaded %{numFiles} files",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",search:"Search",resetSearch:"Reset search",emptyFolderAdded:"No files were added from empty folder",addedNumFiles:"Added %{numFiles} file(s)",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"},additionalRestrictionsFailed:"%{count} additional restrictions were not fulfilled"}};var zGe=["isGhost"];function NA(){"use strict";NA=n(function(){return r},"_regeneratorRuntime");var r={},e=Object.prototype,t=e.hasOwnProperty,i=Object.defineProperty||function(p,s,f){p[s]=f.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(p,s,f){return Object.defineProperty(p,s,{value:f,enumerable:!0,configurable:!0,writable:!0}),p[s]}n(l,"define");try{l({},"")}catch(p){l=n(function(f,v,g){return f[v]=g},"define")}function d(p,s,f,v){var g=s&&s.prototype instanceof b?s:b,h=Object.create(g.prototype),O=new V(v||[]);return i(h,"_invoke",{value:U(p,f,O)}),h}n(d,"wrap");function y(p,s,f){try{return{type:"normal",arg:p.call(s,f)}}catch(v){return{type:"throw",arg:v}}}n(y,"tryCatch"),r.wrap=d;var m={};function b(){}n(b,"Generator");function w(){}n(w,"GeneratorFunction");function S(){}n(S,"GeneratorFunctionPrototype");var P={};l(P,a,function(){return this});var R=Object.getPrototypeOf,I=R&&R(R(W([])));I&&I!==e&&t.call(I,a)&&(P=I);var T=S.prototype=b.prototype=Object.create(P);function F(p){["next","throw","return"].forEach(function(s){l(p,s,function(f){return this._invoke(s,f)})})}n(F,"defineIteratorMethods");function k(p,s){function f(g,h,O,E){var A=y(p[g],p,h);if(A.type!=="throw"){var C=A.arg,N=C.value;return N&&Pi(N)=="object"&&t.call(N,"__await")?s.resolve(N.__await).then(function(M){f("next",M,O,E)},function(M){f("throw",M,O,E)}):s.resolve(N).then(function(M){C.value=M,O(C)},function(M){return f("throw",M,O,E)})}E(A.arg)}n(f,"invoke");var v;i(this,"_invoke",{value:n(function(h,O){function E(){return new s(function(A,C){f(h,O,A,C)})}return n(E,"callInvokeWithMethodAndArg"),v=v?v.then(E,E):E()},"value")})}n(k,"AsyncIterator");function U(p,s,f){var v="suspendedStart";return function(g,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(g==="throw")throw h;return Y()}for(f.method=g,f.arg=h;;){var O=f.delegate;if(O){var E=D(O,f);if(E){if(E===m)continue;return E}}if(f.method==="next")f.sent=f._sent=f.arg;else if(f.method==="throw"){if(v==="suspendedStart")throw v="completed",f.arg;f.dispatchException(f.arg)}else f.method==="return"&&f.abrupt("return",f.arg);v="executing";var A=y(p,s,f);if(A.type==="normal"){if(v=f.done?"completed":"suspendedYield",A.arg===m)continue;return{value:A.arg,done:f.done}}A.type==="throw"&&(v="completed",f.method="throw",f.arg=A.arg)}}}n(U,"makeInvokeMethod");function D(p,s){var f=s.method,v=p.iterator[f];if(v===void 0)return s.delegate=null,f==="throw"&&p.iterator.return&&(s.method="return",s.arg=void 0,D(p,s),s.method==="throw")||f!=="return"&&(s.method="throw",s.arg=new TypeError("The iterator does not provide a '"+f+"' method")),m;var g=y(v,p.iterator,s.arg);if(g.type==="throw")return s.method="throw",s.arg=g.arg,s.delegate=null,m;var h=g.arg;return h?h.done?(s[p.resultName]=h.value,s.next=p.nextLoc,s.method!=="return"&&(s.method="next",s.arg=void 0),s.delegate=null,m):h:(s.method="throw",s.arg=new TypeError("iterator result is not an object"),s.delegate=null,m)}n(D,"maybeInvokeDelegate");function H(p){var s={tryLoc:p[0]};1 in p&&(s.catchLoc=p[1]),2 in p&&(s.finallyLoc=p[2],s.afterLoc=p[3]),this.tryEntries.push(s)}n(H,"pushTryEntry");function $(p){var s=p.completion||{};s.type="normal",delete s.arg,p.completion=s}n($,"resetTryEntry");function V(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(H,this),this.reset(!0)}n(V,"Context");function W(p){if(p){var s=p[a];if(s)return s.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var f=-1,v=n(function g(){for(;++f<p.length;)if(t.call(p,f))return g.value=p[f],g.done=!1,g;return g.value=void 0,g.done=!0,g},"next");return v.next=v}}return{next:Y}}n(W,"values");function Y(){return{value:void 0,done:!0}}return n(Y,"doneResult"),w.prototype=S,i(T,"constructor",{value:S,configurable:!0}),i(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),r.isGeneratorFunction=function(p){var s=typeof p=="function"&&p.constructor;return!!s&&(s===w||(s.displayName||s.name)==="GeneratorFunction")},r.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,S):(p.__proto__=S,l(p,c,"GeneratorFunction")),p.prototype=Object.create(T),p},r.awrap=function(p){return{__await:p}},F(k.prototype),l(k.prototype,u,function(){return this}),r.AsyncIterator=k,r.async=function(p,s,f,v,g){g===void 0&&(g=Promise);var h=new k(d(p,s,f,v),g);return r.isGeneratorFunction(s)?h:h.next().then(function(O){return O.done?O.value:h.next()})},F(T),l(T,c,"Generator"),l(T,a,function(){return this}),l(T,"toString",function(){return"[object Generator]"}),r.keys=function(p){var s=Object(p),f=[];for(var v in s)f.push(v);return f.reverse(),n(function g(){for(;f.length;){var h=f.pop();if(h in s)return g.value=h,g.done=!1,g}return g.done=!0,g},"next")},r.values=W,V.prototype={constructor:V,reset:n(function(s){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach($),!s)for(var f in this)f.charAt(0)==="t"&&t.call(this,f)&&!isNaN(+f.slice(1))&&(this[f]=void 0)},"reset"),stop:n(function(){this.done=!0;var s=this.tryEntries[0].completion;if(s.type==="throw")throw s.arg;return this.rval},"stop"),dispatchException:n(function(s){if(this.done)throw s;var f=this;function v(C,N){return O.type="throw",O.arg=s,f.next=C,N&&(f.method="next",f.arg=void 0),!!N}n(v,"handle");for(var g=this.tryEntries.length-1;g>=0;--g){var h=this.tryEntries[g],O=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var E=t.call(h,"catchLoc"),A=t.call(h,"finallyLoc");if(E&&A){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(E){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!A)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},"dispatchException"),abrupt:n(function(s,f){for(var v=this.tryEntries.length-1;v>=0;--v){var g=this.tryEntries[v];if(g.tryLoc<=this.prev&&t.call(g,"finallyLoc")&&this.prev<g.finallyLoc){var h=g;break}}h&&(s==="break"||s==="continue")&&h.tryLoc<=f&&f<=h.finallyLoc&&(h=null);var O=h?h.completion:{};return O.type=s,O.arg=f,h?(this.method="next",this.next=h.finallyLoc,m):this.complete(O)},"abrupt"),complete:n(function(s,f){if(s.type==="throw")throw s.arg;return s.type==="break"||s.type==="continue"?this.next=s.arg:s.type==="return"?(this.rval=this.arg=s.arg,this.method="return",this.next="end"):s.type==="normal"&&f&&(this.next=f),m},"complete"),finish:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.finallyLoc===s)return this.complete(v.completion,v.afterLoc),$(v),m}},"finish"),catch:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.tryLoc===s){var g=v.completion;if(g.type==="throw"){var h=g.arg;$(v)}return h}}throw new Error("illegal catch attempt")},"_catch"),delegateYield:n(function(s,f,v){return this.delegate={iterator:W(s),resultName:f,nextLoc:v},this.method==="next"&&(this.arg=void 0),m},"delegateYield")},r}n(NA,"_regeneratorRuntime");function ZH(r,e,t,i,o,a,u){try{var c=r[a](u),l=c.value}catch(d){t(d);return}c.done?e(l):Promise.resolve(l).then(i,o)}n(ZH,"asyncGeneratorStep");function HGe(r){return function(){var e=this,t=arguments;return new Promise(function(i,o){var a=r.apply(e,t);function u(l){ZH(a,i,o,u,c,"next",l)}n(u,"_next");function c(l){ZH(a,i,o,u,c,"throw",l)}n(c,"_throw"),u(void 0)})}}n(HGe,"_asyncToGenerator");function WGe(r,e){if(r==null)return{};var t=VGe(r,e),i,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);for(o=0;o<a.length;o++)i=a[o],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(r,i)&&(t[i]=r[i])}return t}n(WGe,"_objectWithoutProperties");function VGe(r,e){if(r==null)return{};var t={},i=Object.keys(r),o,a;for(a=0;a<i.length;a++)o=i[a],!(e.indexOf(o)>=0)&&(t[o]=r[o]);return t}n(VGe,"_objectWithoutPropertiesLoose");function nW(r,e){var t=typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=UA(r))||e&&r&&typeof r.length=="number"){t&&(r=t);var i=0,o=n(function(){},"F");return{s:o,n:n(function(){return i>=r.length?{done:!0}:{done:!1,value:r[i++]}},"n"),e:n(function(d){throw d},"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=!0,u=!1,c;return{s:n(function(){t=t.call(r)},"s"),n:n(function(){var d=t.next();return a=d.done,d},"n"),e:n(function(d){u=!0,c=d},"e"),f:n(function(){try{!a&&t.return!=null&&t.return()}finally{if(u)throw c}},"f")}}n(nW,"_createForOfIteratorHelper");function Ow(r){return XGe(r)||YGe(r)||UA(r)||KGe()}n(Ow,"_toConsumableArray");function KGe(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n(KGe,"_nonIterableSpread");function YGe(r){if(typeof Symbol!="undefined"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}n(YGe,"_iterableToArray");function XGe(r){if(Array.isArray(r))return xA(r)}n(XGe,"_arrayWithoutHoles");function Pi(r){"@babel/helpers - typeof";return Pi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pi(r)}n(Pi,"_typeof");function eW(r,e){return ZGe(r)||JGe(r,e)||UA(r,e)||QGe()}n(eW,"_slicedToArray");function QGe(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n(QGe,"_nonIterableRest");function UA(r,e){if(r){if(typeof r=="string")return xA(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return xA(r,e)}}n(UA,"_unsupportedIterableToArray");function xA(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=r[t];return i}n(xA,"_arrayLikeToArray");function JGe(r,e){var t=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var i,o,a,u,c=[],l=!0,d=!1;try{if(a=(t=t.call(r)).next,e===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(i=a.call(t)).done)&&(c.push(i.value),c.length!==e);l=!0);}catch(y){d=!0,o=y}finally{try{if(!l&&t.return!=null&&(u=t.return(),Object(u)!==u))return}finally{if(d)throw o}}return c}}n(JGe,"_iterableToArrayLimit");function ZGe(r){if(Array.isArray(r))return r}n(ZGe,"_arrayWithHoles");function rW(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(rW,"ownKeys");function ie(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?rW(Object(t),!0).forEach(function(i){Mc(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):rW(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(ie,"_objectSpread");function Mc(r,e,t){return e=iW(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(Mc,"_defineProperty");function eze(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(eze,"_classCallCheck");function tW(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,iW(i.key),i)}}n(tW,"_defineProperties");function rze(r,e,t){return e&&tW(r.prototype,e),t&&tW(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(rze,"_createClass");function iW(r){var e=tze(r,"string");return Pi(e)==="symbol"?e:String(e)}n(iW,"_toPropertyKey");function tze(r,e){if(Pi(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Pi(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(tze,"_toPrimitive");var aW,oW;function ce(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}n(ce,"_classPrivateFieldLooseBase");var nze=0;function Lr(r){return"__private_"+nze+++"_"+r}n(Lr,"_classPrivateFieldLooseKey");var ize={version:"3.8.0"},Sw=n(function(){return{totalProgress:0,allowNewUpload:!0,error:null,recoveredState:null}},"getDefaultUploadState"),yt=Lr("plugins"),Pn=Lr("restricter"),mh=Lr("storeUnsubscribe"),Da=Lr("emitter"),cs=Lr("preProcessors"),fs=Lr("uploaders"),Ba=Lr("postProcessors"),_n=Lr("informAndEmit"),Oh=Lr("checkRequiredMetaFieldsOnFile"),FA=Lr("checkRequiredMetaFields"),gh=Lr("assertNewUploadAllowed"),DA=Lr("transformFile"),bh=Lr("startIfAutoProceed"),wh=Lr("checkAndUpdateFileState"),CA=Lr("addListeners"),Oi=Lr("updateOnlineStatus"),Sh=Lr("requestClientById"),Ma=Lr("createUpload"),LA=Lr("getUpload"),ps=Lr("removeUpload"),Ua=Lr("runUpload");aW=Symbol.for("uppy test: getPlugins");oW=Symbol.for("uppy test: createUpload");var lW=function(r,e){function t(i){var o=this;eze(this,t),Object.defineProperty(this,Ua,{value:yze}),Object.defineProperty(this,ps,{value:vze}),Object.defineProperty(this,LA,{value:hze}),Object.defineProperty(this,Ma,{value:dze}),Object.defineProperty(this,CA,{value:pze}),Object.defineProperty(this,wh,{value:fze}),Object.defineProperty(this,bh,{value:cze}),Object.defineProperty(this,DA,{value:lze}),Object.defineProperty(this,gh,{value:sze}),Object.defineProperty(this,FA,{value:uze}),Object.defineProperty(this,Oh,{value:oze}),Object.defineProperty(this,_n,{value:aze}),Object.defineProperty(this,yt,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Pn,{writable:!0,value:void 0}),Object.defineProperty(this,mh,{writable:!0,value:void 0}),Object.defineProperty(this,Da,{writable:!0,value:(0,uW.default)()}),Object.defineProperty(this,cs,{writable:!0,value:new Set}),Object.defineProperty(this,fs,{writable:!0,value:new Set}),Object.defineProperty(this,Ba,{writable:!0,value:new Set}),this.calculateProgress=(0,sW.default)(function(u,c){var l=o.getFile(u==null?void 0:u.id);if(u==null||!l){o.log("Not setting progress for a file that has been removed: ".concat(u==null?void 0:u.id));return}if(l.progress.percentage===100){o.log("Not setting progress for a file that has been already uploaded: ".concat(u.id));return}var d=Number.isFinite(c.bytesTotal)&&c.bytesTotal>0;o.setFileState(u.id,{progress:ie(ie({},l.progress),{},{bytesUploaded:c.bytesUploaded,bytesTotal:c.bytesTotal,percentage:d?Math.round(c.bytesUploaded/c.bytesTotal*100):0})}),o.calculateTotalProgress()},500,{leading:!0,trailing:!0}),Object.defineProperty(this,Oi,{writable:!0,value:this.updateOnlineStatus.bind(this)}),Object.defineProperty(this,Sh,{writable:!0,value:new Map}),this.defaultLocale=JH;var a={id:"uppy",autoProceed:!1,allowMultipleUploadBatches:!0,debug:!1,restrictions:XH,meta:{},onBeforeFileAdded:n(function(c,l){return!Object.hasOwn(l,c.id)},"onBeforeFileAdded"),onBeforeUpload:n(function(c){return c},"onBeforeUpload"),store:new yw,logger:NH,infoTimeout:5e3};this.opts=ie(ie(ie({},a),i),{},{restrictions:ie(ie({},a.restrictions),i&&i.restrictions)}),i&&i.logger&&i.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):i&&i.debug&&(this.opts.logger=hh),this.log("Using Core v".concat(this.constructor.VERSION)),this.i18nInit(),this.store=this.opts.store,this.setState(ie(ie({},Sw()),{},{plugins:{},files:{},currentUploads:{},capabilities:{uploadProgress:RA(),individualCancellation:!0,resumableUploads:!1},meta:ie({},this.opts.meta),info:[]})),ce(this,Pn)[Pn]=new QH(function(){return o.opts},this.i18n),ce(this,mh)[mh]=this.store.subscribe(function(u,c,l){o.emit("state-update",u,c,l),o.updateAll(c)}),this.opts.debug&&typeof window!="undefined"&&(window[this.opts.id]=this),ce(this,CA)[CA]()}return n(t,"Uppy"),rze(t,[{key:"emit",value:n(function(o){for(var a,u=arguments.length,c=new Array(u>1?u-1:0),l=1;l<u;l++)c[l-1]=arguments[l];(a=ce(this,Da)[Da]).emit.apply(a,[o].concat(c))},"emit")},{key:"on",value:n(function(o,a){return ce(this,Da)[Da].on(o,a),this},"on")},{key:"once",value:n(function(o,a){return ce(this,Da)[Da].once(o,a),this},"once")},{key:"off",value:n(function(o,a){return ce(this,Da)[Da].off(o,a),this},"off")},{key:"updateAll",value:n(function(o){this.iteratePlugins(function(a){a.update(o)})},"updateAll")},{key:"setState",value:n(function(o){this.store.setState(o)},"setState")},{key:"getState",value:n(function(){return this.store.getState()},"getState")},{key:"patchFilesState",value:n(function(o){var a=this.getState().files;this.setState({files:ie(ie({},a),Object.fromEntries(Object.entries(o).map(function(u){var c=eW(u,2),l=c[0],d=c[1];return[l,ie(ie({},a[l]),d)]})))})},"patchFilesState")},{key:"setFileState",value:n(function(o,a){if(!this.getState().files[o])throw new Error("Can\u2019t set state for ".concat(o," (the file could have been removed)"));this.patchFilesState(Mc({},o,a))},"setFileState")},{key:"i18nInit",value:n(function(){var o=this,a=n(function(l){return o.log("Missing i18n string: ".concat(l),"error")},"onMissingKey"),u=new pw([this.defaultLocale,this.opts.locale],{onMissingKey:a});this.i18n=u.translate.bind(u),this.i18nArray=u.translateArray.bind(u),this.locale=u.locale},"i18nInit")},{key:"setOptions",value:n(function(o){this.opts=ie(ie(ie({},this.opts),o),{},{restrictions:ie(ie({},this.opts.restrictions),o&&o.restrictions)}),o.meta&&this.setMeta(o.meta),this.i18nInit(),o.locale&&this.iteratePlugins(function(a){a.setOptions(o)}),this.setState()},"setOptions")},{key:"resetProgress",value:n(function(){var o={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},a=ie({},this.getState().files),u={};Object.keys(a).forEach(function(c){u[c]=ie(ie({},a[c]),{},{progress:ie(ie({},a[c].progress),o)})}),this.setState(ie({files:u},Sw())),this.emit("reset-progress")},"resetProgress")},{key:"clearUploadedFiles",value:n(function(){this.setState(ie(ie({},Sw()),{},{files:{}}))},"clearUploadedFiles")},{key:"addPreProcessor",value:n(function(o){ce(this,cs)[cs].add(o)},"addPreProcessor")},{key:"removePreProcessor",value:n(function(o){return ce(this,cs)[cs].delete(o)},"removePreProcessor")},{key:"addPostProcessor",value:n(function(o){ce(this,Ba)[Ba].add(o)},"addPostProcessor")},{key:"removePostProcessor",value:n(function(o){return ce(this,Ba)[Ba].delete(o)},"removePostProcessor")},{key:"addUploader",value:n(function(o){ce(this,fs)[fs].add(o)},"addUploader")},{key:"removeUploader",value:n(function(o){return ce(this,fs)[fs].delete(o)},"removeUploader")},{key:"setMeta",value:n(function(o){var a=ie(ie({},this.getState().meta),o),u=ie({},this.getState().files);Object.keys(u).forEach(function(c){u[c]=ie(ie({},u[c]),{},{meta:ie(ie({},u[c].meta),o)})}),this.log("Adding metadata:"),this.log(o),this.setState({meta:a,files:u})},"setMeta")},{key:"setFileMeta",value:n(function(o,a){var u=ie({},this.getState().files);if(!u[o]){this.log("Was trying to set metadata for a file that has been removed: ",o);return}var c=ie(ie({},u[o].meta),a);u[o]=ie(ie({},u[o]),{},{meta:c}),this.setState({files:u})},"setFileMeta")},{key:"getFile",value:n(function(o){return this.getState().files[o]},"getFile")},{key:"getFiles",value:n(function(){var o=this.getState(),a=o.files;return Object.values(a)},"getFiles")},{key:"getFilesByIds",value:n(function(o){var a=this;return o.map(function(u){return a.getFile(u)})},"getFilesByIds")},{key:"getObjectOfFilesPerState",value:n(function(){var o=this.getState(),a=o.files,u=o.totalProgress,c=o.error,l=Object.values(a),d=l.filter(function(T){var F=T.progress;return!F.uploadComplete&&F.uploadStarted}),y=l.filter(function(T){return!T.progress.uploadStarted}),m=l.filter(function(T){return T.progress.uploadStarted||T.progress.preprocess||T.progress.postprocess}),b=l.filter(function(T){return T.progress.uploadStarted}),w=l.filter(function(T){return T.isPaused}),S=l.filter(function(T){return T.progress.uploadComplete}),P=l.filter(function(T){return T.error}),R=d.filter(function(T){return!T.isPaused}),I=l.filter(function(T){return T.progress.preprocess||T.progress.postprocess});return{newFiles:y,startedFiles:m,uploadStartedFiles:b,pausedFiles:w,completeFiles:S,erroredFiles:P,inProgressFiles:d,inProgressNotPausedFiles:R,processingFiles:I,isUploadStarted:b.length>0,isAllComplete:u===100&&S.length===l.length&&I.length===0,isAllErrored:!!c&&P.length===l.length,isAllPaused:d.length!==0&&w.length===d.length,isUploadInProgress:d.length>0,isSomeGhost:l.some(function(T){return T.isGhost})}},"getObjectOfFilesPerState")},{key:"validateRestrictions",value:n(function(o,a){a===void 0&&(a=this.getFiles());try{ce(this,Pn)[Pn].validate(a,[o])}catch(u){return u}return null},"validateRestrictions")},{key:"checkIfFileAlreadyExists",value:n(function(o){var a=this.getState(),u=a.files;return!!(u[o]&&!u[o].isGhost)},"checkIfFileAlreadyExists")},{key:"addFile",value:n(function(o){ce(this,gh)[gh](o);var a=ce(this,wh)[wh]([o]),u=a.nextFilesState,c=a.validFilesToAdd,l=a.errors,d=l.filter(function(b){return b.isRestriction});if(ce(this,_n)[_n](d),l.length>0)throw l[0];this.setState({files:u});var y=eW(c,1),m=y[0];return this.emit("file-added",m),this.emit("files-added",c),this.log("Added file: ".concat(m.name,", ").concat(m.id,", mime type: ").concat(m.type)),ce(this,bh)[bh](),m.id},"addFile")},{key:"addFiles",value:n(function(o){var a=this;ce(this,gh)[gh]();var u=ce(this,wh)[wh](o),c=u.nextFilesState,l=u.validFilesToAdd,d=u.errors,y=d.filter(function(S){return S.isRestriction});ce(this,_n)[_n](y);var m=d.filter(function(S){return!S.isRestriction});if(m.length>0){var b="Multiple errors occurred while adding files:\n";if(m.forEach(function(S){b+="\n * ".concat(S.message)}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:m.length}),details:b},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(m,b);var w=new Error(b);throw w.errors=m,w}this.setState({files:c}),l.forEach(function(S){a.emit("file-added",S)}),this.emit("files-added",l),l.length>5?this.log("Added batch of ".concat(l.length," files")):Object.values(l).forEach(function(S){a.log("Added file: ".concat(S.name,"\n id: ").concat(S.id,"\n type: ").concat(S.type))}),l.length>0&&ce(this,bh)[bh]()},"addFiles")},{key:"removeFiles",value:n(function(o,a){var u=this,c=this.getState(),l=c.files,d=c.currentUploads,y=ie({},l),m=ie({},d),b=Object.create(null);o.forEach(function(R){l[R]&&(b[R]=l[R],delete y[R])});function w(R){return b[R]===void 0}n(w,"fileIsNotRemoved"),Object.keys(m).forEach(function(R){var I=d[R].fileIDs.filter(w);if(I.length===0){delete m[R];return}var T=u.getState(),F=T.capabilities;if(I.length!==d[R].fileIDs.length&&!F.individualCancellation)throw new Error("individualCancellation is disabled");m[R]=ie(ie({},d[R]),{},{fileIDs:I})});var S={currentUploads:m,files:y};Object.keys(y).length===0&&(S.allowNewUpload=!0,S.error=null,S.recoveredState=null),this.setState(S),this.calculateTotalProgress();var P=Object.keys(b);P.forEach(function(R){u.emit("file-removed",b[R],a)}),P.length>5?this.log("Removed ".concat(P.length," files")):this.log("Removed files: ".concat(P.join(", ")))},"removeFiles")},{key:"removeFile",value:n(function(o,a){a===void 0&&(a=null),this.removeFiles([o],a)},"removeFile")},{key:"pauseResume",value:n(function(o){if(!(!this.getState().capabilities.resumableUploads||this.getFile(o).uploadComplete)){var a=this.getFile(o).isPaused||!1,u=!a;return this.setFileState(o,{isPaused:u}),this.emit("upload-pause",o,u),u}},"pauseResume")},{key:"pauseAll",value:n(function(){var o=ie({},this.getState().files),a=Object.keys(o).filter(function(u){return!o[u].progress.uploadComplete&&o[u].progress.uploadStarted});a.forEach(function(u){var c=ie(ie({},o[u]),{},{isPaused:!0});o[u]=c}),this.setState({files:o}),this.emit("pause-all")},"pauseAll")},{key:"resumeAll",value:n(function(){var o=ie({},this.getState().files),a=Object.keys(o).filter(function(u){return!o[u].progress.uploadComplete&&o[u].progress.uploadStarted});a.forEach(function(u){var c=ie(ie({},o[u]),{},{isPaused:!1,error:null});o[u]=c}),this.setState({files:o}),this.emit("resume-all")},"resumeAll")},{key:"retryAll",value:n(function(){var o=ie({},this.getState().files),a=Object.keys(o).filter(function(c){return o[c].error});if(a.forEach(function(c){var l=ie(ie({},o[c]),{},{isPaused:!1,error:null});o[c]=l}),this.setState({files:o,error:null}),this.emit("retry-all",a),a.length===0)return Promise.resolve({successful:[],failed:[]});var u=ce(this,Ma)[Ma](a,{forceAllowNewUpload:!0});return ce(this,Ua)[Ua](u)},"retryAll")},{key:"cancelAll",value:n(function(o){var a=o===void 0?{}:o,u=a.reason,c=u===void 0?"user":u;if(this.emit("cancel-all",{reason:c}),c==="user"){var l=this.getState(),d=l.files,y=Object.keys(d);y.length&&this.removeFiles(y,"cancel-all"),this.setState(Sw())}},"cancelAll")},{key:"retryUpload",value:n(function(o){this.setFileState(o,{error:null,isPaused:!1}),this.emit("upload-retry",o);var a=ce(this,Ma)[Ma]([o],{forceAllowNewUpload:!0});return ce(this,Ua)[Ua](a)},"retryUpload")},{key:"logout",value:n(function(){this.iteratePlugins(function(o){o.provider&&o.provider.logout&&o.provider.logout()})},"logout")},{key:"calculateTotalProgress",value:n(function(){var o=this.getFiles(),a=o.filter(function(P){return P.progress.uploadStarted||P.progress.preprocess||P.progress.postprocess});if(a.length===0){this.emit("progress",0),this.setState({totalProgress:0});return}var u=a.filter(function(P){return P.progress.bytesTotal!=null}),c=a.filter(function(P){return P.progress.bytesTotal==null});if(u.length===0){var l=a.length*100,d=c.reduce(function(P,R){return P+R.progress.percentage},0),y=Math.round(d/l*100);this.setState({totalProgress:y});return}var m=u.reduce(function(P,R){return P+R.progress.bytesTotal},0),b=m/u.length;m+=b*c.length;var w=0;u.forEach(function(P){w+=P.progress.bytesUploaded}),c.forEach(function(P){w+=b*(P.progress.percentage||0)/100});var S=m===0?0:Math.round(w/m*100);S>100&&(S=100),this.setState({totalProgress:S}),this.emit("progress",S)},"calculateTotalProgress")},{key:"updateOnlineStatus",value:n(function(){var o=typeof window.navigator.onLine!="undefined"?window.navigator.onLine:!0;o?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)},"updateOnlineStatus")},{key:"getID",value:n(function(){return this.opts.id},"getID")},{key:"use",value:n(function(o,a){if(typeof o!="function"){var u="Expected a plugin class, but got ".concat(o===null?"null":Pi(o),".")+" Please verify that the plugin was imported and spelled correctly.";throw new TypeError(u)}var c=new o(this,a),l=c.id;if(!l)throw new Error("Your plugin must have an id");if(!c.type)throw new Error("Your plugin must have a type");var d=this.getPlugin(l);if(d){var y="Already found a plugin named '".concat(d.id,"'. ")+"Tried to use: '".concat(l,"'.\n")+"Uppy plugins must have unique `id` options. See https://uppy.io/docs/plugins/#id.";throw new Error(y)}return o.VERSION&&this.log("Using ".concat(l," v").concat(o.VERSION)),c.type in ce(this,yt)[yt]?ce(this,yt)[yt][c.type].push(c):ce(this,yt)[yt][c.type]=[c],c.install(),this.emit("plugin-added",c),this},"use")},{key:"getPlugin",value:n(function(o){for(var a=0,u=Object.values(ce(this,yt)[yt]);a<u.length;a++){var c=u[a],l=c.find(function(d){return d.id===o});if(l!=null)return l}},"getPlugin")},{key:r,value:n(function(o){return ce(this,yt)[yt][o]},"value")},{key:"iteratePlugins",value:n(function(o){Object.values(ce(this,yt)[yt]).flat(1).forEach(o)},"iteratePlugins")},{key:"removePlugin",value:n(function(o){this.log("Removing plugin ".concat(o.id)),this.emit("plugin-remove",o),o.uninstall&&o.uninstall();var a=ce(this,yt)[yt][o.type],u=a.findIndex(function(d){return d.id===o.id});u!==-1&&a.splice(u,1);var c=this.getState(),l={plugins:ie(ie({},c.plugins),{},Mc({},o.id,void 0))};this.setState(l)},"removePlugin")},{key:"close",value:n(function(o){var a=this,u=o===void 0?{}:o,c=u.reason;this.log("Closing Uppy instance ".concat(this.opts.id,": removing all files and uninstalling plugins")),this.cancelAll({reason:c}),ce(this,mh)[mh](),this.iteratePlugins(function(l){a.removePlugin(l)}),typeof window!="undefined"&&window.removeEventListener&&(window.removeEventListener("online",ce(this,Oi)[Oi]),window.removeEventListener("offline",ce(this,Oi)[Oi]))},"close")},{key:"hideInfo",value:n(function(){var o=this.getState(),a=o.info;this.setState({info:a.slice(1)}),this.emit("info-hidden")},"hideInfo")},{key:"info",value:n(function(o,a,u){var c=this;a===void 0&&(a="info"),u===void 0&&(u=3e3);var l=Pi(o)==="object";this.setState({info:[].concat(Ow(this.getState().info),[{type:a,message:l?o.message:o,details:l?o.details:null}])}),setTimeout(function(){return c.hideInfo()},u),this.emit("info-visible")},"info")},{key:"log",value:n(function(o,a){var u=this.opts.logger;switch(a){case"error":u.error(o);break;case"warning":u.warn(o);break;default:u.debug(o);break}},"log")},{key:"registerRequestClient",value:n(function(o,a){ce(this,Sh)[Sh].set(o,a)},"registerRequestClient")},{key:"getRequestClientForFile",value:n(function(o){if(!o.remote)throw new Error("Tried to get RequestClient for a non-remote file ".concat(o.id));var a=ce(this,Sh)[Sh].get(o.remote.requestClientId);if(a==null)throw new Error('requestClientId "'.concat(o.remote.requestClientId,'" not registered for file "').concat(o.id,'"'));return a},"getRequestClientForFile")},{key:"restore",value:n(function(o){return this.log('Core: attempting to restore upload "'.concat(o,'"')),this.getState().currentUploads[o]?ce(this,Ua)[Ua](o):(ce(this,ps)[ps](o),Promise.reject(new Error("Nonexistent upload")))},"restore")},{key:e,value:n(function(){var o;return(o=ce(this,Ma))[Ma].apply(o,arguments)},"value")},{key:"addResultData",value:n(function(o,a){if(!ce(this,LA)[LA](o)){this.log("Not setting result for an upload that has been removed: ".concat(o));return}var u=this.getState(),c=u.currentUploads,l=ie(ie({},c[o]),{},{result:ie(ie({},c[o].result),a)});this.setState({currentUploads:ie(ie({},c),{},Mc({},o,l))})},"addResultData")},{key:"upload",value:n(function(){var o=this,a;(a=ce(this,yt)[yt].uploader)!=null&&a.length||this.log("No uploader type plugins are used","warning");var u=this.getState(),c=u.files,l=this.opts.onBeforeUpload(c);return l===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(l&&Pi(l)==="object"&&(c=l,this.setState({files:c})),Promise.resolve().then(function(){return ce(o,Pn)[Pn].validateMinNumberOfFiles(c)}).catch(function(d){throw ce(o,_n)[_n]([d]),d}).then(function(){if(!ce(o,FA)[FA](c))throw new ei(o.i18n("missingRequiredMetaField"))}).catch(function(d){throw d}).then(function(){var d=o.getState(),y=d.currentUploads,m=Object.values(y).flatMap(function(S){return S.fileIDs}),b=[];Object.keys(c).forEach(function(S){var P=o.getFile(S);!P.progress.uploadStarted&&m.indexOf(S)===-1&&b.push(P.id)});var w=ce(o,Ma)[Ma](b);return ce(o,Ua)[Ua](w)}).catch(function(d){throw o.emit("error",d),o.log(d,"error"),d}))},"upload")}]),t}(aW,oW);function aze(r){var e=this,t=nW(r),i;try{for(t.s();!(i=t.n()).done;){var o=i.value,a=o.file,u=o.isRestriction;u?this.emit("restriction-failed",a,o):this.emit("error",o),this.log(o,"warning")}}catch(m){t.e(m)}finally{t.f()}var c=r.filter(function(m){return m.isUserFacing}),l=4,d=c.slice(0,l),y=c.slice(l);d.forEach(function(m){var b=m.message,w=m.details,S=w===void 0?"":w;e.info({message:b,details:S},"error",e.opts.infoTimeout)}),y.length>0&&this.info({message:this.i18n("additionalRestrictionsFailed",{count:y.length})})}n(aze,"_informAndEmit2");function oze(r){var e=ce(this,Pn)[Pn].getMissingRequiredMetaFields(r),t=e.missingFields,i=e.error;return t.length>0?(this.setFileState(r.id,{missingRequiredMetaFields:t}),this.log(i.message),this.emit("restriction-failed",r,i),!1):!0}n(oze,"_checkRequiredMetaFieldsOnFile2");function uze(r){for(var e=!0,t=0,i=Object.values(r);t<i.length;t++){var o=i[t];ce(this,Oh)[Oh](o)||(e=!1)}return e}n(uze,"_checkRequiredMetaFields2");function sze(r){var e=this.getState(),t=e.allowNewUpload;if(t===!1){var i=new ei(this.i18n("noMoreFilesAllowed"),{file:r});throw ce(this,_n)[_n]([i]),i}}n(sze,"_assertNewUploadAllowed2");function lze(r){var e=r instanceof File?{name:r.name,type:r.type,size:r.size,data:r}:r,t=ls(e),i=AA(t,e),o=ra(i).extension,a=!!e.isRemote,u=mw(e),c=e.meta||{};c.name=i,c.type=t;var l=Number.isFinite(e.data.size)?e.data.size:null;return{source:e.source||"",id:u,name:i,extension:o||"",meta:ie(ie({},this.getState().meta),c),type:t,data:e.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:l,uploadComplete:!1,uploadStarted:null},size:l,isRemote:a,remote:e.remote||"",preview:e.preview}}n(lze,"_transformFile2");function cze(){var r=this;this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(function(){r.scheduledAutoProceed=null,r.upload().catch(function(e){e.isRestriction||r.log(e.stack||e.message||e)})},4))}n(cze,"_startIfAutoProceed2");function fze(r){var e=this.getState(),t=e.files,i=ie({},t),o=[],a=[],u=nW(r),c;try{for(u.s();!(c=u.n()).done;){var l=c.value;try{var d,y=ce(this,DA)[DA](l),m=(d=t[y.id])==null?void 0:d.isGhost;if(m){var b=t[y.id],w=b.isGhost,S=WGe(b,zGe);y=ie(ie({},S),{},{data:l.data}),this.log("Replaced the blob in the restored ghost file: ".concat(y.name,", ").concat(y.id))}var P=this.opts.onBeforeFileAdded(y,i);if(!P&&this.checkIfFileAlreadyExists(y.id))throw new ei(this.i18n("noDuplicates",{fileName:y.name}),{file:l});if(P===!1&&!m)throw new ei("Cannot add the file because onBeforeFileAdded returned false.",{isUserFacing:!1,file:l});Pi(P)==="object"&&P!==null&&(y=P),ce(this,Pn)[Pn].validateSingleFile(y),i[y.id]=y,o.push(y)}catch(R){a.push(R)}}}catch(R){u.e(R)}finally{u.f()}try{ce(this,Pn)[Pn].validateAggregateRestrictions(Object.values(t),o)}catch(R){return a.push(R),{nextFilesState:t,validFilesToAdd:[],errors:a}}return{nextFilesState:i,validFilesToAdd:o,errors:a}}n(fze,"_checkAndUpdateFileState2");function pze(){var r=this,e=n(function(a,u,c){var l=a.message||"Unknown error";a.details&&(l+=" ".concat(a.details)),r.setState({error:l}),u!=null&&u.id in r.getState().files&&r.setFileState(u.id,{error:l,response:c})},"errorHandler");this.on("error",e),this.on("upload-error",function(o,a,u){if(e(a,o,u),Pi(a)==="object"&&a.message){r.log(a.message,"error");var c=new Error(r.i18n("failedToUpload",{file:o==null?void 0:o.name}));c.isUserFacing=!0,c.details=a.message,a.details&&(c.details+=" ".concat(a.details)),ce(r,_n)[_n]([c])}else ce(r,_n)[_n]([a])});var t;this.on("upload-stalled",function(o,a){var u=o.message,c=a.map(function(l){return l.meta.name}).join(", ");t||(r.info({message:u,details:c},"warning",r.opts.infoTimeout),t=setTimeout(function(){t=null},r.opts.infoTimeout)),r.log("".concat(u," ").concat(c).trim(),"warning")}),this.on("upload",function(){r.setState({error:null})});var i=n(function(a){var u=a.filter(function(l){var d=l!=null&&r.getFile(l.id);return d||r.log("Not setting progress for a file that has been removed: ".concat(l==null?void 0:l.id)),d}),c=Object.fromEntries(u.map(function(l){return[l.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:l.size}}]}));r.patchFilesState(c)},"onUploadStarted");this.on("upload-start",function(o){o.forEach(function(a){r.emit("upload-started",a)}),i(o)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",function(o,a){if(o==null||!r.getFile(o.id)){r.log("Not setting progress for a file that has been removed: ".concat(o==null?void 0:o.id));return}var u=r.getFile(o.id).progress;r.setFileState(o.id,{progress:ie(ie({},u),{},{postprocess:ce(r,Ba)[Ba].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:u.bytesTotal}),response:a,uploadURL:a.uploadURL,isPaused:!1}),o.size==null&&r.setFileState(o.id,{size:a.bytesUploaded||u.bytesTotal}),r.calculateTotalProgress()}),this.on("preprocess-progress",function(o,a){if(o==null||!r.getFile(o.id)){r.log("Not setting progress for a file that has been removed: ".concat(o==null?void 0:o.id));return}r.setFileState(o.id,{progress:ie(ie({},r.getFile(o.id).progress),{},{preprocess:a})})}),this.on("preprocess-complete",function(o){if(o==null||!r.getFile(o.id)){r.log("Not setting progress for a file that has been removed: ".concat(o==null?void 0:o.id));return}var a=ie({},r.getState().files);a[o.id]=ie(ie({},a[o.id]),{},{progress:ie({},a[o.id].progress)}),delete a[o.id].progress.preprocess,r.setState({files:a})}),this.on("postprocess-progress",function(o,a){if(o==null||!r.getFile(o.id)){r.log("Not setting progress for a file that has been removed: ".concat(o==null?void 0:o.id));return}r.setFileState(o.id,{progress:ie(ie({},r.getState().files[o.id].progress),{},{postprocess:a})})}),this.on("postprocess-complete",function(o){if(o==null||!r.getFile(o.id)){r.log("Not setting progress for a file that has been removed: ".concat(o==null?void 0:o.id));return}var a=ie({},r.getState().files);a[o.id]=ie(ie({},a[o.id]),{},{progress:ie({},a[o.id].progress)}),delete a[o.id].progress.postprocess,r.setState({files:a})}),this.on("restored",function(){r.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",function(o){o&&ce(r,Oh)[Oh](o)}),typeof window!="undefined"&&window.addEventListener&&(window.addEventListener("online",ce(this,Oi)[Oi]),window.addEventListener("offline",ce(this,Oi)[Oi]),setTimeout(ce(this,Oi)[Oi],3e3))}n(pze,"_addListeners2");function dze(r,e){e===void 0&&(e={});var t=e,i=t.forceAllowNewUpload,o=i===void 0?!1:i,a=this.getState(),u=a.allowNewUpload,c=a.currentUploads;if(!u&&!o)throw new Error("Cannot create a new upload: already uploading.");var l=It();return this.emit("upload",{id:l,fileIDs:r}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:ie(ie({},c),{},Mc({},l,{fileIDs:r,step:0,result:{}}))}),l}n(dze,"_createUpload2");function hze(r){var e=this.getState(),t=e.currentUploads;return t[r]}n(hze,"_getUpload2");function vze(r){var e=ie({},this.getState().currentUploads);delete e[r],this.setState({currentUploads:e})}n(vze,"_removeUpload2");function yze(r){return MA.apply(this,arguments)}n(yze,"_runUpload2");function MA(){return MA=HGe(NA().mark(n(function r(e){var t=this,i,o,a,u,c,l,d,y,m,b,w;return NA().wrap(n(function(P){for(;;)switch(P.prev=P.next){case 0:i=n(function(){var I=t.getState(),T=I.currentUploads;return T[e]},"getCurrentUpload"),o=i(),a=[].concat(Ow(ce(this,cs)[cs]),Ow(ce(this,fs)[fs]),Ow(ce(this,Ba)[Ba])),P.prev=3,u=o.step||0;case 5:if(!(u<a.length)){P.next=17;break}if(o){P.next=8;break}return P.abrupt("break",17);case 8:return c=a[u],this.setState({currentUploads:ie(ie({},this.getState().currentUploads),{},Mc({},e,ie(ie({},o),{},{step:u})))}),l=o,d=l.fileIDs,P.next=13,c(d,e);case 13:o=i();case 14:u++,P.next=5;break;case 17:P.next=23;break;case 19:throw P.prev=19,P.t0=P.catch(3),ce(this,ps)[ps](e),P.t0;case 23:if(!o){P.next=31;break}return o.fileIDs.forEach(function(R){var I=t.getFile(R);I&&I.progress.postprocess&&t.emit("postprocess-complete",I)}),y=o.fileIDs.map(function(R){return t.getFile(R)}),m=y.filter(function(R){return!R.error}),b=y.filter(function(R){return R.error}),P.next=30,this.addResultData(e,{successful:m,failed:b,uploadID:e});case 30:o=i();case 31:return o&&(w=o.result,this.emit("complete",w),ce(this,ps)[ps](e)),w==null&&this.log("Not setting result for an upload that has been removed: ".concat(e)),P.abrupt("return",w);case 34:case"end":return P.stop()}},"_callee$"),r,this,[[3,19]])},"_callee"))),MA.apply(this,arguments)}n(MA,"_runUpload3");lW.VERSION=ize.version;var BA=lW;var Eh,je,vW,mze,Ph,cW,gze,Pw={},yW=[],bze=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function $a(r,e){for(var t in e)r[t]=e[t];return r}n($a,"s");function mW(r){var e=r.parentNode;e&&e.removeChild(r)}n(mW,"a");function _(r,e,t){var i,o,a,u={};for(a in e)a=="key"?i=e[a]:a=="ref"?o=e[a]:u[a]=e[a];if(arguments.length>2&&(u.children=arguments.length>3?Eh.call(arguments,2):t),typeof r=="function"&&r.defaultProps!=null)for(a in r.defaultProps)u[a]===void 0&&(u[a]=r.defaultProps[a]);return _h(r,u,i,o,null)}n(_,"h");function _h(r,e,t,i,o){var a={type:r,props:e,key:t,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o==null?++vW:o};return o==null&&je.vnode!=null&&je.vnode(a),a}n(_h,"v");function gW(){return{current:null}}n(gW,"y");function ln(r){return r.children}n(ln,"p");function ur(r,e){this.props=r,this.context=e}n(ur,"d");function Uc(r,e){if(e==null)return r.__?Uc(r.__,r.__.__k.indexOf(r)+1):null;for(var t;e<r.__k.length;e++)if((t=r.__k[e])!=null&&t.__e!=null)return t.__e;return typeof r.type=="function"?Uc(r):null}n(Uc,"_");function bW(r){var e,t;if((r=r.__)!=null&&r.__c!=null){for(r.__e=r.__c.base=null,e=0;e<r.__k.length;e++)if((t=r.__k[e])!=null&&t.__e!=null){r.__e=r.__c.base=t.__e;break}return bW(r)}}n(bW,"k");function fW(r){(!r.__d&&(r.__d=!0)&&Ph.push(r)&&!_w.__r++||cW!==je.debounceRendering)&&((cW=je.debounceRendering)||setTimeout)(_w)}n(fW,"b");function _w(){for(var r;_w.__r=Ph.length;)r=Ph.sort(function(e,t){return e.__v.__b-t.__v.__b}),Ph=[],r.some(function(e){var t,i,o,a,u,c;e.__d&&(u=(a=(t=e).__v).__e,(c=t.__P)&&(i=[],(o=$a({},a)).__v=a.__v+1,$A(c,a,o,t.__n,c.ownerSVGElement!==void 0,a.__h!=null?[u]:null,i,u==null?Uc(a):u,a.__h),PW(i,a),a.__e!=u&&bW(a)))})}n(_w,"g");function wW(r,e,t,i,o,a,u,c,l,d){var y,m,b,w,S,P,R,I=i&&i.__k||yW,T=I.length;for(t.__k=[],y=0;y<e.length;y++)if((w=t.__k[y]=(w=e[y])==null||typeof w=="boolean"?null:typeof w=="string"||typeof w=="number"||typeof w=="bigint"?_h(null,w,null,null,w):Array.isArray(w)?_h(ln,{children:w},null,null,null):w.__b>0?_h(w.type,w.props,w.key,null,w.__v):w)!=null){if(w.__=t,w.__b=t.__b+1,(b=I[y])===null||b&&w.key==b.key&&w.type===b.type)I[y]=void 0;else for(m=0;m<T;m++){if((b=I[m])&&w.key==b.key&&w.type===b.type){I[m]=void 0;break}b=null}$A(r,w,b=b||Pw,o,a,u,c,l,d),S=w.__e,(m=w.ref)&&b.ref!=m&&(R||(R=[]),b.ref&&R.push(b.ref,null,w),R.push(m,w.__c||S,w)),S!=null?(P==null&&(P=S),typeof w.type=="function"&&w.__k===b.__k?w.__d=l=SW(w,l,r):l=OW(r,w,b,I,S,l),typeof t.type=="function"&&(t.__d=l)):l&&b.__e==l&&l.parentNode!=r&&(l=Uc(b))}for(t.__e=P,y=T;y--;)I[y]!=null&&(typeof t.type=="function"&&I[y].__e!=null&&I[y].__e==t.__d&&(t.__d=Uc(i,y+1)),EW(I[y],I[y]));if(R)for(y=0;y<R.length;y++)_W(R[y],R[++y],R[++y])}n(wW,"w");function SW(r,e,t){for(var i,o=r.__k,a=0;o&&a<o.length;a++)(i=o[a])&&(i.__=r,e=typeof i.type=="function"?SW(i,e,t):OW(t,i,i,o,i.__e,e));return e}n(SW,"m");function ri(r,e){return e=e||[],r==null||typeof r=="boolean"||(Array.isArray(r)?r.some(function(t){ri(t,e)}):e.push(r)),e}n(ri,"x");function OW(r,e,t,i,o,a){var u,c,l;if(e.__d!==void 0)u=e.__d,e.__d=void 0;else if(t==null||o!=a||o.parentNode==null)e:if(a==null||a.parentNode!==r)r.appendChild(o),u=null;else{for(c=a,l=0;(c=c.nextSibling)&&l<i.length;l+=2)if(c==o)break e;r.insertBefore(o,a),u=a}return u!==void 0?u:o.nextSibling}n(OW,"A");function wze(r,e,t,i,o){var a;for(a in t)a==="children"||a==="key"||a in e||Ew(r,a,null,t[a],i);for(a in e)o&&typeof e[a]!="function"||a==="children"||a==="key"||a==="value"||a==="checked"||t[a]===e[a]||Ew(r,a,e[a],t[a],i)}n(wze,"C");function pW(r,e,t){e[0]==="-"?r.setProperty(e,t):r[e]=t==null?"":typeof t!="number"||bze.test(e)?t:t+"px"}n(pW,"$");function Ew(r,e,t,i,o){var a;e:if(e==="style")if(typeof t=="string")r.style.cssText=t;else{if(typeof i=="string"&&(r.style.cssText=i=""),i)for(e in i)t&&e in t||pW(r.style,e,"");if(t)for(e in t)i&&t[e]===i[e]||pW(r.style,e,t[e])}else if(e[0]==="o"&&e[1]==="n")a=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in r?e.toLowerCase().slice(2):e.slice(2),r.l||(r.l={}),r.l[e+a]=t,t?i||r.addEventListener(e,a?hW:dW,a):r.removeEventListener(e,a?hW:dW,a);else if(e!=="dangerouslySetInnerHTML"){if(o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in r)try{r[e]=t==null?"":t;break e}catch(u){}typeof t=="function"||(t!=null&&(t!==!1||e[0]==="a"&&e[1]==="r")?r.setAttribute(e,t):r.removeAttribute(e))}}n(Ew,"H");function dW(r){this.l[r.type+!1](je.event?je.event(r):r)}n(dW,"I");function hW(r){this.l[r.type+!0](je.event?je.event(r):r)}n(hW,"T");function $A(r,e,t,i,o,a,u,c,l){var d,y,m,b,w,S,P,R,I,T,F,k,U,D=e.type;if(e.constructor!==void 0)return null;t.__h!=null&&(l=t.__h,c=e.__e=t.__e,e.__h=null,a=[c]),(d=je.__b)&&d(e);try{e:if(typeof D=="function"){if(R=e.props,I=(d=D.contextType)&&i[d.__c],T=d?I?I.props.value:d.__:i,t.__c?P=(y=e.__c=t.__c).__=y.__E:("prototype"in D&&D.prototype.render?e.__c=y=new D(R,T):(e.__c=y=new ur(R,T),y.constructor=D,y.render=Oze),I&&I.sub(y),y.props=R,y.state||(y.state={}),y.context=T,y.__n=i,m=y.__d=!0,y.__h=[]),y.__s==null&&(y.__s=y.state),D.getDerivedStateFromProps!=null&&(y.__s==y.state&&(y.__s=$a({},y.__s)),$a(y.__s,D.getDerivedStateFromProps(R,y.__s))),b=y.props,w=y.state,m)D.getDerivedStateFromProps==null&&y.componentWillMount!=null&&y.componentWillMount(),y.componentDidMount!=null&&y.__h.push(y.componentDidMount);else{if(D.getDerivedStateFromProps==null&&R!==b&&y.componentWillReceiveProps!=null&&y.componentWillReceiveProps(R,T),!y.__e&&y.shouldComponentUpdate!=null&&y.shouldComponentUpdate(R,y.__s,T)===!1||e.__v===t.__v){y.props=R,y.state=y.__s,e.__v!==t.__v&&(y.__d=!1),y.__v=e,e.__e=t.__e,e.__k=t.__k,e.__k.forEach(function(H){H&&(H.__=e)}),y.__h.length&&u.push(y);break e}y.componentWillUpdate!=null&&y.componentWillUpdate(R,y.__s,T),y.componentDidUpdate!=null&&y.__h.push(function(){y.componentDidUpdate(b,w,S)})}if(y.context=T,y.props=R,y.__v=e,y.__P=r,F=je.__r,k=0,"prototype"in D&&D.prototype.render)y.state=y.__s,y.__d=!1,F&&F(e),d=y.render(y.props,y.state,y.context);else do y.__d=!1,F&&F(e),d=y.render(y.props,y.state,y.context),y.state=y.__s;while(y.__d&&++k<25);y.state=y.__s,y.getChildContext!=null&&(i=$a($a({},i),y.getChildContext())),m||y.getSnapshotBeforeUpdate==null||(S=y.getSnapshotBeforeUpdate(b,w)),U=d!=null&&d.type===ln&&d.key==null?d.props.children:d,wW(r,Array.isArray(U)?U:[U],e,t,i,o,a,u,c,l),y.base=e.__e,e.__h=null,y.__h.length&&u.push(y),P&&(y.__E=y.__=null),y.__e=!1}else a==null&&e.__v===t.__v?(e.__k=t.__k,e.__e=t.__e):e.__e=Sze(t.__e,e,t,i,o,a,u,l);(d=je.diffed)&&d(e)}catch(H){e.__v=null,(l||a!=null)&&(e.__e=c,e.__h=!!l,a[a.indexOf(c)]=null),je.__e(H,e,t)}}n($A,"j");function PW(r,e){je.__c&&je.__c(e,r),r.some(function(t){try{r=t.__h,t.__h=[],r.some(function(i){i.call(t)})}catch(i){je.__e(i,t.__v)}})}n(PW,"z");function Sze(r,e,t,i,o,a,u,c){var l,d,y,m=t.props,b=e.props,w=e.type,S=0;if(w==="svg"&&(o=!0),a!=null){for(;S<a.length;S++)if((l=a[S])&&"setAttribute"in l==!!w&&(w?l.localName===w:l.nodeType===3)){r=l,a[S]=null;break}}if(r==null){if(w===null)return document.createTextNode(b);r=o?document.createElementNS("http://www.w3.org/2000/svg",w):document.createElement(w,b.is&&b),a=null,c=!1}if(w===null)m===b||c&&r.data===b||(r.data=b);else{if(a=a&&Eh.call(r.childNodes),d=(m=t.props||Pw).dangerouslySetInnerHTML,y=b.dangerouslySetInnerHTML,!c){if(a!=null)for(m={},S=0;S<r.attributes.length;S++)m[r.attributes[S].name]=r.attributes[S].value;(y||d)&&(y&&(d&&y.__html==d.__html||y.__html===r.innerHTML)||(r.innerHTML=y&&y.__html||""))}if(wze(r,b,m,o,c),y)e.__k=[];else if(S=e.props.children,wW(r,Array.isArray(S)?S:[S],e,t,i,o&&w!=="foreignObject",a,u,a?a[0]:t.__k&&Uc(t,0),c),a!=null)for(S=a.length;S--;)a[S]!=null&&mW(a[S]);c||("value"in b&&(S=b.value)!==void 0&&(S!==r.value||w==="progress"&&!S||w==="option"&&S!==m.value)&&Ew(r,"value",S,m.value,!1),"checked"in b&&(S=b.checked)!==void 0&&S!==r.checked&&Ew(r,"checked",S,m.checked,!1))}return r}n(Sze,"L");function _W(r,e,t){try{typeof r=="function"?r(e):r.current=e}catch(i){je.__e(i,t)}}n(_W,"M");function EW(r,e,t){var i,o;if(je.unmount&&je.unmount(r),(i=r.ref)&&(i.current&&i.current!==r.__e||_W(i,null,e)),(i=r.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(a){je.__e(a,e)}i.base=i.__P=null}if(i=r.__k)for(o=0;o<i.length;o++)i[o]&&EW(i[o],e,typeof r.type!="function");t||r.__e==null||mW(r.__e),r.__e=r.__d=void 0}n(EW,"N");function Oze(r,e,t){return this.constructor(r,t)}n(Oze,"O");function GA(r,e,t){var i,o,a;je.__&&je.__(r,e),o=(i=typeof t=="function")?null:t&&t.__k||e.__k,a=[],$A(e,r=(!i&&t||e).__k=_(ln,null,[r]),o||Pw,Pw,e.ownerSVGElement!==void 0,!i&&t?[t]:o?null:e.firstChild?Eh.call(e.childNodes):null,a,!i&&t?t:o?o.__e:e.firstChild,i),PW(a,r)}n(GA,"P");function Tw(r,e,t){var i,o,a,u=$a({},r.props);for(a in e)a=="key"?i=e[a]:a=="ref"?o=e[a]:u[a]=e[a];return arguments.length>2&&(u.children=arguments.length>3?Eh.call(arguments,2):t),_h(r.type,u,i||r.key,o||r.ref,null)}n(Tw,"q");Eh=yW.slice,je={__e:n(function(e,t,i,o){for(var a,u,c;t=t.__;)if((a=t.__c)&&!a.__)try{if((u=a.constructor)&&u.getDerivedStateFromError!=null&&(a.setState(u.getDerivedStateFromError(e)),c=a.__d),a.componentDidCatch!=null&&(a.componentDidCatch(e,o||{}),c=a.__d),c)return a.__E=a}catch(l){e=l}throw e},"__e")},vW=0,mze=n(function(e){return e!=null&&e.constructor===void 0},"i"),ur.prototype.setState=function(r,e){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=$a({},this.state),typeof r=="function"&&(r=r($a({},t),this.props)),r&&$a(t,r),r!=null&&this.__v&&(e&&this.__h.push(e),fW(this))},ur.prototype.forceUpdate=function(r){this.__v&&(this.__e=!0,r&&this.__h.push(r),fW(this))},ur.prototype.render=ln,Ph=[],_w.__r=0,gze=0;function zA(r){"@babel/helpers - typeof";return zA=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zA(r)}n(zA,"_typeof");function Th(r){return zA(r)!=="object"||r===null||!("nodeType"in r)?!1:r.nodeType===Node.ELEMENT_NODE}n(Th,"isDOMElement");function Rh(r,e){return e===void 0&&(e=document),typeof r=="string"?e.querySelector(r):Th(r)?r:null}n(Rh,"findDOMElement");function Pze(r){for(var e;r&&!r.dir;)r=r.parentNode;return(e=r)==null?void 0:e.dir}n(Pze,"getTextDirection");var Rw=Pze;function Ah(r){"@babel/helpers - typeof";return Ah=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ah(r)}n(Ah,"_typeof");function TW(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(TW,"ownKeys");function Bc(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?TW(Object(t),!0).forEach(function(i){AW(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):TW(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(Bc,"_objectSpread");function AW(r,e,t){return e=IW(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(AW,"_defineProperty");function _ze(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(_ze,"_classCallCheck");function RW(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,IW(i.key),i)}}n(RW,"_defineProperties");function Eze(r,e,t){return e&&RW(r.prototype,e),t&&RW(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(Eze,"_createClass");function IW(r){var e=Tze(r,"string");return Ah(e)==="symbol"?e:String(e)}n(IW,"_toPropertyKey");function Tze(r,e){if(Ah(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Ah(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(Tze,"_toPrimitive");var fr=function(){function r(e,t){_ze(this,r),t===void 0&&(t={}),this.uppy=e,this.opts=t}return n(r,"BasePlugin"),Eze(r,[{key:"getPluginState",value:n(function(){var t=this.uppy.getState(),i=t.plugins;return i[this.id]||{}},"getPluginState")},{key:"setPluginState",value:n(function(t){var i=this.uppy.getState(),o=i.plugins;this.uppy.setState({plugins:Bc(Bc({},o),{},AW({},this.id,Bc(Bc({},o[this.id]),t)))})},"setPluginState")},{key:"setOptions",value:n(function(t){this.opts=Bc(Bc({},this.opts),t),this.setPluginState(),this.i18nInit()},"setOptions")},{key:"i18nInit",value:n(function(){var t=this,i=n(function(u){return t.uppy.log("Missing i18n string: ".concat(u),"error")},"onMissingKey"),o=new pw([this.defaultLocale,this.uppy.locale,this.opts.locale],{onMissingKey:i});this.i18n=o.translate.bind(o),this.i18nArray=o.translateArray.bind(o),this.setPluginState()},"i18nInit")},{key:"addTarget",value:n(function(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")},"addTarget")},{key:"install",value:n(function(){},"install")},{key:"uninstall",value:n(function(){},"uninstall")},{key:"render",value:n(function(){throw new Error("Extend the render method to add your plugin to a DOM element")},"render")},{key:"update",value:n(function(){},"update")},{key:"afterUpdate",value:n(function(){},"afterUpdate")}]),r}();function ds(r){"@babel/helpers - typeof";return ds=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ds(r)}n(ds,"_typeof");function Rze(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(Rze,"_classCallCheck");function qW(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,Ize(i.key),i)}}n(qW,"_defineProperties");function Aze(r,e,t){return e&&qW(r.prototype,e),t&&qW(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(Aze,"_createClass");function Ize(r){var e=qze(r,"string");return ds(e)==="symbol"?e:String(e)}n(Ize,"_toPropertyKey");function qze(r,e){if(ds(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(ds(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(qze,"_toPrimitive");function kze(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&HA(r,e)}n(kze,"_inherits");function HA(r,e){return HA=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),HA(r,e)}n(HA,"_setPrototypeOf");function jze(r){var e=Cze();return n(function(){var i=Aw(r),o;if(e){var a=Aw(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return Fze(this,o)},"_createSuperInternal")}n(jze,"_createSuper");function Fze(r,e){if(e&&(ds(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jW(r)}n(Fze,"_possibleConstructorReturn");function jW(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(jW,"_assertThisInitialized");function Cze(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(Cze,"_isNativeReflectConstruct");function Aw(r){return Aw=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),Aw(r)}n(Aw,"_getPrototypeOf");function Lze(r){return Mze(r)||Dze(r)||xze(r)||Nze()}n(Lze,"_toConsumableArray");function Nze(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n(Nze,"_nonIterableSpread");function xze(r,e){if(r){if(typeof r=="string")return WA(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return WA(r,e)}}n(xze,"_unsupportedIterableToArray");function Dze(r){if(typeof Symbol!="undefined"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}n(Dze,"_iterableToArray");function Mze(r){if(Array.isArray(r))return WA(r)}n(Mze,"_arrayWithoutHoles");function WA(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=r[t];return i}n(WA,"_arrayLikeToArray");function kW(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}n(kW,"_classPrivateFieldLooseBase");var Uze=0;function Bze(r){return"__private_"+Uze+++"_"+r}n(Bze,"_classPrivateFieldLooseKey");function $ze(r){var e=null,t=null;return function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=o,e||(e=Promise.resolve().then(function(){return e=null,r.apply(void 0,Lze(t))})),e}}n($ze,"debounce");var Ih=Bze("updateUI"),Gze=function(r){kze(t,r);var e=jze(t);function t(){var i;return Rze(this,t),i=e.apply(this,arguments),Object.defineProperty(jW(i),Ih,{writable:!0,value:void 0}),i}return n(t,"UIPlugin"),Aze(t,[{key:"getTargetPlugin",value:n(function(o){var a;if(ds(o)==="object"&&o instanceof t)a=o;else if(typeof o=="function"){var u=o;this.uppy.iteratePlugins(function(c){c instanceof u&&(a=c)})}return a},"getTargetPlugin")},{key:"mount",value:n(function(o,a){var u=this,c=a.id,l=Rh(o);if(l){this.isTargetDOMEl=!0;var d=document.createElement("div");return d.classList.add("uppy-Root"),kW(this,Ih)[Ih]=$ze(function(b){u.uppy.getPlugin(u.id)&&(GA(u.render(b),d),u.afterUpdate())}),this.uppy.log("Installing ".concat(c," to a DOM element '").concat(o,"'")),this.opts.replaceTargetContent&&(l.innerHTML=""),GA(this.render(this.uppy.getState()),d),this.el=d,l.appendChild(d),d.dir=this.opts.direction||Rw(d)||"ltr",this.onMount(),this.el}var y=this.getTargetPlugin(o);if(y)return this.uppy.log("Installing ".concat(c," to ").concat(y.id)),this.parent=y,this.el=y.addTarget(a),this.onMount(),this.el;this.uppy.log("Not installing ".concat(c));var m="Invalid target option given to ".concat(c,".");throw typeof o=="function"?m+=" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":m+="If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(m)},"mount")},{key:"update",value:n(function(o){if(this.el!=null){var a,u;(a=(u=kW(this,Ih))[Ih])==null||a.call(u,o)}},"update")},{key:"unmount",value:n(function(){if(this.isTargetDOMEl){var o;(o=this.el)==null||o.remove()}this.onUnmount()},"unmount")},{key:"onMount",value:n(function(){},"onMount")},{key:"onUnmount",value:n(function(){},"onUnmount")}]),t}(fr),Ee=Gze;var pI={};pm(pI,{Provider:function(){return dr},RequestClient:function(){return Rn},SearchProvider:function(){return Mw},Socket:function(){return TV}});function $c(r){"@babel/helpers - typeof";return $c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$c(r)}n($c,"_typeof");function FW(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,Hze(i.key),i)}}n(FW,"_defineProperties");function zze(r,e,t){return e&&FW(r.prototype,e),t&&FW(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(zze,"_createClass");function Hze(r){var e=Wze(r,"string");return $c(e)==="symbol"?e:String(e)}n(Hze,"_toPropertyKey");function Wze(r,e){if($c(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if($c(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(Wze,"_toPrimitive");function Vze(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(Vze,"_classCallCheck");function Kze(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&qh(r,e)}n(Kze,"_inherits");function Yze(r){var e=CW();return n(function(){var i=kh(r),o;if(e){var a=kh(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return Xze(this,o)},"_createSuperInternal")}n(Yze,"_createSuper");function Xze(r,e){if(e&&($c(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qze(r)}n(Xze,"_possibleConstructorReturn");function Qze(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(Qze,"_assertThisInitialized");function VA(r){var e=typeof Map=="function"?new Map:void 0;return VA=n(function(i){if(i===null||!Jze(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(i))return e.get(i);e.set(i,o)}function o(){return Iw(i,arguments,kh(this).constructor)}return n(o,"Wrapper"),o.prototype=Object.create(i.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),qh(o,i)},"_wrapNativeSuper"),VA(r)}n(VA,"_wrapNativeSuper");function Iw(r,e,t){return CW()?Iw=Reflect.construct.bind():Iw=n(function(o,a,u){var c=[null];c.push.apply(c,a);var l=Function.bind.apply(o,c),d=new l;return u&&qh(d,u.prototype),d},"_construct"),Iw.apply(null,arguments)}n(Iw,"_construct");function CW(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(CW,"_isNativeReflectConstruct");function Jze(r){return Function.toString.call(r).indexOf("[native code]")!==-1}n(Jze,"_isNativeFunction");function qh(r,e){return qh=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),qh(r,e)}n(qh,"_setPrototypeOf");function kh(r){return kh=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),kh(r)}n(kh,"_getPrototypeOf");var Zze=function(r){Kze(t,r);var e=Yze(t);function t(){var i;return Vze(this,t),i=e.apply(this,arguments),i.name="UserFacingApiError",i}return n(t,"UserFacingApiError"),zze(t)}(VA(Error)),LW=Zze;var KW=Ce(UW(),1);var rHe=Object.prototype.toString,tHe=n(function(e){return rHe.call(e)==="[object Error]"},"isError"),nHe=new Set(["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Load failed","Network request failed","fetch failed"]);function KA(r){var e=r&&tHe(r)&&r.name==="TypeError"&&typeof r.message=="string";return e?r.message==="Load failed"?r.stack===void 0:nHe.has(r.message):!1}n(KA,"isNetworkError");function vs(r){"@babel/helpers - typeof";return vs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vs(r)}n(vs,"_typeof");function jh(){"use strict";jh=n(function(){return r},"_regeneratorRuntime");var r={},e=Object.prototype,t=e.hasOwnProperty,i=Object.defineProperty||function(p,s,f){p[s]=f.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(p,s,f){return Object.defineProperty(p,s,{value:f,enumerable:!0,configurable:!0,writable:!0}),p[s]}n(l,"define");try{l({},"")}catch(p){l=n(function(f,v,g){return f[v]=g},"define")}function d(p,s,f,v){var g=s&&s.prototype instanceof b?s:b,h=Object.create(g.prototype),O=new V(v||[]);return i(h,"_invoke",{value:U(p,f,O)}),h}n(d,"wrap");function y(p,s,f){try{return{type:"normal",arg:p.call(s,f)}}catch(v){return{type:"throw",arg:v}}}n(y,"tryCatch"),r.wrap=d;var m={};function b(){}n(b,"Generator");function w(){}n(w,"GeneratorFunction");function S(){}n(S,"GeneratorFunctionPrototype");var P={};l(P,a,function(){return this});var R=Object.getPrototypeOf,I=R&&R(R(W([])));I&&I!==e&&t.call(I,a)&&(P=I);var T=S.prototype=b.prototype=Object.create(P);function F(p){["next","throw","return"].forEach(function(s){l(p,s,function(f){return this._invoke(s,f)})})}n(F,"defineIteratorMethods");function k(p,s){function f(g,h,O,E){var A=y(p[g],p,h);if(A.type!=="throw"){var C=A.arg,N=C.value;return N&&vs(N)=="object"&&t.call(N,"__await")?s.resolve(N.__await).then(function(M){f("next",M,O,E)},function(M){f("throw",M,O,E)}):s.resolve(N).then(function(M){C.value=M,O(C)},function(M){return f("throw",M,O,E)})}E(A.arg)}n(f,"invoke");var v;i(this,"_invoke",{value:n(function(h,O){function E(){return new s(function(A,C){f(h,O,A,C)})}return n(E,"callInvokeWithMethodAndArg"),v=v?v.then(E,E):E()},"value")})}n(k,"AsyncIterator");function U(p,s,f){var v="suspendedStart";return function(g,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(g==="throw")throw h;return Y()}for(f.method=g,f.arg=h;;){var O=f.delegate;if(O){var E=D(O,f);if(E){if(E===m)continue;return E}}if(f.method==="next")f.sent=f._sent=f.arg;else if(f.method==="throw"){if(v==="suspendedStart")throw v="completed",f.arg;f.dispatchException(f.arg)}else f.method==="return"&&f.abrupt("return",f.arg);v="executing";var A=y(p,s,f);if(A.type==="normal"){if(v=f.done?"completed":"suspendedYield",A.arg===m)continue;return{value:A.arg,done:f.done}}A.type==="throw"&&(v="completed",f.method="throw",f.arg=A.arg)}}}n(U,"makeInvokeMethod");function D(p,s){var f=s.method,v=p.iterator[f];if(v===void 0)return s.delegate=null,f==="throw"&&p.iterator.return&&(s.method="return",s.arg=void 0,D(p,s),s.method==="throw")||f!=="return"&&(s.method="throw",s.arg=new TypeError("The iterator does not provide a '"+f+"' method")),m;var g=y(v,p.iterator,s.arg);if(g.type==="throw")return s.method="throw",s.arg=g.arg,s.delegate=null,m;var h=g.arg;return h?h.done?(s[p.resultName]=h.value,s.next=p.nextLoc,s.method!=="return"&&(s.method="next",s.arg=void 0),s.delegate=null,m):h:(s.method="throw",s.arg=new TypeError("iterator result is not an object"),s.delegate=null,m)}n(D,"maybeInvokeDelegate");function H(p){var s={tryLoc:p[0]};1 in p&&(s.catchLoc=p[1]),2 in p&&(s.finallyLoc=p[2],s.afterLoc=p[3]),this.tryEntries.push(s)}n(H,"pushTryEntry");function $(p){var s=p.completion||{};s.type="normal",delete s.arg,p.completion=s}n($,"resetTryEntry");function V(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(H,this),this.reset(!0)}n(V,"Context");function W(p){if(p){var s=p[a];if(s)return s.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var f=-1,v=n(function g(){for(;++f<p.length;)if(t.call(p,f))return g.value=p[f],g.done=!1,g;return g.value=void 0,g.done=!0,g},"next");return v.next=v}}return{next:Y}}n(W,"values");function Y(){return{value:void 0,done:!0}}return n(Y,"doneResult"),w.prototype=S,i(T,"constructor",{value:S,configurable:!0}),i(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),r.isGeneratorFunction=function(p){var s=typeof p=="function"&&p.constructor;return!!s&&(s===w||(s.displayName||s.name)==="GeneratorFunction")},r.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,S):(p.__proto__=S,l(p,c,"GeneratorFunction")),p.prototype=Object.create(T),p},r.awrap=function(p){return{__await:p}},F(k.prototype),l(k.prototype,u,function(){return this}),r.AsyncIterator=k,r.async=function(p,s,f,v,g){g===void 0&&(g=Promise);var h=new k(d(p,s,f,v),g);return r.isGeneratorFunction(s)?h:h.next().then(function(O){return O.done?O.value:h.next()})},F(T),l(T,c,"Generator"),l(T,a,function(){return this}),l(T,"toString",function(){return"[object Generator]"}),r.keys=function(p){var s=Object(p),f=[];for(var v in s)f.push(v);return f.reverse(),n(function g(){for(;f.length;){var h=f.pop();if(h in s)return g.value=h,g.done=!1,g}return g.done=!0,g},"next")},r.values=W,V.prototype={constructor:V,reset:n(function(s){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach($),!s)for(var f in this)f.charAt(0)==="t"&&t.call(this,f)&&!isNaN(+f.slice(1))&&(this[f]=void 0)},"reset"),stop:n(function(){this.done=!0;var s=this.tryEntries[0].completion;if(s.type==="throw")throw s.arg;return this.rval},"stop"),dispatchException:n(function(s){if(this.done)throw s;var f=this;function v(C,N){return O.type="throw",O.arg=s,f.next=C,N&&(f.method="next",f.arg=void 0),!!N}n(v,"handle");for(var g=this.tryEntries.length-1;g>=0;--g){var h=this.tryEntries[g],O=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var E=t.call(h,"catchLoc"),A=t.call(h,"finallyLoc");if(E&&A){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(E){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!A)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},"dispatchException"),abrupt:n(function(s,f){for(var v=this.tryEntries.length-1;v>=0;--v){var g=this.tryEntries[v];if(g.tryLoc<=this.prev&&t.call(g,"finallyLoc")&&this.prev<g.finallyLoc){var h=g;break}}h&&(s==="break"||s==="continue")&&h.tryLoc<=f&&f<=h.finallyLoc&&(h=null);var O=h?h.completion:{};return O.type=s,O.arg=f,h?(this.method="next",this.next=h.finallyLoc,m):this.complete(O)},"abrupt"),complete:n(function(s,f){if(s.type==="throw")throw s.arg;return s.type==="break"||s.type==="continue"?this.next=s.arg:s.type==="return"?(this.rval=this.arg=s.arg,this.method="return",this.next="end"):s.type==="normal"&&f&&(this.next=f),m},"complete"),finish:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.finallyLoc===s)return this.complete(v.completion,v.afterLoc),$(v),m}},"finish"),catch:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.tryLoc===s){var g=v.completion;if(g.type==="throw"){var h=g.arg;$(v)}return h}}throw new Error("illegal catch attempt")},"_catch"),delegateYield:n(function(s,f,v){return this.delegate={iterator:W(s),resultName:f,nextLoc:v},this.method==="next"&&(this.arg=void 0),m},"delegateYield")},r}n(jh,"_regeneratorRuntime");function BW(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(BW,"ownKeys");function iHe(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?BW(Object(t),!0).forEach(function(i){aHe(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):BW(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(iHe,"_objectSpread");function aHe(r,e,t){return e=WW(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(aHe,"_defineProperty");function $W(r,e,t,i,o,a,u){try{var c=r[a](u),l=c.value}catch(d){t(d);return}c.done?e(l):Promise.resolve(l).then(i,o)}n($W,"asyncGeneratorStep");function GW(r){return function(){var e=this,t=arguments;return new Promise(function(i,o){var a=r.apply(e,t);function u(l){$W(a,i,o,u,c,"next",l)}n(u,"_next");function c(l){$W(a,i,o,u,c,"throw",l)}n(c,"_throw"),u(void 0)})}}n(GW,"_asyncToGenerator");function zW(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,WW(i.key),i)}}n(zW,"_defineProperties");function oHe(r,e,t){return e&&zW(r.prototype,e),t&&zW(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(oHe,"_createClass");function WW(r){var e=uHe(r,"string");return vs(e)==="symbol"?e:String(e)}n(WW,"_toPropertyKey");function uHe(r,e){if(vs(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(vs(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(uHe,"_toPrimitive");function sHe(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(sHe,"_classCallCheck");function lHe(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&Fh(r,e)}n(lHe,"_inherits");function cHe(r){var e=VW();return n(function(){var i=Ch(r),o;if(e){var a=Ch(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return fHe(this,o)},"_createSuperInternal")}n(cHe,"_createSuper");function fHe(r,e){if(e&&(vs(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pHe(r)}n(fHe,"_possibleConstructorReturn");function pHe(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(pHe,"_assertThisInitialized");function YA(r){var e=typeof Map=="function"?new Map:void 0;return YA=n(function(i){if(i===null||!dHe(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(i))return e.get(i);e.set(i,o)}function o(){return qw(i,arguments,Ch(this).constructor)}return n(o,"Wrapper"),o.prototype=Object.create(i.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Fh(o,i)},"_wrapNativeSuper"),YA(r)}n(YA,"_wrapNativeSuper");function qw(r,e,t){return VW()?qw=Reflect.construct.bind():qw=n(function(o,a,u){var c=[null];c.push.apply(c,a);var l=Function.bind.apply(o,c),d=new l;return u&&Fh(d,u.prototype),d},"_construct"),qw.apply(null,arguments)}n(qw,"_construct");function VW(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(VW,"_isNativeReflectConstruct");function dHe(r){return Function.toString.call(r).indexOf("[native code]")!==-1}n(dHe,"_isNativeFunction");function Fh(r,e){return Fh=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),Fh(r,e)}n(Fh,"_setPrototypeOf");function Ch(r){return Ch=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),Ch(r)}n(Ch,"_getPrototypeOf");var kw=function(r){lHe(t,r);var e=cHe(t);function t(i){var o;if(sHe(this,t),o=e.call(this),i instanceof Error){o.originalError=i;var a=i;i=a.message}else o.originalError=new Error(i),o.originalError.stack=o.stack;return o.name="AbortError",o.message=i,o}return n(t,"AbortError"),oHe(t)}(YA(Error)),HW=n(function(e,t,i){var o=i.retries-(t-1);return e.attemptNumber=t,e.retriesLeft=o,e},"decorateErrorWithCounts");function jw(r,e){return XA.apply(this,arguments)}n(jw,"pRetry");function XA(){return XA=GW(jh().mark(n(function r(e,t){return jh().wrap(n(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",new Promise(function(a,u){t=iHe({onFailedAttempt:n(function(){},"onFailedAttempt"),retries:10},t);var c=KW.default.operation(t),l=n(function(){var m;c.stop(),u((m=t.signal)===null||m===void 0?void 0:m.reason)},"abortHandler");t.signal&&!t.signal.aborted&&t.signal.addEventListener("abort",l,{once:!0});var d=n(function(){var m;(m=t.signal)===null||m===void 0||m.removeEventListener("abort",l),c.stop()},"cleanUp");c.attempt(function(){var y=GW(jh().mark(n(function m(b){var w;return jh().wrap(n(function(P){for(;;)switch(P.prev=P.next){case 0:return P.prev=0,P.next=3,e(b);case 3:w=P.sent,d(),a(w),P.next=28;break;case 8:if(P.prev=8,P.t0=P.catch(0),P.prev=10,P.t0 instanceof Error){P.next=13;break}throw new TypeError('Non-error was thrown: "'.concat(P.t0,'". You should only throw errors.'));case 13:if(!(P.t0 instanceof kw)){P.next=15;break}throw P.t0.originalError;case 15:if(!(P.t0 instanceof TypeError&&!KA(P.t0))){P.next=17;break}throw P.t0;case 17:return P.next=19,t.onFailedAttempt(HW(P.t0,b,t));case 19:if(c.retry(P.t0)){P.next=21;break}throw c.mainError();case 21:P.next=28;break;case 23:P.prev=23,P.t1=P.catch(10),HW(P.t1,b,t),d(),u(P.t1);case 28:case"end":return P.stop()}},"_callee$"),m,null,[[0,8],[10,23]])},"_callee")));return function(m){return y.apply(this,arguments)}}())}));case 1:case"end":return o.stop()}},"_callee2$"),r)},"_callee2"))),XA.apply(this,arguments)}n(XA,"_pRetry");function Gc(r){"@babel/helpers - typeof";return Gc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gc(r)}n(Gc,"_typeof");function YW(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,vHe(i.key),i)}}n(YW,"_defineProperties");function hHe(r,e,t){return e&&YW(r.prototype,e),t&&YW(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(hHe,"_createClass");function vHe(r){var e=yHe(r,"string");return Gc(e)==="symbol"?e:String(e)}n(vHe,"_toPropertyKey");function yHe(r,e){if(Gc(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Gc(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(yHe,"_toPrimitive");function mHe(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(mHe,"_classCallCheck");function gHe(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&Lh(r,e)}n(gHe,"_inherits");function bHe(r){var e=XW();return n(function(){var i=Nh(r),o;if(e){var a=Nh(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return wHe(this,o)},"_createSuperInternal")}n(bHe,"_createSuper");function wHe(r,e){if(e&&(Gc(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return SHe(r)}n(wHe,"_possibleConstructorReturn");function SHe(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(SHe,"_assertThisInitialized");function QA(r){var e=typeof Map=="function"?new Map:void 0;return QA=n(function(i){if(i===null||!OHe(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(i))return e.get(i);e.set(i,o)}function o(){return Fw(i,arguments,Nh(this).constructor)}return n(o,"Wrapper"),o.prototype=Object.create(i.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Lh(o,i)},"_wrapNativeSuper"),QA(r)}n(QA,"_wrapNativeSuper");function Fw(r,e,t){return XW()?Fw=Reflect.construct.bind():Fw=n(function(o,a,u){var c=[null];c.push.apply(c,a);var l=Function.bind.apply(o,c),d=new l;return u&&Lh(d,u.prototype),d},"_construct"),Fw.apply(null,arguments)}n(Fw,"_construct");function XW(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(XW,"_isNativeReflectConstruct");function OHe(r){return Function.toString.call(r).indexOf("[native code]")!==-1}n(OHe,"_isNativeFunction");function Lh(r,e){return Lh=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),Lh(r,e)}n(Lh,"_setPrototypeOf");function Nh(r){return Nh=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),Nh(r)}n(Nh,"_getPrototypeOf");var PHe=function(r){gHe(t,r);var e=bHe(t);function t(i,o){var a;return mHe(this,t),o===void 0&&(o=null),a=e.call(this,"This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),a.cause=i,a.isNetworkError=!0,a.request=o,a}return n(t,"NetworkError"),hHe(t)}(QA(Error)),_i=PHe;function ys(){return fetch.apply(void 0,arguments).catch(function(r){throw r.name==="AbortError"?r:new _i(r)})}n(ys,"fetchWithNetworkError");function En(r,e){return Object.prototype.hasOwnProperty.call(r,e)}n(En,"has");function zc(r){"@babel/helpers - typeof";return zc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zc(r)}n(zc,"_typeof");function QW(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,EHe(i.key),i)}}n(QW,"_defineProperties");function _He(r,e,t){return e&&QW(r.prototype,e),t&&QW(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(_He,"_createClass");function EHe(r){var e=THe(r,"string");return zc(e)==="symbol"?e:String(e)}n(EHe,"_toPropertyKey");function THe(r,e){if(zc(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(zc(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(THe,"_toPrimitive");function RHe(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(RHe,"_classCallCheck");function AHe(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&xh(r,e)}n(AHe,"_inherits");function IHe(r){var e=JW();return n(function(){var i=Dh(r),o;if(e){var a=Dh(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return qHe(this,o)},"_createSuperInternal")}n(IHe,"_createSuper");function qHe(r,e){if(e&&(zc(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kHe(r)}n(qHe,"_possibleConstructorReturn");function kHe(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(kHe,"_assertThisInitialized");function JA(r){var e=typeof Map=="function"?new Map:void 0;return JA=n(function(i){if(i===null||!jHe(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(i))return e.get(i);e.set(i,o)}function o(){return Cw(i,arguments,Dh(this).constructor)}return n(o,"Wrapper"),o.prototype=Object.create(i.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),xh(o,i)},"_wrapNativeSuper"),JA(r)}n(JA,"_wrapNativeSuper");function Cw(r,e,t){return JW()?Cw=Reflect.construct.bind():Cw=n(function(o,a,u){var c=[null];c.push.apply(c,a);var l=Function.bind.apply(o,c),d=new l;return u&&xh(d,u.prototype),d},"_construct"),Cw.apply(null,arguments)}n(Cw,"_construct");function JW(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(JW,"_isNativeReflectConstruct");function jHe(r){return Function.toString.call(r).indexOf("[native code]")!==-1}n(jHe,"_isNativeFunction");function xh(r,e){return xh=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),xh(r,e)}n(xh,"_setPrototypeOf");function Dh(r){return Dh=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),Dh(r)}n(Dh,"_getPrototypeOf");var FHe=function(r){AHe(t,r);var e=IHe(t);function t(i,o){var a;return RHe(this,t),a=e.call(this,i),a.cause=o==null?void 0:o.cause,a.cause&&En(a.cause,"isNetworkError")?a.isNetworkError=a.cause.isNetworkError:a.isNetworkError=!1,a}return n(t,"ErrorWithCause"),_He(t)}(JA(Error)),Ga=FHe;var ZW=Ce(hw(),1);function CHe(r,e,t){var i=e.progress,o=e.bytesUploaded,a=e.bytesTotal;i&&(r.uppy.log("Upload progress: ".concat(i)),r.uppy.emit("upload-progress",t,{uploader:r,bytesUploaded:o,bytesTotal:a}))}n(CHe,"emitSocketProgress");var eV=(0,ZW.default)(CHe,300,{leading:!0,trailing:!0});function ZA(r){var e,t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i,i=(e=t.exec(r))==null?void 0:e[1],o=/^http:\/\//i.test(r)?"ws":"wss";return"".concat(o,"://").concat(i)}n(ZA,"getSocketHost");function Hc(r){"@babel/helpers - typeof";return Hc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hc(r)}n(Hc,"_typeof");function rV(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,NHe(i.key),i)}}n(rV,"_defineProperties");function LHe(r,e,t){return e&&rV(r.prototype,e),t&&rV(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(LHe,"_createClass");function NHe(r){var e=xHe(r,"string");return Hc(e)==="symbol"?e:String(e)}n(NHe,"_toPropertyKey");function xHe(r,e){if(Hc(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Hc(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(xHe,"_toPrimitive");function DHe(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(DHe,"_classCallCheck");function MHe(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&Mh(r,e)}n(MHe,"_inherits");function UHe(r){var e=tV();return n(function(){var i=Uh(r),o;if(e){var a=Uh(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return BHe(this,o)},"_createSuperInternal")}n(UHe,"_createSuper");function BHe(r,e){if(e&&(Hc(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $He(r)}n(BHe,"_possibleConstructorReturn");function $He(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n($He,"_assertThisInitialized");function eI(r){var e=typeof Map=="function"?new Map:void 0;return eI=n(function(i){if(i===null||!GHe(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(i))return e.get(i);e.set(i,o)}function o(){return Lw(i,arguments,Uh(this).constructor)}return n(o,"Wrapper"),o.prototype=Object.create(i.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Mh(o,i)},"_wrapNativeSuper"),eI(r)}n(eI,"_wrapNativeSuper");function Lw(r,e,t){return tV()?Lw=Reflect.construct.bind():Lw=n(function(o,a,u){var c=[null];c.push.apply(c,a);var l=Function.bind.apply(o,c),d=new l;return u&&Mh(d,u.prototype),d},"_construct"),Lw.apply(null,arguments)}n(Lw,"_construct");function tV(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(tV,"_isNativeReflectConstruct");function GHe(r){return Function.toString.call(r).indexOf("[native code]")!==-1}n(GHe,"_isNativeFunction");function Mh(r,e){return Mh=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),Mh(r,e)}n(Mh,"_setPrototypeOf");function Uh(r){return Uh=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),Uh(r)}n(Uh,"_getPrototypeOf");var zHe=function(r){MHe(t,r);var e=UHe(t);function t(){var i;return DHe(this,t),i=e.call(this,"Authorization required"),i.name="AuthError",i.isAuthError=!0,i}return n(t,"AuthError"),LHe(t)}(eI(Error)),nV=zHe;function ms(r){"@babel/helpers - typeof";return ms=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ms(r)}n(ms,"_typeof");function nr(){"use strict";nr=n(function(){return r},"_regeneratorRuntime");var r={},e=Object.prototype,t=e.hasOwnProperty,i=Object.defineProperty||function(p,s,f){p[s]=f.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(p,s,f){return Object.defineProperty(p,s,{value:f,enumerable:!0,configurable:!0,writable:!0}),p[s]}n(l,"define");try{l({},"")}catch(p){l=n(function(f,v,g){return f[v]=g},"define")}function d(p,s,f,v){var g=s&&s.prototype instanceof b?s:b,h=Object.create(g.prototype),O=new V(v||[]);return i(h,"_invoke",{value:U(p,f,O)}),h}n(d,"wrap");function y(p,s,f){try{return{type:"normal",arg:p.call(s,f)}}catch(v){return{type:"throw",arg:v}}}n(y,"tryCatch"),r.wrap=d;var m={};function b(){}n(b,"Generator");function w(){}n(w,"GeneratorFunction");function S(){}n(S,"GeneratorFunctionPrototype");var P={};l(P,a,function(){return this});var R=Object.getPrototypeOf,I=R&&R(R(W([])));I&&I!==e&&t.call(I,a)&&(P=I);var T=S.prototype=b.prototype=Object.create(P);function F(p){["next","throw","return"].forEach(function(s){l(p,s,function(f){return this._invoke(s,f)})})}n(F,"defineIteratorMethods");function k(p,s){function f(g,h,O,E){var A=y(p[g],p,h);if(A.type!=="throw"){var C=A.arg,N=C.value;return N&&ms(N)=="object"&&t.call(N,"__await")?s.resolve(N.__await).then(function(M){f("next",M,O,E)},function(M){f("throw",M,O,E)}):s.resolve(N).then(function(M){C.value=M,O(C)},function(M){return f("throw",M,O,E)})}E(A.arg)}n(f,"invoke");var v;i(this,"_invoke",{value:n(function(h,O){function E(){return new s(function(A,C){f(h,O,A,C)})}return n(E,"callInvokeWithMethodAndArg"),v=v?v.then(E,E):E()},"value")})}n(k,"AsyncIterator");function U(p,s,f){var v="suspendedStart";return function(g,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(g==="throw")throw h;return Y()}for(f.method=g,f.arg=h;;){var O=f.delegate;if(O){var E=D(O,f);if(E){if(E===m)continue;return E}}if(f.method==="next")f.sent=f._sent=f.arg;else if(f.method==="throw"){if(v==="suspendedStart")throw v="completed",f.arg;f.dispatchException(f.arg)}else f.method==="return"&&f.abrupt("return",f.arg);v="executing";var A=y(p,s,f);if(A.type==="normal"){if(v=f.done?"completed":"suspendedYield",A.arg===m)continue;return{value:A.arg,done:f.done}}A.type==="throw"&&(v="completed",f.method="throw",f.arg=A.arg)}}}n(U,"makeInvokeMethod");function D(p,s){var f=s.method,v=p.iterator[f];if(v===void 0)return s.delegate=null,f==="throw"&&p.iterator.return&&(s.method="return",s.arg=void 0,D(p,s),s.method==="throw")||f!=="return"&&(s.method="throw",s.arg=new TypeError("The iterator does not provide a '"+f+"' method")),m;var g=y(v,p.iterator,s.arg);if(g.type==="throw")return s.method="throw",s.arg=g.arg,s.delegate=null,m;var h=g.arg;return h?h.done?(s[p.resultName]=h.value,s.next=p.nextLoc,s.method!=="return"&&(s.method="next",s.arg=void 0),s.delegate=null,m):h:(s.method="throw",s.arg=new TypeError("iterator result is not an object"),s.delegate=null,m)}n(D,"maybeInvokeDelegate");function H(p){var s={tryLoc:p[0]};1 in p&&(s.catchLoc=p[1]),2 in p&&(s.finallyLoc=p[2],s.afterLoc=p[3]),this.tryEntries.push(s)}n(H,"pushTryEntry");function $(p){var s=p.completion||{};s.type="normal",delete s.arg,p.completion=s}n($,"resetTryEntry");function V(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(H,this),this.reset(!0)}n(V,"Context");function W(p){if(p){var s=p[a];if(s)return s.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var f=-1,v=n(function g(){for(;++f<p.length;)if(t.call(p,f))return g.value=p[f],g.done=!1,g;return g.value=void 0,g.done=!0,g},"next");return v.next=v}}return{next:Y}}n(W,"values");function Y(){return{value:void 0,done:!0}}return n(Y,"doneResult"),w.prototype=S,i(T,"constructor",{value:S,configurable:!0}),i(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),r.isGeneratorFunction=function(p){var s=typeof p=="function"&&p.constructor;return!!s&&(s===w||(s.displayName||s.name)==="GeneratorFunction")},r.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,S):(p.__proto__=S,l(p,c,"GeneratorFunction")),p.prototype=Object.create(T),p},r.awrap=function(p){return{__await:p}},F(k.prototype),l(k.prototype,u,function(){return this}),r.AsyncIterator=k,r.async=function(p,s,f,v,g){g===void 0&&(g=Promise);var h=new k(d(p,s,f,v),g);return r.isGeneratorFunction(s)?h:h.next().then(function(O){return O.done?O.value:h.next()})},F(T),l(T,c,"Generator"),l(T,a,function(){return this}),l(T,"toString",function(){return"[object Generator]"}),r.keys=function(p){var s=Object(p),f=[];for(var v in s)f.push(v);return f.reverse(),n(function g(){for(;f.length;){var h=f.pop();if(h in s)return g.value=h,g.done=!1,g}return g.done=!0,g},"next")},r.values=W,V.prototype={constructor:V,reset:n(function(s){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach($),!s)for(var f in this)f.charAt(0)==="t"&&t.call(this,f)&&!isNaN(+f.slice(1))&&(this[f]=void 0)},"reset"),stop:n(function(){this.done=!0;var s=this.tryEntries[0].completion;if(s.type==="throw")throw s.arg;return this.rval},"stop"),dispatchException:n(function(s){if(this.done)throw s;var f=this;function v(C,N){return O.type="throw",O.arg=s,f.next=C,N&&(f.method="next",f.arg=void 0),!!N}n(v,"handle");for(var g=this.tryEntries.length-1;g>=0;--g){var h=this.tryEntries[g],O=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var E=t.call(h,"catchLoc"),A=t.call(h,"finallyLoc");if(E&&A){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(E){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!A)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},"dispatchException"),abrupt:n(function(s,f){for(var v=this.tryEntries.length-1;v>=0;--v){var g=this.tryEntries[v];if(g.tryLoc<=this.prev&&t.call(g,"finallyLoc")&&this.prev<g.finallyLoc){var h=g;break}}h&&(s==="break"||s==="continue")&&h.tryLoc<=f&&f<=h.finallyLoc&&(h=null);var O=h?h.completion:{};return O.type=s,O.arg=f,h?(this.method="next",this.next=h.finallyLoc,m):this.complete(O)},"abrupt"),complete:n(function(s,f){if(s.type==="throw")throw s.arg;return s.type==="break"||s.type==="continue"?this.next=s.arg:s.type==="return"?(this.rval=this.arg=s.arg,this.method="return",this.next="end"):s.type==="normal"&&f&&(this.next=f),m},"complete"),finish:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.finallyLoc===s)return this.complete(v.completion,v.afterLoc),$(v),m}},"finish"),catch:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.tryLoc===s){var g=v.completion;if(g.type==="throw"){var h=g.arg;$(v)}return h}}throw new Error("illegal catch attempt")},"_catch"),delegateYield:n(function(s,f,v){return this.delegate={iterator:W(s),resultName:f,nextLoc:v},this.method==="next"&&(this.arg=void 0),m},"delegateYield")},r}n(nr,"_regeneratorRuntime");function iV(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(iV,"ownKeys");function Tn(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?iV(Object(t),!0).forEach(function(i){uV(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):iV(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(Tn,"_objectSpread");function uV(r,e,t){return e=lV(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(uV,"_defineProperty");function aV(r,e,t,i,o,a,u){try{var c=r[a](u),l=c.value}catch(d){t(d);return}c.done?e(l):Promise.resolve(l).then(i,o)}n(aV,"asyncGeneratorStep");function cn(r){return function(){var e=this,t=arguments;return new Promise(function(i,o){var a=r.apply(e,t);function u(l){aV(a,i,o,u,c,"next",l)}n(u,"_next");function c(l){aV(a,i,o,u,c,"throw",l)}n(c,"_throw"),u(void 0)})}}n(cn,"_asyncToGenerator");function oV(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,lV(i.key),i)}}n(oV,"_defineProperties");function sV(r,e,t){return e&&oV(r.prototype,e),t&&oV(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(sV,"_createClass");function lV(r){var e=HHe(r,"string");return ms(e)==="symbol"?e:String(e)}n(lV,"_toPropertyKey");function HHe(r,e){if(ms(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(ms(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(HHe,"_toPrimitive");function cV(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(cV,"_classCallCheck");function WHe(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&Gh(r,e)}n(WHe,"_inherits");function VHe(r){var e=fV();return n(function(){var i=zh(r),o;if(e){var a=zh(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return KHe(this,o)},"_createSuperInternal")}n(VHe,"_createSuper");function KHe(r,e){if(e&&(ms(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return YHe(r)}n(KHe,"_possibleConstructorReturn");function YHe(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(YHe,"_assertThisInitialized");function tI(r){var e=typeof Map=="function"?new Map:void 0;return tI=n(function(i){if(i===null||!XHe(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(i))return e.get(i);e.set(i,o)}function o(){return Nw(i,arguments,zh(this).constructor)}return n(o,"Wrapper"),o.prototype=Object.create(i.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Gh(o,i)},"_wrapNativeSuper"),tI(r)}n(tI,"_wrapNativeSuper");function Nw(r,e,t){return fV()?Nw=Reflect.construct.bind():Nw=n(function(o,a,u){var c=[null];c.push.apply(c,a);var l=Function.bind.apply(o,c),d=new l;return u&&Gh(d,u.prototype),d},"_construct"),Nw.apply(null,arguments)}n(Nw,"_construct");function fV(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(fV,"_isNativeReflectConstruct");function XHe(r){return Function.toString.call(r).indexOf("[native code]")!==-1}n(XHe,"_isNativeFunction");function Gh(r,e){return Gh=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),Gh(r,e)}n(Gh,"_setPrototypeOf");function zh(r){return zh=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),zh(r)}n(zh,"_getPrototypeOf");var pV;function za(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}n(za,"_classPrivateFieldLooseBase");var QHe=0;function xw(r){return"__private_"+QHe+++"_"+r}n(xw,"_classPrivateFieldLooseKey");var JHe={version:"3.7.0"};function ZHe(r){return r.replace(/\/$/,"")}n(ZHe,"stripSlash");var dV=10,eWe=5*60*1e3,aI=401,rWe=function(r){WHe(t,r);var e=VHe(t);function t(i){var o;cV(this,t);var a=i.statusCode,u=i.message;return o=e.call(this,u),o.statusCode=void 0,o.name="HttpError",o.statusCode=a,o}return n(t,"HttpError"),sV(t)}(tI(Error));function tWe(r){return nI.apply(this,arguments)}n(tWe,"handleJSONResponse");function nI(){return nI=cn(nr().mark(n(function r(e){var t,i;return nr().wrap(n(function(a){for(;;)switch(a.prev=a.next){case 0:if(e.status!==aI){a.next=2;break}throw new nV;case 2:if(!e.ok){a.next=4;break}return a.abrupt("return",e.json());case 4:return t="Failed request with status: ".concat(e.status,". ").concat(e.statusText),a.prev=5,a.next=8,e.json();case 8:i=a.sent,i.message&&(t="".concat(t," message: ").concat(i.message)),i.requestId&&(t="".concat(t," request-Id: ").concat(i.requestId)),a.next=16;break;case 13:throw a.prev=13,a.t0=a.catch(5),new Error(t,{cause:a.t0});case 16:if(!(e.status>=400&&e.status<=499&&i.message)){a.next=18;break}throw new LW(i.message);case 18:throw new rWe({statusCode:e.status,message:t});case 19:case"end":return a.stop()}},"_callee10$"),r,null,[[5,13]])},"_callee10"))),nI.apply(this,arguments)}n(nI,"_handleJSONResponse");var Ha=xw("companionHeaders"),Bh=xw("getUrl"),rI=xw("requestSocketToken"),$h=xw("awaitRemoteFileUpload");pV=Symbol.for("uppy test: getCompanionHeaders");var Rn=function(r){function e(t,i){var o=this;cV(this,e),Object.defineProperty(this,$h,{value:iWe}),Object.defineProperty(this,Bh,{value:nWe}),Object.defineProperty(this,Ha,{writable:!0,value:void 0}),Object.defineProperty(this,rI,{writable:!0,value:function(){var a=cn(nr().mark(n(function c(l){var d,y,m,b;return nr().wrap(n(function(S){for(;;)switch(S.prev=S.next){case 0:if(d=l.file,y=l.postBody,m=l.signal,d.remote.url!=null){S.next=3;break}throw new Error("Cannot connect to an undefined URL");case 3:return S.next=5,o.post(d.remote.url,Tn(Tn({},d.remote.body),y),m);case 5:return b=S.sent,S.abrupt("return",b.token);case 7:case"end":return S.stop()}},"_callee$"),c)},"_callee")));function u(c){return a.apply(this,arguments)}return n(u,"value"),u}()}),this.uppy=t,this.opts=i,this.onReceiveResponse=this.onReceiveResponse.bind(this),za(this,Ha)[Ha]=i==null?void 0:i.companionHeaders}return n(e,"RequestClient"),sV(e,[{key:"setCompanionHeaders",value:n(function(i){za(this,Ha)[Ha]=i},"setCompanionHeaders")},{key:r,value:n(function(){return za(this,Ha)[Ha]},"value")},{key:"hostname",get:n(function(){var i=this.uppy.getState(),o=i.companion,a=this.opts.companionUrl;return ZHe(o&&o[a]?o[a]:a)},"get")},{key:"headers",value:function(){var t=cn(nr().mark(n(function o(a){var u;return nr().wrap(n(function(l){for(;;)switch(l.prev=l.next){case 0:return a===void 0&&(a=!1),u=Tn({Accept:"application/json"},a?void 0:{"Content-Type":"application/json"}),l.abrupt("return",Tn(Tn({},u),za(this,Ha)[Ha]));case 3:case"end":return l.stop()}},"_callee2$"),o,this)},"_callee2")));function i(o){return t.apply(this,arguments)}return n(i,"headers"),i}()},{key:"onReceiveResponse",value:n(function(i){var o=i.headers,a=this.uppy.getState(),u=a.companion||{},c=this.opts.companionUrl;o.has("i-am")&&o.get("i-am")!==u[c]&&this.uppy.setState({companion:Tn(Tn({},u),{},uV({},c,o.get("i-am")))})},"onReceiveResponse")},{key:"request",value:function(){var t=cn(nr().mark(n(function o(a){var u,c,l,d,y,m,b,w;return nr().wrap(n(function(P){for(;;)switch(P.prev=P.next){case 0:return u=a.path,c=a.method,l=c===void 0?"GET":c,d=a.data,y=a.skipPostResponse,m=a.signal,P.prev=1,P.next=4,this.headers(!d);case 4:return b=P.sent,P.next=7,ys(za(this,Bh)[Bh](u),{method:l,signal:m,headers:b,credentials:this.opts.companionCookiesRule||"same-origin",body:d?JSON.stringify(d):null});case 7:return w=P.sent,y||this.onReceiveResponse(w),P.next=11,tWe(w);case 11:return P.abrupt("return",P.sent);case 14:if(P.prev=14,P.t0=P.catch(1),!(P.t0.isAuthError||P.t0.name==="UserFacingApiError"||P.t0.name==="AbortError")){P.next=18;break}throw P.t0;case 18:throw new Ga("Could not ".concat(l," ").concat(za(this,Bh)[Bh](u)),{cause:P.t0});case 19:case"end":return P.stop()}},"_callee3$"),o,this,[[1,14]])},"_callee3")));function i(o){return t.apply(this,arguments)}return n(i,"request"),i}()},{key:"get",value:function(){var t=cn(nr().mark(n(function o(a,u){return nr().wrap(n(function(l){for(;;)switch(l.prev=l.next){case 0:return u===void 0&&(u=void 0),typeof u=="boolean"&&(u={skipPostResponse:u}),l.abrupt("return",this.request(Tn(Tn({},u),{},{path:a})));case 3:case"end":return l.stop()}},"_callee4$"),o,this)},"_callee4")));function i(o,a){return t.apply(this,arguments)}return n(i,"get"),i}()},{key:"post",value:function(){var t=cn(nr().mark(n(function o(a,u,c){return nr().wrap(n(function(d){for(;;)switch(d.prev=d.next){case 0:return c===void 0&&(c=void 0),typeof c=="boolean"&&(c={skipPostResponse:c}),d.abrupt("return",this.request(Tn(Tn({},c),{},{path:a,method:"POST",data:u})));case 3:case"end":return d.stop()}},"_callee5$"),o,this)},"_callee5")));function i(o,a,u){return t.apply(this,arguments)}return n(i,"post"),i}()},{key:"delete",value:function(){var t=cn(nr().mark(n(function o(a,u,c){return nr().wrap(n(function(d){for(;;)switch(d.prev=d.next){case 0:return u===void 0&&(u=void 0),typeof c=="boolean"&&(c={skipPostResponse:c}),d.abrupt("return",this.request(Tn(Tn({},c),{},{path:a,method:"DELETE",data:u})));case 3:case"end":return d.stop()}},"_callee6$"),o,this)},"_callee6")));function i(o,a,u){return t.apply(this,arguments)}return n(i,"_delete"),i}()},{key:"uploadRemoteFile",value:function(){var t=cn(nr().mark(n(function o(a,u,c){var l=this,d,y,m,b;return nr().wrap(n(function(S){for(;;)switch(S.prev=S.next){case 0:return d=this,c===void 0&&(c={}),S.prev=2,y=c,m=y.signal,b=y.getQueue,S.next=6,jw(cn(nr().mark(n(function P(){var R,I,T,F;return nr().wrap(n(function(U){for(;;)switch(U.prev=U.next){case 0:if(I=(R=l.uppy.getFile(a.id))==null?void 0:R.serverToken,I==null){U.next=4;break}return l.uppy.log("Connecting to exiting websocket ".concat(I)),U.abrupt("return",za(l,$h)[$h]({file:a,queue:b(),signal:m}));case 4:return T=b().wrapPromiseFunction(cn(nr().mark(n(function D(){var H,$,V,W=arguments;return nr().wrap(n(function(p){for(;;)switch(p.prev=p.next){case 0:return p.prev=0,p.next=3,(H=za(d,rI))[rI].apply(H,W);case 3:return p.abrupt("return",p.sent);case 6:if(p.prev=6,p.t0=p.catch(0),!p.t0.isAuthError){p.next=10;break}throw new kw(p.t0);case 10:if(p.t0.cause!=null){p.next=12;break}throw p.t0;case 12:if($=p.t0.cause,V=n(function(){return[408,409,429,418,423].includes($.statusCode)||$.statusCode>=500&&$.statusCode<=599&&![501,505].includes($.statusCode)},"isRetryableHttpError"),!($.name==="HttpError"&&!V())){p.next=16;break}throw new kw($);case 16:throw $;case 17:case"end":return p.stop()}},"_callee7$"),D,null,[[0,6]])},"_callee7"))),{priority:-1}),U.next=7,T({file:a,postBody:u,signal:m}).abortOn(m);case 7:if(F=U.sent,l.uppy.getFile(a.id)){U.next=10;break}return U.abrupt("return",void 0);case 10:return l.uppy.setFileState(a.id,{serverToken:F}),U.abrupt("return",za(l,$h)[$h]({file:l.uppy.getFile(a.id),queue:b(),signal:m}));case 12:case"end":return U.stop()}},"_callee8$"),P)},"_callee8"))),{retries:dV,signal:m,onFailedAttempt:n(function(R){return l.uppy.log("Retrying upload due to: ".concat(R.message),"warning")},"onFailedAttempt")});case 6:return S.abrupt("return",S.sent);case 9:if(S.prev=9,S.t0=S.catch(2),S.t0.name!=="AbortError"){S.next=13;break}return S.abrupt("return",void 0);case 13:throw this.uppy.emit("upload-error",a,S.t0),S.t0;case 15:case"end":return S.stop()}},"_callee9$"),o,this,[[2,9]])},"_callee9")));function i(o,a,u){return t.apply(this,arguments)}return n(i,"uploadRemoteFile"),i}()}]),e}(pV);function nWe(r){return/^(https?:|)\/\//.test(r)?r:"".concat(this.hostname,"/").concat(r)}n(nWe,"_getUrl2");function iWe(r){return iI.apply(this,arguments)}n(iWe,"_awaitRemoteFileUpload2");function iI(){return iI=cn(nr().mark(n(function r(e){var t=this,i,o,a,u,c,l;return nr().wrap(n(function(y){for(;;)switch(y.prev=y.next){case 0:return i=e.file,o=e.queue,a=e.signal,c=this.uppy.getState(),l=c.capabilities,y.prev=2,y.next=5,new Promise(function(m,b){var w=i.serverToken,S=ZA(i.remote.companionUrl),P,R,I,T=i.isPaused,F=n(function(s,f){if(P==null||P.readyState!==P.OPEN){var v;t.uppy.log('Cannot send "'.concat(s,'" to socket ').concat(i.id," because the socket state was ").concat(String((v=P)==null?void 0:v.readyState)),"warning");return}P.send(JSON.stringify({action:s,payload:f!=null?f:{}}))},"socketSend");function k(){l.resumableUploads&&F(T?"pause":"resume")}n(k,"sendState");var U=function(){var p=cn(nr().mark(n(function s(){var f,v;return nr().wrap(n(function(h){for(;;)switch(h.prev=h.next){case 0:return v=n(function(){clearTimeout(I),!T&&(I=setTimeout(function(){return f(new Error("Timeout waiting for message from Companion socket"))},eWe))},"_resetActivityTimeout"),R&&R.abort(),R=new AbortController,f=n(function(E){var A;t.uppy.setFileState(i.id,{serverToken:null}),(A=R)==null||A.abort==null||A.abort(),b(E)},"onFatalError"),h.prev=4,h.next=7,o.wrapPromiseFunction(cn(nr().mark(n(function O(){var E;return nr().wrap(n(function(C){for(;;)switch(C.prev=C.next){case 0:return E=function(){var N=cn(nr().mark(n(function M(){return nr().wrap(n(function(be){for(;;)switch(be.prev=be.next){case 0:return be.abrupt("return",new Promise(function(_e,Oe){P=new WebSocket("".concat(S,"/api/").concat(w)),v(),P.addEventListener("close",function(){P=void 0,Oe(new Error("Socket closed unexpectedly"))}),P.addEventListener("error",function(Qe){t.uppy.log("Companion socket error ".concat(JSON.stringify(Qe),", closing socket"),"warning"),P.close()}),P.addEventListener("open",function(){k()}),P.addEventListener("message",function(Qe){v();try{var ot=JSON.parse(Qe.data),ut=ot.action,Re=ot.payload;switch(ut){case"progress":{eV(t,Re,i);break}case"success":{var Kr;t.uppy.emit("upload-success",i,{uploadURL:Re.url}),(Kr=R)==null||Kr.abort==null||Kr.abort(),m();break}case"error":{var qr=Re.error.message;throw Object.assign(new Error(qr),{cause:Re.error})}default:t.uppy.log("Companion socket unknown action ".concat(ut),"warning")}}catch(si){f(si)}});var Me=n(function(){t.uppy.log("Closing socket ".concat(i.id),"info"),clearTimeout(I),P&&P.close(),P=void 0},"closeSocket");R.signal.addEventListener("abort",function(){Me()})}));case 1:case"end":return be.stop()}},"_callee11$"),M)},"_callee11")));return n(function(){return N.apply(this,arguments)},"reconnectWebsocket")}(),C.next=3,jw(E,{retries:dV,signal:R.signal,onFailedAttempt:n(function(){R.signal.aborted||t.uppy.log("Retrying websocket ".concat(i.id),"info")},"onFailedAttempt")});case 3:case"end":return C.stop()}},"_callee12$"),O)},"_callee12"))))().abortOn(R.signal);case 7:h.next=14;break;case 9:if(h.prev=9,h.t0=h.catch(4),!R.signal.aborted){h.next=13;break}return h.abrupt("return");case 13:f(h.t0);case 14:case"end":return h.stop()}},"_callee13$"),s,null,[[4,9]])},"_callee13")));return n(function(){return p.apply(this,arguments)},"createWebsocket")}(),D=n(function(s){if(l.resumableUploads)if(T=s,P&&k(),s){var f;(f=R)==null||f.abort==null||f.abort()}else U()},"pause"),H=n(function(s){var f;l.individualCancellation&&s.id===i.id&&(F("cancel"),(f=R)==null||f.abort==null||f.abort(),t.uppy.log("upload ".concat(i.id," was removed"),"info"),m())},"onFileRemove"),$=n(function(s){var f,v=s.reason;v==="user"&&F("cancel"),(f=R)==null||f.abort==null||f.abort(),t.uppy.log("upload ".concat(i.id," was canceled"),"info"),m()},"onCancelAll"),V=n(function(s,f){s===i.id&&D(f)},"onFilePausedChange"),W=n(function(){return D(!0)},"onPauseAll"),Y=n(function(){return D(!1)},"onResumeAll");t.uppy.on("file-removed",H),t.uppy.on("cancel-all",$),t.uppy.on("upload-pause",V),t.uppy.on("pause-all",W),t.uppy.on("resume-all",Y),u=n(function(){t.uppy.off("file-removed",H),t.uppy.off("cancel-all",$),t.uppy.off("upload-pause",V),t.uppy.off("pause-all",W),t.uppy.off("resume-all",Y)},"removeEventHandlers"),a.addEventListener("abort",function(){var p;(p=R)==null||p.abort()}),U()});case 5:return y.abrupt("return",y.sent);case 6:return y.prev=6,u==null||u(),y.finish(6);case 9:case"end":return y.stop()}},"_callee14$"),r,this,[[2,,6,9]])},"_callee14"))),iI.apply(this,arguments)}n(iI,"_awaitRemoteFileUpload3");Rn.VERSION=JHe.version;var oI={};pm(oI,{getItem:function(){return oWe},removeItem:function(){return uWe},setItem:function(){return aWe}});function aWe(r,e){return new Promise(function(t){localStorage.setItem(r,e),t()})}n(aWe,"setItem");function oWe(r){return Promise.resolve(localStorage.getItem(r))}n(oWe,"getItem");function uWe(r){return new Promise(function(e){localStorage.removeItem(r),e()})}n(uWe,"removeItem");function bs(r){"@babel/helpers - typeof";return bs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bs(r)}n(bs,"_typeof");function pr(){"use strict";pr=n(function(){return r},"_regeneratorRuntime");var r={},e=Object.prototype,t=e.hasOwnProperty,i=Object.defineProperty||function(p,s,f){p[s]=f.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(p,s,f){return Object.defineProperty(p,s,{value:f,enumerable:!0,configurable:!0,writable:!0}),p[s]}n(l,"define");try{l({},"")}catch(p){l=n(function(f,v,g){return f[v]=g},"define")}function d(p,s,f,v){var g=s&&s.prototype instanceof b?s:b,h=Object.create(g.prototype),O=new V(v||[]);return i(h,"_invoke",{value:U(p,f,O)}),h}n(d,"wrap");function y(p,s,f){try{return{type:"normal",arg:p.call(s,f)}}catch(v){return{type:"throw",arg:v}}}n(y,"tryCatch"),r.wrap=d;var m={};function b(){}n(b,"Generator");function w(){}n(w,"GeneratorFunction");function S(){}n(S,"GeneratorFunctionPrototype");var P={};l(P,a,function(){return this});var R=Object.getPrototypeOf,I=R&&R(R(W([])));I&&I!==e&&t.call(I,a)&&(P=I);var T=S.prototype=b.prototype=Object.create(P);function F(p){["next","throw","return"].forEach(function(s){l(p,s,function(f){return this._invoke(s,f)})})}n(F,"defineIteratorMethods");function k(p,s){function f(g,h,O,E){var A=y(p[g],p,h);if(A.type!=="throw"){var C=A.arg,N=C.value;return N&&bs(N)=="object"&&t.call(N,"__await")?s.resolve(N.__await).then(function(M){f("next",M,O,E)},function(M){f("throw",M,O,E)}):s.resolve(N).then(function(M){C.value=M,O(C)},function(M){return f("throw",M,O,E)})}E(A.arg)}n(f,"invoke");var v;i(this,"_invoke",{value:n(function(h,O){function E(){return new s(function(A,C){f(h,O,A,C)})}return n(E,"callInvokeWithMethodAndArg"),v=v?v.then(E,E):E()},"value")})}n(k,"AsyncIterator");function U(p,s,f){var v="suspendedStart";return function(g,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(g==="throw")throw h;return Y()}for(f.method=g,f.arg=h;;){var O=f.delegate;if(O){var E=D(O,f);if(E){if(E===m)continue;return E}}if(f.method==="next")f.sent=f._sent=f.arg;else if(f.method==="throw"){if(v==="suspendedStart")throw v="completed",f.arg;f.dispatchException(f.arg)}else f.method==="return"&&f.abrupt("return",f.arg);v="executing";var A=y(p,s,f);if(A.type==="normal"){if(v=f.done?"completed":"suspendedYield",A.arg===m)continue;return{value:A.arg,done:f.done}}A.type==="throw"&&(v="completed",f.method="throw",f.arg=A.arg)}}}n(U,"makeInvokeMethod");function D(p,s){var f=s.method,v=p.iterator[f];if(v===void 0)return s.delegate=null,f==="throw"&&p.iterator.return&&(s.method="return",s.arg=void 0,D(p,s),s.method==="throw")||f!=="return"&&(s.method="throw",s.arg=new TypeError("The iterator does not provide a '"+f+"' method")),m;var g=y(v,p.iterator,s.arg);if(g.type==="throw")return s.method="throw",s.arg=g.arg,s.delegate=null,m;var h=g.arg;return h?h.done?(s[p.resultName]=h.value,s.next=p.nextLoc,s.method!=="return"&&(s.method="next",s.arg=void 0),s.delegate=null,m):h:(s.method="throw",s.arg=new TypeError("iterator result is not an object"),s.delegate=null,m)}n(D,"maybeInvokeDelegate");function H(p){var s={tryLoc:p[0]};1 in p&&(s.catchLoc=p[1]),2 in p&&(s.finallyLoc=p[2],s.afterLoc=p[3]),this.tryEntries.push(s)}n(H,"pushTryEntry");function $(p){var s=p.completion||{};s.type="normal",delete s.arg,p.completion=s}n($,"resetTryEntry");function V(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(H,this),this.reset(!0)}n(V,"Context");function W(p){if(p){var s=p[a];if(s)return s.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var f=-1,v=n(function g(){for(;++f<p.length;)if(t.call(p,f))return g.value=p[f],g.done=!1,g;return g.value=void 0,g.done=!0,g},"next");return v.next=v}}return{next:Y}}n(W,"values");function Y(){return{value:void 0,done:!0}}return n(Y,"doneResult"),w.prototype=S,i(T,"constructor",{value:S,configurable:!0}),i(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),r.isGeneratorFunction=function(p){var s=typeof p=="function"&&p.constructor;return!!s&&(s===w||(s.displayName||s.name)==="GeneratorFunction")},r.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,S):(p.__proto__=S,l(p,c,"GeneratorFunction")),p.prototype=Object.create(T),p},r.awrap=function(p){return{__await:p}},F(k.prototype),l(k.prototype,u,function(){return this}),r.AsyncIterator=k,r.async=function(p,s,f,v,g){g===void 0&&(g=Promise);var h=new k(d(p,s,f,v),g);return r.isGeneratorFunction(s)?h:h.next().then(function(O){return O.done?O.value:h.next()})},F(T),l(T,c,"Generator"),l(T,a,function(){return this}),l(T,"toString",function(){return"[object Generator]"}),r.keys=function(p){var s=Object(p),f=[];for(var v in s)f.push(v);return f.reverse(),n(function g(){for(;f.length;){var h=f.pop();if(h in s)return g.value=h,g.done=!1,g}return g.done=!0,g},"next")},r.values=W,V.prototype={constructor:V,reset:n(function(s){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach($),!s)for(var f in this)f.charAt(0)==="t"&&t.call(this,f)&&!isNaN(+f.slice(1))&&(this[f]=void 0)},"reset"),stop:n(function(){this.done=!0;var s=this.tryEntries[0].completion;if(s.type==="throw")throw s.arg;return this.rval},"stop"),dispatchException:n(function(s){if(this.done)throw s;var f=this;function v(C,N){return O.type="throw",O.arg=s,f.next=C,N&&(f.method="next",f.arg=void 0),!!N}n(v,"handle");for(var g=this.tryEntries.length-1;g>=0;--g){var h=this.tryEntries[g],O=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var E=t.call(h,"catchLoc"),A=t.call(h,"finallyLoc");if(E&&A){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(E){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!A)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},"dispatchException"),abrupt:n(function(s,f){for(var v=this.tryEntries.length-1;v>=0;--v){var g=this.tryEntries[v];if(g.tryLoc<=this.prev&&t.call(g,"finallyLoc")&&this.prev<g.finallyLoc){var h=g;break}}h&&(s==="break"||s==="continue")&&h.tryLoc<=f&&f<=h.finallyLoc&&(h=null);var O=h?h.completion:{};return O.type=s,O.arg=f,h?(this.method="next",this.next=h.finallyLoc,m):this.complete(O)},"abrupt"),complete:n(function(s,f){if(s.type==="throw")throw s.arg;return s.type==="break"||s.type==="continue"?this.next=s.arg:s.type==="return"?(this.rval=this.arg=s.arg,this.method="return",this.next="end"):s.type==="normal"&&f&&(this.next=f),m},"complete"),finish:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.finallyLoc===s)return this.complete(v.completion,v.afterLoc),$(v),m}},"finish"),catch:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.tryLoc===s){var g=v.completion;if(g.type==="throw"){var h=g.arg;$(v)}return h}}throw new Error("illegal catch attempt")},"_catch"),delegateYield:n(function(s,f,v){return this.delegate={iterator:W(s),resultName:f,nextLoc:v},this.method==="next"&&(this.arg=void 0),m},"delegateYield")},r}n(pr,"_regeneratorRuntime");function hV(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(hV,"ownKeys");function Wc(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?hV(Object(t),!0).forEach(function(i){sWe(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):hV(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(Wc,"_objectSpread");function sWe(r,e,t){return e=bV(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(sWe,"_defineProperty");function lWe(r,e){return dWe(r)||pWe(r,e)||fWe(r,e)||cWe()}n(lWe,"_slicedToArray");function cWe(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n(cWe,"_nonIterableRest");function fWe(r,e){if(r){if(typeof r=="string")return vV(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return vV(r,e)}}n(fWe,"_unsupportedIterableToArray");function vV(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=r[t];return i}n(vV,"_arrayLikeToArray");function pWe(r,e){var t=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var i,o,a,u,c=[],l=!0,d=!1;try{if(a=(t=t.call(r)).next,e===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(i=a.call(t)).done)&&(c.push(i.value),c.length!==e);l=!0);}catch(y){d=!0,o=y}finally{try{if(!l&&t.return!=null&&(u=t.return(),Object(u)!==u))return}finally{if(d)throw o}}return c}}n(pWe,"_iterableToArrayLimit");function dWe(r){if(Array.isArray(r))return r}n(dWe,"_arrayWithHoles");function yV(r,e,t,i,o,a,u){try{var c=r[a](u),l=c.value}catch(d){t(d);return}c.done?e(l):Promise.resolve(l).then(i,o)}n(yV,"asyncGeneratorStep");function ni(r){return function(){var e=this,t=arguments;return new Promise(function(i,o){var a=r.apply(e,t);function u(l){yV(a,i,o,u,c,"next",l)}n(u,"_next");function c(l){yV(a,i,o,u,c,"throw",l)}n(c,"_throw"),u(void 0)})}}n(ni,"_asyncToGenerator");function hWe(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(hWe,"_classCallCheck");function mV(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,bV(i.key),i)}}n(mV,"_defineProperties");function vWe(r,e,t){return e&&mV(r.prototype,e),t&&mV(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(vWe,"_createClass");function bV(r){var e=yWe(r,"string");return bs(e)==="symbol"?e:String(e)}n(bV,"_toPropertyKey");function yWe(r,e){if(bs(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(bs(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(yWe,"_toPrimitive");function tu(){return typeof Reflect!="undefined"&&Reflect.get?tu=Reflect.get.bind():tu=n(function(e,t,i){var o=mWe(e,t);if(o){var a=Object.getOwnPropertyDescriptor(o,t);return a.get?a.get.call(arguments.length<3?e:i):a.value}},"_get"),tu.apply(this,arguments)}n(tu,"_get");function mWe(r,e){for(;!Object.prototype.hasOwnProperty.call(r,e)&&(r=ta(r),r!==null););return r}n(mWe,"_superPropBase");function gWe(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&uI(r,e)}n(gWe,"_inherits");function uI(r,e){return uI=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),uI(r,e)}n(uI,"_setPrototypeOf");function bWe(r){var e=SWe();return n(function(){var i=ta(r),o;if(e){var a=ta(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return wWe(this,o)},"_createSuperInternal")}n(bWe,"_createSuper");function wWe(r,e){if(e&&(bs(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sI(r)}n(wWe,"_possibleConstructorReturn");function sI(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(sI,"_assertThisInitialized");function SWe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(SWe,"_isNativeReflectConstruct");function ta(r){return ta=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),ta(r)}n(ta,"_getPrototypeOf");function gs(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}n(gs,"_classPrivateFieldLooseBase");var OWe=0;function wV(r){return"__private_"+OWe+++"_"+r}n(wV,"_classPrivateFieldLooseKey");var PWe=n(function(e){return e.split("-").map(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}).join(" ")},"getName");function _We(){return location.origin}n(_We,"getOrigin");function gV(r){if(typeof r=="string")return new RegExp("^".concat(r,"$"));if(r instanceof RegExp)return r}n(gV,"getRegex");function EWe(r,e){var t=Array.isArray(e)?e.map(gV):[gV(e)];return t.some(function(i){return(i==null?void 0:i.test(r))||(i==null?void 0:i.test("".concat(r,"/")))})}n(EWe,"isOriginAllowed");var Ei=wV("refreshingTokenPromise"),Hh=wV("getAuthToken"),dr=function(r){gWe(t,r);var e=bWe(t);function t(i,o){var a;hWe(this,t);var u;return a=e.call(this,i,o),Object.defineProperty(sI(a),Hh,{value:TWe}),Object.defineProperty(sI(a),Ei,{writable:!0,value:void 0}),a.provider=o.provider,a.id=a.provider,a.name=a.opts.name||PWe(a.id),a.pluginId=a.opts.pluginId,a.tokenKey="companion-".concat(a.pluginId,"-auth-token"),a.companionKeysParams=a.opts.companionKeysParams,a.preAuthToken=null,a.supportsRefreshToken=(u=o.supportsRefreshToken)!=null?u:!0,a}return n(t,"Provider"),vWe(t,[{key:"headers",value:function(){var i=ni(pr().mark(n(function a(){var u,c,l,d,y;return pr().wrap(n(function(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,Promise.all([tu(ta(t.prototype),"headers",this).call(this),gs(this,Hh)[Hh]()]);case 2:return u=b.sent,c=lWe(u,2),l=c[0],d=c[1],y={},d&&(y["uppy-auth-token"]=d),this.companionKeysParams&&(y["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),b.abrupt("return",Wc(Wc({},l),y));case 10:case"end":return b.stop()}},"_callee$"),a,this)},"_callee")));function o(){return i.apply(this,arguments)}return n(o,"headers"),o}()},{key:"onReceiveResponse",value:n(function(o){tu(ta(t.prototype),"onReceiveResponse",this).call(this,o);var a=this.uppy.getPlugin(this.pluginId),u=a.getPluginState().authenticated,c=u?o.status!==aI:o.status<400;return a.setPluginState({authenticated:c}),o},"onReceiveResponse")},{key:"setAuthToken",value:function(){var i=ni(pr().mark(n(function a(u){return pr().wrap(n(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,u));case 1:case"end":return l.stop()}},"_callee2$"),a,this)},"_callee2")));function o(a){return i.apply(this,arguments)}return n(o,"setAuthToken"),o}()},{key:"removeAuthToken",value:function(){var i=ni(pr().mark(n(function a(){return pr().wrap(n(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey));case 1:case"end":return c.stop()}},"_callee3$"),a,this)},"_callee3")));function o(){return i.apply(this,arguments)}return n(o,"removeAuthToken"),o}()},{key:"ensurePreAuth",value:function(){var i=ni(pr().mark(n(function a(){return pr().wrap(n(function(c){for(;;)switch(c.prev=c.next){case 0:if(!(this.companionKeysParams&&!this.preAuthToken)){c.next=5;break}return c.next=3,this.fetchPreAuthToken();case 3:if(this.preAuthToken){c.next=5;break}throw new Error("Could not load authentication data required for third-party login. Please try again later.");case 5:case"end":return c.stop()}},"_callee4$"),a,this)},"_callee4")));function o(){return i.apply(this,arguments)}return n(o,"ensurePreAuth"),o}()},{key:"authQuery",value:n(function(){return{}},"authQuery")},{key:"authUrl",value:n(function(o){var a=o===void 0?{}:o,u=a.authFormData,c=a.query,l=new URLSearchParams(Wc(Wc({},c),{},{state:btoa(JSON.stringify({origin:_We()}))},this.authQuery({authFormData:u})));return this.preAuthToken&&l.set("uppyPreAuthToken",this.preAuthToken),"".concat(this.hostname,"/").concat(this.id,"/connect?").concat(l)},"authUrl")},{key:"loginSimpleAuth",value:function(){var i=ni(pr().mark(n(function a(u){var c,l,d,y;return pr().wrap(n(function(b){for(;;)switch(b.prev=b.next){case 0:return c=u.uppyVersions,l=u.authFormData,d=u.signal,b.next=3,this.post("".concat(this.id,"/simple-auth"),{form:l},{qs:{uppyVersions:c},signal:d});case 3:y=b.sent,this.setAuthToken(y.uppyAuthToken);case 5:case"end":return b.stop()}},"_callee5$"),a,this)},"_callee5")));function o(a){return i.apply(this,arguments)}return n(o,"loginSimpleAuth"),o}()},{key:"loginOAuth",value:function(){var i=ni(pr().mark(n(function a(u){var c=this,l,d,y;return pr().wrap(n(function(b){for(;;)switch(b.prev=b.next){case 0:return l=u.uppyVersions,d=u.authFormData,y=u.signal,b.next=3,this.ensurePreAuth();case 3:return y.throwIfAborted(),b.abrupt("return",new Promise(function(w,S){var P=c.authUrl({query:{uppyVersions:l},authFormData:d}),R=window.open(P,"_blank"),I,T=n(function(k){if(k.source!==R){var U="";try{U=JSON.stringify(k.data)}catch(W){}c.uppy.log("ignoring event from unknown source ".concat(U),"warning");return}var D=c.uppy.getPlugin(c.pluginId).opts.companionAllowedHosts;if(!EWe(k.origin,D)){S(new Error("rejecting event from ".concat(k.origin," vs allowed pattern ").concat(D)));return}var H=typeof k.data=="string"?JSON.parse(k.data):k.data;if(H.error){var $=c.uppy,V=$.i18n("authAborted");$.info({message:V},"warning",5e3),S(new Error("auth aborted"));return}if(!H.token){S(new Error("did not receive token from auth window"));return}I(),w(c.setAuthToken(H.token))},"handleToken");I=n(function(){R.close(),window.removeEventListener("message",T),y.removeEventListener("abort",I)},"cleanup"),y.addEventListener("abort",I),window.addEventListener("message",T)}));case 5:case"end":return b.stop()}},"_callee6$"),a,this)},"_callee6")));function o(a){return i.apply(this,arguments)}return n(o,"loginOAuth"),o}()},{key:"login",value:function(){var i=ni(pr().mark(n(function a(u){var c,l,d;return pr().wrap(n(function(m){for(;;)switch(m.prev=m.next){case 0:return c=u.uppyVersions,l=u.authFormData,d=u.signal,m.abrupt("return",this.loginOAuth({uppyVersions:c,authFormData:l,signal:d}));case 2:case"end":return m.stop()}},"_callee7$"),a,this)},"_callee7")));function o(a){return i.apply(this,arguments)}return n(o,"login"),o}()},{key:"refreshTokenUrl",value:n(function(){return"".concat(this.hostname,"/").concat(this.id,"/refresh-token")},"refreshTokenUrl")},{key:"fileUrl",value:n(function(o){return"".concat(this.hostname,"/").concat(this.id,"/get/").concat(o)},"fileUrl")},{key:"request",value:function(){var i=ni(pr().mark(n(function a(){var u=this,c,l=arguments;return pr().wrap(n(function(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,gs(this,Ei)[Ei];case 2:return y.prev=2,y.next=5,tu(ta(t.prototype),"request",this).apply(this,l);case 5:return y.abrupt("return",y.sent);case 8:if(y.prev=8,y.t0=y.catch(2),this.supportsRefreshToken){y.next=12;break}throw y.t0;case 12:return y.next=14,gs(this,Hh)[Hh]();case 14:if(c=y.sent,!(!y.t0.isAuthError||!c)){y.next=17;break}throw y.t0;case 17:return gs(this,Ei)[Ei]==null&&(gs(this,Ei)[Ei]=ni(pr().mark(n(function m(){var b;return pr().wrap(n(function(S){for(;;)switch(S.prev=S.next){case 0:return S.prev=0,u.uppy.log("[CompanionClient] Refreshing expired auth token","info"),S.next=4,tu(ta(t.prototype),"request",u).call(u,{path:u.refreshTokenUrl(),method:"POST"});case 4:return b=S.sent,S.next=7,u.setAuthToken(b.uppyAuthToken);case 7:S.next=15;break;case 9:if(S.prev=9,S.t0=S.catch(0),!S.t0.isAuthError){S.next=14;break}return S.next=14,u.removeAuthToken();case 14:throw y.t0;case 15:return S.prev=15,gs(u,Ei)[Ei]=void 0,S.finish(15);case 18:case"end":return S.stop()}},"_callee8$"),m,null,[[0,9,15,18]])},"_callee8")))()),y.next=20,gs(this,Ei)[Ei];case 20:return y.abrupt("return",tu(ta(t.prototype),"request",this).apply(this,l));case 21:case"end":return y.stop()}},"_callee9$"),a,this,[[2,8]])},"_callee9")));function o(){return i.apply(this,arguments)}return n(o,"request"),o}()},{key:"fetchPreAuthToken",value:function(){var i=ni(pr().mark(n(function a(){var u;return pr().wrap(n(function(l){for(;;)switch(l.prev=l.next){case 0:if(this.companionKeysParams){l.next=2;break}return l.abrupt("return");case 2:return l.prev=2,l.next=5,this.post("".concat(this.id,"/preauth/"),{params:this.companionKeysParams});case 5:u=l.sent,this.preAuthToken=u.token,l.next=12;break;case 9:l.prev=9,l.t0=l.catch(2),this.uppy.log("[CompanionClient] unable to fetch preAuthToken ".concat(l.t0),"warning");case 12:case"end":return l.stop()}},"_callee10$"),a,this,[[2,9]])},"_callee10")));function o(){return i.apply(this,arguments)}return n(o,"fetchPreAuthToken"),o}()},{key:"list",value:n(function(o,a){return this.get("".concat(this.id,"/list/").concat(o||""),a)},"list")},{key:"logout",value:function(){var i=ni(pr().mark(n(function a(u){var c;return pr().wrap(n(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,this.get("".concat(this.id,"/logout"),u);case 2:return c=d.sent,d.next=5,this.removeAuthToken();case 5:return d.abrupt("return",c);case 6:case"end":return d.stop()}},"_callee11$"),a,this)},"_callee11")));function o(a){return i.apply(this,arguments)}return n(o,"logout"),o}()}],[{key:"initPlugin",value:n(function(o,a,u){if(o.type="acquirer",o.files=[],u&&(o.opts=Wc(Wc({},u),a)),a.serverUrl||a.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(a.companionAllowedHosts){var c=a.companionAllowedHosts;if(typeof c!="string"&&!Array.isArray(c)&&!(c instanceof RegExp))throw new TypeError("".concat(o.id,': the option "companionAllowedHosts" must be one of string, Array, RegExp'));o.opts.companionAllowedHosts=c}else/^(?!https?:\/\/).*$/i.test(a.companionUrl)?o.opts.companionAllowedHosts="https://".concat(a.companionUrl.replace(/^\/\//,"")):o.opts.companionAllowedHosts=new URL(a.companionUrl).origin;o.storage=o.opts.storage||oI},"initPlugin")}]),t}(Rn);function TWe(){return lI.apply(this,arguments)}n(TWe,"_getAuthToken2");function lI(){return lI=ni(pr().mark(n(function r(){return pr().wrap(n(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey));case 1:case"end":return t.stop()}},"_callee12$"),r,this)},"_callee12"))),lI.apply(this,arguments)}n(lI,"_getAuthToken3");function Vc(r){"@babel/helpers - typeof";return Vc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vc(r)}n(Vc,"_typeof");function RWe(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(RWe,"_classCallCheck");function SV(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,IWe(i.key),i)}}n(SV,"_defineProperties");function AWe(r,e,t){return e&&SV(r.prototype,e),t&&SV(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(AWe,"_createClass");function IWe(r){var e=qWe(r,"string");return Vc(e)==="symbol"?e:String(e)}n(IWe,"_toPropertyKey");function qWe(r,e){if(Vc(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Vc(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(qWe,"_toPrimitive");function kWe(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&cI(r,e)}n(kWe,"_inherits");function cI(r,e){return cI=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),cI(r,e)}n(cI,"_setPrototypeOf");function jWe(r){var e=LWe();return n(function(){var i=Dw(r),o;if(e){var a=Dw(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return FWe(this,o)},"_createSuperInternal")}n(jWe,"_createSuper");function FWe(r,e){if(e&&(Vc(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return CWe(r)}n(FWe,"_possibleConstructorReturn");function CWe(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(CWe,"_assertThisInitialized");function LWe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(LWe,"_isNativeReflectConstruct");function Dw(r){return Dw=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),Dw(r)}n(Dw,"_getPrototypeOf");var NWe=n(function(e){return e.split("-").map(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}).join(" ")},"getName"),Mw=function(r){kWe(t,r);var e=jWe(t);function t(i,o){var a;return RWe(this,t),a=e.call(this,i,o),a.provider=o.provider,a.id=a.provider,a.name=a.opts.name||NWe(a.id),a.pluginId=a.opts.pluginId,a}return n(t,"SearchProvider"),AWe(t,[{key:"fileUrl",value:n(function(o){return"".concat(this.hostname,"/search/").concat(this.id,"/get/").concat(o)},"fileUrl")},{key:"search",value:n(function(o,a){return this.get("search/".concat(this.id,"/list?q=").concat(encodeURIComponent(o)).concat(a?"&".concat(a):""))},"search")}]),t}(Rn);var EV=Ce(vA(),1);function Wh(r){"@babel/helpers - typeof";return Wh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wh(r)}n(Wh,"_typeof");function xWe(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(xWe,"_classCallCheck");function OV(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,MWe(i.key),i)}}n(OV,"_defineProperties");function DWe(r,e,t){return e&&OV(r.prototype,e),t&&OV(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(DWe,"_createClass");function MWe(r){var e=UWe(r,"string");return Wh(e)==="symbol"?e:String(e)}n(MWe,"_toPropertyKey");function UWe(r,e){if(Wh(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Wh(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(UWe,"_toPrimitive");var PV,_V;function kr(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}n(kr,"_classPrivateFieldLooseBase");var BWe=0;function Vh(r){return"__private_"+BWe+++"_"+r}n(Vh,"_classPrivateFieldLooseKey");var Wa=Vh("queued"),ws=Vh("emitter"),Ti=Vh("isOpen"),et=Vh("socket"),fI=Vh("handleMessage");PV=Symbol.for("uppy test: getSocket");_V=Symbol.for("uppy test: getQueued");var TV=function(r,e){function t(i){var o=this;xWe(this,t),Object.defineProperty(this,Wa,{writable:!0,value:[]}),Object.defineProperty(this,ws,{writable:!0,value:(0,EV.default)()}),Object.defineProperty(this,Ti,{writable:!0,value:!1}),Object.defineProperty(this,et,{writable:!0,value:void 0}),Object.defineProperty(this,fI,{writable:!0,value:n(function(u){try{var c=JSON.parse(u.data);o.emit(c.action,c.payload)}catch(l){console.log(l)}},"value")}),this.opts=i,(!i||i.autoOpen!==!1)&&this.open()}return n(t,"UppySocket"),DWe(t,[{key:"isOpen",get:n(function(){return kr(this,Ti)[Ti]},"get")},{key:r,value:n(function(){return kr(this,et)[et]},"value")},{key:e,value:n(function(){return kr(this,Wa)[Wa]},"value")},{key:"open",value:n(function(){var o=this;kr(this,et)[et]==null&&(kr(this,et)[et]=new WebSocket(this.opts.target),kr(this,et)[et].onopen=function(){for(kr(o,Ti)[Ti]=!0;kr(o,Wa)[Wa].length>0&&kr(o,Ti)[Ti];){var a=kr(o,Wa)[Wa].shift();o.send(a.action,a.payload)}},kr(this,et)[et].onclose=function(){kr(o,Ti)[Ti]=!1,kr(o,et)[et]=null},kr(this,et)[et].onmessage=kr(this,fI)[fI])},"open")},{key:"close",value:n(function(){var o;(o=kr(this,et)[et])==null||o.close()},"close")},{key:"send",value:n(function(o,a){if(!kr(this,Ti)[Ti]){kr(this,Wa)[Wa].push({action:o,payload:a});return}kr(this,et)[et].send(JSON.stringify({action:o,payload:a}))},"send")},{key:"on",value:n(function(o,a){kr(this,ws)[ws].on(o,a)},"on")},{key:"emit",value:n(function(o,a){kr(this,ws)[ws].emit(o,a)},"emit")},{key:"once",value:n(function(o,a){kr(this,ws)[ws].once(o,a)},"once")}]),t}(PV,_V);var GI={};pm(GI,{ProviderViews:function(){return pt},SearchProviderViews:function(){return rf},defaultPickerIcon:function(){return ef}});var hI=Ce(AV(),1);function Ss(r){"@babel/helpers - typeof";return Ss=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ss(r)}n(Ss,"_typeof");function vI(){"use strict";vI=n(function(){return r},"_regeneratorRuntime");var r={},e=Object.prototype,t=e.hasOwnProperty,i=Object.defineProperty||function(p,s,f){p[s]=f.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(p,s,f){return Object.defineProperty(p,s,{value:f,enumerable:!0,configurable:!0,writable:!0}),p[s]}n(l,"define");try{l({},"")}catch(p){l=n(function(f,v,g){return f[v]=g},"define")}function d(p,s,f,v){var g=s&&s.prototype instanceof b?s:b,h=Object.create(g.prototype),O=new V(v||[]);return i(h,"_invoke",{value:U(p,f,O)}),h}n(d,"wrap");function y(p,s,f){try{return{type:"normal",arg:p.call(s,f)}}catch(v){return{type:"throw",arg:v}}}n(y,"tryCatch"),r.wrap=d;var m={};function b(){}n(b,"Generator");function w(){}n(w,"GeneratorFunction");function S(){}n(S,"GeneratorFunctionPrototype");var P={};l(P,a,function(){return this});var R=Object.getPrototypeOf,I=R&&R(R(W([])));I&&I!==e&&t.call(I,a)&&(P=I);var T=S.prototype=b.prototype=Object.create(P);function F(p){["next","throw","return"].forEach(function(s){l(p,s,function(f){return this._invoke(s,f)})})}n(F,"defineIteratorMethods");function k(p,s){function f(g,h,O,E){var A=y(p[g],p,h);if(A.type!=="throw"){var C=A.arg,N=C.value;return N&&Ss(N)=="object"&&t.call(N,"__await")?s.resolve(N.__await).then(function(M){f("next",M,O,E)},function(M){f("throw",M,O,E)}):s.resolve(N).then(function(M){C.value=M,O(C)},function(M){return f("throw",M,O,E)})}E(A.arg)}n(f,"invoke");var v;i(this,"_invoke",{value:n(function(h,O){function E(){return new s(function(A,C){f(h,O,A,C)})}return n(E,"callInvokeWithMethodAndArg"),v=v?v.then(E,E):E()},"value")})}n(k,"AsyncIterator");function U(p,s,f){var v="suspendedStart";return function(g,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(g==="throw")throw h;return Y()}for(f.method=g,f.arg=h;;){var O=f.delegate;if(O){var E=D(O,f);if(E){if(E===m)continue;return E}}if(f.method==="next")f.sent=f._sent=f.arg;else if(f.method==="throw"){if(v==="suspendedStart")throw v="completed",f.arg;f.dispatchException(f.arg)}else f.method==="return"&&f.abrupt("return",f.arg);v="executing";var A=y(p,s,f);if(A.type==="normal"){if(v=f.done?"completed":"suspendedYield",A.arg===m)continue;return{value:A.arg,done:f.done}}A.type==="throw"&&(v="completed",f.method="throw",f.arg=A.arg)}}}n(U,"makeInvokeMethod");function D(p,s){var f=s.method,v=p.iterator[f];if(v===void 0)return s.delegate=null,f==="throw"&&p.iterator.return&&(s.method="return",s.arg=void 0,D(p,s),s.method==="throw")||f!=="return"&&(s.method="throw",s.arg=new TypeError("The iterator does not provide a '"+f+"' method")),m;var g=y(v,p.iterator,s.arg);if(g.type==="throw")return s.method="throw",s.arg=g.arg,s.delegate=null,m;var h=g.arg;return h?h.done?(s[p.resultName]=h.value,s.next=p.nextLoc,s.method!=="return"&&(s.method="next",s.arg=void 0),s.delegate=null,m):h:(s.method="throw",s.arg=new TypeError("iterator result is not an object"),s.delegate=null,m)}n(D,"maybeInvokeDelegate");function H(p){var s={tryLoc:p[0]};1 in p&&(s.catchLoc=p[1]),2 in p&&(s.finallyLoc=p[2],s.afterLoc=p[3]),this.tryEntries.push(s)}n(H,"pushTryEntry");function $(p){var s=p.completion||{};s.type="normal",delete s.arg,p.completion=s}n($,"resetTryEntry");function V(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(H,this),this.reset(!0)}n(V,"Context");function W(p){if(p){var s=p[a];if(s)return s.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var f=-1,v=n(function g(){for(;++f<p.length;)if(t.call(p,f))return g.value=p[f],g.done=!1,g;return g.value=void 0,g.done=!0,g},"next");return v.next=v}}return{next:Y}}n(W,"values");function Y(){return{value:void 0,done:!0}}return n(Y,"doneResult"),w.prototype=S,i(T,"constructor",{value:S,configurable:!0}),i(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),r.isGeneratorFunction=function(p){var s=typeof p=="function"&&p.constructor;return!!s&&(s===w||(s.displayName||s.name)==="GeneratorFunction")},r.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,S):(p.__proto__=S,l(p,c,"GeneratorFunction")),p.prototype=Object.create(T),p},r.awrap=function(p){return{__await:p}},F(k.prototype),l(k.prototype,u,function(){return this}),r.AsyncIterator=k,r.async=function(p,s,f,v,g){g===void 0&&(g=Promise);var h=new k(d(p,s,f,v),g);return r.isGeneratorFunction(s)?h:h.next().then(function(O){return O.done?O.value:h.next()})},F(T),l(T,c,"Generator"),l(T,a,function(){return this}),l(T,"toString",function(){return"[object Generator]"}),r.keys=function(p){var s=Object(p),f=[];for(var v in s)f.push(v);return f.reverse(),n(function g(){for(;f.length;){var h=f.pop();if(h in s)return g.value=h,g.done=!1,g}return g.done=!0,g},"next")},r.values=W,V.prototype={constructor:V,reset:n(function(s){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach($),!s)for(var f in this)f.charAt(0)==="t"&&t.call(this,f)&&!isNaN(+f.slice(1))&&(this[f]=void 0)},"reset"),stop:n(function(){this.done=!0;var s=this.tryEntries[0].completion;if(s.type==="throw")throw s.arg;return this.rval},"stop"),dispatchException:n(function(s){if(this.done)throw s;var f=this;function v(C,N){return O.type="throw",O.arg=s,f.next=C,N&&(f.method="next",f.arg=void 0),!!N}n(v,"handle");for(var g=this.tryEntries.length-1;g>=0;--g){var h=this.tryEntries[g],O=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var E=t.call(h,"catchLoc"),A=t.call(h,"finallyLoc");if(E&&A){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(E){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!A)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},"dispatchException"),abrupt:n(function(s,f){for(var v=this.tryEntries.length-1;v>=0;--v){var g=this.tryEntries[v];if(g.tryLoc<=this.prev&&t.call(g,"finallyLoc")&&this.prev<g.finallyLoc){var h=g;break}}h&&(s==="break"||s==="continue")&&h.tryLoc<=f&&f<=h.finallyLoc&&(h=null);var O=h?h.completion:{};return O.type=s,O.arg=f,h?(this.method="next",this.next=h.finallyLoc,m):this.complete(O)},"abrupt"),complete:n(function(s,f){if(s.type==="throw")throw s.arg;return s.type==="break"||s.type==="continue"?this.next=s.arg:s.type==="return"?(this.rval=this.arg=s.arg,this.method="return",this.next="end"):s.type==="normal"&&f&&(this.next=f),m},"complete"),finish:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.finallyLoc===s)return this.complete(v.completion,v.afterLoc),$(v),m}},"finish"),catch:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.tryLoc===s){var g=v.completion;if(g.type==="throw"){var h=g.arg;$(v)}return h}}throw new Error("illegal catch attempt")},"_catch"),delegateYield:n(function(s,f,v){return this.delegate={iterator:W(s),resultName:f,nextLoc:v},this.method==="next"&&(this.arg=void 0),m},"delegateYield")},r}n(vI,"_regeneratorRuntime");function IV(r,e,t,i,o,a,u){try{var c=r[a](u),l=c.value}catch(d){t(d);return}c.done?e(l):Promise.resolve(l).then(i,o)}n(IV,"asyncGeneratorStep");function zWe(r){return function(){var e=this,t=arguments;return new Promise(function(i,o){var a=r.apply(e,t);function u(l){IV(a,i,o,u,c,"next",l)}n(u,"_next");function c(l){IV(a,i,o,u,c,"throw",l)}n(c,"_throw"),u(void 0)})}}n(zWe,"_asyncToGenerator");function qV(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(qV,"ownKeys");function HWe(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?qV(Object(t),!0).forEach(function(i){WWe(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):qV(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(HWe,"_objectSpread");function WWe(r,e,t){return e=LV(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(WWe,"_defineProperty");function kV(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,LV(i.key),i)}}n(kV,"_defineProperties");function CV(r,e,t){return e&&kV(r.prototype,e),t&&kV(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(CV,"_createClass");function LV(r){var e=VWe(r,"string");return Ss(e)==="symbol"?e:String(e)}n(LV,"_toPropertyKey");function VWe(r,e){if(Ss(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Ss(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(VWe,"_toPrimitive");function NV(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(NV,"_classCallCheck");function xV(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&Yh(r,e)}n(xV,"_inherits");function DV(r){var e=MV();return n(function(){var i=Xh(r),o;if(e){var a=Xh(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return KWe(this,o)},"_createSuperInternal")}n(DV,"_createSuper");function KWe(r,e){if(e&&(Ss(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return YWe(r)}n(KWe,"_possibleConstructorReturn");function YWe(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(YWe,"_assertThisInitialized");function $w(r){var e=typeof Map=="function"?new Map:void 0;return $w=n(function(i){if(i===null||!XWe(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(i))return e.get(i);e.set(i,o)}function o(){return Bw(i,arguments,Xh(this).constructor)}return n(o,"Wrapper"),o.prototype=Object.create(i.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Yh(o,i)},"_wrapNativeSuper"),$w(r)}n($w,"_wrapNativeSuper");function Bw(r,e,t){return MV()?Bw=Reflect.construct.bind():Bw=n(function(o,a,u){var c=[null];c.push.apply(c,a);var l=Function.bind.apply(o,c),d=new l;return u&&Yh(d,u.prototype),d},"_construct"),Bw.apply(null,arguments)}n(Bw,"_construct");function MV(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(MV,"_isNativeReflectConstruct");function XWe(r){return Function.toString.call(r).indexOf("[native code]")!==-1}n(XWe,"_isNativeFunction");function Yh(r,e){return Yh=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),Yh(r,e)}n(Yh,"_setPrototypeOf");function Xh(r){return Xh=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),Xh(r)}n(Xh,"_getPrototypeOf");var yI=function(r){xV(t,r);var e=DV(t);function t(i){var o;return NV(this,t),o=e.call(this,i),o.name="TimeoutError",o}return n(t,"TimeoutError"),CV(t)}($w(Error)),QWe=function(r){xV(t,r);var e=DV(t);function t(i){var o;return NV(this,t),o=e.call(this),o.name="AbortError",o.message=i,o}return n(t,"AbortError"),CV(t)}($w(Error)),jV=n(function(e){return globalThis.DOMException===void 0?new QWe(e):new DOMException(e)},"getDOMException"),FV=n(function(e){var t=e.reason===void 0?jV("This operation was aborted."):e.reason;return t instanceof Error?t:jV(t)},"getAbortedReason");function mI(r,e,t,i){var o,a=new Promise(function(u,c){if(typeof e!="number"||Math.sign(e)!==1)throw new TypeError("Expected `milliseconds` to be a positive number, got `".concat(e,"`"));if(e===Number.POSITIVE_INFINITY){u(r);return}if(i=HWe({customTimers:{setTimeout:setTimeout,clearTimeout:clearTimeout}},i),i.signal){var l=i,d=l.signal;d.aborted&&c(FV(d)),d.addEventListener("abort",function(){c(FV(d))})}o=i.customTimers.setTimeout.call(void 0,function(){if(typeof t=="function"){try{u(t())}catch(b){c(b)}return}var y=typeof t=="string"?t:"Promise timed out after ".concat(e," milliseconds"),m=t instanceof Error?t:new yI(y);typeof r.cancel=="function"&&r.cancel(),c(m)},e),zWe(vI().mark(n(function y(){return vI().wrap(n(function(b){for(;;)switch(b.prev=b.next){case 0:return b.prev=0,b.t0=u,b.next=4,r;case 4:b.t1=b.sent,(0,b.t0)(b.t1),b.next=11;break;case 8:b.prev=8,b.t2=b.catch(0),c(b.t2);case 11:return b.prev=11,i.customTimers.clearTimeout.call(void 0,o),b.finish(11);case 14:case"end":return b.stop()}},"_callee$"),y,null,[[0,8,11,14]])},"_callee")))()});return a.clear=function(){clearTimeout(o),o=void 0},a}n(mI,"pTimeout");function gI(r,e,t){for(var i=0,o=r.length;o>0;){var a=Math.trunc(o/2),u=i+a;t(r[u],e)<=0?(i=++u,o-=a+1):o=a}return i}n(gI,"lowerBound");function Qh(r){"@babel/helpers - typeof";return Qh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qh(r)}n(Qh,"_typeof");function UV(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(UV,"ownKeys");function JWe(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?UV(Object(t),!0).forEach(function(i){ZWe(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):UV(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(JWe,"_objectSpread");function ZWe(r,e,t){return e=$V(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(ZWe,"_defineProperty");function eVe(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(eVe,"_classCallCheck");function BV(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,$V(i.key),i)}}n(BV,"_defineProperties");function rVe(r,e,t){return e&&BV(r.prototype,e),t&&BV(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(rVe,"_createClass");function $V(r){var e=tVe(r,"string");return Qh(e)==="symbol"?e:String(e)}n($V,"_toPropertyKey");function tVe(r,e){if(Qh(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Qh(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(tVe,"_toPrimitive");var Os=function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},Va,nVe=function(){function r(){eVe(this,r),Va.set(this,[])}return n(r,"PriorityQueue"),rVe(r,[{key:"enqueue",value:n(function(t,i){i=JWe({priority:0},i);var o={priority:i.priority,run:t};if(this.size&&Os(this,Va,"f")[this.size-1].priority>=i.priority){Os(this,Va,"f").push(o);return}var a=gI(Os(this,Va,"f"),o,function(u,c){return c.priority-u.priority});Os(this,Va,"f").splice(a,0,o)},"enqueue")},{key:"dequeue",value:n(function(){var t=Os(this,Va,"f").shift();return t==null?void 0:t.run},"dequeue")},{key:"filter",value:n(function(t){return Os(this,Va,"f").filter(function(i){return i.priority===t.priority}).map(function(i){return i.run})},"filter")},{key:"size",get:n(function(){return Os(this,Va,"f").length},"get")}]),r}();Va=new WeakMap;var GV=nVe;function rt(){"use strict";rt=n(function(){return r},"_regeneratorRuntime");var r={},e=Object.prototype,t=e.hasOwnProperty,i=Object.defineProperty||function(p,s,f){p[s]=f.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(p,s,f){return Object.defineProperty(p,s,{value:f,enumerable:!0,configurable:!0,writable:!0}),p[s]}n(l,"define");try{l({},"")}catch(p){l=n(function(f,v,g){return f[v]=g},"define")}function d(p,s,f,v){var g=s&&s.prototype instanceof b?s:b,h=Object.create(g.prototype),O=new V(v||[]);return i(h,"_invoke",{value:U(p,f,O)}),h}n(d,"wrap");function y(p,s,f){try{return{type:"normal",arg:p.call(s,f)}}catch(v){return{type:"throw",arg:v}}}n(y,"tryCatch"),r.wrap=d;var m={};function b(){}n(b,"Generator");function w(){}n(w,"GeneratorFunction");function S(){}n(S,"GeneratorFunctionPrototype");var P={};l(P,a,function(){return this});var R=Object.getPrototypeOf,I=R&&R(R(W([])));I&&I!==e&&t.call(I,a)&&(P=I);var T=S.prototype=b.prototype=Object.create(P);function F(p){["next","throw","return"].forEach(function(s){l(p,s,function(f){return this._invoke(s,f)})})}n(F,"defineIteratorMethods");function k(p,s){function f(g,h,O,E){var A=y(p[g],p,h);if(A.type!=="throw"){var C=A.arg,N=C.value;return N&&na(N)=="object"&&t.call(N,"__await")?s.resolve(N.__await).then(function(M){f("next",M,O,E)},function(M){f("throw",M,O,E)}):s.resolve(N).then(function(M){C.value=M,O(C)},function(M){return f("throw",M,O,E)})}E(A.arg)}n(f,"invoke");var v;i(this,"_invoke",{value:n(function(h,O){function E(){return new s(function(A,C){f(h,O,A,C)})}return n(E,"callInvokeWithMethodAndArg"),v=v?v.then(E,E):E()},"value")})}n(k,"AsyncIterator");function U(p,s,f){var v="suspendedStart";return function(g,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(g==="throw")throw h;return Y()}for(f.method=g,f.arg=h;;){var O=f.delegate;if(O){var E=D(O,f);if(E){if(E===m)continue;return E}}if(f.method==="next")f.sent=f._sent=f.arg;else if(f.method==="throw"){if(v==="suspendedStart")throw v="completed",f.arg;f.dispatchException(f.arg)}else f.method==="return"&&f.abrupt("return",f.arg);v="executing";var A=y(p,s,f);if(A.type==="normal"){if(v=f.done?"completed":"suspendedYield",A.arg===m)continue;return{value:A.arg,done:f.done}}A.type==="throw"&&(v="completed",f.method="throw",f.arg=A.arg)}}}n(U,"makeInvokeMethod");function D(p,s){var f=s.method,v=p.iterator[f];if(v===void 0)return s.delegate=null,f==="throw"&&p.iterator.return&&(s.method="return",s.arg=void 0,D(p,s),s.method==="throw")||f!=="return"&&(s.method="throw",s.arg=new TypeError("The iterator does not provide a '"+f+"' method")),m;var g=y(v,p.iterator,s.arg);if(g.type==="throw")return s.method="throw",s.arg=g.arg,s.delegate=null,m;var h=g.arg;return h?h.done?(s[p.resultName]=h.value,s.next=p.nextLoc,s.method!=="return"&&(s.method="next",s.arg=void 0),s.delegate=null,m):h:(s.method="throw",s.arg=new TypeError("iterator result is not an object"),s.delegate=null,m)}n(D,"maybeInvokeDelegate");function H(p){var s={tryLoc:p[0]};1 in p&&(s.catchLoc=p[1]),2 in p&&(s.finallyLoc=p[2],s.afterLoc=p[3]),this.tryEntries.push(s)}n(H,"pushTryEntry");function $(p){var s=p.completion||{};s.type="normal",delete s.arg,p.completion=s}n($,"resetTryEntry");function V(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(H,this),this.reset(!0)}n(V,"Context");function W(p){if(p){var s=p[a];if(s)return s.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var f=-1,v=n(function g(){for(;++f<p.length;)if(t.call(p,f))return g.value=p[f],g.done=!1,g;return g.value=void 0,g.done=!0,g},"next");return v.next=v}}return{next:Y}}n(W,"values");function Y(){return{value:void 0,done:!0}}return n(Y,"doneResult"),w.prototype=S,i(T,"constructor",{value:S,configurable:!0}),i(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),r.isGeneratorFunction=function(p){var s=typeof p=="function"&&p.constructor;return!!s&&(s===w||(s.displayName||s.name)==="GeneratorFunction")},r.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,S):(p.__proto__=S,l(p,c,"GeneratorFunction")),p.prototype=Object.create(T),p},r.awrap=function(p){return{__await:p}},F(k.prototype),l(k.prototype,u,function(){return this}),r.AsyncIterator=k,r.async=function(p,s,f,v,g){g===void 0&&(g=Promise);var h=new k(d(p,s,f,v),g);return r.isGeneratorFunction(s)?h:h.next().then(function(O){return O.done?O.value:h.next()})},F(T),l(T,c,"Generator"),l(T,a,function(){return this}),l(T,"toString",function(){return"[object Generator]"}),r.keys=function(p){var s=Object(p),f=[];for(var v in s)f.push(v);return f.reverse(),n(function g(){for(;f.length;){var h=f.pop();if(h in s)return g.value=h,g.done=!1,g}return g.done=!0,g},"next")},r.values=W,V.prototype={constructor:V,reset:n(function(s){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach($),!s)for(var f in this)f.charAt(0)==="t"&&t.call(this,f)&&!isNaN(+f.slice(1))&&(this[f]=void 0)},"reset"),stop:n(function(){this.done=!0;var s=this.tryEntries[0].completion;if(s.type==="throw")throw s.arg;return this.rval},"stop"),dispatchException:n(function(s){if(this.done)throw s;var f=this;function v(C,N){return O.type="throw",O.arg=s,f.next=C,N&&(f.method="next",f.arg=void 0),!!N}n(v,"handle");for(var g=this.tryEntries.length-1;g>=0;--g){var h=this.tryEntries[g],O=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var E=t.call(h,"catchLoc"),A=t.call(h,"finallyLoc");if(E&&A){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(E){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!A)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},"dispatchException"),abrupt:n(function(s,f){for(var v=this.tryEntries.length-1;v>=0;--v){var g=this.tryEntries[v];if(g.tryLoc<=this.prev&&t.call(g,"finallyLoc")&&this.prev<g.finallyLoc){var h=g;break}}h&&(s==="break"||s==="continue")&&h.tryLoc<=f&&f<=h.finallyLoc&&(h=null);var O=h?h.completion:{};return O.type=s,O.arg=f,h?(this.method="next",this.next=h.finallyLoc,m):this.complete(O)},"abrupt"),complete:n(function(s,f){if(s.type==="throw")throw s.arg;return s.type==="break"||s.type==="continue"?this.next=s.arg:s.type==="return"?(this.rval=this.arg=s.arg,this.method="return",this.next="end"):s.type==="normal"&&f&&(this.next=f),m},"complete"),finish:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.finallyLoc===s)return this.complete(v.completion,v.afterLoc),$(v),m}},"finish"),catch:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.tryLoc===s){var g=v.completion;if(g.type==="throw"){var h=g.arg;$(v)}return h}}throw new Error("illegal catch attempt")},"_catch"),delegateYield:n(function(s,f,v){return this.delegate={iterator:W(s),resultName:f,nextLoc:v},this.method==="next"&&(this.arg=void 0),m},"delegateYield")},r}n(rt,"_regeneratorRuntime");function zV(r,e,t,i,o,a,u){try{var c=r[a](u),l=c.value}catch(d){t(d);return}c.done?e(l):Promise.resolve(l).then(i,o)}n(zV,"asyncGeneratorStep");function Ka(r){return function(){var e=this,t=arguments;return new Promise(function(i,o){var a=r.apply(e,t);function u(l){zV(a,i,o,u,c,"next",l)}n(u,"_next");function c(l){zV(a,i,o,u,c,"throw",l)}n(c,"_throw"),u(void 0)})}}n(Ka,"_asyncToGenerator");function na(r){"@babel/helpers - typeof";return na=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},na(r)}n(na,"_typeof");function HV(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(HV,"ownKeys");function WV(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?HV(Object(t),!0).forEach(function(i){iVe(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):HV(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(WV,"_objectSpread");function iVe(r,e,t){return e=ZV(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(iVe,"_defineProperty");function VV(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,ZV(i.key),i)}}n(VV,"_defineProperties");function JV(r,e,t){return e&&VV(r.prototype,e),t&&VV(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(JV,"_createClass");function ZV(r){var e=aVe(r,"string");return na(e)==="symbol"?e:String(e)}n(ZV,"_toPropertyKey");function aVe(r,e){if(na(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(na(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(aVe,"_toPrimitive");function eK(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(eK,"_classCallCheck");function rK(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&nv(r,e)}n(rK,"_inherits");function tK(r){var e=nK();return n(function(){var i=iv(r),o;if(e){var a=iv(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return oVe(this,o)},"_createSuperInternal")}n(tK,"_createSuper");function oVe(r,e){if(e&&(na(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hr(r)}n(oVe,"_possibleConstructorReturn");function hr(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(hr,"_assertThisInitialized");function SI(r){var e=typeof Map=="function"?new Map:void 0;return SI=n(function(i){if(i===null||!uVe(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(i))return e.get(i);e.set(i,o)}function o(){return Gw(i,arguments,iv(this).constructor)}return n(o,"Wrapper"),o.prototype=Object.create(i.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),nv(o,i)},"_wrapNativeSuper"),SI(r)}n(SI,"_wrapNativeSuper");function Gw(r,e,t){return nK()?Gw=Reflect.construct.bind():Gw=n(function(o,a,u){var c=[null];c.push.apply(c,a);var l=Function.bind.apply(o,c),d=new l;return u&&nv(d,u.prototype),d},"_construct"),Gw.apply(null,arguments)}n(Gw,"_construct");function nK(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(nK,"_isNativeReflectConstruct");function uVe(r){return Function.toString.call(r).indexOf("[native code]")!==-1}n(uVe,"_isNativeFunction");function nv(r,e){return nv=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),nv(r,e)}n(nv,"_setPrototypeOf");function iv(r){return iv=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),iv(r)}n(iv,"_getPrototypeOf");var Er=function(r,e,t,i,o){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!o:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?o.call(r,t):o?o.value=t:e.set(r,t),t},de=function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},Nr,Zh,ev,iu,Yw,rv,zw,Ri,Jh,An,Hw,In,tv,nu,Ww,KV,YV,iK,XV,QV,Vw,bI,wI,Xw,aK,Kw,oK=function(r){rK(t,r);var e=tK(t);function t(){return eK(this,t),e.apply(this,arguments)}return n(t,"AbortError"),JV(t)}(SI(Error)),sVe=function(r){rK(t,r);var e=tK(t);function t(i){var o;eK(this,t);var a,u,c,l;if(o=e.call(this),Nr.add(hr(o)),Zh.set(hr(o),void 0),ev.set(hr(o),void 0),iu.set(hr(o),0),Yw.set(hr(o),void 0),rv.set(hr(o),void 0),zw.set(hr(o),0),Ri.set(hr(o),void 0),Jh.set(hr(o),void 0),An.set(hr(o),void 0),Hw.set(hr(o),void 0),In.set(hr(o),0),tv.set(hr(o),void 0),nu.set(hr(o),void 0),Ww.set(hr(o),void 0),Object.defineProperty(hr(o),"timeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),i=WV({carryoverConcurrencyCount:!1,intervalCap:Number.POSITIVE_INFINITY,interval:0,concurrency:Number.POSITIVE_INFINITY,autoStart:!0,queueClass:GV},i),!(typeof i.intervalCap=="number"&&i.intervalCap>=1))throw new TypeError("Expected `intervalCap` to be a number from 1 and up, got `".concat((u=(a=i.intervalCap)===null||a===void 0?void 0:a.toString())!==null&&u!==void 0?u:"","` (").concat(na(i.intervalCap),")"));if(i.interval===void 0||!(Number.isFinite(i.interval)&&i.interval>=0))throw new TypeError("Expected `interval` to be a finite number >= 0, got `".concat((l=(c=i.interval)===null||c===void 0?void 0:c.toString())!==null&&l!==void 0?l:"","` (").concat(na(i.interval),")"));return Er(hr(o),Zh,i.carryoverConcurrencyCount,"f"),Er(hr(o),ev,i.intervalCap===Number.POSITIVE_INFINITY||i.interval===0,"f"),Er(hr(o),Yw,i.intervalCap,"f"),Er(hr(o),rv,i.interval,"f"),Er(hr(o),An,new i.queueClass,"f"),Er(hr(o),Hw,i.queueClass,"f"),o.concurrency=i.concurrency,o.timeout=i.timeout,Er(hr(o),Ww,i.throwOnTimeout===!0,"f"),Er(hr(o),nu,i.autoStart===!1,"f"),o}return n(t,"PQueue"),JV(t,[{key:"concurrency",get:n(function(){return de(this,tv,"f")},"get"),set:n(function(o){if(!(typeof o=="number"&&o>=1))throw new TypeError("Expected `concurrency` to be a number from 1 and up, got `".concat(o,"` (").concat(na(o),")"));Er(this,tv,o,"f"),de(this,Nr,"m",Xw).call(this)},"set")},{key:"add",value:function(){var i=Ka(rt().mark(n(function a(u){var c=this,l,d=arguments;return rt().wrap(n(function(m){for(;;)switch(m.prev=m.next){case 0:return l=d.length>1&&d[1]!==void 0?d[1]:{},l=WV({timeout:this.timeout,throwOnTimeout:de(this,Ww,"f")},l),m.abrupt("return",new Promise(function(b,w){de(c,An,"f").enqueue(Ka(rt().mark(n(function S(){var P,R,I,T,F;return rt().wrap(n(function(U){for(;;)switch(U.prev=U.next){case 0:if(Er(c,In,(R=de(c,In,"f"),R++,R),"f"),Er(c,iu,(I=de(c,iu,"f"),I++,I),"f"),U.prev=2,!(!((P=l.signal)===null||P===void 0)&&P.aborted)){U.next=5;break}throw new oK("The task was aborted.");case 5:return T=u({signal:l.signal}),l.timeout&&(T=mI(Promise.resolve(T),l.timeout)),l.signal&&(T=Promise.race([T,de(c,Nr,"m",aK).call(c,l.signal)])),U.next=10,T;case 10:F=U.sent,b(F),c.emit("completed",F),U.next=22;break;case 15:if(U.prev=15,U.t0=U.catch(2),!(U.t0 instanceof yI&&!l.throwOnTimeout)){U.next=20;break}return b(),U.abrupt("return");case 20:w(U.t0),c.emit("error",U.t0);case 22:return U.prev=22,de(c,Nr,"m",iK).call(c),U.finish(22);case 25:case"end":return U.stop()}},"_callee$"),S,null,[[2,15,22,25]])},"_callee"))),l),c.emit("add"),de(c,Nr,"m",Vw).call(c)}));case 3:case"end":return m.stop()}},"_callee2$"),a,this)},"_callee2")));function o(a){return i.apply(this,arguments)}return n(o,"add"),o}()},{key:"addAll",value:function(){var i=Ka(rt().mark(n(function a(u,c){var l=this;return rt().wrap(n(function(y){for(;;)switch(y.prev=y.next){case 0:return y.abrupt("return",Promise.all(u.map(function(){var m=Ka(rt().mark(n(function b(w){return rt().wrap(n(function(P){for(;;)switch(P.prev=P.next){case 0:return P.abrupt("return",l.add(w,c));case 1:case"end":return P.stop()}},"_callee3$"),b)},"_callee3")));return function(b){return m.apply(this,arguments)}}())));case 1:case"end":return y.stop()}},"_callee4$"),a)},"_callee4")));function o(a,u){return i.apply(this,arguments)}return n(o,"addAll"),o}()},{key:"start",value:n(function(){return de(this,nu,"f")?(Er(this,nu,!1,"f"),de(this,Nr,"m",Xw).call(this),this):this},"start")},{key:"pause",value:n(function(){Er(this,nu,!0,"f")},"pause")},{key:"clear",value:n(function(){Er(this,An,new(de(this,Hw,"f")),"f")},"clear")},{key:"onEmpty",value:function(){var i=Ka(rt().mark(n(function a(){return rt().wrap(n(function(c){for(;;)switch(c.prev=c.next){case 0:if(de(this,An,"f").size!==0){c.next=2;break}return c.abrupt("return");case 2:return c.next=4,de(this,Nr,"m",Kw).call(this,"empty");case 4:case"end":return c.stop()}},"_callee5$"),a,this)},"_callee5")));function o(){return i.apply(this,arguments)}return n(o,"onEmpty"),o}()},{key:"onSizeLessThan",value:function(){var i=Ka(rt().mark(n(function a(u){var c=this;return rt().wrap(n(function(d){for(;;)switch(d.prev=d.next){case 0:if(!(de(this,An,"f").size<u)){d.next=2;break}return d.abrupt("return");case 2:return d.next=4,de(this,Nr,"m",Kw).call(this,"next",function(){return de(c,An,"f").size<u});case 4:case"end":return d.stop()}},"_callee6$"),a,this)},"_callee6")));function o(a){return i.apply(this,arguments)}return n(o,"onSizeLessThan"),o}()},{key:"onIdle",value:function(){var i=Ka(rt().mark(n(function a(){return rt().wrap(n(function(c){for(;;)switch(c.prev=c.next){case 0:if(!(de(this,In,"f")===0&&de(this,An,"f").size===0)){c.next=2;break}return c.abrupt("return");case 2:return c.next=4,de(this,Nr,"m",Kw).call(this,"idle");case 4:case"end":return c.stop()}},"_callee7$"),a,this)},"_callee7")));function o(){return i.apply(this,arguments)}return n(o,"onIdle"),o}()},{key:"size",get:n(function(){return de(this,An,"f").size},"get")},{key:"sizeBy",value:n(function(o){return de(this,An,"f").filter(o).length},"sizeBy")},{key:"pending",get:n(function(){return de(this,In,"f")},"get")},{key:"isPaused",get:n(function(){return de(this,nu,"f")},"get")}]),t}(hI.default);Zh=new WeakMap,ev=new WeakMap,iu=new WeakMap,Yw=new WeakMap,rv=new WeakMap,zw=new WeakMap,Ri=new WeakMap,Jh=new WeakMap,An=new WeakMap,Hw=new WeakMap,In=new WeakMap,tv=new WeakMap,nu=new WeakMap,Ww=new WeakMap,Nr=new WeakSet,KV=n(function(){return de(this,ev,"f")||de(this,iu,"f")<de(this,Yw,"f")},"_PQueue_doesIntervalAllowAnother_get"),YV=n(function(){return de(this,In,"f")<de(this,tv,"f")},"_PQueue_doesConcurrentAllowAnother_get"),iK=n(function(){var e;Er(this,In,(e=de(this,In,"f"),e--,e),"f"),de(this,Nr,"m",Vw).call(this),this.emit("next")},"_PQueue_next"),XV=n(function(){de(this,Nr,"m",wI).call(this),de(this,Nr,"m",bI).call(this),Er(this,Jh,void 0,"f")},"_PQueue_onResumeInterval"),QV=n(function(){var e=this,t=Date.now();if(de(this,Ri,"f")===void 0){var i=de(this,zw,"f")-t;if(i<0)Er(this,iu,de(this,Zh,"f")?de(this,In,"f"):0,"f");else return de(this,Jh,"f")===void 0&&Er(this,Jh,setTimeout(function(){de(e,Nr,"m",XV).call(e)},i),"f"),!0}return!1},"_PQueue_isIntervalPaused_get"),Vw=n(function(){if(de(this,An,"f").size===0)return de(this,Ri,"f")&&clearInterval(de(this,Ri,"f")),Er(this,Ri,void 0,"f"),this.emit("empty"),de(this,In,"f")===0&&this.emit("idle"),!1;if(!de(this,nu,"f")){var e=!de(this,Nr,"a",QV);if(de(this,Nr,"a",KV)&&de(this,Nr,"a",YV)){var t=de(this,An,"f").dequeue();return t?(this.emit("active"),t(),e&&de(this,Nr,"m",bI).call(this),!0):!1}}return!1},"_PQueue_tryToStartAnother"),bI=n(function(){var e=this;de(this,ev,"f")||de(this,Ri,"f")!==void 0||(Er(this,Ri,setInterval(function(){de(e,Nr,"m",wI).call(e)},de(this,rv,"f")),"f"),Er(this,zw,Date.now()+de(this,rv,"f"),"f"))},"_PQueue_initializeIntervalIfNeeded"),wI=n(function(){de(this,iu,"f")===0&&de(this,In,"f")===0&&de(this,Ri,"f")&&(clearInterval(de(this,Ri,"f")),Er(this,Ri,void 0,"f")),Er(this,iu,de(this,Zh,"f")?de(this,In,"f"):0,"f"),de(this,Nr,"m",Xw).call(this)},"_PQueue_onInterval"),Xw=n(function(){for(;de(this,Nr,"m",Vw).call(this););},"_PQueue_processQueue"),aK=function(){var r=Ka(rt().mark(n(function t(i){return rt().wrap(n(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",new Promise(function(u,c){i.addEventListener("abort",function(){c(new oK("The task was aborted."))},{once:!0})}));case 1:case"end":return a.stop()}},"_callee8$"),t)},"_callee8")));function e(t){return r.apply(this,arguments)}return n(e,"_PQueue_throwOnAbort"),e}(),Kw=function(){var r=Ka(rt().mark(n(function t(i,o){var a=this;return rt().wrap(n(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",new Promise(function(l){var d=n(function y(){o&&!o()||(a.off(i,y),l())},"listener");a.on(i,d)}));case 1:case"end":return c.stop()}},"_callee9$"),t)},"_callee9")));function e(t,i){return r.apply(this,arguments)}return n(e,"_PQueue_onEvent"),e}();var uK=sVe;var Zw,$t,OI,sK,av=0,vK=[],Qw=[],lK=je.__b,cK=je.__r,fK=je.diffed,pK=je.__c,dK=je.unmount;function _I(r,e){je.__h&&je.__h($t,r,av||e),av=0;var t=$t.__H||($t.__H={__:[],__h:[]});return r>=t.__.length&&t.__.push({__V:Qw}),t.__[r]}n(_I,"p");function Kc(r){return av=1,lVe(mK,r)}n(Kc,"y");function lVe(r,e,t){var i=_I(Zw++,2);return i.t=r,i.__c||(i.__=[t?t(e):mK(void 0,e),function(o){var a=i.t(i.__[0],o);i.__[0]!==a&&(i.__=[a,i.__[1]],i.__c.setState({}))}],i.__c=$t),i.__}n(lVe,"d");function Ps(r,e){var t=_I(Zw++,3);!je.__s&&yK(t.__H,e)&&(t.__=r,t.u=e,$t.__H.__h.push(t))}n(Ps,"_");function EI(r){return av=5,Yc(function(){return{current:r}},[])}n(EI,"s");function Yc(r,e){var t=_I(Zw++,7);return yK(t.__H,e)?(t.__V=r(),t.u=e,t.__h=r,t.__V):t.__}n(Yc,"F");function _s(r,e){return av=8,Yc(function(){return r},e)}n(_s,"T");function cVe(){for(var r;r=vK.shift();)if(r.__P)try{r.__H.__h.forEach(Jw),r.__H.__h.forEach(PI),r.__H.__h=[]}catch(e){r.__H.__h=[],je.__e(e,r.__v)}}n(cVe,"b");je.__b=function(r){$t=null,lK&&lK(r)},je.__r=function(r){cK&&cK(r),Zw=0;var e=($t=r.__c).__H;e&&(OI===$t?(e.__h=[],$t.__h=[],e.__.forEach(function(t){t.__V=Qw,t.u=void 0})):(e.__h.forEach(Jw),e.__h.forEach(PI),e.__h=[])),OI=$t},je.diffed=function(r){fK&&fK(r);var e=r.__c;e&&e.__H&&(e.__H.__h.length&&(vK.push(e)!==1&&sK===je.requestAnimationFrame||((sK=je.requestAnimationFrame)||function(t){var i,o=n(function(){clearTimeout(a),hK&&cancelAnimationFrame(i),setTimeout(t)},"u"),a=setTimeout(o,100);hK&&(i=requestAnimationFrame(o))})(cVe)),e.__H.__.forEach(function(t){t.u&&(t.__H=t.u),t.__V!==Qw&&(t.__=t.__V),t.u=void 0,t.__V=Qw})),OI=$t=null},je.__c=function(r,e){e.some(function(t){try{t.__h.forEach(Jw),t.__h=t.__h.filter(function(i){return!i.__||PI(i)})}catch(i){e.some(function(o){o.__h&&(o.__h=[])}),e=[],je.__e(i,t.__v)}}),pK&&pK(r,e)},je.unmount=function(r){dK&&dK(r);var e,t=r.__c;t&&t.__H&&(t.__H.__.forEach(function(i){try{Jw(i)}catch(o){e=o}}),e&&je.__e(e,t.__v))};var hK=typeof requestAnimationFrame=="function";function Jw(r){var e=$t,t=r.__c;typeof t=="function"&&(r.__c=void 0,t()),$t=e}n(Jw,"j");function PI(r){var e=$t;r.__c=r.__(),$t=e}n(PI,"k");function yK(r,e){return!r||r.length!==e.length||e.some(function(t,i){return t!==r[i]})}n(yK,"w");function mK(r,e){return typeof e=="function"?e(r):e}n(mK,"z");function fVe(){return _("svg",{width:"26",height:"26",viewBox:"0 0 26 26",xmlns:"http://www.w3.org/2000/svg"},_("g",{fill:"none","fill-rule":"evenodd"},_("circle",{fill:"#FFF",cx:"13",cy:"13",r:"13"}),_("path",{d:"M21.64 13.205c0-.639-.057-1.252-.164-1.841H13v3.481h4.844a4.14 4.14 0 01-1.796 2.716v2.259h2.908c1.702-1.567 2.684-3.875 2.684-6.615z",fill:"#4285F4","fill-rule":"nonzero"}),_("path",{d:"M13 22c2.43 0 4.467-.806 5.956-2.18l-2.908-2.259c-.806.54-1.837.86-3.048.86-2.344 0-4.328-1.584-5.036-3.711H4.957v2.332A8.997 8.997 0 0013 22z",fill:"#34A853","fill-rule":"nonzero"}),_("path",{d:"M7.964 14.71A5.41 5.41 0 017.682 13c0-.593.102-1.17.282-1.71V8.958H4.957A8.996 8.996 0 004 13c0 1.452.348 2.827.957 4.042l3.007-2.332z",fill:"#FBBC05","fill-rule":"nonzero"}),_("path",{d:"M13 7.58c1.321 0 2.508.454 3.44 1.345l2.582-2.58C17.463 4.891 15.426 4 13 4a8.997 8.997 0 00-8.043 4.958l3.007 2.332C8.672 9.163 10.656 7.58 13 7.58z",fill:"#EA4335","fill-rule":"nonzero"}),_("path",{d:"M4 4h18v18H4z"})))}n(fVe,"GoogleIcon");var pVe=n(function(e){var t=e.pluginName,i=e.i18n,o=e.onAuth,a=t==="Google Drive",u=_s(function(c){c.preventDefault(),o()},[o]);return _("form",{onSubmit:u},a?_("button",{type:"submit",className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Provider-authBtn uppy-Provider-btn-google","data-uppy-super-focusable":!0},_(fVe,null),i("signInWithGoogle")):_("button",{type:"submit",className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Provider-authBtn","data-uppy-super-focusable":!0},i("authenticateWith",{pluginName:t})))},"DefaultForm"),dVe=n(function(e){var t=e.pluginName,i=e.i18n,o=e.onAuth;return _(pVe,{pluginName:t,i18n:i,onAuth:o})},"defaultRenderForm");function hVe(r){var e=r.loading,t=r.pluginName,i=r.pluginIcon,o=r.i18n,a=r.handleAuth,u=r.renderForm,c=u===void 0?dVe:u,l=_("span",{className:"uppy-Provider-authTitleName"},t,_("br",null));return _("div",{className:"uppy-Provider-auth"},_("div",{className:"uppy-Provider-authIcon"},i()),_("div",{className:"uppy-Provider-authTitle"},o("authenticateWithTitle",{pluginName:l})),_("div",{className:"uppy-Provider-authForm"},c({pluginName:t,i18n:o,loading:e,onAuth:a})))}n(hVe,"AuthView");var gK=hVe;var bK=n(function(r){var e=r.i18n,t=r.logout,i=r.username;return[_("span",{className:"uppy-ProviderBrowser-user",key:"username"},i),_("button",{type:"button",onClick:t,className:"uppy-u-reset uppy-c-btn uppy-ProviderBrowser-userLogout",key:"logout"},e("logOut"))]},"default");var vVe=n(function(e){var t=e.getFolder,i=e.title,o=e.isLast;return _(ln,null,_("button",{type:"button",className:"uppy-u-reset uppy-c-btn",onClick:t},i),o?"":" / ")},"Breadcrumb"),wK=n(function(r){var e=r.getFolder,t=r.title,i=r.breadcrumbsIcon,o=r.breadcrumbs;return _("div",{className:"uppy-Provider-breadcrumbs"},_("div",{className:"uppy-Provider-breadcrumbsIcon"},i),o.map(function(a,u){return _(vVe,{key:a.id,getFolder:n(function(){return e(a.requestPath)},"getFolder"),title:u===0?t:a.name,isLast:u+1===o.length})}))},"default");var SK=n(function(r){var e=[];return r.showBreadcrumbs&&e.push(wK({getFolder:r.getFolder,breadcrumbs:r.breadcrumbs,breadcrumbsIcon:r.pluginIcon&&r.pluginIcon(),title:r.title})),e.push(bK({logout:r.logout,username:r.username,i18n:r.i18n})),e},"default");var kI=Ce(qn(),1);function ov(r){"@babel/helpers - typeof";return ov=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ov(r)}n(ov,"_typeof");function OK(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(OK,"ownKeys");function PK(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?OK(Object(t),!0).forEach(function(i){yVe(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):OK(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(PK,"_objectSpread");function yVe(r,e,t){return e=mVe(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(yVe,"_defineProperty");function mVe(r){var e=gVe(r,"string");return ov(e)==="symbol"?e:String(e)}n(mVe,"_toPropertyKey");function gVe(r,e){if(ov(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(ov(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(gVe,"_toPrimitive");function uv(r){return PK(PK({},r),{},{type:r.mimeType,extension:r.name?ra(r.name).extension:null})}n(uv,"remoteFileObjToLocal");function Xc(r){"@babel/helpers - typeof";return Xc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xc(r)}n(Xc,"_typeof");var bVe=["data","rowHeight","renderRow","overscanCount"];function _K(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(_K,"ownKeys");function t0(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?_K(Object(t),!0).forEach(function(i){wVe(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):_K(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(t0,"_objectSpread");function wVe(r,e,t){return e=TK(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(wVe,"_defineProperty");function SVe(r,e){if(r==null)return{};var t=OVe(r,e),i,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);for(o=0;o<a.length;o++)i=a[o],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(r,i)&&(t[i]=r[i])}return t}n(SVe,"_objectWithoutProperties");function OVe(r,e){if(r==null)return{};var t={},i=Object.keys(r),o,a;for(a=0;a<i.length;a++)o=i[a],!(e.indexOf(o)>=0)&&(t[o]=r[o]);return t}n(OVe,"_objectWithoutPropertiesLoose");function PVe(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(PVe,"_classCallCheck");function EK(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,TK(i.key),i)}}n(EK,"_defineProperties");function _Ve(r,e,t){return e&&EK(r.prototype,e),t&&EK(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(_Ve,"_createClass");function TK(r){var e=EVe(r,"string");return Xc(e)==="symbol"?e:String(e)}n(TK,"_toPropertyKey");function EVe(r,e){if(Xc(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Xc(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(EVe,"_toPrimitive");function TVe(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&TI(r,e)}n(TVe,"_inherits");function TI(r,e){return TI=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),TI(r,e)}n(TI,"_setPrototypeOf");function RVe(r){var e=qVe();return n(function(){var i=n0(r),o;if(e){var a=n0(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return AVe(this,o)},"_createSuperInternal")}n(RVe,"_createSuper");function AVe(r,e){if(e&&(Xc(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return IVe(r)}n(AVe,"_possibleConstructorReturn");function IVe(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(IVe,"_assertThisInitialized");function qVe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(qVe,"_isNativeReflectConstruct");function n0(r){return n0=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),n0(r)}n(n0,"_getPrototypeOf");function RI(){return RI=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},RI.apply(this,arguments)}n(RI,"_extends");var kVe={position:"relative",width:"100%",minHeight:"100%"},jVe={position:"absolute",top:0,left:0,width:"100%",overflow:"visible"},FVe=function(r){TVe(t,r);var e=RVe(t);function t(i){var o;return PVe(this,t),o=e.call(this,i),o.handleScroll=function(){o.setState({offset:o.base.scrollTop})},o.handleResize=function(){o.resize()},o.focusElement=null,o.state={offset:0,height:0},o}return n(t,"VirtualList"),_Ve(t,[{key:"componentDidMount",value:n(function(){this.resize(),window.addEventListener("resize",this.handleResize)},"componentDidMount")},{key:"componentWillUpdate",value:n(function(){this.base.contains(document.activeElement)&&(this.focusElement=document.activeElement)},"componentWillUpdate")},{key:"componentDidUpdate",value:n(function(){this.focusElement&&this.focusElement.parentNode&&document.activeElement!==this.focusElement&&this.focusElement.focus(),this.focusElement=null,this.resize()},"componentDidUpdate")},{key:"componentWillUnmount",value:n(function(){window.removeEventListener("resize",this.handleResize)},"componentWillUnmount")},{key:"resize",value:n(function(){var o=this.state.height;o!==this.base.offsetHeight&&this.setState({height:this.base.offsetHeight})},"resize")},{key:"render",value:n(function(o){var a=o.data,u=o.rowHeight,c=o.renderRow,l=o.overscanCount,d=l===void 0?10:l,y=SVe(o,bVe),m=this.state,b=m.offset,w=m.height,S=Math.floor(b/u),P=Math.floor(w/u);d&&(S=Math.max(0,S-S%d),P+=d);var R=S+P+4,I=a.slice(S,R),T=t0(t0({},kVe),{},{height:a.length*u}),F=t0(t0({},jVe),{},{top:S*u});return _("div",RI({onScroll:this.handleScroll},y),_("div",{role:"presentation",style:T},_("div",{role:"presentation",style:F},I.map(c))))},"render")}]),t}(ur),i0=FVe;function RK(r,e){return xVe(r)||NVe(r,e)||LVe(r,e)||CVe()}n(RK,"_slicedToArray");function CVe(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n(CVe,"_nonIterableRest");function LVe(r,e){if(r){if(typeof r=="string")return AK(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return AK(r,e)}}n(LVe,"_unsupportedIterableToArray");function AK(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=r[t];return i}n(AK,"_arrayLikeToArray");function NVe(r,e){var t=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var i,o,a,u,c=[],l=!0,d=!1;try{if(a=(t=t.call(r)).next,e===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(i=a.call(t)).done)&&(c.push(i.value),c.length!==e);l=!0);}catch(y){d=!0,o=y}finally{try{if(!l&&t.return!=null&&(u=t.return(),Object(u)!==u))return}finally{if(d)throw o}}return c}}n(NVe,"_iterableToArrayLimit");function xVe(r){if(Array.isArray(r))return r}n(xVe,"_arrayWithHoles");function sv(r){var e=r.search,t=r.searchOnInput,i=r.searchTerm,o=r.showButton,a=r.inputLabel,u=r.clearSearchLabel,c=r.buttonLabel,l=r.clearSearch,d=r.inputClassName,y=r.buttonCSSClassName,m=Kc(i!=null?i:""),b=RK(m,2),w=b[0],S=b[1],P=_s(function(U){U.preventDefault(),e(w)},[e,w]),R=_s(function(U){var D=U.target.value;S(D),t&&e(D)},[S,t,e]),I=n(function(){S(""),l&&l()},"handleReset"),T=Kc(function(){var U=document.createElement("form");return U.setAttribute("tabindex","-1"),U.id=It(),U}),F=RK(T,1),k=F[0];return Ps(function(){return document.body.appendChild(k),k.addEventListener("submit",P),function(){k.removeEventListener("submit",P),document.body.removeChild(k)}},[k,P]),_(ln,null,_("input",{className:"uppy-u-reset ".concat(d),type:"search","aria-label":a,placeholder:a,value:w,onInput:R,form:k.id,"data-uppy-super-focusable":!0}),!o&&_("svg",{"aria-hidden":"true",focusable:"false",class:"uppy-c-icon uppy-ProviderBrowser-searchFilterIcon",width:"12",height:"12",viewBox:"0 0 12 12"},_("path",{d:"M8.638 7.99l3.172 3.172a.492.492 0 1 1-.697.697L7.91 8.656a4.977 4.977 0 0 1-2.983.983C2.206 9.639 0 7.481 0 4.819 0 2.158 2.206 0 4.927 0c2.721 0 4.927 2.158 4.927 4.82a4.74 4.74 0 0 1-1.216 3.17zm-3.71.685c2.176 0 3.94-1.726 3.94-3.856 0-2.129-1.764-3.855-3.94-3.855C2.75.964.984 2.69.984 4.819c0 2.13 1.765 3.856 3.942 3.856z"})),!o&&w&&_("button",{className:"uppy-u-reset uppy-ProviderBrowser-searchFilterReset",type:"button","aria-label":u,title:u,onClick:I},_("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",viewBox:"0 0 19 19"},_("path",{d:"M17.318 17.232L9.94 9.854 9.586 9.5l-.354.354-7.378 7.378h.707l-.62-.62v.706L9.318 9.94l.354-.354-.354-.354L1.94 1.854v.707l.62-.62h-.706l7.378 7.378.354.354.354-.354 7.378-7.378h-.707l.622.62v-.706L9.854 9.232l-.354.354.354.354 7.378 7.378.708-.707-7.38-7.378v.708l7.38-7.38.353-.353-.353-.353-.622-.622-.353-.353-.354.352-7.378 7.38h.708L2.56 1.23 2.208.88l-.353.353-.622.62-.353.355.352.353 7.38 7.38v-.708l-7.38 7.38-.353.353.352.353.622.622.353.353.354-.353 7.38-7.38h-.708l7.38 7.38z"}))),o&&_("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary ".concat(y),type:"submit",form:k.id},c))}n(sv,"SearchFilterInput");var IK=n(function(r){var e=r.cancel,t=r.done,i=r.i18n,o=r.selected;return _("div",{className:"uppy-ProviderBrowser-footer"},_("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary",onClick:t,type:"button"},i("selectX",{smart_count:o})),_("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-link",onClick:e,type:"button"},i("cancel")))},"default");var FK=Ce(qn(),1);function DVe(){return _("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:11,height:14.5,viewBox:"0 0 44 58"},_("path",{d:"M27.437.517a1 1 0 0 0-.094.03H4.25C2.037.548.217 2.368.217 4.58v48.405c0 2.212 1.82 4.03 4.03 4.03H39.03c2.21 0 4.03-1.818 4.03-4.03V15.61a1 1 0 0 0-.03-.28 1 1 0 0 0 0-.093 1 1 0 0 0-.03-.032 1 1 0 0 0 0-.03 1 1 0 0 0-.032-.063 1 1 0 0 0-.03-.063 1 1 0 0 0-.032 0 1 1 0 0 0-.03-.063 1 1 0 0 0-.032-.03 1 1 0 0 0-.03-.063 1 1 0 0 0-.063-.062l-14.593-14a1 1 0 0 0-.062-.062A1 1 0 0 0 28 .708a1 1 0 0 0-.374-.157 1 1 0 0 0-.156 0 1 1 0 0 0-.03-.03l-.003-.003zM4.25 2.547h22.218v9.97c0 2.21 1.82 4.03 4.03 4.03h10.564v36.438a2.02 2.02 0 0 1-2.032 2.032H4.25c-1.13 0-2.032-.9-2.032-2.032V4.58c0-1.13.902-2.032 2.03-2.032zm24.218 1.345l10.375 9.937.75.718H30.5c-1.13 0-2.032-.9-2.032-2.03V3.89z"}))}n(DVe,"FileIcon");function MVe(){return _("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",style:{minWidth:16,marginRight:3},viewBox:"0 0 276.157 276.157"},_("path",{d:"M273.08 101.378c-3.3-4.65-8.86-7.32-15.254-7.32h-24.34V67.59c0-10.2-8.3-18.5-18.5-18.5h-85.322c-3.63 0-9.295-2.875-11.436-5.805l-6.386-8.735c-4.982-6.814-15.104-11.954-23.546-11.954H58.73c-9.292 0-18.638 6.608-21.737 15.372l-2.033 5.752c-.958 2.71-4.72 5.37-7.596 5.37H18.5C8.3 49.09 0 57.39 0 67.59v167.07c0 .886.16 1.73.443 2.52.152 3.306 1.18 6.424 3.053 9.064 3.3 4.652 8.86 7.32 15.255 7.32h188.487c11.395 0 23.27-8.425 27.035-19.18l40.677-116.188c2.11-6.035 1.43-12.164-1.87-16.816zM18.5 64.088h8.864c9.295 0 18.64-6.607 21.738-15.37l2.032-5.75c.96-2.712 4.722-5.373 7.597-5.373h29.565c3.63 0 9.295 2.876 11.437 5.806l6.386 8.735c4.982 6.815 15.104 11.954 23.546 11.954h85.322c1.898 0 3.5 1.602 3.5 3.5v26.47H69.34c-11.395 0-23.27 8.423-27.035 19.178L15 191.23V67.59c0-1.898 1.603-3.5 3.5-3.5zm242.29 49.15l-40.676 116.188c-1.674 4.78-7.812 9.135-12.877 9.135H18.75c-1.447 0-2.576-.372-3.02-.997-.442-.625-.422-1.814.057-3.18l40.677-116.19c1.674-4.78 7.812-9.134 12.877-9.134h188.487c1.448 0 2.577.372 3.02.997.443.625.423 1.814-.056 3.18z"}))}n(MVe,"FolderIcon");function UVe(){return _("svg",{"aria-hidden":"true",focusable:"false",style:{width:16,marginRight:4},viewBox:"0 0 58 58"},_("path",{d:"M36.537 28.156l-11-7a1.005 1.005 0 0 0-1.02-.033C24.2 21.3 24 21.635 24 22v14a1 1 0 0 0 1.537.844l11-7a1.002 1.002 0 0 0 0-1.688zM26 34.18V23.82L34.137 29 26 34.18z"}),_("path",{d:"M57 6H1a1 1 0 0 0-1 1v44a1 1 0 0 0 1 1h56a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1zM10 28H2v-9h8v9zm-8 2h8v9H2v-9zm10 10V8h34v42H12V40zm44-12h-8v-9h8v9zm-8 2h8v9h-8v-9zm8-22v9h-8V8h8zM2 8h8v9H2V8zm0 42v-9h8v9H2zm54 0h-8v-9h8v9z"}))}n(UVe,"VideoIcon");var qK=n(function(r){var e=r.itemIconString;if(e!==null)switch(e){case"file":return _(DVe,null);case"folder":return _(MVe,null);case"video":return _(UVe,null);default:{var t=r.alt;return _("img",{src:e,alt:t,loading:"lazy",width:16,height:16})}}},"default");var kK=Ce(qn(),1);function BVe(r){var e=r.className,t=r.isDisabled,i=r.restrictionError,o=r.isChecked,a=r.title,u=r.itemIconEl,c=r.showTitles,l=r.toggleCheckbox,d=r.recordShiftKeyPress,y=r.id,m=r.children,b=(0,kK.default)("uppy-u-reset","uppy-ProviderBrowserItem-checkbox","uppy-ProviderBrowserItem-checkbox--grid",{"uppy-ProviderBrowserItem-checkbox--is-checked":o});return _("li",{className:e,title:t?i==null?void 0:i.message:null},_("input",{type:"checkbox",className:b,onChange:l,onKeyDown:d,onMouseDown:d,name:"listitem",id:y,checked:o,disabled:t,"data-uppy-super-focusable":!0}),_("label",{htmlFor:y,"aria-label":a,className:"uppy-u-reset uppy-ProviderBrowserItem-inner"},u,c&&a,m))}n(BVe,"GridListItem");var AI=BVe;function $Ve(r){var e=r.className,t=r.isDisabled,i=r.restrictionError,o=r.isCheckboxDisabled,a=r.isChecked,u=r.toggleCheckbox,c=r.recordShiftKeyPress,l=r.type,d=r.id,y=r.itemIconEl,m=r.title,b=r.handleFolderClick,w=r.showTitles,S=r.i18n;return _("li",{className:e,title:t?i==null?void 0:i.message:null},o?null:_("input",{type:"checkbox",className:"uppy-u-reset uppy-ProviderBrowserItem-checkbox ".concat(a?"uppy-ProviderBrowserItem-checkbox--is-checked":""),onChange:u,onKeyDown:c,onMouseDown:c,name:"listitem",id:d,checked:a,"aria-label":l==="file"?null:S("allFilesFromFolderNamed",{name:m}),disabled:t,"data-uppy-super-focusable":!0}),l==="file"?_("label",{htmlFor:d,className:"uppy-u-reset uppy-ProviderBrowserItem-inner"},_("div",{className:"uppy-ProviderBrowserItem-iconWrap"},y),w&&m):_("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-ProviderBrowserItem-inner",onClick:b,"aria-label":S("openFolderNamed",{name:m})},_("div",{className:"uppy-ProviderBrowserItem-iconWrap"},y),w&&_("span",null,m)))}n($Ve,"ListItem");var jK=$Ve;function lv(){return lv=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},lv.apply(this,arguments)}n(lv,"_extends");var II=n(function(r){var e=r.author,t=r.getItemIcon,i=r.isChecked,o=r.isDisabled,a=r.viewType,u=t(),c=(0,FK.default)("uppy-ProviderBrowserItem",{"uppy-ProviderBrowserItem--selected":i},{"uppy-ProviderBrowserItem--disabled":o},{"uppy-ProviderBrowserItem--noPreview":u==="video"}),l=_(qK,{itemIconString:u});switch(a){case"grid":return _(AI,lv({},r,{className:c,itemIconEl:l}));case"list":return _(jK,lv({},r,{className:c,itemIconEl:l}));case"unsplash":return _(AI,lv({},r,{className:c,itemIconEl:l}),_("a",{href:"".concat(e.url,"?utm_source=Companion&utm_medium=referral"),target:"_blank",rel:"noopener noreferrer",className:"uppy-ProviderBrowserItem-author",tabIndex:"-1"},e.name));default:throw new Error("There is no such type ".concat(a))}},"default");function a0(r){return WVe(r)||HVe(r)||zVe(r)||GVe()}n(a0,"_toConsumableArray");function GVe(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n(GVe,"_nonIterableSpread");function zVe(r,e){if(r){if(typeof r=="string")return qI(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return qI(r,e)}}n(zVe,"_unsupportedIterableToArray");function HVe(r){if(typeof Symbol!="undefined"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}n(HVe,"_iterableToArray");function WVe(r){if(Array.isArray(r))return qI(r)}n(WVe,"_arrayWithoutHoles");function qI(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=r[t];return i}n(qI,"_arrayLikeToArray");var VVe="shared-with-me";function CK(r){var e=r.currentSelection,t=r.uppyFiles,i=r.viewType,o=r.isChecked,a=r.toggleCheckbox,u=r.recordShiftKeyPress,c=r.showTitles,l=r.i18n,d=r.validateRestrictions,y=r.getNextFolder,m=r.columns,b=r.f;if(b.isFolder){var w;return II({columns:m,showTitles:c,viewType:i,i18n:l,id:b.id,title:b.name,getItemIcon:n(function(){return b.icon},"getItemIcon"),isChecked:o(b),toggleCheckbox:n(function(R){return a(R,b)},"toggleCheckbox"),recordShiftKeyPress:u,type:"folder",isDisabled:(w=o(b))==null?void 0:w.loading,isCheckboxDisabled:b.id===VVe,handleFolderClick:n(function(){return y(b)},"handleFolderClick")})}var S=d(uv(b),[].concat(a0(t),a0(e)));return II({id:b.id,title:b.name,author:b.author,getItemIcon:n(function(){return b.icon},"getItemIcon"),isChecked:o(b),toggleCheckbox:n(function(R){return a(R,b)},"toggleCheckbox"),recordShiftKeyPress:u,columns:m,showTitles:c,viewType:i,i18n:l,type:"file",isDisabled:S&&!o(b),restrictionError:S})}n(CK,"ListItem");function KVe(r){var e=r.currentSelection,t=r.folders,i=r.files,o=r.uppyFiles,a=r.viewType,u=r.headerComponent,c=r.showBreadcrumbs,l=r.isChecked,d=r.toggleCheckbox,y=r.recordShiftKeyPress,m=r.handleScroll,b=r.showTitles,w=r.i18n,S=r.validateRestrictions,P=r.isLoading,R=r.showSearchFilter,I=r.search,T=r.searchTerm,F=r.clearSearch,k=r.searchOnInput,U=r.searchInputLabel,D=r.clearSearchLabel,H=r.getNextFolder,$=r.cancel,V=r.done,W=r.columns,Y=r.noResultsLabel,p=r.loadAllFiles,s=e.length,f=Yc(function(){return[].concat(a0(t),a0(i))},[t,i]);return _("div",{className:(0,kI.default)("uppy-ProviderBrowser","uppy-ProviderBrowser-viewType--".concat(a))},u&&_("div",{className:"uppy-ProviderBrowser-header"},_("div",{className:(0,kI.default)("uppy-ProviderBrowser-headerBar",!c&&"uppy-ProviderBrowser-headerBar--simple")},u)),R&&_("div",{class:"uppy-ProviderBrowser-searchFilter"},_(sv,{search:I,searchTerm:T,clearSearch:F,inputLabel:U,clearSearchLabel:D,inputClassName:"uppy-ProviderBrowser-searchFilterInput",searchOnInput:k})),function(){return P?_("div",{className:"uppy-Provider-loading"},_("span",null,w("loading"))):!t.length&&!i.length?_("div",{className:"uppy-Provider-empty"},Y):p?_("div",{className:"uppy-ProviderBrowser-body"},_("ul",{className:"uppy-ProviderBrowser-list"},_(i0,{data:f,renderRow:n(function(g){return _(CK,{currentSelection:e,uppyFiles:o,viewType:a,isChecked:l,toggleCheckbox:d,recordShiftKeyPress:y,showTitles:b,i18n:w,validateRestrictions:S,getNextFolder:H,columns:W,f:g})},"renderRow"),rowHeight:31}))):_("div",{className:"uppy-ProviderBrowser-body"},_("ul",{className:"uppy-ProviderBrowser-list",onScroll:m,role:"listbox",tabIndex:"-1"},f.map(function(v){return _(CK,{currentSelection:e,uppyFiles:o,viewType:a,isChecked:l,toggleCheckbox:d,recordShiftKeyPress:y,showTitles:b,i18n:w,validateRestrictions:S,getNextFolder:H,columns:W,f:v})})))}(),s>0&&_(IK,{selected:s,done:V,cancel:$,i18n:w}))}n(KVe,"Browser");var o0=KVe;function Qc(r){"@babel/helpers - typeof";return Qc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qc(r)}n(Qc,"_typeof");function YVe(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(YVe,"_classCallCheck");function LK(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,QVe(i.key),i)}}n(LK,"_defineProperties");function XVe(r,e,t){return e&&LK(r.prototype,e),t&&LK(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(XVe,"_createClass");function QVe(r){var e=JVe(r,"string");return Qc(e)==="symbol"?e:String(e)}n(QVe,"_toPropertyKey");function JVe(r,e){if(Qc(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Qc(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(JVe,"_toPrimitive");function ZVe(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&jI(r,e)}n(ZVe,"_inherits");function jI(r,e){return jI=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),jI(r,e)}n(jI,"_setPrototypeOf");function eKe(r){var e=nKe();return n(function(){var i=u0(r),o;if(e){var a=u0(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return rKe(this,o)},"_createSuperInternal")}n(eKe,"_createSuper");function rKe(r,e){if(e&&(Qc(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tKe(r)}n(rKe,"_possibleConstructorReturn");function tKe(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(tKe,"_assertThisInitialized");function nKe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(nKe,"_isNativeReflectConstruct");function u0(r){return u0=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),u0(r)}n(u0,"_getPrototypeOf");var Jc=function(r){ZVe(t,r);var e=eKe(t);function t(){return YVe(this,t),e.apply(this,arguments)}return n(t,"CloseWrapper"),XVe(t,[{key:"componentWillUnmount",value:n(function(){var o=this.props.onUnmount;o()},"componentWillUnmount")},{key:"render",value:n(function(){var o=this.props.children;return ri(o)[0]},"render")}]),t}(ur);function Zc(r){return r?/^[^/]+\/(jpe?g|gif|png|svg|svg\+xml|bmp|webp|avif)$/.test(r):!1}n(Zc,"isPreviewSupported");function cv(r){"@babel/helpers - typeof";return cv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cv(r)}n(cv,"_typeof");function FI(r){return oKe(r)||aKe(r)||xK(r)||iKe()}n(FI,"_toConsumableArray");function iKe(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n(iKe,"_nonIterableSpread");function aKe(r){if(typeof Symbol!="undefined"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}n(aKe,"_iterableToArray");function oKe(r){if(Array.isArray(r))return CI(r)}n(oKe,"_arrayWithoutHoles");function uKe(r,e){var t=typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=xK(r))||e&&r&&typeof r.length=="number"){t&&(r=t);var i=0,o=n(function(){},"F");return{s:o,n:n(function(){return i>=r.length?{done:!0}:{done:!1,value:r[i++]}},"n"),e:n(function(d){throw d},"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=!0,u=!1,c;return{s:n(function(){t=t.call(r)},"s"),n:n(function(){var d=t.next();return a=d.done,d},"n"),e:n(function(d){u=!0,c=d},"e"),f:n(function(){try{!a&&t.return!=null&&t.return()}finally{if(u)throw c}},"f")}}n(uKe,"_createForOfIteratorHelper");function xK(r,e){if(r){if(typeof r=="string")return CI(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return CI(r,e)}}n(xK,"_unsupportedIterableToArray");function CI(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=r[t];return i}n(CI,"_arrayLikeToArray");function sKe(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(sKe,"_classCallCheck");function NK(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,cKe(i.key),i)}}n(NK,"_defineProperties");function lKe(r,e,t){return e&&NK(r.prototype,e),t&&NK(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(lKe,"_createClass");function cKe(r){var e=fKe(r,"string");return cv(e)==="symbol"?e:String(e)}n(cKe,"_toPropertyKey");function fKe(r,e){if(cv(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(cv(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(fKe,"_toPrimitive");var s0=function(){function r(e,t){var i=this;sKe(this,r),this.filterItems=function(o){var a=i.plugin.getPluginState();return!a.filterInput||a.filterInput===""?o:o.filter(function(u){return u.name.toLowerCase().indexOf(a.filterInput.toLowerCase())!==-1})},this.recordShiftKeyPress=function(o){i.isShiftKeyPressed=o.shiftKey},this.toggleCheckbox=function(o,a){o.stopPropagation(),o.preventDefault(),o.currentTarget.focus();var u=i.plugin.getPluginState(),c=u.folders,l=u.files,d=i.filterItems(c.concat(l));if(i.lastCheckbox&&i.isShiftKeyPressed){var y=i.plugin.getPluginState(),m=y.currentSelection,b=d.indexOf(i.lastCheckbox),w=d.indexOf(a),S=b<w?d.slice(b,w+1):d.slice(w,b+1),P=[],R=uKe(S),I;try{for(R.s();!(I=R.n()).done;){var T=I.value,F=i.plugin.uppy,k=F.validateRestrictions(uv(T),[].concat(FI(F.getFiles()),P));k?F.info({message:k.message},"error",F.opts.infoTimeout):P.push(T)}}catch(H){R.e(H)}finally{R.f()}i.plugin.setPluginState({currentSelection:FI(new Set([].concat(FI(m),P)))});return}i.lastCheckbox=a;var U=i.plugin.getPluginState(),D=U.currentSelection;i.isChecked(a)?i.plugin.setPluginState({currentSelection:D.filter(function(H){return H.id!==a.id})}):i.plugin.setPluginState({currentSelection:D.concat([a])})},this.isChecked=function(o){var a=i.plugin.getPluginState(),u=a.currentSelection;return u.some(function(c){return c.id===o.id})},this.plugin=e,this.provider=t.provider,this.isHandlingScroll=!1,this.preFirstRender=this.preFirstRender.bind(this),this.handleError=this.handleError.bind(this),this.clearSelection=this.clearSelection.bind(this),this.cancelPicking=this.cancelPicking.bind(this)}return n(r,"View"),lKe(r,[{key:"preFirstRender",value:n(function(){this.plugin.setPluginState({didFirstRender:!0}),this.plugin.onFirstRender()},"preFirstRender")},{key:"shouldHandleScroll",value:n(function(t){var i=t.target,o=i.scrollHeight,a=i.scrollTop,u=i.offsetHeight,c=o-(a+u);return c<50&&!this.isHandlingScroll},"shouldHandleScroll")},{key:"clearSelection",value:n(function(){this.plugin.setPluginState({currentSelection:[],filterInput:""})},"clearSelection")},{key:"cancelPicking",value:n(function(){this.clearSelection();var t=this.plugin.uppy.getPlugin("Dashboard");t&&t.hideAllPanels()},"cancelPicking")},{key:"handleError",value:n(function(t){var i,o=this.plugin.uppy,a=o.i18n("companionError");o.log(t.toString()),!(t.isAuthError||((i=t.cause)==null?void 0:i.name)==="AbortError")&&o.info({message:a,details:t.toString()},"error",5e3)},"handleError")},{key:"registerRequestClient",value:n(function(){this.requestClientId=this.provider.provider,this.plugin.uppy.registerRequestClient(this.requestClientId,this.provider)},"registerRequestClient")},{key:"getTagFile",value:n(function(t){var i={id:t.id,source:this.plugin.id,data:t,name:t.name||t.id,type:t.mimeType,isRemote:!0,meta:{},body:{fileId:t.id},remote:{companionUrl:this.plugin.opts.companionUrl,url:"".concat(this.provider.fileUrl(t.requestPath)),body:{fileId:t.id},providerName:this.provider.name,provider:this.provider.provider,requestClientId:this.requestClientId}},o=ls(i);return o&&Zc(o)&&(i.preview=t.thumbnail),t.author&&(t.author.name!=null&&(i.meta.authorName=String(t.author.name)),t.author.url&&(i.meta.authorUrl=t.author.url)),t.relDirPath!=null&&(i.meta.relativePath=t.relDirPath?"".concat(t.relDirPath,"/").concat(i.name):null),t.absDirPath!=null&&(i.meta.absolutePath=t.absDirPath?"/".concat(t.absDirPath,"/").concat(i.name):"/".concat(i.name)),i},"getTagFile")},{key:"setLoading",value:n(function(t){this.plugin.setPluginState({loading:t})},"setLoading")}]),r}();function Ts(r){"@babel/helpers - typeof";return Ts=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ts(r)}n(Ts,"_typeof");function DK(r,e){var t=typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=$K(r))||e&&r&&typeof r.length=="number"){t&&(r=t);var i=0,o=n(function(){},"F");return{s:o,n:n(function(){return i>=r.length?{done:!0}:{done:!1,value:r[i++]}},"n"),e:n(function(d){throw d},"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=!0,u=!1,c;return{s:n(function(){t=t.call(r)},"s"),n:n(function(){var d=t.next();return a=d.done,d},"n"),e:n(function(d){u=!0,c=d},"e"),f:n(function(){try{!a&&t.return!=null&&t.return()}finally{if(u)throw c}},"f")}}n(DK,"_createForOfIteratorHelper");function He(){"use strict";He=n(function(){return r},"_regeneratorRuntime");var r={},e=Object.prototype,t=e.hasOwnProperty,i=Object.defineProperty||function(p,s,f){p[s]=f.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(p,s,f){return Object.defineProperty(p,s,{value:f,enumerable:!0,configurable:!0,writable:!0}),p[s]}n(l,"define");try{l({},"")}catch(p){l=n(function(f,v,g){return f[v]=g},"define")}function d(p,s,f,v){var g=s&&s.prototype instanceof b?s:b,h=Object.create(g.prototype),O=new V(v||[]);return i(h,"_invoke",{value:U(p,f,O)}),h}n(d,"wrap");function y(p,s,f){try{return{type:"normal",arg:p.call(s,f)}}catch(v){return{type:"throw",arg:v}}}n(y,"tryCatch"),r.wrap=d;var m={};function b(){}n(b,"Generator");function w(){}n(w,"GeneratorFunction");function S(){}n(S,"GeneratorFunctionPrototype");var P={};l(P,a,function(){return this});var R=Object.getPrototypeOf,I=R&&R(R(W([])));I&&I!==e&&t.call(I,a)&&(P=I);var T=S.prototype=b.prototype=Object.create(P);function F(p){["next","throw","return"].forEach(function(s){l(p,s,function(f){return this._invoke(s,f)})})}n(F,"defineIteratorMethods");function k(p,s){function f(g,h,O,E){var A=y(p[g],p,h);if(A.type!=="throw"){var C=A.arg,N=C.value;return N&&Ts(N)=="object"&&t.call(N,"__await")?s.resolve(N.__await).then(function(M){f("next",M,O,E)},function(M){f("throw",M,O,E)}):s.resolve(N).then(function(M){C.value=M,O(C)},function(M){return f("throw",M,O,E)})}E(A.arg)}n(f,"invoke");var v;i(this,"_invoke",{value:n(function(h,O){function E(){return new s(function(A,C){f(h,O,A,C)})}return n(E,"callInvokeWithMethodAndArg"),v=v?v.then(E,E):E()},"value")})}n(k,"AsyncIterator");function U(p,s,f){var v="suspendedStart";return function(g,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(g==="throw")throw h;return Y()}for(f.method=g,f.arg=h;;){var O=f.delegate;if(O){var E=D(O,f);if(E){if(E===m)continue;return E}}if(f.method==="next")f.sent=f._sent=f.arg;else if(f.method==="throw"){if(v==="suspendedStart")throw v="completed",f.arg;f.dispatchException(f.arg)}else f.method==="return"&&f.abrupt("return",f.arg);v="executing";var A=y(p,s,f);if(A.type==="normal"){if(v=f.done?"completed":"suspendedYield",A.arg===m)continue;return{value:A.arg,done:f.done}}A.type==="throw"&&(v="completed",f.method="throw",f.arg=A.arg)}}}n(U,"makeInvokeMethod");function D(p,s){var f=s.method,v=p.iterator[f];if(v===void 0)return s.delegate=null,f==="throw"&&p.iterator.return&&(s.method="return",s.arg=void 0,D(p,s),s.method==="throw")||f!=="return"&&(s.method="throw",s.arg=new TypeError("The iterator does not provide a '"+f+"' method")),m;var g=y(v,p.iterator,s.arg);if(g.type==="throw")return s.method="throw",s.arg=g.arg,s.delegate=null,m;var h=g.arg;return h?h.done?(s[p.resultName]=h.value,s.next=p.nextLoc,s.method!=="return"&&(s.method="next",s.arg=void 0),s.delegate=null,m):h:(s.method="throw",s.arg=new TypeError("iterator result is not an object"),s.delegate=null,m)}n(D,"maybeInvokeDelegate");function H(p){var s={tryLoc:p[0]};1 in p&&(s.catchLoc=p[1]),2 in p&&(s.finallyLoc=p[2],s.afterLoc=p[3]),this.tryEntries.push(s)}n(H,"pushTryEntry");function $(p){var s=p.completion||{};s.type="normal",delete s.arg,p.completion=s}n($,"resetTryEntry");function V(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(H,this),this.reset(!0)}n(V,"Context");function W(p){if(p){var s=p[a];if(s)return s.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var f=-1,v=n(function g(){for(;++f<p.length;)if(t.call(p,f))return g.value=p[f],g.done=!1,g;return g.value=void 0,g.done=!0,g},"next");return v.next=v}}return{next:Y}}n(W,"values");function Y(){return{value:void 0,done:!0}}return n(Y,"doneResult"),w.prototype=S,i(T,"constructor",{value:S,configurable:!0}),i(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),r.isGeneratorFunction=function(p){var s=typeof p=="function"&&p.constructor;return!!s&&(s===w||(s.displayName||s.name)==="GeneratorFunction")},r.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,S):(p.__proto__=S,l(p,c,"GeneratorFunction")),p.prototype=Object.create(T),p},r.awrap=function(p){return{__await:p}},F(k.prototype),l(k.prototype,u,function(){return this}),r.AsyncIterator=k,r.async=function(p,s,f,v,g){g===void 0&&(g=Promise);var h=new k(d(p,s,f,v),g);return r.isGeneratorFunction(s)?h:h.next().then(function(O){return O.done?O.value:h.next()})},F(T),l(T,c,"Generator"),l(T,a,function(){return this}),l(T,"toString",function(){return"[object Generator]"}),r.keys=function(p){var s=Object(p),f=[];for(var v in s)f.push(v);return f.reverse(),n(function g(){for(;f.length;){var h=f.pop();if(h in s)return g.value=h,g.done=!1,g}return g.done=!0,g},"next")},r.values=W,V.prototype={constructor:V,reset:n(function(s){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach($),!s)for(var f in this)f.charAt(0)==="t"&&t.call(this,f)&&!isNaN(+f.slice(1))&&(this[f]=void 0)},"reset"),stop:n(function(){this.done=!0;var s=this.tryEntries[0].completion;if(s.type==="throw")throw s.arg;return this.rval},"stop"),dispatchException:n(function(s){if(this.done)throw s;var f=this;function v(C,N){return O.type="throw",O.arg=s,f.next=C,N&&(f.method="next",f.arg=void 0),!!N}n(v,"handle");for(var g=this.tryEntries.length-1;g>=0;--g){var h=this.tryEntries[g],O=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var E=t.call(h,"catchLoc"),A=t.call(h,"finallyLoc");if(E&&A){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(E){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!A)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},"dispatchException"),abrupt:n(function(s,f){for(var v=this.tryEntries.length-1;v>=0;--v){var g=this.tryEntries[v];if(g.tryLoc<=this.prev&&t.call(g,"finallyLoc")&&this.prev<g.finallyLoc){var h=g;break}}h&&(s==="break"||s==="continue")&&h.tryLoc<=f&&f<=h.finallyLoc&&(h=null);var O=h?h.completion:{};return O.type=s,O.arg=f,h?(this.method="next",this.next=h.finallyLoc,m):this.complete(O)},"abrupt"),complete:n(function(s,f){if(s.type==="throw")throw s.arg;return s.type==="break"||s.type==="continue"?this.next=s.arg:s.type==="return"?(this.rval=this.arg=s.arg,this.method="return",this.next="end"):s.type==="normal"&&f&&(this.next=f),m},"complete"),finish:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.finallyLoc===s)return this.complete(v.completion,v.afterLoc),$(v),m}},"finish"),catch:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.tryLoc===s){var g=v.completion;if(g.type==="throw"){var h=g.arg;$(v)}return h}}throw new Error("illegal catch attempt")},"_catch"),delegateYield:n(function(s,f,v){return this.delegate={iterator:W(s),resultName:f,nextLoc:v},this.method==="next"&&(this.arg=void 0),m},"delegateYield")},r}n(He,"_regeneratorRuntime");function pKe(r){return vKe(r)||hKe(r)||$K(r)||dKe()}n(pKe,"_toConsumableArray");function dKe(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n(dKe,"_nonIterableSpread");function $K(r,e){if(r){if(typeof r=="string")return LI(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return LI(r,e)}}n($K,"_unsupportedIterableToArray");function hKe(r){if(typeof Symbol!="undefined"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}n(hKe,"_iterableToArray");function vKe(r){if(Array.isArray(r))return LI(r)}n(vKe,"_arrayWithoutHoles");function LI(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=r[t];return i}n(LI,"_arrayLikeToArray");function MK(r,e,t,i,o,a,u){try{var c=r[a](u),l=c.value}catch(d){t(d);return}c.done?e(l):Promise.resolve(l).then(i,o)}n(MK,"asyncGeneratorStep");function kt(r){return function(){var e=this,t=arguments;return new Promise(function(i,o){var a=r.apply(e,t);function u(l){MK(a,i,o,u,c,"next",l)}n(u,"_next");function c(l){MK(a,i,o,u,c,"throw",l)}n(c,"_throw"),u(void 0)})}}n(kt,"_asyncToGenerator");function UK(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(UK,"ownKeys");function au(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?UK(Object(t),!0).forEach(function(i){yKe(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):UK(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(au,"_objectSpread");function yKe(r,e,t){return e=GK(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(yKe,"_defineProperty");function mKe(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(mKe,"_classCallCheck");function BK(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,GK(i.key),i)}}n(BK,"_defineProperties");function gKe(r,e,t){return e&&BK(r.prototype,e),t&&BK(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(gKe,"_createClass");function GK(r){var e=bKe(r,"string");return Ts(e)==="symbol"?e:String(e)}n(GK,"_toPropertyKey");function bKe(r,e){if(Ts(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Ts(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(bKe,"_toPrimitive");function wKe(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&NI(r,e)}n(wKe,"_inherits");function NI(r,e){return NI=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),NI(r,e)}n(NI,"_setPrototypeOf");function SKe(r){var e=PKe();return n(function(){var i=l0(r),o;if(e){var a=l0(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return OKe(this,o)},"_createSuperInternal")}n(SKe,"_createSuper");function OKe(r,e){if(e&&(Ts(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Gt(r)}n(OKe,"_possibleConstructorReturn");function Gt(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(Gt,"_assertThisInitialized");function PKe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(PKe,"_isNativeReflectConstruct");function l0(r){return l0=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),l0(r)}n(l0,"_getPrototypeOf");function fn(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}n(fn,"_classPrivateFieldLooseBase");var _Ke=0;function hv(r){return"__private_"+_Ke+++"_"+r}n(hv,"_classPrivateFieldLooseKey");var EKe={version:"3.8.0"};function TKe(r){return r.slice(1).map(function(e){return e.name}).join("/")}n(TKe,"formatBreadcrumbs");function xI(r,e){return r?"".concat(r,"/").concat(e):e}n(xI,"prependPath");function ef(){return _("svg",{"aria-hidden":"true",focusable:"false",width:"30",height:"30",viewBox:"0 0 30 30"},_("path",{d:"M15 30c8.284 0 15-6.716 15-15 0-8.284-6.716-15-15-15C6.716 0 0 6.716 0 15c0 8.284 6.716 15 15 15zm4.258-12.676v6.846h-8.426v-6.846H5.204l9.82-12.364 9.82 12.364H19.26z"}))}n(ef,"defaultPickerIcon");var Es=hv("abortController"),Ai=hv("withAbort"),dv=hv("list"),fv=hv("listFilesAndFolders"),pv=hv("recursivelyListAllFiles"),pt=function(r){wKe(t,r);var e=SKe(t);function t(i,o){var a;mKe(this,t),a=e.call(this,i,o),Object.defineProperty(Gt(a),pv,{value:qKe}),Object.defineProperty(Gt(a),fv,{value:IKe}),Object.defineProperty(Gt(a),dv,{value:AKe}),Object.defineProperty(Gt(a),Ai,{value:RKe}),Object.defineProperty(Gt(a),Es,{writable:!0,value:void 0});var u={viewType:"list",showTitles:!0,showFilter:!0,showBreadcrumbs:!0,loadAllFiles:!1};return a.opts=au(au({},u),o),a.filterQuery=a.filterQuery.bind(Gt(a)),a.clearFilter=a.clearFilter.bind(Gt(a)),a.getFolder=a.getFolder.bind(Gt(a)),a.getNextFolder=a.getNextFolder.bind(Gt(a)),a.logout=a.logout.bind(Gt(a)),a.handleAuth=a.handleAuth.bind(Gt(a)),a.handleScroll=a.handleScroll.bind(Gt(a)),a.donePicking=a.donePicking.bind(Gt(a)),a.render=a.render.bind(Gt(a)),a.plugin.setPluginState({authenticated:void 0,files:[],folders:[],breadcrumbs:[],filterInput:"",isSearchVisible:!1,currentSelection:[]}),a.registerRequestClient(),a}return n(t,"ProviderView"),gKe(t,[{key:"tearDown",value:n(function(){},"tearDown")},{key:"getFolder",value:function(){var i=kt(He().mark(n(function a(u,c){var l=this;return He().wrap(n(function(y){for(;;)switch(y.prev=y.next){case 0:return this.setLoading(!0),y.prev=1,y.next=4,fn(this,Ai)[Ai](function(){var m=kt(He().mark(n(function b(w){var S,P,R,I,T,F,k,U;return He().wrap(n(function(H){for(;;)switch(H.prev=H.next){case 0:l.lastCheckbox=void 0,S=l.plugin.getPluginState(),P=S.breadcrumbs,R=P.findIndex(function($){return u===$.requestPath}),R!==-1?P=P.slice(0,R+1):P=[].concat(pKe(P),[{requestPath:u,name:c}]),l.nextPagePath=u,I=[],T=[];case 7:return H.next=9,fn(l,fv)[fv]({breadcrumbs:P,signal:w});case 9:F=H.sent,k=F.files,U=F.folders,I=I.concat(k),T=T.concat(U),l.setLoading(l.plugin.uppy.i18n("loadedXFiles",{numFiles:I.length+T.length}));case 15:if(l.opts.loadAllFiles&&l.nextPagePath){H.next=7;break}case 16:l.plugin.setPluginState({folders:T,files:I,breadcrumbs:P,filterInput:""});case 17:case"end":return H.stop()}},"_callee$"),b)},"_callee")));return function(b){return m.apply(this,arguments)}}());case 4:y.next=12;break;case 6:if(y.prev=6,y.t0=y.catch(1),(y.t0==null?void 0:y.t0.name)!=="UserFacingApiError"){y.next=11;break}return this.plugin.uppy.info({message:this.plugin.uppy.i18n(y.t0.message)},"warning",5e3),y.abrupt("return");case 11:this.handleError(y.t0);case 12:return y.prev=12,this.setLoading(!1),y.finish(12);case 15:case"end":return y.stop()}},"_callee2$"),a,this,[[1,6,12,15]])},"_callee2")));function o(a,u){return i.apply(this,arguments)}return n(o,"getFolder"),o}()},{key:"getNextFolder",value:n(function(o){this.getFolder(o.requestPath,o.name),this.lastCheckbox=void 0},"getNextFolder")},{key:"logout",value:function(){var i=kt(He().mark(n(function a(){var u=this;return He().wrap(n(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,l.next=3,fn(this,Ai)[Ai](function(){var d=kt(He().mark(n(function y(m){var b,w,S;return He().wrap(n(function(R){for(;;)switch(R.prev=R.next){case 0:return R.next=2,u.provider.logout({signal:m});case 2:b=R.sent,b.ok&&(b.revoked||(w=u.plugin.uppy.i18n("companionUnauthorizeHint",{provider:u.plugin.title,url:b.manual_revoke_url}),u.plugin.uppy.info(w,"info",7e3)),S={authenticated:!1,files:[],folders:[],breadcrumbs:[],filterInput:""},u.plugin.setPluginState(S));case 4:case"end":return R.stop()}},"_callee3$"),y)},"_callee3")));return function(y){return d.apply(this,arguments)}}());case 3:l.next=8;break;case 5:l.prev=5,l.t0=l.catch(0),this.handleError(l.t0);case 8:case"end":return l.stop()}},"_callee4$"),a,this,[[0,5]])},"_callee4")));function o(){return i.apply(this,arguments)}return n(o,"logout"),o}()},{key:"filterQuery",value:n(function(o){this.plugin.setPluginState({filterInput:o})},"filterQuery")},{key:"clearFilter",value:n(function(){this.plugin.setPluginState({filterInput:""})},"clearFilter")},{key:"handleAuth",value:function(){var i=kt(He().mark(n(function a(u){var c=this;return He().wrap(n(function(d){for(;;)switch(d.prev=d.next){case 0:return d.prev=0,d.next=3,fn(this,Ai)[Ai](function(){var y=kt(He().mark(n(function m(b){return He().wrap(n(function(S){for(;;)switch(S.prev=S.next){case 0:return c.setLoading(!0),S.next=3,c.provider.login({authFormData:u,signal:b});case 3:c.plugin.setPluginState({authenticated:!0}),c.preFirstRender();case 5:case"end":return S.stop()}},"_callee5$"),m)},"_callee5")));return function(m){return y.apply(this,arguments)}}());case 3:d.next=11;break;case 5:if(d.prev=5,d.t0=d.catch(0),d.t0.name!=="UserFacingApiError"){d.next=10;break}return this.plugin.uppy.info({message:this.plugin.uppy.i18n(d.t0.message)},"warning",5e3),d.abrupt("return");case 10:this.plugin.uppy.log("login failed: ".concat(d.t0.message));case 11:return d.prev=11,this.setLoading(!1),d.finish(11);case 14:case"end":return d.stop()}},"_callee6$"),a,this,[[0,5,11,14]])},"_callee6")));function o(a){return i.apply(this,arguments)}return n(o,"handleAuth"),o}()},{key:"handleScroll",value:function(){var i=kt(He().mark(n(function a(u){var c=this;return He().wrap(n(function(d){for(;;)switch(d.prev=d.next){case 0:if(!(this.shouldHandleScroll(u)&&this.nextPagePath)){d.next=13;break}return this.isHandlingScroll=!0,d.prev=2,d.next=5,fn(this,Ai)[Ai](function(){var y=kt(He().mark(n(function m(b){var w,S,P,R,I,T,F,k,U;return He().wrap(n(function(H){for(;;)switch(H.prev=H.next){case 0:return w=c.plugin.getPluginState(),S=w.files,P=w.folders,R=w.breadcrumbs,H.next=3,fn(c,fv)[fv]({breadcrumbs:R,signal:b});case 3:I=H.sent,T=I.files,F=I.folders,k=S.concat(T),U=P.concat(F),c.plugin.setPluginState({folders:U,files:k});case 9:case"end":return H.stop()}},"_callee7$"),m)},"_callee7")));return function(m){return y.apply(this,arguments)}}());case 5:d.next=10;break;case 7:d.prev=7,d.t0=d.catch(2),this.handleError(d.t0);case 10:return d.prev=10,this.isHandlingScroll=!1,d.finish(10);case 13:case"end":return d.stop()}},"_callee8$"),a,this,[[2,7,10,13]])},"_callee8")));function o(a){return i.apply(this,arguments)}return n(o,"handleScroll"),o}()},{key:"donePicking",value:function(){var i=kt(He().mark(n(function a(){var u=this;return He().wrap(n(function(l){for(;;)switch(l.prev=l.next){case 0:return this.setLoading(!0),l.prev=1,l.next=4,fn(this,Ai)[Ai](function(){var d=kt(He().mark(n(function y(m){var b,w,S,P,R,I,T;return He().wrap(n(function(k){for(;;)switch(k.prev=k.next){case 0:b=u.plugin.getPluginState(),w=b.currentSelection,S=[],P=[],R=DK(w),k.prev=4,T=He().mark(n(function U(){var D,H,$,V,W,Y,p,s;return He().wrap(n(function(v){for(;;)switch(v.prev=v.next){case 0:if(D=I.value,H=D.requestPath,$=n(function(h){return au(au({},h),{},{relDirPath:h.absDirPath.replace(D.absDirPath,"").replace(/^\//,"")})},"withRelDirPath"),!D.isFolder){v.next=16;break}return V=!0,W=0,Y=new uK({concurrency:6}),p=n(function(h){var O=DK(h),E;try{for(O.s();!(E=O.n()).done;){var A=E.value,C=u.getTagFile(A),N=mw(C);u.plugin.uppy.checkIfFileAlreadyExists(N)||(P.push($(A)),W++,u.setLoading(u.plugin.uppy.i18n("addedNumFiles",{numFiles:W}))),V=!1}}catch(M){O.e(M)}finally{O.f()}},"onFiles"),v.next=10,fn(u,pv)[pv]({requestPath:H,absDirPath:xI(D.absDirPath,D.name),relDirPath:D.name,queue:Y,onFiles:p,signal:m});case 10:return v.next=12,Y.onIdle();case 12:V?s=u.plugin.uppy.i18n("emptyFolderAdded"):W===0?s=u.plugin.uppy.i18n("folderAlreadyAdded",{folder:D.name}):s=u.plugin.uppy.i18n("folderAdded",{smart_count:W,folder:D.name}),S.push(s),v.next=17;break;case 16:P.push($(D));case 17:case"end":return v.stop()}},"_loop$"),U)},"_loop")),R.s();case 7:if((I=R.n()).done){k.next=11;break}return k.delegateYield(T(),"t0",9);case 9:k.next=7;break;case 11:k.next=16;break;case 13:k.prev=13,k.t1=k.catch(4),R.e(k.t1);case 16:return k.prev=16,R.f(),k.finish(16);case 19:u.plugin.uppy.log("Adding files from a remote provider"),u.plugin.uppy.addFiles(P.map(function(U){return u.getTagFile(U,u.requestClientId)})),u.plugin.setPluginState({filterInput:""}),S.forEach(function(U){return u.plugin.uppy.info(U)}),u.clearSelection();case 24:case"end":return k.stop()}},"_callee9$"),y,null,[[4,13,16,19]])},"_callee9")));return function(y){return d.apply(this,arguments)}}());case 4:l.next=9;break;case 6:l.prev=6,l.t0=l.catch(1),this.handleError(l.t0);case 9:return l.prev=9,this.setLoading(!1),l.finish(9);case 12:case"end":return l.stop()}},"_callee10$"),a,this,[[1,6,9,12]])},"_callee10")));function o(){return i.apply(this,arguments)}return n(o,"donePicking"),o}()},{key:"render",value:n(function(o,a){var u=this;a===void 0&&(a={});var c=this.plugin.getPluginState(),l=c.authenticated,d=c.didFirstRender,y=this.plugin.uppy.i18n;d||this.preFirstRender();var m=au(au({},this.opts),a),b=this.plugin.getPluginState(),w=b.files,S=b.folders,P=b.filterInput,R=b.loading,I=b.currentSelection,T=this.isChecked,F=this.toggleCheckbox,k=this.recordShiftKeyPress,U=this.filterItems,D=P!=="",H=this.plugin.icon||ef,$={showBreadcrumbs:m.showBreadcrumbs,getFolder:this.getFolder,breadcrumbs:this.plugin.getPluginState().breadcrumbs,pluginIcon:H,title:this.plugin.title,logout:this.logout,username:this.username,i18n:y},V={isChecked:T,toggleCheckbox:F,recordShiftKeyPress:k,currentSelection:I,files:D?U(w):w,folders:D?U(S):S,getNextFolder:this.getNextFolder,getFolder:this.getFolder,loadAllFiles:this.opts.loadAllFiles,showSearchFilter:m.showFilter,search:this.filterQuery,clearSearch:this.clearFilter,searchTerm:P,searchOnInput:!0,searchInputLabel:y("filter"),clearSearchLabel:y("resetFilter"),noResultsLabel:y("noFilesFound"),logout:this.logout,handleScroll:this.handleScroll,done:this.donePicking,cancel:this.cancelPicking,headerComponent:SK($),title:this.plugin.title,viewType:m.viewType,showTitles:m.showTitles,showBreadcrumbs:m.showBreadcrumbs,pluginIcon:H,i18n:this.plugin.uppy.i18n,uppyFiles:this.plugin.uppy.getFiles(),validateRestrictions:n(function(){var Y;return(Y=u.plugin.uppy).validateRestrictions.apply(Y,arguments)},"validateRestrictions"),isLoading:R};return l===!1?_(Jc,{onUnmount:this.clearSelection},_(gK,{pluginName:this.plugin.title,pluginIcon:H,handleAuth:this.handleAuth,i18n:this.plugin.uppy.i18nArray,renderForm:this.opts.renderAuthForm,loading:R})):_(Jc,{onUnmount:this.clearSelection},_(o0,V))},"render")}]),t}(s0);function RKe(r){return DI.apply(this,arguments)}n(RKe,"_withAbort2");function DI(){return DI=kt(He().mark(n(function r(e){var t=this,i,o,a;return He().wrap(n(function(c){for(;;)switch(c.prev=c.next){case 0:return(i=fn(this,Es)[Es])==null||i.abort(),o=new AbortController,fn(this,Es)[Es]=o,a=n(function(){o.abort(),t.clearSelection()},"cancelRequest"),c.prev=4,this.plugin.uppy.on("dashboard:close-panel",a),this.plugin.uppy.on("cancel-all",a),c.next=9,e(o.signal);case 9:return c.prev=9,this.plugin.uppy.off("dashboard:close-panel",a),this.plugin.uppy.off("cancel-all",a),fn(this,Es)[Es]=void 0,c.finish(9);case 14:case"end":return c.stop()}},"_callee11$"),r,this,[[4,,9,14]])},"_callee11"))),DI.apply(this,arguments)}n(DI,"_withAbort3");function AKe(r){return MI.apply(this,arguments)}n(AKe,"_list2");function MI(){return MI=kt(He().mark(n(function r(e){var t,i,o,a,u,c,l;return He().wrap(n(function(y){for(;;)switch(y.prev=y.next){case 0:return t=e.requestPath,i=e.absDirPath,o=e.signal,y.next=3,this.provider.list(t,{signal:o});case 3:return a=y.sent,u=a.username,c=a.nextPagePath,l=a.items,this.username=u||this.username,y.abrupt("return",{items:l.map(function(m){return au(au({},m),{},{absDirPath:i})}),nextPagePath:c});case 9:case"end":return y.stop()}},"_callee12$"),r,this)},"_callee12"))),MI.apply(this,arguments)}n(MI,"_list3");function IKe(r){return UI.apply(this,arguments)}n(IKe,"_listFilesAndFolders2");function UI(){return UI=kt(He().mark(n(function r(e){var t,i,o,a,u,c,l,d;return He().wrap(n(function(m){for(;;)switch(m.prev=m.next){case 0:return t=e.breadcrumbs,i=e.signal,o=TKe(t),m.next=4,fn(this,dv)[dv]({requestPath:this.nextPagePath,absDirPath:o,signal:i});case 4:return a=m.sent,u=a.items,c=a.nextPagePath,this.nextPagePath=c,l=[],d=[],u.forEach(function(b){b.isFolder?d.push(b):l.push(b)}),m.abrupt("return",{files:l,folders:d});case 12:case"end":return m.stop()}},"_callee13$"),r,this)},"_callee13"))),UI.apply(this,arguments)}n(UI,"_listFilesAndFolders3");function qKe(r){return BI.apply(this,arguments)}n(qKe,"_recursivelyListAllFiles2");function BI(){return BI=kt(He().mark(n(function r(e){var t=this,i,o,a,u,c,l,d,y,m,b,w;return He().wrap(n(function(P){for(;;)switch(P.prev=P.next){case 0:i=e.requestPath,o=e.absDirPath,a=e.relDirPath,u=e.queue,c=e.onFiles,l=e.signal,d=i;case 2:if(!d){P.next=15;break}return P.next=5,fn(this,dv)[dv]({requestPath:d,absDirPath:o,signal:l});case 5:return y=P.sent,d=y.nextPagePath,m=y.items.filter(function(R){return!R.isFolder}),b=y.items.filter(function(R){return R.isFolder}),c(m),w=b.map(function(){var R=kt(He().mark(n(function I(T){return He().wrap(n(function(k){for(;;)switch(k.prev=k.next){case 0:return k.abrupt("return",u.add(kt(He().mark(n(function U(){return He().wrap(n(function(H){for(;;)switch(H.prev=H.next){case 0:return H.abrupt("return",fn(t,pv)[pv]({requestPath:T.requestPath,absDirPath:xI(o,T.name),relDirPath:xI(a,T.name),queue:u,onFiles:c,signal:l}));case 1:case"end":return H.stop()}},"_callee14$"),U)},"_callee14")))));case 1:case"end":return k.stop()}},"_callee15$"),I)},"_callee15")));return function(I){return R.apply(this,arguments)}}()),P.next=13,Promise.all(w);case 13:P.next=2;break;case 15:case"end":return P.stop()}},"_callee16$"),r,this)},"_callee16"))),BI.apply(this,arguments)}n(BI,"_recursivelyListAllFiles3");pt.VERSION=EKe.version;function Rs(r){"@babel/helpers - typeof";return Rs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rs(r)}n(Rs,"_typeof");function yv(){"use strict";yv=n(function(){return r},"_regeneratorRuntime");var r={},e=Object.prototype,t=e.hasOwnProperty,i=Object.defineProperty||function(p,s,f){p[s]=f.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(p,s,f){return Object.defineProperty(p,s,{value:f,enumerable:!0,configurable:!0,writable:!0}),p[s]}n(l,"define");try{l({},"")}catch(p){l=n(function(f,v,g){return f[v]=g},"define")}function d(p,s,f,v){var g=s&&s.prototype instanceof b?s:b,h=Object.create(g.prototype),O=new V(v||[]);return i(h,"_invoke",{value:U(p,f,O)}),h}n(d,"wrap");function y(p,s,f){try{return{type:"normal",arg:p.call(s,f)}}catch(v){return{type:"throw",arg:v}}}n(y,"tryCatch"),r.wrap=d;var m={};function b(){}n(b,"Generator");function w(){}n(w,"GeneratorFunction");function S(){}n(S,"GeneratorFunctionPrototype");var P={};l(P,a,function(){return this});var R=Object.getPrototypeOf,I=R&&R(R(W([])));I&&I!==e&&t.call(I,a)&&(P=I);var T=S.prototype=b.prototype=Object.create(P);function F(p){["next","throw","return"].forEach(function(s){l(p,s,function(f){return this._invoke(s,f)})})}n(F,"defineIteratorMethods");function k(p,s){function f(g,h,O,E){var A=y(p[g],p,h);if(A.type!=="throw"){var C=A.arg,N=C.value;return N&&Rs(N)=="object"&&t.call(N,"__await")?s.resolve(N.__await).then(function(M){f("next",M,O,E)},function(M){f("throw",M,O,E)}):s.resolve(N).then(function(M){C.value=M,O(C)},function(M){return f("throw",M,O,E)})}E(A.arg)}n(f,"invoke");var v;i(this,"_invoke",{value:n(function(h,O){function E(){return new s(function(A,C){f(h,O,A,C)})}return n(E,"callInvokeWithMethodAndArg"),v=v?v.then(E,E):E()},"value")})}n(k,"AsyncIterator");function U(p,s,f){var v="suspendedStart";return function(g,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(g==="throw")throw h;return Y()}for(f.method=g,f.arg=h;;){var O=f.delegate;if(O){var E=D(O,f);if(E){if(E===m)continue;return E}}if(f.method==="next")f.sent=f._sent=f.arg;else if(f.method==="throw"){if(v==="suspendedStart")throw v="completed",f.arg;f.dispatchException(f.arg)}else f.method==="return"&&f.abrupt("return",f.arg);v="executing";var A=y(p,s,f);if(A.type==="normal"){if(v=f.done?"completed":"suspendedYield",A.arg===m)continue;return{value:A.arg,done:f.done}}A.type==="throw"&&(v="completed",f.method="throw",f.arg=A.arg)}}}n(U,"makeInvokeMethod");function D(p,s){var f=s.method,v=p.iterator[f];if(v===void 0)return s.delegate=null,f==="throw"&&p.iterator.return&&(s.method="return",s.arg=void 0,D(p,s),s.method==="throw")||f!=="return"&&(s.method="throw",s.arg=new TypeError("The iterator does not provide a '"+f+"' method")),m;var g=y(v,p.iterator,s.arg);if(g.type==="throw")return s.method="throw",s.arg=g.arg,s.delegate=null,m;var h=g.arg;return h?h.done?(s[p.resultName]=h.value,s.next=p.nextLoc,s.method!=="return"&&(s.method="next",s.arg=void 0),s.delegate=null,m):h:(s.method="throw",s.arg=new TypeError("iterator result is not an object"),s.delegate=null,m)}n(D,"maybeInvokeDelegate");function H(p){var s={tryLoc:p[0]};1 in p&&(s.catchLoc=p[1]),2 in p&&(s.finallyLoc=p[2],s.afterLoc=p[3]),this.tryEntries.push(s)}n(H,"pushTryEntry");function $(p){var s=p.completion||{};s.type="normal",delete s.arg,p.completion=s}n($,"resetTryEntry");function V(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(H,this),this.reset(!0)}n(V,"Context");function W(p){if(p){var s=p[a];if(s)return s.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var f=-1,v=n(function g(){for(;++f<p.length;)if(t.call(p,f))return g.value=p[f],g.done=!1,g;return g.value=void 0,g.done=!0,g},"next");return v.next=v}}return{next:Y}}n(W,"values");function Y(){return{value:void 0,done:!0}}return n(Y,"doneResult"),w.prototype=S,i(T,"constructor",{value:S,configurable:!0}),i(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),r.isGeneratorFunction=function(p){var s=typeof p=="function"&&p.constructor;return!!s&&(s===w||(s.displayName||s.name)==="GeneratorFunction")},r.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,S):(p.__proto__=S,l(p,c,"GeneratorFunction")),p.prototype=Object.create(T),p},r.awrap=function(p){return{__await:p}},F(k.prototype),l(k.prototype,u,function(){return this}),r.AsyncIterator=k,r.async=function(p,s,f,v,g){g===void 0&&(g=Promise);var h=new k(d(p,s,f,v),g);return r.isGeneratorFunction(s)?h:h.next().then(function(O){return O.done?O.value:h.next()})},F(T),l(T,c,"Generator"),l(T,a,function(){return this}),l(T,"toString",function(){return"[object Generator]"}),r.keys=function(p){var s=Object(p),f=[];for(var v in s)f.push(v);return f.reverse(),n(function g(){for(;f.length;){var h=f.pop();if(h in s)return g.value=h,g.done=!1,g}return g.done=!0,g},"next")},r.values=W,V.prototype={constructor:V,reset:n(function(s){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach($),!s)for(var f in this)f.charAt(0)==="t"&&t.call(this,f)&&!isNaN(+f.slice(1))&&(this[f]=void 0)},"reset"),stop:n(function(){this.done=!0;var s=this.tryEntries[0].completion;if(s.type==="throw")throw s.arg;return this.rval},"stop"),dispatchException:n(function(s){if(this.done)throw s;var f=this;function v(C,N){return O.type="throw",O.arg=s,f.next=C,N&&(f.method="next",f.arg=void 0),!!N}n(v,"handle");for(var g=this.tryEntries.length-1;g>=0;--g){var h=this.tryEntries[g],O=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var E=t.call(h,"catchLoc"),A=t.call(h,"finallyLoc");if(E&&A){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(E){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!A)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},"dispatchException"),abrupt:n(function(s,f){for(var v=this.tryEntries.length-1;v>=0;--v){var g=this.tryEntries[v];if(g.tryLoc<=this.prev&&t.call(g,"finallyLoc")&&this.prev<g.finallyLoc){var h=g;break}}h&&(s==="break"||s==="continue")&&h.tryLoc<=f&&f<=h.finallyLoc&&(h=null);var O=h?h.completion:{};return O.type=s,O.arg=f,h?(this.method="next",this.next=h.finallyLoc,m):this.complete(O)},"abrupt"),complete:n(function(s,f){if(s.type==="throw")throw s.arg;return s.type==="break"||s.type==="continue"?this.next=s.arg:s.type==="return"?(this.rval=this.arg=s.arg,this.method="return",this.next="end"):s.type==="normal"&&f&&(this.next=f),m},"complete"),finish:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.finallyLoc===s)return this.complete(v.completion,v.afterLoc),$(v),m}},"finish"),catch:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.tryLoc===s){var g=v.completion;if(g.type==="throw"){var h=g.arg;$(v)}return h}}throw new Error("illegal catch attempt")},"_catch"),delegateYield:n(function(s,f,v){return this.delegate={iterator:W(s),resultName:f,nextLoc:v},this.method==="next"&&(this.arg=void 0),m},"delegateYield")},r}n(yv,"_regeneratorRuntime");function zK(r,e,t,i,o,a,u){try{var c=r[a](u),l=c.value}catch(d){t(d);return}c.done?e(l):Promise.resolve(l).then(i,o)}n(zK,"asyncGeneratorStep");function HK(r){return function(){var e=this,t=arguments;return new Promise(function(i,o){var a=r.apply(e,t);function u(l){zK(a,i,o,u,c,"next",l)}n(u,"_next");function c(l){zK(a,i,o,u,c,"throw",l)}n(c,"_throw"),u(void 0)})}}n(HK,"_asyncToGenerator");function WK(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(WK,"ownKeys");function c0(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?WK(Object(t),!0).forEach(function(i){kKe(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):WK(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(c0,"_objectSpread");function kKe(r,e,t){return e=YK(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(kKe,"_defineProperty");function jKe(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(jKe,"_classCallCheck");function VK(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,YK(i.key),i)}}n(VK,"_defineProperties");function FKe(r,e,t){return e&&VK(r.prototype,e),t&&VK(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(FKe,"_createClass");function YK(r){var e=CKe(r,"string");return Rs(e)==="symbol"?e:String(e)}n(YK,"_toPropertyKey");function CKe(r,e){if(Rs(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Rs(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(CKe,"_toPrimitive");function LKe(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&$I(r,e)}n(LKe,"_inherits");function $I(r,e){return $I=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),$I(r,e)}n($I,"_setPrototypeOf");function NKe(r){var e=DKe();return n(function(){var i=f0(r),o;if(e){var a=f0(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return xKe(this,o)},"_createSuperInternal")}n(NKe,"_createSuper");function xKe(r,e){if(e&&(Rs(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ou(r)}n(xKe,"_possibleConstructorReturn");function ou(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(ou,"_assertThisInitialized");function DKe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(DKe,"_isNativeReflectConstruct");function f0(r){return f0=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),f0(r)}n(f0,"_getPrototypeOf");function KK(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}n(KK,"_classPrivateFieldLooseBase");var MKe=0;function UKe(r){return"__private_"+MKe+++"_"+r}n(UKe,"_classPrivateFieldLooseKey");var BKe={version:"3.8.0"},vv=UKe("updateFilesAndInputMode"),rf=function(r){LKe(t,r);var e=NKe(t);function t(i,o){var a;jKe(this,t),a=e.call(this,i,o),Object.defineProperty(ou(a),vv,{value:$Ke});var u={viewType:"grid",showTitles:!1,showFilter:!1,showBreadcrumbs:!1};return a.opts=c0(c0({},u),o),a.search=a.search.bind(ou(a)),a.clearSearch=a.clearSearch.bind(ou(a)),a.resetPluginState=a.resetPluginState.bind(ou(a)),a.handleScroll=a.handleScroll.bind(ou(a)),a.donePicking=a.donePicking.bind(ou(a)),a.render=a.render.bind(ou(a)),a.defaultState={isInputMode:!0,files:[],folders:[],breadcrumbs:[],filterInput:"",currentSelection:[],searchTerm:null},a.plugin.setPluginState(a.defaultState),a.registerRequestClient(),a}return n(t,"SearchProviderView"),FKe(t,[{key:"tearDown",value:n(function(){},"tearDown")},{key:"resetPluginState",value:n(function(){this.plugin.setPluginState(this.defaultState)},"resetPluginState")},{key:"search",value:function(){var i=HK(yv().mark(n(function a(u){var c,l,d;return yv().wrap(n(function(m){for(;;)switch(m.prev=m.next){case 0:if(c=this.plugin.getPluginState(),l=c.searchTerm,!(u&&u===l)){m.next=3;break}return m.abrupt("return");case 3:return this.setLoading(!0),m.prev=4,m.next=7,this.provider.search(u);case 7:d=m.sent,KK(this,vv)[vv](d,[]),m.next=14;break;case 11:m.prev=11,m.t0=m.catch(4),this.handleError(m.t0);case 14:return m.prev=14,this.setLoading(!1),m.finish(14);case 17:case"end":return m.stop()}},"_callee$"),a,this,[[4,11,14,17]])},"_callee")));function o(a){return i.apply(this,arguments)}return n(o,"search"),o}()},{key:"clearSearch",value:n(function(){this.plugin.setPluginState({currentSelection:[],files:[],searchTerm:null})},"clearSearch")},{key:"handleScroll",value:function(){var i=HK(yv().mark(n(function a(u){var c,l,d,y,m;return yv().wrap(n(function(w){for(;;)switch(w.prev=w.next){case 0:if(c=this.nextPageQuery||null,!(this.shouldHandleScroll(u)&&c)){w.next=17;break}return this.isHandlingScroll=!0,w.prev=3,l=this.plugin.getPluginState(),d=l.files,y=l.searchTerm,w.next=7,this.provider.search(y,c);case 7:m=w.sent,KK(this,vv)[vv](m,d),w.next=14;break;case 11:w.prev=11,w.t0=w.catch(3),this.handleError(w.t0);case 14:return w.prev=14,this.isHandlingScroll=!1,w.finish(14);case 17:case"end":return w.stop()}},"_callee2$"),a,this,[[3,11,14,17]])},"_callee2")));function o(a){return i.apply(this,arguments)}return n(o,"handleScroll"),o}()},{key:"donePicking",value:n(function(){var o=this,a=this.plugin.getPluginState(),u=a.currentSelection;this.plugin.uppy.log("Adding remote search provider files"),this.plugin.uppy.addFiles(u.map(function(c){return o.getTagFile(c)})),this.resetPluginState()},"donePicking")},{key:"render",value:n(function(o,a){var u=this;a===void 0&&(a={});var c=this.plugin.getPluginState(),l=c.didFirstRender,d=c.isInputMode,y=c.searchTerm,m=this.plugin.uppy.i18n;l||this.preFirstRender();var b=c0(c0({},this.opts),a),w=this.plugin.getPluginState(),S=w.files,P=w.folders,R=w.filterInput,I=w.loading,T=w.currentSelection,F=this.isChecked,k=this.toggleCheckbox,U=this.filterItems,D=this.recordShiftKeyPress,H=R!=="",$={isChecked:F,toggleCheckbox:k,recordShiftKeyPress:D,currentSelection:T,files:H?U(S):S,folders:H?U(P):P,handleScroll:this.handleScroll,done:this.donePicking,cancel:this.cancelPicking,showSearchFilter:b.showFilter,search:this.search,clearSearch:this.clearSearch,searchTerm:y,searchOnInput:!1,searchInputLabel:m("search"),clearSearchLabel:m("resetSearch"),noResultsLabel:m("noSearchResults"),title:this.plugin.title,viewType:b.viewType,showTitles:b.showTitles,showFilter:b.showFilter,isLoading:I,showBreadcrumbs:b.showBreadcrumbs,pluginIcon:this.plugin.icon,i18n:m,uppyFiles:this.plugin.uppy.getFiles(),validateRestrictions:n(function(){var W;return(W=u.plugin.uppy).validateRestrictions.apply(W,arguments)},"validateRestrictions")};return d?_(Jc,{onUnmount:this.resetPluginState},_("div",{className:"uppy-SearchProvider"},_(sv,{search:this.search,clearSelection:this.clearSelection,inputLabel:m("enterTextToSearch"),buttonLabel:m("searchImages"),inputClassName:"uppy-c-textInput uppy-SearchProvider-input",buttonCSSClassName:"uppy-SearchProvider-searchButton",showButton:!0}))):_(Jc,{onUnmount:this.resetPluginState},_(o0,$))},"render")}]),t}(s0);function $Ke(r,e){this.nextPageQuery=r.nextPageQuery,r.items.forEach(function(t){e.push(t)}),this.plugin.setPluginState({currentSelection:[],isInputMode:!1,files:e,searchTerm:r.searchedFor})}n($Ke,"_updateFilesAndInputMode2");rf.VERSION=BKe.version;function gv(r){"@babel/helpers - typeof";return gv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gv(r)}n(gv,"_typeof");function GKe(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(GKe,"_classCallCheck");function XK(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,HKe(i.key),i)}}n(XK,"_defineProperties");function zKe(r,e,t){return e&&XK(r.prototype,e),t&&XK(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(zKe,"_createClass");function HKe(r){var e=WKe(r,"string");return gv(e)==="symbol"?e:String(e)}n(HKe,"_toPropertyKey");function WKe(r,e){if(gv(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(gv(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(WKe,"_toPrimitive");var QK;function ia(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}n(ia,"_classPrivateFieldLooseBase");var VKe=0;function zI(r){return"__private_"+VKe+++"_"+r}n(zI,"_classPrivateFieldLooseKey");var KKe={version:"3.0.5"},YKe="uppy/STATE_UPDATE",XKe=n(function(e){return function(t){return t.uppy[e]}},"defaultSelector");function QKe(r,e){var t=Object.keys(e),i={};return t.forEach(function(o){r[o]!==e[o]&&(i[o]=e[o])}),i}n(QKe,"getPatch");var Ya=zI("id"),mv=zI("selector"),Xa=zI("store");QK=Symbol.for("uppy test: get id");var JK=function(r){function e(t){GKe(this,e),Object.defineProperty(this,Ya,{writable:!0,value:void 0}),Object.defineProperty(this,mv,{writable:!0,value:void 0}),Object.defineProperty(this,Xa,{writable:!0,value:void 0}),ia(this,Xa)[Xa]=t.store,ia(this,Ya)[Ya]=t.id||It(),ia(this,mv)[mv]=t.selector||XKe(ia(this,Ya)[Ya]),this.setState({})}return n(e,"ReduxStore"),zKe(e,[{key:"setState",value:n(function(i){ia(this,Xa)[Xa].dispatch({type:YKe,id:ia(this,Ya)[Ya],payload:i})},"setState")},{key:"getState",value:n(function(){return ia(this,mv)[mv](ia(this,Xa)[Xa].getState())},"getState")},{key:"subscribe",value:n(function(i){var o=this,a=this.getState();return ia(this,Xa)[Xa].subscribe(function(){var u=o.getState();if(a!==u){var c=QKe(a,u);i(a,u,c),a=u}})},"subscribe")},{key:r,value:n(function(){return ia(this,Ya)[Ya]},"value")}]),e}(QK);JK.VERSION=KKe.version;var ZK=JK;function p0(r,e,t,i){return t===0||r===e?r:i===0?e:r+(e-r)*Math.pow(2,-i/t)}n(p0,"emaFilter");var Hr={STATE_ERROR:"error",STATE_WAITING:"waiting",STATE_PREPROCESSING:"preprocessing",STATE_UPLOADING:"uploading",STATE_POSTPROCESSING:"postprocessing",STATE_COMPLETE:"complete"};var QI=Ce(qn(),1);function bv(r){for(var e=[],t,i,o=0,a=Object.values(r);o<a.length;o++){var u=a[o].progress,c=u.preprocess,l=u.postprocess;if(i==null&&(c||l)){var d=c||l;t=d.mode,i=d.message}(c==null?void 0:c.mode)==="determinate"&&e.push(c.value),(l==null?void 0:l.mode)==="determinate"&&e.push(l.value)}var y=e.reduce(function(m,b){return m+b/e.length},0);return{mode:t,message:i,value:y}}n(bv,"calculateProcessingProgress");var KI=Ce(qn(),1),VI=Ce(gw(),1);function HI(r){var e=Math.floor(r/3600)%24,t=Math.floor(r/60)%60,i=Math.floor(r%60);return{hours:e,minutes:t,seconds:i}}n(HI,"secondsToTime");function WI(r){var e=HI(r),t=e.hours===0?"":"".concat(e.hours,"h"),i=e.minutes===0?"":"".concat(e.hours===0?e.minutes:" ".concat(e.minutes.toString(10).padStart(2,"0")),"m"),o=e.hours!==0?"":"".concat(e.minutes===0?e.seconds:" ".concat(e.seconds.toString(10).padStart(2,"0")),"s");return"".concat(t).concat(i).concat(o)}n(WI,"prettyETA");var JKe="\xB7",eY=n(function(){return" ".concat(JKe," ")},"renderDot");function rY(r){var e=r.newFiles,t=r.isUploadStarted,i=r.recoveredState,o=r.i18n,a=r.uploadState,u=r.isSomeGhost,c=r.startUpload,l=(0,KI.default)("uppy-u-reset","uppy-c-btn","uppy-StatusBar-actionBtn","uppy-StatusBar-actionBtn--upload",{"uppy-c-btn-primary":a===Hr.STATE_WAITING},{"uppy-StatusBar-actionBtn--disabled":u}),d=e&&t&&!i?o("uploadXNewFiles",{smart_count:e}):o("uploadXFiles",{smart_count:e});return _("button",{type:"button",className:l,"aria-label":o("uploadXFiles",{smart_count:e}),onClick:c,disabled:u,"data-uppy-super-focusable":!0},d)}n(rY,"UploadBtn");function tY(r){var e=r.i18n,t=r.uppy;return _("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-StatusBar-actionBtn uppy-StatusBar-actionBtn--retry","aria-label":e("retryUpload"),onClick:n(function(){return t.retryAll().catch(function(){})},"onClick"),"data-uppy-super-focusable":!0,"data-cy":"retry"},_("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"8",height:"10",viewBox:"0 0 8 10"},_("path",{d:"M4 2.408a2.75 2.75 0 1 0 2.75 2.75.626.626 0 0 1 1.25.018v.023a4 4 0 1 1-4-4.041V.25a.25.25 0 0 1 .389-.208l2.299 1.533a.25.25 0 0 1 0 .416l-2.3 1.533A.25.25 0 0 1 4 3.316v-.908z"})),e("retry"))}n(tY,"RetryBtn");function nY(r){var e=r.i18n,t=r.uppy;return _("button",{type:"button",className:"uppy-u-reset uppy-StatusBar-actionCircleBtn",title:e("cancel"),"aria-label":e("cancel"),onClick:n(function(){return t.cancelAll()},"onClick"),"data-cy":"cancel","data-uppy-super-focusable":!0},_("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"16",height:"16",viewBox:"0 0 16 16"},_("g",{fill:"none",fillRule:"evenodd"},_("circle",{fill:"#888",cx:"8",cy:"8",r:"8"}),_("path",{fill:"#FFF",d:"M9.283 8l2.567 2.567-1.283 1.283L8 9.283 5.433 11.85 4.15 10.567 6.717 8 4.15 5.433 5.433 4.15 8 6.717l2.567-2.567 1.283 1.283z"}))))}n(nY,"CancelBtn");function iY(r){var e=r.isAllPaused,t=r.i18n,i=r.isAllComplete,o=r.resumableUploads,a=r.uppy,u=t(e?"resume":"pause");function c(){return i?null:o?e?a.resumeAll():a.pauseAll():a.cancelAll()}return n(c,"togglePauseResume"),_("button",{title:u,"aria-label":u,className:"uppy-u-reset uppy-StatusBar-actionCircleBtn",type:"button",onClick:c,"data-cy":"togglePauseResume","data-uppy-super-focusable":!0},_("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"16",height:"16",viewBox:"0 0 16 16"},_("g",{fill:"none",fillRule:"evenodd"},_("circle",{fill:"#888",cx:"8",cy:"8",r:"8"}),_("path",{fill:"#FFF",d:e?"M6 4.25L11.5 8 6 11.75z":"M5 4.5h2v7H5v-7zm4 0h2v7H9v-7z"}))))}n(iY,"PauseResumeButton");function aY(r){var e=r.i18n,t=r.doneButtonHandler;return _("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-StatusBar-actionBtn uppy-StatusBar-actionBtn--done",onClick:t,"data-uppy-super-focusable":!0},e("done"))}n(aY,"DoneBtn");function oY(){return _("svg",{className:"uppy-StatusBar-spinner","aria-hidden":"true",focusable:"false",width:"14",height:"14"},_("path",{d:"M13.983 6.547c-.12-2.509-1.64-4.893-3.939-5.936-2.48-1.127-5.488-.656-7.556 1.094C.524 3.367-.398 6.048.162 8.562c.556 2.495 2.46 4.52 4.94 5.183 2.932.784 5.61-.602 7.256-3.015-1.493 1.993-3.745 3.309-6.298 2.868-2.514-.434-4.578-2.349-5.153-4.84a6.226 6.226 0 0 1 2.98-6.778C6.34.586 9.74 1.1 11.373 3.493c.407.596.693 1.282.842 1.988.127.598.073 1.197.161 1.794.078.525.543 1.257 1.15.864.525-.341.49-1.05.456-1.592-.007-.15.02.3 0 0",fillRule:"evenodd"}))}n(oY,"LoadingSpinner");function uY(r){var e=r.progress,t=e.value,i=e.mode,o=e.message,a=Math.round(t*100),u="\xB7";return _("div",{className:"uppy-StatusBar-content"},_(oY,null),i==="determinate"?"".concat(a,"% ").concat(u," "):"",o)}n(uY,"ProgressBarProcessing");function ZKe(r){var e=r.numUploads,t=r.complete,i=r.totalUploadedSize,o=r.totalSize,a=r.totalETA,u=r.i18n,c=e>1;return _("div",{className:"uppy-StatusBar-statusSecondary"},c&&u("filesUploadedOfTotal",{complete:t,smart_count:e}),_("span",{className:"uppy-StatusBar-additionalInfo"},c&&eY(),u("dataUploadedOfTotal",{complete:(0,VI.default)(i),total:(0,VI.default)(o)}),eY(),u("xTimeLeft",{time:WI(a)})))}n(ZKe,"ProgressDetails");function sY(r){var e=r.i18n,t=r.complete,i=r.numUploads;return _("div",{className:"uppy-StatusBar-statusSecondary"},e("filesUploadedOfTotal",{complete:t,smart_count:i}))}n(sY,"FileUploadCount");function eYe(r){var e=r.i18n,t=r.newFiles,i=r.startUpload,o=(0,KI.default)("uppy-u-reset","uppy-c-btn","uppy-StatusBar-actionBtn","uppy-StatusBar-actionBtn--uploadNewlyAdded");return _("div",{className:"uppy-StatusBar-statusSecondary"},_("div",{className:"uppy-StatusBar-statusSecondaryHint"},e("xMoreFilesAdded",{smart_count:t})),_("button",{type:"button",className:o,"aria-label":e("uploadXFiles",{smart_count:t}),onClick:i},e("upload")))}n(eYe,"UploadNewlyAddedFiles");function lY(r){var e=r.i18n,t=r.supportsUploadProgress,i=r.totalProgress,o=r.showProgressDetails,a=r.isUploadStarted,u=r.isAllComplete,c=r.isAllPaused,l=r.newFiles,d=r.numUploads,y=r.complete,m=r.totalUploadedSize,b=r.totalSize,w=r.totalETA,S=r.startUpload,P=l&&a;if(!a||u)return null;var R=e(c?"paused":"uploading");function I(){return!c&&!P&&o?t?_(ZKe,{numUploads:d,complete:y,totalUploadedSize:m,totalSize:b,totalETA:w,i18n:e}):_(sY,{i18n:e,complete:y,numUploads:d}):null}return n(I,"renderProgressDetails"),_("div",{className:"uppy-StatusBar-content","aria-label":R,title:R},c?null:_(oY,null),_("div",{className:"uppy-StatusBar-status"},_("div",{className:"uppy-StatusBar-statusPrimary"},t?"".concat(R,": ").concat(i,"%"):R),I(),P?_(eYe,{i18n:e,newFiles:l,startUpload:S}):null))}n(lY,"ProgressBarUploading");function cY(r){var e=r.i18n;return _("div",{className:"uppy-StatusBar-content",role:"status",title:e("complete")},_("div",{className:"uppy-StatusBar-status"},_("div",{className:"uppy-StatusBar-statusPrimary"},_("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-StatusBar-statusIndicator uppy-c-icon",width:"15",height:"11",viewBox:"0 0 15 11"},_("path",{d:"M.414 5.843L1.627 4.63l3.472 3.472L13.202 0l1.212 1.213L5.1 10.528z"})),e("complete"))))}n(cY,"ProgressBarComplete");function fY(r){var e=r.error,t=r.i18n,i=r.complete,o=r.numUploads;function a(){var u="".concat(t("uploadFailed")," \n\n ").concat(e);alert(u)}return n(a,"displayErrorAlert"),_("div",{className:"uppy-StatusBar-content",title:t("uploadFailed")},_("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-StatusBar-statusIndicator uppy-c-icon",width:"11",height:"11",viewBox:"0 0 11 11"},_("path",{d:"M4.278 5.5L0 1.222 1.222 0 5.5 4.278 9.778 0 11 1.222 6.722 5.5 11 9.778 9.778 11 5.5 6.722 1.222 11 0 9.778z"})),_("div",{className:"uppy-StatusBar-status"},_("div",{className:"uppy-StatusBar-statusPrimary"},t("uploadFailed"),_("button",{className:"uppy-u-reset uppy-StatusBar-details","aria-label":t("showErrorDetails"),"data-microtip-position":"top-right","data-microtip-size":"medium",onClick:a,type:"button"},"?")),_(sY,{i18n:t,complete:i,numUploads:o})))}n(fY,"ProgressBarError");var pY=Hr.STATE_ERROR,dY=Hr.STATE_WAITING,YI=Hr.STATE_PREPROCESSING,d0=Hr.STATE_UPLOADING,XI=Hr.STATE_POSTPROCESSING,h0=Hr.STATE_COMPLETE;function JI(r){var e=r.newFiles,t=r.allowNewUpload,i=r.isUploadInProgress,o=r.isAllPaused,a=r.resumableUploads,u=r.error,c=r.hideUploadButton,l=r.hidePauseResumeButton,d=r.hideCancelButton,y=r.hideRetryButton,m=r.recoveredState,b=r.uploadState,w=r.totalProgress,S=r.files,P=r.supportsUploadProgress,R=r.hideAfterFinish,I=r.isSomeGhost,T=r.doneButtonHandler,F=r.isUploadStarted,k=r.i18n,U=r.startUpload,D=r.uppy,H=r.isAllComplete,$=r.showProgressDetails,V=r.numUploads,W=r.complete,Y=r.totalSize,p=r.totalETA,s=r.totalUploadedSize;function f(){switch(b){case XI:case YI:{var Oe=bv(S);return Oe.mode==="determinate"?Oe.value*100:w}case pY:return null;case d0:return P?w:null;default:return w}}n(f,"getProgressValue");function v(){switch(b){case XI:case YI:{var Oe=bv(S),Me=Oe.mode;return Me==="indeterminate"}case d0:return!P;default:return!1}}n(v,"getIsIndeterminate");function g(){if(m)return!1;switch(b){case dY:return c||e===0;case h0:return R;default:return!1}}n(g,"getIsHidden");var h=f(),O=g(),E=h!=null?h:100,A=!u&&e&&!i&&!o&&t&&!c,C=!d&&b!==dY&&b!==h0,N=a&&!l&&b===d0,M=u&&!H&&!y,Te=T&&b===h0,be=(0,QI.default)("uppy-StatusBar-progress",{"is-indeterminate":v()}),_e=(0,QI.default)("uppy-StatusBar","is-".concat(b),{"has-ghosts":I});return _("div",{className:_e,"aria-hidden":O},_("div",{className:be,style:{width:"".concat(E,"%")},role:"progressbar","aria-label":"".concat(E,"%"),"aria-valuetext":"".concat(E,"%"),"aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":h}),function(){switch(b){case YI:case XI:return _(uY,{progress:bv(S)});case h0:return _(cY,{i18n:k});case pY:return _(fY,{error:u,i18n:k,numUploads:V,complete:W});case d0:return _(lY,{i18n:k,supportsUploadProgress:P,totalProgress:w,showProgressDetails:$,isUploadStarted:F,isAllComplete:H,isAllPaused:o,newFiles:e,numUploads:V,complete:W,totalUploadedSize:s,totalSize:Y,totalETA:p,startUpload:U});default:return null}}(),_("div",{className:"uppy-StatusBar-actions"},m||A?_(rY,{newFiles:e,isUploadStarted:F,recoveredState:m,i18n:k,isSomeGhost:I,startUpload:U,uploadState:b}):null,M?_(tY,{i18n:k,uppy:D}):null,N?_(iY,{isAllPaused:o,i18n:k,isAllComplete:H,resumableUploads:a,uppy:D}):null,C?_(nY,{i18n:k,uppy:D}):null,Te?_(aY,{i18n:k,doneButtonHandler:T}):null))}n(JI,"StatusBar");var hY={strings:{uploading:"Uploading",complete:"Complete",uploadFailed:"Upload failed",paused:"Paused",retry:"Retry",cancel:"Cancel",pause:"Pause",resume:"Resume",done:"Done",filesUploadedOfTotal:{0:"%{complete} of %{smart_count} file uploaded",1:"%{complete} of %{smart_count} files uploaded"},dataUploadedOfTotal:"%{complete} of %{total}",xTimeLeft:"%{time} left",uploadXFiles:{0:"Upload %{smart_count} file",1:"Upload %{smart_count} files"},uploadXNewFiles:{0:"Upload +%{smart_count} file",1:"Upload +%{smart_count} files"},upload:"Upload",retryUpload:"Retry upload",xMoreFilesAdded:{0:"%{smart_count} more file added",1:"%{smart_count} more files added"},showErrorDetails:"Show error details"}};function tf(r){"@babel/helpers - typeof";return tf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tf(r)}n(tf,"_typeof");function vY(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(vY,"ownKeys");function yY(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?vY(Object(t),!0).forEach(function(i){rYe(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):vY(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(yY,"_objectSpread");function rYe(r,e,t){return e=gY(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(rYe,"_defineProperty");function tYe(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(tYe,"_classCallCheck");function mY(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,gY(i.key),i)}}n(mY,"_defineProperties");function nYe(r,e,t){return e&&mY(r.prototype,e),t&&mY(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(nYe,"_createClass");function gY(r){var e=iYe(r,"string");return tf(e)==="symbol"?e:String(e)}n(gY,"_toPropertyKey");function iYe(r,e){if(tf(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(tf(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(iYe,"_toPrimitive");function aYe(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&eq(r,e)}n(aYe,"_inherits");function eq(r,e){return eq=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),eq(r,e)}n(eq,"_setPrototypeOf");function oYe(r){var e=sYe();return n(function(){var i=v0(r),o;if(e){var a=v0(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return uYe(this,o)},"_createSuperInternal")}n(oYe,"_createSuper");function uYe(r,e){if(e&&(tf(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pn(r)}n(uYe,"_possibleConstructorReturn");function pn(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(pn,"_assertThisInitialized");function sYe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(sYe,"_isNativeReflectConstruct");function v0(r){return v0=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),v0(r)}n(v0,"_getPrototypeOf");function Tr(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}n(Tr,"_classPrivateFieldLooseBase");var lYe=0;function nf(r){return"__private_"+lYe+++"_"+r}n(nf,"_classPrivateFieldLooseKey");var cYe={version:"3.2.5"},fYe=2e3,pYe=2e3;function dYe(r,e,t,i){if(r)return Hr.STATE_ERROR;if(e)return Hr.STATE_COMPLETE;if(t)return Hr.STATE_WAITING;for(var o=Hr.STATE_WAITING,a=Object.keys(i),u=0;u<a.length;u++){var c=i[a[u]].progress;if(c.uploadStarted&&!c.uploadComplete)return Hr.STATE_UPLOADING;c.preprocess&&o!==Hr.STATE_UPLOADING&&(o=Hr.STATE_PREPROCESSING),c.postprocess&&o!==Hr.STATE_UPLOADING&&o!==Hr.STATE_PREPROCESSING&&(o=Hr.STATE_POSTPROCESSING)}return o}n(dYe,"getUploadingState");var ii=nf("lastUpdateTime"),Ii=nf("previousUploadedBytes"),Qa=nf("previousSpeed"),kn=nf("previousETA"),ZI=nf("computeSmoothETA"),wv=nf("onUploadStart"),af=function(r){aYe(t,r);var e=oYe(t);function t(i,o){var a;tYe(this,t),a=e.call(this,i,o),Object.defineProperty(pn(a),ZI,{value:hYe}),Object.defineProperty(pn(a),ii,{writable:!0,value:void 0}),Object.defineProperty(pn(a),Ii,{writable:!0,value:void 0}),Object.defineProperty(pn(a),Qa,{writable:!0,value:void 0}),Object.defineProperty(pn(a),kn,{writable:!0,value:void 0}),a.startUpload=function(){return a.uppy.upload().catch(function(){})},Object.defineProperty(pn(a),wv,{writable:!0,value:n(function(){var l=a.uppy.getState(),d=l.recoveredState;if(Tr(pn(a),Qa)[Qa]=null,Tr(pn(a),kn)[kn]=null,d){Tr(pn(a),Ii)[Ii]=Object.values(d.files).reduce(function(y,m){var b=m.progress;return y+b.bytesUploaded},0),a.uppy.emit("restore-confirmed");return}Tr(pn(a),ii)[ii]=performance.now(),Tr(pn(a),Ii)[Ii]=0},"value")}),a.id=a.opts.id||"StatusBar",a.title="StatusBar",a.type="progressindicator",a.defaultLocale=hY;var u={target:"body",hideUploadButton:!1,hideRetryButton:!1,hidePauseResumeButton:!1,hideCancelButton:!1,showProgressDetails:!1,hideAfterFinish:!0,doneButtonHandler:null};return a.opts=yY(yY({},u),o),a.i18nInit(),a.render=a.render.bind(pn(a)),a.install=a.install.bind(pn(a)),a}return n(t,"StatusBar"),nYe(t,[{key:"render",value:n(function(o){var a=o.capabilities,u=o.files,c=o.allowNewUpload,l=o.totalProgress,d=o.error,y=o.recoveredState,m=this.uppy.getObjectOfFilesPerState(),b=m.newFiles,w=m.startedFiles,S=m.completeFiles,P=m.isUploadStarted,R=m.isAllComplete,I=m.isAllErrored,T=m.isAllPaused,F=m.isUploadInProgress,k=m.isSomeGhost,U=y?Object.values(u):b,D=!!a.resumableUploads,H=a.uploadProgress!==!1,$=0,V=0;w.forEach(function(Y){$+=Y.progress.bytesTotal||0,V+=Y.progress.bytesUploaded||0});var W=Tr(this,ZI)[ZI]({uploaded:V,total:$,remaining:$-V});return JI({error:d,uploadState:dYe(d,R,y,o.files||{}),allowNewUpload:c,totalProgress:l,totalSize:$,totalUploadedSize:V,isAllComplete:!1,isAllPaused:T,isAllErrored:I,isUploadStarted:P,isUploadInProgress:F,isSomeGhost:k,recoveredState:y,complete:S.length,newFiles:U.length,numUploads:w.length,totalETA:W,files:u,i18n:this.i18n,uppy:this.uppy,startUpload:this.startUpload,doneButtonHandler:this.opts.doneButtonHandler,resumableUploads:D,supportsUploadProgress:H,showProgressDetails:this.opts.showProgressDetails,hideUploadButton:this.opts.hideUploadButton,hideRetryButton:this.opts.hideRetryButton,hidePauseResumeButton:this.opts.hidePauseResumeButton,hideCancelButton:this.opts.hideCancelButton,hideAfterFinish:this.opts.hideAfterFinish,isTargetDOMEl:this.isTargetDOMEl})},"render")},{key:"onMount",value:n(function(){var o=this.el,a=Rw(o);a||(o.dir="ltr")},"onMount")},{key:"install",value:n(function(){var o=this.opts.target;o&&this.mount(o,this),this.uppy.on("upload",Tr(this,wv)[wv]),Tr(this,ii)[ii]=performance.now(),Tr(this,Ii)[Ii]=this.uppy.getFiles().reduce(function(a,u){return a+u.progress.bytesUploaded},0)},"install")},{key:"uninstall",value:n(function(){this.unmount(),this.uppy.off("upload",Tr(this,wv)[wv])},"uninstall")}]),t}(Ee);function hYe(r){var e,t;if(r.total===0||r.remaining===0)return 0;(t=(e=Tr(this,ii))[ii])!=null||(e[ii]=performance.now());var i=performance.now()-Tr(this,ii)[ii];if(i===0){var o;return Math.round(((o=Tr(this,kn)[kn])!=null?o:0)/100)/10}var a=r.uploaded-Tr(this,Ii)[Ii];if(Tr(this,Ii)[Ii]=r.uploaded,a<=0){var u;return Math.round(((u=Tr(this,kn)[kn])!=null?u:0)/100)/10}var c=a/i,l=Tr(this,Qa)[Qa]==null?c:p0(c,Tr(this,Qa)[Qa],fYe,i);Tr(this,Qa)[Qa]=l;var d=r.remaining/l,y=Math.max(Tr(this,kn)[kn]-i,0),m=Tr(this,kn)[kn]==null?d:p0(d,y,pYe,i);return Tr(this,kn)[kn]=m,Tr(this,ii)[ii]=performance.now(),Math.round(m/100)/10}n(hYe,"_computeSmoothETA2");af.VERSION=cYe.version;function of(r){"@babel/helpers - typeof";return of=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},of(r)}n(of,"_typeof");function vYe(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(vYe,"_classCallCheck");function bY(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,mYe(i.key),i)}}n(bY,"_defineProperties");function yYe(r,e,t){return e&&bY(r.prototype,e),t&&bY(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(yYe,"_createClass");function mYe(r){var e=gYe(r,"string");return of(e)==="symbol"?e:String(e)}n(mYe,"_toPropertyKey");function gYe(r,e){if(of(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(of(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(gYe,"_toPrimitive");function bYe(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&rq(r,e)}n(bYe,"_inherits");function rq(r,e){return rq=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),rq(r,e)}n(rq,"_setPrototypeOf");function wYe(r){var e=PYe();return n(function(){var i=y0(r),o;if(e){var a=y0(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return SYe(this,o)},"_createSuperInternal")}n(wYe,"_createSuper");function SYe(r,e){if(e&&(of(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return OYe(r)}n(SYe,"_possibleConstructorReturn");function OYe(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(OYe,"_assertThisInitialized");function PYe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(PYe,"_isNativeReflectConstruct");function y0(r){return y0=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),y0(r)}n(y0,"_getPrototypeOf");var wY=300,SY=function(r){bYe(t,r);var e=wYe(t);function t(){var i;return vYe(this,t),i=e.apply(this,arguments),i.ref=gW(),i}return n(t,"FadeIn"),yYe(t,[{key:"componentWillEnter",value:n(function(o){this.ref.current.style.opacity="1",this.ref.current.style.transform="none",setTimeout(o,wY)},"componentWillEnter")},{key:"componentWillLeave",value:n(function(o){this.ref.current.style.opacity="0",this.ref.current.style.transform="translateY(350%)",setTimeout(o,wY)},"componentWillLeave")},{key:"render",value:n(function(){var o=this.props.children;return _("div",{className:"uppy-Informer-animated",ref:this.ref},o)},"render")}]),t}(ur);function uf(r){"@babel/helpers - typeof";return uf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},uf(r)}n(uf,"_typeof");var _Ye=["childFactory","transitionLeave","transitionName","transitionAppear","transitionEnter","transitionLeaveTimeout","transitionEnterTimeout","transitionAppearTimeout","component"];function EYe(r,e){return IYe(r)||AYe(r,e)||RYe(r,e)||TYe()}n(EYe,"_slicedToArray");function TYe(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n(TYe,"_nonIterableRest");function RYe(r,e){if(r){if(typeof r=="string")return OY(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return OY(r,e)}}n(RYe,"_unsupportedIterableToArray");function OY(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=r[t];return i}n(OY,"_arrayLikeToArray");function AYe(r,e){var t=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var i,o,a,u,c=[],l=!0,d=!1;try{if(a=(t=t.call(r)).next,e===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(i=a.call(t)).done)&&(c.push(i.value),c.length!==e);l=!0);}catch(y){d=!0,o=y}finally{try{if(!l&&t.return!=null&&(u=t.return(),Object(u)!==u))return}finally{if(d)throw o}}return c}}n(AYe,"_iterableToArrayLimit");function IYe(r){if(Array.isArray(r))return r}n(IYe,"_arrayWithHoles");function qYe(r,e){if(r==null)return{};var t=kYe(r,e),i,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);for(o=0;o<a.length;o++)i=a[o],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(r,i)&&(t[i]=r[i])}return t}n(qYe,"_objectWithoutProperties");function kYe(r,e){if(r==null)return{};var t={},i=Object.keys(r),o,a;for(a=0;a<i.length;a++)o=i[a],!(e.indexOf(o)>=0)&&(t[o]=r[o]);return t}n(kYe,"_objectWithoutPropertiesLoose");function jYe(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(jYe,"_classCallCheck");function PY(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,CYe(i.key),i)}}n(PY,"_defineProperties");function FYe(r,e,t){return e&&PY(r.prototype,e),t&&PY(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(FYe,"_createClass");function CYe(r){var e=LYe(r,"string");return uf(e)==="symbol"?e:String(e)}n(CYe,"_toPropertyKey");function LYe(r,e){if(uf(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(uf(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(LYe,"_toPrimitive");function NYe(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&tq(r,e)}n(NYe,"_inherits");function tq(r,e){return tq=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),tq(r,e)}n(tq,"_setPrototypeOf");function xYe(r){var e=MYe();return n(function(){var i=g0(r),o;if(e){var a=g0(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return DYe(this,o)},"_createSuperInternal")}n(xYe,"_createSuper");function DYe(r,e){if(e&&(uf(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return m0(r)}n(DYe,"_possibleConstructorReturn");function m0(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(m0,"_assertThisInitialized");function MYe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(MYe,"_isNativeReflectConstruct");function g0(r){return g0=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),g0(r)}n(g0,"_getPrototypeOf");function UYe(r,e){return Object.assign(r,e)}n(UYe,"assign");function BYe(r,e){var t;return(t=r==null?void 0:r.key)!=null?t:e}n(BYe,"getKey");function $Ye(r,e){var t=r._ptgLinkedRefs||(r._ptgLinkedRefs={});return t[e]||(t[e]=function(i){r.refs[e]=i})}n($Ye,"linkRef");function Sv(r){for(var e={},t=0;t<r.length;t++)if(r[t]!=null){var i=BYe(r[t],t.toString(36));e[i]=r[t]}return e}n(Sv,"getChildMapping");function GYe(r,e){r=r||{},e=e||{};var t=n(function(b){return e.hasOwnProperty(b)?e[b]:r[b]},"getValueForKey"),i={},o=[];for(var a in r)e.hasOwnProperty(a)?o.length&&(i[a]=o,o=[]):o.push(a);var u={};for(var c in e){if(i.hasOwnProperty(c))for(var l=0;l<i[c].length;l++){var d=i[c][l];u[i[c][l]]=t(d)}u[c]=t(c)}for(var y=0;y<o.length;y++)u[o[y]]=t(o[y]);return u}n(GYe,"mergeChildMappings");var zYe=n(function(e){return e},"identity"),_Y=function(r){NYe(t,r);var e=xYe(t);function t(i,o){var a;return jYe(this,t),a=e.call(this,i,o),a.refs={},a.state={children:Sv(ri(ri(a.props.children))||[])},a.performAppear=a.performAppear.bind(m0(a)),a.performEnter=a.performEnter.bind(m0(a)),a.performLeave=a.performLeave.bind(m0(a)),a}return n(t,"TransitionGroup"),FYe(t,[{key:"componentWillMount",value:n(function(){this.currentlyTransitioningKeys={},this.keysToAbortLeave=[],this.keysToEnter=[],this.keysToLeave=[]},"componentWillMount")},{key:"componentDidMount",value:n(function(){var o=this.state.children;for(var a in o)o[a]&&this.performAppear(a)},"componentDidMount")},{key:"componentWillReceiveProps",value:n(function(o){var a=Sv(ri(o.children)||[]),u=this.state.children;this.setState(function(y){return{children:GYe(y.children,a)}});var c;for(c in a)if(a.hasOwnProperty(c)){var l=u&&u.hasOwnProperty(c);a[c]&&l&&this.currentlyTransitioningKeys[c]?(this.keysToEnter.push(c),this.keysToAbortLeave.push(c)):a[c]&&!l&&!this.currentlyTransitioningKeys[c]&&this.keysToEnter.push(c)}for(c in u)if(u.hasOwnProperty(c)){var d=a&&a.hasOwnProperty(c);u[c]&&!d&&!this.currentlyTransitioningKeys[c]&&this.keysToLeave.push(c)}},"componentWillReceiveProps")},{key:"componentDidUpdate",value:n(function(){var o=this.keysToEnter;this.keysToEnter=[],o.forEach(this.performEnter);var a=this.keysToLeave;this.keysToLeave=[],a.forEach(this.performLeave)},"componentDidUpdate")},{key:"_finishAbort",value:n(function(o){var a=this.keysToAbortLeave.indexOf(o);a!==-1&&this.keysToAbortLeave.splice(a,1)},"_finishAbort")},{key:"performAppear",value:n(function(o){this.currentlyTransitioningKeys[o]=!0;var a=this.refs[o];a!=null&&a.componentWillAppear?a.componentWillAppear(this._handleDoneAppearing.bind(this,o)):this._handleDoneAppearing(o)},"performAppear")},{key:"_handleDoneAppearing",value:n(function(o){var a=this.refs[o];a!=null&&a.componentDidAppear&&a.componentDidAppear(),delete this.currentlyTransitioningKeys[o],this._finishAbort(o);var u=Sv(ri(this.props.children)||[]);(!u||!u.hasOwnProperty(o))&&this.performLeave(o)},"_handleDoneAppearing")},{key:"performEnter",value:n(function(o){this.currentlyTransitioningKeys[o]=!0;var a=this.refs[o];a!=null&&a.componentWillEnter?a.componentWillEnter(this._handleDoneEntering.bind(this,o)):this._handleDoneEntering(o)},"performEnter")},{key:"_handleDoneEntering",value:n(function(o){var a=this.refs[o];a!=null&&a.componentDidEnter&&a.componentDidEnter(),delete this.currentlyTransitioningKeys[o],this._finishAbort(o);var u=Sv(ri(this.props.children)||[]);(!u||!u.hasOwnProperty(o))&&this.performLeave(o)},"_handleDoneEntering")},{key:"performLeave",value:n(function(o){var a=this.keysToAbortLeave.indexOf(o);if(a===-1){this.currentlyTransitioningKeys[o]=!0;var u=this.refs[o];u!=null&&u.componentWillLeave?u.componentWillLeave(this._handleDoneLeaving.bind(this,o)):this._handleDoneLeaving(o)}},"performLeave")},{key:"_handleDoneLeaving",value:n(function(o){var a=this.keysToAbortLeave.indexOf(o);if(a===-1){var u=this.refs[o];u!=null&&u.componentDidLeave&&u.componentDidLeave(),delete this.currentlyTransitioningKeys[o];var c=Sv(ri(this.props.children)||[]);if(c&&c.hasOwnProperty(o))this.performEnter(o);else{var l=UYe({},this.state.children);delete l[o],this.setState({children:l})}}},"_handleDoneLeaving")},{key:"render",value:n(function(o,a){var u=this,c=o.childFactory,l=o.transitionLeave,d=o.transitionName,y=o.transitionAppear,m=o.transitionEnter,b=o.transitionLeaveTimeout,w=o.transitionEnterTimeout,S=o.transitionAppearTimeout,P=o.component,R=qYe(o,_Ye),I=a.children,T=Object.entries(I).map(function(F){var k=EYe(F,2),U=k[0],D=k[1];if(D){var H=$Ye(u,U);return Tw(c(D),{ref:H,key:U})}}).filter(Boolean);return _(P,R,T)},"render")}]),t}(ur);_Y.defaultProps={component:"span",childFactory:zYe};var EY=_Y;function sf(r){"@babel/helpers - typeof";return sf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sf(r)}n(sf,"_typeof");function TY(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(TY,"ownKeys");function RY(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?TY(Object(t),!0).forEach(function(i){HYe(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):TY(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(RY,"_objectSpread");function HYe(r,e,t){return e=IY(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(HYe,"_defineProperty");function WYe(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(WYe,"_classCallCheck");function AY(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,IY(i.key),i)}}n(AY,"_defineProperties");function VYe(r,e,t){return e&&AY(r.prototype,e),t&&AY(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(VYe,"_createClass");function IY(r){var e=KYe(r,"string");return sf(e)==="symbol"?e:String(e)}n(IY,"_toPropertyKey");function KYe(r,e){if(sf(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(sf(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(KYe,"_toPrimitive");function YYe(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&nq(r,e)}n(YYe,"_inherits");function nq(r,e){return nq=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),nq(r,e)}n(nq,"_setPrototypeOf");function XYe(r){var e=ZYe();return n(function(){var i=b0(r),o;if(e){var a=b0(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return QYe(this,o)},"_createSuperInternal")}n(XYe,"_createSuper");function QYe(r,e){if(e&&(sf(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return JYe(r)}n(QYe,"_possibleConstructorReturn");function JYe(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(JYe,"_assertThisInitialized");function ZYe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(ZYe,"_isNativeReflectConstruct");function b0(r){return b0=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),b0(r)}n(b0,"_getPrototypeOf");var eXe={version:"3.0.4"},lf=function(r){YYe(t,r);var e=XYe(t);function t(i,o){var a;WYe(this,t),a=e.call(this,i,o),a.render=function(c){return _("div",{className:"uppy uppy-Informer"},_(EY,null,c.info.map(function(l){return _(SY,{key:l.message},_("p",{role:"alert"},l.message," ",l.details&&_("span",{"aria-label":l.details,"data-microtip-position":"top-left","data-microtip-size":"medium",role:"tooltip",onClick:n(function(){return alert("".concat(l.message," \n\n ").concat(l.details))},"onClick")},"?")))})))},a.type="progressindicator",a.id=a.opts.id||"Informer",a.title="Informer";var u={};return a.opts=RY(RY({},u),o),a}return n(t,"Informer"),VYe(t,[{key:"install",value:n(function(){var o=this.opts.target;o&&this.mount(o,this)},"install")}]),t}(Ee);lf.VERSION=eXe.version;var rXe=/^data:([^/]+\/[^,;]+(?:[^,]*?))(;base64)?,([\s\S]*)$/;function iq(r,e,t){var i,o,a=rXe.exec(r),u=(i=(o=e.mimeType)!=null?o:a==null?void 0:a[1])!=null?i:"plain/text",c;if((a==null?void 0:a[2])!=null){for(var l=atob(decodeURIComponent(a[3])),d=new Uint8Array(l.length),y=0;y<l.length;y++)d[y]=l.charCodeAt(y);c=[d]}else(a==null?void 0:a[3])!=null&&(c=[decodeURIComponent(a[3])]);return t?new File(c,e.name||"",{type:u}):new Blob(c,{type:u})}n(iq,"dataURItoBlob");function w0(r){return r.startsWith("blob:")}n(w0,"isObjectURL");function tXe(r,e,t){return e=ZY(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(tXe,"_defineProperty");function he(){"use strict";he=n(function(){return r},"_regeneratorRuntime");var r={},e=Object.prototype,t=e.hasOwnProperty,i=Object.defineProperty||function(p,s,f){p[s]=f.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(p,s,f){return Object.defineProperty(p,s,{value:f,enumerable:!0,configurable:!0,writable:!0}),p[s]}n(l,"define");try{l({},"")}catch(p){l=n(function(f,v,g){return f[v]=g},"define")}function d(p,s,f,v){var g=s&&s.prototype instanceof b?s:b,h=Object.create(g.prototype),O=new V(v||[]);return i(h,"_invoke",{value:U(p,f,O)}),h}n(d,"wrap");function y(p,s,f){try{return{type:"normal",arg:p.call(s,f)}}catch(v){return{type:"throw",arg:v}}}n(y,"tryCatch"),r.wrap=d;var m={};function b(){}n(b,"Generator");function w(){}n(w,"GeneratorFunction");function S(){}n(S,"GeneratorFunctionPrototype");var P={};l(P,a,function(){return this});var R=Object.getPrototypeOf,I=R&&R(R(W([])));I&&I!==e&&t.call(I,a)&&(P=I);var T=S.prototype=b.prototype=Object.create(P);function F(p){["next","throw","return"].forEach(function(s){l(p,s,function(f){return this._invoke(s,f)})})}n(F,"defineIteratorMethods");function k(p,s){function f(g,h,O,E){var A=y(p[g],p,h);if(A.type!=="throw"){var C=A.arg,N=C.value;return N&&qi(N)=="object"&&t.call(N,"__await")?s.resolve(N.__await).then(function(M){f("next",M,O,E)},function(M){f("throw",M,O,E)}):s.resolve(N).then(function(M){C.value=M,O(C)},function(M){return f("throw",M,O,E)})}E(A.arg)}n(f,"invoke");var v;i(this,"_invoke",{value:n(function(h,O){function E(){return new s(function(A,C){f(h,O,A,C)})}return n(E,"callInvokeWithMethodAndArg"),v=v?v.then(E,E):E()},"value")})}n(k,"AsyncIterator");function U(p,s,f){var v="suspendedStart";return function(g,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(g==="throw")throw h;return Y()}for(f.method=g,f.arg=h;;){var O=f.delegate;if(O){var E=D(O,f);if(E){if(E===m)continue;return E}}if(f.method==="next")f.sent=f._sent=f.arg;else if(f.method==="throw"){if(v==="suspendedStart")throw v="completed",f.arg;f.dispatchException(f.arg)}else f.method==="return"&&f.abrupt("return",f.arg);v="executing";var A=y(p,s,f);if(A.type==="normal"){if(v=f.done?"completed":"suspendedYield",A.arg===m)continue;return{value:A.arg,done:f.done}}A.type==="throw"&&(v="completed",f.method="throw",f.arg=A.arg)}}}n(U,"makeInvokeMethod");function D(p,s){var f=s.method,v=p.iterator[f];if(v===void 0)return s.delegate=null,f==="throw"&&p.iterator.return&&(s.method="return",s.arg=void 0,D(p,s),s.method==="throw")||f!=="return"&&(s.method="throw",s.arg=new TypeError("The iterator does not provide a '"+f+"' method")),m;var g=y(v,p.iterator,s.arg);if(g.type==="throw")return s.method="throw",s.arg=g.arg,s.delegate=null,m;var h=g.arg;return h?h.done?(s[p.resultName]=h.value,s.next=p.nextLoc,s.method!=="return"&&(s.method="next",s.arg=void 0),s.delegate=null,m):h:(s.method="throw",s.arg=new TypeError("iterator result is not an object"),s.delegate=null,m)}n(D,"maybeInvokeDelegate");function H(p){var s={tryLoc:p[0]};1 in p&&(s.catchLoc=p[1]),2 in p&&(s.finallyLoc=p[2],s.afterLoc=p[3]),this.tryEntries.push(s)}n(H,"pushTryEntry");function $(p){var s=p.completion||{};s.type="normal",delete s.arg,p.completion=s}n($,"resetTryEntry");function V(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(H,this),this.reset(!0)}n(V,"Context");function W(p){if(p){var s=p[a];if(s)return s.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var f=-1,v=n(function g(){for(;++f<p.length;)if(t.call(p,f))return g.value=p[f],g.done=!1,g;return g.value=void 0,g.done=!0,g},"next");return v.next=v}}return{next:Y}}n(W,"values");function Y(){return{value:void 0,done:!0}}return n(Y,"doneResult"),w.prototype=S,i(T,"constructor",{value:S,configurable:!0}),i(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),r.isGeneratorFunction=function(p){var s=typeof p=="function"&&p.constructor;return!!s&&(s===w||(s.displayName||s.name)==="GeneratorFunction")},r.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,S):(p.__proto__=S,l(p,c,"GeneratorFunction")),p.prototype=Object.create(T),p},r.awrap=function(p){return{__await:p}},F(k.prototype),l(k.prototype,u,function(){return this}),r.AsyncIterator=k,r.async=function(p,s,f,v,g){g===void 0&&(g=Promise);var h=new k(d(p,s,f,v),g);return r.isGeneratorFunction(s)?h:h.next().then(function(O){return O.done?O.value:h.next()})},F(T),l(T,c,"Generator"),l(T,a,function(){return this}),l(T,"toString",function(){return"[object Generator]"}),r.keys=function(p){var s=Object(p),f=[];for(var v in s)f.push(v);return f.reverse(),n(function g(){for(;f.length;){var h=f.pop();if(h in s)return g.value=h,g.done=!1,g}return g.done=!0,g},"next")},r.values=W,V.prototype={constructor:V,reset:n(function(s){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach($),!s)for(var f in this)f.charAt(0)==="t"&&t.call(this,f)&&!isNaN(+f.slice(1))&&(this[f]=void 0)},"reset"),stop:n(function(){this.done=!0;var s=this.tryEntries[0].completion;if(s.type==="throw")throw s.arg;return this.rval},"stop"),dispatchException:n(function(s){if(this.done)throw s;var f=this;function v(C,N){return O.type="throw",O.arg=s,f.next=C,N&&(f.method="next",f.arg=void 0),!!N}n(v,"handle");for(var g=this.tryEntries.length-1;g>=0;--g){var h=this.tryEntries[g],O=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var E=t.call(h,"catchLoc"),A=t.call(h,"finallyLoc");if(E&&A){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(E){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!A)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},"dispatchException"),abrupt:n(function(s,f){for(var v=this.tryEntries.length-1;v>=0;--v){var g=this.tryEntries[v];if(g.tryLoc<=this.prev&&t.call(g,"finallyLoc")&&this.prev<g.finallyLoc){var h=g;break}}h&&(s==="break"||s==="continue")&&h.tryLoc<=f&&f<=h.finallyLoc&&(h=null);var O=h?h.completion:{};return O.type=s,O.arg=f,h?(this.method="next",this.next=h.finallyLoc,m):this.complete(O)},"abrupt"),complete:n(function(s,f){if(s.type==="throw")throw s.arg;return s.type==="break"||s.type==="continue"?this.next=s.arg:s.type==="return"?(this.rval=this.arg=s.arg,this.method="return",this.next="end"):s.type==="normal"&&f&&(this.next=f),m},"complete"),finish:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.finallyLoc===s)return this.complete(v.completion,v.afterLoc),$(v),m}},"finish"),catch:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.tryLoc===s){var g=v.completion;if(g.type==="throw"){var h=g.arg;$(v)}return h}}throw new Error("illegal catch attempt")},"_catch"),delegateYield:n(function(s,f,v){return this.delegate={iterator:W(s),resultName:f,nextLoc:v},this.method==="next"&&(this.arg=void 0),m},"delegateYield")},r}n(he,"_regeneratorRuntime");function vf(r){return aXe(r)||iXe(r)||bq(r)||nXe()}n(vf,"_toConsumableArray");function nXe(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n(nXe,"_nonIterableSpread");function iXe(r){if(typeof Symbol!="undefined"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}n(iXe,"_iterableToArray");function aXe(r){if(Array.isArray(r))return cq(r)}n(aXe,"_arrayWithoutHoles");function ai(r,e){return sXe(r)||uXe(r,e)||bq(r,e)||oXe()}n(ai,"_slicedToArray");function oXe(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n(oXe,"_nonIterableRest");function uXe(r,e){var t=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var i,o,a,u,c=[],l=!0,d=!1;try{if(a=(t=t.call(r)).next,e===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(i=a.call(t)).done)&&(c.push(i.value),c.length!==e);l=!0);}catch(y){d=!0,o=y}finally{try{if(!l&&t.return!=null&&(u=t.return(),Object(u)!==u))return}finally{if(d)throw o}}return c}}n(uXe,"_iterableToArrayLimit");function sXe(r){if(Array.isArray(r))return r}n(sXe,"_arrayWithHoles");function cr(r,e){var t=typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=bq(r))||e&&r&&typeof r.length=="number"){t&&(r=t);var i=0,o=n(function(){},"F");return{s:o,n:n(function(){return i>=r.length?{done:!0}:{done:!1,value:r[i++]}},"n"),e:n(function(d){throw d},"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=!0,u=!1,c;return{s:n(function(){t=t.call(r)},"s"),n:n(function(){var d=t.next();return a=d.done,d},"n"),e:n(function(d){u=!0,c=d},"e"),f:n(function(){try{!a&&t.return!=null&&t.return()}finally{if(u)throw c}},"f")}}n(cr,"_createForOfIteratorHelper");function bq(r,e){if(r){if(typeof r=="string")return cq(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return cq(r,e)}}n(bq,"_unsupportedIterableToArray");function cq(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=r[t];return i}n(cq,"_arrayLikeToArray");function qY(r,e,t,i,o,a,u){try{var c=r[a](u),l=c.value}catch(d){t(d);return}c.done?e(l):Promise.resolve(l).then(i,o)}n(qY,"asyncGeneratorStep");function er(r){return function(){var e=this,t=arguments;return new Promise(function(i,o){var a=r.apply(e,t);function u(l){qY(a,i,o,u,c,"next",l)}n(u,"_next");function c(l){qY(a,i,o,u,c,"throw",l)}n(c,"_throw"),u(void 0)})}}n(er,"_asyncToGenerator");function As(){return typeof Reflect!="undefined"&&Reflect.get?As=Reflect.get.bind():As=n(function(e,t,i){var o=lXe(e,t);if(o){var a=Object.getOwnPropertyDescriptor(o,t);return a.get?a.get.call(arguments.length<3?e:i):a.value}},"_get"),As.apply(this,arguments)}n(As,"_get");function lXe(r,e){for(;!Object.prototype.hasOwnProperty.call(r,e)&&(r=oa(r),r!==null););return r}n(lXe,"_superPropBase");function ua(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&Ev(r,e)}n(ua,"_inherits");function sa(r){var e=JY();return n(function(){var i=oa(r),o;if(e){var a=oa(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return QY(this,o)},"_createSuperInternal")}n(sa,"_createSuper");function QY(r,e){if(e&&(qi(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jn(r)}n(QY,"_possibleConstructorReturn");function jn(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(jn,"_assertThisInitialized");function O0(r){var e=typeof Map=="function"?new Map:void 0;return O0=n(function(i){if(i===null||!cXe(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(i))return e.get(i);e.set(i,o)}function o(){return S0(i,arguments,oa(this).constructor)}return n(o,"Wrapper"),o.prototype=Object.create(i.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Ev(o,i)},"_wrapNativeSuper"),O0(r)}n(O0,"_wrapNativeSuper");function S0(r,e,t){return JY()?S0=Reflect.construct.bind():S0=n(function(o,a,u){var c=[null];c.push.apply(c,a);var l=Function.bind.apply(o,c),d=new l;return u&&Ev(d,u.prototype),d},"_construct"),S0.apply(null,arguments)}n(S0,"_construct");function JY(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(JY,"_isNativeReflectConstruct");function cXe(r){return Function.toString.call(r).indexOf("[native code]")!==-1}n(cXe,"_isNativeFunction");function Ev(r,e){return Ev=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),Ev(r,e)}n(Ev,"_setPrototypeOf");function oa(r){return oa=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),oa(r)}n(oa,"_getPrototypeOf");function qi(r){"@babel/helpers - typeof";return qi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qi(r)}n(qi,"_typeof");function jt(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(jt,"_classCallCheck");function kY(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,ZY(i.key),i)}}n(kY,"_defineProperties");function Ft(r,e,t){return e&&kY(r.prototype,e),t&&kY(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(Ft,"_createClass");function ZY(r){var e=fXe(r,"string");return qi(e)==="symbol"?e:String(e)}n(ZY,"_toPropertyKey");function fXe(r,e){if(qi(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(qi(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(fXe,"_toPrimitive");function rr(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(rr,"e");var eX=typeof self!="undefined"?self:global,uu=typeof navigator!="undefined",P0=uu&&typeof HTMLImageElement=="undefined",jY=!(typeof global=="undefined"||typeof process=="undefined"||!process.versions||!process.versions.node),rX=eX.Buffer,tX=!!rX,pXe=n(function(e){return e!==void 0},"h");function nX(r){return r===void 0||(r instanceof Map?r.size===0:Object.values(r).filter(pXe).length===0)}n(nX,"f");function dt(r){var e=new Error(r);throw delete e.stack,e}n(dt,"l");function FY(r){var e=function(t){var i=0;return t.ifd0.enabled&&(i+=1024),t.exif.enabled&&(i+=2048),t.makerNote&&(i+=2048),t.userComment&&(i+=1024),t.gps.enabled&&(i+=512),t.interop.enabled&&(i+=100),t.ifd1.enabled&&(i+=1024),i+2048}(r);return r.jfif.enabled&&(e+=50),r.xmp.enabled&&(e+=2e4),r.iptc.enabled&&(e+=14e3),r.icc.enabled&&(e+=6e3),e}n(FY,"o");var aq=n(function(e){return String.fromCharCode.apply(null,e)},"u"),CY=typeof TextDecoder!="undefined"?new TextDecoder("utf-8"):void 0,Tv=function(){function r(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;if(jt(this,r),typeof o=="boolean"&&(this.le=o),Array.isArray(e)&&(e=new Uint8Array(e)),e===0)this.byteOffset=0,this.byteLength=0;else if(e instanceof ArrayBuffer){i===void 0&&(i=e.byteLength-t);var a=new DataView(e,t,i);this._swapDataView(a)}else if(e instanceof Uint8Array||e instanceof DataView||e instanceof r){i===void 0&&(i=e.byteLength-t),(t+=e.byteOffset)+i>e.byteOffset+e.byteLength&&dt("Creating view outside of available memory in ArrayBuffer");var u=new DataView(e.buffer,t,i);this._swapDataView(u)}else if(typeof e=="number"){var c=new DataView(new ArrayBuffer(e));this._swapDataView(c)}else dt("Invalid input argument for BufferView: "+e)}return n(r,"c"),Ft(r,[{key:"_swapArrayBuffer",value:n(function(t){this._swapDataView(new DataView(t))},"_swapArrayBuffer")},{key:"_swapBuffer",value:n(function(t){this._swapDataView(new DataView(t.buffer,t.byteOffset,t.byteLength))},"_swapBuffer")},{key:"_swapDataView",value:n(function(t){this.dataView=t,this.buffer=t.buffer,this.byteOffset=t.byteOffset,this.byteLength=t.byteLength},"_swapDataView")},{key:"_lengthToEnd",value:n(function(t){return this.byteLength-t},"_lengthToEnd")},{key:"set",value:n(function(t,i){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:r;return t instanceof DataView||t instanceof r?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):t instanceof ArrayBuffer&&(t=new Uint8Array(t)),t instanceof Uint8Array||dt("BufferView.set(): Invalid data argument."),this.toUint8().set(t,i),new o(this,i,t.byteLength)},"set")},{key:"subarray",value:n(function(t,i){return i=i||this._lengthToEnd(t),new r(this,t,i)},"subarray")},{key:"toUint8",value:n(function(){return new Uint8Array(this.buffer,this.byteOffset,this.byteLength)},"toUint8")},{key:"getUint8Array",value:n(function(t,i){return new Uint8Array(this.buffer,this.byteOffset+t,i)},"getUint8Array")},{key:"getString",value:n(function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.byteLength,o=this.getUint8Array(t,i);return a=o,CY?CY.decode(a):tX?Buffer.from(a).toString("utf8"):decodeURIComponent(escape(aq(a)));var a},"getString")},{key:"getLatin1String",value:n(function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.byteLength,o=this.getUint8Array(t,i);return aq(o)},"getLatin1String")},{key:"getUnicodeString",value:n(function(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.byteLength,o=[],a=0;a<i&&t+a<this.byteLength;a+=2)o.push(this.getUint16(t+a));return aq(o)},"getUnicodeString")},{key:"getInt8",value:n(function(t){return this.dataView.getInt8(t)},"getInt8")},{key:"getUint8",value:n(function(t){return this.dataView.getUint8(t)},"getUint8")},{key:"getInt16",value:n(function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.le;return this.dataView.getInt16(t,i)},"getInt16")},{key:"getInt32",value:n(function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.le;return this.dataView.getInt32(t,i)},"getInt32")},{key:"getUint16",value:n(function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.le;return this.dataView.getUint16(t,i)},"getUint16")},{key:"getUint32",value:n(function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.le;return this.dataView.getUint32(t,i)},"getUint32")},{key:"getFloat32",value:n(function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.le;return this.dataView.getFloat32(t,i)},"getFloat32")},{key:"getFloat64",value:n(function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.le;return this.dataView.getFloat64(t,i)},"getFloat64")},{key:"getFloat",value:n(function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.le;return this.dataView.getFloat32(t,i)},"getFloat")},{key:"getDouble",value:n(function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.le;return this.dataView.getFloat64(t,i)},"getDouble")},{key:"getUintBytes",value:n(function(t,i,o){switch(i){case 1:return this.getUint8(t,o);case 2:return this.getUint16(t,o);case 4:return this.getUint32(t,o);case 8:return this.getUint64&&this.getUint64(t,o)}},"getUintBytes")},{key:"getUint",value:n(function(t,i,o){switch(i){case 8:return this.getUint8(t,o);case 16:return this.getUint16(t,o);case 32:return this.getUint32(t,o);case 64:return this.getUint64&&this.getUint64(t,o)}},"getUint")},{key:"toString",value:n(function(t){return this.dataView.toString(t,this.constructor.name)},"toString")},{key:"ensureChunk",value:n(function(){},"ensureChunk")}],[{key:"from",value:n(function(t,i){return t instanceof this&&t.le===i?t:new r(t,void 0,void 0,i)},"from")}]),r}();function fq(r,e){dt("".concat(r," '").concat(e,"' was not loaded, try using full build of exifr."))}n(fq,"p");var wq=function(r){ua(t,r);var e=sa(t);function t(i){var o;return jt(this,t),o=e.call(this),o.kind=i,o}return n(t,"g"),Ft(t,[{key:"get",value:n(function(o,a){return this.has(o)||fq(this.kind,o),a&&(o in a||function(u,c){dt("Unknown ".concat(u," '").concat(c,"'."))}(this.kind,o),a[o].enabled||fq(this.kind,o)),As(oa(t.prototype),"get",this).call(this,o)},"get")},{key:"keyList",value:n(function(){return Array.from(this.keys())},"keyList")}]),t}(O0(Map)),T0=new wq("file parser"),Fn=new wq("segment parser"),Iv=new wq("file reader"),dXe=eX.fetch;function LY(r,e){return(t=r).startsWith("data:")||t.length>1e4?hq(r,e,"base64"):jY&&r.includes("://")?pq(r,e,"url",_0):jY?hq(r,e,"fs"):uu?pq(r,e,"url",_0):void dt("Invalid input argument");var t}n(LY,"k");function pq(r,e,t,i){return dq.apply(this,arguments)}n(pq,"O");function dq(){return dq=er(he().mark(n(function r(e,t,i,o){return he().wrap(n(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",Iv.has(i)?hq(e,t,i):o?function(){var c=er(he().mark(n(function l(d,y){var m;return he().wrap(n(function(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,y(d);case 2:return m=w.sent,w.abrupt("return",new Tv(m));case 4:case"end":return w.stop()}},"_callee25$"),l)},"_callee25")));return function(l,d){return c.apply(this,arguments)}}()(e,o):void dt("Parser ".concat(i," is not loaded")));case 1:case"end":return u.stop()}},"_callee26$"),r)},"_callee26"))),dq.apply(this,arguments)}n(dq,"_O");function hq(r,e,t){return vq.apply(this,arguments)}n(hq,"v");function vq(){return vq=er(he().mark(n(function r(e,t,i){var o;return he().wrap(n(function(u){for(;;)switch(u.prev=u.next){case 0:return o=new(Iv.get(i))(e,t),u.next=3,o.read();case 3:return u.abrupt("return",o);case 4:case"end":return u.stop()}},"_callee27$"),r)},"_callee27"))),vq.apply(this,arguments)}n(vq,"_v");var _0=n(function(e){return dXe(e).then(function(t){return t.arrayBuffer()})},"S"),Rv=n(function(e){return new Promise(function(t,i){var o=new FileReader;o.onloadend=function(){return t(o.result||new ArrayBuffer)},o.onerror=i,o.readAsArrayBuffer(e)})},"A"),hXe=function(r){ua(t,r);var e=sa(t);function t(){return jt(this,t),e.apply(this,arguments)}return n(t,"U"),Ft(t,[{key:"tagKeys",get:n(function(){return this.allKeys||(this.allKeys=Array.from(this.keys())),this.allKeys},"get")},{key:"tagValues",get:n(function(){return this.allValues||(this.allValues=Array.from(this.values())),this.allValues},"get")}]),t}(O0(Map));function iX(r,e,t){var i=new hXe,o=cr(t),a;try{for(o.s();!(a=o.n()).done;){var u=ai(a.value,2),c=u[0],l=u[1];i.set(c,l)}}catch(b){o.e(b)}finally{o.f()}if(Array.isArray(e)){var d=cr(e),y;try{for(d.s();!(y=d.n()).done;){var m=y.value;r.set(m,i)}}catch(b){d.e(b)}finally{d.f()}}else r.set(e,i);return i}n(iX,"x");function aX(r,e,t){var i,o=r.get(e),a=cr(t),u;try{for(a.s();!(u=a.n()).done;)i=u.value,o.set(i[0],i[1])}catch(c){a.e(c)}finally{a.f()}}n(aX,"C");var qv=new Map,Sq=new Map,Oq=new Map,cf=["chunked","firstChunkSize","firstChunkSizeNode","firstChunkSizeBrowser","chunkSize","chunkLimit"],R0=["jfif","xmp","icc","iptc","ihdr"],Av=["tiff"].concat(R0),Wr=["ifd0","ifd1","exif","gps","interop"],ff=[].concat(vf(Av),Wr),pf=["makerNote","userComment"],A0=["translateKeys","translateValues","reviveValues","multiSegment"],df=[].concat(A0,["sanitize","mergeOutput","silentErrors"]),oX=function(){function r(){jt(this,r)}return n(r,"_"),Ft(r,[{key:"translate",get:n(function(){return this.translateKeys||this.translateValues||this.reviveValues},"get")}]),r}(),Ov=function(r){ua(t,r);var e=sa(t);function t(i,o,a,u){var c;if(jt(this,t),c=e.call(this),rr(jn(c),"enabled",!1),rr(jn(c),"skip",new Set),rr(jn(c),"pick",new Set),rr(jn(c),"deps",new Set),rr(jn(c),"translateKeys",!1),rr(jn(c),"translateValues",!1),rr(jn(c),"reviveValues",!1),c.key=i,c.enabled=o,c.parse=c.enabled,c.applyInheritables(u),c.canBeFiltered=Wr.includes(i),c.canBeFiltered&&(c.dict=qv.get(i)),a!==void 0)if(Array.isArray(a))c.parse=c.enabled=!0,c.canBeFiltered&&a.length>0&&c.translateTagSet(a,c.pick);else if(qi(a)=="object"){if(c.enabled=!0,c.parse=a.parse!==!1,c.canBeFiltered){var l=a.pick,d=a.skip;l&&l.length>0&&c.translateTagSet(l,c.pick),d&&d.length>0&&c.translateTagSet(d,c.skip)}c.applyInheritables(a)}else a===!0||a===!1?c.parse=c.enabled=a:dt("Invalid options argument: ".concat(a));return QY(c)}return n(t,"D"),Ft(t,[{key:"needed",get:n(function(){return this.enabled||this.deps.size>0},"get")},{key:"applyInheritables",value:n(function(o){for(var a,u,c=0,l=A0;c<l.length;c++)a=l[c],u=o[a],u!==void 0&&(this[a]=u)},"applyInheritables")},{key:"translateTagSet",value:n(function(o,a){if(this.dict){var u,c,l=this.dict,d=l.tagKeys,y=l.tagValues,m=cr(o),b;try{for(m.s();!(b=m.n()).done;)u=b.value,typeof u=="string"?(c=y.indexOf(u),c===-1&&(c=d.indexOf(Number(u))),c!==-1&&a.add(Number(d[c]))):a.add(u)}catch(R){m.e(R)}finally{m.f()}}else{var w=cr(o),S;try{for(w.s();!(S=w.n()).done;){var P=S.value;a.add(P)}}catch(R){w.e(R)}finally{w.f()}}},"translateTagSet")},{key:"finalizeFilters",value:n(function(){!this.enabled&&this.deps.size>0?(this.enabled=!0,E0(this.pick,this.deps)):this.enabled&&this.pick.size>0&&E0(this.pick,this.deps)},"finalizeFilters")}]),t}(oX),zt={jfif:!1,tiff:!0,xmp:!1,icc:!1,iptc:!1,ifd0:!0,ifd1:!1,exif:!0,gps:!0,interop:!1,ihdr:void 0,makerNote:!1,userComment:!1,multiSegment:!1,skip:[],pick:[],translateKeys:!0,translateValues:!0,reviveValues:!0,sanitize:!0,mergeOutput:!0,silentErrors:!0,chunked:!0,firstChunkSize:void 0,firstChunkSizeNode:512,firstChunkSizeBrowser:65536,chunkSize:65536,chunkLimit:5},NY=new Map,kv=function(r){ua(t,r);var e=sa(t);function t(i){var o;return jt(this,t),o=e.call(this),i===!0?o.setupFromTrue():i===void 0?o.setupFromUndefined():Array.isArray(i)?o.setupFromArray(i):qi(i)=="object"?o.setupFromObject(i):dt("Invalid options argument ".concat(i)),o.firstChunkSize===void 0&&(o.firstChunkSize=uu?o.firstChunkSizeBrowser:o.firstChunkSizeNode),o.mergeOutput&&(o.ifd1.enabled=!1),o.filterNestedSegmentTags(),o.traverseTiffDependencyTree(),o.checkLoadedPlugins(),o}return n(t,"R"),Ft(t,[{key:"setupFromUndefined",value:n(function(){for(var o,a=0,u=cf;a<u.length;a++)o=u[a],this[o]=zt[o];var c=cr(df),l;try{for(c.s();!(l=c.n()).done;)o=l.value,this[o]=zt[o]}catch(w){c.e(w)}finally{c.f()}for(var d=0,y=pf;d<y.length;d++)o=y[d],this[o]=zt[o];var m=cr(ff),b;try{for(m.s();!(b=m.n()).done;)o=b.value,this[o]=new Ov(o,zt[o],void 0,this)}catch(w){m.e(w)}finally{m.f()}},"setupFromUndefined")},{key:"setupFromTrue",value:n(function(){for(var o,a=0,u=cf;a<u.length;a++)o=u[a],this[o]=zt[o];var c=cr(df),l;try{for(c.s();!(l=c.n()).done;)o=l.value,this[o]=zt[o]}catch(w){c.e(w)}finally{c.f()}for(var d=0,y=pf;d<y.length;d++)o=y[d],this[o]=!0;var m=cr(ff),b;try{for(m.s();!(b=m.n()).done;)o=b.value,this[o]=new Ov(o,!0,void 0,this)}catch(w){m.e(w)}finally{m.f()}},"setupFromTrue")},{key:"setupFromArray",value:n(function(o){for(var a,u=0,c=cf;u<c.length;u++)a=c[u],this[a]=zt[a];var l=cr(df),d;try{for(l.s();!(d=l.n()).done;)a=d.value,this[a]=zt[a]}catch(S){l.e(S)}finally{l.f()}for(var y=0,m=pf;y<m.length;y++)a=m[y],this[a]=zt[a];var b=cr(ff),w;try{for(b.s();!(w=b.n()).done;)a=w.value,this[a]=new Ov(a,!1,void 0,this)}catch(S){b.e(S)}finally{b.f()}this.setupGlobalFilters(o,void 0,Wr)},"setupFromArray")},{key:"setupFromObject",value:n(function(o){for(var a,u=0,c=(Wr.ifd0=Wr.ifd0||Wr.image,Wr.ifd1=Wr.ifd1||Wr.thumbnail,Object.assign(this,o),cf);u<c.length;u++)a=c[u],this[a]=oq(o[a],zt[a]);var l=cr(df),d;try{for(l.s();!(d=l.n()).done;)a=d.value,this[a]=oq(o[a],zt[a])}catch(R){l.e(R)}finally{l.f()}for(var y=0,m=pf;y<m.length;y++)a=m[y],this[a]=oq(o[a],zt[a]);var b=cr(Av),w;try{for(b.s();!(w=b.n()).done;)a=w.value,this[a]=new Ov(a,zt[a],o[a],this)}catch(R){b.e(R)}finally{b.f()}for(var S=0,P=Wr;S<P.length;S++)a=P[S],this[a]=new Ov(a,zt[a],o[a],this.tiff);this.setupGlobalFilters(o.pick,o.skip,Wr,ff),o.tiff===!0?this.batchEnableWithBool(Wr,!0):o.tiff===!1?this.batchEnableWithUserValue(Wr,o):Array.isArray(o.tiff)?this.setupGlobalFilters(o.tiff,void 0,Wr):qi(o.tiff)=="object"&&this.setupGlobalFilters(o.tiff.pick,o.tiff.skip,Wr)},"setupFromObject")},{key:"batchEnableWithBool",value:n(function(o,a){var u=cr(o),c;try{for(u.s();!(c=u.n()).done;){var l=c.value;this[l].enabled=a}}catch(d){u.e(d)}finally{u.f()}},"batchEnableWithBool")},{key:"batchEnableWithUserValue",value:n(function(o,a){var u=cr(o),c;try{for(u.s();!(c=u.n()).done;){var l=c.value,d=a[l];this[l].enabled=d!==!1&&d!==void 0}}catch(y){u.e(y)}finally{u.f()}},"batchEnableWithUserValue")},{key:"setupGlobalFilters",value:n(function(o,a,u){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:u;if(o&&o.length){var l=cr(c),d;try{for(l.s();!(d=l.n()).done;){var y=d.value;this[y].enabled=!1}}catch(H){l.e(H)}finally{l.f()}var m=xY(o,u),b=cr(m),w;try{for(b.s();!(w=b.n()).done;){var S=ai(w.value,2),P=S[0],R=S[1];E0(this[P].pick,R),this[P].enabled=!0}}catch(H){b.e(H)}finally{b.f()}}else if(a&&a.length){var I=xY(a,u),T=cr(I),F;try{for(T.s();!(F=T.n()).done;){var k=ai(F.value,2),U=k[0],D=k[1];E0(this[U].skip,D)}}catch(H){T.e(H)}finally{T.f()}}},"setupGlobalFilters")},{key:"filterNestedSegmentTags",value:n(function(){var o=this.ifd0,a=this.exif,u=this.xmp,c=this.iptc,l=this.icc;this.makerNote?a.deps.add(37500):a.skip.add(37500),this.userComment?a.deps.add(37510):a.skip.add(37510),u.enabled||o.skip.add(700),c.enabled||o.skip.add(33723),l.enabled||o.skip.add(34675)},"filterNestedSegmentTags")},{key:"traverseTiffDependencyTree",value:n(function(){var o=this,a=this.ifd0,u=this.exif,c=this.gps,l=this.interop;l.needed&&(u.deps.add(40965),a.deps.add(40965)),u.needed&&a.deps.add(34665),c.needed&&a.deps.add(34853),this.tiff.enabled=Wr.some(function(b){return o[b].enabled===!0})||this.makerNote||this.userComment;for(var d=0,y=Wr;d<y.length;d++){var m=y[d];this[m].finalizeFilters()}},"traverseTiffDependencyTree")},{key:"onlyTiff",get:n(function(){var o=this;return!R0.map(function(a){return o[a].enabled}).some(function(a){return a===!0})&&this.tiff.enabled},"get")},{key:"checkLoadedPlugins",value:n(function(){var o=cr(Av),a;try{for(o.s();!(a=o.n()).done;){var u=a.value;this[u].enabled&&!Fn.has(u)&&fq("segment parser",u)}}catch(c){o.e(c)}finally{o.f()}},"checkLoadedPlugins")}],[{key:"useCached",value:n(function(o){var a=NY.get(o);return a!==void 0||(a=new this(o),NY.set(o,a)),a},"useCached")}]),t}(oX);function xY(r,e){var t,i,o,a,u=[],c=cr(e),l;try{for(c.s();!(l=c.n()).done;){o=l.value;var d=cr((t=qv.get(o),i=[],t)),y;try{for(d.s();!(y=d.n()).done;)a=y.value,(r.includes(a[0])||r.includes(a[1]))&&i.push(a[0])}catch(m){d.e(m)}finally{d.f()}i.length&&u.push([o,i])}}catch(m){c.e(m)}finally{c.f()}return u}n(xY,"K");function oq(r,e){return r!==void 0?r:e!==void 0?e:void 0}n(oq,"W");function E0(r,e){var t=cr(e),i;try{for(t.s();!(i=t.n()).done;){var o=i.value;r.add(o)}}catch(a){t.e(a)}finally{t.f()}}n(E0,"X");rr(kv,"default",zt);var I0=function(){function r(e){var t=this;jt(this,r),rr(this,"parsers",{}),rr(this,"output",{}),rr(this,"errors",[]),rr(this,"pushToErrors",function(i){return t.errors.push(i)}),this.options=kv.useCached(e)}return n(r,"H"),Ft(r,[{key:"read",value:function(){var e=er(he().mark(n(function i(o){return he().wrap(n(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,function(c,l){return typeof c=="string"?LY(c,l):uu&&!P0&&c instanceof HTMLImageElement?LY(c.src,l):c instanceof Uint8Array||c instanceof ArrayBuffer||c instanceof DataView?new Tv(c):uu&&c instanceof Blob?pq(c,l,"blob",Rv):void dt("Invalid input argument")}(o,this.options);case 2:this.file=u.sent;case 3:case"end":return u.stop()}},"_callee$"),i,this)},"_callee")));function t(i){return e.apply(this,arguments)}return n(t,"read"),t}()},{key:"setup",value:n(function(){if(!this.fileParser){var t=this.file,i=t.getUint16(0),o=cr(T0),a;try{for(o.s();!(a=o.n()).done;){var u=ai(a.value,2),c=u[0],l=u[1];if(l.canHandle(t,i))return this.fileParser=new l(this.options,this.file,this.parsers),t[c]=!0}}catch(d){o.e(d)}finally{o.f()}this.file.close&&this.file.close(),dt("Unknown file format")}},"setup")},{key:"parse",value:function(){var e=er(he().mark(n(function i(){var o,a,u;return he().wrap(n(function(l){for(;;)switch(l.prev=l.next){case 0:if(o=this.output,a=this.errors,this.setup(),!this.options.silentErrors){l.next=8;break}return l.next=5,this.executeParsers().catch(this.pushToErrors);case 5:a.push.apply(a,vf(this.fileParser.errors)),l.next=10;break;case 8:return l.next=10,this.executeParsers();case 10:return this.file.close&&this.file.close(),this.options.silentErrors&&a.length>0&&(o.errors=a),l.abrupt("return",nX(u=o)?void 0:u);case 13:case"end":return l.stop()}},"_callee2$"),i,this)},"_callee2")));function t(){return e.apply(this,arguments)}return n(t,"parse"),t}()},{key:"executeParsers",value:function(){var e=er(he().mark(n(function i(){var o=this,a,u;return he().wrap(n(function(l){for(;;)switch(l.prev=l.next){case 0:return a=this.output,l.next=3,this.fileParser.parse();case 3:return u=Object.values(this.parsers).map(function(){var d=er(he().mark(n(function y(m){var b;return he().wrap(n(function(S){for(;;)switch(S.prev=S.next){case 0:return S.next=2,m.parse();case 2:b=S.sent,m.assignToOutput(a,b);case 4:case"end":return S.stop()}},"_callee3$"),y)},"_callee3")));return function(y){return d.apply(this,arguments)}}()),this.options.silentErrors&&(u=u.map(function(d){return d.catch(o.pushToErrors)})),l.next=7,Promise.all(u);case 7:case"end":return l.stop()}},"_callee4$"),i,this)},"_callee4")));function t(){return e.apply(this,arguments)}return n(t,"executeParsers"),t}()},{key:"extractThumbnail",value:function(){var e=er(he().mark(n(function i(){var o,a,u,c,l,d,y;return he().wrap(n(function(b){for(;;)switch(b.prev=b.next){case 0:if(this.setup(),o=this.options,a=this.file,u=Fn.get("tiff",o),!a.tiff){b.next=6;break}c={start:0,type:"tiff"},b.next=11;break;case 6:if(b.t0=a.jpeg,!b.t0){b.next=11;break}return b.next=10,this.fileParser.getOrFindSegment("tiff");case 10:c=b.sent;case 11:if(c!==void 0){b.next=13;break}return b.abrupt("return");case 13:return b.next=15,this.fileParser.ensureSegmentChunk(c);case 15:return l=b.sent,d=this.parsers.tiff=new u(l,o,a),b.next=19,d.extractThumbnail();case 19:return y=b.sent,b.abrupt("return",(a.close&&a.close(),y));case 21:case"end":return b.stop()}},"_callee5$"),i,this)},"_callee5")));function t(){return e.apply(this,arguments)}return n(t,"extractThumbnail"),t}()}]),r}();function uX(r,e){return yq.apply(this,arguments)}n(uX,"Y");function yq(){return yq=er(he().mark(n(function r(e,t){var i;return he().wrap(n(function(a){for(;;)switch(a.prev=a.next){case 0:return i=new I0(t),a.next=3,i.read(e);case 3:return a.abrupt("return",i.parse());case 4:case"end":return a.stop()}},"_callee28$"),r)},"_callee28"))),yq.apply(this,arguments)}n(yq,"_Y");var vXe=Object.freeze({__proto__:null,parse:uX,Exifr:I0,fileParsers:T0,segmentParsers:Fn,fileReaders:Iv,tagKeys:qv,tagValues:Sq,tagRevivers:Oq,createDictionary:iX,extendDictionary:aX,fetchUrlAsArrayBuffer:_0,readBlobAsArrayBuffer:Rv,chunkedProps:cf,otherSegments:R0,segments:Av,tiffBlocks:Wr,segmentsAndBlocks:ff,tiffExtractables:pf,inheritables:A0,allFormatters:df,Options:kv}),hf=function(){function r(e){var t=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;jt(this,r),rr(this,"errors",[]),rr(this,"raw",new Map),rr(this,"handleError",function(a){if(!t.options.silentErrors)throw a;t.errors.push(a.message)}),this.chunk=this.normalizeInput(e),this.file=o,this.type=this.constructor.type,this.globalOptions=this.options=i,this.localOptions=i[this.type],this.canTranslate=this.localOptions&&this.localOptions.translate}return n(r,"J"),Ft(r,[{key:"normalizeInput",value:n(function(t){return t instanceof Tv?t:new Tv(t)},"normalizeInput")},{key:"translate",value:n(function(){this.canTranslate&&(this.translated=this.translateBlock(this.raw,this.type))},"translate")},{key:"output",get:n(function(){return this.translated?this.translated:this.raw?Object.fromEntries(this.raw):void 0},"get")},{key:"translateBlock",value:n(function(t,i){var o=Oq.get(i),a=Sq.get(i),u=qv.get(i),c=this.options[i],l=c.reviveValues&&!!o,d=c.translateValues&&!!a,y=c.translateKeys&&!!u,m={},b=cr(t),w;try{for(b.s();!(w=b.n()).done;){var S=ai(w.value,2),P=S[0],R=S[1];l&&o.has(P)?R=o.get(P)(R):d&&a.has(P)&&(R=this.translateValue(R,a.get(P))),y&&u.has(P)&&(P=u.get(P)||P),m[P]=R}}catch(I){b.e(I)}finally{b.f()}return m},"translateBlock")},{key:"translateValue",value:n(function(t,i){return i[t]||i.DEFAULT||t},"translateValue")},{key:"assignToOutput",value:n(function(t,i){this.assignObjectToOutput(t,this.constructor.type,i)},"assignToOutput")},{key:"assignObjectToOutput",value:n(function(t,i,o){if(this.globalOptions.mergeOutput)return Object.assign(t,o);t[i]?Object.assign(t[i],o):t[i]=o},"assignObjectToOutput")}],[{key:"findPosition",value:n(function(t,i){var o=t.getUint16(i+2)+2,a=typeof this.headerLength=="function"?this.headerLength(t,i,o):this.headerLength,u=i+a,c=o-a;return{offset:i,length:o,headerLength:a,start:u,size:c,end:u+c}},"findPosition")},{key:"parse",value:n(function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new this(t,new kv(tXe({},this.type,i)),t).parse()},"parse")}]),r}();rr(hf,"headerLength",4),rr(hf,"type",void 0),rr(hf,"multiSegment",!1),rr(hf,"canHandle",function(){return!1});function yXe(r){return r===192||r===194||r===196||r===219||r===221||r===218||r===254}n(yXe,"q");function mXe(r){return r>=224&&r<=239}n(mXe,"Q");function gXe(r,e,t){var i=cr(Fn),o;try{for(i.s();!(o=i.n()).done;){var a=ai(o.value,2),u=a[0],c=a[1];if(c.canHandle(r,e,t))return u}}catch(l){i.e(l)}finally{i.f()}}n(gXe,"Z");var DY=function(r){ua(t,r);var e=sa(t);function t(){var i;jt(this,t);for(var o=arguments.length,a=new Array(o),u=0;u<o;u++)a[u]=arguments[u];return i=e.call.apply(e,[this].concat(a)),rr(jn(i),"appSegments",[]),rr(jn(i),"jpegSegments",[]),rr(jn(i),"unknownSegments",[]),i}return n(t,"ee"),Ft(t,[{key:"parse",value:function(){var i=er(he().mark(n(function a(){return he().wrap(n(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this.findAppSegments();case 2:return c.next=4,this.readSegments(this.appSegments);case 4:this.mergeMultiSegments(),this.createParsers(this.mergedAppSegments||this.appSegments);case 6:case"end":return c.stop()}},"_callee6$"),a,this)},"_callee6")));function o(){return i.apply(this,arguments)}return n(o,"parse"),o}()},{key:"setupSegmentFinderArgs",value:n(function(o){var a=this;o===!0?(this.findAll=!0,this.wanted=new Set(Fn.keyList())):(o=o===void 0?Fn.keyList().filter(function(u){return a.options[u].enabled}):o.filter(function(u){return a.options[u].enabled&&Fn.has(u)}),this.findAll=!1,this.remaining=new Set(o),this.wanted=new Set(o)),this.unfinishedMultiSegment=!1},"setupSegmentFinderArgs")},{key:"findAppSegments",value:function(){var i=er(he().mark(n(function a(){var u=this,c,l,d,y,m,b,w,S,P,R=arguments;return he().wrap(n(function(T){for(;;)switch(T.prev=T.next){case 0:if(c=R.length>0&&R[0]!==void 0?R[0]:0,l=R.length>1?R[1]:void 0,this.setupSegmentFinderArgs(l),d=this.file,y=this.findAll,m=this.wanted,b=this.remaining,T.t0=!y&&this.file.chunked,!T.t0){T.next=11;break}if(y=Array.from(m).some(function(F){var k=Fn.get(F),U=u.options[F];return k.multiSegment&&U.multiSegment}),T.t1=y,!T.t1){T.next=11;break}return T.next=11,this.file.readWhole();case 11:if(c=this.findAppSegmentsInRange(c,d.byteLength),!(!this.options.onlyTiff&&d.chunked)){T.next=30;break}w=!1;case 14:if(!(b.size>0&&!w&&(d.canReadNextChunk||this.unfinishedMultiSegment))){T.next=30;break}if(S=d.nextChunkOffset,P=this.appSegments.some(function(F){return!u.file.available(F.offset||F.start,F.length||F.size)}),!(c>S&&!P)){T.next=22;break}return T.next=19,d.readNextChunk(c);case 19:T.t2=!T.sent,T.next=25;break;case 22:return T.next=24,d.readNextChunk(S);case 24:T.t2=!T.sent;case 25:if(w=T.t2,(c=this.findAppSegmentsInRange(c,d.byteLength))!==void 0){T.next=28;break}return T.abrupt("return");case 28:T.next=14;break;case 30:case"end":return T.stop()}},"_callee7$"),a,this)},"_callee7")));function o(){return i.apply(this,arguments)}return n(o,"findAppSegments"),o}()},{key:"findAppSegmentsInRange",value:n(function(o,a){a-=2;for(var u,c,l,d,y,m,b=this.file,w=this.findAll,S=this.wanted,P=this.remaining,R=this.options;o<a;o++)if(b.getUint8(o)===255){if(u=b.getUint8(o+1),mXe(u)){if(c=b.getUint16(o+2),l=gXe(b,o,c),l&&S.has(l)&&(d=Fn.get(l),y=d.findPosition(b,o),m=R[l],y.type=l,this.appSegments.push(y),!w&&(d.multiSegment&&m.multiSegment?(this.unfinishedMultiSegment=y.chunkNumber<y.chunkCount,this.unfinishedMultiSegment||P.delete(l)):P.delete(l),P.size===0)))break;R.recordUnknownSegments&&(y=hf.findPosition(b,o),y.marker=u,this.unknownSegments.push(y)),o+=c+1}else if(yXe(u)){if(c=b.getUint16(o+2),u===218&&R.stopAfterSos!==!1)return;R.recordJpegSegments&&this.jpegSegments.push({offset:o,length:c,marker:u}),o+=c+1}}return o},"findAppSegmentsInRange")},{key:"mergeMultiSegments",value:n(function(){var o=this;if(this.appSegments.some(function(u){return u.multiSegment})){var a=function(u,c){for(var l,d,y,m=new Map,b=0;b<u.length;b++)l=u[b],d=l[c],m.has(d)?y=m.get(d):m.set(d,y=[]),y.push(l);return Array.from(m)}(this.appSegments,"type");this.mergedAppSegments=a.map(function(u){var c=ai(u,2),l=c[0],d=c[1],y=Fn.get(l,o.options);return y.handleMultiSegments?{type:l,chunk:y.handleMultiSegments(d)}:d[0]})}},"mergeMultiSegments")},{key:"getSegment",value:n(function(o){return this.appSegments.find(function(a){return a.type===o})},"getSegment")},{key:"getOrFindSegment",value:function(){var i=er(he().mark(n(function a(u){var c;return he().wrap(n(function(d){for(;;)switch(d.prev=d.next){case 0:if(c=this.getSegment(u),d.t0=c===void 0,!d.t0){d.next=6;break}return d.next=5,this.findAppSegments(0,[u]);case 5:c=this.getSegment(u);case 6:return d.abrupt("return",c);case 7:case"end":return d.stop()}},"_callee8$"),a,this)},"_callee8")));function o(a){return i.apply(this,arguments)}return n(o,"getOrFindSegment"),o}()}],[{key:"canHandle",value:n(function(o,a){return a===65496},"canHandle")}]),t}(function(){function r(e,t,i){var o=this;jt(this,r),rr(this,"errors",[]),rr(this,"ensureSegmentChunk",function(){var a=er(he().mark(n(function u(c){var l,d;return he().wrap(n(function(m){for(;;)switch(m.prev=m.next){case 0:if(l=c.start,d=c.size||65536,!o.file.chunked){m.next=17;break}if(!o.file.available(l,d)){m.next=6;break}c.chunk=o.file.subarray(l,d),m.next=15;break;case 6:return m.prev=6,m.next=9,o.file.readChunk(l,d);case 9:c.chunk=m.sent,m.next=15;break;case 12:m.prev=12,m.t0=m.catch(6),dt("Couldn't read segment: ".concat(JSON.stringify(c),". ").concat(m.t0.message));case 15:m.next=18;break;case 17:o.file.byteLength>l+d?c.chunk=o.file.subarray(l,d):c.size===void 0?c.chunk=o.file.subarray(l):dt("Segment unreachable: "+JSON.stringify(c));case 18:return m.abrupt("return",c.chunk);case 19:case"end":return m.stop()}},"_callee9$"),u,null,[[6,12]])},"_callee9")));return function(u){return a.apply(this,arguments)}}()),this.extendOptions&&this.extendOptions(e),this.options=e,this.file=t,this.parsers=i}return n(r,"_class"),Ft(r,[{key:"injectSegment",value:n(function(t,i){this.options[t].enabled&&this.createParser(t,i)},"injectSegment")},{key:"createParser",value:n(function(t,i){var o=new(Fn.get(t))(i,this.options,this.file);return this.parsers[t]=o},"createParser")},{key:"createParsers",value:n(function(t){var i=cr(t),o;try{for(i.s();!(o=i.n()).done;){var a=o.value,u=a.type,c=a.chunk,l=this.options[u];if(l&&l.enabled){var d=this.parsers[u];d&&d.append||d||this.createParser(u,c)}}}catch(y){i.e(y)}finally{i.f()}},"createParsers")},{key:"readSegments",value:function(){var e=er(he().mark(n(function i(o){var a;return he().wrap(n(function(c){for(;;)switch(c.prev=c.next){case 0:return a=o.map(this.ensureSegmentChunk),c.next=3,Promise.all(a);case 3:case"end":return c.stop()}},"_callee10$"),i,this)},"_callee10")));function t(i){return e.apply(this,arguments)}return n(t,"readSegments"),t}()}]),r}());rr(DY,"type","jpeg"),T0.set("jpeg",DY);var bXe=[void 0,1,1,2,4,8,1,1,2,4,8,4,8,4],wXe=function(r){ua(t,r);var e=sa(t);function t(){return jt(this,t),e.apply(this,arguments)}return n(t,"se"),Ft(t,[{key:"parseHeader",value:n(function(){var o=this.chunk.getUint16();o===18761?this.le=!0:o===19789&&(this.le=!1),this.chunk.le=this.le,this.headerParsed=!0},"parseHeader")},{key:"parseTags",value:n(function(o,a){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new Map,c=this.options[a],l=c.pick,d=c.skip;l=new Set(l);var y=l.size>0,m=d.size===0,b=this.chunk.getUint16(o);o+=2;for(var w=0;w<b;w++){var S=this.chunk.getUint16(o);if(y){if(l.has(S)&&(u.set(S,this.parseTag(o,S,a)),l.delete(S),l.size===0))break}else!m&&d.has(S)||u.set(S,this.parseTag(o,S,a));o+=12}return u},"parseTags")},{key:"parseTag",value:n(function(o,a,u){var c=this.chunk,l=c.getUint16(o+2),d=c.getUint32(o+4),y=bXe[l];if(y*d<=4?o+=8:o=c.getUint32(o+8),(l<1||l>13)&&dt("Invalid TIFF value type. block: ".concat(u.toUpperCase(),", tag: ").concat(a.toString(16),", type: ").concat(l,", offset ").concat(o)),o>c.byteLength&&dt("Invalid TIFF value offset. block: ".concat(u.toUpperCase(),", tag: ").concat(a.toString(16),", type: ").concat(l,", offset ").concat(o," is outside of chunk size ").concat(c.byteLength)),l===1)return c.getUint8Array(o,d);if(l===2)return(m=function(P){for(;P.endsWith("\0");)P=P.slice(0,-1);return P}(m=c.getString(o,d)).trim())===""?void 0:m;var m;if(l===7)return c.getUint8Array(o,d);if(d===1)return this.parseTagValue(l,o);{for(var b=new(function(P){switch(P){case 1:return Uint8Array;case 3:return Uint16Array;case 4:return Uint32Array;case 5:return Array;case 6:return Int8Array;case 8:return Int16Array;case 9:return Int32Array;case 10:return Array;case 11:return Float32Array;case 12:return Float64Array;default:return Array}}(l))(d),w=y,S=0;S<d;S++)b[S]=this.parseTagValue(l,o),o+=w;return b}},"parseTag")},{key:"parseTagValue",value:n(function(o,a){var u=this.chunk;switch(o){case 1:return u.getUint8(a);case 3:return u.getUint16(a);case 4:return u.getUint32(a);case 5:return u.getUint32(a)/u.getUint32(a+4);case 6:return u.getInt8(a);case 8:return u.getInt16(a);case 9:return u.getInt32(a);case 10:return u.getInt32(a)/u.getInt32(a+4);case 11:return u.getFloat(a);case 12:return u.getDouble(a);case 13:return u.getUint32(a);default:dt("Invalid tiff type ".concat(o))}},"parseTagValue")}]),t}(hf),uq=function(r){ua(t,r);var e=sa(t);function t(){return jt(this,t),e.apply(this,arguments)}return n(t,"ie"),Ft(t,[{key:"parse",value:function(){var i=er(he().mark(n(function a(){var u;return he().wrap(n(function(l){for(;;)switch(l.prev=l.next){case 0:if(this.parseHeader(),u=this.options,l.t0=u.ifd0.enabled,!l.t0){l.next=6;break}return l.next=6,this.parseIfd0Block();case 6:if(l.t1=u.exif.enabled,!l.t1){l.next=10;break}return l.next=10,this.safeParse("parseExifBlock");case 10:if(l.t2=u.gps.enabled,!l.t2){l.next=14;break}return l.next=14,this.safeParse("parseGpsBlock");case 14:if(l.t3=u.interop.enabled,!l.t3){l.next=18;break}return l.next=18,this.safeParse("parseInteropBlock");case 18:if(l.t4=u.ifd1.enabled,!l.t4){l.next=22;break}return l.next=22,this.safeParse("parseThumbnailBlock");case 22:return l.abrupt("return",this.createOutput());case 23:case"end":return l.stop()}},"_callee11$"),a,this)},"_callee11")));function o(){return i.apply(this,arguments)}return n(o,"parse"),o}()},{key:"safeParse",value:n(function(o){var a=this[o]();return a.catch!==void 0&&(a=a.catch(this.handleError)),a},"safeParse")},{key:"findIfd0Offset",value:n(function(){this.ifd0Offset===void 0&&(this.ifd0Offset=this.chunk.getUint32(4))},"findIfd0Offset")},{key:"findIfd1Offset",value:n(function(){if(this.ifd1Offset===void 0){this.findIfd0Offset();var o=this.chunk.getUint16(this.ifd0Offset),a=this.ifd0Offset+2+12*o;this.ifd1Offset=this.chunk.getUint32(a)}},"findIfd1Offset")},{key:"parseBlock",value:n(function(o,a){var u=new Map;return this[a]=u,this.parseTags(o,a,u),u},"parseBlock")},{key:"parseIfd0Block",value:function(){var i=er(he().mark(n(function a(){var u,c;return he().wrap(n(function(d){for(;;)switch(d.prev=d.next){case 0:if(!this.ifd0){d.next=2;break}return d.abrupt("return");case 2:if(u=this.file,this.findIfd0Offset(),this.ifd0Offset<8&&dt("Malformed EXIF data"),!u.chunked&&this.ifd0Offset>u.byteLength&&dt("IFD0 offset points to outside of file.\nthis.ifd0Offset: ".concat(this.ifd0Offset,", file.byteLength: ").concat(u.byteLength)),d.t0=u.tiff,!d.t0){d.next=10;break}return d.next=10,u.ensureChunk(this.ifd0Offset,FY(this.options));case 10:return c=this.parseBlock(this.ifd0Offset,"ifd0"),d.abrupt("return",c.size!==0?(this.exifOffset=c.get(34665),this.interopOffset=c.get(40965),this.gpsOffset=c.get(34853),this.xmp=c.get(700),this.iptc=c.get(33723),this.icc=c.get(34675),this.options.sanitize&&(c.delete(34665),c.delete(40965),c.delete(34853),c.delete(700),c.delete(33723),c.delete(34675)),c):void 0);case 12:case"end":return d.stop()}},"_callee12$"),a,this)},"_callee12")));function o(){return i.apply(this,arguments)}return n(o,"parseIfd0Block"),o}()},{key:"parseExifBlock",value:function(){var i=er(he().mark(n(function a(){var u;return he().wrap(n(function(l){for(;;)switch(l.prev=l.next){case 0:if(!this.exif){l.next=2;break}return l.abrupt("return");case 2:if(l.t0=this.ifd0,l.t0){l.next=6;break}return l.next=6,this.parseIfd0Block();case 6:if(this.exifOffset!==void 0){l.next=8;break}return l.abrupt("return");case 8:if(l.t1=this.file.tiff,!l.t1){l.next=12;break}return l.next=12,this.file.ensureChunk(this.exifOffset,FY(this.options));case 12:return u=this.parseBlock(this.exifOffset,"exif"),l.abrupt("return",(this.interopOffset||(this.interopOffset=u.get(40965)),this.makerNote=u.get(37500),this.userComment=u.get(37510),this.options.sanitize&&(u.delete(40965),u.delete(37500),u.delete(37510)),this.unpack(u,41728),this.unpack(u,41729),u));case 14:case"end":return l.stop()}},"_callee13$"),a,this)},"_callee13")));function o(){return i.apply(this,arguments)}return n(o,"parseExifBlock"),o}()},{key:"unpack",value:n(function(o,a){var u=o.get(a);u&&u.length===1&&o.set(a,u[0])},"unpack")},{key:"parseGpsBlock",value:function(){var i=er(he().mark(n(function a(){var u;return he().wrap(n(function(l){for(;;)switch(l.prev=l.next){case 0:if(!this.gps){l.next=2;break}return l.abrupt("return");case 2:if(l.t0=this.ifd0,l.t0){l.next=6;break}return l.next=6,this.parseIfd0Block();case 6:if(this.gpsOffset!==void 0){l.next=8;break}return l.abrupt("return");case 8:return u=this.parseBlock(this.gpsOffset,"gps"),l.abrupt("return",(u&&u.has(2)&&u.has(4)&&(u.set("latitude",MY.apply(void 0,vf(u.get(2)).concat([u.get(1)]))),u.set("longitude",MY.apply(void 0,vf(u.get(4)).concat([u.get(3)])))),u));case 10:case"end":return l.stop()}},"_callee14$"),a,this)},"_callee14")));function o(){return i.apply(this,arguments)}return n(o,"parseGpsBlock"),o}()},{key:"parseInteropBlock",value:function(){var i=er(he().mark(n(function a(){return he().wrap(n(function(c){for(;;)switch(c.prev=c.next){case 0:if(c.t0=!this.interop,!c.t0){c.next=11;break}if(c.t1=this.ifd0,c.t1){c.next=6;break}return c.next=6,this.parseIfd0Block();case 6:if(c.t2=this.interopOffset!==void 0||this.exif,c.t2){c.next=10;break}return c.next=10,this.parseExifBlock();case 10:c.t0=this.interopOffset!==void 0;case 11:if(!c.t0){c.next=13;break}return c.abrupt("return",this.parseBlock(this.interopOffset,"interop"));case 13:case"end":return c.stop()}},"_callee15$"),a,this)},"_callee15")));function o(){return i.apply(this,arguments)}return n(o,"parseInteropBlock"),o}()},{key:"parseThumbnailBlock",value:function(){var i=er(he().mark(n(function a(){var u,c=arguments;return he().wrap(n(function(d){for(;;)switch(d.prev=d.next){case 0:if(u=c.length>0&&c[0]!==void 0?c[0]:!1,!(!this.ifd1&&!this.ifd1Parsed&&(!this.options.mergeOutput||u))){d.next=3;break}return d.abrupt("return",(this.findIfd1Offset(),this.ifd1Offset>0&&(this.parseBlock(this.ifd1Offset,"ifd1"),this.ifd1Parsed=!0),this.ifd1));case 3:case"end":return d.stop()}},"_callee16$"),a,this)},"_callee16")));function o(){return i.apply(this,arguments)}return n(o,"parseThumbnailBlock"),o}()},{key:"extractThumbnail",value:function(){var i=er(he().mark(n(function a(){var u,c;return he().wrap(n(function(d){for(;;)switch(d.prev=d.next){case 0:if(this.headerParsed||this.parseHeader(),d.t0=this.ifd1Parsed,d.t0){d.next=5;break}return d.next=5,this.parseThumbnailBlock(!0);case 5:if(this.ifd1!==void 0){d.next=7;break}return d.abrupt("return");case 7:return u=this.ifd1.get(513),c=this.ifd1.get(514),d.abrupt("return",this.chunk.getUint8Array(u,c));case 9:case"end":return d.stop()}},"_callee17$"),a,this)},"_callee17")));function o(){return i.apply(this,arguments)}return n(o,"extractThumbnail"),o}()},{key:"image",get:n(function(){return this.ifd0},"get")},{key:"thumbnail",get:n(function(){return this.ifd1},"get")},{key:"createOutput",value:n(function(){for(var o,a,u,c={},l=0,d=Wr;l<d.length;l++)if(a=d[l],o=this[a],!nX(o))if(u=this.canTranslate?this.translateBlock(o,a):Object.fromEntries(o),this.options.mergeOutput){if(a==="ifd1")continue;Object.assign(c,u)}else c[a]=u;return this.makerNote&&(c.makerNote=this.makerNote),this.userComment&&(c.userComment=this.userComment),c},"createOutput")},{key:"assignToOutput",value:n(function(o,a){if(this.globalOptions.mergeOutput)Object.assign(o,a);else for(var u=0,c=Object.entries(a);u<c.length;u++){var l=ai(c[u],2),d=l[0],y=l[1];this.assignObjectToOutput(o,d,y)}},"assignToOutput")}],[{key:"canHandle",value:n(function(o,a){return o.getUint8(a+1)===225&&o.getUint32(a+4)===1165519206&&o.getUint16(a+8)===0},"canHandle")}]),t}(wXe);function MY(r,e,t,i){var o=r+e/60+t/3600;return i!=="S"&&i!=="W"||(o*=-1),o}n(MY,"ne");rr(uq,"type","tiff"),rr(uq,"headerLength",10),Fn.set("tiff",uq);var KTr=Object.freeze({__proto__:null,default:vXe,Exifr:I0,fileParsers:T0,segmentParsers:Fn,fileReaders:Iv,tagKeys:qv,tagValues:Sq,tagRevivers:Oq,createDictionary:iX,extendDictionary:aX,fetchUrlAsArrayBuffer:_0,readBlobAsArrayBuffer:Rv,chunkedProps:cf,otherSegments:R0,segments:Av,tiffBlocks:Wr,segmentsAndBlocks:ff,tiffExtractables:pf,inheritables:A0,allFormatters:df,Options:kv,parse:uX}),Pq={ifd0:!1,ifd1:!1,exif:!1,gps:!1,interop:!1,sanitize:!1,reviveValues:!0,translateKeys:!1,translateValues:!1,mergeOutput:!1},YTr=Object.assign({},Pq,{firstChunkSize:4e4,gps:[1,2,3,4]});var XTr=Object.assign({},Pq,{tiff:!1,ifd1:!0,mergeOutput:!1});var SXe=Object.assign({},Pq,{firstChunkSize:4e4,ifd0:[274]});function OXe(r){return mq.apply(this,arguments)}n(OXe,"ce");function mq(){return mq=er(he().mark(n(function r(e){var t,i;return he().wrap(n(function(a){for(;;)switch(a.prev=a.next){case 0:return t=new I0(SXe),a.next=3,t.read(e);case 3:return a.next=5,t.parse();case 5:if(i=a.sent,!(i&&i.ifd0)){a.next=8;break}return a.abrupt("return",i.ifd0[274]);case 8:case"end":return a.stop()}},"_callee32$"),r)},"_callee32"))),mq.apply(this,arguments)}n(mq,"_ce");var PXe=Object.freeze({1:{dimensionSwapped:!1,scaleX:1,scaleY:1,deg:0,rad:0},2:{dimensionSwapped:!1,scaleX:-1,scaleY:1,deg:0,rad:0},3:{dimensionSwapped:!1,scaleX:1,scaleY:1,deg:180,rad:180*Math.PI/180},4:{dimensionSwapped:!1,scaleX:-1,scaleY:1,deg:180,rad:180*Math.PI/180},5:{dimensionSwapped:!0,scaleX:1,scaleY:-1,deg:90,rad:90*Math.PI/180},6:{dimensionSwapped:!0,scaleX:1,scaleY:1,deg:90,rad:90*Math.PI/180},7:{dimensionSwapped:!0,scaleX:1,scaleY:-1,deg:270,rad:270*Math.PI/180},8:{dimensionSwapped:!0,scaleX:1,scaleY:1,deg:270,rad:270*Math.PI/180}}),Pv=!0,_v=!0;(typeof navigator=="undefined"?"undefined":qi(navigator))=="object"&&(aa=navigator.userAgent,aa.includes("iPad")||aa.includes("iPhone")?(sq=aa.match(/OS (\d+)_(\d+)/),sq&&(lq=ai(sq,3),UY=lq[1],uu=lq[2],P0=Number(UY)+.1*Number(uu),Pv=P0<13.4,_v=!1)):aa.includes("OS X 10")&&(BY=aa.match(/OS X 10[_.](\d+)/),$Y=ai(BY,2),GY=$Y[1],Pv=_v=Number(GY)<15),aa.includes("Chrome/")?(zY=aa.match(/Chrome\/(\d+)/),HY=ai(zY,2),WY=HY[1],Pv=_v=Number(WY)<81):aa.includes("Firefox/")&&(VY=aa.match(/Firefox\/(\d+)/),KY=ai(VY,2),YY=KY[1],Pv=_v=Number(YY)<77));var aa,sq,lq,UY,uu,P0,BY,$Y,GY,zY,HY,WY,VY,KY,YY;function sX(r){return gq.apply(this,arguments)}n(sX,"ye");function gq(){return gq=er(he().mark(n(function r(e){var t;return he().wrap(n(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,OXe(e);case 2:return t=o.sent,o.abrupt("return",Object.assign({canvas:Pv,css:_v},PXe[t]));case 4:case"end":return o.stop()}},"_callee33$"),r)},"_callee33"))),gq.apply(this,arguments)}n(gq,"_ye");var _Xe=function(r){ua(t,r);var e=sa(t);function t(){var i;jt(this,t);for(var o=arguments.length,a=new Array(o),u=0;u<o;u++)a[u]=arguments[u];return i=e.call.apply(e,[this].concat(a)),rr(jn(i),"ranges",new EXe),i.byteLength!==0&&i.ranges.add(0,i.byteLength),i}return n(t,"be"),Ft(t,[{key:"_tryExtend",value:n(function(o,a,u){if(o===0&&this.byteLength===0&&u){var c=new DataView(u.buffer||u,u.byteOffset,u.byteLength);this._swapDataView(c)}else{var l=o+a;if(l>this.byteLength){var d=this._extend(l),y=d.dataView;this._swapDataView(y)}}},"_tryExtend")},{key:"_extend",value:n(function(o){var a;a=tX?rX.allocUnsafe(o):new Uint8Array(o);var u=new DataView(a.buffer,a.byteOffset,a.byteLength);return a.set(new Uint8Array(this.buffer,this.byteOffset,this.byteLength),0),{uintView:a,dataView:u}},"_extend")},{key:"subarray",value:n(function(o,a){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return a=a||this._lengthToEnd(o),u&&this._tryExtend(o,a),this.ranges.add(o,a),As(oa(t.prototype),"subarray",this).call(this,o,a)},"subarray")},{key:"set",value:n(function(o,a){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;u&&this._tryExtend(a,o.byteLength,o);var c=As(oa(t.prototype),"set",this).call(this,o,a);return this.ranges.add(a,c.byteLength),c},"set")},{key:"ensureChunk",value:function(){var i=er(he().mark(n(function a(u,c){return he().wrap(n(function(d){for(;;)switch(d.prev=d.next){case 0:if(d.t0=this.chunked,!d.t0){d.next=6;break}if(d.t1=this.ranges.available(u,c),d.t1){d.next=6;break}return d.next=6,this.readChunk(u,c);case 6:case"end":return d.stop()}},"_callee18$"),a,this)},"_callee18")));function o(a,u){return i.apply(this,arguments)}return n(o,"ensureChunk"),o}()},{key:"available",value:n(function(o,a){return this.ranges.available(o,a)},"available")}]),t}(Tv),EXe=function(){function r(){jt(this,r),rr(this,"list",[])}return n(r,"we"),Ft(r,[{key:"length",get:n(function(){return this.list.length},"get")},{key:"add",value:n(function(t,i){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=t+i,u=this.list.filter(function(l){return XY(t,l.offset,a)||XY(t,l.end,a)});if(u.length>0){t=Math.min.apply(Math,[t].concat(vf(u.map(function(l){return l.offset})))),a=Math.max.apply(Math,[a].concat(vf(u.map(function(l){return l.end})))),i=a-t;var c=u.shift();c.offset=t,c.length=i,c.end=a,this.list=this.list.filter(function(l){return!u.includes(l)})}else this.list.push({offset:t,length:i,end:a})},"add")},{key:"available",value:n(function(t,i){var o=t+i;return this.list.some(function(a){return a.offset<=t&&o<=a.end})},"available")}]),r}();function XY(r,e,t){return r<=e&&e<=t}n(XY,"ke");var TXe=function(r){ua(t,r);var e=sa(t);function t(i,o){var a;return jt(this,t),a=e.call(this,0),rr(jn(a),"chunksRead",0),a.input=i,a.options=o,a}return n(t,"Oe"),Ft(t,[{key:"readWhole",value:function(){var i=er(he().mark(n(function a(){return he().wrap(n(function(c){for(;;)switch(c.prev=c.next){case 0:return this.chunked=!1,c.next=3,this.readChunk(this.nextChunkOffset);case 3:case"end":return c.stop()}},"_callee19$"),a,this)},"_callee19")));function o(){return i.apply(this,arguments)}return n(o,"readWhole"),o}()},{key:"readChunked",value:function(){var i=er(he().mark(n(function a(){return he().wrap(n(function(c){for(;;)switch(c.prev=c.next){case 0:return this.chunked=!0,c.next=3,this.readChunk(0,this.options.firstChunkSize);case 3:case"end":return c.stop()}},"_callee20$"),a,this)},"_callee20")));function o(){return i.apply(this,arguments)}return n(o,"readChunked"),o}()},{key:"readNextChunk",value:function(){var i=er(he().mark(n(function a(){var u,c,l,d=arguments;return he().wrap(n(function(m){for(;;)switch(m.prev=m.next){case 0:if(u=d.length>0&&d[0]!==void 0?d[0]:this.nextChunkOffset,!this.fullyRead){m.next=3;break}return m.abrupt("return",(this.chunksRead++,!1));case 3:return c=this.options.chunkSize,m.next=6,this.readChunk(u,c);case 6:return l=m.sent,m.abrupt("return",!!l&&l.byteLength===c);case 8:case"end":return m.stop()}},"_callee21$"),a,this)},"_callee21")));function o(){return i.apply(this,arguments)}return n(o,"readNextChunk"),o}()},{key:"readChunk",value:function(){var i=er(he().mark(n(function a(u,c){return he().wrap(n(function(d){for(;;)switch(d.prev=d.next){case 0:if(this.chunksRead++,(c=this.safeWrapAddress(u,c))===0){d.next=2;break}return d.abrupt("return",this._readChunk(u,c));case 2:case"end":return d.stop()}},"_callee22$"),a,this)},"_callee22")));function o(a,u){return i.apply(this,arguments)}return n(o,"readChunk"),o}()},{key:"safeWrapAddress",value:n(function(o,a){return this.size!==void 0&&o+a>this.size?Math.max(0,this.size-o):a},"safeWrapAddress")},{key:"nextChunkOffset",get:n(function(){if(this.ranges.list.length!==0)return this.ranges.list[0].length},"get")},{key:"canReadNextChunk",get:n(function(){return this.chunksRead<this.options.chunkLimit},"get")},{key:"fullyRead",get:n(function(){return this.size!==void 0&&this.nextChunkOffset===this.size},"get")},{key:"read",value:n(function(){return this.options.chunked?this.readChunked():this.readWhole()},"read")},{key:"close",value:n(function(){},"close")}]),t}(_Xe);Iv.set("blob",function(r){ua(t,r);var e=sa(t);function t(){return jt(this,t),e.apply(this,arguments)}return n(t,"_class2"),Ft(t,[{key:"readWhole",value:function(){var i=er(he().mark(n(function a(){var u;return he().wrap(n(function(l){for(;;)switch(l.prev=l.next){case 0:return this.chunked=!1,l.next=3,Rv(this.input);case 3:u=l.sent,this._swapArrayBuffer(u);case 5:case"end":return l.stop()}},"_callee23$"),a,this)},"_callee23")));function o(){return i.apply(this,arguments)}return n(o,"readWhole"),o}()},{key:"readChunked",value:n(function(){return this.chunked=!0,this.size=this.input.size,As(oa(t.prototype),"readChunked",this).call(this)},"readChunked")},{key:"_readChunk",value:function(){var i=er(he().mark(n(function a(u,c){var l,d,y;return he().wrap(n(function(b){for(;;)switch(b.prev=b.next){case 0:return l=c?u+c:void 0,d=this.input.slice(u,l),b.next=4,Rv(d);case 4:return y=b.sent,b.abrupt("return",this.set(y,u,!0));case 6:case"end":return b.stop()}},"_callee24$"),a,this)},"_callee24")));function o(a,u){return i.apply(this,arguments)}return n(o,"_readChunk"),o}()}]),t}(TXe));var lX={strings:{generatingThumbnails:"Generating thumbnails..."}};function yf(r){"@babel/helpers - typeof";return yf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yf(r)}n(yf,"_typeof");function RXe(r,e){return kXe(r)||qXe(r,e)||IXe(r,e)||AXe()}n(RXe,"_slicedToArray");function AXe(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n(AXe,"_nonIterableRest");function IXe(r,e){if(r){if(typeof r=="string")return cX(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return cX(r,e)}}n(IXe,"_unsupportedIterableToArray");function cX(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=r[t];return i}n(cX,"_arrayLikeToArray");function qXe(r,e){var t=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var i,o,a,u,c=[],l=!0,d=!1;try{if(a=(t=t.call(r)).next,e===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(i=a.call(t)).done)&&(c.push(i.value),c.length!==e);l=!0);}catch(y){d=!0,o=y}finally{try{if(!l&&t.return!=null&&(u=t.return(),Object(u)!==u))return}finally{if(d)throw o}}return c}}n(qXe,"_iterableToArrayLimit");function kXe(r){if(Array.isArray(r))return r}n(kXe,"_arrayWithHoles");function fX(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(fX,"ownKeys");function pX(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?fX(Object(t),!0).forEach(function(i){jXe(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):fX(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(pX,"_objectSpread");function jXe(r,e,t){return e=hX(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(jXe,"_defineProperty");function FXe(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(FXe,"_classCallCheck");function dX(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,hX(i.key),i)}}n(dX,"_defineProperties");function CXe(r,e,t){return e&&dX(r.prototype,e),t&&dX(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(CXe,"_createClass");function hX(r){var e=LXe(r,"string");return yf(e)==="symbol"?e:String(e)}n(hX,"_toPropertyKey");function LXe(r,e){if(yf(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(yf(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(LXe,"_toPrimitive");function NXe(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&_q(r,e)}n(NXe,"_inherits");function _q(r,e){return _q=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),_q(r,e)}n(_q,"_setPrototypeOf");function xXe(r){var e=UXe();return n(function(){var i=q0(r),o;if(e){var a=q0(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return DXe(this,o)},"_createSuperInternal")}n(xXe,"_createSuper");function DXe(r,e){if(e&&(yf(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return MXe(r)}n(DXe,"_possibleConstructorReturn");function MXe(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(MXe,"_assertThisInitialized");function UXe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(UXe,"_isNativeReflectConstruct");function q0(r){return q0=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),q0(r)}n(q0,"_getPrototypeOf");var BXe={version:"3.0.6"};function $Xe(r,e,t){try{r.getContext("2d").getImageData(0,0,1,1)}catch(i){if(i.code===18)return Promise.reject(new Error("cannot read image, probably an svg with external resources"))}return r.toBlob?new Promise(function(i){r.toBlob(i,e,t)}).then(function(i){if(i===null)throw new Error("cannot read image, probably an svg with external resources");return i}):Promise.resolve().then(function(){return iq(r.toDataURL(e,t),{})}).then(function(i){if(i===null)throw new Error("could not extract blob, probably an old browser");return i})}n($Xe,"canvasToBlob");function GXe(r,e){var t=r.width,i=r.height;(e.deg===90||e.deg===270)&&(t=r.height,i=r.width);var o=document.createElement("canvas");o.width=t,o.height=i;var a=o.getContext("2d");return a.translate(t/2,i/2),e.canvas&&(a.rotate(e.rad),a.scale(e.scaleX,e.scaleY)),a.drawImage(r,-r.width/2,-r.height/2,r.width,r.height),o}n(GXe,"rotateImage");function zXe(r){var e=r.width/r.height,t=5e6,i=4096,o=Math.floor(Math.sqrt(t*e)),a=Math.floor(t/Math.sqrt(t*e));if(o>i&&(o=i,a=Math.round(o/e)),a>i&&(a=i,o=Math.round(e*a)),r.width>o){var u=document.createElement("canvas");return u.width=o,u.height=a,u.getContext("2d").drawImage(r,0,0,o,a),u}return r}n(zXe,"protect");var jv=function(r){NXe(t,r);var e=xXe(t);function t(i,o){var a;FXe(this,t),a=e.call(this,i,o),a.onFileAdded=function(c){!c.preview&&c.data&&Zc(c.type)&&!c.isRemote&&a.addToQueue(c.id)},a.onCancelRequest=function(c){var l=a.queue.indexOf(c.id);l!==-1&&a.queue.splice(l,1)},a.onFileRemoved=function(c){var l=a.queue.indexOf(c.id);l!==-1&&a.queue.splice(l,1),c.preview&&w0(c.preview)&&URL.revokeObjectURL(c.preview)},a.onRestored=function(){var c=a.uppy.getFiles().filter(function(l){return l.isRestored});c.forEach(function(l){(!l.preview||w0(l.preview))&&a.addToQueue(l.id)})},a.onAllFilesRemoved=function(){a.queue=[]},a.waitUntilAllProcessed=function(c){c.forEach(function(d){var y=a.uppy.getFile(d);a.uppy.emit("preprocess-progress",y,{mode:"indeterminate",message:a.i18n("generatingThumbnails")})});var l=n(function(){c.forEach(function(y){var m=a.uppy.getFile(y);a.uppy.emit("preprocess-complete",m)})},"emitPreprocessCompleteForAll");return new Promise(function(d){a.queueProcessing?a.uppy.once("thumbnail:all-generated",function(){l(),d()}):(l(),d())})},a.type="modifier",a.id=a.opts.id||"ThumbnailGenerator",a.title="Thumbnail Generator",a.queue=[],a.queueProcessing=!1,a.defaultThumbnailDimension=200,a.thumbnailType=a.opts.thumbnailType||"image/jpeg",a.defaultLocale=lX;var u={thumbnailWidth:null,thumbnailHeight:null,waitForThumbnailsBeforeUpload:!1,lazy:!1};if(a.opts=pX(pX({},u),o),a.i18nInit(),a.opts.lazy&&a.opts.waitForThumbnailsBeforeUpload)throw new Error("ThumbnailGenerator: The `lazy` and `waitForThumbnailsBeforeUpload` options are mutually exclusive. Please ensure at most one of them is set to `true`.");return a}return n(t,"ThumbnailGenerator"),CXe(t,[{key:"createThumbnail",value:n(function(o,a,u){var c=this,l=URL.createObjectURL(o.data),d=new Promise(function(m,b){var w=new Image;w.src=l,w.addEventListener("load",function(){URL.revokeObjectURL(l),m(w)}),w.addEventListener("error",function(S){URL.revokeObjectURL(l),b(S.error||new Error("Could not create thumbnail"))})}),y=sX(o.data).catch(function(){return 1});return Promise.all([d,y]).then(function(m){var b=RXe(m,2),w=b[0],S=b[1],P=c.getProportionalDimensions(w,a,u,S.deg),R=GXe(w,S),I=c.resizeImage(R,P.width,P.height);return $Xe(I,c.thumbnailType,80)}).then(function(m){return URL.createObjectURL(m)})},"createThumbnail")},{key:"getProportionalDimensions",value:n(function(o,a,u,c){var l=o.width/o.height;return(c===90||c===270)&&(l=o.height/o.width),a!=null?{width:a,height:Math.round(a/l)}:u!=null?{width:Math.round(u*l),height:u}:{width:this.defaultThumbnailDimension,height:Math.round(this.defaultThumbnailDimension/l)}},"getProportionalDimensions")},{key:"resizeImage",value:n(function(o,a,u){var c=zXe(o),l=Math.ceil(Math.log2(c.width/a));l<1&&(l=1);for(var d=a*Math.pow(2,l-1),y=u*Math.pow(2,l-1),m=2;l--;){var b=document.createElement("canvas");b.width=d,b.height=y,b.getContext("2d").drawImage(c,0,0,d,y),c=b,d=Math.round(d/m),y=Math.round(y/m)}return c},"resizeImage")},{key:"setPreviewURL",value:n(function(o,a){this.uppy.setFileState(o,{preview:a})},"setPreviewURL")},{key:"addToQueue",value:n(function(o){this.queue.push(o),this.queueProcessing===!1&&this.processQueue()},"addToQueue")},{key:"processQueue",value:n(function(){var o=this;if(this.queueProcessing=!0,this.queue.length>0){var a=this.uppy.getFile(this.queue.shift());return a?this.requestThumbnail(a).catch(function(){}).then(function(){return o.processQueue()}):(this.uppy.log("[ThumbnailGenerator] file was removed before a thumbnail could be generated, but not removed from the queue. This is probably a bug","error"),Promise.resolve())}return this.queueProcessing=!1,this.uppy.log("[ThumbnailGenerator] Emptied thumbnail queue"),this.uppy.emit("thumbnail:all-generated"),Promise.resolve()},"processQueue")},{key:"requestThumbnail",value:n(function(o){var a=this;return Zc(o.type)&&!o.isRemote?this.createThumbnail(o,this.opts.thumbnailWidth,this.opts.thumbnailHeight).then(function(u){a.setPreviewURL(o.id,u),a.uppy.log("[ThumbnailGenerator] Generated thumbnail for ".concat(o.id)),a.uppy.emit("thumbnail:generated",a.uppy.getFile(o.id),u)}).catch(function(u){a.uppy.log("[ThumbnailGenerator] Failed thumbnail for ".concat(o.id,":"),"warning"),a.uppy.log(u,"warning"),a.uppy.emit("thumbnail:error",a.uppy.getFile(o.id),u)}):Promise.resolve()},"requestThumbnail")},{key:"install",value:n(function(){this.uppy.on("file-removed",this.onFileRemoved),this.uppy.on("cancel-all",this.onAllFilesRemoved),this.opts.lazy?(this.uppy.on("thumbnail:request",this.onFileAdded),this.uppy.on("thumbnail:cancel",this.onCancelRequest)):(this.uppy.on("file-added",this.onFileAdded),this.uppy.on("restored",this.onRestored)),this.opts.waitForThumbnailsBeforeUpload&&this.uppy.addPreProcessor(this.waitUntilAllProcessed)},"install")},{key:"uninstall",value:n(function(){this.uppy.off("file-removed",this.onFileRemoved),this.uppy.off("cancel-all",this.onAllFilesRemoved),this.opts.lazy?(this.uppy.off("thumbnail:request",this.onFileAdded),this.uppy.off("thumbnail:cancel",this.onCancelRequest)):(this.uppy.off("file-added",this.onFileAdded),this.uppy.off("restored",this.onRestored)),this.opts.waitForThumbnailsBeforeUpload&&this.uppy.removePreProcessor(this.waitUntilAllProcessed)},"uninstall")}]),t}(Ee);jv.VERSION=BXe.version;function Eq(r){"@babel/helpers - typeof";return Eq=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Eq(r)}n(Eq,"_typeof");function k0(r){if(typeof r=="string"){var e=document.querySelectorAll(r);return e.length===0?null:Array.from(e)}return Eq(r)==="object"&&Th(r)?[r]:null}n(k0,"findAllDOMElements");var Vr=Array.from;function vX(r){return KXe(r)||VXe(r)||WXe(r)||HXe()}n(vX,"_toConsumableArray");function HXe(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n(HXe,"_nonIterableSpread");function WXe(r,e){if(r){if(typeof r=="string")return Tq(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Tq(r,e)}}n(WXe,"_unsupportedIterableToArray");function VXe(r){if(typeof Symbol!="undefined"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}n(VXe,"_iterableToArray");function KXe(r){if(Array.isArray(r))return Tq(r)}n(KXe,"_arrayWithoutHoles");function Tq(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=r[t];return i}n(Tq,"_arrayLikeToArray");function j0(r,e,t,i){var o=i.onSuccess;r.readEntries(function(a){var u=[].concat(vX(e),vX(a));a.length?queueMicrotask(function(){j0(r,u,t,{onSuccess:o})}):o(u)},function(a){t(a),o(e)})}n(j0,"getFilesAndDirectoriesFromDirectory");function Rq(r){"@babel/helpers - typeof";return Rq=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rq(r)}n(Rq,"_typeof");function YXe(r,e){var t=typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=XXe(r))||e&&r&&typeof r.length=="number"){t&&(r=t);var i=0,o=n(function(){},"F");return{s:o,n:n(function(){return i>=r.length?{done:!0}:{done:!1,value:r[i++]}},"n"),e:n(function(d){throw d},"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=!0,u=!1,c;return{s:n(function(){t=t.call(r)},"s"),n:n(function(){var d=t.next();return a=d.done,d},"n"),e:n(function(d){u=!0,c=d},"e"),f:n(function(){try{!a&&t.return!=null&&t.return()}finally{if(u)throw c}},"f")}}n(YXe,"_createForOfIteratorHelper");function XXe(r,e){if(r){if(typeof r=="string")return yX(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return yX(r,e)}}n(XXe,"_unsupportedIterableToArray");function yX(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=r[t];return i}n(yX,"_arrayLikeToArray");function mX(r,e,t,i,o,a,u){try{var c=r[a](u),l=c.value}catch(d){t(d);return}c.done?e(l):Promise.resolve(l).then(i,o)}n(mX,"asyncGeneratorStep");function QXe(r){return function(){var e=this,t=arguments;return new Promise(function(i,o){var a=r.apply(e,t);function u(l){mX(a,i,o,u,c,"next",l)}n(u,"_next");function c(l){mX(a,i,o,u,c,"throw",l)}n(c,"_throw"),u(void 0)})}}n(QXe,"_asyncToGenerator");function Ja(){"use strict";Ja=n(function(){return r},"_regeneratorRuntime");var r={},e=Object.prototype,t=e.hasOwnProperty,i=Object.defineProperty||function(p,s,f){p[s]=f.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(p,s,f){return Object.defineProperty(p,s,{value:f,enumerable:!0,configurable:!0,writable:!0}),p[s]}n(l,"define");try{l({},"")}catch(p){l=n(function(f,v,g){return f[v]=g},"define")}function d(p,s,f,v){var g=s&&s.prototype instanceof b?s:b,h=Object.create(g.prototype),O=new V(v||[]);return i(h,"_invoke",{value:U(p,f,O)}),h}n(d,"wrap");function y(p,s,f){try{return{type:"normal",arg:p.call(s,f)}}catch(v){return{type:"throw",arg:v}}}n(y,"tryCatch"),r.wrap=d;var m={};function b(){}n(b,"Generator");function w(){}n(w,"GeneratorFunction");function S(){}n(S,"GeneratorFunctionPrototype");var P={};l(P,a,function(){return this});var R=Object.getPrototypeOf,I=R&&R(R(W([])));I&&I!==e&&t.call(I,a)&&(P=I);var T=S.prototype=b.prototype=Object.create(P);function F(p){["next","throw","return"].forEach(function(s){l(p,s,function(f){return this._invoke(s,f)})})}n(F,"defineIteratorMethods");function k(p,s){function f(g,h,O,E){var A=y(p[g],p,h);if(A.type!=="throw"){var C=A.arg,N=C.value;return N&&Rq(N)=="object"&&t.call(N,"__await")?s.resolve(N.__await).then(function(M){f("next",M,O,E)},function(M){f("throw",M,O,E)}):s.resolve(N).then(function(M){C.value=M,O(C)},function(M){return f("throw",M,O,E)})}E(A.arg)}n(f,"invoke");var v;i(this,"_invoke",{value:n(function(h,O){function E(){return new s(function(A,C){f(h,O,A,C)})}return n(E,"callInvokeWithMethodAndArg"),v=v?v.then(E,E):E()},"value")})}n(k,"AsyncIterator");function U(p,s,f){var v="suspendedStart";return function(g,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(g==="throw")throw h;return Y()}for(f.method=g,f.arg=h;;){var O=f.delegate;if(O){var E=D(O,f);if(E){if(E===m)continue;return E}}if(f.method==="next")f.sent=f._sent=f.arg;else if(f.method==="throw"){if(v==="suspendedStart")throw v="completed",f.arg;f.dispatchException(f.arg)}else f.method==="return"&&f.abrupt("return",f.arg);v="executing";var A=y(p,s,f);if(A.type==="normal"){if(v=f.done?"completed":"suspendedYield",A.arg===m)continue;return{value:A.arg,done:f.done}}A.type==="throw"&&(v="completed",f.method="throw",f.arg=A.arg)}}}n(U,"makeInvokeMethod");function D(p,s){var f=s.method,v=p.iterator[f];if(v===void 0)return s.delegate=null,f==="throw"&&p.iterator.return&&(s.method="return",s.arg=void 0,D(p,s),s.method==="throw")||f!=="return"&&(s.method="throw",s.arg=new TypeError("The iterator does not provide a '"+f+"' method")),m;var g=y(v,p.iterator,s.arg);if(g.type==="throw")return s.method="throw",s.arg=g.arg,s.delegate=null,m;var h=g.arg;return h?h.done?(s[p.resultName]=h.value,s.next=p.nextLoc,s.method!=="return"&&(s.method="next",s.arg=void 0),s.delegate=null,m):h:(s.method="throw",s.arg=new TypeError("iterator result is not an object"),s.delegate=null,m)}n(D,"maybeInvokeDelegate");function H(p){var s={tryLoc:p[0]};1 in p&&(s.catchLoc=p[1]),2 in p&&(s.finallyLoc=p[2],s.afterLoc=p[3]),this.tryEntries.push(s)}n(H,"pushTryEntry");function $(p){var s=p.completion||{};s.type="normal",delete s.arg,p.completion=s}n($,"resetTryEntry");function V(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(H,this),this.reset(!0)}n(V,"Context");function W(p){if(p){var s=p[a];if(s)return s.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var f=-1,v=n(function g(){for(;++f<p.length;)if(t.call(p,f))return g.value=p[f],g.done=!1,g;return g.value=void 0,g.done=!0,g},"next");return v.next=v}}return{next:Y}}n(W,"values");function Y(){return{value:void 0,done:!0}}return n(Y,"doneResult"),w.prototype=S,i(T,"constructor",{value:S,configurable:!0}),i(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),r.isGeneratorFunction=function(p){var s=typeof p=="function"&&p.constructor;return!!s&&(s===w||(s.displayName||s.name)==="GeneratorFunction")},r.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,S):(p.__proto__=S,l(p,c,"GeneratorFunction")),p.prototype=Object.create(T),p},r.awrap=function(p){return{__await:p}},F(k.prototype),l(k.prototype,u,function(){return this}),r.AsyncIterator=k,r.async=function(p,s,f,v,g){g===void 0&&(g=Promise);var h=new k(d(p,s,f,v),g);return r.isGeneratorFunction(s)?h:h.next().then(function(O){return O.done?O.value:h.next()})},F(T),l(T,c,"Generator"),l(T,a,function(){return this}),l(T,"toString",function(){return"[object Generator]"}),r.keys=function(p){var s=Object(p),f=[];for(var v in s)f.push(v);return f.reverse(),n(function g(){for(;f.length;){var h=f.pop();if(h in s)return g.value=h,g.done=!1,g}return g.done=!0,g},"next")},r.values=W,V.prototype={constructor:V,reset:n(function(s){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach($),!s)for(var f in this)f.charAt(0)==="t"&&t.call(this,f)&&!isNaN(+f.slice(1))&&(this[f]=void 0)},"reset"),stop:n(function(){this.done=!0;var s=this.tryEntries[0].completion;if(s.type==="throw")throw s.arg;return this.rval},"stop"),dispatchException:n(function(s){if(this.done)throw s;var f=this;function v(C,N){return O.type="throw",O.arg=s,f.next=C,N&&(f.method="next",f.arg=void 0),!!N}n(v,"handle");for(var g=this.tryEntries.length-1;g>=0;--g){var h=this.tryEntries[g],O=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var E=t.call(h,"catchLoc"),A=t.call(h,"finallyLoc");if(E&&A){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(E){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!A)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},"dispatchException"),abrupt:n(function(s,f){for(var v=this.tryEntries.length-1;v>=0;--v){var g=this.tryEntries[v];if(g.tryLoc<=this.prev&&t.call(g,"finallyLoc")&&this.prev<g.finallyLoc){var h=g;break}}h&&(s==="break"||s==="continue")&&h.tryLoc<=f&&f<=h.finallyLoc&&(h=null);var O=h?h.completion:{};return O.type=s,O.arg=f,h?(this.method="next",this.next=h.finallyLoc,m):this.complete(O)},"abrupt"),complete:n(function(s,f){if(s.type==="throw")throw s.arg;return s.type==="break"||s.type==="continue"?this.next=s.arg:s.type==="return"?(this.rval=this.arg=s.arg,this.method="return",this.next="end"):s.type==="normal"&&f&&(this.next=f),m},"complete"),finish:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.finallyLoc===s)return this.complete(v.completion,v.afterLoc),$(v),m}},"finish"),catch:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.tryLoc===s){var g=v.completion;if(g.type==="throw"){var h=g.arg;$(v)}return h}}throw new Error("illegal catch attempt")},"_catch"),delegateYield:n(function(s,f,v){return this.delegate={iterator:W(s),resultName:f,nextLoc:v},this.method==="next"&&(this.arg=void 0),m},"delegateYield")},r}n(Ja,"_regeneratorRuntime");function Iq(r){return function(){return new Fv(r.apply(this,arguments))}}n(Iq,"_wrapAsyncGenerator");function Fv(r){var e,t;function i(a,u){try{var c=r[a](u),l=c.value,d=l instanceof kq;Promise.resolve(d?l.v:l).then(function(y){if(d){var m=a==="return"?"return":"next";if(!l.k||y.done)return i(m,y);y=r[m](y).value}o(c.done?"return":"normal",y)},function(y){i("throw",y)})}catch(y){o("throw",y)}}n(i,"resume");function o(a,u){switch(a){case"return":e.resolve({value:u,done:!0});break;case"throw":e.reject(u);break;default:e.resolve({value:u,done:!1})}(e=e.next)?i(e.key,e.arg):t=null}n(o,"settle"),this._invoke=function(a,u){return new Promise(function(c,l){var d={key:a,arg:u,resolve:c,reject:l,next:null};t?t=t.next=d:(e=t=d,i(a,u))})},typeof r.return!="function"&&(this.return=void 0)}n(Fv,"_AsyncGenerator");Fv.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},Fv.prototype.next=function(r){return this._invoke("next",r)},Fv.prototype.throw=function(r){return this._invoke("throw",r)},Fv.prototype.return=function(r){return this._invoke("return",r)};function su(r){return new kq(r,0)}n(su,"_awaitAsyncGenerator");function qq(r){var e={},t=!1;function i(o,a){return t=!0,a=new Promise(function(u){u(r[o](a))}),{done:!1,value:new kq(a,1)}}return n(i,"pump"),e[typeof Symbol!="undefined"&&Symbol.iterator||"@@iterator"]=function(){return this},e.next=function(o){return t?(t=!1,o):i("next",o)},typeof r.throw=="function"&&(e.throw=function(o){if(t)throw t=!1,o;return i("throw",o)}),typeof r.return=="function"&&(e.return=function(o){return t?(t=!1,o):i("return",o)}),e}n(qq,"_asyncGeneratorDelegate");function kq(r,e){this.v=r,this.k=e}n(kq,"_OverloadYield");function C0(r){var e,t,i,o=2;for(typeof Symbol!="undefined"&&(t=Symbol.asyncIterator,i=Symbol.iterator);o--;){if(t&&(e=r[t])!=null)return e.call(r);if(i&&(e=r[i])!=null)return new F0(e.call(r));t="@@asyncIterator",i="@@iterator"}throw new TypeError("Object is not async iterable")}n(C0,"_asyncIterator");function F0(r){function e(t){if(Object(t)!==t)return Promise.reject(new TypeError(t+" is not an object."));var i=t.done;return Promise.resolve(t.value).then(function(o){return{value:o,done:i}})}return n(e,"AsyncFromSyncIteratorContinuation"),F0=n(function(i){this.s=i,this.n=i.next},"AsyncFromSyncIterator"),F0.prototype={s:null,n:null,next:n(function(){return e(this.n.apply(this.s,arguments))},"next"),return:n(function(i){var o=this.s.return;return o===void 0?Promise.resolve({value:i,done:!0}):e(o.apply(this.s,arguments))},"_return"),throw:n(function(i){var o=this.s.return;return o===void 0?Promise.reject(i):e(o.apply(this.s,arguments))},"_throw")},new F0(r)}n(F0,"AsyncFromSyncIterator");function gX(r,e){return r==null?r:{kind:r.isFile?"file":r.isDirectory?"directory":void 0,name:r.name,getFile:n(function(){return new Promise(function(i,o){return r.file(i,o)})},"getFile"),values:n(function(){return Iq(Ja().mark(n(function i(){var o,a;return Ja().wrap(n(function(c){for(;;)switch(c.prev=c.next){case 0:return o=r.createReader(),c.next=3,su(new Promise(function(l){j0(o,[],e,{onSuccess:n(function(y){return l(y.map(function(m){return gX(m,e)}))},"onSuccess")})}));case 3:return a=c.sent,c.delegateYield(qq(C0(a),su),"t0",5);case 5:case"end":return c.stop()}},"_callee$"),i)},"_callee")))()},"values"),isSameEntry:void 0}}n(gX,"getAsFileSystemHandleFromEntry");function bX(r,e,t){try{return t===void 0&&(t=void 0),Iq(Ja().mark(n(function i(){var o,a,u,c,l,d,y,m;return Ja().wrap(n(function(w){for(;;)switch(w.prev=w.next){case 0:if(o=n(function(){return"".concat(e,"/").concat(r.name)},"getNextRelativePath"),r.kind!=="file"){w.next=17;break}return w.next=4,su(r.getFile());case 4:if(a=w.sent,a==null){w.next=12;break}return a.relativePath=e?o():null,w.next=10,a;case 10:w.next=15;break;case 12:if(t==null){w.next=15;break}return w.next=15,t;case 15:w.next=51;break;case 17:if(r.kind!=="directory"){w.next=48;break}u=!1,c=!1,w.prev=20,d=C0(r.values());case 22:return w.next=24,su(d.next());case 24:if(!(u=!(y=w.sent).done)){w.next=30;break}return m=y.value,w.delegateYield(qq(C0(bX(m,e?o():r.name)),su),"t0",27);case 27:u=!1,w.next=22;break;case 30:w.next=36;break;case 32:w.prev=32,w.t1=w.catch(20),c=!0,l=w.t1;case 36:if(w.prev=36,w.prev=37,!(u&&d.return!=null)){w.next=41;break}return w.next=41,su(d.return());case 41:if(w.prev=41,!c){w.next=44;break}throw l;case 44:return w.finish(41);case 45:return w.finish(36);case 46:w.next=51;break;case 48:if(t==null){w.next=51;break}return w.next=51,t;case 51:case"end":return w.stop()}},"_callee2$"),i,null,[[20,32,36,46],[37,,41,45]])},"_callee2")))()}catch(i){return Promise.reject(i)}}n(bX,"createPromiseToAddFileOrParseDirectory");function jq(r,e){return Aq.apply(this,arguments)}n(jq,"getFilesFromDataTransfer");function Aq(){return Aq=Iq(Ja().mark(n(function r(e,t){var i,o,a,u,c,l;return Ja().wrap(n(function(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,su(Promise.all(Array.from(e.items,function(){var m=QXe(Ja().mark(n(function b(w){var S,P,R;return Ja().wrap(n(function(T){for(;;)switch(T.prev=T.next){case 0:return R=n(function(){return typeof w.getAsEntry=="function"?w.getAsEntry():w.webkitGetAsEntry()},"getAsEntry"),(S=P)!=null||(P=gX(R(),t)),T.abrupt("return",{fileSystemHandle:P,lastResortFile:w.getAsFile()});case 3:case"end":return T.stop()}},"_callee3$"),b)},"_callee3")));return function(b){return m.apply(this,arguments)}}())));case 2:i=y.sent,o=YXe(i),y.prev=4,o.s();case 6:if((a=o.n()).done){y.next=28;break}if(u=a.value,c=u.lastResortFile,l=u.fileSystemHandle,l==null){y.next=23;break}return y.prev=9,y.delegateYield(qq(C0(bX(l,"",c)),su),"t0",11);case 11:y.next=21;break;case 13:if(y.prev=13,y.t1=y.catch(9),c==null){y.next=20;break}return y.next=18,c;case 18:y.next=21;break;case 20:t(y.t1);case 21:y.next=26;break;case 23:if(c==null){y.next=26;break}return y.next=26,c;case 26:y.next=6;break;case 28:y.next=33;break;case 30:y.prev=30,y.t2=y.catch(4),o.e(y.t2);case 33:return y.prev=33,o.f(),y.finish(33);case 36:case"end":return y.stop()}},"_callee4$"),r,null,[[4,30,33,36],[9,13]])},"_callee4"))),Aq.apply(this,arguments)}n(Aq,"_getFilesFromDataTransfer");function Fq(r){var e=Vr(r.files);return Promise.resolve(e)}n(Fq,"fallbackApi");function Cq(r){"@babel/helpers - typeof";return Cq=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cq(r)}n(Cq,"_typeof");function Lq(){"use strict";Lq=n(function(){return r},"_regeneratorRuntime");var r={},e=Object.prototype,t=e.hasOwnProperty,i=Object.defineProperty||function(p,s,f){p[s]=f.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(p,s,f){return Object.defineProperty(p,s,{value:f,enumerable:!0,configurable:!0,writable:!0}),p[s]}n(l,"define");try{l({},"")}catch(p){l=n(function(f,v,g){return f[v]=g},"define")}function d(p,s,f,v){var g=s&&s.prototype instanceof b?s:b,h=Object.create(g.prototype),O=new V(v||[]);return i(h,"_invoke",{value:U(p,f,O)}),h}n(d,"wrap");function y(p,s,f){try{return{type:"normal",arg:p.call(s,f)}}catch(v){return{type:"throw",arg:v}}}n(y,"tryCatch"),r.wrap=d;var m={};function b(){}n(b,"Generator");function w(){}n(w,"GeneratorFunction");function S(){}n(S,"GeneratorFunctionPrototype");var P={};l(P,a,function(){return this});var R=Object.getPrototypeOf,I=R&&R(R(W([])));I&&I!==e&&t.call(I,a)&&(P=I);var T=S.prototype=b.prototype=Object.create(P);function F(p){["next","throw","return"].forEach(function(s){l(p,s,function(f){return this._invoke(s,f)})})}n(F,"defineIteratorMethods");function k(p,s){function f(g,h,O,E){var A=y(p[g],p,h);if(A.type!=="throw"){var C=A.arg,N=C.value;return N&&Cq(N)=="object"&&t.call(N,"__await")?s.resolve(N.__await).then(function(M){f("next",M,O,E)},function(M){f("throw",M,O,E)}):s.resolve(N).then(function(M){C.value=M,O(C)},function(M){return f("throw",M,O,E)})}E(A.arg)}n(f,"invoke");var v;i(this,"_invoke",{value:n(function(h,O){function E(){return new s(function(A,C){f(h,O,A,C)})}return n(E,"callInvokeWithMethodAndArg"),v=v?v.then(E,E):E()},"value")})}n(k,"AsyncIterator");function U(p,s,f){var v="suspendedStart";return function(g,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(g==="throw")throw h;return Y()}for(f.method=g,f.arg=h;;){var O=f.delegate;if(O){var E=D(O,f);if(E){if(E===m)continue;return E}}if(f.method==="next")f.sent=f._sent=f.arg;else if(f.method==="throw"){if(v==="suspendedStart")throw v="completed",f.arg;f.dispatchException(f.arg)}else f.method==="return"&&f.abrupt("return",f.arg);v="executing";var A=y(p,s,f);if(A.type==="normal"){if(v=f.done?"completed":"suspendedYield",A.arg===m)continue;return{value:A.arg,done:f.done}}A.type==="throw"&&(v="completed",f.method="throw",f.arg=A.arg)}}}n(U,"makeInvokeMethod");function D(p,s){var f=s.method,v=p.iterator[f];if(v===void 0)return s.delegate=null,f==="throw"&&p.iterator.return&&(s.method="return",s.arg=void 0,D(p,s),s.method==="throw")||f!=="return"&&(s.method="throw",s.arg=new TypeError("The iterator does not provide a '"+f+"' method")),m;var g=y(v,p.iterator,s.arg);if(g.type==="throw")return s.method="throw",s.arg=g.arg,s.delegate=null,m;var h=g.arg;return h?h.done?(s[p.resultName]=h.value,s.next=p.nextLoc,s.method!=="return"&&(s.method="next",s.arg=void 0),s.delegate=null,m):h:(s.method="throw",s.arg=new TypeError("iterator result is not an object"),s.delegate=null,m)}n(D,"maybeInvokeDelegate");function H(p){var s={tryLoc:p[0]};1 in p&&(s.catchLoc=p[1]),2 in p&&(s.finallyLoc=p[2],s.afterLoc=p[3]),this.tryEntries.push(s)}n(H,"pushTryEntry");function $(p){var s=p.completion||{};s.type="normal",delete s.arg,p.completion=s}n($,"resetTryEntry");function V(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(H,this),this.reset(!0)}n(V,"Context");function W(p){if(p){var s=p[a];if(s)return s.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var f=-1,v=n(function g(){for(;++f<p.length;)if(t.call(p,f))return g.value=p[f],g.done=!1,g;return g.value=void 0,g.done=!0,g},"next");return v.next=v}}return{next:Y}}n(W,"values");function Y(){return{value:void 0,done:!0}}return n(Y,"doneResult"),w.prototype=S,i(T,"constructor",{value:S,configurable:!0}),i(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),r.isGeneratorFunction=function(p){var s=typeof p=="function"&&p.constructor;return!!s&&(s===w||(s.displayName||s.name)==="GeneratorFunction")},r.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,S):(p.__proto__=S,l(p,c,"GeneratorFunction")),p.prototype=Object.create(T),p},r.awrap=function(p){return{__await:p}},F(k.prototype),l(k.prototype,u,function(){return this}),r.AsyncIterator=k,r.async=function(p,s,f,v,g){g===void 0&&(g=Promise);var h=new k(d(p,s,f,v),g);return r.isGeneratorFunction(s)?h:h.next().then(function(O){return O.done?O.value:h.next()})},F(T),l(T,c,"Generator"),l(T,a,function(){return this}),l(T,"toString",function(){return"[object Generator]"}),r.keys=function(p){var s=Object(p),f=[];for(var v in s)f.push(v);return f.reverse(),n(function g(){for(;f.length;){var h=f.pop();if(h in s)return g.value=h,g.done=!1,g}return g.done=!0,g},"next")},r.values=W,V.prototype={constructor:V,reset:n(function(s){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach($),!s)for(var f in this)f.charAt(0)==="t"&&t.call(this,f)&&!isNaN(+f.slice(1))&&(this[f]=void 0)},"reset"),stop:n(function(){this.done=!0;var s=this.tryEntries[0].completion;if(s.type==="throw")throw s.arg;return this.rval},"stop"),dispatchException:n(function(s){if(this.done)throw s;var f=this;function v(C,N){return O.type="throw",O.arg=s,f.next=C,N&&(f.method="next",f.arg=void 0),!!N}n(v,"handle");for(var g=this.tryEntries.length-1;g>=0;--g){var h=this.tryEntries[g],O=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var E=t.call(h,"catchLoc"),A=t.call(h,"finallyLoc");if(E&&A){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(E){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!A)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},"dispatchException"),abrupt:n(function(s,f){for(var v=this.tryEntries.length-1;v>=0;--v){var g=this.tryEntries[v];if(g.tryLoc<=this.prev&&t.call(g,"finallyLoc")&&this.prev<g.finallyLoc){var h=g;break}}h&&(s==="break"||s==="continue")&&h.tryLoc<=f&&f<=h.finallyLoc&&(h=null);var O=h?h.completion:{};return O.type=s,O.arg=f,h?(this.method="next",this.next=h.finallyLoc,m):this.complete(O)},"abrupt"),complete:n(function(s,f){if(s.type==="throw")throw s.arg;return s.type==="break"||s.type==="continue"?this.next=s.arg:s.type==="return"?(this.rval=this.arg=s.arg,this.method="return",this.next="end"):s.type==="normal"&&f&&(this.next=f),m},"complete"),finish:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.finallyLoc===s)return this.complete(v.completion,v.afterLoc),$(v),m}},"finish"),catch:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.tryLoc===s){var g=v.completion;if(g.type==="throw"){var h=g.arg;$(v)}return h}}throw new Error("illegal catch attempt")},"_catch"),delegateYield:n(function(s,f,v){return this.delegate={iterator:W(s),resultName:f,nextLoc:v},this.method==="next"&&(this.arg=void 0),m},"delegateYield")},r}n(Lq,"_regeneratorRuntime");function wX(r,e,t,i,o,a,u){try{var c=r[a](u),l=c.value}catch(d){t(d);return}c.done?e(l):Promise.resolve(l).then(i,o)}n(wX,"asyncGeneratorStep");function JXe(r){return function(){var e=this,t=arguments;return new Promise(function(i,o){var a=r.apply(e,t);function u(l){wX(a,i,o,u,c,"next",l)}n(u,"_next");function c(l){wX(a,i,o,u,c,"throw",l)}n(c,"_throw"),u(void 0)})}}n(JXe,"_asyncToGenerator");function ZXe(r){var e,t,i,o=2;for(typeof Symbol!="undefined"&&(t=Symbol.asyncIterator,i=Symbol.iterator);o--;){if(t&&(e=r[t])!=null)return e.call(r);if(i&&(e=r[i])!=null)return new L0(e.call(r));t="@@asyncIterator",i="@@iterator"}throw new TypeError("Object is not async iterable")}n(ZXe,"_asyncIterator");function L0(r){function e(t){if(Object(t)!==t)return Promise.reject(new TypeError(t+" is not an object."));var i=t.done;return Promise.resolve(t.value).then(function(o){return{value:o,done:i}})}return n(e,"AsyncFromSyncIteratorContinuation"),L0=n(function(i){this.s=i,this.n=i.next},"AsyncFromSyncIterator"),L0.prototype={s:null,n:null,next:n(function(){return e(this.n.apply(this.s,arguments))},"next"),return:n(function(i){var o=this.s.return;return o===void 0?Promise.resolve({value:i,done:!0}):e(o.apply(this.s,arguments))},"_return"),throw:n(function(i){var o=this.s.return;return o===void 0?Promise.reject(i):e(o.apply(this.s,arguments))},"_throw")},new L0(r)}n(L0,"AsyncFromSyncIterator");function Is(r,e){return Nq.apply(this,arguments)}n(Is,"getDroppedFiles");function Nq(){return Nq=JXe(Lq().mark(n(function r(e,t){var i,o,a,u,c,l,d,y,m;return Lq().wrap(n(function(w){for(;;)switch(w.prev=w.next){case 0:o=(i=t==null?void 0:t.logDropError)!=null?i:Function.prototype,w.prev=1,a=[],u=!1,c=!1,w.prev=5,d=ZXe(jq(e,o));case 7:return w.next=9,d.next();case 9:if(!(u=!(y=w.sent).done)){w.next=15;break}m=y.value,a.push(m);case 12:u=!1,w.next=7;break;case 15:w.next=21;break;case 17:w.prev=17,w.t0=w.catch(5),c=!0,l=w.t0;case 21:if(w.prev=21,w.prev=22,!(u&&d.return!=null)){w.next=26;break}return w.next=26,d.return();case 26:if(w.prev=26,!c){w.next=29;break}throw l;case 29:return w.finish(26);case 30:return w.finish(21);case 31:return w.abrupt("return",a);case 34:return w.prev=34,w.t1=w.catch(1),w.abrupt("return",Fq(e));case 37:case"end":return w.stop()}},"_callee$"),r,null,[[1,34],[5,17,21,31],[22,,26,30]])},"_callee"))),Nq.apply(this,arguments)}n(Nq,"_getDroppedFiles");var SX=Number.isNaN||n(function(e){return typeof e=="number"&&e!==e},"ponyfill");function eQe(r,e){return!!(r===e||SX(r)&&SX(e))}n(eQe,"isEqual");function rQe(r,e){if(r.length!==e.length)return!1;for(var t=0;t<r.length;t++)if(!eQe(r[t],e[t]))return!1;return!0}n(rQe,"areInputsEqual");function xq(r,e){e===void 0&&(e=rQe);var t=null;function i(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];if(t&&t.lastThis===this&&e(o,t.lastArgs))return t.lastResult;var u=r.apply(this,o);return t={lastResult:u,lastArgs:o,lastThis:this},u}return n(i,"memoized"),i.clear=n(function(){t=null},"clear"),i}n(xq,"memoizeOne");var N0=['a[href]:not([tabindex^="-"]):not([inert]):not([aria-hidden])','area[href]:not([tabindex^="-"]):not([inert]):not([aria-hidden])',"input:not([disabled]):not([inert]):not([aria-hidden])","select:not([disabled]):not([inert]):not([aria-hidden])","textarea:not([disabled]):not([inert]):not([aria-hidden])","button:not([disabled]):not([inert]):not([aria-hidden])",'iframe:not([tabindex^="-"]):not([inert]):not([aria-hidden])','object:not([tabindex^="-"]):not([inert]):not([aria-hidden])','embed:not([tabindex^="-"]):not([inert]):not([aria-hidden])','[contenteditable]:not([tabindex^="-"]):not([inert]):not([aria-hidden])','[tabindex]:not([tabindex^="-"]):not([inert]):not([aria-hidden])'];function Cv(r,e){if(e){var t=r.querySelector('[data-uppy-paneltype="'.concat(e,'"]'));if(t)return t}return r}n(Cv,"getActiveOverlayEl");function OX(r,e){var t=e[0];t&&(t.focus(),r.preventDefault())}n(OX,"focusOnFirstNode");function tQe(r,e){var t=e[e.length-1];t&&(t.focus(),r.preventDefault())}n(tQe,"focusOnLastNode");function nQe(r){return r.contains(document.activeElement)}n(nQe,"isFocusInOverlay");function Dq(r,e,t){var i=Cv(t,e),o=Vr(i.querySelectorAll(N0)),a=o.indexOf(document.activeElement);nQe(i)?r.shiftKey&&a===0?tQe(r,o):!r.shiftKey&&a===o.length-1&&OX(r,o):OX(r,o)}n(Dq,"trapFocus");function PX(r,e,t){e===null||Dq(r,e,t)}n(PX,"forInline");var _X=Ce(_A(),1);function Mq(){var r=!1,e=n(function(i,o){var a=Cv(i,o),u=a.contains(document.activeElement);if(!(u&&r)){var c=a.querySelector("[data-uppy-super-focusable]");if(!(u&&!c))if(c)c.focus({preventScroll:!0}),r=!0;else{var l=a.querySelector(N0);l==null||l.focus({preventScroll:!0}),r=!1}}},"superFocus");return(0,_X.default)(e,260)}n(Mq,"createSuperFocus");var nQ=Ce(qn(),1);function Lv(){var r=document.body;return!(!("draggable"in r)||!("ondragstart"in r&&"ondrop"in r)||!("FormData"in window)||!("FileReader"in window))}n(Lv,"isDragDropSupported");var jX=Ce(qn(),1),FX=Ce(TX(),1);function aQe(){return _("svg",{"aria-hidden":"true",focusable:"false",width:"25",height:"25",viewBox:"0 0 25 25"},_("g",{fill:"#686DE0",fillRule:"evenodd"},_("path",{d:"M5 7v10h15V7H5zm0-1h15a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1z",fillRule:"nonzero"}),_("path",{d:"M6.35 17.172l4.994-5.026a.5.5 0 0 1 .707 0l2.16 2.16 3.505-3.505a.5.5 0 0 1 .707 0l2.336 2.31-.707.72-1.983-1.97-3.505 3.505a.5.5 0 0 1-.707 0l-2.16-2.159-3.938 3.939-1.409.026z",fillRule:"nonzero"}),_("circle",{cx:"7.5",cy:"9.5",r:"1.5"})))}n(aQe,"iconImage");function oQe(){return _("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},_("path",{d:"M9.5 18.64c0 1.14-1.145 2-2.5 2s-2.5-.86-2.5-2c0-1.14 1.145-2 2.5-2 .557 0 1.079.145 1.5.396V7.25a.5.5 0 0 1 .379-.485l9-2.25A.5.5 0 0 1 18.5 5v11.64c0 1.14-1.145 2-2.5 2s-2.5-.86-2.5-2c0-1.14 1.145-2 2.5-2 .557 0 1.079.145 1.5.396V8.67l-8 2v7.97zm8-11v-2l-8 2v2l8-2zM7 19.64c.855 0 1.5-.484 1.5-1s-.645-1-1.5-1-1.5.484-1.5 1 .645 1 1.5 1zm9-2c.855 0 1.5-.484 1.5-1s-.645-1-1.5-1-1.5.484-1.5 1 .645 1 1.5 1z",fill:"#049BCF",fillRule:"nonzero"}))}n(oQe,"iconAudio");function uQe(){return _("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},_("path",{d:"M16 11.834l4.486-2.691A1 1 0 0 1 22 10v6a1 1 0 0 1-1.514.857L16 14.167V17a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v2.834zM15 9H5v8h10V9zm1 4l5 3v-6l-5 3z",fill:"#19AF67",fillRule:"nonzero"}))}n(uQe,"iconVideo");function sQe(){return _("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},_("path",{d:"M9.766 8.295c-.691-1.843-.539-3.401.747-3.726 1.643-.414 2.505.938 2.39 3.299-.039.79-.194 1.662-.537 3.148.324.49.66.967 1.055 1.51.17.231.382.488.629.757 1.866-.128 3.653.114 4.918.655 1.487.635 2.192 1.685 1.614 2.84-.566 1.133-1.839 1.084-3.416.249-1.141-.604-2.457-1.634-3.51-2.707a13.467 13.467 0 0 0-2.238.426c-1.392 4.051-4.534 6.453-5.707 4.572-.986-1.58 1.38-4.206 4.914-5.375.097-.322.185-.656.264-1.001.08-.353.306-1.31.407-1.737-.678-1.059-1.2-2.031-1.53-2.91zm2.098 4.87c-.033.144-.068.287-.104.427l.033-.01-.012.038a14.065 14.065 0 0 1 1.02-.197l-.032-.033.052-.004a7.902 7.902 0 0 1-.208-.271c-.197-.27-.38-.526-.555-.775l-.006.028-.002-.003c-.076.323-.148.632-.186.8zm5.77 2.978c1.143.605 1.832.632 2.054.187.26-.519-.087-1.034-1.113-1.473-.911-.39-2.175-.608-3.55-.608.845.766 1.787 1.459 2.609 1.894zM6.559 18.789c.14.223.693.16 1.425-.413.827-.648 1.61-1.747 2.208-3.206-2.563 1.064-4.102 2.867-3.633 3.62zm5.345-10.97c.088-1.793-.351-2.48-1.146-2.28-.473.119-.564 1.05-.056 2.405.213.566.52 1.188.908 1.859.18-.858.268-1.453.294-1.984z",fill:"#E2514A",fillRule:"nonzero"}))}n(sQe,"iconPDF");function lQe(){return _("svg",{"aria-hidden":"true",focusable:"false",width:"25",height:"25",viewBox:"0 0 25 25"},_("path",{d:"M10.45 2.05h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5V2.55a.5.5 0 0 1 .5-.5zm2.05 1.024h1.05a.5.5 0 0 1 .5.5V3.6a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5v-.001zM10.45 0h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5V.5a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-2.05 3.074h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-2.05 1.024h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm-2.05 1.025h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-1.656 3.074l-.82 5.946c.52.302 1.174.458 1.976.458.803 0 1.455-.156 1.975-.458l-.82-5.946h-2.311zm0-1.025h2.312c.512 0 .946.378 1.015.885l.82 5.946c.056.412-.142.817-.501 1.026-.686.398-1.515.597-2.49.597-.974 0-1.804-.199-2.49-.597a1.025 1.025 0 0 1-.5-1.026l.819-5.946c.07-.507.503-.885 1.015-.885zm.545 6.6a.5.5 0 0 1-.397-.561l.143-.999a.5.5 0 0 1 .495-.429h.74a.5.5 0 0 1 .495.43l.143.998a.5.5 0 0 1-.397.561c-.404.08-.819.08-1.222 0z",fill:"#00C469",fillRule:"nonzero"}))}n(lQe,"iconArchive");function cQe(){return _("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},_("g",{fill:"#A7AFB7",fillRule:"nonzero"},_("path",{d:"M5.5 22a.5.5 0 0 1-.5-.5v-18a.5.5 0 0 1 .5-.5h10.719a.5.5 0 0 1 .367.16l3.281 3.556a.5.5 0 0 1 .133.339V21.5a.5.5 0 0 1-.5.5h-14zm.5-1h13V7.25L16 4H6v17z"}),_("path",{d:"M15 4v3a1 1 0 0 0 1 1h3V7h-3V4h-1z"})))}n(cQe,"iconFile");function fQe(){return _("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},_("path",{d:"M4.5 7h13a.5.5 0 1 1 0 1h-13a.5.5 0 0 1 0-1zm0 3h15a.5.5 0 1 1 0 1h-15a.5.5 0 1 1 0-1zm0 3h15a.5.5 0 1 1 0 1h-15a.5.5 0 1 1 0-1zm0 3h10a.5.5 0 1 1 0 1h-10a.5.5 0 1 1 0-1z",fill:"#5A5E69",fillRule:"nonzero"}))}n(fQe,"iconText");function qs(r){var e={color:"#838999",icon:cQe()};if(!r)return e;var t=r.split("/")[0],i=r.split("/")[1];if(t==="text")return{color:"#5a5e69",icon:fQe()};if(t==="image")return{color:"#686de0",icon:aQe()};if(t==="audio")return{color:"#068dbb",icon:oQe()};if(t==="video")return{color:"#19af67",icon:uQe()};if(t==="application"&&i==="pdf")return{color:"#e25149",icon:sQe()};var o=["zip","x-7z-compressed","x-rar-compressed","x-tar","x-gzip","x-apple-diskimage"];return t==="application"&&o.indexOf(i)!==-1?{color:"#00C469",icon:lQe()}:e}n(qs,"getIconByMime");function Nv(r){var e=r.file;if(e.preview)return _("img",{className:"uppy-Dashboard-Item-previewImg",alt:e.name,src:e.preview});var t=qs(e.type),i=t.color,o=t.icon;return _("div",{className:"uppy-Dashboard-Item-previewIconWrap"},_("span",{className:"uppy-Dashboard-Item-previewIcon",style:{color:i}},o),_("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-Dashboard-Item-previewIconBg",width:"58",height:"76",viewBox:"0 0 58 76"},_("rect",{fill:"#FFF",width:"58",height:"76",rx:"3",fillRule:"evenodd"})))}n(Nv,"FilePreview");var pQe=n(function(e,t){var i=typeof t=="function"?t():t,o=i.filter(function(a){return a.id===e});return o[0].name},"metaFieldIdToName");function xv(r){var e=r.file,t=r.toggleFileCard,i=r.i18n,o=r.metaFields,a=e.missingRequiredMetaFields;if(!(a!=null&&a.length))return null;var u=a.map(function(c){return pQe(c,o)}).join(", ");return _("div",{className:"uppy-Dashboard-Item-errorMessage"},i("missingRequiredMetaFields",{smart_count:a.length,fields:u})," ",_("button",{type:"button",class:"uppy-u-reset uppy-Dashboard-Item-errorMessageBtn",onClick:n(function(){return t(!0,e.id)},"onClick")},i("editFile")))}n(xv,"renderMissingMetaFieldsError");function Uq(r){var e=r.file,t=r.i18n,i=r.toggleFileCard,o=r.metaFields,a=r.showLinkToFileUploadResult,u="rgba(255, 255, 255, 0.5)",c=e.preview?u:qs(r.file.type).color;return _("div",{className:"uppy-Dashboard-Item-previewInnerWrap",style:{backgroundColor:c}},a&&e.uploadURL&&_("a",{className:"uppy-Dashboard-Item-previewLink",href:e.uploadURL,rel:"noreferrer noopener",target:"_blank","aria-label":e.meta.name},_("span",{hidden:!0},e.meta.name)),_(Nv,{file:e}),_(xv,{file:e,i18n:t,toggleFileCard:i,metaFields:o}))}n(Uq,"FilePreviewAndLink");function dQe(r){if(!r.isUploaded){if(r.error&&!r.hideRetryButton){r.uppy.retryUpload(r.file.id);return}r.resumableUploads&&!r.hidePauseResumeButton?r.uppy.pauseResume(r.file.id):r.individualCancellation&&!r.hideCancelButton&&r.uppy.removeFile(r.file.id)}}n(dQe,"onPauseResumeCancelRetry");function RX(r){return r.isUploaded?r.i18n("uploadComplete"):r.error?r.i18n("retryUpload"):r.resumableUploads?r.file.isPaused?r.i18n("resumeUpload"):r.i18n("pauseUpload"):r.individualCancellation?r.i18n("cancelUpload"):""}n(RX,"progressIndicatorTitle");function Bq(r){return _("div",{className:"uppy-Dashboard-Item-progress"},_("button",{className:"uppy-u-reset uppy-c-btn uppy-Dashboard-Item-progressIndicator",type:"button","aria-label":RX(r),title:RX(r),onClick:n(function(){return dQe(r)},"onClick")},r.children))}n(Bq,"ProgressIndicatorButton");function x0(r){var e=r.children;return _("svg",{"aria-hidden":"true",focusable:"false",width:"70",height:"70",viewBox:"0 0 36 36",className:"uppy-c-icon uppy-Dashboard-Item-progressIcon--circle"},e)}n(x0,"ProgressCircleContainer");function $q(r){var e=r.progress,t=2*Math.PI*15;return _("g",null,_("circle",{className:"uppy-Dashboard-Item-progressIcon--bg",r:"15",cx:"18",cy:"18","stroke-width":"2",fill:"none"}),_("circle",{className:"uppy-Dashboard-Item-progressIcon--progress",r:"15",cx:"18",cy:"18",transform:"rotate(-90, 18, 18)",fill:"none","stroke-width":"2","stroke-dasharray":t,"stroke-dashoffset":t-t/100*e}))}n($q,"ProgressCircle");function Gq(r){if(!r.file.progress.uploadStarted)return null;if(r.isUploaded)return _("div",{className:"uppy-Dashboard-Item-progress"},_("div",{className:"uppy-Dashboard-Item-progressIndicator"},_(x0,null,_("circle",{r:"15",cx:"18",cy:"18",fill:"#1bb240"}),_("polygon",{className:"uppy-Dashboard-Item-progressIcon--check",transform:"translate(2, 3)",points:"14 22.5 7 15.2457065 8.99985857 13.1732815 14 18.3547104 22.9729883 9 25 11.1005634"}))));if(!r.recoveredState)return r.error&&!r.hideRetryButton?_(Bq,r,_("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-Dashboard-Item-progressIcon--retry",width:"28",height:"31",viewBox:"0 0 16 19"},_("path",{d:"M16 11a8 8 0 1 1-8-8v2a6 6 0 1 0 6 6h2z"}),_("path",{d:"M7.9 3H10v2H7.9z"}),_("path",{d:"M8.536.5l3.535 3.536-1.414 1.414L7.12 1.914z"}),_("path",{d:"M10.657 2.621l1.414 1.415L8.536 7.57 7.12 6.157z"}))):r.resumableUploads&&!r.hidePauseResumeButton?_(Bq,r,_(x0,null,_($q,{progress:r.file.progress.percentage}),r.file.isPaused?_("polygon",{className:"uppy-Dashboard-Item-progressIcon--play",transform:"translate(3, 3)",points:"12 20 12 10 20 15"}):_("g",{className:"uppy-Dashboard-Item-progressIcon--pause",transform:"translate(14.5, 13)"},_("rect",{x:"0",y:"0",width:"2",height:"10",rx:"0"}),_("rect",{x:"5",y:"0",width:"2",height:"10",rx:"0"})))):!r.resumableUploads&&r.individualCancellation&&!r.hideCancelButton?_(Bq,r,_(x0,null,_($q,{progress:r.file.progress.percentage}),_("polygon",{className:"cancel",transform:"translate(2, 2)",points:"19.8856516 11.0625 16 14.9481516 12.1019737 11.0625 11.0625 12.1143484 14.9481516 16 11.0625 19.8980263 12.1019737 20.9375 16 17.0518484 19.8856516 20.9375 20.9375 19.8980263 17.0518484 16 20.9375 12"}))):_("div",{className:"uppy-Dashboard-Item-progress"},_("div",{className:"uppy-Dashboard-Item-progressIndicator"},_(x0,null,_($q,{progress:r.file.progress.percentage}))))}n(Gq,"FileProgress");var qX=Ce(IX(),1);var Hq="...";function D0(r,e){if(e===0)return"";if(r.length<=e)return r;if(e<=Hq.length+1)return"".concat(r.slice(0,e-1),"\u2026");var t=e-Hq.length,i=Math.ceil(t/2),o=Math.floor(t/2);return r.slice(0,i)+Hq+r.slice(-o)}n(D0,"truncateString");var hQe=n(function(e){var t=e.file.meta,i=t.author,o=t.name;function a(){return e.isSingleFile&&e.containerHeight>=350?90:e.containerWidth<=352?35:e.containerWidth<=576?60:i?20:30}return n(a,"getMaxNameLength"),_("div",{className:"uppy-Dashboard-Item-name",title:o},D0(o,a()))},"renderFileName"),vQe=n(function(e){var t=e.file.meta.author,i=e.file.remote.providerName,o="\xB7";return t?_("div",{className:"uppy-Dashboard-Item-author"},_("a",{href:"".concat(t.url,"?utm_source=Companion&utm_medium=referral"),target:"_blank",rel:"noopener noreferrer"},D0(t.name,13)),i?_(ln,null," ".concat(o," "),i," ".concat(o," ")):null):null},"renderAuthor"),yQe=n(function(e){return e.file.size&&_("div",{className:"uppy-Dashboard-Item-statusSize"},(0,qX.default)(e.file.size))},"renderFileSize"),mQe=n(function(e){return e.file.isGhost&&_("span",null," \u2022 ",_("button",{className:"uppy-u-reset uppy-c-btn uppy-Dashboard-Item-reSelect",type:"button",onClick:e.toggleAddFilesPanel},e.i18n("reSelect")))},"ReSelectButton"),gQe=n(function(e){var t=e.file,i=e.onClick;return t.error?_("button",{className:"uppy-u-reset uppy-c-btn uppy-Dashboard-Item-errorDetails","aria-label":t.error,"data-microtip-position":"bottom","data-microtip-size":"medium",onClick:i,type:"button"},"?"):null},"ErrorButton");function Wq(r){var e=r.file;return _("div",{className:"uppy-Dashboard-Item-fileInfo","data-uppy-file-source":e.source},_("div",{className:"uppy-Dashboard-Item-fileName"},hQe(r),_(gQe,{file:r.file,onClick:n(function(){return alert(r.file.error)},"onClick")})),_("div",{className:"uppy-Dashboard-Item-status"},vQe(r),yQe(r),mQe(r)),_(xv,{file:r.file,i18n:r.i18n,toggleFileCard:r.toggleFileCard,metaFields:r.metaFields}))}n(Wq,"FileInfo");function Vq(r,e){return e===void 0&&(e="Copy the URL below"),new Promise(function(t){var i=document.createElement("textarea");i.setAttribute("style",{position:"fixed",top:0,left:0,width:"2em",height:"2em",padding:0,border:"none",outline:"none",boxShadow:"none",background:"transparent"}),i.value=r,document.body.appendChild(i),i.select();var o=n(function(){document.body.removeChild(i),window.prompt(e,r),t()},"magicCopyFailed");try{var a=document.execCommand("copy");return a?(document.body.removeChild(i),t()):o("copy command unavailable")}catch(u){return document.body.removeChild(i),o(u)}})}n(Vq,"copyToClipboard");function bQe(r){var e=r.file,t=r.uploadInProgressOrComplete,i=r.metaFields,o=r.canEditFile,a=r.i18n,u=r.onClick;return!t&&i&&i.length>0||!t&&o(e)?_("button",{className:"uppy-u-reset uppy-c-btn uppy-Dashboard-Item-action uppy-Dashboard-Item-action--edit",type:"button","aria-label":a("editFileWithFilename",{file:e.meta.name}),title:a("editFileWithFilename",{file:e.meta.name}),onClick:n(function(){return u()},"onClick")},_("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"14",height:"14",viewBox:"0 0 14 14"},_("g",{fillRule:"evenodd"},_("path",{d:"M1.5 10.793h2.793A1 1 0 0 0 5 10.5L11.5 4a1 1 0 0 0 0-1.414L9.707.793a1 1 0 0 0-1.414 0l-6.5 6.5A1 1 0 0 0 1.5 8v2.793zm1-1V8L9 1.5l1.793 1.793-6.5 6.5H2.5z",fillRule:"nonzero"}),_("rect",{x:"1",y:"12.293",width:"11",height:"1",rx:".5"}),_("path",{fillRule:"nonzero",d:"M6.793 2.5L9.5 5.207l.707-.707L7.5 1.793z"})))):null}n(bQe,"EditButton");function wQe(r){var e=r.i18n,t=r.onClick,i=r.file;return _("button",{className:"uppy-u-reset uppy-Dashboard-Item-action uppy-Dashboard-Item-action--remove",type:"button","aria-label":e("removeFile",{file:i.meta.name}),title:e("removeFile",{file:i.meta.name}),onClick:n(function(){return t()},"onClick")},_("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"18",height:"18",viewBox:"0 0 18 18"},_("path",{d:"M9 0C4.034 0 0 4.034 0 9s4.034 9 9 9 9-4.034 9-9-4.034-9-9-9z"}),_("path",{fill:"#FFF",d:"M13 12.222l-.778.778L9 9.778 5.778 13 5 12.222 8.222 9 5 5.778 5.778 5 9 8.222 12.222 5l.778.778L9.778 9z"})))}n(wQe,"RemoveButton");var SQe=n(function(e,t){Vq(t.file.uploadURL,t.i18n("copyLinkToClipboardFallback")).then(function(){t.uppy.log("Link copied to clipboard."),t.uppy.info(t.i18n("copyLinkToClipboardSuccess"),"info",3e3)}).catch(t.uppy.log).then(function(){return e.target.focus({preventScroll:!0})})},"copyLinkToClipboard");function OQe(r){var e=r.i18n;return _("button",{className:"uppy-u-reset uppy-Dashboard-Item-action uppy-Dashboard-Item-action--copyLink",type:"button","aria-label":e("copyLink"),title:e("copyLink"),onClick:n(function(i){return SQe(i,r)},"onClick")},_("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"14",height:"14",viewBox:"0 0 14 12"},_("path",{d:"M7.94 7.703a2.613 2.613 0 0 1-.626 2.681l-.852.851a2.597 2.597 0 0 1-1.849.766A2.616 2.616 0 0 1 2.764 7.54l.852-.852a2.596 2.596 0 0 1 2.69-.625L5.267 7.099a1.44 1.44 0 0 0-.833.407l-.852.851a1.458 1.458 0 0 0 1.03 2.486c.39 0 .755-.152 1.03-.426l.852-.852c.231-.231.363-.522.406-.824l1.04-1.038zm4.295-5.937A2.596 2.596 0 0 0 10.387 1c-.698 0-1.355.272-1.849.766l-.852.851a2.614 2.614 0 0 0-.624 2.688l1.036-1.036c.041-.304.173-.6.407-.833l.852-.852c.275-.275.64-.426 1.03-.426a1.458 1.458 0 0 1 1.03 2.486l-.852.851a1.442 1.442 0 0 1-.824.406l-1.04 1.04a2.596 2.596 0 0 0 2.683-.628l.851-.85a2.616 2.616 0 0 0 0-3.697zm-6.88 6.883a.577.577 0 0 0 .82 0l3.474-3.474a.579.579 0 1 0-.819-.82L5.355 7.83a.579.579 0 0 0 0 .819z"})))}n(OQe,"CopyLinkButton");function Kq(r){var e=r.uppy,t=r.file,i=r.uploadInProgressOrComplete,o=r.canEditFile,a=r.metaFields,u=r.showLinkToFileUploadResult,c=r.showRemoveButton,l=r.i18n,d=r.toggleFileCard,y=r.openFileEditor,m=n(function(){a&&a.length>0?d(!0,t.id):y(t)},"editAction");return _("div",{className:"uppy-Dashboard-Item-actionWrapper"},_(bQe,{i18n:l,file:t,uploadInProgressOrComplete:i,canEditFile:o,metaFields:a,onClick:m}),u&&t.uploadURL?_(OQe,{file:t,uppy:e,i18n:l}):null,c?_(wQe,{i18n:l,file:t,uppy:e,onClick:n(function(){return r.uppy.removeFile(t.id,"removed-by-user")},"onClick")}):null)}n(Kq,"Buttons");function mf(r){"@babel/helpers - typeof";return mf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mf(r)}n(mf,"_typeof");function PQe(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(PQe,"_classCallCheck");function kX(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,EQe(i.key),i)}}n(kX,"_defineProperties");function _Qe(r,e,t){return e&&kX(r.prototype,e),t&&kX(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(_Qe,"_createClass");function EQe(r){var e=TQe(r,"string");return mf(e)==="symbol"?e:String(e)}n(EQe,"_toPropertyKey");function TQe(r,e){if(mf(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(mf(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(TQe,"_toPrimitive");function RQe(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&Yq(r,e)}n(RQe,"_inherits");function Yq(r,e){return Yq=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),Yq(r,e)}n(Yq,"_setPrototypeOf");function AQe(r){var e=kQe();return n(function(){var i=M0(r),o;if(e){var a=M0(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return IQe(this,o)},"_createSuperInternal")}n(AQe,"_createSuper");function IQe(r,e){if(e&&(mf(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qQe(r)}n(IQe,"_possibleConstructorReturn");function qQe(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(qQe,"_assertThisInitialized");function kQe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(kQe,"_isNativeReflectConstruct");function M0(r){return M0=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),M0(r)}n(M0,"_getPrototypeOf");var CX=function(r){RQe(t,r);var e=AQe(t);function t(){return PQe(this,t),e.apply(this,arguments)}return n(t,"FileItem"),_Qe(t,[{key:"componentDidMount",value:n(function(){var o=this.props.file;o.preview||this.props.handleRequestThumbnail(o)},"componentDidMount")},{key:"shouldComponentUpdate",value:n(function(o){return!(0,FX.default)(this.props,o)},"shouldComponentUpdate")},{key:"componentDidUpdate",value:n(function(){var o=this.props.file;o.preview||this.props.handleRequestThumbnail(o)},"componentDidUpdate")},{key:"componentWillUnmount",value:n(function(){var o=this.props.file;o.preview||this.props.handleCancelThumbnail(o)},"componentWillUnmount")},{key:"render",value:n(function(){var o=this.props.file,a=o.progress.preprocess||o.progress.postprocess,u=o.progress.uploadComplete&&!a&&!o.error,c=o.progress.uploadStarted||a,l=o.progress.uploadStarted&&!o.progress.uploadComplete||a,d=o.error||!1,y=o.isGhost,m=(this.props.individualCancellation||!l)&&!u;u&&this.props.showRemoveButtonAfterComplete&&(m=!0);var b=(0,jX.default)({"uppy-Dashboard-Item":!0,"is-inprogress":l&&!this.props.recoveredState,"is-processing":a,"is-complete":u,"is-error":!!d,"is-resumable":this.props.resumableUploads,"is-noIndividualCancellation":!this.props.individualCancellation,"is-ghost":y});return _("div",{className:b,id:"uppy_".concat(o.id),role:this.props.role},_("div",{className:"uppy-Dashboard-Item-preview"},_(Uq,{file:o,showLinkToFileUploadResult:this.props.showLinkToFileUploadResult,i18n:this.props.i18n,toggleFileCard:this.props.toggleFileCard,metaFields:this.props.metaFields}),_(Gq,{uppy:this.props.uppy,file:o,error:d,isUploaded:u,hideRetryButton:this.props.hideRetryButton,hideCancelButton:this.props.hideCancelButton,hidePauseResumeButton:this.props.hidePauseResumeButton,recoveredState:this.props.recoveredState,showRemoveButtonAfterComplete:this.props.showRemoveButtonAfterComplete,resumableUploads:this.props.resumableUploads,individualCancellation:this.props.individualCancellation,i18n:this.props.i18n})),_("div",{className:"uppy-Dashboard-Item-fileInfoAndButtons"},_(Wq,{file:o,id:this.props.id,acquirers:this.props.acquirers,containerWidth:this.props.containerWidth,containerHeight:this.props.containerHeight,i18n:this.props.i18n,toggleAddFilesPanel:this.props.toggleAddFilesPanel,toggleFileCard:this.props.toggleFileCard,metaFields:this.props.metaFields,isSingleFile:this.props.isSingleFile}),_(Kq,{file:o,metaFields:this.props.metaFields,showLinkToFileUploadResult:this.props.showLinkToFileUploadResult,showRemoveButton:m,canEditFile:this.props.canEditFile,uploadInProgressOrComplete:c,toggleFileCard:this.props.toggleFileCard,openFileEditor:this.props.openFileEditor,uppy:this.props.uppy,i18n:this.props.i18n})))},"render")}]),t}(ur);function jQe(r,e){var t=[],i=[];return r.forEach(function(o){i.length<e?i.push(o):(t.push(i),i=[o])}),i.length&&t.push(i),t}n(jQe,"chunks");var LX=n(function(r){var e=r.id,t=r.error,i=r.i18n,o=r.uppy,a=r.files,u=r.acquirers,c=r.resumableUploads,l=r.hideRetryButton,d=r.hidePauseResumeButton,y=r.hideCancelButton,m=r.showLinkToFileUploadResult,b=r.showRemoveButtonAfterComplete,w=r.isWide,S=r.metaFields,P=r.isSingleFile,R=r.toggleFileCard,I=r.handleRequestThumbnail,T=r.handleCancelThumbnail,F=r.recoveredState,k=r.individualCancellation,U=r.itemsPerRow,D=r.openFileEditor,H=r.canEditFile,$=r.toggleAddFilesPanel,V=r.containerWidth,W=r.containerHeight,Y=U===1?71:200,p=Yc(function(){var f=n(function(h,O){return a[O].isGhost-a[h].isGhost},"sortByGhostComesFirst"),v=Object.keys(a);return F&&v.sort(f),jQe(v,U)},[a,U,F]),s=n(function(v){return _("div",{class:"uppy-Dashboard-filesInner",role:"presentation",key:v[0]},v.map(function(g){return _(CX,{key:g,uppy:o,id:e,error:t,i18n:i,acquirers:u,resumableUploads:c,individualCancellation:k,hideRetryButton:l,hidePauseResumeButton:d,hideCancelButton:y,showLinkToFileUploadResult:m,showRemoveButtonAfterComplete:b,isWide:w,metaFields:S,recoveredState:F,isSingleFile:P,containerWidth:V,containerHeight:W,toggleFileCard:R,handleRequestThumbnail:I,handleCancelThumbnail:T,role:"listitem",openFileEditor:D,canEditFile:H,toggleAddFilesPanel:$,file:a[g]})}))},"renderRow");return P?_("div",{class:"uppy-Dashboard-files"},s(p[0])):_(i0,{class:"uppy-Dashboard-files",role:"list",data:p,renderRow:s,rowHeight:Y})},"default");function gf(r){"@babel/helpers - typeof";return gf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gf(r)}n(gf,"_typeof");function Xq(r){return NQe(r)||LQe(r)||CQe(r)||FQe()}n(Xq,"_toConsumableArray");function FQe(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n(FQe,"_nonIterableSpread");function CQe(r,e){if(r){if(typeof r=="string")return Qq(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Qq(r,e)}}n(CQe,"_unsupportedIterableToArray");function LQe(r){if(typeof Symbol!="undefined"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}n(LQe,"_iterableToArray");function NQe(r){if(Array.isArray(r))return Qq(r)}n(NQe,"_arrayWithoutHoles");function Qq(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=r[t];return i}n(Qq,"_arrayLikeToArray");function xQe(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(xQe,"_classCallCheck");function NX(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,MQe(i.key),i)}}n(NX,"_defineProperties");function DQe(r,e,t){return e&&NX(r.prototype,e),t&&NX(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(DQe,"_createClass");function MQe(r){var e=UQe(r,"string");return gf(e)==="symbol"?e:String(e)}n(MQe,"_toPropertyKey");function UQe(r,e){if(gf(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(gf(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(UQe,"_toPrimitive");function BQe(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&Jq(r,e)}n(BQe,"_inherits");function Jq(r,e){return Jq=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),Jq(r,e)}n(Jq,"_setPrototypeOf");function $Qe(r){var e=HQe();return n(function(){var i=U0(r),o;if(e){var a=U0(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return GQe(this,o)},"_createSuperInternal")}n($Qe,"_createSuper");function GQe(r,e){if(e&&(gf(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zQe(r)}n(GQe,"_possibleConstructorReturn");function zQe(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(zQe,"_assertThisInitialized");function HQe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(HQe,"_isNativeReflectConstruct");function U0(r){return U0=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),U0(r)}n(U0,"_getPrototypeOf");var xX;xX=Symbol.for("uppy test: disable unused locale key warning");var WQe=function(r,e){BQe(i,r);var t=$Qe(i);function i(){var o;return xQe(this,i),o=t.apply(this,arguments),o.triggerFileInputClick=function(){o.fileInput.click()},o.triggerFolderInputClick=function(){o.folderInput.click()},o.triggerVideoCameraInputClick=function(){o.mobileVideoFileInput.click()},o.triggerPhotoCameraInputClick=function(){o.mobilePhotoFileInput.click()},o.onFileInputChange=function(a){o.props.handleInputChange(a),a.target.value=null},o.renderHiddenInput=function(a,u){return _("input",{className:"uppy-Dashboard-input",hidden:!0,"aria-hidden":"true",tabIndex:-1,webkitdirectory:a,type:"file",name:"files[]",multiple:o.props.maxNumberOfFiles!==1,onChange:o.onFileInputChange,accept:o.props.allowedFileTypes,ref:u})},o.renderHiddenCameraInput=function(a,u,c){var l={photo:"image/*",video:"video/*"},d=l[a];return _("input",{className:"uppy-Dashboard-input",hidden:!0,"aria-hidden":"true",tabIndex:-1,type:"file",name:"camera-".concat(a),onChange:o.onFileInputChange,capture:u,accept:d,ref:c})},o.renderMyDeviceAcquirer=function(){return _("div",{className:"uppy-DashboardTab",role:"presentation","data-uppy-acquirer-id":"MyDevice"},_("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-DashboardTab-btn",role:"tab",tabIndex:0,"data-uppy-super-focusable":!0,onClick:o.triggerFileInputClick},_("div",{className:"uppy-DashboardTab-inner"},_("svg",{className:"uppy-DashboardTab-iconMyDevice","aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},_("path",{d:"M8.45 22.087l-1.305-6.674h17.678l-1.572 6.674H8.45zm4.975-12.412l1.083 1.765a.823.823 0 00.715.386h7.951V13.5H8.587V9.675h4.838zM26.043 13.5h-1.195v-2.598c0-.463-.336-.75-.798-.75h-8.356l-1.082-1.766A.823.823 0 0013.897 8H7.728c-.462 0-.815.256-.815.718V13.5h-.956a.97.97 0 00-.746.37.972.972 0 00-.19.81l1.724 8.565c.095.44.484.755.933.755H24c.44 0 .824-.3.929-.727l2.043-8.568a.972.972 0 00-.176-.825.967.967 0 00-.753-.38z",fill:"currentcolor","fill-rule":"evenodd"}))),_("div",{className:"uppy-DashboardTab-name"},o.props.i18n("myDevice"))))},o.renderPhotoCamera=function(){return _("div",{className:"uppy-DashboardTab",role:"presentation","data-uppy-acquirer-id":"MobilePhotoCamera"},_("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-DashboardTab-btn",role:"tab",tabIndex:0,"data-uppy-super-focusable":!0,onClick:o.triggerPhotoCameraInputClick},_("div",{className:"uppy-DashboardTab-inner"},_("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},_("path",{d:"M23.5 9.5c1.417 0 2.5 1.083 2.5 2.5v9.167c0 1.416-1.083 2.5-2.5 2.5h-15c-1.417 0-2.5-1.084-2.5-2.5V12c0-1.417 1.083-2.5 2.5-2.5h2.917l1.416-2.167C13 7.167 13.25 7 13.5 7h5c.25 0 .5.167.667.333L20.583 9.5H23.5zM16 11.417a4.706 4.706 0 00-4.75 4.75 4.704 4.704 0 004.75 4.75 4.703 4.703 0 004.75-4.75c0-2.663-2.09-4.75-4.75-4.75zm0 7.825c-1.744 0-3.076-1.332-3.076-3.074 0-1.745 1.333-3.077 3.076-3.077 1.744 0 3.074 1.333 3.074 3.076s-1.33 3.075-3.074 3.075z",fill:"#02B383","fill-rule":"nonzero"}))),_("div",{className:"uppy-DashboardTab-name"},o.props.i18n("takePictureBtn"))))},o.renderVideoCamera=function(){return _("div",{className:"uppy-DashboardTab",role:"presentation","data-uppy-acquirer-id":"MobileVideoCamera"},_("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-DashboardTab-btn",role:"tab",tabIndex:0,"data-uppy-super-focusable":!0,onClick:o.triggerVideoCameraInputClick},_("div",{className:"uppy-DashboardTab-inner"},_("svg",{"aria-hidden":"true",width:"32",height:"32",viewBox:"0 0 32 32"},_("path",{fill:"#FF675E",fillRule:"nonzero",d:"m21.254 14.277 2.941-2.588c.797-.313 1.243.818 1.09 1.554-.01 2.094.02 4.189-.017 6.282-.126.915-1.145 1.08-1.58.34l-2.434-2.142c-.192.287-.504 1.305-.738.468-.104-1.293-.028-2.596-.05-3.894.047-.312.381.823.426 1.069.063-.384.206-.744.362-1.09zm-12.939-3.73c3.858.013 7.717-.025 11.574.02.912.129 1.492 1.237 1.351 2.217-.019 2.412.04 4.83-.03 7.239-.17 1.025-1.166 1.59-2.029 1.429-3.705-.012-7.41.025-11.114-.019-.913-.129-1.492-1.237-1.352-2.217.018-2.404-.036-4.813.029-7.214.136-.82.83-1.473 1.571-1.454z "}))),_("div",{className:"uppy-DashboardTab-name"},o.props.i18n("recordVideoBtn"))))},o.renderBrowseButton=function(a,u){var c=o.props.acquirers.length;return _("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-Dashboard-browse",onClick:u,"data-uppy-super-focusable":c===0},a)},o.renderDropPasteBrowseTagline=function(a){var u=o.renderBrowseButton(o.props.i18n("browseFiles"),o.triggerFileInputClick),c=o.renderBrowseButton(o.props.i18n("browseFolders"),o.triggerFolderInputClick),l=o.props.fileManagerSelectionType,d=l.charAt(0).toUpperCase()+l.slice(1);return _("div",{class:"uppy-Dashboard-AddFiles-title"},o.props.disableLocalFiles?o.props.i18n("importFiles"):a>0?o.props.i18nArray("dropPasteImport".concat(d),{browseFiles:u,browseFolders:c,browse:u}):o.props.i18nArray("dropPaste".concat(d),{browseFiles:u,browseFolders:c,browse:u}))},o.renderAcquirer=function(a){return _("div",{className:"uppy-DashboardTab",role:"presentation","data-uppy-acquirer-id":a.id},_("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-DashboardTab-btn",role:"tab",tabIndex:0,"data-cy":a.id,"aria-controls":"uppy-DashboardContent-panel--".concat(a.id),"aria-selected":o.props.activePickerPanel.id===a.id,"data-uppy-super-focusable":!0,onClick:n(function(){return o.props.showPanel(a.id)},"onClick")},_("div",{className:"uppy-DashboardTab-inner"},a.icon()),_("div",{className:"uppy-DashboardTab-name"},a.name)))},o.renderAcquirers=function(a){var u=Xq(a),c=u.splice(a.length-2,a.length);return _(ln,null,u.map(function(l){return o.renderAcquirer(l)}),_("span",{role:"presentation",style:{"white-space":"nowrap"}},c.map(function(l){return o.renderAcquirer(l)})))},o.renderSourcesList=function(a,u){var c,l=o.props,d=l.showNativePhotoCameraButton,y=l.showNativeVideoCameraButton,m=[],b="myDevice";u||(m.push({key:b,elements:o.renderMyDeviceAcquirer()}),d&&m.push({key:"nativePhotoCameraButton",elements:o.renderPhotoCamera()}),y&&m.push({key:"nativePhotoCameraButton",elements:o.renderVideoCamera()})),(c=m).push.apply(c,Xq(a.map(function(I){return{key:I.id,elements:o.renderAcquirer(I)}})));var w=m.length===1&&m[0].key===b;w&&(m=[]);var S=Xq(m),P=S.splice(m.length-2,m.length),R=n(function(T){return T.map(function(F){var k=F.key,U=F.elements;return _(ln,{key:k},U)})},"renderList");return _(ln,null,o.renderDropPasteBrowseTagline(m.length),_("div",{className:"uppy-Dashboard-AddFiles-list",role:"tablist"},R(S),_("span",{role:"presentation",style:{"white-space":"nowrap"}},R(P))))},o}return n(i,"AddFiles"),DQe(i,[{key:e,value:n(function(){this.props.i18nArray("dropPasteBoth"),this.props.i18nArray("dropPasteFiles"),this.props.i18nArray("dropPasteFolders"),this.props.i18nArray("dropPasteImportBoth"),this.props.i18nArray("dropPasteImportFiles"),this.props.i18nArray("dropPasteImportFolders")},"value")},{key:"renderPoweredByUppy",value:n(function(){var a=this.props.i18nArray,u=_("span",null,_("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-Dashboard-poweredByIcon",width:"11",height:"11",viewBox:"0 0 11 11"},_("path",{d:"M7.365 10.5l-.01-4.045h2.612L5.5.806l-4.467 5.65h2.604l.01 4.044h3.718z",fillRule:"evenodd"})),_("span",{className:"uppy-Dashboard-poweredByUppy"},"Uppy")),c=a("poweredBy",{uppy:u});return _("a",{tabIndex:"-1",href:"https://uppy.io",rel:"noreferrer noopener",target:"_blank",className:"uppy-Dashboard-poweredBy"},c)},"renderPoweredByUppy")},{key:"render",value:n(function(){var a=this,u=this.props,c=u.showNativePhotoCameraButton,l=u.showNativeVideoCameraButton,d=u.nativeCameraFacingMode;return _("div",{className:"uppy-Dashboard-AddFiles"},this.renderHiddenInput(!1,function(y){a.fileInput=y}),this.renderHiddenInput(!0,function(y){a.folderInput=y}),c&&this.renderHiddenCameraInput("photo",d,function(y){a.mobilePhotoFileInput=y}),l&&this.renderHiddenCameraInput("video",d,function(y){a.mobileVideoFileInput=y}),this.renderSourcesList(this.props.acquirers,this.props.disableLocalFiles),_("div",{className:"uppy-Dashboard-AddFiles-info"},this.props.note&&_("div",{className:"uppy-Dashboard-note"},this.props.note),this.props.proudlyDisplayPoweredByUppy&&this.renderPoweredByUppy(this.props)))},"render")}]),i}(ur,xX),B0=WQe;var DX=Ce(qn(),1);var VQe=n(function(e){return _("div",{className:(0,DX.default)("uppy-Dashboard-AddFilesPanel",e.className),"data-uppy-panelType":"AddFiles","aria-hidden":!e.showAddFilesPanel},_("div",{className:"uppy-DashboardContent-bar"},_("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},e.i18n("addingMoreFiles")),_("button",{className:"uppy-DashboardContent-back",type:"button",onClick:n(function(){return e.toggleAddFilesPanel(!1)},"onClick")},e.i18n("back"))),_(B0,e))},"AddFilesPanel"),MX=VQe;var UX=Ce(qn(),1);function KQe(r){var e=r.target.tagName;if(e==="INPUT"||e==="TEXTAREA"){r.stopPropagation();return}r.preventDefault(),r.stopPropagation()}n(KQe,"ignoreEvent");var la=KQe;function YQe(r){var e=r.activePickerPanel,t=r.className,i=r.hideAllPanels,o=r.i18n,a=r.state,u=r.uppy;return _("div",{className:(0,UX.default)("uppy-DashboardContent-panel",t),role:"tabpanel","data-uppy-panelType":"PickerPanel",id:"uppy-DashboardContent-panel--".concat(e.id),onDragOver:la,onDragLeave:la,onDrop:la,onPaste:la},_("div",{className:"uppy-DashboardContent-bar"},_("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},o("importFrom",{name:e.name})),_("button",{className:"uppy-DashboardContent-back",type:"button",onClick:i},o("cancel"))),_("div",{className:"uppy-DashboardContent-panelBody"},u.getPlugin(e.id).render(a)))}n(YQe,"PickerPanelContent");var BX=YQe;var $X=Ce(qn(),1);function XQe(r){var e=r.files[r.fileCardFor],t=n(function(){r.uppy.emit("file-editor:cancel",e),r.hideAllPanels()},"handleCancel");return _("div",{className:(0,$X.default)("uppy-DashboardContent-panel",r.className),role:"tabpanel","data-uppy-panelType":"FileEditor",id:"uppy-DashboardContent-panel--editor"},_("div",{className:"uppy-DashboardContent-bar"},_("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},r.i18nArray("editing",{file:_("span",{className:"uppy-DashboardContent-titleFile"},e.meta?e.meta.name:e.name)})),_("button",{className:"uppy-DashboardContent-back",type:"button",onClick:t},r.i18n("cancel")),_("button",{className:"uppy-DashboardContent-save",type:"button",onClick:r.saveFileEditor},r.i18n("save"))),_("div",{className:"uppy-DashboardContent-panelBody"},r.editors.map(function(i){return r.uppy.getPlugin(i.id).render(r.state)})))}n(XQe,"EditorPanel");var GX=XQe;var ca={STATE_ERROR:"error",STATE_WAITING:"waiting",STATE_PREPROCESSING:"preprocessing",STATE_UPLOADING:"uploading",STATE_POSTPROCESSING:"postprocessing",STATE_COMPLETE:"complete",STATE_PAUSED:"paused"};function QQe(r,e,t,i){if(i===void 0&&(i={}),r)return ca.STATE_ERROR;if(e)return ca.STATE_COMPLETE;if(t)return ca.STATE_PAUSED;for(var o=ca.STATE_WAITING,a=Object.keys(i),u=0;u<a.length;u++){var c=i[a[u]].progress;if(c.uploadStarted&&!c.uploadComplete)return ca.STATE_UPLOADING;c.preprocess&&o!==ca.STATE_UPLOADING&&(o=ca.STATE_PREPROCESSING),c.postprocess&&o!==ca.STATE_UPLOADING&&o!==ca.STATE_PREPROCESSING&&(o=ca.STATE_POSTPROCESSING)}return o}n(QQe,"getUploadingState");function JQe(r){var e=r.files,t=r.i18n,i=r.isAllComplete,o=r.isAllErrored,a=r.isAllPaused,u=r.inProgressNotPausedFiles,c=r.newFiles,l=r.processingFiles,d=QQe(o,i,a,e);switch(d){case"uploading":return t("uploadingXFiles",{smart_count:u.length});case"preprocessing":case"postprocessing":return t("processingXFiles",{smart_count:l.length});case"paused":return t("uploadPaused");case"waiting":return t("xFilesSelected",{smart_count:c.length});case"complete":return t("uploadComplete");case"error":return t("error");default:}}n(JQe,"UploadStatus");function ZQe(r){var e=r.i18n,t=r.isAllComplete,i=r.hideCancelButton,o=r.maxNumberOfFiles,a=r.toggleAddFilesPanel,u=r.uppy,c=r.allowNewUpload;return c&&o&&(c=r.totalFileCount<r.maxNumberOfFiles),_("div",{className:"uppy-DashboardContent-bar"},!t&&!i?_("button",{className:"uppy-DashboardContent-back",type:"button",onClick:n(function(){return u.cancelAll()},"onClick")},e("cancel")):_("div",null),_("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},_(JQe,r)),c?_("button",{className:"uppy-DashboardContent-addMore",type:"button","aria-label":e("addMoreFiles"),title:e("addMoreFiles"),onClick:n(function(){return a(!0)},"onClick")},_("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"15",height:"15",viewBox:"0 0 15 15"},_("path",{d:"M8 6.5h6a.5.5 0 0 1 .5.5v.5a.5.5 0 0 1-.5.5H8v6a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V8h-6a.5.5 0 0 1-.5-.5V7a.5.5 0 0 1 .5-.5h6v-6A.5.5 0 0 1 7 0h.5a.5.5 0 0 1 .5.5v6z"})),_("span",{className:"uppy-DashboardContent-addMoreCaption"},e("addMore"))):_("div",null))}n(ZQe,"PanelTopBar");var zX=ZQe;var XX=Ce(qn(),1);function Zq(r){var e=r.computedMetaFields,t=r.requiredMetaFields,i=r.updateMeta,o=r.form,a=r.formState,u={text:"uppy-u-reset uppy-c-textInput uppy-Dashboard-FileCard-input"};return e.map(function(c){var l="uppy-Dashboard-FileCard-input-".concat(c.id),d=t.includes(c.id);return _("fieldset",{key:c.id,className:"uppy-Dashboard-FileCard-fieldset"},_("label",{className:"uppy-Dashboard-FileCard-label",htmlFor:l},c.name),c.render!==void 0?c.render({value:a[c.id],onChange:n(function(m){return i(m,c.id)},"onChange"),fieldCSSClasses:u,required:d,form:o.id},_):_("input",{className:u.text,id:l,form:o.id,type:c.type||"text",required:d,value:a[c.id],placeholder:c.placeholder,onInput:n(function(m){return i(m.target.value,c.id)},"onInput"),"data-uppy-super-focusable":!0}))})}n(Zq,"RenderMetaFields");function Dv(r){"@babel/helpers - typeof";return Dv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dv(r)}n(Dv,"_typeof");function HX(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(HX,"ownKeys");function WX(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?HX(Object(t),!0).forEach(function(i){YX(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):HX(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(WX,"_objectSpread");function YX(r,e,t){return e=eJe(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(YX,"_defineProperty");function eJe(r){var e=rJe(r,"string");return Dv(e)==="symbol"?e:String(e)}n(eJe,"_toPropertyKey");function rJe(r,e){if(Dv(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Dv(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(rJe,"_toPrimitive");function VX(r,e){return aJe(r)||iJe(r,e)||nJe(r,e)||tJe()}n(VX,"_slicedToArray");function tJe(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n(tJe,"_nonIterableRest");function nJe(r,e){if(r){if(typeof r=="string")return KX(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return KX(r,e)}}n(nJe,"_unsupportedIterableToArray");function KX(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=r[t];return i}n(KX,"_arrayLikeToArray");function iJe(r,e){var t=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var i,o,a,u,c=[],l=!0,d=!1;try{if(a=(t=t.call(r)).next,e===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(i=a.call(t)).done)&&(c.push(i.value),c.length!==e);l=!0);}catch(y){d=!0,o=y}finally{try{if(!l&&t.return!=null&&(u=t.return(),Object(u)!==u))return}finally{if(d)throw o}}return c}}n(iJe,"_iterableToArrayLimit");function aJe(r){if(Array.isArray(r))return r}n(aJe,"_arrayWithHoles");function ek(r){var e,t=r.files,i=r.fileCardFor,o=r.toggleFileCard,a=r.saveFileCard,u=r.metaFields,c=r.requiredMetaFields,l=r.openFileEditor,d=r.i18n,y=r.i18nArray,m=r.className,b=r.canEditFile,w=n(function(){return typeof u=="function"?u(t[i]):u},"getMetaFields"),S=t[i],P=(e=w())!=null?e:[],R=b(S),I={};P.forEach(function(p){var s;I[p.id]=(s=S.meta[p.id])!=null?s:""});var T=Kc(I),F=VX(T,2),k=F[0],U=F[1],D=_s(function(p){p.preventDefault(),a(k,i)},[a,k,i]),H=n(function(s,f){U(WX(WX({},k),{},YX({},f,s)))},"updateMeta"),$=n(function(){o(!1)},"handleCancel"),V=Kc(function(){var p=document.createElement("form");return p.setAttribute("tabindex","-1"),p.id=It(),p}),W=VX(V,1),Y=W[0];return Ps(function(){return document.body.appendChild(Y),Y.addEventListener("submit",D),function(){Y.removeEventListener("submit",D),document.body.removeChild(Y)}},[Y,D]),_("div",{className:(0,XX.default)("uppy-Dashboard-FileCard",m),"data-uppy-panelType":"FileCard",onDragOver:la,onDragLeave:la,onDrop:la,onPaste:la},_("div",{className:"uppy-DashboardContent-bar"},_("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},y("editing",{file:_("span",{className:"uppy-DashboardContent-titleFile"},S.meta?S.meta.name:S.name)})),_("button",{className:"uppy-DashboardContent-back",type:"button",form:Y.id,title:d("finishEditingFile"),onClick:$},d("cancel"))),_("div",{className:"uppy-Dashboard-FileCard-inner"},_("div",{className:"uppy-Dashboard-FileCard-preview",style:{backgroundColor:qs(S.type).color}},_(Nv,{file:S}),R&&_("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-Dashboard-FileCard-edit",onClick:n(function(s){D(s),l(S)},"onClick")},d("editFile"))),_("div",{className:"uppy-Dashboard-FileCard-info"},_(Zq,{computedMetaFields:P,requiredMetaFields:c,updateMeta:H,form:Y,formState:k})),_("div",{className:"uppy-Dashboard-FileCard-actions"},_("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Dashboard-FileCard-actionsBtn",type:"submit",form:Y.id},d("saveChanges")),_("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-link uppy-Dashboard-FileCard-actionsBtn",type:"button",onClick:$,form:Y.id},d("cancel")))))}n(ek,"FileCard");var ZX=Ce(qn(),1);function wf(r){"@babel/helpers - typeof";return wf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wf(r)}n(wf,"_typeof");function oJe(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(oJe,"_classCallCheck");function QX(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,sJe(i.key),i)}}n(QX,"_defineProperties");function uJe(r,e,t){return e&&QX(r.prototype,e),t&&QX(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(uJe,"_createClass");function sJe(r){var e=lJe(r,"string");return wf(e)==="symbol"?e:String(e)}n(sJe,"_toPropertyKey");function lJe(r,e){if(wf(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(wf(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(lJe,"_toPrimitive");function cJe(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&rk(r,e)}n(cJe,"_inherits");function rk(r,e){return rk=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),rk(r,e)}n(rk,"_setPrototypeOf");function fJe(r){var e=hJe();return n(function(){var i=$0(r),o;if(e){var a=$0(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return pJe(this,o)},"_createSuperInternal")}n(fJe,"_createSuper");function pJe(r,e){if(e&&(wf(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dJe(r)}n(pJe,"_possibleConstructorReturn");function dJe(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(dJe,"_assertThisInitialized");function hJe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(hJe,"_isNativeReflectConstruct");function $0(r){return $0=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),$0(r)}n($0,"_getPrototypeOf");var bf="uppy-transition-slideDownUp",JX=250,vJe=function(r){cJe(t,r);var e=fJe(t);function t(i){var o;return oJe(this,t),o=e.call(this,i),o.state={cachedChildren:null,className:""},o}return n(t,"Slide"),uJe(t,[{key:"componentWillUpdate",value:n(function(o){var a=this,u=this.state.cachedChildren,c=ri(o.children)[0];if(u===c)return null;var l={cachedChildren:c};c&&!u&&(l.className="".concat(bf,"-enter"),cancelAnimationFrame(this.animationFrame),clearTimeout(this.leaveTimeout),this.leaveTimeout=void 0,this.animationFrame=requestAnimationFrame(function(){a.setState({className:"".concat(bf,"-enter ").concat(bf,"-enter-active")}),a.enterTimeout=setTimeout(function(){a.setState({className:""})},JX)})),u&&!c&&this.leaveTimeout===void 0&&(l.cachedChildren=u,l.className="".concat(bf,"-leave"),cancelAnimationFrame(this.animationFrame),clearTimeout(this.enterTimeout),this.enterTimeout=void 0,this.animationFrame=requestAnimationFrame(function(){a.setState({className:"".concat(bf,"-leave ").concat(bf,"-leave-active")}),a.leaveTimeout=setTimeout(function(){a.setState({cachedChildren:null,className:""})},JX)})),this.setState(l)},"componentWillUpdate")},{key:"render",value:n(function(){var o=this.state,a=o.cachedChildren,u=o.className;return a?Tw(a,{className:(0,ZX.default)(u,a.props.className)}):null},"render")}]),t}(ur),Mv=vJe;function ks(){return ks=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},ks.apply(this,arguments)}n(ks,"_extends");var eQ=900,rQ=700,tk=576,tQ=330;function nk(r){var e=r.totalFileCount===0,t=r.totalFileCount===1,i=r.containerWidth>tk,o=r.containerHeight>tQ,a=(0,nQ.default)({"uppy-Dashboard":!0,"uppy-Dashboard--isDisabled":r.disabled,"uppy-Dashboard--animateOpenClose":r.animateOpenClose,"uppy-Dashboard--isClosing":r.isClosing,"uppy-Dashboard--isDraggingOver":r.isDraggingOver,"uppy-Dashboard--modal":!r.inline,"uppy-size--md":r.containerWidth>tk,"uppy-size--lg":r.containerWidth>rQ,"uppy-size--xl":r.containerWidth>eQ,"uppy-size--height-md":r.containerHeight>tQ,"uppy-Dashboard--isAddFilesPanelVisible":r.showAddFilesPanel,"uppy-Dashboard--isInnerWrapVisible":r.areInsidesReadyToBeVisible,"uppy-Dashboard--singleFile":r.singleFileFullScreen&&t&&o}),u=1;r.containerWidth>eQ?u=5:r.containerWidth>rQ?u=4:r.containerWidth>tk&&(u=3);var c=r.showSelectedFiles&&!e,l=r.recoveredState?Object.keys(r.recoveredState.files).length:null,d=r.files?Object.keys(r.files).filter(function(b){return r.files[b].isGhost}).length:null,y=n(function(){return d>0?r.i18n("recoveredXFiles",{smart_count:d}):r.i18n("recoveredAllFiles")},"renderRestoredText"),m=_("div",{className:a,"data-uppy-theme":r.theme,"data-uppy-num-acquirers":r.acquirers.length,"data-uppy-drag-drop-supported":!r.disableLocalFiles&&Lv(),"aria-hidden":r.inline?"false":r.isHidden,"aria-disabled":r.disabled,"aria-label":r.inline?r.i18n("dashboardTitle"):r.i18n("dashboardWindowTitle"),onPaste:r.handlePaste,onDragOver:r.handleDragOver,onDragLeave:r.handleDragLeave,onDrop:r.handleDrop},_("div",{"aria-hidden":"true",className:"uppy-Dashboard-overlay",tabIndex:-1,onClick:r.handleClickOutside}),_("div",{className:"uppy-Dashboard-inner","aria-modal":!r.inline&&"true",role:!r.inline&&"dialog",style:{width:r.inline&&r.width?r.width:"",height:r.inline&&r.height?r.height:""}},r.inline?null:_("button",{className:"uppy-u-reset uppy-Dashboard-close",type:"button","aria-label":r.i18n("closeModal"),title:r.i18n("closeModal"),onClick:r.closeModal},_("span",{"aria-hidden":"true"},"\xD7")),_("div",{className:"uppy-Dashboard-innerWrap"},_("div",{className:"uppy-Dashboard-dropFilesHereHint"},r.i18n("dropHint")),c&&_(zX,r),l&&_("div",{className:"uppy-Dashboard-serviceMsg"},_("svg",{className:"uppy-Dashboard-serviceMsg-icon","aria-hidden":"true",focusable:"false",width:"21",height:"16",viewBox:"0 0 24 19"},_("g",{transform:"translate(0 -1)",fill:"none",fillRule:"evenodd"},_("path",{d:"M12.857 1.43l10.234 17.056A1 1 0 0122.234 20H1.766a1 1 0 01-.857-1.514L11.143 1.429a1 1 0 011.714 0z",fill:"#FFD300"}),_("path",{fill:"#000",d:"M11 6h2l-.3 8h-1.4z"}),_("circle",{fill:"#000",cx:"12",cy:"17",r:"1"}))),_("strong",{className:"uppy-Dashboard-serviceMsg-title"},r.i18n("sessionRestored")),_("div",{className:"uppy-Dashboard-serviceMsg-text"},y())),c?_(LX,{id:r.id,error:r.error,i18n:r.i18n,uppy:r.uppy,files:r.files,acquirers:r.acquirers,resumableUploads:r.resumableUploads,hideRetryButton:r.hideRetryButton,hidePauseResumeButton:r.hidePauseResumeButton,hideCancelButton:r.hideCancelButton,showLinkToFileUploadResult:r.showLinkToFileUploadResult,showRemoveButtonAfterComplete:r.showRemoveButtonAfterComplete,isWide:r.isWide,metaFields:r.metaFields,toggleFileCard:r.toggleFileCard,handleRequestThumbnail:r.handleRequestThumbnail,handleCancelThumbnail:r.handleCancelThumbnail,recoveredState:r.recoveredState,individualCancellation:r.individualCancellation,openFileEditor:r.openFileEditor,canEditFile:r.canEditFile,toggleAddFilesPanel:r.toggleAddFilesPanel,isSingleFile:t,itemsPerRow:u}):_(B0,ks({},r,{isSizeMD:i})),_(Mv,null,r.showAddFilesPanel?_(MX,ks({key:"AddFiles"},r,{isSizeMD:i})):null),_(Mv,null,r.fileCardFor?_(ek,ks({key:"FileCard"},r)):null),_(Mv,null,r.activePickerPanel?_(BX,ks({key:"Picker"},r)):null),_(Mv,null,r.showFileEditor?_(GX,ks({key:"Editor"},r)):null),_("div",{className:"uppy-Dashboard-progressindicators"},r.progressindicators.map(function(b){return r.uppy.getPlugin(b.id).render(r.state)})))));return m}n(nk,"Dashboard");var iQ={strings:{closeModal:"Close Modal",addMoreFiles:"Add more files",addingMoreFiles:"Adding more files",importFrom:"Import from %{name}",dashboardWindowTitle:"Uppy Dashboard Window (Press escape to close)",dashboardTitle:"Uppy Dashboard",copyLinkToClipboardSuccess:"Link copied to clipboard.",copyLinkToClipboardFallback:"Copy the URL below",copyLink:"Copy link",back:"Back",removeFile:"Remove file",editFile:"Edit file",editing:"Editing %{file}",error:"Error",finishEditingFile:"Finish editing file",saveChanges:"Save changes",myDevice:"My Device",dropHint:"Drop your files here",uploadComplete:"Upload complete",uploadPaused:"Upload paused",resumeUpload:"Resume upload",pauseUpload:"Pause upload",retryUpload:"Retry upload",cancelUpload:"Cancel upload",xFilesSelected:{0:"%{smart_count} file selected",1:"%{smart_count} files selected"},uploadingXFiles:{0:"Uploading %{smart_count} file",1:"Uploading %{smart_count} files"},processingXFiles:{0:"Processing %{smart_count} file",1:"Processing %{smart_count} files"},poweredBy:"Powered by %{uppy}",addMore:"Add more",editFileWithFilename:"Edit file %{file}",save:"Save",cancel:"Cancel",dropPasteFiles:"Drop files here or %{browseFiles}",dropPasteFolders:"Drop files here or %{browseFolders}",dropPasteBoth:"Drop files here, %{browseFiles} or %{browseFolders}",dropPasteImportFiles:"Drop files here, %{browseFiles} or import from:",dropPasteImportFolders:"Drop files here, %{browseFolders} or import from:",dropPasteImportBoth:"Drop files here, %{browseFiles}, %{browseFolders} or import from:",importFiles:"Import files from:",browseFiles:"browse files",browseFolders:"browse folders",recoveredXFiles:{0:"We could not fully recover 1 file. Please re-select it and resume the upload.",1:"We could not fully recover %{smart_count} files. Please re-select them and resume the upload."},recoveredAllFiles:"We restored all files. You can now resume the upload.",sessionRestored:"Session restored",reSelect:"Re-select",missingRequiredMetaFields:{0:"Missing required meta field: %{fields}.",1:"Missing required meta fields: %{fields}."},takePictureBtn:"Take Picture",recordVideoBtn:"Record Video"}};function Ls(r){"@babel/helpers - typeof";return Ls=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ls(r)}n(Ls,"_typeof");function ck(){"use strict";ck=n(function(){return r},"_regeneratorRuntime");var r={},e=Object.prototype,t=e.hasOwnProperty,i=Object.defineProperty||function(p,s,f){p[s]=f.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(p,s,f){return Object.defineProperty(p,s,{value:f,enumerable:!0,configurable:!0,writable:!0}),p[s]}n(l,"define");try{l({},"")}catch(p){l=n(function(f,v,g){return f[v]=g},"define")}function d(p,s,f,v){var g=s&&s.prototype instanceof b?s:b,h=Object.create(g.prototype),O=new V(v||[]);return i(h,"_invoke",{value:U(p,f,O)}),h}n(d,"wrap");function y(p,s,f){try{return{type:"normal",arg:p.call(s,f)}}catch(v){return{type:"throw",arg:v}}}n(y,"tryCatch"),r.wrap=d;var m={};function b(){}n(b,"Generator");function w(){}n(w,"GeneratorFunction");function S(){}n(S,"GeneratorFunctionPrototype");var P={};l(P,a,function(){return this});var R=Object.getPrototypeOf,I=R&&R(R(W([])));I&&I!==e&&t.call(I,a)&&(P=I);var T=S.prototype=b.prototype=Object.create(P);function F(p){["next","throw","return"].forEach(function(s){l(p,s,function(f){return this._invoke(s,f)})})}n(F,"defineIteratorMethods");function k(p,s){function f(g,h,O,E){var A=y(p[g],p,h);if(A.type!=="throw"){var C=A.arg,N=C.value;return N&&Ls(N)=="object"&&t.call(N,"__await")?s.resolve(N.__await).then(function(M){f("next",M,O,E)},function(M){f("throw",M,O,E)}):s.resolve(N).then(function(M){C.value=M,O(C)},function(M){return f("throw",M,O,E)})}E(A.arg)}n(f,"invoke");var v;i(this,"_invoke",{value:n(function(h,O){function E(){return new s(function(A,C){f(h,O,A,C)})}return n(E,"callInvokeWithMethodAndArg"),v=v?v.then(E,E):E()},"value")})}n(k,"AsyncIterator");function U(p,s,f){var v="suspendedStart";return function(g,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(g==="throw")throw h;return Y()}for(f.method=g,f.arg=h;;){var O=f.delegate;if(O){var E=D(O,f);if(E){if(E===m)continue;return E}}if(f.method==="next")f.sent=f._sent=f.arg;else if(f.method==="throw"){if(v==="suspendedStart")throw v="completed",f.arg;f.dispatchException(f.arg)}else f.method==="return"&&f.abrupt("return",f.arg);v="executing";var A=y(p,s,f);if(A.type==="normal"){if(v=f.done?"completed":"suspendedYield",A.arg===m)continue;return{value:A.arg,done:f.done}}A.type==="throw"&&(v="completed",f.method="throw",f.arg=A.arg)}}}n(U,"makeInvokeMethod");function D(p,s){var f=s.method,v=p.iterator[f];if(v===void 0)return s.delegate=null,f==="throw"&&p.iterator.return&&(s.method="return",s.arg=void 0,D(p,s),s.method==="throw")||f!=="return"&&(s.method="throw",s.arg=new TypeError("The iterator does not provide a '"+f+"' method")),m;var g=y(v,p.iterator,s.arg);if(g.type==="throw")return s.method="throw",s.arg=g.arg,s.delegate=null,m;var h=g.arg;return h?h.done?(s[p.resultName]=h.value,s.next=p.nextLoc,s.method!=="return"&&(s.method="next",s.arg=void 0),s.delegate=null,m):h:(s.method="throw",s.arg=new TypeError("iterator result is not an object"),s.delegate=null,m)}n(D,"maybeInvokeDelegate");function H(p){var s={tryLoc:p[0]};1 in p&&(s.catchLoc=p[1]),2 in p&&(s.finallyLoc=p[2],s.afterLoc=p[3]),this.tryEntries.push(s)}n(H,"pushTryEntry");function $(p){var s=p.completion||{};s.type="normal",delete s.arg,p.completion=s}n($,"resetTryEntry");function V(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(H,this),this.reset(!0)}n(V,"Context");function W(p){if(p){var s=p[a];if(s)return s.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var f=-1,v=n(function g(){for(;++f<p.length;)if(t.call(p,f))return g.value=p[f],g.done=!1,g;return g.value=void 0,g.done=!0,g},"next");return v.next=v}}return{next:Y}}n(W,"values");function Y(){return{value:void 0,done:!0}}return n(Y,"doneResult"),w.prototype=S,i(T,"constructor",{value:S,configurable:!0}),i(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),r.isGeneratorFunction=function(p){var s=typeof p=="function"&&p.constructor;return!!s&&(s===w||(s.displayName||s.name)==="GeneratorFunction")},r.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,S):(p.__proto__=S,l(p,c,"GeneratorFunction")),p.prototype=Object.create(T),p},r.awrap=function(p){return{__await:p}},F(k.prototype),l(k.prototype,u,function(){return this}),r.AsyncIterator=k,r.async=function(p,s,f,v,g){g===void 0&&(g=Promise);var h=new k(d(p,s,f,v),g);return r.isGeneratorFunction(s)?h:h.next().then(function(O){return O.done?O.value:h.next()})},F(T),l(T,c,"Generator"),l(T,a,function(){return this}),l(T,"toString",function(){return"[object Generator]"}),r.keys=function(p){var s=Object(p),f=[];for(var v in s)f.push(v);return f.reverse(),n(function g(){for(;f.length;){var h=f.pop();if(h in s)return g.value=h,g.done=!1,g}return g.done=!0,g},"next")},r.values=W,V.prototype={constructor:V,reset:n(function(s){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach($),!s)for(var f in this)f.charAt(0)==="t"&&t.call(this,f)&&!isNaN(+f.slice(1))&&(this[f]=void 0)},"reset"),stop:n(function(){this.done=!0;var s=this.tryEntries[0].completion;if(s.type==="throw")throw s.arg;return this.rval},"stop"),dispatchException:n(function(s){if(this.done)throw s;var f=this;function v(C,N){return O.type="throw",O.arg=s,f.next=C,N&&(f.method="next",f.arg=void 0),!!N}n(v,"handle");for(var g=this.tryEntries.length-1;g>=0;--g){var h=this.tryEntries[g],O=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var E=t.call(h,"catchLoc"),A=t.call(h,"finallyLoc");if(E&&A){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(E){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!A)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},"dispatchException"),abrupt:n(function(s,f){for(var v=this.tryEntries.length-1;v>=0;--v){var g=this.tryEntries[v];if(g.tryLoc<=this.prev&&t.call(g,"finallyLoc")&&this.prev<g.finallyLoc){var h=g;break}}h&&(s==="break"||s==="continue")&&h.tryLoc<=f&&f<=h.finallyLoc&&(h=null);var O=h?h.completion:{};return O.type=s,O.arg=f,h?(this.method="next",this.next=h.finallyLoc,m):this.complete(O)},"abrupt"),complete:n(function(s,f){if(s.type==="throw")throw s.arg;return s.type==="break"||s.type==="continue"?this.next=s.arg:s.type==="return"?(this.rval=this.arg=s.arg,this.method="return",this.next="end"):s.type==="normal"&&f&&(this.next=f),m},"complete"),finish:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.finallyLoc===s)return this.complete(v.completion,v.afterLoc),$(v),m}},"finish"),catch:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.tryLoc===s){var g=v.completion;if(g.type==="throw"){var h=g.arg;$(v)}return h}}throw new Error("illegal catch attempt")},"_catch"),delegateYield:n(function(s,f,v){return this.delegate={iterator:W(s),resultName:f,nextLoc:v},this.method==="next"&&(this.arg=void 0),m},"delegateYield")},r}n(ck,"_regeneratorRuntime");function aQ(r,e,t,i,o,a,u){try{var c=r[a](u),l=c.value}catch(d){t(d);return}c.done?e(l):Promise.resolve(l).then(i,o)}n(aQ,"asyncGeneratorStep");function yJe(r){return function(){var e=this,t=arguments;return new Promise(function(i,o){var a=r.apply(e,t);function u(l){aQ(a,i,o,u,c,"next",l)}n(u,"_next");function c(l){aQ(a,i,o,u,c,"throw",l)}n(c,"_throw"),u(void 0)})}}n(yJe,"_asyncToGenerator");function mJe(r,e){var t=typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=gJe(r))||e&&r&&typeof r.length=="number"){t&&(r=t);var i=0,o=n(function(){},"F");return{s:o,n:n(function(){return i>=r.length?{done:!0}:{done:!1,value:r[i++]}},"n"),e:n(function(d){throw d},"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=!0,u=!1,c;return{s:n(function(){t=t.call(r)},"s"),n:n(function(){var d=t.next();return a=d.done,d},"n"),e:n(function(d){u=!0,c=d},"e"),f:n(function(){try{!a&&t.return!=null&&t.return()}finally{if(u)throw c}},"f")}}n(mJe,"_createForOfIteratorHelper");function gJe(r,e){if(r){if(typeof r=="string")return oQ(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return oQ(r,e)}}n(gJe,"_unsupportedIterableToArray");function oQ(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=r[t];return i}n(oQ,"_arrayLikeToArray");function uQ(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(uQ,"ownKeys");function fa(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?uQ(Object(t),!0).forEach(function(i){fQ(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):uQ(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(fa,"_objectSpread");function fQ(r,e,t){return e=pQ(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(fQ,"_defineProperty");function sQ(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,pQ(i.key),i)}}n(sQ,"_defineProperties");function bJe(r,e,t){return e&&sQ(r.prototype,e),t&&sQ(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(bJe,"_createClass");function pQ(r){var e=wJe(r,"string");return Ls(e)==="symbol"?e:String(e)}n(pQ,"_toPropertyKey");function wJe(r,e){if(Ls(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Ls(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(wJe,"_toPrimitive");function SJe(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(SJe,"_classCallCheck");function OJe(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&fk(r,e)}n(OJe,"_inherits");function fk(r,e){return fk=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),fk(r,e)}n(fk,"_setPrototypeOf");function PJe(r){var e=EJe();return n(function(){var i=G0(r),o;if(e){var a=G0(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return _Je(this,o)},"_createSuperInternal")}n(PJe,"_createSuper");function _Je(r,e){if(e&&(Ls(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qe(r)}n(_Je,"_possibleConstructorReturn");function qe(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(qe,"_assertThisInitialized");function EJe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(EJe,"_isNativeReflectConstruct");function G0(r){return G0=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),G0(r)}n(G0,"_getPrototypeOf");function Sr(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}n(Sr,"_classPrivateFieldLooseBase");var TJe=0;function ki(r){return"__private_"+TJe+++"_"+r}n(ki,"_classPrivateFieldLooseKey");var RJe={version:"3.7.1"},ik=xq.default||xq,lQ=9,AJe=27;function cQ(){var r={};return r.promise=new Promise(function(e,t){r.resolve=e,r.reject=t}),r}n(cQ,"createPromise");var js=ki("disabledNodes"),Za=ki("generateLargeThumbnailIfSingleFile"),Uv=ki("openFileEditorWhenFilesAdded"),Fs=ki("attachRenderFunctionToTarget"),ak=ki("isTargetSupported"),ok=ki("getAcquirers"),uk=ki("getProgressIndicators"),eo=ki("getEditors"),sk=ki("addSpecifiedPluginsFromOptions"),lk=ki("autoDiscoverPlugins"),Cs=ki("addSupportedPluginIfNoTarget"),z0=function(r){OJe(t,r);var e=PJe(t);function t(i,o){var a;SJe(this,t);var u;a=e.call(this,i,o),u=qe(a),Object.defineProperty(qe(a),js,{writable:!0,value:null}),a.removeTarget=function(l){var d=a.getPluginState(),y=d.targets.filter(function(m){return m.id!==l.id});a.setPluginState({targets:y})},a.addTarget=function(l){var d=l.id||l.constructor.name,y=l.title||d,m=l.type;if(m!=="acquirer"&&m!=="progressindicator"&&m!=="editor"){var b="Dashboard: can only be targeted by plugins of types: acquirer, progressindicator, editor";a.uppy.log(b,"error");return}var w={id:d,name:y,type:m},S=a.getPluginState(),P=S.targets.slice();return P.push(w),a.setPluginState({targets:P}),a.el},a.hideAllPanels=function(){var l=a.getPluginState(),d={activePickerPanel:!1,showAddFilesPanel:!1,activeOverlayType:null,fileCardFor:null,showFileEditor:!1};l.activePickerPanel===d.activePickerPanel&&l.showAddFilesPanel===d.showAddFilesPanel&&l.showFileEditor===d.showFileEditor&&l.activeOverlayType===d.activeOverlayType||(a.setPluginState(d),a.uppy.emit("dashboard:close-panel",l.activePickerPanel.id))},a.showPanel=function(l){var d=a.getPluginState(),y=d.targets,m=y.filter(function(b){return b.type==="acquirer"&&b.id===l})[0];a.setPluginState({activePickerPanel:m,activeOverlayType:"PickerPanel"}),a.uppy.emit("dashboard:show-panel",l)},a.canEditFile=function(l){var d=a.getPluginState(),y=d.targets,m=Sr(qe(a),eo)[eo](y);return m.some(function(b){return a.uppy.getPlugin(b.id).canEditFile(l)})},a.openFileEditor=function(l){var d=a.getPluginState(),y=d.targets,m=Sr(qe(a),eo)[eo](y);a.setPluginState({showFileEditor:!0,fileCardFor:l.id||null,activeOverlayType:"FileEditor"}),m.forEach(function(b){a.uppy.getPlugin(b.id).selectFile(l)})},a.saveFileEditor=function(){var l=a.getPluginState(),d=l.targets,y=Sr(qe(a),eo)[eo](d);y.forEach(function(m){a.uppy.getPlugin(m.id).save()}),a.hideAllPanels()},a.openModal=function(){var l=cQ(),d=l.promise,y=l.resolve;if(a.savedScrollPosition=window.pageYOffset,a.savedActiveElement=document.activeElement,a.opts.disablePageScrollWhenModalOpen&&document.body.classList.add("uppy-Dashboard-isFixed"),a.opts.animateOpenClose&&a.getPluginState().isClosing){var m=n(function b(){a.setPluginState({isHidden:!1}),a.el.removeEventListener("animationend",b,!1),y()},"handler");a.el.addEventListener("animationend",m,!1)}else a.setPluginState({isHidden:!1}),y();return a.opts.browserBackButtonClose&&a.updateBrowserHistory(),document.addEventListener("keydown",a.handleKeyDownInModal),a.uppy.emit("dashboard:modal-open"),d},a.closeModal=function(l){l===void 0&&(l={});var d=l,y=d.manualClose,m=y===void 0?!0:y,b=u.getPluginState(),w=b.isHidden,S=b.isClosing;if(!(w||S)){var P=cQ(),R=P.promise,I=P.resolve;if(u.opts.disablePageScrollWhenModalOpen&&document.body.classList.remove("uppy-Dashboard-isFixed"),u.opts.animateOpenClose){u.setPluginState({isClosing:!0});var T=n(function k(){u.setPluginState({isHidden:!0,isClosing:!1}),u.superFocus.cancel(),u.savedActiveElement.focus(),u.el.removeEventListener("animationend",k,!1),I()},"handler");u.el.addEventListener("animationend",T,!1)}else u.setPluginState({isHidden:!0}),u.superFocus.cancel(),u.savedActiveElement.focus(),I();if(document.removeEventListener("keydown",u.handleKeyDownInModal),m&&u.opts.browserBackButtonClose){var F;(F=history.state)!=null&&F[u.modalName]&&history.back()}return u.uppy.emit("dashboard:modal-closed"),R}},a.isModalOpen=function(){return!a.getPluginState().isHidden||!1},a.requestCloseModal=function(){return a.opts.onRequestCloseModal?a.opts.onRequestCloseModal():a.closeModal()},a.setDarkModeCapability=function(l){var d=a.uppy.getState(),y=d.capabilities;a.uppy.setState({capabilities:fa(fa({},y),{},{darkMode:l})})},a.handleSystemDarkModeChange=function(l){var d=l.matches;a.uppy.log("[Dashboard] Dark mode is ".concat(d?"on":"off")),a.setDarkModeCapability(d)},a.toggleFileCard=function(l,d){var y=a.uppy.getFile(d);l?a.uppy.emit("dashboard:file-edit-start",y):a.uppy.emit("dashboard:file-edit-complete",y),a.setPluginState({fileCardFor:l?d:null,activeOverlayType:l?"FileCard":null})},a.toggleAddFilesPanel=function(l){a.setPluginState({showAddFilesPanel:l,activeOverlayType:l?"AddFiles":null})},a.addFiles=function(l){var d=l.map(function(y){return{source:a.id,name:y.name,type:y.type,data:y,meta:{relativePath:y.relativePath||y.webkitRelativePath||null}}});try{a.uppy.addFiles(d)}catch(y){a.uppy.log(y)}},a.startListeningToResize=function(){a.resizeObserver=new ResizeObserver(function(l){var d=l[0],y=d.contentRect,m=y.width,b=y.height;a.setPluginState({containerWidth:m,containerHeight:b,areInsidesReadyToBeVisible:!0})}),a.resizeObserver.observe(a.el.querySelector(".uppy-Dashboard-inner")),a.makeDashboardInsidesVisibleAnywayTimeout=setTimeout(function(){var l=a.getPluginState(),d=!a.opts.inline&&l.isHidden;!l.areInsidesReadyToBeVisible&&!d&&(a.uppy.log("[Dashboard] resize event didn\u2019t fire on time: defaulted to mobile layout","warning"),a.setPluginState({areInsidesReadyToBeVisible:!0}))},1e3)},a.stopListeningToResize=function(){a.resizeObserver.disconnect(),clearTimeout(a.makeDashboardInsidesVisibleAnywayTimeout)},a.recordIfFocusedOnUppyRecently=function(l){a.el.contains(l.target)?a.ifFocusedOnUppyRecently=!0:(a.ifFocusedOnUppyRecently=!1,a.superFocus.cancel())},a.disableInteractiveElements=function(l){var d,y=["a[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])",'[role="button"]:not([disabled])'],m=(d=Sr(qe(a),js)[js])!=null?d:Vr(a.el.querySelectorAll(y)).filter(function(P){return!P.classList.contains("uppy-Dashboard-close")}),b=mJe(m),w;try{for(b.s();!(w=b.n()).done;){var S=w.value;S.tagName==="A"?S.setAttribute("aria-disabled",l):S.disabled=l}}catch(P){b.e(P)}finally{b.f()}l?Sr(qe(a),js)[js]=m:Sr(qe(a),js)[js]=null,a.dashboardIsDisabled=l},a.updateBrowserHistory=function(){var l;(l=history.state)!=null&&l[a.modalName]||history.pushState(fa(fa({},history.state),{},fQ({},a.modalName,!0)),""),window.addEventListener("popstate",a.handlePopState,!1)},a.handlePopState=function(l){var d;a.isModalOpen()&&(!l.state||!l.state[a.modalName])&&a.closeModal({manualClose:!1}),!a.isModalOpen()&&(d=l.state)!=null&&d[a.modalName]&&history.back()},a.handleKeyDownInModal=function(l){l.keyCode===AJe&&a.requestCloseModal(l),l.keyCode===lQ&&Dq(l,a.getPluginState().activeOverlayType,a.el)},a.handleClickOutside=function(){a.opts.closeModalOnClickOutside&&a.requestCloseModal()},a.handlePaste=function(l){a.uppy.iteratePlugins(function(y){y.type==="acquirer"&&(y.handleRootPaste==null||y.handleRootPaste(l))});var d=Vr(l.clipboardData.files);d.length>0&&(a.uppy.log("[Dashboard] Files pasted"),a.addFiles(d))},a.handleInputChange=function(l){l.preventDefault();var d=Vr(l.target.files);d.length>0&&(a.uppy.log("[Dashboard] Files selected through input"),a.addFiles(d))},a.handleDragOver=function(l){var d,y;l.preventDefault(),l.stopPropagation();var m=n(function(){var R=!0;return a.uppy.iteratePlugins(function(I){I.canHandleRootDrop!=null&&I.canHandleRootDrop(l)&&(R=!0)}),R},"canSomePluginHandleRootDrop"),b=n(function(){var R=l.dataTransfer.types;return R.some(function(I){return I==="Files"})},"doesEventHaveFiles"),w=m(l),S=b(l);if(!w&&!S||a.opts.disabled||a.opts.disableLocalFiles&&(S||!w)||!a.uppy.getState().allowNewUpload){l.dataTransfer.dropEffect="none",clearTimeout(a.removeDragOverClassTimeout);return}l.dataTransfer.dropEffect="copy",clearTimeout(a.removeDragOverClassTimeout),a.setPluginState({isDraggingOver:!0}),(d=(y=a.opts).onDragOver)==null||d.call(y,l)},a.handleDragLeave=function(l){var d,y;l.preventDefault(),l.stopPropagation(),clearTimeout(a.removeDragOverClassTimeout),a.removeDragOverClassTimeout=setTimeout(function(){a.setPluginState({isDraggingOver:!1})},50),(d=(y=a.opts).onDragLeave)==null||d.call(y,l)},a.handleDrop=function(){var l=yJe(ck().mark(n(function d(y){var m,b,w,S,P;return ck().wrap(n(function(I){for(;;)switch(I.prev=I.next){case 0:return y.preventDefault(),y.stopPropagation(),clearTimeout(a.removeDragOverClassTimeout),a.setPluginState({isDraggingOver:!1}),a.uppy.iteratePlugins(function(T){T.type==="acquirer"&&(T.handleRootDrop==null||T.handleRootDrop(y))}),w=!1,S=n(function(F){a.uppy.log(F,"error"),w||(a.uppy.info(F.message,"error"),w=!0)},"logDropError"),a.uppy.log("[Dashboard] Processing dropped files"),I.next=10,Is(y.dataTransfer,{logDropError:S});case 10:P=I.sent,P.length>0&&(a.uppy.log("[Dashboard] Files dropped"),a.addFiles(P)),(m=(b=a.opts).onDrop)==null||m.call(b,y);case 13:case"end":return I.stop()}},"_callee$"),d)},"_callee")));return function(d){return l.apply(this,arguments)}}(),a.handleRequestThumbnail=function(l){a.opts.waitForThumbnailsBeforeUpload||a.uppy.emit("thumbnail:request",l)},a.handleCancelThumbnail=function(l){a.opts.waitForThumbnailsBeforeUpload||a.uppy.emit("thumbnail:cancel",l)},a.handleKeyDownInInline=function(l){l.keyCode===lQ&&PX(l,a.getPluginState().activeOverlayType,a.el)},a.handlePasteOnBody=function(l){var d=a.el.contains(document.activeElement);d&&a.handlePaste(l)},a.handleComplete=function(l){var d=l.failed;a.opts.closeAfterFinish&&d.length===0&&a.requestCloseModal()},a.handleCancelRestore=function(){a.uppy.emit("restore-canceled")},Object.defineProperty(qe(a),Za,{writable:!0,value:n(function(){if(!a.opts.disableThumbnailGenerator){var d=600,y=a.uppy.getFiles();if(y.length===1){var m=a.uppy.getPlugin("".concat(a.id,":ThumbnailGenerator"));m==null||m.setOptions({thumbnailWidth:d});var b=fa(fa({},y[0]),{},{preview:void 0});m.requestThumbnail(b).then(function(){m==null||m.setOptions({thumbnailWidth:a.opts.thumbnailWidth})})}}},"value")}),Object.defineProperty(qe(a),Uv,{writable:!0,value:n(function(d){var y=d[0];a.canEditFile(y)&&a.openFileEditor(y)},"value")}),a.initEvents=function(){if(a.opts.trigger&&!a.opts.inline){var l=k0(a.opts.trigger);l?l.forEach(function(d){return d.addEventListener("click",a.openModal)}):a.uppy.log("Dashboard modal trigger not found. Make sure `trigger` is set in Dashboard options, unless you are planning to call `dashboard.openModal()` method yourself","warning")}a.startListeningToResize(),document.addEventListener("paste",a.handlePasteOnBody),a.uppy.on("plugin-added",Sr(qe(a),Cs)[Cs]),a.uppy.on("plugin-remove",a.removeTarget),a.uppy.on("file-added",a.hideAllPanels),a.uppy.on("dashboard:modal-closed",a.hideAllPanels),a.uppy.on("file-editor:complete",a.hideAllPanels),a.uppy.on("complete",a.handleComplete),a.uppy.on("files-added",Sr(qe(a),Za)[Za]),a.uppy.on("file-removed",Sr(qe(a),Za)[Za]),document.addEventListener("focus",a.recordIfFocusedOnUppyRecently,!0),document.addEventListener("click",a.recordIfFocusedOnUppyRecently,!0),a.opts.inline&&a.el.addEventListener("keydown",a.handleKeyDownInInline),a.opts.autoOpenFileEditor&&a.uppy.on("files-added",Sr(qe(a),Uv)[Uv])},a.removeEvents=function(){var l=k0(a.opts.trigger);!a.opts.inline&&l&&l.forEach(function(d){return d.removeEventListener("click",a.openModal)}),a.stopListeningToResize(),document.removeEventListener("paste",a.handlePasteOnBody),window.removeEventListener("popstate",a.handlePopState,!1),a.uppy.off("plugin-added",Sr(qe(a),Cs)[Cs]),a.uppy.off("plugin-remove",a.removeTarget),a.uppy.off("file-added",a.hideAllPanels),a.uppy.off("dashboard:modal-closed",a.hideAllPanels),a.uppy.off("file-editor:complete",a.hideAllPanels),a.uppy.off("complete",a.handleComplete),a.uppy.off("files-added",Sr(qe(a),Za)[Za]),a.uppy.off("file-removed",Sr(qe(a),Za)[Za]),document.removeEventListener("focus",a.recordIfFocusedOnUppyRecently),document.removeEventListener("click",a.recordIfFocusedOnUppyRecently),a.opts.inline&&a.el.removeEventListener("keydown",a.handleKeyDownInInline),a.opts.autoOpenFileEditor&&a.uppy.off("files-added",Sr(qe(a),Uv)[Uv])},a.superFocusOnEachUpdate=function(){var l=a.el.contains(document.activeElement),d=document.activeElement===document.body||document.activeElement===null,y=a.uppy.getState().info.length===0,m=!a.opts.inline;y&&(m||l||d&&a.ifFocusedOnUppyRecently)?a.superFocus(a.el,a.getPluginState().activeOverlayType):a.superFocus.cancel()},a.afterUpdate=function(){if(a.opts.disabled&&!a.dashboardIsDisabled){a.disableInteractiveElements(!0);return}!a.opts.disabled&&a.dashboardIsDisabled&&a.disableInteractiveElements(!1),a.superFocusOnEachUpdate()},a.saveFileCard=function(l,d){a.uppy.setFileMeta(d,l),a.toggleFileCard(!1,d)},Object.defineProperty(qe(a),Fs,{writable:!0,value:n(function(d){var y=a.uppy.getPlugin(d.id);return fa(fa({},d),{},{icon:y.icon||a.opts.defaultPickerIcon,render:y.render})},"value")}),Object.defineProperty(qe(a),ak,{writable:!0,value:n(function(d){var y=a.uppy.getPlugin(d.id);return typeof y.isSupported!="function"?!0:y.isSupported()},"value")}),Object.defineProperty(qe(a),ok,{writable:!0,value:ik(function(l){return l.filter(function(d){return d.type==="acquirer"&&Sr(qe(a),ak)[ak](d)}).map(Sr(qe(a),Fs)[Fs])})}),Object.defineProperty(qe(a),uk,{writable:!0,value:ik(function(l){return l.filter(function(d){return d.type==="progressindicator"}).map(Sr(qe(a),Fs)[Fs])})}),Object.defineProperty(qe(a),eo,{writable:!0,value:ik(function(l){return l.filter(function(d){return d.type==="editor"}).map(Sr(qe(a),Fs)[Fs])})}),a.render=function(l){var d=a.getPluginState(),y=l.files,m=l.capabilities,b=l.allowNewUpload,w=a.uppy.getObjectOfFilesPerState(),S=w.newFiles,P=w.uploadStartedFiles,R=w.completeFiles,I=w.erroredFiles,T=w.inProgressFiles,F=w.inProgressNotPausedFiles,k=w.processingFiles,U=w.isUploadStarted,D=w.isAllComplete,H=w.isAllErrored,$=w.isAllPaused,V=Sr(qe(a),ok)[ok](d.targets),W=Sr(qe(a),uk)[uk](d.targets),Y=Sr(qe(a),eo)[eo](d.targets),p;return a.opts.theme==="auto"?p=m.darkMode?"dark":"light":p=a.opts.theme,["files","folders","both"].indexOf(a.opts.fileManagerSelectionType)<0&&(a.opts.fileManagerSelectionType="files",console.warn('Unsupported option for "fileManagerSelectionType". Using default of "'.concat(a.opts.fileManagerSelectionType,'".'))),nk({state:l,isHidden:d.isHidden,files:y,newFiles:S,uploadStartedFiles:P,completeFiles:R,erroredFiles:I,inProgressFiles:T,inProgressNotPausedFiles:F,processingFiles:k,isUploadStarted:U,isAllComplete:D,isAllErrored:H,isAllPaused:$,totalFileCount:Object.keys(y).length,totalProgress:l.totalProgress,allowNewUpload:b,acquirers:V,theme:p,disabled:a.opts.disabled,disableLocalFiles:a.opts.disableLocalFiles,direction:a.opts.direction,activePickerPanel:d.activePickerPanel,showFileEditor:d.showFileEditor,saveFileEditor:a.saveFileEditor,disableInteractiveElements:a.disableInteractiveElements,animateOpenClose:a.opts.animateOpenClose,isClosing:d.isClosing,progressindicators:W,editors:Y,autoProceed:a.uppy.opts.autoProceed,id:a.id,closeModal:a.requestCloseModal,handleClickOutside:a.handleClickOutside,handleInputChange:a.handleInputChange,handlePaste:a.handlePaste,inline:a.opts.inline,showPanel:a.showPanel,hideAllPanels:a.hideAllPanels,i18n:a.i18n,i18nArray:a.i18nArray,uppy:a.uppy,note:a.opts.note,recoveredState:l.recoveredState,metaFields:d.metaFields,resumableUploads:m.resumableUploads||!1,individualCancellation:m.individualCancellation,isMobileDevice:m.isMobileDevice,fileCardFor:d.fileCardFor,toggleFileCard:a.toggleFileCard,toggleAddFilesPanel:a.toggleAddFilesPanel,showAddFilesPanel:d.showAddFilesPanel,saveFileCard:a.saveFileCard,openFileEditor:a.openFileEditor,canEditFile:a.canEditFile,width:a.opts.width,height:a.opts.height,showLinkToFileUploadResult:a.opts.showLinkToFileUploadResult,fileManagerSelectionType:a.opts.fileManagerSelectionType,proudlyDisplayPoweredByUppy:a.opts.proudlyDisplayPoweredByUppy,hideCancelButton:a.opts.hideCancelButton,hideRetryButton:a.opts.hideRetryButton,hidePauseResumeButton:a.opts.hidePauseResumeButton,showRemoveButtonAfterComplete:a.opts.showRemoveButtonAfterComplete,containerWidth:d.containerWidth,containerHeight:d.containerHeight,areInsidesReadyToBeVisible:d.areInsidesReadyToBeVisible,isTargetDOMEl:a.isTargetDOMEl,parentElement:a.el,allowedFileTypes:a.uppy.opts.restrictions.allowedFileTypes,maxNumberOfFiles:a.uppy.opts.restrictions.maxNumberOfFiles,requiredMetaFields:a.uppy.opts.restrictions.requiredMetaFields,showSelectedFiles:a.opts.showSelectedFiles,showNativePhotoCameraButton:a.opts.showNativePhotoCameraButton,showNativeVideoCameraButton:a.opts.showNativeVideoCameraButton,nativeCameraFacingMode:a.opts.nativeCameraFacingMode,singleFileFullScreen:a.opts.singleFileFullScreen,handleCancelRestore:a.handleCancelRestore,handleRequestThumbnail:a.handleRequestThumbnail,handleCancelThumbnail:a.handleCancelThumbnail,isDraggingOver:d.isDraggingOver,handleDragOver:a.handleDragOver,handleDragLeave:a.handleDragLeave,handleDrop:a.handleDrop})},Object.defineProperty(qe(a),sk,{writable:!0,value:n(function(){var d=a.opts.plugins||[];d.forEach(function(y){var m=a.uppy.getPlugin(y);m?m.mount(qe(a),m):a.uppy.log("[Uppy] Dashboard could not find plugin '".concat(y,"', make sure to uppy.use() the plugins you are specifying"),"warning")})},"value")}),Object.defineProperty(qe(a),lk,{writable:!0,value:n(function(){a.uppy.iteratePlugins(Sr(qe(a),Cs)[Cs])},"value")}),Object.defineProperty(qe(a),Cs,{writable:!0,value:n(function(d){var y,m=["acquirer","editor"];if(d&&!((y=d.opts)!=null&&y.target)&&m.includes(d.type)){var b=a.getPluginState().targets.some(function(w){return d.id===w.id});b||d.mount(qe(a),d)}},"value")}),a.install=function(){a.setPluginState({isHidden:!0,fileCardFor:null,activeOverlayType:null,showAddFilesPanel:!1,activePickerPanel:!1,showFileEditor:!1,metaFields:a.opts.metaFields,targets:[],areInsidesReadyToBeVisible:!1,isDraggingOver:!1});var l=a.opts,d=l.inline,y=l.closeAfterFinish;if(d&&y)throw new Error("[Dashboard] `closeAfterFinish: true` cannot be used on an inline Dashboard, because an inline Dashboard cannot be closed at all. Either set `inline: false`, or disable the `closeAfterFinish` option.");var m=a.uppy.opts,b=m.allowMultipleUploads,w=m.allowMultipleUploadBatches;(b||w)&&y&&a.uppy.log("[Dashboard] When using `closeAfterFinish`, we recommended setting the `allowMultipleUploadBatches` option to `false` in the Uppy constructor. See https://uppy.io/docs/uppy/#allowMultipleUploads-true","warning");var S=a.opts.target;S&&a.mount(S,qe(a)),a.opts.disableStatusBar||a.uppy.use(af,{id:"".concat(a.id,":StatusBar"),target:qe(a),hideUploadButton:a.opts.hideUploadButton,hideRetryButton:a.opts.hideRetryButton,hidePauseResumeButton:a.opts.hidePauseResumeButton,hideCancelButton:a.opts.hideCancelButton,showProgressDetails:a.opts.showProgressDetails,hideAfterFinish:a.opts.hideProgressAfterFinish,locale:a.opts.locale,doneButtonHandler:a.opts.doneButtonHandler}),a.opts.disableInformer||a.uppy.use(lf,{id:"".concat(a.id,":Informer"),target:qe(a)}),a.opts.disableThumbnailGenerator||a.uppy.use(jv,{id:"".concat(a.id,":ThumbnailGenerator"),thumbnailWidth:a.opts.thumbnailWidth,thumbnailHeight:a.opts.thumbnailHeight,thumbnailType:a.opts.thumbnailType,waitForThumbnailsBeforeUpload:a.opts.waitForThumbnailsBeforeUpload,lazy:!a.opts.waitForThumbnailsBeforeUpload}),a.darkModeMediaQuery=typeof window!="undefined"&&window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)"):null;var P=a.darkModeMediaQuery?a.darkModeMediaQuery.matches:!1;a.uppy.log("[Dashboard] Dark mode is ".concat(P?"on":"off")),a.setDarkModeCapability(P),a.opts.theme==="auto"&&a.darkModeMediaQuery.addListener(a.handleSystemDarkModeChange),Sr(qe(a),sk)[sk](),Sr(qe(a),lk)[lk](),a.initEvents()},a.uninstall=function(){if(!a.opts.disableInformer){var l=a.uppy.getPlugin("".concat(a.id,":Informer"));l&&a.uppy.removePlugin(l)}if(!a.opts.disableStatusBar){var d=a.uppy.getPlugin("".concat(a.id,":StatusBar"));d&&a.uppy.removePlugin(d)}if(!a.opts.disableThumbnailGenerator){var y=a.uppy.getPlugin("".concat(a.id,":ThumbnailGenerator"));y&&a.uppy.removePlugin(y)}var m=a.opts.plugins||[];m.forEach(function(b){var w=a.uppy.getPlugin(b);w&&w.unmount()}),a.opts.theme==="auto"&&a.darkModeMediaQuery.removeListener(a.handleSystemDarkModeChange),a.opts.disablePageScrollWhenModalOpen&&document.body.classList.remove("uppy-Dashboard-isFixed"),a.unmount(),a.removeEvents()},a.id=a.opts.id||"Dashboard",a.title="Dashboard",a.type="orchestrator",a.modalName="uppy-Dashboard-".concat(It()),a.defaultLocale=iQ;var c={target:"body",metaFields:[],trigger:null,inline:!1,width:750,height:550,thumbnailWidth:280,thumbnailType:"image/jpeg",waitForThumbnailsBeforeUpload:!1,defaultPickerIcon:ef,showLinkToFileUploadResult:!1,showProgressDetails:!1,hideUploadButton:!1,hideCancelButton:!1,hideRetryButton:!1,hidePauseResumeButton:!1,hideProgressAfterFinish:!1,doneButtonHandler:n(function(){a.uppy.clearUploadedFiles(),a.requestCloseModal()},"doneButtonHandler"),note:null,closeModalOnClickOutside:!1,closeAfterFinish:!1,singleFileFullScreen:!0,disableStatusBar:!1,disableInformer:!1,disableThumbnailGenerator:!1,disablePageScrollWhenModalOpen:!0,animateOpenClose:!0,fileManagerSelectionType:"files",proudlyDisplayPoweredByUppy:!0,onRequestCloseModal:n(function(){return a.closeModal()},"onRequestCloseModal"),showSelectedFiles:!0,showRemoveButtonAfterComplete:!1,browserBackButtonClose:!1,showNativePhotoCameraButton:!1,showNativeVideoCameraButton:!1,theme:"light",autoOpenFileEditor:!1,disabled:!1,disableLocalFiles:!1};return a.opts=fa(fa({},c),o),a.i18nInit(),a.superFocus=Mq(),a.ifFocusedOnUppyRecently=!1,a.makeDashboardInsidesVisibleAnywayTimeout=null,a.removeDragOverClassTimeout=null,a}return n(t,"Dashboard"),bJe(t)}(Ee);z0.VERSION=RJe.version;var dQ={strings:{dropHereOr:"Drop here or %{browse}",browse:"browse"}};function xs(r){"@babel/helpers - typeof";return xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xs(r)}n(xs,"_typeof");function hQ(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(hQ,"ownKeys");function vQ(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?hQ(Object(t),!0).forEach(function(i){IJe(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):hQ(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(vQ,"_objectSpread");function IJe(r,e,t){return e=gQ(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(IJe,"_defineProperty");function pk(){"use strict";pk=n(function(){return r},"_regeneratorRuntime");var r={},e=Object.prototype,t=e.hasOwnProperty,i=Object.defineProperty||function(p,s,f){p[s]=f.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(p,s,f){return Object.defineProperty(p,s,{value:f,enumerable:!0,configurable:!0,writable:!0}),p[s]}n(l,"define");try{l({},"")}catch(p){l=n(function(f,v,g){return f[v]=g},"define")}function d(p,s,f,v){var g=s&&s.prototype instanceof b?s:b,h=Object.create(g.prototype),O=new V(v||[]);return i(h,"_invoke",{value:U(p,f,O)}),h}n(d,"wrap");function y(p,s,f){try{return{type:"normal",arg:p.call(s,f)}}catch(v){return{type:"throw",arg:v}}}n(y,"tryCatch"),r.wrap=d;var m={};function b(){}n(b,"Generator");function w(){}n(w,"GeneratorFunction");function S(){}n(S,"GeneratorFunctionPrototype");var P={};l(P,a,function(){return this});var R=Object.getPrototypeOf,I=R&&R(R(W([])));I&&I!==e&&t.call(I,a)&&(P=I);var T=S.prototype=b.prototype=Object.create(P);function F(p){["next","throw","return"].forEach(function(s){l(p,s,function(f){return this._invoke(s,f)})})}n(F,"defineIteratorMethods");function k(p,s){function f(g,h,O,E){var A=y(p[g],p,h);if(A.type!=="throw"){var C=A.arg,N=C.value;return N&&xs(N)=="object"&&t.call(N,"__await")?s.resolve(N.__await).then(function(M){f("next",M,O,E)},function(M){f("throw",M,O,E)}):s.resolve(N).then(function(M){C.value=M,O(C)},function(M){return f("throw",M,O,E)})}E(A.arg)}n(f,"invoke");var v;i(this,"_invoke",{value:n(function(h,O){function E(){return new s(function(A,C){f(h,O,A,C)})}return n(E,"callInvokeWithMethodAndArg"),v=v?v.then(E,E):E()},"value")})}n(k,"AsyncIterator");function U(p,s,f){var v="suspendedStart";return function(g,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(g==="throw")throw h;return Y()}for(f.method=g,f.arg=h;;){var O=f.delegate;if(O){var E=D(O,f);if(E){if(E===m)continue;return E}}if(f.method==="next")f.sent=f._sent=f.arg;else if(f.method==="throw"){if(v==="suspendedStart")throw v="completed",f.arg;f.dispatchException(f.arg)}else f.method==="return"&&f.abrupt("return",f.arg);v="executing";var A=y(p,s,f);if(A.type==="normal"){if(v=f.done?"completed":"suspendedYield",A.arg===m)continue;return{value:A.arg,done:f.done}}A.type==="throw"&&(v="completed",f.method="throw",f.arg=A.arg)}}}n(U,"makeInvokeMethod");function D(p,s){var f=s.method,v=p.iterator[f];if(v===void 0)return s.delegate=null,f==="throw"&&p.iterator.return&&(s.method="return",s.arg=void 0,D(p,s),s.method==="throw")||f!=="return"&&(s.method="throw",s.arg=new TypeError("The iterator does not provide a '"+f+"' method")),m;var g=y(v,p.iterator,s.arg);if(g.type==="throw")return s.method="throw",s.arg=g.arg,s.delegate=null,m;var h=g.arg;return h?h.done?(s[p.resultName]=h.value,s.next=p.nextLoc,s.method!=="return"&&(s.method="next",s.arg=void 0),s.delegate=null,m):h:(s.method="throw",s.arg=new TypeError("iterator result is not an object"),s.delegate=null,m)}n(D,"maybeInvokeDelegate");function H(p){var s={tryLoc:p[0]};1 in p&&(s.catchLoc=p[1]),2 in p&&(s.finallyLoc=p[2],s.afterLoc=p[3]),this.tryEntries.push(s)}n(H,"pushTryEntry");function $(p){var s=p.completion||{};s.type="normal",delete s.arg,p.completion=s}n($,"resetTryEntry");function V(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(H,this),this.reset(!0)}n(V,"Context");function W(p){if(p){var s=p[a];if(s)return s.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var f=-1,v=n(function g(){for(;++f<p.length;)if(t.call(p,f))return g.value=p[f],g.done=!1,g;return g.value=void 0,g.done=!0,g},"next");return v.next=v}}return{next:Y}}n(W,"values");function Y(){return{value:void 0,done:!0}}return n(Y,"doneResult"),w.prototype=S,i(T,"constructor",{value:S,configurable:!0}),i(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),r.isGeneratorFunction=function(p){var s=typeof p=="function"&&p.constructor;return!!s&&(s===w||(s.displayName||s.name)==="GeneratorFunction")},r.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,S):(p.__proto__=S,l(p,c,"GeneratorFunction")),p.prototype=Object.create(T),p},r.awrap=function(p){return{__await:p}},F(k.prototype),l(k.prototype,u,function(){return this}),r.AsyncIterator=k,r.async=function(p,s,f,v,g){g===void 0&&(g=Promise);var h=new k(d(p,s,f,v),g);return r.isGeneratorFunction(s)?h:h.next().then(function(O){return O.done?O.value:h.next()})},F(T),l(T,c,"Generator"),l(T,a,function(){return this}),l(T,"toString",function(){return"[object Generator]"}),r.keys=function(p){var s=Object(p),f=[];for(var v in s)f.push(v);return f.reverse(),n(function g(){for(;f.length;){var h=f.pop();if(h in s)return g.value=h,g.done=!1,g}return g.done=!0,g},"next")},r.values=W,V.prototype={constructor:V,reset:n(function(s){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach($),!s)for(var f in this)f.charAt(0)==="t"&&t.call(this,f)&&!isNaN(+f.slice(1))&&(this[f]=void 0)},"reset"),stop:n(function(){this.done=!0;var s=this.tryEntries[0].completion;if(s.type==="throw")throw s.arg;return this.rval},"stop"),dispatchException:n(function(s){if(this.done)throw s;var f=this;function v(C,N){return O.type="throw",O.arg=s,f.next=C,N&&(f.method="next",f.arg=void 0),!!N}n(v,"handle");for(var g=this.tryEntries.length-1;g>=0;--g){var h=this.tryEntries[g],O=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var E=t.call(h,"catchLoc"),A=t.call(h,"finallyLoc");if(E&&A){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(E){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!A)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},"dispatchException"),abrupt:n(function(s,f){for(var v=this.tryEntries.length-1;v>=0;--v){var g=this.tryEntries[v];if(g.tryLoc<=this.prev&&t.call(g,"finallyLoc")&&this.prev<g.finallyLoc){var h=g;break}}h&&(s==="break"||s==="continue")&&h.tryLoc<=f&&f<=h.finallyLoc&&(h=null);var O=h?h.completion:{};return O.type=s,O.arg=f,h?(this.method="next",this.next=h.finallyLoc,m):this.complete(O)},"abrupt"),complete:n(function(s,f){if(s.type==="throw")throw s.arg;return s.type==="break"||s.type==="continue"?this.next=s.arg:s.type==="return"?(this.rval=this.arg=s.arg,this.method="return",this.next="end"):s.type==="normal"&&f&&(this.next=f),m},"complete"),finish:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.finallyLoc===s)return this.complete(v.completion,v.afterLoc),$(v),m}},"finish"),catch:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.tryLoc===s){var g=v.completion;if(g.type==="throw"){var h=g.arg;$(v)}return h}}throw new Error("illegal catch attempt")},"_catch"),delegateYield:n(function(s,f,v){return this.delegate={iterator:W(s),resultName:f,nextLoc:v},this.method==="next"&&(this.arg=void 0),m},"delegateYield")},r}n(pk,"_regeneratorRuntime");function yQ(r,e,t,i,o,a,u){try{var c=r[a](u),l=c.value}catch(d){t(d);return}c.done?e(l):Promise.resolve(l).then(i,o)}n(yQ,"asyncGeneratorStep");function qJe(r){return function(){var e=this,t=arguments;return new Promise(function(i,o){var a=r.apply(e,t);function u(l){yQ(a,i,o,u,c,"next",l)}n(u,"_next");function c(l){yQ(a,i,o,u,c,"throw",l)}n(c,"_throw"),u(void 0)})}}n(qJe,"_asyncToGenerator");function kJe(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(kJe,"_classCallCheck");function mQ(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,gQ(i.key),i)}}n(mQ,"_defineProperties");function jJe(r,e,t){return e&&mQ(r.prototype,e),t&&mQ(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(jJe,"_createClass");function gQ(r){var e=FJe(r,"string");return xs(e)==="symbol"?e:String(e)}n(gQ,"_toPropertyKey");function FJe(r,e){if(xs(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(xs(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(FJe,"_toPrimitive");function CJe(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&dk(r,e)}n(CJe,"_inherits");function dk(r,e){return dk=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),dk(r,e)}n(dk,"_setPrototypeOf");function LJe(r){var e=xJe();return n(function(){var i=H0(r),o;if(e){var a=H0(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return NJe(this,o)},"_createSuperInternal")}n(LJe,"_createSuper");function NJe(r,e){if(e&&(xs(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ns(r)}n(NJe,"_possibleConstructorReturn");function Ns(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(Ns,"_assertThisInitialized");function xJe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(xJe,"_isNativeReflectConstruct");function H0(r){return H0=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),H0(r)}n(H0,"_getPrototypeOf");var DJe={version:"3.0.3"},W0=function(r){CJe(t,r);var e=LJe(t);function t(i,o){var a;kJe(this,t),a=e.call(this,i,o),a.handleDrop=function(){var c=qJe(pk().mark(n(function l(d){var y,m,b,w;return pk().wrap(n(function(P){for(;;)switch(P.prev=P.next){case 0:return d.preventDefault(),d.stopPropagation(),clearTimeout(a.removeDragOverClassTimeout),a.setPluginState({isDraggingOver:!1}),b=n(function(I){a.uppy.log(I,"error")},"logDropError"),P.next=7,Is(d.dataTransfer,{logDropError:b});case 7:w=P.sent,w.length>0&&(a.uppy.log("[DragDrop] Files dropped"),a.addFiles(w)),(y=(m=a.opts).onDrop)==null||y.call(m,d);case 10:case"end":return P.stop()}},"_callee$"),l)},"_callee")));return function(l){return c.apply(this,arguments)}}(),a.type="acquirer",a.id=a.opts.id||"DragDrop",a.title="Drag & Drop",a.defaultLocale=dQ;var u={target:null,inputName:"files[]",width:"100%",height:"100%",note:null};return a.opts=vQ(vQ({},u),o),a.i18nInit(),a.isDragDropSupported=Lv(),a.removeDragOverClassTimeout=null,a.onInputChange=a.onInputChange.bind(Ns(a)),a.handleDragOver=a.handleDragOver.bind(Ns(a)),a.handleDragLeave=a.handleDragLeave.bind(Ns(a)),a.handleDrop=a.handleDrop.bind(Ns(a)),a.addFiles=a.addFiles.bind(Ns(a)),a.render=a.render.bind(Ns(a)),a}return n(t,"DragDrop"),jJe(t,[{key:"addFiles",value:n(function(o){var a=this,u=o.map(function(c){return{source:a.id,name:c.name,type:c.type,data:c,meta:{relativePath:c.relativePath||null}}});try{this.uppy.addFiles(u)}catch(c){this.uppy.log(c)}},"addFiles")},{key:"onInputChange",value:n(function(o){var a=Vr(o.target.files);a.length>0&&(this.uppy.log("[DragDrop] Files selected through input"),this.addFiles(a)),o.target.value=null},"onInputChange")},{key:"handleDragOver",value:n(function(o){var a,u;o.preventDefault(),o.stopPropagation();var c=o.dataTransfer.types,l=c.some(function(m){return m==="Files"}),d=this.uppy.getState(),y=d.allowNewUpload;if(!l||!y){o.dataTransfer.dropEffect="none",clearTimeout(this.removeDragOverClassTimeout);return}o.dataTransfer.dropEffect="copy",clearTimeout(this.removeDragOverClassTimeout),this.setPluginState({isDraggingOver:!0}),(a=(u=this.opts).onDragOver)==null||a.call(u,o)},"handleDragOver")},{key:"handleDragLeave",value:n(function(o){var a=this,u,c;o.preventDefault(),o.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.removeDragOverClassTimeout=setTimeout(function(){a.setPluginState({isDraggingOver:!1})},50),(u=(c=this.opts).onDragLeave)==null||u.call(c,o)},"handleDragLeave")},{key:"renderHiddenFileInput",value:n(function(){var o=this,a=this.uppy.opts.restrictions;return _("input",{className:"uppy-DragDrop-input",type:"file",hidden:!0,ref:n(function(c){o.fileInputRef=c},"ref"),name:this.opts.inputName,multiple:a.maxNumberOfFiles!==1,accept:a.allowedFileTypes,onChange:this.onInputChange})},"renderHiddenFileInput")},{key:"renderLabel",value:n(function(){return _("div",{className:"uppy-DragDrop-label"},this.i18nArray("dropHereOr",{browse:_("span",{className:"uppy-DragDrop-browse"},this.i18n("browse"))}))},"renderLabel")},{key:"renderNote",value:n(function(){return _("span",{className:"uppy-DragDrop-note"},this.opts.note)},"renderNote")},{key:"render",value:n(function(){var o=this,a="uppy-u-reset\n uppy-DragDrop-container\n ".concat(this.isDragDropSupported?"uppy-DragDrop--isDragDropSupported":"","\n ").concat(this.getPluginState().isDraggingOver?"uppy-DragDrop--isDraggingOver":"","\n "),u={width:this.opts.width,height:this.opts.height};return _("button",{type:"button",className:a,style:u,onClick:n(function(){return o.fileInputRef.click()},"onClick"),onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop},this.renderHiddenFileInput(),_("div",{className:"uppy-DragDrop-inner"},t.renderArrowSvg(),this.renderLabel(),this.renderNote()))},"render")},{key:"install",value:n(function(){var o=this.opts.target;this.setPluginState({isDraggingOver:!1}),o&&this.mount(o,this)},"install")},{key:"uninstall",value:n(function(){this.unmount()},"uninstall")}],[{key:"renderArrowSvg",value:n(function(){return _("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-DragDrop-arrow",width:"16",height:"16",viewBox:"0 0 16 16"},_("path",{d:"M11 10V0H5v10H2l6 6 6-6h-3zm0 0",fillRule:"evenodd"}))},"renderArrowSvg")}]),t}(Ee);W0.VERSION=DJe.version;function Ds(r){"@babel/helpers - typeof";return Ds=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ds(r)}n(Ds,"_typeof");function bQ(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(bQ,"ownKeys");function wQ(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?bQ(Object(t),!0).forEach(function(i){MJe(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):bQ(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(wQ,"_objectSpread");function MJe(r,e,t){return e=PQ(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(MJe,"_defineProperty");function vk(){"use strict";vk=n(function(){return r},"_regeneratorRuntime");var r={},e=Object.prototype,t=e.hasOwnProperty,i=Object.defineProperty||function(p,s,f){p[s]=f.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(p,s,f){return Object.defineProperty(p,s,{value:f,enumerable:!0,configurable:!0,writable:!0}),p[s]}n(l,"define");try{l({},"")}catch(p){l=n(function(f,v,g){return f[v]=g},"define")}function d(p,s,f,v){var g=s&&s.prototype instanceof b?s:b,h=Object.create(g.prototype),O=new V(v||[]);return i(h,"_invoke",{value:U(p,f,O)}),h}n(d,"wrap");function y(p,s,f){try{return{type:"normal",arg:p.call(s,f)}}catch(v){return{type:"throw",arg:v}}}n(y,"tryCatch"),r.wrap=d;var m={};function b(){}n(b,"Generator");function w(){}n(w,"GeneratorFunction");function S(){}n(S,"GeneratorFunctionPrototype");var P={};l(P,a,function(){return this});var R=Object.getPrototypeOf,I=R&&R(R(W([])));I&&I!==e&&t.call(I,a)&&(P=I);var T=S.prototype=b.prototype=Object.create(P);function F(p){["next","throw","return"].forEach(function(s){l(p,s,function(f){return this._invoke(s,f)})})}n(F,"defineIteratorMethods");function k(p,s){function f(g,h,O,E){var A=y(p[g],p,h);if(A.type!=="throw"){var C=A.arg,N=C.value;return N&&Ds(N)=="object"&&t.call(N,"__await")?s.resolve(N.__await).then(function(M){f("next",M,O,E)},function(M){f("throw",M,O,E)}):s.resolve(N).then(function(M){C.value=M,O(C)},function(M){return f("throw",M,O,E)})}E(A.arg)}n(f,"invoke");var v;i(this,"_invoke",{value:n(function(h,O){function E(){return new s(function(A,C){f(h,O,A,C)})}return n(E,"callInvokeWithMethodAndArg"),v=v?v.then(E,E):E()},"value")})}n(k,"AsyncIterator");function U(p,s,f){var v="suspendedStart";return function(g,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(g==="throw")throw h;return Y()}for(f.method=g,f.arg=h;;){var O=f.delegate;if(O){var E=D(O,f);if(E){if(E===m)continue;return E}}if(f.method==="next")f.sent=f._sent=f.arg;else if(f.method==="throw"){if(v==="suspendedStart")throw v="completed",f.arg;f.dispatchException(f.arg)}else f.method==="return"&&f.abrupt("return",f.arg);v="executing";var A=y(p,s,f);if(A.type==="normal"){if(v=f.done?"completed":"suspendedYield",A.arg===m)continue;return{value:A.arg,done:f.done}}A.type==="throw"&&(v="completed",f.method="throw",f.arg=A.arg)}}}n(U,"makeInvokeMethod");function D(p,s){var f=s.method,v=p.iterator[f];if(v===void 0)return s.delegate=null,f==="throw"&&p.iterator.return&&(s.method="return",s.arg=void 0,D(p,s),s.method==="throw")||f!=="return"&&(s.method="throw",s.arg=new TypeError("The iterator does not provide a '"+f+"' method")),m;var g=y(v,p.iterator,s.arg);if(g.type==="throw")return s.method="throw",s.arg=g.arg,s.delegate=null,m;var h=g.arg;return h?h.done?(s[p.resultName]=h.value,s.next=p.nextLoc,s.method!=="return"&&(s.method="next",s.arg=void 0),s.delegate=null,m):h:(s.method="throw",s.arg=new TypeError("iterator result is not an object"),s.delegate=null,m)}n(D,"maybeInvokeDelegate");function H(p){var s={tryLoc:p[0]};1 in p&&(s.catchLoc=p[1]),2 in p&&(s.finallyLoc=p[2],s.afterLoc=p[3]),this.tryEntries.push(s)}n(H,"pushTryEntry");function $(p){var s=p.completion||{};s.type="normal",delete s.arg,p.completion=s}n($,"resetTryEntry");function V(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(H,this),this.reset(!0)}n(V,"Context");function W(p){if(p){var s=p[a];if(s)return s.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var f=-1,v=n(function g(){for(;++f<p.length;)if(t.call(p,f))return g.value=p[f],g.done=!1,g;return g.value=void 0,g.done=!0,g},"next");return v.next=v}}return{next:Y}}n(W,"values");function Y(){return{value:void 0,done:!0}}return n(Y,"doneResult"),w.prototype=S,i(T,"constructor",{value:S,configurable:!0}),i(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),r.isGeneratorFunction=function(p){var s=typeof p=="function"&&p.constructor;return!!s&&(s===w||(s.displayName||s.name)==="GeneratorFunction")},r.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,S):(p.__proto__=S,l(p,c,"GeneratorFunction")),p.prototype=Object.create(T),p},r.awrap=function(p){return{__await:p}},F(k.prototype),l(k.prototype,u,function(){return this}),r.AsyncIterator=k,r.async=function(p,s,f,v,g){g===void 0&&(g=Promise);var h=new k(d(p,s,f,v),g);return r.isGeneratorFunction(s)?h:h.next().then(function(O){return O.done?O.value:h.next()})},F(T),l(T,c,"Generator"),l(T,a,function(){return this}),l(T,"toString",function(){return"[object Generator]"}),r.keys=function(p){var s=Object(p),f=[];for(var v in s)f.push(v);return f.reverse(),n(function g(){for(;f.length;){var h=f.pop();if(h in s)return g.value=h,g.done=!1,g}return g.done=!0,g},"next")},r.values=W,V.prototype={constructor:V,reset:n(function(s){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach($),!s)for(var f in this)f.charAt(0)==="t"&&t.call(this,f)&&!isNaN(+f.slice(1))&&(this[f]=void 0)},"reset"),stop:n(function(){this.done=!0;var s=this.tryEntries[0].completion;if(s.type==="throw")throw s.arg;return this.rval},"stop"),dispatchException:n(function(s){if(this.done)throw s;var f=this;function v(C,N){return O.type="throw",O.arg=s,f.next=C,N&&(f.method="next",f.arg=void 0),!!N}n(v,"handle");for(var g=this.tryEntries.length-1;g>=0;--g){var h=this.tryEntries[g],O=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var E=t.call(h,"catchLoc"),A=t.call(h,"finallyLoc");if(E&&A){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(E){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!A)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},"dispatchException"),abrupt:n(function(s,f){for(var v=this.tryEntries.length-1;v>=0;--v){var g=this.tryEntries[v];if(g.tryLoc<=this.prev&&t.call(g,"finallyLoc")&&this.prev<g.finallyLoc){var h=g;break}}h&&(s==="break"||s==="continue")&&h.tryLoc<=f&&f<=h.finallyLoc&&(h=null);var O=h?h.completion:{};return O.type=s,O.arg=f,h?(this.method="next",this.next=h.finallyLoc,m):this.complete(O)},"abrupt"),complete:n(function(s,f){if(s.type==="throw")throw s.arg;return s.type==="break"||s.type==="continue"?this.next=s.arg:s.type==="return"?(this.rval=this.arg=s.arg,this.method="return",this.next="end"):s.type==="normal"&&f&&(this.next=f),m},"complete"),finish:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.finallyLoc===s)return this.complete(v.completion,v.afterLoc),$(v),m}},"finish"),catch:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.tryLoc===s){var g=v.completion;if(g.type==="throw"){var h=g.arg;$(v)}return h}}throw new Error("illegal catch attempt")},"_catch"),delegateYield:n(function(s,f,v){return this.delegate={iterator:W(s),resultName:f,nextLoc:v},this.method==="next"&&(this.arg=void 0),m},"delegateYield")},r}n(vk,"_regeneratorRuntime");function SQ(r,e,t,i,o,a,u){try{var c=r[a](u),l=c.value}catch(d){t(d);return}c.done?e(l):Promise.resolve(l).then(i,o)}n(SQ,"asyncGeneratorStep");function UJe(r){return function(){var e=this,t=arguments;return new Promise(function(i,o){var a=r.apply(e,t);function u(l){SQ(a,i,o,u,c,"next",l)}n(u,"_next");function c(l){SQ(a,i,o,u,c,"throw",l)}n(c,"_throw"),u(void 0)})}}n(UJe,"_asyncToGenerator");function BJe(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(BJe,"_classCallCheck");function OQ(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,PQ(i.key),i)}}n(OQ,"_defineProperties");function $Je(r,e,t){return e&&OQ(r.prototype,e),t&&OQ(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n($Je,"_createClass");function PQ(r){var e=GJe(r,"string");return Ds(e)==="symbol"?e:String(e)}n(PQ,"_toPropertyKey");function GJe(r,e){if(Ds(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Ds(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(GJe,"_toPrimitive");function zJe(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&yk(r,e)}n(zJe,"_inherits");function yk(r,e){return yk=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),yk(r,e)}n(yk,"_setPrototypeOf");function HJe(r){var e=KJe();return n(function(){var i=V0(r),o;if(e){var a=V0(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return WJe(this,o)},"_createSuperInternal")}n(HJe,"_createSuper");function WJe(r,e){if(e&&(Ds(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return VJe(r)}n(WJe,"_possibleConstructorReturn");function VJe(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(VJe,"_assertThisInitialized");function KJe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(KJe,"_isNativeReflectConstruct");function V0(r){return V0=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),V0(r)}n(V0,"_getPrototypeOf");var YJe={version:"2.0.2"};function hk(r){var e,t;return(e=(t=r.dataTransfer.types)==null?void 0:t.some(function(i){return i==="Files"}))!=null?e:!1}n(hk,"isFileTransfer");var mk=function(r){zJe(t,r);var e=HJe(t);function t(i,o){var a;BJe(this,t),a=e.call(this,i,o),a.addFiles=function(c){var l=c.map(function(d){return{source:a.id,name:d.name,type:d.type,data:d,meta:{relativePath:d.relativePath||null}}});try{a.uppy.addFiles(l)}catch(d){a.uppy.log(d)}},a.handleDrop=function(){var c=UJe(vk().mark(n(function l(d){var y,m,b,w,S;return vk().wrap(n(function(R){for(;;)switch(R.prev=R.next){case 0:if(hk(d)){R.next=2;break}return R.abrupt("return");case 2:return d.preventDefault(),d.stopPropagation(),clearTimeout(a.removeDragOverClassTimeout),d.currentTarget.classList.remove("uppy-is-drag-over"),a.setPluginState({isDraggingOver:!1}),a.uppy.iteratePlugins(function(I){I.type==="acquirer"&&(I.handleRootDrop==null||I.handleRootDrop(d))}),b=!1,w=n(function(T){a.uppy.log(T,"error"),b||(a.uppy.info(T.message,"error"),b=!0)},"logDropError"),R.next=12,Is(d.dataTransfer,{logDropError:w});case 12:S=R.sent,S.length>0&&(a.uppy.log("[DropTarget] Files were dropped"),a.addFiles(S)),(y=(m=a.opts).onDrop)==null||y.call(m,d);case 15:case"end":return R.stop()}},"_callee$"),l)},"_callee")));return function(l){return c.apply(this,arguments)}}(),a.handleDragOver=function(c){var l,d;hk(c)&&(c.preventDefault(),c.stopPropagation(),c.dataTransfer.dropEffect="copy",clearTimeout(a.removeDragOverClassTimeout),c.currentTarget.classList.add("uppy-is-drag-over"),a.setPluginState({isDraggingOver:!0}),(l=(d=a.opts).onDragOver)==null||l.call(d,c))},a.handleDragLeave=function(c){var l,d;if(hk(c)){c.preventDefault(),c.stopPropagation();var y=c.currentTarget;clearTimeout(a.removeDragOverClassTimeout),a.removeDragOverClassTimeout=setTimeout(function(){y.classList.remove("uppy-is-drag-over"),a.setPluginState({isDraggingOver:!1})},50),(l=(d=a.opts).onDragLeave)==null||l.call(d,c)}},a.addListeners=function(){var c=a.opts.target;if(c instanceof Element?a.nodes=[c]:typeof c=="string"&&(a.nodes=Vr(document.querySelectorAll(c))),!a.nodes&&!a.nodes.length>0)throw new Error('"'.concat(c,'" does not match any HTML elements'));a.nodes.forEach(function(l){l.addEventListener("dragover",a.handleDragOver,!1),l.addEventListener("dragleave",a.handleDragLeave,!1),l.addEventListener("drop",a.handleDrop,!1)})},a.removeListeners=function(){a.nodes&&a.nodes.forEach(function(c){c.removeEventListener("dragover",a.handleDragOver,!1),c.removeEventListener("dragleave",a.handleDragLeave,!1),c.removeEventListener("drop",a.handleDrop,!1)})},a.type="acquirer",a.id=a.opts.id||"DropTarget",a.title="Drop Target";var u={target:null};return a.opts=wQ(wQ({},u),o),a.removeDragOverClassTimeout=null,a}return n(t,"DropTarget"),$Je(t,[{key:"install",value:n(function(){this.setPluginState({isDraggingOver:!1}),this.addListeners()},"install")},{key:"uninstall",value:n(function(){this.removeListeners()},"uninstall")}]),t}(fr);mk.VERSION=YJe.version;var _Q={strings:{chooseFiles:"Choose files"}};function Sf(r){"@babel/helpers - typeof";return Sf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sf(r)}n(Sf,"_typeof");function EQ(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(EQ,"ownKeys");function TQ(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?EQ(Object(t),!0).forEach(function(i){XJe(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):EQ(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(TQ,"_objectSpread");function XJe(r,e,t){return e=AQ(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(XJe,"_defineProperty");function QJe(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(QJe,"_classCallCheck");function RQ(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,AQ(i.key),i)}}n(RQ,"_defineProperties");function JJe(r,e,t){return e&&RQ(r.prototype,e),t&&RQ(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(JJe,"_createClass");function AQ(r){var e=ZJe(r,"string");return Sf(e)==="symbol"?e:String(e)}n(AQ,"_toPropertyKey");function ZJe(r,e){if(Sf(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Sf(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(ZJe,"_toPrimitive");function eZe(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&gk(r,e)}n(eZe,"_inherits");function gk(r,e){return gk=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),gk(r,e)}n(gk,"_setPrototypeOf");function rZe(r){var e=nZe();return n(function(){var i=Y0(r),o;if(e){var a=Y0(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return tZe(this,o)},"_createSuperInternal")}n(rZe,"_createSuper");function tZe(r,e){if(e&&(Sf(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return K0(r)}n(tZe,"_possibleConstructorReturn");function K0(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(K0,"_assertThisInitialized");function nZe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(nZe,"_isNativeReflectConstruct");function Y0(r){return Y0=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),Y0(r)}n(Y0,"_getPrototypeOf");var iZe={version:"3.0.4"},X0=function(r){eZe(t,r);var e=rZe(t);function t(i,o){var a;QJe(this,t),a=e.call(this,i,o),a.id=a.opts.id||"FileInput",a.title="File Input",a.type="acquirer",a.defaultLocale=_Q;var u={target:null,pretty:!0,inputName:"files[]"};return a.opts=TQ(TQ({},u),o),a.i18nInit(),a.render=a.render.bind(K0(a)),a.handleInputChange=a.handleInputChange.bind(K0(a)),a.handleClick=a.handleClick.bind(K0(a)),a}return n(t,"FileInput"),JJe(t,[{key:"addFiles",value:n(function(o){var a=this,u=o.map(function(c){return{source:a.id,name:c.name,type:c.type,data:c}});try{this.uppy.addFiles(u)}catch(c){this.uppy.log(c)}},"addFiles")},{key:"handleInputChange",value:n(function(o){this.uppy.log("[FileInput] Something selected through input...");var a=Vr(o.target.files);this.addFiles(a),o.target.value=null},"handleInputChange")},{key:"handleClick",value:n(function(){this.input.click()},"handleClick")},{key:"render",value:n(function(){var o=this,a={width:"0.1px",height:"0.1px",opacity:0,overflow:"hidden",position:"absolute",zIndex:-1},u=this.uppy.opts.restrictions,c=u.allowedFileTypes?u.allowedFileTypes.join(","):null;return _("div",{className:"uppy-FileInput-container"},_("input",{className:"uppy-FileInput-input",style:this.opts.pretty&&a,type:"file",name:this.opts.inputName,onChange:this.handleInputChange,multiple:u.maxNumberOfFiles!==1,accept:c,ref:n(function(d){o.input=d},"ref")}),this.opts.pretty&&_("button",{className:"uppy-FileInput-btn",type:"button",onClick:this.handleClick},this.i18n("chooseFiles")))},"render")},{key:"install",value:n(function(){var o=this.opts.target;o&&this.mount(o,this)},"install")},{key:"uninstall",value:n(function(){this.unmount()},"uninstall")}]),t}(Ee);X0.VERSION=iZe.version;var LQ=Ce(IQ(),1);function aZe(r,e){var t=r.width/e.width,i=r.height/e.height,o=Math.min(t,i),a=e.width*o,u=e.height*o,c=(r.width-a)/2,l=(r.height-u)/2;return{width:a,height:u,left:c,top:l}}n(aZe,"getCanvasDataThatFitsPerfectlyIntoContainer");var qQ=aZe;function oZe(r){return r*(Math.PI/180)}n(oZe,"toRadians");function uZe(r,e,t){var i=Math.abs(oZe(t)),o=Math.max((Math.sin(i)*r+Math.cos(i)*e)/e,(Math.sin(i)*e+Math.cos(i)*r)/r);return o}n(uZe,"getScaleFactorThatRemovesDarkCorners");var kQ=uZe;function sZe(r,e,t){return e.left<r.left?{left:r.left,width:t.width}:e.top<r.top?{top:r.top,height:t.height}:e.left+e.width>r.left+r.width?{left:r.left+r.width-t.width,width:t.width}:e.top+e.height>r.top+r.height?{top:r.top+r.height-t.height,height:t.height}:null}n(sZe,"limitCropboxMovementOnMove");var jQ=sZe;function lZe(r,e,t){return e.left<r.left?{left:r.left,width:t.left+t.width-r.left}:e.top<r.top?{top:r.top,height:t.top+t.height-r.top}:e.left+e.width>r.left+r.width?{left:t.left,width:r.left+r.width-t.left}:e.top+e.height>r.top+r.height?{top:t.top,height:r.top+r.height-t.top}:null}n(lZe,"limitCropboxMovementOnResize");var FQ=lZe;function Of(r){"@babel/helpers - typeof";return Of=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Of(r)}n(Of,"_typeof");function cZe(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(cZe,"_classCallCheck");function CQ(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,pZe(i.key),i)}}n(CQ,"_defineProperties");function fZe(r,e,t){return e&&CQ(r.prototype,e),t&&CQ(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(fZe,"_createClass");function pZe(r){var e=dZe(r,"string");return Of(e)==="symbol"?e:String(e)}n(pZe,"_toPropertyKey");function dZe(r,e){if(Of(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Of(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(dZe,"_toPrimitive");function hZe(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&Sk(r,e)}n(hZe,"_inherits");function Sk(r,e){return Sk=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),Sk(r,e)}n(Sk,"_setPrototypeOf");function vZe(r){var e=mZe();return n(function(){var i=J0(r),o;if(e){var a=J0(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return yZe(this,o)},"_createSuperInternal")}n(vZe,"_createSuper");function yZe(r,e){if(e&&(Of(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ok(r)}n(yZe,"_possibleConstructorReturn");function Ok(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(Ok,"_assertThisInitialized");function mZe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(mZe,"_isNativeReflectConstruct");function J0(r){return J0=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),J0(r)}n(J0,"_getPrototypeOf");var NQ=function(r){hZe(t,r);var e=vZe(t);function t(i){var o;return cZe(this,t),o=e.call(this,i),o.onRotate90Deg=function(){var a=o.state.angle90Deg,u=a-90;o.setState({angle90Deg:u,angleGranular:0}),o.cropper.scale(1),o.cropper.rotateTo(u);var c=o.cropper.getCanvasData(),l=o.cropper.getContainerData(),d=qQ(l,c);o.cropper.setCanvasData(d),o.cropper.setCropBoxData(d)},o.onRotateGranular=function(a){var u=Number(a.target.value);o.setState({angleGranular:u});var c=o.state.angle90Deg,l=c+u;o.cropper.rotateTo(l);var d=o.cropper.getImageData(),y=kQ(d.naturalWidth,d.naturalHeight,u),m=o.cropper.getImageData().scaleX<0?-y:y;o.cropper.scale(m,y)},o.state={angle90Deg:0,angleGranular:0,prevCropboxData:null},o.storePrevCropboxData=o.storePrevCropboxData.bind(Ok(o)),o.limitCropboxMovement=o.limitCropboxMovement.bind(Ok(o)),o}return n(t,"Editor"),fZe(t,[{key:"componentDidMount",value:n(function(){var o=this.props,a=o.opts,u=o.storeCropperInstance;this.cropper=new LQ.default(this.imgElement,a.cropperOptions),this.imgElement.addEventListener("cropstart",this.storePrevCropboxData),this.imgElement.addEventListener("cropend",this.limitCropboxMovement),u(this.cropper)},"componentDidMount")},{key:"componentWillUnmount",value:n(function(){this.cropper.destroy(),this.imgElement.removeEventListener("cropstart",this.storePrevCropboxData),this.imgElement.removeEventListener("cropend",this.limitCropboxMovement)},"componentWillUnmount")},{key:"storePrevCropboxData",value:n(function(){this.setState({prevCropboxData:this.cropper.getCropBoxData()})},"storePrevCropboxData")},{key:"limitCropboxMovement",value:n(function(o){var a=this.cropper.getCanvasData(),u=this.cropper.getCropBoxData(),c=this.state.prevCropboxData;if(o.detail.action==="all"){var l=jQ(a,u,c);l&&this.cropper.setCropBoxData(l)}else{var d=FQ(a,u,c);d&&this.cropper.setCropBoxData(d)}},"limitCropboxMovement")},{key:"renderGranularRotate",value:n(function(){var o=this.props.i18n,a=this.state.angleGranular;return _("label",{role:"tooltip","aria-label":"".concat(a,"\xBA"),"data-microtip-position":"top",className:"uppy-ImageCropper-rangeWrapper"},_("input",{className:"uppy-ImageCropper-range uppy-u-reset",type:"range",onInput:this.onRotateGranular,onChange:this.onRotateGranular,value:a,min:"-45",max:"45","aria-label":o("rotate")}))},"renderGranularRotate")},{key:"renderRevert",value:n(function(){var o=this,a=this.props,u=a.i18n,c=a.opts;return _("label",{role:"tooltip","aria-label":u("revert"),"data-microtip-position":"top"},_("button",{type:"button",className:"uppy-u-reset uppy-c-btn",onClick:n(function(){o.cropper.reset(),o.cropper.setAspectRatio(c.cropperOptions.initialAspectRatio),o.setState({angle90Deg:0,angleGranular:0})},"onClick")},_("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},_("path",{d:"M0 0h24v24H0z",fill:"none"}),_("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"}))))},"renderRevert")},{key:"renderRotate",value:n(function(){var o=this.props.i18n;return _("label",{role:"tooltip","aria-label":o("rotate"),"data-microtip-position":"top"},_("button",{type:"button",className:"uppy-u-reset uppy-c-btn",onClick:this.onRotate90Deg},_("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},_("path",{d:"M0 0h24v24H0V0zm0 0h24v24H0V0z",fill:"none"}),_("path",{d:"M14 10a2 2 0 012 2v7a2 2 0 01-2 2H6a2 2 0 01-2-2v-7a2 2 0 012-2h8zm0 1.75H6a.25.25 0 00-.243.193L5.75 12v7a.25.25 0 00.193.243L6 19.25h8a.25.25 0 00.243-.193L14.25 19v-7a.25.25 0 00-.193-.243L14 11.75zM12 .76V4c2.3 0 4.61.88 6.36 2.64a8.95 8.95 0 012.634 6.025L21 13a1 1 0 01-1.993.117L19 13h-.003a6.979 6.979 0 00-2.047-4.95 6.97 6.97 0 00-4.652-2.044L12 6v3.24L7.76 5 12 .76z"}))))},"renderRotate")},{key:"renderFlip",value:n(function(){var o=this,a=this.props.i18n;return _("label",{role:"tooltip","aria-label":a("flipHorizontal"),"data-microtip-position":"top"},_("button",{type:"button",className:"uppy-u-reset uppy-c-btn",onClick:n(function(){return o.cropper.scaleX(-o.cropper.getData().scaleX||-1)},"onClick")},_("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},_("path",{d:"M0 0h24v24H0z",fill:"none"}),_("path",{d:"M15 21h2v-2h-2v2zm4-12h2V7h-2v2zM3 5v14c0 1.1.9 2 2 2h4v-2H5V5h4V3H5c-1.1 0-2 .9-2 2zm16-2v2h2c0-1.1-.9-2-2-2zm-8 20h2V1h-2v22zm8-6h2v-2h-2v2zM15 5h2V3h-2v2zm4 8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2z"}))))},"renderFlip")},{key:"renderZoomIn",value:n(function(){var o=this,a=this.props.i18n;return _("label",{role:"tooltip","aria-label":a("zoomIn"),"data-microtip-position":"top"},_("button",{type:"button",className:"uppy-u-reset uppy-c-btn",onClick:n(function(){return o.cropper.zoom(.1)},"onClick")},_("svg",{"aria-hidden":"true",className:"uppy-c-icon",height:"24",viewBox:"0 0 24 24",width:"24"},_("path",{d:"M0 0h24v24H0V0z",fill:"none"}),_("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),_("path",{d:"M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"}))))},"renderZoomIn")},{key:"renderZoomOut",value:n(function(){var o=this,a=this.props.i18n;return _("label",{role:"tooltip","aria-label":a("zoomOut"),"data-microtip-position":"top"},_("button",{type:"button",className:"uppy-u-reset uppy-c-btn",onClick:n(function(){return o.cropper.zoom(-.1)},"onClick")},_("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},_("path",{d:"M0 0h24v24H0V0z",fill:"none"}),_("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7z"}))))},"renderZoomOut")},{key:"renderCropSquare",value:n(function(){var o=this,a=this.props.i18n;return _("label",{role:"tooltip","aria-label":a("aspectRatioSquare"),"data-microtip-position":"top"},_("button",{type:"button",className:"uppy-u-reset uppy-c-btn",onClick:n(function(){return o.cropper.setAspectRatio(1)},"onClick")},_("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},_("path",{d:"M0 0h24v24H0z",fill:"none"}),_("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}))))},"renderCropSquare")},{key:"renderCropWidescreen",value:n(function(){var o=this,a=this.props.i18n;return _("label",{role:"tooltip","aria-label":a("aspectRatioLandscape"),"data-microtip-position":"top"},_("button",{type:"button",className:"uppy-u-reset uppy-c-btn",onClick:n(function(){return o.cropper.setAspectRatio(16/9)},"onClick")},_("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},_("path",{d:"M 19,4.9999992 V 17.000001 H 4.9999998 V 6.9999992 H 19 m 0,-2 H 4.9999998 c -1.0999999,0 -1.9999999,0.9000001 -1.9999999,2 V 17.000001 c 0,1.1 0.9,2 1.9999999,2 H 19 c 1.1,0 2,-0.9 2,-2 V 6.9999992 c 0,-1.0999999 -0.9,-2 -2,-2 z"}),_("path",{fill:"none",d:"M0 0h24v24H0z"}))))},"renderCropWidescreen")},{key:"renderCropWidescreenVertical",value:n(function(){var o=this,a=this.props.i18n;return _("label",{role:"tooltip","aria-label":a("aspectRatioPortrait"),"data-microtip-position":"top"},_("button",{type:"button",className:"uppy-u-reset uppy-c-btn",onClick:n(function(){return o.cropper.setAspectRatio(9/16)},"onClick")},_("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},_("path",{d:"M 19.000001,19 H 6.999999 V 5 h 10.000002 v 14 m 2,0 V 5 c 0,-1.0999999 -0.9,-1.9999999 -2,-1.9999999 H 6.999999 c -1.1,0 -2,0.9 -2,1.9999999 v 14 c 0,1.1 0.9,2 2,2 h 10.000002 c 1.1,0 2,-0.9 2,-2 z"}),_("path",{d:"M0 0h24v24H0z",fill:"none"}))))},"renderCropWidescreenVertical")},{key:"render",value:n(function(){var o=this,a=this.props,u=a.currentImage,c=a.opts,l=c.actions,d=URL.createObjectURL(u.data);return _("div",{className:"uppy-ImageCropper"},_("div",{className:"uppy-ImageCropper-container"},_("img",{className:"uppy-ImageCropper-image",alt:u.name,src:d,ref:n(function(m){o.imgElement=m},"ref")})),_("div",{className:"uppy-ImageCropper-controls"},l.revert&&this.renderRevert(),l.rotate&&this.renderRotate(),l.granularRotate&&this.renderGranularRotate(),l.flip&&this.renderFlip(),l.zoomIn&&this.renderZoomIn(),l.zoomOut&&this.renderZoomOut(),l.cropSquare&&this.renderCropSquare(),l.cropWidescreen&&this.renderCropWidescreen(),l.cropWidescreenVertical&&this.renderCropWidescreenVertical()))},"render")}]),t}(ur);var xQ={strings:{revert:"Reset",rotate:"Rotate 90\xB0",zoomIn:"Zoom in",zoomOut:"Zoom out",flipHorizontal:"Flip horizontally",aspectRatioSquare:"Crop square",aspectRatioLandscape:"Crop landscape (16:9)",aspectRatioPortrait:"Crop portrait (9:16)"}};function Pf(r){"@babel/helpers - typeof";return Pf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pf(r)}n(Pf,"_typeof");function DQ(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(DQ,"ownKeys");function Ms(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?DQ(Object(t),!0).forEach(function(i){gZe(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):DQ(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(Ms,"_objectSpread");function gZe(r,e,t){return e=UQ(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(gZe,"_defineProperty");function bZe(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(bZe,"_classCallCheck");function MQ(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,UQ(i.key),i)}}n(MQ,"_defineProperties");function wZe(r,e,t){return e&&MQ(r.prototype,e),t&&MQ(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(wZe,"_createClass");function UQ(r){var e=SZe(r,"string");return Pf(e)==="symbol"?e:String(e)}n(UQ,"_toPropertyKey");function SZe(r,e){if(Pf(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Pf(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(SZe,"_toPrimitive");function OZe(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&Pk(r,e)}n(OZe,"_inherits");function Pk(r,e){return Pk=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),Pk(r,e)}n(Pk,"_setPrototypeOf");function PZe(r){var e=TZe();return n(function(){var i=Z0(r),o;if(e){var a=Z0(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return _Ze(this,o)},"_createSuperInternal")}n(PZe,"_createSuper");function _Ze(r,e){if(e&&(Pf(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return EZe(r)}n(_Ze,"_possibleConstructorReturn");function EZe(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(EZe,"_assertThisInitialized");function TZe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(TZe,"_isNativeReflectConstruct");function Z0(r){return Z0=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),Z0(r)}n(Z0,"_getPrototypeOf");var RZe={version:"2.4.0"},eS=function(r){OZe(t,r);var e=PZe(t);function t(i,o){var a;bZe(this,t),a=e.call(this,i,o),a.save=function(){var d=n(function(S){var P=a.getPluginState(),R=P.currentImage;a.uppy.setFileState(R.id,{data:S,size:S.size,preview:null});var I=a.uppy.getFile(R.id);a.uppy.emit("thumbnail:request",I),a.setPluginState({currentImage:I}),a.uppy.emit("file-editor:complete",I)},"saveBlobCallback"),y=a.getPluginState(),m=y.currentImage,b=a.cropper.getCroppedCanvas({});b.width%2!==0&&a.cropper.setData({width:b.width-1}),b.height%2!==0&&a.cropper.setData({height:b.height-1}),a.cropper.getCroppedCanvas(a.opts.cropperOptions.croppedCanvasOptions).toBlob(d,m.type,a.opts.quality)},a.storeCropperInstance=function(d){a.cropper=d},a.selectFile=function(d){a.uppy.emit("file-editor:start",d),a.setPluginState({currentImage:d})},a.id=a.opts.id||"ImageEditor",a.title="Image Editor",a.type="editor",a.defaultLocale=xQ;var u={viewMode:0,background:!1,autoCropArea:1,responsive:!0,minCropBoxWidth:70,minCropBoxHeight:70,croppedCanvasOptions:{},initialAspectRatio:0},c={revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!0,cropWidescreen:!0,cropWidescreenVertical:!0},l={quality:.8};return a.opts=Ms(Ms(Ms({},l),o),{},{actions:Ms(Ms({},c),o==null?void 0:o.actions),cropperOptions:Ms(Ms({},u),o==null?void 0:o.cropperOptions)}),a.i18nInit(),a}return n(t,"ImageEditor"),wZe(t,[{key:"canEditFile",value:n(function(o){if(!o.type||o.isRemote)return!1;var a=o.type.split("/")[1];return!!/^(jpe?g|gif|png|bmp|webp)$/.test(a)},"canEditFile")},{key:"install",value:n(function(){this.setPluginState({currentImage:null});var o=this.opts.target;o&&this.mount(o,this)},"install")},{key:"uninstall",value:n(function(){var o=this.getPluginState(),a=o.currentImage;if(a){var u=this.uppy.getFile(a.id);this.uppy.emit("file-editor:cancel",u)}this.unmount()},"uninstall")},{key:"render",value:n(function(){var o=this.getPluginState(),a=o.currentImage;return a===null||a.isRemote?null:_(NQ,{currentImage:a,storeCropperInstance:this.storeCropperInstance,save:this.save,opts:this.opts,i18n:this.i18n})},"render")}]),t}(Ee);eS.VERSION=RZe.version;function _f(r){"@babel/helpers - typeof";return _f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_f(r)}n(_f,"_typeof");function BQ(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(BQ,"ownKeys");function $Q(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?BQ(Object(t),!0).forEach(function(i){AZe(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):BQ(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n($Q,"_objectSpread");function AZe(r,e,t){return e=zQ(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(AZe,"_defineProperty");function IZe(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(IZe,"_classCallCheck");function GQ(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,zQ(i.key),i)}}n(GQ,"_defineProperties");function qZe(r,e,t){return e&&GQ(r.prototype,e),t&&GQ(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(qZe,"_createClass");function zQ(r){var e=kZe(r,"string");return _f(e)==="symbol"?e:String(e)}n(zQ,"_toPropertyKey");function kZe(r,e){if(_f(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(_f(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(kZe,"_toPrimitive");function jZe(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&_k(r,e)}n(jZe,"_inherits");function _k(r,e){return _k=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),_k(r,e)}n(_k,"_setPrototypeOf");function FZe(r){var e=LZe();return n(function(){var i=rS(r),o;if(e){var a=rS(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return CZe(this,o)},"_createSuperInternal")}n(FZe,"_createSuper");function CZe(r,e){if(e&&(_f(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return HQ(r)}n(CZe,"_possibleConstructorReturn");function HQ(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(HQ,"_assertThisInitialized");function LZe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(LZe,"_isNativeReflectConstruct");function rS(r){return rS=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),rS(r)}n(rS,"_getPrototypeOf");var NZe={version:"3.0.4"},tS=function(r){jZe(t,r);var e=FZe(t);function t(i,o){var a;IZe(this,t),a=e.call(this,i,o),a.id=a.opts.id||"ProgressBar",a.title="Progress Bar",a.type="progressindicator";var u={target:"body",fixed:!1,hideAfterFinish:!0};return a.opts=$Q($Q({},u),o),a.render=a.render.bind(HQ(a)),a}return n(t,"ProgressBar"),qZe(t,[{key:"render",value:n(function(o){var a=o.totalProgress||0,u=(a===0||a===100)&&this.opts.hideAfterFinish;return _("div",{className:"uppy uppy-ProgressBar",style:{position:this.opts.fixed?"fixed":"initial"},"aria-hidden":u},_("div",{className:"uppy-ProgressBar-inner",style:{width:"".concat(a,"%")}}),_("div",{className:"uppy-ProgressBar-percentage"},a))},"render")},{key:"install",value:n(function(){var o=this.opts.target;o&&this.mount(o,this)},"install")},{key:"uninstall",value:n(function(){this.unmount()},"uninstall")}]),t}(Ee);tS.VERSION=NZe.version;function xZe(r,e){return BZe(r)||UZe(r,e)||MZe(r,e)||DZe()}n(xZe,"_slicedToArray");function DZe(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n(DZe,"_nonIterableRest");function MZe(r,e){if(r){if(typeof r=="string")return WQ(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return WQ(r,e)}}n(MZe,"_unsupportedIterableToArray");function WQ(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=r[t];return i}n(WQ,"_arrayLikeToArray");function UZe(r,e){var t=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var i,o,a,u,c=[],l=!0,d=!1;try{if(a=(t=t.call(r)).next,e===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(i=a.call(t)).done)&&(c.push(i.value),c.length!==e);l=!0);}catch(y){d=!0,o=y}finally{try{if(!l&&t.return!=null&&(u=t.return(),Object(u)!==u))return}finally{if(d)throw o}}return c}}n(UZe,"_iterableToArrayLimit");function BZe(r){if(Array.isArray(r))return r}n(BZe,"_arrayWithHoles");var $Ze={__proto__:null,"audio/mp3":"mp3","audio/mp4":"mp4","audio/ogg":"ogg","audio/webm":"webm","image/gif":"gif","image/heic":"heic","image/heif":"heif","image/jpeg":"jpg","image/png":"png","image/svg+xml":"svg","video/mp4":"mp4","video/ogg":"ogv","video/quicktime":"mov","video/webm":"webm","video/x-matroska":"mkv","video/x-msvideo":"avi"};function pa(r){var e=r.split(";",1),t=xZe(e,1);return r=t[0],$Ze[r]||null}n(pa,"getFileTypeExtension");function Ek(){var r;return typeof MediaRecorder=="function"&&typeof((r=MediaRecorder.prototype)==null?void 0:r.start)=="function"}n(Ek,"supportsMediaRecorder");function Tk(r){var e=r.recording,t=r.onStartRecording,i=r.onStopRecording,o=r.i18n;return e?_("button",{className:"uppy-u-reset uppy-c-btn uppy-Audio-button",type:"button",title:o("stopAudioRecording"),"aria-label":o("stopAudioRecording"),onClick:i,"data-uppy-super-focusable":!0},_("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"100",height:"100",viewBox:"0 0 100 100"},_("rect",{x:"15",y:"15",width:"70",height:"70"}))):_("button",{className:"uppy-u-reset uppy-c-btn uppy-Audio-button",type:"button",title:o("startAudioRecording"),"aria-label":o("startAudioRecording"),onClick:t,"data-uppy-super-focusable":!0},_("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"14px",height:"20px",viewBox:"0 0 14 20"},_("path",{d:"M7 14c2.21 0 4-1.71 4-3.818V3.818C11 1.71 9.21 0 7 0S3 1.71 3 3.818v6.364C3 12.29 4.79 14 7 14zm6.364-7h-.637a.643.643 0 0 0-.636.65V9.6c0 3.039-2.565 5.477-5.6 5.175-2.645-.264-4.582-2.692-4.582-5.407V7.65c0-.36-.285-.65-.636-.65H.636A.643.643 0 0 0 0 7.65v1.631c0 3.642 2.544 6.888 6.045 7.382v1.387H3.818a.643.643 0 0 0-.636.65v.65c0 .36.285.65.636.65h6.364c.351 0 .636-.29.636-.65v-.65c0-.36-.285-.65-.636-.65H7.955v-1.372C11.363 16.2 14 13.212 14 9.6V7.65c0-.36-.285-.65-.636-.65z",fill:"#FFF","fill-rule":"nonzero"})))}n(Tk,"RecordButton");function Rk(r){return"".concat(Math.floor(r/60),":").concat(String(r%60).padStart(2,0))}n(Rk,"formatSeconds");function Ak(r){var e=r.recordingLengthSeconds,t=r.i18n,i=Rk(e);return _("span",{"aria-label":t("recordingLength",{recording_length:i})},i)}n(Ak,"RecordingLength");var VQ=n(function(r){var e=r.currentDeviceId,t=r.audioSources,i=r.onChangeSource;return _("div",{className:"uppy-Audio-videoSource"},_("select",{className:"uppy-u-reset uppy-Audio-audioSource-select",onChange:n(function(a){i(a.target.value)},"onChange")},t.map(function(o){return _("option",{key:o.deviceId,value:o.deviceId,selected:o.deviceId===e},o.label)})))},"default");function $v(r){"@babel/helpers - typeof";return $v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$v(r)}n($v,"_typeof");function GZe(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(GZe,"_classCallCheck");function KQ(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,HZe(i.key),i)}}n(KQ,"_defineProperties");function zZe(r,e,t){return e&&KQ(r.prototype,e),t&&KQ(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(zZe,"_createClass");function HZe(r){var e=WZe(r,"string");return $v(e)==="symbol"?e:String(e)}n(HZe,"_toPropertyKey");function WZe(r,e){if($v(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if($v(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(WZe,"_toPrimitive");function VZe(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}n(VZe,"_classPrivateFieldLooseBase");var KZe=0;function YZe(r){return"__private_"+KZe+++"_"+r}n(YZe,"_classPrivateFieldLooseKey");function YQ(r){return typeof r=="function"}n(YQ,"isFunction");function Bv(r){return YQ(r)?r():r}n(Bv,"result");var Ik=YZe("draw"),XQ=function(){function r(e,t){var i=this;GZe(this,r),t===void 0&&(t={}),Object.defineProperty(this,Ik,{writable:!0,value:n(function(){return i.draw()},"value")});var o=t.canvas||{},a=t.canvasContext||{};this.analyser=null,this.bufferLength=0,this.dataArray=[],this.canvas=e,this.width=Bv(o.width)||this.canvas.width,this.height=Bv(o.height)||this.canvas.height,this.canvas.width=this.width,this.canvas.height=this.height,this.canvasContext=this.canvas.getContext("2d"),this.canvasContext.fillStyle=Bv(a.fillStyle)||"rgb(255, 255, 255)",this.canvasContext.strokeStyle=Bv(a.strokeStyle)||"rgb(0, 0, 0)",this.canvasContext.lineWidth=Bv(a.lineWidth)||1,this.onDrawFrame=YQ(t.onDrawFrame)?t.onDrawFrame:function(){}}return n(r,"AudioOscilloscope"),zZe(r,[{key:"addSource",value:n(function(t){this.streamSource=t,this.audioContext=this.streamSource.context,this.analyser=this.audioContext.createAnalyser(),this.analyser.fftSize=2048,this.bufferLength=this.analyser.frequencyBinCount,this.source=this.audioContext.createBufferSource(),this.dataArray=new Uint8Array(this.bufferLength),this.analyser.getByteTimeDomainData(this.dataArray),this.streamSource.connect(this.analyser)},"addSource")},{key:"draw",value:n(function(){var t=this.analyser,i=this.dataArray,o=this.bufferLength,a=this.canvasContext,u=this.width,c=this.height;t&&t.getByteTimeDomainData(i),a.fillRect(0,0,u,c),a.beginPath();var l=u*1/o,d=0;o||a.moveTo(0,this.height/2);for(var y=0;y<o;y++){var m=i[y]/128,b=m*(c/2);y===0?a.moveTo(d,b):a.lineTo(d,b),d+=l}a.lineTo(u,c/2),a.stroke(),this.onDrawFrame(this),requestAnimationFrame(VZe(this,Ik)[Ik])},"draw")}]),r}();function XZe(r){var e=r.onSubmit,t=r.i18n;return _("button",{className:"uppy-u-reset uppy-c-btn uppy-Audio-button uppy-Audio-button--submit",type:"button",title:t("submitRecordedFile"),"aria-label":t("submitRecordedFile"),onClick:e,"data-uppy-super-focusable":!0},_("svg",{width:"12",height:"9",viewBox:"0 0 12 9",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",className:"uppy-c-icon"},_("path",{fill:"#fff",fillRule:"nonzero",d:"M10.66 0L12 1.31 4.136 9 0 4.956l1.34-1.31L4.136 6.38z"})))}n(XZe,"SubmitButton");var QQ=XZe;function QZe(r){var e=r.onDiscard,t=r.i18n;return _("button",{className:"uppy-u-reset uppy-c-btn uppy-Audio-button",type:"button",title:t("discardRecordedFile"),"aria-label":t("discardRecordedFile"),onClick:e,"data-uppy-super-focusable":!0},_("svg",{width:"13",height:"13",viewBox:"0 0 13 13",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:"uppy-c-icon"},_("g",{fill:"#FFF",fillRule:"evenodd"},_("path",{d:"M.496 11.367L11.103.76l1.414 1.414L1.911 12.781z"}),_("path",{d:"M11.104 12.782L.497 2.175 1.911.76l10.607 10.606z"}))))}n(QZe,"DiscardButton");var JQ=QZe;function qk(r){var e=r.stream,t=r.recordedAudio,i=r.onStop,o=r.recording,a=r.supportsRecording,u=r.audioSources,c=r.showAudioSourceDropdown,l=r.onSubmit,d=r.i18n,y=r.onStartRecording,m=r.onStopRecording,b=r.onDiscardRecordedAudio,w=r.recordingLengthSeconds,S=EI(null),P=EI(null);Ps(function(){return function(){P.current=null,i()}},[i]),Ps(function(){if(!t&&(P.current=new XQ(S.current,{canvas:{width:600,height:600},canvasContext:{lineWidth:2,fillStyle:"rgb(0,0,0)",strokeStyle:"green"}}),P.current.draw(),e)){var F=new AudioContext,k=F.createMediaStreamSource(e);P.current.addSource(k)}},[t,e]);var R=t!=null,I=!R&&a,T=c&&!R&&u&&u.length>1;return _("div",{className:"uppy-Audio-container"},_("div",{className:"uppy-Audio-audioContainer"},R?_("audio",{className:"uppy-Audio-player",controls:!0,src:t}):_("canvas",{ref:S,className:"uppy-Audio-canvas"})),_("div",{className:"uppy-Audio-footer"},_("div",{className:"uppy-Audio-audioSourceContainer"},T?VQ(r):null),_("div",{className:"uppy-Audio-buttonContainer"},I&&_(Tk,{recording:o,onStartRecording:y,onStopRecording:m,i18n:d}),R&&_(QQ,{onSubmit:l,i18n:d}),R&&_(JQ,{onDiscard:b,i18n:d})),_("div",{className:"uppy-Audio-recordingLength"},!R&&_(Ak,{recordingLengthSeconds:w,i18n:d}))))}n(qk,"RecordingScreen");var ZQ=n(function(r){var e=r.icon,t=r.hasAudio,i=r.i18n;return _("div",{className:"uppy-Audio-permissons"},_("div",{className:"uppy-Audio-permissonsIcon"},e()),_("h1",{className:"uppy-Audio-title"},i(t?"allowAudioAccessTitle":"noAudioTitle")),_("p",null,i(t?"allowAudioAccessDescription":"noAudioDescription")))},"default");var eJ={strings:{pluginNameAudio:"Audio",startAudioRecording:"Begin audio recording",stopAudioRecording:"Stop audio recording",allowAudioAccessTitle:"Please allow access to your microphone",allowAudioAccessDescription:"In order to record audio, please allow microphone access for this site.",noAudioTitle:"Microphone Not Available",noAudioDescription:"In order to record audio, please connect a microphone or another audio input device",recordingStoppedMaxSize:"Recording stopped because the file size is about to exceed the limit",recordingLength:"Recording length %{recording_length}",submitRecordedFile:"Submit recorded file",discardRecordedFile:"Discard recorded file"}};function $s(r){"@babel/helpers - typeof";return $s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$s(r)}n($s,"_typeof");function rJ(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(rJ,"ownKeys");function JZe(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?rJ(Object(t),!0).forEach(function(i){ZZe(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):rJ(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(JZe,"_objectSpread");function ZZe(r,e,t){return e=iJ(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(ZZe,"_defineProperty");function xk(){"use strict";xk=n(function(){return r},"_regeneratorRuntime");var r={},e=Object.prototype,t=e.hasOwnProperty,i=Object.defineProperty||function(p,s,f){p[s]=f.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(p,s,f){return Object.defineProperty(p,s,{value:f,enumerable:!0,configurable:!0,writable:!0}),p[s]}n(l,"define");try{l({},"")}catch(p){l=n(function(f,v,g){return f[v]=g},"define")}function d(p,s,f,v){var g=s&&s.prototype instanceof b?s:b,h=Object.create(g.prototype),O=new V(v||[]);return i(h,"_invoke",{value:U(p,f,O)}),h}n(d,"wrap");function y(p,s,f){try{return{type:"normal",arg:p.call(s,f)}}catch(v){return{type:"throw",arg:v}}}n(y,"tryCatch"),r.wrap=d;var m={};function b(){}n(b,"Generator");function w(){}n(w,"GeneratorFunction");function S(){}n(S,"GeneratorFunctionPrototype");var P={};l(P,a,function(){return this});var R=Object.getPrototypeOf,I=R&&R(R(W([])));I&&I!==e&&t.call(I,a)&&(P=I);var T=S.prototype=b.prototype=Object.create(P);function F(p){["next","throw","return"].forEach(function(s){l(p,s,function(f){return this._invoke(s,f)})})}n(F,"defineIteratorMethods");function k(p,s){function f(g,h,O,E){var A=y(p[g],p,h);if(A.type!=="throw"){var C=A.arg,N=C.value;return N&&$s(N)=="object"&&t.call(N,"__await")?s.resolve(N.__await).then(function(M){f("next",M,O,E)},function(M){f("throw",M,O,E)}):s.resolve(N).then(function(M){C.value=M,O(C)},function(M){return f("throw",M,O,E)})}E(A.arg)}n(f,"invoke");var v;i(this,"_invoke",{value:n(function(h,O){function E(){return new s(function(A,C){f(h,O,A,C)})}return n(E,"callInvokeWithMethodAndArg"),v=v?v.then(E,E):E()},"value")})}n(k,"AsyncIterator");function U(p,s,f){var v="suspendedStart";return function(g,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(g==="throw")throw h;return Y()}for(f.method=g,f.arg=h;;){var O=f.delegate;if(O){var E=D(O,f);if(E){if(E===m)continue;return E}}if(f.method==="next")f.sent=f._sent=f.arg;else if(f.method==="throw"){if(v==="suspendedStart")throw v="completed",f.arg;f.dispatchException(f.arg)}else f.method==="return"&&f.abrupt("return",f.arg);v="executing";var A=y(p,s,f);if(A.type==="normal"){if(v=f.done?"completed":"suspendedYield",A.arg===m)continue;return{value:A.arg,done:f.done}}A.type==="throw"&&(v="completed",f.method="throw",f.arg=A.arg)}}}n(U,"makeInvokeMethod");function D(p,s){var f=s.method,v=p.iterator[f];if(v===void 0)return s.delegate=null,f==="throw"&&p.iterator.return&&(s.method="return",s.arg=void 0,D(p,s),s.method==="throw")||f!=="return"&&(s.method="throw",s.arg=new TypeError("The iterator does not provide a '"+f+"' method")),m;var g=y(v,p.iterator,s.arg);if(g.type==="throw")return s.method="throw",s.arg=g.arg,s.delegate=null,m;var h=g.arg;return h?h.done?(s[p.resultName]=h.value,s.next=p.nextLoc,s.method!=="return"&&(s.method="next",s.arg=void 0),s.delegate=null,m):h:(s.method="throw",s.arg=new TypeError("iterator result is not an object"),s.delegate=null,m)}n(D,"maybeInvokeDelegate");function H(p){var s={tryLoc:p[0]};1 in p&&(s.catchLoc=p[1]),2 in p&&(s.finallyLoc=p[2],s.afterLoc=p[3]),this.tryEntries.push(s)}n(H,"pushTryEntry");function $(p){var s=p.completion||{};s.type="normal",delete s.arg,p.completion=s}n($,"resetTryEntry");function V(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(H,this),this.reset(!0)}n(V,"Context");function W(p){if(p){var s=p[a];if(s)return s.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var f=-1,v=n(function g(){for(;++f<p.length;)if(t.call(p,f))return g.value=p[f],g.done=!1,g;return g.value=void 0,g.done=!0,g},"next");return v.next=v}}return{next:Y}}n(W,"values");function Y(){return{value:void 0,done:!0}}return n(Y,"doneResult"),w.prototype=S,i(T,"constructor",{value:S,configurable:!0}),i(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),r.isGeneratorFunction=function(p){var s=typeof p=="function"&&p.constructor;return!!s&&(s===w||(s.displayName||s.name)==="GeneratorFunction")},r.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,S):(p.__proto__=S,l(p,c,"GeneratorFunction")),p.prototype=Object.create(T),p},r.awrap=function(p){return{__await:p}},F(k.prototype),l(k.prototype,u,function(){return this}),r.AsyncIterator=k,r.async=function(p,s,f,v,g){g===void 0&&(g=Promise);var h=new k(d(p,s,f,v),g);return r.isGeneratorFunction(s)?h:h.next().then(function(O){return O.done?O.value:h.next()})},F(T),l(T,c,"Generator"),l(T,a,function(){return this}),l(T,"toString",function(){return"[object Generator]"}),r.keys=function(p){var s=Object(p),f=[];for(var v in s)f.push(v);return f.reverse(),n(function g(){for(;f.length;){var h=f.pop();if(h in s)return g.value=h,g.done=!1,g}return g.done=!0,g},"next")},r.values=W,V.prototype={constructor:V,reset:n(function(s){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach($),!s)for(var f in this)f.charAt(0)==="t"&&t.call(this,f)&&!isNaN(+f.slice(1))&&(this[f]=void 0)},"reset"),stop:n(function(){this.done=!0;var s=this.tryEntries[0].completion;if(s.type==="throw")throw s.arg;return this.rval},"stop"),dispatchException:n(function(s){if(this.done)throw s;var f=this;function v(C,N){return O.type="throw",O.arg=s,f.next=C,N&&(f.method="next",f.arg=void 0),!!N}n(v,"handle");for(var g=this.tryEntries.length-1;g>=0;--g){var h=this.tryEntries[g],O=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var E=t.call(h,"catchLoc"),A=t.call(h,"finallyLoc");if(E&&A){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(E){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!A)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},"dispatchException"),abrupt:n(function(s,f){for(var v=this.tryEntries.length-1;v>=0;--v){var g=this.tryEntries[v];if(g.tryLoc<=this.prev&&t.call(g,"finallyLoc")&&this.prev<g.finallyLoc){var h=g;break}}h&&(s==="break"||s==="continue")&&h.tryLoc<=f&&f<=h.finallyLoc&&(h=null);var O=h?h.completion:{};return O.type=s,O.arg=f,h?(this.method="next",this.next=h.finallyLoc,m):this.complete(O)},"abrupt"),complete:n(function(s,f){if(s.type==="throw")throw s.arg;return s.type==="break"||s.type==="continue"?this.next=s.arg:s.type==="return"?(this.rval=this.arg=s.arg,this.method="return",this.next="end"):s.type==="normal"&&f&&(this.next=f),m},"complete"),finish:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.finallyLoc===s)return this.complete(v.completion,v.afterLoc),$(v),m}},"finish"),catch:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.tryLoc===s){var g=v.completion;if(g.type==="throw"){var h=g.arg;$(v)}return h}}throw new Error("illegal catch attempt")},"_catch"),delegateYield:n(function(s,f,v){return this.delegate={iterator:W(s),resultName:f,nextLoc:v},this.method==="next"&&(this.arg=void 0),m},"delegateYield")},r}n(xk,"_regeneratorRuntime");function tJ(r,e,t,i,o,a,u){try{var c=r[a](u),l=c.value}catch(d){t(d);return}c.done?e(l):Promise.resolve(l).then(i,o)}n(tJ,"asyncGeneratorStep");function eer(r){return function(){var e=this,t=arguments;return new Promise(function(i,o){var a=r.apply(e,t);function u(l){tJ(a,i,o,u,c,"next",l)}n(u,"_next");function c(l){tJ(a,i,o,u,c,"throw",l)}n(c,"_throw"),u(void 0)})}}n(eer,"_asyncToGenerator");function rer(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(rer,"_classCallCheck");function nJ(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,iJ(i.key),i)}}n(nJ,"_defineProperties");function ter(r,e,t){return e&&nJ(r.prototype,e),t&&nJ(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(ter,"_createClass");function iJ(r){var e=ner(r,"string");return $s(e)==="symbol"?e:String(e)}n(iJ,"_toPropertyKey");function ner(r,e){if($s(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if($s(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(ner,"_toPrimitive");function ier(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&Dk(r,e)}n(ier,"_inherits");function Dk(r,e){return Dk=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),Dk(r,e)}n(Dk,"_setPrototypeOf");function aer(r){var e=uer();return n(function(){var i=nS(r),o;if(e){var a=nS(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return oer(this,o)},"_createSuperInternal")}n(aer,"_createSuper");function oer(r,e){if(e&&($s(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return me(r)}n(oer,"_possibleConstructorReturn");function me(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(me,"_assertThisInitialized");function uer(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(uer,"_isNativeReflectConstruct");function nS(r){return nS=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),nS(r)}n(nS,"_getPrototypeOf");function Mk(){return Mk=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},Mk.apply(this,arguments)}n(Mk,"_extends");function fe(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}n(fe,"_classPrivateFieldLooseBase");var ser=0;function bt(r){return"__private_"+ser+++"_"+r}n(bt,"_classPrivateFieldLooseKey");var ler={version:"1.1.4"},mt=bt("stream"),ro=bt("audioActive"),Ar=bt("recordingChunks"),Rr=bt("recorder"),to=bt("capturedMediaFile"),gt=bt("mediaDevices"),Gv=bt("supportsUserMedia"),kk=bt("hasAudioCheck"),Us=bt("start"),jk=bt("startRecording"),zv=bt("stopRecording"),Fk=bt("discardRecordedAudio"),Ck=bt("submit"),no=bt("stop"),Lk=bt("getAudio"),Nk=bt("changeSource"),Bs=bt("updateSources"),iS=function(r){ier(t,r);var e=aer(t);function t(i,o){var a;rer(this,t);var u;return a=e.call(this,i,o),u=me(a),Object.defineProperty(me(a),Lk,{value:fer}),Object.defineProperty(me(a),kk,{value:cer}),Object.defineProperty(me(a),mt,{writable:!0,value:null}),Object.defineProperty(me(a),ro,{writable:!0,value:!1}),Object.defineProperty(me(a),Ar,{writable:!0,value:null}),Object.defineProperty(me(a),Rr,{writable:!0,value:null}),Object.defineProperty(me(a),to,{writable:!0,value:null}),Object.defineProperty(me(a),gt,{writable:!0,value:null}),Object.defineProperty(me(a),Gv,{writable:!0,value:null}),Object.defineProperty(me(a),Us,{writable:!0,value:n(function(l){if(l===void 0&&(l=null),!fe(u,Gv)[Gv])return Promise.reject(new Error("Microphone access not supported"));fe(u,ro)[ro]=!0,fe(u,kk)[kk]().then(function(d){return u.setPluginState({hasAudio:d}),fe(u,gt)[gt].getUserMedia({audio:!0}).then(function(y){fe(u,mt)[mt]=y;var m=null,b=y.getAudioTracks();!l||!l.deviceId?m=b[0].getSettings().deviceId:b.forEach(function(w){w.getSettings().deviceId===l.deviceId&&(m=w.getSettings().deviceId)}),fe(u,Bs)[Bs](),u.setPluginState({currentDeviceId:m,audioReady:!0})}).catch(function(y){u.setPluginState({audioReady:!1,cameraError:y}),u.uppy.info(y.message,"error")})})},"value")}),Object.defineProperty(me(a),jk,{writable:!0,value:n(function(){fe(me(a),Rr)[Rr]=new MediaRecorder(fe(me(a),mt)[mt]),fe(me(a),Ar)[Ar]=[];var l=!1;fe(me(a),Rr)[Rr].addEventListener("dataavailable",function(d){fe(me(a),Ar)[Ar].push(d.data);var y=a.uppy.opts.restrictions;if(fe(me(a),Ar)[Ar].length>1&&y.maxFileSize!=null&&!l){var m=fe(me(a),Ar)[Ar].reduce(function(P,R){return P+R.size},0),b=(m-fe(me(a),Ar)[Ar][0].size)/(fe(me(a),Ar)[Ar].length-1),w=b*3,S=Math.max(0,y.maxFileSize-w);m>S&&(l=!0,a.uppy.info(a.i18n("recordingStoppedMaxSize"),"warning",4e3),fe(me(a),zv)[zv]())}}),fe(me(a),Rr)[Rr].start(500),a.recordingLengthTimer=setInterval(function(){var d=a.getPluginState().recordingLengthSeconds;a.setPluginState({recordingLengthSeconds:d+1})},1e3),a.setPluginState({isRecording:!0})},"value")}),Object.defineProperty(me(a),zv,{writable:!0,value:n(function(){var l=new Promise(function(d){fe(me(a),Rr)[Rr].addEventListener("stop",function(){d()}),fe(me(a),Rr)[Rr].stop(),clearInterval(a.recordingLengthTimer),a.setPluginState({recordingLengthSeconds:0})});return l.then(function(){return a.setPluginState({isRecording:!1}),fe(me(a),Lk)[Lk]()}).then(function(d){try{fe(me(a),to)[to]=d,a.setPluginState({recordedAudio:URL.createObjectURL(d.data)})}catch(y){y.isRestriction||a.uppy.log(y)}}).then(function(){fe(me(a),Ar)[Ar]=null,fe(me(a),Rr)[Rr]=null},function(d){throw fe(me(a),Ar)[Ar]=null,fe(me(a),Rr)[Rr]=null,d})},"value")}),Object.defineProperty(me(a),Fk,{writable:!0,value:n(function(){a.setPluginState({recordedAudio:null}),fe(me(a),to)[to]=null},"value")}),Object.defineProperty(me(a),Ck,{writable:!0,value:n(function(){try{fe(me(a),to)[to]&&a.uppy.addFile(fe(me(a),to)[to])}catch(l){l.isRestriction||a.uppy.log(l,"warning")}},"value")}),Object.defineProperty(me(a),no,{writable:!0,value:function(){var c=eer(xk().mark(n(function d(){var y;return xk().wrap(n(function(b){for(;;)switch(b.prev=b.next){case 0:if(fe(me(a),mt)[mt]&&(y=fe(me(a),mt)[mt].getAudioTracks(),y.forEach(function(w){return w.stop()})),!fe(me(a),Rr)[Rr]){b.next=4;break}return b.next=4,new Promise(function(w){fe(me(a),Rr)[Rr].addEventListener("stop",w,{once:!0}),fe(me(a),Rr)[Rr].stop(),clearInterval(a.recordingLengthTimer)});case 4:fe(me(a),Ar)[Ar]=null,fe(me(a),Rr)[Rr]=null,fe(me(a),ro)[ro]=!1,fe(me(a),mt)[mt]=null,a.setPluginState({recordedAudio:null,isRecording:!1,recordingLengthSeconds:0});case 9:case"end":return b.stop()}},"_callee$"),d)},"_callee")));function l(){return c.apply(this,arguments)}return n(l,"value"),l}()}),Object.defineProperty(me(a),Nk,{writable:!0,value:n(function(l){fe(me(a),no)[no](),fe(me(a),Us)[Us]({deviceId:l})},"value")}),Object.defineProperty(me(a),Bs,{writable:!0,value:n(function(){fe(me(a),gt)[gt].enumerateDevices().then(function(l){a.setPluginState({audioSources:l.filter(function(d){return d.kind==="audioinput"})})})},"value")}),fe(me(a),gt)[gt]=navigator.mediaDevices,fe(me(a),Gv)[Gv]=fe(me(a),gt)[gt]!=null,a.id=a.opts.id||"Audio",a.type="acquirer",a.icon=function(){return _("svg",{className:"uppy-DashboardTab-iconAudio","aria-hidden":"true",focusable:"false",width:"32px",height:"32px",viewBox:"0 0 32 32"},_("path",{d:"M21.143 12.297c.473 0 .857.383.857.857v2.572c0 3.016-2.24 5.513-5.143 5.931v2.64h2.572a.857.857 0 110 1.714H12.57a.857.857 0 110-1.714h2.572v-2.64C12.24 21.24 10 18.742 10 15.726v-2.572a.857.857 0 111.714 0v2.572A4.29 4.29 0 0016 20.01a4.29 4.29 0 004.286-4.285v-2.572c0-.474.384-.857.857-.857zM16 6.5a3 3 0 013 3v6a3 3 0 01-6 0v-6a3 3 0 013-3z",fill:"currentcolor","fill-rule":"nonzero"}))},a.defaultLocale=eJ,a.opts=JZe({},o),a.i18nInit(),a.title=a.i18n("pluginNameAudio"),a.setPluginState({hasAudio:!1,audioReady:!1,cameraError:null,recordingLengthSeconds:0,audioSources:[],currentDeviceId:null}),a}return n(t,"Audio"),ter(t,[{key:"render",value:n(function(){fe(this,ro)[ro]||fe(this,Us)[Us]();var o=this.getPluginState();return!o.audioReady||!o.hasAudio?_(ZQ,{icon:this.icon,i18n:this.i18n,hasAudio:o.hasAudio}):_(qk,Mk({},o,{audioActive:fe(this,ro)[ro],onChangeSource:fe(this,Nk)[Nk],onStartRecording:fe(this,jk)[jk],onStopRecording:fe(this,zv)[zv],onDiscardRecordedAudio:fe(this,Fk)[Fk],onSubmit:fe(this,Ck)[Ck],onStop:fe(this,no)[no],i18n:this.i18n,showAudioSourceDropdown:this.opts.showAudioSourceDropdown,supportsRecording:Ek(),recording:o.isRecording,stream:fe(this,mt)[mt]}))},"render")},{key:"install",value:n(function(){var o=this;this.setPluginState({audioReady:!1,recordingLengthSeconds:0});var a=this.opts.target;a&&this.mount(a,this),fe(this,gt)[gt]&&(fe(this,Bs)[Bs](),fe(this,gt)[gt].ondevicechange=function(){if(fe(o,Bs)[Bs](),fe(o,mt)[mt]){var u=!0,c=o.getPluginState(),l=c.audioSources,d=c.currentDeviceId;l.forEach(function(y){d===y.deviceId&&(u=!1)}),u&&(fe(o,no)[no](),fe(o,Us)[Us]())}})},"install")},{key:"uninstall",value:n(function(){fe(this,mt)[mt]&&fe(this,no)[no](),this.unmount()},"uninstall")}]),t}(Ee);function cer(){return fe(this,gt)[gt]?fe(this,gt)[gt].enumerateDevices().then(function(r){return r.some(function(e){return e.kind==="audioinput"})}):Promise.resolve(!1)}n(cer,"_hasAudioCheck2");function fer(){var r=fe(this,Ar)[Ar].find(function(a){var u;return((u=a.type)==null?void 0:u.length)>0}).type,e=pa(r);if(!e)return Promise.reject(new Error('Could not retrieve recording: Unsupported media type "'.concat(r,'"')));var t="audio-".concat(Date.now(),".").concat(e),i=new Blob(fe(this,Ar)[Ar],{type:r}),o={source:this.id,name:t,data:new Blob([i],{type:r}),type:r};return Promise.resolve(o)}n(fer,"_getAudio2");iS.VERSION=ler.version;var aJ={strings:{pluginNameBox:"Box"}};function Ef(r){"@babel/helpers - typeof";return Ef=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ef(r)}n(Ef,"_typeof");function per(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(per,"_classCallCheck");function oJ(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,her(i.key),i)}}n(oJ,"_defineProperties");function der(r,e,t){return e&&oJ(r.prototype,e),t&&oJ(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(der,"_createClass");function her(r){var e=ver(r,"string");return Ef(e)==="symbol"?e:String(e)}n(her,"_toPropertyKey");function ver(r,e){if(Ef(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Ef(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(ver,"_toPrimitive");function yer(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&Uk(r,e)}n(yer,"_inherits");function Uk(r,e){return Uk=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),Uk(r,e)}n(Uk,"_setPrototypeOf");function mer(r){var e=ber();return n(function(){var i=oS(r),o;if(e){var a=oS(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return ger(this,o)},"_createSuperInternal")}n(mer,"_createSuper");function ger(r,e){if(e&&(Ef(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return aS(r)}n(ger,"_possibleConstructorReturn");function aS(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(aS,"_assertThisInitialized");function ber(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(ber,"_isNativeReflectConstruct");function oS(r){return oS=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),oS(r)}n(oS,"_getPrototypeOf");var wer={version:"2.2.0"},Tf=function(r){yer(t,r);var e=mer(t);function t(i,o){var a;return per(this,t),a=e.call(this,i,o),a.id=a.opts.id||"Box",dr.initPlugin(aS(a),o),a.title=a.opts.title||"Box",a.icon=function(){return _("svg",{className:"uppy-DashboardTab-iconBox","aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},_("g",{fill:"currentcolor",fillRule:"nonzero"},_("path",{d:"m16.4 13.5c-1.6 0-3 0.9-3.7 2.2-0.7-1.3-2.1-2.2-3.7-2.2-1 0-1.8 0.3-2.5 0.8v-3.6c-0.1-0.3-0.5-0.7-1-0.7s-0.8 0.4-0.8 0.8v7c0 2.3 1.9 4.2 4.2 4.2 1.6 0 3-0.9 3.7-2.2 0.7 1.3 2.1 2.2 3.7 2.2 2.3 0 4.2-1.9 4.2-4.2 0.1-2.4-1.8-4.3-4.1-4.3m-7.5 6.8c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5m7.5 0c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5"}),_("path",{d:"m27.2 20.6l-2.3-2.8 2.3-2.8c0.3-0.4 0.2-0.9-0.2-1.2s-1-0.2-1.3 0.2l-2 2.4-2-2.4c-0.3-0.4-0.9-0.4-1.3-0.2-0.4 0.3-0.5 0.8-0.2 1.2l2.3 2.8-2.3 2.8c-0.3 0.4-0.2 0.9 0.2 1.2s1 0.2 1.3-0.2l2-2.4 2 2.4c0.3 0.4 0.9 0.4 1.3 0.2 0.4-0.3 0.4-0.8 0.2-1.2"})))},a.provider=new dr(i,{companionUrl:a.opts.companionUrl,companionHeaders:a.opts.companionHeaders,companionKeysParams:a.opts.companionKeysParams,companionCookiesRule:a.opts.companionCookiesRule,provider:"box",pluginId:a.id,supportsRefreshToken:!1}),a.defaultLocale=aJ,a.i18nInit(),a.title=a.i18n("pluginNameBox"),a.onFirstRender=a.onFirstRender.bind(aS(a)),a.render=a.render.bind(aS(a)),a}return n(t,"Box"),der(t,[{key:"install",value:n(function(){this.view=new pt(this,{provider:this.provider,loadAllFiles:!0});var o=this.opts.target;o&&this.mount(o,this)},"install")},{key:"uninstall",value:n(function(){this.view.tearDown(),this.unmount()},"uninstall")},{key:"onFirstRender",value:n(function(){return this.view.getFolder()},"onFirstRender")},{key:"render",value:n(function(o){return this.view.render(o)},"render")}]),t}(Ee);Tf.VERSION=wer.version;var uJ={strings:{pluginNameDropbox:"Dropbox"}};function Rf(r){"@babel/helpers - typeof";return Rf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rf(r)}n(Rf,"_typeof");function Ser(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(Ser,"_classCallCheck");function sJ(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,Per(i.key),i)}}n(sJ,"_defineProperties");function Oer(r,e,t){return e&&sJ(r.prototype,e),t&&sJ(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(Oer,"_createClass");function Per(r){var e=_er(r,"string");return Rf(e)==="symbol"?e:String(e)}n(Per,"_toPropertyKey");function _er(r,e){if(Rf(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Rf(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(_er,"_toPrimitive");function Eer(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&Bk(r,e)}n(Eer,"_inherits");function Bk(r,e){return Bk=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),Bk(r,e)}n(Bk,"_setPrototypeOf");function Ter(r){var e=Aer();return n(function(){var i=sS(r),o;if(e){var a=sS(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return Rer(this,o)},"_createSuperInternal")}n(Ter,"_createSuper");function Rer(r,e){if(e&&(Rf(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uS(r)}n(Rer,"_possibleConstructorReturn");function uS(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(uS,"_assertThisInitialized");function Aer(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(Aer,"_isNativeReflectConstruct");function sS(r){return sS=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),sS(r)}n(sS,"_getPrototypeOf");var Ier={version:"3.2.0"},Af=function(r){Eer(t,r);var e=Ter(t);function t(i,o){var a;return Ser(this,t),a=e.call(this,i,o),a.id=a.opts.id||"Dropbox",dr.initPlugin(uS(a),o),a.title=a.opts.title||"Dropbox",a.icon=function(){return _("svg",{className:"uppy-DashboardTab-iconDropbox","aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},_("path",{d:"M10.5 7.5L5 10.955l5.5 3.454 5.5-3.454 5.5 3.454 5.5-3.454L21.5 7.5 16 10.955zM10.5 21.319L5 17.864l5.5-3.455 5.5 3.455zM16 17.864l5.5-3.455 5.5 3.455-5.5 3.455zM16 25.925l-5.5-3.455 5.5-3.454 5.5 3.454z",fill:"currentcolor",fillRule:"nonzero"}))},a.provider=new dr(i,{companionUrl:a.opts.companionUrl,companionHeaders:a.opts.companionHeaders,companionKeysParams:a.opts.companionKeysParams,companionCookiesRule:a.opts.companionCookiesRule,provider:"dropbox",pluginId:a.id,supportsRefreshToken:!0}),a.defaultLocale=uJ,a.i18nInit(),a.title=a.i18n("pluginNameDropbox"),a.onFirstRender=a.onFirstRender.bind(uS(a)),a.render=a.render.bind(uS(a)),a}return n(t,"Dropbox"),Oer(t,[{key:"install",value:n(function(){this.view=new pt(this,{provider:this.provider,loadAllFiles:!0});var o=this.opts.target;o&&this.mount(o,this)},"install")},{key:"uninstall",value:n(function(){this.view.tearDown(),this.unmount()},"uninstall")},{key:"onFirstRender",value:n(function(){return Promise.all([this.provider.fetchPreAuthToken(),this.view.getFolder()])},"onFirstRender")},{key:"render",value:n(function(o){return this.view.render(o)},"render")}]),t}(Ee);Af.VERSION=Ier.version;var lJ={strings:{pluginNameFacebook:"Facebook"}};function If(r){"@babel/helpers - typeof";return If=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},If(r)}n(If,"_typeof");function qer(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(qer,"_classCallCheck");function cJ(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,jer(i.key),i)}}n(cJ,"_defineProperties");function ker(r,e,t){return e&&cJ(r.prototype,e),t&&cJ(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(ker,"_createClass");function jer(r){var e=Fer(r,"string");return If(e)==="symbol"?e:String(e)}n(jer,"_toPropertyKey");function Fer(r,e){if(If(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(If(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(Fer,"_toPrimitive");function Cer(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&$k(r,e)}n(Cer,"_inherits");function $k(r,e){return $k=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),$k(r,e)}n($k,"_setPrototypeOf");function Ler(r){var e=xer();return n(function(){var i=cS(r),o;if(e){var a=cS(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return Ner(this,o)},"_createSuperInternal")}n(Ler,"_createSuper");function Ner(r,e){if(e&&(If(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lS(r)}n(Ner,"_possibleConstructorReturn");function lS(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(lS,"_assertThisInitialized");function xer(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(xer,"_isNativeReflectConstruct");function cS(r){return cS=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),cS(r)}n(cS,"_getPrototypeOf");var Der={version:"3.2.0"},qf=function(r){Cer(t,r);var e=Ler(t);function t(i,o){var a;return qer(this,t),a=e.call(this,i,o),a.id=a.opts.id||"Facebook",dr.initPlugin(lS(a),o),a.title=a.opts.title||"Facebook",a.icon=function(){return _("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},_("g",{fill:"none",fillRule:"evenodd"},_("path",{d:"M27 16c0-6.075-4.925-11-11-11S5 9.925 5 16c0 5.49 4.023 10.041 9.281 10.866V19.18h-2.793V16h2.793v-2.423c0-2.757 1.642-4.28 4.155-4.28 1.204 0 2.462.215 2.462.215v2.707h-1.387c-1.366 0-1.792.848-1.792 1.718V16h3.05l-.487 3.18h-2.563v7.686C22.977 26.041 27 21.49 27 16",fill:"#1777F2"}),_("path",{d:"M20.282 19.18L20.77 16h-3.051v-2.063c0-.87.426-1.718 1.792-1.718h1.387V9.512s-1.258-.215-2.462-.215c-2.513 0-4.155 1.523-4.155 4.28V16h-2.793v3.18h2.793v7.686a11.082 11.082 0 003.438 0V19.18h2.563",fill:"#FFFFFE"})))},a.provider=new dr(i,{companionUrl:a.opts.companionUrl,companionHeaders:a.opts.companionHeaders,companionKeysParams:a.opts.companionKeysParams,companionCookiesRule:a.opts.companionCookiesRule,provider:"facebook",pluginId:a.id,supportsRefreshToken:!1}),a.defaultLocale=lJ,a.i18nInit(),a.title=a.i18n("pluginNameFacebook"),a.onFirstRender=a.onFirstRender.bind(lS(a)),a.render=a.render.bind(lS(a)),a}return n(t,"Facebook"),ker(t,[{key:"install",value:n(function(){this.view=new pt(this,{provider:this.provider});var o=this.opts.target;o&&this.mount(o,this)},"install")},{key:"uninstall",value:n(function(){this.view.tearDown(),this.unmount()},"uninstall")},{key:"onFirstRender",value:n(function(){return Promise.all([this.provider.fetchPreAuthToken(),this.view.getFolder()])},"onFirstRender")},{key:"render",value:n(function(o){var a={};return this.getPluginState().files.length&&!this.getPluginState().folders.length&&(a.viewType="grid",a.showFilter=!1,a.showTitles=!1),this.view.render(o,a)},"render")}]),t}(Ee);qf.VERSION=Der.version;function kf(r){"@babel/helpers - typeof";return kf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kf(r)}n(kf,"_typeof");function Mer(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(Mer,"_classCallCheck");function fJ(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,Ber(i.key),i)}}n(fJ,"_defineProperties");function Uer(r,e,t){return e&&fJ(r.prototype,e),t&&fJ(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(Uer,"_createClass");function Ber(r){var e=$er(r,"string");return kf(e)==="symbol"?e:String(e)}n(Ber,"_toPropertyKey");function $er(r,e){if(kf(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(kf(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n($er,"_toPrimitive");function fS(){return typeof Reflect!="undefined"&&Reflect.get?fS=Reflect.get.bind():fS=n(function(e,t,i){var o=Ger(e,t);if(o){var a=Object.getOwnPropertyDescriptor(o,t);return a.get?a.get.call(arguments.length<3?e:i):a.value}},"_get"),fS.apply(this,arguments)}n(fS,"_get");function Ger(r,e){for(;!Object.prototype.hasOwnProperty.call(r,e)&&(r=jf(r),r!==null););return r}n(Ger,"_superPropBase");function zer(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&Gk(r,e)}n(zer,"_inherits");function Gk(r,e){return Gk=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),Gk(r,e)}n(Gk,"_setPrototypeOf");function Her(r){var e=Ker();return n(function(){var i=jf(r),o;if(e){var a=jf(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return Wer(this,o)},"_createSuperInternal")}n(Her,"_createSuper");function Wer(r,e){if(e&&(kf(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ver(r)}n(Wer,"_possibleConstructorReturn");function Ver(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(Ver,"_assertThisInitialized");function Ker(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(Ker,"_isNativeReflectConstruct");function jf(r){return jf=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),jf(r)}n(jf,"_getPrototypeOf");var pJ=function(r){zer(t,r);var e=Her(t);function t(){return Mer(this,t),e.apply(this,arguments)}return n(t,"DriveProviderViews"),Uer(t,[{key:"toggleCheckbox",value:n(function(o,a){o.stopPropagation(),o.preventDefault(),a.custom.isSharedDrive||fS(jf(t.prototype),"toggleCheckbox",this).call(this,o,a)},"toggleCheckbox")}]),t}(pt);var dJ={strings:{pluginNameGoogleDrive:"Google Drive"}};function Ff(r){"@babel/helpers - typeof";return Ff=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ff(r)}n(Ff,"_typeof");function Yer(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(Yer,"_classCallCheck");function hJ(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,Qer(i.key),i)}}n(hJ,"_defineProperties");function Xer(r,e,t){return e&&hJ(r.prototype,e),t&&hJ(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(Xer,"_createClass");function Qer(r){var e=Jer(r,"string");return Ff(e)==="symbol"?e:String(e)}n(Qer,"_toPropertyKey");function Jer(r,e){if(Ff(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Ff(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(Jer,"_toPrimitive");function Zer(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&zk(r,e)}n(Zer,"_inherits");function zk(r,e){return zk=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),zk(r,e)}n(zk,"_setPrototypeOf");function err(r){var e=trr();return n(function(){var i=dS(r),o;if(e){var a=dS(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return rrr(this,o)},"_createSuperInternal")}n(err,"_createSuper");function rrr(r,e){if(e&&(Ff(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pS(r)}n(rrr,"_possibleConstructorReturn");function pS(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(pS,"_assertThisInitialized");function trr(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(trr,"_isNativeReflectConstruct");function dS(r){return dS=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),dS(r)}n(dS,"_getPrototypeOf");var nrr={version:"3.4.0"},Cf=function(r){Zer(t,r);var e=err(t);function t(i,o){var a;return Yer(this,t),a=e.call(this,i,o),a.id=a.opts.id||"GoogleDrive",a.title=a.opts.title||"Google Drive",dr.initPlugin(pS(a),o),a.title=a.opts.title||"Google Drive",a.icon=function(){return _("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},_("g",{fillRule:"nonzero",fill:"none"},_("path",{d:"M6.663 22.284l.97 1.62c.202.34.492.609.832.804l3.465-5.798H5c0 .378.1.755.302 1.096l1.361 2.278z",fill:"#0066DA"}),_("path",{d:"M16 12.09l-3.465-5.798c-.34.195-.63.463-.832.804l-6.4 10.718A2.15 2.15 0 005 18.91h6.93L16 12.09z",fill:"#00AC47"}),_("path",{d:"M23.535 24.708c.34-.195.63-.463.832-.804l.403-.67 1.928-3.228c.201-.34.302-.718.302-1.096h-6.93l1.474 2.802 1.991 2.996z",fill:"#EA4335"}),_("path",{d:"M16 12.09l3.465-5.798A2.274 2.274 0 0018.331 6h-4.662c-.403 0-.794.11-1.134.292L16 12.09z",fill:"#00832D"}),_("path",{d:"M20.07 18.91h-8.14l-3.465 5.798c.34.195.73.292 1.134.292h12.802c.403 0 .794-.11 1.134-.292L20.07 18.91z",fill:"#2684FC"}),_("path",{d:"M23.497 12.455l-3.2-5.359a2.252 2.252 0 00-.832-.804L16 12.09l4.07 6.82h6.917c0-.377-.1-.755-.302-1.096l-3.188-5.359z",fill:"#FFBA00"})))},a.provider=new dr(i,{companionUrl:a.opts.companionUrl,companionHeaders:a.opts.companionHeaders,companionKeysParams:a.opts.companionKeysParams,companionCookiesRule:a.opts.companionCookiesRule,provider:"drive",pluginId:a.id,supportsRefreshToken:!0}),a.defaultLocale=dJ,a.i18nInit(),a.title=a.i18n("pluginNameGoogleDrive"),a.onFirstRender=a.onFirstRender.bind(pS(a)),a.render=a.render.bind(pS(a)),a}return n(t,"GoogleDrive"),Xer(t,[{key:"install",value:n(function(){this.view=new pJ(this,{provider:this.provider,loadAllFiles:!0});var o=this.opts.target;o&&this.mount(o,this)},"install")},{key:"uninstall",value:n(function(){this.view.tearDown(),this.unmount()},"uninstall")},{key:"onFirstRender",value:n(function(){return Promise.all([this.provider.fetchPreAuthToken(),this.view.getFolder("root")])},"onFirstRender")},{key:"render",value:n(function(o){return this.view.render(o)},"render")}]),t}(Ee);Cf.VERSION=nrr.version;var vJ={strings:{pluginNameInstagram:"Instagram"}};function Lf(r){"@babel/helpers - typeof";return Lf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lf(r)}n(Lf,"_typeof");function irr(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(irr,"_classCallCheck");function yJ(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,orr(i.key),i)}}n(yJ,"_defineProperties");function arr(r,e,t){return e&&yJ(r.prototype,e),t&&yJ(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(arr,"_createClass");function orr(r){var e=urr(r,"string");return Lf(e)==="symbol"?e:String(e)}n(orr,"_toPropertyKey");function urr(r,e){if(Lf(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Lf(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(urr,"_toPrimitive");function srr(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&Hk(r,e)}n(srr,"_inherits");function Hk(r,e){return Hk=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),Hk(r,e)}n(Hk,"_setPrototypeOf");function lrr(r){var e=frr();return n(function(){var i=vS(r),o;if(e){var a=vS(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return crr(this,o)},"_createSuperInternal")}n(lrr,"_createSuper");function crr(r,e){if(e&&(Lf(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hS(r)}n(crr,"_possibleConstructorReturn");function hS(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(hS,"_assertThisInitialized");function frr(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(frr,"_isNativeReflectConstruct");function vS(r){return vS=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),vS(r)}n(vS,"_getPrototypeOf");var prr={version:"3.2.0"},Nf=function(r){srr(t,r);var e=lrr(t);function t(i,o){var a;return irr(this,t),a=e.call(this,i,o),a.id=a.opts.id||"Instagram",dr.initPlugin(hS(a),o),a.icon=function(){return _("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},_("defs",null,_("path",{d:"M16.825 5l.483-.001.799.002c1.168.005 1.598.021 2.407.057 1.17.05 1.97.235 2.67.506.725.28 1.34.655 1.951 1.265.613.61.99 1.223 1.273 1.946.273.7.46 1.498.516 2.67l.025.552.008.205c.029.748.037 1.51.042 3.777l.001.846v.703l-.001.398a50.82 50.82 0 01-.058 2.588c-.05 1.17-.235 1.97-.506 2.67a5.394 5.394 0 01-1.265 1.951c-.61.613-1.222.99-1.946 1.273-.699.273-1.498.46-2.668.516-.243.012-.451.022-.656.03l-.204.007c-.719.026-1.512.034-3.676.038l-.847.001h-1.1a50.279 50.279 0 01-2.587-.059c-1.171-.05-1.971-.235-2.671-.506a5.394 5.394 0 01-1.951-1.265 5.385 5.385 0 01-1.272-1.946c-.274-.699-.46-1.498-.517-2.668a88.15 88.15 0 01-.03-.656l-.007-.205c-.026-.718-.034-1.512-.038-3.674v-2.129c.006-1.168.022-1.597.058-2.406.051-1.171.235-1.971.506-2.672a5.39 5.39 0 011.265-1.95 5.381 5.381 0 011.946-1.272c.699-.274 1.498-.462 2.669-.517l.656-.03.204-.007c.718-.026 1.511-.034 3.674-.038zm.678 1.981h-1.226l-.295.001c-2.307.005-3.016.013-3.777.043l-.21.009-.457.02c-1.072.052-1.654.232-2.042.383-.513.2-.879.44-1.263.825a3.413 3.413 0 00-.82 1.267c-.15.388-.33.97-.375 2.043a48.89 48.89 0 00-.056 2.482v.398 1.565c.006 2.937.018 3.285.073 4.444.05 1.073.231 1.654.382 2.043.2.512.44.878.825 1.263.386.383.753.621 1.267.82.388.15.97.328 2.043.374.207.01.388.017.563.024l.208.007a63.28 63.28 0 002.109.026h1.564c2.938-.006 3.286-.019 4.446-.073 1.071-.051 1.654-.232 2.04-.383.514-.2.88-.44 1.264-.825.384-.386.622-.753.82-1.266.15-.389.328-.971.375-2.044.039-.88.054-1.292.057-2.723v-1.15-.572c-.006-2.936-.019-3.284-.074-4.445-.05-1.071-.23-1.654-.382-2.04-.2-.515-.44-.88-.825-1.264a3.405 3.405 0 00-1.267-.82c-.388-.15-.97-.328-2.042-.375a48.987 48.987 0 00-2.535-.056zm-1.515 3.37a5.65 5.65 0 11.021 11.299 5.65 5.65 0 01-.02-11.3zm.004 1.982a3.667 3.667 0 10.015 7.334 3.667 3.667 0 00-.015-7.334zm5.865-3.536a1.32 1.32 0 11.005 2.64 1.32 1.32 0 01-.005-2.64z",id:"a"})),_("g",{fill:"none","fill-rule":"evenodd"},_("mask",{id:"b",fill:"#fff"},_("use",{xlinkHref:"#a"})),_("image",{mask:"url(#b)",x:"4",y:"4",width:"24",height:"24",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAALKADAAQAAAABAAAALAAAAAD8buejAAALZklEQVRYCVWZC2LbNhAFCRKykvP0bD1506SxRKIzbwHJoU3jv5h9WICU3P7+6zlG2zZvr8s/rW1tN7U0rMll8aDYufdzbLfc1JHmpv3jpPy8tsO+3O2s/O6YMSjTl/qdCds4mIIG60m8vdq2Z+phm2V4vAb9+o7BbZeuoM0NyYazvTvbvlN1MGjHUAesZ/IWWOsCeF0BOwAK4ITR0WYd/QKHEPv2DEymmorZtiubjOHEMYEzXmC9GMxu+95Kz+kuwxjDBKb8iUoCAdqZoAeyALreW6ZNx9Y4Jz8cLwjTZOEoR+HU05k2RzgP2iafGgfZiEdZbEr94zpX/xkPtDtGAxF+LRcgTsp9CAZg0rnEnXmPqFshY5vLnVWxLXO/bah2sZQgBZppGSe8NbjNPN5kc/WbIYEn8U+jXCOezT4zfgS1eoVEhceVeK74Fe4N6CoYEoLWykzHsd+GMAUqdTTVvvqT1uWqB3lVCLb12/ORAe8/5Zu9mp7lqoEFUCAFDIxqz7i1bq2AY1U9jqq2QK/7DYl+1AeZlAFcEc+U/jkRUqsvCHQ/nyGvjrOl6EuZWRWVGCKUMCkntQ5o+u2AZ3OxakbTcoBZnY0xhgGCUM4Kp1xtBTnBnXM5ASRms/Fs7d9OpX8bXN45pibQY/ML1MmA5G9CINBuCpdftexr6i2c5qd9J441LNJm3zk1GVusJ7v6mPJ7HPxJR0Li/vg9O1XHTEgvsQoSgExU0NnlLF0paK+6d06aOMKE2nCKV0ofNw4WsWmLsWrv6lPLnhGpr9E137QkHOMB/jh/T8MOqOadXarR44zPBW5NvDccnBxVmdK81+7RQ5p6qnQoRDZPh9+xWj0N2XpqxX1HzMty9UlFnKya/h3gulziAsyxwkSmpTIPB8vagKLyktRdDuBEHNGZMm4oCFWgjq31WPHpaC93gGNqpOpP4Ez4spa+nMNvhTWcuPKAJ79fqIxVoUvdjEG9qSy2WhpQlz61yG/gnKEA25IrIOYK6DIsQs2EE9LR/sTKq38Nd1y/X//FXG0QDHkEqSz3EYVV2dhb00rgLPSDcqmrScs55NNOD2zVqKmYnYTFnkACp520dkW5vBxK99BVzr792/iZ+VVo92UkKU2oG5WFTb6mNiA1H2C8KC0E44qaQleR3EQvQNwLrECOVAiSwM5gpF7nvDND0lZvYuQ9JbZfqdTrqCgwMcVrRS0z9QkLu9NWmkgEHb8p2zDRylj9VWA3lXD2vObEdWpT3w5MiFqQ1W/lteG4eipastxv2w+TeTBP0ypK84HiOW9fUzLcjRDwCW2b2VxmnGSKTX6uRSwMnC9YX4l05Mh2uwI+QVWdWUOSTWd5Xjjf7/tPYk2stSh053XTGN5RJMCMSajMcS8Trn3j/E1ajthlxCkmJXVi47PSUsyyq+jyexsayQNuv5GVYJaszprNsQD3RkgYiy49kFl2JlJJxlf8Uu/lpkq7+aWqzEzjr5cTVpFaJvSVr8AKRtiTlVPFk5t1nO30W+o6jrbAk76kxFa/tX+dom4C1wDPk03gqCw8HTBSxx4FHxIA+mh2pM3rKu5SNqBAuOSZnHzsB9JwW7DV/ge8dlVsOh375PvH8YO8EALU1HuecIC6qQgXifNuSx9XAoLaoGIYDjkWFrawX1U1XrknuMFw7QBSPtg79XovmBvwqnDICrhClEO6wgKFj9vPqJWlthUvdgH1DOA8+wFMexzQc5BUS1d1IsdBSjEv4Fe1LgBO1CpFPTpV1JuPSFNt4y/trzbtaUfwBWwM3/6JsrL6MSQYwLKXAm9YJBxsM8992MblZ63Gami0+rnwOMyPykVpQsyl9eYNOfVC6kRBkwaop//LgcAKWivkHF791g0JK5kMmCgKPas2QRkUFQsuTvm6R1946Wg95k764ZRLW59yO5UVGsawwELupCfAbdCuAwvcz5Xk18rIVEdgSRBRgO77R206QdXHuA2goaGiCQ0GmUfN1JlmFayjv0IcKGkfYt4HAj0yuQBRGDjzuS/rTmAf29Gov1S+FF7QBayNcpoBOEsMt3vFcIUC7VxOnE+pxmkgqEzduzwsPykrjBszCusgdarsRIAL6CM/KqsqcAf1vj8P1TXFyN6e5G8ao48fjKfDQJYizIdIfb+Xwp6Z2fE2C7mUfUEzMKqSBp4VUV1A49Sz1M2LzVzahEfyHUAcQNltR0nADYkBvHXDZQo8H9dQvHF7qhjPtSolBJ0A/vaLwdRz5YFFGoWBy8E/4aKcjqimaUBXXnjBpzOZnMlIVXsTVEBBUa+dD0BR0xVopgAD70psY0KjMHpmHB2kApea9o23NS83mpsref5OZet4U/0CMhSEDpwnxB9lVKSfk5djllXRFPizQmKcqMpnyZ3ycPntf96Ym9ChzU8vCQnhgWZ2UuySArw+cVBG4gqNCS6YoSEEziRWVStKUpe4FfCd91V0XA/qgOJuF7FpGjjyQgsFoNDtibp8cm+cyXxbB6zh4pMUO4H06yzsv4E/A6rg/uRJRnMRmrhMDIhyOjABX9CMDFhBFxx19KujjqWeim5PwVFU6IBiewfyk7IPETcg52kjXN7nsbaoEykKf/cjUgVxpTZZVtnqFMgv4FHa8oSOisawinMLHfUBzJcK1j8BeqquedKDtgcgnA4bym4P6gBWYVM3W/pn41ku5L4RElFWtlk5SXHEThhOWDiIyVROlQNM+wyHimlgATI/PPIm4BB8qfqwHnhgL89gzs+Ww1xQb4821SZ/4IwOJiRqH/X9u7Hj08JLSZfawOQcpRzwgk1oBNzzcgLn1FBNHspMENik9OG4awIDaUjw9rKNT1KXPl9neua6sSbkgqfs/CNfBdNfDDhQuL4AKXEXeOgZID91eOiRUnEFOIA5rnTkBU0/IT05gByoq5KBJF4Hym4Pxh3UcxZ7HjdhEhKWURbhavNR9rjLBwk3ryDcrGzfvk9I69b1yhMGWQ4bqMwv/RMSplQkjjVKXzZX8wESVcuB7QG0YUCMjk/aOmWgc/vC4oMCVYfghIGP6MT1zpeUhM1rQzOnGxmFKwTCir1Xaj5vN7T7nDZvnbDGHbCKnwji2zofNsOvbold3zlUtKGosBun3PbJSrrReHEaCQVCIDEMaCCBs+P+AbybkbIhmbNecGwF+E5/L2ECuPKCWsUESQkKnyyJ93TGACk7OrAY9P8XG//fGCoM7DAEUGnj5Mw7aQfelySWOm9iPuFyvrL8rKQR6mM6qdCUDQsfNPVu4yv/HaPOT1e/yDaviMKmTkg/I/F7MUG9OlrmDrBLRVd3c8KBJlPEKoVRcIJuhoQAmZDUkPC00W5OI1dOpQ1F61kFNqr9SmFcaHdBheOaDHF6QZMOP6QyiZ804oj98wLiAMIgcWw4UDYkDAWfR+4d5s0zP2GgUZX04i+NeSgYGokvbDhIZYUWHgd9K8zZzir264NxZUFbsfM1jdqpV2naA48tx6hsvBSabE4IMtlcOGgq8PqCjoly2rw2soqy4RJWQtPZl6PUCU14ZUWENuZV2Honn3f+k6R6wrkqgTStyQ0bFY+XAaafMRFgUlVeXxXFUcpLEYfZz3FrVUzZrOOJK+4B/wnIZ8TGRvb9OB8EUM0w8uNYj/oa9iK9AMoy6gA72o02srMxpAPUD+EDnVEF7P5xw896VyAbFk8MgnpVpR3gfLnt/wECq3rYFvYLcKCpqvcI+/hVl8AumXDeApklDRRKJSS+KOaq1Rgg4igOYtiQK1hJy46TBtDjznDp3iqJff5j0/LfSZbYVdauqXccJ9W+czupp0sU9gMlqkQ52lU1E6tUwoDUukAD6YRpAwqDrAErzA8QCRvXm98KEep0xIdY1CN1ye27IP0IHvvYIW18qGz8S7VWUZuMkUOb3P8DHTl67ur/i1UAAAAASUVORK5CYII="})))},a.defaultLocale=vJ,a.i18nInit(),a.title=a.i18n("pluginNameInstagram"),a.provider=new dr(i,{companionUrl:a.opts.companionUrl,companionHeaders:a.opts.companionHeaders,companionKeysParams:a.opts.companionKeysParams,companionCookiesRule:a.opts.companionCookiesRule,provider:"instagram",pluginId:a.id,supportsRefreshToken:!1}),a.onFirstRender=a.onFirstRender.bind(hS(a)),a.render=a.render.bind(hS(a)),a}return n(t,"Instagram"),arr(t,[{key:"install",value:n(function(){this.view=new pt(this,{provider:this.provider,viewType:"grid",showTitles:!1,showFilter:!1,showBreadcrumbs:!1});var o=this.opts.target;o&&this.mount(o,this)},"install")},{key:"uninstall",value:n(function(){this.view.tearDown(),this.unmount()},"uninstall")},{key:"onFirstRender",value:n(function(){return Promise.all([this.provider.fetchPreAuthToken(),this.view.getFolder("recent")])},"onFirstRender")},{key:"render",value:n(function(o){return this.view.render(o)},"render")}]),t}(Ee);Nf.VERSION=prr.version;var mJ={strings:{pluginNameOneDrive:"OneDrive"}};function xf(r){"@babel/helpers - typeof";return xf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xf(r)}n(xf,"_typeof");function drr(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(drr,"_classCallCheck");function gJ(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,vrr(i.key),i)}}n(gJ,"_defineProperties");function hrr(r,e,t){return e&&gJ(r.prototype,e),t&&gJ(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(hrr,"_createClass");function vrr(r){var e=yrr(r,"string");return xf(e)==="symbol"?e:String(e)}n(vrr,"_toPropertyKey");function yrr(r,e){if(xf(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(xf(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(yrr,"_toPrimitive");function mrr(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&Wk(r,e)}n(mrr,"_inherits");function Wk(r,e){return Wk=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),Wk(r,e)}n(Wk,"_setPrototypeOf");function grr(r){var e=wrr();return n(function(){var i=mS(r),o;if(e){var a=mS(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return brr(this,o)},"_createSuperInternal")}n(grr,"_createSuper");function brr(r,e){if(e&&(xf(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yS(r)}n(brr,"_possibleConstructorReturn");function yS(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(yS,"_assertThisInitialized");function wrr(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(wrr,"_isNativeReflectConstruct");function mS(r){return mS=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),mS(r)}n(mS,"_getPrototypeOf");var Srr={version:"3.2.0"},Df=function(r){mrr(t,r);var e=grr(t);function t(i,o){var a;return drr(this,t),a=e.call(this,i,o),a.id=a.opts.id||"OneDrive",dr.initPlugin(yS(a),o),a.title=a.opts.title||"OneDrive",a.icon=function(){return _("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},_("g",{fill:"none",fillRule:"nonzero"},_("path",{d:"M13.39 12.888l4.618 2.747 2.752-1.15a4.478 4.478 0 012.073-.352 6.858 6.858 0 00-5.527-5.04 6.895 6.895 0 00-6.876 2.982l.07-.002a5.5 5.5 0 012.89.815z",fill:"#0364B8"}),_("path",{d:"M13.39 12.887v.001a5.5 5.5 0 00-2.89-.815l-.07.002a5.502 5.502 0 00-4.822 2.964 5.43 5.43 0 00.38 5.62l4.073-1.702 1.81-.757 4.032-1.685 2.105-.88-4.619-2.748z",fill:"#0078D4"}),_("path",{d:"M22.833 14.133a4.479 4.479 0 00-2.073.352l-2.752 1.15.798.475 2.616 1.556 1.141.68 3.902 2.321a4.413 4.413 0 00-.022-4.25 4.471 4.471 0 00-3.61-2.284z",fill:"#1490DF"}),_("path",{d:"M22.563 18.346l-1.141-.68-2.616-1.556-.798-.475-2.105.88L11.87 18.2l-1.81.757-4.073 1.702A5.503 5.503 0 0010.5 23h12.031a4.472 4.472 0 003.934-2.333l-3.902-2.321z",fill:"#28A8EA"})))},a.provider=new dr(i,{companionUrl:a.opts.companionUrl,companionHeaders:a.opts.companionHeaders,companionCookiesRule:a.opts.companionCookiesRule,provider:"onedrive",pluginId:a.id,supportsRefreshToken:!1}),a.defaultLocale=mJ,a.i18nInit(),a.title=a.i18n("pluginNameOneDrive"),a.onFirstRender=a.onFirstRender.bind(yS(a)),a.render=a.render.bind(yS(a)),a}return n(t,"OneDrive"),hrr(t,[{key:"install",value:n(function(){this.view=new pt(this,{provider:this.provider,loadAllFiles:!0});var o=this.opts.target;o&&this.mount(o,this)},"install")},{key:"uninstall",value:n(function(){this.view.tearDown(),this.unmount()},"uninstall")},{key:"onFirstRender",value:n(function(){return Promise.all([this.provider.fetchPreAuthToken(),this.view.getFolder()])},"onFirstRender")},{key:"render",value:n(function(o){return this.view.render(o)},"render")}]),t}(Ee);Df.VERSION=Srr.version;function Mf(r){"@babel/helpers - typeof";return Mf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mf(r)}n(Mf,"_typeof");function Orr(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(Orr,"_classCallCheck");function bJ(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,_rr(i.key),i)}}n(bJ,"_defineProperties");function Prr(r,e,t){return e&&bJ(r.prototype,e),t&&bJ(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(Prr,"_createClass");function _rr(r){var e=Err(r,"string");return Mf(e)==="symbol"?e:String(e)}n(_rr,"_toPropertyKey");function Err(r,e){if(Mf(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Mf(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(Err,"_toPrimitive");function Trr(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&Vk(r,e)}n(Trr,"_inherits");function Vk(r,e){return Vk=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),Vk(r,e)}n(Vk,"_setPrototypeOf");function Rrr(r){var e=Irr();return n(function(){var i=gS(r),o;if(e){var a=gS(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return Arr(this,o)},"_createSuperInternal")}n(Rrr,"_createSuper");function Arr(r,e){if(e&&(Mf(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wJ(r)}n(Arr,"_possibleConstructorReturn");function wJ(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(wJ,"_assertThisInitialized");function Irr(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(Irr,"_isNativeReflectConstruct");function gS(r){return gS=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),gS(r)}n(gS,"_getPrototypeOf");var qrr={version:"3.2.3"},Uf=function(r){Trr(t,r);var e=Rrr(t);function t(i,o){var a;if(Orr(this,t),a=e.call(this,i,o),a.id=a.opts.id||"Unsplash",a.title=a.opts.title||"Unsplash",dr.initPlugin(wJ(a),o,{}),a.icon=function(){return _("svg",{className:"uppy-DashboardTab-iconUnsplash",viewBox:"0 0 32 32",height:"32",width:"32","aria-hidden":"true"},_("g",{fill:"currentcolor"},_("path",{d:"M46.575 10.883v-9h12v9zm12 5h10v18h-32v-18h10v9h12z"}),_("path",{d:"M13 12.5V8h6v4.5zm6 2.5h5v9H8v-9h5v4.5h6z"})))},!a.opts.companionUrl)throw new Error("Companion hostname is required, please consult https://uppy.io/docs/companion");return a.hostname=a.opts.companionUrl,a.provider=new Mw(i,{companionUrl:a.opts.companionUrl,companionHeaders:a.opts.companionHeaders,companionCookiesRule:a.opts.companionCookiesRule,provider:"unsplash",pluginId:a.id}),a}return n(t,"Unsplash"),Prr(t,[{key:"install",value:n(function(){this.view=new rf(this,{provider:this.provider,viewType:"unsplash",showFilter:!0});var o=this.opts.target;o&&this.mount(o,this)},"install")},{key:"onFirstRender",value:n(function(){},"onFirstRender")},{key:"render",value:n(function(o){return this.view.render(o)},"render")},{key:"uninstall",value:n(function(){this.unmount()},"uninstall")}]),t}(Ee);Uf.VERSION=qrr.version;function Bf(r){"@babel/helpers - typeof";return Bf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bf(r)}n(Bf,"_typeof");function krr(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(krr,"_classCallCheck");function SJ(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,Frr(i.key),i)}}n(SJ,"_defineProperties");function jrr(r,e,t){return e&&SJ(r.prototype,e),t&&SJ(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(jrr,"_createClass");function Frr(r){var e=Crr(r,"string");return Bf(e)==="symbol"?e:String(e)}n(Frr,"_toPropertyKey");function Crr(r,e){if(Bf(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Bf(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(Crr,"_toPrimitive");function Lrr(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&Kk(r,e)}n(Lrr,"_inherits");function Kk(r,e){return Kk=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),Kk(r,e)}n(Kk,"_setPrototypeOf");function Nrr(r){var e=Drr();return n(function(){var i=bS(r),o;if(e){var a=bS(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return xrr(this,o)},"_createSuperInternal")}n(Nrr,"_createSuper");function xrr(r,e){if(e&&(Bf(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return PJ(r)}n(xrr,"_possibleConstructorReturn");function PJ(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(PJ,"_assertThisInitialized");function Drr(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(Drr,"_isNativeReflectConstruct");function bS(r){return bS=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),bS(r)}n(bS,"_getPrototypeOf");function OJ(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}n(OJ,"_classPrivateFieldLooseBase");var Mrr=0;function Urr(r){return"__private_"+Mrr+++"_"+r}n(Urr,"_classPrivateFieldLooseKey");var Hv=Urr("handleSubmit"),Brr=function(r){Lrr(t,r);var e=Nrr(t);function t(i){var o;return krr(this,t),o=e.call(this,i),o.form=document.createElement("form"),Object.defineProperty(PJ(o),Hv,{writable:!0,value:n(function(u){u.preventDefault();var c=o.props.addFile,l=o.input.value.trim();c(l)},"value")}),o.form.id=It(),o}return n(t,"UrlUI"),jrr(t,[{key:"componentDidMount",value:n(function(){this.input.value="",this.form.addEventListener("submit",OJ(this,Hv)[Hv]),document.body.appendChild(this.form)},"componentDidMount")},{key:"componentWillUnmount",value:n(function(){this.form.removeEventListener("submit",OJ(this,Hv)[Hv]),document.body.removeChild(this.form)},"componentWillUnmount")},{key:"render",value:n(function(){var o=this,a=this.props.i18n;return _("div",{className:"uppy-Url"},_("input",{className:"uppy-u-reset uppy-c-textInput uppy-Url-input",type:"text","aria-label":a("enterUrlToImport"),placeholder:a("enterUrlToImport"),ref:n(function(c){o.input=c},"ref"),"data-uppy-super-focusable":!0,form:this.form.id}),_("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Url-importButton",type:"submit",form:this.form.id},a("import")))},"render")}]),t}(ur),_J=Brr;function wS(r,e,t){var i=Vr(r.items),o;switch(e){case"paste":{var a=i.some(function(u){return u.kind==="file"});if(a)return;o=i.filter(function(u){return u.kind==="string"&&u.type==="text/plain"});break}case"drop":{o=i.filter(function(u){return u.kind==="string"&&u.type==="text/uri-list"});break}default:throw new Error("isDropOrPaste must be either 'drop' or 'paste', but it's ".concat(e))}o.forEach(function(u){u.getAsString(function(c){return t(c)})})}n(wS,"forEachDroppedOrPastedUrl");var EJ={strings:{import:"Import",enterUrlToImport:"Enter URL to import a file",failedToFetch:"Companion failed to fetch this URL, please make sure it\u2019s correct",enterCorrectUrl:"Incorrect URL: Please make sure you are entering a direct link to a file"}};function Gs(r){"@babel/helpers - typeof";return Gs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gs(r)}n(Gs,"_typeof");function Yk(){"use strict";Yk=n(function(){return r},"_regeneratorRuntime");var r={},e=Object.prototype,t=e.hasOwnProperty,i=Object.defineProperty||function(p,s,f){p[s]=f.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(p,s,f){return Object.defineProperty(p,s,{value:f,enumerable:!0,configurable:!0,writable:!0}),p[s]}n(l,"define");try{l({},"")}catch(p){l=n(function(f,v,g){return f[v]=g},"define")}function d(p,s,f,v){var g=s&&s.prototype instanceof b?s:b,h=Object.create(g.prototype),O=new V(v||[]);return i(h,"_invoke",{value:U(p,f,O)}),h}n(d,"wrap");function y(p,s,f){try{return{type:"normal",arg:p.call(s,f)}}catch(v){return{type:"throw",arg:v}}}n(y,"tryCatch"),r.wrap=d;var m={};function b(){}n(b,"Generator");function w(){}n(w,"GeneratorFunction");function S(){}n(S,"GeneratorFunctionPrototype");var P={};l(P,a,function(){return this});var R=Object.getPrototypeOf,I=R&&R(R(W([])));I&&I!==e&&t.call(I,a)&&(P=I);var T=S.prototype=b.prototype=Object.create(P);function F(p){["next","throw","return"].forEach(function(s){l(p,s,function(f){return this._invoke(s,f)})})}n(F,"defineIteratorMethods");function k(p,s){function f(g,h,O,E){var A=y(p[g],p,h);if(A.type!=="throw"){var C=A.arg,N=C.value;return N&&Gs(N)=="object"&&t.call(N,"__await")?s.resolve(N.__await).then(function(M){f("next",M,O,E)},function(M){f("throw",M,O,E)}):s.resolve(N).then(function(M){C.value=M,O(C)},function(M){return f("throw",M,O,E)})}E(A.arg)}n(f,"invoke");var v;i(this,"_invoke",{value:n(function(h,O){function E(){return new s(function(A,C){f(h,O,A,C)})}return n(E,"callInvokeWithMethodAndArg"),v=v?v.then(E,E):E()},"value")})}n(k,"AsyncIterator");function U(p,s,f){var v="suspendedStart";return function(g,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(g==="throw")throw h;return Y()}for(f.method=g,f.arg=h;;){var O=f.delegate;if(O){var E=D(O,f);if(E){if(E===m)continue;return E}}if(f.method==="next")f.sent=f._sent=f.arg;else if(f.method==="throw"){if(v==="suspendedStart")throw v="completed",f.arg;f.dispatchException(f.arg)}else f.method==="return"&&f.abrupt("return",f.arg);v="executing";var A=y(p,s,f);if(A.type==="normal"){if(v=f.done?"completed":"suspendedYield",A.arg===m)continue;return{value:A.arg,done:f.done}}A.type==="throw"&&(v="completed",f.method="throw",f.arg=A.arg)}}}n(U,"makeInvokeMethod");function D(p,s){var f=s.method,v=p.iterator[f];if(v===void 0)return s.delegate=null,f==="throw"&&p.iterator.return&&(s.method="return",s.arg=void 0,D(p,s),s.method==="throw")||f!=="return"&&(s.method="throw",s.arg=new TypeError("The iterator does not provide a '"+f+"' method")),m;var g=y(v,p.iterator,s.arg);if(g.type==="throw")return s.method="throw",s.arg=g.arg,s.delegate=null,m;var h=g.arg;return h?h.done?(s[p.resultName]=h.value,s.next=p.nextLoc,s.method!=="return"&&(s.method="next",s.arg=void 0),s.delegate=null,m):h:(s.method="throw",s.arg=new TypeError("iterator result is not an object"),s.delegate=null,m)}n(D,"maybeInvokeDelegate");function H(p){var s={tryLoc:p[0]};1 in p&&(s.catchLoc=p[1]),2 in p&&(s.finallyLoc=p[2],s.afterLoc=p[3]),this.tryEntries.push(s)}n(H,"pushTryEntry");function $(p){var s=p.completion||{};s.type="normal",delete s.arg,p.completion=s}n($,"resetTryEntry");function V(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(H,this),this.reset(!0)}n(V,"Context");function W(p){if(p){var s=p[a];if(s)return s.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var f=-1,v=n(function g(){for(;++f<p.length;)if(t.call(p,f))return g.value=p[f],g.done=!1,g;return g.value=void 0,g.done=!0,g},"next");return v.next=v}}return{next:Y}}n(W,"values");function Y(){return{value:void 0,done:!0}}return n(Y,"doneResult"),w.prototype=S,i(T,"constructor",{value:S,configurable:!0}),i(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),r.isGeneratorFunction=function(p){var s=typeof p=="function"&&p.constructor;return!!s&&(s===w||(s.displayName||s.name)==="GeneratorFunction")},r.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,S):(p.__proto__=S,l(p,c,"GeneratorFunction")),p.prototype=Object.create(T),p},r.awrap=function(p){return{__await:p}},F(k.prototype),l(k.prototype,u,function(){return this}),r.AsyncIterator=k,r.async=function(p,s,f,v,g){g===void 0&&(g=Promise);var h=new k(d(p,s,f,v),g);return r.isGeneratorFunction(s)?h:h.next().then(function(O){return O.done?O.value:h.next()})},F(T),l(T,c,"Generator"),l(T,a,function(){return this}),l(T,"toString",function(){return"[object Generator]"}),r.keys=function(p){var s=Object(p),f=[];for(var v in s)f.push(v);return f.reverse(),n(function g(){for(;f.length;){var h=f.pop();if(h in s)return g.value=h,g.done=!1,g}return g.done=!0,g},"next")},r.values=W,V.prototype={constructor:V,reset:n(function(s){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach($),!s)for(var f in this)f.charAt(0)==="t"&&t.call(this,f)&&!isNaN(+f.slice(1))&&(this[f]=void 0)},"reset"),stop:n(function(){this.done=!0;var s=this.tryEntries[0].completion;if(s.type==="throw")throw s.arg;return this.rval},"stop"),dispatchException:n(function(s){if(this.done)throw s;var f=this;function v(C,N){return O.type="throw",O.arg=s,f.next=C,N&&(f.method="next",f.arg=void 0),!!N}n(v,"handle");for(var g=this.tryEntries.length-1;g>=0;--g){var h=this.tryEntries[g],O=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var E=t.call(h,"catchLoc"),A=t.call(h,"finallyLoc");if(E&&A){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(E){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!A)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},"dispatchException"),abrupt:n(function(s,f){for(var v=this.tryEntries.length-1;v>=0;--v){var g=this.tryEntries[v];if(g.tryLoc<=this.prev&&t.call(g,"finallyLoc")&&this.prev<g.finallyLoc){var h=g;break}}h&&(s==="break"||s==="continue")&&h.tryLoc<=f&&f<=h.finallyLoc&&(h=null);var O=h?h.completion:{};return O.type=s,O.arg=f,h?(this.method="next",this.next=h.finallyLoc,m):this.complete(O)},"abrupt"),complete:n(function(s,f){if(s.type==="throw")throw s.arg;return s.type==="break"||s.type==="continue"?this.next=s.arg:s.type==="return"?(this.rval=this.arg=s.arg,this.method="return",this.next="end"):s.type==="normal"&&f&&(this.next=f),m},"complete"),finish:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.finallyLoc===s)return this.complete(v.completion,v.afterLoc),$(v),m}},"finish"),catch:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.tryLoc===s){var g=v.completion;if(g.type==="throw"){var h=g.arg;$(v)}return h}}throw new Error("illegal catch attempt")},"_catch"),delegateYield:n(function(s,f,v){return this.delegate={iterator:W(s),resultName:f,nextLoc:v},this.method==="next"&&(this.arg=void 0),m},"delegateYield")},r}n(Yk,"_regeneratorRuntime");function TJ(r,e,t,i,o,a,u){try{var c=r[a](u),l=c.value}catch(d){t(d);return}c.done?e(l):Promise.resolve(l).then(i,o)}n(TJ,"asyncGeneratorStep");function $rr(r){return function(){var e=this,t=arguments;return new Promise(function(i,o){var a=r.apply(e,t);function u(l){TJ(a,i,o,u,c,"next",l)}n(u,"_next");function c(l){TJ(a,i,o,u,c,"throw",l)}n(c,"_throw"),u(void 0)})}}n($rr,"_asyncToGenerator");function RJ(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(RJ,"ownKeys");function AJ(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?RJ(Object(t),!0).forEach(function(i){Grr(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):RJ(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(AJ,"_objectSpread");function Grr(r,e,t){return e=qJ(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(Grr,"_defineProperty");function zrr(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(zrr,"_classCallCheck");function IJ(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,qJ(i.key),i)}}n(IJ,"_defineProperties");function Hrr(r,e,t){return e&&IJ(r.prototype,e),t&&IJ(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(Hrr,"_createClass");function qJ(r){var e=Wrr(r,"string");return Gs(e)==="symbol"?e:String(e)}n(qJ,"_toPropertyKey");function Wrr(r,e){if(Gs(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Gs(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(Wrr,"_toPrimitive");function Vrr(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&Xk(r,e)}n(Vrr,"_inherits");function Xk(r,e){return Xk=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),Xk(r,e)}n(Xk,"_setPrototypeOf");function Krr(r){var e=Xrr();return n(function(){var i=SS(r),o;if(e){var a=SS(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return Yrr(this,o)},"_createSuperInternal")}n(Krr,"_createSuper");function Yrr(r,e){if(e&&(Gs(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Wv(r)}n(Yrr,"_possibleConstructorReturn");function Wv(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(Wv,"_assertThisInitialized");function Xrr(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(Xrr,"_isNativeReflectConstruct");function SS(r){return SS=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),SS(r)}n(SS,"_getPrototypeOf");var Qrr={version:"3.5.0"};function Jrr(){return _("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},_("path",{d:"M23.637 15.312l-2.474 2.464a3.582 3.582 0 01-.577.491c-.907.657-1.897.986-2.968.986a4.925 4.925 0 01-3.959-1.971c-.248-.329-.164-.902.165-1.149.33-.247.907-.164 1.155.164 1.072 1.478 3.133 1.724 4.618.656a.642.642 0 00.33-.328l2.473-2.463c1.238-1.313 1.238-3.366-.082-4.597a3.348 3.348 0 00-4.618 0l-1.402 1.395a.799.799 0 01-1.154 0 .79.79 0 010-1.15l1.402-1.394a4.843 4.843 0 016.843 0c2.062 1.805 2.144 5.007.248 6.896zm-8.081 5.664l-1.402 1.395a3.348 3.348 0 01-4.618 0c-1.319-1.23-1.319-3.365-.082-4.596l2.475-2.464.328-.328c.743-.492 1.567-.739 2.475-.657.906.165 1.648.574 2.143 1.314.248.329.825.411 1.155.165.33-.248.412-.822.165-1.15-.825-1.068-1.98-1.724-3.216-1.888-1.238-.247-2.556.082-3.628.902l-.495.493-2.474 2.464c-1.897 1.969-1.814 5.09.083 6.977.99.904 2.226 1.396 3.463 1.396s2.473-.492 3.463-1.395l1.402-1.396a.79.79 0 000-1.15c-.33-.328-.908-.41-1.237-.082z",fill:"#FF753E","fill-rule":"nonzero"}))}n(Jrr,"UrlIcon");function Zrr(r){var e=/^[a-z0-9]+:\/\//,t="http://";return e.test(r)?r:t+r}n(Zrr,"addProtocolToURL");function etr(r){var e=Vr(r.dataTransfer.items),t=e.filter(function(i){return i.kind==="string"&&i.type==="text/uri-list"});return t.length>0}n(etr,"canHandleRootDrop");function rtr(r){if(!r)return!1;var e=r.match(/^([a-z0-9]+):\/\//)[1];return!(e!=="http"&&e!=="https")}n(rtr,"checkIfCorrectURL");function ttr(r){var e=new URL(r),t=e.pathname;return t.substring(t.lastIndexOf("/")+1)}n(ttr,"getFileNameFromUrl");var io=function(r){Vrr(t,r);var e=Krr(t);function t(i,o){var a;zrr(this,t),a=e.call(this,i,o),a.id=a.opts.id||"Url",a.title=a.opts.title||"Link",a.type="acquirer",a.icon=function(){return _(Jrr,null)},a.defaultLocale=EJ;var u={};if(a.opts=AJ(AJ({},u),o),a.i18nInit(),a.hostname=a.opts.companionUrl,!a.hostname)throw new Error("Companion hostname is required, please consult https://uppy.io/docs/companion");return a.getMeta=a.getMeta.bind(Wv(a)),a.addFile=a.addFile.bind(Wv(a)),a.handleRootDrop=a.handleRootDrop.bind(Wv(a)),a.handleRootPaste=a.handleRootPaste.bind(Wv(a)),a.client=new Rn(i,{companionUrl:a.opts.companionUrl,companionHeaders:a.opts.companionHeaders,companionCookiesRule:a.opts.companionCookiesRule}),a.uppy.registerRequestClient(t.requestClientId,a.client),a}return n(t,"Url"),Hrr(t,[{key:"getMeta",value:n(function(o){var a=this;return this.client.post("url/meta",{url:o}).then(function(u){if(u.error)throw a.uppy.log("[URL] Error:"),a.uppy.log(u.error),new Error("Failed to fetch the file");return u})},"getMeta")},{key:"addFile",value:function(){var i=$rr(Yk().mark(n(function a(u,c){var l,d,y;return Yk().wrap(n(function(b){for(;;)switch(b.prev=b.next){case 0:if(c===void 0&&(c=void 0),l=Zrr(u),rtr(l)){b.next=6;break}return this.uppy.log("[URL] Incorrect URL entered: ".concat(l)),this.uppy.info(this.i18n("enterCorrectUrl"),"error",4e3),b.abrupt("return",void 0);case 6:return b.prev=6,b.next=9,this.getMeta(l);case 9:return d=b.sent,y={meta:c,source:this.id,name:d.name||ttr(l),type:d.type,data:{size:d.size},isRemote:!0,body:{url:l},remote:{companionUrl:this.opts.companionUrl,url:"".concat(this.hostname,"/url/get"),body:{fileId:l,url:l},requestClientId:t.requestClientId}},this.uppy.log("[Url] Adding remote file"),b.prev=12,b.abrupt("return",this.uppy.addFile(y));case 16:return b.prev=16,b.t0=b.catch(12),b.t0.isRestriction||this.uppy.log(b.t0),b.abrupt("return",b.t0);case 20:b.next=27;break;case 22:return b.prev=22,b.t1=b.catch(6),this.uppy.log(b.t1),this.uppy.info({message:this.i18n("failedToFetch"),details:b.t1},"error",4e3),b.abrupt("return",b.t1);case 27:case"end":return b.stop()}},"_callee$"),a,this,[[6,22],[12,16]])},"_callee")));function o(a,u){return i.apply(this,arguments)}return n(o,"addFile"),o}()},{key:"handleRootDrop",value:n(function(o){var a=this;wS(o.dataTransfer,"drop",function(u){a.uppy.log("[URL] Adding file from dropped url: ".concat(u)),a.addFile(u)})},"handleRootDrop")},{key:"handleRootPaste",value:n(function(o){var a=this;wS(o.clipboardData,"paste",function(u){a.uppy.log("[URL] Adding file from pasted url: ".concat(u)),a.addFile(u)})},"handleRootPaste")},{key:"render",value:n(function(){return _(_J,{i18n:this.i18n,addFile:this.addFile})},"render")},{key:"install",value:n(function(){var o=this.opts.target;o&&this.mount(o,this)},"install")},{key:"uninstall",value:n(function(){this.unmount()},"uninstall")}]),t}(Ee);io.VERSION=Qrr.version;io.requestClientId=io.name;io.prototype.canHandleRootDrop=etr;var kJ={strings:{pluginNameZoom:"Zoom"}};function $f(r){"@babel/helpers - typeof";return $f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$f(r)}n($f,"_typeof");function ntr(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(ntr,"_classCallCheck");function jJ(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,atr(i.key),i)}}n(jJ,"_defineProperties");function itr(r,e,t){return e&&jJ(r.prototype,e),t&&jJ(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(itr,"_createClass");function atr(r){var e=otr(r,"string");return $f(e)==="symbol"?e:String(e)}n(atr,"_toPropertyKey");function otr(r,e){if($f(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if($f(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(otr,"_toPrimitive");function utr(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&Qk(r,e)}n(utr,"_inherits");function Qk(r,e){return Qk=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),Qk(r,e)}n(Qk,"_setPrototypeOf");function str(r){var e=ctr();return n(function(){var i=PS(r),o;if(e){var a=PS(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return ltr(this,o)},"_createSuperInternal")}n(str,"_createSuper");function ltr(r,e){if(e&&($f(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return OS(r)}n(ltr,"_possibleConstructorReturn");function OS(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(OS,"_assertThisInitialized");function ctr(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(ctr,"_isNativeReflectConstruct");function PS(r){return PS=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),PS(r)}n(PS,"_getPrototypeOf");var ftr={version:"2.2.0"},Gf=function(r){utr(t,r);var e=str(t);function t(i,o){var a;return ntr(this,t),a=e.call(this,i,o),a.id=a.opts.id||"Zoom",dr.initPlugin(OS(a),o),a.title=a.opts.title||"Zoom",a.icon=function(){return _("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},_("path",{d:"M24.5 11.125l-2.75 2.063c-.473.353-.75.91-.75 1.5v3.124c0 .59.277 1.147.75 1.5l2.75 2.063a.938.938 0 001.5-.75v-8.75a.938.938 0 00-1.5-.75zm-4.75 9.5c0 1.035-.84 1.875-1.875 1.875H9.75A3.75 3.75 0 016 18.75v-6.875C6 10.84 6.84 10 7.875 10H16a3.75 3.75 0 013.75 3.75v6.875z",fill:"#2E8CFF","fill-rule":"evenodd"}))},a.provider=new dr(i,{companionUrl:a.opts.companionUrl,companionHeaders:a.opts.companionHeaders,companionKeysParams:a.opts.companionKeysParams,companionCookiesRule:a.opts.companionCookiesRule,provider:"zoom",pluginId:a.id,supportsRefreshToken:!1}),a.defaultLocale=kJ,a.i18nInit(),a.title=a.i18n("pluginNameZoom"),a.onFirstRender=a.onFirstRender.bind(OS(a)),a.render=a.render.bind(OS(a)),a}return n(t,"Zoom"),itr(t,[{key:"install",value:n(function(){this.view=new pt(this,{provider:this.provider});var o=this.opts.target;o&&this.mount(o,this)},"install")},{key:"uninstall",value:n(function(){this.view.tearDown(),this.unmount()},"uninstall")},{key:"onFirstRender",value:n(function(){return Promise.all([this.provider.fetchPreAuthToken(),this.view.getFolder()])},"onFirstRender")},{key:"render",value:n(function(o){return this.view.render(o)},"render")}]),t}(Ee);Gf.VERSION=ftr.version;function zf(r){"@babel/helpers - typeof";return zf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zf(r)}n(zf,"_typeof");function ptr(r,e){var t=typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=dtr(r))||e&&r&&typeof r.length=="number"){t&&(r=t);var i=0,o=n(function(){},"F");return{s:o,n:n(function(){return i>=r.length?{done:!0}:{done:!1,value:r[i++]}},"n"),e:n(function(d){throw d},"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=!0,u=!1,c;return{s:n(function(){t=t.call(r)},"s"),n:n(function(){var d=t.next();return a=d.done,d},"n"),e:n(function(d){u=!0,c=d},"e"),f:n(function(){try{!a&&t.return!=null&&t.return()}finally{if(u)throw c}},"f")}}n(ptr,"_createForOfIteratorHelper");function dtr(r,e){if(r){if(typeof r=="string")return FJ(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return FJ(r,e)}}n(dtr,"_unsupportedIterableToArray");function FJ(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=r[t];return i}n(FJ,"_arrayLikeToArray");function CJ(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(CJ,"ownKeys");function _S(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?CJ(Object(t),!0).forEach(function(i){htr(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):CJ(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(_S,"_objectSpread");function htr(r,e,t){return e=NJ(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(htr,"_defineProperty");function vtr(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(vtr,"_classCallCheck");function LJ(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,NJ(i.key),i)}}n(LJ,"_defineProperties");function ytr(r,e,t){return e&&LJ(r.prototype,e),t&&LJ(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(ytr,"_createClass");function NJ(r){var e=mtr(r,"string");return zf(e)==="symbol"?e:String(e)}n(NJ,"_toPropertyKey");function mtr(r,e){if(zf(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(zf(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(mtr,"_toPrimitive");function ES(){return typeof Reflect!="undefined"&&Reflect.get?ES=Reflect.get.bind():ES=n(function(e,t,i){var o=gtr(e,t);if(o){var a=Object.getOwnPropertyDescriptor(o,t);return a.get?a.get.call(arguments.length<3?e:i):a.value}},"_get"),ES.apply(this,arguments)}n(ES,"_get");function gtr(r,e){for(;!Object.prototype.hasOwnProperty.call(r,e)&&(r=Hf(r),r!==null););return r}n(gtr,"_superPropBase");function btr(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&e2(r,e)}n(btr,"_inherits");function e2(r,e){return e2=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),e2(r,e)}n(e2,"_setPrototypeOf");function wtr(r){var e=Otr();return n(function(){var i=Hf(r),o;if(e){var a=Hf(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return Str(this,o)},"_createSuperInternal")}n(wtr,"_createSuper");function Str(r,e){if(e&&(zf(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xJ(r)}n(Str,"_possibleConstructorReturn");function xJ(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(xJ,"_assertThisInitialized");function Otr(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(Otr,"_isNativeReflectConstruct");function Hf(r){return Hf=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),Hf(r)}n(Hf,"_getPrototypeOf");function Jk(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}n(Jk,"_classPrivateFieldLooseBase");var Ptr=0;function _tr(r){return"__private_"+Ptr+++"_"+r}n(_tr,"_classPrivateFieldLooseKey");var Etr={version:"1.1.0"},Zk={__proto__:null,Box:Tf,Dropbox:Af,Facebook:qf,GoogleDrive:Cf,Instagram:Nf,OneDrive:Df,Unsplash:Uf,Url:io,Zoom:Gf},zs=_tr("installedPlugins"),r2=function(r){btr(t,r);var e=wtr(t);function t(i,o){var a;vtr(this,t),a=e.call(this,i,o),Object.defineProperty(xJ(a),zs,{writable:!0,value:new Set}),a.id=a.opts.id||"RemoteSources",a.type="preset";var u={sources:Object.keys(Zk)};if(a.opts=_S(_S({},u),o),a.opts.companionUrl==null)throw new Error("Please specify companionUrl for RemoteSources to work, see https://uppy.io/docs/remote-sources#companionUrl");return a}return n(t,"RemoteSources"),ytr(t,[{key:"setOptions",value:n(function(o){this.uninstall(),ES(Hf(t.prototype),"setOptions",this).call(this,o),this.install()},"setOptions")},{key:"install",value:n(function(){var o=this;this.opts.sources.forEach(function(a){var u=_S(_S({},o.opts),{},{sources:void 0}),c=Zk[a];if(c==null){var l=Object.keys(Zk),d=new Intl.ListFormat("en",{style:"long",type:"disjunction"});throw new Error('Invalid plugin: "'.concat(a,'" is not one of: ').concat(d.format(l),"."))}o.uppy.use(c,u),Jk(o,zs)[zs].add(o.uppy.getPlugin(a))})},"install")},{key:"uninstall",value:n(function(){var o=ptr(Jk(this,zs)[zs]),a;try{for(o.s();!(a=o.n()).done;){var u=a.value;this.uppy.removePlugin(u)}}catch(c){o.e(c)}finally{o.f()}Jk(this,zs)[zs].clear()},"uninstall")}]),t}(fr);r2.VERSION=Etr.version;var DJ=n(function(){return _("svg",{className:"uppy-DashboardTab-iconScreenRec","aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},_("g",{fill:"currentcolor",fillRule:"evenodd"},_("path",{d:"M24.182 9H7.818C6.81 9 6 9.742 6 10.667v10c0 .916.81 1.666 1.818 1.666h4.546V24h7.272v-1.667h4.546c1 0 1.809-.75 1.809-1.666l.009-10C26 9.742 25.182 9 24.182 9zM24 21H8V11h16v10z"}),_("circle",{cx:"16",cy:"16",r:"2"})))},"default");function t2(r){var e=r.recording,t=r.onStartRecording,i=r.onStopRecording,o=r.i18n;return e?_("button",{className:"uppy-u-reset uppy-c-btn uppy-ScreenCapture-button uppy-ScreenCapture-button--video uppy-ScreenCapture-button--stop-rec",type:"button",title:o("stopCapturing"),"aria-label":o("stopCapturing"),onClick:i,"data-uppy-super-focusable":!0},_("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"100",height:"100",viewBox:"0 0 100 100"},_("rect",{x:"15",y:"15",width:"70",height:"70"}))):_("button",{className:"uppy-u-reset uppy-c-btn uppy-ScreenCapture-button uppy-ScreenCapture-button--video",type:"button",title:o("startCapturing"),"aria-label":o("startCapturing"),onClick:t,"data-uppy-super-focusable":!0},_("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"100",height:"100",viewBox:"0 0 100 100"},_("circle",{cx:"50",cy:"50",r:"40"})))}n(t2,"RecordButton");function n2(r){var e=r.recording,t=r.recordedVideo,i=r.onSubmit,o=r.i18n;return t&&!e?_("button",{className:"uppy-u-reset uppy-c-btn uppy-ScreenCapture-button uppy-ScreenCapture-button--submit",type:"button",title:o("submitRecordedFile"),"aria-label":o("submitRecordedFile"),onClick:i,"data-uppy-super-focusable":!0},_("svg",{width:"12",height:"9",viewBox:"0 0 12 9",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",className:"uppy-c-icon"},_("path",{fill:"#fff",fillRule:"nonzero",d:"M10.66 0L12 1.31 4.136 9 0 4.956l1.34-1.31L4.136 6.38z"}))):null}n(n2,"SubmitButton");function Wf(r){"@babel/helpers - typeof";return Wf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wf(r)}n(Wf,"_typeof");function MJ(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(MJ,"ownKeys");function Ttr(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?MJ(Object(t),!0).forEach(function(i){Rtr(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):MJ(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(Ttr,"_objectSpread");function Rtr(r,e,t){return e=BJ(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(Rtr,"_defineProperty");function Atr(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(Atr,"_classCallCheck");function UJ(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,BJ(i.key),i)}}n(UJ,"_defineProperties");function Itr(r,e,t){return e&&UJ(r.prototype,e),t&&UJ(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(Itr,"_createClass");function BJ(r){var e=qtr(r,"string");return Wf(e)==="symbol"?e:String(e)}n(BJ,"_toPropertyKey");function qtr(r,e){if(Wf(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Wf(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(qtr,"_toPrimitive");function ktr(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&i2(r,e)}n(ktr,"_inherits");function i2(r,e){return i2=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),i2(r,e)}n(i2,"_setPrototypeOf");function jtr(r){var e=Ltr();return n(function(){var i=TS(r),o;if(e){var a=TS(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return Ftr(this,o)},"_createSuperInternal")}n(jtr,"_createSuper");function Ftr(r,e){if(e&&(Wf(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ctr(r)}n(Ftr,"_possibleConstructorReturn");function Ctr(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(Ctr,"_assertThisInitialized");function Ltr(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(Ltr,"_isNativeReflectConstruct");function TS(r){return TS=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),TS(r)}n(TS,"_getPrototypeOf");var Ntr=function(r){ktr(t,r);var e=jtr(t);function t(i){var o;return Atr(this,t),o=e.call(this,i),o.state={elapsedTime:0},o.wrapperStyle={width:"100%",height:"100%",display:"flex"},o.overlayStyle={position:"absolute",width:"100%",height:"100%",background:"black",opacity:.7},o.infoContainerStyle={marginLeft:"auto",marginRight:"auto",marginTop:"auto",marginBottom:"auto",zIndex:1,color:"white"},o.infotextStyle={marginLeft:"auto",marginRight:"auto",marginBottom:"1rem",fontSize:"1.5rem"},o.timeStyle={display:"block",fontWeight:"bold",marginLeft:"auto",marginRight:"auto",fontSize:"3rem",fontFamily:"Courier New"},o}return n(t,"StopWatch"),Itr(t,[{key:"startTimer",value:n(function(){this.timerTick(),this.timerRunning=!0},"startTimer")},{key:"resetTimer",value:n(function(){clearTimeout(this.timer),this.setState({elapsedTime:0}),this.timerRunning=!1},"resetTimer")},{key:"timerTick",value:n(function(){var o=this;this.timer=setTimeout(function(){o.setState(function(a){return{elapsedTime:a.elapsedTime+1}}),o.timerTick()},1e3)},"timerTick")},{key:"fmtMSS",value:n(function(o){return(o-(o%=60))/60+(o>9?":":":0")+o},"fmtMSS")},{key:"render",value:n(function(){var o=Ttr({},this.props),a=o.recording,u=o.i18n,c=this.state.elapsedTime,l=this.fmtMSS(c);return a&&!this.timerRunning&&this.startTimer(),!a&&this.timerRunning&&this.resetTimer(),a?_("div",{style:this.wrapperStyle},_("div",{style:this.overlayStyle}),_("div",{style:this.infoContainerStyle},_("div",{style:this.infotextStyle},u("recording")),_("div",{style:this.timeStyle},l))):null},"render")}]),t}(ur),$J=Ntr;var GJ=n(function(r){var e=r.streamActive,t=r.i18n;return e?_("div",{title:t("streamActive"),"aria-label":t("streamActive"),className:"uppy-ScreenCapture-icon--stream uppy-ScreenCapture-icon--streamActive"},_("svg",{"aria-hidden":"true",focusable:"false",width:"24",height:"24",viewBox:"0 0 24 24"},_("path",{d:"M0 0h24v24H0z",opacity:".1",fill:"none"}),_("path",{d:"M0 0h24v24H0z",fill:"none"}),_("path",{d:"M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm18-7H5v1.63c3.96 1.28 7.09 4.41 8.37 8.37H19V7zM1 10v2c4.97 0 9 4.03 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}))):_("div",{title:t("streamPassive"),"aria-label":t("streamPassive"),className:"uppy-ScreenCapture-icon--stream"},_("svg",{"aria-hidden":"true",focusable:"false",width:"24",height:"24",viewBox:"0 0 24 24"},_("path",{d:"M0 0h24v24H0z",opacity:".1",fill:"none"}),_("path",{d:"M0 0h24v24H0z",fill:"none"}),_("path",{d:"M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2c4.97 0 9 4.03 9 9h2c0-6.08-4.93-11-11-11z"})))},"default");function Vf(r){"@babel/helpers - typeof";return Vf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vf(r)}n(Vf,"_typeof");function xtr(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(xtr,"_classCallCheck");function zJ(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,Mtr(i.key),i)}}n(zJ,"_defineProperties");function Dtr(r,e,t){return e&&zJ(r.prototype,e),t&&zJ(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(Dtr,"_createClass");function Mtr(r){var e=Utr(r,"string");return Vf(e)==="symbol"?e:String(e)}n(Mtr,"_toPropertyKey");function Utr(r,e){if(Vf(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Vf(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(Utr,"_toPrimitive");function Btr(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&a2(r,e)}n(Btr,"_inherits");function a2(r,e){return a2=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),a2(r,e)}n(a2,"_setPrototypeOf");function $tr(r){var e=Htr();return n(function(){var i=RS(r),o;if(e){var a=RS(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return Gtr(this,o)},"_createSuperInternal")}n($tr,"_createSuper");function Gtr(r,e){if(e&&(Vf(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ztr(r)}n(Gtr,"_possibleConstructorReturn");function ztr(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(ztr,"_assertThisInitialized");function Htr(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(Htr,"_isNativeReflectConstruct");function RS(r){return RS=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),RS(r)}n(RS,"_getPrototypeOf");function o2(){return o2=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},o2.apply(this,arguments)}n(o2,"_extends");var Wtr=function(r){Btr(t,r);var e=$tr(t);function t(){return xtr(this,t),e.apply(this,arguments)}return n(t,"RecorderScreen"),Dtr(t,[{key:"componentWillUnmount",value:n(function(){var o=this.props.onStop;o()},"componentWillUnmount")},{key:"render",value:n(function(){var o=this,a=this.props,u=a.recording,c=a.stream,l=a.recordedVideo,d={playsinline:!0};return(u||!l&&!u)&&(d.muted=!0,d.autoplay=!0,d.srcObject=c),l&&!u&&(d.muted=!1,d.controls=!0,d.src=l,this.videoElement&&(this.videoElement.srcObject=void 0)),_("div",{className:"uppy uppy-ScreenCapture-container"},_("div",{className:"uppy-ScreenCapture-videoContainer"},_(GJ,this.props),_("video",o2({ref:n(function(m){o.videoElement=m},"ref"),className:"uppy-ScreenCapture-video"},d)),_($J,this.props)),_("div",{className:"uppy-ScreenCapture-buttonContainer"},_(t2,this.props),_(n2,this.props)))},"render")}]),t}(ur),HJ=Wtr;var WJ={strings:{startCapturing:"Begin screen capturing",stopCapturing:"Stop screen capturing",submitRecordedFile:"Submit recorded file",streamActive:"Stream active",streamPassive:"Stream passive",micDisabled:"Microphone access denied by user",recording:"Recording"}};function Kf(r){"@babel/helpers - typeof";return Kf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kf(r)}n(Kf,"_typeof");function VJ(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(VJ,"ownKeys");function u2(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?VJ(Object(t),!0).forEach(function(i){Vtr(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):VJ(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(u2,"_objectSpread");function Vtr(r,e,t){return e=YJ(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(Vtr,"_defineProperty");function Ktr(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(Ktr,"_classCallCheck");function KJ(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,YJ(i.key),i)}}n(KJ,"_defineProperties");function Ytr(r,e,t){return e&&KJ(r.prototype,e),t&&KJ(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(Ytr,"_createClass");function YJ(r){var e=Xtr(r,"string");return Kf(e)==="symbol"?e:String(e)}n(YJ,"_toPropertyKey");function Xtr(r,e){if(Kf(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Kf(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(Xtr,"_toPrimitive");function Qtr(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&s2(r,e)}n(Qtr,"_inherits");function s2(r,e){return s2=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),s2(r,e)}n(s2,"_setPrototypeOf");function Jtr(r){var e=enr();return n(function(){var i=AS(r),o;if(e){var a=AS(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return Ztr(this,o)},"_createSuperInternal")}n(Jtr,"_createSuper");function Ztr(r,e){if(e&&(Kf(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return da(r)}n(Ztr,"_possibleConstructorReturn");function da(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(da,"_assertThisInitialized");function enr(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(enr,"_isNativeReflectConstruct");function AS(r){return AS=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),AS(r)}n(AS,"_getPrototypeOf");function l2(){return l2=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},l2.apply(this,arguments)}n(l2,"_extends");var rnr={version:"3.1.3"};function tnr(){var r;return window.MediaRecorder&&((r=navigator.mediaDevices)==null?void 0:r.getDisplayMedia)}n(tnr,"isScreenRecordingSupported");function nnr(){return window.MediaRecorder&&navigator.mediaDevices}n(nnr,"getMediaDevices");var IS=function(r){Qtr(t,r);var e=Jtr(t);function t(i,o){var a;Ktr(this,t),a=e.call(this,i,o),a.mediaDevices=nnr(),a.protocol=location.protocol==="https:"?"https":"http",a.id=a.opts.id||"ScreenCapture",a.title=a.opts.title||"Screencast",a.type="acquirer",a.icon=DJ,a.defaultLocale=WJ;var u={displayMediaConstraints:{video:{width:1280,height:720,frameRate:{ideal:3,max:5},cursor:"motion",displaySurface:"monitor"}},userMediaConstraints:{audio:!0},preferredVideoMimeType:"video/webm"};return a.opts=u2(u2({},u),o),a.i18nInit(),a.install=a.install.bind(da(a)),a.setPluginState=a.setPluginState.bind(da(a)),a.render=a.render.bind(da(a)),a.start=a.start.bind(da(a)),a.stop=a.stop.bind(da(a)),a.startRecording=a.startRecording.bind(da(a)),a.stopRecording=a.stopRecording.bind(da(a)),a.submit=a.submit.bind(da(a)),a.streamInterrupted=a.streamInactivated.bind(da(a)),a.captureActive=!1,a.capturedMediaFile=null,a}return n(t,"ScreenCapture"),Ytr(t,[{key:"install",value:n(function(){if(!tnr())return this.uppy.log("Screen recorder access is not supported","warning"),null;this.setPluginState({streamActive:!1,audioStreamActive:!1});var o=this.opts.target;o&&this.mount(o,this)},"install")},{key:"uninstall",value:n(function(){this.videoStream&&this.stop(),this.unmount()},"uninstall")},{key:"start",value:n(function(){var o=this;return this.mediaDevices?(this.captureActive=!0,this.selectAudioStreamSource(),this.selectVideoStreamSource().then(function(a){a===!1&&o.parent&&o.parent.hideAllPanels&&(o.parent.hideAllPanels(),o.captureActive=!1)})):Promise.reject(new Error("Screen recorder access not supported"))},"start")},{key:"selectVideoStreamSource",value:n(function(){var o=this;return this.videoStream?new Promise(function(a){return a(o.videoStream)}):this.mediaDevices.getDisplayMedia(this.opts.displayMediaConstraints).then(function(a){return o.videoStream=a,o.videoStream.addEventListener("inactive",function(){o.streamInactivated()}),o.setPluginState({streamActive:!0}),a}).catch(function(a){return o.setPluginState({screenRecError:a}),o.userDenied=!0,setTimeout(function(){o.userDenied=!1},1e3),!1})},"selectVideoStreamSource")},{key:"selectAudioStreamSource",value:n(function(){var o=this;return this.audioStream?new Promise(function(a){return a(o.audioStream)}):this.mediaDevices.getUserMedia(this.opts.userMediaConstraints).then(function(a){return o.audioStream=a,o.setPluginState({audioStreamActive:!0}),a}).catch(function(a){return a.name==="NotAllowedError"&&(o.uppy.info(o.i18n("micDisabled"),"error",5e3),o.uppy.log(o.i18n("micDisabled"),"warning")),!1})},"selectAudioStreamSource")},{key:"startRecording",value:n(function(){var o=this,a={};this.capturedMediaFile=null,this.recordingChunks=[];var u=this.opts.preferredVideoMimeType;this.selectVideoStreamSource().then(function(c){u&&MediaRecorder.isTypeSupported(u)&&pa(u)&&(a.mimeType=u);var l=[c.getVideoTracks()[0]];o.audioStream&&l.push(o.audioStream.getAudioTracks()[0]),o.outputStream=new MediaStream(l),o.recorder=new MediaRecorder(o.outputStream,a),o.recorder.addEventListener("dataavailable",function(d){o.recordingChunks.push(d.data)}),o.recorder.start(),o.setPluginState({recording:!0})}).catch(function(c){o.uppy.log(c,"error")})},"startRecording")},{key:"streamInactivated",value:n(function(){var o=u2({},this.getPluginState()),a=o.recordedVideo,u=o.recording;!a&&!u?this.parent&&this.parent.hideAllPanels&&this.parent.hideAllPanels():u&&(this.uppy.log("Capture stream inactive \u2014 stop recording"),this.stopRecording()),this.videoStream=null,this.audioStream=null,this.setPluginState({streamActive:!1,audioStreamActive:!1})},"streamInactivated")},{key:"stopRecording",value:n(function(){var o=this,a=new Promise(function(u){o.recorder.addEventListener("stop",function(){u()}),o.recorder.stop()});return a.then(function(){return o.setPluginState({recording:!1}),o.getVideo()}).then(function(u){o.capturedMediaFile=u,o.setPluginState({recordedVideo:URL.createObjectURL(u.data)})}).then(function(){o.recordingChunks=null,o.recorder=null},function(u){throw o.recordingChunks=null,o.recorder=null,u})},"stopRecording")},{key:"submit",value:n(function(){try{this.capturedMediaFile&&this.uppy.addFile(this.capturedMediaFile)}catch(o){o.isRestriction||this.uppy.log(o,"warning")}},"submit")},{key:"stop",value:n(function(){this.videoStream&&(this.videoStream.getVideoTracks().forEach(function(o){o.stop()}),this.videoStream.getAudioTracks().forEach(function(o){o.stop()}),this.videoStream=null),this.audioStream&&(this.audioStream.getAudioTracks().forEach(function(o){o.stop()}),this.audioStream.getVideoTracks().forEach(function(o){o.stop()}),this.audioStream=null),this.outputStream&&(this.outputStream.getAudioTracks().forEach(function(o){o.stop()}),this.outputStream.getVideoTracks().forEach(function(o){o.stop()}),this.outputStream=null),this.setPluginState({recordedVideo:null}),this.captureActive=!1},"stop")},{key:"getVideo",value:n(function(){var o=this.recordingChunks[0].type,a=pa(o);if(!a)return Promise.reject(new Error('Could not retrieve recording: Unsupported media type "'.concat(o,'"')));var u="screencap-".concat(Date.now(),".").concat(a),c=new Blob(this.recordingChunks,{type:o}),l={source:this.id,name:u,data:new Blob([c],{type:o}),type:o};return Promise.resolve(l)},"getVideo")},{key:"render",value:n(function(){var o=this.getPluginState();return!o.streamActive&&!this.captureActive&&!this.userDenied&&this.start(),_(HJ,l2({},o,{onStartRecording:this.startRecording,onStopRecording:this.stopRecording,onStop:this.stop,onSubmit:this.submit,i18n:this.i18n,stream:this.videoStream}))},"render")}]),t}(Ee);IS.VERSION=rnr.version;var cZ=Ce(XJ(),1);function f2(r,e,t){return new Promise(function(i){r.toBlob(i,e,t)})}n(f2,"canvasToBlob");function p2(){return typeof MediaRecorder=="function"&&!!MediaRecorder.prototype&&typeof MediaRecorder.prototype.start=="function"}n(p2,"supportsMediaRecorder");var kS=n(function(){return _("svg",{"aria-hidden":"true",focusable:"false",fill:"#0097DC",width:"66",height:"55",viewBox:"0 0 66 55"},_("path",{d:"M57.3 8.433c4.59 0 8.1 3.51 8.1 8.1v29.7c0 4.59-3.51 8.1-8.1 8.1H8.7c-4.59 0-8.1-3.51-8.1-8.1v-29.7c0-4.59 3.51-8.1 8.1-8.1h9.45l4.59-7.02c.54-.54 1.35-1.08 2.16-1.08h16.2c.81 0 1.62.54 2.16 1.08l4.59 7.02h9.45zM33 14.64c-8.62 0-15.393 6.773-15.393 15.393 0 8.62 6.773 15.393 15.393 15.393 8.62 0 15.393-6.773 15.393-15.393 0-8.62-6.773-15.393-15.393-15.393zM33 40c-5.648 0-9.966-4.319-9.966-9.967 0-5.647 4.318-9.966 9.966-9.966s9.966 4.319 9.966 9.966C42.966 35.681 38.648 40 33 40z",fillRule:"evenodd"}))},"default");var QJ=n(function(r){var e=r.onSnapshot,t=r.i18n;return _("button",{className:"uppy-u-reset uppy-c-btn uppy-Webcam-button uppy-Webcam-button--picture",type:"button",title:t("takePicture"),"aria-label":t("takePicture"),onClick:e,"data-uppy-super-focusable":!0},kS())},"default");function d2(r){var e=r.recording,t=r.onStartRecording,i=r.onStopRecording,o=r.i18n;return e?_("button",{className:"uppy-u-reset uppy-c-btn uppy-Webcam-button",type:"button",title:o("stopRecording"),"aria-label":o("stopRecording"),onClick:i,"data-uppy-super-focusable":!0},_("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"100",height:"100",viewBox:"0 0 100 100"},_("rect",{x:"15",y:"15",width:"70",height:"70"}))):_("button",{className:"uppy-u-reset uppy-c-btn uppy-Webcam-button",type:"button",title:o("startRecording"),"aria-label":o("startRecording"),onClick:t,"data-uppy-super-focusable":!0},_("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"100",height:"100",viewBox:"0 0 100 100"},_("circle",{cx:"50",cy:"50",r:"40"})))}n(d2,"RecordButton");function h2(r){return"".concat(Math.floor(r/60),":").concat(String(r%60).padStart(2,0))}n(h2,"formatSeconds");function v2(r){var e=r.recordingLengthSeconds,t=r.i18n,i=h2(e);return _("span",{"aria-label":t("recordingLength",{recording_length:i})},i)}n(v2,"RecordingLength");var JJ=n(function(r){var e=r.currentDeviceId,t=r.videoSources,i=r.onChangeVideoSource;return _("div",{className:"uppy-Webcam-videoSource"},_("select",{className:"uppy-u-reset uppy-Webcam-videoSource-select",onChange:n(function(a){i(a.target.value)},"onChange")},t.map(function(o){return _("option",{key:o.deviceId,value:o.deviceId,selected:o.deviceId===e},o.label)})))},"default");function unr(r){var e=r.onSubmit,t=r.i18n;return _("button",{className:"uppy-u-reset uppy-c-btn uppy-Webcam-button uppy-Webcam-button--submit",type:"button",title:t("submitRecordedFile"),"aria-label":t("submitRecordedFile"),onClick:e,"data-uppy-super-focusable":!0},_("svg",{width:"12",height:"9",viewBox:"0 0 12 9",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",className:"uppy-c-icon"},_("path",{fill:"#fff",fillRule:"nonzero",d:"M10.66 0L12 1.31 4.136 9 0 4.956l1.34-1.31L4.136 6.38z"})))}n(unr,"SubmitButton");var ZJ=unr;function snr(r){var e=r.onDiscard,t=r.i18n;return _("button",{className:"uppy-u-reset uppy-c-btn uppy-Webcam-button uppy-Webcam-button--discard",type:"button",title:t("discardRecordedFile"),"aria-label":t("discardRecordedFile"),onClick:e,"data-uppy-super-focusable":!0},_("svg",{width:"13",height:"13",viewBox:"0 0 13 13",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",className:"uppy-c-icon"},_("g",{fill:"#FFF",fillRule:"evenodd"},_("path",{d:"M.496 11.367L11.103.76l1.414 1.414L1.911 12.781z"}),_("path",{d:"M11.104 12.782L.497 2.175 1.911.76l10.607 10.606z"}))))}n(snr,"DiscardButton");var eZ=snr;function Yf(r){"@babel/helpers - typeof";return Yf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yf(r)}n(Yf,"_typeof");function lnr(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(lnr,"_classCallCheck");function rZ(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,fnr(i.key),i)}}n(rZ,"_defineProperties");function cnr(r,e,t){return e&&rZ(r.prototype,e),t&&rZ(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(cnr,"_createClass");function fnr(r){var e=pnr(r,"string");return Yf(e)==="symbol"?e:String(e)}n(fnr,"_toPropertyKey");function pnr(r,e){if(Yf(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Yf(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(pnr,"_toPrimitive");function dnr(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&y2(r,e)}n(dnr,"_inherits");function y2(r,e){return y2=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),y2(r,e)}n(y2,"_setPrototypeOf");function hnr(r){var e=mnr();return n(function(){var i=FS(r),o;if(e){var a=FS(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return vnr(this,o)},"_createSuperInternal")}n(hnr,"_createSuper");function vnr(r,e){if(e&&(Yf(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ynr(r)}n(vnr,"_possibleConstructorReturn");function ynr(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(ynr,"_assertThisInitialized");function mnr(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(mnr,"_isNativeReflectConstruct");function FS(r){return FS=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),FS(r)}n(FS,"_getPrototypeOf");function m2(){return m2=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},m2.apply(this,arguments)}n(m2,"_extends");function jS(r,e){return r.includes(e)}n(jS,"isModeAvailable");var gnr=function(r){dnr(t,r);var e=hnr(t);function t(){return lnr(this,t),e.apply(this,arguments)}return n(t,"CameraScreen"),cnr(t,[{key:"componentDidMount",value:n(function(){var o=this.props.onFocus;o()},"componentDidMount")},{key:"componentWillUnmount",value:n(function(){var o=this.props.onStop;o()},"componentWillUnmount")},{key:"render",value:n(function(){var o=this,a=this.props,u=a.src,c=a.recordedVideo,l=a.recording,d=a.modes,y=a.supportsRecording,m=a.videoSources,b=a.showVideoSourceDropdown,w=a.showRecordingLength,S=a.onSubmit,P=a.i18n,R=a.mirror,I=a.onSnapshot,T=a.onStartRecording,F=a.onStopRecording,k=a.onDiscardRecordedVideo,U=a.recordingLengthSeconds,D=!!c,H=!D&&y&&(jS(d,"video-only")||jS(d,"audio-only")||jS(d,"video-audio")),$=!D&&jS(d,"picture"),V=y&&w&&!D,W=b&&m&&m.length>1,Y={playsinline:!0};return c?(Y.muted=!1,Y.controls=!0,Y.src=c,this.videoElement&&(this.videoElement.srcObject=void 0)):(Y.muted=!0,Y.autoplay=!0,Y.srcObject=u),_("div",{className:"uppy uppy-Webcam-container"},_("div",{className:"uppy-Webcam-videoContainer"},_("video",m2({ref:n(function(s){return o.videoElement=s},"ref"),className:"uppy-Webcam-video ".concat(R?"uppy-Webcam-video--mirrored":"")},Y))),_("div",{className:"uppy-Webcam-footer"},_("div",{className:"uppy-Webcam-videoSourceContainer"},W?JJ(this.props):null),_("div",{className:"uppy-Webcam-buttonContainer"},$&&_(QJ,{onSnapshot:I,i18n:P}),H&&_(d2,{recording:l,onStartRecording:T,onStopRecording:F,i18n:P}),D&&_(ZJ,{onSubmit:S,i18n:P}),D&&_(eZ,{onDiscard:k,i18n:P})),_("div",{className:"uppy-Webcam-recordingLength"},V&&_(v2,{recordingLengthSeconds:U,i18n:P}))))},"render")}]),t}(ur),tZ=gnr;var nZ=n(function(r){var e=r.icon,t=r.i18n,i=r.hasCamera;return _("div",{className:"uppy-Webcam-permissons"},_("div",{className:"uppy-Webcam-permissonsIcon"},e()),_("h1",{className:"uppy-Webcam-title"},t(i?"allowAccessTitle":"noCameraTitle")),_("p",null,t(i?"allowAccessDescription":"noCameraDescription")))},"default");var iZ={strings:{pluginNameCamera:"Camera",noCameraTitle:"Camera Not Available",noCameraDescription:"In order to take pictures or record video, please connect a camera device",recordingStoppedMaxSize:"Recording stopped because the file size is about to exceed the limit",submitRecordedFile:"Submit recorded file",discardRecordedFile:"Discard recorded file",smile:"Smile!",takePicture:"Take a picture",startRecording:"Begin video recording",stopRecording:"Stop video recording",recordingLength:"Recording length %{recording_length}",allowAccessTitle:"Please allow access to your camera",allowAccessDescription:"In order to take pictures or record video with your camera, please allow camera access for this site."}};function cu(r){"@babel/helpers - typeof";return cu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cu(r)}n(cu,"_typeof");function b2(){"use strict";b2=n(function(){return r},"_regeneratorRuntime");var r={},e=Object.prototype,t=e.hasOwnProperty,i=Object.defineProperty||function(p,s,f){p[s]=f.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(p,s,f){return Object.defineProperty(p,s,{value:f,enumerable:!0,configurable:!0,writable:!0}),p[s]}n(l,"define");try{l({},"")}catch(p){l=n(function(f,v,g){return f[v]=g},"define")}function d(p,s,f,v){var g=s&&s.prototype instanceof b?s:b,h=Object.create(g.prototype),O=new V(v||[]);return i(h,"_invoke",{value:U(p,f,O)}),h}n(d,"wrap");function y(p,s,f){try{return{type:"normal",arg:p.call(s,f)}}catch(v){return{type:"throw",arg:v}}}n(y,"tryCatch"),r.wrap=d;var m={};function b(){}n(b,"Generator");function w(){}n(w,"GeneratorFunction");function S(){}n(S,"GeneratorFunctionPrototype");var P={};l(P,a,function(){return this});var R=Object.getPrototypeOf,I=R&&R(R(W([])));I&&I!==e&&t.call(I,a)&&(P=I);var T=S.prototype=b.prototype=Object.create(P);function F(p){["next","throw","return"].forEach(function(s){l(p,s,function(f){return this._invoke(s,f)})})}n(F,"defineIteratorMethods");function k(p,s){function f(g,h,O,E){var A=y(p[g],p,h);if(A.type!=="throw"){var C=A.arg,N=C.value;return N&&cu(N)=="object"&&t.call(N,"__await")?s.resolve(N.__await).then(function(M){f("next",M,O,E)},function(M){f("throw",M,O,E)}):s.resolve(N).then(function(M){C.value=M,O(C)},function(M){return f("throw",M,O,E)})}E(A.arg)}n(f,"invoke");var v;i(this,"_invoke",{value:n(function(h,O){function E(){return new s(function(A,C){f(h,O,A,C)})}return n(E,"callInvokeWithMethodAndArg"),v=v?v.then(E,E):E()},"value")})}n(k,"AsyncIterator");function U(p,s,f){var v="suspendedStart";return function(g,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(g==="throw")throw h;return Y()}for(f.method=g,f.arg=h;;){var O=f.delegate;if(O){var E=D(O,f);if(E){if(E===m)continue;return E}}if(f.method==="next")f.sent=f._sent=f.arg;else if(f.method==="throw"){if(v==="suspendedStart")throw v="completed",f.arg;f.dispatchException(f.arg)}else f.method==="return"&&f.abrupt("return",f.arg);v="executing";var A=y(p,s,f);if(A.type==="normal"){if(v=f.done?"completed":"suspendedYield",A.arg===m)continue;return{value:A.arg,done:f.done}}A.type==="throw"&&(v="completed",f.method="throw",f.arg=A.arg)}}}n(U,"makeInvokeMethod");function D(p,s){var f=s.method,v=p.iterator[f];if(v===void 0)return s.delegate=null,f==="throw"&&p.iterator.return&&(s.method="return",s.arg=void 0,D(p,s),s.method==="throw")||f!=="return"&&(s.method="throw",s.arg=new TypeError("The iterator does not provide a '"+f+"' method")),m;var g=y(v,p.iterator,s.arg);if(g.type==="throw")return s.method="throw",s.arg=g.arg,s.delegate=null,m;var h=g.arg;return h?h.done?(s[p.resultName]=h.value,s.next=p.nextLoc,s.method!=="return"&&(s.method="next",s.arg=void 0),s.delegate=null,m):h:(s.method="throw",s.arg=new TypeError("iterator result is not an object"),s.delegate=null,m)}n(D,"maybeInvokeDelegate");function H(p){var s={tryLoc:p[0]};1 in p&&(s.catchLoc=p[1]),2 in p&&(s.finallyLoc=p[2],s.afterLoc=p[3]),this.tryEntries.push(s)}n(H,"pushTryEntry");function $(p){var s=p.completion||{};s.type="normal",delete s.arg,p.completion=s}n($,"resetTryEntry");function V(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(H,this),this.reset(!0)}n(V,"Context");function W(p){if(p){var s=p[a];if(s)return s.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var f=-1,v=n(function g(){for(;++f<p.length;)if(t.call(p,f))return g.value=p[f],g.done=!1,g;return g.value=void 0,g.done=!0,g},"next");return v.next=v}}return{next:Y}}n(W,"values");function Y(){return{value:void 0,done:!0}}return n(Y,"doneResult"),w.prototype=S,i(T,"constructor",{value:S,configurable:!0}),i(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),r.isGeneratorFunction=function(p){var s=typeof p=="function"&&p.constructor;return!!s&&(s===w||(s.displayName||s.name)==="GeneratorFunction")},r.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,S):(p.__proto__=S,l(p,c,"GeneratorFunction")),p.prototype=Object.create(T),p},r.awrap=function(p){return{__await:p}},F(k.prototype),l(k.prototype,u,function(){return this}),r.AsyncIterator=k,r.async=function(p,s,f,v,g){g===void 0&&(g=Promise);var h=new k(d(p,s,f,v),g);return r.isGeneratorFunction(s)?h:h.next().then(function(O){return O.done?O.value:h.next()})},F(T),l(T,c,"Generator"),l(T,a,function(){return this}),l(T,"toString",function(){return"[object Generator]"}),r.keys=function(p){var s=Object(p),f=[];for(var v in s)f.push(v);return f.reverse(),n(function g(){for(;f.length;){var h=f.pop();if(h in s)return g.value=h,g.done=!1,g}return g.done=!0,g},"next")},r.values=W,V.prototype={constructor:V,reset:n(function(s){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach($),!s)for(var f in this)f.charAt(0)==="t"&&t.call(this,f)&&!isNaN(+f.slice(1))&&(this[f]=void 0)},"reset"),stop:n(function(){this.done=!0;var s=this.tryEntries[0].completion;if(s.type==="throw")throw s.arg;return this.rval},"stop"),dispatchException:n(function(s){if(this.done)throw s;var f=this;function v(C,N){return O.type="throw",O.arg=s,f.next=C,N&&(f.method="next",f.arg=void 0),!!N}n(v,"handle");for(var g=this.tryEntries.length-1;g>=0;--g){var h=this.tryEntries[g],O=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var E=t.call(h,"catchLoc"),A=t.call(h,"finallyLoc");if(E&&A){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(E){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!A)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},"dispatchException"),abrupt:n(function(s,f){for(var v=this.tryEntries.length-1;v>=0;--v){var g=this.tryEntries[v];if(g.tryLoc<=this.prev&&t.call(g,"finallyLoc")&&this.prev<g.finallyLoc){var h=g;break}}h&&(s==="break"||s==="continue")&&h.tryLoc<=f&&f<=h.finallyLoc&&(h=null);var O=h?h.completion:{};return O.type=s,O.arg=f,h?(this.method="next",this.next=h.finallyLoc,m):this.complete(O)},"abrupt"),complete:n(function(s,f){if(s.type==="throw")throw s.arg;return s.type==="break"||s.type==="continue"?this.next=s.arg:s.type==="return"?(this.rval=this.arg=s.arg,this.method="return",this.next="end"):s.type==="normal"&&f&&(this.next=f),m},"complete"),finish:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.finallyLoc===s)return this.complete(v.completion,v.afterLoc),$(v),m}},"finish"),catch:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.tryLoc===s){var g=v.completion;if(g.type==="throw"){var h=g.arg;$(v)}return h}}throw new Error("illegal catch attempt")},"_catch"),delegateYield:n(function(s,f,v){return this.delegate={iterator:W(s),resultName:f,nextLoc:v},this.method==="next"&&(this.arg=void 0),m},"delegateYield")},r}n(b2,"_regeneratorRuntime");function aZ(r,e,t,i,o,a,u){try{var c=r[a](u),l=c.value}catch(d){t(d);return}c.done?e(l):Promise.resolve(l).then(i,o)}n(aZ,"asyncGeneratorStep");function bnr(r){return function(){var e=this,t=arguments;return new Promise(function(i,o){var a=r.apply(e,t);function u(l){aZ(a,i,o,u,c,"next",l)}n(u,"_next");function c(l){aZ(a,i,o,u,c,"throw",l)}n(c,"_throw"),u(void 0)})}}n(bnr,"_asyncToGenerator");function oZ(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(oZ,"ownKeys");function lu(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?oZ(Object(t),!0).forEach(function(i){wnr(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):oZ(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(lu,"_objectSpread");function wnr(r,e,t){return e=lZ(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(wnr,"_defineProperty");function Snr(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(Snr,"_classCallCheck");function uZ(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,lZ(i.key),i)}}n(uZ,"_defineProperties");function Onr(r,e,t){return e&&uZ(r.prototype,e),t&&uZ(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(Onr,"_createClass");function lZ(r){var e=Pnr(r,"string");return cu(e)==="symbol"?e:String(e)}n(lZ,"_toPropertyKey");function Pnr(r,e){if(cu(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(cu(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(Pnr,"_toPrimitive");function CS(){return typeof Reflect!="undefined"&&Reflect.get?CS=Reflect.get.bind():CS=n(function(e,t,i){var o=_nr(e,t);if(o){var a=Object.getOwnPropertyDescriptor(o,t);return a.get?a.get.call(arguments.length<3?e:i):a.value}},"_get"),CS.apply(this,arguments)}n(CS,"_get");function _nr(r,e){for(;!Object.prototype.hasOwnProperty.call(r,e)&&(r=Xf(r),r!==null););return r}n(_nr,"_superPropBase");function Enr(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&w2(r,e)}n(Enr,"_inherits");function w2(r,e){return w2=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),w2(r,e)}n(w2,"_setPrototypeOf");function Tnr(r){var e=Anr();return n(function(){var i=Xf(r),o;if(e){var a=Xf(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return Rnr(this,o)},"_createSuperInternal")}n(Tnr,"_createSuper");function Rnr(r,e){if(e&&(cu(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ct(r)}n(Rnr,"_possibleConstructorReturn");function Ct(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(Ct,"_assertThisInitialized");function Anr(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(Anr,"_isNativeReflectConstruct");function Xf(r){return Xf=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),Xf(r)}n(Xf,"_getPrototypeOf");function S2(){return S2=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},S2.apply(this,arguments)}n(S2,"_extends");function Vv(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}n(Vv,"_classPrivateFieldLooseBase");var Inr=0;function qnr(r){return"__private_"+Inr+++"_"+r}n(qnr,"_classPrivateFieldLooseKey");var knr={version:"3.3.4"};function sZ(r){return r[0]==="."?ph[r.slice(1)]:r}n(sZ,"toMimeType");function jnr(r){return/^video\/[^*]+$/.test(r)}n(jnr,"isVideoMimeType");function Fnr(r){return/^image\/[^*]+$/.test(r)}n(Fnr,"isImageMimeType");function Cnr(){return navigator.mediaDevices}n(Cnr,"getMediaDevices");function g2(r,e){return r.includes(e)}n(g2,"isModeAvailable");var ji=qnr("enableMirror"),LS=function(r){Enr(t,r);var e=Tnr(t);function t(i,o){var a;Snr(this,t),a=e.call(this,i,o),Object.defineProperty(Ct(a),ji,{writable:!0,value:void 0}),a.mediaDevices=Cnr(),a.supportsUserMedia=!!a.mediaDevices,a.protocol=location.protocol.match(/https/i)?"https":"http",a.id=a.opts.id||"Webcam",a.type="acquirer",a.capturedMediaFile=null,a.icon=function(){return _("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},_("path",{d:"M23.5 9.5c1.417 0 2.5 1.083 2.5 2.5v9.167c0 1.416-1.083 2.5-2.5 2.5h-15c-1.417 0-2.5-1.084-2.5-2.5V12c0-1.417 1.083-2.5 2.5-2.5h2.917l1.416-2.167C13 7.167 13.25 7 13.5 7h5c.25 0 .5.167.667.333L20.583 9.5H23.5zM16 11.417a4.706 4.706 0 00-4.75 4.75 4.704 4.704 0 004.75 4.75 4.703 4.703 0 004.75-4.75c0-2.663-2.09-4.75-4.75-4.75zm0 7.825c-1.744 0-3.076-1.332-3.076-3.074 0-1.745 1.333-3.077 3.076-3.077 1.744 0 3.074 1.333 3.074 3.076s-1.33 3.075-3.074 3.075z",fill:"#02B383",fillRule:"nonzero"}))},a.defaultLocale=iZ;var u={onBeforeSnapshot:n(function(){return Promise.resolve()},"onBeforeSnapshot"),countdown:!1,modes:["video-audio","video-only","audio-only","picture"],mirror:!0,showVideoSourceDropdown:!1,facingMode:"user",videoConstraints:void 0,preferredImageMimeType:null,preferredVideoMimeType:null,showRecordingLength:!1,mobileNativeCamera:(0,cZ.default)({tablet:!0})};return a.opts=lu(lu({},u),o),a.i18nInit(),a.title=a.i18n("pluginNameCamera"),Vv(Ct(a),ji)[ji]=a.opts.mirror,a.install=a.install.bind(Ct(a)),a.setPluginState=a.setPluginState.bind(Ct(a)),a.render=a.render.bind(Ct(a)),a.start=a.start.bind(Ct(a)),a.stop=a.stop.bind(Ct(a)),a.takeSnapshot=a.takeSnapshot.bind(Ct(a)),a.startRecording=a.startRecording.bind(Ct(a)),a.stopRecording=a.stopRecording.bind(Ct(a)),a.discardRecordedVideo=a.discardRecordedVideo.bind(Ct(a)),a.submit=a.submit.bind(Ct(a)),a.oneTwoThreeSmile=a.oneTwoThreeSmile.bind(Ct(a)),a.focus=a.focus.bind(Ct(a)),a.changeVideoSource=a.changeVideoSource.bind(Ct(a)),a.webcamActive=!1,a.opts.countdown&&(a.opts.onBeforeSnapshot=a.oneTwoThreeSmile),a.setPluginState({hasCamera:!1,cameraReady:!1,cameraError:null,recordingLengthSeconds:0,videoSources:[],currentDeviceId:null}),a}return n(t,"Webcam"),Onr(t,[{key:"setOptions",value:n(function(o){CS(Xf(t.prototype),"setOptions",this).call(this,lu(lu({},o),{},{videoConstraints:lu(lu({},this.opts.videoConstraints),o==null?void 0:o.videoConstraints)}))},"setOptions")},{key:"hasCameraCheck",value:n(function(){return this.mediaDevices?this.mediaDevices.enumerateDevices().then(function(o){return o.some(function(a){return a.kind==="videoinput"})}):Promise.resolve(!1)},"hasCameraCheck")},{key:"isAudioOnly",value:n(function(){return this.opts.modes.length===1&&this.opts.modes[0]==="audio-only"},"isAudioOnly")},{key:"getConstraints",value:n(function(o){o===void 0&&(o=null);var a=this.opts.modes.indexOf("video-audio")!==-1||this.opts.modes.indexOf("audio-only")!==-1,u=!this.isAudioOnly()&&(this.opts.modes.indexOf("video-audio")!==-1||this.opts.modes.indexOf("video-only")!==-1||this.opts.modes.indexOf("picture")!==-1),c=lu(lu({},this.opts.videoConstraints||{facingMode:this.opts.facingMode}),o?{deviceId:o,facingMode:null}:{});return{audio:a,video:u?c:!1}},"getConstraints")},{key:"start",value:n(function(o){var a=this;if(o===void 0&&(o=null),!this.supportsUserMedia)return Promise.reject(new Error("Webcam access not supported"));this.webcamActive=!0,this.opts.mirror&&(Vv(this,ji)[ji]=!0);var u=this.getConstraints(o&&o.deviceId?o.deviceId:null);this.hasCameraCheck().then(function(c){return a.setPluginState({hasCamera:c}),a.mediaDevices.getUserMedia(u).then(function(l){a.stream=l;var d=null,y=a.isAudioOnly()?l.getAudioTracks():l.getVideoTracks();!o||!o.deviceId?d=y[0].getSettings().deviceId:y.forEach(function(m){m.getSettings().deviceId===o.deviceId&&(d=m.getSettings().deviceId)}),a.updateVideoSources(),a.setPluginState({currentDeviceId:d,cameraReady:!0})}).catch(function(l){a.setPluginState({cameraReady:!1,cameraError:l}),a.uppy.info(l.message,"error")})})},"start")},{key:"getMediaRecorderOptions",value:n(function(){var o={};if(MediaRecorder.isTypeSupported){var a=this.uppy.opts.restrictions,u=[];this.opts.preferredVideoMimeType?u=[this.opts.preferredVideoMimeType]:a.allowedFileTypes&&(u=a.allowedFileTypes.map(sZ).filter(jnr));var c=n(function(y){return MediaRecorder.isTypeSupported(y)&&pa(y)},"filterSupportedTypes"),l=u.filter(c);l.length>0&&(o.mimeType=l[0])}return o},"getMediaRecorderOptions")},{key:"startRecording",value:n(function(){var o=this;this.recorder=new MediaRecorder(this.stream,this.getMediaRecorderOptions()),this.recordingChunks=[];var a=!1;this.recorder.addEventListener("dataavailable",function(u){o.recordingChunks.push(u.data);var c=o.uppy.opts.restrictions;if(o.recordingChunks.length>1&&c.maxFileSize!=null&&!a){var l=o.recordingChunks.reduce(function(b,w){return b+w.size},0),d=(l-o.recordingChunks[0].size)/(o.recordingChunks.length-1),y=d*3,m=Math.max(0,c.maxFileSize-y);l>m&&(a=!0,o.uppy.info(o.i18n("recordingStoppedMaxSize"),"warning",4e3),o.stopRecording())}}),this.recorder.start(500),this.opts.showRecordingLength&&(this.recordingLengthTimer=setInterval(function(){var u=o.getPluginState().recordingLengthSeconds;o.setPluginState({recordingLengthSeconds:u+1})},1e3)),this.setPluginState({isRecording:!0})},"startRecording")},{key:"stopRecording",value:n(function(){var o=this,a=new Promise(function(u){o.recorder.addEventListener("stop",function(){u()}),o.recorder.stop(),o.opts.showRecordingLength&&(clearInterval(o.recordingLengthTimer),o.setPluginState({recordingLengthSeconds:0}))});return a.then(function(){return o.setPluginState({isRecording:!1}),o.getVideo()}).then(function(u){try{o.capturedMediaFile=u,o.setPluginState({recordedVideo:URL.createObjectURL(u.data)}),Vv(o,ji)[ji]=!1}catch(c){c.isRestriction||o.uppy.log(c)}}).then(function(){o.recordingChunks=null,o.recorder=null},function(u){throw o.recordingChunks=null,o.recorder=null,u})},"stopRecording")},{key:"discardRecordedVideo",value:n(function(){this.setPluginState({recordedVideo:null}),this.opts.mirror&&(Vv(this,ji)[ji]=!0),this.capturedMediaFile=null},"discardRecordedVideo")},{key:"submit",value:n(function(){try{this.capturedMediaFile&&this.uppy.addFile(this.capturedMediaFile)}catch(o){o.isRestriction||this.uppy.log(o,"error")}},"submit")},{key:"stop",value:function(){var i=bnr(b2().mark(n(function a(){var u=this,c,l;return b2().wrap(n(function(y){for(;;)switch(y.prev=y.next){case 0:if(this.stream&&(c=this.stream.getAudioTracks(),l=this.stream.getVideoTracks(),c.concat(l).forEach(function(m){return m.stop()})),!this.recorder){y.next=4;break}return y.next=4,new Promise(function(m){u.recorder.addEventListener("stop",m,{once:!0}),u.recorder.stop(),u.opts.showRecordingLength&&clearInterval(u.recordingLengthTimer)});case 4:this.recordingChunks=null,this.recorder=null,this.webcamActive=!1,this.stream=null,this.setPluginState({recordedVideo:null,isRecording:!1,recordingLengthSeconds:0});case 9:case"end":return y.stop()}},"_callee$"),a,this)},"_callee")));function o(){return i.apply(this,arguments)}return n(o,"stop"),o}()},{key:"getVideoElement",value:n(function(){return this.el.querySelector(".uppy-Webcam-video")},"getVideoElement")},{key:"oneTwoThreeSmile",value:n(function(){var o=this;return new Promise(function(a,u){var c=o.opts.countdown,l=setInterval(function(){if(!o.webcamActive)return clearInterval(l),o.captureInProgress=!1,u(new Error("Webcam is not active"));c>0?(o.uppy.info("".concat(c,"..."),"warning",800),c--):(clearInterval(l),o.uppy.info(o.i18n("smile"),"success",1500),setTimeout(function(){return a()},1500))},1e3)})},"oneTwoThreeSmile")},{key:"takeSnapshot",value:n(function(){var o=this;this.captureInProgress||(this.captureInProgress=!0,this.opts.onBeforeSnapshot().catch(function(a){var u=cu(a)==="object"?a.message:a;return o.uppy.info(u,"error",5e3),Promise.reject(new Error("onBeforeSnapshot: ".concat(u)))}).then(function(){return o.getImage()}).then(function(a){o.captureInProgress=!1;try{o.uppy.addFile(a)}catch(u){u.isRestriction||o.uppy.log(u)}},function(a){throw o.captureInProgress=!1,a}))},"takeSnapshot")},{key:"getImage",value:n(function(){var o=this,a=this.getVideoElement();if(!a)return Promise.reject(new Error("No video element found, likely due to the Webcam tab being closed."));var u=a.videoWidth,c=a.videoHeight,l=document.createElement("canvas");l.width=u,l.height=c;var d=l.getContext("2d");d.drawImage(a,0,0);var y=this.uppy.opts.restrictions,m=[];this.opts.preferredImageMimeType?m=[this.opts.preferredImageMimeType]:y.allowedFileTypes&&(m=y.allowedFileTypes.map(sZ).filter(Fnr));var b=m[0]||"image/jpeg",w=pa(b)||"jpg",S="cam-".concat(Date.now(),".").concat(w);return f2(l,b).then(function(P){return{source:o.id,name:S,data:new Blob([P],{type:b}),type:b}})},"getImage")},{key:"getVideo",value:n(function(){var o=this.recordingChunks.find(function(d){var y;return((y=d.type)==null?void 0:y.length)>0}).type,a=pa(o);if(!a)return Promise.reject(new Error('Could not retrieve recording: Unsupported media type "'.concat(o,'"')));var u="webcam-".concat(Date.now(),".").concat(a),c=new Blob(this.recordingChunks,{type:o}),l={source:this.id,name:u,data:new Blob([c],{type:o}),type:o};return Promise.resolve(l)},"getVideo")},{key:"focus",value:n(function(){var o=this;this.opts.countdown&&setTimeout(function(){o.uppy.info(o.i18n("smile"),"success",1500)},1e3)},"focus")},{key:"changeVideoSource",value:n(function(o){this.stop(),this.start({deviceId:o})},"changeVideoSource")},{key:"updateVideoSources",value:n(function(){var o=this;this.mediaDevices.enumerateDevices().then(function(a){o.setPluginState({videoSources:a.filter(function(u){return u.kind==="videoinput"})})})},"updateVideoSources")},{key:"render",value:n(function(){this.webcamActive||this.start();var o=this.getPluginState();return!o.cameraReady||!o.hasCamera?_(nZ,{icon:kS,i18n:this.i18n,hasCamera:o.hasCamera}):_(tZ,S2({},o,{onChangeVideoSource:this.changeVideoSource,onSnapshot:this.takeSnapshot,onStartRecording:this.startRecording,onStopRecording:this.stopRecording,onDiscardRecordedVideo:this.discardRecordedVideo,onSubmit:this.submit,onFocus:this.focus,onStop:this.stop,i18n:this.i18n,modes:this.opts.modes,showRecordingLength:this.opts.showRecordingLength,showVideoSourceDropdown:this.opts.showVideoSourceDropdown,supportsRecording:p2(),recording:o.isRecording,mirror:Vv(this,ji)[ji],src:this.stream}))},"render")},{key:"install",value:n(function(){var o=this,a=this.opts,u=a.mobileNativeCamera,c=a.modes,l=a.facingMode,d=a.videoConstraints,y=this.opts.target;if(u&&y){var m;(m=this.getTargetPlugin(y))==null||m.setOptions({showNativeVideoCameraButton:g2(c,"video-only")||g2(c,"video-audio"),showNativePhotoCameraButton:g2(c,"picture"),nativeCameraFacingMode:(d==null?void 0:d.facingMode)||l});return}this.setPluginState({cameraReady:!1,recordingLengthSeconds:0}),y&&this.mount(y,this),this.mediaDevices&&(this.updateVideoSources(),this.mediaDevices.ondevicechange=function(){if(o.updateVideoSources(),o.stream){var b=!0,w=o.getPluginState(),S=w.videoSources,P=w.currentDeviceId;S.forEach(function(R){P===R.deviceId&&(b=!1)}),b&&(o.stop(),o.start())}})},"install")},{key:"uninstall",value:n(function(){this.stop(),this.unmount()},"uninstall")},{key:"onUnmount",value:n(function(){this.stop()},"onUnmount")}]),t}(Ee);LS.VERSION=knr.version;function Yv(r){"@babel/helpers - typeof";return Yv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yv(r)}n(Yv,"_typeof");function Lnr(r,e){return Dnr(r)||xnr(r,e)||dZ(r,e)||Nnr()}n(Lnr,"_slicedToArray");function Nnr(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n(Nnr,"_nonIterableRest");function xnr(r,e){var t=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var i,o,a,u,c=[],l=!0,d=!1;try{if(a=(t=t.call(r)).next,e===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(i=a.call(t)).done)&&(c.push(i.value),c.length!==e);l=!0);}catch(y){d=!0,o=y}finally{try{if(!l&&t.return!=null&&(u=t.return(),Object(u)!==u))return}finally{if(d)throw o}}return c}}n(xnr,"_iterableToArrayLimit");function Dnr(r){if(Array.isArray(r))return r}n(Dnr,"_arrayWithHoles");function Mnr(r,e){var t=typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=dZ(r))||e&&r&&typeof r.length=="number"){t&&(r=t);var i=0,o=n(function(){},"F");return{s:o,n:n(function(){return i>=r.length?{done:!0}:{done:!1,value:r[i++]}},"n"),e:n(function(d){throw d},"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=!0,u=!1,c;return{s:n(function(){t=t.call(r)},"s"),n:n(function(){var d=t.next();return a=d.done,d},"n"),e:n(function(d){u=!0,c=d},"e"),f:n(function(){try{!a&&t.return!=null&&t.return()}finally{if(u)throw c}},"f")}}n(Mnr,"_createForOfIteratorHelper");function dZ(r,e){if(r){if(typeof r=="string")return fZ(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return fZ(r,e)}}n(dZ,"_unsupportedIterableToArray");function fZ(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=r[t];return i}n(fZ,"_arrayLikeToArray");function Unr(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(Unr,"_classCallCheck");function pZ(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,$nr(i.key),i)}}n(pZ,"_defineProperties");function Bnr(r,e,t){return e&&pZ(r.prototype,e),t&&pZ(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(Bnr,"_createClass");function $nr(r){var e=Gnr(r,"string");return Yv(e)==="symbol"?e:String(e)}n($nr,"_toPropertyKey");function Gnr(r,e){if(Yv(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Yv(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(Gnr,"_toPrimitive");function ao(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}n(ao,"_classPrivateFieldLooseBase");var znr=0;function hZ(r){return"__private_"+znr+++"_"+r}n(hZ,"_classPrivateFieldLooseKey");var Ht=hZ("uppy"),Kv=hZ("events"),fu=function(){function r(e){Unr(this,r),Object.defineProperty(this,Ht,{writable:!0,value:void 0}),Object.defineProperty(this,Kv,{writable:!0,value:[]}),ao(this,Ht)[Ht]=e}return n(r,"EventManager"),Bnr(r,[{key:"on",value:n(function(t,i){return ao(this,Kv)[Kv].push([t,i]),ao(this,Ht)[Ht].on(t,i)},"on")},{key:"remove",value:n(function(){var t=Mnr(ao(this,Kv)[Kv].splice(0)),i;try{for(t.s();!(i=t.n()).done;){var o=Lnr(i.value,2),a=o[0],u=o[1];ao(this,Ht)[Ht].off(a,u)}}catch(c){t.e(c)}finally{t.f()}},"remove")},{key:"onFilePause",value:n(function(t,i){this.on("upload-pause",function(o,a){t===o&&i(a)})},"onFilePause")},{key:"onFileRemove",value:n(function(t,i){this.on("file-removed",function(o){t===o.id&&i(o.id)})},"onFileRemove")},{key:"onPause",value:n(function(t,i){this.on("upload-pause",function(o,a){t===o&&i(a)})},"onPause")},{key:"onRetry",value:n(function(t,i){this.on("upload-retry",function(o){t===o&&i()})},"onRetry")},{key:"onRetryAll",value:n(function(t,i){var o=this;this.on("retry-all",function(){ao(o,Ht)[Ht].getFile(t)&&i()})},"onRetryAll")},{key:"onPauseAll",value:n(function(t,i){var o=this;this.on("pause-all",function(){ao(o,Ht)[Ht].getFile(t)&&i()})},"onPauseAll")},{key:"onCancelAll",value:n(function(t,i){var o=this;this.on("cancel-all",function(){ao(o,Ht)[Ht].getFile(t)&&i.apply(void 0,arguments)})},"onCancelAll")},{key:"onResumeAll",value:n(function(t,i){var o=this;this.on("resume-all",function(){ao(o,Ht)[Ht].getFile(t)&&i()})},"onResumeAll")}]),r}();function Qv(r){"@babel/helpers - typeof";return Qv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qv(r)}n(Qv,"_typeof");function Hnr(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(Hnr,"_classCallCheck");function vZ(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,Vnr(i.key),i)}}n(vZ,"_defineProperties");function Wnr(r,e,t){return e&&vZ(r.prototype,e),t&&vZ(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(Wnr,"_createClass");function Vnr(r){var e=Knr(r,"string");return Qv(e)==="symbol"?e:String(e)}n(Vnr,"_toPropertyKey");function Knr(r,e){if(Qv(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Qv(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(Knr,"_toPrimitive");function we(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}n(we,"_classPrivateFieldLooseBase");var Ynr=0;function dn(r){return"__private_"+Ynr+++"_"+r}n(dn,"_classPrivateFieldLooseKey");function Xnr(r){return new Error("Cancelled",{cause:r})}n(Xnr,"createCancelError");function yZ(r){var e=this;if(r!=null){var t,i=n(function(){return e.abort(r.reason)},"abortPromise");r.addEventListener("abort",i,{once:!0});var o=n(function(){r.removeEventListener("abort",i)},"removeAbortListener");(t=this.then)==null||t.call(this,o,o)}return this}n(yZ,"abortOn");var Ln=dn("activeRequests"),Vt=dn("queuedHandlers"),Cn=dn("paused"),Hs=dn("pauseTimer"),Wt=dn("downLimit"),Ws=dn("upperLimit"),oo=dn("rateLimitingTimer"),Xv=dn("call"),uo=dn("queueNext"),_2=dn("next"),O2=dn("queue"),E2=dn("dequeue"),P2=dn("resume"),Vs=dn("increaseLimit"),oi=function(){function r(e){var t=this;Hnr(this,r),Object.defineProperty(this,E2,{value:rir}),Object.defineProperty(this,O2,{value:eir}),Object.defineProperty(this,_2,{value:Znr}),Object.defineProperty(this,uo,{value:Jnr}),Object.defineProperty(this,Xv,{value:Qnr}),Object.defineProperty(this,Ln,{writable:!0,value:0}),Object.defineProperty(this,Vt,{writable:!0,value:[]}),Object.defineProperty(this,Cn,{writable:!0,value:!1}),Object.defineProperty(this,Hs,{writable:!0,value:void 0}),Object.defineProperty(this,Wt,{writable:!0,value:1}),Object.defineProperty(this,Ws,{writable:!0,value:void 0}),Object.defineProperty(this,oo,{writable:!0,value:void 0}),Object.defineProperty(this,P2,{writable:!0,value:n(function(){return t.resume()},"value")}),Object.defineProperty(this,Vs,{writable:!0,value:n(function(){if(we(t,Cn)[Cn]){we(t,oo)[oo]=setTimeout(we(t,Vs)[Vs],0);return}we(t,Wt)[Wt]=t.limit,t.limit=Math.ceil((we(t,Ws)[Ws]+we(t,Wt)[Wt])/2);for(var o=we(t,Wt)[Wt];o<=t.limit;o++)we(t,uo)[uo]();we(t,Ws)[Ws]-we(t,Wt)[Wt]>3?we(t,oo)[oo]=setTimeout(we(t,Vs)[Vs],2e3):we(t,Wt)[Wt]=Math.floor(we(t,Wt)[Wt]/2)},"value")}),typeof e!="number"||e===0?this.limit=1/0:this.limit=e}return n(r,"RateLimitedQueue"),Wnr(r,[{key:"run",value:n(function(t,i){return!we(this,Cn)[Cn]&&we(this,Ln)[Ln]<this.limit?we(this,Xv)[Xv](t):we(this,O2)[O2](t,i)},"run")},{key:"wrapSyncFunction",value:n(function(t,i){var o=this;return function(){for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];var l=o.run(function(){return t.apply(void 0,u),queueMicrotask(function(){return l.done()}),function(){}},i);return{abortOn:yZ,abort:n(function(){l.abort()},"abort")}}},"wrapSyncFunction")},{key:"wrapPromiseFunction",value:n(function(t,i){var o=this;return function(){for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];var l,d=new Promise(function(y,m){l=o.run(function(){var b,w;try{w=Promise.resolve(t.apply(void 0,u))}catch(S){w=Promise.reject(S)}return w.then(function(S){b?m(b):(l.done(),y(S))},function(S){b?m(b):(l.done(),m(S))}),function(S){b=Xnr(S)}},i)});return d.abort=function(y){l.abort(y)},d.abortOn=yZ,d}},"wrapPromiseFunction")},{key:"resume",value:n(function(){we(this,Cn)[Cn]=!1,clearTimeout(we(this,Hs)[Hs]);for(var t=0;t<this.limit;t++)we(this,uo)[uo]()},"resume")},{key:"pause",value:n(function(t){t===void 0&&(t=null),we(this,Cn)[Cn]=!0,clearTimeout(we(this,Hs)[Hs]),t!=null&&(we(this,Hs)[Hs]=setTimeout(we(this,P2)[P2],t))},"pause")},{key:"rateLimit",value:n(function(t){clearTimeout(we(this,oo)[oo]),this.pause(t),this.limit>1&&Number.isFinite(this.limit)&&(we(this,Ws)[Ws]=this.limit-1,this.limit=we(this,Wt)[Wt],we(this,oo)[oo]=setTimeout(we(this,Vs)[Vs],t))},"rateLimit")},{key:"isPaused",get:n(function(){return we(this,Cn)[Cn]},"get")}]),r}();function Qnr(r){var e=this;we(this,Ln)[Ln]+=1;var t=!1,i;try{i=r()}catch(o){throw we(this,Ln)[Ln]-=1,o}return{abort:n(function(a){t||(t=!0,we(e,Ln)[Ln]-=1,i==null||i(a),we(e,uo)[uo]())},"abort"),done:n(function(){t||(t=!0,we(e,Ln)[Ln]-=1,we(e,uo)[uo]())},"done")}}n(Qnr,"_call2");function Jnr(){var r=this;queueMicrotask(function(){return we(r,_2)[_2]()})}n(Jnr,"_queueNext2");function Znr(){if(!(we(this,Cn)[Cn]||we(this,Ln)[Ln]>=this.limit)&&we(this,Vt)[Vt].length!==0){var r=we(this,Vt)[Vt].shift(),e=we(this,Xv)[Xv](r.fn);r.abort=e.abort,r.done=e.done}}n(Znr,"_next2");function eir(r,e){var t=this;e===void 0&&(e={});var i={fn:r,priority:e.priority||0,abort:n(function(){we(t,E2)[E2](i)},"abort"),done:n(function(){throw new Error("Cannot mark a queued request as done: this indicates a bug")},"done")},o=we(this,Vt)[Vt].findIndex(function(a){return i.priority>a.priority});return o===-1?we(this,Vt)[Vt].push(i):we(this,Vt)[Vt].splice(o,0,i),i}n(eir,"_queue2");function rir(r){var e=we(this,Vt)[Vt].indexOf(r);e!==-1&&we(this,Vt)[Vt].splice(e,1)}n(rir,"_dequeue2");var pu=Symbol("__queue");function du(r){var e=n(function(i){return"error"in i&&!!i.error},"hasError");return r.filter(function(t){return!e(t)})}n(du,"filterNonFailedFiles");function hu(r){return r.filter(function(e){var t;return!((t=e.progress)!=null&&t.uploadStarted)||!e.isRestored})}n(hu,"filterFilesToEmitUploadStarted");var NS=globalThis.AbortController;var LCr=globalThis.AbortSignal;var T2=n(function(e,t){e===void 0&&(e="Aborted");var i=new DOMException(e,"AbortError");return t!=null&&En(t,"cause")&&Object.defineProperty(i,"cause",{__proto__:null,configurable:!0,writable:!0,value:t.cause}),i},"createAbortError");function ay(r){"@babel/helpers - typeof";return ay=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ay(r)}n(ay,"_typeof");function mZ(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(mZ,"ownKeys");function gZ(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?mZ(Object(t),!0).forEach(function(i){tir(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):mZ(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(gZ,"_objectSpread");function tir(r,e,t){return e=SZ(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(tir,"_defineProperty");function nir(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(nir,"_classCallCheck");function bZ(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,SZ(i.key),i)}}n(bZ,"_defineProperties");function iir(r,e,t){return e&&bZ(r.prototype,e),t&&bZ(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(iir,"_createClass");function SZ(r){var e=air(r,"string");return ay(e)==="symbol"?e:String(e)}n(SZ,"_toPropertyKey");function air(r,e){if(ay(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(ay(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(air,"_toPrimitive");function pe(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}n(pe,"_classPrivateFieldLooseBase");var oir=0;function nt(r){return"__private_"+oir+++"_"+r}n(nt,"_classPrivateFieldLooseKey");var uir=1024*1024,wZ={getChunkSize:n(function(e){return Math.ceil(e.size/1e4)},"getChunkSize"),onProgress:n(function(){},"onProgress"),onPartComplete:n(function(){},"onPartComplete"),onSuccess:n(function(){},"onSuccess"),onError:n(function(e){throw e},"onError")};function sir(r){if(typeof r=="string")return parseInt(r,10);if(typeof r=="number")return r;throw new TypeError("Expected a number")}n(sir,"ensureInt");var ny=Symbol("pausing upload, not an actual error"),wt=nt("abortController"),tt=nt("chunks"),Kt=nt("chunkState"),Nn=nt("data"),xn=nt("file"),iy=nt("uploadHasStarted"),Jv=nt("onError"),Xs=nt("onSuccess"),so=nt("shouldUseMultipart"),Ys=nt("isRestoring"),oy=nt("onReject"),Ks=nt("maxMultipartParts"),ey=nt("minPartSize"),R2=nt("initChunks"),A2=nt("createUpload"),Zv=nt("resumeUpload"),ry=nt("onPartProgress"),ty=nt("onPartComplete"),I2=nt("abortUpload"),lir=function(){function r(e,t){var i=this;nir(this,r);var o,a;Object.defineProperty(this,I2,{value:dir}),Object.defineProperty(this,Zv,{value:pir}),Object.defineProperty(this,A2,{value:fir}),Object.defineProperty(this,R2,{value:cir}),Object.defineProperty(this,wt,{writable:!0,value:new NS}),Object.defineProperty(this,tt,{writable:!0,value:void 0}),Object.defineProperty(this,Kt,{writable:!0,value:void 0}),Object.defineProperty(this,Nn,{writable:!0,value:void 0}),Object.defineProperty(this,xn,{writable:!0,value:void 0}),Object.defineProperty(this,iy,{writable:!0,value:!1}),Object.defineProperty(this,Jv,{writable:!0,value:void 0}),Object.defineProperty(this,Xs,{writable:!0,value:void 0}),Object.defineProperty(this,so,{writable:!0,value:void 0}),Object.defineProperty(this,Ys,{writable:!0,value:void 0}),Object.defineProperty(this,oy,{writable:!0,value:n(function(c){return(c==null?void 0:c.cause)===ny?null:pe(i,Jv)[Jv](c)},"value")}),Object.defineProperty(this,Ks,{writable:!0,value:1e4}),Object.defineProperty(this,ey,{writable:!0,value:5*uir}),Object.defineProperty(this,ry,{writable:!0,value:n(function(c){return function(l){if(l.lengthComputable){pe(i,Kt)[Kt][c].uploaded=sir(l.loaded);var d=pe(i,Kt)[Kt].reduce(function(y,m){return y+m.uploaded},0);i.options.onProgress(d,pe(i,Nn)[Nn].size)}}},"value")}),Object.defineProperty(this,ty,{writable:!0,value:n(function(c){return function(l){pe(i,tt)[tt][c]=null,pe(i,Kt)[Kt][c].etag=l,pe(i,Kt)[Kt][c].done=!0;var d={PartNumber:c+1,ETag:l};i.options.onPartComplete(d)}},"value")}),this.options=gZ(gZ({},wZ),t),(a=(o=this.options).getChunkSize)!=null||(o.getChunkSize=wZ.getChunkSize),pe(this,Nn)[Nn]=e,pe(this,xn)[xn]=t.file,pe(this,Xs)[Xs]=this.options.onSuccess,pe(this,Jv)[Jv]=this.options.onError,pe(this,so)[so]=this.options.shouldUseMultipart,pe(this,Ys)[Ys]=t.uploadId&&t.key,pe(this,R2)[R2]()}return n(r,"MultipartUploader"),iir(r,[{key:"start",value:n(function(){pe(this,iy)[iy]?(pe(this,wt)[wt].signal.aborted||pe(this,wt)[wt].abort(ny),pe(this,wt)[wt]=new NS,pe(this,Zv)[Zv]()):pe(this,Ys)[Ys]?(this.options.companionComm.restoreUploadFile(pe(this,xn)[xn],{uploadId:this.options.uploadId,key:this.options.key}),pe(this,Zv)[Zv]()):pe(this,A2)[A2]()},"start")},{key:"pause",value:n(function(){pe(this,wt)[wt].abort(ny),pe(this,wt)[wt]=new NS},"pause")},{key:"abort",value:n(function(t){var i;t===void 0&&(t=void 0),(i=t)!=null&&i.really?pe(this,I2)[I2]():this.pause()},"abort")},{key:"chunkState",get:n(function(){return pe(this,Kt)[Kt]},"get")}]),r}();function cir(){var r=this,e=pe(this,Nn)[Nn].size,t=typeof pe(this,so)[so]=="function"?pe(this,so)[so](pe(this,xn)[xn]):!!pe(this,so)[so];if(t&&e>pe(this,ey)[ey]){var i=Math.max(this.options.getChunkSize(pe(this,Nn)[Nn]),pe(this,ey)[ey]),o=Math.floor(e/i);o>pe(this,Ks)[Ks]&&(o=pe(this,Ks)[Ks],i=e/pe(this,Ks)[Ks]),pe(this,tt)[tt]=Array(o);for(var a=n(function(d,y){var m=Math.min(e,d+i),b=n(function(){var P=d;return pe(r,Nn)[Nn].slice(P,m)},"getData");if(pe(r,tt)[tt][y]={getData:b,onProgress:pe(r,ry)[ry](y),onComplete:pe(r,ty)[ty](y),shouldUseMultipart:t},pe(r,Ys)[Ys]){var w=d+i>e?e-d:i;pe(r,tt)[tt][y].setAsUploaded=function(){pe(r,tt)[tt][y]=null,pe(r,Kt)[Kt][y].uploaded=w}}},"_loop"),u=0,c=0;u<e;u+=i,c++)a(u,c)}else pe(this,tt)[tt]=[{getData:n(function(){return pe(r,Nn)[Nn]},"getData"),onProgress:pe(this,ry)[ry](0),onComplete:pe(this,ty)[ty](0),shouldUseMultipart:t}];pe(this,Kt)[Kt]=pe(this,tt)[tt].map(function(){return{uploaded:0}})}n(cir,"_initChunks2");function fir(){this.options.companionComm.uploadFile(pe(this,xn)[xn],pe(this,tt)[tt],pe(this,wt)[wt].signal).then(pe(this,Xs)[Xs],pe(this,oy)[oy]),pe(this,iy)[iy]=!0}n(fir,"_createUpload2");function pir(){this.options.companionComm.resumeUploadFile(pe(this,xn)[xn],pe(this,tt)[tt],pe(this,wt)[wt].signal).then(pe(this,Xs)[Xs],pe(this,oy)[oy])}n(pir,"_resumeUpload2");function dir(){var r=this;pe(this,wt)[wt].abort(),this.options.companionComm.abortFileUpload(pe(this,xn)[xn]).catch(function(e){return r.options.log(e)})}n(dir,"_abortUpload2");var OZ=lir;function q2(r){"@babel/helpers - typeof";return q2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},q2(r)}n(q2,"_typeof");function lo(){"use strict";lo=n(function(){return r},"_regeneratorRuntime");var r={},e=Object.prototype,t=e.hasOwnProperty,i=Object.defineProperty||function(p,s,f){p[s]=f.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(p,s,f){return Object.defineProperty(p,s,{value:f,enumerable:!0,configurable:!0,writable:!0}),p[s]}n(l,"define");try{l({},"")}catch(p){l=n(function(f,v,g){return f[v]=g},"define")}function d(p,s,f,v){var g=s&&s.prototype instanceof b?s:b,h=Object.create(g.prototype),O=new V(v||[]);return i(h,"_invoke",{value:U(p,f,O)}),h}n(d,"wrap");function y(p,s,f){try{return{type:"normal",arg:p.call(s,f)}}catch(v){return{type:"throw",arg:v}}}n(y,"tryCatch"),r.wrap=d;var m={};function b(){}n(b,"Generator");function w(){}n(w,"GeneratorFunction");function S(){}n(S,"GeneratorFunctionPrototype");var P={};l(P,a,function(){return this});var R=Object.getPrototypeOf,I=R&&R(R(W([])));I&&I!==e&&t.call(I,a)&&(P=I);var T=S.prototype=b.prototype=Object.create(P);function F(p){["next","throw","return"].forEach(function(s){l(p,s,function(f){return this._invoke(s,f)})})}n(F,"defineIteratorMethods");function k(p,s){function f(g,h,O,E){var A=y(p[g],p,h);if(A.type!=="throw"){var C=A.arg,N=C.value;return N&&q2(N)=="object"&&t.call(N,"__await")?s.resolve(N.__await).then(function(M){f("next",M,O,E)},function(M){f("throw",M,O,E)}):s.resolve(N).then(function(M){C.value=M,O(C)},function(M){return f("throw",M,O,E)})}E(A.arg)}n(f,"invoke");var v;i(this,"_invoke",{value:n(function(h,O){function E(){return new s(function(A,C){f(h,O,A,C)})}return n(E,"callInvokeWithMethodAndArg"),v=v?v.then(E,E):E()},"value")})}n(k,"AsyncIterator");function U(p,s,f){var v="suspendedStart";return function(g,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(g==="throw")throw h;return Y()}for(f.method=g,f.arg=h;;){var O=f.delegate;if(O){var E=D(O,f);if(E){if(E===m)continue;return E}}if(f.method==="next")f.sent=f._sent=f.arg;else if(f.method==="throw"){if(v==="suspendedStart")throw v="completed",f.arg;f.dispatchException(f.arg)}else f.method==="return"&&f.abrupt("return",f.arg);v="executing";var A=y(p,s,f);if(A.type==="normal"){if(v=f.done?"completed":"suspendedYield",A.arg===m)continue;return{value:A.arg,done:f.done}}A.type==="throw"&&(v="completed",f.method="throw",f.arg=A.arg)}}}n(U,"makeInvokeMethod");function D(p,s){var f=s.method,v=p.iterator[f];if(v===void 0)return s.delegate=null,f==="throw"&&p.iterator.return&&(s.method="return",s.arg=void 0,D(p,s),s.method==="throw")||f!=="return"&&(s.method="throw",s.arg=new TypeError("The iterator does not provide a '"+f+"' method")),m;var g=y(v,p.iterator,s.arg);if(g.type==="throw")return s.method="throw",s.arg=g.arg,s.delegate=null,m;var h=g.arg;return h?h.done?(s[p.resultName]=h.value,s.next=p.nextLoc,s.method!=="return"&&(s.method="next",s.arg=void 0),s.delegate=null,m):h:(s.method="throw",s.arg=new TypeError("iterator result is not an object"),s.delegate=null,m)}n(D,"maybeInvokeDelegate");function H(p){var s={tryLoc:p[0]};1 in p&&(s.catchLoc=p[1]),2 in p&&(s.finallyLoc=p[2],s.afterLoc=p[3]),this.tryEntries.push(s)}n(H,"pushTryEntry");function $(p){var s=p.completion||{};s.type="normal",delete s.arg,p.completion=s}n($,"resetTryEntry");function V(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(H,this),this.reset(!0)}n(V,"Context");function W(p){if(p){var s=p[a];if(s)return s.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var f=-1,v=n(function g(){for(;++f<p.length;)if(t.call(p,f))return g.value=p[f],g.done=!1,g;return g.value=void 0,g.done=!0,g},"next");return v.next=v}}return{next:Y}}n(W,"values");function Y(){return{value:void 0,done:!0}}return n(Y,"doneResult"),w.prototype=S,i(T,"constructor",{value:S,configurable:!0}),i(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),r.isGeneratorFunction=function(p){var s=typeof p=="function"&&p.constructor;return!!s&&(s===w||(s.displayName||s.name)==="GeneratorFunction")},r.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,S):(p.__proto__=S,l(p,c,"GeneratorFunction")),p.prototype=Object.create(T),p},r.awrap=function(p){return{__await:p}},F(k.prototype),l(k.prototype,u,function(){return this}),r.AsyncIterator=k,r.async=function(p,s,f,v,g){g===void 0&&(g=Promise);var h=new k(d(p,s,f,v),g);return r.isGeneratorFunction(s)?h:h.next().then(function(O){return O.done?O.value:h.next()})},F(T),l(T,c,"Generator"),l(T,a,function(){return this}),l(T,"toString",function(){return"[object Generator]"}),r.keys=function(p){var s=Object(p),f=[];for(var v in s)f.push(v);return f.reverse(),n(function g(){for(;f.length;){var h=f.pop();if(h in s)return g.value=h,g.done=!1,g}return g.done=!0,g},"next")},r.values=W,V.prototype={constructor:V,reset:n(function(s){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach($),!s)for(var f in this)f.charAt(0)==="t"&&t.call(this,f)&&!isNaN(+f.slice(1))&&(this[f]=void 0)},"reset"),stop:n(function(){this.done=!0;var s=this.tryEntries[0].completion;if(s.type==="throw")throw s.arg;return this.rval},"stop"),dispatchException:n(function(s){if(this.done)throw s;var f=this;function v(C,N){return O.type="throw",O.arg=s,f.next=C,N&&(f.method="next",f.arg=void 0),!!N}n(v,"handle");for(var g=this.tryEntries.length-1;g>=0;--g){var h=this.tryEntries[g],O=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var E=t.call(h,"catchLoc"),A=t.call(h,"finallyLoc");if(E&&A){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(E){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!A)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},"dispatchException"),abrupt:n(function(s,f){for(var v=this.tryEntries.length-1;v>=0;--v){var g=this.tryEntries[v];if(g.tryLoc<=this.prev&&t.call(g,"finallyLoc")&&this.prev<g.finallyLoc){var h=g;break}}h&&(s==="break"||s==="continue")&&h.tryLoc<=f&&f<=h.finallyLoc&&(h=null);var O=h?h.completion:{};return O.type=s,O.arg=f,h?(this.method="next",this.next=h.finallyLoc,m):this.complete(O)},"abrupt"),complete:n(function(s,f){if(s.type==="throw")throw s.arg;return s.type==="break"||s.type==="continue"?this.next=s.arg:s.type==="return"?(this.rval=this.arg=s.arg,this.method="return",this.next="end"):s.type==="normal"&&f&&(this.next=f),m},"complete"),finish:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.finallyLoc===s)return this.complete(v.completion,v.afterLoc),$(v),m}},"finish"),catch:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.tryLoc===s){var g=v.completion;if(g.type==="throw"){var h=g.arg;$(v)}return h}}throw new Error("illegal catch attempt")},"_catch"),delegateYield:n(function(s,f,v){return this.delegate={iterator:W(s),resultName:f,nextLoc:v},this.method==="next"&&(this.arg=void 0),m},"delegateYield")},r}n(lo,"_regeneratorRuntime");function PZ(r,e,t,i,o,a,u){try{var c=r[a](u),l=c.value}catch(d){t(d);return}c.done?e(l):Promise.resolve(l).then(i,o)}n(PZ,"asyncGeneratorStep");function xS(r){return function(){var e=this,t=arguments;return new Promise(function(i,o){var a=r.apply(e,t);function u(l){PZ(a,i,o,u,c,"next",l)}n(u,"_next");function c(l){PZ(a,i,o,u,c,"throw",l)}n(c,"_throw"),u(void 0)})}}n(xS,"_asyncToGenerator");function hir(r){return gir(r)||mir(r)||yir(r)||vir()}n(hir,"_toConsumableArray");function vir(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n(vir,"_nonIterableSpread");function yir(r,e){if(r){if(typeof r=="string")return k2(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return k2(r,e)}}n(yir,"_unsupportedIterableToArray");function mir(r){if(typeof Symbol!="undefined"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}n(mir,"_iterableToArray");function gir(r){if(Array.isArray(r))return k2(r)}n(gir,"_arrayWithoutHoles");function k2(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=r[t];return i}n(k2,"_arrayLikeToArray");function bir(r){var e=r.method,t=e===void 0?"PUT":e,i=r.CanonicalUri,o=i===void 0?"/":i,a=r.CanonicalQueryString,u=a===void 0?"":a,c=r.SignedHeaders,l=r.HashedPayload,d=Object.keys(c).map(function(y){return y.toLowerCase()}).sort();return[t,o,u].concat(hir(d.map(function(y){return"".concat(y,":").concat(c[y])})),["",d.join(";"),l]).join("\n")}n(bir,"createCanonicalRequest");var N2=new TextEncoder,x2={name:"HMAC",hash:"SHA-256"};function wir(r){return j2.apply(this,arguments)}n(wir,"digest");function j2(){return j2=xS(lo().mark(n(function r(e){var t;return lo().wrap(n(function(o){for(;;)switch(o.prev=o.next){case 0:return t=globalThis.crypto.subtle,o.abrupt("return",t.digest(x2.hash,N2.encode(e)));case 2:case"end":return o.stop()}},"_callee$"),r)},"_callee"))),j2.apply(this,arguments)}n(j2,"_digest");function Sir(r){return F2.apply(this,arguments)}n(Sir,"generateHmacKey");function F2(){return F2=xS(lo().mark(n(function r(e){var t;return lo().wrap(n(function(o){for(;;)switch(o.prev=o.next){case 0:return t=globalThis.crypto.subtle,o.abrupt("return",t.importKey("raw",typeof e=="string"?N2.encode(e):e,x2,!1,["sign"]));case 2:case"end":return o.stop()}},"_callee2$"),r)},"_callee2"))),F2.apply(this,arguments)}n(F2,"_generateHmacKey");function _Z(r){for(var e=new Uint8Array(r),t="",i=0;i<e.length;i++)t+=e[i].toString(16).padStart(2,"0");return t}n(_Z,"arrayBufferToHexString");function uy(r,e){return C2.apply(this,arguments)}n(uy,"hash");function C2(){return C2=xS(lo().mark(n(function r(e,t){var i;return lo().wrap(n(function(a){for(;;)switch(a.prev=a.next){case 0:return i=globalThis.crypto.subtle,a.t0=i,a.t1=x2,a.next=5,Sir(e);case 5:return a.t2=a.sent,a.t3=N2.encode(t),a.abrupt("return",a.t0.sign.call(a.t0,a.t1,a.t2,a.t3));case 8:case"end":return a.stop()}},"_callee3$"),r)},"_callee3"))),C2.apply(this,arguments)}n(C2,"_hash");function D2(r){return L2.apply(this,arguments)}n(D2,"createSignedURL");function L2(){return L2=xS(lo().mark(n(function r(e){var t,i,o,a,u,c,l,d,y,m,b,w,S,P,R,I,T,F,k,U,D,H,$,V,W;return lo().wrap(n(function(p){for(;;)switch(p.prev=p.next){case 0:return t=e.accountKey,i=e.accountSecret,o=e.sessionToken,a=e.bucketName,u=e.Key,c=e.Region,l=e.expires,d=e.uploadId,y=e.partNumber,m="s3",b="".concat(a,".").concat(m,".").concat(c,".amazonaws.com"),w="/".concat(encodeURI(u)),S="UNSIGNED-PAYLOAD",P=new Date().toISOString().replace(/[-:]|\.\d+/g,""),R=P.slice(0,8),I="".concat(R,"/").concat(c,"/").concat(m,"/aws4_request"),T=new URL("https://".concat(b).concat(w)),T.searchParams.set("X-Amz-Algorithm","AWS4-HMAC-SHA256"),T.searchParams.set("X-Amz-Content-Sha256",S),T.searchParams.set("X-Amz-Credential","".concat(t,"/").concat(I)),T.searchParams.set("X-Amz-Date",P),T.searchParams.set("X-Amz-Expires",l),T.searchParams.set("X-Amz-Security-Token",o),T.searchParams.set("X-Amz-SignedHeaders","host"),y&&T.searchParams.set("partNumber",y),d&&T.searchParams.set("uploadId",d),T.searchParams.set("x-id",y&&d?"UploadPart":"PutObject"),F=bir({CanonicalUri:w,CanonicalQueryString:T.search.slice(1),SignedHeaders:{host:b},HashedPayload:S}),p.t0=_Z,p.next=23,wir(F);case 23:return p.t1=p.sent,k=(0,p.t0)(p.t1),U=["AWS4-HMAC-SHA256",P,I,k].join("\n"),p.next=28,uy("AWS4".concat(i),R);case 28:return D=p.sent,p.next=31,uy(D,c);case 31:return H=p.sent,p.next=34,uy(H,m);case 34:return $=p.sent,p.next=37,uy($,"aws4_request");case 37:return V=p.sent,p.t2=_Z,p.next=41,uy(V,U);case 41:return p.t3=p.sent,W=(0,p.t2)(p.t3),T.searchParams.set("X-Amz-Signature",W),p.abrupt("return",T);case 45:case"end":return p.stop()}},"_callee4$"),r)},"_callee4"))),L2.apply(this,arguments)}n(L2,"_createSignedURL");function Oir(r,e){return Tir(r)||Eir(r,e)||_ir(r,e)||Pir()}n(Oir,"_slicedToArray");function Pir(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n(Pir,"_nonIterableRest");function _ir(r,e){if(r){if(typeof r=="string")return EZ(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return EZ(r,e)}}n(_ir,"_unsupportedIterableToArray");function EZ(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=r[t];return i}n(EZ,"_arrayLikeToArray");function Eir(r,e){var t=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var i,o,a,u,c=[],l=!0,d=!1;try{if(a=(t=t.call(r)).next,e===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(i=a.call(t)).done)&&(c.push(i.value),c.length!==e);l=!0);}catch(y){d=!0,o=y}finally{try{if(!l&&t.return!=null&&(u=t.return(),Object(u)!==u))return}finally{if(d)throw o}}return c}}n(Eir,"_iterableToArrayLimit");function Tir(r){if(Array.isArray(r))return r}n(Tir,"_arrayWithHoles");function DS(){return typeof Reflect!="undefined"&&Reflect.get?DS=Reflect.get.bind():DS=n(function(e,t,i){var o=Rir(e,t);if(o){var a=Object.getOwnPropertyDescriptor(o,t);return a.get?a.get.call(arguments.length<3?e:i):a.value}},"_get"),DS.apply(this,arguments)}n(DS,"_get");function Rir(r,e){for(;!Object.prototype.hasOwnProperty.call(r,e)&&(r=Jf(r),r!==null););return r}n(Rir,"_superPropBase");function Air(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&z2(r,e)}n(Air,"_inherits");function z2(r,e){return z2=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),z2(r,e)}n(z2,"_setPrototypeOf");function Iir(r){var e=kir();return n(function(){var i=Jf(r),o;if(e){var a=Jf(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return qir(this,o)},"_createSuperInternal")}n(Iir,"_createSuper");function qir(r,e){if(e&&(vu(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ke(r)}n(qir,"_possibleConstructorReturn");function Ke(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(Ke,"_assertThisInitialized");function kir(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(kir,"_isNativeReflectConstruct");function Jf(r){return Jf=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),Jf(r)}n(Jf,"_getPrototypeOf");function TZ(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(TZ,"ownKeys");function hn(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?TZ(Object(t),!0).forEach(function(i){jir(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):TZ(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(hn,"_objectSpread");function jir(r,e,t){return e=jZ(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(jir,"_defineProperty");function vu(r){"@babel/helpers - typeof";return vu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vu(r)}n(vu,"_typeof");function ir(){"use strict";ir=n(function(){return r},"_regeneratorRuntime");var r={},e=Object.prototype,t=e.hasOwnProperty,i=Object.defineProperty||function(p,s,f){p[s]=f.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(p,s,f){return Object.defineProperty(p,s,{value:f,enumerable:!0,configurable:!0,writable:!0}),p[s]}n(l,"define");try{l({},"")}catch(p){l=n(function(f,v,g){return f[v]=g},"define")}function d(p,s,f,v){var g=s&&s.prototype instanceof b?s:b,h=Object.create(g.prototype),O=new V(v||[]);return i(h,"_invoke",{value:U(p,f,O)}),h}n(d,"wrap");function y(p,s,f){try{return{type:"normal",arg:p.call(s,f)}}catch(v){return{type:"throw",arg:v}}}n(y,"tryCatch"),r.wrap=d;var m={};function b(){}n(b,"Generator");function w(){}n(w,"GeneratorFunction");function S(){}n(S,"GeneratorFunctionPrototype");var P={};l(P,a,function(){return this});var R=Object.getPrototypeOf,I=R&&R(R(W([])));I&&I!==e&&t.call(I,a)&&(P=I);var T=S.prototype=b.prototype=Object.create(P);function F(p){["next","throw","return"].forEach(function(s){l(p,s,function(f){return this._invoke(s,f)})})}n(F,"defineIteratorMethods");function k(p,s){function f(g,h,O,E){var A=y(p[g],p,h);if(A.type!=="throw"){var C=A.arg,N=C.value;return N&&vu(N)=="object"&&t.call(N,"__await")?s.resolve(N.__await).then(function(M){f("next",M,O,E)},function(M){f("throw",M,O,E)}):s.resolve(N).then(function(M){C.value=M,O(C)},function(M){return f("throw",M,O,E)})}E(A.arg)}n(f,"invoke");var v;i(this,"_invoke",{value:n(function(h,O){function E(){return new s(function(A,C){f(h,O,A,C)})}return n(E,"callInvokeWithMethodAndArg"),v=v?v.then(E,E):E()},"value")})}n(k,"AsyncIterator");function U(p,s,f){var v="suspendedStart";return function(g,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(g==="throw")throw h;return Y()}for(f.method=g,f.arg=h;;){var O=f.delegate;if(O){var E=D(O,f);if(E){if(E===m)continue;return E}}if(f.method==="next")f.sent=f._sent=f.arg;else if(f.method==="throw"){if(v==="suspendedStart")throw v="completed",f.arg;f.dispatchException(f.arg)}else f.method==="return"&&f.abrupt("return",f.arg);v="executing";var A=y(p,s,f);if(A.type==="normal"){if(v=f.done?"completed":"suspendedYield",A.arg===m)continue;return{value:A.arg,done:f.done}}A.type==="throw"&&(v="completed",f.method="throw",f.arg=A.arg)}}}n(U,"makeInvokeMethod");function D(p,s){var f=s.method,v=p.iterator[f];if(v===void 0)return s.delegate=null,f==="throw"&&p.iterator.return&&(s.method="return",s.arg=void 0,D(p,s),s.method==="throw")||f!=="return"&&(s.method="throw",s.arg=new TypeError("The iterator does not provide a '"+f+"' method")),m;var g=y(v,p.iterator,s.arg);if(g.type==="throw")return s.method="throw",s.arg=g.arg,s.delegate=null,m;var h=g.arg;return h?h.done?(s[p.resultName]=h.value,s.next=p.nextLoc,s.method!=="return"&&(s.method="next",s.arg=void 0),s.delegate=null,m):h:(s.method="throw",s.arg=new TypeError("iterator result is not an object"),s.delegate=null,m)}n(D,"maybeInvokeDelegate");function H(p){var s={tryLoc:p[0]};1 in p&&(s.catchLoc=p[1]),2 in p&&(s.finallyLoc=p[2],s.afterLoc=p[3]),this.tryEntries.push(s)}n(H,"pushTryEntry");function $(p){var s=p.completion||{};s.type="normal",delete s.arg,p.completion=s}n($,"resetTryEntry");function V(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(H,this),this.reset(!0)}n(V,"Context");function W(p){if(p){var s=p[a];if(s)return s.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var f=-1,v=n(function g(){for(;++f<p.length;)if(t.call(p,f))return g.value=p[f],g.done=!1,g;return g.value=void 0,g.done=!0,g},"next");return v.next=v}}return{next:Y}}n(W,"values");function Y(){return{value:void 0,done:!0}}return n(Y,"doneResult"),w.prototype=S,i(T,"constructor",{value:S,configurable:!0}),i(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),r.isGeneratorFunction=function(p){var s=typeof p=="function"&&p.constructor;return!!s&&(s===w||(s.displayName||s.name)==="GeneratorFunction")},r.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,S):(p.__proto__=S,l(p,c,"GeneratorFunction")),p.prototype=Object.create(T),p},r.awrap=function(p){return{__await:p}},F(k.prototype),l(k.prototype,u,function(){return this}),r.AsyncIterator=k,r.async=function(p,s,f,v,g){g===void 0&&(g=Promise);var h=new k(d(p,s,f,v),g);return r.isGeneratorFunction(s)?h:h.next().then(function(O){return O.done?O.value:h.next()})},F(T),l(T,c,"Generator"),l(T,a,function(){return this}),l(T,"toString",function(){return"[object Generator]"}),r.keys=function(p){var s=Object(p),f=[];for(var v in s)f.push(v);return f.reverse(),n(function g(){for(;f.length;){var h=f.pop();if(h in s)return g.value=h,g.done=!1,g}return g.done=!0,g},"next")},r.values=W,V.prototype={constructor:V,reset:n(function(s){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach($),!s)for(var f in this)f.charAt(0)==="t"&&t.call(this,f)&&!isNaN(+f.slice(1))&&(this[f]=void 0)},"reset"),stop:n(function(){this.done=!0;var s=this.tryEntries[0].completion;if(s.type==="throw")throw s.arg;return this.rval},"stop"),dispatchException:n(function(s){if(this.done)throw s;var f=this;function v(C,N){return O.type="throw",O.arg=s,f.next=C,N&&(f.method="next",f.arg=void 0),!!N}n(v,"handle");for(var g=this.tryEntries.length-1;g>=0;--g){var h=this.tryEntries[g],O=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var E=t.call(h,"catchLoc"),A=t.call(h,"finallyLoc");if(E&&A){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(E){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!A)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},"dispatchException"),abrupt:n(function(s,f){for(var v=this.tryEntries.length-1;v>=0;--v){var g=this.tryEntries[v];if(g.tryLoc<=this.prev&&t.call(g,"finallyLoc")&&this.prev<g.finallyLoc){var h=g;break}}h&&(s==="break"||s==="continue")&&h.tryLoc<=f&&f<=h.finallyLoc&&(h=null);var O=h?h.completion:{};return O.type=s,O.arg=f,h?(this.method="next",this.next=h.finallyLoc,m):this.complete(O)},"abrupt"),complete:n(function(s,f){if(s.type==="throw")throw s.arg;return s.type==="break"||s.type==="continue"?this.next=s.arg:s.type==="return"?(this.rval=this.arg=s.arg,this.method="return",this.next="end"):s.type==="normal"&&f&&(this.next=f),m},"complete"),finish:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.finallyLoc===s)return this.complete(v.completion,v.afterLoc),$(v),m}},"finish"),catch:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.tryLoc===s){var g=v.completion;if(g.type==="throw"){var h=g.arg;$(v)}return h}}throw new Error("illegal catch attempt")},"_catch"),delegateYield:n(function(s,f,v){return this.delegate={iterator:W(s),resultName:f,nextLoc:v},this.method==="next"&&(this.arg=void 0),m},"delegateYield")},r}n(ir,"_regeneratorRuntime");function RZ(r,e,t,i,o,a,u){try{var c=r[a](u),l=c.value}catch(d){t(d);return}c.done?e(l):Promise.resolve(l).then(i,o)}n(RZ,"asyncGeneratorStep");function Dn(r){return function(){var e=this,t=arguments;return new Promise(function(i,o){var a=r.apply(e,t);function u(l){RZ(a,i,o,u,c,"next",l)}n(u,"_next");function c(l){RZ(a,i,o,u,c,"throw",l)}n(c,"_throw"),u(void 0)})}}n(Dn,"_asyncToGenerator");function qZ(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(qZ,"_classCallCheck");function AZ(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,jZ(i.key),i)}}n(AZ,"_defineProperties");function kZ(r,e,t){return e&&AZ(r.prototype,e),t&&AZ(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(kZ,"_createClass");function jZ(r){var e=Fir(r,"string");return vu(e)==="symbol"?e:String(e)}n(jZ,"_toPropertyKey");function Fir(r,e){if(vu(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(vu(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(Fir,"_toPrimitive");var FZ;function ae(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}n(ae,"_classPrivateFieldLooseBase");var Cir=0;function lr(r){return"__private_"+Cir+++"_"+r}n(lr,"_classPrivateFieldLooseKey");var Lir={version:"3.10.0"};function Qf(r){if(r&&r.error){var e=new Error(r.message);throw Object.assign(e,r.error),e}return r}n(Qf,"assertServerError");function Nir(r){var e=new URL(r);return e.search="",e.hash="",e.href}n(Nir,"removeMetadataFromURL");function CZ(r){var e=r.Expiration;if(e){var t=Math.floor((new Date(e)-Date.now())/1e3);if(t>9)return t}}n(CZ,"getExpiry");function IZ(r){var e=r.meta,t=r.allowedMetaFields,i=r.querify,o=i===void 0?!1:i,a=t!=null?t:Object.keys(e);return e?Object.fromEntries(a.filter(function(u){return e[u]!=null}).map(function(u){var c=o?"metadata[".concat(u,"]"):u,l=String(e[u]);return[c,l]})):{}}n(IZ,"getAllowedMetadata");function Lt(r){if(r!=null&&r.aborted)throw T2("The operation was aborted",{cause:r.reason})}n(Lt,"throwIfAborted");var sy=lr("abortMultipartUpload"),St=lr("cache"),ly=lr("createMultipartUpload"),cy=lr("fetchSignature"),vy=lr("getUploadParameters"),fy=lr("listParts"),rl=lr("previousRetryDelay"),tl=lr("requests"),Qs=lr("retryDelays"),Js=lr("sendCompletionRequest"),Zs=lr("setS3MultipartState"),nl=lr("uploadPartBytes"),Pt=lr("getFile"),M2=lr("shouldRetry"),py=lr("nonMultipartUpload"),xir=function(){function r(e,t,i,o){qZ(this,r),Object.defineProperty(this,py,{value:Mir}),Object.defineProperty(this,M2,{value:Dir}),Object.defineProperty(this,sy,{writable:!0,value:void 0}),Object.defineProperty(this,St,{writable:!0,value:new WeakMap}),Object.defineProperty(this,ly,{writable:!0,value:void 0}),Object.defineProperty(this,cy,{writable:!0,value:void 0}),Object.defineProperty(this,vy,{writable:!0,value:void 0}),Object.defineProperty(this,fy,{writable:!0,value:void 0}),Object.defineProperty(this,rl,{writable:!0,value:void 0}),Object.defineProperty(this,tl,{writable:!0,value:void 0}),Object.defineProperty(this,Qs,{writable:!0,value:void 0}),Object.defineProperty(this,Js,{writable:!0,value:void 0}),Object.defineProperty(this,Zs,{writable:!0,value:void 0}),Object.defineProperty(this,nl,{writable:!0,value:void 0}),Object.defineProperty(this,Pt,{writable:!0,value:void 0}),ae(this,tl)[tl]=e,ae(this,Zs)[Zs]=i,ae(this,Pt)[Pt]=o,this.setOptions(t)}return n(r,"HTTPCommunicationQueue"),kZ(r,[{key:"setOptions",value:n(function(t){var i=ae(this,tl)[tl];if("abortMultipartUpload"in t&&(ae(this,sy)[sy]=i.wrapPromiseFunction(t.abortMultipartUpload,{priority:1})),"createMultipartUpload"in t&&(ae(this,ly)[ly]=i.wrapPromiseFunction(t.createMultipartUpload,{priority:-1})),"signPart"in t&&(ae(this,cy)[cy]=i.wrapPromiseFunction(t.signPart)),"listParts"in t&&(ae(this,fy)[fy]=i.wrapPromiseFunction(t.listParts)),"completeMultipartUpload"in t&&(ae(this,Js)[Js]=i.wrapPromiseFunction(t.completeMultipartUpload,{priority:1})),"retryDelays"in t){var o;ae(this,Qs)[Qs]=(o=t.retryDelays)!=null?o:[]}"uploadPartBytes"in t&&(ae(this,nl)[nl]=i.wrapPromiseFunction(t.uploadPartBytes,{priority:1/0})),"getUploadParameters"in t&&(ae(this,vy)[vy]=i.wrapPromiseFunction(t.getUploadParameters))},"setOptions")},{key:"getUploadId",value:function(){var e=Dn(ir().mark(n(function i(o,a){var u=this,c,l,d;return ir().wrap(n(function(m){for(;;)switch(m.prev=m.next){case 0:if((c=ae(this,St)[St].get(o.data))==null){m.next=11;break}return m.prev=1,m.next=4,c;case 4:return m.abrupt("return",m.sent);case 7:m.prev=7,m.t0=m.catch(1);case 9:m.next=0;break;case 11:return l=ae(this,ly)[ly](ae(this,Pt)[Pt](o),a),d=n(function(){l.abort(a.reason),ae(u,St)[St].delete(o.data)},"abortPromise"),a.addEventListener("abort",d,{once:!0}),ae(this,St)[St].set(o.data,l),l.then(function(){var b=Dn(ir().mark(n(function w(S){return ir().wrap(n(function(R){for(;;)switch(R.prev=R.next){case 0:a.removeEventListener("abort",d),ae(u,Zs)[Zs](o,S),ae(u,St)[St].set(o.data,S);case 3:case"end":return R.stop()}},"_callee$"),w)},"_callee")));return function(w){return b.apply(this,arguments)}}(),function(){a.removeEventListener("abort",d),ae(u,St)[St].delete(o.data)}),m.abrupt("return",l);case 17:case"end":return m.stop()}},"_callee2$"),i,this,[[1,7]])},"_callee2")));function t(i,o){return e.apply(this,arguments)}return n(t,"getUploadId"),t}()},{key:"abortFileUpload",value:function(){var e=Dn(ir().mark(n(function i(o){var a,u;return ir().wrap(n(function(l){for(;;)switch(l.prev=l.next){case 0:if(a=ae(this,St)[St].get(o.data),a!=null){l.next=3;break}return l.abrupt("return");case 3:return ae(this,St)[St].delete(o.data),ae(this,Zs)[Zs](o,Object.create(null)),l.prev=5,l.next=8,a;case 8:u=l.sent,l.next=14;break;case 11:return l.prev=11,l.t0=l.catch(5),l.abrupt("return");case 14:return l.next=16,ae(this,sy)[sy](ae(this,Pt)[Pt](o),u);case 16:case"end":return l.stop()}},"_callee3$"),i,this,[[5,11]])},"_callee3")));function t(i){return e.apply(this,arguments)}return n(t,"abortFileUpload"),t}()},{key:"uploadFile",value:function(){var e=Dn(ir().mark(n(function i(o,a,u){var c=this,l,d,y,m;return ir().wrap(n(function(w){for(;;)switch(w.prev=w.next){case 0:if(Lt(u),!(a.length===1&&!a[0].shouldUseMultipart)){w.next=3;break}return w.abrupt("return",ae(this,py)[py](o,a[0],u));case 3:return w.next=5,this.getUploadId(o,u);case 5:return l=w.sent,d=l.uploadId,y=l.key,Lt(u),w.prev=9,w.next=12,Promise.all(a.map(function(S,P){return c.uploadChunk(o,P+1,S,u)}));case 12:return m=w.sent,Lt(u),w.next=16,ae(this,Js)[Js](ae(this,Pt)[Pt](o),{key:y,uploadId:d,parts:m,signal:u},u).abortOn(u);case 16:return w.abrupt("return",w.sent);case 19:throw w.prev=19,w.t0=w.catch(9),(w.t0==null?void 0:w.t0.cause)!==ny&&(w.t0==null?void 0:w.t0.name)!=="AbortError"&&this.abortFileUpload(o),w.t0;case 23:case"end":return w.stop()}},"_callee4$"),i,this,[[9,19]])},"_callee4")));function t(i,o,a){return e.apply(this,arguments)}return n(t,"uploadFile"),t}()},{key:"restoreUploadFile",value:n(function(t,i){ae(this,St)[St].set(t.data,i)},"restoreUploadFile")},{key:"resumeUploadFile",value:function(){var e=Dn(ir().mark(n(function i(o,a,u){var c=this,l,d,y,m,b;return ir().wrap(n(function(S){for(;;)switch(S.prev=S.next){case 0:if(Lt(u),!(a.length===1&&a[0]!=null&&!a[0].shouldUseMultipart)){S.next=3;break}return S.abrupt("return",ae(this,py)[py](o,a[0],u));case 3:return S.next=5,this.getUploadId(o,u);case 5:return l=S.sent,d=l.uploadId,y=l.key,Lt(u),S.next=11,ae(this,fy)[fy](ae(this,Pt)[Pt](o),{uploadId:d,key:y,signal:u},u).abortOn(u);case 11:return m=S.sent,Lt(u),S.next=15,Promise.all(a.map(function(P,R){var I=R+1,T=m.find(function(F){var k=F.PartNumber;return k===I});return T==null?c.uploadChunk(o,I,P,u):(P==null||P.setAsUploaded==null||P.setAsUploaded(),{PartNumber:I,ETag:T.ETag})}));case 15:return b=S.sent,Lt(u),S.abrupt("return",ae(this,Js)[Js](ae(this,Pt)[Pt](o),{key:y,uploadId:d,parts:b,signal:u},u).abortOn(u));case 18:case"end":return S.stop()}},"_callee5$"),i,this)},"_callee5")));function t(i,o,a){return e.apply(this,arguments)}return n(t,"resumeUploadFile"),t}()},{key:"uploadChunk",value:function(){var e=Dn(ir().mark(n(function i(o,a,u,c){var l=this,d,y,m,b,w,S,P,R;return ir().wrap(n(function(T){for(;;)switch(T.prev=T.next){case 0:return Lt(c),T.next=3,this.getUploadId(o,c);case 3:d=T.sent,y=d.uploadId,m=d.key,b=ae(this,Qs)[Qs].values(),w=ae(this,Qs)[Qs].values(),S=n(function(){var k=b.next();return k==null||k.done?null:k.value},"shouldRetrySignature"),P=ir().mark(n(function F(){var k,U,D,H,$;return ir().wrap(n(function(W){for(;;)switch(W.prev=W.next){case 0:return Lt(c),k=u.getData(),U=u.onProgress,D=u.onComplete,W.prev=3,W.next=6,ae(l,cy)[cy](ae(l,Pt)[Pt](o),{uploadId:y,key:m,partNumber:a,body:k,signal:c}).abortOn(c);case 6:H=W.sent,W.next=17;break;case 9:if(W.prev=9,W.t0=W.catch(3),$=S(),!($==null||c.aborted)){W.next=14;break}throw W.t0;case 14:return W.next=16,new Promise(function(Y){return setTimeout(Y,$)});case 16:return W.abrupt("return","continue");case 17:return Lt(c),W.prev=18,W.t1=hn,W.t2={PartNumber:a},W.next=23,ae(l,nl)[nl]({signature:H,body:k,size:k.size,onProgress:U,onComplete:D,signal:c}).abortOn(c);case 23:return W.t3=W.sent,W.t4=(0,W.t1)(W.t2,W.t3),W.abrupt("return",{v:W.t4});case 28:return W.prev=28,W.t5=W.catch(18),W.next=32,ae(l,M2)[M2](W.t5,w);case 32:if(W.sent){W.next=34;break}throw W.t5;case 34:case"end":return W.stop()}},"_loop$"),F,null,[[3,9],[18,28]])},"_loop"));case 10:return T.delegateYield(P(),"t0",11);case 11:if(R=T.t0,R!=="continue"){T.next=14;break}return T.abrupt("continue",16);case 14:if(vu(R)!=="object"){T.next=16;break}return T.abrupt("return",R.v);case 16:T.next=10;break;case 18:case"end":return T.stop()}},"_callee6$"),i,this)},"_callee6")));function t(i,o,a,u){return e.apply(this,arguments)}return n(t,"uploadChunk"),t}()}]),r}();function Dir(r,e){return H2.apply(this,arguments)}n(Dir,"_shouldRetry2");function H2(){return H2=Dn(ir().mark(n(function r(e,t){var i=this,o,a,u,c,l,d;return ir().wrap(n(function(m){for(;;)switch(m.prev=m.next){case 0:if(a=ae(this,tl)[tl],u=e==null||(o=e.source)==null?void 0:o.status,u!=null){m.next=4;break}return m.abrupt("return",!1);case 4:if(!(u===403&&e.message==="Request has expired")){m.next=16;break}if(a.isPaused){m.next=14;break}if(!(a.limit===1||ae(this,rl)[rl]==null)){m.next=11;break}if(c=t.next(),!(c==null||c.done)){m.next=10;break}return m.abrupt("return",!1);case 10:ae(this,rl)[rl]=c.value;case 11:return a.rateLimit(0),m.next=14,new Promise(function(b){return setTimeout(b,ae(i,rl)[rl])});case 14:m.next=37;break;case 16:if(u!==429){m.next=24;break}if(a.isPaused){m.next=22;break}if(l=t.next(),!(l==null||l.done)){m.next=21;break}return m.abrupt("return",!1);case 21:a.rateLimit(l.value);case 22:m.next=37;break;case 24:if(!(u>400&&u<500&&u!==409)){m.next=28;break}return m.abrupt("return",!1);case 28:if(!(typeof navigator!="undefined"&&navigator.onLine===!1)){m.next=32;break}a.isPaused||(a.pause(),window.addEventListener("online",function(){a.resume()},{once:!0})),m.next=37;break;case 32:if(d=t.next(),!(d==null||d.done)){m.next=35;break}return m.abrupt("return",!1);case 35:return m.next=37,new Promise(function(b){return setTimeout(b,d.value)});case 37:return m.abrupt("return",!0);case 38:case"end":return m.stop()}},"_callee11$"),r,this)},"_callee11"))),H2.apply(this,arguments)}n(H2,"_shouldRetry3");function Mir(r,e,t){return W2.apply(this,arguments)}n(Mir,"_nonMultipartUpload2");function W2(){return W2=Dn(ir().mark(n(function r(e,t,i){var o,a,u,c,l,d,y,m,b,w,S,P;return ir().wrap(n(function(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,ae(this,vy)[vy](ae(this,Pt)[Pt](e),{signal:i}).abortOn(i);case 2:return o=I.sent,a=o.method,u=a===void 0?"POST":a,c=o.url,l=o.fields,d=o.headers,m=t.getData(),u.toUpperCase()==="POST"?(b=new FormData,Object.entries(l).forEach(function(T){var F=Oir(T,2),k=F[0],U=F[1];return b.set(k,U)}),b.set("file",m),y=b):y=m,w=t.onProgress,S=t.onComplete,I.next=13,ae(this,nl)[nl]({signature:{url:c,headers:d,method:u},body:y,size:m.size,onProgress:w,onComplete:S,signal:i}).abortOn(i);case 13:return P=I.sent,I.abrupt("return","location"in P?P:hn({location:Nir(c)},P));case 15:case"end":return I.stop()}},"_callee12$"),r,this)},"_callee12"))),W2.apply(this,arguments)}n(W2,"_nonMultipartUpload3");var il=lr("companionCommunicationQueue"),xr=lr("client"),Ot=lr("cachedTemporaryCredentials"),U2=lr("getTemporarySecurityCredentials"),B2=lr("setS3MultipartState"),al=lr("getFile"),$2=lr("uploadLocalFile"),G2=lr("getCompanionClientArgs"),dy=lr("upload"),el=lr("setCompanionHeaders"),co=lr("setResumableUploadsCapability"),hy=lr("resetResumableCapability");FZ=Symbol.for("uppy test: getClient");var yy=function(r,e){Air(i,r);var t=Iir(i);function i(o,a){var u;qZ(this,i);var c;u=t.call(this,o,a),Object.defineProperty(Ke(u),G2,{value:$ir}),Object.defineProperty(Ke(u),$2,{value:Bir}),Object.defineProperty(Ke(u),U2,{value:Uir}),Object.defineProperty(Ke(u),il,{writable:!0,value:void 0}),Object.defineProperty(Ke(u),xr,{writable:!0,value:void 0}),Object.defineProperty(Ke(u),Ot,{writable:!0,value:void 0}),Object.defineProperty(Ke(u),B2,{writable:!0,value:n(function(y,m){var b=m.key,w=m.uploadId,S=u.uppy.getFile(y.id);S!=null&&u.uppy.setFileState(y.id,{s3Multipart:hn(hn({},S.s3Multipart),{},{key:b,uploadId:w})})},"value")}),Object.defineProperty(Ke(u),al,{writable:!0,value:n(function(y){return u.uppy.getFile(y.id)||y},"value")}),Object.defineProperty(Ke(u),dy,{writable:!0,value:function(){var d=Dn(ir().mark(n(function m(b){var w,S,P,R,I;return ir().wrap(n(function(F){for(;;)switch(F.prev=F.next){case 0:if(b.length!==0){F.next=2;break}return F.abrupt("return",void 0);case 2:return w=u.uppy.getFilesByIds(b),S=du(w),P=hu(S),u.uppy.emit("upload-start",P),R=S.map(function(k){if(k.isRemote){var U=n(function(){return u.requests},"getQueue");ae(Ke(u),co)[co](!1);var D=new AbortController,H=n(function(W){W.id===k.id&&D.abort()},"removedHandler");u.uppy.on("file-removed",H);var $=u.uppy.getRequestClientForFile(k).uploadRemoteFile(k,ae(Ke(u),G2)[G2](k),{signal:D.signal,getQueue:U});return u.requests.wrapSyncFunction(function(){u.uppy.off("file-removed",H)},{priority:-1})(),$}return ae(Ke(u),$2)[$2](k)}),F.next=9,Promise.all(R);case 9:return I=F.sent,ae(Ke(u),co)[co](!0),F.abrupt("return",I);case 12:case"end":return F.stop()}},"_callee7$"),m)},"_callee7")));function y(m){return d.apply(this,arguments)}return n(y,"value"),y}()}),Object.defineProperty(Ke(u),el,{writable:!0,value:n(function(){ae(Ke(u),xr)[xr].setCompanionHeaders(u.opts.companionHeaders)},"value")}),Object.defineProperty(Ke(u),co,{writable:!0,value:n(function(y){var m=u.uppy.getState(),b=m.capabilities;u.uppy.setState({capabilities:hn(hn({},b),{},{resumableUploads:y})})},"value")}),Object.defineProperty(Ke(u),hy,{writable:!0,value:n(function(){ae(Ke(u),co)[co](!0)},"value")}),u.type="uploader",u.id=u.opts.id||"AwsS3Multipart",u.title="AWS S3 Multipart",ae(Ke(u),xr)[xr]=new Rn(o,a);var l={allowedMetaFields:null,limit:6,shouldUseMultipart:n(function(y){return y.size!==0},"shouldUseMultipart"),retryDelays:[0,1e3,3e3,5e3],createMultipartUpload:u.createMultipartUpload.bind(Ke(u)),listParts:u.listParts.bind(Ke(u)),abortMultipartUpload:u.abortMultipartUpload.bind(Ke(u)),completeMultipartUpload:u.completeMultipartUpload.bind(Ke(u)),getTemporarySecurityCredentials:!1,signPart:a!=null&&a.getTemporarySecurityCredentials?u.createSignedURL.bind(Ke(u)):u.signPart.bind(Ke(u)),uploadPartBytes:i.uploadPartBytes,getUploadParameters:a!=null&&a.getTemporarySecurityCredentials?u.createSignedURL.bind(Ke(u)):u.getUploadParameters.bind(Ke(u)),companionHeaders:{}};return u.opts=hn(hn({},l),a),(a==null?void 0:a.prepareUploadParts)!=null&&a.signPart==null&&(u.opts.signPart=function(){var d=Dn(ir().mark(n(function y(m,b){var w,S,P,R,I,T,F,k;return ir().wrap(n(function(D){for(;;)switch(D.prev=D.next){case 0:return w=b.uploadId,S=b.key,P=b.partNumber,R=b.body,I=b.signal,D.next=3,a.prepareUploadParts(m,{uploadId:w,key:S,parts:[{number:P,chunk:R}],signal:I});case 3:return T=D.sent,F=T.presignedUrls,k=T.headers,D.abrupt("return",{url:F==null?void 0:F[P],headers:k==null?void 0:k[P]});case 7:case"end":return D.stop()}},"_callee8$"),y)},"_callee8")));return function(y,m){return d.apply(this,arguments)}}()),u.requests=(c=u.opts.rateLimitedQueue)!=null?c:new oi(u.opts.limit),ae(Ke(u),il)[il]=new xir(u.requests,u.opts,ae(Ke(u),B2)[B2],ae(Ke(u),al)[al]),u.uploaders=Object.create(null),u.uploaderEvents=Object.create(null),u.uploaderSockets=Object.create(null),u}return n(i,"AwsS3Multipart"),kZ(i,[{key:e,value:n(function(){return ae(this,xr)[xr]},"value")},{key:"setOptions",value:n(function(a){ae(this,il)[il].setOptions(a),DS(Jf(i.prototype),"setOptions",this).call(this,a),ae(this,el)[el]()},"setOptions")},{key:"resetUploaderReferences",value:n(function(a,u){u===void 0&&(u={}),this.uploaders[a]&&(this.uploaders[a].abort({really:u.abort||!1}),this.uploaders[a]=null),this.uploaderEvents[a]&&(this.uploaderEvents[a].remove(),this.uploaderEvents[a]=null),this.uploaderSockets[a]&&(this.uploaderSockets[a].close(),this.uploaderSockets[a]=null)},"resetUploaderReferences")},{key:"assertHost",value:n(function(a){if(!this.opts.companionUrl)throw new Error("Expected a `companionUrl` option containing a Companion address, or if you are not using Companion, a custom `".concat(a,"` implementation."))},"assertHost")},{key:"createMultipartUpload",value:n(function(a,u){this.assertHost("createMultipartUpload"),Lt(u);var c=IZ({meta:a.meta,allowedMetaFields:this.opts.allowedMetaFields});return ae(this,xr)[xr].post("s3/multipart",{filename:a.name,type:a.type,metadata:c},{signal:u}).then(Qf)},"createMultipartUpload")},{key:"listParts",value:n(function(a,u,c){var l=u.key,d=u.uploadId;this.assertHost("listParts"),Lt(c);var y=encodeURIComponent(l);return ae(this,xr)[xr].get("s3/multipart/".concat(d,"?key=").concat(y),{signal:c}).then(Qf)},"listParts")},{key:"completeMultipartUpload",value:n(function(a,u,c){var l=u.key,d=u.uploadId,y=u.parts;this.assertHost("completeMultipartUpload"),Lt(c);var m=encodeURIComponent(l),b=encodeURIComponent(d);return ae(this,xr)[xr].post("s3/multipart/".concat(b,"/complete?key=").concat(m),{parts:y},{signal:c}).then(Qf)},"completeMultipartUpload")},{key:"createSignedURL",value:function(){var o=Dn(ir().mark(n(function u(c,l){var d,y,m,b,w,S;return ir().wrap(n(function(R){for(;;)switch(R.prev=R.next){case 0:return R.next=2,ae(this,U2)[U2](l);case 2:return d=R.sent,y=CZ(d.credentials)||604800,m=l.uploadId,b=l.key,w=l.partNumber,S=l.signal,R.t0=y,R.t1={},R.t2="",R.next=10,D2({accountKey:d.credentials.AccessKeyId,accountSecret:d.credentials.SecretAccessKey,sessionToken:d.credentials.SessionToken,expires:y,bucketName:d.bucket,Region:d.region,Key:b!=null?b:"".concat(crypto.randomUUID(),"-").concat(c.name),uploadId:m,partNumber:w,signal:S});case 10:return R.t3=R.sent,R.t4=R.t2.concat.call(R.t2,R.t3),R.t5={"Content-Type":c.type},R.abrupt("return",{method:"PUT",expires:R.t0,fields:R.t1,url:R.t4,headers:R.t5});case 14:case"end":return R.stop()}},"_callee9$"),u,this)},"_callee9")));function a(u,c){return o.apply(this,arguments)}return n(a,"createSignedURL"),a}()},{key:"signPart",value:n(function(a,u){var c=u.uploadId,l=u.key,d=u.partNumber,y=u.signal;if(this.assertHost("signPart"),Lt(y),c==null||l==null||d==null)throw new Error("Cannot sign without a key, an uploadId, and a partNumber");var m=encodeURIComponent(l);return ae(this,xr)[xr].get("s3/multipart/".concat(c,"/").concat(d,"?key=").concat(m),{signal:y}).then(Qf)},"signPart")},{key:"abortMultipartUpload",value:n(function(a,u,c){var l=u.key,d=u.uploadId;this.assertHost("abortMultipartUpload");var y=encodeURIComponent(l),m=encodeURIComponent(d);return ae(this,xr)[xr].delete("s3/multipart/".concat(m,"?key=").concat(y),void 0,{signal:c}).then(Qf)},"abortMultipartUpload")},{key:"getUploadParameters",value:n(function(a,u){var c=a.meta,l=c.type,d=c.name,y=IZ({meta:c,allowedMetaFields:this.opts.allowedMetaFields,querify:!0}),m=new URLSearchParams(hn({filename:d,type:l},y));return ae(this,xr)[xr].get("s3/params?".concat(m),u)},"getUploadParameters")},{key:"install",value:n(function(){ae(this,co)[co](!0),this.uppy.addPreProcessor(ae(this,el)[el]),this.uppy.addUploader(ae(this,dy)[dy]),this.uppy.on("cancel-all",ae(this,hy)[hy])},"install")},{key:"uninstall",value:n(function(){this.uppy.removePreProcessor(ae(this,el)[el]),this.uppy.removeUploader(ae(this,dy)[dy]),this.uppy.off("cancel-all",ae(this,hy)[hy])},"uninstall")}],[{key:"uploadPartBytes",value:function(){var o=Dn(ir().mark(n(function u(c){var l,d,y,m,b,w,S,P,R,I,T,F;return ir().wrap(n(function(U){for(;;)switch(U.prev=U.next){case 0:if(l=c.signature,d=l.url,y=l.expires,m=l.headers,b=l.method,w=b===void 0?"PUT":b,S=c.body,P=c.size,R=P===void 0?S.size:P,I=c.onProgress,T=c.onComplete,F=c.signal,Lt(F),d!=null){U.next=4;break}throw new Error("Cannot upload to an undefined URL");case 4:return U.abrupt("return",new Promise(function(D,H){var $=new XMLHttpRequest;$.open(w,d,!0),m&&Object.keys(m).forEach(function(Y){$.setRequestHeader(Y,m[Y])}),$.responseType="text",typeof y=="number"&&($.timeout=y*1e3);function V(){$.abort()}n(V,"onabort");function W(){F.removeEventListener("abort",V)}n(W,"cleanup"),F.addEventListener("abort",V),$.upload.addEventListener("progress",function(Y){I(Y)}),$.addEventListener("abort",function(){W(),H(T2())}),$.addEventListener("timeout",function(){W();var Y=new Error("Request has expired");Y.source={status:403},H(Y)}),$.addEventListener("load",function(Y){if(W(),Y.target.status===403&&Y.target.responseText.includes("<Message>Request has expired</Message>")){var p=new Error("Request has expired");p.source=Y.target,H(p);return}if(Y.target.status<200||Y.target.status>=300){var s=new Error("Non 2xx");s.source=Y.target,H(s);return}I==null||I({loaded:R,lengthComputable:!0});var f=Y.target.getResponseHeader("ETag"),v=Y.target.getResponseHeader("Location");if(w.toUpperCase()==="POST"&&v===null&&console.warn("AwsS3/Multipart: Could not read the Location header. This likely means CORS is not configured correctly on the S3 Bucket. See https://uppy.io/docs/aws-s3-multipart#S3-Bucket-Configuration for instructions."),f===null){H(new Error("AwsS3/Multipart: Could not read the ETag header. This likely means CORS is not configured correctly on the S3 Bucket. See https://uppy.io/docs/aws-s3-multipart#S3-Bucket-Configuration for instructions."));return}T==null||T(f),D(hn({ETag:f},v?{location:v}:void 0))}),$.addEventListener("error",function(Y){W();var p=new Error("Unknown error");p.source=Y.target,H(p)}),$.send(S)}));case 5:case"end":return U.stop()}},"_callee10$"),u)},"_callee10")));function a(u){return o.apply(this,arguments)}return n(a,"uploadPartBytes"),a}()}]),i}(fr,FZ);function Uir(r){return V2.apply(this,arguments)}n(Uir,"_getTemporarySecurityCredentials2");function V2(){return V2=Dn(ir().mark(n(function r(e){var t=this;return ir().wrap(n(function(o){for(;;)switch(o.prev=o.next){case 0:if(Lt(e==null?void 0:e.signal),ae(this,Ot)[Ot]!=null){o.next=7;break}return this.opts.getTemporarySecurityCredentials===!0?(this.assertHost("getTemporarySecurityCredentials"),ae(this,Ot)[Ot]=ae(this,xr)[xr].get("s3/sts",null,e).then(Qf)):ae(this,Ot)[Ot]=this.opts.getTemporarySecurityCredentials(e),o.next=5,ae(this,Ot)[Ot];case 5:ae(this,Ot)[Ot]=o.sent,setTimeout(function(){ae(t,Ot)[Ot]=null},(CZ(ae(this,Ot)[Ot].credentials)||0)*500);case 7:return o.abrupt("return",ae(this,Ot)[Ot]);case 8:case"end":return o.stop()}},"_callee13$"),r,this)},"_callee13"))),V2.apply(this,arguments)}n(V2,"_getTemporarySecurityCredentials3");function Bir(r){var e=this,t=this;return new Promise(function(i,o){var a=n(function(b,w){e.uppy.emit("upload-progress",r,{uploader:e,bytesUploaded:b,bytesTotal:w})},"onProgress"),u=n(function(b){e.uppy.log(b),e.uppy.emit("upload-error",r,b),e.resetUploaderReferences(r.id),o(b)},"onError"),c=n(function(b){var w={body:hn({},b),uploadURL:b.location};e.resetUploaderReferences(r.id),e.uppy.emit("upload-success",ae(e,al)[al](r),w),b.location&&e.uppy.log("Download ".concat(r.name," from ").concat(b.location)),i()},"onSuccess"),l=n(function(b){e.uppy.emit("s3-multipart:part-uploaded",ae(e,al)[al](r),b)},"onPartComplete"),d=new OZ(r.data,hn({companionComm:ae(e,il)[il],log:n(function(){var b;return(b=t.uppy).log.apply(b,arguments)},"log"),getChunkSize:e.opts.getChunkSize?e.opts.getChunkSize.bind(e):null,onProgress:a,onError:u,onSuccess:c,onPartComplete:l,file:r,shouldUseMultipart:e.opts.shouldUseMultipart},r.s3Multipart));e.uploaders[r.id]=d;var y=new fu(e.uppy);e.uploaderEvents[r.id]=y,y.onFileRemove(r.id,function(m){d.abort(),e.resetUploaderReferences(r.id,{abort:!0}),i("upload ".concat(m.id," was removed"))}),y.onCancelAll(r.id,function(m){var b=m===void 0?{}:m,w=b.reason;w==="user"&&(d.abort(),t.resetUploaderReferences(r.id,{abort:!0})),i("upload ".concat(r.id," was canceled"))}),y.onFilePause(r.id,function(m){m?d.pause():d.start()}),y.onPauseAll(r.id,function(){d.pause()}),y.onResumeAll(r.id,function(){d.start()}),d.start()})}n(Bir,"_uploadLocalFile2");function $ir(r){return hn(hn({},r.remote.body),{},{protocol:"s3-multipart",size:r.data.size,metadata:r.meta})}n($ir,"_getCompanionClientArgs2");yy.VERSION=Lir.version;function gy(r){"@babel/helpers - typeof";return gy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gy(r)}n(gy,"_typeof");function Gir(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(Gir,"_classCallCheck");function LZ(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,Hir(i.key),i)}}n(LZ,"_defineProperties");function zir(r,e,t){return e&&LZ(r.prototype,e),t&&LZ(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(zir,"_createClass");function Hir(r){var e=Wir(r,"string");return gy(e)==="symbol"?e:String(e)}n(Hir,"_toPropertyKey");function Wir(r,e){if(gy(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(gy(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(Wir,"_toPrimitive");function ui(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}n(ui,"_classPrivateFieldLooseBase");var Vir=0;function MS(r){return"__private_"+Vir+++"_"+r}n(MS,"_classPrivateFieldLooseKey");var fo=MS("aliveTimer"),ol=MS("isDone"),my=MS("onTimedOut"),ul=MS("timeout"),Kir=function(){function r(e,t){Gir(this,r),Object.defineProperty(this,fo,{writable:!0,value:void 0}),Object.defineProperty(this,ol,{writable:!0,value:!1}),Object.defineProperty(this,my,{writable:!0,value:void 0}),Object.defineProperty(this,ul,{writable:!0,value:void 0}),ui(this,ul)[ul]=e,ui(this,my)[my]=t}return n(r,"ProgressTimeout"),zir(r,[{key:"progress",value:n(function(){ui(this,ol)[ol]||ui(this,ul)[ul]>0&&(clearTimeout(ui(this,fo)[fo]),ui(this,fo)[fo]=setTimeout(ui(this,my)[my],ui(this,ul)[ul]))},"progress")},{key:"done",value:n(function(){ui(this,ol)[ol]||(clearTimeout(ui(this,fo)[fo]),ui(this,fo)[fo]=void 0,ui(this,ol)[ol]=!0)},"done")}]),r}(),by=Kir;function Yir(r){return r?r.readyState!==0&&r.readyState!==4||r.status===0:!1}n(Yir,"isNetworkError");var sl=Yir;function wy(r){"@babel/helpers - typeof";return wy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wy(r)}n(wy,"_typeof");function NZ(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(NZ,"ownKeys");function yu(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?NZ(Object(t),!0).forEach(function(i){Xir(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):NZ(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(yu,"_objectSpread");function Xir(r,e,t){return e=UZ(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(Xir,"_defineProperty");function Qir(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(Qir,"_classCallCheck");function xZ(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,UZ(i.key),i)}}n(xZ,"_defineProperties");function Jir(r,e,t){return e&&xZ(r.prototype,e),t&&xZ(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(Jir,"_createClass");function UZ(r){var e=Zir(r,"string");return wy(e)==="symbol"?e:String(e)}n(UZ,"_toPropertyKey");function Zir(r,e){if(wy(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(wy(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(Zir,"_toPrimitive");function DZ(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}n(DZ,"_classPrivateFieldLooseBase");var ear=0;function BZ(r){return"__private_"+ear+++"_"+r}n(BZ,"_classPrivateFieldLooseKey");function MZ(r,e){if(sl(r))return new _i(e,r);var t=new Ga("Upload error",{cause:e});return t.request=r,t}n(MZ,"buildResponseError");function rar(r){var e=r.data.slice(0,r.data.size,r.meta.type);return e}n(rar,"setTypeInBlob");function tar(r,e,t){var i=Array.isArray(t.allowedMetaFields)?t.allowedMetaFields:Object.keys(e);i.forEach(function(o){r.append(o,e[o])})}n(tar,"addMetadata");function nar(r,e){var t=new FormData;tar(t,r.meta,e);var i=rar(r);return r.name?t.append(e.fieldName,i,r.meta.name):t.append(e.fieldName,i),t}n(nar,"createFormDataUpload");var iar=n(function(e){return e.data},"createBareUpload"),K2=BZ("addEventHandlerForFile"),Y2=BZ("addEventHandlerIfFileStillExists"),$Z=function(){function r(e,t){Qir(this,r),Object.defineProperty(this,Y2,{value:oar}),Object.defineProperty(this,K2,{value:aar}),this.uppy=e,this.opts=yu({validateStatus:n(function(o){return o>=200&&o<300},"validateStatus")},t),this.requests=t[pu],this.uploaderEvents=Object.create(null),this.i18n=t.i18n}return n(r,"MiniXHRUpload"),Jir(r,[{key:"getOptions",value:n(function(t){var i,o=this.uppy,a=o.getState().xhrUpload,u=yu(yu(yu(yu({},this.opts),a||{}),t.xhrUpload||{}),{},{headers:yu(yu(yu({},this.opts.headers),a==null?void 0:a.headers),(i=t.xhrUpload)==null?void 0:i.headers)});return u},"getOptions")},{key:"uploadLocalFile",value:n(function(t){var i=this,o=this.getOptions(t);return new Promise(function(a,u){var c=o.formData?nar(t,o):iar(t,o),l=new XMLHttpRequest;i.uploaderEvents[t.id]=new fu(i.uppy);var d=new by(o.timeout,function(){l.abort(),m.done();var b=new Error(i.i18n("timedOut",{seconds:Math.ceil(o.timeout/1e3)}));i.uppy.emit("upload-error",t,b),u(b)}),y=It();l.upload.addEventListener("loadstart",function(){i.uppy.log("[AwsS3/XHRUpload] ".concat(y," started"))}),l.upload.addEventListener("progress",function(b){i.uppy.log("[AwsS3/XHRUpload] ".concat(y," progress: ").concat(b.loaded," / ").concat(b.total)),d.progress(),b.lengthComputable&&i.uppy.emit("upload-progress",t,{uploader:i,bytesUploaded:b.loaded,bytesTotal:b.total})}),l.addEventListener("load",function(b){if(i.uppy.log("[AwsS3/XHRUpload] ".concat(y," finished")),d.done(),m.done(),i.uploaderEvents[t.id]&&(i.uploaderEvents[t.id].remove(),i.uploaderEvents[t.id]=null),o.validateStatus(b.target.status,l.responseText,l)){var w=o.getResponseData(l.responseText,l),S=w[o.responseUrlFieldName],P={status:b.target.status,body:w,uploadURL:S};return i.uppy.emit("upload-success",t,P),S&&i.uppy.log("Download ".concat(t.name," from ").concat(S)),a(t)}var R=o.getResponseData(l.responseText,l),I=MZ(l,o.getResponseError(l.responseText,l)),T={status:b.target.status,body:R};return i.uppy.emit("upload-error",t,I,T),u(I)}),l.addEventListener("error",function(){i.uppy.log("[AwsS3/XHRUpload] ".concat(y," errored")),d.done(),m.done(),i.uploaderEvents[t.id]&&(i.uploaderEvents[t.id].remove(),i.uploaderEvents[t.id]=null);var b=MZ(l,o.getResponseError(l.responseText,l));return i.uppy.emit("upload-error",t,b),u(b)}),l.open(o.method.toUpperCase(),o.endpoint,!0),l.withCredentials=!!o.withCredentials,o.responseType!==""&&(l.responseType=o.responseType),Object.keys(o.headers).forEach(function(b){l.setRequestHeader(b,o.headers[b])});var m=i.requests.run(function(){return l.send(c),function(){d.done(),l.abort()}},{priority:1});DZ(i,K2)[K2]("file-removed",t.id,function(){m.abort(),u(new Error("File removed"))}),DZ(i,Y2)[Y2]("cancel-all",t.id,function(b){var w=b===void 0?{}:b,S=w.reason;S==="user"&&m.abort(),u(new Error("Upload cancelled"))})})},"uploadLocalFile")}]),r}();function aar(r,e,t){this.uploaderEvents[e].on(r,function(i){var o,a=(o=i==null?void 0:i.id)!=null?o:i;e===a&&t()})}n(aar,"_addEventHandlerForFile2");function oar(r,e,t){var i=this;this.uploaderEvents[e].on(r,function(){i.uppy.getFile(e)&&t.apply(void 0,arguments)})}n(oar,"_addEventHandlerIfFileStillExists2");function uar(r){return r.replace(/;.*$/,"")}n(uar,"removeMimeParameters");function sar(r,e){var t=e.headers?e.headers["content-type"]:e.getResponseHeader("Content-Type");if(typeof t=="string"){var i=uar(t).toLowerCase();if(i==="application/xml"||i==="text/xml"||i==="text/html"&&/^<\?xml /.test(r))return!0}return!1}n(sar,"isXml");var X2=sar;var GZ={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};function J2(){"use strict";J2=n(function(){return r},"_regeneratorRuntime");var r={},e=Object.prototype,t=e.hasOwnProperty,i=Object.defineProperty||function(p,s,f){p[s]=f.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(p,s,f){return Object.defineProperty(p,s,{value:f,enumerable:!0,configurable:!0,writable:!0}),p[s]}n(l,"define");try{l({},"")}catch(p){l=n(function(f,v,g){return f[v]=g},"define")}function d(p,s,f,v){var g=s&&s.prototype instanceof b?s:b,h=Object.create(g.prototype),O=new V(v||[]);return i(h,"_invoke",{value:U(p,f,O)}),h}n(d,"wrap");function y(p,s,f){try{return{type:"normal",arg:p.call(s,f)}}catch(v){return{type:"throw",arg:v}}}n(y,"tryCatch"),r.wrap=d;var m={};function b(){}n(b,"Generator");function w(){}n(w,"GeneratorFunction");function S(){}n(S,"GeneratorFunctionPrototype");var P={};l(P,a,function(){return this});var R=Object.getPrototypeOf,I=R&&R(R(W([])));I&&I!==e&&t.call(I,a)&&(P=I);var T=S.prototype=b.prototype=Object.create(P);function F(p){["next","throw","return"].forEach(function(s){l(p,s,function(f){return this._invoke(s,f)})})}n(F,"defineIteratorMethods");function k(p,s){function f(g,h,O,E){var A=y(p[g],p,h);if(A.type!=="throw"){var C=A.arg,N=C.value;return N&&mu(N)=="object"&&t.call(N,"__await")?s.resolve(N.__await).then(function(M){f("next",M,O,E)},function(M){f("throw",M,O,E)}):s.resolve(N).then(function(M){C.value=M,O(C)},function(M){return f("throw",M,O,E)})}E(A.arg)}n(f,"invoke");var v;i(this,"_invoke",{value:n(function(h,O){function E(){return new s(function(A,C){f(h,O,A,C)})}return n(E,"callInvokeWithMethodAndArg"),v=v?v.then(E,E):E()},"value")})}n(k,"AsyncIterator");function U(p,s,f){var v="suspendedStart";return function(g,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(g==="throw")throw h;return Y()}for(f.method=g,f.arg=h;;){var O=f.delegate;if(O){var E=D(O,f);if(E){if(E===m)continue;return E}}if(f.method==="next")f.sent=f._sent=f.arg;else if(f.method==="throw"){if(v==="suspendedStart")throw v="completed",f.arg;f.dispatchException(f.arg)}else f.method==="return"&&f.abrupt("return",f.arg);v="executing";var A=y(p,s,f);if(A.type==="normal"){if(v=f.done?"completed":"suspendedYield",A.arg===m)continue;return{value:A.arg,done:f.done}}A.type==="throw"&&(v="completed",f.method="throw",f.arg=A.arg)}}}n(U,"makeInvokeMethod");function D(p,s){var f=s.method,v=p.iterator[f];if(v===void 0)return s.delegate=null,f==="throw"&&p.iterator.return&&(s.method="return",s.arg=void 0,D(p,s),s.method==="throw")||f!=="return"&&(s.method="throw",s.arg=new TypeError("The iterator does not provide a '"+f+"' method")),m;var g=y(v,p.iterator,s.arg);if(g.type==="throw")return s.method="throw",s.arg=g.arg,s.delegate=null,m;var h=g.arg;return h?h.done?(s[p.resultName]=h.value,s.next=p.nextLoc,s.method!=="return"&&(s.method="next",s.arg=void 0),s.delegate=null,m):h:(s.method="throw",s.arg=new TypeError("iterator result is not an object"),s.delegate=null,m)}n(D,"maybeInvokeDelegate");function H(p){var s={tryLoc:p[0]};1 in p&&(s.catchLoc=p[1]),2 in p&&(s.finallyLoc=p[2],s.afterLoc=p[3]),this.tryEntries.push(s)}n(H,"pushTryEntry");function $(p){var s=p.completion||{};s.type="normal",delete s.arg,p.completion=s}n($,"resetTryEntry");function V(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(H,this),this.reset(!0)}n(V,"Context");function W(p){if(p){var s=p[a];if(s)return s.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var f=-1,v=n(function g(){for(;++f<p.length;)if(t.call(p,f))return g.value=p[f],g.done=!1,g;return g.value=void 0,g.done=!0,g},"next");return v.next=v}}return{next:Y}}n(W,"values");function Y(){return{value:void 0,done:!0}}return n(Y,"doneResult"),w.prototype=S,i(T,"constructor",{value:S,configurable:!0}),i(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),r.isGeneratorFunction=function(p){var s=typeof p=="function"&&p.constructor;return!!s&&(s===w||(s.displayName||s.name)==="GeneratorFunction")},r.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,S):(p.__proto__=S,l(p,c,"GeneratorFunction")),p.prototype=Object.create(T),p},r.awrap=function(p){return{__await:p}},F(k.prototype),l(k.prototype,u,function(){return this}),r.AsyncIterator=k,r.async=function(p,s,f,v,g){g===void 0&&(g=Promise);var h=new k(d(p,s,f,v),g);return r.isGeneratorFunction(s)?h:h.next().then(function(O){return O.done?O.value:h.next()})},F(T),l(T,c,"Generator"),l(T,a,function(){return this}),l(T,"toString",function(){return"[object Generator]"}),r.keys=function(p){var s=Object(p),f=[];for(var v in s)f.push(v);return f.reverse(),n(function g(){for(;f.length;){var h=f.pop();if(h in s)return g.value=h,g.done=!1,g}return g.done=!0,g},"next")},r.values=W,V.prototype={constructor:V,reset:n(function(s){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach($),!s)for(var f in this)f.charAt(0)==="t"&&t.call(this,f)&&!isNaN(+f.slice(1))&&(this[f]=void 0)},"reset"),stop:n(function(){this.done=!0;var s=this.tryEntries[0].completion;if(s.type==="throw")throw s.arg;return this.rval},"stop"),dispatchException:n(function(s){if(this.done)throw s;var f=this;function v(C,N){return O.type="throw",O.arg=s,f.next=C,N&&(f.method="next",f.arg=void 0),!!N}n(v,"handle");for(var g=this.tryEntries.length-1;g>=0;--g){var h=this.tryEntries[g],O=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var E=t.call(h,"catchLoc"),A=t.call(h,"finallyLoc");if(E&&A){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(E){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!A)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},"dispatchException"),abrupt:n(function(s,f){for(var v=this.tryEntries.length-1;v>=0;--v){var g=this.tryEntries[v];if(g.tryLoc<=this.prev&&t.call(g,"finallyLoc")&&this.prev<g.finallyLoc){var h=g;break}}h&&(s==="break"||s==="continue")&&h.tryLoc<=f&&f<=h.finallyLoc&&(h=null);var O=h?h.completion:{};return O.type=s,O.arg=f,h?(this.method="next",this.next=h.finallyLoc,m):this.complete(O)},"abrupt"),complete:n(function(s,f){if(s.type==="throw")throw s.arg;return s.type==="break"||s.type==="continue"?this.next=s.arg:s.type==="return"?(this.rval=this.arg=s.arg,this.method="return",this.next="end"):s.type==="normal"&&f&&(this.next=f),m},"complete"),finish:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.finallyLoc===s)return this.complete(v.completion,v.afterLoc),$(v),m}},"finish"),catch:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.tryLoc===s){var g=v.completion;if(g.type==="throw"){var h=g.arg;$(v)}return h}}throw new Error("illegal catch attempt")},"_catch"),delegateYield:n(function(s,f,v){return this.delegate={iterator:W(s),resultName:f,nextLoc:v},this.method==="next"&&(this.arg=void 0),m},"delegateYield")},r}n(J2,"_regeneratorRuntime");function zZ(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(zZ,"ownKeys");function ll(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?zZ(Object(t),!0).forEach(function(i){Py(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):zZ(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(ll,"_objectSpread");function Py(r,e,t){return e=KZ(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(Py,"_defineProperty");function HZ(r,e,t,i,o,a,u){try{var c=r[a](u),l=c.value}catch(d){t(d);return}c.done?e(l):Promise.resolve(l).then(i,o)}n(HZ,"asyncGeneratorStep");function lar(r){return function(){var e=this,t=arguments;return new Promise(function(i,o){var a=r.apply(e,t);function u(l){HZ(a,i,o,u,c,"next",l)}n(u,"_next");function c(l){HZ(a,i,o,u,c,"throw",l)}n(c,"_throw"),u(void 0)})}}n(lar,"_asyncToGenerator");function car(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(car,"_classCallCheck");function WZ(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,KZ(i.key),i)}}n(WZ,"_defineProperties");function far(r,e,t){return e&&WZ(r.prototype,e),t&&WZ(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(far,"_createClass");function KZ(r){var e=par(r,"string");return mu(e)==="symbol"?e:String(e)}n(KZ,"_toPropertyKey");function par(r,e){if(mu(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(mu(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(par,"_toPrimitive");function dar(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&Z2(r,e)}n(dar,"_inherits");function Z2(r,e){return Z2=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),Z2(r,e)}n(Z2,"_setPrototypeOf");function har(r){var e=yar();return n(function(){var i=US(r),o;if(e){var a=US(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return YZ(this,o)},"_createSuperInternal")}n(har,"_createSuper");function YZ(r,e){if(e&&(mu(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Un(r)}n(YZ,"_possibleConstructorReturn");function Un(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(Un,"_assertThisInitialized");function yar(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(yar,"_isNativeReflectConstruct");function US(r){return US=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),US(r)}n(US,"_getPrototypeOf");function mu(r){"@babel/helpers - typeof";return mu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mu(r)}n(mu,"_typeof");var XZ;function it(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}n(it,"_classPrivateFieldLooseBase");var mar=0;function Zf(r){return"__private_"+mar+++"_"+r}n(Zf,"_classPrivateFieldLooseKey");var gar={version:"3.6.0"};function bar(r,e){return!r&&!e.startsWith("https://")&&!e.startsWith("http://")&&(e="https://".concat(e)),new URL(e,r||void 0).toString()}n(bar,"resolveUrl");function _y(r,e){var t=r.indexOf("<".concat(e,">")),i=r.indexOf("</".concat(e,">"),t);return t!==-1&&i!==-1?r.slice(t+e.length+2,i):""}n(_y,"getXmlValue");function war(r){if(r&&r.error){var e=new Error(r.message);throw Object.assign(e,r.error),e}return r}n(war,"assertServerError");function Sar(r,e){var t=e!=null&&typeof e.url=="string"&&(mu(e.fields)==="object"||e.fields==null);if(!t){var i=new TypeError("AwsS3: got incorrect result from 'getUploadParameters()' for file '".concat(r.name,"', expected an object '{ url, method, fields, headers }' but got '").concat(JSON.stringify(e),"' instead.\nSee https://uppy.io/docs/aws-s3/#getUploadParameters-file for more on the expected format."));throw i}var o=e.method==null||/^p(u|os)t$/i.test(e.method);if(!o){var a=new TypeError("AwsS3: got incorrect method from 'getUploadParameters()' for file '".concat(r.name,"', expected 'PUT' or 'POST' but got '").concat(e.method,"' instead.\nSee https://uppy.io/docs/aws-s3/#getUploadParameters-file for more on the expected format."));throw a}}n(Sar,"validateParameters");function Oar(r,e){if(X2(r,e)){var t=_y(r,"Message");return new Error(t)}}n(Oar,"defaultGetResponseError");var VZ=!1,Mn=Zf("client"),Fi=Zf("requests"),cl=Zf("uploader"),Sy=Zf("handleUpload"),Oy=Zf("setCompanionHeaders"),Q2=Zf("getCompanionClientArgs");XZ=Symbol.for("uppy test: getClient");var ej=function(r,e){dar(i,r);var t=har(i);function i(o,a){var u;if(car(this,i),(a==null?void 0:a.shouldUseMultipart)!=null)return YZ(u,new yy(o,a));u=t.call(this,o,a),Object.defineProperty(Un(u),Mn,{writable:!0,value:void 0}),Object.defineProperty(Un(u),Fi,{writable:!0,value:void 0}),Object.defineProperty(Un(u),cl,{writable:!0,value:void 0}),Object.defineProperty(Un(u),Sy,{writable:!0,value:function(){var l=lar(J2().mark(n(function y(m){var b,w,S,P,R,I,T;return J2().wrap(n(function(k){for(;;)switch(k.prev=k.next){case 0:return w=n(function(D){var H,$=D.id;(H=b[$])==null||H.abort()},"_onremove"),b=Object.create(null),u.uppy.on("file-removed",w),S=u.uppy.getFilesByIds(m),P=du(S),R=hu(P),u.uppy.emit("upload-start",R),I=it(Un(u),Fi)[Fi].wrapPromiseFunction(function(U){return u.opts.getUploadParameters(U)}),T=m.length,k.abrupt("return",Promise.allSettled(m.map(function(U,D){return b[U]=I(u.uppy.getFile(U)),b[U].then(function(H){delete b[U];var $=u.uppy.getFile(U);Sar($,H);var V=H.method,W=V===void 0?"POST":V,Y=H.url,p=H.fields,s=H.headers,f={method:W,formData:W.toUpperCase()==="POST",endpoint:Y,allowedMetaFields:p?Object.keys(p):[]};return s&&(f.headers=s),u.uppy.setFileState($.id,{meta:ll(ll({},$.meta),p),xhrUpload:f}),u.uploadFile($.id,D,T)}).catch(function(H){delete b[U];var $=u.uppy.getFile(U);return u.uppy.emit("upload-error",$,H),Promise.reject(H)})})).finally(function(){u.uppy.off("file-removed",w)}));case 10:case"end":return k.stop()}},"_callee$"),y)},"_callee")));function d(y){return l.apply(this,arguments)}return n(d,"value"),d}()}),Object.defineProperty(Un(u),Oy,{writable:!0,value:n(function(){return it(Un(u),Mn)[Mn].setCompanionHeaders(u.opts.companionHeaders),Promise.resolve()},"value")}),Object.defineProperty(Un(u),Q2,{writable:!0,value:n(function(d){var y=it(Un(u),cl)[cl].getOptions(d),m=Array.isArray(y.allowedMetaFields)?y.allowedMetaFields:Object.keys(d.meta);return ll(ll({},d.remote.body),{},{protocol:"multipart",endpoint:y.endpoint,size:d.data.size,fieldname:y.fieldName,metadata:Object.fromEntries(m.map(function(b){return[b,d.meta[b]]})),httpMethod:y.method,useFormData:y.formData,headers:typeof y.headers=="function"?y.headers(d):y.headers})},"value")}),u.type="uploader",u.id=u.opts.id||"AwsS3",u.title="AWS S3",u.defaultLocale=GZ;var c={timeout:30*1e3,limit:0,allowedMetaFields:[],getUploadParameters:u.getUploadParameters.bind(Un(u)),shouldUseMultipart:!1,companionHeaders:{}};if(u.opts=ll(ll({},c),a),(a==null?void 0:a.allowedMetaFields)===void 0&&"metaFields"in u.opts)throw new Error("The `metaFields` option has been renamed to `allowedMetaFields`.");return u.i18nInit(),it(Un(u),Mn)[Mn]=new Rn(o,a),it(Un(u),Fi)[Fi]=new oi(u.opts.limit),u}return n(i,"AwsS3"),far(i,[{key:e,value:n(function(){return it(this,Mn)[Mn]},"value")},{key:"client",get:n(function(){return it(this,Mn)[Mn]},"get")},{key:"client",set:n(function(a){it(this,Mn)[Mn]=a},"set")},{key:"getUploadParameters",value:n(function(a){if(!this.opts.companionUrl)throw new Error("Expected a `companionUrl` option containing a Companion address.");var u=a.meta.name,c=a.meta.type,l=Object.fromEntries(this.opts.allowedMetaFields.filter(function(y){return a.meta[y]!=null}).map(function(y){return["metadata[".concat(y,"]"),a.meta[y].toString()]})),d=new URLSearchParams(ll({filename:u,type:c},l));return it(this,Mn)[Mn].get("s3/params?".concat(d)).then(war)},"getUploadParameters")},{key:"uploadFile",value:n(function(a,u,c){var l=this,d=this.uppy.getFile(a);if(this.uppy.log("uploading ".concat(u," of ").concat(c)),d.error)throw new Error(d.error);if(d.isRemote){var y=n(function(){return it(l,Fi)[Fi]},"getQueue"),m=new AbortController,b=n(function(P){P.id===d.id&&m.abort()},"removedHandler");this.uppy.on("file-removed",b);var w=this.uppy.getRequestClientForFile(d).uploadRemoteFile(d,it(this,Q2)[Q2](d),{signal:m.signal,getQueue:y});return it(this,Fi)[Fi].wrapSyncFunction(function(){l.uppy.off("file-removed",b)},{priority:-1})(),w}return it(this,cl)[cl].uploadLocalFile(d,u,c)},"uploadFile")},{key:"install",value:n(function(){var a,u=this.uppy;u.addPreProcessor(it(this,Oy)[Oy]),u.addUploader(it(this,Sy)[Sy]);function c(d,y){var m=this;return X2(d,y)?{location:bar(y.responseURL,_y(d,"Location")),bucket:_y(d,"Bucket"),key:_y(d,"Key"),etag:_y(d,"ETag")}:m.method.toUpperCase()==="POST"?(VZ||(u.log("[AwsS3] No response data found, make sure to set the success_action_status AWS SDK option to 201. See https://uppy.io/docs/aws-s3/#POST-Uploads","warning"),VZ=!0),{location:null}):y.responseURL?{location:y.responseURL.replace(/\?.*$/,"")}:{location:null}}n(c,"defaultGetResponseData");var l=(a={fieldName:"file",responseUrlFieldName:"location",timeout:this.opts.timeout},Py(a,pu,it(this,Fi)[Fi]),Py(a,"responseType","text"),Py(a,"getResponseData",this.opts.getResponseData||c),Py(a,"getResponseError",Oar),a);l.i18n=this.i18n,it(this,cl)[cl]=new $Z(u,l)},"install")},{key:"uninstall",value:n(function(){this.uppy.removePreProcessor(it(this,Oy)[Oy]),this.uppy.removeUploader(it(this,Sy)[Sy])},"uninstall")}]),i}(fr,XZ);ej.VERSION=gar.version;var tee="3.7.2",Par=tee,_ar=typeof atob=="function",Ear=typeof btoa=="function",rp=typeof Buffer=="function",QZ=typeof TextDecoder=="function"?new TextDecoder:void 0,JZ=typeof TextEncoder=="function"?new TextEncoder:void 0,Tar="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Ey=Array.prototype.slice.call(Tar),BS=function(r){var e={};return r.forEach(function(t,i){return e[t]=i}),e}(Ey),Rar=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,_t=String.fromCharCode.bind(String),ZZ=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):function(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(t){return t};return new Uint8Array(Array.prototype.slice.call(r,0).map(e))},nee=n(function(e){return e.replace(/=/g,"").replace(/[+\/]/g,function(t){return t=="+"?"-":"_"})},"_mkUriSafe"),iee=n(function(e){return e.replace(/[^A-Za-z0-9\+\/]/g,"")},"_tidyB64"),aee=n(function(e){for(var t,i,o,a,u="",c=e.length%3,l=0;l<e.length;){if((i=e.charCodeAt(l++))>255||(o=e.charCodeAt(l++))>255||(a=e.charCodeAt(l++))>255)throw new TypeError("invalid character found");t=i<<16|o<<8|a,u+=Ey[t>>18&63]+Ey[t>>12&63]+Ey[t>>6&63]+Ey[t&63]}return c?u.slice(0,c-3)+"===".substring(c):u},"btoaPolyfill"),nj=Ear?function(r){return btoa(r)}:rp?function(r){return Buffer.from(r,"binary").toString("base64")}:aee,rj=rp?function(r){return Buffer.from(r).toString("base64")}:function(r){for(var e=4096,t=[],i=0,o=r.length;i<o;i+=e)t.push(_t.apply(null,r.subarray(i,i+e)));return nj(t.join(""))},$S=n(function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return t?nee(rj(e)):rj(e)},"fromUint8Array"),Aar=n(function(e){if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?_t(192|t>>>6)+_t(128|t&63):_t(224|t>>>12&15)+_t(128|t>>>6&63)+_t(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return _t(240|t>>>18&7)+_t(128|t>>>12&63)+_t(128|t>>>6&63)+_t(128|t&63)}},"cb_utob"),Iar=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,oee=n(function(e){return e.replace(Iar,Aar)},"utob"),eee=rp?function(r){return Buffer.from(r,"utf8").toString("base64")}:JZ?function(r){return rj(JZ.encode(r))}:function(r){return nj(oee(r))},ep=n(function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return t?nee(eee(e)):eee(e)},"encode"),ree=n(function(e){return ep(e,!0)},"encodeURI"),qar=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,kar=n(function(e){switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),i=t-65536;return _t((i>>>10)+55296)+_t((i&1023)+56320);case 3:return _t((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return _t((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},"cb_btou"),uee=n(function(e){return e.replace(qar,kar)},"btou"),see=n(function(e){if(e=e.replace(/\s+/g,""),!Rar.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));for(var t,i="",o,a,u=0;u<e.length;)t=BS[e.charAt(u++)]<<18|BS[e.charAt(u++)]<<12|(o=BS[e.charAt(u++)])<<6|(a=BS[e.charAt(u++)]),i+=o===64?_t(t>>16&255):a===64?_t(t>>16&255,t>>8&255):_t(t>>16&255,t>>8&255,t&255);return i},"atobPolyfill"),ij=_ar?function(r){return atob(iee(r))}:rp?function(r){return Buffer.from(r,"base64").toString("binary")}:see,lee=rp?function(r){return ZZ(Buffer.from(r,"base64"))}:function(r){return ZZ(ij(r),function(e){return e.charCodeAt(0)})},cee=n(function(e){return lee(fee(e))},"toUint8Array"),jar=rp?function(r){return Buffer.from(r,"base64").toString("utf8")}:QZ?function(r){return QZ.decode(lee(r))}:function(r){return uee(ij(r))},fee=n(function(e){return iee(e.replace(/[-_]/g,function(t){return t=="-"?"+":"/"}))},"_unURI"),tj=n(function(e){return jar(fee(e))},"decode"),Far=n(function(e){if(typeof e!="string")return!1;var t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},"isValid"),pee=n(function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}},"_noEnum"),dee=n(function(){var e=n(function(i,o){return Object.defineProperty(String.prototype,i,pee(o))},"_add");e("fromBase64",function(){return tj(this)}),e("toBase64",function(t){return ep(this,t)}),e("toBase64URI",function(){return ep(this,!0)}),e("toBase64URL",function(){return ep(this,!0)}),e("toUint8Array",function(){return cee(this)})},"extendString"),hee=n(function(){var e=n(function(i,o){return Object.defineProperty(Uint8Array.prototype,i,pee(o))},"_add");e("toBase64",function(t){return $S(this,t)}),e("toBase64URI",function(){return $S(this,!0)}),e("toBase64URL",function(){return $S(this,!0)})},"extendUint8Array"),Car=n(function(){dee(),hee()},"extendBuiltins"),vee={version:tee,VERSION:Par,atob:ij,atobPolyfill:see,btoa:nj,btoaPolyfill:aee,fromBase64:tj,toBase64:ep,encode:ep,encodeURI:ree,encodeURL:ree,utob:oee,btou:uee,decode:tj,isValid:Far,fromUint8Array:$S,toUint8Array:cee,extendString:dee,extendUint8Array:hee,extendBuiltins:Car};var Uee=Ce(Aee());function sj(r){"@babel/helpers - typeof";return sj=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sj(r)}n(sj,"_typeof");function Iee(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,i.key,i)}}n(Iee,"_defineProperties");function War(r,e,t){return e&&Iee(r.prototype,e),t&&Iee(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(War,"_createClass");function Var(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(Var,"_classCallCheck");function Kar(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&Ry(r,e)}n(Kar,"_inherits");function Yar(r){var e=qee();return n(function(){var i=Ay(r),o;if(e){var a=Ay(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return Xar(this,o)},"_createSuperInternal")}n(Yar,"_createSuper");function Xar(r,e){if(e&&(sj(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qar(r)}n(Xar,"_possibleConstructorReturn");function Qar(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(Qar,"_assertThisInitialized");function lj(r){var e=typeof Map=="function"?new Map:void 0;return lj=n(function(i){if(i===null||!Jar(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(i))return e.get(i);e.set(i,o)}function o(){return zS(i,arguments,Ay(this).constructor)}return n(o,"Wrapper"),o.prototype=Object.create(i.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Ry(o,i)},"_wrapNativeSuper"),lj(r)}n(lj,"_wrapNativeSuper");function zS(r,e,t){return qee()?zS=Reflect.construct.bind():zS=n(function(o,a,u){var c=[null];c.push.apply(c,a);var l=Function.bind.apply(o,c),d=new l;return u&&Ry(d,u.prototype),d},"_construct"),zS.apply(null,arguments)}n(zS,"_construct");function qee(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(qee,"_isNativeReflectConstruct");function Jar(r){return Function.toString.call(r).indexOf("[native code]")!==-1}n(Jar,"_isNativeFunction");function Ry(r,e){return Ry=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),Ry(r,e)}n(Ry,"_setPrototypeOf");function Ay(r){return Ay=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),Ay(r)}n(Ay,"_getPrototypeOf");var Zar=function(r){Kar(t,r);var e=Yar(t);function t(i){var o,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;if(Var(this,t),o=e.call(this,i),o.originalRequest=u,o.originalResponse=c,o.causingError=a,a!=null&&(i+=", caused by ".concat(a.toString())),u!=null){var l=u.getHeader("X-Request-ID")||"n/a",d=u.getMethod(),y=u.getURL(),m=c?c.getStatus():"n/a",b=c?c.getBody()||"":"n/a";i+=", originated from request (method: ".concat(d,", url: ").concat(y,", response code: ").concat(m,", response text: ").concat(b,", request id: ").concat(l,")")}return o.message=i,o}return n(t,"DetailedError"),War(t)}(lj(Error)),tp=Zar;var eor=!1;function gu(r){eor&&console.log(r)}n(gu,"log");function cj(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){var e=Math.random()*16|0,t=r==="x"?e:e&3|8;return t.toString(16)})}n(cj,"uuid");function Mee(r,e){return ior(r)||nor(r,e)||tor(r,e)||ror()}n(Mee,"_slicedToArray");function ror(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n(ror,"_nonIterableRest");function tor(r,e){if(r){if(typeof r=="string")return kee(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return kee(r,e)}}n(tor,"_unsupportedIterableToArray");function kee(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=r[t];return i}n(kee,"_arrayLikeToArray");function nor(r,e){var t=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var i=[],o=!0,a=!1,u,c;try{for(t=t.call(r);!(o=(u=t.next()).done)&&(i.push(u.value),!(e&&i.length===e));o=!0);}catch(l){a=!0,c=l}finally{try{!o&&t.return!=null&&t.return()}finally{if(a)throw c}}return i}}n(nor,"_iterableToArrayLimit");function ior(r){if(Array.isArray(r))return r}n(ior,"_arrayWithHoles");function jee(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(jee,"ownKeys");function np(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?jee(Object(t),!0).forEach(function(i){aor(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):jee(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(np,"_objectSpread");function aor(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(aor,"_defineProperty");function oor(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(oor,"_classCallCheck");function Fee(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,i.key,i)}}n(Fee,"_defineProperties");function uor(r,e,t){return e&&Fee(r.prototype,e),t&&Fee(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(uor,"_createClass");var sor={endpoint:null,uploadUrl:null,metadata:{},fingerprint:null,uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,_onUploadUrlAvailable:null,overridePatchMethod:!1,headers:{},addRequestId:!1,onBeforeRequest:null,onAfterResponse:null,onShouldRetry:null,chunkSize:1/0,retryDelays:[0,1e3,3e3,5e3],parallelUploads:1,parallelUploadBoundaries:null,storeFingerprintForResuming:!0,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1,urlStorage:null,fileReader:null,httpStack:null},Bee=function(){function r(e,t){oor(this,r),"resume"in t&&console.log("tus: The `resume` option has been removed in tus-js-client v2. Please use the URL storage API instead."),this.options=t,this.options.chunkSize=Number(this.options.chunkSize),this._urlStorage=this.options.urlStorage,this.file=e,this.url=null,this._req=null,this._fingerprint=null,this._urlStorageKey=null,this._offset=null,this._aborted=!1,this._size=null,this._source=null,this._retryAttempt=0,this._retryTimeout=null,this._offsetBeforeRetry=0,this._parallelUploads=null,this._parallelUploadUrls=null}return n(r,"BaseUpload"),uor(r,[{key:"findPreviousUploads",value:n(function(){var t=this;return this.options.fingerprint(this.file,this.options).then(function(i){return t._urlStorage.findUploadsByFingerprint(i)})},"findPreviousUploads")},{key:"resumeFromPreviousUpload",value:n(function(t){this.url=t.uploadUrl||null,this._parallelUploadUrls=t.parallelUploadUrls||null,this._urlStorageKey=t.urlStorageKey},"resumeFromPreviousUpload")},{key:"start",value:n(function(){var t=this,i=this.file;if(!i){this._emitError(new Error("tus: no file or stream to upload provided"));return}if(!this.options.endpoint&&!this.options.uploadUrl&&!this.url){this._emitError(new Error("tus: neither an endpoint or an upload URL is provided"));return}var o=this.options.retryDelays;if(o!=null&&Object.prototype.toString.call(o)!=="[object Array]"){this._emitError(new Error("tus: the `retryDelays` option must either be an array or null"));return}if(this.options.parallelUploads>1)for(var a=0,u=["uploadUrl","uploadSize","uploadLengthDeferred"];a<u.length;a++){var c=u[a];if(this.options[c]){this._emitError(new Error("tus: cannot use the ".concat(c," option when parallelUploads is enabled")));return}}if(this.options.parallelUploadBoundaries){if(this.options.parallelUploads<=1){this._emitError(new Error("tus: cannot use the `parallelUploadBoundaries` option when `parallelUploads` is disabled"));return}if(this.options.parallelUploads!==this.options.parallelUploadBoundaries.length){this._emitError(new Error("tus: the `parallelUploadBoundaries` must have the same length as the value of `parallelUploads`"));return}}this.options.fingerprint(i,this.options).then(function(l){return l==null?gu("No fingerprint was calculated meaning that the upload cannot be stored in the URL storage."):gu("Calculated fingerprint: ".concat(l)),t._fingerprint=l,t._source?t._source:t.options.fileReader.openFile(i,t.options.chunkSize)}).then(function(l){if(t._source=l,t.options.uploadLengthDeferred)t._size=null;else if(t.options.uploadSize!=null){if(t._size=Number(t.options.uploadSize),Number.isNaN(t._size)){t._emitError(new Error("tus: cannot convert `uploadSize` option into a number"));return}}else if(t._size=t._source.size,t._size==null){t._emitError(new Error("tus: cannot automatically derive upload's size from input. Specify it manually using the `uploadSize` option or use the `uploadLengthDeferred` option"));return}t.options.parallelUploads>1||t._parallelUploadUrls!=null?t._startParallelUpload():t._startSingleUpload()}).catch(function(l){t._emitError(l)})},"start")},{key:"_startParallelUpload",value:n(function(){var t,i=this,o=this._size,a=0;this._parallelUploads=[];var u=this._parallelUploadUrls!=null?this._parallelUploadUrls.length:this.options.parallelUploads,c=(t=this.options.parallelUploadBoundaries)!==null&&t!==void 0?t:cor(this._source.size,u);this._parallelUploadUrls&&c.forEach(function(y,m){y.uploadUrl=i._parallelUploadUrls[m]||null}),this._parallelUploadUrls=new Array(c.length);var l=c.map(function(y,m){var b=0;return i._source.slice(y.start,y.end).then(function(w){var S=w.value;return new Promise(function(P,R){var I=np(np({},i.options),{},{uploadUrl:y.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,parallelUploadBoundaries:null,metadata:{},headers:np(np({},i.options.headers),{},{"Upload-Concat":"partial"}),onSuccess:P,onError:R,onProgress:n(function(k){a=a-b+k,b=k,i._emitProgress(a,o)},"onProgress"),_onUploadUrlAvailable:n(function(){i._parallelUploadUrls[m]=T.url,i._parallelUploadUrls.filter(function(k){return!!k}).length===c.length&&i._saveUploadInUrlStorage()},"_onUploadUrlAvailable")}),T=new r(S,I);T.start(),i._parallelUploads.push(T)})})}),d;Promise.all(l).then(function(){d=i._openRequest("POST",i.options.endpoint),d.setHeader("Upload-Concat","final;".concat(i._parallelUploadUrls.join(" ")));var y=Cee(i.options.metadata);return y!==""&&d.setHeader("Upload-Metadata",y),i._sendRequest(d,null)}).then(function(y){if(!ip(y.getStatus(),200)){i._emitHttpError(d,y,"tus: unexpected response while creating upload");return}var m=y.getHeader("Location");if(m==null){i._emitHttpError(d,y,"tus: invalid or missing Location header");return}i.url=Dee(i.options.endpoint,m),gu("Created upload at ".concat(i.url)),i._emitSuccess()}).catch(function(y){i._emitError(y)})},"_startParallelUpload")},{key:"_startSingleUpload",value:n(function(){if(this._aborted=!1,this.url!=null){gu("Resuming upload from previous URL: ".concat(this.url)),this._resumeUpload();return}if(this.options.uploadUrl!=null){gu("Resuming upload from provided URL: ".concat(this.options.uploadUrl)),this.url=this.options.uploadUrl,this._resumeUpload();return}gu("Creating a new upload"),this._createUpload()},"_startSingleUpload")},{key:"abort",value:n(function(t){var i=this;return this._parallelUploads!=null&&this._parallelUploads.forEach(function(o){o.abort(t)}),this._req!==null&&this._req.abort(),this._aborted=!0,this._retryTimeout!=null&&(clearTimeout(this._retryTimeout),this._retryTimeout=null),!t||this.url==null?Promise.resolve():r.terminate(this.url,this.options).then(function(){return i._removeFromUrlStorage()})},"abort")},{key:"_emitHttpError",value:n(function(t,i,o,a){this._emitError(new tp(o,a,t,i))},"_emitHttpError")},{key:"_emitError",value:n(function(t){var i=this;if(!this._aborted){if(this.options.retryDelays!=null){var o=this._offset!=null&&this._offset>this._offsetBeforeRetry;if(o&&(this._retryAttempt=0),xee(t,this._retryAttempt,this.options)){var a=this.options.retryDelays[this._retryAttempt++];this._offsetBeforeRetry=this._offset,this._retryTimeout=setTimeout(function(){i.start()},a);return}}if(typeof this.options.onError=="function")this.options.onError(t);else throw t}},"_emitError")},{key:"_emitSuccess",value:n(function(){this.options.removeFingerprintOnSuccess&&this._removeFromUrlStorage(),typeof this.options.onSuccess=="function"&&this.options.onSuccess()},"_emitSuccess")},{key:"_emitProgress",value:n(function(t,i){typeof this.options.onProgress=="function"&&this.options.onProgress(t,i)},"_emitProgress")},{key:"_emitChunkComplete",value:n(function(t,i,o){typeof this.options.onChunkComplete=="function"&&this.options.onChunkComplete(t,i,o)},"_emitChunkComplete")},{key:"_createUpload",value:n(function(){var t=this;if(!this.options.endpoint){this._emitError(new Error("tus: unable to create upload because no endpoint is provided"));return}var i=this._openRequest("POST",this.options.endpoint);this.options.uploadLengthDeferred?i.setHeader("Upload-Defer-Length",1):i.setHeader("Upload-Length",this._size);var o=Cee(this.options.metadata);o!==""&&i.setHeader("Upload-Metadata",o);var a;this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,a=this._addChunkToRequest(i)):a=this._sendRequest(i,null),a.then(function(u){if(!ip(u.getStatus(),200)){t._emitHttpError(i,u,"tus: unexpected response while creating upload");return}var c=u.getHeader("Location");if(c==null){t._emitHttpError(i,u,"tus: invalid or missing Location header");return}if(t.url=Dee(t.options.endpoint,c),gu("Created upload at ".concat(t.url)),typeof t.options._onUploadUrlAvailable=="function"&&t.options._onUploadUrlAvailable(),t._size===0){t._emitSuccess(),t._source.close();return}t._saveUploadInUrlStorage().then(function(){t.options.uploadDataDuringCreation?t._handleUploadResponse(i,u):(t._offset=0,t._performUpload())})}).catch(function(u){t._emitHttpError(i,null,"tus: failed to create upload",u)})},"_createUpload")},{key:"_resumeUpload",value:n(function(){var t=this,i=this._openRequest("HEAD",this.url),o=this._sendRequest(i,null);o.then(function(a){var u=a.getStatus();if(!ip(u,200)){if(u===423){t._emitHttpError(i,a,"tus: upload is currently locked; retry later");return}if(ip(u,400)&&t._removeFromUrlStorage(),!t.options.endpoint){t._emitHttpError(i,a,"tus: unable to resume upload (new upload cannot be created without an endpoint)");return}t.url=null,t._createUpload();return}var c=parseInt(a.getHeader("Upload-Offset"),10);if(Number.isNaN(c)){t._emitHttpError(i,a,"tus: invalid or missing offset value");return}var l=parseInt(a.getHeader("Upload-Length"),10);if(Number.isNaN(l)&&!t.options.uploadLengthDeferred){t._emitHttpError(i,a,"tus: invalid or missing length value");return}typeof t.options._onUploadUrlAvailable=="function"&&t.options._onUploadUrlAvailable(),t._saveUploadInUrlStorage().then(function(){if(c===l){t._emitProgress(l,l),t._emitSuccess();return}t._offset=c,t._performUpload()})}).catch(function(a){t._emitHttpError(i,null,"tus: failed to resume upload",a)})},"_resumeUpload")},{key:"_performUpload",value:n(function(){var t=this;if(!this._aborted){var i;this.options.overridePatchMethod?(i=this._openRequest("POST",this.url),i.setHeader("X-HTTP-Method-Override","PATCH")):i=this._openRequest("PATCH",this.url),i.setHeader("Upload-Offset",this._offset);var o=this._addChunkToRequest(i);o.then(function(a){if(!ip(a.getStatus(),200)){t._emitHttpError(i,a,"tus: unexpected response while uploading chunk");return}t._handleUploadResponse(i,a)}).catch(function(a){t._aborted||t._emitHttpError(i,null,"tus: failed to upload chunk at offset ".concat(t._offset),a)})}},"_performUpload")},{key:"_addChunkToRequest",value:n(function(t){var i=this,o=this._offset,a=this._offset+this.options.chunkSize;return t.setProgressHandler(function(u){i._emitProgress(o+u,i._size)}),t.setHeader("Content-Type","application/offset+octet-stream"),(a===1/0||a>this._size)&&!this.options.uploadLengthDeferred&&(a=this._size),this._source.slice(o,a).then(function(u){var c=u.value,l=u.done;return i.options.uploadLengthDeferred&&l&&(i._size=i._offset+(c&&c.size?c.size:0),t.setHeader("Upload-Length",i._size)),c===null?i._sendRequest(t):(i._emitProgress(i._offset,i._size),i._sendRequest(t,c))})},"_addChunkToRequest")},{key:"_handleUploadResponse",value:n(function(t,i){var o=parseInt(i.getHeader("Upload-Offset"),10);if(Number.isNaN(o)){this._emitHttpError(t,i,"tus: invalid or missing offset value");return}if(this._emitProgress(o,this._size),this._emitChunkComplete(o-this._offset,o,this._size),this._offset=o,o===this._size){this._emitSuccess(),this._source.close();return}this._performUpload()},"_handleUploadResponse")},{key:"_openRequest",value:n(function(t,i){var o=Lee(t,i,this.options);return this._req=o,o},"_openRequest")},{key:"_removeFromUrlStorage",value:n(function(){var t=this;this._urlStorageKey&&(this._urlStorage.removeUpload(this._urlStorageKey).catch(function(i){t._emitError(i)}),this._urlStorageKey=null)},"_removeFromUrlStorage")},{key:"_saveUploadInUrlStorage",value:n(function(){var t=this;if(!this.options.storeFingerprintForResuming||!this._fingerprint||this._urlStorageKey!==null)return Promise.resolve();var i={size:this._size,metadata:this.options.metadata,creationTime:new Date().toString()};return this._parallelUploads?i.parallelUploadUrls=this._parallelUploadUrls:i.uploadUrl=this.url,this._urlStorage.addUpload(this._fingerprint,i).then(function(o){t._urlStorageKey=o})},"_saveUploadInUrlStorage")},{key:"_sendRequest",value:n(function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Nee(t,i,this.options)},"_sendRequest")}],[{key:"terminate",value:n(function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=Lee("DELETE",t,i);return Nee(o,null,i).then(function(a){if(a.getStatus()!==204)throw new tp("tus: unexpected response while terminating upload",null,o,a)}).catch(function(a){if(a instanceof tp||(a=new tp("tus: failed to terminate upload",a,o,null)),!xee(a,0,i))throw a;var u=i.retryDelays[0],c=i.retryDelays.slice(1),l=np(np({},i),{},{retryDelays:c});return new Promise(function(d){return setTimeout(d,u)}).then(function(){return r.terminate(t,l)})})},"terminate")}]),r}();function Cee(r){return Object.entries(r).map(function(e){var t=Mee(e,2),i=t[0],o=t[1];return"".concat(i," ").concat(vee.encode(String(o)))}).join(",")}n(Cee,"encodeMetadata");function ip(r,e){return r>=e&&r<e+100}n(ip,"inStatusCategory");function Lee(r,e,t){var i=t.httpStack.createRequest(r,e);i.setHeader("Tus-Resumable","1.0.0");var o=t.headers||{};if(Object.entries(o).forEach(function(u){var c=Mee(u,2),l=c[0],d=c[1];i.setHeader(l,d)}),t.addRequestId){var a=cj();i.setHeader("X-Request-ID",a)}return i}n(Lee,"openRequest");function Nee(r,e,t){var i=typeof t.onBeforeRequest=="function"?Promise.resolve(t.onBeforeRequest(r)):Promise.resolve();return i.then(function(){return r.send(e).then(function(o){var a=typeof t.onAfterResponse=="function"?Promise.resolve(t.onAfterResponse(r,o)):Promise.resolve();return a.then(function(){return o})})})}n(Nee,"sendRequest");function lor(){var r=!0;return typeof window!="undefined"&&"navigator"in window&&window.navigator.onLine===!1&&(r=!1),r}n(lor,"isOnline");function xee(r,e,t){if(t.retryDelays==null||e>=t.retryDelays.length||r.originalRequest==null)return!1;if(t&&typeof t.onShouldRetry=="function")return t.onShouldRetry(r,e,t);var i=r.originalResponse?r.originalResponse.getStatus():0;return(!ip(i,400)||i===409||i===423)&&lor()}n(xee,"shouldRetry");function Dee(r,e){return new Uee.default(e,r).toString()}n(Dee,"resolveUrl");function cor(r,e){for(var t=Math.floor(r/e),i=[],o=0;o<e;o++)i.push({start:t*o,end:t*(o+1)});return i[e-1].end=r,i}n(cor,"splitSizeIntoParts");Bee.defaultOptions=sor;var HS=Bee;function por(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(por,"_classCallCheck");function $ee(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,i.key,i)}}n($ee,"_defineProperties");function dor(r,e,t){return e&&$ee(r.prototype,e),t&&$ee(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(dor,"_createClass");var Gee=function(){function r(){por(this,r)}return n(r,"NoopUrlStorage"),dor(r,[{key:"listAllUploads",value:n(function(){return Promise.resolve([])},"listAllUploads")},{key:"findUploadsByFingerprint",value:n(function(t){return Promise.resolve([])},"findUploadsByFingerprint")},{key:"removeUpload",value:n(function(t){return Promise.resolve()},"removeUpload")},{key:"addUpload",value:n(function(t,i){return Promise.resolve(null)},"addUpload")}]),r}();function hor(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(hor,"_classCallCheck");function zee(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,i.key,i)}}n(zee,"_defineProperties");function vor(r,e,t){return e&&zee(r.prototype,e),t&&zee(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(vor,"_createClass");var pj=!1;try{pj="localStorage"in window,fj="tusSupport",localStorage.setItem(fj,localStorage.getItem(fj))}catch(r){if(r.code===r.SECURITY_ERR||r.code===r.QUOTA_EXCEEDED_ERR)pj=!1;else throw r}var fj,Hee=pj,Wee=function(){function r(){hor(this,r)}return n(r,"WebStorageUrlStorage"),vor(r,[{key:"findAllUploads",value:n(function(){var t=this._findEntries("tus::");return Promise.resolve(t)},"findAllUploads")},{key:"findUploadsByFingerprint",value:n(function(t){var i=this._findEntries("tus::".concat(t,"::"));return Promise.resolve(i)},"findUploadsByFingerprint")},{key:"removeUpload",value:n(function(t){return localStorage.removeItem(t),Promise.resolve()},"removeUpload")},{key:"addUpload",value:n(function(t,i){var o=Math.round(Math.random()*1e12),a="tus::".concat(t,"::").concat(o);return localStorage.setItem(a,JSON.stringify(i)),Promise.resolve(a)},"addUpload")},{key:"_findEntries",value:n(function(t){for(var i=[],o=0;o<localStorage.length;o++){var a=localStorage.key(o);if(a.indexOf(t)===0)try{var u=JSON.parse(localStorage.getItem(a));u.urlStorageKey=a,i.push(u)}catch(c){}}return i},"_findEntries")}]),r}();function dj(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(dj,"_classCallCheck");function Vee(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,i.key,i)}}n(Vee,"_defineProperties");function hj(r,e,t){return e&&Vee(r.prototype,e),t&&Vee(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(hj,"_createClass");var Kee=function(){function r(){dj(this,r)}return n(r,"XHRHttpStack"),hj(r,[{key:"createRequest",value:n(function(t,i){return new yor(t,i)},"createRequest")},{key:"getName",value:n(function(){return"XHRHttpStack"},"getName")}]),r}();var yor=function(){function r(e,t){dj(this,r),this._xhr=new XMLHttpRequest,this._xhr.open(e,t,!0),this._method=e,this._url=t,this._headers={}}return n(r,"Request"),hj(r,[{key:"getMethod",value:n(function(){return this._method},"getMethod")},{key:"getURL",value:n(function(){return this._url},"getURL")},{key:"setHeader",value:n(function(t,i){this._xhr.setRequestHeader(t,i),this._headers[t]=i},"setHeader")},{key:"getHeader",value:n(function(t){return this._headers[t]},"getHeader")},{key:"setProgressHandler",value:n(function(t){"upload"in this._xhr&&(this._xhr.upload.onprogress=function(i){i.lengthComputable&&t(i.loaded)})},"setProgressHandler")},{key:"send",value:n(function(){var t=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return new Promise(function(o,a){t._xhr.onload=function(){o(new mor(t._xhr))},t._xhr.onerror=function(u){a(u)},t._xhr.send(i)})},"send")},{key:"abort",value:n(function(){return this._xhr.abort(),Promise.resolve()},"abort")},{key:"getUnderlyingObject",value:n(function(){return this._xhr},"getUnderlyingObject")}]),r}(),mor=function(){function r(e){dj(this,r),this._xhr=e}return n(r,"Response"),hj(r,[{key:"getStatus",value:n(function(){return this._xhr.status},"getStatus")},{key:"getHeader",value:n(function(t){return this._xhr.getResponseHeader(t)},"getHeader")},{key:"getBody",value:n(function(){return this._xhr.responseText},"getBody")},{key:"getUnderlyingObject",value:n(function(){return this._xhr},"getUnderlyingObject")}]),r}();var gor=n(function(){return typeof navigator!="undefined"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative"},"isReactNative"),WS=gor;function vj(r){return new Promise(function(e,t){var i=new XMLHttpRequest;i.responseType="blob",i.onload=function(){var o=i.response;e(o)},i.onerror=function(o){t(o)},i.open("GET",r),i.send()})}n(vj,"uriToBlob");var bor=n(function(){return typeof window!="undefined"&&(typeof window.PhoneGap!="undefined"||typeof window.Cordova!="undefined"||typeof window.cordova!="undefined")},"isCordova"),Yee=bor;function yj(r){return new Promise(function(e,t){var i=new FileReader;i.onload=function(){var o=new Uint8Array(i.result);e({value:o})},i.onerror=function(o){t(o)},i.readAsArrayBuffer(r)})}n(yj,"readAsByteArray");function wor(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(wor,"_classCallCheck");function Xee(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,i.key,i)}}n(Xee,"_defineProperties");function Sor(r,e,t){return e&&Xee(r.prototype,e),t&&Xee(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(Sor,"_createClass");var mj=function(){function r(e){wor(this,r),this._file=e,this.size=e.size}return n(r,"FileSource"),Sor(r,[{key:"slice",value:n(function(t,i){if(Yee())return yj(this._file.slice(t,i));var o=this._file.slice(t,i);return Promise.resolve({value:o})},"slice")},{key:"close",value:n(function(){},"close")}]),r}();function Oor(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(Oor,"_classCallCheck");function Qee(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,i.key,i)}}n(Qee,"_defineProperties");function Por(r,e,t){return e&&Qee(r.prototype,e),t&&Qee(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(Por,"_createClass");function Jee(r){return r===void 0?0:r.size!==void 0?r.size:r.length}n(Jee,"len");function _or(r,e){if(r.concat)return r.concat(e);if(r instanceof Blob)return new Blob([r,e],{type:r.type});if(r.set){var t=new r.constructor(r.length+e.length);return t.set(r),t.set(e,r.length),t}throw new Error("Unknown data type")}n(_or,"concat");var Zee=function(){function r(e){Oor(this,r),this._buffer=void 0,this._bufferOffset=0,this._reader=e,this._done=!1}return n(r,"StreamSource"),Por(r,[{key:"slice",value:n(function(t,i){return t<this._bufferOffset?Promise.reject(new Error("Requested data is before the reader's current offset")):this._readUntilEnoughDataOrDone(t,i)},"slice")},{key:"_readUntilEnoughDataOrDone",value:n(function(t,i){var o=this,a=i<=this._bufferOffset+Jee(this._buffer);if(this._done||a){var u=this._getDataFromBuffer(t,i),c=u==null?this._done:!1;return Promise.resolve({value:u,done:c})}return this._reader.read().then(function(l){var d=l.value,y=l.done;return y?o._done=!0:o._buffer===void 0?o._buffer=d:o._buffer=_or(o._buffer,d),o._readUntilEnoughDataOrDone(t,i)})},"_readUntilEnoughDataOrDone")},{key:"_getDataFromBuffer",value:n(function(t,i){t>this._bufferOffset&&(this._buffer=this._buffer.slice(t-this._bufferOffset),this._bufferOffset=t);var o=Jee(this._buffer)===0;return this._done&&o?null:this._buffer.slice(0,i-t)},"_getDataFromBuffer")},{key:"close",value:n(function(){this._reader.cancel&&this._reader.cancel()},"close")}]),r}();function Eor(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(Eor,"_classCallCheck");function ere(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,i.key,i)}}n(ere,"_defineProperties");function Tor(r,e,t){return e&&ere(r.prototype,e),t&&ere(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(Tor,"_createClass");var rre=function(){function r(){Eor(this,r)}return n(r,"FileReader"),Tor(r,[{key:"openFile",value:n(function(t,i){return WS()&&t&&typeof t.uri!="undefined"?vj(t.uri).then(function(o){return new mj(o)}).catch(function(o){throw new Error("tus: cannot fetch `file.uri` as Blob, make sure the uri is correct and accessible. ".concat(o))}):typeof t.slice=="function"&&typeof t.size!="undefined"?Promise.resolve(new mj(t)):typeof t.read=="function"?(i=Number(i),Number.isFinite(i)?Promise.resolve(new Zee(t,i)):Promise.reject(new Error("cannot create source for stream without a finite value for the `chunkSize` option"))):Promise.reject(new Error("source object may only be an instance of File, Blob, or Reader in this environment"))},"openFile")}]),r}();function gj(r,e){return WS()?Promise.resolve(Ror(r,e)):Promise.resolve(["tus-br",r.name,r.type,r.size,r.lastModified,e.endpoint].join("-"))}n(gj,"fingerprint");function Ror(r,e){var t=r.exif?Aor(JSON.stringify(r.exif)):"noexif";return["tus-rn",r.name||"noname",r.size||"nosize",t,e.endpoint].join("/")}n(Ror,"reactNativeFingerprint");function Aor(r){var e=0;if(r.length===0)return e;for(var t=0;t<r.length;t++){var i=r.charCodeAt(t);e=(e<<5)-e+i,e&=e}return e}n(Aor,"hashCode");function bj(r){"@babel/helpers - typeof";return bj=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bj(r)}n(bj,"_typeof");function Ior(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(Ior,"_classCallCheck");function tre(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,i.key,i)}}n(tre,"_defineProperties");function qor(r,e,t){return e&&tre(r.prototype,e),t&&tre(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(qor,"_createClass");function kor(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&wj(r,e)}n(kor,"_inherits");function wj(r,e){return wj=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),wj(r,e)}n(wj,"_setPrototypeOf");function jor(r){var e=Lor();return n(function(){var i=VS(r),o;if(e){var a=VS(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return For(this,o)},"_createSuperInternal")}n(jor,"_createSuper");function For(r,e){if(e&&(bj(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Cor(r)}n(For,"_possibleConstructorReturn");function Cor(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(Cor,"_assertThisInitialized");function Lor(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(Lor,"_isNativeReflectConstruct");function VS(r){return VS=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),VS(r)}n(VS,"_getPrototypeOf");function nre(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(nre,"ownKeys");function ap(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?nre(Object(t),!0).forEach(function(i){Nor(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):nre(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(ap,"_objectSpread");function Nor(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(Nor,"_defineProperty");var KS=ap(ap({},HS.defaultOptions),{},{httpStack:new Kee,fileReader:new rre,urlStorage:Hee?new Wee:new Gee,fingerprint:gj}),are=function(r){kor(t,r);var e=jor(t);function t(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Ior(this,t),o=ap(ap({},KS),o),e.call(this,i,o)}return n(t,"Upload"),qor(t,null,[{key:"terminate",value:n(function(o,a,u){return a=ap(ap({},KS),a),HS.terminate(o,a,u)},"terminate")}]),t}(HS),ore=window,xor=ore.XMLHttpRequest,ire=ore.Blob,INr=xor&&ire&&typeof ire.prototype.slice=="function";function Dor(){return typeof window!="undefined"&&(typeof window.PhoneGap!="undefined"||typeof window.Cordova!="undefined"||typeof window.cordova!="undefined")}n(Dor,"isCordova");function Mor(){return typeof navigator!="undefined"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative"}n(Mor,"isReactNative");function Sj(r){return function(e,t){if(Dor()||Mor())return KS.fingerprint(e,t);var i=["tus",r.id,t.endpoint].join("-");return Promise.resolve(i)}}n(Sj,"getFingerprint");function pl(r){"@babel/helpers - typeof";return pl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pl(r)}n(pl,"_typeof");function sre(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(sre,"ownKeys");function at(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?sre(Object(t),!0).forEach(function(i){Uor(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):sre(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(at,"_objectSpread");function Uor(r,e,t){return e=pre(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(Uor,"_defineProperty");function ky(){"use strict";ky=n(function(){return r},"_regeneratorRuntime");var r={},e=Object.prototype,t=e.hasOwnProperty,i=Object.defineProperty||function(p,s,f){p[s]=f.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(p,s,f){return Object.defineProperty(p,s,{value:f,enumerable:!0,configurable:!0,writable:!0}),p[s]}n(l,"define");try{l({},"")}catch(p){l=n(function(f,v,g){return f[v]=g},"define")}function d(p,s,f,v){var g=s&&s.prototype instanceof b?s:b,h=Object.create(g.prototype),O=new V(v||[]);return i(h,"_invoke",{value:U(p,f,O)}),h}n(d,"wrap");function y(p,s,f){try{return{type:"normal",arg:p.call(s,f)}}catch(v){return{type:"throw",arg:v}}}n(y,"tryCatch"),r.wrap=d;var m={};function b(){}n(b,"Generator");function w(){}n(w,"GeneratorFunction");function S(){}n(S,"GeneratorFunctionPrototype");var P={};l(P,a,function(){return this});var R=Object.getPrototypeOf,I=R&&R(R(W([])));I&&I!==e&&t.call(I,a)&&(P=I);var T=S.prototype=b.prototype=Object.create(P);function F(p){["next","throw","return"].forEach(function(s){l(p,s,function(f){return this._invoke(s,f)})})}n(F,"defineIteratorMethods");function k(p,s){function f(g,h,O,E){var A=y(p[g],p,h);if(A.type!=="throw"){var C=A.arg,N=C.value;return N&&pl(N)=="object"&&t.call(N,"__await")?s.resolve(N.__await).then(function(M){f("next",M,O,E)},function(M){f("throw",M,O,E)}):s.resolve(N).then(function(M){C.value=M,O(C)},function(M){return f("throw",M,O,E)})}E(A.arg)}n(f,"invoke");var v;i(this,"_invoke",{value:n(function(h,O){function E(){return new s(function(A,C){f(h,O,A,C)})}return n(E,"callInvokeWithMethodAndArg"),v=v?v.then(E,E):E()},"value")})}n(k,"AsyncIterator");function U(p,s,f){var v="suspendedStart";return function(g,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(g==="throw")throw h;return Y()}for(f.method=g,f.arg=h;;){var O=f.delegate;if(O){var E=D(O,f);if(E){if(E===m)continue;return E}}if(f.method==="next")f.sent=f._sent=f.arg;else if(f.method==="throw"){if(v==="suspendedStart")throw v="completed",f.arg;f.dispatchException(f.arg)}else f.method==="return"&&f.abrupt("return",f.arg);v="executing";var A=y(p,s,f);if(A.type==="normal"){if(v=f.done?"completed":"suspendedYield",A.arg===m)continue;return{value:A.arg,done:f.done}}A.type==="throw"&&(v="completed",f.method="throw",f.arg=A.arg)}}}n(U,"makeInvokeMethod");function D(p,s){var f=s.method,v=p.iterator[f];if(v===void 0)return s.delegate=null,f==="throw"&&p.iterator.return&&(s.method="return",s.arg=void 0,D(p,s),s.method==="throw")||f!=="return"&&(s.method="throw",s.arg=new TypeError("The iterator does not provide a '"+f+"' method")),m;var g=y(v,p.iterator,s.arg);if(g.type==="throw")return s.method="throw",s.arg=g.arg,s.delegate=null,m;var h=g.arg;return h?h.done?(s[p.resultName]=h.value,s.next=p.nextLoc,s.method!=="return"&&(s.method="next",s.arg=void 0),s.delegate=null,m):h:(s.method="throw",s.arg=new TypeError("iterator result is not an object"),s.delegate=null,m)}n(D,"maybeInvokeDelegate");function H(p){var s={tryLoc:p[0]};1 in p&&(s.catchLoc=p[1]),2 in p&&(s.finallyLoc=p[2],s.afterLoc=p[3]),this.tryEntries.push(s)}n(H,"pushTryEntry");function $(p){var s=p.completion||{};s.type="normal",delete s.arg,p.completion=s}n($,"resetTryEntry");function V(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(H,this),this.reset(!0)}n(V,"Context");function W(p){if(p){var s=p[a];if(s)return s.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var f=-1,v=n(function g(){for(;++f<p.length;)if(t.call(p,f))return g.value=p[f],g.done=!1,g;return g.value=void 0,g.done=!0,g},"next");return v.next=v}}return{next:Y}}n(W,"values");function Y(){return{value:void 0,done:!0}}return n(Y,"doneResult"),w.prototype=S,i(T,"constructor",{value:S,configurable:!0}),i(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),r.isGeneratorFunction=function(p){var s=typeof p=="function"&&p.constructor;return!!s&&(s===w||(s.displayName||s.name)==="GeneratorFunction")},r.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,S):(p.__proto__=S,l(p,c,"GeneratorFunction")),p.prototype=Object.create(T),p},r.awrap=function(p){return{__await:p}},F(k.prototype),l(k.prototype,u,function(){return this}),r.AsyncIterator=k,r.async=function(p,s,f,v,g){g===void 0&&(g=Promise);var h=new k(d(p,s,f,v),g);return r.isGeneratorFunction(s)?h:h.next().then(function(O){return O.done?O.value:h.next()})},F(T),l(T,c,"Generator"),l(T,a,function(){return this}),l(T,"toString",function(){return"[object Generator]"}),r.keys=function(p){var s=Object(p),f=[];for(var v in s)f.push(v);return f.reverse(),n(function g(){for(;f.length;){var h=f.pop();if(h in s)return g.value=h,g.done=!1,g}return g.done=!0,g},"next")},r.values=W,V.prototype={constructor:V,reset:n(function(s){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach($),!s)for(var f in this)f.charAt(0)==="t"&&t.call(this,f)&&!isNaN(+f.slice(1))&&(this[f]=void 0)},"reset"),stop:n(function(){this.done=!0;var s=this.tryEntries[0].completion;if(s.type==="throw")throw s.arg;return this.rval},"stop"),dispatchException:n(function(s){if(this.done)throw s;var f=this;function v(C,N){return O.type="throw",O.arg=s,f.next=C,N&&(f.method="next",f.arg=void 0),!!N}n(v,"handle");for(var g=this.tryEntries.length-1;g>=0;--g){var h=this.tryEntries[g],O=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var E=t.call(h,"catchLoc"),A=t.call(h,"finallyLoc");if(E&&A){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(E){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!A)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},"dispatchException"),abrupt:n(function(s,f){for(var v=this.tryEntries.length-1;v>=0;--v){var g=this.tryEntries[v];if(g.tryLoc<=this.prev&&t.call(g,"finallyLoc")&&this.prev<g.finallyLoc){var h=g;break}}h&&(s==="break"||s==="continue")&&h.tryLoc<=f&&f<=h.finallyLoc&&(h=null);var O=h?h.completion:{};return O.type=s,O.arg=f,h?(this.method="next",this.next=h.finallyLoc,m):this.complete(O)},"abrupt"),complete:n(function(s,f){if(s.type==="throw")throw s.arg;return s.type==="break"||s.type==="continue"?this.next=s.arg:s.type==="return"?(this.rval=this.arg=s.arg,this.method="return",this.next="end"):s.type==="normal"&&f&&(this.next=f),m},"complete"),finish:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.finallyLoc===s)return this.complete(v.completion,v.afterLoc),$(v),m}},"finish"),catch:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.tryLoc===s){var g=v.completion;if(g.type==="throw"){var h=g.arg;$(v)}return h}}throw new Error("illegal catch attempt")},"_catch"),delegateYield:n(function(s,f,v){return this.delegate={iterator:W(s),resultName:f,nextLoc:v},this.method==="next"&&(this.arg=void 0),m},"delegateYield")},r}n(ky,"_regeneratorRuntime");function lre(r,e,t,i,o,a,u){try{var c=r[a](u),l=c.value}catch(d){t(d);return}c.done?e(l):Promise.resolve(l).then(i,o)}n(lre,"asyncGeneratorStep");function fre(r){return function(){var e=this,t=arguments;return new Promise(function(i,o){var a=r.apply(e,t);function u(l){lre(a,i,o,u,c,"next",l)}n(u,"_next");function c(l){lre(a,i,o,u,c,"throw",l)}n(c,"_throw"),u(void 0)})}}n(fre,"_asyncToGenerator");function Bor(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(Bor,"_classCallCheck");function cre(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,pre(i.key),i)}}n(cre,"_defineProperties");function $or(r,e,t){return e&&cre(r.prototype,e),t&&cre(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n($or,"_createClass");function pre(r){var e=Gor(r,"string");return pl(e)==="symbol"?e:String(e)}n(pre,"_toPropertyKey");function Gor(r,e){if(pl(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(pl(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(Gor,"_toPrimitive");function zor(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&Pj(r,e)}n(zor,"_inherits");function Pj(r,e){return Pj=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),Pj(r,e)}n(Pj,"_setPrototypeOf");function Hor(r){var e=Vor();return n(function(){var i=YS(r),o;if(e){var a=YS(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return Wor(this,o)},"_createSuperInternal")}n(Hor,"_createSuper");function Wor(r,e){if(e&&(pl(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return po(r)}n(Wor,"_possibleConstructorReturn");function po(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(po,"_assertThisInitialized");function Vor(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(Vor,"_isNativeReflectConstruct");function YS(r){return YS=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),YS(r)}n(YS,"_getPrototypeOf");function fl(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}n(fl,"_classPrivateFieldLooseBase");var Kor=0;function jy(r){return"__private_"+Kor+++"_"+r}n(jy,"_classPrivateFieldLooseKey");var Yor={version:"3.5.0"},dre={endpoint:"",uploadUrl:null,metadata:{},uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,overridePatchMethod:!1,headers:{},addRequestId:!1,chunkSize:1/0,retryDelays:[100,1e3,3e3,5e3],parallelUploads:1,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1},qy=jy("retryDelayIterator"),_j=jy("uploadLocalFile"),Ej=jy("getCompanionClientArgs"),Oj=jy("uploadFiles"),Iy=jy("handleUpload"),op=function(r){zor(t,r);var e=Hor(t);function t(i,o){var a;Bor(this,t);var u,c;a=e.call(this,i,o),Object.defineProperty(po(a),Oj,{value:Jor}),Object.defineProperty(po(a),Ej,{value:Qor}),Object.defineProperty(po(a),_j,{value:Xor}),Object.defineProperty(po(a),qy,{writable:!0,value:void 0}),Object.defineProperty(po(a),Iy,{writable:!0,value:function(){var d=fre(ky().mark(n(function m(b){var w;return ky().wrap(n(function(P){for(;;)switch(P.prev=P.next){case 0:if(b.length!==0){P.next=3;break}return a.uppy.log("[Tus] No files to upload"),P.abrupt("return");case 3:return a.opts.limit===0&&a.uppy.log("[Tus] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/tus/#limit-0","warning"),a.uppy.log("[Tus] Uploading..."),w=a.uppy.getFilesByIds(b),P.next=8,fl(po(a),Oj)[Oj](w);case 8:case"end":return P.stop()}},"_callee$"),m)},"_callee")));function y(m){return d.apply(this,arguments)}return n(y,"value"),y}()}),a.type="uploader",a.id=a.opts.id||"Tus",a.title="Tus";var l={limit:20,retryDelays:dre.retryDelays,withCredentials:!1};if(a.opts=at(at({},l),o),(o==null?void 0:o.allowedMetaFields)===void 0&&"metaFields"in a.opts)throw new Error("The `metaFields` option has been renamed to `allowedMetaFields`.");if("autoRetry"in o)throw new Error("The `autoRetry` option was deprecated and has been removed.");return a.requests=(u=a.opts.rateLimitedQueue)!=null?u:new oi(a.opts.limit),fl(po(a),qy)[qy]=(c=a.opts.retryDelays)==null?void 0:c.values(),a.uploaders=Object.create(null),a.uploaderEvents=Object.create(null),a.handleResetProgress=a.handleResetProgress.bind(po(a)),a}return n(t,"Tus"),$or(t,[{key:"handleResetProgress",value:n(function(){var o=at({},this.uppy.getState().files);Object.keys(o).forEach(function(a){if(o[a].tus&&o[a].tus.uploadUrl){var u=at({},o[a].tus);delete u.uploadUrl,o[a]=at(at({},o[a]),{},{tus:u})}}),this.uppy.setState({files:o})},"handleResetProgress")},{key:"resetUploaderReferences",value:n(function(o,a){if(a===void 0&&(a={}),this.uploaders[o]){var u=this.uploaders[o];u.abort(),a.abort&&u.abort(!0),this.uploaders[o]=null}this.uploaderEvents[o]&&(this.uploaderEvents[o].remove(),this.uploaderEvents[o]=null)},"resetUploaderReferences")},{key:"onReceiveUploadUrl",value:n(function(o,a){var u=this.uppy.getFile(o.id);u&&(!u.tus||u.tus.uploadUrl!==a)&&(this.uppy.log("[Tus] Storing upload url"),this.uppy.setFileState(u.id,{tus:at(at({},u.tus),{},{uploadUrl:a})}))},"onReceiveUploadUrl")},{key:"install",value:n(function(){this.uppy.setState({capabilities:at(at({},this.uppy.getState().capabilities),{},{resumableUploads:!0})}),this.uppy.addUploader(fl(this,Iy)[Iy]),this.uppy.on("reset-progress",this.handleResetProgress)},"install")},{key:"uninstall",value:n(function(){this.uppy.setState({capabilities:at(at({},this.uppy.getState().capabilities),{},{resumableUploads:!1})}),this.uppy.removeUploader(fl(this,Iy)[Iy])},"uninstall")}]),t}(fr);function Xor(r){var e=this,t=this;return this.resetUploaderReferences(r.id),new Promise(function(i,o){var a,u,c,l=at(at({},e.opts),r.tus||{});typeof l.headers=="function"&&(l.headers=l.headers(r));var d=at(at({},dre),l);d.fingerprint=Sj(r),d.onBeforeRequest=function(P){var R=P.getUnderlyingObject();R.withCredentials=!!l.withCredentials;var I;if(typeof l.onBeforeRequest=="function"&&(I=l.onBeforeRequest(P,r)),En(a,"shouldBeRequeued")){if(!a.shouldBeRequeued)return Promise.reject();var T,F=new Promise(function(k){T=k});return a=e.requests.run(function(){return r.isPaused&&a.abort(),T(),function(){}}),Promise.all([F,I])}return I},d.onError=function(P){var R;e.uppy.log(P);var I=P.originalRequest?P.originalRequest.getUnderlyingObject():null;sl(I)&&(P=new _i(P,I)),e.resetUploaderReferences(r.id),(R=a)==null||R.abort(),e.uppy.emit("upload-error",r,P),typeof l.onError=="function"&&l.onError(P),o(P)},d.onProgress=function(P,R){e.onReceiveUploadUrl(r,c.url),typeof l.onProgress=="function"&&l.onProgress(P,R),e.uppy.emit("upload-progress",r,{uploader:e,bytesUploaded:P,bytesTotal:R})},d.onSuccess=function(){var P={uploadURL:c.url};e.resetUploaderReferences(r.id),a.done(),e.uppy.emit("upload-success",r,P),c.url&&e.uppy.log("Download ".concat(c.file.name," from ").concat(c.url)),typeof l.onSuccess=="function"&&l.onSuccess(),i(c)};var y=n(function(R){var I,T=R==null||(I=R.originalResponse)==null?void 0:I.getStatus();if(T===429){if(!e.requests.isPaused){var F,k=(F=fl(e,qy)[qy])==null?void 0:F.next();if(k==null||k.done)return!1;e.requests.rateLimit(k.value)}}else{if(T>400&&T<500&&T!==409&&T!==423)return!1;typeof navigator!="undefined"&&navigator.onLine===!1&&(e.requests.isPaused||(e.requests.pause(),window.addEventListener("online",function(){e.requests.resume()},{once:!0})))}return a.abort(),a={shouldBeRequeued:!0,abort:n(function(){this.shouldBeRequeued=!1},"abort"),done:n(function(){throw new Error("Cannot mark a queued request as done: this indicates a bug")},"done"),fn:n(function(){throw new Error("Cannot run a queued request: this indicates a bug")},"fn")},!0},"defaultOnShouldRetry");l.onShouldRetry!=null?d.onShouldRetry=function(){for(var P=arguments.length,R=new Array(P),I=0;I<P;I++)R[I]=arguments[I];return l.onShouldRetry.apply(l,R.concat([y]))}:d.onShouldRetry=y;var m=n(function(R,I,T){En(R,I)&&!En(R,T)&&(R[T]=R[I])},"copyProp"),b={},w=Array.isArray(l.allowedMetaFields)?l.allowedMetaFields:Object.keys(r.meta);w.forEach(function(P){b[P]=r.meta[P]}),m(b,"type","filetype"),m(b,"name","filename"),d.metadata=b,c=new are(r.data,d),e.uploaders[r.id]=c;var S=new fu(e.uppy);e.uploaderEvents[r.id]=S,u=n(function(){return r.isPaused||c.start(),function(){}},"qRequest"),c.findPreviousUploads().then(function(P){var R=P[0];R&&(e.uppy.log("[Tus] Resuming upload of ".concat(r.id," started at ").concat(R.creationTime)),c.resumeFromPreviousUpload(R))}),a=e.requests.run(u),S.onFileRemove(r.id,function(P){a.abort(),e.resetUploaderReferences(r.id,{abort:!!c.url}),i("upload ".concat(P," was removed"))}),S.onPause(r.id,function(P){a.abort(),P?c.abort():a=e.requests.run(u)}),S.onPauseAll(r.id,function(){a.abort(),c.abort()}),S.onCancelAll(r.id,function(P){var R=P===void 0?{}:P,I=R.reason;I==="user"&&(a.abort(),t.resetUploaderReferences(r.id,{abort:!!c.url})),i("upload ".concat(r.id," was canceled"))}),S.onResumeAll(r.id,function(){a.abort(),r.error&&c.abort(),a=e.requests.run(u)})}).catch(function(i){throw e.uppy.emit("upload-error",r,i),i})}n(Xor,"_uploadLocalFile2");function Qor(r){var e=at({},this.opts);return r.tus&&Object.assign(e,r.tus),at(at({},r.remote.body),{},{endpoint:e.endpoint,uploadUrl:e.uploadUrl,protocol:"tus",size:r.data.size,headers:e.headers,metadata:r.meta})}n(Qor,"_getCompanionClientArgs2");function Jor(r){return Tj.apply(this,arguments)}n(Jor,"_uploadFiles2");function Tj(){return Tj=fre(ky().mark(n(function r(e){var t=this,i,o;return ky().wrap(n(function(u){for(;;)switch(u.prev=u.next){case 0:return i=du(e),o=hu(i),this.uppy.emit("upload-start",o),u.next=5,Promise.allSettled(i.map(function(c,l){var d=l+1,y=e.length;if(c.isRemote){var m=n(function(){return t.requests},"getQueue"),b=new AbortController,w=n(function(R){R.id===c.id&&b.abort()},"removedHandler");t.uppy.on("file-removed",w);var S=t.uppy.getRequestClientForFile(c).uploadRemoteFile(c,fl(t,Ej)[Ej](c),{signal:b.signal,getQueue:m});return t.requests.wrapSyncFunction(function(){t.uppy.off("file-removed",w)},{priority:-1})(),S}return fl(t,_j)[_j](c,d,y)}));case 5:case"end":return u.stop()}},"_callee2$"),r,this)},"_callee2"))),Tj.apply(this,arguments)}n(Tj,"_uploadFiles3");op.VERSION=Yor.version;var gre=Ce(Aj(),1);function vl(r){"@babel/helpers - typeof";return vl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vl(r)}n(vl,"_typeof");function jj(){"use strict";jj=n(function(){return r},"_regeneratorRuntime");var r={},e=Object.prototype,t=e.hasOwnProperty,i=Object.defineProperty||function(p,s,f){p[s]=f.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(p,s,f){return Object.defineProperty(p,s,{value:f,enumerable:!0,configurable:!0,writable:!0}),p[s]}n(l,"define");try{l({},"")}catch(p){l=n(function(f,v,g){return f[v]=g},"define")}function d(p,s,f,v){var g=s&&s.prototype instanceof b?s:b,h=Object.create(g.prototype),O=new V(v||[]);return i(h,"_invoke",{value:U(p,f,O)}),h}n(d,"wrap");function y(p,s,f){try{return{type:"normal",arg:p.call(s,f)}}catch(v){return{type:"throw",arg:v}}}n(y,"tryCatch"),r.wrap=d;var m={};function b(){}n(b,"Generator");function w(){}n(w,"GeneratorFunction");function S(){}n(S,"GeneratorFunctionPrototype");var P={};l(P,a,function(){return this});var R=Object.getPrototypeOf,I=R&&R(R(W([])));I&&I!==e&&t.call(I,a)&&(P=I);var T=S.prototype=b.prototype=Object.create(P);function F(p){["next","throw","return"].forEach(function(s){l(p,s,function(f){return this._invoke(s,f)})})}n(F,"defineIteratorMethods");function k(p,s){function f(g,h,O,E){var A=y(p[g],p,h);if(A.type!=="throw"){var C=A.arg,N=C.value;return N&&vl(N)=="object"&&t.call(N,"__await")?s.resolve(N.__await).then(function(M){f("next",M,O,E)},function(M){f("throw",M,O,E)}):s.resolve(N).then(function(M){C.value=M,O(C)},function(M){return f("throw",M,O,E)})}E(A.arg)}n(f,"invoke");var v;i(this,"_invoke",{value:n(function(h,O){function E(){return new s(function(A,C){f(h,O,A,C)})}return n(E,"callInvokeWithMethodAndArg"),v=v?v.then(E,E):E()},"value")})}n(k,"AsyncIterator");function U(p,s,f){var v="suspendedStart";return function(g,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(g==="throw")throw h;return Y()}for(f.method=g,f.arg=h;;){var O=f.delegate;if(O){var E=D(O,f);if(E){if(E===m)continue;return E}}if(f.method==="next")f.sent=f._sent=f.arg;else if(f.method==="throw"){if(v==="suspendedStart")throw v="completed",f.arg;f.dispatchException(f.arg)}else f.method==="return"&&f.abrupt("return",f.arg);v="executing";var A=y(p,s,f);if(A.type==="normal"){if(v=f.done?"completed":"suspendedYield",A.arg===m)continue;return{value:A.arg,done:f.done}}A.type==="throw"&&(v="completed",f.method="throw",f.arg=A.arg)}}}n(U,"makeInvokeMethod");function D(p,s){var f=s.method,v=p.iterator[f];if(v===void 0)return s.delegate=null,f==="throw"&&p.iterator.return&&(s.method="return",s.arg=void 0,D(p,s),s.method==="throw")||f!=="return"&&(s.method="throw",s.arg=new TypeError("The iterator does not provide a '"+f+"' method")),m;var g=y(v,p.iterator,s.arg);if(g.type==="throw")return s.method="throw",s.arg=g.arg,s.delegate=null,m;var h=g.arg;return h?h.done?(s[p.resultName]=h.value,s.next=p.nextLoc,s.method!=="return"&&(s.method="next",s.arg=void 0),s.delegate=null,m):h:(s.method="throw",s.arg=new TypeError("iterator result is not an object"),s.delegate=null,m)}n(D,"maybeInvokeDelegate");function H(p){var s={tryLoc:p[0]};1 in p&&(s.catchLoc=p[1]),2 in p&&(s.finallyLoc=p[2],s.afterLoc=p[3]),this.tryEntries.push(s)}n(H,"pushTryEntry");function $(p){var s=p.completion||{};s.type="normal",delete s.arg,p.completion=s}n($,"resetTryEntry");function V(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(H,this),this.reset(!0)}n(V,"Context");function W(p){if(p){var s=p[a];if(s)return s.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var f=-1,v=n(function g(){for(;++f<p.length;)if(t.call(p,f))return g.value=p[f],g.done=!1,g;return g.value=void 0,g.done=!0,g},"next");return v.next=v}}return{next:Y}}n(W,"values");function Y(){return{value:void 0,done:!0}}return n(Y,"doneResult"),w.prototype=S,i(T,"constructor",{value:S,configurable:!0}),i(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),r.isGeneratorFunction=function(p){var s=typeof p=="function"&&p.constructor;return!!s&&(s===w||(s.displayName||s.name)==="GeneratorFunction")},r.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,S):(p.__proto__=S,l(p,c,"GeneratorFunction")),p.prototype=Object.create(T),p},r.awrap=function(p){return{__await:p}},F(k.prototype),l(k.prototype,u,function(){return this}),r.AsyncIterator=k,r.async=function(p,s,f,v,g){g===void 0&&(g=Promise);var h=new k(d(p,s,f,v),g);return r.isGeneratorFunction(s)?h:h.next().then(function(O){return O.done?O.value:h.next()})},F(T),l(T,c,"Generator"),l(T,a,function(){return this}),l(T,"toString",function(){return"[object Generator]"}),r.keys=function(p){var s=Object(p),f=[];for(var v in s)f.push(v);return f.reverse(),n(function g(){for(;f.length;){var h=f.pop();if(h in s)return g.value=h,g.done=!1,g}return g.done=!0,g},"next")},r.values=W,V.prototype={constructor:V,reset:n(function(s){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach($),!s)for(var f in this)f.charAt(0)==="t"&&t.call(this,f)&&!isNaN(+f.slice(1))&&(this[f]=void 0)},"reset"),stop:n(function(){this.done=!0;var s=this.tryEntries[0].completion;if(s.type==="throw")throw s.arg;return this.rval},"stop"),dispatchException:n(function(s){if(this.done)throw s;var f=this;function v(C,N){return O.type="throw",O.arg=s,f.next=C,N&&(f.method="next",f.arg=void 0),!!N}n(v,"handle");for(var g=this.tryEntries.length-1;g>=0;--g){var h=this.tryEntries[g],O=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var E=t.call(h,"catchLoc"),A=t.call(h,"finallyLoc");if(E&&A){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(E){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!A)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},"dispatchException"),abrupt:n(function(s,f){for(var v=this.tryEntries.length-1;v>=0;--v){var g=this.tryEntries[v];if(g.tryLoc<=this.prev&&t.call(g,"finallyLoc")&&this.prev<g.finallyLoc){var h=g;break}}h&&(s==="break"||s==="continue")&&h.tryLoc<=f&&f<=h.finallyLoc&&(h=null);var O=h?h.completion:{};return O.type=s,O.arg=f,h?(this.method="next",this.next=h.finallyLoc,m):this.complete(O)},"abrupt"),complete:n(function(s,f){if(s.type==="throw")throw s.arg;return s.type==="break"||s.type==="continue"?this.next=s.arg:s.type==="return"?(this.rval=this.arg=s.arg,this.method="return",this.next="end"):s.type==="normal"&&f&&(this.next=f),m},"complete"),finish:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.finallyLoc===s)return this.complete(v.completion,v.afterLoc),$(v),m}},"finish"),catch:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.tryLoc===s){var g=v.completion;if(g.type==="throw"){var h=g.arg;$(v)}return h}}throw new Error("illegal catch attempt")},"_catch"),delegateYield:n(function(s,f,v){return this.delegate={iterator:W(s),resultName:f,nextLoc:v},this.method==="next"&&(this.arg=void 0),m},"delegateYield")},r}n(jj,"_regeneratorRuntime");function hre(r,e,t,i,o,a,u){try{var c=r[a](u),l=c.value}catch(d){t(d);return}c.done?e(l):Promise.resolve(l).then(i,o)}n(hre,"asyncGeneratorStep");function eur(r){return function(){var e=this,t=arguments;return new Promise(function(i,o){var a=r.apply(e,t);function u(l){hre(a,i,o,u,c,"next",l)}n(u,"_next");function c(l){hre(a,i,o,u,c,"throw",l)}n(c,"_throw"),u(void 0)})}}n(eur,"_asyncToGenerator");function rur(r,e){return aur(r)||iur(r,e)||nur(r,e)||tur()}n(rur,"_slicedToArray");function tur(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n(tur,"_nonIterableRest");function nur(r,e){if(r){if(typeof r=="string")return vre(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return vre(r,e)}}n(nur,"_unsupportedIterableToArray");function vre(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=r[t];return i}n(vre,"_arrayLikeToArray");function iur(r,e){var t=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var i,o,a,u,c=[],l=!0,d=!1;try{if(a=(t=t.call(r)).next,e===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(i=a.call(t)).done)&&(c.push(i.value),c.length!==e);l=!0);}catch(y){d=!0,o=y}finally{try{if(!l&&t.return!=null&&(u=t.return(),Object(u)!==u))return}finally{if(d)throw o}}return c}}n(iur,"_iterableToArrayLimit");function aur(r){if(Array.isArray(r))return r}n(aur,"_arrayWithHoles");function our(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(our,"_classCallCheck");function yre(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,sur(i.key),i)}}n(yre,"_defineProperties");function uur(r,e,t){return e&&yre(r.prototype,e),t&&yre(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(uur,"_createClass");function sur(r){var e=lur(r,"string");return vl(e)==="symbol"?e:String(e)}n(sur,"_toPropertyKey");function lur(r,e){if(vl(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(vl(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(lur,"_toPrimitive");function cur(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&Fj(r,e)}n(cur,"_inherits");function Fj(r,e){return Fj=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),Fj(r,e)}n(Fj,"_setPrototypeOf");function fur(r){var e=dur();return n(function(){var i=QS(r),o;if(e){var a=QS(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return pur(this,o)},"_createSuperInternal")}n(fur,"_createSuper");function pur(r,e){if(e&&(vl(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $n(r)}n(pur,"_possibleConstructorReturn");function $n(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n($n,"_assertThisInitialized");function dur(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(dur,"_isNativeReflectConstruct");function QS(r){return QS=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),QS(r)}n(QS,"_getPrototypeOf");function Ye(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}n(Ye,"_classPrivateFieldLooseBase");var hur=0;function ya(r){return"__private_"+hur+++"_"+r}n(ya,"_classPrivateFieldLooseKey");var vur="ASSEMBLY_UPLOADING",Cj="ASSEMBLY_EXECUTING",Lj="ASSEMBLY_COMPLETED",mre=[vur,Cj,Lj];function XS(r,e){return mre.indexOf(r)>=mre.indexOf(e)}n(XS,"isStatus");var hl=ya("rateLimitedQueue"),Fy=ya("fetchWithNetworkError"),dl=ya("previousFetchStatusStillPending"),Dr=ya("sse"),Nj=ya("onFinished"),Ij=ya("connectServerSentEvents"),Ci=ya("onError"),qj=ya("beginPolling"),ho=ya("fetchStatus"),kj=ya("diffStatus"),yur=function(r){cur(t,r);var e=fur(t);function t(i,o){var a;return our(this,t),a=e.call(this),Object.defineProperty($n(a),kj,{value:Our}),Object.defineProperty($n(a),ho,{value:Sur}),Object.defineProperty($n(a),qj,{value:wur}),Object.defineProperty($n(a),Ci,{value:bur}),Object.defineProperty($n(a),Ij,{value:gur}),Object.defineProperty($n(a),Nj,{value:mur}),Object.defineProperty($n(a),hl,{writable:!0,value:void 0}),Object.defineProperty($n(a),Fy,{writable:!0,value:void 0}),Object.defineProperty($n(a),dl,{writable:!0,value:!1}),Object.defineProperty($n(a),Dr,{writable:!0,value:void 0}),a.status=i,a.pollInterval=null,a.closed=!1,Ye($n(a),hl)[hl]=o,Ye($n(a),Fy)[Fy]=o.wrapPromiseFunction(ys),a}return n(t,"TransloaditAssembly"),uur(t,[{key:"connect",value:n(function(){Ye(this,Ij)[Ij](),Ye(this,qj)[qj]()},"connect")},{key:"update",value:n(function(){return Ye(this,ho)[ho]({diff:!0})},"update")},{key:"updateStatus",value:n(function(o){Ye(this,kj)[kj](this.status,o),this.status=o},"updateStatus")},{key:"close",value:n(function(){this.closed=!0,Ye(this,Dr)[Dr]&&(Ye(this,Dr)[Dr].close(),Ye(this,Dr)[Dr]=null),clearInterval(this.pollInterval),this.pollInterval=null},"close")}]),t}(gre.default);function mur(){this.emit("finished"),this.close()}n(mur,"_onFinished2");function gur(){var r=this;Ye(this,Dr)[Dr]=new EventSource("".concat(this.status.websocket_url,"?assembly=").concat(this.status.assembly_id)),Ye(this,Dr)[Dr].addEventListener("open",function(){r.socket&&(r.socket.disconnect(),r.socket=null),clearInterval(r.pollInterval),r.pollInterval=null}),Ye(this,Dr)[Dr].addEventListener("message",function(e){e.data==="assembly_finished"&&Ye(r,Nj)[Nj](),e.data==="assembly_uploading_finished"&&r.emit("executing"),e.data==="assembly_upload_meta_data_extracted"&&(r.emit("metadata"),Ye(r,ho)[ho]({diff:!1}))}),Ye(this,Dr)[Dr].addEventListener("assembly_upload_finished",function(e){var t=JSON.parse(e.data);r.emit("upload",t),r.status.uploads.push(t)}),Ye(this,Dr)[Dr].addEventListener("assembly_result_finished",function(e){var t,i,o=JSON.parse(e.data),a=rur(o,2),u=a[0],c=a[1];r.emit("result",u,c),((i=(t=r.status.results)[u])!=null?i:t[u]=[]).push(c)}),Ye(this,Dr)[Dr].addEventListener("assembly_execution_progress",function(e){var t=JSON.parse(e.data);r.emit("execution-progress",t)}),Ye(this,Dr)[Dr].addEventListener("assembly_error",function(e){try{Ye(r,Ci)[Ci](JSON.parse(e.data))}catch(t){Ye(r,Ci)[Ci]({msg:e.data})}Ye(r,ho)[ho]({diff:!1})})}n(gur,"_connectServerSentEvents2");function bur(r){this.emit("error",Object.assign(new Error(r.msg),r)),this.close()}n(bur,"_onError2");function wur(){var r=this;this.pollInterval=setInterval(function(){Ye(r,ho)[ho]()},2e3)}n(wur,"_beginPolling2");function Sur(r){return xj.apply(this,arguments)}n(Sur,"_fetchStatus2");function xj(){return xj=eur(jj().mark(n(function r(e){var t,i,o,a,u;return jj().wrap(n(function(l){for(;;)switch(l.prev=l.next){case 0:if(t=e===void 0?{}:e,i=t.diff,o=i===void 0?!0:i,!(this.closed||Ye(this,hl)[hl].isPaused||Ye(this,dl)[dl])){l.next=3;break}return l.abrupt("return");case 3:return l.prev=3,Ye(this,dl)[dl]=!0,l.next=7,Ye(this,Fy)[Fy](this.status.assembly_ssl_url);case 7:if(a=l.sent,Ye(this,dl)[dl]=!1,!this.closed){l.next=11;break}return l.abrupt("return");case 11:if(a.status!==429){l.next=14;break}return Ye(this,hl)[hl].rateLimit(2e3),l.abrupt("return");case 14:if(a.ok){l.next=17;break}return Ye(this,Ci)[Ci](new _i(a.statusText)),l.abrupt("return");case 17:return l.next=19,a.json();case 19:if(u=l.sent,!this.closed){l.next=22;break}return l.abrupt("return");case 22:this.emit("status",u),o?this.updateStatus(u):this.status=u,l.next=29;break;case 26:l.prev=26,l.t0=l.catch(3),Ye(this,Ci)[Ci](l.t0);case 29:case"end":return l.stop()}},"_callee$"),r,this,[[3,26]])},"_callee"))),xj.apply(this,arguments)}n(xj,"_fetchStatus3");function Our(r,e){var t=this,i=r.ok,o=e.ok;if(e.error&&!r.error)return Ye(this,Ci)[Ci](e);var a=XS(o,Cj)&&!XS(i,Cj);a&&this.emit("executing"),Object.keys(e.uploads).filter(function(u){return!En(r.uploads,u)}).forEach(function(u){t.emit("upload",e.uploads[u])}),a&&this.emit("metadata"),Object.keys(e.results).forEach(function(u){var c=e.results[u],l=r.results[u];c.filter(function(d){return!l||!l.some(function(y){return y.id===d.id})}).forEach(function(d){t.emit("result",u,d)})}),XS(o,Lj)&&!XS(i,Lj)&&this.emit("finished")}n(Our,"_diffStatus2");var Dj=yur;function Ly(r){"@babel/helpers - typeof";return Ly=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ly(r)}n(Ly,"_typeof");function Pur(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(Pur,"_classCallCheck");function bre(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,Eur(i.key),i)}}n(bre,"_defineProperties");function _ur(r,e,t){return e&&bre(r.prototype,e),t&&bre(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(_ur,"_createClass");function Eur(r){var e=Tur(r,"string");return Ly(e)==="symbol"?e:String(e)}n(Eur,"_toPropertyKey");function Tur(r,e){if(Ly(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Ly(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(Tur,"_toPrimitive");function Ir(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}n(Ir,"_classPrivateFieldLooseBase");var Rur=0;function JS(r){return"__private_"+Rur+++"_"+r}n(JS,"_classPrivateFieldLooseKey");var wre="/assemblies",Yt=JS("headers"),Cy=JS("fetchWithNetworkError"),Et=JS("fetchJSON"),Gn=JS("reportError"),Sre=function(){function r(e){var t=this;Pur(this,r),e===void 0&&(e={}),Object.defineProperty(this,Et,{value:Aur}),Object.defineProperty(this,Yt,{writable:!0,value:{}}),Object.defineProperty(this,Cy,{writable:!0,value:void 0}),Object.defineProperty(this,Gn,{writable:!0,value:n(function(o,a){if(t.opts.errorReporting===!1)throw o;var u={type:a.type};throw a.assembly&&(u.assembly=a.assembly.assembly_id,u.instance=a.assembly.instance),a.url&&(u.endpoint=a.url),t.submitError(o,u).catch(function(){}),o},"value")}),this.opts=e,this.opts.client!=null&&(Ir(this,Yt)[Yt]["Transloadit-Client"]=this.opts.client),Ir(this,Cy)[Cy]=this.opts.rateLimitedQueue.wrapPromiseFunction(ys)}return n(r,"Client"),_ur(r,[{key:"createAssembly",value:n(function(t){var i=this,o=t.params,a=t.fields,u=t.signature,c=t.expectedFiles,l=new FormData;l.append("params",typeof o=="string"?o:JSON.stringify(o)),u&&l.append("signature",u),Object.keys(a).forEach(function(y){l.append(y,a[y])}),l.append("num_expected_upload_files",c);var d=new URL(wre,"".concat(this.opts.service)).href;return Ir(this,Et)[Et](d,{method:"POST",headers:Ir(this,Yt)[Yt],body:l}).catch(function(y){return Ir(i,Gn)[Gn](y,{url:d,type:"API_ERROR"})})},"createAssembly")},{key:"reserveFile",value:n(function(t,i){var o=this,a=encodeURIComponent(i.size),u="".concat(t.assembly_ssl_url,"/reserve_file?size=").concat(a);return Ir(this,Et)[Et](u,{method:"POST",headers:Ir(this,Yt)[Yt]}).catch(function(c){return Ir(o,Gn)[Gn](c,{assembly:t,file:i,url:u,type:"API_ERROR"})})},"reserveFile")},{key:"addFile",value:n(function(t,i){var o=this;if(!i.uploadURL)return Promise.reject(new Error("File does not have an `uploadURL`."));var a=encodeURIComponent(i.size),u=encodeURIComponent(i.uploadURL),c=encodeURIComponent(i.name),l="file",d="size=".concat(a,"&filename=").concat(c,"&fieldname=").concat(l,"&s3Url=").concat(u),y="".concat(t.assembly_ssl_url,"/add_file?").concat(d);return Ir(this,Et)[Et](y,{method:"POST",headers:Ir(this,Yt)[Yt]}).catch(function(m){return Ir(o,Gn)[Gn](m,{assembly:t,file:i,url:y,type:"API_ERROR"})})},"addFile")},{key:"updateNumberOfFilesInAssembly",value:n(function(t,i){var o=this,a=new URL(t.assembly_ssl_url);a.pathname="/update_assemblies";var u=JSON.stringify({assembly_updates:[{assembly_id:t.assembly_id,num_expected_upload_files:i}]});return Ir(this,Et)[Et](a,{method:"POST",headers:Ir(this,Yt)[Yt],body:u}).catch(function(c){return Ir(o,Gn)[Gn](c,{url:a,type:"API_ERROR"})})},"updateNumberOfFilesInAssembly")},{key:"cancelAssembly",value:n(function(t){var i=this,o=t.assembly_ssl_url;return Ir(this,Et)[Et](o,{method:"DELETE",headers:Ir(this,Yt)[Yt]}).catch(function(a){return Ir(i,Gn)[Gn](a,{url:o,type:"API_ERROR"})})},"cancelAssembly")},{key:"getAssemblyStatus",value:n(function(t){var i=this;return Ir(this,Et)[Et](t,{headers:Ir(this,Yt)[Yt]}).catch(function(o){return Ir(i,Gn)[Gn](o,{url:t,type:"STATUS_ERROR"})})},"getAssemblyStatus")},{key:"submitError",value:n(function(t,i){var o=i===void 0?{}:i,a=o.endpoint,u=o.instance,c=o.assembly,l=t.details?"".concat(t.message," (").concat(t.details,")"):t.message;return Ir(this,Et)[Et]("https://transloaditstatus.com/client_error",{method:"POST",body:JSON.stringify({endpoint:a,instance:u,assembly_id:c,agent:typeof navigator!="undefined"?navigator.userAgent:"",client:this.opts.client,error:l})})},"submitError")}]),r}();function Aur(){for(var r,e=this,t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return(r=Ir(this,Cy))[Cy].apply(r,i).then(function(a){if(a.status===429){var u;return e.opts.rateLimitedQueue.rateLimit(2e3),(u=Ir(e,Et))[Et].apply(u,i)}if(!a.ok){var c=new Error(a.statusText);return c.statusCode=a.status,"".concat(i[0]).endsWith(wre)?a.json().then(function(l){if(!l.error)throw c;var d=new Error(l.error);throw d.details=l.message,d.assembly=l,l.assembly_id&&(d.details+=" Assembly ID: ".concat(l.assembly_id)),d},function(l){throw l.cause=c,l}):Promise.reject(c)}return a.json()})}n(Aur,"_fetchJSON2");function up(r){"@babel/helpers - typeof";return up=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},up(r)}n(up,"_typeof");function yl(){"use strict";yl=n(function(){return r},"_regeneratorRuntime");var r={},e=Object.prototype,t=e.hasOwnProperty,i=Object.defineProperty||function(p,s,f){p[s]=f.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(p,s,f){return Object.defineProperty(p,s,{value:f,enumerable:!0,configurable:!0,writable:!0}),p[s]}n(l,"define");try{l({},"")}catch(p){l=n(function(f,v,g){return f[v]=g},"define")}function d(p,s,f,v){var g=s&&s.prototype instanceof b?s:b,h=Object.create(g.prototype),O=new V(v||[]);return i(h,"_invoke",{value:U(p,f,O)}),h}n(d,"wrap");function y(p,s,f){try{return{type:"normal",arg:p.call(s,f)}}catch(v){return{type:"throw",arg:v}}}n(y,"tryCatch"),r.wrap=d;var m={};function b(){}n(b,"Generator");function w(){}n(w,"GeneratorFunction");function S(){}n(S,"GeneratorFunctionPrototype");var P={};l(P,a,function(){return this});var R=Object.getPrototypeOf,I=R&&R(R(W([])));I&&I!==e&&t.call(I,a)&&(P=I);var T=S.prototype=b.prototype=Object.create(P);function F(p){["next","throw","return"].forEach(function(s){l(p,s,function(f){return this._invoke(s,f)})})}n(F,"defineIteratorMethods");function k(p,s){function f(g,h,O,E){var A=y(p[g],p,h);if(A.type!=="throw"){var C=A.arg,N=C.value;return N&&up(N)=="object"&&t.call(N,"__await")?s.resolve(N.__await).then(function(M){f("next",M,O,E)},function(M){f("throw",M,O,E)}):s.resolve(N).then(function(M){C.value=M,O(C)},function(M){return f("throw",M,O,E)})}E(A.arg)}n(f,"invoke");var v;i(this,"_invoke",{value:n(function(h,O){function E(){return new s(function(A,C){f(h,O,A,C)})}return n(E,"callInvokeWithMethodAndArg"),v=v?v.then(E,E):E()},"value")})}n(k,"AsyncIterator");function U(p,s,f){var v="suspendedStart";return function(g,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(g==="throw")throw h;return Y()}for(f.method=g,f.arg=h;;){var O=f.delegate;if(O){var E=D(O,f);if(E){if(E===m)continue;return E}}if(f.method==="next")f.sent=f._sent=f.arg;else if(f.method==="throw"){if(v==="suspendedStart")throw v="completed",f.arg;f.dispatchException(f.arg)}else f.method==="return"&&f.abrupt("return",f.arg);v="executing";var A=y(p,s,f);if(A.type==="normal"){if(v=f.done?"completed":"suspendedYield",A.arg===m)continue;return{value:A.arg,done:f.done}}A.type==="throw"&&(v="completed",f.method="throw",f.arg=A.arg)}}}n(U,"makeInvokeMethod");function D(p,s){var f=s.method,v=p.iterator[f];if(v===void 0)return s.delegate=null,f==="throw"&&p.iterator.return&&(s.method="return",s.arg=void 0,D(p,s),s.method==="throw")||f!=="return"&&(s.method="throw",s.arg=new TypeError("The iterator does not provide a '"+f+"' method")),m;var g=y(v,p.iterator,s.arg);if(g.type==="throw")return s.method="throw",s.arg=g.arg,s.delegate=null,m;var h=g.arg;return h?h.done?(s[p.resultName]=h.value,s.next=p.nextLoc,s.method!=="return"&&(s.method="next",s.arg=void 0),s.delegate=null,m):h:(s.method="throw",s.arg=new TypeError("iterator result is not an object"),s.delegate=null,m)}n(D,"maybeInvokeDelegate");function H(p){var s={tryLoc:p[0]};1 in p&&(s.catchLoc=p[1]),2 in p&&(s.finallyLoc=p[2],s.afterLoc=p[3]),this.tryEntries.push(s)}n(H,"pushTryEntry");function $(p){var s=p.completion||{};s.type="normal",delete s.arg,p.completion=s}n($,"resetTryEntry");function V(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(H,this),this.reset(!0)}n(V,"Context");function W(p){if(p){var s=p[a];if(s)return s.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var f=-1,v=n(function g(){for(;++f<p.length;)if(t.call(p,f))return g.value=p[f],g.done=!1,g;return g.value=void 0,g.done=!0,g},"next");return v.next=v}}return{next:Y}}n(W,"values");function Y(){return{value:void 0,done:!0}}return n(Y,"doneResult"),w.prototype=S,i(T,"constructor",{value:S,configurable:!0}),i(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),r.isGeneratorFunction=function(p){var s=typeof p=="function"&&p.constructor;return!!s&&(s===w||(s.displayName||s.name)==="GeneratorFunction")},r.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,S):(p.__proto__=S,l(p,c,"GeneratorFunction")),p.prototype=Object.create(T),p},r.awrap=function(p){return{__await:p}},F(k.prototype),l(k.prototype,u,function(){return this}),r.AsyncIterator=k,r.async=function(p,s,f,v,g){g===void 0&&(g=Promise);var h=new k(d(p,s,f,v),g);return r.isGeneratorFunction(s)?h:h.next().then(function(O){return O.done?O.value:h.next()})},F(T),l(T,c,"Generator"),l(T,a,function(){return this}),l(T,"toString",function(){return"[object Generator]"}),r.keys=function(p){var s=Object(p),f=[];for(var v in s)f.push(v);return f.reverse(),n(function g(){for(;f.length;){var h=f.pop();if(h in s)return g.value=h,g.done=!1,g}return g.done=!0,g},"next")},r.values=W,V.prototype={constructor:V,reset:n(function(s){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach($),!s)for(var f in this)f.charAt(0)==="t"&&t.call(this,f)&&!isNaN(+f.slice(1))&&(this[f]=void 0)},"reset"),stop:n(function(){this.done=!0;var s=this.tryEntries[0].completion;if(s.type==="throw")throw s.arg;return this.rval},"stop"),dispatchException:n(function(s){if(this.done)throw s;var f=this;function v(C,N){return O.type="throw",O.arg=s,f.next=C,N&&(f.method="next",f.arg=void 0),!!N}n(v,"handle");for(var g=this.tryEntries.length-1;g>=0;--g){var h=this.tryEntries[g],O=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var E=t.call(h,"catchLoc"),A=t.call(h,"finallyLoc");if(E&&A){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(E){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!A)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},"dispatchException"),abrupt:n(function(s,f){for(var v=this.tryEntries.length-1;v>=0;--v){var g=this.tryEntries[v];if(g.tryLoc<=this.prev&&t.call(g,"finallyLoc")&&this.prev<g.finallyLoc){var h=g;break}}h&&(s==="break"||s==="continue")&&h.tryLoc<=f&&f<=h.finallyLoc&&(h=null);var O=h?h.completion:{};return O.type=s,O.arg=f,h?(this.method="next",this.next=h.finallyLoc,m):this.complete(O)},"abrupt"),complete:n(function(s,f){if(s.type==="throw")throw s.arg;return s.type==="break"||s.type==="continue"?this.next=s.arg:s.type==="return"?(this.rval=this.arg=s.arg,this.method="return",this.next="end"):s.type==="normal"&&f&&(this.next=f),m},"complete"),finish:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.finallyLoc===s)return this.complete(v.completion,v.afterLoc),$(v),m}},"finish"),catch:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.tryLoc===s){var g=v.completion;if(g.type==="throw"){var h=g.arg;$(v)}return h}}throw new Error("illegal catch attempt")},"_catch"),delegateYield:n(function(s,f,v){return this.delegate={iterator:W(s),resultName:f,nextLoc:v},this.method==="next"&&(this.arg=void 0),m},"delegateYield")},r}n(yl,"_regeneratorRuntime");function Iur(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(Iur,"_classCallCheck");function Ore(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,kur(i.key),i)}}n(Ore,"_defineProperties");function qur(r,e,t){return e&&Ore(r.prototype,e),t&&Ore(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(qur,"_createClass");function kur(r){var e=jur(r,"string");return up(e)==="symbol"?e:String(e)}n(kur,"_toPropertyKey");function jur(r,e){if(up(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(up(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(jur,"_toPrimitive");function Pre(r,e,t,i,o,a,u){try{var c=r[a](u),l=c.value}catch(d){t(d);return}c.done?e(l):Promise.resolve(l).then(i,o)}n(Pre,"asyncGeneratorStep");function Mj(r){return function(){var e=this,t=arguments;return new Promise(function(i,o){var a=r.apply(e,t);function u(l){Pre(a,i,o,u,c,"next",l)}n(u,"_next");function c(l){Pre(a,i,o,u,c,"throw",l)}n(c,"_throw"),u(void 0)})}}n(Mj,"_asyncToGenerator");function Fur(r,e){var t=typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=Cur(r))||e&&r&&typeof r.length=="number"){t&&(r=t);var i=0,o=n(function(){},"F");return{s:o,n:n(function(){return i>=r.length?{done:!0}:{done:!1,value:r[i++]}},"n"),e:n(function(d){throw d},"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=!0,u=!1,c;return{s:n(function(){t=t.call(r)},"s"),n:n(function(){var d=t.next();return a=d.done,d},"n"),e:n(function(d){u=!0,c=d},"e"),f:n(function(){try{!a&&t.return!=null&&t.return()}finally{if(u)throw c}},"f")}}n(Fur,"_createForOfIteratorHelper");function Cur(r,e){if(r){if(typeof r=="string")return _re(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return _re(r,e)}}n(Cur,"_unsupportedIterableToArray");function _re(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=r[t];return i}n(_re,"_arrayLikeToArray");function Bj(r){if(r==null)throw new Error("Transloadit: The `params` option is required.");if(typeof r=="string")try{r=JSON.parse(r)}catch(e){throw new Ga("Transloadit: The `params` option is a malformed JSON string.",{cause:e})}if(!r.auth||!r.auth.key)throw new Error("Transloadit: The `params.auth.key` option is required. You can find your Transloadit API key at https://transloadit.com/c/template-credentials")}n(Bj,"validateParams");function Lur(r){var e=Object.create(null),t=Fur(r.filter(Boolean)),i;try{for(t.s();!(i=t.n()).done;){var o=i.value,a=o.fileIDs,u=o.options,c=JSON.stringify(u);c in e?e[c].fileIDArrays.push(a):e[c]={options:u,fileIDArrays:[a]}}}catch(l){t.e(l)}finally{t.f()}return Object.values(e).map(function(l){var d=l.options,y=l.fileIDArrays;return{options:d,fileIDs:y.flat(1)}})}n(Lur,"dedupe");function Ere(r,e){return Uj.apply(this,arguments)}n(Ere,"getAssemblyOptions");function Uj(){return Uj=Mj(yl().mark(n(function r(e,t){var i,o;return yl().wrap(n(function(u){for(;;)switch(u.prev=u.next){case 0:if(typeof t.assemblyOptions!="function"){u.next=6;break}return u.next=3,t.assemblyOptions(e,t);case 3:u.t0=u.sent,u.next=7;break;case 6:u.t0=t.assemblyOptions;case 7:return i=u.t0,Bj(i.params),o=i.fields,Array.isArray(o)?i.fields=e==null?{}:Object.fromEntries(o.map(function(c){return[c,e.meta[c]]})):o==null&&(i.fields={}),u.abrupt("return",i);case 12:case"end":return u.stop()}},"_callee3$"),r)},"_callee3"))),Uj.apply(this,arguments)}n(Uj,"_getAssemblyOptions");var Nur=function(){function r(e,t){Iur(this,r),this.files=e,this.opts=t}return n(r,"AssemblyOptions"),qur(r,[{key:"build",value:function(){var e=Mj(yl().mark(n(function i(){var o,a;return yl().wrap(n(function(c){for(;;)switch(c.prev=c.next){case 0:if(o=this.opts,!(this.files.length>0)){c.next=3;break}return c.abrupt("return",Promise.all(this.files.map(function(){var l=Mj(yl().mark(n(function d(y){var m;return yl().wrap(n(function(w){for(;;)switch(w.prev=w.next){case 0:if(y!=null){w.next=2;break}return w.abrupt("return",void 0);case 2:return w.next=4,Ere(y,o);case 4:if(m=w.sent,y!=null){w.next=7;break}return w.abrupt("return",void 0);case 7:return w.abrupt("return",{fileIDs:[y.id],options:m});case 8:case"end":return w.stop()}},"_callee$"),d)},"_callee")));return function(d){return l.apply(this,arguments)}}())).then(Lur));case 3:if(!o.alwaysRunAssembly){c.next=8;break}return c.next=6,Ere(null,o);case 6:return a=c.sent,c.abrupt("return",[{fileIDs:[],options:a}]);case 8:return c.abrupt("return",[]);case 9:case"end":return c.stop()}},"_callee2$"),i,this)},"_callee2")));function t(){return e.apply(this,arguments)}return n(t,"build"),t}()}]),r}(),Tre=Nur;var Are=Ce(Aj(),1);function sp(r){"@babel/helpers - typeof";return sp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sp(r)}n(sp,"_typeof");function Rre(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,Dur(i.key),i)}}n(Rre,"_defineProperties");function xur(r,e,t){return e&&Rre(r.prototype,e),t&&Rre(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(xur,"_createClass");function Dur(r){var e=Mur(r,"string");return sp(e)==="symbol"?e:String(e)}n(Dur,"_toPropertyKey");function Mur(r,e){if(sp(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(sp(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(Mur,"_toPrimitive");function Uur(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(Uur,"_classCallCheck");function Bur(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&zj(r,e)}n(Bur,"_inherits");function zj(r,e){return zj=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),zj(r,e)}n(zj,"_setPrototypeOf");function $ur(r){var e=zur();return n(function(){var i=ZS(r),o;if(e){var a=ZS(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return Gur(this,o)},"_createSuperInternal")}n($ur,"_createSuper");function Gur(r,e){if(e&&(sp(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Xe(r)}n(Gur,"_possibleConstructorReturn");function Xe(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(Xe,"_assertThisInitialized");function zur(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(zur,"_isNativeReflectConstruct");function ZS(r){return ZS=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),ZS(r)}n(ZS,"_getPrototypeOf");function xe(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}n(xe,"_classPrivateFieldLooseBase");var Hur=0;function zn(r){return"__private_"+Hur+++"_"+r}n(zn,"_classPrivateFieldLooseKey");var Ny=zn("assemblyIDs"),$j=zn("reject"),gl=zn("remaining"),xy=zn("resolve"),vr=zn("uppy"),vo=zn("watching"),Dy=zn("onAssemblyComplete"),My=zn("onAssemblyCancel"),bl=zn("onAssemblyError"),Uy=zn("onImportError"),ml=zn("checkAllComplete"),Hj=zn("removeListeners"),Gj=zn("addListeners"),Wur=function(r){Bur(t,r);var e=$ur(t);function t(i,o){var a;return Uur(this,t),a=e.call(this),Object.defineProperty(Xe(a),Gj,{value:Xur}),Object.defineProperty(Xe(a),Hj,{value:Yur}),Object.defineProperty(Xe(a),ml,{value:Kur}),Object.defineProperty(Xe(a),vo,{value:Vur}),Object.defineProperty(Xe(a),Ny,{writable:!0,value:void 0}),Object.defineProperty(Xe(a),$j,{writable:!0,value:void 0}),Object.defineProperty(Xe(a),gl,{writable:!0,value:void 0}),Object.defineProperty(Xe(a),xy,{writable:!0,value:void 0}),Object.defineProperty(Xe(a),vr,{writable:!0,value:void 0}),Object.defineProperty(Xe(a),Dy,{writable:!0,value:n(function(c){xe(Xe(a),vo)[vo](c.assembly_id)&&(xe(Xe(a),vr)[vr].log("[Transloadit] AssemblyWatcher: Got Assembly finish ".concat(c.assembly_id)),a.emit("assembly-complete",c.assembly_id),xe(Xe(a),ml)[ml]())},"value")}),Object.defineProperty(Xe(a),My,{writable:!0,value:n(function(c){xe(Xe(a),vo)[vo](c.assembly_id)&&xe(Xe(a),ml)[ml]()},"value")}),Object.defineProperty(Xe(a),bl,{writable:!0,value:n(function(c,l){xe(Xe(a),vo)[vo](c.assembly_id)&&(xe(Xe(a),vr)[vr].log("[Transloadit] AssemblyWatcher: Got Assembly error ".concat(c.assembly_id)),xe(Xe(a),vr)[vr].log(l),a.emit("assembly-error",c.assembly_id,l),xe(Xe(a),ml)[ml]())},"value")}),Object.defineProperty(Xe(a),Uy,{writable:!0,value:n(function(c,l,d){xe(Xe(a),vo)[vo](c.assembly_id)&&xe(Xe(a),bl)[bl](c,d)},"value")}),xe(Xe(a),vr)[vr]=i,xe(Xe(a),Ny)[Ny]=o,xe(Xe(a),gl)[gl]=o.length,a.promise=new Promise(function(u,c){xe(Xe(a),xy)[xy]=u,xe(Xe(a),$j)[$j]=c}),xe(Xe(a),Gj)[Gj](),a}return n(t,"TransloaditAssemblyWatcher"),xur(t)}(Are.default);function Vur(r){return xe(this,Ny)[Ny].indexOf(r)!==-1}n(Vur,"_watching2");function Kur(){xe(this,gl)[gl]-=1,xe(this,gl)[gl]===0&&(xe(this,Hj)[Hj](),xe(this,xy)[xy]())}n(Kur,"_checkAllComplete2");function Yur(){xe(this,vr)[vr].off("transloadit:complete",xe(this,Dy)[Dy]),xe(this,vr)[vr].off("transloadit:assembly-cancel",xe(this,My)[My]),xe(this,vr)[vr].off("transloadit:assembly-error",xe(this,bl)[bl]),xe(this,vr)[vr].off("transloadit:import-error",xe(this,Uy)[Uy])}n(Yur,"_removeListeners2");function Xur(){xe(this,vr)[vr].on("transloadit:complete",xe(this,Dy)[Dy]),xe(this,vr)[vr].on("transloadit:assembly-cancel",xe(this,My)[My]),xe(this,vr)[vr].on("transloadit:assembly-error",xe(this,bl)[bl]),xe(this,vr)[vr].on("transloadit:import-error",xe(this,Uy)[Uy])}n(Xur,"_addListeners2");var Ire=Wur;var qre={strings:{creatingAssembly:"Preparing upload...",creatingAssemblyFailed:"Transloadit: Could not create Assembly",encoding:"Encoding..."}};function Sl(r){"@babel/helpers - typeof";return Sl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sl(r)}n(Sl,"_typeof");function Lre(r){return Zur(r)||Jur(r)||oF(r)||Qur()}n(Lre,"_toConsumableArray");function Qur(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n(Qur,"_nonIterableSpread");function Jur(r){if(typeof Symbol!="undefined"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}n(Jur,"_iterableToArray");function Zur(r){if(Array.isArray(r))return eF(r)}n(Zur,"_arrayWithoutHoles");function kre(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(kre,"ownKeys");function Ve(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?kre(Object(t),!0).forEach(function(i){bu(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):kre(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(Ve,"_objectSpread");function Nre(r,e){var t=typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=oF(r))||e&&r&&typeof r.length=="number"){t&&(r=t);var i=0,o=n(function(){},"F");return{s:o,n:n(function(){return i>=r.length?{done:!0}:{done:!1,value:r[i++]}},"n"),e:n(function(d){throw d},"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=!0,u=!1,c;return{s:n(function(){t=t.call(r)},"s"),n:n(function(){var d=t.next();return a=d.done,d},"n"),e:n(function(d){u=!0,c=d},"e"),f:n(function(){try{!a&&t.return!=null&&t.return()}finally{if(u)throw c}},"f")}}n(Nre,"_createForOfIteratorHelper");function esr(r,e){return nsr(r)||tsr(r,e)||oF(r,e)||rsr()}n(esr,"_slicedToArray");function rsr(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n(rsr,"_nonIterableRest");function oF(r,e){if(r){if(typeof r=="string")return eF(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return eF(r,e)}}n(oF,"_unsupportedIterableToArray");function eF(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=r[t];return i}n(eF,"_arrayLikeToArray");function tsr(r,e){var t=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var i,o,a,u,c=[],l=!0,d=!1;try{if(a=(t=t.call(r)).next,e===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(i=a.call(t)).done)&&(c.push(i.value),c.length!==e);l=!0);}catch(y){d=!0,o=y}finally{try{if(!l&&t.return!=null&&(u=t.return(),Object(u)!==u))return}finally{if(d)throw o}}return c}}n(tsr,"_iterableToArrayLimit");function nsr(r){if(Array.isArray(r))return r}n(nsr,"_arrayWithHoles");function bu(r,e,t){return e=xre(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(bu,"_defineProperty");function yo(){"use strict";yo=n(function(){return r},"_regeneratorRuntime");var r={},e=Object.prototype,t=e.hasOwnProperty,i=Object.defineProperty||function(p,s,f){p[s]=f.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(p,s,f){return Object.defineProperty(p,s,{value:f,enumerable:!0,configurable:!0,writable:!0}),p[s]}n(l,"define");try{l({},"")}catch(p){l=n(function(f,v,g){return f[v]=g},"define")}function d(p,s,f,v){var g=s&&s.prototype instanceof b?s:b,h=Object.create(g.prototype),O=new V(v||[]);return i(h,"_invoke",{value:U(p,f,O)}),h}n(d,"wrap");function y(p,s,f){try{return{type:"normal",arg:p.call(s,f)}}catch(v){return{type:"throw",arg:v}}}n(y,"tryCatch"),r.wrap=d;var m={};function b(){}n(b,"Generator");function w(){}n(w,"GeneratorFunction");function S(){}n(S,"GeneratorFunctionPrototype");var P={};l(P,a,function(){return this});var R=Object.getPrototypeOf,I=R&&R(R(W([])));I&&I!==e&&t.call(I,a)&&(P=I);var T=S.prototype=b.prototype=Object.create(P);function F(p){["next","throw","return"].forEach(function(s){l(p,s,function(f){return this._invoke(s,f)})})}n(F,"defineIteratorMethods");function k(p,s){function f(g,h,O,E){var A=y(p[g],p,h);if(A.type!=="throw"){var C=A.arg,N=C.value;return N&&Sl(N)=="object"&&t.call(N,"__await")?s.resolve(N.__await).then(function(M){f("next",M,O,E)},function(M){f("throw",M,O,E)}):s.resolve(N).then(function(M){C.value=M,O(C)},function(M){return f("throw",M,O,E)})}E(A.arg)}n(f,"invoke");var v;i(this,"_invoke",{value:n(function(h,O){function E(){return new s(function(A,C){f(h,O,A,C)})}return n(E,"callInvokeWithMethodAndArg"),v=v?v.then(E,E):E()},"value")})}n(k,"AsyncIterator");function U(p,s,f){var v="suspendedStart";return function(g,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(g==="throw")throw h;return Y()}for(f.method=g,f.arg=h;;){var O=f.delegate;if(O){var E=D(O,f);if(E){if(E===m)continue;return E}}if(f.method==="next")f.sent=f._sent=f.arg;else if(f.method==="throw"){if(v==="suspendedStart")throw v="completed",f.arg;f.dispatchException(f.arg)}else f.method==="return"&&f.abrupt("return",f.arg);v="executing";var A=y(p,s,f);if(A.type==="normal"){if(v=f.done?"completed":"suspendedYield",A.arg===m)continue;return{value:A.arg,done:f.done}}A.type==="throw"&&(v="completed",f.method="throw",f.arg=A.arg)}}}n(U,"makeInvokeMethod");function D(p,s){var f=s.method,v=p.iterator[f];if(v===void 0)return s.delegate=null,f==="throw"&&p.iterator.return&&(s.method="return",s.arg=void 0,D(p,s),s.method==="throw")||f!=="return"&&(s.method="throw",s.arg=new TypeError("The iterator does not provide a '"+f+"' method")),m;var g=y(v,p.iterator,s.arg);if(g.type==="throw")return s.method="throw",s.arg=g.arg,s.delegate=null,m;var h=g.arg;return h?h.done?(s[p.resultName]=h.value,s.next=p.nextLoc,s.method!=="return"&&(s.method="next",s.arg=void 0),s.delegate=null,m):h:(s.method="throw",s.arg=new TypeError("iterator result is not an object"),s.delegate=null,m)}n(D,"maybeInvokeDelegate");function H(p){var s={tryLoc:p[0]};1 in p&&(s.catchLoc=p[1]),2 in p&&(s.finallyLoc=p[2],s.afterLoc=p[3]),this.tryEntries.push(s)}n(H,"pushTryEntry");function $(p){var s=p.completion||{};s.type="normal",delete s.arg,p.completion=s}n($,"resetTryEntry");function V(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(H,this),this.reset(!0)}n(V,"Context");function W(p){if(p){var s=p[a];if(s)return s.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var f=-1,v=n(function g(){for(;++f<p.length;)if(t.call(p,f))return g.value=p[f],g.done=!1,g;return g.value=void 0,g.done=!0,g},"next");return v.next=v}}return{next:Y}}n(W,"values");function Y(){return{value:void 0,done:!0}}return n(Y,"doneResult"),w.prototype=S,i(T,"constructor",{value:S,configurable:!0}),i(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),r.isGeneratorFunction=function(p){var s=typeof p=="function"&&p.constructor;return!!s&&(s===w||(s.displayName||s.name)==="GeneratorFunction")},r.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,S):(p.__proto__=S,l(p,c,"GeneratorFunction")),p.prototype=Object.create(T),p},r.awrap=function(p){return{__await:p}},F(k.prototype),l(k.prototype,u,function(){return this}),r.AsyncIterator=k,r.async=function(p,s,f,v,g){g===void 0&&(g=Promise);var h=new k(d(p,s,f,v),g);return r.isGeneratorFunction(s)?h:h.next().then(function(O){return O.done?O.value:h.next()})},F(T),l(T,c,"Generator"),l(T,a,function(){return this}),l(T,"toString",function(){return"[object Generator]"}),r.keys=function(p){var s=Object(p),f=[];for(var v in s)f.push(v);return f.reverse(),n(function g(){for(;f.length;){var h=f.pop();if(h in s)return g.value=h,g.done=!1,g}return g.done=!0,g},"next")},r.values=W,V.prototype={constructor:V,reset:n(function(s){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach($),!s)for(var f in this)f.charAt(0)==="t"&&t.call(this,f)&&!isNaN(+f.slice(1))&&(this[f]=void 0)},"reset"),stop:n(function(){this.done=!0;var s=this.tryEntries[0].completion;if(s.type==="throw")throw s.arg;return this.rval},"stop"),dispatchException:n(function(s){if(this.done)throw s;var f=this;function v(C,N){return O.type="throw",O.arg=s,f.next=C,N&&(f.method="next",f.arg=void 0),!!N}n(v,"handle");for(var g=this.tryEntries.length-1;g>=0;--g){var h=this.tryEntries[g],O=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var E=t.call(h,"catchLoc"),A=t.call(h,"finallyLoc");if(E&&A){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(E){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!A)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},"dispatchException"),abrupt:n(function(s,f){for(var v=this.tryEntries.length-1;v>=0;--v){var g=this.tryEntries[v];if(g.tryLoc<=this.prev&&t.call(g,"finallyLoc")&&this.prev<g.finallyLoc){var h=g;break}}h&&(s==="break"||s==="continue")&&h.tryLoc<=f&&f<=h.finallyLoc&&(h=null);var O=h?h.completion:{};return O.type=s,O.arg=f,h?(this.method="next",this.next=h.finallyLoc,m):this.complete(O)},"abrupt"),complete:n(function(s,f){if(s.type==="throw")throw s.arg;return s.type==="break"||s.type==="continue"?this.next=s.arg:s.type==="return"?(this.rval=this.arg=s.arg,this.method="return",this.next="end"):s.type==="normal"&&f&&(this.next=f),m},"complete"),finish:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.finallyLoc===s)return this.complete(v.completion,v.afterLoc),$(v),m}},"finish"),catch:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.tryLoc===s){var g=v.completion;if(g.type==="throw"){var h=g.arg;$(v)}return h}}throw new Error("illegal catch attempt")},"_catch"),delegateYield:n(function(s,f,v){return this.delegate={iterator:W(s),resultName:f,nextLoc:v},this.method==="next"&&(this.arg=void 0),m},"delegateYield")},r}n(yo,"_regeneratorRuntime");function jre(r,e,t,i,o,a,u){try{var c=r[a](u),l=c.value}catch(d){t(d);return}c.done?e(l):Promise.resolve(l).then(i,o)}n(jre,"asyncGeneratorStep");function eO(r){return function(){var e=this,t=arguments;return new Promise(function(i,o){var a=r.apply(e,t);function u(l){jre(a,i,o,u,c,"next",l)}n(u,"_next");function c(l){jre(a,i,o,u,c,"throw",l)}n(c,"_throw"),u(void 0)})}}n(eO,"_asyncToGenerator");function isr(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(isr,"_classCallCheck");function Fre(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,xre(i.key),i)}}n(Fre,"_defineProperties");function asr(r,e,t){return e&&Fre(r.prototype,e),t&&Fre(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(asr,"_createClass");function xre(r){var e=osr(r,"string");return Sl(e)==="symbol"?e:String(e)}n(xre,"_toPropertyKey");function osr(r,e){if(Sl(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Sl(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(osr,"_toPrimitive");function usr(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&rF(r,e)}n(usr,"_inherits");function rF(r,e){return rF=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),rF(r,e)}n(rF,"_setPrototypeOf");function ssr(r){var e=csr();return n(function(){var i=rO(r),o;if(e){var a=rO(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return lsr(this,o)},"_createSuperInternal")}n(ssr,"_createSuper");function lsr(r,e){if(e&&(Sl(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return De(r)}n(lsr,"_possibleConstructorReturn");function De(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(De,"_assertThisInitialized");function csr(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(csr,"_isNativeReflectConstruct");function rO(r){return rO=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),rO(r)}n(rO,"_getPrototypeOf");function Be(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}n(Be,"_classPrivateFieldLooseBase");var fsr=0;function jr(r){return"__private_"+fsr+++"_"+r}n(jr,"_classPrivateFieldLooseKey");var psr={version:"3.4.0"},Cre=n(function(e){return function(t){var i=new Ga("Failed to send error to the client",{cause:t});console.error(i,e)}},"sendErrorToConsole"),uF="https://api2.transloadit.com/companion",sF=/\.transloadit\.com$/,dsr=/https?:\/\/api2(?:-\w+)?\.transloadit\.com\/companion/,Li=jr("rateLimitedQueue"),Wj=jr("getClientVersion"),tF=jr("attachAssemblyMetadata"),Vj=jr("createAssembly"),By=jr("createAssemblyWatcher"),Kj=jr("shouldWaitAfterUpload"),Yj=jr("reserveFiles"),$y=jr("onFileUploadURLAvailable"),Ky=jr("findFile"),nF=jr("onFileUploadComplete"),iF=jr("onResult"),Vy=jr("onAssemblyFinished"),Yy=jr("cancelAssembly"),Xj=jr("onCancelAll"),Qj=jr("getPersistentData"),Jj=jr("onRestored"),Gy=jr("connectAssembly"),zy=jr("prepareUpload"),wl=jr("afterUpload"),Hy=jr("closeAssemblyIfExists"),Wy=jr("onError"),Zj=jr("onTusError"),wu=function(r){usr(t,r);var e=ssr(t);function t(i,o){var a;isr(this,t);var u,c,l,d;a=e.call(this,i,o),u=De(a),Object.defineProperty(De(a),Gy,{value:Esr}),Object.defineProperty(De(a),Yy,{value:_sr}),Object.defineProperty(De(a),Vy,{value:Psr}),Object.defineProperty(De(a),iF,{value:Osr}),Object.defineProperty(De(a),nF,{value:Ssr}),Object.defineProperty(De(a),Ky,{value:wsr}),Object.defineProperty(De(a),Yj,{value:bsr}),Object.defineProperty(De(a),Kj,{value:gsr}),Object.defineProperty(De(a),By,{value:msr}),Object.defineProperty(De(a),Vj,{value:ysr}),Object.defineProperty(De(a),tF,{value:vsr}),Object.defineProperty(De(a),Wj,{value:hsr}),Object.defineProperty(De(a),Li,{writable:!0,value:void 0}),Object.defineProperty(De(a),$y,{writable:!0,value:n(function(b){var w,S=a.uppy.getFile(b.id);if(S!=null&&(w=S.transloadit)!=null&&w.assembly){var P=a.getPluginState(),R=P.assemblies,I=R[S.transloadit.assembly];a.client.addFile(I,S).catch(function(T){a.uppy.log(T),a.uppy.emit("transloadit:import-error",I,S.id,T)})}},"value")}),Object.defineProperty(De(a),Xj,{writable:!0,value:function(){var m=eO(yo().mark(n(function w(S){var P,R,I,T,F,k;return yo().wrap(n(function(D){for(;;)switch(D.prev=D.next){case 0:if(P=S===void 0?{}:S,R=P.reason,D.prev=1,R==="user"){D.next=4;break}return D.abrupt("return");case 4:return I=u.getPluginState(),T=I.uploadsAssemblies,F=Object.values(T).flat(1),k=F.map(function(H){return u.getAssembly(H)}),D.next=9,Promise.all(k.map(function(H){return Be(u,Yy)[Yy](H)}));case 9:D.next=14;break;case 11:D.prev=11,D.t0=D.catch(1),u.uppy.log(D.t0);case 14:case"end":return D.stop()}},"_callee$"),w,null,[[1,11]])},"_callee")));function b(w){return m.apply(this,arguments)}return n(b,"value"),b}()}),Object.defineProperty(De(a),Qj,{writable:!0,value:n(function(b){var w=a.getPluginState(),S=w.assemblies,P=w.uploadsAssemblies;b(bu({},a.id,{assemblies:S,uploadsAssemblies:P}))},"value")}),Object.defineProperty(De(a),Jj,{writable:!0,value:n(function(b){var w=b&&b[a.id]?b[a.id]:{},S=w.assemblies||{},P=w.uploadsAssemblies||{};if(Object.keys(P).length!==0){var R=n(function(k){for(var U={},D=[],H=n(function(){var Y=esr(V[$],2),p=Y[0],s=Y[1];s.uploads.forEach(function(v){var g=Be(De(a),Ky)[Ky](v);U[v.id]={id:g.id,assembly:p,uploadedFile:v}});var f=a.getPluginState();Object.keys(s.results).forEach(function(v){var g=Nre(s.results[v]),h;try{for(g.s();!(h=g.n()).done;){var O=h.value,E=f.files[O.original_id];O.localId=E?E.id:null,D.push({id:O.id,result:O,stepName:v,assembly:p})}}catch(A){g.e(A)}finally{g.f()}})},"_loop"),$=0,V=Object.entries(k);$<V.length;$++)H();a.setPluginState({assemblies:k,files:U,results:D,uploadsAssemblies:P})},"restoreState"),I=n(function(){var k=a.getPluginState(),U=k.assemblies,D=k.uploadsAssemblies;Object.keys(D).forEach(function($){var V=D[$];Be(De(a),By)[By](V,$)});var H=Object.keys(U);H.forEach(function($){var V=new Dj(U[$],Be(De(a),Li)[Li]);Be(De(a),Gy)[Gy](V)})},"restoreAssemblies"),T=n(function(){var k=a.getPluginState(),U=k.assemblies;return Promise.all(Object.keys(U).map(function(D){return a.activeAssemblies[D].update()}))},"updateAssemblies");a.restored=Promise.resolve().then(function(){return R(S),I(),T()}),a.restored.then(function(){a.restored=null})}},"value")}),Object.defineProperty(De(a),zy,{writable:!0,value:n(function(b,w){var S=b.map(function(k){return a.uppy.getFile(k)}),P=S.filter(function(k){return k.error?!1:(a.uppy.emit("preprocess-progress",k,{mode:"indeterminate",message:a.i18n("creatingAssembly")}),!0)}),R=function(){var k=eO(yo().mark(n(function U(D){var H,$,V;return yo().wrap(n(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return H=D.fileIDs,$=D.options,Y.prev=1,Y.next=4,Be(De(a),Vj)[Vj](H,w,$);case 4:if(V=Y.sent,!a.opts.importFromUploadURLs){Y.next=8;break}return Y.next=8,Be(De(a),Yj)[Yj](V,H);case 8:return H.forEach(function(p){var s=a.uppy.getFile(p);a.uppy.emit("preprocess-complete",s)}),Y.abrupt("return",V);case 12:throw Y.prev=12,Y.t0=Y.catch(1),H.forEach(function(p){var s=a.uppy.getFile(p);a.uppy.emit("preprocess-complete",s),a.uppy.emit("upload-error",s,Y.t0)}),Y.t0;case 16:case"end":return Y.stop()}},"_callee2$"),U,null,[[1,12]])},"_callee2")));return n(function(D){return k.apply(this,arguments)},"createAssembly")}(),I=a.getPluginState(),T=I.uploadsAssemblies;a.setPluginState({uploadsAssemblies:Ve(Ve({},T),{},bu({},w,[]))});var F=new Tre(P,a.opts);return F.build().then(function(k){return Promise.all(k.map(R))}).then(function(k){var U=k.filter(Boolean),D=U.map(function(H){return H.status.assembly_id});return Be(De(a),By)[By](D,w),Promise.all(U.map(function(H){return Be(De(a),Gy)[Gy](H)}))}).catch(function(k){throw P.forEach(function(U){a.uppy.emit("preprocess-complete",U),a.uppy.emit("upload-error",U,k)}),k})},"value")}),Object.defineProperty(De(a),wl,{writable:!0,value:n(function(b,w){var S=b.map(function(D){return a.uppy.getFile(D)}),P=S.filter(function(D){return!D.error}).map(function(D){return D.id}),R=a.getPluginState();if(a.restored)return a.restored.then(function(){return Be(De(a),wl)[wl](P,w)});var I=R.uploadsAssemblies[w],T=n(function(){I.forEach(function(H){var $=a.activeAssemblies[H];$.close(),delete a.activeAssemblies[H]})},"closeSocketConnections");if(!Be(De(a),Kj)[Kj]()){T();var F=I.map(function(D){return a.getAssembly(D)});return a.uppy.addResultData(w,{transloadit:F}),Promise.resolve()}if(I.length===0)return a.uppy.addResultData(w,{transloadit:[]}),Promise.resolve();var k=S.filter(function(D){return!En(a.completedFiles,D.id)});k.forEach(function(D){a.uppy.emit("postprocess-progress",D,{mode:"indeterminate",message:a.i18n("encoding")})});var U=a.assemblyWatchers[w];return U.promise.then(function(){T();var D=I.map(function($){return a.getAssembly($)}),H=Ve({},a.getPluginState().uploadsAssemblies);delete H[w],a.setPluginState({uploadsAssemblies:H}),a.uppy.addResultData(w,{transloadit:D})})},"value")}),Object.defineProperty(De(a),Hy,{writable:!0,value:n(function(b){var w;(w=a.activeAssemblies[b])==null||w.close()},"value")}),Object.defineProperty(De(a),Wy,{writable:!0,value:n(function(b,w){b===void 0&&(b=null);var S=u.getPluginState(),P=S.uploadsAssemblies[w];P==null||P.forEach(Be(u,Hy)[Hy]),u.client.submitError(b).catch(Cre(b))},"value")}),Object.defineProperty(De(a),Zj,{writable:!0,value:n(function(b,w){var S,P;if(Be(De(a),Hy)[Hy](b==null||(S=b.transloadit)==null?void 0:S.assembly),w!=null&&(P=w.message)!=null&&P.startsWith("tus: ")){var R,I=(R=w.originalRequest)==null||(R=R.getUnderlyingObject())==null?void 0:R.responseURL;a.client.submitError(w,{endpoint:I,type:"TUS_ERROR"}).catch(Cre(w))}},"value")}),a.type="uploader",a.id=a.opts.id||"Transloadit",a.title="Transloadit",a.defaultLocale=qre;var y={service:"https://api2.transloadit.com",errorReporting:!0,waitForEncoding:!1,waitForMetadata:!1,alwaysRunAssembly:!1,importFromUploadURLs:!1,signature:null,params:null,fields:null,getAssemblyOptions:null,limit:20,retryDelays:[7e3,1e4,15e3,2e4]};return a.opts=Ve(Ve({},y),o),(l=(c=a.opts).assemblyOptions)!=null||(c.assemblyOptions=(d=a.opts.getAssemblyOptions)!=null?d:{params:a.opts.params,signature:a.opts.signature,fields:a.opts.fields}),(o==null?void 0:o.params)!=null&&o.getAssemblyOptions==null&&o.assemblyOptions==null&&Bj(a.opts.assemblyOptions.params),Be(De(a),Li)[Li]=new oi(a.opts.limit),a.i18nInit(),a.client=new Sre({service:a.opts.service,client:Be(De(a),Wj)[Wj](),errorReporting:a.opts.errorReporting,rateLimitedQueue:Be(De(a),Li)[Li]}),a.activeAssemblies={},a.assemblyWatchers={},a.completedFiles=Object.create(null),a}return n(t,"Transloadit"),asr(t,[{key:"install",value:n(function(){this.uppy.addPreProcessor(Be(this,zy)[zy]),this.uppy.addPostProcessor(Be(this,wl)[wl]),this.uppy.on("error",Be(this,Wy)[Wy]),this.uppy.on("cancel-all",Be(this,Xj)[Xj]),this.uppy.on("upload-error",Be(this,Zj)[Zj]),this.opts.importFromUploadURLs?this.uppy.on("upload-success",Be(this,$y)[$y]):this.uppy.use(op,{storeFingerprintForResuming:!1,allowedMetaFields:["assembly_url","filename","fieldname"],limit:this.opts.limit,rateLimitedQueue:Be(this,Li)[Li],retryDelays:this.opts.retryDelays}),this.uppy.on("restore:get-data",Be(this,Qj)[Qj]),this.uppy.on("restored",Be(this,Jj)[Jj]),this.setPluginState({assemblies:{},uploadsAssemblies:{},files:{},results:[]});var o=this.uppy.getState(),a=o.capabilities;this.uppy.setState({capabilities:Ve(Ve({},a),{},{individualCancellation:!1})})},"install")},{key:"uninstall",value:n(function(){this.uppy.removePreProcessor(Be(this,zy)[zy]),this.uppy.removePostProcessor(Be(this,wl)[wl]),this.uppy.off("error",Be(this,Wy)[Wy]),this.opts.importFromUploadURLs&&this.uppy.off("upload-success",Be(this,$y)[$y]);var o=this.uppy.getState(),a=o.capabilities;this.uppy.setState({capabilities:Ve(Ve({},a),{},{individualCancellation:!0})})},"uninstall")},{key:"getAssembly",value:n(function(o){var a=this.getPluginState(),u=a.assemblies;return u[o]},"getAssembly")},{key:"getAssemblyFiles",value:n(function(o){return this.uppy.getFiles().filter(function(a){var u;return(a==null||(u=a.transloadit)==null?void 0:u.assembly)===o})},"getAssemblyFiles")}]),t}(fr);function hsr(){var r=this,e=["uppy-core:".concat(this.uppy.constructor.VERSION),"uppy-transloadit:".concat(this.constructor.VERSION),"uppy-tus:".concat(op.VERSION)],t=n(function(o,a){var u=r.uppy.getPlugin(o);u&&e.push("".concat(a,":").concat(u.constructor.VERSION))},"addPluginVersion");return this.opts.importFromUploadURLs&&(t("XHRUpload","uppy-xhr-upload"),t("AwsS3","uppy-aws-s3"),t("AwsS3Multipart","uppy-aws-s3-multipart")),t("Dropbox","uppy-dropbox"),t("Box","uppy-box"),t("Facebook","uppy-facebook"),t("GoogleDrive","uppy-google-drive"),t("Instagram","uppy-instagram"),t("OneDrive","uppy-onedrive"),t("Zoom","uppy-zoom"),t("Url","uppy-url"),e.join(",")}n(hsr,"_getClientVersion2");function vsr(r,e){var t=Ve(Ve({},r.meta),{},{assembly_url:e.assembly_url,filename:r.name,fieldname:"file"}),i=Ve(Ve({},r.tus),{},{endpoint:e.tus_url,addRequestId:!0}),o=r.remote;if(r.remote&&dsr.test(r.remote.companionUrl)){var a=e.companion_url.replace(/\/$/,""),u=r.remote.url.replace(r.remote.companionUrl,"").replace(/^\//,"");o=Ve(Ve({},r.remote),{},{companionUrl:a,url:"".concat(a,"/").concat(u)})}var c=Ve(Ve({},r),{},{transloadit:{assembly:e.assembly_id}});return this.opts.importFromUploadURLs||Object.assign(c,{meta:t,tus:i,remote:o}),c}n(vsr,"_attachAssemblyMetadata2");function ysr(r,e,t){var i=this;return this.uppy.log("[Transloadit] Create Assembly"),this.client.createAssembly(Ve(Ve({},t),{},{expectedFiles:r.length})).then(function(){var o=eO(yo().mark(n(function a(u){var c,l,d,y,m,b,w,S,P;return yo().wrap(n(function(I){for(;;)switch(I.prev=I.next){case 0:if(c=i.uppy.getFiles().filter(function(T){var F=T.id;return r.includes(F)}),c.length===r.length){I.next=8;break}if(c.length!==0){I.next=6;break}return I.next=5,i.client.cancelAssembly(u);case 5:return I.abrupt("return",null);case 6:return I.next=8,i.client.updateNumberOfFilesInAssembly(u,c.length);case 8:return l=new Dj(u,Be(i,Li)[Li]),d=l.status,y=d.assembly_id,m=i.getPluginState(),b=m.assemblies,w=m.uploadsAssemblies,i.setPluginState({assemblies:Ve(Ve({},b),{},bu({},y,d)),uploadsAssemblies:Ve(Ve({},w),{},bu({},e,[].concat(Lre(w[e]),[y])))}),S={},c.forEach(function(T){S[T.id]=Be(i,tF)[tF](T,d)}),i.uppy.setState({files:Ve(Ve({},i.uppy.getState().files),S)}),P=n(function T(F,k){var U;if(((U=l.status)==null?void 0:U.ok)==="ASSEMBLY_COMPLETED"){i.uppy.off("file-removed",T);return}if(k==="cancel-all")l.close(),i.uppy.off("file-removed",T);else if(F.id in S){delete S[F.id];var D=Object.keys(S).length;D===0?(l.close(),Be(i,Yy)[Yy](u).catch(function(){}),i.uppy.off("file-removed",T)):i.client.updateNumberOfFilesInAssembly(u,D).catch(function(){})}},"fileRemovedHandler"),i.uppy.on("file-removed",P),i.uppy.emit("transloadit:assembly-created",d,r),i.uppy.log("[Transloadit] Created Assembly ".concat(y)),I.abrupt("return",l);case 21:case"end":return I.stop()}},"_callee3$"),a)},"_callee3")));return function(a){return o.apply(this,arguments)}}()).catch(function(o){var a=new Ga("".concat(i.i18n("creatingAssemblyFailed"),": ").concat(o.message),{cause:o});throw"details"in o&&(a.details=o.details),"assembly"in o&&(a.assembly=o.assembly),a})}n(ysr,"_createAssembly2");function msr(r,e){var t=this,i=new Ire(this.uppy,r);i.on("assembly-complete",function(o){var a=t.getAssemblyFiles(o);a.forEach(function(u){t.completedFiles[u.id]=!0,t.uppy.emit("postprocess-complete",u)})}),i.on("assembly-error",function(o,a){var u=t.getAssemblyFiles(o);u.forEach(function(l){t.uppy.emit("upload-error",l,a),t.uppy.emit("postprocess-complete",l)});var c=Ve({},t.uppy.getState().files);u.forEach(function(l){return delete c[l.id].tus}),t.uppy.setState({files:c}),t.uppy.emit("error",a)}),this.assemblyWatchers[e]=i}n(msr,"_createAssemblyWatcher2");function gsr(){return this.opts.waitForEncoding||this.opts.waitForMetadata}n(gsr,"_shouldWaitAfterUpload2");function bsr(r,e){var t=this;return Promise.all(e.map(function(i){var o=t.uppy.getFile(i);return t.client.reserveFile(r.status,o)}))}n(bsr,"_reserveFiles2");function wsr(r){for(var e=this.uppy.getFiles(),t=0;t<e.length;t++){var i=e[t];if(i.uploadURL===r.tus_upload_url||i.tus&&i.tus.uploadUrl===r.tus_upload_url||!r.is_tus_file&&i.name===r.name&&i.size===r.size)return i}}n(wsr,"_findFile2");function Ssr(r,e){var t=this.getPluginState(),i=Be(this,Ky)[Ky](e);if(!i){this.uppy.log("[Transloadit] Couldn\u2019t find the file, it was likely removed in the process");return}this.setPluginState({files:Ve(Ve({},t.files),{},bu({},e.id,{assembly:r,id:i.id,uploadedFile:e}))}),this.uppy.emit("transloadit:upload",e,this.getAssembly(r))}n(Ssr,"_onFileUploadComplete2");function Osr(r,e,t){var i=this.getPluginState(),o=i.files[t.original_id];t.localId=o?o.id:null;var a={result:t,stepName:e,id:t.id,assembly:r};this.setPluginState({results:[].concat(Lre(i.results),[a])}),this.uppy.emit("transloadit:result",e,t,this.getAssembly(r))}n(Osr,"_onResult2");function Psr(r){var e=this,t=r.assembly_ssl_url;this.client.getAssemblyStatus(t).then(function(i){var o=i.assembly_id,a=e.getPluginState();e.setPluginState({assemblies:Ve(Ve({},a.assemblies),{},bu({},o,i))}),e.uppy.emit("transloadit:complete",i)})}n(Psr,"_onAssemblyFinished2");function _sr(r){return aF.apply(this,arguments)}n(_sr,"_cancelAssembly2");function aF(){return aF=eO(yo().mark(n(function r(e){return yo().wrap(n(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,this.client.cancelAssembly(e);case 2:this.uppy.emit("transloadit:assembly-cancelled",e);case 3:case"end":return i.stop()}},"_callee4$"),r,this)},"_callee4"))),aF.apply(this,arguments)}n(aF,"_cancelAssembly3");function Esr(r){var e=this,t=r.status,i=t.assembly_id;return this.activeAssemblies[i]=r,r.on("status",function(o){var a=e.getPluginState(),u=a.assemblies;e.setPluginState({assemblies:Ve(Ve({},u),{},bu({},i,o))})}),r.on("upload",function(o){Be(e,nF)[nF](i,o)}),r.on("error",function(o){o.assembly=r.status,e.uppy.emit("transloadit:assembly-error",r.status,o)}),r.on("executing",function(){e.uppy.emit("transloadit:assembly-executing",r.status)}),r.on("execution-progress",function(o){if(e.uppy.emit("transloadit:execution-progress",o),o.progress_combined!=null){var a=Nre(e.uppy.getFiles()),u;try{for(a.s();!(u=a.n()).done;){var c=u.value;e.uppy.emit("postprocess-progress",c,{mode:"determinate",value:o.progress_combined/100,message:e.i18n("encoding")})}}catch(l){a.e(l)}finally{a.f()}}}),this.opts.waitForEncoding&&r.on("result",function(o,a){Be(e,iF)[iF](i,o,a)}),this.opts.waitForEncoding?r.on("finished",function(){Be(e,Vy)[Vy](r.status)}):this.opts.waitForMetadata&&r.on("metadata",function(){Be(e,Vy)[Vy](r.status)}),r.ok==="ASSEMBLY_COMPLETE"||r.connect(),r}n(Esr,"_connectAssembly2");wu.VERSION=psr.version;wu.COMPANION=uF;wu.COMPANION_PATTERN=sF;var Dre={strings:{uploadStalled:"Upload has not made any progress for %{seconds} seconds. You may want to retry it."}};function Ol(r){"@babel/helpers - typeof";return Ol=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ol(r)}n(Ol,"_typeof");function Mre(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(Mre,"ownKeys");function vn(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Mre(Object(t),!0).forEach(function(i){Tsr(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Mre(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(vn,"_objectSpread");function Tsr(r,e,t){return e=zre(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(Tsr,"_defineProperty");function Pl(){"use strict";Pl=n(function(){return r},"_regeneratorRuntime");var r={},e=Object.prototype,t=e.hasOwnProperty,i=Object.defineProperty||function(p,s,f){p[s]=f.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(p,s,f){return Object.defineProperty(p,s,{value:f,enumerable:!0,configurable:!0,writable:!0}),p[s]}n(l,"define");try{l({},"")}catch(p){l=n(function(f,v,g){return f[v]=g},"define")}function d(p,s,f,v){var g=s&&s.prototype instanceof b?s:b,h=Object.create(g.prototype),O=new V(v||[]);return i(h,"_invoke",{value:U(p,f,O)}),h}n(d,"wrap");function y(p,s,f){try{return{type:"normal",arg:p.call(s,f)}}catch(v){return{type:"throw",arg:v}}}n(y,"tryCatch"),r.wrap=d;var m={};function b(){}n(b,"Generator");function w(){}n(w,"GeneratorFunction");function S(){}n(S,"GeneratorFunctionPrototype");var P={};l(P,a,function(){return this});var R=Object.getPrototypeOf,I=R&&R(R(W([])));I&&I!==e&&t.call(I,a)&&(P=I);var T=S.prototype=b.prototype=Object.create(P);function F(p){["next","throw","return"].forEach(function(s){l(p,s,function(f){return this._invoke(s,f)})})}n(F,"defineIteratorMethods");function k(p,s){function f(g,h,O,E){var A=y(p[g],p,h);if(A.type!=="throw"){var C=A.arg,N=C.value;return N&&Ol(N)=="object"&&t.call(N,"__await")?s.resolve(N.__await).then(function(M){f("next",M,O,E)},function(M){f("throw",M,O,E)}):s.resolve(N).then(function(M){C.value=M,O(C)},function(M){return f("throw",M,O,E)})}E(A.arg)}n(f,"invoke");var v;i(this,"_invoke",{value:n(function(h,O){function E(){return new s(function(A,C){f(h,O,A,C)})}return n(E,"callInvokeWithMethodAndArg"),v=v?v.then(E,E):E()},"value")})}n(k,"AsyncIterator");function U(p,s,f){var v="suspendedStart";return function(g,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(g==="throw")throw h;return Y()}for(f.method=g,f.arg=h;;){var O=f.delegate;if(O){var E=D(O,f);if(E){if(E===m)continue;return E}}if(f.method==="next")f.sent=f._sent=f.arg;else if(f.method==="throw"){if(v==="suspendedStart")throw v="completed",f.arg;f.dispatchException(f.arg)}else f.method==="return"&&f.abrupt("return",f.arg);v="executing";var A=y(p,s,f);if(A.type==="normal"){if(v=f.done?"completed":"suspendedYield",A.arg===m)continue;return{value:A.arg,done:f.done}}A.type==="throw"&&(v="completed",f.method="throw",f.arg=A.arg)}}}n(U,"makeInvokeMethod");function D(p,s){var f=s.method,v=p.iterator[f];if(v===void 0)return s.delegate=null,f==="throw"&&p.iterator.return&&(s.method="return",s.arg=void 0,D(p,s),s.method==="throw")||f!=="return"&&(s.method="throw",s.arg=new TypeError("The iterator does not provide a '"+f+"' method")),m;var g=y(v,p.iterator,s.arg);if(g.type==="throw")return s.method="throw",s.arg=g.arg,s.delegate=null,m;var h=g.arg;return h?h.done?(s[p.resultName]=h.value,s.next=p.nextLoc,s.method!=="return"&&(s.method="next",s.arg=void 0),s.delegate=null,m):h:(s.method="throw",s.arg=new TypeError("iterator result is not an object"),s.delegate=null,m)}n(D,"maybeInvokeDelegate");function H(p){var s={tryLoc:p[0]};1 in p&&(s.catchLoc=p[1]),2 in p&&(s.finallyLoc=p[2],s.afterLoc=p[3]),this.tryEntries.push(s)}n(H,"pushTryEntry");function $(p){var s=p.completion||{};s.type="normal",delete s.arg,p.completion=s}n($,"resetTryEntry");function V(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(H,this),this.reset(!0)}n(V,"Context");function W(p){if(p){var s=p[a];if(s)return s.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var f=-1,v=n(function g(){for(;++f<p.length;)if(t.call(p,f))return g.value=p[f],g.done=!1,g;return g.value=void 0,g.done=!0,g},"next");return v.next=v}}return{next:Y}}n(W,"values");function Y(){return{value:void 0,done:!0}}return n(Y,"doneResult"),w.prototype=S,i(T,"constructor",{value:S,configurable:!0}),i(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),r.isGeneratorFunction=function(p){var s=typeof p=="function"&&p.constructor;return!!s&&(s===w||(s.displayName||s.name)==="GeneratorFunction")},r.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,S):(p.__proto__=S,l(p,c,"GeneratorFunction")),p.prototype=Object.create(T),p},r.awrap=function(p){return{__await:p}},F(k.prototype),l(k.prototype,u,function(){return this}),r.AsyncIterator=k,r.async=function(p,s,f,v,g){g===void 0&&(g=Promise);var h=new k(d(p,s,f,v),g);return r.isGeneratorFunction(s)?h:h.next().then(function(O){return O.done?O.value:h.next()})},F(T),l(T,c,"Generator"),l(T,a,function(){return this}),l(T,"toString",function(){return"[object Generator]"}),r.keys=function(p){var s=Object(p),f=[];for(var v in s)f.push(v);return f.reverse(),n(function g(){for(;f.length;){var h=f.pop();if(h in s)return g.value=h,g.done=!1,g}return g.done=!0,g},"next")},r.values=W,V.prototype={constructor:V,reset:n(function(s){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach($),!s)for(var f in this)f.charAt(0)==="t"&&t.call(this,f)&&!isNaN(+f.slice(1))&&(this[f]=void 0)},"reset"),stop:n(function(){this.done=!0;var s=this.tryEntries[0].completion;if(s.type==="throw")throw s.arg;return this.rval},"stop"),dispatchException:n(function(s){if(this.done)throw s;var f=this;function v(C,N){return O.type="throw",O.arg=s,f.next=C,N&&(f.method="next",f.arg=void 0),!!N}n(v,"handle");for(var g=this.tryEntries.length-1;g>=0;--g){var h=this.tryEntries[g],O=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var E=t.call(h,"catchLoc"),A=t.call(h,"finallyLoc");if(E&&A){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(E){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!A)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},"dispatchException"),abrupt:n(function(s,f){for(var v=this.tryEntries.length-1;v>=0;--v){var g=this.tryEntries[v];if(g.tryLoc<=this.prev&&t.call(g,"finallyLoc")&&this.prev<g.finallyLoc){var h=g;break}}h&&(s==="break"||s==="continue")&&h.tryLoc<=f&&f<=h.finallyLoc&&(h=null);var O=h?h.completion:{};return O.type=s,O.arg=f,h?(this.method="next",this.next=h.finallyLoc,m):this.complete(O)},"abrupt"),complete:n(function(s,f){if(s.type==="throw")throw s.arg;return s.type==="break"||s.type==="continue"?this.next=s.arg:s.type==="return"?(this.rval=this.arg=s.arg,this.method="return",this.next="end"):s.type==="normal"&&f&&(this.next=f),m},"complete"),finish:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.finallyLoc===s)return this.complete(v.completion,v.afterLoc),$(v),m}},"finish"),catch:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.tryLoc===s){var g=v.completion;if(g.type==="throw"){var h=g.arg;$(v)}return h}}throw new Error("illegal catch attempt")},"_catch"),delegateYield:n(function(s,f,v){return this.delegate={iterator:W(s),resultName:f,nextLoc:v},this.method==="next"&&(this.arg=void 0),m},"delegateYield")},r}n(Pl,"_regeneratorRuntime");function Ure(r,e,t,i,o,a,u){try{var c=r[a](u),l=c.value}catch(d){t(d);return}c.done?e(l):Promise.resolve(l).then(i,o)}n(Ure,"asyncGeneratorStep");function yF(r){return function(){var e=this,t=arguments;return new Promise(function(i,o){var a=r.apply(e,t);function u(l){Ure(a,i,o,u,c,"next",l)}n(u,"_next");function c(l){Ure(a,i,o,u,c,"throw",l)}n(c,"_throw"),u(void 0)})}}n(yF,"_asyncToGenerator");function Rsr(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(Rsr,"_classCallCheck");function Bre(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,zre(i.key),i)}}n(Bre,"_defineProperties");function Asr(r,e,t){return e&&Bre(r.prototype,e),t&&Bre(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(Asr,"_createClass");function zre(r){var e=Isr(r,"string");return Ol(e)==="symbol"?e:String(e)}n(zre,"_toPropertyKey");function Isr(r,e){if(Ol(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Ol(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(Isr,"_toPrimitive");function qsr(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&fF(r,e)}n(qsr,"_inherits");function fF(r,e){return fF=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),fF(r,e)}n(fF,"_setPrototypeOf");function ksr(r){var e=Fsr();return n(function(){var i=tO(r),o;if(e){var a=tO(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return jsr(this,o)},"_createSuperInternal")}n(ksr,"_createSuper");function jsr(r,e){if(e&&(Ol(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Su(r)}n(jsr,"_possibleConstructorReturn");function Su(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(Su,"_assertThisInitialized");function Fsr(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(Fsr,"_isNativeReflectConstruct");function tO(r){return tO=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),tO(r)}n(tO,"_getPrototypeOf");function lp(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}n(lp,"_classPrivateFieldLooseBase");var Csr=0;function Qy(r){return"__private_"+Csr+++"_"+r}n(Qy,"_classPrivateFieldLooseKey");var Lsr={version:"3.6.0"};function $re(r,e){var t=e;return t||(t=new Error("Upload error")),typeof t=="string"&&(t=new Error(t)),t instanceof Error||(t=Object.assign(new Error("Upload error"),{data:t})),sl(r)?(t=new _i(t,r),t):(t.request=r,t)}n($re,"buildResponseError");function Gre(r){var e=r.data.slice(0,r.data.size,r.meta.type);return e}n(Gre,"setTypeInBlob");var pF=Qy("uploadLocalFile"),lF=Qy("uploadBundle"),dF=Qy("getCompanionClientArgs"),cF=Qy("uploadFiles"),Xy=Qy("handleUpload"),mF=function(r){qsr(t,r);var e=ksr(t);function t(i,o){var a;Rsr(this,t),a=e.call(this,i,o),Object.defineProperty(Su(a),cF,{value:Msr}),Object.defineProperty(Su(a),dF,{value:Dsr}),Object.defineProperty(Su(a),lF,{value:xsr}),Object.defineProperty(Su(a),pF,{value:Nsr}),Object.defineProperty(Su(a),Xy,{writable:!0,value:function(){var c=yF(Pl().mark(n(function d(y){var m,b,w,S;return Pl().wrap(n(function(R){for(;;)switch(R.prev=R.next){case 0:if(y.length!==0){R.next=3;break}return a.uppy.log("[XHRUpload] No files to upload!"),R.abrupt("return");case 3:if(a.opts.limit===0&&!a.opts[pu]&&a.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),a.uppy.log("[XHRUpload] Uploading..."),m=a.uppy.getFilesByIds(y),b=du(m),w=hu(b),a.uppy.emit("upload-start",w),!a.opts.bundle){R.next=19;break}if(S=b.some(function(I){return I.isRemote}),!S){R.next=13;break}throw new Error("Can\u2019t upload remote files when the `bundle: true` option is set");case 13:if(typeof a.opts.headers!="function"){R.next=15;break}throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");case 15:return R.next=17,lp(Su(a),lF)[lF](b);case 17:R.next=21;break;case 19:return R.next=21,lp(Su(a),cF)[cF](b);case 21:case"end":return R.stop()}},"_callee$"),d)},"_callee")));function l(d){return c.apply(this,arguments)}return n(l,"value"),l}()}),a.type="uploader",a.id=a.opts.id||"XHRUpload",a.title="XHRUpload",a.defaultLocale=Dre;var u={formData:!0,fieldName:o.bundle?"files[]":"file",method:"post",allowedMetaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:30*1e3,limit:5,withCredentials:!1,responseType:"",getResponseData:n(function(l){var d={};try{d=JSON.parse(l)}catch(y){i.log(y)}return d},"getResponseData"),getResponseError:n(function(l,d){var y=new Error("Upload error");return sl(d)&&(y=new _i(y,d)),y},"getResponseError"),validateStatus:n(function(l){return l>=200&&l<300},"validateStatus")};if(a.opts=vn(vn({},u),o),a.i18nInit(),pu in a.opts?a.requests=a.opts[pu]:a.requests=new oi(a.opts.limit),a.opts.bundle&&!a.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");if((o==null?void 0:o.allowedMetaFields)===void 0&&"metaFields"in a.opts)throw new Error("The `metaFields` option has been renamed to `allowedMetaFields`.");return a.uploaderEvents=Object.create(null),a}return n(t,"XHRUpload"),Asr(t,[{key:"getOptions",value:n(function(o){var a=this.uppy.getState().xhrUpload,u=this.opts.headers,c=vn(vn(vn(vn({},this.opts),a||{}),o.xhrUpload||{}),{},{headers:{}});return typeof u=="function"?c.headers=u(o):Object.assign(c.headers,this.opts.headers),a&&Object.assign(c.headers,a.headers),o.xhrUpload&&Object.assign(c.headers,o.xhrUpload.headers),c},"getOptions")},{key:"addMetadata",value:n(function(o,a,u){var c=Array.isArray(u.allowedMetaFields)?u.allowedMetaFields:Object.keys(a);c.forEach(function(l){Array.isArray(a[l])?a[l].forEach(function(d){return o.append(l,d)}):o.append(l,a[l])})},"addMetadata")},{key:"createFormDataUpload",value:n(function(o,a){var u=new FormData;this.addMetadata(u,o.meta,a);var c=Gre(o);return o.name?u.append(a.fieldName,c,o.meta.name):u.append(a.fieldName,c),u},"createFormDataUpload")},{key:"createBundledUpload",value:n(function(o,a){var u=this,c=new FormData,l=this.uppy.getState(),d=l.meta;return this.addMetadata(c,d,a),o.forEach(function(y){var m=u.getOptions(y),b=Gre(y);y.name?c.append(m.fieldName,b,y.name):c.append(m.fieldName,b)}),c},"createBundledUpload")},{key:"install",value:n(function(){if(this.opts.bundle){var o=this.uppy.getState(),a=o.capabilities;this.uppy.setState({capabilities:vn(vn({},a),{},{individualCancellation:!1})})}this.uppy.addUploader(lp(this,Xy)[Xy])},"install")},{key:"uninstall",value:n(function(){if(this.opts.bundle){var o=this.uppy.getState(),a=o.capabilities;this.uppy.setState({capabilities:vn(vn({},a),{},{individualCancellation:!0})})}this.uppy.removeUploader(lp(this,Xy)[Xy])},"uninstall")}]),t}(fr);function Nsr(r,e,t){return hF.apply(this,arguments)}n(Nsr,"_uploadLocalFile2");function hF(){return hF=yF(Pl().mark(n(function r(e,t,i){var o=this,a;return Pl().wrap(n(function(c){for(;;)switch(c.prev=c.next){case 0:return a=this.getOptions(e),this.uppy.log("uploading ".concat(t," of ").concat(i)),c.abrupt("return",new Promise(function(l,d){var y=a.formData?o.createFormDataUpload(e,a):e.data,m=new XMLHttpRequest,b=new fu(o.uppy);o.uploaderEvents[e.id]=b;var w,S=new by(a.timeout,function(){var R=new Error(o.i18n("uploadStalled",{seconds:Math.ceil(a.timeout/1e3)}));o.uppy.emit("upload-stalled",R,[e])}),P=It();m.upload.addEventListener("loadstart",function(){o.uppy.log("[XHRUpload] ".concat(P," started"))}),m.upload.addEventListener("progress",function(R){o.uppy.log("[XHRUpload] ".concat(P," progress: ").concat(R.loaded," / ").concat(R.total)),S.progress(),R.lengthComputable&&o.uppy.emit("upload-progress",e,{uploader:o,bytesUploaded:R.loaded,bytesTotal:R.total})}),m.addEventListener("load",function(){if(o.uppy.log("[XHRUpload] ".concat(P," finished")),S.done(),w.done(),o.uploaderEvents[e.id]&&(o.uploaderEvents[e.id].remove(),o.uploaderEvents[e.id]=null),a.validateStatus(m.status,m.responseText,m)){var R=a.getResponseData(m.responseText,m),I=R[a.responseUrlFieldName],T={status:m.status,body:R,uploadURL:I};return o.uppy.emit("upload-success",e,T),I&&o.uppy.log("Download ".concat(e.name," from ").concat(I)),l(e)}var F=a.getResponseData(m.responseText,m),k=$re(m,a.getResponseError(m.responseText,m)),U={status:m.status,body:F};return o.uppy.emit("upload-error",e,k,U),d(k)}),m.addEventListener("error",function(){o.uppy.log("[XHRUpload] ".concat(P," errored")),S.done(),w.done(),o.uploaderEvents[e.id]&&(o.uploaderEvents[e.id].remove(),o.uploaderEvents[e.id]=null);var R=$re(m,a.getResponseError(m.responseText,m));return o.uppy.emit("upload-error",e,R),d(R)}),m.open(a.method.toUpperCase(),a.endpoint,!0),m.withCredentials=a.withCredentials,a.responseType!==""&&(m.responseType=a.responseType),w=o.requests.run(function(){var R=o.getOptions(e);return Object.keys(R.headers).forEach(function(I){m.setRequestHeader(I,R.headers[I])}),m.send(y),function(){S.done(),m.abort()}}),b.onFileRemove(e.id,function(){w.abort(),d(new Error("File removed"))}),b.onCancelAll(e.id,function(R){var I=R.reason;I==="user"&&w.abort(),d(new Error("Upload cancelled"))})}));case 3:case"end":return c.stop()}},"_callee2$"),r,this)},"_callee2"))),hF.apply(this,arguments)}n(hF,"_uploadLocalFile3");function xsr(r){var e=this;return new Promise(function(t,i){var o=e.opts.endpoint,a=e.opts.method,u=e.uppy.getState().xhrUpload,c=e.createBundledUpload(r,vn(vn({},e.opts),u||{})),l=new XMLHttpRequest,d=n(function(b){r.forEach(function(w){e.uppy.emit("upload-error",w,b)})},"emitError"),y=new by(e.opts.timeout,function(){var m=new Error(e.i18n("uploadStalled",{seconds:Math.ceil(e.opts.timeout/1e3)}));e.uppy.emit("upload-stalled",m,r)});l.upload.addEventListener("loadstart",function(){e.uppy.log("[XHRUpload] started uploading bundle"),y.progress()}),l.upload.addEventListener("progress",function(m){y.progress(),m.lengthComputable&&r.forEach(function(b){e.uppy.emit("upload-progress",b,{uploader:e,bytesUploaded:m.loaded/m.total*b.size,bytesTotal:b.size})})}),l.addEventListener("load",function(m){if(y.done(),e.opts.validateStatus(m.target.status,l.responseText,l)){var b=e.opts.getResponseData(l.responseText,l),w={status:m.target.status,body:b};return r.forEach(function(P){e.uppy.emit("upload-success",P,w)}),t()}var S=e.opts.getResponseError(l.responseText,l)||new Error("Upload error");return S.request=l,d(S),i(S)}),l.addEventListener("error",function(){y.done();var m=e.opts.getResponseError(l.responseText,l)||new Error("Upload error");return d(m),i(m)}),e.uppy.on("cancel-all",function(m){var b=m===void 0?{}:m,w=b.reason;w==="user"&&(y.done(),l.abort())}),l.open(a.toUpperCase(),o,!0),l.withCredentials=e.opts.withCredentials,e.opts.responseType!==""&&(l.responseType=e.opts.responseType),Object.keys(e.opts.headers).forEach(function(m){l.setRequestHeader(m,e.opts.headers[m])}),l.send(c)})}n(xsr,"_uploadBundle2");function Dsr(r){var e=this.getOptions(r),t=Array.isArray(e.allowedMetaFields)?e.allowedMetaFields:Object.keys(r.meta);return vn(vn({},r.remote.body),{},{protocol:"multipart",endpoint:e.endpoint,size:r.data.size,fieldname:e.fieldName,metadata:Object.fromEntries(t.map(function(i){return[i,r.meta[i]]})),httpMethod:e.method,useFormData:e.formData,headers:e.headers})}n(Dsr,"_getCompanionClientArgs2");function Msr(r){return vF.apply(this,arguments)}n(Msr,"_uploadFiles2");function vF(){return vF=yF(Pl().mark(n(function r(e){var t=this;return Pl().wrap(n(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,Promise.allSettled(e.map(function(a,u){var c=parseInt(u,10)+1,l=e.length;if(a.isRemote){var d=n(function(){return t.requests},"getQueue"),y=new AbortController,m=n(function(S){S.id===a.id&&y.abort()},"removedHandler");t.uppy.on("file-removed",m);var b=t.uppy.getRequestClientForFile(a).uploadRemoteFile(a,lp(t,dF)[dF](a),{signal:y.signal,getQueue:d});return t.requests.wrapSyncFunction(function(){t.uppy.off("file-removed",m)},{priority:-1})(),b}return lp(t,pF)[pF](a,c,l)}));case 2:case"end":return o.stop()}},"_callee3$"),r)},"_callee3"))),vF.apply(this,arguments)}n(vF,"_uploadFiles3");mF.VERSION=Lsr.version;var SF=Ce(gw(),1),ete=Ce(Hre(),1);var Wre={strings:{compressingImages:"Compressing images...",compressedX:"Saved %{size} by compressing images"}};function _l(r){"@babel/helpers - typeof";return _l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_l(r)}n(_l,"_typeof");function Usr(r,e){var t=typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=Bsr(r))||e&&r&&typeof r.length=="number"){t&&(r=t);var i=0,o=n(function(){},"F");return{s:o,n:n(function(){return i>=r.length?{done:!0}:{done:!1,value:r[i++]}},"n"),e:n(function(d){throw d},"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=!0,u=!1,c;return{s:n(function(){t=t.call(r)},"s"),n:n(function(){var d=t.next();return a=d.done,d},"n"),e:n(function(d){u=!0,c=d},"e"),f:n(function(){try{!a&&t.return!=null&&t.return()}finally{if(u)throw c}},"f")}}n(Usr,"_createForOfIteratorHelper");function Bsr(r,e){if(r){if(typeof r=="string")return Vre(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Vre(r,e)}}n(Bsr,"_unsupportedIterableToArray");function Vre(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=r[t];return i}n(Vre,"_arrayLikeToArray");function Zy(){"use strict";Zy=n(function(){return r},"_regeneratorRuntime");var r={},e=Object.prototype,t=e.hasOwnProperty,i=Object.defineProperty||function(p,s,f){p[s]=f.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(p,s,f){return Object.defineProperty(p,s,{value:f,enumerable:!0,configurable:!0,writable:!0}),p[s]}n(l,"define");try{l({},"")}catch(p){l=n(function(f,v,g){return f[v]=g},"define")}function d(p,s,f,v){var g=s&&s.prototype instanceof b?s:b,h=Object.create(g.prototype),O=new V(v||[]);return i(h,"_invoke",{value:U(p,f,O)}),h}n(d,"wrap");function y(p,s,f){try{return{type:"normal",arg:p.call(s,f)}}catch(v){return{type:"throw",arg:v}}}n(y,"tryCatch"),r.wrap=d;var m={};function b(){}n(b,"Generator");function w(){}n(w,"GeneratorFunction");function S(){}n(S,"GeneratorFunctionPrototype");var P={};l(P,a,function(){return this});var R=Object.getPrototypeOf,I=R&&R(R(W([])));I&&I!==e&&t.call(I,a)&&(P=I);var T=S.prototype=b.prototype=Object.create(P);function F(p){["next","throw","return"].forEach(function(s){l(p,s,function(f){return this._invoke(s,f)})})}n(F,"defineIteratorMethods");function k(p,s){function f(g,h,O,E){var A=y(p[g],p,h);if(A.type!=="throw"){var C=A.arg,N=C.value;return N&&_l(N)=="object"&&t.call(N,"__await")?s.resolve(N.__await).then(function(M){f("next",M,O,E)},function(M){f("throw",M,O,E)}):s.resolve(N).then(function(M){C.value=M,O(C)},function(M){return f("throw",M,O,E)})}E(A.arg)}n(f,"invoke");var v;i(this,"_invoke",{value:n(function(h,O){function E(){return new s(function(A,C){f(h,O,A,C)})}return n(E,"callInvokeWithMethodAndArg"),v=v?v.then(E,E):E()},"value")})}n(k,"AsyncIterator");function U(p,s,f){var v="suspendedStart";return function(g,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(g==="throw")throw h;return Y()}for(f.method=g,f.arg=h;;){var O=f.delegate;if(O){var E=D(O,f);if(E){if(E===m)continue;return E}}if(f.method==="next")f.sent=f._sent=f.arg;else if(f.method==="throw"){if(v==="suspendedStart")throw v="completed",f.arg;f.dispatchException(f.arg)}else f.method==="return"&&f.abrupt("return",f.arg);v="executing";var A=y(p,s,f);if(A.type==="normal"){if(v=f.done?"completed":"suspendedYield",A.arg===m)continue;return{value:A.arg,done:f.done}}A.type==="throw"&&(v="completed",f.method="throw",f.arg=A.arg)}}}n(U,"makeInvokeMethod");function D(p,s){var f=s.method,v=p.iterator[f];if(v===void 0)return s.delegate=null,f==="throw"&&p.iterator.return&&(s.method="return",s.arg=void 0,D(p,s),s.method==="throw")||f!=="return"&&(s.method="throw",s.arg=new TypeError("The iterator does not provide a '"+f+"' method")),m;var g=y(v,p.iterator,s.arg);if(g.type==="throw")return s.method="throw",s.arg=g.arg,s.delegate=null,m;var h=g.arg;return h?h.done?(s[p.resultName]=h.value,s.next=p.nextLoc,s.method!=="return"&&(s.method="next",s.arg=void 0),s.delegate=null,m):h:(s.method="throw",s.arg=new TypeError("iterator result is not an object"),s.delegate=null,m)}n(D,"maybeInvokeDelegate");function H(p){var s={tryLoc:p[0]};1 in p&&(s.catchLoc=p[1]),2 in p&&(s.finallyLoc=p[2],s.afterLoc=p[3]),this.tryEntries.push(s)}n(H,"pushTryEntry");function $(p){var s=p.completion||{};s.type="normal",delete s.arg,p.completion=s}n($,"resetTryEntry");function V(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(H,this),this.reset(!0)}n(V,"Context");function W(p){if(p){var s=p[a];if(s)return s.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var f=-1,v=n(function g(){for(;++f<p.length;)if(t.call(p,f))return g.value=p[f],g.done=!1,g;return g.value=void 0,g.done=!0,g},"next");return v.next=v}}return{next:Y}}n(W,"values");function Y(){return{value:void 0,done:!0}}return n(Y,"doneResult"),w.prototype=S,i(T,"constructor",{value:S,configurable:!0}),i(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),r.isGeneratorFunction=function(p){var s=typeof p=="function"&&p.constructor;return!!s&&(s===w||(s.displayName||s.name)==="GeneratorFunction")},r.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,S):(p.__proto__=S,l(p,c,"GeneratorFunction")),p.prototype=Object.create(T),p},r.awrap=function(p){return{__await:p}},F(k.prototype),l(k.prototype,u,function(){return this}),r.AsyncIterator=k,r.async=function(p,s,f,v,g){g===void 0&&(g=Promise);var h=new k(d(p,s,f,v),g);return r.isGeneratorFunction(s)?h:h.next().then(function(O){return O.done?O.value:h.next()})},F(T),l(T,c,"Generator"),l(T,a,function(){return this}),l(T,"toString",function(){return"[object Generator]"}),r.keys=function(p){var s=Object(p),f=[];for(var v in s)f.push(v);return f.reverse(),n(function g(){for(;f.length;){var h=f.pop();if(h in s)return g.value=h,g.done=!1,g}return g.done=!0,g},"next")},r.values=W,V.prototype={constructor:V,reset:n(function(s){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach($),!s)for(var f in this)f.charAt(0)==="t"&&t.call(this,f)&&!isNaN(+f.slice(1))&&(this[f]=void 0)},"reset"),stop:n(function(){this.done=!0;var s=this.tryEntries[0].completion;if(s.type==="throw")throw s.arg;return this.rval},"stop"),dispatchException:n(function(s){if(this.done)throw s;var f=this;function v(C,N){return O.type="throw",O.arg=s,f.next=C,N&&(f.method="next",f.arg=void 0),!!N}n(v,"handle");for(var g=this.tryEntries.length-1;g>=0;--g){var h=this.tryEntries[g],O=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var E=t.call(h,"catchLoc"),A=t.call(h,"finallyLoc");if(E&&A){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(E){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!A)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},"dispatchException"),abrupt:n(function(s,f){for(var v=this.tryEntries.length-1;v>=0;--v){var g=this.tryEntries[v];if(g.tryLoc<=this.prev&&t.call(g,"finallyLoc")&&this.prev<g.finallyLoc){var h=g;break}}h&&(s==="break"||s==="continue")&&h.tryLoc<=f&&f<=h.finallyLoc&&(h=null);var O=h?h.completion:{};return O.type=s,O.arg=f,h?(this.method="next",this.next=h.finallyLoc,m):this.complete(O)},"abrupt"),complete:n(function(s,f){if(s.type==="throw")throw s.arg;return s.type==="break"||s.type==="continue"?this.next=s.arg:s.type==="return"?(this.rval=this.arg=s.arg,this.method="return",this.next="end"):s.type==="normal"&&f&&(this.next=f),m},"complete"),finish:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.finallyLoc===s)return this.complete(v.completion,v.afterLoc),$(v),m}},"finish"),catch:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.tryLoc===s){var g=v.completion;if(g.type==="throw"){var h=g.arg;$(v)}return h}}throw new Error("illegal catch attempt")},"_catch"),delegateYield:n(function(s,f,v){return this.delegate={iterator:W(s),resultName:f,nextLoc:v},this.method==="next"&&(this.arg=void 0),m},"delegateYield")},r}n(Zy,"_regeneratorRuntime");function Kre(r,e,t,i,o,a,u){try{var c=r[a](u),l=c.value}catch(d){t(d);return}c.done?e(l):Promise.resolve(l).then(i,o)}n(Kre,"asyncGeneratorStep");function Yre(r){return function(){var e=this,t=arguments;return new Promise(function(i,o){var a=r.apply(e,t);function u(l){Kre(a,i,o,u,c,"next",l)}n(u,"_next");function c(l){Kre(a,i,o,u,c,"throw",l)}n(c,"_throw"),u(void 0)})}}n(Yre,"_asyncToGenerator");function Xre(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(Xre,"ownKeys");function Ni(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Xre(Object(t),!0).forEach(function(i){$sr(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Xre(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(Ni,"_objectSpread");function $sr(r,e,t){return e=Zre(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n($sr,"_defineProperty");function Gsr(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(Gsr,"_classCallCheck");function Qre(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,Zre(i.key),i)}}n(Qre,"_defineProperties");function zsr(r,e,t){return e&&Qre(r.prototype,e),t&&Qre(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(zsr,"_createClass");function Zre(r){var e=Hsr(r,"string");return _l(e)==="symbol"?e:String(e)}n(Zre,"_toPropertyKey");function Hsr(r,e){if(_l(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(_l(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(Hsr,"_toPrimitive");function Wsr(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&wF(r,e)}n(Wsr,"_inherits");function wF(r,e){return wF=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),wF(r,e)}n(wF,"_setPrototypeOf");function Vsr(r){var e=Ysr();return n(function(){var i=iO(r),o;if(e){var a=iO(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return Ksr(this,o)},"_createSuperInternal")}n(Vsr,"_createSuper");function Ksr(r,e){if(e&&(_l(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return em(r)}n(Ksr,"_possibleConstructorReturn");function em(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(em,"_assertThisInitialized");function Ysr(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(Ysr,"_isNativeReflectConstruct");function iO(r){return iO=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),iO(r)}n(iO,"_getPrototypeOf");function Jre(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}n(Jre,"_classPrivateFieldLooseBase");var Xsr=0;function Qsr(r){return"__private_"+Xsr+++"_"+r}n(Qsr,"_classPrivateFieldLooseKey");var Jy=Qsr("RateLimitedQueue"),rte=function(r){Wsr(t,r);var e=Vsr(t);function t(i,o){var a;Gsr(this,t),a=e.call(this,i,o),Object.defineProperty(em(a),Jy,{writable:!0,value:void 0}),a.id=a.opts.id||"Compressor",a.type="modifier",a.defaultLocale=Wre;var u={quality:.6,limit:10};return a.opts=Ni(Ni({},u),o),Jre(em(a),Jy)[Jy]=new oi(a.opts.limit),a.i18nInit(),a.prepareUpload=a.prepareUpload.bind(em(a)),a.compress=a.compress.bind(em(a)),a}return n(t,"Compressor"),zsr(t,[{key:"compress",value:n(function(o){var a=this;return new Promise(function(u,c){new ete.default(o,Ni(Ni({},a.opts),{},{success:u,error:c}))})},"compress")},{key:"prepareUpload",value:function(){var i=Yre(Zy().mark(n(function a(u){var c=this,l,d,y,m,b,w,S,P;return Zy().wrap(n(function(I){for(;;)switch(I.prev=I.next){case 0:return l=0,d=[],y=Jre(this,Jy)[Jy].wrapPromiseFunction(function(){var T=Yre(Zy().mark(n(function F(k){var U,D,H,$,V,W,Y,p;return Zy().wrap(n(function(f){for(;;)switch(f.prev=f.next){case 0:return f.prev=0,f.next=3,c.compress(k.data);case 3:U=f.sent,D=k.data.size-U.size,c.uppy.log("[Image Compressor] Image ".concat(k.id," compressed by ").concat((0,SF.default)(D))),l+=D,H=U.name,$=U.type,V=U.size,W=ra(H),Y=ra(k.meta.name),p="".concat(Y.name,".").concat(W.extension),c.uppy.setFileState(k.id,Ni(Ni(Ni(Ni(Ni({},H&&{name:H}),W.extension&&{extension:W.extension}),$&&{type:$}),V&&{size:V}),{},{data:U,meta:Ni(Ni({},k.meta),{},{type:$,name:p})})),d.push(k),f.next=19;break;case 15:f.prev=15,f.t0=f.catch(0),c.uppy.log("[Image Compressor] Failed to compress ".concat(k.id,":"),"warning"),c.uppy.log(f.t0,"warning");case 19:case"end":return f.stop()}},"_callee$"),F,null,[[0,15]])},"_callee")));return function(F){return T.apply(this,arguments)}}()),m=u.map(function(T){var F=c.uppy.getFile(T);return c.uppy.emit("preprocess-progress",F,{mode:"indeterminate",message:c.i18n("compressingImages")}),F.isRemote||(F.data.type||(F.data=F.data.slice(0,F.data.size,F.type)),!F.type.startsWith("image/"))?Promise.resolve():y(F)}),I.next=6,Promise.all(m);case 6:this.uppy.emit("compressor:complete",d),l>1024&&this.uppy.info(this.i18n("compressedX",{size:(0,SF.default)(l)}),"info"),b=Usr(u);try{for(b.s();!(w=b.n()).done;)S=w.value,P=this.uppy.getFile(S),this.uppy.emit("preprocess-complete",P)}catch(T){b.e(T)}finally{b.f()}case 10:case"end":return I.stop()}},"_callee2$"),a,this)},"_callee2")));function o(a){return i.apply(this,arguments)}return n(o,"prepareUpload"),o}()},{key:"install",value:n(function(){this.uppy.addPreProcessor(this.prepareUpload)},"install")},{key:"uninstall",value:n(function(){this.uppy.removePreProcessor(this.prepareUpload)},"uninstall")}]),t}(fr);function aO(){return aO=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},aO.apply(this,arguments)}n(aO,"_extends");var Jsr={"[object HTMLCollection]":!0,"[object NodeList]":!0,"[object RadioNodeList]":!0},Zsr={button:!0,fieldset:!0,reset:!0,submit:!0},elr={checkbox:!0,radio:!0},rlr=/^\s+|\s+$/g,tlr=Array.prototype.slice,tte=Object.prototype.toString;function oO(r,e){if(!r)throw new Error("A form is required by getFormData, was given form="+r);e=aO({includeDisabled:!1,trim:!1},e);for(var t={},i,o=[],a={},u=0,c=r.elements.length;u<c;u++){var l=r.elements[u];Zsr[l.type]||l.disabled&&!e.includeDisabled||(i=l.name||l.id,i&&!a[i]&&(o.push(i),a[i]=!0))}for(var d=0,y=o.length;d<y;d++){i=o[d];var m=ite(r,i,e);m!=null&&(t[i]=m)}return t}n(oO,"getFormData");function ite(r,e,t){if(!r)throw new Error("A form is required by getFieldData, was given form="+r);if(!e&&tte.call(e)!=="[object String]")throw new Error("A field name is required by getFieldData, was given fieldName="+e);t=aO({includeDisabled:!1,trim:!1},t);var i=r.elements[e];if(!i||i.disabled&&!t.includeDisabled)return null;if(!Jsr[tte.call(i)])return nte(i,t.trim);for(var o=[],a=!0,u=0,c=i.length;u<c;u++)if(!(i[u].disabled&&!t.includeDisabled)){a&&i[u].type!=="radio"&&(a=!1);var l=nte(i[u],t.trim);l!=null&&(o=o.concat(l))}return a&&o.length===1?o[0]:o.length>0?o:null}n(ite,"getFieldData");function nte(r,e){var t=null,i=r.type;if(i==="select-one")return r.options.length&&(t=r.options[r.selectedIndex].value),t;if(i==="select-multiple"){t=[];for(var o=0,a=r.options.length;o<a;o++)r.options[o].selected&&t.push(r.options[o].value);return t.length===0&&(t=null),t}return i==="file"&&"files"in r?(r.multiple?(t=tlr.call(r.files),t.length===0&&(t=null)):t=r.files[0],t):(elr[i]?r.checked&&(i==="checkbox"&&!r.hasAttribute("value")?t=!0:t=r.value):t=e?r.value.replace(rlr,""):r.value,t)}n(nte,"getFormElementValue");oO.getFieldData=ite;function fp(r){"@babel/helpers - typeof";return fp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fp(r)}n(fp,"_typeof");function ate(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(ate,"ownKeys");function ote(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ate(Object(t),!0).forEach(function(i){nlr(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):ate(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(ote,"_objectSpread");function nlr(r,e,t){return e=ste(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(nlr,"_defineProperty");function ilr(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(ilr,"_classCallCheck");function ute(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,ste(i.key),i)}}n(ute,"_defineProperties");function alr(r,e,t){return e&&ute(r.prototype,e),t&&ute(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(alr,"_createClass");function ste(r){var e=olr(r,"string");return fp(e)==="symbol"?e:String(e)}n(ste,"_toPropertyKey");function olr(r,e){if(fp(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(fp(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(olr,"_toPrimitive");function ulr(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&OF(r,e)}n(ulr,"_inherits");function OF(r,e){return OF=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),OF(r,e)}n(OF,"_setPrototypeOf");function slr(r){var e=clr();return n(function(){var i=uO(r),o;if(e){var a=uO(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return llr(this,o)},"_createSuperInternal")}n(slr,"_createSuper");function llr(r,e){if(e&&(fp(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cp(r)}n(llr,"_possibleConstructorReturn");function cp(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(cp,"_assertThisInitialized");function clr(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(clr,"_isNativeReflectConstruct");function uO(r){return uO=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),uO(r)}n(uO,"_getPrototypeOf");var flr={version:"3.0.3"},PF=function(r){ulr(t,r);var e=slr(t);function t(i,o){var a;ilr(this,t),a=e.call(this,i,o),a.type="acquirer",a.id=a.opts.id||"Form",a.title="Form";var u={target:null,resultName:"uppyResult",getMetaFromForm:!0,addResultToForm:!0,submitOnSuccess:!1,triggerUploadOnSubmit:!1};return a.opts=ote(ote({},u),o),a.handleFormSubmit=a.handleFormSubmit.bind(cp(a)),a.handleUploadStart=a.handleUploadStart.bind(cp(a)),a.handleSuccess=a.handleSuccess.bind(cp(a)),a.addResultToForm=a.addResultToForm.bind(cp(a)),a.getMetaFromForm=a.getMetaFromForm.bind(cp(a)),a}return n(t,"Form"),alr(t,[{key:"handleUploadStart",value:n(function(){this.opts.getMetaFromForm&&this.getMetaFromForm()},"handleUploadStart")},{key:"handleSuccess",value:n(function(o){this.opts.addResultToForm&&this.addResultToForm(o),this.opts.submitOnSuccess&&this.form.submit()},"handleSuccess")},{key:"handleFormSubmit",value:n(function(o){var a=this;if(this.opts.triggerUploadOnSubmit){o.preventDefault();var u=Vr(o.target.elements),c=[];u.forEach(function(l){var d=l.tagName==="BUTTON"||l.tagName==="INPUT"&&l.type==="submit";d&&!l.disabled&&(l.disabled=!0,c.push(l))}),this.uppy.upload().then(function(){c.forEach(function(l){l.disabled=!1})},function(l){return c.forEach(function(d){d.disabled=!1}),Promise.reject(l)}).catch(function(l){a.uppy.log(l.stack||l.message||l)})}},"handleFormSubmit")},{key:"addResultToForm",value:n(function(o){this.uppy.log("[Form] Adding result to the original form:"),this.uppy.log(o);var a=this.form.querySelector('[name="'.concat(this.opts.resultName,'"]'));if(a){var u;try{u=JSON.parse(a.value)}catch(c){}Array.isArray(u)||(u=[]),u.push(o),a.value=JSON.stringify(u);return}a=document.createElement("input"),a.name=this.opts.resultName,a.type="hidden",a.value=JSON.stringify([o]),this.form.appendChild(a)},"addResultToForm")},{key:"getMetaFromForm",value:n(function(){var o=oO(this.form);delete o[this.opts.resultName],this.uppy.setMeta(o)},"getMetaFromForm")},{key:"install",value:n(function(){if(this.form=Rh(this.opts.target),!this.form||this.form.nodeName!=="FORM"){this.uppy.log("Form plugin requires a <form> target element passed in options to operate, none was found","error");return}this.form.addEventListener("submit",this.handleFormSubmit),this.uppy.on("upload",this.handleUploadStart),this.uppy.on("complete",this.handleSuccess)},"install")},{key:"uninstall",value:n(function(){this.form.removeEventListener("submit",this.handleFormSubmit),this.uppy.off("upload",this.handleUploadStart),this.uppy.off("complete",this.handleSuccess)},"uninstall")}]),t}(fr);PF.VERSION=flr.version;var Lte=Ce(hw(),1);function pp(r){"@babel/helpers - typeof";return pp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pp(r)}n(pp,"_typeof");function Tl(){"use strict";Tl=n(function(){return r},"_regeneratorRuntime");var r={},e=Object.prototype,t=e.hasOwnProperty,i=Object.defineProperty||function(p,s,f){p[s]=f.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(p,s,f){return Object.defineProperty(p,s,{value:f,enumerable:!0,configurable:!0,writable:!0}),p[s]}n(l,"define");try{l({},"")}catch(p){l=n(function(f,v,g){return f[v]=g},"define")}function d(p,s,f,v){var g=s&&s.prototype instanceof b?s:b,h=Object.create(g.prototype),O=new V(v||[]);return i(h,"_invoke",{value:U(p,f,O)}),h}n(d,"wrap");function y(p,s,f){try{return{type:"normal",arg:p.call(s,f)}}catch(v){return{type:"throw",arg:v}}}n(y,"tryCatch"),r.wrap=d;var m={};function b(){}n(b,"Generator");function w(){}n(w,"GeneratorFunction");function S(){}n(S,"GeneratorFunctionPrototype");var P={};l(P,a,function(){return this});var R=Object.getPrototypeOf,I=R&&R(R(W([])));I&&I!==e&&t.call(I,a)&&(P=I);var T=S.prototype=b.prototype=Object.create(P);function F(p){["next","throw","return"].forEach(function(s){l(p,s,function(f){return this._invoke(s,f)})})}n(F,"defineIteratorMethods");function k(p,s){function f(g,h,O,E){var A=y(p[g],p,h);if(A.type!=="throw"){var C=A.arg,N=C.value;return N&&pp(N)=="object"&&t.call(N,"__await")?s.resolve(N.__await).then(function(M){f("next",M,O,E)},function(M){f("throw",M,O,E)}):s.resolve(N).then(function(M){C.value=M,O(C)},function(M){return f("throw",M,O,E)})}E(A.arg)}n(f,"invoke");var v;i(this,"_invoke",{value:n(function(h,O){function E(){return new s(function(A,C){f(h,O,A,C)})}return n(E,"callInvokeWithMethodAndArg"),v=v?v.then(E,E):E()},"value")})}n(k,"AsyncIterator");function U(p,s,f){var v="suspendedStart";return function(g,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(g==="throw")throw h;return Y()}for(f.method=g,f.arg=h;;){var O=f.delegate;if(O){var E=D(O,f);if(E){if(E===m)continue;return E}}if(f.method==="next")f.sent=f._sent=f.arg;else if(f.method==="throw"){if(v==="suspendedStart")throw v="completed",f.arg;f.dispatchException(f.arg)}else f.method==="return"&&f.abrupt("return",f.arg);v="executing";var A=y(p,s,f);if(A.type==="normal"){if(v=f.done?"completed":"suspendedYield",A.arg===m)continue;return{value:A.arg,done:f.done}}A.type==="throw"&&(v="completed",f.method="throw",f.arg=A.arg)}}}n(U,"makeInvokeMethod");function D(p,s){var f=s.method,v=p.iterator[f];if(v===void 0)return s.delegate=null,f==="throw"&&p.iterator.return&&(s.method="return",s.arg=void 0,D(p,s),s.method==="throw")||f!=="return"&&(s.method="throw",s.arg=new TypeError("The iterator does not provide a '"+f+"' method")),m;var g=y(v,p.iterator,s.arg);if(g.type==="throw")return s.method="throw",s.arg=g.arg,s.delegate=null,m;var h=g.arg;return h?h.done?(s[p.resultName]=h.value,s.next=p.nextLoc,s.method!=="return"&&(s.method="next",s.arg=void 0),s.delegate=null,m):h:(s.method="throw",s.arg=new TypeError("iterator result is not an object"),s.delegate=null,m)}n(D,"maybeInvokeDelegate");function H(p){var s={tryLoc:p[0]};1 in p&&(s.catchLoc=p[1]),2 in p&&(s.finallyLoc=p[2],s.afterLoc=p[3]),this.tryEntries.push(s)}n(H,"pushTryEntry");function $(p){var s=p.completion||{};s.type="normal",delete s.arg,p.completion=s}n($,"resetTryEntry");function V(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(H,this),this.reset(!0)}n(V,"Context");function W(p){if(p){var s=p[a];if(s)return s.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var f=-1,v=n(function g(){for(;++f<p.length;)if(t.call(p,f))return g.value=p[f],g.done=!1,g;return g.value=void 0,g.done=!0,g},"next");return v.next=v}}return{next:Y}}n(W,"values");function Y(){return{value:void 0,done:!0}}return n(Y,"doneResult"),w.prototype=S,i(T,"constructor",{value:S,configurable:!0}),i(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),r.isGeneratorFunction=function(p){var s=typeof p=="function"&&p.constructor;return!!s&&(s===w||(s.displayName||s.name)==="GeneratorFunction")},r.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,S):(p.__proto__=S,l(p,c,"GeneratorFunction")),p.prototype=Object.create(T),p},r.awrap=function(p){return{__await:p}},F(k.prototype),l(k.prototype,u,function(){return this}),r.AsyncIterator=k,r.async=function(p,s,f,v,g){g===void 0&&(g=Promise);var h=new k(d(p,s,f,v),g);return r.isGeneratorFunction(s)?h:h.next().then(function(O){return O.done?O.value:h.next()})},F(T),l(T,c,"Generator"),l(T,a,function(){return this}),l(T,"toString",function(){return"[object Generator]"}),r.keys=function(p){var s=Object(p),f=[];for(var v in s)f.push(v);return f.reverse(),n(function g(){for(;f.length;){var h=f.pop();if(h in s)return g.value=h,g.done=!1,g}return g.done=!0,g},"next")},r.values=W,V.prototype={constructor:V,reset:n(function(s){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach($),!s)for(var f in this)f.charAt(0)==="t"&&t.call(this,f)&&!isNaN(+f.slice(1))&&(this[f]=void 0)},"reset"),stop:n(function(){this.done=!0;var s=this.tryEntries[0].completion;if(s.type==="throw")throw s.arg;return this.rval},"stop"),dispatchException:n(function(s){if(this.done)throw s;var f=this;function v(C,N){return O.type="throw",O.arg=s,f.next=C,N&&(f.method="next",f.arg=void 0),!!N}n(v,"handle");for(var g=this.tryEntries.length-1;g>=0;--g){var h=this.tryEntries[g],O=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var E=t.call(h,"catchLoc"),A=t.call(h,"finallyLoc");if(E&&A){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(E){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!A)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},"dispatchException"),abrupt:n(function(s,f){for(var v=this.tryEntries.length-1;v>=0;--v){var g=this.tryEntries[v];if(g.tryLoc<=this.prev&&t.call(g,"finallyLoc")&&this.prev<g.finallyLoc){var h=g;break}}h&&(s==="break"||s==="continue")&&h.tryLoc<=f&&f<=h.finallyLoc&&(h=null);var O=h?h.completion:{};return O.type=s,O.arg=f,h?(this.method="next",this.next=h.finallyLoc,m):this.complete(O)},"abrupt"),complete:n(function(s,f){if(s.type==="throw")throw s.arg;return s.type==="break"||s.type==="continue"?this.next=s.arg:s.type==="return"?(this.rval=this.arg=s.arg,this.method="return",this.next="end"):s.type==="normal"&&f&&(this.next=f),m},"complete"),finish:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.finallyLoc===s)return this.complete(v.completion,v.afterLoc),$(v),m}},"finish"),catch:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.tryLoc===s){var g=v.completion;if(g.type==="throw"){var h=g.arg;$(v)}return h}}throw new Error("illegal catch attempt")},"_catch"),delegateYield:n(function(s,f,v){return this.delegate={iterator:W(s),resultName:f,nextLoc:v},this.method==="next"&&(this.arg=void 0),m},"delegateYield")},r}n(Tl,"_regeneratorRuntime");function lte(r,e,t,i,o,a,u){try{var c=r[a](u),l=c.value}catch(d){t(d);return}c.done?e(l):Promise.resolve(l).then(i,o)}n(lte,"asyncGeneratorStep");function _F(r){return function(){var e=this,t=arguments;return new Promise(function(i,o){var a=r.apply(e,t);function u(l){lte(a,i,o,u,c,"next",l)}n(u,"_next");function c(l){lte(a,i,o,u,c,"throw",l)}n(c,"_throw"),u(void 0)})}}n(_F,"_asyncToGenerator");function plr(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(plr,"_classCallCheck");function cte(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,hlr(i.key),i)}}n(cte,"_defineProperties");function dlr(r,e,t){return e&&cte(r.prototype,e),t&&cte(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(dlr,"_createClass");function hlr(r){var e=vlr(r,"string");return pp(e)==="symbol"?e:String(e)}n(hlr,"_toPropertyKey");function vlr(r,e){if(pp(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(pp(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(vlr,"_toPrimitive");function El(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}n(El,"_classPrivateFieldLooseBase");var ylr=0;function mlr(r){return"__private_"+ylr+++"_"+r}n(mlr,"_classPrivateFieldLooseKey");var fte=typeof navigator!="undefined"&&"serviceWorker"in navigator;function glr(){return new Promise(function(r,e){fte?navigator.serviceWorker.controller?r():navigator.serviceWorker.addEventListener("controllerchange",function(){r()}):e(new Error("Unsupported"))})}n(glr,"waitForServiceWorker");var Xt=mlr("ready"),pte=function(){function r(e){var t=this;plr(this,r),Object.defineProperty(this,Xt,{writable:!0,value:void 0}),El(this,Xt)[Xt]=glr().then(function(i){El(t,Xt)[Xt]=i}),this.name=e.storeName}return n(r,"ServiceWorkerStore"),dlr(r,[{key:"ready",get:n(function(){return Promise.resolve(El(this,Xt)[Xt])},"get"),set:n(function(t){El(this,Xt)[Xt]=t},"set")},{key:"list",value:function(){var e=_F(Tl().mark(n(function i(){var o=this;return Tl().wrap(n(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,El(this,Xt)[Xt];case 2:return u.abrupt("return",new Promise(function(c,l){var d=n(function y(m){if(m.data.store===o.name)switch(m.data.type){case"uppy/ALL_FILES":c(m.data.files),navigator.serviceWorker.removeEventListener("message",y);break;default:l()}},"onMessage");navigator.serviceWorker.addEventListener("message",d),navigator.serviceWorker.controller.postMessage({type:"uppy/GET_FILES",store:o.name})}));case 3:case"end":return u.stop()}},"_callee$"),i,this)},"_callee")));function t(){return e.apply(this,arguments)}return n(t,"list"),t}()},{key:"put",value:function(){var e=_F(Tl().mark(n(function i(o){return Tl().wrap(n(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,El(this,Xt)[Xt];case 2:navigator.serviceWorker.controller.postMessage({type:"uppy/ADD_FILE",store:this.name,file:o});case 3:case"end":return u.stop()}},"_callee2$"),i,this)},"_callee2")));function t(i){return e.apply(this,arguments)}return n(t,"put"),t}()},{key:"delete",value:function(){var e=_F(Tl().mark(n(function i(o){return Tl().wrap(n(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,El(this,Xt)[Xt];case 2:navigator.serviceWorker.controller.postMessage({type:"uppy/REMOVE_FILE",store:this.name,fileID:o});case 3:case"end":return u.stop()}},"_callee3$"),i,this)},"_callee3")));function t(i){return e.apply(this,arguments)}return n(t,"_delete"),t}()}]),r}();pte.isSupported=fte;var dte=pte;function dp(r){"@babel/helpers - typeof";return dp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dp(r)}n(dp,"_typeof");function Qt(){"use strict";Qt=n(function(){return r},"_regeneratorRuntime");var r={},e=Object.prototype,t=e.hasOwnProperty,i=Object.defineProperty||function(p,s,f){p[s]=f.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(p,s,f){return Object.defineProperty(p,s,{value:f,enumerable:!0,configurable:!0,writable:!0}),p[s]}n(l,"define");try{l({},"")}catch(p){l=n(function(f,v,g){return f[v]=g},"define")}function d(p,s,f,v){var g=s&&s.prototype instanceof b?s:b,h=Object.create(g.prototype),O=new V(v||[]);return i(h,"_invoke",{value:U(p,f,O)}),h}n(d,"wrap");function y(p,s,f){try{return{type:"normal",arg:p.call(s,f)}}catch(v){return{type:"throw",arg:v}}}n(y,"tryCatch"),r.wrap=d;var m={};function b(){}n(b,"Generator");function w(){}n(w,"GeneratorFunction");function S(){}n(S,"GeneratorFunctionPrototype");var P={};l(P,a,function(){return this});var R=Object.getPrototypeOf,I=R&&R(R(W([])));I&&I!==e&&t.call(I,a)&&(P=I);var T=S.prototype=b.prototype=Object.create(P);function F(p){["next","throw","return"].forEach(function(s){l(p,s,function(f){return this._invoke(s,f)})})}n(F,"defineIteratorMethods");function k(p,s){function f(g,h,O,E){var A=y(p[g],p,h);if(A.type!=="throw"){var C=A.arg,N=C.value;return N&&dp(N)=="object"&&t.call(N,"__await")?s.resolve(N.__await).then(function(M){f("next",M,O,E)},function(M){f("throw",M,O,E)}):s.resolve(N).then(function(M){C.value=M,O(C)},function(M){return f("throw",M,O,E)})}E(A.arg)}n(f,"invoke");var v;i(this,"_invoke",{value:n(function(h,O){function E(){return new s(function(A,C){f(h,O,A,C)})}return n(E,"callInvokeWithMethodAndArg"),v=v?v.then(E,E):E()},"value")})}n(k,"AsyncIterator");function U(p,s,f){var v="suspendedStart";return function(g,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(g==="throw")throw h;return Y()}for(f.method=g,f.arg=h;;){var O=f.delegate;if(O){var E=D(O,f);if(E){if(E===m)continue;return E}}if(f.method==="next")f.sent=f._sent=f.arg;else if(f.method==="throw"){if(v==="suspendedStart")throw v="completed",f.arg;f.dispatchException(f.arg)}else f.method==="return"&&f.abrupt("return",f.arg);v="executing";var A=y(p,s,f);if(A.type==="normal"){if(v=f.done?"completed":"suspendedYield",A.arg===m)continue;return{value:A.arg,done:f.done}}A.type==="throw"&&(v="completed",f.method="throw",f.arg=A.arg)}}}n(U,"makeInvokeMethod");function D(p,s){var f=s.method,v=p.iterator[f];if(v===void 0)return s.delegate=null,f==="throw"&&p.iterator.return&&(s.method="return",s.arg=void 0,D(p,s),s.method==="throw")||f!=="return"&&(s.method="throw",s.arg=new TypeError("The iterator does not provide a '"+f+"' method")),m;var g=y(v,p.iterator,s.arg);if(g.type==="throw")return s.method="throw",s.arg=g.arg,s.delegate=null,m;var h=g.arg;return h?h.done?(s[p.resultName]=h.value,s.next=p.nextLoc,s.method!=="return"&&(s.method="next",s.arg=void 0),s.delegate=null,m):h:(s.method="throw",s.arg=new TypeError("iterator result is not an object"),s.delegate=null,m)}n(D,"maybeInvokeDelegate");function H(p){var s={tryLoc:p[0]};1 in p&&(s.catchLoc=p[1]),2 in p&&(s.finallyLoc=p[2],s.afterLoc=p[3]),this.tryEntries.push(s)}n(H,"pushTryEntry");function $(p){var s=p.completion||{};s.type="normal",delete s.arg,p.completion=s}n($,"resetTryEntry");function V(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(H,this),this.reset(!0)}n(V,"Context");function W(p){if(p){var s=p[a];if(s)return s.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var f=-1,v=n(function g(){for(;++f<p.length;)if(t.call(p,f))return g.value=p[f],g.done=!1,g;return g.value=void 0,g.done=!0,g},"next");return v.next=v}}return{next:Y}}n(W,"values");function Y(){return{value:void 0,done:!0}}return n(Y,"doneResult"),w.prototype=S,i(T,"constructor",{value:S,configurable:!0}),i(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,c,"GeneratorFunction"),r.isGeneratorFunction=function(p){var s=typeof p=="function"&&p.constructor;return!!s&&(s===w||(s.displayName||s.name)==="GeneratorFunction")},r.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,S):(p.__proto__=S,l(p,c,"GeneratorFunction")),p.prototype=Object.create(T),p},r.awrap=function(p){return{__await:p}},F(k.prototype),l(k.prototype,u,function(){return this}),r.AsyncIterator=k,r.async=function(p,s,f,v,g){g===void 0&&(g=Promise);var h=new k(d(p,s,f,v),g);return r.isGeneratorFunction(s)?h:h.next().then(function(O){return O.done?O.value:h.next()})},F(T),l(T,c,"Generator"),l(T,a,function(){return this}),l(T,"toString",function(){return"[object Generator]"}),r.keys=function(p){var s=Object(p),f=[];for(var v in s)f.push(v);return f.reverse(),n(function g(){for(;f.length;){var h=f.pop();if(h in s)return g.value=h,g.done=!1,g}return g.done=!0,g},"next")},r.values=W,V.prototype={constructor:V,reset:n(function(s){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach($),!s)for(var f in this)f.charAt(0)==="t"&&t.call(this,f)&&!isNaN(+f.slice(1))&&(this[f]=void 0)},"reset"),stop:n(function(){this.done=!0;var s=this.tryEntries[0].completion;if(s.type==="throw")throw s.arg;return this.rval},"stop"),dispatchException:n(function(s){if(this.done)throw s;var f=this;function v(C,N){return O.type="throw",O.arg=s,f.next=C,N&&(f.method="next",f.arg=void 0),!!N}n(v,"handle");for(var g=this.tryEntries.length-1;g>=0;--g){var h=this.tryEntries[g],O=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var E=t.call(h,"catchLoc"),A=t.call(h,"finallyLoc");if(E&&A){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(E){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!A)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},"dispatchException"),abrupt:n(function(s,f){for(var v=this.tryEntries.length-1;v>=0;--v){var g=this.tryEntries[v];if(g.tryLoc<=this.prev&&t.call(g,"finallyLoc")&&this.prev<g.finallyLoc){var h=g;break}}h&&(s==="break"||s==="continue")&&h.tryLoc<=f&&f<=h.finallyLoc&&(h=null);var O=h?h.completion:{};return O.type=s,O.arg=f,h?(this.method="next",this.next=h.finallyLoc,m):this.complete(O)},"abrupt"),complete:n(function(s,f){if(s.type==="throw")throw s.arg;return s.type==="break"||s.type==="continue"?this.next=s.arg:s.type==="return"?(this.rval=this.arg=s.arg,this.method="return",this.next="end"):s.type==="normal"&&f&&(this.next=f),m},"complete"),finish:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.finallyLoc===s)return this.complete(v.completion,v.afterLoc),$(v),m}},"finish"),catch:n(function(s){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.tryLoc===s){var g=v.completion;if(g.type==="throw"){var h=g.arg;$(v)}return h}}throw new Error("illegal catch attempt")},"_catch"),delegateYield:n(function(s,f,v){return this.delegate={iterator:W(s),resultName:f,nextLoc:v},this.method==="next"&&(this.arg=void 0),m},"delegateYield")},r}n(Qt,"_regeneratorRuntime");function hte(r,e,t,i,o,a,u){try{var c=r[a](u),l=c.value}catch(d){t(d);return}c.done?e(l):Promise.resolve(l).then(i,o)}n(hte,"asyncGeneratorStep");function Rl(r){return function(){var e=this,t=arguments;return new Promise(function(i,o){var a=r.apply(e,t);function u(l){hte(a,i,o,u,c,"next",l)}n(u,"_next");function c(l){hte(a,i,o,u,c,"throw",l)}n(c,"_throw"),u(void 0)})}}n(Rl,"_asyncToGenerator");function vte(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(vte,"ownKeys");function blr(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?vte(Object(t),!0).forEach(function(i){wlr(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):vte(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(blr,"_objectSpread");function wlr(r,e,t){return e=Ste(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(wlr,"_defineProperty");function Slr(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(Slr,"_classCallCheck");function yte(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,Ste(i.key),i)}}n(yte,"_defineProperties");function Olr(r,e,t){return e&&yte(r.prototype,e),t&&yte(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(Olr,"_createClass");function Ste(r){var e=Plr(r,"string");return dp(e)==="symbol"?e:String(e)}n(Ste,"_toPropertyKey");function Plr(r,e){if(dp(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(dp(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(Plr,"_toPrimitive");function ma(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}n(ma,"_classPrivateFieldLooseBase");var _lr=0;function Elr(r){return"__private_"+_lr+++"_"+r}n(Elr,"_classPrivateFieldLooseKey");var Ote=typeof window!="undefined"&&(window.indexedDB||window.webkitIndexedDB||window.mozIndexedDB||window.OIndexedDB||window.msIndexedDB),Tlr=!!Ote,mte="uppy-blobs",yn="files",Pte=24*60*60*1e3,Rlr=3,gte=1048576;function Alr(r){var e=r.openCursor();e.onsuccess=function(t){var i=t.target.result;if(i){var o=i.value;o.expires=Date.now()+Pte,i.update(o)}}}n(Alr,"migrateExpiration");function bte(r){var e=Ote.open(r,Rlr);return new Promise(function(t,i){e.onupgradeneeded=function(o){var a=o.target.result,u=o.currentTarget.transaction;if(o.oldVersion<2){var c=a.createObjectStore(yn,{keyPath:"id"});c.createIndex("store","store",{unique:!1})}if(o.oldVersion<3){var l=u.objectStore(yn);l.createIndex("expires","expires",{unique:!1}),Alr(l)}u.oncomplete=function(){t(a)}},e.onsuccess=function(o){t(o.target.result)},e.onerror=i})}n(bte,"connect");function sO(r){return new Promise(function(e,t){r.onsuccess=function(i){e(i.target.result)},r.onerror=t})}n(sO,"waitForRequest");var wte=!1,Mr=Elr("ready"),_te=function(){function r(e){var t=this;Slr(this,r),Object.defineProperty(this,Mr,{writable:!0,value:void 0}),this.opts=blr({dbName:mte,storeName:"default",expires:Pte,maxFileSize:10*gte,maxTotalSize:300*gte},e),this.name=this.opts.storeName;var i=function(){var o=Rl(Qt().mark(n(function a(){var u;return Qt().wrap(n(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,bte(t.opts.dbName);case 2:return u=l.sent,ma(t,Mr)[Mr]=u,l.abrupt("return",u);case 5:case"end":return l.stop()}},"_callee$"),a)},"_callee")));return n(function(){return o.apply(this,arguments)},"createConnection")}();wte?ma(this,Mr)[Mr]=i():(wte=!0,ma(this,Mr)[Mr]=r.cleanup().then(i,i))}return n(r,"IndexedDBStore"),Olr(r,[{key:"ready",get:n(function(){return Promise.resolve(ma(this,Mr)[Mr])},"get"),set:n(function(t){ma(this,Mr)[Mr]=t},"set")},{key:"key",value:n(function(t){return"".concat(this.name,"!").concat(t)},"key")},{key:"list",value:function(){var e=Rl(Qt().mark(n(function i(){var o,a,u,c,l;return Qt().wrap(n(function(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,ma(this,Mr)[Mr];case 2:return o=y.sent,a=o.transaction([yn],"readonly"),u=a.objectStore(yn),c=u.index("store").getAll(IDBKeyRange.only(this.name)),y.next=8,sO(c);case 8:return l=y.sent,y.abrupt("return",Object.fromEntries(l.map(function(m){return[m.fileID,m.data]})));case 10:case"end":return y.stop()}},"_callee2$"),i,this)},"_callee2")));function t(){return e.apply(this,arguments)}return n(t,"list"),t}()},{key:"get",value:function(){var e=Rl(Qt().mark(n(function i(o){var a,u,c,l,d;return Qt().wrap(n(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,ma(this,Mr)[Mr];case 2:return a=m.sent,u=a.transaction([yn],"readonly"),c=u.objectStore(yn).get(this.key(o)),m.next=7,sO(c);case 7:return l=m.sent,d=l.data,m.abrupt("return",{id:d.fileID,data:d.data});case 10:case"end":return m.stop()}},"_callee3$"),i,this)},"_callee3")));function t(i){return e.apply(this,arguments)}return n(t,"get"),t}()},{key:"getSize",value:function(){var e=Rl(Qt().mark(n(function i(){var o,a,u,c;return Qt().wrap(n(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,ma(this,Mr)[Mr];case 2:return o=d.sent,a=o.transaction([yn],"readonly"),u=a.objectStore(yn),c=u.index("store").openCursor(IDBKeyRange.only(this.name)),d.abrupt("return",new Promise(function(y,m){var b=0;c.onsuccess=function(w){var S=w.target.result;S?(b+=S.value.data.size,S.continue()):y(b)},c.onerror=function(){m(new Error("Could not retrieve stored blobs size"))}}));case 7:case"end":return d.stop()}},"_callee4$"),i,this)},"_callee4")));function t(){return e.apply(this,arguments)}return n(t,"getSize"),t}()},{key:"put",value:function(){var e=Rl(Qt().mark(n(function i(o){var a,u,c,l;return Qt().wrap(n(function(y){for(;;)switch(y.prev=y.next){case 0:if(!(o.data.size>this.opts.maxFileSize)){y.next=2;break}throw new Error("File is too big to store.");case 2:return y.next=4,this.getSize();case 4:if(a=y.sent,!(a>this.opts.maxTotalSize)){y.next=7;break}throw new Error("No space left");case 7:return u=ma(this,Mr)[Mr],c=u.transaction([yn],"readwrite"),l=c.objectStore(yn).add({id:this.key(o.id),fileID:o.id,store:this.name,expires:Date.now()+this.opts.expires,data:o.data}),y.abrupt("return",sO(l));case 11:case"end":return y.stop()}},"_callee5$"),i,this)},"_callee5")));function t(i){return e.apply(this,arguments)}return n(t,"put"),t}()},{key:"delete",value:function(){var e=Rl(Qt().mark(n(function i(o){var a,u,c;return Qt().wrap(n(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,ma(this,Mr)[Mr];case 2:return a=d.sent,u=a.transaction([yn],"readwrite"),c=u.objectStore(yn).delete(this.key(o)),d.abrupt("return",sO(c));case 6:case"end":return d.stop()}},"_callee6$"),i,this)},"_callee6")));function t(i){return e.apply(this,arguments)}return n(t,"_delete"),t}()}],[{key:"cleanup",value:function(){var e=Rl(Qt().mark(n(function i(){var o,a,u,c;return Qt().wrap(n(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,bte(mte);case 2:return o=d.sent,a=o.transaction([yn],"readwrite"),u=a.objectStore(yn),c=u.index("expires").openCursor(IDBKeyRange.upperBound(Date.now())),d.next=8,new Promise(function(y,m){c.onsuccess=function(b){var w=b.target.result;w?(w.delete(),w.continue()):y()},c.onerror=m});case 8:o.close();case 9:case"end":return d.stop()}},"_callee7$"),i)},"_callee7")));function t(){return e.apply(this,arguments)}return n(t,"cleanup"),t}()}]),r}();_te.isSupported=Tlr;var Ete=_te;function rm(r){"@babel/helpers - typeof";return rm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rm(r)}n(rm,"_typeof");function Tte(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(Tte,"ownKeys");function Ilr(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Tte(Object(t),!0).forEach(function(i){qlr(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Tte(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(Ilr,"_objectSpread");function qlr(r,e,t){return e=qte(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(qlr,"_defineProperty");function klr(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(klr,"_classCallCheck");function Rte(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,qte(i.key),i)}}n(Rte,"_defineProperties");function jlr(r,e,t){return e&&Rte(r.prototype,e),t&&Rte(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(jlr,"_createClass");function qte(r){var e=Flr(r,"string");return rm(e)==="symbol"?e:String(e)}n(qte,"_toPropertyKey");function Flr(r,e){if(rm(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(rm(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(Flr,"_toPrimitive");function Clr(){for(var r=[],e=0;e<localStorage.length;e++){var t=localStorage.key(e);t.startsWith("uppyState:")&&r.push(t.slice(10))}return r}n(Clr,"findUppyInstances");function Ate(r){try{return JSON.parse(r)}catch(e){return null}}n(Ate,"maybeParse");var Ite=!1,tm=function(){function r(e){klr(this,r),this.opts=Ilr({expires:24*60*60*1e3},e),this.name="uppyState:".concat(e.storeName),Ite||(Ite=!0,r.cleanup())}return n(r,"MetaDataStore"),jlr(r,[{key:"load",value:n(function(){var t=localStorage.getItem(this.name);if(!t)return null;var i=Ate(t);return i?i.metadata?i.metadata:(this.save(i),i):null},"load")},{key:"save",value:n(function(t){var i=Date.now()+this.opts.expires,o=JSON.stringify({metadata:t,expires:i});localStorage.setItem(this.name,o)},"save")}],[{key:"cleanup",value:n(function(t){if(t){localStorage.removeItem("uppyState:".concat(t));return}var i=Clr(),o=Date.now();i.forEach(function(a){var u=localStorage.getItem("uppyState:".concat(a));if(u){var c=Ate(u);c&&c.expires&&c.expires<o&&localStorage.removeItem("uppyState:".concat(a))}})},"cleanup")}]),r}();function vp(r){"@babel/helpers - typeof";return vp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vp(r)}n(vp,"_typeof");function Llr(r,e){return Mlr(r)||Dlr(r,e)||xlr(r,e)||Nlr()}n(Llr,"_slicedToArray");function Nlr(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n(Nlr,"_nonIterableRest");function xlr(r,e){if(r){if(typeof r=="string")return kte(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return kte(r,e)}}n(xlr,"_unsupportedIterableToArray");function kte(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=r[t];return i}n(kte,"_arrayLikeToArray");function Dlr(r,e){var t=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var i,o,a,u,c=[],l=!0,d=!1;try{if(a=(t=t.call(r)).next,e===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(i=a.call(t)).done)&&(c.push(i.value),c.length!==e);l=!0);}catch(y){d=!0,o=y}finally{try{if(!l&&t.return!=null&&(u=t.return(),Object(u)!==u))return}finally{if(d)throw o}}return c}}n(Dlr,"_iterableToArrayLimit");function Mlr(r){if(Array.isArray(r))return r}n(Mlr,"_arrayWithHoles");function jte(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(jte,"ownKeys");function Tt(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?jte(Object(t),!0).forEach(function(i){Ulr(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):jte(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(Tt,"_objectSpread");function Ulr(r,e,t){return e=Cte(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(Ulr,"_defineProperty");function Blr(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(Blr,"_classCallCheck");function Fte(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,Cte(i.key),i)}}n(Fte,"_defineProperties");function $lr(r,e,t){return e&&Fte(r.prototype,e),t&&Fte(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n($lr,"_createClass");function Cte(r){var e=Glr(r,"string");return vp(e)==="symbol"?e:String(e)}n(Cte,"_toPropertyKey");function Glr(r,e){if(vp(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(vp(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(Glr,"_toPrimitive");function zlr(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&EF(r,e)}n(zlr,"_inherits");function EF(r,e){return EF=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),EF(r,e)}n(EF,"_setPrototypeOf");function Hlr(r){var e=Vlr();return n(function(){var i=lO(r),o;if(e){var a=lO(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return Wlr(this,o)},"_createSuperInternal")}n(Hlr,"_createSuper");function Wlr(r,e){if(e&&(vp(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hp(r)}n(Wlr,"_possibleConstructorReturn");function hp(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(hp,"_assertThisInitialized");function Vlr(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(Vlr,"_isNativeReflectConstruct");function lO(r){return lO=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),lO(r)}n(lO,"_getPrototypeOf");var Klr={version:"3.1.1"},TF=function(r){zlr(t,r);var e=Hlr(t);function t(i,o){var a;Blr(this,t),a=e.call(this,i,o),a.addBlobToStores=function(c){c.isRemote||(a.ServiceWorkerStore&&a.ServiceWorkerStore.put(c).catch(function(l){a.uppy.log("[GoldenRetriever] Could not store file","warning"),a.uppy.log(l)}),a.IndexedDBStore.put(c).catch(function(l){a.uppy.log("[GoldenRetriever] Could not store file","warning"),a.uppy.log(l)}))},a.removeBlobFromStores=function(c){a.ServiceWorkerStore&&a.ServiceWorkerStore.delete(c.id).catch(function(l){a.uppy.log("[GoldenRetriever] Failed to remove file","warning"),a.uppy.log(l)}),a.IndexedDBStore.delete(c.id).catch(function(l){a.uppy.log("[GoldenRetriever] Failed to remove file","warning"),a.uppy.log(l)})},a.replaceBlobInStores=function(c){a.removeBlobFromStores(c),a.addBlobToStores(c)},a.handleRestoreConfirmed=function(){a.uppy.log("[GoldenRetriever] Restore confirmed, proceeding...");var c=a.uppy.getState(),l=c.currentUploads;l&&(a.uppy.resumeAll(),Object.keys(l).forEach(function(d){a.uppy.restore(d,l[d])})),a.uppy.setState({recoveredState:null})},a.abortRestore=function(){a.uppy.log("[GoldenRetriever] Aborting restore...");var c=Object.keys(a.uppy.getState().files);a.deleteBlobs(c).then(function(){a.uppy.log("[GoldenRetriever] Removed ".concat(c.length," files"))}).catch(function(l){a.uppy.log("[GoldenRetriever] Could not remove ".concat(c.length," files"),"warning"),a.uppy.log(l)}),a.uppy.cancelAll(),a.uppy.setState({recoveredState:null}),tm.cleanup(a.uppy.opts.id)},a.handleComplete=function(c){var l=c.successful,d=l.map(function(y){return y.id});a.deleteBlobs(d).then(function(){a.uppy.log("[GoldenRetriever] Removed ".concat(l.length," files that finished uploading"))}).catch(function(y){a.uppy.log("[GoldenRetriever] Could not remove ".concat(l.length," files that finished uploading"),"warning"),a.uppy.log(y)}),a.uppy.setState({recoveredState:null}),tm.cleanup(a.uppy.opts.id)},a.restoreBlobs=function(){a.uppy.getFiles().length>0?Promise.all([a.loadFileBlobsFromServiceWorker(),a.loadFileBlobsFromIndexedDB()]).then(function(c){var l=Tt(Tt({},c[0]),c[1]);a.onBlobsLoaded(l)}):a.uppy.log("[GoldenRetriever] No files need to be loaded, only restoring processing state...")},a.type="debugger",a.id=a.opts.id||"GoldenRetriever",a.title="Golden Retriever";var u={expires:24*60*60*1e3,serviceWorker:!1};return a.opts=Tt(Tt({},u),o),a.MetaDataStore=new tm({expires:a.opts.expires,storeName:i.getID()}),a.ServiceWorkerStore=null,a.opts.serviceWorker&&(a.ServiceWorkerStore=new dte({storeName:i.getID()})),a.IndexedDBStore=new Ete(Tt(Tt({expires:a.opts.expires},a.opts.indexedDB||{}),{},{storeName:i.getID()})),a.saveFilesStateToLocalStorage=(0,Lte.default)(a.saveFilesStateToLocalStorage.bind(hp(a)),500,{leading:!0,trailing:!0}),a.restoreState=a.restoreState.bind(hp(a)),a.loadFileBlobsFromServiceWorker=a.loadFileBlobsFromServiceWorker.bind(hp(a)),a.loadFileBlobsFromIndexedDB=a.loadFileBlobsFromIndexedDB.bind(hp(a)),a.onBlobsLoaded=a.onBlobsLoaded.bind(hp(a)),a}return n(t,"GoldenRetriever"),$lr(t,[{key:"restoreState",value:n(function(){var o=this.MetaDataStore.load();o&&(this.uppy.log("[GoldenRetriever] Recovered some state from Local Storage"),this.uppy.setState({currentUploads:o.currentUploads||{},files:o.files||{},recoveredState:o}),this.savedPluginData=o.pluginData)},"restoreState")},{key:"getWaitingFiles",value:n(function(){var o={};return this.uppy.getFiles().forEach(function(a){(!a.progress||!a.progress.uploadStarted)&&(o[a.id]=a)}),o},"getWaitingFiles")},{key:"getUploadingFiles",value:n(function(){var o=this,a={},u=this.uppy.getState(),c=u.currentUploads;if(c){var l=Object.keys(c);l.forEach(function(d){var y=c[d].fileIDs;y.forEach(function(m){a[m]=o.uppy.getFile(m)})})}return a},"getUploadingFiles")},{key:"saveFilesStateToLocalStorage",value:n(function(){var o=Tt(Tt({},this.getWaitingFiles()),this.getUploadingFiles()),a=Object.entries(o);if(a.length===0){this.uppy.getState().recoveredState!==null&&this.uppy.setState({recoveredState:null}),tm.cleanup(this.uppy.opts.id);return}var u=Object.fromEntries(a.map(function(y){var m=Llr(y,2),b=m[0],w=m[1];return[b,w.isRemote?Tt(Tt({},w),{},{isRestored:!0}):Tt(Tt({},w),{},{isRestored:!0,data:null,preview:null})]})),c={};this.uppy.emit("restore:get-data",function(y){Object.assign(c,y)});var l=this.uppy.getState(),d=l.currentUploads;this.MetaDataStore.save({currentUploads:d,files:u,pluginData:c})},"saveFilesStateToLocalStorage")},{key:"loadFileBlobsFromServiceWorker",value:n(function(){var o=this;return this.ServiceWorkerStore?this.ServiceWorkerStore.list().then(function(a){var u=Object.keys(a).length;return u>0?(o.uppy.log("[GoldenRetriever] Successfully recovered ".concat(u," blobs from Service Worker!")),a):(o.uppy.log("[GoldenRetriever] No blobs found in Service Worker, trying IndexedDB now..."),{})}).catch(function(a){return o.uppy.log("[GoldenRetriever] Failed to recover blobs from Service Worker","warning"),o.uppy.log(a),{}}):Promise.resolve({})},"loadFileBlobsFromServiceWorker")},{key:"loadFileBlobsFromIndexedDB",value:n(function(){var o=this;return this.IndexedDBStore.list().then(function(a){var u=Object.keys(a).length;return u>0?(o.uppy.log("[GoldenRetriever] Successfully recovered ".concat(u," blobs from IndexedDB!")),a):(o.uppy.log("[GoldenRetriever] No blobs found in IndexedDB"),{})}).catch(function(a){return o.uppy.log("[GoldenRetriever] Failed to recover blobs from IndexedDB","warning"),o.uppy.log(a),{}})},"loadFileBlobsFromIndexedDB")},{key:"onBlobsLoaded",value:n(function(o){var a=this,u=[],c=Tt({},this.uppy.getState().files);Object.keys(o).forEach(function(l){var d=a.uppy.getFile(l);if(!d){u.push(l);return}var y=o[l],m={data:y,isRestored:!0,isGhost:!1};c[l]=Tt(Tt({},d),m)}),Object.keys(c).forEach(function(l){c[l].data===null&&(c[l]=Tt(Tt({},c[l]),{},{isGhost:!0}))}),this.uppy.setState({files:c}),this.uppy.emit("restored",this.savedPluginData),u.length&&this.deleteBlobs(u).then(function(){a.uppy.log("[GoldenRetriever] Cleaned up ".concat(u.length," old files"))}).catch(function(l){a.uppy.log("[GoldenRetriever] Could not clean up ".concat(u.length," old files"),"warning"),a.uppy.log(l)})},"onBlobsLoaded")},{key:"deleteBlobs",value:n(function(o){var a=this;return Promise.all(o.map(function(u){var c,l,d;return(c=(l=a.ServiceWorkerStore)==null?void 0:l.delete(u))!=null?c:(d=a.IndexedDBStore)==null?void 0:d.delete(u)}))},"deleteBlobs")},{key:"install",value:n(function(){this.restoreState(),this.restoreBlobs(),this.uppy.on("file-added",this.addBlobToStores),this.uppy.on("file-editor:complete",this.replaceBlobInStores),this.uppy.on("file-removed",this.removeBlobFromStores),this.uppy.on("state-update",this.saveFilesStateToLocalStorage),this.uppy.on("restore-confirmed",this.handleRestoreConfirmed),this.uppy.on("restore-canceled",this.abortRestore),this.uppy.on("complete",this.handleComplete)},"install")},{key:"uninstall",value:n(function(){this.uppy.off("file-added",this.addBlobToStores),this.uppy.off("file-editor:complete",this.replaceBlobInStores),this.uppy.off("file-removed",this.removeBlobFromStores),this.uppy.off("state-update",this.saveFilesStateToLocalStorage),this.uppy.off("restore-confirmed",this.handleRestoreConfirmed),this.uppy.off("restore-canceled",this.abortRestore),this.uppy.off("complete",this.handleComplete)},"uninstall")}]),t}(fr);TF.VERSION=Klr.version;function mp(r){"@babel/helpers - typeof";return mp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mp(r)}n(mp,"_typeof");function Nte(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,i)}return t}n(Nte,"ownKeys");function yp(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Nte(Object(t),!0).forEach(function(i){Ylr(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Nte(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}n(yp,"_objectSpread");function Ylr(r,e,t){return e=Dte(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}n(Ylr,"_defineProperty");function Xlr(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}n(Xlr,"_classCallCheck");function xte(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,Dte(i.key),i)}}n(xte,"_defineProperties");function Qlr(r,e,t){return e&&xte(r.prototype,e),t&&xte(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}n(Qlr,"_createClass");function Dte(r){var e=Jlr(r,"string");return mp(e)==="symbol"?e:String(e)}n(Dte,"_toPropertyKey");function Jlr(r,e){if(mp(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(mp(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}n(Jlr,"_toPrimitive");function Zlr(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&RF(r,e)}n(Zlr,"_inherits");function RF(r,e){return RF=Object.setPrototypeOf?Object.setPrototypeOf.bind():n(function(i,o){return i.__proto__=o,i},"_setPrototypeOf"),RF(r,e)}n(RF,"_setPrototypeOf");function ecr(r){var e=tcr();return n(function(){var i=cO(r),o;if(e){var a=cO(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return rcr(this,o)},"_createSuperInternal")}n(ecr,"_createSuper");function rcr(r,e){if(e&&(mp(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return AF(r)}n(rcr,"_possibleConstructorReturn");function AF(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}n(AF,"_assertThisInitialized");function tcr(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}n(tcr,"_isNativeReflectConstruct");function cO(r){return cO=Object.setPrototypeOf?Object.getPrototypeOf.bind():n(function(t){return t.__proto__||Object.getPrototypeOf(t)},"_getPrototypeOf"),cO(r)}n(cO,"_getPrototypeOf");var ncr={version:"3.0.3"},IF=function(r){Zlr(t,r);var e=ecr(t);function t(i,o){var a;Xlr(this,t),a=e.call(this,i,o),a.type="debugger",a.id=a.opts.id||"ReduxDevTools",a.title="Redux DevTools";var u={};return a.opts=yp(yp({},u),o),a.handleStateChange=a.handleStateChange.bind(AF(a)),a.initDevTools=a.initDevTools.bind(AF(a)),a}return n(t,"ReduxDevTools"),Qlr(t,[{key:"handleStateChange",value:n(function(o,a){this.devTools.send("UPPY_STATE_UPDATE",a)},"handleStateChange")},{key:"initDevTools",value:n(function(){var o=this;this.devTools=window.devToolsExtension.connect(),this.devToolsUnsubscribe=this.devTools.subscribe(function(a){if(a.type==="DISPATCH")switch(a.payload.type){case"RESET":o.uppy.cancelAll();return;case"IMPORT_STATE":{var u=a.payload.nextLiftedState.computedStates;o.uppy.store.state=yp(yp({},o.uppy.getState()),u[u.length-1].state),o.uppy.updateAll(o.uppy.getState());return}case"JUMP_TO_STATE":case"JUMP_TO_ACTION":o.uppy.store.state=yp(yp({},o.uppy.getState()),JSON.parse(a.state)),o.uppy.updateAll(o.uppy.getState());break;default:}})},"initDevTools")},{key:"install",value:n(function(){this.withDevTools=typeof window!="undefined"&&window.__REDUX_DEVTOOLS_EXTENSION__,this.withDevTools&&(this.initDevTools(),this.uppy.on("state-update",this.handleStateChange))},"install")},{key:"uninstall",value:n(function(){this.withDevTools&&(this.devToolsUnsubscribe(),this.uppy.off("state-update",this.handleStateUpdate))},"uninstall")}]),t}(Ee);IF.VERSION=ncr.version;function icr(){throw new Error("Core has been renamed to Uppy")}n(icr,"Core");var acr={ProviderView:GI};wu.COMPANION_URL=uF;wu.COMPANION_ALLOWED_HOSTS=sF;var ocr={};globalThis.Uppy=qF;typeof window.ResizeObserver!="function"&&(window.ResizeObserver=Uz);})();
|
|
/**
|
|
* Takes a string with placeholder variables like `%{smart_count} file selected`
|
|
* and replaces it with values from options `{smart_count: 5}`
|
|
*
|
|
* @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
|
|
* taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
|
|
*
|
|
* @param phrase that needs interpolation, with placeholders
|
|
* @param options with values that will be used to replace placeholders
|
|
*/
|
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
/*! Bundled license information:
|
|
|
|
classnames/index.js:
|
|
(*!
|
|
Copyright (c) 2018 Jed Watson.
|
|
Licensed under the MIT License (MIT), see
|
|
http://jedwatson.github.io/classnames
|
|
*)
|
|
|
|
cropperjs/dist/cropper.js:
|
|
(*!
|
|
* Cropper.js v1.5.7
|
|
* https://fengyuanchen.github.io/cropperjs
|
|
*
|
|
* Copyright 2015-present Chen Fengyuan
|
|
* Released under the MIT license
|
|
*
|
|
* Date: 2020-05-23T05:23:00.081Z
|
|
*)
|
|
|
|
compressorjs/dist/compressor.js:
|
|
(*!
|
|
* Compressor.js v1.1.1
|
|
* https://fengyuanchen.github.io/compressorjs
|
|
*
|
|
* Copyright 2018-present Chen Fengyuan
|
|
* Released under the MIT license
|
|
*
|
|
* Date: 2021-10-05T02:32:40.212Z
|
|
*)
|
|
|
|
p-retry/index.js:
|
|
(*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE *)
|
|
|
|
p-timeout/index.js:
|
|
(*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE *)
|
|
|
|
p-queue/dist/index.js:
|
|
(*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE *)
|
|
|
|
exifr/dist/mini.esm.mjs:
|
|
(*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE *)
|
|
*/
|
|
//# sourceMappingURL=uppy.legacy.min.js.map
|