@twilio/mcs-client 0.5.3 → 0.6.0-canary.102

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/builds/browser.js +449 -484
  2. package/builds/browser.js.map +1 -1
  3. package/builds/lib.d.ts +16 -25
  4. package/builds/lib.js +449 -484
  5. package/builds/lib.js.map +1 -1
  6. package/builds/twilio-mcs-client.js +11240 -9472
  7. package/builds/twilio-mcs-client.min.js +37 -38
  8. package/dist/_virtual/rng-browser.js +34 -0
  9. package/dist/_virtual/rng-browser.js.map +1 -0
  10. package/dist/cancellable-promise.js +98 -0
  11. package/dist/cancellable-promise.js.map +1 -0
  12. package/dist/client.js +88 -23
  13. package/dist/client.js.map +1 -1
  14. package/dist/configuration.js.map +1 -1
  15. package/dist/index.js +8 -9
  16. package/dist/index.js.map +1 -1
  17. package/dist/logger.js +2 -4
  18. package/dist/logger.js.map +1 -1
  19. package/dist/media.js +15 -22
  20. package/dist/media.js.map +1 -1
  21. package/dist/node_modules/tslib/tslib.es6.js +1 -1
  22. package/dist/node_modules/tslib/tslib.es6.js.map +1 -1
  23. package/dist/node_modules/uuid/index.js +44 -0
  24. package/dist/node_modules/uuid/index.js.map +1 -0
  25. package/dist/node_modules/uuid/lib/bytesToUuid.js +60 -0
  26. package/dist/node_modules/uuid/lib/bytesToUuid.js.map +1 -0
  27. package/dist/node_modules/uuid/lib/rng-browser.js +65 -0
  28. package/dist/node_modules/uuid/lib/rng-browser.js.map +1 -0
  29. package/dist/node_modules/uuid/v1.js +146 -0
  30. package/dist/node_modules/uuid/v1.js.map +1 -0
  31. package/dist/node_modules/uuid/v4.js +66 -0
  32. package/dist/node_modules/uuid/v4.js.map +1 -0
  33. package/dist/packages/mcs-client/package.json.js +1 -1
  34. package/dist/services/network.js +54 -32
  35. package/dist/services/network.js.map +1 -1
  36. package/dist/services/transport.js +26 -11
  37. package/dist/services/transport.js.map +1 -1
  38. package/dist/services/transporterror.js.map +1 -1
  39. package/package.json +21 -16
  40. package/CHANGELOG.md +0 -210
@@ -15,48 +15,47 @@ OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
15
15
  CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16
16
 
17
17
  */
18
- 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:{};function r(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 n(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function u(t){r(a,o,i,u,c,"next",t)}function c(t){r(a,o,i,u,c,"throw",t)}u(void 0)}))}}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},a=function(t){return t&&t.Math==Math&&t},u=a("object"==typeof globalThis&&globalThis)||a("object"==typeof window&&window)||a("object"==typeof self&&self)||a("object"==typeof i&&i)||function(){return this}()||Function("return this")(),c={},s=function(t){try{return!!t()}catch(t){return!0}},f=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),l={},p={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,d=h&&!p.call({1:2},1);l.f=d?function(t){var e=h(this,t);return!!e&&e.enumerable}:p;var v,y,g=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},m={}.toString,b=function(t){return m.call(t).slice(8,-1)},w=b,x="".split,S=s((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==w(t)?x.call(t,""):Object(t)}:Object,k=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},A=S,E=k,O=function(t){return A(E(t))},j=function(t){return"object"==typeof t?null!==t:"function"==typeof t},T=u,L=function(t){return"function"==typeof t?t:void 0},_=function(t,e){return arguments.length<2?L(T[t]):T[t]&&T[t][e]},R=_("navigator","userAgent")||"",I=u,P=R,C=I.process,D=I.Deno,M=C&&C.versions||D&&D.version,U=M&&M.v8;U?y=(v=U.split("."))[0]<4?1:v[0]+v[1]:P&&(!(v=P.match(/Edge\/(\d+)/))||v[1]>=74)&&(v=P.match(/Chrome\/(\d+)/))&&(y=v[1]);var N=y&&+y,F=N,B=s,q=!!Object.getOwnPropertySymbols&&!B((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&F&&F<41})),G=q&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,W=_,z=G?function(t){return"symbol"==typeof t}:function(t){var e=W("Symbol");return"function"==typeof e&&Object(t)instanceof e},$=j,V={exports:{}},H=u,Y=function(t,e){try{Object.defineProperty(H,t,{value:e,configurable:!0,writable:!0})}catch(r){H[t]=e}return e},X=Y,J="__core-js_shared__",K=u[J]||X(J,{}),Z=K;(V.exports=function(t,e){return Z[t]||(Z[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.17.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});var Q=k,tt=function(t){return Object(Q(t))},et=tt,rt={}.hasOwnProperty,nt=Object.hasOwn||function(t,e){return rt.call(et(t),e)},ot=0,it=Math.random(),at=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++ot+it).toString(36)},ut=u,ct=V.exports,st=nt,ft=at,lt=q,pt=G,ht=ct("wks"),dt=ut.Symbol,vt=pt?dt:dt&&dt.withoutSetter||ft,yt=function(t){return st(ht,t)&&(lt||"string"==typeof ht[t])||(lt&&st(dt,t)?ht[t]=dt[t]:ht[t]=vt("Symbol."+t)),ht[t]},gt=j,mt=z,bt=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")},wt=yt("toPrimitive"),xt=function(t,e){if(!gt(t)||mt(t))return t;var r,n=t[wt];if(void 0!==n){if(void 0===e&&(e="default"),r=n.call(t,e),!gt(r)||mt(r))return r;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),bt(t,e)},St=xt,kt=z,At=function(t){var e=St(t,"string");return kt(e)?e:String(e)},Et=j,Ot=u.document,jt=Et(Ot)&&Et(Ot.createElement),Tt=function(t){return jt?Ot.createElement(t):{}},Lt=Tt,_t=!f&&!s((function(){return 7!=Object.defineProperty(Lt("div"),"a",{get:function(){return 7}}).a})),Rt=f,It=l,Pt=g,Ct=O,Dt=At,Mt=nt,Ut=_t,Nt=Object.getOwnPropertyDescriptor;c.f=Rt?Nt:function(t,e){if(t=Ct(t),e=Dt(e),Ut)try{return Nt(t,e)}catch(t){}if(Mt(t,e))return Pt(!It.f.call(t,e),t[e])};var Ft={},Bt=j,qt=function(t){if(!Bt(t))throw TypeError(String(t)+" is not an object");return t},Gt=f,Wt=_t,zt=qt,$t=At,Vt=Object.defineProperty;Ft.f=Gt?Vt:function(t,e,r){if(zt(t),e=$t(e),zt(r),Wt)try{return Vt(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 Ht=Ft,Yt=g,Xt=f?function(t,e,r){return Ht.f(t,e,Yt(1,r))}:function(t,e,r){return t[e]=r,t},Jt={exports:{}},Kt=K,Zt=Function.toString;"function"!=typeof Kt.inspectSource&&(Kt.inspectSource=function(t){return Zt.call(t)});var Qt,te,ee,re=Kt.inspectSource,ne=re,oe=u.WeakMap,ie="function"==typeof oe&&/native code/.test(ne(oe)),ae=V.exports,ue=at,ce=ae("keys"),se=function(t){return ce[t]||(ce[t]=ue(t))},fe={},le=ie,pe=j,he=Xt,de=nt,ve=K,ye=se,ge=fe,me="Object already initialized",be=u.WeakMap;if(le||ve.state){var we=ve.state||(ve.state=new be),xe=we.get,Se=we.has,ke=we.set;Qt=function(t,e){if(Se.call(we,t))throw new TypeError(me);return e.facade=t,ke.call(we,t,e),e},te=function(t){return xe.call(we,t)||{}},ee=function(t){return Se.call(we,t)}}else{var Ae=ye("state");ge[Ae]=!0,Qt=function(t,e){if(de(t,Ae))throw new TypeError(me);return e.facade=t,he(t,Ae,e),e},te=function(t){return de(t,Ae)?t[Ae]:{}},ee=function(t){return de(t,Ae)}}var Ee={set:Qt,get:te,has:ee,enforce:function(t){return ee(t)?te(t):Qt(t,{})},getterFor:function(t){return function(e){var r;if(!pe(e)||(r=te(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},Oe=u,je=Xt,Te=nt,Le=Y,_e=re,Re=Ee.get,Ie=Ee.enforce,Pe=String(String).split("String");(Jt.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||Te(r,"name")||je(r,"name",e),(o=Ie(r)).source||(o.source=Pe.join("string"==typeof e?e:""))),t!==Oe?(i?!u&&t[e]&&(a=!0):delete t[e],a?t[e]=r:je(t,e,r)):a?t[e]=r:Le(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&Re(this).source||_e(this)}));var Ce={},De=Math.ceil,Me=Math.floor,Ue=function(t){return isNaN(t=+t)?0:(t>0?Me:De)(t)},Ne=Ue,Fe=Math.min,Be=function(t){return t>0?Fe(Ne(t),9007199254740991):0},qe=Ue,Ge=Math.max,We=Math.min,ze=function(t,e){var r=qe(t);return r<0?Ge(r+e,0):We(r,e)},$e=O,Ve=Be,He=ze,Ye=function(t){return function(e,r,n){var o,i=$e(e),a=Ve(i.length),u=He(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}},Xe={includes:Ye(!0),indexOf:Ye(!1)},Je=nt,Ke=O,Ze=Xe.indexOf,Qe=fe,tr=function(t,e){var r,n=Ke(t),o=0,i=[];for(r in n)!Je(Qe,r)&&Je(n,r)&&i.push(r);for(;e.length>o;)Je(n,r=e[o++])&&(~Ze(i,r)||i.push(r));return i},er=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],rr=tr,nr=er.concat("length","prototype");Ce.f=Object.getOwnPropertyNames||function(t){return rr(t,nr)};var or={};or.f=Object.getOwnPropertySymbols;var ir=Ce,ar=or,ur=qt,cr=_("Reflect","ownKeys")||function(t){var e=ir.f(ur(t)),r=ar.f;return r?e.concat(r(t)):e},sr=nt,fr=cr,lr=c,pr=Ft,hr=function(t,e){for(var r=fr(e),n=pr.f,o=lr.f,i=0;i<r.length;i++){var a=r[i];sr(t,a)||n(t,a,o(e,a))}},dr=s,vr=/#|\.prototype\./,yr=function(t,e){var r=mr[gr(t)];return r==wr||r!=br&&("function"==typeof e?dr(e):!!e)},gr=yr.normalize=function(t){return String(t).replace(vr,".").toLowerCase()},mr=yr.data={},br=yr.NATIVE="N",wr=yr.POLYFILL="P",xr=yr,Sr=u,kr=c.f,Ar=Xt,Er=Jt.exports,Or=Y,jr=hr,Tr=xr,Lr=function(t,e){var r,n,o,i,a,u=t.target,c=t.global,s=t.stat;if(r=c?Sr:s?Sr[u]||Or(u,{}):(Sr[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=kr(r,n))&&a.value:r[n],!Tr(c?n:u+(s?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;jr(i,o)}(t.sham||o&&o.sham)&&Ar(i,"sham",!0),Er(r,n,i,t)}},_r=u.Promise,Rr=Jt.exports,Ir=function(t,e,r){for(var n in e)Rr(t,n,e[n],r);return t},Pr=j,Cr=qt,Dr=function(t){if(!Pr(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t},Mr=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 Cr(r),Dr(n),e?t.call(r,n):r.__proto__=n,r}}():void 0),Ur=Ft.f,Nr=nt,Fr=yt("toStringTag"),Br=function(t,e,r){t&&!Nr(t=r?t:t.prototype,Fr)&&Ur(t,Fr,{configurable:!0,value:e})},qr=_,Gr=Ft,Wr=f,zr=yt("species"),$r=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Vr=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t},Hr={},Yr=Hr,Xr=yt("iterator"),Jr=Array.prototype,Kr=function(t){return void 0!==t&&(Yr.Array===t||Jr[Xr]===t)},Zr=$r,Qr=function(t,e,r){if(Zr(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)}},tn={};tn[yt("toStringTag")]="z";var en="[object z]"===String(tn),rn=en,nn=b,on=yt("toStringTag"),an="Arguments"==nn(function(){return arguments}()),un=rn?nn: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),on))?r:an?nn(e):"Object"==(n=nn(e))&&"function"==typeof e.callee?"Arguments":n},cn=un,sn=Hr,fn=yt("iterator"),ln=function(t){if(null!=t)return t[fn]||t["@@iterator"]||sn[cn(t)]},pn=qt,hn=ln,dn=function(t,e){var r=arguments.length<2?hn(t):e;if("function"!=typeof r)throw TypeError(String(t)+" is not iterable");return pn(r.call(t))},vn=qt,yn=function(t,e,r){var n,o;vn(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 vn(n),r},gn=qt,mn=Kr,bn=Be,wn=Qr,xn=dn,Sn=ln,kn=yn,An=function(t,e){this.stopped=t,this.result=e},En=yt("iterator"),On=!1;try{var jn=0,Tn={next:function(){return{done:!!jn++}},return:function(){On=!0}};Tn[En]=function(){return this},Array.from(Tn,(function(){throw 2}))}catch(t){}var Ln,_n,Rn,In,Pn=function(t,e){if(!e&&!On)return!1;var r=!1;try{var n={};n[En]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},Cn=qt,Dn=$r,Mn=yt("species"),Un=function(t,e){var r,n=Cn(t).constructor;return void 0===n||null==(r=Cn(n)[Mn])?e:Dn(r)},Nn=_("document","documentElement"),Fn=/(?:ipad|iphone|ipod).*applewebkit/i.test(R),Bn="process"==b(u.process),qn=u,Gn=s,Wn=Qr,zn=Nn,$n=Tt,Vn=Fn,Hn=Bn,Yn=qn.setImmediate,Xn=qn.clearImmediate,Jn=qn.process,Kn=qn.MessageChannel,Zn=qn.Dispatch,Qn=0,to={},eo="onreadystatechange";try{Ln=qn.location}catch(t){}var ro=function(t){if(to.hasOwnProperty(t)){var e=to[t];delete to[t],e()}},no=function(t){return function(){ro(t)}},oo=function(t){ro(t.data)},io=function(t){qn.postMessage(String(t),Ln.protocol+"//"+Ln.host)};Yn&&Xn||(Yn=function(t){for(var e=[],r=arguments.length,n=1;r>n;)e.push(arguments[n++]);return to[++Qn]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},_n(Qn),Qn},Xn=function(t){delete to[t]},Hn?_n=function(t){Jn.nextTick(no(t))}:Zn&&Zn.now?_n=function(t){Zn.now(no(t))}:Kn&&!Vn?(In=(Rn=new Kn).port2,Rn.port1.onmessage=oo,_n=Wn(In.postMessage,In,1)):qn.addEventListener&&"function"==typeof postMessage&&!qn.importScripts&&Ln&&"file:"!==Ln.protocol&&!Gn(io)?(_n=io,qn.addEventListener("message",oo,!1)):_n=eo in $n("script")?function(t){zn.appendChild($n("script")).onreadystatechange=function(){zn.removeChild(this),ro(t)}}:function(t){setTimeout(no(t),0)});var ao,uo,co,so,fo,lo,po,ho,vo={set:Yn,clear:Xn},yo=u,go=/ipad|iphone|ipod/i.test(R)&&void 0!==yo.Pebble,mo=/web0s(?!.*chrome)/i.test(R),bo=u,wo=c.f,xo=vo.set,So=Fn,ko=go,Ao=mo,Eo=Bn,Oo=bo.MutationObserver||bo.WebKitMutationObserver,jo=bo.document,To=bo.process,Lo=bo.Promise,_o=wo(bo,"queueMicrotask"),Ro=_o&&_o.value;Ro||(ao=function(){var t,e;for(Eo&&(t=To.domain)&&t.exit();uo;){e=uo.fn,uo=uo.next;try{e()}catch(t){throw uo?so():co=void 0,t}}co=void 0,t&&t.enter()},So||Eo||Ao||!Oo||!jo?!ko&&Lo&&Lo.resolve?((po=Lo.resolve(void 0)).constructor=Lo,ho=po.then,so=function(){ho.call(po,ao)}):so=Eo?function(){To.nextTick(ao)}:function(){xo.call(bo,ao)}:(fo=!0,lo=jo.createTextNode(""),new Oo(ao).observe(lo,{characterData:!0}),so=function(){lo.data=fo=!fo}));var Io=Ro||function(t){var e={fn:t,next:void 0};co&&(co.next=e),uo||(uo=e,so()),co=e},Po={},Co=$r,Do=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=Co(e),this.reject=Co(r)};Po.f=function(t){return new Do(t)};var Mo,Uo,No,Fo,Bo=qt,qo=j,Go=Po,Wo=u,zo="object"==typeof window,$o=Lr,Vo=u,Ho=_,Yo=_r,Xo=Jt.exports,Jo=Ir,Ko=Mr,Zo=Br,Qo=function(t){var e=qr(t),r=Gr.f;Wr&&e&&!e[zr]&&r(e,zr,{configurable:!0,get:function(){return this}})},ti=j,ei=$r,ri=Vr,ni=re,oi=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=wn(e,f,1+l+h),v=function(t){return n&&kn(n,"normal",t),new An(!0,t)},y=function(t){return l?(gn(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=Sn(t)))throw TypeError("Target is not iterable");if(mn(o)){for(i=0,a=bn(t.length);a>i;i++)if((u=y(t[i]))&&u instanceof An)return u;return new An(!1)}n=xn(t,o)}for(c=n.next;!(s=c.call(n)).done;){try{u=y(s.value)}catch(t){kn(n,"throw",t)}if("object"==typeof u&&u&&u instanceof An)return u}return new An(!1)},ii=Pn,ai=Un,ui=vo.set,ci=Io,si=function(t,e){if(Bo(t),qo(e)&&e.constructor===t)return e;var r=Go.f(t);return(0,r.resolve)(e),r.promise},fi=function(t,e){var r=Wo.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))},li=Po,pi=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},hi=Ee,di=xr,vi=zo,yi=Bn,gi=N,mi=yt("species"),bi="Promise",wi=hi.get,xi=hi.set,Si=hi.getterFor(bi),ki=Yo&&Yo.prototype,Ai=Yo,Ei=ki,Oi=Vo.TypeError,ji=Vo.document,Ti=Vo.process,Li=li.f,_i=Li,Ri=!!(ji&&ji.createEvent&&Vo.dispatchEvent),Ii="function"==typeof PromiseRejectionEvent,Pi="unhandledrejection",Ci=!1,Di=di(bi,(function(){var t=ni(Ai),e=t!==String(Ai);if(!e&&66===gi)return!0;if(gi>=51&&/native code/.test(t))return!1;var r=new Ai((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};return(r.constructor={})[mi]=n,!(Ci=r.then((function(){}))instanceof n)||!e&&vi&&!Ii})),Mi=Di||!ii((function(t){Ai.all(t).catch((function(){}))})),Ui=function(t){var e;return!(!ti(t)||"function"!=typeof(e=t.then))&&e},Ni=function(t,e){if(!t.notified){t.notified=!0;var r=t.reactions;ci((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&&Gi(t),t.rejection=1),!0===f?a=n:(h&&h.enter(),a=f(n),h&&(h.exit(),c=!0)),a===s.promise?p(Oi("Promise-chain cycle")):(u=Ui(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&&Bi(t)}))}},Fi=function(t,e,r){var n,o;Ri?((n=ji.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),Vo.dispatchEvent(n)):n={promise:e,reason:r},!Ii&&(o=Vo["on"+t])?o(n):t===Pi&&fi("Unhandled promise rejection",r)},Bi=function(t){ui.call(Vo,(function(){var e,r=t.facade,n=t.value;if(qi(t)&&(e=pi((function(){yi?Ti.emit("unhandledRejection",n,r):Fi(Pi,r,n)})),t.rejection=yi||qi(t)?2:1,e.error))throw e.value}))},qi=function(t){return 1!==t.rejection&&!t.parent},Gi=function(t){ui.call(Vo,(function(){var e=t.facade;yi?Ti.emit("rejectionHandled",e):Fi("rejectionhandled",e,t.value)}))},Wi=function(t,e,r){return function(n){t(e,n,r)}},zi=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,Ni(t,!0))},$i=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw Oi("Promise can't be resolved itself");var n=Ui(e);n?ci((function(){var r={done:!1};try{n.call(e,Wi($i,r,t),Wi(zi,r,t))}catch(e){zi(r,e,t)}})):(t.value=e,t.state=1,Ni(t,!1))}catch(e){zi({done:!1},e,t)}}};if(Di&&(Ei=(Ai=function(t){ri(this,Ai,bi),ei(t),Mo.call(this);var e=wi(this);try{t(Wi($i,e),Wi(zi,e))}catch(t){zi(e,t)}}).prototype,(Mo=function(t){xi(this,{type:bi,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Jo(Ei,{then:function(t,e){var r=Si(this),n=Li(ai(this,Ai));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=yi?Ti.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&Ni(r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),Uo=function(){var t=new Mo,e=wi(t);this.promise=t,this.resolve=Wi($i,e),this.reject=Wi(zi,e)},li.f=Li=function(t){return t===Ai||t===No?new Uo(t):_i(t)},"function"==typeof Yo&&ki!==Object.prototype)){Fo=ki.then,Ci||(Xo(ki,"then",(function(t,e){var r=this;return new Ai((function(t,e){Fo.call(r,t,e)})).then(t,e)}),{unsafe:!0}),Xo(ki,"catch",Ei.catch,{unsafe:!0}));try{delete ki.constructor}catch(t){}Ko&&Ko(ki,Ei)}$o({global:!0,wrap:!0,forced:Di},{Promise:Ai}),Zo(Ai,bi,!1),Qo(bi),No=Ho(bi),$o({target:bi,stat:!0,forced:Di},{reject:function(t){var e=Li(this);return e.reject.call(void 0,t),e.promise}}),$o({target:bi,stat:!0,forced:Di},{resolve:function(t){return si(this,t)}}),$o({target:bi,stat:!0,forced:Mi},{all:function(t){var e=this,r=Li(e),n=r.resolve,o=r.reject,i=pi((function(){var r=ei(e.resolve),i=[],a=0,u=1;oi(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=Li(e),n=r.reject,o=pi((function(){var o=ei(e.resolve);oi(t,(function(t){o.call(e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var Vi,Hi=Object.prototype,Yi=Hi.hasOwnProperty,Xi="function"==typeof Symbol?Symbol:{},Ji=Xi.iterator||"@@iterator",Ki=Xi.asyncIterator||"@@asyncIterator",Zi=Xi.toStringTag||"@@toStringTag";function Qi(t,e,r,n){var o=e&&e.prototype instanceof aa?e:aa,i=Object.create(o.prototype),a=new ba(n||[]);return i._invoke=function(t,e,r){var n=ea;return function(o,i){if(n===na)throw new Error("Generator is already running");if(n===oa){if("throw"===o)throw i;return xa()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=ya(a,r);if(u){if(u===ia)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===ea)throw n=oa,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=na;var c=ta(t,e,r);if("normal"===c.type){if(n=r.done?oa:ra,c.arg===ia)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=oa,r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function ta(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}var ea="suspendedStart",ra="suspendedYield",na="executing",oa="completed",ia={};function aa(){}function ua(){}function ca(){}var sa={};sa[Ji]=function(){return this};var fa=Object.getPrototypeOf,la=fa&&fa(fa(wa([])));la&&la!==Hi&&Yi.call(la,Ji)&&(sa=la);var pa=ca.prototype=aa.prototype=Object.create(sa);function ha(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function da(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===ua||"GeneratorFunction"===(e.displayName||e.name))}function va(t,e){function r(n,o,i,a){var u=ta(t[n],t,o);if("throw"!==u.type){var c=u.arg,s=c.value;return s&&"object"==typeof s&&Yi.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 ya(t,e){var r=t.iterator[e.method];if(r===Vi){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=Vi,ya(t,e),"throw"===e.method))return ia;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return ia}var n=ta(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,ia;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=Vi),e.delegate=null,ia):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,ia)}function ga(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 ma(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function ba(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(ga,this),this.reset(!0)}function wa(t){if(t){var e=t[Ji];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(Yi.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=Vi,e.done=!0,e};return n.next=n}}return{next:xa}}function xa(){return{value:Vi,done:!0}}ua.prototype=pa.constructor=ca,ca.constructor=ua,ca[Zi]=ua.displayName="GeneratorFunction",ha(va.prototype),va.prototype[Ki]=function(){return this},ha(pa),pa[Zi]="Generator",pa[Ji]=function(){return this},pa.toString=function(){return"[object Generator]"},ba.prototype={constructor:ba,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=Vi,this.done=!1,this.delegate=null,this.method="next",this.arg=Vi,this.tryEntries.forEach(ma),!t)for(var e in this)"t"===e.charAt(0)&&Yi.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=Vi)},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=Vi),!!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=Yi.call(o,"catchLoc"),u=Yi.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&&Yi.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,ia):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),ia},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),ma(r),ia}},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;ma(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:wa(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=Vi),ia}};var Sa={wrap:Qi,isGeneratorFunction:da,AsyncIterator:va,mark:function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,ca):(t.__proto__=ca,Zi in t||(t[Zi]="GeneratorFunction")),t.prototype=Object.create(pa),t},awrap:function(t){return{__await:t}},async:function(t,e,r,n,o){void 0===o&&(o=Promise);var i=new va(Qi(t,e,r,n),o);return da(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:wa};
19
- /*! *****************************************************************************
20
- Copyright (c) Microsoft Corporation.
21
-
22
- Permission to use, copy, modify, and/or distribute this software for any
23
- purpose with or without fee is hereby granted.
24
-
25
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
26
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
27
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
28
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
29
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
30
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
31
- PERFORMANCE OF THIS SOFTWARE.
32
- ***************************************************************************** */function ka(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof 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 Aa(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}var Ea=qt,Oa=yn,ja=At,Ta=Ft,La=g,_a=function(t,e,r){var n=ja(e);n in t?Ta.f(t,n,La(0,r)):t[n]=r},Ra=Qr,Ia=tt,Pa=function(t,e,r,n){try{return n?e(Ea(r)[0],r[1]):e(r)}catch(e){Oa(t,"throw",e)}},Ca=Kr,Da=Be,Ma=_a,Ua=dn,Na=ln,Fa=function(t){var e,r,n,o,i,a,u=Ia(t),c="function"==typeof this?this:Array,s=arguments.length,f=s>1?arguments[1]:void 0,l=void 0!==f,p=Na(u),h=0;if(l&&(f=Ra(f,s>2?arguments[2]:void 0,2)),null==p||c==Array&&Ca(p))for(r=new c(e=Da(u.length));e>h;h++)a=l?f(u[h],h):u[h],Ma(r,h,a);else for(i=(o=Ua(u,p)).next,r=new c;!(n=i.call(o)).done;h++)a=l?Pa(o,f,[n.value,h],!0):n.value,Ma(r,h,a);return r.length=h,r},Ba=Fa;Lr({target:"Array",stat:!0,forced:!Pn((function(t){Array.from(t)}))},{from:Ba});var qa,Ga,Wa,za={exports:{}};function $a(t,e){return["".concat((new Date).toISOString()," MCS Client ").concat(t,":")].concat(Array.from(e))}Ga=i,Wa=function(){var t=function(){},e="undefined",r=typeof window!==e&&typeof 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"),typeof 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(){typeof 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,c="loglevel";function f(){var t;if(typeof window!==e&&c){try{t=window.localStorage[c]}catch(t){}if(typeof 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"==typeof 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(typeof 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),typeof console===e&&r<a.levels.SILENT)return"No console available for logging"},a.setDefaultLevel=function(t){f()||a.setLevel(t,!1)},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=null==r?"WARN":r),a.setLevel(l,!1)}var l=new f,p={};l.getLogger=function(t){if("symbol"!=typeof 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=typeof window!==e?window.log:void 0;return l.noConflict=function(){return typeof window!==e&&window.log===l&&(window.log=h),l},l.getLoggers=function(){return p},l.default=l,l},(qa=za).exports?qa.exports=Wa():Ga.log=Wa();class Va{constructor(t){o(this,"prefix",""),this.prefix=null!=t&&t.length>0?t+" ":""}static scope(t){return new Va(t)}setLevel(t){za.exports.setLevel(t)}static setLevel(t){za.exports.setLevel(t)}trace(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];za.exports.trace.apply(null,$a(this.prefix+"T",e))}debug(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];za.exports.debug.apply(null,$a(this.prefix+"D",e))}info(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];za.exports.info.apply(null,$a(this.prefix+"I",e))}warn(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];za.exports.warn.apply(null,$a(this.prefix+"W",e))}error(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];za.exports.error.apply(null,$a(this.prefix+"E",e))}static trace(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];za.exports.trace.apply(null,$a("T",e))}static debug(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];za.exports.debug.apply(null,$a("D",e))}static info(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];za.exports.info.apply(null,$a("I",e))}static warn(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];za.exports.warn.apply(null,$a("W",e))}static error(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];za.exports.error.apply(null,$a("E",e))}}var Ha,Ya=z,Xa=function(t){if(Ya(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)},Ja=j,Ka=b,Za=yt("match"),Qa=function(t){var e;return Ja(t)&&(void 0!==(e=t[Za])?!!e:"RegExp"==Ka(t))},tu=Qa,eu=yt("match"),ru=Lr,nu=c.f,ou=Be,iu=Xa,au=function(t){if(tu(t))throw TypeError("The method doesn't accept regular expressions");return t},uu=k,cu=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[eu]=!1,"/./"[t](e)}catch(t){}}return!1},su="".startsWith,fu=Math.min,lu=cu("startsWith");ru({target:"String",proto:!0,forced:!!(lu||(Ha=nu(String.prototype,"startsWith"),!Ha||Ha.writable))&&!lu},{startsWith:function(t){var e=iu(uu(this));au(t);var r=ou(fu(arguments.length>1?arguments[1]:void 0,e.length)),n=iu(t);return su?su.call(e,n,r):e.slice(r,r+n.length)===n}});var pu=(t,e)=>{return"".concat((r=t,r.startsWith("http")?"":(t=>"https://mcs.".concat(null!=t?t:"us1",".twilio.com"))(e))).concat(t);var r};class hu{constructor(t,e,r,n){var o,i,a,u,c,s,f=null!==(o=null!==(i=n.MCS)&&void 0!==i?i:n)&&void 0!==o?o:{};this.region=null!==(a=null!==(u=f.region)&&void 0!==u?u:n.region)&&void 0!==a?a:"us1",this.mediaUrl=pu(e,this.region),this.mediaSetUrl=r?pu(r):"".concat(this.mediaUrl,"Set"),this.token=t,this.retryWhenThrottledOverride=null===(c=f.retryWhenThrottledOverride)||void 0===c||c,this.backoffConfigOverride=null!==(s=f.backoffConfigOverride)&&void 0!==s?s:hu.backoffConfigDefault}static get backoffConfigDefault(){return{min:1e3,max:4e3,maxAttemptsCount:3}}static get retryWhenThrottledDefault(){return true}updateToken(t){this.token=t}}class du{constructor(t,e,r){this.config=t,this.network=e,this._update(r)}get sid(){return this.state.sid}get serviceSid(){return this.state.serviceSid}get dateCreated(){return this.state.dateCreated}get dateUpdated(){return this.state.dateUpdated}get contentType(){return this.state.contentType}get size(){return this.state.size}get fileName(){return this.state.filename}get filename(){return this.state.filename}get category(){return this.state.category}getContentUrl(){var t=this;return n(Sa.mark((function e(){var r;return Sa.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.network.get("".concat(t.config.mediaUrl,"/").concat(t.sid));case 2:return r=e.sent,t._update(r.body),e.abrupt("return",Promise.resolve(t.state.contentDirectUrl));case 5:case"end":return e.stop()}}),e)})))()}getCachedContentUrl(){var t=this;return n(Sa.mark((function e(){return Sa.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.state.contentDirectUrl){e.next=2;break}return e.abrupt("return",Promise.resolve(t.state.contentDirectUrl));case 2:return e.next=4,t.getContentUrl();case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)})))()}_update(t){var e,r,n,o;this.state={sid:t.sid,serviceSid:t.service_sid,channelSid:t.channel_sid,messageSid:t.message_sid,dateCreated:t.date_created?new Date(t.date_created):null,dateUploadUpdated:t.date_upload_updated?new Date(t.date_upload_updated):null,dateUpdated:t.date_updated?new Date(t.date_updated):null,size:t.size,contentType:t.content_type,author:t.author,url:t.url,contentUrl:t.links.content,contentDirectUrl:null!==(e=t.links.content_direct_temporary)&&void 0!==e?e:null,filename:null!==(r=t.filename)&&void 0!==r?r:null,category:null!==(n=t.category)&&void 0!==n?n:"media",isMultipartUpstream:null!==(o=t.is_multipart_upstream)&&void 0!==o&&o}}}var vu=$r,yu=tt,gu=S,mu=Be,bu=function(t){return function(e,r,n,o){vu(r);var i=yu(e),a=gu(i),u=mu(i.length),c=t?u-1:0,s=t?-1:1;if(n<2)for(;;){if(c in a){o=a[c],c+=s;break}if(c+=s,t?c<0:u<=c)throw TypeError("Reduce of empty array with no initial value")}for(;t?c>=0:u>c;c+=s)c in a&&(o=r(o,a[c],c,i));return o}},wu={left:bu(!1),right:bu(!0)},xu=s,Su=function(t,e){var r=[][t];return!!r&&xu((function(){r.call(null,e||function(){throw 1},1)}))},ku=wu.left,Au=N,Eu=Bn;Lr({target:"Array",proto:!0,forced:!Su("reduce")||!Eu&&Au>79&&Au<83},{reduce:function(t){return ku(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Ou=qt,ju={},Tu=s,Lu=u.RegExp;ju.UNSUPPORTED_Y=Tu((function(){var t=Lu("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),ju.BROKEN_CARET=Tu((function(){var t=Lu("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));var _u,Ru=tr,Iu=er,Pu=Object.keys||function(t){return Ru(t,Iu)},Cu=Ft,Du=qt,Mu=Pu,Uu=f?Object.defineProperties:function(t,e){Du(t);for(var r,n=Mu(e),o=n.length,i=0;o>i;)Cu.f(t,r=n[i++],e[r]);return t},Nu=qt,Fu=Uu,Bu=er,qu=fe,Gu=Nn,Wu=Tt,zu=se("IE_PROTO"),$u=function(){},Vu=function(t){return"<script>"+t+"</"+"script>"},Hu=function(t){t.write(Vu("")),t.close();var e=t.parentWindow.Object;return t=null,e},Yu=function(){try{_u=new ActiveXObject("htmlfile")}catch(t){}var t,e;Yu="undefined"!=typeof document?document.domain&&_u?Hu(_u):((e=Wu("iframe")).style.display="none",Gu.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Vu("document.F=Object")),t.close(),t.F):Hu(_u);for(var r=Bu.length;r--;)delete Yu.prototype[Bu[r]];return Yu()};qu[zu]=!0;var Xu,Ju,Ku=Object.create||function(t,e){var r;return null!==t?($u.prototype=Nu(t),r=new $u,$u.prototype=null,r[zu]=t):r=Yu(),void 0===e?r:Fu(r,e)},Zu=s,Qu=u.RegExp,tc=Zu((function(){var t=Qu(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),ec=s,rc=u.RegExp,nc=ec((function(){var t=rc("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),oc=Xa,ic=function(){var t=Ou(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},ac=ju,uc=V.exports,cc=Ku,sc=Ee.get,fc=tc,lc=nc,pc=RegExp.prototype.exec,hc=uc("native-string-replace",String.prototype.replace),dc=pc,vc=(Xu=/a/,Ju=/b*/g,pc.call(Xu,"a"),pc.call(Ju,"a"),0!==Xu.lastIndex||0!==Ju.lastIndex),yc=ac.UNSUPPORTED_Y||ac.BROKEN_CARET,gc=void 0!==/()??/.exec("")[1];(vc||gc||yc||fc||lc)&&(dc=function(t){var e,r,n,o,i,a,u,c=this,s=sc(c),f=oc(t),l=s.raw;if(l)return l.lastIndex=c.lastIndex,e=dc.call(l,f),c.lastIndex=l.lastIndex,e;var p=s.groups,h=yc&&c.sticky,d=ic.call(c),v=c.source,y=0,g=f;if(h&&(-1===(d=d.replace("y","")).indexOf("g")&&(d+="g"),g=f.slice(c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==f.charAt(c.lastIndex-1))&&(v="(?: "+v+")",g=" "+g,y++),r=new RegExp("^(?:"+v+")",d)),gc&&(r=new RegExp("^"+v+"$(?!\\s)",d)),vc&&(n=c.lastIndex),o=pc.call(h?r:c,g),h?o?(o.input=o.input.slice(y),o[0]=o[0].slice(y),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:vc&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),gc&&o&&o.length>1&&hc.call(o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=a=cc(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var mc=dc;Lr({target:"RegExp",proto:!0,forced:/./.exec!==mc},{exec:mc});var bc=Jt.exports,wc=mc,xc=s,Sc=yt,kc=Xt,Ac=Sc("species"),Ec=RegExp.prototype,Oc=Ue,jc=Xa,Tc=k,Lc=function(t){return function(e,r){var n,o,i=jc(Tc(e)),a=Oc(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}},_c={codeAt:Lc(!1),charAt:Lc(!0)},Rc=_c.charAt,Ic=b,Pc=mc,Cc=function(t,e,r,n){var o=Sc(t),i=!xc((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),a=i&&!xc((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[Ac]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!a||r){var u=/./[o],c=e(o,""[t],(function(t,e,r,n,o){var a=e.exec;return a===wc||a===Ec.exec?i&&!o?{done:!0,value:u.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}));bc(String.prototype,t,c[0]),bc(Ec,o,c[1])}n&&kc(Ec[o],"sham",!0)},Dc=Qa,Mc=qt,Uc=k,Nc=Un,Fc=function(t,e,r){return e+(r?Rc(t,e).length:1)},Bc=Be,qc=Xa,Gc=function(t,e){var r=t.exec;if("function"==typeof r){var n=r.call(t,e);if("object"!=typeof n)throw TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==Ic(t))throw TypeError("RegExp#exec called on incompatible receiver");return Pc.call(t,e)},Wc=mc,zc=s,$c=ju.UNSUPPORTED_Y,Vc=[].push,Hc=Math.min,Yc=4294967295;Cc("split",(function(t,e,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,r){var n=qc(Uc(this)),o=void 0===r?Yc:r>>>0;if(0===o)return[];if(void 0===t)return[n];if(!Dc(t))return e.call(n,t,o);for(var i,a,u,c=[],s=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,l=new RegExp(t.source,s+"g");(i=Wc.call(l,n))&&!((a=l.lastIndex)>f&&(c.push(n.slice(f,i.index)),i.length>1&&i.index<n.length&&Vc.apply(c,i.slice(1)),u=i[0].length,f=a,c.length>=o));)l.lastIndex===i.index&&l.lastIndex++;return f===n.length?!u&&l.test("")||c.push(""):c.push(n.slice(f)),c.length>o?c.slice(0,o):c}:"0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:e.call(this,t,r)}:e,[function(e,r){var o=Uc(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,o,r):n.call(qc(o),e,r)},function(t,o){var i=Mc(this),a=qc(t),u=r(n,i,a,o,n!==e);if(u.done)return u.value;var c=Nc(i,RegExp),s=i.unicode,f=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+($c?"g":"y"),l=new c($c?"^(?:"+i.source+")":i,f),p=void 0===o?Yc:o>>>0;if(0===p)return[];if(0===a.length)return null===Gc(l,a)?[a]:[];for(var h=0,d=0,v=[];d<a.length;){l.lastIndex=$c?0:d;var y,g=Gc(l,$c?a.slice(d):a);if(null===g||(y=Hc(Bc(l.lastIndex+($c?d:0)),a.length))===h)d=Fc(a,d,s);else{if(v.push(a.slice(h,d)),v.length===p)return v;for(var m=1;m<=g.length-1;m++)if(v.push(g[m]),v.length===p)return v;d=h=y}}return v.push(a.slice(h)),v}]}),!!zc((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),$c);class Xc extends Error{constructor(t,e,r,n,o){super(t),this.code=e,this.body=r,this.status=n,this.headers=o}}var Jc=e.XMLHttpRequest||{};function Kc(t){var e=t.getResponseHeader("Content-Type");if(!e||0!==e.indexOf("application/json")||0===t.responseText.length)return t.responseText;try{return JSON.parse(t.responseText)}catch(e){return t.responseText}}class Zc{static request(t,e,r,o){return n(Sa.mark((function n(){return Sa.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",new Promise(((n,i)=>{var a=new Jc;for(var u in a.open(t,e,!0),a.onreadystatechange=function(){if(4===a.readyState){var t,e=(t=a.getAllResponseHeaders())?t.split("\r\n").map((t=>t.split(": "))).filter((t=>2===t.length&&t[1].length>0)).reduce(((t,e)=>(t[e[0]]=e[1],t)),{}):{},r=Kc(a);if(200<=a.status&&a.status<300)n({status:a.status,headers:e,body:r});else{var o,u,c=null!==(o=a.statusText)&&void 0!==o?o:"NONE";u="string"==typeof r?r&&1===r.split("\n",2).length?r:"":JSON.stringify(r);var s="".concat(a.status,": [").concat(c,"] ").concat(u);i(new Xc(s,a.status,r,c,e))}}},r)a.setRequestHeader(u,r[u]),"Content-Type"===u&&"application/json"===r[u]&&(o=JSON.stringify(o));a.send(o)})));case 1:case"end":return n.stop()}}),n)})))()}get(t,e){return n(Sa.mark((function r(){return Sa.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Zc.request("GET",t,e));case 1:case"end":return r.stop()}}),r)})))()}post(t,e,r){return n(Sa.mark((function n(){return Sa.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Zc.request("POST",t,e,r));case 1:case"end":return n.stop()}}),n)})))()}}var Qc=f,ts=s,es=Pu,rs=or,ns=l,os=tt,is=S,as=Object.assign,us=Object.defineProperty,cs=!as||ts((function(){if(Qc&&1!==as({b:1},as(us({},"a",{enumerable:!0,get:function(){us(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=as({},t)[r]||es(as({},e)).join("")!=n}))?function(t,e){for(var r=os(t),n=arguments.length,o=1,i=rs.f,a=ns.f;n>o;)for(var u,c=is(arguments[o++]),s=i?es(c).concat(i(c)):es(c),f=s.length,l=0;f>l;)u=s[l++],Qc&&!a.call(c,u)||(r[u]=c[u]);return r}:as,ss=cs;Lr({target:"Object",stat:!0,forced:Object.assign!==ss},{assign:ss});var fs=Ku,ls=Ft,ps=yt("unscopables"),hs=Array.prototype;null==hs[ps]&&ls.f(hs,ps,{configurable:!0,value:fs(null)});var ds,vs,ys,gs=function(t){hs[ps][t]=!0},ms=!s((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),bs=nt,ws=tt,xs=ms,Ss=se("IE_PROTO"),ks=Object.prototype,As=xs?Object.getPrototypeOf:function(t){return t=ws(t),bs(t,Ss)?t[Ss]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?ks:null},Es=s,Os=As,js=Xt,Ts=yt("iterator"),Ls=!1;[].keys&&("next"in(ys=[].keys())?(vs=Os(Os(ys)))!==Object.prototype&&(ds=vs):Ls=!0),(null==ds||Es((function(){var t={};return ds[Ts].call(t)!==t})))&&(ds={}),"function"!=typeof ds[Ts]&&js(ds,Ts,(function(){return this}));var _s={IteratorPrototype:ds,BUGGY_SAFARI_ITERATORS:Ls},Rs=_s.IteratorPrototype,Is=Ku,Ps=g,Cs=Br,Ds=Hr,Ms=function(){return this},Us=function(t,e,r){var n=e+" Iterator";return t.prototype=Is(Rs,{next:Ps(1,r)}),Cs(t,n,!1),Ds[n]=Ms,t},Ns=Lr,Fs=Us,Bs=As,qs=Mr,Gs=Br,Ws=Xt,zs=Jt.exports,$s=Hr,Vs=_s.IteratorPrototype,Hs=_s.BUGGY_SAFARI_ITERATORS,Ys=yt("iterator"),Xs="keys",Js="values",Ks="entries",Zs=function(){return this},Qs=function(t,e,r,n,o,i,a){Fs(r,e,n);var u,c,s,f=function(t){if(t===o&&v)return v;if(!Hs&&t in h)return h[t];switch(t){case Xs:case Js:case Ks:return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",p=!1,h=t.prototype,d=h[Ys]||h["@@iterator"]||o&&h[o],v=!Hs&&d||f(o),y="Array"==e&&h.entries||d;if(y&&(u=Bs(y.call(new t)))!==Object.prototype&&u.next&&(Bs(u)!==Vs&&(qs?qs(u,Vs):"function"!=typeof u[Ys]&&Ws(u,Ys,Zs)),Gs(u,l,!0)),o==Js&&d&&d.name!==Js&&(p=!0,v=function(){return d.call(this)}),h[Ys]!==v&&Ws(h,Ys,v),$s[e]=v,o)if(c={values:f(Js),keys:i?v:f(Xs),entries:f(Ks)},a)for(s in c)(Hs||p||!(s in h))&&zs(h,s,c[s]);else Ns({target:e,proto:!0,forced:Hs||p},c);return c},tf=O,ef=gs,rf=Hr,nf=Ee,of=Qs,af="Array Iterator",uf=nf.set,cf=nf.getterFor(af),sf=of(Array,"Array",(function(t,e){uf(this,{type:af,target:tf(t),index:0,kind:e})}),(function(){var t=cf(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");rf.Arguments=rf.Array,ef("keys"),ef("values"),ef("entries");var ff=Tt("span").classList,lf=ff&&ff.constructor&&ff.constructor.prototype,pf=lf===Object.prototype?void 0:lf,hf=u,df={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},vf=pf,yf=sf,gf=Xt,mf=yt,bf=mf("iterator"),wf=mf("toStringTag"),xf=yf.values,Sf=function(t,e){if(t){if(t[bf]!==xf)try{gf(t,bf,xf)}catch(e){t[bf]=xf}if(t[wf]||gf(t,wf,e),df[e])for(var r in yf)if(t[r]!==yf[r])try{gf(t,r,yf[r])}catch(e){t[r]=yf[r]}}};for(var kf in df)Sf(hf[kf]&&hf[kf].prototype,kf);Sf(vf,"DOMTokenList");var Af=_c.charAt,Ef=Xa,Of=Ee,jf=Qs,Tf="String Iterator",Lf=Of.set,_f=Of.getterFor(Tf);jf(String,"String",(function(t){Lf(this,{type:Tf,string:Ef(t),index:0})}),(function(){var t,e=_f(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=Af(r,n),e.index+=t.length,{value:t,done:!1})}));var Rf=s,If=yt("iterator"),Pf=!Rf((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,r="";return t.pathname="c%20d",e.forEach((function(t,n){e.delete("b"),r+=n+t})),!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[If]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),Cf=2147483647,Df=/[^\0-\u007E]/,Mf=/[.\u3002\uFF0E\uFF61]/g,Uf="Overflow: input needs wider integers to process",Nf=Math.floor,Ff=String.fromCharCode,Bf=function(t){return t+22+75*(t<26)},qf=function(t,e,r){var n=0;for(t=r?Nf(t/700):t>>1,t+=Nf(t/e);t>455;n+=36)t=Nf(t/35);return Nf(n+36*t/(t+38))},Gf=function(t){var e,r,n=[],o=(t=function(t){for(var e=[],r=0,n=t.length;r<n;){var o=t.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){var i=t.charCodeAt(r++);56320==(64512&i)?e.push(((1023&o)<<10)+(1023&i)+65536):(e.push(o),r--)}else e.push(o)}return e}(t)).length,i=128,a=0,u=72;for(e=0;e<t.length;e++)(r=t[e])<128&&n.push(Ff(r));var c=n.length,s=c;for(c&&n.push("-");s<o;){var f=Cf;for(e=0;e<t.length;e++)(r=t[e])>=i&&r<f&&(f=r);var l=s+1;if(f-i>Nf((Cf-a)/l))throw RangeError(Uf);for(a+=(f-i)*l,i=f,e=0;e<t.length;e++){if((r=t[e])<i&&++a>Cf)throw RangeError(Uf);if(r==i){for(var p=a,h=36;;h+=36){var d=h<=u?1:h>=u+26?26:h-u;if(p<d)break;var v=p-d,y=36-d;n.push(Ff(Bf(d+v%y))),p=Nf(v/y)}n.push(Ff(Bf(p))),u=qf(a,l,s==c),a=0,++s}}++a,++i}return n.join("")},Wf=Lr,zf=_,$f=Pf,Vf=Jt.exports,Hf=Ir,Yf=Br,Xf=Us,Jf=Ee,Kf=Vr,Zf=nt,Qf=Qr,tl=un,el=qt,rl=j,nl=Xa,ol=Ku,il=g,al=dn,ul=ln,cl=yt,sl=zf("fetch"),fl=zf("Request"),ll=fl&&fl.prototype,pl=zf("Headers"),hl=cl("iterator"),dl="URLSearchParams",vl="URLSearchParamsIterator",yl=Jf.set,gl=Jf.getterFor(dl),ml=Jf.getterFor(vl),bl=/\+/g,wl=Array(4),xl=function(t){return wl[t-1]||(wl[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))},Sl=function(t){try{return decodeURIComponent(t)}catch(e){return t}},kl=function(t){var e=t.replace(bl," "),r=4;try{return decodeURIComponent(e)}catch(t){for(;r;)e=e.replace(xl(r--),Sl);return e}},Al=/[!'()~]|%20/g,El={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Ol=function(t){return El[t]},jl=function(t){return encodeURIComponent(t).replace(Al,Ol)},Tl=function(t,e){if(e)for(var r,n,o=e.split("&"),i=0;i<o.length;)(r=o[i++]).length&&(n=r.split("="),t.push({key:kl(n.shift()),value:kl(n.join("="))}))},Ll=function(t){this.entries.length=0,Tl(this.entries,t)},_l=function(t,e){if(t<e)throw TypeError("Not enough arguments")},Rl=Xf((function(t,e){yl(this,{type:vl,iterator:al(gl(t).entries),kind:e})}),"Iterator",(function(){var t=ml(this),e=t.kind,r=t.iterator.next(),n=r.value;return r.done||(r.value="keys"===e?n.key:"values"===e?n.value:[n.key,n.value]),r})),Il=function(){Kf(this,Il,dl);var t,e,r,n,o,i,a,u,c,s=arguments.length>0?arguments[0]:void 0,f=this,l=[];if(yl(f,{type:dl,entries:l,updateURL:function(){},updateSearchParams:Ll}),void 0!==s)if(rl(s))if("function"==typeof(t=ul(s)))for(r=(e=al(s,t)).next;!(n=r.call(e)).done;){if((a=(i=(o=al(el(n.value))).next).call(o)).done||(u=i.call(o)).done||!i.call(o).done)throw TypeError("Expected sequence with length 2");l.push({key:nl(a.value),value:nl(u.value)})}else for(c in s)Zf(s,c)&&l.push({key:c,value:nl(s[c])});else Tl(l,"string"==typeof s?"?"===s.charAt(0)?s.slice(1):s:nl(s))},Pl=Il.prototype;if(Hf(Pl,{append:function(t,e){_l(arguments.length,2);var r=gl(this);r.entries.push({key:nl(t),value:nl(e)}),r.updateURL()},delete:function(t){_l(arguments.length,1);for(var e=gl(this),r=e.entries,n=nl(t),o=0;o<r.length;)r[o].key===n?r.splice(o,1):o++;e.updateURL()},get:function(t){_l(arguments.length,1);for(var e=gl(this).entries,r=nl(t),n=0;n<e.length;n++)if(e[n].key===r)return e[n].value;return null},getAll:function(t){_l(arguments.length,1);for(var e=gl(this).entries,r=nl(t),n=[],o=0;o<e.length;o++)e[o].key===r&&n.push(e[o].value);return n},has:function(t){_l(arguments.length,1);for(var e=gl(this).entries,r=nl(t),n=0;n<e.length;)if(e[n++].key===r)return!0;return!1},set:function(t,e){_l(arguments.length,1);for(var r,n=gl(this),o=n.entries,i=!1,a=nl(t),u=nl(e),c=0;c<o.length;c++)(r=o[c]).key===a&&(i?o.splice(c--,1):(i=!0,r.value=u));i||o.push({key:a,value:u}),n.updateURL()},sort:function(){var t,e,r,n=gl(this),o=n.entries,i=o.slice();for(o.length=0,r=0;r<i.length;r++){for(t=i[r],e=0;e<r;e++)if(o[e].key>t.key){o.splice(e,0,t);break}e===r&&o.push(t)}n.updateURL()},forEach:function(t){for(var e,r=gl(this).entries,n=Qf(t,arguments.length>1?arguments[1]:void 0,3),o=0;o<r.length;)n((e=r[o++]).value,e.key,this)},keys:function(){return new Rl(this,"keys")},values:function(){return new Rl(this,"values")},entries:function(){return new Rl(this,"entries")}},{enumerable:!0}),Vf(Pl,hl,Pl.entries),Vf(Pl,"toString",(function(){for(var t,e=gl(this).entries,r=[],n=0;n<e.length;)t=e[n++],r.push(jl(t.key)+"="+jl(t.value));return r.join("&")}),{enumerable:!0}),Yf(Il,dl),Wf({global:!0,forced:!$f},{URLSearchParams:Il}),!$f&&"function"==typeof pl){var Cl=function(t){if(rl(t)){var e,r=t.body;if(tl(r)===dl)return(e=t.headers?new pl(t.headers):new pl).has("content-type")||e.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),ol(t,{body:il(0,String(r)),headers:il(0,e)})}return t};if("function"==typeof sl&&Wf({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return sl(t,arguments.length>1?Cl(arguments[1]):{})}}),"function"==typeof fl){var Dl=function(t){return Kf(this,Dl,"Request"),new fl(t,arguments.length>1?Cl(arguments[1]):{})};ll.constructor=Dl,Dl.prototype=ll,Wf({global:!0,forced:!0},{Request:Dl})}}var Ml,Ul={URLSearchParams:Il,getState:gl},Nl=Lr,Fl=f,Bl=Pf,ql=u,Gl=Uu,Wl=Jt.exports,zl=Vr,$l=nt,Vl=cs,Hl=Fa,Yl=_c.codeAt,Xl=function(t){var e,r,n=[],o=t.toLowerCase().replace(Mf,".").split(".");for(e=0;e<o.length;e++)r=o[e],n.push(Df.test(r)?"xn--"+Gf(r):r);return n.join(".")},Jl=Xa,Kl=Br,Zl=Ul,Ql=Ee,tp=ql.URL,ep=Zl.URLSearchParams,rp=Zl.getState,np=Ql.set,op=Ql.getterFor("URL"),ip=Math.floor,ap=Math.pow,up="Invalid scheme",cp="Invalid host",sp="Invalid port",fp=/[A-Za-z]/,lp=/[\d+-.A-Za-z]/,pp=/\d/,hp=/^0x/i,dp=/^[0-7]+$/,vp=/^\d+$/,yp=/^[\dA-Fa-f]+$/,gp=/[\0\t\n\r #%/:<>?@[\\\]^|]/,mp=/[\0\t\n\r #/:<>?@[\\\]^|]/,bp=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,wp=/[\t\n\r]/g,xp=function(t,e){var r,n,o;if("["==e.charAt(0)){if("]"!=e.charAt(e.length-1))return cp;if(!(r=kp(e.slice(1,-1))))return cp;t.host=r}else if(Rp(t)){if(e=Xl(e),gp.test(e))return cp;if(null===(r=Sp(e)))return cp;t.host=r}else{if(mp.test(e))return cp;for(r="",n=Hl(e),o=0;o<n.length;o++)r+=Lp(n[o],Ep);t.host=r}},Sp=function(t){var e,r,n,o,i,a,u,c=t.split(".");if(c.length&&""==c[c.length-1]&&c.pop(),(e=c.length)>4)return t;for(r=[],n=0;n<e;n++){if(""==(o=c[n]))return t;if(i=10,o.length>1&&"0"==o.charAt(0)&&(i=hp.test(o)?16:8,o=o.slice(8==i?1:2)),""===o)a=0;else{if(!(10==i?vp:8==i?dp:yp).test(o))return t;a=parseInt(o,i)}r.push(a)}for(n=0;n<e;n++)if(a=r[n],n==e-1){if(a>=ap(256,5-e))return null}else if(a>255)return null;for(u=r.pop(),n=0;n<r.length;n++)u+=r[n]*ap(256,3-n);return u},kp=function(t){var e,r,n,o,i,a,u,c=[0,0,0,0,0,0,0,0],s=0,f=null,l=0,p=function(){return t.charAt(l)};if(":"==p()){if(":"!=t.charAt(1))return;l+=2,f=++s}for(;p();){if(8==s)return;if(":"!=p()){for(e=r=0;r<4&&yp.test(p());)e=16*e+parseInt(p(),16),l++,r++;if("."==p()){if(0==r)return;if(l-=r,s>6)return;for(n=0;p();){if(o=null,n>0){if(!("."==p()&&n<4))return;l++}if(!pp.test(p()))return;for(;pp.test(p());){if(i=parseInt(p(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;l++}c[s]=256*c[s]+o,2!=++n&&4!=n||s++}if(4!=n)return;break}if(":"==p()){if(l++,!p())return}else if(p())return;c[s++]=e}else{if(null!==f)return;l++,f=++s}}if(null!==f)for(a=s-f,s=7;0!=s&&a>0;)u=c[s],c[s--]=c[f+a-1],c[f+--a]=u;else if(8!=s)return;return c},Ap=function(t){var e,r,n,o;if("number"==typeof t){for(e=[],r=0;r<4;r++)e.unshift(t%256),t=ip(t/256);return e.join(".")}if("object"==typeof t){for(e="",n=function(t){for(var e=null,r=1,n=null,o=0,i=0;i<8;i++)0!==t[i]?(o>r&&(e=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(e=n,r=o),e}(t),r=0;r<8;r++)o&&0===t[r]||(o&&(o=!1),n===r?(e+=r?":":"::",o=!0):(e+=t[r].toString(16),r<7&&(e+=":")));return"["+e+"]"}return t},Ep={},Op=Vl({},Ep,{" ":1,'"':1,"<":1,">":1,"`":1}),jp=Vl({},Op,{"#":1,"?":1,"{":1,"}":1}),Tp=Vl({},jp,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Lp=function(t,e){var r=Yl(t,0);return r>32&&r<127&&!$l(e,t)?t:encodeURIComponent(t)},_p={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Rp=function(t){return $l(_p,t.scheme)},Ip=function(t){return""!=t.username||""!=t.password},Pp=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},Cp=function(t,e){var r;return 2==t.length&&fp.test(t.charAt(0))&&(":"==(r=t.charAt(1))||!e&&"|"==r)},Dp=function(t){var e;return t.length>1&&Cp(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)},Mp=function(t){var e=t.path,r=e.length;!r||"file"==t.scheme&&1==r&&Cp(e[0],!0)||e.pop()},Up=function(t){return"."===t||"%2e"===t.toLowerCase()},Np={},Fp={},Bp={},qp={},Gp={},Wp={},zp={},$p={},Vp={},Hp={},Yp={},Xp={},Jp={},Kp={},Zp={},Qp={},th={},eh={},rh={},nh={},oh={},ih=function(t,e,r,n){var o,i,a,u,c,s=r||Np,f=0,l="",p=!1,h=!1,d=!1;for(r||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(bp,"")),e=e.replace(wp,""),o=Hl(e);f<=o.length;){switch(i=o[f],s){case Np:if(!i||!fp.test(i)){if(r)return up;s=Bp;continue}l+=i.toLowerCase(),s=Fp;break;case Fp:if(i&&(lp.test(i)||"+"==i||"-"==i||"."==i))l+=i.toLowerCase();else{if(":"!=i){if(r)return up;l="",s=Bp,f=0;continue}if(r&&(Rp(t)!=$l(_p,l)||"file"==l&&(Ip(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=l,r)return void(Rp(t)&&_p[t.scheme]==t.port&&(t.port=null));l="","file"==t.scheme?s=Kp:Rp(t)&&n&&n.scheme==t.scheme?s=qp:Rp(t)?s=$p:"/"==o[f+1]?(s=Gp,f++):(t.cannotBeABaseURL=!0,t.path.push(""),s=rh)}break;case Bp:if(!n||n.cannotBeABaseURL&&"#"!=i)return up;if(n.cannotBeABaseURL&&"#"==i){t.scheme=n.scheme,t.path=n.path.slice(),t.query=n.query,t.fragment="",t.cannotBeABaseURL=!0,s=oh;break}s="file"==n.scheme?Kp:Wp;continue;case qp:if("/"!=i||"/"!=o[f+1]){s=Wp;continue}s=Vp,f++;break;case Gp:if("/"==i){s=Hp;break}s=eh;continue;case Wp:if(t.scheme=n.scheme,i==Ml)t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.query=n.query;else if("/"==i||"\\"==i&&Rp(t))s=zp;else if("?"==i)t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.query="",s=nh;else{if("#"!=i){t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.path.pop(),s=eh;continue}t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.query=n.query,t.fragment="",s=oh}break;case zp:if(!Rp(t)||"/"!=i&&"\\"!=i){if("/"!=i){t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,s=eh;continue}s=Hp}else s=Vp;break;case $p:if(s=Vp,"/"!=i||"/"!=l.charAt(f+1))continue;f++;break;case Vp:if("/"!=i&&"\\"!=i){s=Hp;continue}break;case Hp:if("@"==i){p&&(l="%40"+l),p=!0,a=Hl(l);for(var v=0;v<a.length;v++){var y=a[v];if(":"!=y||d){var g=Lp(y,Tp);d?t.password+=g:t.username+=g}else d=!0}l=""}else if(i==Ml||"/"==i||"?"==i||"#"==i||"\\"==i&&Rp(t)){if(p&&""==l)return"Invalid authority";f-=Hl(l).length+1,l="",s=Yp}else l+=i;break;case Yp:case Xp:if(r&&"file"==t.scheme){s=Qp;continue}if(":"!=i||h){if(i==Ml||"/"==i||"?"==i||"#"==i||"\\"==i&&Rp(t)){if(Rp(t)&&""==l)return cp;if(r&&""==l&&(Ip(t)||null!==t.port))return;if(u=xp(t,l))return u;if(l="",s=th,r)return;continue}"["==i?h=!0:"]"==i&&(h=!1),l+=i}else{if(""==l)return cp;if(u=xp(t,l))return u;if(l="",s=Jp,r==Xp)return}break;case Jp:if(!pp.test(i)){if(i==Ml||"/"==i||"?"==i||"#"==i||"\\"==i&&Rp(t)||r){if(""!=l){var m=parseInt(l,10);if(m>65535)return sp;t.port=Rp(t)&&m===_p[t.scheme]?null:m,l=""}if(r)return;s=th;continue}return sp}l+=i;break;case Kp:if(t.scheme="file","/"==i||"\\"==i)s=Zp;else{if(!n||"file"!=n.scheme){s=eh;continue}if(i==Ml)t.host=n.host,t.path=n.path.slice(),t.query=n.query;else if("?"==i)t.host=n.host,t.path=n.path.slice(),t.query="",s=nh;else{if("#"!=i){Dp(o.slice(f).join(""))||(t.host=n.host,t.path=n.path.slice(),Mp(t)),s=eh;continue}t.host=n.host,t.path=n.path.slice(),t.query=n.query,t.fragment="",s=oh}}break;case Zp:if("/"==i||"\\"==i){s=Qp;break}n&&"file"==n.scheme&&!Dp(o.slice(f).join(""))&&(Cp(n.path[0],!0)?t.path.push(n.path[0]):t.host=n.host),s=eh;continue;case Qp:if(i==Ml||"/"==i||"\\"==i||"?"==i||"#"==i){if(!r&&Cp(l))s=eh;else if(""==l){if(t.host="",r)return;s=th}else{if(u=xp(t,l))return u;if("localhost"==t.host&&(t.host=""),r)return;l="",s=th}continue}l+=i;break;case th:if(Rp(t)){if(s=eh,"/"!=i&&"\\"!=i)continue}else if(r||"?"!=i)if(r||"#"!=i){if(i!=Ml&&(s=eh,"/"!=i))continue}else t.fragment="",s=oh;else t.query="",s=nh;break;case eh:if(i==Ml||"/"==i||"\\"==i&&Rp(t)||!r&&("?"==i||"#"==i)){if(".."===(c=(c=l).toLowerCase())||"%2e."===c||".%2e"===c||"%2e%2e"===c?(Mp(t),"/"==i||"\\"==i&&Rp(t)||t.path.push("")):Up(l)?"/"==i||"\\"==i&&Rp(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&Cp(l)&&(t.host&&(t.host=""),l=l.charAt(0)+":"),t.path.push(l)),l="","file"==t.scheme&&(i==Ml||"?"==i||"#"==i))for(;t.path.length>1&&""===t.path[0];)t.path.shift();"?"==i?(t.query="",s=nh):"#"==i&&(t.fragment="",s=oh)}else l+=Lp(i,jp);break;case rh:"?"==i?(t.query="",s=nh):"#"==i?(t.fragment="",s=oh):i!=Ml&&(t.path[0]+=Lp(i,Ep));break;case nh:r||"#"!=i?i!=Ml&&("'"==i&&Rp(t)?t.query+="%27":t.query+="#"==i?"%23":Lp(i,Ep)):(t.fragment="",s=oh);break;case oh:i!=Ml&&(t.fragment+=Lp(i,Op))}f++}},ah=function(t){var e,r,n=zl(this,ah,"URL"),o=arguments.length>1?arguments[1]:void 0,i=Jl(t),a=np(n,{type:"URL"});if(void 0!==o)if(o instanceof ah)e=op(o);else if(r=ih(e={},Jl(o)))throw TypeError(r);if(r=ih(a,i,null,e))throw TypeError(r);var u=a.searchParams=new ep,c=rp(u);c.updateSearchParams(a.query),c.updateURL=function(){a.query=String(u)||null},Fl||(n.href=ch.call(n),n.origin=sh.call(n),n.protocol=fh.call(n),n.username=lh.call(n),n.password=ph.call(n),n.host=hh.call(n),n.hostname=dh.call(n),n.port=vh.call(n),n.pathname=yh.call(n),n.search=gh.call(n),n.searchParams=mh.call(n),n.hash=bh.call(n))},uh=ah.prototype,ch=function(){var t=op(this),e=t.scheme,r=t.username,n=t.password,o=t.host,i=t.port,a=t.path,u=t.query,c=t.fragment,s=e+":";return null!==o?(s+="//",Ip(t)&&(s+=r+(n?":"+n:"")+"@"),s+=Ap(o),null!==i&&(s+=":"+i)):"file"==e&&(s+="//"),s+=t.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==u&&(s+="?"+u),null!==c&&(s+="#"+c),s},sh=function(){var t=op(this),e=t.scheme,r=t.port;if("blob"==e)try{return new ah(e.path[0]).origin}catch(t){return"null"}return"file"!=e&&Rp(t)?e+"://"+Ap(t.host)+(null!==r?":"+r:""):"null"},fh=function(){return op(this).scheme+":"},lh=function(){return op(this).username},ph=function(){return op(this).password},hh=function(){var t=op(this),e=t.host,r=t.port;return null===e?"":null===r?Ap(e):Ap(e)+":"+r},dh=function(){var t=op(this).host;return null===t?"":Ap(t)},vh=function(){var t=op(this).port;return null===t?"":String(t)},yh=function(){var t=op(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},gh=function(){var t=op(this).query;return t?"?"+t:""},mh=function(){return op(this).searchParams},bh=function(){var t=op(this).fragment;return t?"#"+t:""},wh=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(Fl&&Gl(uh,{href:wh(ch,(function(t){var e=op(this),r=Jl(t),n=ih(e,r);if(n)throw TypeError(n);rp(e.searchParams).updateSearchParams(e.query)})),origin:wh(sh),protocol:wh(fh,(function(t){var e=op(this);ih(e,Jl(t)+":",Np)})),username:wh(lh,(function(t){var e=op(this),r=Hl(Jl(t));if(!Pp(e)){e.username="";for(var n=0;n<r.length;n++)e.username+=Lp(r[n],Tp)}})),password:wh(ph,(function(t){var e=op(this),r=Hl(Jl(t));if(!Pp(e)){e.password="";for(var n=0;n<r.length;n++)e.password+=Lp(r[n],Tp)}})),host:wh(hh,(function(t){var e=op(this);e.cannotBeABaseURL||ih(e,Jl(t),Yp)})),hostname:wh(dh,(function(t){var e=op(this);e.cannotBeABaseURL||ih(e,Jl(t),Xp)})),port:wh(vh,(function(t){var e=op(this);Pp(e)||(""==(t=Jl(t))?e.port=null:ih(e,t,Jp))})),pathname:wh(yh,(function(t){var e=op(this);e.cannotBeABaseURL||(e.path=[],ih(e,Jl(t),th))})),search:wh(gh,(function(t){var e=op(this);""==(t=Jl(t))?e.query=null:("?"==t.charAt(0)&&(t=t.slice(1)),e.query="",ih(e,t,nh)),rp(e.searchParams).updateSearchParams(e.query)})),searchParams:wh(mh),hash:wh(bh,(function(t){var e=op(this);""!=(t=Jl(t))?("#"==t.charAt(0)&&(t=t.slice(1)),e.fragment="",ih(e,t,oh)):e.fragment=null}))}),Wl(uh,"toJSON",(function(){return ch.call(this)}),{enumerable:!0}),Wl(uh,"toString",(function(){return ch.call(this)}),{enumerable:!0}),tp){var xh=tp.createObjectURL,Sh=tp.revokeObjectURL;xh&&Wl(ah,"createObjectURL",(function(t){return xh.apply(tp,arguments)})),Sh&&Wl(ah,"revokeObjectURL",(function(t){return Sh.apply(tp,arguments)}))}Kl(ah,"URL"),Nl({global:!0,forced:!Bl,sham:!Fl},{URL:ah});var kh={},Ah=$r,Eh=j,Oh=[].slice,jh={},Th=function(t,e,r){if(!(e in jh)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";jh[e]=Function("C,a","return new C("+n.join(",")+")")}return jh[e](t,r)},Lh=Function.bind||function(t){var e=Ah(this),r=Oh.call(arguments,1),n=function(){var o=r.concat(Oh.call(arguments));return this instanceof n?Th(e,o.length,o):e.apply(t,o)};return Eh(e.prototype)&&(n.prototype=e.prototype),n},_h=Lr,Rh=$r,Ih=qt,Ph=j,Ch=Ku,Dh=Lh,Mh=s,Uh=_("Reflect","construct"),Nh=Mh((function(){function t(){}return!(Uh((function(){}),[],t)instanceof t)})),Fh=!Mh((function(){Uh((function(){}))})),Bh=Nh||Fh;_h({target:"Reflect",stat:!0,forced:Bh,sham:Bh},{construct:function(t,e){Rh(t),Ih(e);var r=arguments.length<3?t:Rh(arguments[2]);if(Fh&&!Nh)return Uh(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(Dh.apply(t,n))}var o=r.prototype,i=Ch(Ph(o)?o:Object.prototype),a=Function.apply.call(t,i,e);return Ph(a)?a:i}});var qh={exports:{}};!function(t){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.default=t.exports,t.exports.__esModule=!0}(qh);var Gh={exports:{}};!function(t){function e(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)}}t.exports=function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t},t.exports.default=t.exports,t.exports.__esModule=!0}(Gh);var Wh={exports:{}};!function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.default=t.exports,t.exports.__esModule=!0}(Wh);var zh={exports:{}},$h={exports:{}};!function(t){function e(r,n){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},t.exports.default=t.exports,t.exports.__esModule=!0,e(r,n)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}($h),function(t){var e=$h.exports;t.exports=function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&e(t,r)},t.exports.default=t.exports,t.exports.__esModule=!0}(zh);var Vh={exports:{}},Hh={exports:{}};!function(t){function e(r){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(t.exports=e=function(t){return typeof t},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.default=t.exports,t.exports.__esModule=!0),e(r)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}(Hh),function(t){var e=Hh.exports.default,r=Wh.exports;t.exports=function(t,n){return!n||"object"!==e(n)&&"function"!=typeof n?r(t):n},t.exports.default=t.exports,t.exports.__esModule=!0}(Vh);var Yh={exports:{}};!function(t){function e(r){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.default=t.exports,t.exports.__esModule=!0,e(r)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}(Yh);var Xh={exports:{}};!function(t){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.default=t.exports,t.exports.__esModule=!0}(Xh);var Jh=un,Kh=en?{}.toString:function(){return"[object "+Jh(this)+"]"},Zh=en,Qh=Jt.exports,td=Kh;Zh||Qh(Object.prototype,"toString",td,{unsafe:!0})
18
+ 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:{};function n(t){if(t.__esModule)return t;var e=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(t).forEach((function(r){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})})),e}var o={},i=function(t){return t&&t.Math==Math&&t},a=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof r&&r)||function(){return this}()||Function("return this")(),u={},s=function(t){try{return!!t()}catch(t){return!0}},c=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),f=!s((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),l=f,p=Function.prototype.call,h=l?p.bind(p):function(){return p.apply(p,arguments)},d={},v={}.propertyIsEnumerable,y=Object.getOwnPropertyDescriptor,g=y&&!v.call({1:2},1);d.f=g?function(t){var e=y(this,t);return!!e&&e.enumerable}:v;var m,b,w=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},x=f,S=Function.prototype,k=S.call,O=x&&S.bind.bind(k,k),E=function(t){return x?O(t):function(){return k.apply(t,arguments)}},_=E,j=_({}.toString),A=_("".slice),T=function(t){return A(j(t),8,-1)},L=T,R=E,P=function(t){if("Function"===L(t))return R(t)},I=s,C=T,D=Object,M=P("".split),U=I((function(){return!D("z").propertyIsEnumerable(0)}))?function(t){return"String"==C(t)?M(t,""):D(t)}:D,N=function(t){return null==t},F=N,B=TypeError,q=function(t){if(F(t))throw B("Can't call method on "+t);return t},z=U,H=q,G=function(t){return z(H(t))},W="object"==typeof document&&document.all,$={all:W,IS_HTMLDDA:void 0===W&&void 0!==W},V=$.all,Y=$.IS_HTMLDDA?function(t){return"function"==typeof t||t===V}:function(t){return"function"==typeof t},J=Y,X=$.all,K=$.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:J(t)||t===X}:function(t){return"object"==typeof t?null!==t:J(t)},Q=a,Z=Y,tt=function(t){return Z(t)?t:void 0},et=function(t,e){return arguments.length<2?tt(Q[t]):Q[t]&&Q[t][e]},rt=P({}.isPrototypeOf),nt=et("navigator","userAgent")||"",ot=a,it=nt,at=ot.process,ut=ot.Deno,st=at&&at.versions||ut&&ut.version,ct=st&&st.v8;ct&&(b=(m=ct.split("."))[0]>0&&m[0]<4?1:+(m[0]+m[1])),!b&&it&&(!(m=it.match(/Edge\/(\d+)/))||m[1]>=74)&&(m=it.match(/Chrome\/(\d+)/))&&(b=+m[1]);var ft=b,lt=ft,pt=s,ht=!!Object.getOwnPropertySymbols&&!pt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&lt&&lt<41})),dt=ht&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,vt=et,yt=Y,gt=rt,mt=Object,bt=dt?function(t){return"symbol"==typeof t}:function(t){var e=vt("Symbol");return yt(e)&&gt(e.prototype,mt(t))},wt=String,xt=function(t){try{return wt(t)}catch(t){return"Object"}},St=Y,kt=xt,Ot=TypeError,Et=function(t){if(St(t))return t;throw Ot(kt(t)+" is not a function")},_t=Et,jt=N,At=function(t,e){var r=t[e];return jt(r)?void 0:_t(r)},Tt=h,Lt=Y,Rt=K,Pt=TypeError,It={exports:{}},Ct=a,Dt=Object.defineProperty,Mt=function(t,e){try{Dt(Ct,t,{value:e,configurable:!0,writable:!0})}catch(r){Ct[t]=e}return e},Ut=Mt,Nt="__core-js_shared__",Ft=a[Nt]||Ut(Nt,{}),Bt=Ft;(It.exports=function(t,e){return Bt[t]||(Bt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.25.5",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE",source:"https://github.com/zloirock/core-js"});var qt=q,zt=Object,Ht=function(t){return zt(qt(t))},Gt=Ht,Wt=P({}.hasOwnProperty),$t=Object.hasOwn||function(t,e){return Wt(Gt(t),e)},Vt=P,Yt=0,Jt=Math.random(),Xt=Vt(1..toString),Kt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Xt(++Yt+Jt,36)},Qt=a,Zt=It.exports,te=$t,ee=Kt,re=ht,ne=dt,oe=Zt("wks"),ie=Qt.Symbol,ae=ie&&ie.for,ue=ne?ie:ie&&ie.withoutSetter||ee,se=function(t){if(!te(oe,t)||!re&&"string"!=typeof oe[t]){var e="Symbol."+t;re&&te(ie,t)?oe[t]=ie[t]:oe[t]=ne&&ae?ae(e):ue(e)}return oe[t]},ce=h,fe=K,le=bt,pe=At,he=function(t,e){var r,n;if("string"===e&&Lt(r=t.toString)&&!Rt(n=Tt(r,t)))return n;if(Lt(r=t.valueOf)&&!Rt(n=Tt(r,t)))return n;if("string"!==e&&Lt(r=t.toString)&&!Rt(n=Tt(r,t)))return n;throw Pt("Can't convert object to primitive value")},de=TypeError,ve=se("toPrimitive"),ye=function(t,e){if(!fe(t)||le(t))return t;var r,n=pe(t,ve);if(n){if(void 0===e&&(e="default"),r=ce(n,t,e),!fe(r)||le(r))return r;throw de("Can't convert object to primitive value")}return void 0===e&&(e="number"),he(t,e)},ge=ye,me=bt,be=function(t){var e=ge(t,"string");return me(e)?e:e+""},we=K,xe=a.document,Se=we(xe)&&we(xe.createElement),ke=function(t){return Se?xe.createElement(t):{}},Oe=ke,Ee=!c&&!s((function(){return 7!=Object.defineProperty(Oe("div"),"a",{get:function(){return 7}}).a})),_e=c,je=h,Ae=d,Te=w,Le=G,Re=be,Pe=$t,Ie=Ee,Ce=Object.getOwnPropertyDescriptor;u.f=_e?Ce:function(t,e){if(t=Le(t),e=Re(e),Ie)try{return Ce(t,e)}catch(t){}if(Pe(t,e))return Te(!je(Ae.f,t,e),t[e])};var De={},Me=c&&s((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ue=K,Ne=String,Fe=TypeError,Be=function(t){if(Ue(t))return t;throw Fe(Ne(t)+" is not an object")},qe=c,ze=Ee,He=Me,Ge=Be,We=be,$e=TypeError,Ve=Object.defineProperty,Ye=Object.getOwnPropertyDescriptor,Je="enumerable",Xe="configurable",Ke="writable";De.f=qe?He?function(t,e,r){if(Ge(t),e=We(e),Ge(r),"function"==typeof t&&"prototype"===e&&"value"in r&&Ke in r&&!r.writable){var n=Ye(t,e);n&&n.writable&&(t[e]=r.value,r={configurable:Xe in r?r.configurable:n.configurable,enumerable:Je in r?r.enumerable:n.enumerable,writable:!1})}return Ve(t,e,r)}:Ve:function(t,e,r){if(Ge(t),e=We(e),Ge(r),ze)try{return Ve(t,e,r)}catch(t){}if("get"in r||"set"in r)throw $e("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var Qe=De,Ze=w,tr=c?function(t,e,r){return Qe.f(t,e,Ze(1,r))}:function(t,e,r){return t[e]=r,t},er={exports:{}},rr=c,nr=$t,or=Function.prototype,ir=rr&&Object.getOwnPropertyDescriptor,ar=nr(or,"name"),ur={EXISTS:ar,PROPER:ar&&"something"===function(){}.name,CONFIGURABLE:ar&&(!rr||rr&&ir(or,"name").configurable)},sr=Y,cr=Ft,fr=P(Function.toString);sr(cr.inspectSource)||(cr.inspectSource=function(t){return fr(t)});var lr,pr,hr,dr=cr.inspectSource,vr=Y,yr=a.WeakMap,gr=vr(yr)&&/native code/.test(String(yr)),mr=It.exports,br=Kt,wr=mr("keys"),xr=function(t){return wr[t]||(wr[t]=br(t))},Sr={},kr=gr,Or=a,Er=K,_r=tr,jr=$t,Ar=Ft,Tr=xr,Lr=Sr,Rr="Object already initialized",Pr=Or.TypeError,Ir=Or.WeakMap;if(kr||Ar.state){var Cr=Ar.state||(Ar.state=new Ir);Cr.get=Cr.get,Cr.has=Cr.has,Cr.set=Cr.set,lr=function(t,e){if(Cr.has(t))throw Pr(Rr);return e.facade=t,Cr.set(t,e),e},pr=function(t){return Cr.get(t)||{}},hr=function(t){return Cr.has(t)}}else{var Dr=Tr("state");Lr[Dr]=!0,lr=function(t,e){if(jr(t,Dr))throw Pr(Rr);return e.facade=t,_r(t,Dr,e),e},pr=function(t){return jr(t,Dr)?t[Dr]:{}},hr=function(t){return jr(t,Dr)}}var Mr={set:lr,get:pr,has:hr,enforce:function(t){return hr(t)?pr(t):lr(t,{})},getterFor:function(t){return function(e){var r;if(!Er(e)||(r=pr(e)).type!==t)throw Pr("Incompatible receiver, "+t+" required");return r}}},Ur=s,Nr=Y,Fr=$t,Br=c,qr=ur.CONFIGURABLE,zr=dr,Hr=Mr.enforce,Gr=Mr.get,Wr=Object.defineProperty,$r=Br&&!Ur((function(){return 8!==Wr((function(){}),"length",{value:8}).length})),Vr=String(String).split("String"),Yr=er.exports=function(t,e,r){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!Fr(t,"name")||qr&&t.name!==e)&&(Br?Wr(t,"name",{value:e,configurable:!0}):t.name=e),$r&&r&&Fr(r,"arity")&&t.length!==r.arity&&Wr(t,"length",{value:r.arity});try{r&&Fr(r,"constructor")&&r.constructor?Br&&Wr(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=Hr(t);return Fr(n,"source")||(n.source=Vr.join("string"==typeof e?e:"")),t};Function.prototype.toString=Yr((function(){return Nr(this)&&Gr(this).source||zr(this)}),"toString");var Jr=Y,Xr=De,Kr=er.exports,Qr=Mt,Zr=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(Jr(r)&&Kr(r,i,n),n.global)o?t[e]=r:Qr(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:Xr.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},tn={},en=Math.ceil,rn=Math.floor,nn=Math.trunc||function(t){var e=+t;return(e>0?rn:en)(e)},on=function(t){var e=+t;return e!=e||0===e?0:nn(e)},an=on,un=Math.max,sn=Math.min,cn=function(t,e){var r=an(t);return r<0?un(r+e,0):sn(r,e)},fn=on,ln=Math.min,pn=function(t){return t>0?ln(fn(t),9007199254740991):0},hn=pn,dn=function(t){return hn(t.length)},vn=G,yn=cn,gn=dn,mn=function(t){return function(e,r,n){var o,i=vn(e),a=gn(i),u=yn(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}},bn={includes:mn(!0),indexOf:mn(!1)},wn=$t,xn=G,Sn=bn.indexOf,kn=Sr,On=P([].push),En=function(t,e){var r,n=xn(t),o=0,i=[];for(r in n)!wn(kn,r)&&wn(n,r)&&On(i,r);for(;e.length>o;)wn(n,r=e[o++])&&(~Sn(i,r)||On(i,r));return i},_n=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],jn=En,An=_n.concat("length","prototype");tn.f=Object.getOwnPropertyNames||function(t){return jn(t,An)};var Tn={};Tn.f=Object.getOwnPropertySymbols;var Ln=et,Rn=tn,Pn=Tn,In=Be,Cn=P([].concat),Dn=Ln("Reflect","ownKeys")||function(t){var e=Rn.f(In(t)),r=Pn.f;return r?Cn(e,r(t)):e},Mn=$t,Un=Dn,Nn=u,Fn=De,Bn=function(t,e,r){for(var n=Un(e),o=Fn.f,i=Nn.f,a=0;a<n.length;a++){var u=n[a];Mn(t,u)||r&&Mn(r,u)||o(t,u,i(e,u))}},qn=s,zn=Y,Hn=/#|\.prototype\./,Gn=function(t,e){var r=$n[Wn(t)];return r==Yn||r!=Vn&&(zn(e)?qn(e):!!e)},Wn=Gn.normalize=function(t){return String(t).replace(Hn,".").toLowerCase()},$n=Gn.data={},Vn=Gn.NATIVE="N",Yn=Gn.POLYFILL="P",Jn=Gn,Xn=a,Kn=u.f,Qn=tr,Zn=Zr,to=Mt,eo=Bn,ro=Jn,no=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,c=t.stat;if(r=s?Xn:c?Xn[u]||to(u,{}):(Xn[u]||{}).prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(a=Kn(r,n))&&a.value:r[n],!ro(s?n:u+(c?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;eo(i,o)}(t.sham||o&&o.sham)&&Qn(i,"sham",!0),Zn(r,n,i,t)}},oo=T,io=Array.isArray||function(t){return"Array"==oo(t)},ao=TypeError,uo=be,so=De,co=w,fo=function(t,e,r){var n=uo(e);n in t?so.f(t,n,co(0,r)):t[n]=r},lo={};lo[se("toStringTag")]="z";var po="[object z]"===String(lo),ho=po,vo=Y,yo=T,go=se("toStringTag"),mo=Object,bo="Arguments"==yo(function(){return arguments}()),wo=ho?yo: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=mo(t),go))?r:bo?yo(e):"Object"==(n=yo(e))&&vo(e.callee)?"Arguments":n},xo=P,So=s,ko=Y,Oo=wo,Eo=dr,_o=function(){},jo=[],Ao=et("Reflect","construct"),To=/^\s*(?:class|function)\b/,Lo=xo(To.exec),Ro=!To.exec(_o),Po=function(t){if(!ko(t))return!1;try{return Ao(_o,jo,t),!0}catch(t){return!1}},Io=function(t){if(!ko(t))return!1;switch(Oo(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ro||!!Lo(To,Eo(t))}catch(t){return!0}};Io.sham=!0;var Co=!Ao||So((function(){var t;return Po(Po.call)||!Po(Object)||!Po((function(){t=!0}))||t}))?Io:Po,Do=io,Mo=Co,Uo=K,No=se("species"),Fo=Array,Bo=function(t){var e;return Do(t)&&(e=t.constructor,(Mo(e)&&(e===Fo||Do(e.prototype))||Uo(e)&&null===(e=e[No]))&&(e=void 0)),void 0===e?Fo:e},qo=function(t,e){return new(Bo(t))(0===e?0:e)},zo=s,Ho=ft,Go=se("species"),Wo=function(t){return Ho>=51||!zo((function(){var e=[];return(e.constructor={})[Go]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},$o=no,Vo=s,Yo=io,Jo=K,Xo=Ht,Ko=dn,Qo=function(t){if(t>9007199254740991)throw ao("Maximum allowed index exceeded");return t},Zo=fo,ti=qo,ei=Wo,ri=ft,ni=se("isConcatSpreadable"),oi=ri>=51||!Vo((function(){var t=[];return t[ni]=!1,t.concat()[0]!==t})),ii=ei("concat"),ai=function(t){if(!Jo(t))return!1;var e=t[ni];return void 0!==e?!!e:Yo(t)};$o({target:"Array",proto:!0,arity:1,forced:!oi||!ii},{concat:function(t){var e,r,n,o,i,a=Xo(this),u=ti(a,0),s=0;for(e=-1,n=arguments.length;e<n;e++)if(ai(i=-1===e?a:arguments[e]))for(o=Ko(i),Qo(s+o),r=0;r<o;r++,s++)r in i&&Zo(u,s,i[r]);else Qo(s+1),Zo(u,s++,i);return u.length=s,u}});var ui,si,ci,fi={exports:{}};si=r,ci=function(){var t=function(){},e="undefined",r=typeof window!==e&&typeof 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"),typeof 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 s(t,r,n){return function(){typeof console!==e&&(u.call(this,r,n),this[t].apply(this,arguments))}}function c(t,e,r){return a(t)||s.apply(this,arguments)}function f(t,r,o){var i,a=this;r=null==r?"WARN":r;var s="loglevel";function f(){var t;if(typeof window!==e&&s){try{t=window.localStorage[s]}catch(t){}if(typeof t===e)try{var r=window.document.cookie,n=r.indexOf(encodeURIComponent(s)+"=");-1!==n&&(t=/^([^;]+)/.exec(r.slice(n))[1])}catch(t){}return void 0===a.levels[t]&&(t=void 0),t}}"string"==typeof t?s+=":"+t:"symbol"==typeof t&&(s=void 0),a.name=t,a.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},a.methodFactory=o||c,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(typeof window!==e&&s){try{return void(window.localStorage[s]=r)}catch(t){}try{window.document.cookie=encodeURIComponent(s)+"="+r+";"}catch(t){}}}(r),u.call(a,r,t),typeof 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(typeof window!==e&&s){try{return void window.localStorage.removeItem(s)}catch(t){}try{window.document.cookie=encodeURIComponent(s)+"=; 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"!=typeof 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=typeof window!==e?window.log:void 0;return l.noConflict=function(){return typeof window!==e&&window.log===l&&(window.log=h),l},l.getLoggers=function(){return p},l.default=l,l},(ui=fi).exports?ui.exports=ci():si.log=ci();var li=De.f,pi=$t,hi=se("toStringTag"),di=function(t,e,r){t&&!r&&(t=t.prototype),t&&!pi(t,hi)&&li(t,hi,{configurable:!0,value:e})},vi=a,yi=di;no({global:!0},{Reflect:{}}),yi(vi.Reflect,"Reflect",!0);var gi=f,mi=Function.prototype,bi=mi.apply,wi=mi.call,xi="object"==typeof Reflect&&Reflect.apply||(gi?wi.bind(bi):function(){return wi.apply(bi,arguments)}),Si=P([].slice),ki=P,Oi=Et,Ei=K,_i=$t,ji=Si,Ai=f,Ti=Function,Li=ki([].concat),Ri=ki([].join),Pi={},Ii=function(t,e,r){if(!_i(Pi,e)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";Pi[e]=Ti("C,a","return new C("+Ri(n,",")+")")}return Pi[e](t,r)},Ci=Ai?Ti.bind:function(t){var e=Oi(this),r=e.prototype,n=ji(arguments,1),o=function(){var r=Li(n,ji(arguments));return this instanceof o?Ii(e,r.length,r):e.apply(t,r)};return Ei(r)&&(o.prototype=r),o},Di=Co,Mi=xt,Ui=TypeError,Ni=function(t){if(Di(t))return t;throw Ui(Mi(t)+" is not a constructor")},Fi={},Bi=En,qi=_n,zi=Object.keys||function(t){return Bi(t,qi)},Hi=c,Gi=Me,Wi=De,$i=Be,Vi=G,Yi=zi;Fi.f=Hi&&!Gi?Object.defineProperties:function(t,e){$i(t);for(var r,n=Vi(e),o=Yi(e),i=o.length,a=0;i>a;)Wi.f(t,r=o[a++],n[r]);return t};var Ji,Xi=et("document","documentElement"),Ki=Be,Qi=Fi,Zi=_n,ta=Sr,ea=Xi,ra=ke,na=xr("IE_PROTO"),oa=function(){},ia=function(t){return"<script>"+t+"</"+"script>"},aa=function(t){t.write(ia("")),t.close();var e=t.parentWindow.Object;return t=null,e},ua=function(){try{Ji=new ActiveXObject("htmlfile")}catch(t){}var t,e;ua="undefined"!=typeof document?document.domain&&Ji?aa(Ji):((e=ra("iframe")).style.display="none",ea.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(ia("document.F=Object")),t.close(),t.F):aa(Ji);for(var r=Zi.length;r--;)delete ua.prototype[Zi[r]];return ua()};ta[na]=!0;var sa=Object.create||function(t,e){var r;return null!==t?(oa.prototype=Ki(t),r=new oa,oa.prototype=null,r[na]=t):r=ua(),void 0===e?r:Qi.f(r,e)},ca=no,fa=xi,la=Ci,pa=Ni,ha=Be,da=K,va=sa,ya=s,ga=et("Reflect","construct"),ma=Object.prototype,ba=[].push,wa=ya((function(){function t(){}return!(ga((function(){}),[],t)instanceof t)})),xa=!ya((function(){ga((function(){}))})),Sa=wa||xa;ca({target:"Reflect",stat:!0,forced:Sa,sham:Sa},{construct:function(t,e){pa(t),ha(e);var r=arguments.length<3?t:pa(arguments[2]);if(xa&&!wa)return ga(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 fa(ba,n,e),new(fa(la,t,n))}var o=r.prototype,i=va(da(o)?o:ma),a=fa(t,i,e);return da(a)?a:i}});var ka={exports:{}};!function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports}(ka);var Oa={exports:{}};!function(t){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.__esModule=!0,t.exports.default=t.exports}(Oa);var Ea={exports:{}};!function(t){function e(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)}}t.exports=function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports}(Ea);var _a={exports:{}};!function(t){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports}(_a);var ja={exports:{}},Aa={exports:{}};!function(t){function e(r,n){return t.exports=e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r,n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(Aa),function(t){var e=Aa.exports;t.exports=function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&e(t,r)},t.exports.__esModule=!0,t.exports.default=t.exports}(ja);var Ta={exports:{}},La={exports:{}};!function(t){function e(r){return t.exports=e="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},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(La),function(t){var e=La.exports.default,r=ka.exports;t.exports=function(t,n){if(n&&("object"===e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return r(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(Ta);var Ra={exports:{}};!function(t){function e(r){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(Ra);var Pa={exports:{}},Ia={exports:{}};!function(t){t.exports=function(t){return-1!==Function.toString.call(t).indexOf("[native code]")},t.exports.__esModule=!0,t.exports.default=t.exports}(Ia);var Ca={exports:{}},Da={exports:{}};!function(t){t.exports=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}},t.exports.__esModule=!0,t.exports.default=t.exports}(Da),function(t){var e=Aa.exports,r=Da.exports;function n(o,i,a){return r()?(t.exports=n=Reflect.construct.bind(),t.exports.__esModule=!0,t.exports.default=t.exports):(t.exports=n=function(t,r,n){var o=[null];o.push.apply(o,r);var i=new(Function.bind.apply(t,o));return n&&e(i,n.prototype),i},t.exports.__esModule=!0,t.exports.default=t.exports),n.apply(null,arguments)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}(Ca),function(t){var e=Ra.exports,r=Aa.exports,n=Ia.exports,o=Ca.exports;function i(a){var u="function"==typeof Map?new Map:void 0;return t.exports=i=function(t){if(null===t||!n(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==u){if(u.has(t))return u.get(t);u.set(t,i)}function i(){return o(t,arguments,e(this).constructor)}return i.prototype=Object.create(t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),r(i,t)},t.exports.__esModule=!0,t.exports.default=t.exports,i(a)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}(Pa);var Ma=wo,Ua=po?{}.toString:function(){return"[object "+Ma(this)+"]"};po||Zr(Object.prototype,"toString",Ua,{unsafe:!0});var Na,Fa,Ba,qa,za="process"==T(a.process),Ha=Y,Ga=String,Wa=TypeError,$a=P,Va=Be,Ya=function(t){if("object"==typeof t||Ha(t))return t;throw Wa("Can't set "+Ga(t)+" as a prototype")},Ja=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=$a(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return Va(r),Ya(n),e?t(r,n):r.__proto__=n,r}}():void 0),Xa=et,Ka=De,Qa=c,Za=se("species"),tu=function(t){var e=Xa(t),r=Ka.f;Qa&&e&&!e[Za]&&r(e,Za,{configurable:!0,get:function(){return this}})},eu=rt,ru=TypeError,nu=function(t,e){if(eu(e,t))return t;throw ru("Incorrect invocation")},ou=Be,iu=Ni,au=N,uu=se("species"),su=function(t,e){var r,n=ou(t).constructor;return void 0===n||au(r=ou(n)[uu])?e:iu(r)},cu=Et,fu=f,lu=P(P.bind),pu=function(t,e){return cu(t),void 0===e?t:fu?lu(t,e):function(){return t.apply(e,arguments)}},hu=TypeError,du=function(t,e){if(t<e)throw hu("Not enough arguments");return t},vu=/(?:ipad|iphone|ipod).*applewebkit/i.test(nt),yu=a,gu=xi,mu=pu,bu=Y,wu=$t,xu=s,Su=Xi,ku=Si,Ou=ke,Eu=du,_u=vu,ju=za,Au=yu.setImmediate,Tu=yu.clearImmediate,Lu=yu.process,Ru=yu.Dispatch,Pu=yu.Function,Iu=yu.MessageChannel,Cu=yu.String,Du=0,Mu={},Uu="onreadystatechange";try{Na=yu.location}catch(t){}var Nu=function(t){if(wu(Mu,t)){var e=Mu[t];delete Mu[t],e()}},Fu=function(t){return function(){Nu(t)}},Bu=function(t){Nu(t.data)},qu=function(t){yu.postMessage(Cu(t),Na.protocol+"//"+Na.host)};Au&&Tu||(Au=function(t){Eu(arguments.length,1);var e=bu(t)?t:Pu(t),r=ku(arguments,1);return Mu[++Du]=function(){gu(e,void 0,r)},Fa(Du),Du},Tu=function(t){delete Mu[t]},ju?Fa=function(t){Lu.nextTick(Fu(t))}:Ru&&Ru.now?Fa=function(t){Ru.now(Fu(t))}:Iu&&!_u?(qa=(Ba=new Iu).port2,Ba.port1.onmessage=Bu,Fa=mu(qa.postMessage,qa)):yu.addEventListener&&bu(yu.postMessage)&&!yu.importScripts&&Na&&"file:"!==Na.protocol&&!xu(qu)?(Fa=qu,yu.addEventListener("message",Bu,!1)):Fa=Uu in Ou("script")?function(t){Su.appendChild(Ou("script")).onreadystatechange=function(){Su.removeChild(this),Nu(t)}}:function(t){setTimeout(Fu(t),0)});var zu,Hu,Gu,Wu,$u,Vu,Yu,Ju,Xu={set:Au,clear:Tu},Ku=a,Qu=/ipad|iphone|ipod/i.test(nt)&&void 0!==Ku.Pebble,Zu=/web0s(?!.*chrome)/i.test(nt),ts=a,es=pu,rs=u.f,ns=Xu.set,os=vu,is=Qu,as=Zu,us=za,ss=ts.MutationObserver||ts.WebKitMutationObserver,cs=ts.document,fs=ts.process,ls=ts.Promise,ps=rs(ts,"queueMicrotask"),hs=ps&&ps.value;hs||(zu=function(){var t,e;for(us&&(t=fs.domain)&&t.exit();Hu;){e=Hu.fn,Hu=Hu.next;try{e()}catch(t){throw Hu?Wu():Gu=void 0,t}}Gu=void 0,t&&t.enter()},os||us||as||!ss||!cs?!is&&ls&&ls.resolve?((Yu=ls.resolve(void 0)).constructor=ls,Ju=es(Yu.then,Yu),Wu=function(){Ju(zu)}):us?Wu=function(){fs.nextTick(zu)}:(ns=es(ns,ts),Wu=function(){ns(zu)}):($u=!0,Vu=cs.createTextNode(""),new ss(zu).observe(Vu,{characterData:!0}),Wu=function(){Vu.data=$u=!$u}));var ds=hs||function(t){var e={fn:t,next:void 0};Gu&&(Gu.next=e),Hu||(Hu=e,Wu()),Gu=e},vs=a,ys=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},gs=function(){this.head=null,this.tail=null};gs.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}};var ms=gs,bs=a.Promise,ws="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,xs=!ws&&!za&&"object"==typeof window&&"object"==typeof document,Ss=a,ks=bs,Os=Y,Es=Jn,_s=dr,js=se,As=xs,Ts=ws,Ls=ft;ks&&ks.prototype;var Rs=js("species"),Ps=!1,Is=Os(Ss.PromiseRejectionEvent),Cs=Es("Promise",(function(){var t=_s(ks),e=t!==String(ks);if(!e&&66===Ls)return!0;if(!Ls||Ls<51||!/native code/.test(t)){var r=new ks((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};if((r.constructor={})[Rs]=n,!(Ps=r.then((function(){}))instanceof n))return!0}return!e&&(As||Ts)&&!Is})),Ds={CONSTRUCTOR:Cs,REJECTION_EVENT:Is,SUBCLASSING:Ps},Ms={},Us=Et,Ns=TypeError,Fs=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw Ns("Bad Promise constructor");e=t,r=n})),this.resolve=Us(e),this.reject=Us(r)};Ms.f=function(t){return new Fs(t)};var Bs,qs,zs,Hs=no,Gs=za,Ws=a,$s=h,Vs=Zr,Ys=Ja,Js=di,Xs=tu,Ks=Et,Qs=Y,Zs=K,tc=nu,ec=su,rc=Xu.set,nc=ds,oc=function(t,e){var r=vs.console;r&&r.error&&(1==arguments.length?r.error(t):r.error(t,e))},ic=ys,ac=ms,uc=Mr,sc=bs,cc=Ms,fc="Promise",lc=Ds.CONSTRUCTOR,pc=Ds.REJECTION_EVENT,hc=Ds.SUBCLASSING,dc=uc.getterFor(fc),vc=uc.set,yc=sc&&sc.prototype,gc=sc,mc=yc,bc=Ws.TypeError,wc=Ws.document,xc=Ws.process,Sc=cc.f,kc=Sc,Oc=!!(wc&&wc.createEvent&&Ws.dispatchEvent),Ec="unhandledrejection",_c=function(t){var e;return!(!Zs(t)||!Qs(e=t.then))&&e},jc=function(t,e){var r,n,o,i=e.value,a=1==e.state,u=a?t.ok:t.fail,s=t.resolve,c=t.reject,f=t.domain;try{u?(a||(2===e.rejection&&Pc(e),e.rejection=1),!0===u?r=i:(f&&f.enter(),r=u(i),f&&(f.exit(),o=!0)),r===t.promise?c(bc("Promise-chain cycle")):(n=_c(r))?$s(n,r,s,c):s(r)):c(i)}catch(t){f&&!o&&f.exit(),c(t)}},Ac=function(t,e){t.notified||(t.notified=!0,nc((function(){for(var r,n=t.reactions;r=n.get();)jc(r,t);t.notified=!1,e&&!t.rejection&&Lc(t)})))},Tc=function(t,e,r){var n,o;Oc?((n=wc.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),Ws.dispatchEvent(n)):n={promise:e,reason:r},!pc&&(o=Ws["on"+t])?o(n):t===Ec&&oc("Unhandled promise rejection",r)},Lc=function(t){$s(rc,Ws,(function(){var e,r=t.facade,n=t.value;if(Rc(t)&&(e=ic((function(){Gs?xc.emit("unhandledRejection",n,r):Tc(Ec,r,n)})),t.rejection=Gs||Rc(t)?2:1,e.error))throw e.value}))},Rc=function(t){return 1!==t.rejection&&!t.parent},Pc=function(t){$s(rc,Ws,(function(){var e=t.facade;Gs?xc.emit("rejectionHandled",e):Tc("rejectionhandled",e,t.value)}))},Ic=function(t,e,r){return function(n){t(e,n,r)}},Cc=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,Ac(t,!0))},Dc=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw bc("Promise can't be resolved itself");var n=_c(e);n?nc((function(){var r={done:!1};try{$s(n,e,Ic(Dc,r,t),Ic(Cc,r,t))}catch(e){Cc(r,e,t)}})):(t.value=e,t.state=1,Ac(t,!1))}catch(e){Cc({done:!1},e,t)}}};if(lc&&(mc=(gc=function(t){tc(this,mc),Ks(t),$s(Bs,this);var e=dc(this);try{t(Ic(Dc,e),Ic(Cc,e))}catch(t){Cc(e,t)}}).prototype,(Bs=function(t){vc(this,{type:fc,done:!1,notified:!1,parent:!1,reactions:new ac,rejection:!1,state:0,value:void 0})}).prototype=Vs(mc,"then",(function(t,e){var r=dc(this),n=Sc(ec(this,gc));return r.parent=!0,n.ok=!Qs(t)||t,n.fail=Qs(e)&&e,n.domain=Gs?xc.domain:void 0,0==r.state?r.reactions.add(n):nc((function(){jc(n,r)})),n.promise})),qs=function(){var t=new Bs,e=dc(t);this.promise=t,this.resolve=Ic(Dc,e),this.reject=Ic(Cc,e)},cc.f=Sc=function(t){return t===gc||undefined===t?new qs(t):kc(t)},Qs(sc)&&yc!==Object.prototype)){zs=yc.then,hc||Vs(yc,"then",(function(t,e){var r=this;return new gc((function(t,e){$s(zs,r,t,e)})).then(t,e)}),{unsafe:!0});try{delete yc.constructor}catch(t){}Ys&&Ys(yc,mc)}Hs({global:!0,constructor:!0,wrap:!0,forced:lc},{Promise:gc}),Js(gc,fc,!1),Xs(fc);var Mc={},Uc=Mc,Nc=se("iterator"),Fc=Array.prototype,Bc=function(t){return void 0!==t&&(Uc.Array===t||Fc[Nc]===t)},qc=wo,zc=At,Hc=N,Gc=Mc,Wc=se("iterator"),$c=function(t){if(!Hc(t))return zc(t,Wc)||zc(t,"@@iterator")||Gc[qc(t)]},Vc=h,Yc=Et,Jc=Be,Xc=xt,Kc=$c,Qc=TypeError,Zc=function(t,e){var r=arguments.length<2?Kc(t):e;if(Yc(r))return Jc(Vc(r,t));throw Qc(Xc(t)+" is not iterable")},tf=h,ef=Be,rf=At,nf=function(t,e,r){var n,o;ef(t);try{if(!(n=rf(t,"return"))){if("throw"===e)throw r;return r}n=tf(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return ef(n),r},of=pu,af=h,uf=Be,sf=xt,cf=Bc,ff=dn,lf=rt,pf=Zc,hf=$c,df=nf,vf=TypeError,yf=function(t,e){this.stopped=t,this.result=e},gf=yf.prototype,mf=function(t,e,r){var n,o,i,a,u,s,c,f=r&&r.that,l=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_RECORD),h=!(!r||!r.IS_ITERATOR),d=!(!r||!r.INTERRUPTED),v=of(e,f),y=function(t){return n&&df(n,"normal",t),new yf(!0,t)},g=function(t){return l?(uf(t),d?v(t[0],t[1],y):v(t[0],t[1])):d?v(t,y):v(t)};if(p)n=t.iterator;else if(h)n=t;else{if(!(o=hf(t)))throw vf(sf(t)+" is not iterable");if(cf(o)){for(i=0,a=ff(t);a>i;i++)if((u=g(t[i]))&&lf(gf,u))return u;return new yf(!1)}n=pf(t,o)}for(s=p?t.next:n.next;!(c=af(s,n)).done;){try{u=g(c.value)}catch(t){df(n,"throw",t)}if("object"==typeof u&&u&&lf(gf,u))return u}return new yf(!1)},bf=se("iterator"),wf=!1;try{var xf=0,Sf={next:function(){return{done:!!xf++}},return:function(){wf=!0}};Sf[bf]=function(){return this},Array.from(Sf,(function(){throw 2}))}catch(t){}var kf=function(t,e){if(!e&&!wf)return!1;var r=!1;try{var n={};n[bf]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},Of=bs,Ef=Ds.CONSTRUCTOR||!kf((function(t){Of.all(t).then(void 0,(function(){}))})),_f=h,jf=Et,Af=Ms,Tf=ys,Lf=mf;no({target:"Promise",stat:!0,forced:Ef},{all:function(t){var e=this,r=Af.f(e),n=r.resolve,o=r.reject,i=Tf((function(){var r=jf(e.resolve),i=[],a=0,u=1;Lf(t,(function(t){var s=a++,c=!1;u++,_f(r,e,t).then((function(t){c||(c=!0,i[s]=t,--u||n(i))}),o)})),--u||n(i)}));return i.error&&o(i.value),r.promise}});var Rf=no,Pf=Ds.CONSTRUCTOR,If=bs,Cf=et,Df=Y,Mf=Zr,Uf=If&&If.prototype;if(Rf({target:"Promise",proto:!0,forced:Pf,real:!0},{catch:function(t){return this.then(void 0,t)}}),Df(If)){var Nf=Cf("Promise").prototype.catch;Uf.catch!==Nf&&Mf(Uf,"catch",Nf,{unsafe:!0})}var Ff=h,Bf=Et,qf=Ms,zf=ys,Hf=mf;no({target:"Promise",stat:!0,forced:Ef},{race:function(t){var e=this,r=qf.f(e),n=r.reject,o=zf((function(){var o=Bf(e.resolve);Hf(t,(function(t){Ff(o,e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var Gf=h,Wf=Ms;no({target:"Promise",stat:!0,forced:Ds.CONSTRUCTOR},{reject:function(t){var e=Wf.f(this);return Gf(e.reject,void 0,t),e.promise}});var $f=Be,Vf=K,Yf=Ms,Jf=no,Xf=Ds.CONSTRUCTOR,Kf=function(t,e){if($f(t),Vf(e)&&e.constructor===t)return e;var r=Yf.f(t);return(0,r.resolve)(e),r.promise};et("Promise"),Jf({target:"Promise",stat:!0,forced:Xf},{resolve:function(t){return Kf(this,t)}});var Qf=se,Zf=sa,tl=De.f,el=Qf("unscopables"),rl=Array.prototype;null==rl[el]&&tl(rl,el,{configurable:!0,value:Zf(null)});var nl,ol,il,al=function(t){rl[el][t]=!0},ul=!s((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),sl=$t,cl=Y,fl=Ht,ll=ul,pl=xr("IE_PROTO"),hl=Object,dl=hl.prototype,vl=ll?hl.getPrototypeOf:function(t){var e=fl(t);if(sl(e,pl))return e[pl];var r=e.constructor;return cl(r)&&e instanceof r?r.prototype:e instanceof hl?dl:null},yl=s,gl=Y,ml=K,bl=vl,wl=Zr,xl=se("iterator"),Sl=!1;[].keys&&("next"in(il=[].keys())?(ol=bl(bl(il)))!==Object.prototype&&(nl=ol):Sl=!0);var kl=!ml(nl)||yl((function(){var t={};return nl[xl].call(t)!==t}));kl&&(nl={}),gl(nl[xl])||wl(nl,xl,(function(){return this}));var Ol={IteratorPrototype:nl,BUGGY_SAFARI_ITERATORS:Sl},El=Ol.IteratorPrototype,_l=sa,jl=w,Al=di,Tl=Mc,Ll=function(){return this},Rl=function(t,e,r,n){var o=e+" Iterator";return t.prototype=_l(El,{next:jl(+!n,r)}),Al(t,o,!1),Tl[o]=Ll,t},Pl=no,Il=h,Cl=Y,Dl=Rl,Ml=vl,Ul=Ja,Nl=di,Fl=tr,Bl=Zr,ql=Mc,zl=ur.PROPER,Hl=ur.CONFIGURABLE,Gl=Ol.IteratorPrototype,Wl=Ol.BUGGY_SAFARI_ITERATORS,$l=se("iterator"),Vl="keys",Yl="values",Jl="entries",Xl=function(){return this},Kl=function(t,e,r,n,o,i,a){Dl(r,e,n);var u,s,c,f=function(t){if(t===o&&v)return v;if(!Wl&&t in h)return h[t];switch(t){case Vl:case Yl:case Jl:return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",p=!1,h=t.prototype,d=h[$l]||h["@@iterator"]||o&&h[o],v=!Wl&&d||f(o),y="Array"==e&&h.entries||d;if(y&&(u=Ml(y.call(new t)))!==Object.prototype&&u.next&&(Ml(u)!==Gl&&(Ul?Ul(u,Gl):Cl(u[$l])||Bl(u,$l,Xl)),Nl(u,l,!0)),zl&&o==Yl&&d&&d.name!==Yl&&(Hl?Fl(h,"name",Yl):(p=!0,v=function(){return Il(d,this)})),o)if(s={values:f(Yl),keys:i?v:f(Vl),entries:f(Jl)},a)for(c in s)(Wl||p||!(c in h))&&Bl(h,c,s[c]);else Pl({target:e,proto:!0,forced:Wl||p},s);return h[$l]!==v&&Bl(h,$l,v,{name:o}),ql[e]=v,s},Ql=function(t,e){return{value:t,done:e}},Zl=G,tp=al,ep=Mc,rp=Mr,np=De.f,op=Kl,ip=Ql,ap=c,up="Array Iterator",sp=rp.set,cp=rp.getterFor(up),fp=op(Array,"Array",(function(t,e){sp(this,{type:up,target:Zl(t),index:0,kind:e})}),(function(){var t=cp(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,ip(void 0,!0)):ip("keys"==r?n:"values"==r?e[n]:[n,e[n]],!1)}),"values"),lp=ep.Arguments=ep.Array;if(tp("keys"),tp("values"),tp("entries"),ap&&"values"!==lp.name)try{np(lp,"name",{value:"values"})}catch(t){}var pp={exports:{}},hp={},dp=cn,vp=dn,yp=fo,gp=Array,mp=Math.max,bp=function(t,e,r){for(var n=vp(t),o=dp(e,n),i=dp(void 0===r?n:r,n),a=gp(mp(i-o,0)),u=0;o<i;o++,u++)yp(a,u,t[o]);return a.length=u,a},wp=T,xp=G,Sp=tn.f,kp=bp,Op="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];hp.f=function(t){return Op&&"Window"==wp(t)?function(t){try{return Sp(t)}catch(t){return kp(Op)}}(t):Sp(xp(t))};var Ep=s((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),_p=s,jp=K,Ap=T,Tp=Ep,Lp=Object.isExtensible,Rp=_p((function(){Lp(1)}))||Tp?function(t){return!!jp(t)&&((!Tp||"ArrayBuffer"!=Ap(t))&&(!Lp||Lp(t)))}:Lp,Pp=!s((function(){return Object.isExtensible(Object.preventExtensions({}))})),Ip=no,Cp=P,Dp=Sr,Mp=K,Up=$t,Np=De.f,Fp=tn,Bp=hp,qp=Rp,zp=Pp,Hp=!1,Gp=Kt("meta"),Wp=0,$p=function(t){Np(t,Gp,{value:{objectID:"O"+Wp++,weakData:{}}})},Vp=pp.exports={enable:function(){Vp.enable=function(){},Hp=!0;var t=Fp.f,e=Cp([].splice),r={};r[Gp]=1,t(r).length&&(Fp.f=function(r){for(var n=t(r),o=0,i=n.length;o<i;o++)if(n[o]===Gp){e(n,o,1);break}return n},Ip({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Bp.f}))},fastKey:function(t,e){if(!Mp(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!Up(t,Gp)){if(!qp(t))return"F";if(!e)return"E";$p(t)}return t[Gp].objectID},getWeakData:function(t,e){if(!Up(t,Gp)){if(!qp(t))return!0;if(!e)return!1;$p(t)}return t[Gp].weakData},onFreeze:function(t){return zp&&Hp&&qp(t)&&!Up(t,Gp)&&$p(t),t}};Dp[Gp]=!0;var Yp=Y,Jp=K,Xp=Ja,Kp=function(t,e,r){var n,o;return Xp&&Yp(n=e.constructor)&&n!==r&&Jp(o=n.prototype)&&o!==r.prototype&&Xp(t,o),t},Qp=no,Zp=a,th=P,eh=Jn,rh=Zr,nh=pp.exports,oh=mf,ih=nu,ah=Y,uh=N,sh=K,ch=s,fh=kf,lh=di,ph=Kp,hh=Zr,dh=function(t,e,r){for(var n in e)hh(t,n,e[n],r);return t},vh=De.f,yh=sa,gh=dh,mh=pu,bh=nu,wh=N,xh=mf,Sh=Kl,kh=Ql,Oh=tu,Eh=c,_h=pp.exports.fastKey,jh=Mr.set,Ah=Mr.getterFor,Th={getConstructor:function(t,e,r,n){var o=t((function(t,o){bh(t,i),jh(t,{type:e,index:yh(null),first:void 0,last:void 0,size:0}),Eh||(t.size=0),wh(o)||xh(o,t[n],{that:t,AS_ENTRIES:r})})),i=o.prototype,a=Ah(e),u=function(t,e,r){var n,o,i=a(t),u=s(t,e);return u?u.value=r:(i.last=u={index:o=_h(e,!0),key:e,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=u),n&&(n.next=u),Eh?i.size++:t.size++,"F"!==o&&(i.index[o]=u)),t},s=function(t,e){var r,n=a(t),o=_h(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==e)return r};return gh(i,{clear:function(){for(var t=a(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,Eh?t.size=0:this.size=0},delete:function(t){var e=this,r=a(e),n=s(e,t);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first==n&&(r.first=o),r.last==n&&(r.last=i),Eh?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=a(this),n=mh(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!s(this,t)}}),gh(i,r?{get:function(t){var e=s(this,t);return e&&e.value},set:function(t,e){return u(this,0===t?0:t,e)}}:{add:function(t){return u(this,t=0===t?0:t,t)}}),Eh&&vh(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(t,e,r){var n=e+" Iterator",o=Ah(e),i=Ah(n);Sh(t,e,(function(t,e){jh(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)?kh("keys"==e?r.key:"values"==e?r.value:[r.key,r.value],!1):(t.target=void 0,kh(void 0,!0))}),r?"entries":"values",!r,!0),Oh(e)}},Lh=function(t,e,r){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",a=Zp[t],u=a&&a.prototype,s=a,c={},f=function(t){var e=th(u[t]);rh(u,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(o&&!sh(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return o&&!sh(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(o&&!sh(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this})};if(eh(t,!ah(a)||!(o||u.forEach&&!ch((function(){(new a).entries().next()})))))s=r.getConstructor(e,t,n,i),nh.enable();else if(eh(t,!0)){var l=new s,p=l[i](o?{}:-0,1)!=l,h=ch((function(){l.has(1)})),d=fh((function(t){new a(t)})),v=!o&&ch((function(){for(var t=new a,e=5;e--;)t[i](e,e);return!t.has(-0)}));d||((s=e((function(t,e){ih(t,u);var r=ph(new a,t,s);return uh(e)||oh(e,r[i],{that:r,AS_ENTRIES:n}),r}))).prototype=u,u.constructor=s),(h||v)&&(f("delete"),f("has"),n&&f("get")),(v||p)&&f(i),o&&u.clear&&delete u.clear}return c[t]=s,Qp({global:!0,constructor:!0,forced:s!=a},c),lh(s,t),o||r.setStrong(s,t,n),s};Lh("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Th);var Rh=wo,Ph=String,Ih=function(t){if("Symbol"===Rh(t))throw TypeError("Cannot convert a Symbol value to a string");return Ph(t)},Ch=P,Dh=on,Mh=Ih,Uh=q,Nh=Ch("".charAt),Fh=Ch("".charCodeAt),Bh=Ch("".slice),qh=function(t){return function(e,r){var n,o,i=Mh(Uh(e)),a=Dh(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=Fh(i,a))<55296||n>56319||a+1===u||(o=Fh(i,a+1))<56320||o>57343?t?Nh(i,a):n:t?Bh(i,a,a+2):o-56320+(n-55296<<10)+65536}},zh={codeAt:qh(!1),charAt:qh(!0)},Hh=zh.charAt,Gh=Ih,Wh=Mr,$h=Kl,Vh=Ql,Yh="String Iterator",Jh=Wh.set,Xh=Wh.getterFor(Yh);$h(String,"String",(function(t){Jh(this,{type:Yh,string:Gh(t),index:0})}),(function(){var t,e=Xh(this),r=e.string,n=e.index;return n>=r.length?Vh(void 0,!0):(t=Hh(r,n),e.index+=t.length,Vh(t,!1))}));var Kh={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},Qh=ke("span").classList,Zh=Qh&&Qh.constructor&&Qh.constructor.prototype,td=Zh===Object.prototype?void 0:Zh,ed=a,rd=Kh,nd=td,od=fp,id=tr,ad=se,ud=ad("iterator"),sd=ad("toStringTag"),cd=od.values,fd=function(t,e){if(t){if(t[ud]!==cd)try{id(t,ud,cd)}catch(e){t[ud]=cd}if(t[sd]||id(t,sd,e),rd[e])for(var r in od)if(t[r]!==od[r])try{id(t,r,od[r])}catch(e){t[r]=od[r]}}};for(var ld in rd)fd(ed[ld]&&ed[ld].prototype,ld);fd(nd,"DOMTokenList");var pd=t=>crypto.getRandomValues(new Uint8Array(t)),hd=(t,e,r)=>{var n=(2<<Math.log(t.length-1)/Math.LN2)-1,o=-~(1.6*n*e/t.length);return function(){for(var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,a="";;)for(var u=r(o),s=o;s--;)if((a+=t[u[s]&n]||"").length===i)return a}},dd=Object.freeze({__proto__:null,nanoid:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;return crypto.getRandomValues(new Uint8Array(t)).reduce(((t,e)=>t+=(e&=63)<36?e.toString(36):e<62?(e-26).toString(36).toUpperCase():e>62?"-":"_"),"")},customAlphabet:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:21;return hd(t,e,pd)},customRandom:hd,urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",random:pd}),vd=n(dd),yd={},gd=se;yd.f=gd;var md=a,bd=$t,wd=yd,xd=De.f,Sd=function(t){var e=md.Symbol||(md.Symbol={});bd(e,t)||xd(e,t,{value:wd.f(t)})},kd=h,Od=et,Ed=se,_d=Zr,jd=pu,Ad=U,Td=Ht,Ld=dn,Rd=qo,Pd=P([].push),Id=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(s,c,f,l){for(var p,h,d=Td(s),v=Ad(d),y=jd(c,f),g=Ld(v),m=0,b=l||Rd,w=e?b(s,g):r||a?b(s,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:Pd(w,p)}else switch(t){case 4:return!1;case 7:Pd(w,p)}return i?-1:n||o?o:w}},Cd={forEach:Id(0),map:Id(1),filter:Id(2),some:Id(3),every:Id(4),find:Id(5),findIndex:Id(6),filterReject:Id(7)},Dd=no,Md=a,Ud=h,Nd=P,Fd=c,Bd=ht,qd=s,zd=$t,Hd=rt,Gd=Be,Wd=G,$d=be,Vd=Ih,Yd=w,Jd=sa,Xd=zi,Kd=tn,Qd=hp,Zd=Tn,tv=u,ev=De,rv=Fi,nv=d,ov=Zr,iv=It.exports,av=Sr,uv=Kt,sv=se,cv=yd,fv=Sd,lv=function(){var t=Od("Symbol"),e=t&&t.prototype,r=e&&e.valueOf,n=Ed("toPrimitive");e&&!e[n]&&_d(e,n,(function(t){return kd(r,this)}),{arity:1})},pv=di,hv=Mr,dv=Cd.forEach,vv=xr("hidden"),yv="Symbol",gv=hv.set,mv=hv.getterFor(yv),bv=Object.prototype,wv=Md.Symbol,xv=wv&&wv.prototype,Sv=Md.TypeError,kv=Md.QObject,Ov=tv.f,Ev=ev.f,_v=Qd.f,jv=nv.f,Av=Nd([].push),Tv=iv("symbols"),Lv=iv("op-symbols"),Rv=iv("wks"),Pv=!kv||!kv.prototype||!kv.prototype.findChild,Iv=Fd&&qd((function(){return 7!=Jd(Ev({},"a",{get:function(){return Ev(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=Ov(bv,e);n&&delete bv[e],Ev(t,e,r),n&&t!==bv&&Ev(bv,e,n)}:Ev,Cv=function(t,e){var r=Tv[t]=Jd(xv);return gv(r,{type:yv,tag:t,description:e}),Fd||(r.description=e),r},Dv=function(t,e,r){t===bv&&Dv(Lv,e,r),Gd(t);var n=$d(e);return Gd(r),zd(Tv,n)?(r.enumerable?(zd(t,vv)&&t[vv][n]&&(t[vv][n]=!1),r=Jd(r,{enumerable:Yd(0,!1)})):(zd(t,vv)||Ev(t,vv,Yd(1,{})),t[vv][n]=!0),Iv(t,n,r)):Ev(t,n,r)},Mv=function(t,e){Gd(t);var r=Wd(e),n=Xd(r).concat(Bv(r));return dv(n,(function(e){Fd&&!Ud(Uv,r,e)||Dv(t,e,r[e])})),t},Uv=function(t){var e=$d(t),r=Ud(jv,this,e);return!(this===bv&&zd(Tv,e)&&!zd(Lv,e))&&(!(r||!zd(this,e)||!zd(Tv,e)||zd(this,vv)&&this[vv][e])||r)},Nv=function(t,e){var r=Wd(t),n=$d(e);if(r!==bv||!zd(Tv,n)||zd(Lv,n)){var o=Ov(r,n);return!o||!zd(Tv,n)||zd(r,vv)&&r[vv][n]||(o.enumerable=!0),o}},Fv=function(t){var e=_v(Wd(t)),r=[];return dv(e,(function(t){zd(Tv,t)||zd(av,t)||Av(r,t)})),r},Bv=function(t){var e=t===bv,r=_v(e?Lv:Wd(t)),n=[];return dv(r,(function(t){!zd(Tv,t)||e&&!zd(bv,t)||Av(n,Tv[t])})),n};Bd||(wv=function(){if(Hd(xv,this))throw Sv("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?Vd(arguments[0]):void 0,e=uv(t),r=function(t){this===bv&&Ud(r,Lv,t),zd(this,vv)&&zd(this[vv],e)&&(this[vv][e]=!1),Iv(this,e,Yd(1,t))};return Fd&&Pv&&Iv(bv,e,{configurable:!0,set:r}),Cv(e,t)},ov(xv=wv.prototype,"toString",(function(){return mv(this).tag})),ov(wv,"withoutSetter",(function(t){return Cv(uv(t),t)})),nv.f=Uv,ev.f=Dv,rv.f=Mv,tv.f=Nv,Kd.f=Qd.f=Fv,Zd.f=Bv,cv.f=function(t){return Cv(sv(t),t)},Fd&&(Ev(xv,"description",{configurable:!0,get:function(){return mv(this).description}}),ov(bv,"propertyIsEnumerable",Uv,{unsafe:!0}))),Dd({global:!0,constructor:!0,wrap:!0,forced:!Bd,sham:!Bd},{Symbol:wv}),dv(Xd(Rv),(function(t){fv(t)})),Dd({target:yv,stat:!0,forced:!Bd},{useSetter:function(){Pv=!0},useSimple:function(){Pv=!1}}),Dd({target:"Object",stat:!0,forced:!Bd,sham:!Fd},{create:function(t,e){return void 0===e?Jd(t):Mv(Jd(t),e)},defineProperty:Dv,defineProperties:Mv,getOwnPropertyDescriptor:Nv}),Dd({target:"Object",stat:!0,forced:!Bd},{getOwnPropertyNames:Fv}),lv(),pv(wv,yv),av[vv]=!0;var qv=ht&&!!Symbol.for&&!!Symbol.keyFor,zv=no,Hv=et,Gv=$t,Wv=Ih,$v=It.exports,Vv=qv,Yv=$v("string-to-symbol-registry"),Jv=$v("symbol-to-string-registry");zv({target:"Symbol",stat:!0,forced:!Vv},{for:function(t){var e=Wv(t);if(Gv(Yv,e))return Yv[e];var r=Hv("Symbol")(e);return Yv[e]=r,Jv[r]=e,r}});var Xv=no,Kv=$t,Qv=bt,Zv=xt,ty=qv,ey=(0,It.exports)("symbol-to-string-registry");Xv({target:"Symbol",stat:!0,forced:!ty},{keyFor:function(t){if(!Qv(t))throw TypeError(Zv(t)+" is not a symbol");if(Kv(ey,t))return ey[t]}});var ry=no,ny=et,oy=xi,iy=h,ay=P,uy=s,sy=io,cy=Y,fy=K,ly=bt,py=Si,hy=ht,dy=ny("JSON","stringify"),vy=ay(/./.exec),yy=ay("".charAt),gy=ay("".charCodeAt),my=ay("".replace),by=ay(1..toString),wy=/[\uD800-\uDFFF]/g,xy=/^[\uD800-\uDBFF]$/,Sy=/^[\uDC00-\uDFFF]$/,ky=!hy||uy((function(){var t=ny("Symbol")();return"[null]"!=dy([t])||"{}"!=dy({a:t})||"{}"!=dy(Object(t))})),Oy=uy((function(){return'"\\udf06\\ud834"'!==dy("\udf06\ud834")||'"\\udead"'!==dy("\udead")})),Ey=function(t,e){var r=py(arguments),n=e;if((fy(e)||void 0!==t)&&!ly(t))return sy(e)||(e=function(t,e){if(cy(n)&&(e=iy(n,this,t,e)),!ly(e))return e}),r[1]=e,oy(dy,null,r)},_y=function(t,e,r){var n=yy(r,e-1),o=yy(r,e+1);return vy(xy,t)&&!vy(Sy,o)||vy(Sy,t)&&!vy(xy,n)?"\\u"+by(gy(t,0),16):t};dy&&ry({target:"JSON",stat:!0,arity:3,forced:ky||Oy},{stringify:function(t,e,r){var n=py(arguments),o=oy(ky?Ey:dy,null,n);return Oy&&"string"==typeof o?my(o,wy,_y):o}});var jy=Tn,Ay=Ht;no({target:"Object",stat:!0,forced:!ht||s((function(){jy.f(1)}))},{getOwnPropertySymbols:function(t){var e=jy.f;return e?e(Ay(t)):[]}});var Ty=no,Ly=c,Ry=a,Py=P,Iy=$t,Cy=Y,Dy=rt,My=Ih,Uy=De.f,Ny=Bn,Fy=Ry.Symbol,By=Fy&&Fy.prototype;if(Ly&&Cy(Fy)&&(!("description"in By)||void 0!==Fy().description)){var qy={},zy=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:My(arguments[0]),e=Dy(By,this)?new Fy(t):void 0===t?Fy():Fy(t);return""===t&&(qy[e]=!0),e};Ny(zy,Fy),zy.prototype=By,By.constructor=zy;var Hy="Symbol(test)"==String(Fy("test")),Gy=Py(By.valueOf),Wy=Py(By.toString),$y=/^Symbol\((.*)\)[^)]+$/,Vy=Py("".replace),Yy=Py("".slice);Uy(By,"description",{configurable:!0,get:function(){var t=Gy(this);if(Iy(qy,t))return"";var e=Wy(t),r=Hy?Yy(e,7,-1):Vy(e,$y,"$1");return""===r?void 0:r}}),Ty({global:!0,constructor:!0,forced:!0},{Symbol:zy})}var Jy=no,Xy=Pp,Ky=s,Qy=K,Zy=pp.exports.onFreeze,tg=Object.freeze;Jy({target:"Object",stat:!0,forced:Ky((function(){tg(1)})),sham:!Xy},{freeze:function(t){return tg&&Qy(t)?tg(Zy(t)):t}});var eg={exports:{}},rg={exports:{}},ng={exports:{}};!function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n},t.exports.__esModule=!0,t.exports.default=t.exports}(ng),function(t){var e=ng.exports;t.exports=function(t){if(Array.isArray(t))return e(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(rg);var og={exports:{}};!function(t){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(og);var ig={exports:{}};!function(t){var e=ng.exports;t.exports=function(t,r){if(t){if("string"==typeof t)return e(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e(t,r):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports}(ig);var ag={exports:{}};!function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports}(ag),function(t){var e=rg.exports,r=og.exports,n=ig.exports,o=ag.exports;t.exports=function(t){return e(t)||r(t)||n(t)||o()},t.exports.__esModule=!0,t.exports.default=t.exports}(eg),
33
19
  /*
34
- @license
35
- Copyright (c) 2016, Twilio, Inc.
36
-
37
- Permission to use, copy, modify, and/or distribute this software for any
38
- purpose with or without fee is hereby granted, provided that the above
39
- copyright notice and this permission notice appear in all copies.
40
-
41
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
42
- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
43
- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
44
- SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
45
- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
46
- OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
47
- CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
48
-
49
- */,Object.defineProperty(kh,"__esModule",{value:!0});var ed=Gh.exports,rd=Wh.exports,nd=zh.exports,od=Vh.exports,id=Yh.exports,ad=Xh.exports;function ud(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var cd=ud(qh.exports),sd=ud(ed),fd=ud(rd),ld=ud(nd),pd=ud(od),hd=ud(id),dd=ud(ad);function vd(){}function yd(){yd.init.call(this)}function gd(t){return void 0===t._maxListeners?yd.defaultMaxListeners:t._maxListeners}function md(t,e,r){if(e)t.call(r);else for(var n=t.length,o=Od(t,n),i=0;i<n;++i)o[i].call(r)}function bd(t,e,r,n){if(e)t.call(r,n);else for(var o=t.length,i=Od(t,o),a=0;a<o;++a)i[a].call(r,n)}function wd(t,e,r,n,o){if(e)t.call(r,n,o);else for(var i=t.length,a=Od(t,i),u=0;u<i;++u)a[u].call(r,n,o)}function xd(t,e,r,n,o,i){if(e)t.call(r,n,o,i);else for(var a=t.length,u=Od(t,a),c=0;c<a;++c)u[c].call(r,n,o,i)}function Sd(t,e,r,n){if(e)t.apply(r,n);else for(var o=t.length,i=Od(t,o),a=0;a<o;++a)i[a].apply(r,n)}function kd(t,e,r,n){var o,i,a,u;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if((i=t._events)?(i.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),i=t._events),a=i[e]):(i=t._events=new vd,t._eventsCount=0),a){if("function"==typeof a?a=i[e]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),!a.warned&&(o=gd(t))&&o>0&&a.length>o){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+e+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=t,c.type=e,c.count=a.length,u=c,"function"==typeof console.warn?console.warn(u):console.log(u)}}else a=i[e]=r,++t._eventsCount;return t}function Ad(t,e,r){var n=!1;function o(){t.removeListener(e,o),n||(n=!0,r.apply(t,arguments))}return o.listener=r,o}function Ed(t){var e=this._events;if(e){var r=e[t];if("function"==typeof r)return 1;if(r)return r.length}return 0}function Od(t,e){for(var r=new Array(e);e--;)r[e]=t[e];return r}function jd(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=hd.default(t);if(e){var o=hd.default(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return pd.default(this,r)}}vd.prototype=Object.create(null),yd.EventEmitter=yd,yd.usingDomains=!1,yd.prototype.domain=void 0,yd.prototype._events=void 0,yd.prototype._maxListeners=void 0,yd.defaultMaxListeners=10,yd.init=function(){this.domain=null,yd.usingDomains&&undefined.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new vd,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},yd.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=t,this},yd.prototype.getMaxListeners=function(){return gd(this)},yd.prototype.emit=function(t){var e,r,n,o,i,a,u,c="error"===t;if(a=this._events)c=c&&null==a.error;else if(!c)return!1;if(u=this.domain,c){if(e=arguments[1],!u){if(e instanceof Error)throw e;var s=new Error('Uncaught, unspecified "error" event. ('+e+")");throw s.context=e,s}return e||(e=new Error('Uncaught, unspecified "error" event')),e.domainEmitter=this,e.domain=u,e.domainThrown=!1,u.emit("error",e),!1}if(!(r=a[t]))return!1;var f="function"==typeof r;switch(n=arguments.length){case 1:md(r,f,this);break;case 2:bd(r,f,this,arguments[1]);break;case 3:wd(r,f,this,arguments[1],arguments[2]);break;case 4:xd(r,f,this,arguments[1],arguments[2],arguments[3]);break;default:for(o=new Array(n-1),i=1;i<n;i++)o[i-1]=arguments[i];Sd(r,f,this,o)}return!0},yd.prototype.addListener=function(t,e){return kd(this,t,e,!1)},yd.prototype.on=yd.prototype.addListener,yd.prototype.prependListener=function(t,e){return kd(this,t,e,!0)},yd.prototype.once=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.on(t,Ad(this,t,e)),this},yd.prototype.prependOnceListener=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.prependListener(t,Ad(this,t,e)),this},yd.prototype.removeListener=function(t,e){var r,n,o,i,a;if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');if(!(n=this._events))return this;if(!(r=n[t]))return this;if(r===e||r.listener&&r.listener===e)0==--this._eventsCount?this._events=new vd:(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!=typeof r){for(o=-1,i=r.length;i-- >0;)if(r[i]===e||r[i].listener&&r[i].listener===e){a=r[i].listener,o=i;break}if(o<0)return this;if(1===r.length){if(r[0]=void 0,0==--this._eventsCount)return this._events=new vd,this;delete n[t]}else!function(t,e){for(var r=e,n=r+1,o=t.length;n<o;r+=1,n+=1)t[r]=t[n];t.pop()}(r,o);n.removeListener&&this.emit("removeListener",t,a||e)}return this},yd.prototype.off=function(t,e){return this.removeListener(t,e)},yd.prototype.removeAllListeners=function(t){var e,r;if(!(r=this._events))return this;if(!r.removeListener)return 0===arguments.length?(this._events=new vd,this._eventsCount=0):r[t]&&(0==--this._eventsCount?this._events=new vd:delete r[t]),this;if(0===arguments.length){for(var n,o=Object.keys(r),i=0;i<o.length;++i)"removeListener"!==(n=o[i])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=new vd,this._eventsCount=0,this}if("function"==typeof(e=r[t]))this.removeListener(t,e);else if(e)do{this.removeListener(t,e[e.length-1])}while(e[0]);return this},yd.prototype.listeners=function(t){var e,r=this._events;return r&&(e=r[t])?"function"==typeof e?[e.listener||e]:function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(e):[]},yd.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):Ed.call(t,e)},yd.prototype.listenerCount=Ed,yd.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var Td=function(t){ld.default(r,t);var e=jd(r);function r(t){var n;return cd.default(this,r),n=e.call(this),dd.default(fd.default(n),"timeout",null),dd.default(fd.default(n),"startTimestamp",-1),n.minDelay=t.min,n.maxDelay=t.max,n.initialDelay=t.initial||0,n.maxAttemptsCount=t.maxAttemptsCount||0,n.maxAttemptsTime=t.maxAttemptsTime||0,n.randomness=t.randomness||0,n.inProgress=!1,n.attemptNum=0,n.prevDelay=0,n.currDelay=0,n}return sd.default(r,[{key:"attempt",value:function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.attemptNum++,this.emit("attempt",this)}},{key:"nextDelay",value:function(t){if("number"==typeof t)return this.prevDelay=0,this.currDelay=t,t;if(0==this.attemptNum)return this.initialDelay;if(1==this.attemptNum)return this.currDelay=this.minDelay,this.currDelay;this.prevDelay=this.currDelay;var e=this.currDelay+this.prevDelay;return this.maxDelay&&e>this.maxDelay&&(this.currDelay=this.maxDelay,e=this.maxDelay),this.currDelay=e,e}},{key:"randomize",value:function(t){var e=t*this.randomness,r=Math.round(Math.random()*e*2-e);return Math.max(0,t+r)}},{key:"scheduleAttempt",value:function(t){var e=this;if(this.maxAttemptsCount&&this.attemptNum>=this.maxAttemptsCount)return this.cleanup(),void this.emit("failed",new Error("Maximum attempt count limit reached"));var r=this.nextDelay(t);if(r=this.randomize(r),this.maxAttemptsTime&&this.startTimestamp+this.maxAttemptsTime<Date.now()+r)return this.cleanup(),void this.emit("failed",new Error("Maximum attempt time limit reached"));this.timeout=setTimeout((function(){return e.attempt()}),r)}},{key:"cleanup",value:function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.inProgress=!1,this.attemptNum=0,this.prevDelay=0,this.currDelay=0}},{key:"start",value:function(){if(this.inProgress)throw new Error("Retrier is already in progress");this.inProgress=!0,this.startTimestamp=Date.now(),this.scheduleAttempt(this.initialDelay)}},{key:"cancel",value:function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null,this.inProgress=!1,this.emit("cancelled"))}},{key:"succeeded",value:function(t){this.emit("succeeded",t)}},{key:"failed",value:function(t,e){if(this.timeout)throw new Error("Retrier attempt is already in progress");this.scheduleAttempt(e)}}]),r}(yd),Ld=function(t){ld.default(r,t);var e=jd(r);function r(t){var n;return cd.default(this,r),n=e.call(this),dd.default(fd.default(n),"resolve",(function(){})),dd.default(fd.default(n),"reject",(function(){})),n.retrier=new Td(t),n}return sd.default(r,[{key:"run",value:function(t){var e=this;return this.retrier.on("attempt",(function(){t().then((function(t){return e.retrier.succeeded(t)})).catch((function(t){return e.retrier.failed(t)}))})),this.retrier.on("succeeded",(function(t){return e.resolve(t)})),this.retrier.on("cancelled",(function(){return e.reject(new Error("Cancelled"))})),this.retrier.on("failed",(function(t){return e.reject(t)})),new Promise((function(t,r){e.resolve=t,e.reject=r,e.retrier.start()}))}},{key:"cancel",value:function(){this.retrier.cancel()}}]),r}(yd);function _d(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=hd.default(t);if(e){var o=hd.default(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return pd.default(this,r)}}function Rd(t){return null!=t}var Id=function(t){ld.default(r,t);var e=_d(r);function r(t){var n;cd.default(this,r),n=e.call(this),dd.default(fd.default(n),"backoffDelay",0),dd.default(fd.default(n),"nextBackoffDelay",0),dd.default(fd.default(n),"backoffNumber",0),dd.default(fd.default(n),"timeoutID",null),dd.default(fd.default(n),"maxNumberOfRetry",-1);var o=t=t||{},i=o.initialDelay,a=o.maxDelay,u=o.randomisationFactor,c=o.factor;if(Rd(i)&&i<1)throw new Error("The initial timeout must be equal to or greater than 1.");if(Rd(a)&&a<=1)throw new Error("The maximal timeout must be greater than 1.");if(Rd(u)&&(u<0||u>1))throw new Error("The randomisation factor must be between 0 and 1.");if(Rd(c)&&c<=1)throw new Error("Exponential factor should be greater than 1.");if(n.initialDelay=i||100,n.maxDelay=a||1e4,n.maxDelay<=n.initialDelay)throw new Error("The maximal backoff delay must be greater than the initial backoff delay.");return n.randomisationFactor=u||0,n.factor=c||2,n.reset(),n}return sd.default(r,[{key:"backoff",value:function(t){null==this.timeoutID&&(this.backoffNumber===this.maxNumberOfRetry?(this.emit("fail",t),this.reset()):(this.backoffDelay=this.next(),this.timeoutID=setTimeout(this.onBackoff.bind(this),this.backoffDelay),this.emit("backoff",this.backoffNumber,this.backoffDelay,t)))}},{key:"reset",value:function(){this.backoffDelay=0,this.nextBackoffDelay=this.initialDelay,this.backoffNumber=0,this.timeoutID&&clearTimeout(this.timeoutID),this.timeoutID=null}},{key:"failAfter",value:function(t){if(t<=0)throw new Error("Expected a maximum number of retry greater than 0 but got ".concat(t));this.maxNumberOfRetry=t}},{key:"next",value:function(){this.backoffDelay=Math.min(this.nextBackoffDelay,this.maxDelay),this.nextBackoffDelay=this.backoffDelay*this.factor;var t=1+Math.random()*this.randomisationFactor;return Math.min(this.maxDelay,Math.round(this.backoffDelay*t))}},{key:"onBackoff",value:function(){this.timeoutID=null,this.emit("ready",this.backoffNumber,this.backoffDelay),this.backoffNumber++}}],[{key:"exponential",value:function(t){return new r(t)}}]),r}(yd);kh.AsyncRetrier=Ld,kh.Backoff=Id;var Pd=kh.Retrier=Td,Cd=Va.scope("Network");class Dd{constructor(t,e){this.config=t,this.transport=e}backoffConfig(){return Object.assign(hu.backoffConfigDefault,this.config.backoffConfigOverride)}retryWhenThrottled(){var t,e;return null!==(t=null!==(e=this.config.retryWhenThrottledOverride)&&void 0!==e?e:hu.retryWhenThrottledDefault)&&void 0!==t&&t}executeWithRetry(t,e){var r=this;return n(Sa.mark((function o(){return Sa.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",new Promise(((o,i)=>{var a=[502,503,504];e&&a.push(429);var u=new Pd(r.backoffConfig());u.on("attempt",n(Sa.mark((function e(){var r;return Sa.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t();case 3:r=e.sent,u.succeeded(r),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),a.indexOf(e.t0.status)>-1||"Twilsock disconnected"===e.t0.message?u.failed(e.t0):(u.removeAllListeners(),u.cancel(),i(e.t0));case 10:case"end":return e.stop()}}),e,null,[[0,7]])})))),u.on("succeeded",(t=>{o(t)})),u.on("cancelled",(t=>i(t))),u.on("failed",(t=>i(t))),u.start()})));case 1:case"end":return o.stop()}}),o)})))()}get(t){var e=this;return n(Sa.mark((function r(){var n,o;return Sa.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={"X-Twilio-Token":e.config.token},Cd.trace("sending GET request to ",t," headers ",n),r.prev=2,r.next=5,e.executeWithRetry((()=>e.transport.get(t,n)),e.retryWhenThrottled());case 5:return o=r.sent,Cd.trace("response",o),r.abrupt("return",o);case 10:throw r.prev=10,r.t0=r.catch(2),Cd.debug("get() error ".concat(r.t0)),r.t0;case 14:case"end":return r.stop()}}),r,null,[[2,10]])})))()}post(t,r,o,i,a){var u=this;return n(Sa.mark((function n(){var c,s,f;return Sa.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return c={"X-Twilio-Token":u.config.token},"undefined"!=typeof FormData&&o instanceof FormData||!i||Object.assign(c,{"Content-Type":i}),s=new URL(t),r&&s.searchParams.append("Category",r),a&&s.searchParams.append("Filename",a),Cd.trace("sending POST request to ".concat(t," with headers ").concat(c)),n.prev=6,n.next=9,u.transport.post(s.href,c,o);case 9:f=n.sent,n.next=18;break;case 12:if(n.prev=12,n.t0=n.catch(6),!(void 0===e.XMLHttpRequest&&o instanceof FormData)){n.next=16;break}throw new TypeError("Posting FormData supported only with browser engine's FormData");case 16:throw Cd.debug("post() error ".concat(n.t0)),n.t0;case 18:return Cd.trace("response",f),n.abrupt("return",f);case 20:case"end":return n.stop()}}),n,null,[[6,12]])})))()}}var Md={},Ud=b,Nd=Array.isArray||function(t){return"Array"==Ud(t)},Fd=s,Bd=N,qd=yt("species"),Gd=function(t){return Bd>=51||!Fd((function(){var e=[];return(e.constructor={})[qd]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Wd=Lr,zd=j,$d=Nd,Vd=ze,Hd=Be,Yd=O,Xd=_a,Jd=yt,Kd=Gd("slice"),Zd=Jd("species"),Qd=[].slice,tv=Math.max;Wd({target:"Array",proto:!0,forced:!Kd},{slice:function(t,e){var r,n,o,i=Yd(this),a=Hd(i.length),u=Vd(t,a),c=Vd(void 0===e?a:e,a);if($d(i)&&("function"!=typeof(r=i.constructor)||r!==Array&&!$d(r.prototype)?zd(r)&&null===(r=r[Zd])&&(r=void 0):r=void 0,r===Array||void 0===r))return Qd.call(i,u,c);for(n=new(void 0===r?Array:r)(tv(c-u,0)),o=0;u<c;u++,o++)u in i&&Xd(n,o,i[u]);return n.length=o,n}});var ev={},rv=O,nv=Ce.f,ov={}.toString,iv="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];ev.f=function(t){return iv&&"[object Window]"==ov.call(t)?function(t){try{return nv(t)}catch(t){return iv.slice()}}(t):nv(rv(t))};var av={},uv=yt;av.f=uv;var cv=u,sv=nt,fv=av,lv=Ft.f,pv=function(t){var e=cv.Symbol||(cv.Symbol={});sv(e,t)||lv(e,t,{value:fv.f(t)})},hv=j,dv=Nd,vv=yt("species"),yv=function(t){var e;return dv(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!dv(e.prototype)?hv(e)&&null===(e=e[vv])&&(e=void 0):e=void 0),void 0===e?Array:e},gv=function(t,e){return new(yv(t))(0===e?0:e)},mv=Qr,bv=S,wv=tt,xv=Be,Sv=gv,kv=[].push,Av=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=wv(c),v=bv(d),y=mv(s,f,3),g=xv(v.length),m=0,b=l||Sv,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:kv.call(w,p)}else switch(t){case 4:return!1;case 7:kv.call(w,p)}return i?-1:n||o?o:w}},Ev={forEach:Av(0),map:Av(1),filter:Av(2),some:Av(3),every:Av(4),find:Av(5),findIndex:Av(6),filterReject:Av(7)},Ov=Lr,jv=u,Tv=_,Lv=f,_v=q,Rv=s,Iv=nt,Pv=Nd,Cv=j,Dv=z,Mv=qt,Uv=tt,Nv=O,Fv=At,Bv=Xa,qv=g,Gv=Ku,Wv=Pu,zv=Ce,$v=ev,Vv=or,Hv=c,Yv=Ft,Xv=l,Jv=Xt,Kv=Jt.exports,Zv=V.exports,Qv=fe,ty=at,ey=yt,ry=av,ny=pv,oy=Br,iy=Ee,ay=Ev.forEach,uy=se("hidden"),cy="Symbol",sy=ey("toPrimitive"),fy=iy.set,ly=iy.getterFor(cy),py=Object.prototype,hy=jv.Symbol,dy=Tv("JSON","stringify"),vy=Hv.f,yy=Yv.f,gy=$v.f,my=Xv.f,by=Zv("symbols"),wy=Zv("op-symbols"),xy=Zv("string-to-symbol-registry"),Sy=Zv("symbol-to-string-registry"),ky=Zv("wks"),Ay=jv.QObject,Ey=!Ay||!Ay.prototype||!Ay.prototype.findChild,Oy=Lv&&Rv((function(){return 7!=Gv(yy({},"a",{get:function(){return yy(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=vy(py,e);n&&delete py[e],yy(t,e,r),n&&t!==py&&yy(py,e,n)}:yy,jy=function(t,e){var r=by[t]=Gv(hy.prototype);return fy(r,{type:cy,tag:t,description:e}),Lv||(r.description=e),r},Ty=function(t,e,r){t===py&&Ty(wy,e,r),Mv(t);var n=Fv(e);return Mv(r),Iv(by,n)?(r.enumerable?(Iv(t,uy)&&t[uy][n]&&(t[uy][n]=!1),r=Gv(r,{enumerable:qv(0,!1)})):(Iv(t,uy)||yy(t,uy,qv(1,{})),t[uy][n]=!0),Oy(t,n,r)):yy(t,n,r)},Ly=function(t,e){Mv(t);var r=Nv(e),n=Wv(r).concat(Py(r));return ay(n,(function(e){Lv&&!_y.call(r,e)||Ty(t,e,r[e])})),t},_y=function(t){var e=Fv(t),r=my.call(this,e);return!(this===py&&Iv(by,e)&&!Iv(wy,e))&&(!(r||!Iv(this,e)||!Iv(by,e)||Iv(this,uy)&&this[uy][e])||r)},Ry=function(t,e){var r=Nv(t),n=Fv(e);if(r!==py||!Iv(by,n)||Iv(wy,n)){var o=vy(r,n);return!o||!Iv(by,n)||Iv(r,uy)&&r[uy][n]||(o.enumerable=!0),o}},Iy=function(t){var e=gy(Nv(t)),r=[];return ay(e,(function(t){Iv(by,t)||Iv(Qv,t)||r.push(t)})),r},Py=function(t){var e=t===py,r=gy(e?wy:Nv(t)),n=[];return ay(r,(function(t){!Iv(by,t)||e&&!Iv(py,t)||n.push(by[t])})),n};(_v||(Kv((hy=function(){if(this instanceof hy)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?Bv(arguments[0]):void 0,e=ty(t),r=function(t){this===py&&r.call(wy,t),Iv(this,uy)&&Iv(this[uy],e)&&(this[uy][e]=!1),Oy(this,e,qv(1,t))};return Lv&&Ey&&Oy(py,e,{configurable:!0,set:r}),jy(e,t)}).prototype,"toString",(function(){return ly(this).tag})),Kv(hy,"withoutSetter",(function(t){return jy(ty(t),t)})),Xv.f=_y,Yv.f=Ty,Hv.f=Ry,zv.f=$v.f=Iy,Vv.f=Py,ry.f=function(t){return jy(ey(t),t)},Lv&&(yy(hy.prototype,"description",{configurable:!0,get:function(){return ly(this).description}}),Kv(py,"propertyIsEnumerable",_y,{unsafe:!0}))),Ov({global:!0,wrap:!0,forced:!_v,sham:!_v},{Symbol:hy}),ay(Wv(ky),(function(t){ny(t)})),Ov({target:cy,stat:!0,forced:!_v},{for:function(t){var e=Bv(t);if(Iv(xy,e))return xy[e];var r=hy(e);return xy[e]=r,Sy[r]=e,r},keyFor:function(t){if(!Dv(t))throw TypeError(t+" is not a symbol");if(Iv(Sy,t))return Sy[t]},useSetter:function(){Ey=!0},useSimple:function(){Ey=!1}}),Ov({target:"Object",stat:!0,forced:!_v,sham:!Lv},{create:function(t,e){return void 0===e?Gv(t):Ly(Gv(t),e)},defineProperty:Ty,defineProperties:Ly,getOwnPropertyDescriptor:Ry}),Ov({target:"Object",stat:!0,forced:!_v},{getOwnPropertyNames:Iy,getOwnPropertySymbols:Py}),Ov({target:"Object",stat:!0,forced:Rv((function(){Vv.f(1)}))},{getOwnPropertySymbols:function(t){return Vv.f(Uv(t))}}),dy)&&Ov({target:"JSON",stat:!0,forced:!_v||Rv((function(){var t=hy();return"[null]"!=dy([t])||"{}"!=dy({a:t})||"{}"!=dy(Object(t))}))},{stringify:function(t,e,r){for(var n,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(n=e,(Cv(e)||void 0!==t)&&!Dv(t))return Pv(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Dv(e))return e}),o[1]=e,dy.apply(null,o)}});hy.prototype[sy]||Jv(hy.prototype,sy,hy.prototype.valueOf),oy(hy,cy),Qv[uy]=!0;var Cy=Lr,Dy=f,My=u,Uy=nt,Ny=j,Fy=Ft.f,By=hr,qy=My.Symbol;if(Dy&&"function"==typeof qy&&(!("description"in qy.prototype)||void 0!==qy().description)){var Gy={},Wy=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof Wy?new qy(t):void 0===t?qy():qy(t);return""===t&&(Gy[e]=!0),e};By(Wy,qy);var zy=Wy.prototype=qy.prototype;zy.constructor=Wy;var $y=zy.toString,Vy="Symbol(test)"==String(qy("test")),Hy=/^Symbol\((.*)\)[^)]+$/;Fy(zy,"description",{configurable:!0,get:function(){var t=Ny(this)?this.valueOf():this,e=$y.call(t);if(Uy(Gy,t))return"";var r=Vy?e.slice(7,-1):e.replace(Hy,"$1");return""===r?void 0:r}}),Cy({global:!0,forced:!0},{Symbol:Wy})}pv("iterator");var Yy=f,Xy=Ft.f,Jy=Function.prototype,Ky=Jy.toString,Zy=/^\s*function ([^ (]*)/,Qy="name";Yy&&!(Qy in Jy)&&Xy(Jy,Qy,{configurable:!0,get:function(){try{return Ky.call(this).match(Zy)[1]}catch(t){return""}}});var tg=j,eg=Math.floor;Lr({target:"Number",stat:!0},{isInteger:function(t){return!tg(t)&&isFinite(t)&&eg(t)===t}});var rg=j,ng=Mr,og=k,ig=Xa,ag="[\t\n\v\f\r                 \u2028\u2029\ufeff]",ug=RegExp("^"+ag+ag+"*"),cg=RegExp(ag+ag+"*$"),sg=function(t){return function(e){var r=ig(og(e));return 1&t&&(r=r.replace(ug,"")),2&t&&(r=r.replace(cg,"")),r}},fg={start:sg(1),end:sg(2),trim:sg(3)},lg=f,pg=u,hg=xr,dg=Jt.exports,vg=nt,yg=b,gg=function(t,e,r){var n,o;return ng&&"function"==typeof(n=e.constructor)&&n!==r&&rg(o=n.prototype)&&o!==r.prototype&&ng(t,o),t},mg=z,bg=xt,wg=s,xg=Ku,Sg=Ce.f,kg=c.f,Ag=Ft.f,Eg=fg.trim,Og="Number",jg=pg.Number,Tg=jg.prototype,Lg=yg(xg(Tg))==Og,_g=function(t){if(mg(t))throw TypeError("Cannot convert a Symbol value to a number");var e,r,n,o,i,a,u,c,s=bg(t,"number");if("string"==typeof s&&s.length>2)if(43===(e=(s=Eg(s)).charCodeAt(0))||45===e){if(88===(r=s.charCodeAt(2))||120===r)return NaN}else if(48===e){switch(s.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+s}for(a=(i=s.slice(2)).length,u=0;u<a;u++)if((c=i.charCodeAt(u))<48||c>o)return NaN;return parseInt(i,n)}return+s};if(hg(Og,!jg(" 0o1")||!jg("0b1")||jg("+0x1"))){for(var Rg,Ig=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof Ig&&(Lg?wg((function(){Tg.valueOf.call(r)})):yg(r)!=Og)?gg(new jg(_g(e)),r,Ig):_g(e)},Pg=lg?Sg(jg):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),Cg=0;Pg.length>Cg;Cg++)vg(jg,Rg=Pg[Cg])&&!vg(Ig,Rg)&&Ag(Ig,Rg,kg(jg,Rg));Ig.prototype=Tg,Tg.constructor=Ig,dg(pg,Og,Ig)}var Dg={exports:{}},Mg={exports:{}};!function(t){t.exports=function(t){if(Array.isArray(t))return t},t.exports.default=t.exports,t.exports.__esModule=!0}(Mg);var Ug={exports:{}};!function(t){t.exports=function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}},t.exports.default=t.exports,t.exports.__esModule=!0}(Ug);var Ng={exports:{}},Fg={exports:{}};!function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n},t.exports.default=t.exports,t.exports.__esModule=!0}(Fg),function(t){var e=Fg.exports;t.exports=function(t,r){if(t){if("string"==typeof t)return e(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e(t,r):void 0}},t.exports.default=t.exports,t.exports.__esModule=!0}(Ng);var Bg={exports:{}};!function(t){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.default=t.exports,t.exports.__esModule=!0}(Bg),function(t){var e=Mg.exports,r=Ug.exports,n=Ng.exports,o=Bg.exports;t.exports=function(t,i){return e(t)||r(t,i)||n(t,i)||o()},t.exports.default=t.exports,t.exports.__esModule=!0}(Dg);var qg=f,Gg=Pu,Wg=O,zg=l.f,$g=function(t){return function(e){for(var r,n=Wg(e),o=Gg(n),i=o.length,a=0,u=[];i>a;)r=o[a++],qg&&!zg.call(n,r)||u.push(t?[r,n[r]]:n[r]);return u}},Vg={entries:$g(!0),values:$g(!1)}.entries;Lr({target:"Object",stat:!0},{entries:function(t){return Vg(t)}});var Hg=Lr,Yg=s,Xg=Nd,Jg=j,Kg=tt,Zg=Be,Qg=_a,tm=gv,em=Gd,rm=N,nm=yt("isConcatSpreadable"),om=9007199254740991,im="Maximum allowed index exceeded",am=rm>=51||!Yg((function(){var t=[];return t[nm]=!1,t.concat()[0]!==t})),um=em("concat"),cm=function(t){if(!Jg(t))return!1;var e=t[nm];return void 0!==e?!!e:Xg(t)};Hg({target:"Array",proto:!0,forced:!am||!um},{concat:function(t){var e,r,n,o,i,a=Kg(this),u=tm(a,0),c=0;for(e=-1,n=arguments.length;e<n;e++)if(cm(i=-1===e?a:arguments[e])){if(c+(o=Zg(i.length))>om)throw TypeError(im);for(r=0;r<o;r++,c++)r in i&&Qg(u,c,i[r])}else{if(c>=om)throw TypeError(im);Qg(u,c++,i)}return u.length=c,u}});var sm={exports:{}},fm={exports:{}};!function(t){var e=Fg.exports;t.exports=function(t){if(Array.isArray(t))return e(t)},t.exports.default=t.exports,t.exports.__esModule=!0}(fm);var lm={exports:{}};!function(t){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.default=t.exports,t.exports.__esModule=!0}(lm);var pm={exports:{}};!function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.default=t.exports,t.exports.__esModule=!0}(pm),function(t){var e=fm.exports,r=lm.exports,n=Ng.exports,o=pm.exports;t.exports=function(t){return e(t)||r(t)||n(t)||o()},t.exports.default=t.exports,t.exports.__esModule=!0}(sm);var hm=Xe.includes,dm=gs;Lr({target:"Array",proto:!0},{includes:function(t){return hm(this,t,arguments.length>1?arguments[1]:void 0)}}),dm("includes");var vm=Lr,ym=O,gm=[].join,mm=S!=Object,bm=Su("join",",");vm({target:"Array",proto:!0,forced:mm||!bm},{join:function(t){return gm.call(ym(this),void 0===t?",":t)}}),
20
+ @license
21
+ Copyright (c) 2022 Twilio Inc.
22
+
23
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
24
+
25
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
26
+
27
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28
+
29
+
30
+ */
31
+ Object.defineProperty(o,"__esModule",{value:!0});var ug=fi.exports,sg=ka.exports,cg=Oa.exports,fg=Ea.exports,lg=_a.exports,pg=ja.exports,hg=Ta.exports,dg=Ra.exports,vg=Pa.exports,yg=vd,gg=eg.exports;function mg(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var bg=mg(ug),wg=mg(sg),xg=mg(cg),Sg=mg(fg),kg=mg(lg),Og=mg(pg),Eg=mg(hg),_g=mg(dg),jg=mg(vg),Ag=mg(gg),Tg=function(t){var e=bg.default.getLevel();bg.default.setLevel("warn"),bg.default.warn(t),bg.default.setLevel(e)};function Lg(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=_g.default(t);if(e){var o=_g.default(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Eg.default(this,r)}}var Rg=function(t){Og.default(r,t);var e=Lg(r);function r(){return kg.default(this,r),e.call(this,"Promise was cancelled")}return Sg.default(r)}(jg.default(Error)),Pg=function(t){Og.default(r,t);var e=Lg(r);function r(t){var n;kg.default(this,r);var o,i=yg.nanoid();return n=e.call(this,(function(e,n){return o=n,t((function(t){r.onCancelCallbackMap.delete(i),e(t)}),(function(t){r.onCancelCallbackMap.delete(i),n(t)}),(function(t){r.onCancelCallbackMap.set(i,t)}))})),xg.default(wg.default(n),"id",void 0),xg.default(wg.default(n),"rejectPromise",void 0),n.id=i,n.rejectPromise=o,n}return Sg.default(r,[{key:"cancel",value:function(){var t=r.onCancelCallbackMap.get(this.id);return null==t||t(),this.rejectPromise&&(this.catch((function(){})),this.rejectPromise(new Rg)),this}}]),r}(jg.default(Promise));function Ig(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=_g.default(t);if(e){var o=_g.default(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Eg.default(this,r)}}xg.default(Pg,"onCancelCallbackMap",new Map);var Cg={unknown:"Unknown error",cancelled:"Job was cancelled",timeout:"Timeout occurred",mediaUploadError:"Media upload error",mediaFetchError:"Media fetch error",tooManyAttachments:"Too many attachments",unsupportedEmailBodyContentType:"Unsupported email body content type",unsupportedEmailHistoryContentType:"Unsupported email history content type",transportDisconnected:"Transport has been disconnected",networkBecameUnreachable:"Network became unreachable",unauthorized:"Unauthorized",tokenExpired:"Token expired",tokenUpdatedLocally:"Transport disconnected, token updated locally and will be used at reconnect",tooManyRequests:"Request failed with 429 reply",hostnameUnverified:"Failed on ssl handshake: CERTIFICATE_VERIFY_FAILED",sslHandshakeError:"Failed on ssl handshake: UNAUTHORIZED",closeMessageReceived:"Twilsock received a close message from the server",cannotParse:"Error while parsing an incoming message"},Dg=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;kg.default(this,t),xg.default(this,"reason",void 0),xg.default(this,"message",void 0),xg.default(this,"status",void 0),xg.default(this,"code",void 0),xg.default(this,"description",void 0),this.reason=e,this.message=r,this.status=n,this.code=o,this.description=Cg[e]}return Sg.default(t,[{key:"toString",value:function(){return"".concat(this.description," ").concat(this.status,":").concat(this.code," ").concat(this.message)}}]),t}(),Mg=function(t){Og.default(r,t);var e=Ig(r);function r(t){var n;return kg.default(this,r),n=e.call(this,"".concat(t)),xg.default(wg.default(n),"errorInfo",void 0),n.errorInfo=t,Object.freeze(t),n}return Sg.default(r)}(jg.default(Error)),Ug=function(){function t(){var e=this;kg.default(this,t),xg.default(this,"promise",void 0),xg.default(this,"_resolve",void 0),xg.default(this,"_reject",void 0),xg.default(this,"_isDone",!1),this.promise=new Promise((function(t,r){e._resolve=function(r){e._isDone=!0,t(r)},e._reject=function(t){e._isDone=!0,r(t)}}))}return Sg.default(t,[{key:"resolve",get:function(){return this._resolve}},{key:"reject",get:function(){return this._reject}},{key:"isDone",get:function(){return this._isDone}}]),t}(),Ng=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";kg.default(this,t),xg.default(this,"_prefix",void 0),xg.default(this,"_logger",void 0),this._prefix=r,this._logger=ug.getLogger(e)}return Sg.default(t,[{key:"setLevel",value:function(t){this._logger.setLevel(t)}},{key:"trace",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];this._logger.trace.apply(null,this._prepareLine("T",e))}},{key:"debug",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];this._logger.debug.apply(null,this._prepareLine("D",e))}},{key:"info",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];this._logger.info.apply(null,this._prepareLine("I",e))}},{key:"warn",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];this._logger.warn.apply(null,this._prepareLine("W",e))}},{key:"error",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];this._logger.error.apply(null,this._prepareLine("E",e))}},{key:"_prepareLine",value:function(t,e){return["".concat((new Date).toISOString()," ").concat(this._prefix," ").concat(t,":")].concat(Ag.default(e))}}]),t}(),Fg=o.CancellablePromise=Pg;function Bg(t,e,r,n,o,i,a){try{var u=t[i](a),s=u.value}catch(t){return void r(t)}u.done?e(s):Promise.resolve(s).then(n,o)}function qg(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Bg(i,n,o,a,u,"next",t)}function u(t){Bg(i,n,o,a,u,"throw",t)}a(void 0)}))}}function zg(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}o.CancellationError=Rg,o.Deferred=Ug,o.ErrorInfo=Dg,o.Logger=Ng,o.TwilioError=Mg,o.deprecated=function(t,e,r){return function(n,o,i){if("function"!=typeof i.value&&void 0===(null==i?void 0:i.get))throw new Error("The deprecated decorator can only be applied to methods or getters");if("function"!=typeof i.value){var a=i.get;i.get=function(){return Tg("The getter ".concat(t," is deprecated").concat(e?", use "+e+" instead":"").concat(r?", "+r:".")),null==a?void 0:a.apply(this)}}else{var u=i.value;i.value=function(){Tg("The method ".concat(t," is deprecated").concat(e?", use "+e+" instead":"").concat(r?", "+r:"."));for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return u.apply(this,o)}}}},o.deprecationWarning=Tg;var Hg=s,Gg=function(t,e){var r=[][t];return!!r&&Hg((function(){r.call(null,e||function(){return 1},1)}))},Wg=Cd.forEach,$g=Gg("forEach")?[].forEach:function(t){return Wg(this,t,arguments.length>1?arguments[1]:void 0)},Vg=a,Yg=Kh,Jg=td,Xg=$g,Kg=tr,Qg=function(t){if(t&&t.forEach!==Xg)try{Kg(t,"forEach",Xg)}catch(e){t.forEach=Xg}};for(var Zg in Yg)Yg[Zg]&&Qg(Vg[Zg]&&Vg[Zg].prototype);Qg(Jg);var tm,em=Object.prototype,rm=em.hasOwnProperty,nm="function"==typeof Symbol?Symbol:{},om=nm.iterator||"@@iterator",im=nm.asyncIterator||"@@asyncIterator",am=nm.toStringTag||"@@toStringTag";function um(t,e,r,n){var o=e&&e.prototype instanceof dm?e:dm,i=Object.create(o.prototype),a=new jm(n||[]);return i._invoke=function(t,e,r){var n=cm;return function(o,i){if(n===lm)throw new Error("Generator is already running");if(n===pm){if("throw"===o)throw i;return Tm()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=Om(a,r);if(u){if(u===hm)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===cm)throw n=pm,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=lm;var s=sm(t,e,r);if("normal"===s.type){if(n=r.done?pm:fm,s.arg===hm)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=pm,r.method="throw",r.arg=s.arg)}}}(t,r,a),i}function sm(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}var cm="suspendedStart",fm="suspendedYield",lm="executing",pm="completed",hm={};function dm(){}function vm(){}function ym(){}var gm={};gm[om]=function(){return this};var mm=Object.getPrototypeOf,bm=mm&&mm(mm(Am([])));bm&&bm!==em&&rm.call(bm,om)&&(gm=bm);var wm=ym.prototype=dm.prototype=Object.create(gm);function xm(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function Sm(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===vm||"GeneratorFunction"===(e.displayName||e.name))}function km(t,e){function r(n,o,i,a){var u=sm(t[n],t,o);if("throw"!==u.type){var s=u.arg,c=s.value;return c&&"object"==typeof c&&rm.call(c,"__await")?e.resolve(c.__await).then((function(t){r("next",t,i,a)}),(function(t){r("throw",t,i,a)})):e.resolve(c).then((function(t){s.value=t,i(s)}),(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 Om(t,e){var r=t.iterator[e.method];if(r===tm){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=tm,Om(t,e),"throw"===e.method))return hm;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return hm}var n=sm(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,hm;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=tm),e.delegate=null,hm):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,hm)}function Em(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 _m(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function jm(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Em,this),this.reset(!0)}function Am(t){if(t){var e=t[om];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(rm.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=tm,e.done=!0,e};return n.next=n}}return{next:Tm}}function Tm(){return{value:tm,done:!0}}vm.prototype=wm.constructor=ym,ym.constructor=vm,ym[am]=vm.displayName="GeneratorFunction",xm(km.prototype),km.prototype[im]=function(){return this},xm(wm),wm[am]="Generator",wm[om]=function(){return this},wm.toString=function(){return"[object Generator]"},jm.prototype={constructor:jm,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=tm,this.done=!1,this.delegate=null,this.method="next",this.arg=tm,this.tryEntries.forEach(_m),!t)for(var e in this)"t"===e.charAt(0)&&rm.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=tm)},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=tm),!!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=rm.call(o,"catchLoc"),u=rm.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&&rm.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,hm):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),hm},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),_m(r),hm}},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;_m(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:Am(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=tm),hm}};var Lm={wrap:um,isGeneratorFunction:Sm,AsyncIterator:km,mark:function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,ym):(t.__proto__=ym,am in t||(t[am]="GeneratorFunction")),t.prototype=Object.create(wm),t},awrap:function(t){return{__await:t}},async:function(t,e,r,n,o){void 0===o&&(o=Promise);var i=new km(um(t,e,r,n),o);return Sm(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:Am};function Rm(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof 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 Pm(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}var Im=Be,Cm=nf,Dm=pu,Mm=h,Um=Ht,Nm=function(t,e,r,n){try{return n?e(Im(r)[0],r[1]):e(r)}catch(e){Cm(t,"throw",e)}},Fm=Bc,Bm=Co,qm=dn,zm=fo,Hm=Zc,Gm=$c,Wm=Array,$m=function(t){var e=Um(t),r=Bm(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=Dm(o,n>2?arguments[2]:void 0));var a,u,s,c,f,l,p=Gm(e),h=0;if(!p||this===Wm&&Fm(p))for(a=qm(e),u=r?new this(a):Wm(a);a>h;h++)l=i?o(e[h],h):e[h],zm(u,h,l);else for(f=(c=Hm(e,p)).next,u=r?new this:[];!(s=Mm(f,c)).done;h++)l=i?Nm(c,o,[s.value,h],!0):s.value,zm(u,h,l);return u.length=h,u},Vm=$m;function Ym(t,e){return["".concat((new Date).toISOString()," MCS Client ").concat(t,":")].concat(Array.from(e))}no({target:"Array",stat:!0,forced:!kf((function(t){Array.from(t)}))},{from:Vm});class Jm{constructor(t){zg(this,"prefix",""),this.prefix=null!=t&&t.length>0?t+" ":""}static scope(t){return new Jm(t)}setLevel(t){fi.exports.setLevel(t)}static setLevel(t){fi.exports.setLevel(t)}trace(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];fi.exports.trace.apply(null,Ym(this.prefix+"T",e))}debug(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];fi.exports.debug.apply(null,Ym(this.prefix+"D",e))}info(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];fi.exports.info.apply(null,Ym(this.prefix+"I",e))}warn(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];fi.exports.warn.apply(null,Ym(this.prefix+"W",e))}error(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];fi.exports.error.apply(null,Ym(this.prefix+"E",e))}static trace(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];fi.exports.trace.apply(null,Ym("T",e))}static debug(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];fi.exports.debug.apply(null,Ym("D",e))}static info(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];fi.exports.info.apply(null,Ym("I",e))}static warn(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];fi.exports.warn.apply(null,Ym("W",e))}static error(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];fi.exports.error.apply(null,Ym("E",e))}}var Xm,Km=K,Qm=T,Zm=se("match"),tb=function(t){var e;return Km(t)&&(void 0!==(e=t[Zm])?!!e:"RegExp"==Qm(t))},eb=tb,rb=TypeError,nb=se("match"),ob=no,ib=P,ab=u.f,ub=pn,sb=Ih,cb=function(t){if(eb(t))throw rb("The method doesn't accept regular expressions");return t},fb=q,lb=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[nb]=!1,"/./"[t](e)}catch(t){}}return!1},pb=ib("".startsWith),hb=ib("".slice),db=Math.min,vb=lb("startsWith");ob({target:"String",proto:!0,forced:!!(vb||(Xm=ab(String.prototype,"startsWith"),!Xm||Xm.writable))&&!vb},{startsWith:function(t){var e=sb(fb(this));cb(t);var r=ub(db(arguments.length>1?arguments[1]:void 0,e.length)),n=sb(t);return pb?pb(e,n,r):hb(e,r,r+n.length)===n}});var yb=(t,e)=>{return"".concat((r=t,r.startsWith("http")?"":(t=>"https://mcs.".concat(null!=t?t:"us1",".twilio.com"))(e))).concat(t);var r};class gb{constructor(t,e,r,n){var o,i,a,u,s,c;zg(this,"token",void 0),zg(this,"retryWhenThrottledOverride",void 0),zg(this,"backoffConfigOverride",void 0),zg(this,"mediaUrl",void 0),zg(this,"mediaSetUrl",void 0),zg(this,"region",void 0);var f=null!==(o=null!==(i=n.MCS)&&void 0!==i?i:n)&&void 0!==o?o:{};this.region=null!==(a=null!==(u=f.region)&&void 0!==u?u:n.region)&&void 0!==a?a:"us1",this.mediaUrl=yb(e,this.region),this.mediaSetUrl=r?yb(r):"".concat(this.mediaUrl,"Set"),this.token=t,this.retryWhenThrottledOverride=null===(s=f.retryWhenThrottledOverride)||void 0===s||s,this.backoffConfigOverride=null!==(c=f.backoffConfigOverride)&&void 0!==c?c:gb.backoffConfigDefault}static get backoffConfigDefault(){return{min:1e3,max:4e3,maxAttemptsCount:3}}static get retryWhenThrottledDefault(){return true}updateToken(t){this.token=t}}class mb{constructor(t,e,r){zg(this,"state",void 0),zg(this,"network",void 0),zg(this,"config",void 0),this.config=t,this.network=e,this._update(r)}get sid(){return this.state.sid}get serviceSid(){return this.state.serviceSid}get dateCreated(){return this.state.dateCreated}get dateUpdated(){return this.state.dateUpdated}get contentType(){return this.state.contentType}get size(){return this.state.size}get fileName(){return this.state.filename}get filename(){return this.state.filename}get category(){return this.state.category}getContentUrl(){var t=this;return new Fg(function(){var e=qg(Lm.mark((function e(r,n,o){var i,a;return Lm.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.network.get("".concat(t.config.mediaUrl,"/").concat(t.sid)),o((()=>i.cancel())),e.prev=2,e.next=5,i;case 5:a=e.sent,t._update(a.body),r(t.state.contentDirectUrl),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(2),n(e.t0);case 13:case"end":return e.stop()}}),e,null,[[2,10]])})));return function(t,r,n){return e.apply(this,arguments)}}())}_update(t){var e,r,n,o;this.state={sid:t.sid,serviceSid:t.service_sid,channelSid:t.channel_sid,messageSid:t.message_sid,dateCreated:t.date_created?new Date(t.date_created):null,dateUploadUpdated:t.date_upload_updated?new Date(t.date_upload_updated):null,dateUpdated:t.date_updated?new Date(t.date_updated):null,size:t.size,contentType:t.content_type,author:t.author,url:t.url,contentUrl:t.links.content,contentDirectUrl:null!==(e=t.links.content_direct_temporary)&&void 0!==e?e:null,filename:null!==(r=t.filename)&&void 0!==r?r:null,category:null!==(n=t.category)&&void 0!==n?n:"media",isMultipartUpstream:null!==(o=t.is_multipart_upstream)&&void 0!==o&&o}}}var bb=Et,wb=Ht,xb=U,Sb=dn,kb=TypeError,Ob=function(t){return function(e,r,n,o){bb(r);var i=wb(e),a=xb(i),u=Sb(i),s=t?u-1:0,c=t?-1:1;if(n<2)for(;;){if(s in a){o=a[s],s+=c;break}if(s+=c,t?s<0:u<=s)throw kb("Reduce of empty array with no initial value")}for(;t?s>=0:u>s;s+=c)s in a&&(o=r(o,a[s],s,i));return o}},Eb={left:Ob(!1),right:Ob(!0)}.left,_b=ft,jb=za;no({target:"Array",proto:!0,forced:!Gg("reduce")||!jb&&_b>79&&_b<83},{reduce:function(t){var e=arguments.length;return Eb(this,t,e,e>1?arguments[1]:void 0)}});var Ab,Tb,Lb=Be,Rb=s,Pb=a.RegExp,Ib=Rb((function(){var t=Pb("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Cb=Ib||Rb((function(){return!Pb("a","y").sticky})),Db=Ib||Rb((function(){var t=Pb("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),Mb={BROKEN_CARET:Db,MISSED_STICKY:Cb,UNSUPPORTED_Y:Ib},Ub=s,Nb=a.RegExp,Fb=Ub((function(){var t=Nb(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Bb=s,qb=a.RegExp,zb=Bb((function(){var t=qb("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Hb=h,Gb=P,Wb=Ih,$b=function(){var t=Lb(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},Vb=Mb,Yb=It.exports,Jb=sa,Xb=Mr.get,Kb=Fb,Qb=zb,Zb=Yb("native-string-replace",String.prototype.replace),tw=RegExp.prototype.exec,ew=tw,rw=Gb("".charAt),nw=Gb("".indexOf),ow=Gb("".replace),iw=Gb("".slice),aw=(Tb=/b*/g,Hb(tw,Ab=/a/,"a"),Hb(tw,Tb,"a"),0!==Ab.lastIndex||0!==Tb.lastIndex),uw=Vb.BROKEN_CARET,sw=void 0!==/()??/.exec("")[1];(aw||sw||uw||Kb||Qb)&&(ew=function(t){var e,r,n,o,i,a,u,s=this,c=Xb(s),f=Wb(t),l=c.raw;if(l)return l.lastIndex=s.lastIndex,e=Hb(ew,l,f),s.lastIndex=l.lastIndex,e;var p=c.groups,h=uw&&s.sticky,d=Hb($b,s),v=s.source,y=0,g=f;if(h&&(d=ow(d,"y",""),-1===nw(d,"g")&&(d+="g"),g=iw(f,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==rw(f,s.lastIndex-1))&&(v="(?: "+v+")",g=" "+g,y++),r=new RegExp("^(?:"+v+")",d)),sw&&(r=new RegExp("^"+v+"$(?!\\s)",d)),aw&&(n=s.lastIndex),o=Hb(tw,h?r:s,g),h?o?(o.input=iw(o.input,y),o[0]=iw(o[0],y),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:aw&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),sw&&o&&o.length>1&&Hb(Zb,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=a=Jb(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var cw=ew;no({target:"RegExp",proto:!0,forced:/./.exec!==cw},{exec:cw});var fw=P,lw=Zr,pw=cw,hw=s,dw=se,vw=tr,yw=dw("species"),gw=RegExp.prototype,mw=function(t,e,r,n){var o=dw(t),i=!hw((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),a=i&&!hw((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[yw]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!a||r){var u=fw(/./[o]),s=e(o,""[t],(function(t,e,r,n,o){var a=fw(t),s=e.exec;return s===pw||s===gw.exec?i&&!o?{done:!0,value:u(e,r,n)}:{done:!0,value:a(r,e,n)}:{done:!1}}));lw(String.prototype,t,s[0]),lw(gw,o,s[1])}n&&vw(gw[o],"sham",!0)},bw=zh.charAt,ww=function(t,e,r){return e+(r?bw(t,e).length:1)},xw=h,Sw=Be,kw=Y,Ow=T,Ew=cw,_w=TypeError,jw=function(t,e){var r=t.exec;if(kw(r)){var n=xw(r,t,e);return null!==n&&Sw(n),n}if("RegExp"===Ow(t))return xw(Ew,t,e);throw _w("RegExp#exec called on incompatible receiver")},Aw=xi,Tw=h,Lw=P,Rw=mw,Pw=Be,Iw=N,Cw=tb,Dw=q,Mw=su,Uw=ww,Nw=pn,Fw=Ih,Bw=At,qw=bp,zw=jw,Hw=cw,Gw=s,Ww=Mb.UNSUPPORTED_Y,$w=4294967295,Vw=Math.min,Yw=[].push,Jw=Lw(/./.exec),Xw=Lw(Yw),Kw=Lw("".slice),Qw=!Gw((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));Rw("split",(function(t,e,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,r){var n=Fw(Dw(this)),o=void 0===r?$w:r>>>0;if(0===o)return[];if(void 0===t)return[n];if(!Cw(t))return Tw(e,n,t,o);for(var i,a,u,s=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,l=new RegExp(t.source,c+"g");(i=Tw(Hw,l,n))&&!((a=l.lastIndex)>f&&(Xw(s,Kw(n,f,i.index)),i.length>1&&i.index<n.length&&Aw(Yw,s,qw(i,1)),u=i[0].length,f=a,s.length>=o));)l.lastIndex===i.index&&l.lastIndex++;return f===n.length?!u&&Jw(l,"")||Xw(s,""):Xw(s,Kw(n,f)),s.length>o?qw(s,0,o):s}:"0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:Tw(e,this,t,r)}:e,[function(e,r){var o=Dw(this),i=Iw(e)?void 0:Bw(e,t);return i?Tw(i,e,o,r):Tw(n,Fw(o),e,r)},function(t,o){var i=Pw(this),a=Fw(t),u=r(n,i,a,o,n!==e);if(u.done)return u.value;var s=Mw(i,RegExp),c=i.unicode,f=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Ww?"g":"y"),l=new s(Ww?"^(?:"+i.source+")":i,f),p=void 0===o?$w:o>>>0;if(0===p)return[];if(0===a.length)return null===zw(l,a)?[a]:[];for(var h=0,d=0,v=[];d<a.length;){l.lastIndex=Ww?0:d;var y,g=zw(l,Ww?Kw(a,d):a);if(null===g||(y=Vw(Nw(l.lastIndex+(Ww?d:0)),a.length))===h)d=Uw(a,d,c);else{if(Xw(v,Kw(a,h,d)),v.length===p)return v;for(var m=1;m<=g.length-1;m++)if(Xw(v,g[m]),v.length===p)return v;d=h=y}}return Xw(v,Kw(a,h)),v}]}),!Qw,Ww);var Zw=P,tx=Ht,ex=Math.floor,rx=Zw("".charAt),nx=Zw("".replace),ox=Zw("".slice),ix=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ax=/\$([$&'`]|\d{1,2})/g,ux=xi,sx=h,cx=P,fx=mw,lx=s,px=Be,hx=Y,dx=N,vx=on,yx=pn,gx=Ih,mx=q,bx=ww,wx=At,xx=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,s=ax;return void 0!==o&&(o=tx(o),s=ix),nx(i,s,(function(i,s){var c;switch(rx(s,0)){case"$":return"$";case"&":return t;case"`":return ox(e,0,r);case"'":return ox(e,a);case"<":c=o[ox(s,1,-1)];break;default:var f=+s;if(0===f)return i;if(f>u){var l=ex(f/10);return 0===l?i:l<=u?void 0===n[l-1]?rx(s,1):n[l-1]+rx(s,1):i}c=n[f-1]}return void 0===c?"":c}))},Sx=jw,kx=se("replace"),Ox=Math.max,Ex=Math.min,_x=cx([].concat),jx=cx([].push),Ax=cx("".indexOf),Tx=cx("".slice),Lx="$0"==="a".replace(/./,"$0"),Rx=!!/./[kx]&&""===/./[kx]("a","$0"),Px=!lx((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}));fx("replace",(function(t,e,r){var n=Rx?"$":"$0";return[function(t,r){var n=mx(this),o=dx(t)?void 0:wx(t,kx);return o?sx(o,t,n,r):sx(e,gx(n),t,r)},function(t,o){var i=px(this),a=gx(t);if("string"==typeof o&&-1===Ax(o,n)&&-1===Ax(o,"$<")){var u=r(e,i,a,o);if(u.done)return u.value}var s=hx(o);s||(o=gx(o));var c=i.global;if(c){var f=i.unicode;i.lastIndex=0}for(var l=[];;){var p=Sx(i,a);if(null===p)break;if(jx(l,p),!c)break;""===gx(p[0])&&(i.lastIndex=bx(a,yx(i.lastIndex),f))}for(var h,d="",v=0,y=0;y<l.length;y++){for(var g=gx((p=l[y])[0]),m=Ox(Ex(vx(p.index),a.length),0),b=[],w=1;w<p.length;w++)jx(b,void 0===(h=p[w])?h:String(h));var x=p.groups;if(s){var S=_x([g],b,m,a);void 0!==x&&jx(S,x);var k=gx(ux(o,void 0,S))}else k=xx(g,a,m,b,x,o);m>=v&&(d+=Tx(a,v,m)+k,v=m+g.length)}return d+Tx(a,v)}]}),!Px||!Lx||Rx);class Ix extends Error{constructor(t,e,r,n,o){super(t),zg(this,"code",void 0),zg(this,"body",void 0),zg(this,"status",void 0),zg(this,"headers",void 0),this.code=e,this.body=r,this.status=n,this.headers=o}}var Cx=e.XMLHttpRequest||{};class Dx{static request(t,e,r,n){return new Fg(((o,i,a)=>{var u=new Cx,s=!1;for(var c in a((()=>{u.abort(),s=!0})),u.open(t,e,!0),u.onreadystatechange=function(){if(4===u.readyState&&!s){var t,e=(t=u.getAllResponseHeaders())?t.split("\r\n").map((t=>t.split(": "))).filter((t=>2===t.length&&t[1].length>0)).reduce(((t,e)=>(t[e[0]]=e[1],t)),{}):{},r=function(t){var e=t.getResponseHeader("Content-Type");if(!e||0!==e.indexOf("application/json")||0===t.responseText.length)return t.responseText;try{return JSON.parse(t.responseText)}catch(e){return t.responseText}}(u);if(200<=u.status&&u.status<300)o({status:u.status,headers:e,body:r});else{var n,a,c=null!==(n=u.statusText)&&void 0!==n?n:"NONE";if("string"==typeof r)if(r&&1===r.split("\n",2).length)a=r;else{var f,l=null===(f=r.replace(/<.*?>/g,"").split(/\r\n/g).filter((t=>t.length))[0])||void 0===f?void 0:f.split(" ");a=(null==l?void 0:l.length)>2?null==l?void 0:l.slice(1).join(" "):""}else a=JSON.stringify(r);var p="".concat(u.status,": [").concat(c,"] ").concat(a);i(new Ix(p,u.status,r,c,e))}}},r)u.setRequestHeader(c,r[c]),"Content-Type"===c&&"application/json"===r[c]&&(n=JSON.stringify(n));u.send(n)}))}get(t,e){return Dx.request("GET",t,e)}post(t,e,r){return Dx.request("POST",t,e,r)}}var Mx=c,Ux=P,Nx=h,Fx=s,Bx=zi,qx=Tn,zx=d,Hx=Ht,Gx=U,Wx=Object.assign,$x=Object.defineProperty,Vx=Ux([].concat),Yx=!Wx||Fx((function(){if(Mx&&1!==Wx({b:1},Wx($x({},"a",{enumerable:!0,get:function(){$x(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=Wx({},t)[r]||Bx(Wx({},e)).join("")!=n}))?function(t,e){for(var r=Hx(t),n=arguments.length,o=1,i=qx.f,a=zx.f;n>o;)for(var u,s=Gx(arguments[o++]),c=i?Vx(Bx(s),i(s)):Bx(s),f=c.length,l=0;f>l;)u=c[l++],Mx&&!Nx(a,s,u)||(r[u]=s[u]);return r}:Wx,Jx=Yx;no({target:"Object",stat:!0,arity:2,forced:Object.assign!==Jx},{assign:Jx});var Xx=s,Kx=se("iterator"),Qx=!Xx((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,r="";return t.pathname="c%20d",e.forEach((function(t,n){e.delete("b"),r+=n+t})),!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[Kx]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),Zx=er.exports,tS=De,eS=P,rS=2147483647,nS=/[^\0-\u007E]/,oS=/[.\u3002\uFF0E\uFF61]/g,iS="Overflow: input needs wider integers to process",aS=RangeError,uS=eS(oS.exec),sS=Math.floor,cS=String.fromCharCode,fS=eS("".charCodeAt),lS=eS([].join),pS=eS([].push),hS=eS("".replace),dS=eS("".split),vS=eS("".toLowerCase),yS=function(t){return t+22+75*(t<26)},gS=function(t,e,r){var n=0;for(t=r?sS(t/700):t>>1,t+=sS(t/e);t>455;)t=sS(t/35),n+=36;return sS(n+36*t/(t+38))},mS=function(t){var e=[];t=function(t){for(var e=[],r=0,n=t.length;r<n;){var o=fS(t,r++);if(o>=55296&&o<=56319&&r<n){var i=fS(t,r++);56320==(64512&i)?pS(e,((1023&o)<<10)+(1023&i)+65536):(pS(e,o),r--)}else pS(e,o)}return e}(t);var r,n,o=t.length,i=128,a=0,u=72;for(r=0;r<t.length;r++)(n=t[r])<128&&pS(e,cS(n));var s=e.length,c=s;for(s&&pS(e,"-");c<o;){var f=rS;for(r=0;r<t.length;r++)(n=t[r])>=i&&n<f&&(f=n);var l=c+1;if(f-i>sS((rS-a)/l))throw aS(iS);for(a+=(f-i)*l,i=f,r=0;r<t.length;r++){if((n=t[r])<i&&++a>rS)throw aS(iS);if(n==i){for(var p=a,h=36;;){var d=h<=u?1:h>=u+26?26:h-u;if(p<d)break;var v=p-d,y=36-d;pS(e,cS(yS(d+v%y))),p=sS(v/y),h+=36}pS(e,cS(yS(p))),u=gS(a,l,c==s),a=0,c++}}a++,i++}return lS(e,"")},bS=bp,wS=Math.floor,xS=function(t,e){var r=t.length,n=wS(r/2);return r<8?SS(t,e):kS(t,xS(bS(t,0,n),e),xS(bS(t,n),e),e)},SS=function(t,e){for(var r,n,o=t.length,i=1;i<o;){for(n=i,r=t[i];n&&e(t[n-1],r)>0;)t[n]=t[--n];n!==i++&&(t[n]=r)}return t},kS=function(t,e,r,n){for(var o=e.length,i=r.length,a=0,u=0;a<o||u<i;)t[a+u]=a<o&&u<i?n(e[a],r[u])<=0?e[a++]:r[u++]:a<o?e[a++]:r[u++];return t},OS=no,ES=a,_S=h,jS=P,AS=c,TS=Qx,LS=Zr,RS=dh,PS=di,IS=Rl,CS=Mr,DS=nu,MS=Y,US=$t,NS=pu,FS=wo,BS=Be,qS=K,zS=Ih,HS=sa,GS=w,WS=Zc,$S=$c,VS=du,YS=xS,JS=se("iterator"),XS="URLSearchParams",KS="URLSearchParamsIterator",QS=CS.set,ZS=CS.getterFor(XS),tk=CS.getterFor(KS),ek=Object.getOwnPropertyDescriptor,rk=function(t){if(!AS)return ES[t];var e=ek(ES,t);return e&&e.value},nk=rk("fetch"),ok=rk("Request"),ik=rk("Headers"),ak=ok&&ok.prototype,uk=ik&&ik.prototype,sk=ES.RegExp,ck=ES.TypeError,fk=ES.decodeURIComponent,lk=ES.encodeURIComponent,pk=jS("".charAt),hk=jS([].join),dk=jS([].push),vk=jS("".replace),yk=jS([].shift),gk=jS([].splice),mk=jS("".split),bk=jS("".slice),wk=/\+/g,xk=Array(4),Sk=function(t){return xk[t-1]||(xk[t-1]=sk("((?:%[\\da-f]{2}){"+t+"})","gi"))},kk=function(t){try{return fk(t)}catch(e){return t}},Ok=function(t){var e=vk(t,wk," "),r=4;try{return fk(e)}catch(t){for(;r;)e=vk(e,Sk(r--),kk);return e}},Ek=/[!'()~]|%20/g,_k={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},jk=function(t){return _k[t]},Ak=function(t){return vk(lk(t),Ek,jk)},Tk=IS((function(t,e){QS(this,{type:KS,iterator:WS(ZS(t).entries),kind:e})}),"Iterator",(function(){var t=tk(this),e=t.kind,r=t.iterator.next(),n=r.value;return r.done||(r.value="keys"===e?n.key:"values"===e?n.value:[n.key,n.value]),r}),!0),Lk=function(t){this.entries=[],this.url=null,void 0!==t&&(qS(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===pk(t,0)?bk(t,1):t:zS(t)))};Lk.prototype={type:XS,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,r,n,o,i,a,u,s=$S(t);if(s)for(r=(e=WS(t,s)).next;!(n=_S(r,e)).done;){if(i=(o=WS(BS(n.value))).next,(a=_S(i,o)).done||(u=_S(i,o)).done||!_S(i,o).done)throw ck("Expected sequence with length 2");dk(this.entries,{key:zS(a.value),value:zS(u.value)})}else for(var c in t)US(t,c)&&dk(this.entries,{key:c,value:zS(t[c])})},parseQuery:function(t){if(t)for(var e,r,n=mk(t,"&"),o=0;o<n.length;)(e=n[o++]).length&&(r=mk(e,"="),dk(this.entries,{key:Ok(yk(r)),value:Ok(hk(r,"="))}))},serialize:function(){for(var t,e=this.entries,r=[],n=0;n<e.length;)t=e[n++],dk(r,Ak(t.key)+"="+Ak(t.value));return hk(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Rk=function(){DS(this,Pk);var t=arguments.length>0?arguments[0]:void 0;QS(this,new Lk(t))},Pk=Rk.prototype;if(RS(Pk,{append:function(t,e){VS(arguments.length,2);var r=ZS(this);dk(r.entries,{key:zS(t),value:zS(e)}),r.updateURL()},delete:function(t){VS(arguments.length,1);for(var e=ZS(this),r=e.entries,n=zS(t),o=0;o<r.length;)r[o].key===n?gk(r,o,1):o++;e.updateURL()},get:function(t){VS(arguments.length,1);for(var e=ZS(this).entries,r=zS(t),n=0;n<e.length;n++)if(e[n].key===r)return e[n].value;return null},getAll:function(t){VS(arguments.length,1);for(var e=ZS(this).entries,r=zS(t),n=[],o=0;o<e.length;o++)e[o].key===r&&dk(n,e[o].value);return n},has:function(t){VS(arguments.length,1);for(var e=ZS(this).entries,r=zS(t),n=0;n<e.length;)if(e[n++].key===r)return!0;return!1},set:function(t,e){VS(arguments.length,1);for(var r,n=ZS(this),o=n.entries,i=!1,a=zS(t),u=zS(e),s=0;s<o.length;s++)(r=o[s]).key===a&&(i?gk(o,s--,1):(i=!0,r.value=u));i||dk(o,{key:a,value:u}),n.updateURL()},sort:function(){var t=ZS(this);YS(t.entries,(function(t,e){return t.key>e.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,r=ZS(this).entries,n=NS(t,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((e=r[o++]).value,e.key,this)},keys:function(){return new Tk(this,"keys")},values:function(){return new Tk(this,"values")},entries:function(){return new Tk(this,"entries")}},{enumerable:!0}),LS(Pk,JS,Pk.entries,{name:"entries"}),LS(Pk,"toString",(function(){return ZS(this).serialize()}),{enumerable:!0}),PS(Rk,XS),OS({global:!0,constructor:!0,forced:!TS},{URLSearchParams:Rk}),!TS&&MS(ik)){var Ik=jS(uk.has),Ck=jS(uk.set),Dk=function(t){if(qS(t)){var e,r=t.body;if(FS(r)===XS)return e=t.headers?new ik(t.headers):new ik,Ik(e,"content-type")||Ck(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),HS(t,{body:GS(0,zS(r)),headers:GS(0,e)})}return t};if(MS(nk)&&OS({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(t){return nk(t,arguments.length>1?Dk(arguments[1]):{})}}),MS(ok)){var Mk=function(t){return DS(this,ak),new ok(t,arguments.length>1?Dk(arguments[1]):{})};ak.constructor=Mk,Mk.prototype=ak,OS({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Mk})}}var Uk,Nk=no,Fk=c,Bk=Qx,qk=a,zk=pu,Hk=P,Gk=Zr,Wk=function(t,e,r){return r.get&&Zx(r.get,e,{getter:!0}),r.set&&Zx(r.set,e,{setter:!0}),tS.f(t,e,r)},$k=nu,Vk=$t,Yk=Yx,Jk=$m,Xk=bp,Kk=zh.codeAt,Qk=function(t){var e,r,n=[],o=dS(hS(vS(t),oS,"."),".");for(e=0;e<o.length;e++)r=o[e],pS(n,uS(nS,r)?"xn--"+mS(r):r);return lS(n,".")},Zk=Ih,tO=di,eO=du,rO={URLSearchParams:Rk,getState:ZS},nO=Mr,oO=nO.set,iO=nO.getterFor("URL"),aO=rO.URLSearchParams,uO=rO.getState,sO=qk.URL,cO=qk.TypeError,fO=qk.parseInt,lO=Math.floor,pO=Math.pow,hO=Hk("".charAt),dO=Hk(/./.exec),vO=Hk([].join),yO=Hk(1..toString),gO=Hk([].pop),mO=Hk([].push),bO=Hk("".replace),wO=Hk([].shift),xO=Hk("".split),SO=Hk("".slice),kO=Hk("".toLowerCase),OO=Hk([].unshift),EO="Invalid scheme",_O="Invalid host",jO="Invalid port",AO=/[a-z]/i,TO=/[\d+-.a-z]/i,LO=/\d/,RO=/^0x/i,PO=/^[0-7]+$/,IO=/^\d+$/,CO=/^[\da-f]+$/i,DO=/[\0\t\n\r #%/:<>?@[\\\]^|]/,MO=/[\0\t\n\r #/:<>?@[\\\]^|]/,UO=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,NO=/[\t\n\r]/g,FO=function(t){var e,r,n,o;if("number"==typeof t){for(e=[],r=0;r<4;r++)OO(e,t%256),t=lO(t/256);return vO(e,".")}if("object"==typeof t){for(e="",n=function(t){for(var e=null,r=1,n=null,o=0,i=0;i<8;i++)0!==t[i]?(o>r&&(e=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(e=n,r=o),e}(t),r=0;r<8;r++)o&&0===t[r]||(o&&(o=!1),n===r?(e+=r?":":"::",o=!0):(e+=yO(t[r],16),r<7&&(e+=":")));return"["+e+"]"}return t},BO={},qO=Yk({},BO,{" ":1,'"':1,"<":1,">":1,"`":1}),zO=Yk({},qO,{"#":1,"?":1,"{":1,"}":1}),HO=Yk({},zO,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),GO=function(t,e){var r=Kk(t,0);return r>32&&r<127&&!Vk(e,t)?t:encodeURIComponent(t)},WO={ftp:21,file:null,http:80,https:443,ws:80,wss:443},$O=function(t,e){var r;return 2==t.length&&dO(AO,hO(t,0))&&(":"==(r=hO(t,1))||!e&&"|"==r)},VO=function(t){var e;return t.length>1&&$O(SO(t,0,2))&&(2==t.length||"/"===(e=hO(t,2))||"\\"===e||"?"===e||"#"===e)},YO=function(t){return"."===t||"%2e"===kO(t)},JO={},XO={},KO={},QO={},ZO={},tE={},eE={},rE={},nE={},oE={},iE={},aE={},uE={},sE={},cE={},fE={},lE={},pE={},hE={},dE={},vE={},yE=function(t,e,r){var n,o,i,a=Zk(t);if(e){if(o=this.parse(a))throw cO(o);this.searchParams=null}else{if(void 0!==r&&(n=new yE(r,!0)),o=this.parse(a,null,n))throw cO(o);(i=uO(new aO)).bindURL(this),this.searchParams=i}};yE.prototype={type:"URL",parse:function(t,e,r){var n,o,i,a,u,s=this,c=e||JO,f=0,l="",p=!1,h=!1,d=!1;for(t=Zk(t),e||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,t=bO(t,UO,"")),t=bO(t,NO,""),n=Jk(t);f<=n.length;){switch(o=n[f],c){case JO:if(!o||!dO(AO,o)){if(e)return EO;c=KO;continue}l+=kO(o),c=XO;break;case XO:if(o&&(dO(TO,o)||"+"==o||"-"==o||"."==o))l+=kO(o);else{if(":"!=o){if(e)return EO;l="",c=KO,f=0;continue}if(e&&(s.isSpecial()!=Vk(WO,l)||"file"==l&&(s.includesCredentials()||null!==s.port)||"file"==s.scheme&&!s.host))return;if(s.scheme=l,e)return void(s.isSpecial()&&WO[s.scheme]==s.port&&(s.port=null));l="","file"==s.scheme?c=sE:s.isSpecial()&&r&&r.scheme==s.scheme?c=QO:s.isSpecial()?c=rE:"/"==n[f+1]?(c=ZO,f++):(s.cannotBeABaseURL=!0,mO(s.path,""),c=hE)}break;case KO:if(!r||r.cannotBeABaseURL&&"#"!=o)return EO;if(r.cannotBeABaseURL&&"#"==o){s.scheme=r.scheme,s.path=Xk(r.path),s.query=r.query,s.fragment="",s.cannotBeABaseURL=!0,c=vE;break}c="file"==r.scheme?sE:tE;continue;case QO:if("/"!=o||"/"!=n[f+1]){c=tE;continue}c=nE,f++;break;case ZO:if("/"==o){c=oE;break}c=pE;continue;case tE:if(s.scheme=r.scheme,o==Uk)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=Xk(r.path),s.query=r.query;else if("/"==o||"\\"==o&&s.isSpecial())c=eE;else if("?"==o)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=Xk(r.path),s.query="",c=dE;else{if("#"!=o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=Xk(r.path),s.path.length--,c=pE;continue}s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=Xk(r.path),s.query=r.query,s.fragment="",c=vE}break;case eE:if(!s.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,c=pE;continue}c=oE}else c=nE;break;case rE:if(c=nE,"/"!=o||"/"!=hO(l,f+1))continue;f++;break;case nE:if("/"!=o&&"\\"!=o){c=oE;continue}break;case oE:if("@"==o){p&&(l="%40"+l),p=!0,i=Jk(l);for(var v=0;v<i.length;v++){var y=i[v];if(":"!=y||d){var g=GO(y,HO);d?s.password+=g:s.username+=g}else d=!0}l=""}else if(o==Uk||"/"==o||"?"==o||"#"==o||"\\"==o&&s.isSpecial()){if(p&&""==l)return"Invalid authority";f-=Jk(l).length+1,l="",c=iE}else l+=o;break;case iE:case aE:if(e&&"file"==s.scheme){c=fE;continue}if(":"!=o||h){if(o==Uk||"/"==o||"?"==o||"#"==o||"\\"==o&&s.isSpecial()){if(s.isSpecial()&&""==l)return _O;if(e&&""==l&&(s.includesCredentials()||null!==s.port))return;if(a=s.parseHost(l))return a;if(l="",c=lE,e)return;continue}"["==o?h=!0:"]"==o&&(h=!1),l+=o}else{if(""==l)return _O;if(a=s.parseHost(l))return a;if(l="",c=uE,e==aE)return}break;case uE:if(!dO(LO,o)){if(o==Uk||"/"==o||"?"==o||"#"==o||"\\"==o&&s.isSpecial()||e){if(""!=l){var m=fO(l,10);if(m>65535)return jO;s.port=s.isSpecial()&&m===WO[s.scheme]?null:m,l=""}if(e)return;c=lE;continue}return jO}l+=o;break;case sE:if(s.scheme="file","/"==o||"\\"==o)c=cE;else{if(!r||"file"!=r.scheme){c=pE;continue}if(o==Uk)s.host=r.host,s.path=Xk(r.path),s.query=r.query;else if("?"==o)s.host=r.host,s.path=Xk(r.path),s.query="",c=dE;else{if("#"!=o){VO(vO(Xk(n,f),""))||(s.host=r.host,s.path=Xk(r.path),s.shortenPath()),c=pE;continue}s.host=r.host,s.path=Xk(r.path),s.query=r.query,s.fragment="",c=vE}}break;case cE:if("/"==o||"\\"==o){c=fE;break}r&&"file"==r.scheme&&!VO(vO(Xk(n,f),""))&&($O(r.path[0],!0)?mO(s.path,r.path[0]):s.host=r.host),c=pE;continue;case fE:if(o==Uk||"/"==o||"\\"==o||"?"==o||"#"==o){if(!e&&$O(l))c=pE;else if(""==l){if(s.host="",e)return;c=lE}else{if(a=s.parseHost(l))return a;if("localhost"==s.host&&(s.host=""),e)return;l="",c=lE}continue}l+=o;break;case lE:if(s.isSpecial()){if(c=pE,"/"!=o&&"\\"!=o)continue}else if(e||"?"!=o)if(e||"#"!=o){if(o!=Uk&&(c=pE,"/"!=o))continue}else s.fragment="",c=vE;else s.query="",c=dE;break;case pE:if(o==Uk||"/"==o||"\\"==o&&s.isSpecial()||!e&&("?"==o||"#"==o)){if(".."===(u=kO(u=l))||"%2e."===u||".%2e"===u||"%2e%2e"===u?(s.shortenPath(),"/"==o||"\\"==o&&s.isSpecial()||mO(s.path,"")):YO(l)?"/"==o||"\\"==o&&s.isSpecial()||mO(s.path,""):("file"==s.scheme&&!s.path.length&&$O(l)&&(s.host&&(s.host=""),l=hO(l,0)+":"),mO(s.path,l)),l="","file"==s.scheme&&(o==Uk||"?"==o||"#"==o))for(;s.path.length>1&&""===s.path[0];)wO(s.path);"?"==o?(s.query="",c=dE):"#"==o&&(s.fragment="",c=vE)}else l+=GO(o,zO);break;case hE:"?"==o?(s.query="",c=dE):"#"==o?(s.fragment="",c=vE):o!=Uk&&(s.path[0]+=GO(o,BO));break;case dE:e||"#"!=o?o!=Uk&&("'"==o&&s.isSpecial()?s.query+="%27":s.query+="#"==o?"%23":GO(o,BO)):(s.fragment="",c=vE);break;case vE:o!=Uk&&(s.fragment+=GO(o,qO))}f++}},parseHost:function(t){var e,r,n;if("["==hO(t,0)){if("]"!=hO(t,t.length-1))return _O;if(e=function(t){var e,r,n,o,i,a,u,s=[0,0,0,0,0,0,0,0],c=0,f=null,l=0,p=function(){return hO(t,l)};if(":"==p()){if(":"!=hO(t,1))return;l+=2,f=++c}for(;p();){if(8==c)return;if(":"!=p()){for(e=r=0;r<4&&dO(CO,p());)e=16*e+fO(p(),16),l++,r++;if("."==p()){if(0==r)return;if(l-=r,c>6)return;for(n=0;p();){if(o=null,n>0){if(!("."==p()&&n<4))return;l++}if(!dO(LO,p()))return;for(;dO(LO,p());){if(i=fO(p(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;l++}s[c]=256*s[c]+o,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==p()){if(l++,!p())return}else if(p())return;s[c++]=e}else{if(null!==f)return;l++,f=++c}}if(null!==f)for(a=c-f,c=7;0!=c&&a>0;)u=s[c],s[c--]=s[f+a-1],s[f+--a]=u;else if(8!=c)return;return s}(SO(t,1,-1)),!e)return _O;this.host=e}else if(this.isSpecial()){if(t=Qk(t),dO(DO,t))return _O;if(e=function(t){var e,r,n,o,i,a,u,s=xO(t,".");if(s.length&&""==s[s.length-1]&&s.length--,(e=s.length)>4)return t;for(r=[],n=0;n<e;n++){if(""==(o=s[n]))return t;if(i=10,o.length>1&&"0"==hO(o,0)&&(i=dO(RO,o)?16:8,o=SO(o,8==i?1:2)),""===o)a=0;else{if(!dO(10==i?IO:8==i?PO:CO,o))return t;a=fO(o,i)}mO(r,a)}for(n=0;n<e;n++)if(a=r[n],n==e-1){if(a>=pO(256,5-e))return null}else if(a>255)return null;for(u=gO(r),n=0;n<r.length;n++)u+=r[n]*pO(256,3-n);return u}(t),null===e)return _O;this.host=e}else{if(dO(MO,t))return _O;for(e="",r=Jk(t),n=0;n<r.length;n++)e+=GO(r[n],BO);this.host=e}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return Vk(WO,this.scheme)},shortenPath:function(){var t=this.path,e=t.length;!e||"file"==this.scheme&&1==e&&$O(t[0],!0)||t.length--},serialize:function(){var t=this,e=t.scheme,r=t.username,n=t.password,o=t.host,i=t.port,a=t.path,u=t.query,s=t.fragment,c=e+":";return null!==o?(c+="//",t.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=FO(o),null!==i&&(c+=":"+i)):"file"==e&&(c+="//"),c+=t.cannotBeABaseURL?a[0]:a.length?"/"+vO(a,"/"):"",null!==u&&(c+="?"+u),null!==s&&(c+="#"+s),c},setHref:function(t){var e=this.parse(t);if(e)throw cO(e);this.searchParams.update()},getOrigin:function(){var t=this.scheme,e=this.port;if("blob"==t)try{return new gE(t.path[0]).origin}catch(t){return"null"}return"file"!=t&&this.isSpecial()?t+"://"+FO(this.host)+(null!==e?":"+e:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(Zk(t)+":",JO)},getUsername:function(){return this.username},setUsername:function(t){var e=Jk(Zk(t));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<e.length;r++)this.username+=GO(e[r],HO)}},getPassword:function(){return this.password},setPassword:function(t){var e=Jk(Zk(t));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<e.length;r++)this.password+=GO(e[r],HO)}},getHost:function(){var t=this.host,e=this.port;return null===t?"":null===e?FO(t):FO(t)+":"+e},setHost:function(t){this.cannotBeABaseURL||this.parse(t,iE)},getHostname:function(){var t=this.host;return null===t?"":FO(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,aE)},getPort:function(){var t=this.port;return null===t?"":Zk(t)},setPort:function(t){this.cannotHaveUsernamePasswordPort()||(""==(t=Zk(t))?this.port=null:this.parse(t,uE))},getPathname:function(){var t=this.path;return this.cannotBeABaseURL?t[0]:t.length?"/"+vO(t,"/"):""},setPathname:function(t){this.cannotBeABaseURL||(this.path=[],this.parse(t,lE))},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){""==(t=Zk(t))?this.query=null:("?"==hO(t,0)&&(t=SO(t,1)),this.query="",this.parse(t,dE)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){""!=(t=Zk(t))?("#"==hO(t,0)&&(t=SO(t,1)),this.fragment="",this.parse(t,vE)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var gE=function(t){var e=$k(this,mE),r=eO(arguments.length,1)>1?arguments[1]:void 0,n=oO(e,new yE(t,!1,r));Fk||(e.href=n.serialize(),e.origin=n.getOrigin(),e.protocol=n.getProtocol(),e.username=n.getUsername(),e.password=n.getPassword(),e.host=n.getHost(),e.hostname=n.getHostname(),e.port=n.getPort(),e.pathname=n.getPathname(),e.search=n.getSearch(),e.searchParams=n.getSearchParams(),e.hash=n.getHash())},mE=gE.prototype,bE=function(t,e){return{get:function(){return iO(this)[t]()},set:e&&function(t){return iO(this)[e](t)},configurable:!0,enumerable:!0}};if(Fk&&(Wk(mE,"href",bE("serialize","setHref")),Wk(mE,"origin",bE("getOrigin")),Wk(mE,"protocol",bE("getProtocol","setProtocol")),Wk(mE,"username",bE("getUsername","setUsername")),Wk(mE,"password",bE("getPassword","setPassword")),Wk(mE,"host",bE("getHost","setHost")),Wk(mE,"hostname",bE("getHostname","setHostname")),Wk(mE,"port",bE("getPort","setPort")),Wk(mE,"pathname",bE("getPathname","setPathname")),Wk(mE,"search",bE("getSearch","setSearch")),Wk(mE,"searchParams",bE("getSearchParams")),Wk(mE,"hash",bE("getHash","setHash"))),Gk(mE,"toJSON",(function(){return iO(this).serialize()}),{enumerable:!0}),Gk(mE,"toString",(function(){return iO(this).serialize()}),{enumerable:!0}),sO){var wE=sO.createObjectURL,xE=sO.revokeObjectURL;wE&&Gk(gE,"createObjectURL",zk(wE,sO)),xE&&Gk(gE,"revokeObjectURL",zk(xE,sO))}tO(gE,"URL"),Nk({global:!0,constructor:!0,forced:!Bk,sham:!Fk},{URL:gE});var SE={};
32
+ /*
33
+ @license
34
+ Copyright (c) 2016, Twilio, Inc.
35
+
36
+ Permission to use, copy, modify, and/or distribute this software for any
37
+ purpose with or without fee is hereby granted, provided that the above
38
+ copyright notice and this permission notice appear in all copies.
39
+
40
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
41
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
42
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
43
+ SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
44
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
45
+ OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
46
+ CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
47
+
48
+ */Object.defineProperty(SE,"__esModule",{value:!0});var kE=Ea.exports,OE=ka.exports,EE=ja.exports,_E=Ta.exports,jE=Ra.exports,AE=Oa.exports;function TE(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var LE=TE(_a.exports),RE=TE(kE),PE=TE(OE),IE=TE(EE),CE=TE(_E),DE=TE(jE),ME=TE(AE);function UE(){}function NE(){NE.init.call(this)}function FE(t){return void 0===t._maxListeners?NE.defaultMaxListeners:t._maxListeners}function BE(t,e,r){if(e)t.call(r);else for(var n=t.length,o=YE(t,n),i=0;i<n;++i)o[i].call(r)}function qE(t,e,r,n){if(e)t.call(r,n);else for(var o=t.length,i=YE(t,o),a=0;a<o;++a)i[a].call(r,n)}function zE(t,e,r,n,o){if(e)t.call(r,n,o);else for(var i=t.length,a=YE(t,i),u=0;u<i;++u)a[u].call(r,n,o)}function HE(t,e,r,n,o,i){if(e)t.call(r,n,o,i);else for(var a=t.length,u=YE(t,a),s=0;s<a;++s)u[s].call(r,n,o,i)}function GE(t,e,r,n){if(e)t.apply(r,n);else for(var o=t.length,i=YE(t,o),a=0;a<o;++a)i[a].apply(r,n)}function WE(t,e,r,n){var o,i,a,u;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if((i=t._events)?(i.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),i=t._events),a=i[e]):(i=t._events=new UE,t._eventsCount=0),a){if("function"==typeof a?a=i[e]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),!a.warned&&(o=FE(t))&&o>0&&a.length>o){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+e+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=t,s.type=e,s.count=a.length,u=s,"function"==typeof console.warn?console.warn(u):console.log(u)}}else a=i[e]=r,++t._eventsCount;return t}function $E(t,e,r){var n=!1;function o(){t.removeListener(e,o),n||(n=!0,r.apply(t,arguments))}return o.listener=r,o}function VE(t){var e=this._events;if(e){var r=e[t];if("function"==typeof r)return 1;if(r)return r.length}return 0}function YE(t,e){for(var r=new Array(e);e--;)r[e]=t[e];return r}function JE(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=DE.default(t);if(e){var o=DE.default(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return CE.default(this,r)}}UE.prototype=Object.create(null),NE.EventEmitter=NE,NE.usingDomains=!1,NE.prototype.domain=void 0,NE.prototype._events=void 0,NE.prototype._maxListeners=void 0,NE.defaultMaxListeners=10,NE.init=function(){this.domain=null,NE.usingDomains&&undefined.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new UE,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},NE.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=t,this},NE.prototype.getMaxListeners=function(){return FE(this)},NE.prototype.emit=function(t){var e,r,n,o,i,a,u,s="error"===t;if(a=this._events)s=s&&null==a.error;else if(!s)return!1;if(u=this.domain,s){if(e=arguments[1],!u){if(e instanceof Error)throw e;var c=new Error('Uncaught, unspecified "error" event. ('+e+")");throw c.context=e,c}return e||(e=new Error('Uncaught, unspecified "error" event')),e.domainEmitter=this,e.domain=u,e.domainThrown=!1,u.emit("error",e),!1}if(!(r=a[t]))return!1;var f="function"==typeof r;switch(n=arguments.length){case 1:BE(r,f,this);break;case 2:qE(r,f,this,arguments[1]);break;case 3:zE(r,f,this,arguments[1],arguments[2]);break;case 4:HE(r,f,this,arguments[1],arguments[2],arguments[3]);break;default:for(o=new Array(n-1),i=1;i<n;i++)o[i-1]=arguments[i];GE(r,f,this,o)}return!0},NE.prototype.addListener=function(t,e){return WE(this,t,e,!1)},NE.prototype.on=NE.prototype.addListener,NE.prototype.prependListener=function(t,e){return WE(this,t,e,!0)},NE.prototype.once=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.on(t,$E(this,t,e)),this},NE.prototype.prependOnceListener=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.prependListener(t,$E(this,t,e)),this},NE.prototype.removeListener=function(t,e){var r,n,o,i,a;if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');if(!(n=this._events))return this;if(!(r=n[t]))return this;if(r===e||r.listener&&r.listener===e)0==--this._eventsCount?this._events=new UE:(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!=typeof r){for(o=-1,i=r.length;i-- >0;)if(r[i]===e||r[i].listener&&r[i].listener===e){a=r[i].listener,o=i;break}if(o<0)return this;if(1===r.length){if(r[0]=void 0,0==--this._eventsCount)return this._events=new UE,this;delete n[t]}else!function(t,e){for(var r=e,n=r+1,o=t.length;n<o;r+=1,n+=1)t[r]=t[n];t.pop()}(r,o);n.removeListener&&this.emit("removeListener",t,a||e)}return this},NE.prototype.off=function(t,e){return this.removeListener(t,e)},NE.prototype.removeAllListeners=function(t){var e,r;if(!(r=this._events))return this;if(!r.removeListener)return 0===arguments.length?(this._events=new UE,this._eventsCount=0):r[t]&&(0==--this._eventsCount?this._events=new UE:delete r[t]),this;if(0===arguments.length){for(var n,o=Object.keys(r),i=0;i<o.length;++i)"removeListener"!==(n=o[i])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=new UE,this._eventsCount=0,this}if("function"==typeof(e=r[t]))this.removeListener(t,e);else if(e)do{this.removeListener(t,e[e.length-1])}while(e[0]);return this},NE.prototype.listeners=function(t){var e,r=this._events;return r&&(e=r[t])?"function"==typeof e?[e.listener||e]:function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(e):[]},NE.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):VE.call(t,e)},NE.prototype.listenerCount=VE,NE.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var XE=function(t){IE.default(r,t);var e=JE(r);function r(t){var n;return LE.default(this,r),n=e.call(this),ME.default(PE.default(n),"minDelay",void 0),ME.default(PE.default(n),"maxDelay",void 0),ME.default(PE.default(n),"initialDelay",void 0),ME.default(PE.default(n),"maxAttemptsCount",void 0),ME.default(PE.default(n),"maxAttemptsTime",void 0),ME.default(PE.default(n),"randomness",void 0),ME.default(PE.default(n),"prevDelay",void 0),ME.default(PE.default(n),"currDelay",void 0),ME.default(PE.default(n),"timeout",null),ME.default(PE.default(n),"inProgress",void 0),ME.default(PE.default(n),"attemptNum",void 0),ME.default(PE.default(n),"startTimestamp",-1),n.minDelay=t.min,n.maxDelay=t.max,n.initialDelay=t.initial||0,n.maxAttemptsCount=t.maxAttemptsCount||0,n.maxAttemptsTime=t.maxAttemptsTime||0,n.randomness=t.randomness||0,n.inProgress=!1,n.attemptNum=0,n.prevDelay=0,n.currDelay=0,n}return RE.default(r,[{key:"attempt",value:function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.attemptNum++,this.emit("attempt",this)}},{key:"nextDelay",value:function(t){if("number"==typeof t)return this.prevDelay=0,this.currDelay=t,t;if(0==this.attemptNum)return this.initialDelay;if(1==this.attemptNum)return this.currDelay=this.minDelay,this.currDelay;this.prevDelay=this.currDelay;var e=this.currDelay+this.prevDelay;return this.maxDelay&&e>this.maxDelay&&(this.currDelay=this.maxDelay,e=this.maxDelay),this.currDelay=e,e}},{key:"randomize",value:function(t){var e=t*this.randomness,r=Math.round(Math.random()*e*2-e);return Math.max(0,t+r)}},{key:"scheduleAttempt",value:function(t){var e=this;if(this.maxAttemptsCount&&this.attemptNum>=this.maxAttemptsCount)return this.cleanup(),void this.emit("failed",new Error("Maximum attempt count limit reached"));var r=this.nextDelay(t);if(r=this.randomize(r),this.maxAttemptsTime&&this.startTimestamp+this.maxAttemptsTime<Date.now()+r)return this.cleanup(),void this.emit("failed",new Error("Maximum attempt time limit reached"));this.timeout=setTimeout((function(){return e.attempt()}),r)}},{key:"cleanup",value:function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.inProgress=!1,this.attemptNum=0,this.prevDelay=0,this.currDelay=0}},{key:"start",value:function(){if(this.inProgress)throw new Error("Retrier is already in progress");this.inProgress=!0,this.startTimestamp=Date.now(),this.scheduleAttempt(this.initialDelay)}},{key:"cancel",value:function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null,this.inProgress=!1,this.emit("cancelled"))}},{key:"succeeded",value:function(t){this.emit("succeeded",t)}},{key:"failed",value:function(t,e){if(this.timeout)throw new Error("Retrier attempt is already in progress");this.scheduleAttempt(e)}}]),r}(NE),KE=function(t){IE.default(r,t);var e=JE(r);function r(t){var n;return LE.default(this,r),n=e.call(this),ME.default(PE.default(n),"retrier",void 0),ME.default(PE.default(n),"resolve",(function(){})),ME.default(PE.default(n),"reject",(function(){})),n.retrier=new XE(t),n}return RE.default(r,[{key:"run",value:function(t){var e=this;return this.retrier.on("attempt",(function(){t().then((function(t){return e.retrier.succeeded(t)})).catch((function(t){return e.retrier.failed(t)}))})),this.retrier.on("succeeded",(function(t){return e.resolve(t)})),this.retrier.on("cancelled",(function(){return e.reject(new Error("Cancelled"))})),this.retrier.on("failed",(function(t){return e.reject(t)})),new Promise((function(t,r){e.resolve=t,e.reject=r,e.retrier.start()}))}},{key:"cancel",value:function(){this.retrier.cancel()}}]),r}(NE);function QE(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=DE.default(t);if(e){var o=DE.default(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return CE.default(this,r)}}function ZE(t){return null!=t}var t_=function(t){IE.default(r,t);var e=QE(r);function r(t){var n;LE.default(this,r),n=e.call(this),ME.default(PE.default(n),"maxDelay",void 0),ME.default(PE.default(n),"initialDelay",void 0),ME.default(PE.default(n),"factor",void 0),ME.default(PE.default(n),"randomisationFactor",void 0),ME.default(PE.default(n),"backoffDelay",0),ME.default(PE.default(n),"nextBackoffDelay",0),ME.default(PE.default(n),"backoffNumber",0),ME.default(PE.default(n),"timeoutID",null),ME.default(PE.default(n),"maxNumberOfRetry",-1);var o=t=t||{},i=o.initialDelay,a=o.maxDelay,u=o.randomisationFactor,s=o.factor;if(ZE(i)&&i<1)throw new Error("The initial timeout must be equal to or greater than 1.");if(ZE(a)&&a<=1)throw new Error("The maximal timeout must be greater than 1.");if(ZE(u)&&(u<0||u>1))throw new Error("The randomisation factor must be between 0 and 1.");if(ZE(s)&&s<=1)throw new Error("Exponential factor should be greater than 1.");if(n.initialDelay=i||100,n.maxDelay=a||1e4,n.maxDelay<=n.initialDelay)throw new Error("The maximal backoff delay must be greater than the initial backoff delay.");return n.randomisationFactor=u||0,n.factor=s||2,n.reset(),n}return RE.default(r,[{key:"backoff",value:function(t){null==this.timeoutID&&(this.backoffNumber===this.maxNumberOfRetry?(this.emit("fail",t),this.reset()):(this.backoffDelay=this.next(),this.timeoutID=setTimeout(this.onBackoff.bind(this),this.backoffDelay),this.emit("backoff",this.backoffNumber,this.backoffDelay,t)))}},{key:"reset",value:function(){this.backoffDelay=0,this.nextBackoffDelay=this.initialDelay,this.backoffNumber=0,this.timeoutID&&clearTimeout(this.timeoutID),this.timeoutID=null}},{key:"failAfter",value:function(t){if(t<=0)throw new Error("Expected a maximum number of retry greater than 0 but got ".concat(t));this.maxNumberOfRetry=t}},{key:"next",value:function(){this.backoffDelay=Math.min(this.nextBackoffDelay,this.maxDelay),this.nextBackoffDelay=this.backoffDelay*this.factor;var t=1+Math.random()*this.randomisationFactor;return Math.min(this.maxDelay,Math.round(this.backoffDelay*t))}},{key:"onBackoff",value:function(){this.timeoutID=null,this.emit("ready",this.backoffNumber,this.backoffDelay),this.backoffNumber++}}],[{key:"exponential",value:function(t){return new r(t)}}]),r}(NE);SE.AsyncRetrier=KE,SE.Backoff=t_;var e_=SE.Retrier=XE,r_=Jm.scope("Network");class n_{constructor(t,e){zg(this,"config",void 0),zg(this,"transport",void 0),this.config=t,this.transport=e}backoffConfig(){return Object.assign(gb.backoffConfigDefault,this.config.backoffConfigOverride)}retryWhenThrottled(){var t,e;return null!==(t=null!==(e=this.config.retryWhenThrottledOverride)&&void 0!==e?e:gb.retryWhenThrottledDefault)&&void 0!==t&&t}executeWithRetry(t,e){var r=this;return new Fg(function(){var n=qg(Lm.mark((function n(o,i,a){var u,s;return Lm.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:u=new e_(r.backoffConfig()),s=[502,503,504],e&&s.push(429),a((()=>{u.cancel(),u.removeAllListeners()})),u.on("attempt",qg(Lm.mark((function e(){var r,n;return Lm.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r=t(),a((()=>{r.cancel(),u.cancel(),u.removeAllListeners()})),e.next=5,r;case 5:n=e.sent,u.succeeded(n),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),s.indexOf(e.t0.status)>-1||"Twilsock disconnected"===e.t0.message?u.failed(e.t0):(u.removeAllListeners(),u.cancel(),i(e.t0));case 12:case"end":return e.stop()}}),e,null,[[0,9]])})))),u.on("succeeded",(t=>{o(t)})),u.on("cancelled",(t=>i(t))),u.on("failed",(t=>i(t))),u.start();case 9:case"end":return n.stop()}}),n)})));return function(t,e,r){return n.apply(this,arguments)}}())}get(t){var e=this;return new Fg(function(){var r=qg(Lm.mark((function r(n,o,i){var a,u,s;return Lm.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={"X-Twilio-Token":e.config.token},u=e.executeWithRetry((()=>e.transport.get(t,a)),e.retryWhenThrottled()),r_.trace("sending GET request to ",t," headers ",a),i((()=>u.cancel())),r.prev=4,r.next=7,u;case 7:s=r.sent,r_.trace("response",s),n(s),r.next=16;break;case 12:r.prev=12,r.t0=r.catch(4),r_.debug("get() error ".concat(r.t0)),o(r.t0);case 16:case"end":return r.stop()}}),r,null,[[4,12]])})));return function(t,e,n){return r.apply(this,arguments)}}())}post(t,r,n,o,i){var a=this,u={"X-Twilio-Token":this.config.token};"undefined"!=typeof FormData&&n instanceof FormData||!o||Object.assign(u,{"Content-Type":o});var s=new URL(t);return r&&s.searchParams.append("Category",r),i&&s.searchParams.append("Filename",i),new Fg(function(){var r=qg(Lm.mark((function r(o,i,c){var f,l;return Lm.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return f=a.transport.post(s.href,u,n),c((()=>f.cancel())),r_.trace("sending POST request to ".concat(t," with headers ").concat(u)),r.prev=3,r.next=6,f;case 6:l=r.sent,r.next=17;break;case 9:if(r.prev=9,r.t0=r.catch(3),!(void 0===e.XMLHttpRequest&&n instanceof FormData)){r.next=14;break}return i(new TypeError("Posting FormData supported only with browser engine's FormData")),r.abrupt("return");case 14:return r_.debug("post() error ".concat(r.t0)),i(r.t0),r.abrupt("return");case 17:r_.trace("response",l),o(l);case 19:case"end":return r.stop()}}),r,null,[[3,9]])})));return function(t,e,n){return r.apply(this,arguments)}}())}}var o_={},i_=no,a_=io,u_=Co,s_=K,c_=cn,f_=dn,l_=G,p_=fo,h_=se,d_=Si,v_=Wo("slice"),y_=h_("species"),g_=Array,m_=Math.max;i_({target:"Array",proto:!0,forced:!v_},{slice:function(t,e){var r,n,o,i=l_(this),a=f_(i),u=c_(t,a),s=c_(void 0===e?a:e,a);if(a_(i)&&(r=i.constructor,(u_(r)&&(r===g_||a_(r.prototype))||s_(r)&&null===(r=r[y_]))&&(r=void 0),r===g_||void 0===r))return d_(i,u,s);for(n=new(void 0===r?g_:r)(m_(s-u,0)),o=0;u<s;u++,o++)u in i&&p_(n,o,i[u]);return n.length=o,n}});var b_,w_,x_=no,S_=h,k_=Y,O_=Be,E_=Ih,__=(b_=!1,(w_=/[ac]/).exec=function(){return b_=!0,/./.exec.apply(this,arguments)},!0===w_.test("abc")&&b_),j_=/./.test;x_({target:"RegExp",proto:!0,forced:!__},{test:function(t){var e=O_(this),r=E_(t),n=e.exec;if(!k_(n))return S_(j_,e,r);var o=S_(n,e,r);return null!==o&&(O_(o),!0)}}),Sd("iterator");var A_=c,T_=ur.EXISTS,L_=P,R_=De.f,P_=Function.prototype,I_=L_(P_.toString),C_=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,D_=L_(C_.exec);A_&&!T_&&R_(P_,"name",{configurable:!0,get:function(){try{return D_(C_,I_(this))[1]}catch(t){return""}}});var M_={exports:{}},U_={exports:{}};!function(t){t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports}(U_);var N_={exports:{}};!function(t){t.exports=function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}},t.exports.__esModule=!0,t.exports.default=t.exports}(N_);var F_={exports:{}};!function(t){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports}(F_),function(t){var e=U_.exports,r=N_.exports,n=ig.exports,o=F_.exports;t.exports=function(t,i){return e(t)||r(t,i)||n(t,i)||o()},t.exports.__esModule=!0,t.exports.default=t.exports}(M_);var B_=bn.includes,q_=al;no({target:"Array",proto:!0,forced:s((function(){return!Array(1).includes()}))},{includes:function(t){return B_(this,t,arguments.length>1?arguments[1]:void 0)}}),q_("includes");var z_=no,H_=U,G_=G,W_=Gg,$_=P([].join),V_=H_!=Object,Y_=W_("join",",");z_({target:"Array",proto:!0,forced:V_||!Y_},{join:function(t){return $_(G_(this),void 0===t?",":t)}});var J_=K,X_=Math.floor;no({target:"Number",stat:!0},{isInteger:Number.isInteger||function(t){return!J_(t)&&isFinite(t)&&X_(t)===t}});var K_=P(1..valueOf),Q_=q,Z_=Ih,tj=P("".replace),ej="[\t\n\v\f\r                 \u2028\u2029\ufeff]",rj=RegExp("^"+ej+ej+"*"),nj=RegExp(ej+ej+"*$"),oj=function(t){return function(e){var r=Z_(Q_(e));return 1&t&&(r=tj(r,rj,"")),2&t&&(r=tj(r,nj,"")),r}},ij={start:oj(1),end:oj(2),trim:oj(3)},aj=c,uj=a,sj=P,cj=Jn,fj=Zr,lj=$t,pj=Kp,hj=rt,dj=bt,vj=ye,yj=s,gj=tn.f,mj=u.f,bj=De.f,wj=K_,xj=ij.trim,Sj="Number",kj=uj.Number,Oj=kj.prototype,Ej=uj.TypeError,_j=sj("".slice),jj=sj("".charCodeAt),Aj=function(t){var e=vj(t,"number");return"bigint"==typeof e?e:Tj(e)},Tj=function(t){var e,r,n,o,i,a,u,s,c=vj(t,"number");if(dj(c))throw Ej("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=xj(c),43===(e=jj(c,0))||45===e){if(88===(r=jj(c,2))||120===r)return NaN}else if(48===e){switch(jj(c,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+c}for(a=(i=_j(c,2)).length,u=0;u<a;u++)if((s=jj(i,u))<48||s>o)return NaN;return parseInt(i,n)}return+c};if(cj(Sj,!kj(" 0o1")||!kj("0b1")||kj("+0x1"))){for(var Lj,Rj=function(t){var e=arguments.length<1?0:kj(Aj(t)),r=this;return hj(Oj,r)&&yj((function(){wj(r)}))?pj(Object(e),r,Rj):e},Pj=aj?gj(kj):"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(","),Ij=0;Pj.length>Ij;Ij++)lj(kj,Lj=Pj[Ij])&&!lj(Rj,Lj)&&bj(Rj,Lj,mj(kj,Lj));Rj.prototype=Oj,Oj.constructor=Rj,fj(uj,Sj,Rj,{constructor:!0})}var Cj=c,Dj=P,Mj=zi,Uj=G,Nj=Dj(d.f),Fj=Dj([].push),Bj=function(t){return function(e){for(var r,n=Uj(e),o=Mj(n),i=o.length,a=0,u=[];i>a;)r=o[a++],Cj&&!Nj(n,r)||Fj(u,t?[r,n[r]]:n[r]);return u}},qj={entries:Bj(!0),values:Bj(!1)}.entries;no({target:"Object",stat:!0},{entries:function(t){return qj(t)}}),
50
49
  /*
51
- @license
52
- Copyright (c) 2021 Twilio Inc.
50
+ @license
51
+ Copyright (c) 2021 Twilio Inc.
53
52
 
54
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
53
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
55
54
 
56
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
55
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
57
56
 
58
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
57
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
59
58
 
60
59
 
61
- */
62
- Object.defineProperty(Md,"__esModule",{value:!0});var wm=Dg.exports,xm=sm.exports,Sm=qh.exports,km=zh.exports,Am=Vh.exports,Em=Yh.exports;function Om(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var jm=Om(Hh.exports),Tm=Om(wm),Lm=Om(xm),_m=Om(Sm),Rm=Om(km),Im=Om(Am),Pm=Om(Em),Cm=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return{checks:e}};function Dm(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return Mm(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Mm(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},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 i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function Mm(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Um=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return Cm((function(t){var r,n=!1,o=[],i=Dm(e);try{for(i.s();!(r=i.n()).done;){var a=r.value;"string"!=typeof a?(n=n||t instanceof a,o.push("an instance of ".concat(a.name))):(n=n||jm.default(t)===a,o.push("of type ".concat(a)))}}catch(t){i.e(t)}finally{i.f()}return[n,o]}))};function Nm(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return Fm(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fm(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},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 i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function Fm(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Bm=Cm((function(t){return["string"==typeof t&&t.length>0,"a non-empty string"]})),qm=Cm((function(t){return["number"==typeof t&&Number.isInteger(t)&&t>=0,"a non-negative integer"]})),Gm=Cm((function(t){return["object"===jm.default(t)&&null!==t&&!Array.isArray(t),"a pure object (non-null and non-array)"]}));function Wm(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=Pm.default(t);if(e){var o=Pm.default(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Im.default(this,r)}}function zm(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return $m(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $m(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},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 i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function $m(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Vm=function(t,e){if(e.length>t.length)throw new Error("Expected at most ".concat(t.length," argument(s), but got ").concat(e.length));for(;e.length<t.length;)e.push(void 0);var r,n=zm(e.entries());try{for(n.s();!(r=n.n()).done;){var o=Tm.default(r.value,2),i=o[0],a=o[1],u=Jm(t[i],a),c=Tm.default(u,4),s=c[0],f=c[1],l=c[2],p=c[3];if(!s)throw new Error("Argument ".concat(i+1," is expected to be ").concat(l).concat(p," but got ").concat(f))}}catch(t){n.e(t)}finally{n.f()}},Hm=function(t){var e,r,n;(["undefined","boolean","number","bigint","string"].includes(jm.default(t))&&(r="string"==typeof t?'"'.concat(t,'"'):"".concat(t)),"object"===jm.default(t)&&"Object"!==(null==t||null===(e=t.constructor)||void 0===e?void 0:e.name))&&(r=null===t?"null":"instance of ".concat(null==t||null===(n=t.constructor)||void 0===n?void 0:n.name));return r||(r=jm.default(t)),r},Ym=function(t){var e,r=[],n=zm(t);try{for(n.s();!(e=n.n()).done;){var o=e.value;r.push(Xm(o))}}catch(t){n.e(t)}finally{n.f()}return r},Xm=function(t){var e,r=[],n=zm(Array.isArray(t)?t:[t]);try{for(n.s();!(e=n.n()).done;){var o=e.value;"string"!=typeof o&&"function"!=typeof o?r.push(o):r.push(Um(o))}}catch(t){n.e(t)}finally{n.f()}return r},Jm=function(t,e){var r,n,o=[],i=!1,a=zm(t);try{for(a.s();!(n=a.n()).done;){var u,c=zm(n.value.checks);try{for(c.s();!(u=c.n()).done;){var s=(0,u.value)(e),f=Tm.default(s,3),l=f[0],p=f[1],h=f[2];i=i||l,!r&&h&&(r=h),p&&(o=[].concat(Lm.default(o),"string"==typeof p?[p]:Lm.default(p)))}}catch(t){c.e(t)}finally{c.f()}}}catch(t){a.e(t)}finally{a.f()}if(i)return[!0];var d=r||Hm(e),v=o.length-1;return[!1,d,v>0?"".concat(o.slice(0,v).join(", ")," or ").concat(o[v]):o.join(", "),v>1?";":","]};function Km(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return Zm(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Zm(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},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 i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function Zm(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}Md.array=function(t,e){return Cm((function(r){if(!Array.isArray(r))return[!1,"an array of ".concat(t)];var n,o=Km(r.entries());try{for(o.s();!(n=o.n()).done;){var i=Tm.default(n.value,2),a=i[0],u=i[1],c=Jm(Xm(e),u),s=Tm.default(c,3),f=s[0],l=s[1],p=s[2];if(!f)return[!1,"a valid array of ".concat(t," (index ").concat(a," should be ").concat(p,")"),"malformed array of ".concat(t," (index ").concat(a," is ").concat(l,")")]}}catch(t){o.e(t)}finally{o.f()}return[!0]}))},Md.custom=Cm;var Qm=Md.literal=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return Cm((function(t){var r,n=!1,o=[],i=Nm(e);try{for(i.s();!(r=i.n()).done;){var a=r.value;n=n||t===a,o.push("string"==typeof a?'"'.concat(a,'"'):"".concat(a))}}catch(t){i.e(t)}finally{i.f()}return[n,o]}))},tb=Md.nonEmptyString=Bm;Md.nonNegativeInteger=qm,Md.objectSchema=function(t,e){return Cm((function(r){if("object"!==jm.default(r)||null===r||Array.isArray(r))return[!1,"valid ".concat(t," (should be a pure object)")];for(var n=0,o=Object.entries(e);n<o.length;n++){var i=Tm.default(o[n],2),a=i[0],u=i[1],c=Jm(Xm(u),r[a]),s=Tm.default(c,3),f=s[0],l=s[1],p=s[2];if(!f)return[!1,"valid ".concat(t,' (key "').concat(a,'" should be ').concat(p,")"),"malformed ".concat(t,' (key "').concat(a,'" is ').concat(l,")")]}return[!0]}))};var eb=Md.pureObject=Gm;Md.runtimeTypeValidation=Vm,Md.stringifyReceivedType=Hm,Md.type=Um;var rb,nb,ob=Md.validateConstructorTypes=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=Ym(e);return function(t){return function(t){Rm.default(r,t);var e=Wm(r);function r(){_m.default(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return Vm(n,o),e.call.apply(e,[this].concat(o))}return r}(t)}},ib=Md.validateTypes=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=Ym(e);return function(t,e,r){if("function"!=typeof r.value)throw new Error("The validateTypes decorator can only be applied to methods");var o=r.value;r.value=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return Vm(n,e),o.apply(this,e)}}},ab=Md.validateTypesAsync=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=Ym(e);return function(t,e,r){if("function"!=typeof r.value)throw new Error("The validateTypesAsync decorator can only be applied to methods");var o=r.value;r.value=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];try{Vm(n,e)}catch(t){return Promise.reject(t)}return o.apply(this,e)}}},ub=Va.scope("");return t.default=(nb=rb=class{constructor(t,e,r){var n,o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.options=i,this.options.logLevel=null!==(n=this.options.logLevel)&&void 0!==n?n:"silent",this.config=new hu(t,e,r,this.options),ub.setLevel(this.options.logLevel),this.options.transport=null!==(o=this.options.transport)&&void 0!==o?o:new Zc,this.transport=this.options.transport,this.network=new Dd(this.config,this.transport)}updateToken(t){ub.info("updateToken"),this.config.updateToken(t)}get(t){var e=this;return n(Sa.mark((function r(){var n;return Sa.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e.network.get("".concat(e.config.mediaUrl,"/").concat(t));case 2:return n=r.sent,r.abrupt("return",new du(e.config,e.network,n.body));case 4:case"end":return r.stop()}}),r)})))()}post(t,e,r,o){var i=this;return n(Sa.mark((function n(){var a;return Sa.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,i.network.post(i.config.mediaUrl,null!=r?r:"media",e,t,o);case 2:return a=n.sent,n.abrupt("return",new du(i.config,i.network,a.body));case 4:case"end":return n.stop()}}),n)})))()}postFormData(t,e){var r=this;return n(Sa.mark((function n(){var o;return Sa.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.network.post(r.config.mediaUrl,null!=e?e:"media",t);case 2:return o=n.sent,n.abrupt("return",new du(r.config,r.network,o.body));case 4:case"end":return n.stop()}}),n)})))()}mediaSetGet(t){var e=this;return n(Sa.mark((function r(){var n,o;return Sa.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={command:"get",list:t.map((t=>({media_sid:t})))},r.next=3,e.network.post("".concat(e.config.mediaSetUrl),null,n,"application/json");case 3:return o=r.sent,r.abrupt("return",o.body.map((t=>{if(200!==t.code)throw new Error("Failed to obtain detailed information about Media items (failed SID ".concat(t.media_record.sid,")"));return new du(e.config,e.network,t.media_record)})));case 5:case"end":return r.stop()}}),r)})))()}},o(rb,"version","0.5.3"),nb),ka([ib(tb),Aa("design:type",Function),Aa("design:paramtypes",[String]),Aa("design:returntype",void 0)],t.default.prototype,"updateToken",null),ka([ab(tb),Aa("design:type",Function),Aa("design:paramtypes",[String]),Aa("design:returntype",Promise)],t.default.prototype,"get",null),t.default=ka([ob(tb,tb,[tb,Qm(null)],[eb,"undefined"]),Aa("design:paramtypes",[String,String,Object,Object])],t.default),t.Client=t.default,t.McsClient=t.default,t.McsMedia=du,t.Media=du,t.default=t.default,Object.defineProperty(t,"__esModule",{value:!0}),t}({});
60
+ */
61
+ Object.defineProperty(o_,"__esModule",{value:!0});var zj=M_.exports,Hj=eg.exports,Gj=Ea.exports,Wj=_a.exports,$j=ja.exports,Vj=Ta.exports,Yj=Ra.exports;function Jj(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var Xj=Jj(La.exports),Kj=Jj(zj),Qj=Jj(Hj),Zj=Jj(Gj),tA=Jj(Wj),eA=Jj($j),rA=Jj(Vj),nA=Jj(Yj),oA=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return{checks:e}};function iA(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return aA(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return aA(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},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 i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function aA(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var uA=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return oA((function(t){var r,n=!1,o=[],i=iA(e);try{for(i.s();!(r=i.n()).done;){var a=r.value;"string"!=typeof a?(n=n||t instanceof a,o.push("an instance of ".concat(a.name))):(n=n||Xj.default(t)===a,o.push("of type ".concat(a)))}}catch(t){i.e(t)}finally{i.f()}return[n,o]}))};function sA(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return cA(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cA(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},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 i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function cA(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function fA(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=nA.default(t);if(e){var o=nA.default(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return rA.default(this,r)}}function lA(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return pA(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pA(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},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 i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function pA(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var hA=function(t,e){if(e.length>t.length)throw new Error("Expected at most ".concat(t.length," argument(s), but got ").concat(e.length));for(;e.length<t.length;)e.push(void 0);var r,n=lA(e.entries());try{for(n.s();!(r=n.n()).done;){var o=Kj.default(r.value,2),i=o[0],a=o[1],u=gA(t[i],a),s=Kj.default(u,4),c=s[0],f=s[1],l=s[2],p=s[3];if(!c)throw new Error("Argument ".concat(i+1," is expected to be ").concat(l).concat(p," but got ").concat(f))}}catch(t){n.e(t)}finally{n.f()}},dA=function(t){var e,r,n;(["undefined","boolean","number","bigint","string"].includes(Xj.default(t))&&(r="string"==typeof t?'"'.concat(t,'"'):"".concat(t)),"object"===Xj.default(t)&&"Object"!==(null==t||null===(e=t.constructor)||void 0===e?void 0:e.name))&&(r=null===t?"null":"instance of ".concat(null==t||null===(n=t.constructor)||void 0===n?void 0:n.name));return r||(r=Xj.default(t)),r},vA=function(t){var e,r=[],n=lA(t);try{for(n.s();!(e=n.n()).done;){var o=e.value;r.push(yA(o))}}catch(t){n.e(t)}finally{n.f()}return r},yA=function(t){var e,r=[],n=lA(Array.isArray(t)?t:[t]);try{for(n.s();!(e=n.n()).done;){var o=e.value;"string"!=typeof o&&"function"!=typeof o?r.push(o):r.push(uA(o))}}catch(t){n.e(t)}finally{n.f()}return r},gA=function(t,e){var r,n,o=[],i=!1,a=lA(t);try{for(a.s();!(n=a.n()).done;){var u,s=lA(n.value.checks);try{for(s.s();!(u=s.n()).done;){var c=(0,u.value)(e),f=Kj.default(c,3),l=f[0],p=f[1],h=f[2];i=i||l,!r&&h&&(r=h),p&&(o=[].concat(Qj.default(o),"string"==typeof p?[p]:Qj.default(p)))}}catch(t){s.e(t)}finally{s.f()}}}catch(t){a.e(t)}finally{a.f()}if(i)return[!0];var d=r||dA(e),v=o.length-1;return[!1,d,v>0?"".concat(o.slice(0,v).join(", ")," or ").concat(o[v]):o.join(", "),v>1?";":","]};function mA(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return bA(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bA(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},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 i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function bA(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var wA=oA((function(t){return["string"==typeof t&&t.length>0,"a non-empty string"]})),xA=oA((function(t){return["number"==typeof t&&Number.isInteger(t)&&t>=0,"a non-negative integer"]})),SA=oA((function(t){return["object"===Xj.default(t)&&null!==t&&!Array.isArray(t),"a pure object (non-null and non-array)"]}));function kA(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return OA(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return OA(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},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 i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function OA(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}o_.array=function(t,e){return oA((function(r){if(!Array.isArray(r))return[!1,"an array of ".concat(t)];var n,o=kA(r.entries());try{for(o.s();!(n=o.n()).done;){var i=Kj.default(n.value,2),a=i[0],u=i[1],s=gA(yA(e),u),c=Kj.default(s,3),f=c[0],l=c[1],p=c[2];if(!f)return[!1,"a valid array of ".concat(t," (index ").concat(a," should be ").concat(p,")"),"malformed array of ".concat(t," (index ").concat(a," is ").concat(l,")")]}}catch(t){o.e(t)}finally{o.f()}return[!0]}))},o_.custom=oA;var EA=o_.literal=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return oA((function(t){var r,n=!1,o=[],i=sA(e);try{for(i.s();!(r=i.n()).done;){var a=r.value;n=n||t===a,o.push("string"==typeof a?'"'.concat(a,'"'):"".concat(a))}}catch(t){i.e(t)}finally{i.f()}return[n,o]}))};o_.nonEmptyArray=function(t,e){return oA((function(r){if(!Array.isArray(r)||r.length<1)return[!1,"a non-empty array of ".concat(t)];var n,o=mA(r.entries());try{for(o.s();!(n=o.n()).done;){var i=Kj.default(n.value,2),a=i[0],u=i[1],s=gA(yA(e),u),c=Kj.default(s,3),f=c[0],l=c[1],p=c[2];if(!f)return[!1,"a valid non-empty array of ".concat(t," (index ").concat(a," should be ").concat(p,")"),"malformed array of ".concat(t," (index ").concat(a," is ").concat(l,")")]}}catch(t){o.e(t)}finally{o.f()}return[!0]}))};var _A=o_.nonEmptyString=wA;o_.nonNegativeInteger=xA,o_.objectSchema=function(t,e){return oA((function(r){if("object"!==Xj.default(r)||null===r||Array.isArray(r))return[!1,"valid ".concat(t," (should be a pure object)")];for(var n=0,o=Object.entries(e);n<o.length;n++){var i=Kj.default(o[n],2),a=i[0],u=i[1],s=gA(yA(u),r[a]),c=Kj.default(s,3),f=c[0],l=c[1],p=c[2];if(!f)return[!1,"valid ".concat(t,' (key "').concat(a,'" should be ').concat(p,")"),"malformed ".concat(t,' (key "').concat(a,'" is ').concat(l,")")]}return[!0]}))};var jA=o_.pureObject=SA;o_.runtimeTypeValidation=hA,o_.stringifyReceivedType=dA,o_.type=uA;var AA,TA=o_.validateConstructorTypes=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=vA(e);return function(t){return function(t){eA.default(r,t);var e=fA(r);function r(){tA.default(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return hA(n,o),e.call.apply(e,[this].concat(o))}return Zj.default(r)}(t)}},LA=o_.validateTypes=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=vA(e);return function(t,e,r){if("function"!=typeof r.value)throw new Error("The validateTypes decorator can only be applied to methods");var o=r.value;r.value=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return hA(n,e),o.apply(this,e)}}},RA=o_.validateTypesAsync=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=vA(e);return function(t,e,r){if("function"!=typeof r.value)throw new Error("The validateTypesAsync decorator can only be applied to methods");var o=r.value;r.value=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];try{hA(n,e)}catch(t){return Promise.reject(t)}return o.apply(this,e)}}},PA=Jm.scope("");return t.default=(AA=class{constructor(t,e,r){var n,o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};zg(this,"transport",void 0),zg(this,"options",void 0),zg(this,"network",void 0),zg(this,"config",void 0),this.options=i,this.options.logLevel=null!==(n=this.options.logLevel)&&void 0!==n?n:"silent",this.config=new gb(t,e,r,this.options),PA.setLevel(this.options.logLevel),this.options.transport=null!==(o=this.options.transport)&&void 0!==o?o:new Dx,this.transport=this.options.transport,this.network=new n_(this.config,this.transport)}updateToken(t){PA.info("updateToken"),this.config.updateToken(t)}get(t){var e=this;return new Fg(function(){var r=qg(Lm.mark((function r(n,o,i){var a,u;return Lm.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e.network.get("".concat(e.config.mediaUrl,"/").concat(t)),i((()=>a.cancel())),r.prev=2,r.next=5,a;case 5:u=r.sent,n(new mb(e.config,e.network,u.body)),r.next=12;break;case 9:r.prev=9,r.t0=r.catch(2),o(r.t0);case 12:case"end":return r.stop()}}),r,null,[[2,9]])})));return function(t,e,n){return r.apply(this,arguments)}}())}post(t,e,r,n){var o=this;return new Fg(function(){var i=qg(Lm.mark((function i(a,u,s){var c,f;return Lm.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return c=o.network.post(o.config.mediaUrl,null!=r?r:"media",e,t,n),s((()=>c.cancel())),i.prev=2,i.next=5,c;case 5:f=i.sent,a(new mb(o.config,o.network,f.body)),i.next=12;break;case 9:i.prev=9,i.t0=i.catch(2),u(i.t0);case 12:case"end":return i.stop()}}),i,null,[[2,9]])})));return function(t,e,r){return i.apply(this,arguments)}}())}postFormData(t,e){var r=this;return new Fg(function(){var n=qg(Lm.mark((function n(o,i,a){var u,s;return Lm.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return u=r.network.post(r.config.mediaUrl,null!=e?e:"media",t),a((()=>u.cancel())),n.prev=2,n.next=5,u;case 5:s=n.sent,o(new mb(r.config,r.network,s.body)),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(2),i(n.t0);case 12:case"end":return n.stop()}}),n,null,[[2,9]])})));return function(t,e,r){return n.apply(this,arguments)}}())}mediaSetGet(t){var e=this;return new Fg(function(){var r=qg(Lm.mark((function r(n,o,i){var a,u,s,c;return Lm.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={command:"get",list:t.map((t=>({media_sid:t})))},u=e.network.post("".concat(e.config.mediaSetUrl),null,a,"application/json"),i((()=>u.cancel())),r.prev=3,r.next=6,u;case 6:s=r.sent,c=s.body.map((t=>{if(200===t.code)return new mb(e.config,e.network,t.media_record);o("Failed to obtain detailed information about Media items (failed SID ".concat(t.media_record.sid,")"))})),n(c),r.next=14;break;case 11:r.prev=11,r.t0=r.catch(3),o(r.t0);case 14:case"end":return r.stop()}}),r,null,[[3,11]])})));return function(t,e,n){return r.apply(this,arguments)}}())}mediaSetGetContentUrls(t){var e=this;return new Fg(function(){var r=qg(Lm.mark((function r(n,o,i){var a,u,s,c;return Lm.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={command:"get",list:t.map((t=>({media_sid:t})))},u=e.network.post("".concat(e.config.mediaSetUrl),null,a,"application/json"),i((()=>u.cancel())),r.prev=3,r.next=6,u;case 6:s=r.sent,c=new Map,s.body.forEach((t=>{200===t.code?c.set(t.media_record.sid,t.media_record.links.content_direct_temporary):o("Failed to obtain detailed information about Media items (failed SID ".concat(t.media_record.sid,")"))})),n(c),r.next=15;break;case 12:r.prev=12,r.t0=r.catch(3),o(r.t0);case 15:case"end":return r.stop()}}),r,null,[[3,12]])})));return function(t,e,n){return r.apply(this,arguments)}}())}},zg(AA,"version","0.6.1"),AA),Rm([LA(_A),Pm("design:type",Function),Pm("design:paramtypes",[String]),Pm("design:returntype",void 0)],t.default.prototype,"updateToken",null),Rm([RA(_A),Pm("design:type",Function),Pm("design:paramtypes",[String]),Pm("design:returntype",Fg)],t.default.prototype,"get",null),t.default=Rm([TA(_A,_A,[_A,EA(null)],[jA,"undefined"]),Pm("design:paramtypes",[String,String,Object,Object])],t.default),t.CancellablePromise=Fg,t.Client=t.default,t.McsClient=t.default,t.McsMedia=mb,t.Media=mb,Object.defineProperty(t,"__esModule",{value:!0}),t}({});