@twilio/mcs-client
Version:
Twilio Media Content Service client library
18 lines (15 loc) • 122 kB
JavaScript
/*
@license
Copyright (c) 2018, Twilio, Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
this.Twilio=this.Twilio||{},this.Twilio.McsClient=function(t){"use strict";var e=void 0!==e?e:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},n=function(t){return t&&t.Math==Math&&t},o=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r&&r)||function(){return this}()||Function("return this")(),i={},a=function(t){try{return!!t()}catch(t){return!0}},u=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c={},s={}.propertyIsEnumerable,f=Object.getOwnPropertyDescriptor,l=f&&!s.call({1:2},1);c.f=l?function(t){var e=f(this,t);return!!e&&e.enumerable}:s;var p,h,d=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},v={}.toString,y=function(t){return v.call(t).slice(8,-1)},g=y,m="".split,b=a((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==g(t)?m.call(t,""):Object(t)}:Object,w=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},x=b,k=w,S=function(t){return x(k(t))},E=function(t){return"object"==typeof t?null!==t:"function"==typeof t},O=o,A=function(t){return"function"==typeof t?t:void 0},j=function(t,e){return arguments.length<2?A(O[t]):O[t]&&O[t][e]},T=j("navigator","userAgent")||"",_=o,L=T,R=_.process,P=_.Deno,I=R&&R.versions||P&&P.version,C=I&&I.v8;C?h=(p=C.split("."))[0]<4?1:p[0]+p[1]:L&&(!(p=L.match(/Edge\/(\d+)/))||p[1]>=74)&&(p=L.match(/Chrome\/(\d+)/))&&(h=p[1]);var D=h&&+h,M=D,U=a,N=!!Object.getOwnPropertySymbols&&!U((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&M&&M<41})),F=N&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,B=j,q=F?function(t){return"symbol"==typeof t}:function(t){var e=B("Symbol");return"function"==typeof e&&Object(t)instanceof e},$=E,z={exports:{}},G=o,W=function(t,e){try{Object.defineProperty(G,t,{value:e,configurable:!0,writable:!0})}catch(r){G[t]=e}return e},V=W,H="__core-js_shared__",Y=o[H]||V(H,{}),J=Y;(z.exports=function(t,e){return J[t]||(J[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.17.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});var K=w,X=function(t){return Object(K(t))},Z=X,Q={}.hasOwnProperty,tt=Object.hasOwn||function(t,e){return Q.call(Z(t),e)},et=0,rt=Math.random(),nt=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++et+rt).toString(36)},ot=o,it=z.exports,at=tt,ut=nt,ct=N,st=F,ft=it("wks"),lt=ot.Symbol,pt=st?lt:lt&<.withoutSetter||ut,ht=function(t){return at(ft,t)&&(ct||"string"==typeof ft[t])||(ct&&at(lt,t)?ft[t]=lt[t]:ft[t]=pt("Symbol."+t)),ft[t]},dt=E,vt=q,yt=function(t,e){var r,n;if("string"===e&&"function"==typeof(r=t.toString)&&!$(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!$(n=r.call(t)))return n;if("string"!==e&&"function"==typeof(r=t.toString)&&!$(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")},gt=ht("toPrimitive"),mt=function(t,e){if(!dt(t)||vt(t))return t;var r,n=t[gt];if(void 0!==n){if(void 0===e&&(e="default"),r=n.call(t,e),!dt(r)||vt(r))return r;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),yt(t,e)},bt=mt,wt=q,xt=function(t){var e=bt(t,"string");return wt(e)?e:String(e)},kt=E,St=o.document,Et=kt(St)&&kt(St.createElement),Ot=function(t){return Et?St.createElement(t):{}},At=Ot,jt=!u&&!a((function(){return 7!=Object.defineProperty(At("div"),"a",{get:function(){return 7}}).a})),Tt=u,_t=c,Lt=d,Rt=S,Pt=xt,It=tt,Ct=jt,Dt=Object.getOwnPropertyDescriptor;i.f=Tt?Dt:function(t,e){if(t=Rt(t),e=Pt(e),Ct)try{return Dt(t,e)}catch(t){}if(It(t,e))return Lt(!_t.f.call(t,e),t[e])};var Mt={},Ut=E,Nt=function(t){if(!Ut(t))throw TypeError(String(t)+" is not an object");return t},Ft=u,Bt=jt,qt=Nt,$t=xt,zt=Object.defineProperty;Mt.f=Ft?zt:function(t,e,r){if(qt(t),e=$t(e),qt(r),Bt)try{return zt(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var Gt=Mt,Wt=d,Vt=u?function(t,e,r){return Gt.f(t,e,Wt(1,r))}:function(t,e,r){return t[e]=r,t},Ht={exports:{}},Yt=Y,Jt=Function.toString;"function"!=typeof Yt.inspectSource&&(Yt.inspectSource=function(t){return Jt.call(t)});var Kt,Xt,Zt,Qt=Yt.inspectSource,te=Qt,ee=o.WeakMap,re="function"==typeof ee&&/native code/.test(te(ee)),ne=z.exports,oe=nt,ie=ne("keys"),ae=function(t){return ie[t]||(ie[t]=oe(t))},ue={},ce=re,se=E,fe=Vt,le=tt,pe=Y,he=ae,de=ue,ve="Object already initialized",ye=o.WeakMap;if(ce||pe.state){var ge=pe.state||(pe.state=new ye),me=ge.get,be=ge.has,we=ge.set;Kt=function(t,e){if(be.call(ge,t))throw new TypeError(ve);return e.facade=t,we.call(ge,t,e),e},Xt=function(t){return me.call(ge,t)||{}},Zt=function(t){return be.call(ge,t)}}else{var xe=he("state");de[xe]=!0,Kt=function(t,e){if(le(t,xe))throw new TypeError(ve);return e.facade=t,fe(t,xe,e),e},Xt=function(t){return le(t,xe)?t[xe]:{}},Zt=function(t){return le(t,xe)}}var ke={set:Kt,get:Xt,has:Zt,enforce:function(t){return Zt(t)?Xt(t):Kt(t,{})},getterFor:function(t){return function(e){var r;if(!se(e)||(r=Xt(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},Se=o,Ee=Vt,Oe=tt,Ae=W,je=Qt,Te=ke.get,_e=ke.enforce,Le=String(String).split("String");(Ht.exports=function(t,e,r,n){var o,i=!!n&&!!n.unsafe,a=!!n&&!!n.enumerable,u=!!n&&!!n.noTargetGet;"function"==typeof r&&("string"!=typeof e||Oe(r,"name")||Ee(r,"name",e),(o=_e(r)).source||(o.source=Le.join("string"==typeof e?e:""))),t!==Se?(i?!u&&t[e]&&(a=!0):delete t[e],a?t[e]=r:Ee(t,e,r)):a?t[e]=r:Ae(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&Te(this).source||je(this)}));var Re={},Pe=Math.ceil,Ie=Math.floor,Ce=function(t){return isNaN(t=+t)?0:(t>0?Ie:Pe)(t)},De=Ce,Me=Math.min,Ue=function(t){return t>0?Me(De(t),9007199254740991):0},Ne=Ce,Fe=Math.max,Be=Math.min,qe=function(t,e){var r=Ne(t);return r<0?Fe(r+e,0):Be(r,e)},$e=S,ze=Ue,Ge=qe,We=function(t){return function(e,r,n){var o,i=$e(e),a=ze(i.length),u=Ge(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},Ve={includes:We(!0),indexOf:We(!1)},He=tt,Ye=S,Je=Ve.indexOf,Ke=ue,Xe=function(t,e){var r,n=Ye(t),o=0,i=[];for(r in n)!He(Ke,r)&&He(n,r)&&i.push(r);for(;e.length>o;)He(n,r=e[o++])&&(~Je(i,r)||i.push(r));return i},Ze=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Qe=Xe,tr=Ze.concat("length","prototype");Re.f=Object.getOwnPropertyNames||function(t){return Qe(t,tr)};var er={};er.f=Object.getOwnPropertySymbols;var rr=Re,nr=er,or=Nt,ir=j("Reflect","ownKeys")||function(t){var e=rr.f(or(t)),r=nr.f;return r?e.concat(r(t)):e},ar=tt,ur=ir,cr=i,sr=Mt,fr=function(t,e){for(var r=ur(e),n=sr.f,o=cr.f,i=0;i<r.length;i++){var a=r[i];ar(t,a)||n(t,a,o(e,a))}},lr=a,pr=/#|\.prototype\./,hr=function(t,e){var r=vr[dr(t)];return r==gr||r!=yr&&("function"==typeof e?lr(e):!!e)},dr=hr.normalize=function(t){return String(t).replace(pr,".").toLowerCase()},vr=hr.data={},yr=hr.NATIVE="N",gr=hr.POLYFILL="P",mr=hr,br=o,wr=i.f,xr=Vt,kr=Ht.exports,Sr=W,Er=fr,Or=mr,Ar=function(t,e){var r,n,o,i,a,u=t.target,c=t.global,s=t.stat;if(r=c?br:s?br[u]||Sr(u,{}):(br[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=wr(r,n))&&a.value:r[n],!Or(c?n:u+(s?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Er(i,o)}(t.sham||o&&o.sham)&&xr(i,"sham",!0),kr(r,n,i,t)}},jr=Mt.f,Tr=tt,_r=ht("toStringTag"),Lr=function(t,e,r){t&&!Tr(t=r?t:t.prototype,_r)&&jr(t,_r,{configurable:!0,value:e})},Rr=o,Pr=Lr;Ar({global:!0},{Reflect:{}}),Pr(Rr.Reflect,"Reflect",!0);var Ir,Cr=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Dr=Xe,Mr=Ze,Ur=Object.keys||function(t){return Dr(t,Mr)},Nr=Mt,Fr=Nt,Br=Ur,qr=u?Object.defineProperties:function(t,e){Fr(t);for(var r,n=Br(e),o=n.length,i=0;o>i;)Nr.f(t,r=n[i++],e[r]);return t},$r=j("document","documentElement"),zr=Nt,Gr=qr,Wr=Ze,Vr=ue,Hr=$r,Yr=Ot,Jr=ae("IE_PROTO"),Kr=function(){},Xr=function(t){return"<script>"+t+"</"+"script>"},Zr=function(t){t.write(Xr("")),t.close();var e=t.parentWindow.Object;return t=null,e},Qr=function(){try{Ir=new ActiveXObject("htmlfile")}catch(t){}var t,e;Qr="undefined"!=typeof document?document.domain&&Ir?Zr(Ir):((e=Yr("iframe")).style.display="none",Hr.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Xr("document.F=Object")),t.close(),t.F):Zr(Ir);for(var r=Wr.length;r--;)delete Qr.prototype[Wr[r]];return Qr()};Vr[Jr]=!0;var tn=Object.create||function(t,e){var r;return null!==t?(Kr.prototype=zr(t),r=new Kr,Kr.prototype=null,r[Jr]=t):r=Qr(),void 0===e?r:Gr(r,e)},en=Cr,rn=E,nn=[].slice,on={},an=function(t,e,r){if(!(e in on)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";on[e]=Function("C,a","return new C("+n.join(",")+")")}return on[e](t,r)},un=Function.bind||function(t){var e=en(this),r=nn.call(arguments,1),n=function(){var o=r.concat(nn.call(arguments));return this instanceof n?an(e,o.length,o):e.apply(t,o)};return rn(e.prototype)&&(n.prototype=e.prototype),n},cn=Ar,sn=Cr,fn=Nt,ln=E,pn=tn,hn=un,dn=a,vn=j("Reflect","construct"),yn=dn((function(){function t(){}return!(vn((function(){}),[],t)instanceof t)})),gn=!dn((function(){vn((function(){}))})),mn=yn||gn;function bn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wn(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function xn(t,e,r){return e&&wn(t.prototype,e),r&&wn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function kn(t,e){return kn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},kn(t,e)}function Sn(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&kn(t,e)}function En(t){return En="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},En(t)}function On(t,e){if(e&&("object"===En(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function An(t){return An=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},An(t)}function jn(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function Tn(t,e,r){return Tn=jn()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&kn(o,r.prototype),o},Tn.apply(null,arguments)}function _n(t){var e="function"==typeof Map?new Map:void 0;return _n=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return Tn(t,arguments,An(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),kn(n,t)},_n(t)}function Ln(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}cn({target:"Reflect",stat:!0,forced:mn,sham:mn},{construct:function(t,e){sn(t),fn(e);var r=arguments.length<3?t:sn(arguments[2]);if(gn&&!yn)return vn(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(hn.apply(t,n))}var o=r.prototype,i=pn(ln(o)?o:Object.prototype),a=Function.apply.call(t,i,e);return ln(a)?a:i}});var Rn={};Rn[ht("toStringTag")]="z";var Pn="[object z]"===String(Rn),In=Pn,Cn=y,Dn=ht("toStringTag"),Mn="Arguments"==Cn(function(){return arguments}()),Un=In?Cn:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),Dn))?r:Mn?Cn(e):"Object"==(n=Cn(e))&&"function"==typeof e.callee?"Arguments":n},Nn=Un,Fn=Pn?{}.toString:function(){return"[object "+Nn(this)+"]"},Bn=Pn,qn=Ht.exports,$n=Fn;Bn||qn(Object.prototype,"toString",$n,{unsafe:!0});var zn=o.Promise,Gn=Ht.exports,Wn=function(t,e,r){for(var n in e)Gn(t,n,e[n],r);return t},Vn=E,Hn=Nt,Yn=function(t){if(!Vn(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t},Jn=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return Hn(r),Yn(n),e?t.call(r,n):r.__proto__=n,r}}():void 0),Kn=j,Xn=Mt,Zn=u,Qn=ht("species"),to=function(t){var e=Kn(t),r=Xn.f;Zn&&e&&!e[Qn]&&r(e,Qn,{configurable:!0,get:function(){return this}})},eo=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t},ro={},no=ro,oo=ht("iterator"),io=Array.prototype,ao=function(t){return void 0!==t&&(no.Array===t||io[oo]===t)},uo=Cr,co=function(t,e,r){if(uo(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}},so=Un,fo=ro,lo=ht("iterator"),po=function(t){if(null!=t)return t[lo]||t["@@iterator"]||fo[so(t)]},ho=Nt,vo=po,yo=function(t,e){var r=arguments.length<2?vo(t):e;if("function"!=typeof r)throw TypeError(String(t)+" is not iterable");return ho(r.call(t))},go=Nt,mo=function(t,e,r){var n,o;go(t);try{if(void 0===(n=t.return)){if("throw"===e)throw r;return r}n=n.call(t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return go(n),r},bo=Nt,wo=ao,xo=Ue,ko=co,So=yo,Eo=po,Oo=mo,Ao=function(t,e){this.stopped=t,this.result=e},jo=function(t,e,r){var n,o,i,a,u,c,s,f=r&&r.that,l=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),d=ko(e,f,1+l+h),v=function(t){return n&&Oo(n,"normal",t),new Ao(!0,t)},y=function(t){return l?(bo(t),h?d(t[0],t[1],v):d(t[0],t[1])):h?d(t,v):d(t)};if(p)n=t;else{if("function"!=typeof(o=Eo(t)))throw TypeError("Target is not iterable");if(wo(o)){for(i=0,a=xo(t.length);a>i;i++)if((u=y(t[i]))&&u instanceof Ao)return u;return new Ao(!1)}n=So(t,o)}for(c=n.next;!(s=c.call(n)).done;){try{u=y(s.value)}catch(t){Oo(n,"throw",t)}if("object"==typeof u&&u&&u instanceof Ao)return u}return new Ao(!1)},To=ht("iterator"),_o=!1;try{var Lo=0,Ro={next:function(){return{done:!!Lo++}},return:function(){_o=!0}};Ro[To]=function(){return this},Array.from(Ro,(function(){throw 2}))}catch(t){}var Po,Io,Co,Do,Mo=function(t,e){if(!e&&!_o)return!1;var r=!1;try{var n={};n[To]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},Uo=Nt,No=Cr,Fo=ht("species"),Bo=function(t,e){var r,n=Uo(t).constructor;return void 0===n||null==(r=Uo(n)[Fo])?e:No(r)},qo=/(?:ipad|iphone|ipod).*applewebkit/i.test(T),$o="process"==y(o.process),zo=o,Go=a,Wo=co,Vo=$r,Ho=Ot,Yo=qo,Jo=$o,Ko=zo.setImmediate,Xo=zo.clearImmediate,Zo=zo.process,Qo=zo.MessageChannel,ti=zo.Dispatch,ei=0,ri={},ni="onreadystatechange";try{Po=zo.location}catch(t){}var oi=function(t){if(ri.hasOwnProperty(t)){var e=ri[t];delete ri[t],e()}},ii=function(t){return function(){oi(t)}},ai=function(t){oi(t.data)},ui=function(t){zo.postMessage(String(t),Po.protocol+"//"+Po.host)};Ko&&Xo||(Ko=function(t){for(var e=[],r=arguments.length,n=1;r>n;)e.push(arguments[n++]);return ri[++ei]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},Io(ei),ei},Xo=function(t){delete ri[t]},Jo?Io=function(t){Zo.nextTick(ii(t))}:ti&&ti.now?Io=function(t){ti.now(ii(t))}:Qo&&!Yo?(Do=(Co=new Qo).port2,Co.port1.onmessage=ai,Io=Wo(Do.postMessage,Do,1)):zo.addEventListener&&"function"==typeof postMessage&&!zo.importScripts&&Po&&"file:"!==Po.protocol&&!Go(ui)?(Io=ui,zo.addEventListener("message",ai,!1)):Io=ni in Ho("script")?function(t){Vo.appendChild(Ho("script")).onreadystatechange=function(){Vo.removeChild(this),oi(t)}}:function(t){setTimeout(ii(t),0)});var ci,si,fi,li,pi,hi,di,vi,yi={set:Ko,clear:Xo},gi=o,mi=/ipad|iphone|ipod/i.test(T)&&void 0!==gi.Pebble,bi=/web0s(?!.*chrome)/i.test(T),wi=o,xi=i.f,ki=yi.set,Si=qo,Ei=mi,Oi=bi,Ai=$o,ji=wi.MutationObserver||wi.WebKitMutationObserver,Ti=wi.document,_i=wi.process,Li=wi.Promise,Ri=xi(wi,"queueMicrotask"),Pi=Ri&&Ri.value;Pi||(ci=function(){var t,e;for(Ai&&(t=_i.domain)&&t.exit();si;){e=si.fn,si=si.next;try{e()}catch(t){throw si?li():fi=void 0,t}}fi=void 0,t&&t.enter()},Si||Ai||Oi||!ji||!Ti?!Ei&&Li&&Li.resolve?((di=Li.resolve(void 0)).constructor=Li,vi=di.then,li=function(){vi.call(di,ci)}):li=Ai?function(){_i.nextTick(ci)}:function(){ki.call(wi,ci)}:(pi=!0,hi=Ti.createTextNode(""),new ji(ci).observe(hi,{characterData:!0}),li=function(){hi.data=pi=!pi}));var Ii=Pi||function(t){var e={fn:t,next:void 0};fi&&(fi.next=e),si||(si=e,li()),fi=e},Ci={},Di=Cr,Mi=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=Di(e),this.reject=Di(r)};Ci.f=function(t){return new Mi(t)};var Ui,Ni,Fi,Bi,qi=Nt,$i=E,zi=Ci,Gi=o,Wi="object"==typeof window,Vi=Ar,Hi=o,Yi=j,Ji=zn,Ki=Ht.exports,Xi=Wn,Zi=Jn,Qi=Lr,ta=to,ea=E,ra=Cr,na=eo,oa=Qt,ia=jo,aa=Mo,ua=Bo,ca=yi.set,sa=Ii,fa=function(t,e){if(qi(t),$i(e)&&e.constructor===t)return e;var r=zi.f(t);return(0,r.resolve)(e),r.promise},la=function(t,e){var r=Gi.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))},pa=Ci,ha=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},da=ke,va=mr,ya=Wi,ga=$o,ma=D,ba=ht("species"),wa="Promise",xa=da.get,ka=da.set,Sa=da.getterFor(wa),Ea=Ji&&Ji.prototype,Oa=Ji,Aa=Ea,ja=Hi.TypeError,Ta=Hi.document,_a=Hi.process,La=pa.f,Ra=La,Pa=!!(Ta&&Ta.createEvent&&Hi.dispatchEvent),Ia="function"==typeof PromiseRejectionEvent,Ca="unhandledrejection",Da=!1,Ma=va(wa,(function(){var t=oa(Oa),e=t!==String(Oa);if(!e&&66===ma)return!0;if(ma>=51&&/native code/.test(t))return!1;var r=new Oa((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};return(r.constructor={})[ba]=n,!(Da=r.then((function(){}))instanceof n)||!e&&ya&&!Ia})),Ua=Ma||!aa((function(t){Oa.all(t).catch((function(){}))})),Na=function(t){var e;return!(!ea(t)||"function"!=typeof(e=t.then))&&e},Fa=function(t,e){if(!t.notified){t.notified=!0;var r=t.reactions;sa((function(){for(var n=t.value,o=1==t.state,i=0;r.length>i;){var a,u,c,s=r[i++],f=o?s.ok:s.fail,l=s.resolve,p=s.reject,h=s.domain;try{f?(o||(2===t.rejection&&za(t),t.rejection=1),!0===f?a=n:(h&&h.enter(),a=f(n),h&&(h.exit(),c=!0)),a===s.promise?p(ja("Promise-chain cycle")):(u=Na(a))?u.call(a,l,p):l(a)):p(n)}catch(t){h&&!c&&h.exit(),p(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&qa(t)}))}},Ba=function(t,e,r){var n,o;Pa?((n=Ta.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),Hi.dispatchEvent(n)):n={promise:e,reason:r},!Ia&&(o=Hi["on"+t])?o(n):t===Ca&&la("Unhandled promise rejection",r)},qa=function(t){ca.call(Hi,(function(){var e,r=t.facade,n=t.value;if($a(t)&&(e=ha((function(){ga?_a.emit("unhandledRejection",n,r):Ba(Ca,r,n)})),t.rejection=ga||$a(t)?2:1,e.error))throw e.value}))},$a=function(t){return 1!==t.rejection&&!t.parent},za=function(t){ca.call(Hi,(function(){var e=t.facade;ga?_a.emit("rejectionHandled",e):Ba("rejectionhandled",e,t.value)}))},Ga=function(t,e,r){return function(n){t(e,n,r)}},Wa=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,Fa(t,!0))},Va=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw ja("Promise can't be resolved itself");var n=Na(e);n?sa((function(){var r={done:!1};try{n.call(e,Ga(Va,r,t),Ga(Wa,r,t))}catch(e){Wa(r,e,t)}})):(t.value=e,t.state=1,Fa(t,!1))}catch(e){Wa({done:!1},e,t)}}};if(Ma&&(Aa=(Oa=function(t){na(this,Oa,wa),ra(t),Ui.call(this);var e=xa(this);try{t(Ga(Va,e),Ga(Wa,e))}catch(t){Wa(e,t)}}).prototype,(Ui=function(t){ka(this,{type:wa,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Xi(Aa,{then:function(t,e){var r=Sa(this),n=La(ua(this,Oa));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=ga?_a.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&Fa(r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),Ni=function(){var t=new Ui,e=xa(t);this.promise=t,this.resolve=Ga(Va,e),this.reject=Ga(Wa,e)},pa.f=La=function(t){return t===Oa||t===Fi?new Ni(t):Ra(t)},"function"==typeof Ji&&Ea!==Object.prototype)){Bi=Ea.then,Da||(Ki(Ea,"then",(function(t,e){var r=this;return new Oa((function(t,e){Bi.call(r,t,e)})).then(t,e)}),{unsafe:!0}),Ki(Ea,"catch",Aa.catch,{unsafe:!0}));try{delete Ea.constructor}catch(t){}Zi&&Zi(Ea,Aa)}Vi({global:!0,wrap:!0,forced:Ma},{Promise:Oa}),Qi(Oa,wa,!1),ta(wa),Fi=Yi(wa),Vi({target:wa,stat:!0,forced:Ma},{reject:function(t){var e=La(this);return e.reject.call(void 0,t),e.promise}}),Vi({target:wa,stat:!0,forced:Ma},{resolve:function(t){return fa(this,t)}}),Vi({target:wa,stat:!0,forced:Ua},{all:function(t){var e=this,r=La(e),n=r.resolve,o=r.reject,i=ha((function(){var r=ra(e.resolve),i=[],a=0,u=1;ia(t,(function(t){var c=a++,s=!1;i.push(void 0),u++,r.call(e,t).then((function(t){s||(s=!0,i[c]=t,--u||n(i))}),o)})),--u||n(i)}));return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=La(e),n=r.reject,o=ha((function(){var o=ra(e.resolve);ia(t,(function(t){o.call(e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var Ha=tn,Ya=Mt,Ja=ht("unscopables"),Ka=Array.prototype;null==Ka[Ja]&&Ya.f(Ka,Ja,{configurable:!0,value:Ha(null)});var Xa,Za,Qa,tu=function(t){Ka[Ja][t]=!0},eu=!a((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),ru=tt,nu=X,ou=eu,iu=ae("IE_PROTO"),au=Object.prototype,uu=ou?Object.getPrototypeOf:function(t){return t=nu(t),ru(t,iu)?t[iu]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?au:null},cu=a,su=uu,fu=Vt,lu=ht("iterator"),pu=!1;[].keys&&("next"in(Qa=[].keys())?(Za=su(su(Qa)))!==Object.prototype&&(Xa=Za):pu=!0);var hu=null==Xa||cu((function(){var t={};return Xa[lu].call(t)!==t}));hu&&(Xa={}),"function"!=typeof Xa[lu]&&fu(Xa,lu,(function(){return this}));var du={IteratorPrototype:Xa,BUGGY_SAFARI_ITERATORS:pu},vu=du.IteratorPrototype,yu=tn,gu=d,mu=Lr,bu=ro,wu=function(){return this},xu=function(t,e,r){var n=e+" Iterator";return t.prototype=yu(vu,{next:gu(1,r)}),mu(t,n,!1),bu[n]=wu,t},ku=Ar,Su=xu,Eu=uu,Ou=Jn,Au=Lr,ju=Vt,Tu=Ht.exports,_u=ro,Lu=du.IteratorPrototype,Ru=du.BUGGY_SAFARI_ITERATORS,Pu=ht("iterator"),Iu="keys",Cu="values",Du="entries",Mu=function(){return this},Uu=function(t,e,r,n,o,i,a){Su(r,e,n);var u,c,s,f=function(t){if(t===o&&v)return v;if(!Ru&&t in h)return h[t];switch(t){case Iu:case Cu:case Du:return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",p=!1,h=t.prototype,d=h[Pu]||h["@@iterator"]||o&&h[o],v=!Ru&&d||f(o),y="Array"==e&&h.entries||d;if(y&&(u=Eu(y.call(new t)))!==Object.prototype&&u.next&&(Eu(u)!==Lu&&(Ou?Ou(u,Lu):"function"!=typeof u[Pu]&&ju(u,Pu,Mu)),Au(u,l,!0)),o==Cu&&d&&d.name!==Cu&&(p=!0,v=function(){return d.call(this)}),h[Pu]!==v&&ju(h,Pu,v),_u[e]=v,o)if(c={values:f(Cu),keys:i?v:f(Iu),entries:f(Du)},a)for(s in c)(Ru||p||!(s in h))&&Tu(h,s,c[s]);else ku({target:e,proto:!0,forced:Ru||p},c);return c},Nu=S,Fu=tu,Bu=ro,qu=ke,$u=Uu,zu="Array Iterator",Gu=qu.set,Wu=qu.getterFor(zu),Vu=$u(Array,"Array",(function(t,e){Gu(this,{type:zu,target:Nu(t),index:0,kind:e})}),(function(){var t=Wu(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");Bu.Arguments=Bu.Array,Fu("keys"),Fu("values"),Fu("entries");var Hu={exports:{}},Yu={},Ju=S,Ku=Re.f,Xu={}.toString,Zu="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Yu.f=function(t){return Zu&&"[object Window]"==Xu.call(t)?function(t){try{return Ku(t)}catch(t){return Zu.slice()}}(t):Ku(Ju(t))};var Qu=!a((function(){return Object.isExtensible(Object.preventExtensions({}))})),tc=Ar,ec=ue,rc=E,nc=tt,oc=Mt.f,ic=Re,ac=Yu,uc=Qu,cc=!1,sc=nt("meta"),fc=0,lc=Object.isExtensible||function(){return!0},pc=function(t){oc(t,sc,{value:{objectID:"O"+fc++,weakData:{}}})},hc=Hu.exports={enable:function(){hc.enable=function(){},cc=!0;var t=ic.f,e=[].splice,r={};r[sc]=1,t(r).length&&(ic.f=function(r){for(var n=t(r),o=0,i=n.length;o<i;o++)if(n[o]===sc){e.call(n,o,1);break}return n},tc({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:ac.f}))},fastKey:function(t,e){if(!rc(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!nc(t,sc)){if(!lc(t))return"F";if(!e)return"E";pc(t)}return t[sc].objectID},getWeakData:function(t,e){if(!nc(t,sc)){if(!lc(t))return!0;if(!e)return!1;pc(t)}return t[sc].weakData},onFreeze:function(t){return uc&&cc&&lc(t)&&!nc(t,sc)&&pc(t),t}};ec[sc]=!0;var dc=E,vc=Jn,yc=function(t,e,r){var n,o;return vc&&"function"==typeof(n=e.constructor)&&n!==r&&dc(o=n.prototype)&&o!==r.prototype&&vc(t,o),t},gc=Ar,mc=o,bc=mr,wc=Ht.exports,xc=Hu.exports,kc=jo,Sc=eo,Ec=E,Oc=a,Ac=Mo,jc=Lr,Tc=yc,_c=Mt.f,Lc=tn,Rc=Wn,Pc=co,Ic=eo,Cc=jo,Dc=Uu,Mc=to,Uc=u,Nc=Hu.exports.fastKey,Fc=ke.set,Bc=ke.getterFor,qc={getConstructor:function(t,e,r,n){var o=t((function(t,i){Ic(t,o,e),Fc(t,{type:e,index:Lc(null),first:void 0,last:void 0,size:0}),Uc||(t.size=0),null!=i&&Cc(i,t[n],{that:t,AS_ENTRIES:r})})),i=Bc(e),a=function(t,e,r){var n,o,a=i(t),c=u(t,e);return c?c.value=r:(a.last=c={index:o=Nc(e,!0),key:e,value:r,previous:n=a.last,next:void 0,removed:!1},a.first||(a.first=c),n&&(n.next=c),Uc?a.size++:t.size++,"F"!==o&&(a.index[o]=c)),t},u=function(t,e){var r,n=i(t),o=Nc(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==e)return r};return Rc(o.prototype,{clear:function(){for(var t=i(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,Uc?t.size=0:this.size=0},delete:function(t){var e=this,r=i(e),n=u(e,t);if(n){var o=n.next,a=n.previous;delete r.index[n.index],n.removed=!0,a&&(a.next=o),o&&(o.previous=a),r.first==n&&(r.first=o),r.last==n&&(r.last=a),Uc?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=i(this),n=Pc(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!u(this,t)}}),Rc(o.prototype,r?{get:function(t){var e=u(this,t);return e&&e.value},set:function(t,e){return a(this,0===t?0:t,e)}}:{add:function(t){return a(this,t=0===t?0:t,t)}}),Uc&&_c(o.prototype,"size",{get:function(){return i(this).size}}),o},setStrong:function(t,e,r){var n=e+" Iterator",o=Bc(e),i=Bc(n);Dc(t,e,(function(t,e){Fc(this,{type:n,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?"keys"==e?{value:r.key,done:!1}:"values"==e?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),r?"entries":"values",!r,!0),Mc(e)}},$c=function(t,e,r){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",a=mc[t],u=a&&a.prototype,c=a,s={},f=function(t){var e=u[t];wc(u,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(o&&!Ec(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return o&&!Ec(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(o&&!Ec(t))&&e.call(this,0===t?0:t)}:function(t,r){return e.call(this,0===t?0:t,r),this})};if(bc(t,"function"!=typeof a||!(o||u.forEach&&!Oc((function(){(new a).entries().next()})))))c=r.getConstructor(e,t,n,i),xc.enable();else if(bc(t,!0)){var l=new c,p=l[i](o?{}:-0,1)!=l,h=Oc((function(){l.has(1)})),d=Ac((function(t){new a(t)})),v=!o&&Oc((function(){for(var t=new a,e=5;e--;)t[i](e,e);return!t.has(-0)}));d||((c=e((function(e,r){Sc(e,c,t);var o=Tc(new a,e,c);return null!=r&&kc(r,o[i],{that:o,AS_ENTRIES:n}),o}))).prototype=u,u.constructor=c),(h||v)&&(f("delete"),f("has"),n&&f("get")),(v||p)&&f(i),o&&u.clear&&delete u.clear}return s[t]=c,gc({global:!0,forced:c!=a},s),jc(c,t),o||r.setStrong(c,t,n),c};$c("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),qc);var zc=q,Gc=function(t){if(zc(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)},Wc=Ce,Vc=Gc,Hc=w,Yc=function(t){return function(e,r){var n,o,i=Vc(Hc(e)),a=Wc(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=i.charCodeAt(a))<55296||n>56319||a+1===u||(o=i.charCodeAt(a+1))<56320||o>57343?t?i.charAt(a):n:t?i.slice(a,a+2):o-56320+(n-55296<<10)+65536}},Jc={codeAt:Yc(!1),charAt:Yc(!0)},Kc=Jc.charAt,Xc=Gc,Zc=ke,Qc=Uu,ts="String Iterator",es=Zc.set,rs=Zc.getterFor(ts);Qc(String,"String",(function(t){es(this,{type:ts,string:Xc(t),index:0})}),(function(){var t,e=rs(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=Kc(r,n),e.index+=t.length,{value:t,done:!1})}));var ns={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},os=Ot("span").classList,is=os&&os.constructor&&os.constructor.prototype,as=is===Object.prototype?void 0:is,us=o,cs=ns,ss=as,fs=Vu,ls=Vt,ps=ht,hs=ps("iterator"),ds=ps("toStringTag"),vs=fs.values,ys=function(t,e){if(t){if(t[hs]!==vs)try{ls(t,hs,vs)}catch(e){t[hs]=vs}if(t[ds]||ls(t,ds,e),cs[e])for(var r in fs)if(t[r]!==fs[r])try{ls(t,r,fs[r])}catch(e){t[r]=fs[r]}}};for(var gs in cs)ys(us[gs]&&us[gs].prototype,gs);ys(ss,"DOMTokenList");var ms={exports:{}},bs="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(bs){var ws=new Uint8Array(16);ms.exports=function(){return bs(ws),ws}}else{var xs=new Array(16);ms.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),xs[e]=t>>>((3&e)<<3)&255;return xs}}for(var ks=[],Ss=0;Ss<256;++Ss)ks[Ss]=(Ss+256).toString(16).substr(1);var Es,Os,As=function(t,e){var r=e||0,n=ks;return[n[t[r++]],n[t[r++]],n[t[r++]],n[t[r++]],"-",n[t[r++]],n[t[r++]],"-",n[t[r++]],n[t[r++]],"-",n[t[r++]],n[t[r++]],"-",n[t[r++]],n[t[r++]],n[t[r++]],n[t[r++]],n[t[r++]],n[t[r++]]].join("")},js=ms.exports,Ts=As,_s=0,Ls=0;var Rs=function(t,e,r){var n=e&&r||0,o=e||[],i=(t=t||{}).node||Es,a=void 0!==t.clockseq?t.clockseq:Os;if(null==i||null==a){var u=js();null==i&&(i=Es=[1|u[0],u[1],u[2],u[3],u[4],u[5]]),null==a&&(a=Os=16383&(u[6]<<8|u[7]))}var c=void 0!==t.msecs?t.msecs:(new Date).getTime(),s=void 0!==t.nsecs?t.nsecs:Ls+1,f=c-_s+(s-Ls)/1e4;if(f<0&&void 0===t.clockseq&&(a=a+1&16383),(f<0||c>_s)&&void 0===t.nsecs&&(s=0),s>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");_s=c,Ls=s,Os=a;var l=(1e4*(268435455&(c+=122192928e5))+s)%4294967296;o[n++]=l>>>24&255,o[n++]=l>>>16&255,o[n++]=l>>>8&255,o[n++]=255&l;var p=c/4294967296*1e4&268435455;o[n++]=p>>>8&255,o[n++]=255&p,o[n++]=p>>>24&15|16,o[n++]=p>>>16&255,o[n++]=a>>>8|128,o[n++]=255&a;for(var h=0;h<6;++h)o[n+h]=i[h];return e||Ts(o)},Ps=ms.exports,Is=As;var Cs=function(t,e,r){var n=e&&r||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var o=(t=t||{}).random||(t.rng||Ps)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e)for(var i=0;i<16;++i)e[n+i]=o[i];return e||Is(o)},Ds=Rs,Ms=Cs,Us=Ms;Us.v1=Ds,Us.v4=Ms;var Ns=Us;function Fs(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=An(t);if(e){var o=An(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return On(this,r)}}var Bs=function(t){Sn(r,t);var e=Fs(r);function r(t){var n;bn(this,r);var o,i=Ns.v4();return(n=e.call(this,(function(e,n){return o=n,t((function(t){r.cancellationMap.delete(i),e(t)}),(function(t){r.cancellationMap.delete(i),n(t)}),(function(t){r.cancellationMap.set(i,t)}))}))).id=i,n.rejectPromise=o,n}return xn(r,[{key:"cancel",value:function(){var t=r.cancellationMap.get(this.id);return null==t||t(),this.rejectPromise&&(this.catch((function(){})),this.rejectPromise(new Error("Promise was cancelled"))),this}}]),r}(_n(Promise));function qs(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function $s(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){qs(i,n,o,a,u,"next",t)}function u(t){qs(i,n,o,a,u,"throw",t)}a(void 0)}))}}Ln(Bs,"cancellationMap",new Map);var zs,Gs=Object.prototype,Ws=Gs.hasOwnProperty,Vs="function"==typeof Symbol?Symbol:{},Hs=Vs.iterator||"@@iterator",Ys=Vs.asyncIterator||"@@asyncIterator",Js=Vs.toStringTag||"@@toStringTag";function Ks(t,e,r,n){var o=e&&e.prototype instanceof nf?e:nf,i=Object.create(o.prototype),a=new gf(n||[]);return i._invoke=function(t,e,r){var n=Zs;return function(o,i){if(n===tf)throw new Error("Generator is already running");if(n===ef){if("throw"===o)throw i;return bf()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=df(a,r);if(u){if(u===rf)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===Zs)throw n=ef,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=tf;var c=Xs(t,e,r);if("normal"===c.type){if(n=r.done?ef:Qs,c.arg===rf)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=ef,r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function Xs(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}var Zs="suspendedStart",Qs="suspendedYield",tf="executing",ef="completed",rf={};function nf(){}function of(){}function af(){}var uf={};uf[Hs]=function(){return this};var cf=Object.getPrototypeOf,sf=cf&&cf(cf(mf([])));sf&&sf!==Gs&&Ws.call(sf,Hs)&&(uf=sf);var ff=af.prototype=nf.prototype=Object.create(uf);function lf(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function pf(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===of||"GeneratorFunction"===(e.displayName||e.name))}function hf(t,e){function r(n,o,i,a){var u=Xs(t[n],t,o);if("throw"!==u.type){var c=u.arg,s=c.value;return s&&"object"===En(s)&&Ws.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,a)}),(function(t){r("throw",t,i,a)})):e.resolve(s).then((function(t){c.value=t,i(c)}),(function(t){return r("throw",t,i,a)}))}a(u.arg)}var n;this._invoke=function(t,o){function i(){return new e((function(e,n){r(t,o,e,n)}))}return n=n?n.then(i,i):i()}}function df(t,e){var r=t.iterator[e.method];if(r===zs){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=zs,df(t,e),"throw"===e.method))return rf;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return rf}var n=Xs(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,rf;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=zs),e.delegate=null,rf):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,rf)}function vf(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function yf(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function gf(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(vf,this),this.reset(!0)}function mf(t){if(t){var e=t[Hs];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(Ws.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=zs,e.done=!0,e};return n.next=n}}return{next:bf}}function bf(){return{value:zs,done:!0}}of.prototype=ff.constructor=af,af.constructor=of,af[Js]=of.displayName="GeneratorFunction",lf(hf.prototype),hf.prototype[Ys]=function(){return this},lf(ff),ff[Js]="Generator",ff[Hs]=function(){return this},ff.toString=function(){return"[object Generator]"},gf.prototype={constructor:gf,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=zs,this.done=!1,this.delegate=null,this.method="next",this.arg=zs,this.tryEntries.forEach(yf),!t)for(var e in this)"t"===e.charAt(0)&&Ws.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=zs)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=zs),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var a=Ws.call(o,"catchLoc"),u=Ws.call(o,"finallyLoc");if(a&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&Ws.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,rf):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),rf},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),yf(r),rf}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;yf(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:mf(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=zs),rf}};var wf={wrap:Ks,isGeneratorFunction:pf,AsyncIterator:hf,mark:function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,af):(t.__proto__=af,Js in t||(t[Js]="GeneratorFunction")),t.prototype=Object.create(ff),t},awrap:function(t){return{__await:t}},async:function(t,e,r,n,o){void 0===o&&(o=Promise);var i=new hf(Ks(t,e,r,n),o);return pf(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},keys:function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},values:mf},xf=y,kf=Array.isArray||function(t){return"Array"==xf(t)},Sf=xt,Ef=Mt,Of=d,Af=function(t,e,r){var n=Sf(e);n in t?Ef.f(t,n,Of(0,r)):t[n]=r},jf=E,Tf=kf,_f=ht("species"),Lf=function(t){var e;return Tf(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!Tf(e.prototype)?jf(e)&&null===(e=e[_f])&&(e=void 0):e=void 0),void 0===e?Array:e},Rf=function(t,e){return new(Lf(t))(0===e?0:e)},Pf=a,If=D,Cf=ht("species"),Df=function(t){return If>=51||!Pf((function(){var e=[];return(e.constructor={})[Cf]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Mf=Ar,Uf=a,Nf=kf,Ff=E,Bf=X,qf=Ue,$f=Af,zf=Rf,Gf=Df,Wf=D,Vf=ht("isConcatSpreadable"),Hf=9007199254740991,Yf="Maximum allowed index exceeded",Jf=Wf>=51||!Uf((function(){var t=[];return t[Vf]=!1,t.concat()[0]!==t})),Kf=Gf("concat"),Xf=function(t){if(!Ff(t))return!1;var e=t[Vf];return void 0!==e?!!e:Nf(t)};Mf({target:"Array",proto:!0,forced:!Jf||!Kf},{concat:function(t){var e,r,n,o,i,a=Bf(this),u=zf(a,0),c=0;for(e=-1,n=arguments.length;e<n;e++)if(Xf(i=-1===e?a:arguments[e])){if(c+(o=qf(i.length))>Hf)throw TypeError(Yf);for(r=0;r<o;r++,c++)r in i&&$f(u,c,i[r])}else{if(c>=Hf)throw TypeError(Yf);$f(u,c++,i)}return u.length=c,u}});var Zf=co,Qf=b,tl=X,el=Ue,rl=Rf,nl=[].push,ol=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=7==t,u=5==t||i;return function(c,s,f,l){for(var p,h,d=tl(c),v=Qf(d),y=Zf(s,f,3),g=el(v.length),m=0,b=l||rl,w=e?b(c,g):r||a?b(c,0):void 0;g>m;m++)if((u||m in v)&&(h=y(p=v[m],m,d),t))if(e)w[m]=h;else if(h)switch(t){case 3:return!0;case 5:return p;case 6:return m;case 2:nl.call(w,p)}else switch(t){case 4:return!1;case 7:nl.call(w,p)}return i?-1:n||o?o:w}},il={forEach:ol(0),map:ol(1),filter:ol(2),some:ol(3),every:ol(4),find:ol(5),findIndex:ol(6),filterReject:ol(7)},al=il.map;Ar({target:"Array",proto:!0,forced:!Df("map")},{map:function(t){return al(this,t,arguments.length>1?arguments[1]:void 0)}});var ul=a,cl=function(t,e){var r=[][t];return!!r&&ul((function(){r.call(null,e||function(){throw 1},1)}))},sl=il.forEach,fl=cl("forEach")?[].forEach:function(t){return sl(this,t,arguments.length>1?arguments[1]:void 0)},ll=o,pl=ns,hl=as,dl=fl,vl=Vt,yl=function(t){if(t&&t.forEach!==dl)try{vl(t,"forEach",dl)}catch(e){t.forEach=dl}};for(var gl in pl)yl(ll[gl]&&ll[gl].prototype);function ml(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"===("undefined"==typeof Reflect?"undefined":En(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}function bl(t,e){if("object"===("undefined"==typeof Reflect?"undefined":En(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}yl(hl);var wl=Nt,xl=mo,kl=co,Sl=X,El=function(t,e,r,n){try{return n?e(wl(r)[0],r[1]):e(r)}catch(e){xl(t,"throw",e)}},Ol=ao,Al=Ue,jl=Af,Tl=yo,_l=po,Ll=function(t){var e,r,n,o,i,a,u=Sl(t),c="function"==typeof this?this:Array,s=arguments.length,f=s>1?arguments[1]:void 0,l=void 0!==f,p=_l(u),h=0;if(l&&(f=kl(f,s>2?arguments[2]:void 0,2)),null==p||c==Array&&Ol(p))for(r=new c(e=Al(u.length));e>h;h++)a=l?f(u[h],h):u[h],jl(r,h,a);else for(i=(o=Tl(u,p)).next,r=new c;!(n=i.call(o)).done;h++)a=l?El(o,f,[n.value,h],!0):n.value,jl(r,h,a);return r.length=h,r},Rl=Ll;Ar({target:"Array",stat:!0,forced:!Mo((function(t){Array.from(t)}))},{from:Rl});var Pl,Il,Cl,Dl={exports:{}};function Ml(t,e){return["".concat((new Date).toISOString()," MCS Client ").concat(t,":")].concat(Array.from(e))}Il=r,Cl=function(){var t=function(){},e="undefined",r=("undefined"==typeof window?"undefined":En(window))!==e&&En(window.navigator)!==e&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"];function o(t,e){var r=t[e];if("function"==typeof r.bind)return r.bind(t);try{return Function.prototype.bind.call(r,t)}catch(e){return function(){return Function.prototype.apply.apply(r,[t,arguments])}}}function i(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function a(n){return"debug"===n&&(n="log"),("undefined"==typeof console?"undefined":En(console))!==e&&("trace"===n&&r?i:void 0!==console[n]?o(console,n):void 0!==console.log?o(console,"log"):t)}function u(e,r){for(var o=0;o<n.length;o++){var i=n[o];this[i]=o<e?t:this.methodFactory(i,e,r)}this.log=this.debug}function c(t,r,n){return function(){("undefined"==typeof console?"undefined":En(console))!==e&&(u.call(this,r,n),this[t].apply(this,arguments))}}function s(t,e,r){return a(t)||c.apply(this,arguments)}function f(t,r,o){var i,a=this;r=null==r?"WARN":r;var c="loglevel";function f(){var t;if(("undefined"==typeof window?"undefined":En(window))!==e&&c){try{t=window.localStorage[c]}catch(t){}if(En(t)===e)try{var r=window.document.cookie,n=r.indexOf(encodeURIComponent(c)+"=");-1!==n&&(t=/^([^;]+)/.exec(r.slice(n))[1])}catch(t){}return void 0===a.levels[t]&&(t=void 0),t}}"string"==typeof t?c+=":"+t:"symbol"===En(t)&&(c=void 0),a.name=t,a.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},a.methodFactory=o||s,a.getLevel=function(){return i},a.setLevel=function(r,o){if("string"==typeof r&&void 0!==a.levels[r.toUpperCase()]&&(r=a.levels[r.toUpperCase()]),!("number"==typeof r&&r>=0&&r<=a.levels.SILENT))throw"log.setLevel() called with invalid level: "+r;if(i=r,!1!==o&&function(t){var r=(n[t]||"silent").toUpperCase();if(("undefined"==typeof window?"undefined":En(window))!==e&&c){try{return void(window.localStorage[c]=r)}catch(t){}try{window.document.cookie=encodeURIComponent(c)+"="+r+";"}catch(t){}}}(r),u.call(a,r,t),("undefined"==typeof console?"undefined":En(console))===e&&r<a.levels.SILENT)return"No console available for logging"},a.setDefaultLevel=function(t){r=t,f()||a.setLevel(t,!1)},a.resetLevel=function(){a.setLevel(r,!1),function(){if(("undefined"==typeof window?"undefined":En(window))!==e&&c){try{return void window.localStorage.removeItem(c)}catch(t){}try{window.document.cookie=encodeURIComponent(c)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(t){}}}()},a.enableAll=function(t){a.setLevel(a.levels.TRACE,t)},a.disableAll=function(t){a.setLevel(a.levels.SILENT,t)};var l=f();null==l&&(l=r),a.setLevel(l,!1)}var l=new f,p={};l.getLogger=function(t){if("symbol"!==En(t)&&"string"!=typeof t||""===t)throw new TypeError("You must supply a name when creating a logger.");var e=p[t];return e||(e=p[t]=new f(t,l.getLevel(),l.methodFactory)),e};var h=("undefined"==typeof window?"undefined":En(window))!==e?window.log:void 0;return l.noConflict=function(){return("undefined"==typeof window?"undefined":En(window))!==e&&window.log===l&&(window.log=h),l},l.getLoggers=function(){return p},l.default=l,l},(Pl=Dl).exports?Pl.exports=Cl():Il.log=Cl();var Ul,Nl=function(){function t(e){bn(this,t),Ln(this,"prefix",""),this.prefix=null!=e&&e.length>0?e+" ":""}return xn(t,[{key:"setLevel",value:function(t){Dl.exports.setLevel(t)}},{key:"trace",value:function(){if(Dl.exports.getLevel()==Dl.exports.levels.TRACE){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];Dl.exports.debug.apply(null,Ml(this.prefix+"T",e))}}},{key:"debug",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];Dl.exports.debug.apply(null,Ml(this.prefix+"D",e))}},{key:"info",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];Dl.exports.info.apply(null,Ml(this.prefix+"I",e))}},{key:"warn",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];Dl.exports.warn.apply(null,Ml(this.prefix+"W",e))}},{key:"error",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];Dl.exports.error.apply(null,Ml(this.prefix+"E",e))}}],[{key:"scope",value:function(e){return new t(e)}},{key:"setLevel",value:function(t){Dl.exports.setLevel(t)}},{key:"trace",value:function(){if(Dl.exports.getLevel()==Dl.exports.levels.TRACE){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];Dl.exports.debug.apply(null,Ml("T",e))}}},{key:"debug",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];Dl.exports.debug.apply(null,Ml("D",e))}},{key:"info",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];Dl.exports.info.apply(null,Ml("I",e))}},{key:"warn",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];Dl.exports.warn.apply(null,Ml("W",e))}},{key:"error",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];Dl.exports.error.apply(null,Ml("E",e))}}]),t}(),Fl=E,Bl=y,ql=ht("match"),$l=function(t){var e;return Fl(t)&&(void 0!==(e=t[ql])?!!e:"RegExp"==Bl(t))},zl=$l,Gl=ht("match"),Wl=Ar,Vl=i.f,Hl=Ue,Yl=Gc,Jl=function(t){if(zl(t))throw TypeError("The method doesn't accept regular expressions");return t},Kl=w,Xl=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[Gl]=!1,"