@kintone/rest-api-client 3.3.1 → 3.3.2

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.
@@ -12,4 +12,4 @@
12
12
  * Copyright(c) 2015 Douglas Christopher Wilson
13
13
  * MIT Licensed
14
14
  */
15
- !function(e){var n,a,t,i=Ho,o=sr.extname,r=/^\s*([^;\s]*)(?:;|\s|$)/,s=/^text\//i;function c(e){if(!e||"string"!=typeof e)return!1;var n=r.exec(e),a=n&&i[n[1].toLowerCase()];return a&&a.charset?a.charset:!(!n||!s.test(n[1]))&&"UTF-8"}e.charset=c,e.charsets={lookup:c},e.contentType=function(n){if(!n||"string"!=typeof n)return!1;var a=-1===n.indexOf("/")?e.lookup(n):n;if(!a)return!1;if(-1===a.indexOf("charset")){var t=e.charset(a);t&&(a+="; charset="+t.toLowerCase())}return a},e.extension=function(n){if(!n||"string"!=typeof n)return!1;var a=r.exec(n),t=a&&e.extensions[a[1].toLowerCase()];if(!t||!t.length)return!1;return t[0]},e.extensions=Object.create(null),e.lookup=function(n){if(!n||"string"!=typeof n)return!1;var a=o("x."+n).toLowerCase().substr(1);if(!a)return!1;return e.types[a]||!1},e.types=Object.create(null),n=e.extensions,a=e.types,t=["nginx","apache",void 0,"iana"],Object.keys(i).forEach((function(e){var o=i[e],r=o.extensions;if(r&&r.length){n[e]=r;for(var s=0;s<r.length;s++){var c=r[s];if(a[c]){var p=t.indexOf(i[a[c]].source),u=t.indexOf(o.source);if("application/octet-stream"!==a[c]&&(p>u||p===u&&"application/"===a[c].substr(0,12)))continue}a[c]=e}}}))}(Go);var cr=function(){var e=s(i().mark((function e(){var n,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("object"!==("undefined"==typeof kintone?"undefined":o(kintone))||null===kintone||"function"!=typeof kintone.getRequestToken){e.next=2;break}return e.abrupt("return",kintone.getRequestToken());case 2:if("object"!==("undefined"==typeof garoon?"undefined":o(garoon))||null===garoon||"function"!=typeof(null===(n=garoon.connect)||void 0===n||null===(a=n.kintone)||void 0===a?void 0:a.getRequestToken)){e.next=4;break}return e.abrupt("return",garoon.connect.kintone.getRequestToken());case 4:throw new Error("session authentication must specify a request token");case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),pr=Object.freeze({__proto__:null,readFileFromPath:function(e){throw new Wo("Browser")},getRequestToken:cr,getDefaultAuth:function(){return{type:"session"}},buildPlatformDependentConfig:function(){return{}},buildHeaders:function(){return{}},buildFormDataValue:function(e,n){var a={};return n&&(a.type=Go.lookup(n)||void 0),new Blob([e],a)},buildBaseUrl:function(e){if(e)return e;if(void 0===location)throw new Error("The baseUrl parameter is required for this environment");var n=location,a=n.host,t=n.protocol;return"".concat(t,"//").concat(a)},getVersion:function(){return"3.3.1"}}),ur=Di,lr=String,dr=function(e){if("Symbol"===ur(e))throw TypeError("Cannot convert a Symbol value to a string");return lr(e)},mr=oa,fr=function(){var e=mr(this),n="";return e.hasIndices&&(n+="d"),e.global&&(n+="g"),e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.dotAll&&(n+="s"),e.unicode&&(n+="u"),e.unicodeSets&&(n+="v"),e.sticky&&(n+="y"),n},vr=T,hr=O.RegExp,xr=vr((function(){var e=hr("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),br=xr||vr((function(){return!hr("a","y").sticky})),gr={BROKEN_CARET:xr||vr((function(){var e=hr("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:br,UNSUPPORTED_Y:xr},yr={},wr=$t,kr=Jt,jr=Object.keys||function(e){return wr(e,kr)},Ar=U,Sr=na,Er=ea,Pr=oa,Rr=ue,Or=jr;yr.f=Ar&&!Sr?Object.defineProperties:function(e,n){Pr(e);for(var a,t=Rr(n),i=Or(n),o=i.length,r=0;o>r;)Er.f(e,a=i[r++],t[a]);return e};var Ir,Tr=we("document","documentElement"),Ur=oa,_r=yr,Nr=Jt,Fr=Da,Cr=Tr,qr=Mn,Lr=za("IE_PROTO"),Br=function(){},zr=function(e){return"<script>"+e+"</"+"script>"},Dr=function(e){e.write(zr("")),e.close();var n=e.parentWindow.Object;return e=null,n},Mr=function(){try{Ir=new ActiveXObject("htmlfile")}catch(e){}var e,n;Mr="undefined"!=typeof document?document.domain&&Ir?Dr(Ir):((n=qr("iframe")).style.display="none",Cr.appendChild(n),n.src=String("javascript:"),(e=n.contentWindow.document).open(),e.write(zr("document.F=Object")),e.close(),e.F):Dr(Ir);for(var a=Nr.length;a--;)delete Mr.prototype[Nr[a]];return Mr()};Fr[Lr]=!0;var Wr,Gr,Hr=Object.create||function(e,n){var a;return null!==e?(Br.prototype=Ur(e),a=new Br,Br.prototype=null,a[Lr]=e):a=Mr(),void 0===n?a:_r.f(a,n)},Vr=T,Yr=O.RegExp,$r=Vr((function(){var e=Yr(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Jr=T,Qr=O.RegExp,Kr=Jr((function(){var e=Qr("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Xr=C,Zr=$,es=dr,ns=fr,as=gr,ts=Hr,is=nt.get,os=$r,rs=Kr,ss=Xe("native-string-replace",String.prototype.replace),cs=RegExp.prototype.exec,ps=cs,us=Zr("".charAt),ls=Zr("".indexOf),ds=Zr("".replace),ms=Zr("".slice),fs=(Gr=/b*/g,Xr(cs,Wr=/a/,"a"),Xr(cs,Gr,"a"),0!==Wr.lastIndex||0!==Gr.lastIndex),vs=as.BROKEN_CARET,hs=void 0!==/()??/.exec("")[1];(fs||hs||vs||os||rs)&&(ps=function(e){var n,a,t,i,o,r,s,c=this,p=is(c),u=es(e),l=p.raw;if(l)return l.lastIndex=c.lastIndex,n=Xr(ps,l,u),c.lastIndex=l.lastIndex,n;var d=p.groups,m=vs&&c.sticky,f=Xr(ns,c),v=c.source,h=0,x=u;if(m&&(f=ds(f,"y",""),-1===ls(f,"g")&&(f+="g"),x=ms(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==us(u,c.lastIndex-1))&&(v="(?: "+v+")",x=" "+x,h++),a=new RegExp("^(?:"+v+")",f)),hs&&(a=new RegExp("^"+v+"$(?!\\s)",f)),fs&&(t=c.lastIndex),i=Xr(cs,m?a:c,x),m?i?(i.input=ms(i.input,h),i[0]=ms(i[0],h),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:fs&&i&&(c.lastIndex=c.global?i.index+i[0].length:t),hs&&i&&i.length>1&&Xr(ss,i[0],a,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&d)for(i.groups=r=ts(null),o=0;o<d.length;o++)r[(s=d[o])[0]]=i[s[1]];return i});var xs=ps;Si({target:"RegExp",proto:!0,forced:/./.exec!==xs},{exec:xs});var bs=_,gs=Function.prototype,ys=gs.apply,ws=gs.call,ks="object"==typeof Reflect&&Reflect.apply||(bs?ws.bind(ys):function(){return ws.apply(ys,arguments)}),js=X,As=$,Ss=function(e){if("Function"===js(e))return As(e)},Es=Ss,Ps=jt,Rs=xs,Os=T,Is=Pn,Ts=ga,Us=Is("species"),_s=RegExp.prototype,Ns=function(e,n,a,t){var i=Is(e),o=!Os((function(){var n={};return n[i]=function(){return 7},7!=""[e](n)})),r=o&&!Os((function(){var n=!1,a=/a/;return"split"===e&&((a={}).constructor={},a.constructor[Us]=function(){return a},a.flags="",a[i]=/./[i]),a.exec=function(){return n=!0,null},a[i](""),!n}));if(!o||!r||a){var s=Es(/./[i]),c=n(i,""[e],(function(e,n,a,t,i){var r=Es(e),c=n.exec;return c===Rs||c===_s.exec?o&&!i?{done:!0,value:s(n,a,t)}:{done:!0,value:r(a,n,t)}:{done:!1}}));Ps(String.prototype,e,c[0]),Ps(_s,i,c[1])}t&&Ts(_s[i],"sham",!0)},Fs=$,Cs=Rt,qs=dr,Ls=se,Bs=Fs("".charAt),zs=Fs("".charCodeAt),Ds=Fs("".slice),Ms=function(e){return function(n,a){var t,i,o=qs(Ls(n)),r=Cs(a),s=o.length;return r<0||r>=s?e?"":void 0:(t=zs(o,r))<55296||t>56319||r+1===s||(i=zs(o,r+1))<56320||i>57343?e?Bs(o,r):t:e?Ds(o,r,r+2):i-56320+(t-55296<<10)+65536}},Ws={codeAt:Ms(!1),charAt:Ms(!0)},Gs=Ws.charAt,Hs=function(e,n,a){return n+(a?Gs(e,n).length:1)},Vs=$,Ys=un,$s=Math.floor,Js=Vs("".charAt),Qs=Vs("".replace),Ks=Vs("".slice),Xs=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Zs=/\$([$&'`]|\d{1,2})/g,ec=C,nc=oa,ac=fe,tc=X,ic=xs,oc=TypeError,rc=function(e,n){var a=e.exec;if(ac(a)){var t=ec(a,e,n);return null!==t&&nc(t),t}if("RegExp"===tc(e))return ec(ic,e,n);throw oc("RegExp#exec called on incompatible receiver")},sc=ks,cc=C,pc=$,uc=Ns,lc=T,dc=oa,mc=fe,fc=ie,vc=Rt,hc=Ft,xc=dr,bc=se,gc=Hs,yc=Ye,wc=function(e,n,a,t,i,o){var r=a+e.length,s=t.length,c=Zs;return void 0!==i&&(i=Ys(i),c=Xs),Qs(o,c,(function(o,c){var p;switch(Js(c,0)){case"$":return"$";case"&":return e;case"`":return Ks(n,0,a);case"'":return Ks(n,r);case"<":p=i[Ks(c,1,-1)];break;default:var u=+c;if(0===u)return o;if(u>s){var l=$s(u/10);return 0===l?o:l<=s?void 0===t[l-1]?Js(c,1):t[l-1]+Js(c,1):o}p=t[u-1]}return void 0===p?"":p}))},kc=rc,jc=Pn("replace"),Ac=Math.max,Sc=Math.min,Ec=pc([].concat),Pc=pc([].push),Rc=pc("".indexOf),Oc=pc("".slice),Ic="$0"==="a".replace(/./,"$0"),Tc=!!/./[jc]&&""===/./[jc]("a","$0");uc("replace",(function(e,n,a){var t=Tc?"$":"$0";return[function(e,a){var t=bc(this),i=fc(e)?void 0:yc(e,jc);return i?cc(i,e,t,a):cc(n,xc(t),e,a)},function(e,i){var o=dc(this),r=xc(e);if("string"==typeof i&&-1===Rc(i,t)&&-1===Rc(i,"$<")){var s=a(n,o,r,i);if(s.done)return s.value}var c=mc(i);c||(i=xc(i));var p=o.global;if(p){var u=o.unicode;o.lastIndex=0}for(var l=[];;){var d=kc(o,r);if(null===d)break;if(Pc(l,d),!p)break;""===xc(d[0])&&(o.lastIndex=gc(r,hc(o.lastIndex),u))}for(var m,f="",v=0,h=0;h<l.length;h++){for(var x=xc((d=l[h])[0]),b=Ac(Sc(vc(d.index),r.length),0),g=[],y=1;y<d.length;y++)Pc(g,void 0===(m=d[y])?m:String(m));var w=d.groups;if(c){var k=Ec([x],g,b,r);void 0!==w&&Pc(k,w);var j=xc(sc(i,void 0,k))}else j=wc(x,r,b,g,w,i);b>=v&&(f+=Oc(r,v,b)+j,v=b+x.length)}return f+Oc(r,v)}]}),!!lc((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Ic||Tc);var Uc=Pn,_c=Hr,Nc=ea.f,Fc=Uc("unscopables"),Cc=Array.prototype;null==Cc[Fc]&&Nc(Cc,Fc,{configurable:!0,value:_c(null)});var qc,Lc,Bc,zc={},Dc=!T((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Mc=mn,Wc=fe,Gc=un,Hc=Dc,Vc=za("IE_PROTO"),Yc=Object,$c=Yc.prototype,Jc=Hc?Yc.getPrototypeOf:function(e){var n=Gc(e);if(Mc(n,Vc))return n[Vc];var a=n.constructor;return Wc(a)&&n instanceof a?a.prototype:n instanceof Yc?$c:null},Qc=T,Kc=fe,Xc=xe,Zc=Jc,ep=jt,np=Pn("iterator"),ap=!1;[].keys&&("next"in(Bc=[].keys())?(Lc=Zc(Zc(Bc)))!==Object.prototype&&(qc=Lc):ap=!0);var tp=!Xc(qc)||Qc((function(){var e={};return qc[np].call(e)!==e}));tp&&(qc={}),Kc(qc[np])||ep(qc,np,(function(){return this}));var ip={IteratorPrototype:qc,BUGGY_SAFARI_ITERATORS:ap},op=ea.f,rp=mn,sp=Pn("toStringTag"),cp=function(e,n,a){e&&!a&&(e=e.prototype),e&&!rp(e,sp)&&op(e,sp,{configurable:!0,value:n})},pp=ip.IteratorPrototype,up=Hr,lp=W,dp=cp,mp=zc,fp=function(){return this},vp=function(e,n,a,t){var i=n+" Iterator";return e.prototype=up(pp,{next:lp(+!t,a)}),dp(e,i,!1),mp[i]=fp,e},hp=Si,xp=C,bp=fe,gp=vp,yp=Jc,wp=Mo,kp=cp,jp=ga,Ap=jt,Sp=zc,Ep=Pa.PROPER,Pp=Pa.CONFIGURABLE,Rp=ip.IteratorPrototype,Op=ip.BUGGY_SAFARI_ITERATORS,Ip=Pn("iterator"),Tp="keys",Up="values",_p="entries",Np=function(){return this},Fp=function(e,n,a,t,i,o,r){gp(a,n,t);var s,c,p,u=function(e){if(e===i&&v)return v;if(!Op&&e in m)return m[e];switch(e){case Tp:case Up:case _p:return function(){return new a(this,e)}}return function(){return new a(this)}},l=n+" Iterator",d=!1,m=e.prototype,f=m[Ip]||m["@@iterator"]||i&&m[i],v=!Op&&f||u(i),h="Array"==n&&m.entries||f;if(h&&(s=yp(h.call(new e)))!==Object.prototype&&s.next&&(yp(s)!==Rp&&(wp?wp(s,Rp):bp(s[Ip])||Ap(s,Ip,Np)),kp(s,l,!0)),Ep&&i==Up&&f&&f.name!==Up&&(Pp?jp(m,"name",Up):(d=!0,v=function(){return xp(f,this)})),i)if(c={values:u(Up),keys:o?v:u(Tp),entries:u(_p)},r)for(p in c)(Op||d||!(p in m))&&Ap(m,p,c[p]);else hp({target:n,proto:!0,forced:Op||d},c);return m[Ip]!==v&&Ap(m,Ip,v,{name:i}),Sp[n]=v,c},Cp=function(e,n){return{value:e,done:n}},qp=ue,Lp=function(e){Cc[Fc][e]=!0},Bp=zc,zp=nt,Dp=ea.f,Mp=Fp,Wp=Cp,Gp=U,Hp="Array Iterator",Vp=zp.set,Yp=zp.getterFor(Hp),$p=Mp(Array,"Array",(function(e,n){Vp(this,{type:Hp,target:qp(e),index:0,kind:n})}),(function(){var e=Yp(this),n=e.target,a=e.kind,t=e.index++;return!n||t>=n.length?(e.target=void 0,Wp(void 0,!0)):Wp("keys"==a?t:"values"==a?n[t]:[t,n[t]],!1)}),"values"),Jp=Bp.Arguments=Bp.Array;if(Lp("keys"),Lp("values"),Lp("entries"),Gp&&"values"!==Jp.name)try{Dp(Jp,"name",{value:"values"})}catch(e){}var Qp=Di,Kp=Ni?{}.toString:function(){return"[object "+Qp(this)+"]"};Ni||jt(Object.prototype,"toString",Kp,{unsafe:!0});var Xp=Ws.charAt,Zp=dr,eu=nt,nu=Fp,au=Cp,tu="String Iterator",iu=eu.set,ou=eu.getterFor(tu);nu(String,"String",(function(e){iu(this,{type:tu,string:Zp(e),index:0})}),(function(){var e,n=ou(this),a=n.string,t=n.index;return t>=a.length?au(void 0,!0):(e=Xp(a,t),n.index+=e.length,au(e,!1))}));var ru={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},su=Mn("span").classList,cu=su&&su.constructor&&su.constructor.prototype,pu=cu===Object.prototype?void 0:cu,uu=O,lu=ru,du=pu,mu=$p,fu=ga,vu=Pn,hu=vu("iterator"),xu=vu("toStringTag"),bu=mu.values,gu=function(e,n){if(e){if(e[hu]!==bu)try{fu(e,hu,bu)}catch(n){e[hu]=bu}if(e[xu]||fu(e,xu,n),lu[n])for(var a in mu)if(e[a]!==mu[a])try{fu(e,a,mu[a])}catch(n){e[a]=mu[a]}}};for(var yu in lu)gu(uu[yu]&&uu[yu].prototype,yu);gu(du,"DOMTokenList");var wu=T,ku=Pn("iterator"),ju=!wu((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),n=e.searchParams,a="";return e.pathname="c%20d",n.forEach((function(e,t){n.delete("b"),a+=t+e})),!n.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==n.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!n[ku]||"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"!==a||"x"!==new URL("http://x",void 0).host})),Au=Ge,Su=_,Eu=Ss(Ss.bind),Pu=function(e,n){return Au(e),void 0===n?e:Su?Eu(e,n):function(){return e.apply(n,arguments)}},Ru=ya,Ou=ea,Iu=ke,Tu=TypeError,Uu=function(e,n){if(Iu(n,e))return e;throw Tu("Incorrect invocation")},_u=U,Nu=$,Fu=C,Cu=T,qu=jr,Lu=Xt,Bu=q,zu=un,Du=te,Mu=Object.assign,Wu=Object.defineProperty,Gu=Nu([].concat),Hu=!Mu||Cu((function(){if(_u&&1!==Mu({b:1},Mu(Wu({},"a",{enumerable:!0,get:function(){Wu(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},n={},a=Symbol(),t="abcdefghijklmnopqrst";return e[a]=7,t.split("").forEach((function(e){n[e]=e})),7!=Mu({},e)[a]||qu(Mu({},n)).join("")!=t}))?function(e,n){for(var a=zu(e),t=arguments.length,i=1,o=Lu.f,r=Bu.f;t>i;)for(var s,c=Du(arguments[i++]),p=o?Gu(qu(c),o(c)):qu(c),u=p.length,l=0;u>l;)s=p[l++],_u&&!Fu(r,c,s)||(a[s]=c[s]);return a}:Mu,Vu=C,Yu=oa,$u=Ye,Ju=oa,Qu=function(e,n,a){var t,i;Yu(e);try{if(!(t=$u(e,"return"))){if("throw"===n)throw a;return a}t=Vu(t,e)}catch(e){i=!0,t=e}if("throw"===n)throw a;if(i)throw t;return Yu(t),a},Ku=zc,Xu=Pn("iterator"),Zu=Array.prototype,el=Di,nl=Ye,al=ie,tl=zc,il=Pn("iterator"),ol=function(e){if(!al(e))return nl(e,il)||nl(e,"@@iterator")||tl[el(e)]},rl=C,sl=Ge,cl=oa,pl=ze,ul=ol,ll=TypeError,dl=function(e,n){var a=arguments.length<2?ul(e):n;if(sl(a))return cl(rl(a,e));throw ll(pl(e)+" is not iterable")},ml=Pu,fl=C,vl=un,hl=function(e,n,a,t){try{return t?n(Ju(a)[0],a[1]):n(a)}catch(n){Qu(e,"throw",n)}},xl=function(e){return void 0!==e&&(Ku.Array===e||Zu[Xu]===e)},bl=no,gl=qt,yl=Ui,wl=dl,kl=ol,jl=Array,Al=Ut,Sl=qt,El=Ui,Pl=Array,Rl=Math.max,Ol=function(e,n,a){for(var t=Sl(e),i=Al(n,t),o=Al(void 0===a?t:a,t),r=Pl(Rl(o-i,0)),s=0;i<o;i++,s++)El(r,s,e[i]);return r.length=s,r},Il=$,Tl=2147483647,Ul=/[^\0-\u007E]/,_l=/[.\u3002\uFF0E\uFF61]/g,Nl="Overflow: input needs wider integers to process",Fl=RangeError,Cl=Il(_l.exec),ql=Math.floor,Ll=String.fromCharCode,Bl=Il("".charCodeAt),zl=Il([].join),Dl=Il([].push),Ml=Il("".replace),Wl=Il("".split),Gl=Il("".toLowerCase),Hl=function(e){return e+22+75*(e<26)},Vl=function(e,n,a){var t=0;for(e=a?ql(e/700):e>>1,e+=ql(e/n);e>455;)e=ql(e/35),t+=36;return ql(t+36*e/(e+38))},Yl=function(e){var n=[];e=function(e){for(var n=[],a=0,t=e.length;a<t;){var i=Bl(e,a++);if(i>=55296&&i<=56319&&a<t){var o=Bl(e,a++);56320==(64512&o)?Dl(n,((1023&i)<<10)+(1023&o)+65536):(Dl(n,i),a--)}else Dl(n,i)}return n}(e);var a,t,i=e.length,o=128,r=0,s=72;for(a=0;a<e.length;a++)(t=e[a])<128&&Dl(n,Ll(t));var c=n.length,p=c;for(c&&Dl(n,"-");p<i;){var u=Tl;for(a=0;a<e.length;a++)(t=e[a])>=o&&t<u&&(u=t);var l=p+1;if(u-o>ql((Tl-r)/l))throw Fl(Nl);for(r+=(u-o)*l,o=u,a=0;a<e.length;a++){if((t=e[a])<o&&++r>Tl)throw Fl(Nl);if(t==o){for(var d=r,m=36;;){var f=m<=s?1:m>=s+26?26:m-s;if(d<f)break;var v=d-f,h=36-f;Dl(n,Ll(Hl(f+v%h))),d=ql(v/h),m+=36}Dl(n,Ll(Hl(d))),s=Vl(r,l,p==c),r=0,p++}}r++,o++}return zl(n,"")},$l=TypeError,Jl=function(e,n){if(e<n)throw $l("Not enough arguments");return e},Ql=jt,Kl=Ol,Xl=Math.floor,Zl=function(e,n){var a=e.length,t=Xl(a/2);return a<8?ed(e,n):nd(e,Zl(Kl(e,0,t),n),Zl(Kl(e,t),n),n)},ed=function(e,n){for(var a,t,i=e.length,o=1;o<i;){for(t=o,a=e[o];t&&n(e[t-1],a)>0;)e[t]=e[--t];t!==o++&&(e[t]=a)}return e},nd=function(e,n,a,t){for(var i=n.length,o=a.length,r=0,s=0;r<i||s<o;)e[r+s]=r<i&&s<o?t(n[r],a[s])<=0?n[r++]:a[s++]:r<i?n[r++]:a[s++];return e},ad=Si,td=O,id=C,od=$,rd=U,sd=ju,cd=jt,pd=function(e,n,a){for(var t in n)Ql(e,t,n[t],a);return e},ud=cp,ld=vp,dd=nt,md=Uu,fd=fe,vd=mn,hd=Pu,xd=Di,bd=oa,gd=xe,yd=dr,wd=Hr,kd=W,jd=dl,Ad=ol,Sd=Jl,Ed=Zl,Pd=Pn("iterator"),Rd="URLSearchParams",Od="URLSearchParamsIterator",Id=dd.set,Td=dd.getterFor(Rd),Ud=dd.getterFor(Od),_d=Object.getOwnPropertyDescriptor,Nd=function(e){if(!rd)return td[e];var n=_d(td,e);return n&&n.value},Fd=Nd("fetch"),Cd=Nd("Request"),qd=Nd("Headers"),Ld=Cd&&Cd.prototype,Bd=qd&&qd.prototype,zd=td.RegExp,Dd=td.TypeError,Md=td.decodeURIComponent,Wd=td.encodeURIComponent,Gd=od("".charAt),Hd=od([].join),Vd=od([].push),Yd=od("".replace),$d=od([].shift),Jd=od([].splice),Qd=od("".split),Kd=od("".slice),Xd=/\+/g,Zd=Array(4),em=function(e){return Zd[e-1]||(Zd[e-1]=zd("((?:%[\\da-f]{2}){"+e+"})","gi"))},nm=function(e){try{return Md(e)}catch(n){return e}},am=function(e){var n=Yd(e,Xd," "),a=4;try{return Md(n)}catch(e){for(;a;)n=Yd(n,em(a--),nm);return n}},tm=/[!'()~]|%20/g,im={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},om=function(e){return im[e]},rm=function(e){return Yd(Wd(e),tm,om)},sm=ld((function(e,n){Id(this,{type:Od,iterator:jd(Td(e).entries),kind:n})}),"Iterator",(function(){var e=Ud(this),n=e.kind,a=e.iterator.next(),t=a.value;return a.done||(a.value="keys"===n?t.key:"values"===n?t.value:[t.key,t.value]),a}),!0),cm=function(e){this.entries=[],this.url=null,void 0!==e&&(gd(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Gd(e,0)?Kd(e,1):e:yd(e)))};cm.prototype={type:Rd,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var n,a,t,i,o,r,s,c=Ad(e);if(c)for(a=(n=jd(e,c)).next;!(t=id(a,n)).done;){if(o=(i=jd(bd(t.value))).next,(r=id(o,i)).done||(s=id(o,i)).done||!id(o,i).done)throw Dd("Expected sequence with length 2");Vd(this.entries,{key:yd(r.value),value:yd(s.value)})}else for(var p in e)vd(e,p)&&Vd(this.entries,{key:p,value:yd(e[p])})},parseQuery:function(e){if(e)for(var n,a,t=Qd(e,"&"),i=0;i<t.length;)(n=t[i++]).length&&(a=Qd(n,"="),Vd(this.entries,{key:am($d(a)),value:am(Hd(a,"="))}))},serialize:function(){for(var e,n=this.entries,a=[],t=0;t<n.length;)e=n[t++],Vd(a,rm(e.key)+"="+rm(e.value));return Hd(a,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var pm=function(){md(this,um);var e=arguments.length>0?arguments[0]:void 0;Id(this,new cm(e))},um=pm.prototype;if(pd(um,{append:function(e,n){Sd(arguments.length,2);var a=Td(this);Vd(a.entries,{key:yd(e),value:yd(n)}),a.updateURL()},delete:function(e){Sd(arguments.length,1);for(var n=Td(this),a=n.entries,t=yd(e),i=0;i<a.length;)a[i].key===t?Jd(a,i,1):i++;n.updateURL()},get:function(e){Sd(arguments.length,1);for(var n=Td(this).entries,a=yd(e),t=0;t<n.length;t++)if(n[t].key===a)return n[t].value;return null},getAll:function(e){Sd(arguments.length,1);for(var n=Td(this).entries,a=yd(e),t=[],i=0;i<n.length;i++)n[i].key===a&&Vd(t,n[i].value);return t},has:function(e){Sd(arguments.length,1);for(var n=Td(this).entries,a=yd(e),t=0;t<n.length;)if(n[t++].key===a)return!0;return!1},set:function(e,n){Sd(arguments.length,1);for(var a,t=Td(this),i=t.entries,o=!1,r=yd(e),s=yd(n),c=0;c<i.length;c++)(a=i[c]).key===r&&(o?Jd(i,c--,1):(o=!0,a.value=s));o||Vd(i,{key:r,value:s}),t.updateURL()},sort:function(){var e=Td(this);Ed(e.entries,(function(e,n){return e.key>n.key?1:-1})),e.updateURL()},forEach:function(e){for(var n,a=Td(this).entries,t=hd(e,arguments.length>1?arguments[1]:void 0),i=0;i<a.length;)t((n=a[i++]).value,n.key,this)},keys:function(){return new sm(this,"keys")},values:function(){return new sm(this,"values")},entries:function(){return new sm(this,"entries")}},{enumerable:!0}),cd(um,Pd,um.entries,{name:"entries"}),cd(um,"toString",(function(){return Td(this).serialize()}),{enumerable:!0}),ud(pm,Rd),ad({global:!0,constructor:!0,forced:!sd},{URLSearchParams:pm}),!sd&&fd(qd)){var lm=od(Bd.has),dm=od(Bd.set),mm=function(e){if(gd(e)){var n,a=e.body;if(xd(a)===Rd)return n=e.headers?new qd(e.headers):new qd,lm(n,"content-type")||dm(n,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),wd(e,{body:kd(0,yd(a)),headers:kd(0,n)})}return e};if(fd(Fd)&&ad({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return Fd(e,arguments.length>1?mm(arguments[1]):{})}}),fd(Cd)){var fm=function(e){return md(this,Ld),new Cd(e,arguments.length>1?mm(arguments[1]):{})};Ld.constructor=fm,fm.prototype=Ld,ad({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:fm})}}var vm,hm=Si,xm=U,bm=ju,gm=O,ym=Pu,wm=$,km=jt,jm=function(e,n,a){return a.get&&Ru(a.get,n,{getter:!0}),a.set&&Ru(a.set,n,{setter:!0}),Ou.f(e,n,a)},Am=Uu,Sm=mn,Em=Hu,Pm=function(e){var n=vl(e),a=bl(this),t=arguments.length,i=t>1?arguments[1]:void 0,o=void 0!==i;o&&(i=ml(i,t>2?arguments[2]:void 0));var r,s,c,p,u,l,d=kl(n),m=0;if(!d||this===jl&&xl(d))for(r=gl(n),s=a?new this(r):jl(r);r>m;m++)l=o?i(n[m],m):n[m],yl(s,m,l);else for(u=(p=wl(n,d)).next,s=a?new this:[];!(c=fl(u,p)).done;m++)l=o?hl(p,i,[c.value,m],!0):c.value,yl(s,m,l);return s.length=m,s},Rm=Ol,Om=Ws.codeAt,Im=function(e){var n,a,t=[],i=Wl(Ml(Gl(e),_l,"."),".");for(n=0;n<i.length;n++)a=i[n],Dl(t,Cl(Ul,a)?"xn--"+Yl(a):a);return zl(t,".")},Tm=dr,Um=cp,_m=Jl,Nm={URLSearchParams:pm,getState:Td},Fm=nt,Cm=Fm.set,qm=Fm.getterFor("URL"),Lm=Nm.URLSearchParams,Bm=Nm.getState,zm=gm.URL,Dm=gm.TypeError,Mm=gm.parseInt,Wm=Math.floor,Gm=Math.pow,Hm=wm("".charAt),Vm=wm(/./.exec),Ym=wm([].join),$m=wm(1..toString),Jm=wm([].pop),Qm=wm([].push),Km=wm("".replace),Xm=wm([].shift),Zm=wm("".split),ef=wm("".slice),nf=wm("".toLowerCase),af=wm([].unshift),tf="Invalid scheme",of="Invalid host",rf="Invalid port",sf=/[a-z]/i,cf=/[\d+-.a-z]/i,pf=/\d/,uf=/^0x/i,lf=/^[0-7]+$/,df=/^\d+$/,mf=/^[\da-f]+$/i,ff=/[\0\t\n\r #%/:<>?@[\\\]^|]/,vf=/[\0\t\n\r #/:<>?@[\\\]^|]/,hf=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,xf=/[\t\n\r]/g,bf=function(e){var n,a,t,i;if("number"==typeof e){for(n=[],a=0;a<4;a++)af(n,e%256),e=Wm(e/256);return Ym(n,".")}if("object"==typeof e){for(n="",t=function(e){for(var n=null,a=1,t=null,i=0,o=0;o<8;o++)0!==e[o]?(i>a&&(n=t,a=i),t=null,i=0):(null===t&&(t=o),++i);return i>a&&(n=t,a=i),n}(e),a=0;a<8;a++)i&&0===e[a]||(i&&(i=!1),t===a?(n+=a?":":"::",i=!0):(n+=$m(e[a],16),a<7&&(n+=":")));return"["+n+"]"}return e},gf={},yf=Em({},gf,{" ":1,'"':1,"<":1,">":1,"`":1}),wf=Em({},yf,{"#":1,"?":1,"{":1,"}":1}),kf=Em({},wf,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),jf=function(e,n){var a=Om(e,0);return a>32&&a<127&&!Sm(n,e)?e:encodeURIComponent(e)},Af={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Sf=function(e,n){var a;return 2==e.length&&Vm(sf,Hm(e,0))&&(":"==(a=Hm(e,1))||!n&&"|"==a)},Ef=function(e){var n;return e.length>1&&Sf(ef(e,0,2))&&(2==e.length||"/"===(n=Hm(e,2))||"\\"===n||"?"===n||"#"===n)},Pf=function(e){return"."===e||"%2e"===nf(e)},Rf={},Of={},If={},Tf={},Uf={},_f={},Nf={},Ff={},Cf={},qf={},Lf={},Bf={},zf={},Df={},Mf={},Wf={},Gf={},Hf={},Vf={},Yf={},$f={},Jf=function(e,n,a){var t,i,o,r=Tm(e);if(n){if(i=this.parse(r))throw Dm(i);this.searchParams=null}else{if(void 0!==a&&(t=new Jf(a,!0)),i=this.parse(r,null,t))throw Dm(i);(o=Bm(new Lm)).bindURL(this),this.searchParams=o}};Jf.prototype={type:"URL",parse:function(e,n,a){var t,i,o,r,s,c=this,p=n||Rf,u=0,l="",d=!1,m=!1,f=!1;for(e=Tm(e),n||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=Km(e,hf,"")),e=Km(e,xf,""),t=Pm(e);u<=t.length;){switch(i=t[u],p){case Rf:if(!i||!Vm(sf,i)){if(n)return tf;p=If;continue}l+=nf(i),p=Of;break;case Of:if(i&&(Vm(cf,i)||"+"==i||"-"==i||"."==i))l+=nf(i);else{if(":"!=i){if(n)return tf;l="",p=If,u=0;continue}if(n&&(c.isSpecial()!=Sm(Af,l)||"file"==l&&(c.includesCredentials()||null!==c.port)||"file"==c.scheme&&!c.host))return;if(c.scheme=l,n)return void(c.isSpecial()&&Af[c.scheme]==c.port&&(c.port=null));l="","file"==c.scheme?p=Df:c.isSpecial()&&a&&a.scheme==c.scheme?p=Tf:c.isSpecial()?p=Ff:"/"==t[u+1]?(p=Uf,u++):(c.cannotBeABaseURL=!0,Qm(c.path,""),p=Vf)}break;case If:if(!a||a.cannotBeABaseURL&&"#"!=i)return tf;if(a.cannotBeABaseURL&&"#"==i){c.scheme=a.scheme,c.path=Rm(a.path),c.query=a.query,c.fragment="",c.cannotBeABaseURL=!0,p=$f;break}p="file"==a.scheme?Df:_f;continue;case Tf:if("/"!=i||"/"!=t[u+1]){p=_f;continue}p=Cf,u++;break;case Uf:if("/"==i){p=qf;break}p=Hf;continue;case _f:if(c.scheme=a.scheme,i==vm)c.username=a.username,c.password=a.password,c.host=a.host,c.port=a.port,c.path=Rm(a.path),c.query=a.query;else if("/"==i||"\\"==i&&c.isSpecial())p=Nf;else if("?"==i)c.username=a.username,c.password=a.password,c.host=a.host,c.port=a.port,c.path=Rm(a.path),c.query="",p=Yf;else{if("#"!=i){c.username=a.username,c.password=a.password,c.host=a.host,c.port=a.port,c.path=Rm(a.path),c.path.length--,p=Hf;continue}c.username=a.username,c.password=a.password,c.host=a.host,c.port=a.port,c.path=Rm(a.path),c.query=a.query,c.fragment="",p=$f}break;case Nf:if(!c.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){c.username=a.username,c.password=a.password,c.host=a.host,c.port=a.port,p=Hf;continue}p=qf}else p=Cf;break;case Ff:if(p=Cf,"/"!=i||"/"!=Hm(l,u+1))continue;u++;break;case Cf:if("/"!=i&&"\\"!=i){p=qf;continue}break;case qf:if("@"==i){d&&(l="%40"+l),d=!0,o=Pm(l);for(var v=0;v<o.length;v++){var h=o[v];if(":"!=h||f){var x=jf(h,kf);f?c.password+=x:c.username+=x}else f=!0}l=""}else if(i==vm||"/"==i||"?"==i||"#"==i||"\\"==i&&c.isSpecial()){if(d&&""==l)return"Invalid authority";u-=Pm(l).length+1,l="",p=Lf}else l+=i;break;case Lf:case Bf:if(n&&"file"==c.scheme){p=Wf;continue}if(":"!=i||m){if(i==vm||"/"==i||"?"==i||"#"==i||"\\"==i&&c.isSpecial()){if(c.isSpecial()&&""==l)return of;if(n&&""==l&&(c.includesCredentials()||null!==c.port))return;if(r=c.parseHost(l))return r;if(l="",p=Gf,n)return;continue}"["==i?m=!0:"]"==i&&(m=!1),l+=i}else{if(""==l)return of;if(r=c.parseHost(l))return r;if(l="",p=zf,n==Bf)return}break;case zf:if(!Vm(pf,i)){if(i==vm||"/"==i||"?"==i||"#"==i||"\\"==i&&c.isSpecial()||n){if(""!=l){var b=Mm(l,10);if(b>65535)return rf;c.port=c.isSpecial()&&b===Af[c.scheme]?null:b,l=""}if(n)return;p=Gf;continue}return rf}l+=i;break;case Df:if(c.scheme="file","/"==i||"\\"==i)p=Mf;else{if(!a||"file"!=a.scheme){p=Hf;continue}if(i==vm)c.host=a.host,c.path=Rm(a.path),c.query=a.query;else if("?"==i)c.host=a.host,c.path=Rm(a.path),c.query="",p=Yf;else{if("#"!=i){Ef(Ym(Rm(t,u),""))||(c.host=a.host,c.path=Rm(a.path),c.shortenPath()),p=Hf;continue}c.host=a.host,c.path=Rm(a.path),c.query=a.query,c.fragment="",p=$f}}break;case Mf:if("/"==i||"\\"==i){p=Wf;break}a&&"file"==a.scheme&&!Ef(Ym(Rm(t,u),""))&&(Sf(a.path[0],!0)?Qm(c.path,a.path[0]):c.host=a.host),p=Hf;continue;case Wf:if(i==vm||"/"==i||"\\"==i||"?"==i||"#"==i){if(!n&&Sf(l))p=Hf;else if(""==l){if(c.host="",n)return;p=Gf}else{if(r=c.parseHost(l))return r;if("localhost"==c.host&&(c.host=""),n)return;l="",p=Gf}continue}l+=i;break;case Gf:if(c.isSpecial()){if(p=Hf,"/"!=i&&"\\"!=i)continue}else if(n||"?"!=i)if(n||"#"!=i){if(i!=vm&&(p=Hf,"/"!=i))continue}else c.fragment="",p=$f;else c.query="",p=Yf;break;case Hf:if(i==vm||"/"==i||"\\"==i&&c.isSpecial()||!n&&("?"==i||"#"==i)){if(".."===(s=nf(s=l))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(c.shortenPath(),"/"==i||"\\"==i&&c.isSpecial()||Qm(c.path,"")):Pf(l)?"/"==i||"\\"==i&&c.isSpecial()||Qm(c.path,""):("file"==c.scheme&&!c.path.length&&Sf(l)&&(c.host&&(c.host=""),l=Hm(l,0)+":"),Qm(c.path,l)),l="","file"==c.scheme&&(i==vm||"?"==i||"#"==i))for(;c.path.length>1&&""===c.path[0];)Xm(c.path);"?"==i?(c.query="",p=Yf):"#"==i&&(c.fragment="",p=$f)}else l+=jf(i,wf);break;case Vf:"?"==i?(c.query="",p=Yf):"#"==i?(c.fragment="",p=$f):i!=vm&&(c.path[0]+=jf(i,gf));break;case Yf:n||"#"!=i?i!=vm&&("'"==i&&c.isSpecial()?c.query+="%27":c.query+="#"==i?"%23":jf(i,gf)):(c.fragment="",p=$f);break;case $f:i!=vm&&(c.fragment+=jf(i,yf))}u++}},parseHost:function(e){var n,a,t;if("["==Hm(e,0)){if("]"!=Hm(e,e.length-1))return of;if(n=function(e){var n,a,t,i,o,r,s,c=[0,0,0,0,0,0,0,0],p=0,u=null,l=0,d=function(){return Hm(e,l)};if(":"==d()){if(":"!=Hm(e,1))return;l+=2,u=++p}for(;d();){if(8==p)return;if(":"!=d()){for(n=a=0;a<4&&Vm(mf,d());)n=16*n+Mm(d(),16),l++,a++;if("."==d()){if(0==a)return;if(l-=a,p>6)return;for(t=0;d();){if(i=null,t>0){if(!("."==d()&&t<4))return;l++}if(!Vm(pf,d()))return;for(;Vm(pf,d());){if(o=Mm(d(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;l++}c[p]=256*c[p]+i,2!=++t&&4!=t||p++}if(4!=t)return;break}if(":"==d()){if(l++,!d())return}else if(d())return;c[p++]=n}else{if(null!==u)return;l++,u=++p}}if(null!==u)for(r=p-u,p=7;0!=p&&r>0;)s=c[p],c[p--]=c[u+r-1],c[u+--r]=s;else if(8!=p)return;return c}(ef(e,1,-1)),!n)return of;this.host=n}else if(this.isSpecial()){if(e=Im(e),Vm(ff,e))return of;if(n=function(e){var n,a,t,i,o,r,s,c=Zm(e,".");if(c.length&&""==c[c.length-1]&&c.length--,(n=c.length)>4)return e;for(a=[],t=0;t<n;t++){if(""==(i=c[t]))return e;if(o=10,i.length>1&&"0"==Hm(i,0)&&(o=Vm(uf,i)?16:8,i=ef(i,8==o?1:2)),""===i)r=0;else{if(!Vm(10==o?df:8==o?lf:mf,i))return e;r=Mm(i,o)}Qm(a,r)}for(t=0;t<n;t++)if(r=a[t],t==n-1){if(r>=Gm(256,5-n))return null}else if(r>255)return null;for(s=Jm(a),t=0;t<a.length;t++)s+=a[t]*Gm(256,3-t);return s}(e),null===n)return of;this.host=n}else{if(Vm(vf,e))return of;for(n="",a=Pm(e),t=0;t<a.length;t++)n+=jf(a[t],gf);this.host=n}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return Sm(Af,this.scheme)},shortenPath:function(){var e=this.path,n=e.length;!n||"file"==this.scheme&&1==n&&Sf(e[0],!0)||e.length--},serialize:function(){var e=this,n=e.scheme,a=e.username,t=e.password,i=e.host,o=e.port,r=e.path,s=e.query,c=e.fragment,p=n+":";return null!==i?(p+="//",e.includesCredentials()&&(p+=a+(t?":"+t:"")+"@"),p+=bf(i),null!==o&&(p+=":"+o)):"file"==n&&(p+="//"),p+=e.cannotBeABaseURL?r[0]:r.length?"/"+Ym(r,"/"):"",null!==s&&(p+="?"+s),null!==c&&(p+="#"+c),p},setHref:function(e){var n=this.parse(e);if(n)throw Dm(n);this.searchParams.update()},getOrigin:function(){var e=this.scheme,n=this.port;if("blob"==e)try{return new Qf(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+bf(this.host)+(null!==n?":"+n:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(Tm(e)+":",Rf)},getUsername:function(){return this.username},setUsername:function(e){var n=Pm(Tm(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var a=0;a<n.length;a++)this.username+=jf(n[a],kf)}},getPassword:function(){return this.password},setPassword:function(e){var n=Pm(Tm(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var a=0;a<n.length;a++)this.password+=jf(n[a],kf)}},getHost:function(){var e=this.host,n=this.port;return null===e?"":null===n?bf(e):bf(e)+":"+n},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Lf)},getHostname:function(){var e=this.host;return null===e?"":bf(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Bf)},getPort:function(){var e=this.port;return null===e?"":Tm(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=Tm(e))?this.port=null:this.parse(e,zf))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+Ym(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Gf))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=Tm(e))?this.query=null:("?"==Hm(e,0)&&(e=ef(e,1)),this.query="",this.parse(e,Yf)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=Tm(e))?("#"==Hm(e,0)&&(e=ef(e,1)),this.fragment="",this.parse(e,$f)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Qf=function(e){var n=Am(this,Kf),a=_m(arguments.length,1)>1?arguments[1]:void 0,t=Cm(n,new Jf(e,!1,a));xm||(n.href=t.serialize(),n.origin=t.getOrigin(),n.protocol=t.getProtocol(),n.username=t.getUsername(),n.password=t.getPassword(),n.host=t.getHost(),n.hostname=t.getHostname(),n.port=t.getPort(),n.pathname=t.getPathname(),n.search=t.getSearch(),n.searchParams=t.getSearchParams(),n.hash=t.getHash())},Kf=Qf.prototype,Xf=function(e,n){return{get:function(){return qm(this)[e]()},set:n&&function(e){return qm(this)[n](e)},configurable:!0,enumerable:!0}};if(xm&&(jm(Kf,"href",Xf("serialize","setHref")),jm(Kf,"origin",Xf("getOrigin")),jm(Kf,"protocol",Xf("getProtocol","setProtocol")),jm(Kf,"username",Xf("getUsername","setUsername")),jm(Kf,"password",Xf("getPassword","setPassword")),jm(Kf,"host",Xf("getHost","setHost")),jm(Kf,"hostname",Xf("getHostname","setHostname")),jm(Kf,"port",Xf("getPort","setPort")),jm(Kf,"pathname",Xf("getPathname","setPathname")),jm(Kf,"search",Xf("getSearch","setSearch")),jm(Kf,"searchParams",Xf("getSearchParams")),jm(Kf,"hash",Xf("getHash","setHash"))),km(Kf,"toJSON",(function(){return qm(this).serialize()}),{enumerable:!0}),km(Kf,"toString",(function(){return qm(this).serialize()}),{enumerable:!0}),zm){var Zf=zm.createObjectURL,ev=zm.revokeObjectURL;Zf&&km(Qf,"createObjectURL",ym(Zf,zm)),ev&&km(Qf,"revokeObjectURL",ym(ev,zm))}Um(Qf,"URL"),hm({global:!0,constructor:!0,forced:!bm,sham:!xm},{URL:Qf});var nv=Pu,av=te,tv=un,iv=qt,ov=co,rv=$([].push),sv=function(e){var n=1==e,a=2==e,t=3==e,i=4==e,o=6==e,r=7==e,s=5==e||o;return function(c,p,u,l){for(var d,m,f=tv(c),v=av(f),h=nv(p,u),x=iv(v),b=0,g=l||ov,y=n?g(c,x):a||r?g(c,0):void 0;x>b;b++)if((s||b in v)&&(m=h(d=v[b],b,f),e))if(n)y[b]=m;else if(m)switch(e){case 3:return!0;case 5:return d;case 6:return b;case 2:rv(y,d)}else switch(e){case 4:return!1;case 7:rv(y,d)}return o?-1:t||i?i:y}},cv={forEach:sv(0),map:sv(1),filter:sv(2),some:sv(3),every:sv(4),find:sv(5),findIndex:sv(6),filterReject:sv(7)},pv=cv.map;Si({target:"Array",proto:!0,forced:!mo("map")},{map:function(e){return pv(this,e,arguments.length>1?arguments[1]:void 0)}});var uv=function(e){var n=e.endpointName,a=e.guestSpaceId,t=e.preview,i=void 0!==a?"/guest/".concat(a):"",o=t?"/preview":"";return"/k".concat(i,"/v1").concat(o,"/").concat(n,".json")},lv=["endpointName"],dv=function(){function e(n,a){c(this,e),this.client=n,this.guestSpaceId=a,this.REQUESTS_LENGTH_LIMIT=20}return u(e,[{key:"send",value:function(e){var n=this,a=e.requests.map((function(e){if("endpointName"in e){var a=e.endpointName,i=b(e,lv);return t({api:n.buildPathWithGuestSpaceId({endpointName:a})},i)}return e})),i=this.buildPathWithGuestSpaceId({endpointName:"bulkRequest"});return this.client.post(i,{requests:a})}},{key:"buildPathWithGuestSpaceId",value:function(e){return uv(t(t({},e),{},{guestSpaceId:this.guestSpaceId}))}}]),e}(),mv=["preview"],fv=["preview"],vv=["preview"],hv=["preview"],xv=["preview"],bv=["preview"],gv=["preview"],yv=["preview"],wv=["preview"],kv=["preview"],jv=["preview"],Av=["preview"],Sv=["preview"],Ev=["preview"],Pv=function(){function e(n,a){c(this,e),this.client=n,this.guestSpaceId=a}var n;return u(e,[{key:"getFormFields",value:function(e){var n=e.preview,a=b(e,mv),i=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:n});return this.client.get(i,t({},a))}},{key:"addFormFields",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.post(n,e)}},{key:"updateFormFields",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.put(n,e)}},{key:"deleteFormFields",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.delete(n,e)}},{key:"getFormLayout",value:function(e){var n=e.preview,a=b(e,fv),i=this.buildPathWithGuestSpaceId({endpointName:"app/form/layout",preview:n});return this.client.get(i,t({},a))}},{key:"updateFormLayout",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"app/form/layout",preview:!0});return this.client.put(n,e)}},{key:"getViews",value:function(e){var n=e.preview,a=b(e,vv),t=this.buildPathWithGuestSpaceId({endpointName:"app/views",preview:n});return this.client.get(t,a)}},{key:"updateViews",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"app/views",preview:!0});return this.client.put(n,e)}},{key:"getApp",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"app"});return this.client.get(n,e)}},{key:"getApps",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"apps"});return this.client.get(n,e)}},{key:"addApp",value:(n=s(i().mark((function e(n){var a,o,r,s,c,p;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=n.name,o=n.space,r=this.buildPathWithGuestSpaceId({endpointName:"app",preview:!0}),!o){e.next=9;break}return s=this.buildPathWithGuestSpaceId({endpointName:"space"}),e.next=6,this.client.get(s,{id:o});case 6:return c=e.sent,p=c.defaultThread,e.abrupt("return",this.client.post(r,t(t({},n),{},{thread:p})));case 9:return e.abrupt("return",this.client.post(r,{name:a}));case 10:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"getAppSettings",value:function(e){var n=e.preview,a=b(e,hv),t=this.buildPathWithGuestSpaceId({endpointName:"app/settings",preview:n});return this.client.get(t,a)}},{key:"updateAppSettings",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"app/settings",preview:!0});return this.client.put(n,e)}},{key:"getProcessManagement",value:function(e){var n=e.preview,a=b(e,xv),t=this.buildPathWithGuestSpaceId({endpointName:"app/status",preview:n});return this.client.get(t,a)}},{key:"updateProcessManagement",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"app/status",preview:!0});return this.client.put(n,e)}},{key:"getDeployStatus",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"app/deploy",preview:!0});return this.client.get(n,e)}},{key:"deployApp",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"app/deploy",preview:!0});return this.client.post(n,e)}},{key:"getFieldAcl",value:function(e){var n=e.preview,a=b(e,bv),i=this.buildPathWithGuestSpaceId({endpointName:"field/acl",preview:n});return this.client.get(i,t({},a))}},{key:"updateFieldAcl",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"field/acl",preview:!0});return this.client.put(n,e)}},{key:"getAppAcl",value:function(e){var n=e.preview,a=b(e,gv),i=this.buildPathWithGuestSpaceId({endpointName:"app/acl",preview:n});return this.client.get(i,t({},a))}},{key:"updateAppAcl",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"app/acl",preview:!0});return this.client.put(n,e)}},{key:"evaluateRecordsAcl",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"records/acl/evaluate"});return this.client.get(n,e)}},{key:"getRecordAcl",value:function(e){var n=e.preview,a=b(e,yv),i=this.buildPathWithGuestSpaceId({endpointName:"record/acl",preview:n});return this.client.get(i,t({},a))}},{key:"updateRecordAcl",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"record/acl",preview:!0});return this.client.put(n,e)}},{key:"getAppCustomize",value:function(e){var n=e.preview,a=b(e,wv),i=this.buildPathWithGuestSpaceId({endpointName:"app/customize",preview:n});return this.client.get(i,t({},a))}},{key:"updateAppCustomize",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"app/customize",preview:!0});return this.client.put(n,e)}},{key:"getGeneralNotifications",value:function(e){var n=e.preview,a=b(e,kv),i=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/general",preview:n});return this.client.get(i,t({},a))}},{key:"updateGeneralNotifications",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/general",preview:!0});return this.client.put(n,e)}},{key:"getPerRecordNotifications",value:function(e){var n=e.preview,a=b(e,jv),t=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/perRecord",preview:n});return this.client.get(t,a)}},{key:"updatePerRecordNotifications",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/perRecord",preview:!0});return this.client.put(n,e)}},{key:"getReminderNotifications",value:function(e){var n=e.preview,a=b(e,Av),t=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/reminder",preview:n});return this.client.get(t,a)}},{key:"updateReminderNotifications",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/reminder",preview:!0});return this.client.put(n,e)}},{key:"getReports",value:function(e){var n=e.preview,a=b(e,Sv),t=this.buildPathWithGuestSpaceId({endpointName:"app/reports",preview:n});return this.client.get(t,a)}},{key:"updateReports",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"app/reports",preview:!0});return this.client.put(n,e)}},{key:"getAppActions",value:function(e){var n=e.preview,a=b(e,Ev),t=this.buildPathWithGuestSpaceId({endpointName:"app/actions",preview:n});return this.client.get(t,a)}},{key:"updateAppActions",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"app/actions",preview:!0});return this.client.put(n,e)}},{key:"buildPathWithGuestSpaceId",value:function(e){return uv(t(t({},e),{},{guestSpaceId:this.guestSpaceId}))}}]),e}(),Rv=Hu;Si({target:"Object",stat:!0,arity:2,forced:Object.assign!==Rv},{assign:Rv});var Ov=C,Iv=oa,Tv=ie,Uv=Ft,_v=dr,Nv=se,Fv=Ye,Cv=Hs,qv=rc;Ns("match",(function(e,n,a){return[function(n){var a=Nv(this),t=Tv(n)?void 0:Fv(n,e);return t?Ov(t,n,a):new RegExp(n)[e](_v(a))},function(e){var t=Iv(this),i=_v(e),o=a(n,t,i);if(o.done)return o.value;if(!t.global)return qv(t,i);var r=t.unicode;t.lastIndex=0;for(var s,c=[],p=0;null!==(s=qv(t,i));){var u=_v(s[0]);c[p]=u,""===u&&(t.lastIndex=Cv(i,Uv(t.lastIndex),r)),p++}return 0===p?null:c}]}));var Lv=O,Bv=fe,zv=xe,Dv=Mo,Mv=$(1..valueOf),Wv=se,Gv=dr,Hv=$("".replace),Vv="[\t\n\v\f\r                 \u2028\u2029\ufeff]",Yv=RegExp("^"+Vv+Vv+"*"),$v=RegExp(Vv+Vv+"*$"),Jv=function(e){return function(n){var a=Gv(Wv(n));return 1&e&&(a=Hv(a,Yv,"")),2&e&&(a=Hv(a,$v,"")),a}},Qv={start:Jv(1),end:Jv(2),trim:Jv(3)},Kv=Si,Xv=U,Zv=O,eh=Lv,nh=$,ah=xi,th=mn,ih=function(e,n,a){var t,i;return Dv&&Bv(t=n.constructor)&&t!==a&&zv(i=t.prototype)&&i!==a.prototype&&Dv(e,i),e},oh=ke,rh=Le,sh=Fn,ch=T,ph=At.f,uh=I.f,lh=ea.f,dh=Mv,mh=Qv.trim,fh="Number",vh=Zv.Number;eh.Number;var hh=vh.prototype,xh=Zv.TypeError,bh=nh("".slice),gh=nh("".charCodeAt),yh=function(e){var n=sh(e,"number");return"bigint"==typeof n?n:wh(n)},wh=function(e){var n,a,t,i,o,r,s,c,p=sh(e,"number");if(rh(p))throw xh("Cannot convert a Symbol value to a number");if("string"==typeof p&&p.length>2)if(p=mh(p),43===(n=gh(p,0))||45===n){if(88===(a=gh(p,2))||120===a)return NaN}else if(48===n){switch(gh(p,1)){case 66:case 98:t=2,i=49;break;case 79:case 111:t=8,i=55;break;default:return+p}for(r=(o=bh(p,2)).length,s=0;s<r;s++)if((c=gh(o,s))<48||c>i)return NaN;return parseInt(o,t)}return+p},kh=ah(fh,!vh(" 0o1")||!vh("0b1")||vh("+0x1")),jh=function(e){return oh(hh,e)&&ch((function(){dh(e)}))},Ah=function(e){var n=arguments.length<1?0:vh(yh(e));return jh(this)?ih(Object(n),this,Ah):n};Ah.prototype=hh,kh&&(hh.constructor=Ah),Kv({global:!0,constructor:!0,wrap:!0,forced:kh},{Number:Ah});kh&&function(e,n){for(var a,t=Xv?ph(n):"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(","),i=0;t.length>i;i++)th(n,a=t[i])&&!th(e,a)&&lh(e,a,uh(n,a))}(eh.Number,vh);var Sh=T,Eh=function(e,n){var a=[][e];return!!a&&Sh((function(){a.call(null,n||function(){return 1},1)}))},Ph=Si,Rh=Mt.indexOf,Oh=Eh,Ih=Ss([].indexOf),Th=!!Ih&&1/Ih([1],1,-0)<0;Ph({target:"Array",proto:!0,forced:Th||!Oh("indexOf")},{indexOf:function(e){var n=arguments.length>1?arguments[1]:void 0;return Th?Ih(this,e,n)||0:Rh(this,e,n)}});var Uh=cv.every;Si({target:"Array",proto:!0,forced:!Eh("every")},{every:function(e){return Uh(this,e,arguments.length>1?arguments[1]:void 0)}}),Si({target:"Array",stat:!0},{isArray:Pi});var _h=$([].slice),Nh=Si,Fh=Pi,Ch=no,qh=xe,Lh=Ut,Bh=qt,zh=ue,Dh=Ui,Mh=Pn,Wh=_h,Gh=mo("slice"),Hh=Mh("species"),Vh=Array,Yh=Math.max;Nh({target:"Array",proto:!0,forced:!Gh},{slice:function(e,n){var a,t,i,o=zh(this),r=Bh(o),s=Lh(e,r),c=Lh(void 0===n?r:n,r);if(Fh(o)&&(a=o.constructor,(Ch(a)&&(a===Vh||Fh(a.prototype))||qh(a)&&null===(a=a[Hh]))&&(a=void 0),a===Vh||void 0===a))return Wh(o,s,c);for(t=new(void 0===a?Vh:a)(Yh(c-s,0)),i=0;s<c;s++,i++)s in o&&Dh(t,i,o[s]);return t.length=i,t}});var $h=Ge,Jh=un,Qh=te,Kh=qt,Xh=TypeError,Zh=function(e){return function(n,a,t,i){$h(a);var o=Jh(n),r=Qh(o),s=Kh(o),c=e?s-1:0,p=e?-1:1;if(t<2)for(;;){if(c in r){i=r[c],c+=p;break}if(c+=p,e?c<0:s<=c)throw Xh("Reduce of empty array with no initial value")}for(;e?c>=0:s>c;c+=p)c in r&&(i=a(i,r[c],c,o));return i}},ex={left:Zh(!1),right:Zh(!0)},nx="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function ax(){throw new Error("setTimeout has not been defined")}function tx(){throw new Error("clearTimeout has not been defined")}var ix=ax,ox=tx;function rx(e){if(ix===setTimeout)return setTimeout(e,0);if((ix===ax||!ix)&&setTimeout)return ix=setTimeout,setTimeout(e,0);try{return ix(e,0)}catch(n){try{return ix.call(null,e,0)}catch(n){return ix.call(this,e,0)}}}"function"==typeof nx.setTimeout&&(ix=setTimeout),"function"==typeof nx.clearTimeout&&(ox=clearTimeout);var sx,cx=[],px=!1,ux=-1;function lx(){px&&sx&&(px=!1,sx.length?cx=sx.concat(cx):ux=-1,cx.length&&dx())}function dx(){if(!px){var e=rx(lx);px=!0;for(var n=cx.length;n;){for(sx=cx,cx=[];++ux<n;)sx&&sx[ux].run();ux=-1,n=cx.length}sx=null,px=!1,function(e){if(ox===clearTimeout)return clearTimeout(e);if((ox===tx||!ox)&&clearTimeout)return ox=clearTimeout,clearTimeout(e);try{ox(e)}catch(n){try{return ox.call(null,e)}catch(n){return ox.call(this,e)}}}(e)}}function mx(e,n){this.fun=e,this.array=n}mx.prototype.run=function(){this.fun.apply(null,this.array)};function fx(){}var vx=fx,hx=fx,xx=fx,bx=fx,gx=fx,yx=fx,wx=fx;var kx=nx.performance||{},jx=kx.now||kx.mozNow||kx.msNow||kx.oNow||kx.webkitNow||function(){return(new Date).getTime()};var Ax=new Date;var Sx={nextTick:function(e){var n=new Array(arguments.length-1);if(arguments.length>1)for(var a=1;a<arguments.length;a++)n[a-1]=arguments[a];cx.push(new mx(e,n)),1!==cx.length||px||rx(dx)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:vx,addListener:hx,once:xx,off:bx,removeListener:gx,removeAllListeners:yx,emit:wx,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var n=.001*jx.call(kx),a=Math.floor(n),t=Math.floor(n%1*1e9);return e&&(a-=e[0],(t-=e[1])<0&&(a--,t+=1e9)),[a,t]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Ax)/1e3}},Ex=void 0!==Sx&&"process"==X(Sx),Px=ex.left;Si({target:"Array",proto:!0,forced:!Ex&&Oe>79&&Oe<83||!Eh("reduce")},{reduce:function(e){var n=arguments.length;return Px(this,e,n,n>1?arguments[1]:void 0)}});var Rx=cv.forEach,Ox=Eh("forEach")?[].forEach:function(e){return Rx(this,e,arguments.length>1?arguments[1]:void 0)};Si({target:"Array",proto:!0,forced:[].forEach!=Ox},{forEach:Ox});var Ix=O,Tx=ru,Ux=pu,_x=Ox,Nx=ga,Fx=function(e){if(e&&e.forEach!==_x)try{Nx(e,"forEach",_x)}catch(n){e.forEach=_x}};for(var Cx in Tx)Tx[Cx]&&Fx(Ix[Cx]&&Ix[Cx].prototype);Fx(Ux);var qx=un,Lx=jr;Si({target:"Object",stat:!0,forced:T((function(){Lx(1)}))},{keys:function(e){return Lx(qx(e))}});var Bx,zx=function(e){d(a,e);var n=w(a);function a(e,t,i,o,r){var s;c(this,a);var p=i-t.length,u=a.extractErrorIndex(p,o,r),l=a.buildErrorMessage(p,i,u);return(s=n.call(this,l)).name="KintoneAllRecordsError",s.processedRecordsResult=e,s.unprocessedRecords=t,s.error=o,s.errorIndex=u,s.message=l,s.numOfProcessedRecords=p,s.numOfAllRecords=i,Object.setPrototypeOf(g(s),a.prototype),s}return u(a,null,[{key:"parseErrorIndex",value:function(e){var n=[];return Object.keys(e).forEach((function(e){var a=e.match(/records\[(\d+)\]/);a&&n.push(Number(a[1]))})),n.length>0?Math.min.apply(Math,n):null}},{key:"extractErrorIndex",value:function(e,n,t){if(void 0!==n.bulkRequestIndex&&n.errors){var i=a.parseErrorIndex(n.errors);if(null!==i)return e+n.bulkRequestIndex*t+i}}},{key:"buildErrorMessage",value:function(e,n,a){var t="";return void 0!==a&&(t="An error occurred at records[".concat(a,"]. ")),t+="".concat(e,"/").concat(n," records are processed successfully")}}]),a}(x(Error)),Dx=["condition","orderBy","withCursor"],Mx=["fields"],Wx=["condition"],Gx=["condition","orderBy"],Hx=function(){function e(n,a,t){c(this,e),this.client=n,this.bulkRequestClient=a,this.guestSpaceId=t,this.didWarnMaximumOffsetValue=!1}var n,a,o,r,p,d,m,f,v,h,x,g,y,w,j,A,S,E;return u(e,[{key:"getRecord",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.get(n,e)}},{key:"addRecord",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.post(n,e)}},{key:"updateRecord",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.put(n,e)}},{key:"upsertRecord",value:(E=s(i().mark((function e(n){var a,t,o,r,s,c,p;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=n.app,t=n.updateKey,o=n.record,e.next=3,this.getRecords({app:a,query:"".concat(t.field,' = "').concat(t.value,'"')});case 3:if(r=e.sent,!((s=r.records).length>0)){e.next=13;break}if("__ID__"!==s[0].$id.type){e.next=12;break}return e.next=9,this.updateRecord(n);case 9:return c=e.sent,p=c.revision,e.abrupt("return",{id:s[0].$id.value,revision:p});case 12:throw new Error("Missing `$id` in `getRecords` response. This error is likely caused by a bug in Kintone REST API Client. Please file an issue.");case 13:return e.abrupt("return",this.addRecord({app:a,record:Object.assign({},o,l({},t.field,{value:t.value}))}));case 14:case"end":return e.stop()}}),e,this)}))),function(e){return E.apply(this,arguments)})},{key:"getRecords",value:(S=s(i().mark((function e(n){var a,t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this.buildPathWithGuestSpaceId({endpointName:"records"}),e.next=3,this.client.get(a,n);case 3:return t=e.sent,this.warnMaximumOffsetValueIfNeeded(n.query),e.abrupt("return",t);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return S.apply(this,arguments)})},{key:"warnMaximumOffsetValueIfNeeded",value:function(e){if(e){var n=e.match(/offset\s+(\d+)/i);!this.didWarnMaximumOffsetValue&&n&&Number(n[1])>1e4&&(this.didWarnMaximumOffsetValue=!0,console.warn("Warning: The maximum offset value will be limited to 10,000 in the future. Please use `createCursor()` and `getRecordsByCursor()` instead."))}}},{key:"addRecords",value:(A=s(i().mark((function e(n){var a,t,o,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this.buildPathWithGuestSpaceId({endpointName:"records"}),e.next=3,this.client.post(a,n);case 3:return t=e.sent,o=t.ids,r=t.revisions,e.abrupt("return",{ids:o,revisions:r,records:o.map((function(e,n){return{id:e,revision:r[n]}}))});case 7:case"end":return e.stop()}}),e,this)}))),function(e){return A.apply(this,arguments)})},{key:"updateRecords",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"records"});return this.client.put(n,e)}},{key:"deleteRecords",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"records"});return this.client.delete(n,e)}},{key:"createCursor",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.post(n,e)}},{key:"getRecordsByCursor",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.get(n,e)}},{key:"deleteCursor",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.delete(n,e)}},{key:"getAllRecords",value:(j=s(i().mark((function e(n){var a,o,r,s,c,p,u;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=n.condition,o=n.orderBy,r=n.withCursor,s=void 0===r||r,c=b(n,Dx),o){e.next=3;break}return e.abrupt("return",this.getAllRecordsWithId(t(t({},c),{},{condition:a})));case 3:if(!s){e.next=7;break}return p=a?"".concat(a," "):"",u="".concat(p).concat(o?"order by ".concat(o):""),e.abrupt("return",this.getAllRecordsWithCursor(t(t({},c),{},{query:u})));case 7:return e.abrupt("return",this.getAllRecordsWithOffset(t(t({},c),{},{orderBy:o,condition:a})));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return j.apply(this,arguments)})},{key:"getAllRecordsWithId",value:(w=s(i().mark((function e(n){var a,o,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=n.fields,o=b(n,Mx),(r=a)&&r.length>0&&-1===r.indexOf("$id")&&(r=[].concat(k(r),["$id"])),e.abrupt("return",this.getAllRecordsRecursiveWithId(t(t({},o),{},{fields:r}),"0",[]));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return w.apply(this,arguments)})},{key:"getAllRecordsRecursiveWithId",value:(y=s(i().mark((function e(n,a,o){var r,s,c,p,u,l,d,m,f;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=500,s=n.condition,c=b(n,Wx),p=s?"(".concat(s,") and "):"",u="".concat(p,"$id > ").concat(a," order by $id asc limit ").concat(r),e.next=6,this.getRecords(t(t({},c),{},{query:u}));case 6:if(l=e.sent,d=o.concat(l.records),!(l.records.length<r)){e.next=10;break}return e.abrupt("return",d);case 10:if("__ID__"!==(m=l.records[l.records.length-1]).$id.type){e.next=14;break}return f=m.$id.value,e.abrupt("return",this.getAllRecordsRecursiveWithId(n,f,d));case 14:throw new Error("Missing `$id` in `getRecords` response. This error is likely caused by a bug in Kintone REST API Client. Please file an issue.");case 15:case"end":return e.stop()}}),e,this)}))),function(e,n,a){return y.apply(this,arguments)})},{key:"getAllRecordsWithOffset",value:(g=s(i().mark((function e(n){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAllRecordsRecursiveWithOffset(n,0,[]));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return g.apply(this,arguments)})},{key:"getAllRecordsRecursiveWithOffset",value:(x=s(i().mark((function e(n,a,o){var r,s,c,p,u,l,d,m;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=500,s=n.condition,c=n.orderBy,p=b(n,Gx),u=s?"".concat(s," "):"",l="".concat(u).concat(c?"order by ".concat(c," "):"","limit ").concat(r," offset ").concat(a),e.next=6,this.getRecords(t(t({},p),{},{query:l}));case 6:if(d=e.sent,m=o.concat(d.records),!(d.records.length<r)){e.next=10;break}return e.abrupt("return",m);case 10:return e.abrupt("return",this.getAllRecordsRecursiveWithOffset(n,a+r,m));case 11:case"end":return e.stop()}}),e,this)}))),function(e,n,a){return x.apply(this,arguments)})},{key:"getAllRecordsWithCursor",value:(h=s(i().mark((function e(n){var a,t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.createCursor(n);case 2:return a=e.sent,t=a.id,e.prev=4,e.next=7,this.getAllRecordsRecursiveByCursor(t,[]);case 7:return e.abrupt("return",e.sent);case 10:return e.prev=10,e.t0=e.catch(4),e.next=14,this.deleteCursor({id:t});case 14:throw e.t0;case 15:case"end":return e.stop()}}),e,this,[[4,10]])}))),function(e){return h.apply(this,arguments)})},{key:"getAllRecordsRecursiveByCursor",value:(v=s(i().mark((function e(n,a){var t,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getRecordsByCursor({id:n});case 2:if(t=e.sent,o=a.concat(t.records),!t.next){e.next=6;break}return e.abrupt("return",this.getAllRecordsRecursiveByCursor(n,o));case 6:return e.abrupt("return",o);case 7:case"end":return e.stop()}}),e,this)}))),function(e,n){return v.apply(this,arguments)})},{key:"addAllRecords",value:(f=s(i().mark((function e(n){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.records.every((function(e){return!Array.isArray(e)&&e instanceof Object}))){e.next=2;break}throw new Error("the `records` parameter must be an array of object.");case 2:return e.abrupt("return",this.addAllRecordsRecursive(n,n.records.length,[]));case 3:case"end":return e.stop()}}),e,this)}))),function(e){return f.apply(this,arguments)})},{key:"addAllRecordsRecursive",value:(m=s(i().mark((function e(n,a,t){var o,r,s,c,p;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,r=n.app,s=n.records,0!==(c=s.slice(0,o)).length){e.next=5;break}return e.abrupt("return",{records:t});case 5:return e.prev=5,e.next=8,this.addAllRecordsWithBulkRequest({app:r,records:c});case 8:p=e.sent,e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(5),new zx({records:t},s,a,e.t0,100);case 14:return e.abrupt("return",this.addAllRecordsRecursive({app:r,records:s.slice(o)},a,t.concat(p)));case 15:case"end":return e.stop()}}),e,this,[[5,11]])}))),function(e,n,a){return m.apply(this,arguments)})},{key:"addAllRecordsWithBulkRequest",value:(d=s(i().mark((function e(n){var a,t,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this.separateArrayRecursive(100,[],n.records),t=a.map((function(e){return{method:"POST",endpointName:"records",payload:{app:n.app,records:e}}})),e.next=4,this.bulkRequestClient.send({requests:t});case 4:return o=e.sent.results,e.abrupt("return",o.map((function(e){var n=e.ids,a=e.revisions;return n.map((function(e,n){return{id:e,revision:a[n]}}))})).reduce((function(e,n){return e.concat(n)}),[]));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return d.apply(this,arguments)})},{key:"updateAllRecords",value:(p=s(i().mark((function e(n){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.updateAllRecordsRecursive(n,n.records.length,[]));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return p.apply(this,arguments)})},{key:"updateAllRecordsRecursive",value:(r=s(i().mark((function e(n,a,t){var o,r,s,c,p;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,r=n.app,s=n.records,0!==(c=s.slice(0,o)).length){e.next=5;break}return e.abrupt("return",{records:t});case 5:return e.prev=5,e.next=8,this.updateAllRecordsWithBulkRequest({app:r,records:c});case 8:p=e.sent,e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(5),new zx({records:t},s,a,e.t0,100);case 14:return e.abrupt("return",this.updateAllRecordsRecursive({app:r,records:s.slice(o)},a,t.concat(p)));case 15:case"end":return e.stop()}}),e,this,[[5,11]])}))),function(e,n,a){return r.apply(this,arguments)})},{key:"updateAllRecordsWithBulkRequest",value:(o=s(i().mark((function e(n){var a,t,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this.separateArrayRecursive(100,[],n.records),t=a.map((function(e){return{method:"PUT",endpointName:"records",payload:{app:n.app,records:e}}})),e.next=4,this.bulkRequestClient.send({requests:t});case 4:return o=e.sent.results,e.abrupt("return",o.map((function(e){return e.records})).reduce((function(e,n){return e.concat(n)}),[]));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"deleteAllRecords",value:function(e){return this.deleteAllRecordsRecursive(e,e.records.length)}},{key:"deleteAllRecordsRecursive",value:(a=s(i().mark((function e(n,a){var t,o,r,s;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,o=n.app,r=n.records,0!==(s=r.slice(0,t)).length){e.next=5;break}return e.abrupt("return",{});case 5:return e.prev=5,e.next=8,this.deleteAllRecordsWithBulkRequest({app:o,records:s});case 8:e.next=13;break;case 10:throw e.prev=10,e.t0=e.catch(5),new zx({},r,a,e.t0,100);case 13:return e.abrupt("return",this.deleteAllRecordsRecursive({app:o,records:r.slice(t)},a));case 14:case"end":return e.stop()}}),e,this,[[5,10]])}))),function(e,n){return a.apply(this,arguments)})},{key:"deleteAllRecordsWithBulkRequest",value:(n=s(i().mark((function e(n){var a,t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this.separateArrayRecursive(100,[],n.records),t=a.map((function(e){return{method:"DELETE",endpointName:"records",payload:{app:n.app,ids:e.map((function(e){return e.id})),revisions:e.map((function(e){return e.revision}))}}})),e.next=4,this.bulkRequestClient.send({requests:t});case 4:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"separateArrayRecursive",value:function(e,n,a){var t=a.slice(0,e);return 0===t.length?n:this.separateArrayRecursive(e,[].concat(k(n),[t]),a.slice(e))}},{key:"addRecordComment",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"record/comment"});return this.client.post(n,e)}},{key:"deleteRecordComment",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"record/comment"});return this.client.delete(n,e)}},{key:"getRecordComments",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"record/comments"});return this.client.get(n,e)}},{key:"updateRecordAssignees",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"record/assignees"});return this.client.put(n,e)}},{key:"updateRecordStatus",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"record/status"});return this.client.put(n,e)}},{key:"updateRecordsStatus",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"records/status"});return this.client.put(n,e)}},{key:"buildPathWithGuestSpaceId",value:function(e){return uv(t(t({},e),{},{guestSpaceId:this.guestSpaceId}))}}]),e}(),Vx="object"==typeof self?self.FormData:window.FormData,Yx=function(){function e(n,a){c(this,e),this.client=n,this.guestSpaceId=a}var a;return u(e,[{key:"uploadFile",value:(a=s(i().mark((function e(a){var t,o,r,s,c,p,u,l,d;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.buildPathWithGuestSpaceId({endpointName:"file"}),o=new Vx,!("path"in a.file)){e.next=19;break}return e.prev=3,e.next=6,n.readFileFromPath(a.file.path);case 6:r=e.sent,s=r.name,c=r.data,o.append("file",c,s),e.next=17;break;case 12:if(e.prev=12,e.t0=e.catch(3),!(e.t0 instanceof Wo)){e.next=16;break}throw new Error("uploadFile doesn't allow to accept a file path in ".concat(e.t0.platform," environment."));case 16:throw e.t0;case 17:e.next=22;break;case 19:p=a.file,u=p.name,l=p.data,d=n.buildFormDataValue(l,u),o.append("file",d,u);case 22:return e.abrupt("return",this.client.postData(t,o));case 23:case"end":return e.stop()}}),e,this,[[3,12]])}))),function(e){return a.apply(this,arguments)})},{key:"downloadFile",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"file"});return this.client.getData(n,e)}},{key:"buildPathWithGuestSpaceId",value:function(e){return uv(t(t({},e),{},{guestSpaceId:this.guestSpaceId}))}}]),e}(),$x={},Jx={get exports(){return $x},set exports(e){$x=e}},Qx={},Kx={get exports(){return Qx},set exports(e){Qx=e}},Xx=function(e,n){return function(){for(var a=new Array(arguments.length),t=0;t<a.length;t++)a[t]=arguments[t];return e.apply(n,a)}},Zx=Xx,eb=Object.prototype.toString,nb=(Bx=Object.create(null),function(e){var n=eb.call(e);return Bx[n]||(Bx[n]=n.slice(8,-1).toLowerCase())});function ab(e){return e=e.toLowerCase(),function(n){return nb(n)===e}}function tb(e){return Array.isArray(e)}function ib(e){return void 0===e}var ob=ab("ArrayBuffer");function rb(e){return null!==e&&"object"==typeof e}function sb(e){if("object"!==nb(e))return!1;var n=Object.getPrototypeOf(e);return null===n||n===Object.prototype}var cb=ab("Date"),pb=ab("File"),ub=ab("Blob"),lb=ab("FileList");function db(e){return"[object Function]"===eb.call(e)}var mb=ab("URLSearchParams");function fb(e,n){if(null!=e)if("object"!=typeof e&&(e=[e]),tb(e))for(var a=0,t=e.length;a<t;a++)n.call(null,e[a],a,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.call(null,e[i],i,e)}var vb=function(e){return function(n){return e&&n instanceof e}}("undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array)),hb={isArray:tb,isArrayBuffer:ob,isBuffer:function(e){return null!==e&&!ib(e)&&null!==e.constructor&&!ib(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var n="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||eb.call(e)===n||db(e.toString)&&e.toString()===n)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ob(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:rb,isPlainObject:sb,isUndefined:ib,isDate:cb,isFile:pb,isBlob:ub,isFunction:db,isStream:function(e){return rb(e)&&db(e.pipe)},isURLSearchParams:mb,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:fb,merge:function e(){var n={};function a(a,t){sb(n[t])&&sb(a)?n[t]=e(n[t],a):sb(a)?n[t]=e({},a):tb(a)?n[t]=a.slice():n[t]=a}for(var t=0,i=arguments.length;t<i;t++)fb(arguments[t],a);return n},extend:function(e,n,a){return fb(n,(function(n,t){e[t]=a&&"function"==typeof n?Zx(n,a):n})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,n,a,t){e.prototype=Object.create(n.prototype,t),e.prototype.constructor=e,a&&Object.assign(e.prototype,a)},toFlatObject:function(e,n,a){var t,i,o,r={};n=n||{};do{for(i=(t=Object.getOwnPropertyNames(e)).length;i-- >0;)r[o=t[i]]||(n[o]=e[o],r[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!a||a(e,n))&&e!==Object.prototype);return n},kindOf:nb,kindOfTest:ab,endsWith:function(e,n,a){e=String(e),(void 0===a||a>e.length)&&(a=e.length),a-=n.length;var t=e.indexOf(n,a);return-1!==t&&t===a},toArray:function(e){if(!e)return null;var n=e.length;if(ib(n))return null;for(var a=new Array(n);n-- >0;)a[n]=e[n];return a},isTypedArray:vb,isFileList:lb},xb=hb;function bb(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var gb=function(e,n,a){if(!n)return e;var t;if(a)t=a(n);else if(xb.isURLSearchParams(n))t=n.toString();else{var i=[];xb.forEach(n,(function(e,n){null!=e&&(xb.isArray(e)?n+="[]":e=[e],xb.forEach(e,(function(e){xb.isDate(e)?e=e.toISOString():xb.isObject(e)&&(e=JSON.stringify(e)),i.push(bb(n)+"="+bb(e))})))})),t=i.join("&")}if(t){var o=e.indexOf("#");-1!==o&&(e=e.slice(0,o)),e+=(-1===e.indexOf("?")?"?":"&")+t}return e},yb=hb;function wb(){this.handlers=[]}wb.prototype.use=function(e,n,a){return this.handlers.push({fulfilled:e,rejected:n,synchronous:!!a&&a.synchronous,runWhen:a?a.runWhen:null}),this.handlers.length-1},wb.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},wb.prototype.forEach=function(e){yb.forEach(this.handlers,(function(n){null!==n&&e(n)}))};var kb,jb,Ab=wb,Sb=hb;function Eb(){if(jb)return kb;jb=1;var e=hb;function n(e,n,a,t,i){Error.call(this),this.message=e,this.name="AxiosError",n&&(this.code=n),a&&(this.config=a),t&&(this.request=t),i&&(this.response=i)}e.inherits(n,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var a=n.prototype,t={};return["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){t[e]={value:e}})),Object.defineProperties(n,t),Object.defineProperty(a,"isAxiosError",{value:!0}),n.from=function(t,i,o,r,s,c){var p=Object.create(a);return e.toFlatObject(t,p,(function(e){return e!==Error.prototype})),n.call(p,t.message,i,o,r,s),p.name=t.name,c&&Object.assign(p,c),p},kb=n}var Pb={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Rb=[],Ob=[],Ib="undefined"!=typeof Uint8Array?Uint8Array:Array,Tb=!1;function Ub(){Tb=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=0,a=e.length;n<a;++n)Rb[n]=e[n],Ob[e.charCodeAt(n)]=n;Ob["-".charCodeAt(0)]=62,Ob["_".charCodeAt(0)]=63}function _b(e,n,a){for(var t,i,o=[],r=n;r<a;r+=3)t=(e[r]<<16)+(e[r+1]<<8)+e[r+2],o.push(Rb[(i=t)>>18&63]+Rb[i>>12&63]+Rb[i>>6&63]+Rb[63&i]);return o.join("")}function Nb(e){var n;Tb||Ub();for(var a=e.length,t=a%3,i="",o=[],r=16383,s=0,c=a-t;s<c;s+=r)o.push(_b(e,s,s+r>c?c:s+r));return 1===t?(n=e[a-1],i+=Rb[n>>2],i+=Rb[n<<4&63],i+="=="):2===t&&(n=(e[a-2]<<8)+e[a-1],i+=Rb[n>>10],i+=Rb[n>>4&63],i+=Rb[n<<2&63],i+="="),o.push(i),o.join("")}function Fb(e,n,a,t,i){var o,r,s=8*i-t-1,c=(1<<s)-1,p=c>>1,u=-7,l=a?i-1:0,d=a?-1:1,m=e[n+l];for(l+=d,o=m&(1<<-u)-1,m>>=-u,u+=s;u>0;o=256*o+e[n+l],l+=d,u-=8);for(r=o&(1<<-u)-1,o>>=-u,u+=t;u>0;r=256*r+e[n+l],l+=d,u-=8);if(0===o)o=1-p;else{if(o===c)return r?NaN:1/0*(m?-1:1);r+=Math.pow(2,t),o-=p}return(m?-1:1)*r*Math.pow(2,o-t)}function Cb(e,n,a,t,i,o){var r,s,c,p=8*o-i-1,u=(1<<p)-1,l=u>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,m=t?0:o-1,f=t?1:-1,v=n<0||0===n&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(s=isNaN(n)?1:0,r=u):(r=Math.floor(Math.log(n)/Math.LN2),n*(c=Math.pow(2,-r))<1&&(r--,c*=2),(n+=r+l>=1?d/c:d*Math.pow(2,1-l))*c>=2&&(r++,c/=2),r+l>=u?(s=0,r=u):r+l>=1?(s=(n*c-1)*Math.pow(2,i),r+=l):(s=n*Math.pow(2,l-1)*Math.pow(2,i),r=0));i>=8;e[a+m]=255&s,m+=f,s/=256,i-=8);for(r=r<<i|s,p+=i;p>0;e[a+m]=255&r,m+=f,r/=256,p-=8);e[a+m-f]|=128*v}var qb={}.toString,Lb=Array.isArray||function(e){return"[object Array]"==qb.call(e)};function Bb(){return Db.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function zb(e,n){if(Bb()<n)throw new RangeError("Invalid typed array length");return Db.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(n)).__proto__=Db.prototype:(null===e&&(e=new Db(n)),e.length=n),e}function Db(e,n,a){if(!(Db.TYPED_ARRAY_SUPPORT||this instanceof Db))return new Db(e,n,a);if("number"==typeof e){if("string"==typeof n)throw new Error("If encoding is specified then the first argument must be a string");return Gb(this,e)}return Mb(this,e,n,a)}function Mb(e,n,a,t){if("number"==typeof n)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer?function(e,n,a,t){if(n.byteLength,a<0||n.byteLength<a)throw new RangeError("'offset' is out of bounds");if(n.byteLength<a+(t||0))throw new RangeError("'length' is out of bounds");n=void 0===a&&void 0===t?new Uint8Array(n):void 0===t?new Uint8Array(n,a):new Uint8Array(n,a,t);Db.TYPED_ARRAY_SUPPORT?(e=n).__proto__=Db.prototype:e=Hb(e,n);return e}(e,n,a,t):"string"==typeof n?function(e,n,a){"string"==typeof a&&""!==a||(a="utf8");if(!Db.isEncoding(a))throw new TypeError('"encoding" must be a valid string encoding');var t=0|$b(n,a),i=(e=zb(e,t)).write(n,a);i!==t&&(e=e.slice(0,i));return e}(e,n,a):function(e,n){if(Yb(n)){var a=0|Vb(n.length);return 0===(e=zb(e,a)).length||n.copy(e,0,0,a),e}if(n){if("undefined"!=typeof ArrayBuffer&&n.buffer instanceof ArrayBuffer||"length"in n)return"number"!=typeof n.length||(t=n.length)!=t?zb(e,0):Hb(e,n);if("Buffer"===n.type&&Lb(n.data))return Hb(e,n.data)}var t;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,n)}function Wb(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function Gb(e,n){if(Wb(n),e=zb(e,n<0?0:0|Vb(n)),!Db.TYPED_ARRAY_SUPPORT)for(var a=0;a<n;++a)e[a]=0;return e}function Hb(e,n){var a=n.length<0?0:0|Vb(n.length);e=zb(e,a);for(var t=0;t<a;t+=1)e[t]=255&n[t];return e}function Vb(e){if(e>=Bb())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Bb().toString(16)+" bytes");return 0|e}function Yb(e){return!(null==e||!e._isBuffer)}function $b(e,n){if(Yb(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var a=e.length;if(0===a)return 0;for(var t=!1;;)switch(n){case"ascii":case"latin1":case"binary":return a;case"utf8":case"utf-8":case void 0:return Pg(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*a;case"hex":return a>>>1;case"base64":return Rg(e).length;default:if(t)return Pg(e).length;n=(""+n).toLowerCase(),t=!0}}function Jb(e,n,a){var t=!1;if((void 0===n||n<0)&&(n=0),n>this.length)return"";if((void 0===a||a>this.length)&&(a=this.length),a<=0)return"";if((a>>>=0)<=(n>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return ug(this,n,a);case"utf8":case"utf-8":return rg(this,n,a);case"ascii":return cg(this,n,a);case"latin1":case"binary":return pg(this,n,a);case"base64":return og(this,n,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return lg(this,n,a);default:if(t)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),t=!0}}function Qb(e,n,a){var t=e[n];e[n]=e[a],e[a]=t}function Kb(e,n,a,t,i){if(0===e.length)return-1;if("string"==typeof a?(t=a,a=0):a>2147483647?a=2147483647:a<-2147483648&&(a=-2147483648),a=+a,isNaN(a)&&(a=i?0:e.length-1),a<0&&(a=e.length+a),a>=e.length){if(i)return-1;a=e.length-1}else if(a<0){if(!i)return-1;a=0}if("string"==typeof n&&(n=Db.from(n,t)),Yb(n))return 0===n.length?-1:Xb(e,n,a,t,i);if("number"==typeof n)return n&=255,Db.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,n,a):Uint8Array.prototype.lastIndexOf.call(e,n,a):Xb(e,[n],a,t,i);throw new TypeError("val must be string, number or Buffer")}function Xb(e,n,a,t,i){var o,r=1,s=e.length,c=n.length;if(void 0!==t&&("ucs2"===(t=String(t).toLowerCase())||"ucs-2"===t||"utf16le"===t||"utf-16le"===t)){if(e.length<2||n.length<2)return-1;r=2,s/=2,c/=2,a/=2}function p(e,n){return 1===r?e[n]:e.readUInt16BE(n*r)}if(i){var u=-1;for(o=a;o<s;o++)if(p(e,o)===p(n,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===c)return u*r}else-1!==u&&(o-=o-u),u=-1}else for(a+c>s&&(a=s-c),o=a;o>=0;o--){for(var l=!0,d=0;d<c;d++)if(p(e,o+d)!==p(n,d)){l=!1;break}if(l)return o}return-1}function Zb(e,n,a,t){a=Number(a)||0;var i=e.length-a;t?(t=Number(t))>i&&(t=i):t=i;var o=n.length;if(o%2!=0)throw new TypeError("Invalid hex string");t>o/2&&(t=o/2);for(var r=0;r<t;++r){var s=parseInt(n.substr(2*r,2),16);if(isNaN(s))return r;e[a+r]=s}return r}function eg(e,n,a,t){return Og(Pg(n,e.length-a),e,a,t)}function ng(e,n,a,t){return Og(function(e){for(var n=[],a=0;a<e.length;++a)n.push(255&e.charCodeAt(a));return n}(n),e,a,t)}function ag(e,n,a,t){return ng(e,n,a,t)}function tg(e,n,a,t){return Og(Rg(n),e,a,t)}function ig(e,n,a,t){return Og(function(e,n){for(var a,t,i,o=[],r=0;r<e.length&&!((n-=2)<0);++r)t=(a=e.charCodeAt(r))>>8,i=a%256,o.push(i),o.push(t);return o}(n,e.length-a),e,a,t)}function og(e,n,a){return 0===n&&a===e.length?Nb(e):Nb(e.slice(n,a))}function rg(e,n,a){a=Math.min(e.length,a);for(var t=[],i=n;i<a;){var o,r,s,c,p=e[i],u=null,l=p>239?4:p>223?3:p>191?2:1;if(i+l<=a)switch(l){case 1:p<128&&(u=p);break;case 2:128==(192&(o=e[i+1]))&&(c=(31&p)<<6|63&o)>127&&(u=c);break;case 3:o=e[i+1],r=e[i+2],128==(192&o)&&128==(192&r)&&(c=(15&p)<<12|(63&o)<<6|63&r)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:o=e[i+1],r=e[i+2],s=e[i+3],128==(192&o)&&128==(192&r)&&128==(192&s)&&(c=(15&p)<<18|(63&o)<<12|(63&r)<<6|63&s)>65535&&c<1114112&&(u=c)}null===u?(u=65533,l=1):u>65535&&(u-=65536,t.push(u>>>10&1023|55296),u=56320|1023&u),t.push(u),i+=l}return function(e){var n=e.length;if(n<=sg)return String.fromCharCode.apply(String,e);var a="",t=0;for(;t<n;)a+=String.fromCharCode.apply(String,e.slice(t,t+=sg));return a}(t)}Db.TYPED_ARRAY_SUPPORT=void 0===nx.TYPED_ARRAY_SUPPORT||nx.TYPED_ARRAY_SUPPORT,Bb(),Db.poolSize=8192,Db._augment=function(e){return e.__proto__=Db.prototype,e},Db.from=function(e,n,a){return Mb(null,e,n,a)},Db.TYPED_ARRAY_SUPPORT&&(Db.prototype.__proto__=Uint8Array.prototype,Db.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Db[Symbol.species]),Db.alloc=function(e,n,a){return function(e,n,a,t){return Wb(n),n<=0?zb(e,n):void 0!==a?"string"==typeof t?zb(e,n).fill(a,t):zb(e,n).fill(a):zb(e,n)}(null,e,n,a)},Db.allocUnsafe=function(e){return Gb(null,e)},Db.allocUnsafeSlow=function(e){return Gb(null,e)},Db.isBuffer=function(e){return null!=e&&(!!e._isBuffer||Ig(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&Ig(e.slice(0,0))}(e))},Db.compare=function(e,n){if(!Yb(e)||!Yb(n))throw new TypeError("Arguments must be Buffers");if(e===n)return 0;for(var a=e.length,t=n.length,i=0,o=Math.min(a,t);i<o;++i)if(e[i]!==n[i]){a=e[i],t=n[i];break}return a<t?-1:t<a?1:0},Db.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Db.concat=function(e,n){if(!Lb(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return Db.alloc(0);var a;if(void 0===n)for(n=0,a=0;a<e.length;++a)n+=e[a].length;var t=Db.allocUnsafe(n),i=0;for(a=0;a<e.length;++a){var o=e[a];if(!Yb(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(t,i),i+=o.length}return t},Db.byteLength=$b,Db.prototype._isBuffer=!0,Db.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<e;n+=2)Qb(this,n,n+1);return this},Db.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<e;n+=4)Qb(this,n,n+3),Qb(this,n+1,n+2);return this},Db.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<e;n+=8)Qb(this,n,n+7),Qb(this,n+1,n+6),Qb(this,n+2,n+5),Qb(this,n+3,n+4);return this},Db.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?rg(this,0,e):Jb.apply(this,arguments)},Db.prototype.equals=function(e){if(!Yb(e))throw new TypeError("Argument must be a Buffer");return this===e||0===Db.compare(this,e)},Db.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},Db.prototype.compare=function(e,n,a,t,i){if(!Yb(e))throw new TypeError("Argument must be a Buffer");if(void 0===n&&(n=0),void 0===a&&(a=e?e.length:0),void 0===t&&(t=0),void 0===i&&(i=this.length),n<0||a>e.length||t<0||i>this.length)throw new RangeError("out of range index");if(t>=i&&n>=a)return 0;if(t>=i)return-1;if(n>=a)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(t>>>=0),r=(a>>>=0)-(n>>>=0),s=Math.min(o,r),c=this.slice(t,i),p=e.slice(n,a),u=0;u<s;++u)if(c[u]!==p[u]){o=c[u],r=p[u];break}return o<r?-1:r<o?1:0},Db.prototype.includes=function(e,n,a){return-1!==this.indexOf(e,n,a)},Db.prototype.indexOf=function(e,n,a){return Kb(this,e,n,a,!0)},Db.prototype.lastIndexOf=function(e,n,a){return Kb(this,e,n,a,!1)},Db.prototype.write=function(e,n,a,t){if(void 0===n)t="utf8",a=this.length,n=0;else if(void 0===a&&"string"==typeof n)t=n,a=this.length,n=0;else{if(!isFinite(n))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");n|=0,isFinite(a)?(a|=0,void 0===t&&(t="utf8")):(t=a,a=void 0)}var i=this.length-n;if((void 0===a||a>i)&&(a=i),e.length>0&&(a<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");t||(t="utf8");for(var o=!1;;)switch(t){case"hex":return Zb(this,e,n,a);case"utf8":case"utf-8":return eg(this,e,n,a);case"ascii":return ng(this,e,n,a);case"latin1":case"binary":return ag(this,e,n,a);case"base64":return tg(this,e,n,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ig(this,e,n,a);default:if(o)throw new TypeError("Unknown encoding: "+t);t=(""+t).toLowerCase(),o=!0}},Db.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var sg=4096;function cg(e,n,a){var t="";a=Math.min(e.length,a);for(var i=n;i<a;++i)t+=String.fromCharCode(127&e[i]);return t}function pg(e,n,a){var t="";a=Math.min(e.length,a);for(var i=n;i<a;++i)t+=String.fromCharCode(e[i]);return t}function ug(e,n,a){var t=e.length;(!n||n<0)&&(n=0),(!a||a<0||a>t)&&(a=t);for(var i="",o=n;o<a;++o)i+=Eg(e[o]);return i}function lg(e,n,a){for(var t=e.slice(n,a),i="",o=0;o<t.length;o+=2)i+=String.fromCharCode(t[o]+256*t[o+1]);return i}function dg(e,n,a){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+n>a)throw new RangeError("Trying to access beyond buffer length")}function mg(e,n,a,t,i,o){if(!Yb(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>i||n<o)throw new RangeError('"value" argument is out of bounds');if(a+t>e.length)throw new RangeError("Index out of range")}function fg(e,n,a,t){n<0&&(n=65535+n+1);for(var i=0,o=Math.min(e.length-a,2);i<o;++i)e[a+i]=(n&255<<8*(t?i:1-i))>>>8*(t?i:1-i)}function vg(e,n,a,t){n<0&&(n=4294967295+n+1);for(var i=0,o=Math.min(e.length-a,4);i<o;++i)e[a+i]=n>>>8*(t?i:3-i)&255}function hg(e,n,a,t,i,o){if(a+t>e.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("Index out of range")}function xg(e,n,a,t,i){return i||hg(e,0,a,4),Cb(e,n,a,t,23,4),a+4}function bg(e,n,a,t,i){return i||hg(e,0,a,8),Cb(e,n,a,t,52,8),a+8}Db.prototype.slice=function(e,n){var a,t=this.length;if((e=~~e)<0?(e+=t)<0&&(e=0):e>t&&(e=t),(n=void 0===n?t:~~n)<0?(n+=t)<0&&(n=0):n>t&&(n=t),n<e&&(n=e),Db.TYPED_ARRAY_SUPPORT)(a=this.subarray(e,n)).__proto__=Db.prototype;else{var i=n-e;a=new Db(i,void 0);for(var o=0;o<i;++o)a[o]=this[o+e]}return a},Db.prototype.readUIntLE=function(e,n,a){e|=0,n|=0,a||dg(e,n,this.length);for(var t=this[e],i=1,o=0;++o<n&&(i*=256);)t+=this[e+o]*i;return t},Db.prototype.readUIntBE=function(e,n,a){e|=0,n|=0,a||dg(e,n,this.length);for(var t=this[e+--n],i=1;n>0&&(i*=256);)t+=this[e+--n]*i;return t},Db.prototype.readUInt8=function(e,n){return n||dg(e,1,this.length),this[e]},Db.prototype.readUInt16LE=function(e,n){return n||dg(e,2,this.length),this[e]|this[e+1]<<8},Db.prototype.readUInt16BE=function(e,n){return n||dg(e,2,this.length),this[e]<<8|this[e+1]},Db.prototype.readUInt32LE=function(e,n){return n||dg(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Db.prototype.readUInt32BE=function(e,n){return n||dg(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Db.prototype.readIntLE=function(e,n,a){e|=0,n|=0,a||dg(e,n,this.length);for(var t=this[e],i=1,o=0;++o<n&&(i*=256);)t+=this[e+o]*i;return t>=(i*=128)&&(t-=Math.pow(2,8*n)),t},Db.prototype.readIntBE=function(e,n,a){e|=0,n|=0,a||dg(e,n,this.length);for(var t=n,i=1,o=this[e+--t];t>0&&(i*=256);)o+=this[e+--t]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*n)),o},Db.prototype.readInt8=function(e,n){return n||dg(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Db.prototype.readInt16LE=function(e,n){n||dg(e,2,this.length);var a=this[e]|this[e+1]<<8;return 32768&a?4294901760|a:a},Db.prototype.readInt16BE=function(e,n){n||dg(e,2,this.length);var a=this[e+1]|this[e]<<8;return 32768&a?4294901760|a:a},Db.prototype.readInt32LE=function(e,n){return n||dg(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Db.prototype.readInt32BE=function(e,n){return n||dg(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Db.prototype.readFloatLE=function(e,n){return n||dg(e,4,this.length),Fb(this,e,!0,23,4)},Db.prototype.readFloatBE=function(e,n){return n||dg(e,4,this.length),Fb(this,e,!1,23,4)},Db.prototype.readDoubleLE=function(e,n){return n||dg(e,8,this.length),Fb(this,e,!0,52,8)},Db.prototype.readDoubleBE=function(e,n){return n||dg(e,8,this.length),Fb(this,e,!1,52,8)},Db.prototype.writeUIntLE=function(e,n,a,t){(e=+e,n|=0,a|=0,t)||mg(this,e,n,a,Math.pow(2,8*a)-1,0);var i=1,o=0;for(this[n]=255&e;++o<a&&(i*=256);)this[n+o]=e/i&255;return n+a},Db.prototype.writeUIntBE=function(e,n,a,t){(e=+e,n|=0,a|=0,t)||mg(this,e,n,a,Math.pow(2,8*a)-1,0);var i=a-1,o=1;for(this[n+i]=255&e;--i>=0&&(o*=256);)this[n+i]=e/o&255;return n+a},Db.prototype.writeUInt8=function(e,n,a){return e=+e,n|=0,a||mg(this,e,n,1,255,0),Db.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[n]=255&e,n+1},Db.prototype.writeUInt16LE=function(e,n,a){return e=+e,n|=0,a||mg(this,e,n,2,65535,0),Db.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8):fg(this,e,n,!0),n+2},Db.prototype.writeUInt16BE=function(e,n,a){return e=+e,n|=0,a||mg(this,e,n,2,65535,0),Db.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=255&e):fg(this,e,n,!1),n+2},Db.prototype.writeUInt32LE=function(e,n,a){return e=+e,n|=0,a||mg(this,e,n,4,4294967295,0),Db.TYPED_ARRAY_SUPPORT?(this[n+3]=e>>>24,this[n+2]=e>>>16,this[n+1]=e>>>8,this[n]=255&e):vg(this,e,n,!0),n+4},Db.prototype.writeUInt32BE=function(e,n,a){return e=+e,n|=0,a||mg(this,e,n,4,4294967295,0),Db.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e):vg(this,e,n,!1),n+4},Db.prototype.writeIntLE=function(e,n,a,t){if(e=+e,n|=0,!t){var i=Math.pow(2,8*a-1);mg(this,e,n,a,i-1,-i)}var o=0,r=1,s=0;for(this[n]=255&e;++o<a&&(r*=256);)e<0&&0===s&&0!==this[n+o-1]&&(s=1),this[n+o]=(e/r>>0)-s&255;return n+a},Db.prototype.writeIntBE=function(e,n,a,t){if(e=+e,n|=0,!t){var i=Math.pow(2,8*a-1);mg(this,e,n,a,i-1,-i)}var o=a-1,r=1,s=0;for(this[n+o]=255&e;--o>=0&&(r*=256);)e<0&&0===s&&0!==this[n+o+1]&&(s=1),this[n+o]=(e/r>>0)-s&255;return n+a},Db.prototype.writeInt8=function(e,n,a){return e=+e,n|=0,a||mg(this,e,n,1,127,-128),Db.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[n]=255&e,n+1},Db.prototype.writeInt16LE=function(e,n,a){return e=+e,n|=0,a||mg(this,e,n,2,32767,-32768),Db.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8):fg(this,e,n,!0),n+2},Db.prototype.writeInt16BE=function(e,n,a){return e=+e,n|=0,a||mg(this,e,n,2,32767,-32768),Db.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=255&e):fg(this,e,n,!1),n+2},Db.prototype.writeInt32LE=function(e,n,a){return e=+e,n|=0,a||mg(this,e,n,4,2147483647,-2147483648),Db.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8,this[n+2]=e>>>16,this[n+3]=e>>>24):vg(this,e,n,!0),n+4},Db.prototype.writeInt32BE=function(e,n,a){return e=+e,n|=0,a||mg(this,e,n,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Db.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e):vg(this,e,n,!1),n+4},Db.prototype.writeFloatLE=function(e,n,a){return xg(this,e,n,!0,a)},Db.prototype.writeFloatBE=function(e,n,a){return xg(this,e,n,!1,a)},Db.prototype.writeDoubleLE=function(e,n,a){return bg(this,e,n,!0,a)},Db.prototype.writeDoubleBE=function(e,n,a){return bg(this,e,n,!1,a)},Db.prototype.copy=function(e,n,a,t){if(a||(a=0),t||0===t||(t=this.length),n>=e.length&&(n=e.length),n||(n=0),t>0&&t<a&&(t=a),t===a)return 0;if(0===e.length||0===this.length)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(a<0||a>=this.length)throw new RangeError("sourceStart out of bounds");if(t<0)throw new RangeError("sourceEnd out of bounds");t>this.length&&(t=this.length),e.length-n<t-a&&(t=e.length-n+a);var i,o=t-a;if(this===e&&a<n&&n<t)for(i=o-1;i>=0;--i)e[i+n]=this[i+a];else if(o<1e3||!Db.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+n]=this[i+a];else Uint8Array.prototype.set.call(e,this.subarray(a,a+o),n);return o},Db.prototype.fill=function(e,n,a,t){if("string"==typeof e){if("string"==typeof n?(t=n,n=0,a=this.length):"string"==typeof a&&(t=a,a=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==t&&"string"!=typeof t)throw new TypeError("encoding must be a string");if("string"==typeof t&&!Db.isEncoding(t))throw new TypeError("Unknown encoding: "+t)}else"number"==typeof e&&(e&=255);if(n<0||this.length<n||this.length<a)throw new RangeError("Out of range index");if(a<=n)return this;var o;if(n>>>=0,a=void 0===a?this.length:a>>>0,e||(e=0),"number"==typeof e)for(o=n;o<a;++o)this[o]=e;else{var r=Yb(e)?e:Pg(new Db(e,t).toString()),s=r.length;for(o=0;o<a-n;++o)this[o+n]=r[o%s]}return this};var gg,yg,wg,kg,jg,Ag,Sg=/[^+\/0-9A-Za-z-_]/g;function Eg(e){return e<16?"0"+e.toString(16):e.toString(16)}function Pg(e,n){var a;n=n||1/0;for(var t=e.length,i=null,o=[],r=0;r<t;++r){if((a=e.charCodeAt(r))>55295&&a<57344){if(!i){if(a>56319){(n-=3)>-1&&o.push(239,191,189);continue}if(r+1===t){(n-=3)>-1&&o.push(239,191,189);continue}i=a;continue}if(a<56320){(n-=3)>-1&&o.push(239,191,189),i=a;continue}a=65536+(i-55296<<10|a-56320)}else i&&(n-=3)>-1&&o.push(239,191,189);if(i=null,a<128){if((n-=1)<0)break;o.push(a)}else if(a<2048){if((n-=2)<0)break;o.push(a>>6|192,63&a|128)}else if(a<65536){if((n-=3)<0)break;o.push(a>>12|224,a>>6&63|128,63&a|128)}else{if(!(a<1114112))throw new Error("Invalid code point");if((n-=4)<0)break;o.push(a>>18|240,a>>12&63|128,a>>6&63|128,63&a|128)}}return o}function Rg(e){return function(e){var n,a,t,i,o,r;Tb||Ub();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[s-2]?2:"="===e[s-1]?1:0,r=new Ib(3*s/4-o),t=o>0?s-4:s;var c=0;for(n=0,a=0;n<t;n+=4,a+=3)i=Ob[e.charCodeAt(n)]<<18|Ob[e.charCodeAt(n+1)]<<12|Ob[e.charCodeAt(n+2)]<<6|Ob[e.charCodeAt(n+3)],r[c++]=i>>16&255,r[c++]=i>>8&255,r[c++]=255&i;return 2===o?(i=Ob[e.charCodeAt(n)]<<2|Ob[e.charCodeAt(n+1)]>>4,r[c++]=255&i):1===o&&(i=Ob[e.charCodeAt(n)]<<10|Ob[e.charCodeAt(n+1)]<<4|Ob[e.charCodeAt(n+2)]>>2,r[c++]=i>>8&255,r[c++]=255&i),r}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(Sg,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Og(e,n,a,t){for(var i=0;i<t&&!(i+a>=n.length||i>=e.length);++i)n[i+a]=e[i];return i}function Ig(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function Tg(){if(yg)return gg;yg=1;var e=hb;return gg=function(n,a){a=a||new FormData;var t=[];function i(n){return null===n?"":e.isDate(n)?n.toISOString():e.isArrayBuffer(n)||e.isTypedArray(n)?"function"==typeof Blob?new Blob([n]):Db.from(n):n}return function n(o,r){if(e.isPlainObject(o)||e.isArray(o)){if(-1!==t.indexOf(o))throw Error("Circular reference detected in "+r);t.push(o),e.forEach(o,(function(t,o){if(!e.isUndefined(t)){var s,c=r?r+"."+o:o;if(t&&!r&&"object"==typeof t)if(e.endsWith(o,"{}"))t=JSON.stringify(t);else if(e.endsWith(o,"[]")&&(s=e.toArray(t)))return void s.forEach((function(n){!e.isUndefined(n)&&a.append(c,i(n))}));n(t,c)}})),t.pop()}else a.append(r,i(o))}(n),a},gg}function Ug(){if(kg)return wg;kg=1;var e=Eb();return wg=function(n,a,t){var i=t.config.validateStatus;t.status&&i&&!i(t.status)?a(new e("Request failed with status code "+t.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t)):n(t)},wg}function _g(){if(Ag)return jg;Ag=1;var e=hb;return jg=e.isStandardBrowserEnv()?{write:function(n,a,t,i,o,r){var s=[];s.push(n+"="+encodeURIComponent(a)),e.isNumber(t)&&s.push("expires="+new Date(t).toGMTString()),e.isString(i)&&s.push("path="+i),e.isString(o)&&s.push("domain="+o),!0===r&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var n=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},jg}var Ng,Fg,Cg,qg,Lg,Bg,zg,Dg,Mg,Wg,Gg,Hg,Vg=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)},Yg=function(e,n){return n?e.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):e},$g=function(e,n){return e&&!Vg(n)?Yg(e,n):n};function Jg(){if(Fg)return Ng;Fg=1;var e=hb,n=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return Ng=function(a){var t,i,o,r={};return a?(e.forEach(a.split("\n"),(function(a){if(o=a.indexOf(":"),t=e.trim(a.substr(0,o)).toLowerCase(),i=e.trim(a.substr(o+1)),t){if(r[t]&&n.indexOf(t)>=0)return;r[t]="set-cookie"===t?(r[t]?r[t]:[]).concat([i]):r[t]?r[t]+", "+i:i}})),r):r}}function Qg(){if(qg)return Cg;qg=1;var e=hb;return Cg=e.isStandardBrowserEnv()?function(){var n,a=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");function i(e){var n=e;return a&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=i(window.location.href),function(a){var t=e.isString(a)?i(a):a;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0}}function Kg(){if(Bg)return Lg;Bg=1;var e=Eb();function n(n){e.call(this,null==n?"canceled":n,e.ERR_CANCELED),this.name="CanceledError"}return hb.inherits(n,e,{__CANCEL__:!0}),Lg=n}function Xg(){return Dg||(Dg=1,zg=function(e){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}),zg}function Zg(){if(Wg)return Mg;Wg=1;var e=hb,n=Ug(),a=_g(),t=gb,i=$g,o=Jg(),r=Qg(),s=Pb,c=Eb(),p=Kg(),u=Xg();return Mg=function(l){return new Promise((function(d,m){var f,v=l.data,h=l.headers,x=l.responseType;function b(){l.cancelToken&&l.cancelToken.unsubscribe(f),l.signal&&l.signal.removeEventListener("abort",f)}e.isFormData(v)&&e.isStandardBrowserEnv()&&delete h["Content-Type"];var g=new XMLHttpRequest;if(l.auth){var y=l.auth.username||"",w=l.auth.password?unescape(encodeURIComponent(l.auth.password)):"";h.Authorization="Basic "+btoa(y+":"+w)}var k=i(l.baseURL,l.url);function j(){if(g){var e="getAllResponseHeaders"in g?o(g.getAllResponseHeaders()):null,a={data:x&&"text"!==x&&"json"!==x?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:e,config:l,request:g};n((function(e){d(e),b()}),(function(e){m(e),b()}),a),g=null}}if(g.open(l.method.toUpperCase(),t(k,l.params,l.paramsSerializer),!0),g.timeout=l.timeout,"onloadend"in g?g.onloadend=j:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(j)},g.onabort=function(){g&&(m(new c("Request aborted",c.ECONNABORTED,l,g)),g=null)},g.onerror=function(){m(new c("Network Error",c.ERR_NETWORK,l,g,g)),g=null},g.ontimeout=function(){var e=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded",n=l.transitional||s;l.timeoutErrorMessage&&(e=l.timeoutErrorMessage),m(new c(e,n.clarifyTimeoutError?c.ETIMEDOUT:c.ECONNABORTED,l,g)),g=null},e.isStandardBrowserEnv()){var A=(l.withCredentials||r(k))&&l.xsrfCookieName?a.read(l.xsrfCookieName):void 0;A&&(h[l.xsrfHeaderName]=A)}"setRequestHeader"in g&&e.forEach(h,(function(e,n){void 0===v&&"content-type"===n.toLowerCase()?delete h[n]:g.setRequestHeader(n,e)})),e.isUndefined(l.withCredentials)||(g.withCredentials=!!l.withCredentials),x&&"json"!==x&&(g.responseType=l.responseType),"function"==typeof l.onDownloadProgress&&g.addEventListener("progress",l.onDownloadProgress),"function"==typeof l.onUploadProgress&&g.upload&&g.upload.addEventListener("progress",l.onUploadProgress),(l.cancelToken||l.signal)&&(f=function(e){g&&(m(!e||e&&e.type?new p:e),g.abort(),g=null)},l.cancelToken&&l.cancelToken.subscribe(f),l.signal&&(l.signal.aborted?f():l.signal.addEventListener("abort",f))),v||(v=null);var S=u(k);S&&-1===["http","https","file"].indexOf(S)?m(new c("Unsupported protocol "+S+":",c.ERR_BAD_REQUEST,l)):g.send(v)}))},Mg}var ey=hb,ny=function(e,n){Sb.forEach(e,(function(a,t){t!==n&&t.toUpperCase()===n.toUpperCase()&&(e[n]=a,delete e[t])}))},ay=Eb(),ty=Pb,iy=Tg(),oy={"Content-Type":"application/x-www-form-urlencoded"};function ry(e,n){!ey.isUndefined(e)&&ey.isUndefined(e["Content-Type"])&&(e["Content-Type"]=n)}var sy,cy={transitional:ty,adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==Sx&&"[object process]"===Object.prototype.toString.call(Sx))&&(sy=Zg()),sy),transformRequest:[function(e,n){if(ny(n,"Accept"),ny(n,"Content-Type"),ey.isFormData(e)||ey.isArrayBuffer(e)||ey.isBuffer(e)||ey.isStream(e)||ey.isFile(e)||ey.isBlob(e))return e;if(ey.isArrayBufferView(e))return e.buffer;if(ey.isURLSearchParams(e))return ry(n,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var a,t=ey.isObject(e),i=n&&n["Content-Type"];if((a=ey.isFileList(e))||t&&"multipart/form-data"===i){var o=this.env&&this.env.FormData;return iy(a?{"files[]":e}:e,o&&new o)}return t||"application/json"===i?(ry(n,"application/json"),function(e,n,a){if(ey.isString(e))try{return(n||JSON.parse)(e),ey.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(a||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var n=this.transitional||cy.transitional,a=n&&n.silentJSONParsing,t=n&&n.forcedJSONParsing,i=!a&&"json"===this.responseType;if(i||t&&ey.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw ay.from(e,ay.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Hg?Gg:(Hg=1,Gg=null)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};ey.forEach(["delete","get","head"],(function(e){cy.headers[e]={}})),ey.forEach(["post","put","patch"],(function(e){cy.headers[e]=ey.merge(oy)}));var py,uy,ly=cy,dy=hb,my=ly;function fy(){return uy?py:(uy=1,py=function(e){return!(!e||!e.__CANCEL__)})}var vy=hb,hy=function(e,n,a){var t=this||my;return dy.forEach(a,(function(a){e=a.call(t,e,n)})),e},xy=fy(),by=ly,gy=Kg();function yy(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new gy}var wy,ky,jy=hb,Ay=function(e,n){n=n||{};var a={};function t(e,n){return jy.isPlainObject(e)&&jy.isPlainObject(n)?jy.merge(e,n):jy.isPlainObject(n)?jy.merge({},n):jy.isArray(n)?n.slice():n}function i(a){return jy.isUndefined(n[a])?jy.isUndefined(e[a])?void 0:t(void 0,e[a]):t(e[a],n[a])}function o(e){if(!jy.isUndefined(n[e]))return t(void 0,n[e])}function r(a){return jy.isUndefined(n[a])?jy.isUndefined(e[a])?void 0:t(void 0,e[a]):t(void 0,n[a])}function s(a){return a in n?t(e[a],n[a]):a in e?t(void 0,e[a]):void 0}var c={url:o,method:o,data:o,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:s};return jy.forEach(Object.keys(e).concat(Object.keys(n)),(function(e){var n=c[e]||i,t=n(e);jy.isUndefined(t)&&n!==s||(a[e]=t)})),a};function Sy(){return ky?wy:(ky=1,wy={version:"0.27.2"})}var Ey=Sy().version,Py=Eb(),Ry={};["object","boolean","number","function","string","symbol"].forEach((function(e,n){Ry[e]=function(a){return typeof a===e||"a"+(n<1?"n ":" ")+e}}));var Oy={};Ry.transitional=function(e,n,a){function t(e,n){return"[Axios v"+Ey+"] Transitional option '"+e+"'"+n+(a?". "+a:"")}return function(a,i,o){if(!1===e)throw new Py(t(i," has been removed"+(n?" in "+n:"")),Py.ERR_DEPRECATED);return n&&!Oy[i]&&(Oy[i]=!0,console.warn(t(i," has been deprecated since v"+n+" and will be removed in the near future"))),!e||e(a,i,o)}};var Iy,Ty,Uy,_y,Ny,Fy,Cy={assertOptions:function(e,n,a){if("object"!=typeof e)throw new Py("options must be an object",Py.ERR_BAD_OPTION_VALUE);for(var t=Object.keys(e),i=t.length;i-- >0;){var o=t[i],r=n[o];if(r){var s=e[o],c=void 0===s||r(s,o,e);if(!0!==c)throw new Py("option "+o+" must be "+c,Py.ERR_BAD_OPTION_VALUE)}else if(!0!==a)throw new Py("Unknown option "+o,Py.ERR_BAD_OPTION)}},validators:Ry},qy=hb,Ly=gb,By=Ab,zy=function(e){return yy(e),e.headers=e.headers||{},e.data=hy.call(e,e.data,e.headers,e.transformRequest),e.headers=vy.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),vy.forEach(["delete","get","head","post","put","patch","common"],(function(n){delete e.headers[n]})),(e.adapter||by.adapter)(e).then((function(n){return yy(e),n.data=hy.call(e,n.data,n.headers,e.transformResponse),n}),(function(n){return xy(n)||(yy(e),n&&n.response&&(n.response.data=hy.call(e,n.response.data,n.response.headers,e.transformResponse))),Promise.reject(n)}))},Dy=Ay,My=$g,Wy=Cy,Gy=Wy.validators;function Hy(e){this.defaults=e,this.interceptors={request:new By,response:new By}}Hy.prototype.request=function(e,n){"string"==typeof e?(n=n||{}).url=e:n=e||{},(n=Dy(this.defaults,n)).method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var a=n.transitional;void 0!==a&&Wy.assertOptions(a,{silentJSONParsing:Gy.transitional(Gy.boolean),forcedJSONParsing:Gy.transitional(Gy.boolean),clarifyTimeoutError:Gy.transitional(Gy.boolean)},!1);var t=[],i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(n)||(i=i&&e.synchronous,t.unshift(e.fulfilled,e.rejected))}));var o,r=[];if(this.interceptors.response.forEach((function(e){r.push(e.fulfilled,e.rejected)})),!i){var s=[zy,void 0];for(Array.prototype.unshift.apply(s,t),s=s.concat(r),o=Promise.resolve(n);s.length;)o=o.then(s.shift(),s.shift());return o}for(var c=n;t.length;){var p=t.shift(),u=t.shift();try{c=p(c)}catch(e){u(e);break}}try{o=zy(c)}catch(e){return Promise.reject(e)}for(;r.length;)o=o.then(r.shift(),r.shift());return o},Hy.prototype.getUri=function(e){e=Dy(this.defaults,e);var n=My(e.baseURL,e.url);return Ly(n,e.params,e.paramsSerializer)},qy.forEach(["delete","get","head","options"],(function(e){Hy.prototype[e]=function(n,a){return this.request(Dy(a||{},{method:e,url:n,data:(a||{}).data}))}})),qy.forEach(["post","put","patch"],(function(e){function n(n){return function(a,t,i){return this.request(Dy(i||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:t}))}}Hy.prototype[e]=n(),Hy.prototype[e+"Form"]=n(!0)}));var Vy=hb,Yy=Xx,$y=Hy,Jy=Ay;var Qy=function e(n){var a=new $y(n),t=Yy($y.prototype.request,a);return Vy.extend(t,$y.prototype,a),Vy.extend(t,a),t.create=function(a){return e(Jy(n,a))},t}(ly);Qy.Axios=$y,Qy.CanceledError=Kg(),Qy.CancelToken=function(){if(Ty)return Iy;Ty=1;var e=Kg();function n(n){if("function"!=typeof n)throw new TypeError("executor must be a function.");var a;this.promise=new Promise((function(e){a=e}));var t=this;this.promise.then((function(e){if(t._listeners){var n,a=t._listeners.length;for(n=0;n<a;n++)t._listeners[n](e);t._listeners=null}})),this.promise.then=function(e){var n,a=new Promise((function(e){t.subscribe(e),n=e})).then(e);return a.cancel=function(){t.unsubscribe(n)},a},n((function(n){t.reason||(t.reason=new e(n),a(t.reason))}))}return n.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},n.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},n.prototype.unsubscribe=function(e){if(this._listeners){var n=this._listeners.indexOf(e);-1!==n&&this._listeners.splice(n,1)}},n.source=function(){var e;return{token:new n((function(n){e=n})),cancel:e}},Iy=n}(),Qy.isCancel=fy(),Qy.VERSION=Sy().version,Qy.toFormData=Tg(),Qy.AxiosError=Eb(),Qy.Cancel=Qy.CanceledError,Qy.all=function(e){return Promise.all(e)},Qy.spread=_y?Uy:(_y=1,Uy=function(e){return function(n){return e.apply(null,n)}}),Qy.isAxiosError=function(){if(Fy)return Ny;Fy=1;var e=hb;return Ny=function(n){return e.isObject(n)&&!0===n.isAxiosError}}(),Kx.exports=Qy,Qx.default=Qy,function(e){e.exports=Qx}(Jx);var Ky=E($x),Xy=function(){function e(n){var a=n.responseHandler,t=n.requestConfigBuilder;c(this,e),this.responseHandler=a,this.requestConfigBuilder=t}var n,a,o,r,p,l;return u(e,[{key:"get",value:(l=s(i().mark((function e(n,a){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("get",n,a);case 2:return t=e.sent,e.next=5,this.sendRequest(t);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,n){return l.apply(this,arguments)})},{key:"getData",value:(p=s(i().mark((function e(n,a){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("get",n,a,{responseType:"arraybuffer"});case 2:return t=e.sent,e.next=5,this.sendRequest(t);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,n){return p.apply(this,arguments)})},{key:"post",value:(r=s(i().mark((function e(n,a){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("post",n,a);case 2:return t=e.sent,e.next=5,this.sendRequest(t);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,n){return r.apply(this,arguments)})},{key:"postData",value:(o=s(i().mark((function e(n,a){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("post",n,a);case 2:return t=e.sent,e.next=5,this.sendRequest(t);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,n){return o.apply(this,arguments)})},{key:"put",value:(a=s(i().mark((function e(n,a){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("put",n,a);case 2:return t=e.sent,e.next=5,this.sendRequest(t);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,n){return a.apply(this,arguments)})},{key:"delete",value:(n=s(i().mark((function e(n,a){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("delete",n,a);case 2:return t=e.sent,e.next=5,this.sendRequest(t);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,a){return n.apply(this,arguments)})},{key:"sendRequest",value:function(e){return this.responseHandler.handle(Ky(t(t({},e),{},{maxBodyLength:1/0,maxContentLength:1/0})))}}]),e}(),Zy=Si,ew=te,nw=ue,aw=Eh,tw=$([].join);Zy({target:"Array",proto:!0,forced:ew!=Object||!aw("join",",")},{join:function(e){return tw(nw(this),void 0===e?",":e)}});var iw,ow=S.Symbol,rw=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},n=Symbol("test"),a=Object(n);if("string"==typeof n)return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;if("[object Symbol]"!==Object.prototype.toString.call(a))return!1;for(n in e[n]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var t=Object.getOwnPropertySymbols(e);if(1!==t.length||t[0]!==n)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,n);if(42!==i.value||!0!==i.enumerable)return!1}return!0},sw=function(){return"function"==typeof ow&&("function"==typeof Symbol&&("symbol"==typeof ow("foo")&&("symbol"==typeof Symbol("bar")&&rw())))},cw="Function.prototype.bind called on incompatible ",pw=Array.prototype.slice,uw=Object.prototype.toString,lw="[object Function]",dw=function(e){var n=this;if("function"!=typeof n||uw.call(n)!==lw)throw new TypeError(cw+n);for(var a,t=pw.call(arguments,1),i=function(){if(this instanceof a){var i=n.apply(this,t.concat(pw.call(arguments)));return Object(i)===i?i:this}return n.apply(e,t.concat(pw.call(arguments)))},o=Math.max(0,n.length-t.length),r=[],s=0;s<o;s++)r.push("$"+s);if(a=Function("binder","return function ("+r.join(",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var c=function(){};c.prototype=n.prototype,a.prototype=new c,c.prototype=null}return a},mw=Function.prototype.bind||dw,fw=mw.call(Function.call,Object.prototype.hasOwnProperty),vw=SyntaxError,hw=Function,xw=TypeError,bw=function(e){try{return hw('"use strict"; return ('+e+").constructor;")()}catch(e){}},gw=Object.getOwnPropertyDescriptor;if(gw)try{gw({},"")}catch(e){gw=null}var yw,ww=function(){throw new xw},kw=gw?function(){try{return ww}catch(e){try{return gw(arguments,"callee").get}catch(e){return ww}}}():ww,jw=sw(),Aw=Object.getPrototypeOf||function(e){return e.__proto__},Sw={},Ew="undefined"==typeof Uint8Array?iw:Aw(Uint8Array),Pw={"%AggregateError%":"undefined"==typeof AggregateError?iw:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?iw:ArrayBuffer,"%ArrayIteratorPrototype%":jw?Aw([][Symbol.iterator]()):iw,"%AsyncFromSyncIteratorPrototype%":iw,"%AsyncFunction%":Sw,"%AsyncGenerator%":Sw,"%AsyncGeneratorFunction%":Sw,"%AsyncIteratorPrototype%":Sw,"%Atomics%":"undefined"==typeof Atomics?iw:Atomics,"%BigInt%":"undefined"==typeof BigInt?iw:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?iw:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?iw:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?iw:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?iw:FinalizationRegistry,"%Function%":hw,"%GeneratorFunction%":Sw,"%Int8Array%":"undefined"==typeof Int8Array?iw:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?iw:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?iw:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":jw?Aw(Aw([][Symbol.iterator]())):iw,"%JSON%":"object"==typeof JSON?JSON:iw,"%Map%":"undefined"==typeof Map?iw:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&jw?Aw((new Map)[Symbol.iterator]()):iw,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?iw:Promise,"%Proxy%":"undefined"==typeof Proxy?iw:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?iw:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?iw:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&jw?Aw((new Set)[Symbol.iterator]()):iw,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?iw:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":jw?Aw(""[Symbol.iterator]()):iw,"%Symbol%":jw?Symbol:iw,"%SyntaxError%":vw,"%ThrowTypeError%":kw,"%TypedArray%":Ew,"%TypeError%":xw,"%Uint8Array%":"undefined"==typeof Uint8Array?iw:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?iw:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?iw:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?iw:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?iw:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?iw:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?iw:WeakSet},Rw=function e(n){var a;if("%AsyncFunction%"===n)a=bw("async function () {}");else if("%GeneratorFunction%"===n)a=bw("function* () {}");else if("%AsyncGeneratorFunction%"===n)a=bw("async function* () {}");else if("%AsyncGenerator%"===n){var t=e("%AsyncGeneratorFunction%");t&&(a=t.prototype)}else if("%AsyncIteratorPrototype%"===n){var i=e("%AsyncGenerator%");i&&(a=Aw(i.prototype))}return Pw[n]=a,a},Ow={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Iw=mw,Tw=fw,Uw=Iw.call(Function.call,Array.prototype.concat),_w=Iw.call(Function.apply,Array.prototype.splice),Nw=Iw.call(Function.call,String.prototype.replace),Fw=Iw.call(Function.call,String.prototype.slice),Cw=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,qw=/\\(\\)?/g,Lw=function(e){var n=Fw(e,0,1),a=Fw(e,-1);if("%"===n&&"%"!==a)throw new vw("invalid intrinsic syntax, expected closing `%`");if("%"===a&&"%"!==n)throw new vw("invalid intrinsic syntax, expected opening `%`");var t=[];return Nw(e,Cw,(function(e,n,a,i){t[t.length]=a?Nw(i,qw,"$1"):n||e})),t},Bw=function(e,n){var a,t=e;if(Tw(Ow,t)&&(t="%"+(a=Ow[t])[0]+"%"),Tw(Pw,t)){var i=Pw[t];if(i===Sw&&(i=Rw(t)),void 0===i&&!n)throw new xw("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:t,value:i}}throw new vw("intrinsic "+e+" does not exist!")},zw=SyntaxError,Dw=Function,Mw=TypeError,Ww=function(e){try{return Function('"use strict"; return ('+e+").constructor;")()}catch(e){}},Gw=Object.getOwnPropertyDescriptor;if(Gw)try{Gw({},"")}catch(e){Gw=null}var Hw=function(){throw new Mw},Vw=Gw?function(){try{return Hw}catch(e){try{return Gw(arguments,"callee").get}catch(e){return Hw}}}():Hw,Yw=sw(),$w=Object.getPrototypeOf||function(e){return e.__proto__},Jw=Ww("async function* () {}"),Qw=Jw?Jw.prototype:yw,Kw=Qw?Qw.prototype:yw,Xw="undefined"==typeof Uint8Array?yw:$w(Uint8Array),Zw={"%AggregateError%":"undefined"==typeof AggregateError?yw:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?yw:ArrayBuffer,"%ArrayIteratorPrototype%":Yw?$w([][Symbol.iterator]()):yw,"%AsyncFromSyncIteratorPrototype%":yw,"%AsyncFunction%":Ww("async function () {}"),"%AsyncGenerator%":Qw,"%AsyncGeneratorFunction%":Jw,"%AsyncIteratorPrototype%":Kw?$w(Kw):yw,"%Atomics%":"undefined"==typeof Atomics?yw:Atomics,"%BigInt%":"undefined"==typeof BigInt?yw:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?yw:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?yw:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?yw:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?yw:FinalizationRegistry,"%Function%":Dw,"%GeneratorFunction%":Ww("function* () {}"),"%Int8Array%":"undefined"==typeof Int8Array?yw:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?yw:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?yw:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Yw?$w($w([][Symbol.iterator]())):yw,"%JSON%":"object"==typeof JSON?JSON:yw,"%Map%":"undefined"==typeof Map?yw:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Yw?$w((new Map)[Symbol.iterator]()):yw,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?yw:Promise,"%Proxy%":"undefined"==typeof Proxy?yw:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?yw:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?yw:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Yw?$w((new Set)[Symbol.iterator]()):yw,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?yw:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Yw?$w(""[Symbol.iterator]()):yw,"%Symbol%":Yw?Symbol:yw,"%SyntaxError%":zw,"%ThrowTypeError%":Vw,"%TypedArray%":Xw,"%TypeError%":Mw,"%Uint8Array%":"undefined"==typeof Uint8Array?yw:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?yw:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?yw:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?yw:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?yw:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?yw:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?yw:WeakSet},ek={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},nk=mw,ak=fw,tk=nk.call(Function.call,Array.prototype.concat),ik=nk.call(Function.apply,Array.prototype.splice),ok=nk.call(Function.call,String.prototype.replace),rk=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,sk=/\\(\\)?/g,ck=function(e){var n=[];return ok(e,rk,(function(e,a,t,i){n[n.length]=t?ok(i,sk,"$1"):a||e})),n},pk=function(e,n){var a,t=e;if(ak(ek,t)&&(t="%"+(a=ek[t])[0]+"%"),ak(Zw,t)){var i=Zw[t];if(void 0===i&&!n)throw new Mw("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:t,value:i}}throw new zw("intrinsic "+e+" does not exist!")},uk=function(e,n){if("string"!=typeof e||0===e.length)throw new Mw("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof n)throw new Mw('"allowMissing" argument must be a boolean');var a=ck(e),t=a.length>0?a[0]:"",i=pk("%"+t+"%",n),o=i.name,r=i.value,s=!1,c=i.alias;c&&(t=c[0],ik(a,tk([0,1],c)));for(var p=1,u=!0;p<a.length;p+=1){var l=a[p];if("constructor"!==l&&u||(s=!0),ak(Zw,o="%"+(t+="."+l)+"%"))r=Zw[o];else if(null!=r){if(Gw&&p+1>=a.length){var d=Gw(r,l);if(u=!!d,!n&&!(l in r))throw new Mw("base intrinsic for "+e+" exists, but the property is not available.");r=u&&"get"in d&&!("originalValue"in d.get)?d.get:r[l]}else u=ak(r,l),r=r[l];u&&!s&&(Zw[o]=r)}}return r},lk={};!function(e){var n=mw,a=uk,t=a("%Function.prototype.apply%"),i=a("%Function.prototype.call%"),o=a("%Reflect.apply%",!0)||n.call(i,t),r=a("%Object.defineProperty%",!0);if(r)try{r({},"a",{value:1})}catch(e){r=null}e.exports=function(){return o(n,i,arguments)};var s=function(){return o(n,t,arguments)};r?r(e.exports,"apply",{value:s}):e.exports.apply=s}({get exports(){return lk},set exports(e){lk=e}});var dk=uk,mk=lk,fk=mk(dk("String.prototype.indexOf")),vk=P(Object.freeze({__proto__:null,default:{}})),hk="function"==typeof Map&&Map.prototype,xk=Object.getOwnPropertyDescriptor&&hk?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,bk=hk&&xk&&"function"==typeof xk.get?xk.get:null,gk=hk&&Map.prototype.forEach,yk="function"==typeof Set&&Set.prototype,wk=Object.getOwnPropertyDescriptor&&yk?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,kk=yk&&wk&&"function"==typeof wk.get?wk.get:null,jk=yk&&Set.prototype.forEach,Ak="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Sk="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Ek=Boolean.prototype.valueOf,Pk=Object.prototype.toString,Rk=Function.prototype.toString,Ok=String.prototype.match,Ik="function"==typeof BigInt?BigInt.prototype.valueOf:null,Tk=Object.getOwnPropertySymbols,Uk="function"==typeof Symbol?Symbol.prototype.toString:null,_k=Object.prototype.propertyIsEnumerable,Nk=vk.custom,Fk=Nk&&Bk(Nk)?Nk:null;function Ck(e,n,a){var t="double"===(a.quoteStyle||n)?'"':"'";return t+e+t}function qk(e){return String(e).replace(/"/g,"&quot;")}function Lk(e){return"[object Array]"===Mk(e)}function Bk(e){return"[object Symbol]"===Mk(e)}var zk=Object.prototype.hasOwnProperty||function(e){return e in this};function Dk(e,n){return zk.call(e,n)}function Mk(e){return Pk.call(e)}function Wk(e,n){if(e.indexOf)return e.indexOf(n);for(var a=0,t=e.length;a<t;a++)if(e[a]===n)return a;return-1}function Gk(e,n){if(e.length>n.maxStringLength){var a=e.length-n.maxStringLength,t="... "+a+" more character"+(a>1?"s":"");return Gk(e.slice(0,n.maxStringLength),n)+t}return Ck(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,Hk),"single",n)}function Hk(e){var n=e.charCodeAt(0),a={8:"b",9:"t",10:"n",12:"f",13:"r"}[n];return a?"\\"+a:"\\x"+(n<16?"0":"")+n.toString(16).toUpperCase()}function Vk(e){return"Object("+e+")"}function Yk(e){return e+" { ? }"}function $k(e,n,a,t){return e+" ("+n+") {"+(t?Jk(a,t):a.join(", "))+"}"}function Jk(e,n){if(0===e.length)return"";var a="\n"+n.prev+n.base;return a+e.join(","+a)+"\n"+n.prev}function Qk(e,n){var a=Lk(e),t=[];if(a){t.length=e.length;for(var i=0;i<e.length;i++)t[i]=Dk(e,i)?n(e[i],e):""}for(var o in e)Dk(e,o)&&(a&&String(Number(o))===o&&o<e.length||(/[^\w$]/.test(o)?t.push(n(o,e)+": "+n(e[o],e)):t.push(o+": "+n(e[o],e))));if("function"==typeof Tk)for(var r=Tk(e),s=0;s<r.length;s++)_k.call(e,r[s])&&t.push("["+n(r[s])+"]: "+n(e[r[s]],e));return t}var Kk=function(e,n){if("string"!=typeof e||0===e.length)throw new xw("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof n)throw new xw('"allowMissing" argument must be a boolean');var a=Lw(e),t=a.length>0?a[0]:"",i=Bw("%"+t+"%",n),o=i.name,r=i.value,s=!1,c=i.alias;c&&(t=c[0],_w(a,Uw([0,1],c)));for(var p=1,u=!0;p<a.length;p+=1){var l=a[p],d=Fw(l,0,1),m=Fw(l,-1);if(('"'===d||"'"===d||"`"===d||'"'===m||"'"===m||"`"===m)&&d!==m)throw new vw("property names with quotes must have matching quotes");if("constructor"!==l&&u||(s=!0),Tw(Pw,o="%"+(t+="."+l)+"%"))r=Pw[o];else if(null!=r){if(!(l in r)){if(!n)throw new xw("base intrinsic for "+e+" exists, but the property is not available.");return}if(gw&&p+1>=a.length){var f=gw(r,l);r=(u=!!f)&&"get"in f&&!("originalValue"in f.get)?f.get:r[l]}else u=Tw(r,l),r=r[l];u&&!s&&(Pw[o]=r)}}return r},Xk=function(e,n){var a=dk(e,!!n);return"function"==typeof a&&fk(e,".prototype.")>-1?mk(a):a},Zk=function e(n,a,t,i){var o=a||{};if(Dk(o,"quoteStyle")&&"single"!==o.quoteStyle&&"double"!==o.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Dk(o,"maxStringLength")&&("number"==typeof o.maxStringLength?o.maxStringLength<0&&o.maxStringLength!==1/0:null!==o.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var r=!Dk(o,"customInspect")||o.customInspect;if("boolean"!=typeof r)throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(Dk(o,"indent")&&null!==o.indent&&"\t"!==o.indent&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===n)return"undefined";if(null===n)return"null";if("boolean"==typeof n)return n?"true":"false";if("string"==typeof n)return Gk(n,o);if("number"==typeof n)return 0===n?1/0/n>0?"0":"-0":String(n);if("bigint"==typeof n)return String(n)+"n";var s=void 0===o.depth?5:o.depth;if(void 0===t&&(t=0),t>=s&&s>0&&"object"==typeof n)return Lk(n)?"[Array]":"[Object]";var c=function(e,n){var a;if("\t"===e.indent)a="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;a=Array(e.indent+1).join(" ")}return{base:a,prev:Array(n+1).join(a)}}(o,t);if(void 0===i)i=[];else if(Wk(i,n)>=0)return"[Circular]";function p(n,a,r){if(a&&(i=i.slice()).push(a),r){var s={depth:o.depth};return Dk(o,"quoteStyle")&&(s.quoteStyle=o.quoteStyle),e(n,s,t+1,i)}return e(n,o,t+1,i)}if("function"==typeof n){var u=function(e){if(e.name)return e.name;var n=Ok.call(Rk.call(e),/^function\s*([\w$]+)/);if(n)return n[1];return null}(n),l=Qk(n,p);return"[Function"+(u?": "+u:" (anonymous)")+"]"+(l.length>0?" { "+l.join(", ")+" }":"")}if(Bk(n)){var d=Uk.call(n);return"object"==typeof n?Vk(d):d}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(n)){for(var m="<"+String(n.nodeName).toLowerCase(),f=n.attributes||[],v=0;v<f.length;v++)m+=" "+f[v].name+"="+Ck(qk(f[v].value),"double",o);return m+=">",n.childNodes&&n.childNodes.length&&(m+="..."),m+="</"+String(n.nodeName).toLowerCase()+">"}if(Lk(n)){if(0===n.length)return"[]";var h=Qk(n,p);return c&&!function(e){for(var n=0;n<e.length;n++)if(Wk(e[n],"\n")>=0)return!1;return!0}(h)?"["+Jk(h,c)+"]":"[ "+h.join(", ")+" ]"}if(function(e){return"[object Error]"===Mk(e)}(n)){var x=Qk(n,p);return 0===x.length?"["+String(n)+"]":"{ ["+String(n)+"] "+x.join(", ")+" }"}if("object"==typeof n&&r){if(Fk&&"function"==typeof n[Fk])return n[Fk]();if("function"==typeof n.inspect)return n.inspect()}if(function(e){if(!bk||!e||"object"!=typeof e)return!1;try{bk.call(e);try{kk.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(n)){var b=[];return gk.call(n,(function(e,a){b.push(p(a,n,!0)+" => "+p(e,n))})),$k("Map",bk.call(n),b,c)}if(function(e){if(!kk||!e||"object"!=typeof e)return!1;try{kk.call(e);try{bk.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(n)){var g=[];return jk.call(n,(function(e){g.push(p(e,n))})),$k("Set",kk.call(n),g,c)}if(function(e){if(!Ak||!e||"object"!=typeof e)return!1;try{Ak.call(e,Ak);try{Sk.call(e,Sk)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(n))return Yk("WeakMap");if(function(e){if(!Sk||!e||"object"!=typeof e)return!1;try{Sk.call(e,Sk);try{Ak.call(e,Ak)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(n))return Yk("WeakSet");if(function(e){return"[object Number]"===Mk(e)}(n))return Vk(p(Number(n)));if(function(e){return"[object BigInt]"===Mk(e)}(n))return Vk(p(Ik.call(n)));if(function(e){return"[object Boolean]"===Mk(e)}(n))return Vk(Ek.call(n));if(function(e){return"[object String]"===Mk(e)}(n))return Vk(p(String(n)));if(!function(e){return"[object Date]"===Mk(e)}(n)&&!function(e){return"[object RegExp]"===Mk(e)}(n)){var y=Qk(n,p);return 0===y.length?"{}":c?"{"+Jk(y,c)+"}":"{ "+y.join(", ")+" }"}return String(n)},ej=Kk("%TypeError%"),nj=Kk("%WeakMap%",!0),aj=Kk("%Map%",!0),tj=Xk("WeakMap.prototype.get",!0),ij=Xk("WeakMap.prototype.set",!0),oj=Xk("WeakMap.prototype.has",!0),rj=Xk("Map.prototype.get",!0),sj=Xk("Map.prototype.set",!0),cj=Xk("Map.prototype.has",!0),pj=function(e,n){for(var a,t=e;null!==(a=t.next);t=a)if(a.key===n)return t.next=a.next,a.next=e.next,e.next=a,a},uj=String.prototype.replace,lj=/%20/g,dj="RFC3986",mj={default:dj,formatters:{RFC1738:function(e){return uj.call(e,lj,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:dj},fj=mj,vj=Object.prototype.hasOwnProperty,hj=Array.isArray,xj=function(){for(var e=[],n=0;n<256;++n)e.push("%"+((n<16?"0":"")+n.toString(16)).toUpperCase());return e}(),bj=function(e,n){for(var a=n&&n.plainObjects?Object.create(null):{},t=0;t<e.length;++t)void 0!==e[t]&&(a[t]=e[t]);return a},gj={arrayToObject:bj,assign:function(e,n){return Object.keys(n).reduce((function(e,a){return e[a]=n[a],e}),e)},combine:function(e,n){return[].concat(e,n)},compact:function(e){for(var n=[{obj:{o:e},prop:"o"}],a=[],t=0;t<n.length;++t)for(var i=n[t],o=i.obj[i.prop],r=Object.keys(o),s=0;s<r.length;++s){var c=r[s],p=o[c];"object"==typeof p&&null!==p&&-1===a.indexOf(p)&&(n.push({obj:o,prop:c}),a.push(p))}return function(e){for(;e.length>1;){var n=e.pop(),a=n.obj[n.prop];if(hj(a)){for(var t=[],i=0;i<a.length;++i)void 0!==a[i]&&t.push(a[i]);n.obj[n.prop]=t}}}(n),e},decode:function(e,n,a){var t=e.replace(/\+/g," ");if("iso-8859-1"===a)return t.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(t)}catch(e){return t}},encode:function(e,n,a,t,i){if(0===e.length)return e;var o=e;if("symbol"==typeof e?o=Symbol.prototype.toString.call(e):"string"!=typeof e&&(o=String(e)),"iso-8859-1"===a)return escape(o).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var r="",s=0;s<o.length;++s){var c=o.charCodeAt(s);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||i===fj.RFC1738&&(40===c||41===c)?r+=o.charAt(s):c<128?r+=xj[c]:c<2048?r+=xj[192|c>>6]+xj[128|63&c]:c<55296||c>=57344?r+=xj[224|c>>12]+xj[128|c>>6&63]+xj[128|63&c]:(s+=1,c=65536+((1023&c)<<10|1023&o.charCodeAt(s)),r+=xj[240|c>>18]+xj[128|c>>12&63]+xj[128|c>>6&63]+xj[128|63&c])}return r},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,n){if(hj(e)){for(var a=[],t=0;t<e.length;t+=1)a.push(n(e[t]));return a}return n(e)},merge:function e(n,a,t){if(!a)return n;if("object"!=typeof a){if(hj(n))n.push(a);else{if(!n||"object"!=typeof n)return[n,a];(t&&(t.plainObjects||t.allowPrototypes)||!vj.call(Object.prototype,a))&&(n[a]=!0)}return n}if(!n||"object"!=typeof n)return[n].concat(a);var i=n;return hj(n)&&!hj(a)&&(i=bj(n,t)),hj(n)&&hj(a)?(a.forEach((function(a,i){if(vj.call(n,i)){var o=n[i];o&&"object"==typeof o&&a&&"object"==typeof a?n[i]=e(o,a,t):n.push(a)}else n[i]=a})),n):Object.keys(a).reduce((function(n,i){var o=a[i];return vj.call(n,i)?n[i]=e(n[i],o,t):n[i]=o,n}),i)}},yj=function(){var e,n,a,t={assert:function(e){if(!t.has(e))throw new ej("Side channel does not contain "+Zk(e))},get:function(t){if(nj&&t&&("object"==typeof t||"function"==typeof t)){if(e)return tj(e,t)}else if(aj){if(n)return rj(n,t)}else if(a)return function(e,n){var a=pj(e,n);return a&&a.value}(a,t)},has:function(t){if(nj&&t&&("object"==typeof t||"function"==typeof t)){if(e)return oj(e,t)}else if(aj){if(n)return cj(n,t)}else if(a)return function(e,n){return!!pj(e,n)}(a,t);return!1},set:function(t,i){nj&&t&&("object"==typeof t||"function"==typeof t)?(e||(e=new nj),ij(e,t,i)):aj?(n||(n=new aj),sj(n,t,i)):(a||(a={key:{},next:null}),function(e,n,a){var t=pj(e,n);t?t.value=a:e.next={key:n,next:e.next,value:a}}(a,t,i))}};return t},wj=gj,kj=mj,jj=Object.prototype.hasOwnProperty,Aj={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,n){return e+"["+n+"]"},repeat:function(e){return e}},Sj=Array.isArray,Ej=String.prototype.split,Pj=Array.prototype.push,Rj=function(e,n){Pj.apply(e,Sj(n)?n:[n])},Oj=Date.prototype.toISOString,Ij=kj.default,Tj={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:wj.encode,encodeValuesOnly:!1,format:Ij,formatter:kj.formatters[Ij],indices:!1,serializeDate:function(e){return Oj.call(e)},skipNulls:!1,strictNullHandling:!1},Uj={},_j=function e(n,a,t,i,o,r,s,c,p,u,l,d,m,f,v){for(var h,x=n,b=v,g=0,y=!1;void 0!==(b=b.get(Uj))&&!y;){var w=b.get(n);if(g+=1,void 0!==w){if(w===g)throw new RangeError("Cyclic object value");y=!0}void 0===b.get(Uj)&&(g=0)}if("function"==typeof s?x=s(a,x):x instanceof Date?x=u(x):"comma"===t&&Sj(x)&&(x=wj.maybeMap(x,(function(e){return e instanceof Date?u(e):e}))),null===x){if(i)return r&&!m?r(a,Tj.encoder,f,"key",l):a;x=""}if("string"==typeof(h=x)||"number"==typeof h||"boolean"==typeof h||"symbol"==typeof h||"bigint"==typeof h||wj.isBuffer(x)){if(r){var k=m?a:r(a,Tj.encoder,f,"key",l);if("comma"===t&&m){for(var j=Ej.call(String(x),","),A="",S=0;S<j.length;++S)A+=(0===S?"":",")+d(r(j[S],Tj.encoder,f,"value",l));return[d(k)+(Sj(x)&&1===j.length?"[]":"")+"="+A]}return[d(k)+"="+d(r(x,Tj.encoder,f,"value",l))]}return[d(a)+"="+d(String(x))]}var E,P=[];if(void 0===x)return P;if("comma"===t&&Sj(x))E=[{value:x.length>0?x.join(",")||null:void 0}];else if(Sj(s))E=s;else{var R=Object.keys(x);E=c?R.sort(c):R}for(var O="comma"===t&&Sj(x)&&1===x.length?a+"[]":a,I=0;I<E.length;++I){var T=E[I],U="object"==typeof T&&void 0!==T.value?T.value:x[T];if(!o||null!==U){var _=Sj(x)?"function"==typeof t?t(O,T):O:O+(p?"."+T:"["+T+"]");v.set(n,g);var N=yj();N.set(Uj,v),Rj(P,e(U,_,t,i,o,r,s,c,p,u,l,d,m,f,N))}}return P},Nj=gj,Fj=Object.prototype.hasOwnProperty,Cj=Array.isArray,qj={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Nj.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Lj=function(e){return e.replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(parseInt(n,10))}))},Bj=function(e,n){return e&&"string"==typeof e&&n.comma&&e.indexOf(",")>-1?e.split(","):e},zj=function(e,n,a,t){if(e){var i=a.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,r=a.depth>0&&/(\[[^[\]]*])/.exec(i),s=r?i.slice(0,r.index):i,c=[];if(s){if(!a.plainObjects&&Fj.call(Object.prototype,s)&&!a.allowPrototypes)return;c.push(s)}for(var p=0;a.depth>0&&null!==(r=o.exec(i))&&p<a.depth;){if(p+=1,!a.plainObjects&&Fj.call(Object.prototype,r[1].slice(1,-1))&&!a.allowPrototypes)return;c.push(r[1])}return r&&c.push("["+i.slice(r.index)+"]"),function(e,n,a,t){for(var i=t?n:Bj(n,a),o=e.length-1;o>=0;--o){var r,s=e[o];if("[]"===s&&a.parseArrays)r=[].concat(i);else{r=a.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,p=parseInt(c,10);a.parseArrays||""!==c?!isNaN(p)&&s!==c&&String(p)===c&&p>=0&&a.parseArrays&&p<=a.arrayLimit?(r=[])[p]=i:"__proto__"!==c&&(r[c]=i):r={0:i}}i=r}return i}(c,n,a,t)}},Dj=function(e,n){var a,t=e,i=function(e){if(!e)return Tj;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var n=e.charset||Tj.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var a=kj.default;if(void 0!==e.format){if(!jj.call(kj.formatters,e.format))throw new TypeError("Unknown format option provided.");a=e.format}var t=kj.formatters[a],i=Tj.filter;return("function"==typeof e.filter||Sj(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:Tj.addQueryPrefix,allowDots:void 0===e.allowDots?Tj.allowDots:!!e.allowDots,charset:n,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Tj.charsetSentinel,delimiter:void 0===e.delimiter?Tj.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:Tj.encode,encoder:"function"==typeof e.encoder?e.encoder:Tj.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:Tj.encodeValuesOnly,filter:i,format:a,formatter:t,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:Tj.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:Tj.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Tj.strictNullHandling}}(n);"function"==typeof i.filter?t=(0,i.filter)("",t):Sj(i.filter)&&(a=i.filter);var o,r=[];if("object"!=typeof t||null===t)return"";o=n&&n.arrayFormat in Aj?n.arrayFormat:n&&"indices"in n?n.indices?"indices":"repeat":"indices";var s=Aj[o];a||(a=Object.keys(t)),i.sort&&a.sort(i.sort);for(var c=yj(),p=0;p<a.length;++p){var u=a[p];i.skipNulls&&null===t[u]||Rj(r,_j(t[u],u,s,i.strictNullHandling,i.skipNulls,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,c))}var l=r.join(i.delimiter),d=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?d+="utf8=%26%2310003%3B&":d+="utf8=%E2%9C%93&"),l.length>0?d+l:""},Mj=function(e,n){var a=function(e){if(!e)return qj;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=void 0===e.charset?qj.charset:e.charset;return{allowDots:void 0===e.allowDots?qj.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:qj.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:qj.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:qj.arrayLimit,charset:n,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:qj.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:qj.comma,decoder:"function"==typeof e.decoder?e.decoder:qj.decoder,delimiter:"string"==typeof e.delimiter||Nj.isRegExp(e.delimiter)?e.delimiter:qj.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:qj.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:qj.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:qj.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:qj.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:qj.strictNullHandling}}(n);if(""===e||null==e)return a.plainObjects?Object.create(null):{};for(var t="string"==typeof e?function(e,n){var a,t={},i=n.ignoreQueryPrefix?e.replace(/^\?/,""):e,o=n.parameterLimit===1/0?void 0:n.parameterLimit,r=i.split(n.delimiter,o),s=-1,c=n.charset;if(n.charsetSentinel)for(a=0;a<r.length;++a)0===r[a].indexOf("utf8=")&&("utf8=%E2%9C%93"===r[a]?c="utf-8":"utf8=%26%2310003%3B"===r[a]&&(c="iso-8859-1"),s=a,a=r.length);for(a=0;a<r.length;++a)if(a!==s){var p,u,l=r[a],d=l.indexOf("]="),m=-1===d?l.indexOf("="):d+1;-1===m?(p=n.decoder(l,qj.decoder,c,"key"),u=n.strictNullHandling?null:""):(p=n.decoder(l.slice(0,m),qj.decoder,c,"key"),u=Nj.maybeMap(Bj(l.slice(m+1),n),(function(e){return n.decoder(e,qj.decoder,c,"value")}))),u&&n.interpretNumericEntities&&"iso-8859-1"===c&&(u=Lj(u)),l.indexOf("[]=")>-1&&(u=Cj(u)?[u]:u),Fj.call(t,p)?t[p]=Nj.combine(t[p],u):t[p]=u}return t}(e,a):e,i=a.plainObjects?Object.create(null):{},o=Object.keys(t),r=0;r<o.length;++r){var s=o[r],c=zj(s,t[s],a,"string"==typeof e);i=Nj.merge(i,c,a)}return!0===a.allowSparse?i:Nj.compact(i)},Wj={formats:mj,parse:Mj,stringify:Dj};const Gj="function"==typeof btoa,Hj="function"==typeof Buffer,Vj=("function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder?new TextEncoder:void 0),Yj=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),$j=((e=>{let n={};e.forEach(((e,a)=>n[e]=a))})(Yj),String.fromCharCode.bind(String)),Jj=("function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array),e=>e.replace(/=/g,"").replace(/[+\/]/g,(e=>"+"==e?"-":"_"))),Qj=e=>{let n,a,t,i,o="";const r=e.length%3;for(let r=0;r<e.length;){if((a=e.charCodeAt(r++))>255||(t=e.charCodeAt(r++))>255||(i=e.charCodeAt(r++))>255)throw new TypeError("invalid character found");n=a<<16|t<<8|i,o+=Yj[n>>18&63]+Yj[n>>12&63]+Yj[n>>6&63]+Yj[63&n]}return r?o.slice(0,r-3)+"===".substring(r):o},Kj=Gj?e=>btoa(e):Hj?e=>Buffer.from(e,"binary").toString("base64"):Qj,Xj=Hj?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let a=0,t=e.length;a<t;a+=4096)n.push($j.apply(null,e.subarray(a,a+4096)));return Kj(n.join(""))},Zj=e=>{if(e.length<2)return(n=e.charCodeAt(0))<128?e:n<2048?$j(192|n>>>6)+$j(128|63&n):$j(224|n>>>12&15)+$j(128|n>>>6&63)+$j(128|63&n);var n=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return $j(240|n>>>18&7)+$j(128|n>>>12&63)+$j(128|n>>>6&63)+$j(128|63&n)},eA=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,nA=e=>e.replace(eA,Zj),aA=Hj?e=>Buffer.from(e,"utf8").toString("base64"):Vj?e=>Xj(Vj.encode(e)):e=>Kj(nA(e)),tA=function(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n?Jj(aA(e)):aA(e)},iA=tA;var oA=function(){function e(n){if(c(this,e),this.baseUrl=n.baseUrl,this.auth=n.auth,this.headers=this.buildHeaders({basicAuth:n.basicAuth,userAgent:n.userAgent}),"httpsAgent"in n){if("clientCertAuth"in n)throw new Error("Cannot specify clientCertAuth along with httpsAgent.");this.httpsAgent=n.httpsAgent}else"clientCertAuth"in n&&(this.clientCertAuth=n.clientCertAuth);this.proxy=n.proxy,this.requestToken=null}var a,o,r;return u(e,[{key:"build",value:(r=s(i().mark((function e(a,o,r,s){var c,p,u,l;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c=t(t(t({method:a,headers:this.headers,url:"".concat(this.baseUrl).concat(o)},s||{}),n.buildPlatformDependentConfig({httpsAgent:this.httpsAgent,clientCertAuth:this.clientCertAuth})),{},{proxy:this.proxy}),e.t0=a,e.next="get"===e.t0?4:"post"===e.t0?16:"put"===e.t0?29:"delete"===e.t0?37:44;break;case 4:if(!((p=this.buildRequestUrl(o,r)).length>4096)){e.next=15;break}return e.t1=t,e.t2=t({},c),e.t3={},e.t4=t(t({},this.headers),{},{"X-HTTP-Method-Override":"GET"}),e.next=12,this.buildData(r);case 12:return e.t5=e.sent,e.t6={method:"post",headers:e.t4,data:e.t5},e.abrupt("return",(0,e.t1)(e.t2,e.t3,e.t6));case 15:return e.abrupt("return",t(t({},c),{},{url:p}));case 16:if(!(r instanceof Vx)){e.next=21;break}return e.next=19,this.buildData(r);case 19:return u=e.sent,e.abrupt("return",t(t({},c),{},{headers:"function"==typeof u.getHeaders?t(t({},this.headers),u.getHeaders()):this.headers,data:u}));case 21:return e.t7=t,e.t8=t({},c),e.t9={},e.next=26,this.buildData(r);case 26:return e.t10=e.sent,e.t11={data:e.t10},e.abrupt("return",(0,e.t7)(e.t8,e.t9,e.t11));case 29:return e.t12=t,e.t13=t({},c),e.t14={},e.next=34,this.buildData(r);case 34:return e.t15=e.sent,e.t16={data:e.t15},e.abrupt("return",(0,e.t12)(e.t13,e.t14,e.t16));case 37:return e.t17=this,e.t18=o,e.next=41,this.buildData(r);case 41:return e.t19=e.sent,l=e.t17.buildRequestUrl.call(e.t17,e.t18,e.t19),e.abrupt("return",t(t({},c),{},{url:l}));case 44:throw new Error("".concat(a," method is not supported"));case 45:case"end":return e.stop()}}),e,this)}))),function(e,n,a,t){return r.apply(this,arguments)})},{key:"buildRequestUrl",value:function(e,n){return"".concat(this.baseUrl).concat(e,"?").concat(Wj.stringify(n))}},{key:"buildData",value:(o=s(i().mark((function e(n){var a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("session"!==this.auth.type){e.next=8;break}return e.next=3,this.getRequestToken();case 3:if(a=e.sent,!(n instanceof Vx)){e.next=7;break}return n.append("__REQUEST_TOKEN__",a),e.abrupt("return",n);case 7:return e.abrupt("return",t({__REQUEST_TOKEN__:a},n));case 8:return e.abrupt("return",n);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"buildHeaders",value:function(e){var a=e.basicAuth,i=e.userAgent,o=a?{Authorization:"Basic ".concat(iA("".concat(a.username,":").concat(a.password)))}:{},r=t(t({},n.buildHeaders({userAgent:i})),o);switch(this.auth.type){case"password":return t(t({},r),{},{"X-Cybozu-Authorization":iA("".concat(this.auth.username,":").concat(this.auth.password))});case"apiToken":var s=this.auth.apiToken;return Array.isArray(s)?t(t({},r),{},{"X-Cybozu-API-Token":s.join(",")}):t(t({},r),{},{"X-Cybozu-API-Token":s});case"oAuthToken":return t(t({},r),{},{Authorization:"Bearer ".concat(this.auth.oAuthToken)});default:return t(t({},r),{},{"X-Requested-With":"XMLHttpRequest"})}}},{key:"getRequestToken",value:(a=s(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==this.requestToken){e.next=4;break}return e.next=3,n.getRequestToken();case 3:this.requestToken=e.sent;case 4:return e.abrupt("return",this.requestToken);case 5:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})}]),e}(),rA=$,sA=jt,cA=Date.prototype,pA="Invalid Date",uA="toString",lA=rA(cA.toString),dA=rA(cA.getTime);String(new Date(NaN))!=pA&&sA(cA,uA,(function(){var e=dA(this);return e==e?lA(this):pA}));var mA=C,fA=mn,vA=ke,hA=fr,xA=RegExp.prototype,bA=Pa.PROPER,gA=jt,yA=oa,wA=dr,kA=T,jA=function(e){var n=e.flags;return void 0!==n||"flags"in xA||fA(e,"flags")||!vA(xA,e)?n:mA(hA,e)},AA="toString",SA=RegExp.prototype.toString,EA=kA((function(){return"/a/b"!=SA.call({source:"a",flags:"b"})})),PA=bA&&SA.name!=AA;(EA||PA)&&gA(RegExp.prototype,AA,(function(){var e=yA(this);return"/"+wA(e.source)+"/"+wA(jA(e))}),{unsafe:!0});var RA,OA=function(e){d(a,e);var n=w(a);function a(e){var t;return c(this,a),(t=n.call(this,e)).name="KintoneAbortSearchError",t.message=e,Object.setPrototypeOf(g(t),a.prototype),t}return u(a)}(x(Error)),IA=function(e){d(a,e);var n=w(a);function a(e){var t;c(this,a);var i=a.buildErrorResponseDateWithIndex(e),o=i.data,r=i.bulkRequestIndex;return(t=n.call(this,o.message)).name="KintoneRestAPIError",t.id=o.id,t.code=o.code,t.errors=o.errors,t.status=e.status,t.bulkRequestIndex=r,t.headers=e.headers,t.message="[".concat(e.status,"] [").concat(t.code,"] ").concat(t.message," (").concat(t.id,")"),Error.captureStackTrace&&Error.captureStackTrace(g(t),a),Object.setPrototypeOf(g(t),a.prototype),t}return u(a,null,[{key:"findErrorResponseDataWithIndex",value:function(e){for(var n=0;n<e.length;n++){if(0!==Object.keys(e[n]).length)return{data:e[n],bulkRequestIndex:n}}throw Error("Missing response data in `results`. This error is likely caused by a bug in Kintone REST API Client. Please file an issue.")}},{key:"buildErrorResponseDateWithIndex",value:function(e){return"results"in e.data?a.findErrorResponseDataWithIndex(e.data.results):{data:e.data}}}]),a}(x(Error)),TA=["data"],UA=function(){function e(n){var a=n.enableAbortSearchError;c(this,e),this.enableAbortSearchError=a}return u(e,[{key:"handle",value:function(e){var n=this;return e.then((function(e){return n.handleSuccessResponse(e)}),(function(e){return n.handleErrorResponse(e)}))}},{key:"handleSuccessResponse",value:function(e){if(this.enableAbortSearchError&&/Filter aborted because of too many search results/.test(e.headers["x-cybozu-warning"]))throw new OA(e.headers["x-cybozu-warning"]);return e.data}},{key:"handleErrorResponse",value:function(e){if(!e.response){if(/mac verify failure/.test(e.toString()))throw new Error("invalid clientCertAuth setting");throw e}var n=e.response,a=n.data,i=b(n,TA);if("string"==typeof a)throw new Error("".concat(i.status,": ").concat(i.statusText));throw new IA(t({data:a},i))}}]),e}(),_A=function(e){if("username"in e)return t({type:"password"},e);if("apiToken"in e)return t({type:"apiToken"},e);if("oAuthToken"in e)return t({type:"oAuthToken"},e);try{return n.getDefaultAuth()}catch(e){if(e instanceof Wo)throw new Error("session authentication is not supported in ".concat(e.platform," environment."));throw e}},NA=function(){function e(){var a,i,o,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c(this,e),FA(r),this.baseUrl=n.buildBaseUrl(r.baseUrl).replace(/\/+$/,"");var s=_A(null!==(a=r.auth)&&void 0!==a?a:{}),p=new oA(t(t({},r),{},{baseUrl:this.baseUrl,auth:s})),u=new UA({enableAbortSearchError:null!==(i=null===(o=r.featureFlags)||void 0===o?void 0:o.enableAbortSearchError)&&void 0!==i&&i}),l=new Xy({responseHandler:u,requestConfigBuilder:p}),d=r.guestSpaceId;this.bulkRequest_=new dv(l,d),this.record=new Hx(l,this.bulkRequest_,d),this.app=new Pv(l,d),this.file=new Yx(l,d)}return u(e,[{key:"getBaseUrl",value:function(){return this.baseUrl}},{key:"bulkRequest",value:function(e){return this.bulkRequest_.send(e)}}],[{key:"version",get:function(){return n.getVersion()}}]),e}(),FA=function(e){CA(e.baseUrl),qA(e.guestSpaceId)},CA=function(e){if(void 0!==e){var n=new URL(e);if("localhost"!==n.hostname&&"https:"!==n.protocol)throw new Error('The protocol of baseUrl must be "https".')}},qA=function(e){if(""===e||null===e)throw new Error("invalid guestSpaceId: got [".concat(e,"]"))};(RA=pr).readFileFromPath&&(n.readFileFromPath=RA.readFileFromPath),RA.getRequestToken&&(n.getRequestToken=RA.getRequestToken),RA.getDefaultAuth&&(n.getDefaultAuth=RA.getDefaultAuth),RA.buildPlatformDependentConfig&&(n.buildPlatformDependentConfig=RA.buildPlatformDependentConfig),RA.buildHeaders&&(n.buildHeaders=RA.buildHeaders),RA.buildFormDataValue&&(n.buildFormDataValue=RA.buildFormDataValue),RA.buildBaseUrl&&(n.buildBaseUrl=RA.buildBaseUrl),RA.getVersion&&(n.getVersion=RA.getVersion),e.KintoneAbortSearchError=OA,e.KintoneAllRecordsError=zx,e.KintoneRestAPIClient=NA,e.KintoneRestAPIError=IA,Object.defineProperty(e,"__esModule",{value:!0})}));
15
+ !function(e){var n,a,t,i=Ho,o=sr.extname,r=/^\s*([^;\s]*)(?:;|\s|$)/,s=/^text\//i;function c(e){if(!e||"string"!=typeof e)return!1;var n=r.exec(e),a=n&&i[n[1].toLowerCase()];return a&&a.charset?a.charset:!(!n||!s.test(n[1]))&&"UTF-8"}e.charset=c,e.charsets={lookup:c},e.contentType=function(n){if(!n||"string"!=typeof n)return!1;var a=-1===n.indexOf("/")?e.lookup(n):n;if(!a)return!1;if(-1===a.indexOf("charset")){var t=e.charset(a);t&&(a+="; charset="+t.toLowerCase())}return a},e.extension=function(n){if(!n||"string"!=typeof n)return!1;var a=r.exec(n),t=a&&e.extensions[a[1].toLowerCase()];if(!t||!t.length)return!1;return t[0]},e.extensions=Object.create(null),e.lookup=function(n){if(!n||"string"!=typeof n)return!1;var a=o("x."+n).toLowerCase().substr(1);if(!a)return!1;return e.types[a]||!1},e.types=Object.create(null),n=e.extensions,a=e.types,t=["nginx","apache",void 0,"iana"],Object.keys(i).forEach((function(e){var o=i[e],r=o.extensions;if(r&&r.length){n[e]=r;for(var s=0;s<r.length;s++){var c=r[s];if(a[c]){var p=t.indexOf(i[a[c]].source),u=t.indexOf(o.source);if("application/octet-stream"!==a[c]&&(p>u||p===u&&"application/"===a[c].substr(0,12)))continue}a[c]=e}}}))}(Go);var cr=function(){var e=s(i().mark((function e(){var n,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("object"!==("undefined"==typeof kintone?"undefined":o(kintone))||null===kintone||"function"!=typeof kintone.getRequestToken){e.next=2;break}return e.abrupt("return",kintone.getRequestToken());case 2:if("object"!==("undefined"==typeof garoon?"undefined":o(garoon))||null===garoon||"function"!=typeof(null===(n=garoon.connect)||void 0===n||null===(a=n.kintone)||void 0===a?void 0:a.getRequestToken)){e.next=4;break}return e.abrupt("return",garoon.connect.kintone.getRequestToken());case 4:throw new Error("session authentication must specify a request token");case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),pr=Object.freeze({__proto__:null,readFileFromPath:function(e){throw new Wo("Browser")},getRequestToken:cr,getDefaultAuth:function(){return{type:"session"}},buildPlatformDependentConfig:function(){return{}},buildHeaders:function(){return{}},buildFormDataValue:function(e,n){var a={};return n&&(a.type=Go.lookup(n)||void 0),new Blob([e],a)},buildBaseUrl:function(e){if(e)return e;if(void 0===location)throw new Error("The baseUrl parameter is required for this environment");var n=location,a=n.host,t=n.protocol;return"".concat(t,"//").concat(a)},getVersion:function(){return"3.3.2"}}),ur=Di,lr=String,dr=function(e){if("Symbol"===ur(e))throw TypeError("Cannot convert a Symbol value to a string");return lr(e)},mr=oa,fr=function(){var e=mr(this),n="";return e.hasIndices&&(n+="d"),e.global&&(n+="g"),e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.dotAll&&(n+="s"),e.unicode&&(n+="u"),e.unicodeSets&&(n+="v"),e.sticky&&(n+="y"),n},vr=T,hr=O.RegExp,xr=vr((function(){var e=hr("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),br=xr||vr((function(){return!hr("a","y").sticky})),gr={BROKEN_CARET:xr||vr((function(){var e=hr("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:br,UNSUPPORTED_Y:xr},yr={},wr=$t,kr=Jt,jr=Object.keys||function(e){return wr(e,kr)},Ar=U,Sr=na,Er=ea,Pr=oa,Rr=ue,Or=jr;yr.f=Ar&&!Sr?Object.defineProperties:function(e,n){Pr(e);for(var a,t=Rr(n),i=Or(n),o=i.length,r=0;o>r;)Er.f(e,a=i[r++],t[a]);return e};var Ir,Tr=we("document","documentElement"),Ur=oa,_r=yr,Nr=Jt,Fr=Da,Cr=Tr,qr=Mn,Lr=za("IE_PROTO"),Br=function(){},zr=function(e){return"<script>"+e+"</"+"script>"},Dr=function(e){e.write(zr("")),e.close();var n=e.parentWindow.Object;return e=null,n},Mr=function(){try{Ir=new ActiveXObject("htmlfile")}catch(e){}var e,n;Mr="undefined"!=typeof document?document.domain&&Ir?Dr(Ir):((n=qr("iframe")).style.display="none",Cr.appendChild(n),n.src=String("javascript:"),(e=n.contentWindow.document).open(),e.write(zr("document.F=Object")),e.close(),e.F):Dr(Ir);for(var a=Nr.length;a--;)delete Mr.prototype[Nr[a]];return Mr()};Fr[Lr]=!0;var Wr,Gr,Hr=Object.create||function(e,n){var a;return null!==e?(Br.prototype=Ur(e),a=new Br,Br.prototype=null,a[Lr]=e):a=Mr(),void 0===n?a:_r.f(a,n)},Vr=T,Yr=O.RegExp,$r=Vr((function(){var e=Yr(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Jr=T,Qr=O.RegExp,Kr=Jr((function(){var e=Qr("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Xr=C,Zr=$,es=dr,ns=fr,as=gr,ts=Hr,is=nt.get,os=$r,rs=Kr,ss=Xe("native-string-replace",String.prototype.replace),cs=RegExp.prototype.exec,ps=cs,us=Zr("".charAt),ls=Zr("".indexOf),ds=Zr("".replace),ms=Zr("".slice),fs=(Gr=/b*/g,Xr(cs,Wr=/a/,"a"),Xr(cs,Gr,"a"),0!==Wr.lastIndex||0!==Gr.lastIndex),vs=as.BROKEN_CARET,hs=void 0!==/()??/.exec("")[1];(fs||hs||vs||os||rs)&&(ps=function(e){var n,a,t,i,o,r,s,c=this,p=is(c),u=es(e),l=p.raw;if(l)return l.lastIndex=c.lastIndex,n=Xr(ps,l,u),c.lastIndex=l.lastIndex,n;var d=p.groups,m=vs&&c.sticky,f=Xr(ns,c),v=c.source,h=0,x=u;if(m&&(f=ds(f,"y",""),-1===ls(f,"g")&&(f+="g"),x=ms(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==us(u,c.lastIndex-1))&&(v="(?: "+v+")",x=" "+x,h++),a=new RegExp("^(?:"+v+")",f)),hs&&(a=new RegExp("^"+v+"$(?!\\s)",f)),fs&&(t=c.lastIndex),i=Xr(cs,m?a:c,x),m?i?(i.input=ms(i.input,h),i[0]=ms(i[0],h),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:fs&&i&&(c.lastIndex=c.global?i.index+i[0].length:t),hs&&i&&i.length>1&&Xr(ss,i[0],a,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&d)for(i.groups=r=ts(null),o=0;o<d.length;o++)r[(s=d[o])[0]]=i[s[1]];return i});var xs=ps;Si({target:"RegExp",proto:!0,forced:/./.exec!==xs},{exec:xs});var bs=_,gs=Function.prototype,ys=gs.apply,ws=gs.call,ks="object"==typeof Reflect&&Reflect.apply||(bs?ws.bind(ys):function(){return ws.apply(ys,arguments)}),js=X,As=$,Ss=function(e){if("Function"===js(e))return As(e)},Es=Ss,Ps=jt,Rs=xs,Os=T,Is=Pn,Ts=ga,Us=Is("species"),_s=RegExp.prototype,Ns=function(e,n,a,t){var i=Is(e),o=!Os((function(){var n={};return n[i]=function(){return 7},7!=""[e](n)})),r=o&&!Os((function(){var n=!1,a=/a/;return"split"===e&&((a={}).constructor={},a.constructor[Us]=function(){return a},a.flags="",a[i]=/./[i]),a.exec=function(){return n=!0,null},a[i](""),!n}));if(!o||!r||a){var s=Es(/./[i]),c=n(i,""[e],(function(e,n,a,t,i){var r=Es(e),c=n.exec;return c===Rs||c===_s.exec?o&&!i?{done:!0,value:s(n,a,t)}:{done:!0,value:r(a,n,t)}:{done:!1}}));Ps(String.prototype,e,c[0]),Ps(_s,i,c[1])}t&&Ts(_s[i],"sham",!0)},Fs=$,Cs=Rt,qs=dr,Ls=se,Bs=Fs("".charAt),zs=Fs("".charCodeAt),Ds=Fs("".slice),Ms=function(e){return function(n,a){var t,i,o=qs(Ls(n)),r=Cs(a),s=o.length;return r<0||r>=s?e?"":void 0:(t=zs(o,r))<55296||t>56319||r+1===s||(i=zs(o,r+1))<56320||i>57343?e?Bs(o,r):t:e?Ds(o,r,r+2):i-56320+(t-55296<<10)+65536}},Ws={codeAt:Ms(!1),charAt:Ms(!0)},Gs=Ws.charAt,Hs=function(e,n,a){return n+(a?Gs(e,n).length:1)},Vs=$,Ys=un,$s=Math.floor,Js=Vs("".charAt),Qs=Vs("".replace),Ks=Vs("".slice),Xs=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Zs=/\$([$&'`]|\d{1,2})/g,ec=C,nc=oa,ac=fe,tc=X,ic=xs,oc=TypeError,rc=function(e,n){var a=e.exec;if(ac(a)){var t=ec(a,e,n);return null!==t&&nc(t),t}if("RegExp"===tc(e))return ec(ic,e,n);throw oc("RegExp#exec called on incompatible receiver")},sc=ks,cc=C,pc=$,uc=Ns,lc=T,dc=oa,mc=fe,fc=ie,vc=Rt,hc=Ft,xc=dr,bc=se,gc=Hs,yc=Ye,wc=function(e,n,a,t,i,o){var r=a+e.length,s=t.length,c=Zs;return void 0!==i&&(i=Ys(i),c=Xs),Qs(o,c,(function(o,c){var p;switch(Js(c,0)){case"$":return"$";case"&":return e;case"`":return Ks(n,0,a);case"'":return Ks(n,r);case"<":p=i[Ks(c,1,-1)];break;default:var u=+c;if(0===u)return o;if(u>s){var l=$s(u/10);return 0===l?o:l<=s?void 0===t[l-1]?Js(c,1):t[l-1]+Js(c,1):o}p=t[u-1]}return void 0===p?"":p}))},kc=rc,jc=Pn("replace"),Ac=Math.max,Sc=Math.min,Ec=pc([].concat),Pc=pc([].push),Rc=pc("".indexOf),Oc=pc("".slice),Ic="$0"==="a".replace(/./,"$0"),Tc=!!/./[jc]&&""===/./[jc]("a","$0");uc("replace",(function(e,n,a){var t=Tc?"$":"$0";return[function(e,a){var t=bc(this),i=fc(e)?void 0:yc(e,jc);return i?cc(i,e,t,a):cc(n,xc(t),e,a)},function(e,i){var o=dc(this),r=xc(e);if("string"==typeof i&&-1===Rc(i,t)&&-1===Rc(i,"$<")){var s=a(n,o,r,i);if(s.done)return s.value}var c=mc(i);c||(i=xc(i));var p=o.global;if(p){var u=o.unicode;o.lastIndex=0}for(var l=[];;){var d=kc(o,r);if(null===d)break;if(Pc(l,d),!p)break;""===xc(d[0])&&(o.lastIndex=gc(r,hc(o.lastIndex),u))}for(var m,f="",v=0,h=0;h<l.length;h++){for(var x=xc((d=l[h])[0]),b=Ac(Sc(vc(d.index),r.length),0),g=[],y=1;y<d.length;y++)Pc(g,void 0===(m=d[y])?m:String(m));var w=d.groups;if(c){var k=Ec([x],g,b,r);void 0!==w&&Pc(k,w);var j=xc(sc(i,void 0,k))}else j=wc(x,r,b,g,w,i);b>=v&&(f+=Oc(r,v,b)+j,v=b+x.length)}return f+Oc(r,v)}]}),!!lc((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Ic||Tc);var Uc=Pn,_c=Hr,Nc=ea.f,Fc=Uc("unscopables"),Cc=Array.prototype;null==Cc[Fc]&&Nc(Cc,Fc,{configurable:!0,value:_c(null)});var qc,Lc,Bc,zc={},Dc=!T((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Mc=mn,Wc=fe,Gc=un,Hc=Dc,Vc=za("IE_PROTO"),Yc=Object,$c=Yc.prototype,Jc=Hc?Yc.getPrototypeOf:function(e){var n=Gc(e);if(Mc(n,Vc))return n[Vc];var a=n.constructor;return Wc(a)&&n instanceof a?a.prototype:n instanceof Yc?$c:null},Qc=T,Kc=fe,Xc=xe,Zc=Jc,ep=jt,np=Pn("iterator"),ap=!1;[].keys&&("next"in(Bc=[].keys())?(Lc=Zc(Zc(Bc)))!==Object.prototype&&(qc=Lc):ap=!0);var tp=!Xc(qc)||Qc((function(){var e={};return qc[np].call(e)!==e}));tp&&(qc={}),Kc(qc[np])||ep(qc,np,(function(){return this}));var ip={IteratorPrototype:qc,BUGGY_SAFARI_ITERATORS:ap},op=ea.f,rp=mn,sp=Pn("toStringTag"),cp=function(e,n,a){e&&!a&&(e=e.prototype),e&&!rp(e,sp)&&op(e,sp,{configurable:!0,value:n})},pp=ip.IteratorPrototype,up=Hr,lp=W,dp=cp,mp=zc,fp=function(){return this},vp=function(e,n,a,t){var i=n+" Iterator";return e.prototype=up(pp,{next:lp(+!t,a)}),dp(e,i,!1),mp[i]=fp,e},hp=Si,xp=C,bp=fe,gp=vp,yp=Jc,wp=Mo,kp=cp,jp=ga,Ap=jt,Sp=zc,Ep=Pa.PROPER,Pp=Pa.CONFIGURABLE,Rp=ip.IteratorPrototype,Op=ip.BUGGY_SAFARI_ITERATORS,Ip=Pn("iterator"),Tp="keys",Up="values",_p="entries",Np=function(){return this},Fp=function(e,n,a,t,i,o,r){gp(a,n,t);var s,c,p,u=function(e){if(e===i&&v)return v;if(!Op&&e in m)return m[e];switch(e){case Tp:case Up:case _p:return function(){return new a(this,e)}}return function(){return new a(this)}},l=n+" Iterator",d=!1,m=e.prototype,f=m[Ip]||m["@@iterator"]||i&&m[i],v=!Op&&f||u(i),h="Array"==n&&m.entries||f;if(h&&(s=yp(h.call(new e)))!==Object.prototype&&s.next&&(yp(s)!==Rp&&(wp?wp(s,Rp):bp(s[Ip])||Ap(s,Ip,Np)),kp(s,l,!0)),Ep&&i==Up&&f&&f.name!==Up&&(Pp?jp(m,"name",Up):(d=!0,v=function(){return xp(f,this)})),i)if(c={values:u(Up),keys:o?v:u(Tp),entries:u(_p)},r)for(p in c)(Op||d||!(p in m))&&Ap(m,p,c[p]);else hp({target:n,proto:!0,forced:Op||d},c);return m[Ip]!==v&&Ap(m,Ip,v,{name:i}),Sp[n]=v,c},Cp=function(e,n){return{value:e,done:n}},qp=ue,Lp=function(e){Cc[Fc][e]=!0},Bp=zc,zp=nt,Dp=ea.f,Mp=Fp,Wp=Cp,Gp=U,Hp="Array Iterator",Vp=zp.set,Yp=zp.getterFor(Hp),$p=Mp(Array,"Array",(function(e,n){Vp(this,{type:Hp,target:qp(e),index:0,kind:n})}),(function(){var e=Yp(this),n=e.target,a=e.kind,t=e.index++;return!n||t>=n.length?(e.target=void 0,Wp(void 0,!0)):Wp("keys"==a?t:"values"==a?n[t]:[t,n[t]],!1)}),"values"),Jp=Bp.Arguments=Bp.Array;if(Lp("keys"),Lp("values"),Lp("entries"),Gp&&"values"!==Jp.name)try{Dp(Jp,"name",{value:"values"})}catch(e){}var Qp=Di,Kp=Ni?{}.toString:function(){return"[object "+Qp(this)+"]"};Ni||jt(Object.prototype,"toString",Kp,{unsafe:!0});var Xp=Ws.charAt,Zp=dr,eu=nt,nu=Fp,au=Cp,tu="String Iterator",iu=eu.set,ou=eu.getterFor(tu);nu(String,"String",(function(e){iu(this,{type:tu,string:Zp(e),index:0})}),(function(){var e,n=ou(this),a=n.string,t=n.index;return t>=a.length?au(void 0,!0):(e=Xp(a,t),n.index+=e.length,au(e,!1))}));var ru={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},su=Mn("span").classList,cu=su&&su.constructor&&su.constructor.prototype,pu=cu===Object.prototype?void 0:cu,uu=O,lu=ru,du=pu,mu=$p,fu=ga,vu=Pn,hu=vu("iterator"),xu=vu("toStringTag"),bu=mu.values,gu=function(e,n){if(e){if(e[hu]!==bu)try{fu(e,hu,bu)}catch(n){e[hu]=bu}if(e[xu]||fu(e,xu,n),lu[n])for(var a in mu)if(e[a]!==mu[a])try{fu(e,a,mu[a])}catch(n){e[a]=mu[a]}}};for(var yu in lu)gu(uu[yu]&&uu[yu].prototype,yu);gu(du,"DOMTokenList");var wu=T,ku=Pn("iterator"),ju=!wu((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),n=e.searchParams,a="";return e.pathname="c%20d",n.forEach((function(e,t){n.delete("b"),a+=t+e})),!n.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==n.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!n[ku]||"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"!==a||"x"!==new URL("http://x",void 0).host})),Au=Ge,Su=_,Eu=Ss(Ss.bind),Pu=function(e,n){return Au(e),void 0===n?e:Su?Eu(e,n):function(){return e.apply(n,arguments)}},Ru=ya,Ou=ea,Iu=ke,Tu=TypeError,Uu=function(e,n){if(Iu(n,e))return e;throw Tu("Incorrect invocation")},_u=U,Nu=$,Fu=C,Cu=T,qu=jr,Lu=Xt,Bu=q,zu=un,Du=te,Mu=Object.assign,Wu=Object.defineProperty,Gu=Nu([].concat),Hu=!Mu||Cu((function(){if(_u&&1!==Mu({b:1},Mu(Wu({},"a",{enumerable:!0,get:function(){Wu(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},n={},a=Symbol(),t="abcdefghijklmnopqrst";return e[a]=7,t.split("").forEach((function(e){n[e]=e})),7!=Mu({},e)[a]||qu(Mu({},n)).join("")!=t}))?function(e,n){for(var a=zu(e),t=arguments.length,i=1,o=Lu.f,r=Bu.f;t>i;)for(var s,c=Du(arguments[i++]),p=o?Gu(qu(c),o(c)):qu(c),u=p.length,l=0;u>l;)s=p[l++],_u&&!Fu(r,c,s)||(a[s]=c[s]);return a}:Mu,Vu=C,Yu=oa,$u=Ye,Ju=oa,Qu=function(e,n,a){var t,i;Yu(e);try{if(!(t=$u(e,"return"))){if("throw"===n)throw a;return a}t=Vu(t,e)}catch(e){i=!0,t=e}if("throw"===n)throw a;if(i)throw t;return Yu(t),a},Ku=zc,Xu=Pn("iterator"),Zu=Array.prototype,el=Di,nl=Ye,al=ie,tl=zc,il=Pn("iterator"),ol=function(e){if(!al(e))return nl(e,il)||nl(e,"@@iterator")||tl[el(e)]},rl=C,sl=Ge,cl=oa,pl=ze,ul=ol,ll=TypeError,dl=function(e,n){var a=arguments.length<2?ul(e):n;if(sl(a))return cl(rl(a,e));throw ll(pl(e)+" is not iterable")},ml=Pu,fl=C,vl=un,hl=function(e,n,a,t){try{return t?n(Ju(a)[0],a[1]):n(a)}catch(n){Qu(e,"throw",n)}},xl=function(e){return void 0!==e&&(Ku.Array===e||Zu[Xu]===e)},bl=no,gl=qt,yl=Ui,wl=dl,kl=ol,jl=Array,Al=Ut,Sl=qt,El=Ui,Pl=Array,Rl=Math.max,Ol=function(e,n,a){for(var t=Sl(e),i=Al(n,t),o=Al(void 0===a?t:a,t),r=Pl(Rl(o-i,0)),s=0;i<o;i++,s++)El(r,s,e[i]);return r.length=s,r},Il=$,Tl=2147483647,Ul=/[^\0-\u007E]/,_l=/[.\u3002\uFF0E\uFF61]/g,Nl="Overflow: input needs wider integers to process",Fl=RangeError,Cl=Il(_l.exec),ql=Math.floor,Ll=String.fromCharCode,Bl=Il("".charCodeAt),zl=Il([].join),Dl=Il([].push),Ml=Il("".replace),Wl=Il("".split),Gl=Il("".toLowerCase),Hl=function(e){return e+22+75*(e<26)},Vl=function(e,n,a){var t=0;for(e=a?ql(e/700):e>>1,e+=ql(e/n);e>455;)e=ql(e/35),t+=36;return ql(t+36*e/(e+38))},Yl=function(e){var n=[];e=function(e){for(var n=[],a=0,t=e.length;a<t;){var i=Bl(e,a++);if(i>=55296&&i<=56319&&a<t){var o=Bl(e,a++);56320==(64512&o)?Dl(n,((1023&i)<<10)+(1023&o)+65536):(Dl(n,i),a--)}else Dl(n,i)}return n}(e);var a,t,i=e.length,o=128,r=0,s=72;for(a=0;a<e.length;a++)(t=e[a])<128&&Dl(n,Ll(t));var c=n.length,p=c;for(c&&Dl(n,"-");p<i;){var u=Tl;for(a=0;a<e.length;a++)(t=e[a])>=o&&t<u&&(u=t);var l=p+1;if(u-o>ql((Tl-r)/l))throw Fl(Nl);for(r+=(u-o)*l,o=u,a=0;a<e.length;a++){if((t=e[a])<o&&++r>Tl)throw Fl(Nl);if(t==o){for(var d=r,m=36;;){var f=m<=s?1:m>=s+26?26:m-s;if(d<f)break;var v=d-f,h=36-f;Dl(n,Ll(Hl(f+v%h))),d=ql(v/h),m+=36}Dl(n,Ll(Hl(d))),s=Vl(r,l,p==c),r=0,p++}}r++,o++}return zl(n,"")},$l=TypeError,Jl=function(e,n){if(e<n)throw $l("Not enough arguments");return e},Ql=jt,Kl=Ol,Xl=Math.floor,Zl=function(e,n){var a=e.length,t=Xl(a/2);return a<8?ed(e,n):nd(e,Zl(Kl(e,0,t),n),Zl(Kl(e,t),n),n)},ed=function(e,n){for(var a,t,i=e.length,o=1;o<i;){for(t=o,a=e[o];t&&n(e[t-1],a)>0;)e[t]=e[--t];t!==o++&&(e[t]=a)}return e},nd=function(e,n,a,t){for(var i=n.length,o=a.length,r=0,s=0;r<i||s<o;)e[r+s]=r<i&&s<o?t(n[r],a[s])<=0?n[r++]:a[s++]:r<i?n[r++]:a[s++];return e},ad=Si,td=O,id=C,od=$,rd=U,sd=ju,cd=jt,pd=function(e,n,a){for(var t in n)Ql(e,t,n[t],a);return e},ud=cp,ld=vp,dd=nt,md=Uu,fd=fe,vd=mn,hd=Pu,xd=Di,bd=oa,gd=xe,yd=dr,wd=Hr,kd=W,jd=dl,Ad=ol,Sd=Jl,Ed=Zl,Pd=Pn("iterator"),Rd="URLSearchParams",Od="URLSearchParamsIterator",Id=dd.set,Td=dd.getterFor(Rd),Ud=dd.getterFor(Od),_d=Object.getOwnPropertyDescriptor,Nd=function(e){if(!rd)return td[e];var n=_d(td,e);return n&&n.value},Fd=Nd("fetch"),Cd=Nd("Request"),qd=Nd("Headers"),Ld=Cd&&Cd.prototype,Bd=qd&&qd.prototype,zd=td.RegExp,Dd=td.TypeError,Md=td.decodeURIComponent,Wd=td.encodeURIComponent,Gd=od("".charAt),Hd=od([].join),Vd=od([].push),Yd=od("".replace),$d=od([].shift),Jd=od([].splice),Qd=od("".split),Kd=od("".slice),Xd=/\+/g,Zd=Array(4),em=function(e){return Zd[e-1]||(Zd[e-1]=zd("((?:%[\\da-f]{2}){"+e+"})","gi"))},nm=function(e){try{return Md(e)}catch(n){return e}},am=function(e){var n=Yd(e,Xd," "),a=4;try{return Md(n)}catch(e){for(;a;)n=Yd(n,em(a--),nm);return n}},tm=/[!'()~]|%20/g,im={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},om=function(e){return im[e]},rm=function(e){return Yd(Wd(e),tm,om)},sm=ld((function(e,n){Id(this,{type:Od,iterator:jd(Td(e).entries),kind:n})}),"Iterator",(function(){var e=Ud(this),n=e.kind,a=e.iterator.next(),t=a.value;return a.done||(a.value="keys"===n?t.key:"values"===n?t.value:[t.key,t.value]),a}),!0),cm=function(e){this.entries=[],this.url=null,void 0!==e&&(gd(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Gd(e,0)?Kd(e,1):e:yd(e)))};cm.prototype={type:Rd,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var n,a,t,i,o,r,s,c=Ad(e);if(c)for(a=(n=jd(e,c)).next;!(t=id(a,n)).done;){if(o=(i=jd(bd(t.value))).next,(r=id(o,i)).done||(s=id(o,i)).done||!id(o,i).done)throw Dd("Expected sequence with length 2");Vd(this.entries,{key:yd(r.value),value:yd(s.value)})}else for(var p in e)vd(e,p)&&Vd(this.entries,{key:p,value:yd(e[p])})},parseQuery:function(e){if(e)for(var n,a,t=Qd(e,"&"),i=0;i<t.length;)(n=t[i++]).length&&(a=Qd(n,"="),Vd(this.entries,{key:am($d(a)),value:am(Hd(a,"="))}))},serialize:function(){for(var e,n=this.entries,a=[],t=0;t<n.length;)e=n[t++],Vd(a,rm(e.key)+"="+rm(e.value));return Hd(a,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var pm=function(){md(this,um);var e=arguments.length>0?arguments[0]:void 0;Id(this,new cm(e))},um=pm.prototype;if(pd(um,{append:function(e,n){Sd(arguments.length,2);var a=Td(this);Vd(a.entries,{key:yd(e),value:yd(n)}),a.updateURL()},delete:function(e){Sd(arguments.length,1);for(var n=Td(this),a=n.entries,t=yd(e),i=0;i<a.length;)a[i].key===t?Jd(a,i,1):i++;n.updateURL()},get:function(e){Sd(arguments.length,1);for(var n=Td(this).entries,a=yd(e),t=0;t<n.length;t++)if(n[t].key===a)return n[t].value;return null},getAll:function(e){Sd(arguments.length,1);for(var n=Td(this).entries,a=yd(e),t=[],i=0;i<n.length;i++)n[i].key===a&&Vd(t,n[i].value);return t},has:function(e){Sd(arguments.length,1);for(var n=Td(this).entries,a=yd(e),t=0;t<n.length;)if(n[t++].key===a)return!0;return!1},set:function(e,n){Sd(arguments.length,1);for(var a,t=Td(this),i=t.entries,o=!1,r=yd(e),s=yd(n),c=0;c<i.length;c++)(a=i[c]).key===r&&(o?Jd(i,c--,1):(o=!0,a.value=s));o||Vd(i,{key:r,value:s}),t.updateURL()},sort:function(){var e=Td(this);Ed(e.entries,(function(e,n){return e.key>n.key?1:-1})),e.updateURL()},forEach:function(e){for(var n,a=Td(this).entries,t=hd(e,arguments.length>1?arguments[1]:void 0),i=0;i<a.length;)t((n=a[i++]).value,n.key,this)},keys:function(){return new sm(this,"keys")},values:function(){return new sm(this,"values")},entries:function(){return new sm(this,"entries")}},{enumerable:!0}),cd(um,Pd,um.entries,{name:"entries"}),cd(um,"toString",(function(){return Td(this).serialize()}),{enumerable:!0}),ud(pm,Rd),ad({global:!0,constructor:!0,forced:!sd},{URLSearchParams:pm}),!sd&&fd(qd)){var lm=od(Bd.has),dm=od(Bd.set),mm=function(e){if(gd(e)){var n,a=e.body;if(xd(a)===Rd)return n=e.headers?new qd(e.headers):new qd,lm(n,"content-type")||dm(n,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),wd(e,{body:kd(0,yd(a)),headers:kd(0,n)})}return e};if(fd(Fd)&&ad({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return Fd(e,arguments.length>1?mm(arguments[1]):{})}}),fd(Cd)){var fm=function(e){return md(this,Ld),new Cd(e,arguments.length>1?mm(arguments[1]):{})};Ld.constructor=fm,fm.prototype=Ld,ad({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:fm})}}var vm,hm=Si,xm=U,bm=ju,gm=O,ym=Pu,wm=$,km=jt,jm=function(e,n,a){return a.get&&Ru(a.get,n,{getter:!0}),a.set&&Ru(a.set,n,{setter:!0}),Ou.f(e,n,a)},Am=Uu,Sm=mn,Em=Hu,Pm=function(e){var n=vl(e),a=bl(this),t=arguments.length,i=t>1?arguments[1]:void 0,o=void 0!==i;o&&(i=ml(i,t>2?arguments[2]:void 0));var r,s,c,p,u,l,d=kl(n),m=0;if(!d||this===jl&&xl(d))for(r=gl(n),s=a?new this(r):jl(r);r>m;m++)l=o?i(n[m],m):n[m],yl(s,m,l);else for(u=(p=wl(n,d)).next,s=a?new this:[];!(c=fl(u,p)).done;m++)l=o?hl(p,i,[c.value,m],!0):c.value,yl(s,m,l);return s.length=m,s},Rm=Ol,Om=Ws.codeAt,Im=function(e){var n,a,t=[],i=Wl(Ml(Gl(e),_l,"."),".");for(n=0;n<i.length;n++)a=i[n],Dl(t,Cl(Ul,a)?"xn--"+Yl(a):a);return zl(t,".")},Tm=dr,Um=cp,_m=Jl,Nm={URLSearchParams:pm,getState:Td},Fm=nt,Cm=Fm.set,qm=Fm.getterFor("URL"),Lm=Nm.URLSearchParams,Bm=Nm.getState,zm=gm.URL,Dm=gm.TypeError,Mm=gm.parseInt,Wm=Math.floor,Gm=Math.pow,Hm=wm("".charAt),Vm=wm(/./.exec),Ym=wm([].join),$m=wm(1..toString),Jm=wm([].pop),Qm=wm([].push),Km=wm("".replace),Xm=wm([].shift),Zm=wm("".split),ef=wm("".slice),nf=wm("".toLowerCase),af=wm([].unshift),tf="Invalid scheme",of="Invalid host",rf="Invalid port",sf=/[a-z]/i,cf=/[\d+-.a-z]/i,pf=/\d/,uf=/^0x/i,lf=/^[0-7]+$/,df=/^\d+$/,mf=/^[\da-f]+$/i,ff=/[\0\t\n\r #%/:<>?@[\\\]^|]/,vf=/[\0\t\n\r #/:<>?@[\\\]^|]/,hf=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,xf=/[\t\n\r]/g,bf=function(e){var n,a,t,i;if("number"==typeof e){for(n=[],a=0;a<4;a++)af(n,e%256),e=Wm(e/256);return Ym(n,".")}if("object"==typeof e){for(n="",t=function(e){for(var n=null,a=1,t=null,i=0,o=0;o<8;o++)0!==e[o]?(i>a&&(n=t,a=i),t=null,i=0):(null===t&&(t=o),++i);return i>a&&(n=t,a=i),n}(e),a=0;a<8;a++)i&&0===e[a]||(i&&(i=!1),t===a?(n+=a?":":"::",i=!0):(n+=$m(e[a],16),a<7&&(n+=":")));return"["+n+"]"}return e},gf={},yf=Em({},gf,{" ":1,'"':1,"<":1,">":1,"`":1}),wf=Em({},yf,{"#":1,"?":1,"{":1,"}":1}),kf=Em({},wf,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),jf=function(e,n){var a=Om(e,0);return a>32&&a<127&&!Sm(n,e)?e:encodeURIComponent(e)},Af={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Sf=function(e,n){var a;return 2==e.length&&Vm(sf,Hm(e,0))&&(":"==(a=Hm(e,1))||!n&&"|"==a)},Ef=function(e){var n;return e.length>1&&Sf(ef(e,0,2))&&(2==e.length||"/"===(n=Hm(e,2))||"\\"===n||"?"===n||"#"===n)},Pf=function(e){return"."===e||"%2e"===nf(e)},Rf={},Of={},If={},Tf={},Uf={},_f={},Nf={},Ff={},Cf={},qf={},Lf={},Bf={},zf={},Df={},Mf={},Wf={},Gf={},Hf={},Vf={},Yf={},$f={},Jf=function(e,n,a){var t,i,o,r=Tm(e);if(n){if(i=this.parse(r))throw Dm(i);this.searchParams=null}else{if(void 0!==a&&(t=new Jf(a,!0)),i=this.parse(r,null,t))throw Dm(i);(o=Bm(new Lm)).bindURL(this),this.searchParams=o}};Jf.prototype={type:"URL",parse:function(e,n,a){var t,i,o,r,s,c=this,p=n||Rf,u=0,l="",d=!1,m=!1,f=!1;for(e=Tm(e),n||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=Km(e,hf,"")),e=Km(e,xf,""),t=Pm(e);u<=t.length;){switch(i=t[u],p){case Rf:if(!i||!Vm(sf,i)){if(n)return tf;p=If;continue}l+=nf(i),p=Of;break;case Of:if(i&&(Vm(cf,i)||"+"==i||"-"==i||"."==i))l+=nf(i);else{if(":"!=i){if(n)return tf;l="",p=If,u=0;continue}if(n&&(c.isSpecial()!=Sm(Af,l)||"file"==l&&(c.includesCredentials()||null!==c.port)||"file"==c.scheme&&!c.host))return;if(c.scheme=l,n)return void(c.isSpecial()&&Af[c.scheme]==c.port&&(c.port=null));l="","file"==c.scheme?p=Df:c.isSpecial()&&a&&a.scheme==c.scheme?p=Tf:c.isSpecial()?p=Ff:"/"==t[u+1]?(p=Uf,u++):(c.cannotBeABaseURL=!0,Qm(c.path,""),p=Vf)}break;case If:if(!a||a.cannotBeABaseURL&&"#"!=i)return tf;if(a.cannotBeABaseURL&&"#"==i){c.scheme=a.scheme,c.path=Rm(a.path),c.query=a.query,c.fragment="",c.cannotBeABaseURL=!0,p=$f;break}p="file"==a.scheme?Df:_f;continue;case Tf:if("/"!=i||"/"!=t[u+1]){p=_f;continue}p=Cf,u++;break;case Uf:if("/"==i){p=qf;break}p=Hf;continue;case _f:if(c.scheme=a.scheme,i==vm)c.username=a.username,c.password=a.password,c.host=a.host,c.port=a.port,c.path=Rm(a.path),c.query=a.query;else if("/"==i||"\\"==i&&c.isSpecial())p=Nf;else if("?"==i)c.username=a.username,c.password=a.password,c.host=a.host,c.port=a.port,c.path=Rm(a.path),c.query="",p=Yf;else{if("#"!=i){c.username=a.username,c.password=a.password,c.host=a.host,c.port=a.port,c.path=Rm(a.path),c.path.length--,p=Hf;continue}c.username=a.username,c.password=a.password,c.host=a.host,c.port=a.port,c.path=Rm(a.path),c.query=a.query,c.fragment="",p=$f}break;case Nf:if(!c.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){c.username=a.username,c.password=a.password,c.host=a.host,c.port=a.port,p=Hf;continue}p=qf}else p=Cf;break;case Ff:if(p=Cf,"/"!=i||"/"!=Hm(l,u+1))continue;u++;break;case Cf:if("/"!=i&&"\\"!=i){p=qf;continue}break;case qf:if("@"==i){d&&(l="%40"+l),d=!0,o=Pm(l);for(var v=0;v<o.length;v++){var h=o[v];if(":"!=h||f){var x=jf(h,kf);f?c.password+=x:c.username+=x}else f=!0}l=""}else if(i==vm||"/"==i||"?"==i||"#"==i||"\\"==i&&c.isSpecial()){if(d&&""==l)return"Invalid authority";u-=Pm(l).length+1,l="",p=Lf}else l+=i;break;case Lf:case Bf:if(n&&"file"==c.scheme){p=Wf;continue}if(":"!=i||m){if(i==vm||"/"==i||"?"==i||"#"==i||"\\"==i&&c.isSpecial()){if(c.isSpecial()&&""==l)return of;if(n&&""==l&&(c.includesCredentials()||null!==c.port))return;if(r=c.parseHost(l))return r;if(l="",p=Gf,n)return;continue}"["==i?m=!0:"]"==i&&(m=!1),l+=i}else{if(""==l)return of;if(r=c.parseHost(l))return r;if(l="",p=zf,n==Bf)return}break;case zf:if(!Vm(pf,i)){if(i==vm||"/"==i||"?"==i||"#"==i||"\\"==i&&c.isSpecial()||n){if(""!=l){var b=Mm(l,10);if(b>65535)return rf;c.port=c.isSpecial()&&b===Af[c.scheme]?null:b,l=""}if(n)return;p=Gf;continue}return rf}l+=i;break;case Df:if(c.scheme="file","/"==i||"\\"==i)p=Mf;else{if(!a||"file"!=a.scheme){p=Hf;continue}if(i==vm)c.host=a.host,c.path=Rm(a.path),c.query=a.query;else if("?"==i)c.host=a.host,c.path=Rm(a.path),c.query="",p=Yf;else{if("#"!=i){Ef(Ym(Rm(t,u),""))||(c.host=a.host,c.path=Rm(a.path),c.shortenPath()),p=Hf;continue}c.host=a.host,c.path=Rm(a.path),c.query=a.query,c.fragment="",p=$f}}break;case Mf:if("/"==i||"\\"==i){p=Wf;break}a&&"file"==a.scheme&&!Ef(Ym(Rm(t,u),""))&&(Sf(a.path[0],!0)?Qm(c.path,a.path[0]):c.host=a.host),p=Hf;continue;case Wf:if(i==vm||"/"==i||"\\"==i||"?"==i||"#"==i){if(!n&&Sf(l))p=Hf;else if(""==l){if(c.host="",n)return;p=Gf}else{if(r=c.parseHost(l))return r;if("localhost"==c.host&&(c.host=""),n)return;l="",p=Gf}continue}l+=i;break;case Gf:if(c.isSpecial()){if(p=Hf,"/"!=i&&"\\"!=i)continue}else if(n||"?"!=i)if(n||"#"!=i){if(i!=vm&&(p=Hf,"/"!=i))continue}else c.fragment="",p=$f;else c.query="",p=Yf;break;case Hf:if(i==vm||"/"==i||"\\"==i&&c.isSpecial()||!n&&("?"==i||"#"==i)){if(".."===(s=nf(s=l))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(c.shortenPath(),"/"==i||"\\"==i&&c.isSpecial()||Qm(c.path,"")):Pf(l)?"/"==i||"\\"==i&&c.isSpecial()||Qm(c.path,""):("file"==c.scheme&&!c.path.length&&Sf(l)&&(c.host&&(c.host=""),l=Hm(l,0)+":"),Qm(c.path,l)),l="","file"==c.scheme&&(i==vm||"?"==i||"#"==i))for(;c.path.length>1&&""===c.path[0];)Xm(c.path);"?"==i?(c.query="",p=Yf):"#"==i&&(c.fragment="",p=$f)}else l+=jf(i,wf);break;case Vf:"?"==i?(c.query="",p=Yf):"#"==i?(c.fragment="",p=$f):i!=vm&&(c.path[0]+=jf(i,gf));break;case Yf:n||"#"!=i?i!=vm&&("'"==i&&c.isSpecial()?c.query+="%27":c.query+="#"==i?"%23":jf(i,gf)):(c.fragment="",p=$f);break;case $f:i!=vm&&(c.fragment+=jf(i,yf))}u++}},parseHost:function(e){var n,a,t;if("["==Hm(e,0)){if("]"!=Hm(e,e.length-1))return of;if(n=function(e){var n,a,t,i,o,r,s,c=[0,0,0,0,0,0,0,0],p=0,u=null,l=0,d=function(){return Hm(e,l)};if(":"==d()){if(":"!=Hm(e,1))return;l+=2,u=++p}for(;d();){if(8==p)return;if(":"!=d()){for(n=a=0;a<4&&Vm(mf,d());)n=16*n+Mm(d(),16),l++,a++;if("."==d()){if(0==a)return;if(l-=a,p>6)return;for(t=0;d();){if(i=null,t>0){if(!("."==d()&&t<4))return;l++}if(!Vm(pf,d()))return;for(;Vm(pf,d());){if(o=Mm(d(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;l++}c[p]=256*c[p]+i,2!=++t&&4!=t||p++}if(4!=t)return;break}if(":"==d()){if(l++,!d())return}else if(d())return;c[p++]=n}else{if(null!==u)return;l++,u=++p}}if(null!==u)for(r=p-u,p=7;0!=p&&r>0;)s=c[p],c[p--]=c[u+r-1],c[u+--r]=s;else if(8!=p)return;return c}(ef(e,1,-1)),!n)return of;this.host=n}else if(this.isSpecial()){if(e=Im(e),Vm(ff,e))return of;if(n=function(e){var n,a,t,i,o,r,s,c=Zm(e,".");if(c.length&&""==c[c.length-1]&&c.length--,(n=c.length)>4)return e;for(a=[],t=0;t<n;t++){if(""==(i=c[t]))return e;if(o=10,i.length>1&&"0"==Hm(i,0)&&(o=Vm(uf,i)?16:8,i=ef(i,8==o?1:2)),""===i)r=0;else{if(!Vm(10==o?df:8==o?lf:mf,i))return e;r=Mm(i,o)}Qm(a,r)}for(t=0;t<n;t++)if(r=a[t],t==n-1){if(r>=Gm(256,5-n))return null}else if(r>255)return null;for(s=Jm(a),t=0;t<a.length;t++)s+=a[t]*Gm(256,3-t);return s}(e),null===n)return of;this.host=n}else{if(Vm(vf,e))return of;for(n="",a=Pm(e),t=0;t<a.length;t++)n+=jf(a[t],gf);this.host=n}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return Sm(Af,this.scheme)},shortenPath:function(){var e=this.path,n=e.length;!n||"file"==this.scheme&&1==n&&Sf(e[0],!0)||e.length--},serialize:function(){var e=this,n=e.scheme,a=e.username,t=e.password,i=e.host,o=e.port,r=e.path,s=e.query,c=e.fragment,p=n+":";return null!==i?(p+="//",e.includesCredentials()&&(p+=a+(t?":"+t:"")+"@"),p+=bf(i),null!==o&&(p+=":"+o)):"file"==n&&(p+="//"),p+=e.cannotBeABaseURL?r[0]:r.length?"/"+Ym(r,"/"):"",null!==s&&(p+="?"+s),null!==c&&(p+="#"+c),p},setHref:function(e){var n=this.parse(e);if(n)throw Dm(n);this.searchParams.update()},getOrigin:function(){var e=this.scheme,n=this.port;if("blob"==e)try{return new Qf(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+bf(this.host)+(null!==n?":"+n:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(Tm(e)+":",Rf)},getUsername:function(){return this.username},setUsername:function(e){var n=Pm(Tm(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var a=0;a<n.length;a++)this.username+=jf(n[a],kf)}},getPassword:function(){return this.password},setPassword:function(e){var n=Pm(Tm(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var a=0;a<n.length;a++)this.password+=jf(n[a],kf)}},getHost:function(){var e=this.host,n=this.port;return null===e?"":null===n?bf(e):bf(e)+":"+n},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Lf)},getHostname:function(){var e=this.host;return null===e?"":bf(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Bf)},getPort:function(){var e=this.port;return null===e?"":Tm(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=Tm(e))?this.port=null:this.parse(e,zf))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+Ym(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Gf))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=Tm(e))?this.query=null:("?"==Hm(e,0)&&(e=ef(e,1)),this.query="",this.parse(e,Yf)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=Tm(e))?("#"==Hm(e,0)&&(e=ef(e,1)),this.fragment="",this.parse(e,$f)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Qf=function(e){var n=Am(this,Kf),a=_m(arguments.length,1)>1?arguments[1]:void 0,t=Cm(n,new Jf(e,!1,a));xm||(n.href=t.serialize(),n.origin=t.getOrigin(),n.protocol=t.getProtocol(),n.username=t.getUsername(),n.password=t.getPassword(),n.host=t.getHost(),n.hostname=t.getHostname(),n.port=t.getPort(),n.pathname=t.getPathname(),n.search=t.getSearch(),n.searchParams=t.getSearchParams(),n.hash=t.getHash())},Kf=Qf.prototype,Xf=function(e,n){return{get:function(){return qm(this)[e]()},set:n&&function(e){return qm(this)[n](e)},configurable:!0,enumerable:!0}};if(xm&&(jm(Kf,"href",Xf("serialize","setHref")),jm(Kf,"origin",Xf("getOrigin")),jm(Kf,"protocol",Xf("getProtocol","setProtocol")),jm(Kf,"username",Xf("getUsername","setUsername")),jm(Kf,"password",Xf("getPassword","setPassword")),jm(Kf,"host",Xf("getHost","setHost")),jm(Kf,"hostname",Xf("getHostname","setHostname")),jm(Kf,"port",Xf("getPort","setPort")),jm(Kf,"pathname",Xf("getPathname","setPathname")),jm(Kf,"search",Xf("getSearch","setSearch")),jm(Kf,"searchParams",Xf("getSearchParams")),jm(Kf,"hash",Xf("getHash","setHash"))),km(Kf,"toJSON",(function(){return qm(this).serialize()}),{enumerable:!0}),km(Kf,"toString",(function(){return qm(this).serialize()}),{enumerable:!0}),zm){var Zf=zm.createObjectURL,ev=zm.revokeObjectURL;Zf&&km(Qf,"createObjectURL",ym(Zf,zm)),ev&&km(Qf,"revokeObjectURL",ym(ev,zm))}Um(Qf,"URL"),hm({global:!0,constructor:!0,forced:!bm,sham:!xm},{URL:Qf});var nv=Pu,av=te,tv=un,iv=qt,ov=co,rv=$([].push),sv=function(e){var n=1==e,a=2==e,t=3==e,i=4==e,o=6==e,r=7==e,s=5==e||o;return function(c,p,u,l){for(var d,m,f=tv(c),v=av(f),h=nv(p,u),x=iv(v),b=0,g=l||ov,y=n?g(c,x):a||r?g(c,0):void 0;x>b;b++)if((s||b in v)&&(m=h(d=v[b],b,f),e))if(n)y[b]=m;else if(m)switch(e){case 3:return!0;case 5:return d;case 6:return b;case 2:rv(y,d)}else switch(e){case 4:return!1;case 7:rv(y,d)}return o?-1:t||i?i:y}},cv={forEach:sv(0),map:sv(1),filter:sv(2),some:sv(3),every:sv(4),find:sv(5),findIndex:sv(6),filterReject:sv(7)},pv=cv.map;Si({target:"Array",proto:!0,forced:!mo("map")},{map:function(e){return pv(this,e,arguments.length>1?arguments[1]:void 0)}});var uv=function(e){var n=e.endpointName,a=e.guestSpaceId,t=e.preview,i=void 0!==a?"/guest/".concat(a):"",o=t?"/preview":"";return"/k".concat(i,"/v1").concat(o,"/").concat(n,".json")},lv=["endpointName"],dv=function(){function e(n,a){c(this,e),this.client=n,this.guestSpaceId=a,this.REQUESTS_LENGTH_LIMIT=20}return u(e,[{key:"send",value:function(e){var n=this,a=e.requests.map((function(e){if("endpointName"in e){var a=e.endpointName,i=b(e,lv);return t({api:n.buildPathWithGuestSpaceId({endpointName:a})},i)}return e})),i=this.buildPathWithGuestSpaceId({endpointName:"bulkRequest"});return this.client.post(i,{requests:a})}},{key:"buildPathWithGuestSpaceId",value:function(e){return uv(t(t({},e),{},{guestSpaceId:this.guestSpaceId}))}}]),e}(),mv=["preview"],fv=["preview"],vv=["preview"],hv=["preview"],xv=["preview"],bv=["preview"],gv=["preview"],yv=["preview"],wv=["preview"],kv=["preview"],jv=["preview"],Av=["preview"],Sv=["preview"],Ev=["preview"],Pv=function(){function e(n,a){c(this,e),this.client=n,this.guestSpaceId=a}var n;return u(e,[{key:"getFormFields",value:function(e){var n=e.preview,a=b(e,mv),i=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:n});return this.client.get(i,t({},a))}},{key:"addFormFields",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.post(n,e)}},{key:"updateFormFields",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.put(n,e)}},{key:"deleteFormFields",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.delete(n,e)}},{key:"getFormLayout",value:function(e){var n=e.preview,a=b(e,fv),i=this.buildPathWithGuestSpaceId({endpointName:"app/form/layout",preview:n});return this.client.get(i,t({},a))}},{key:"updateFormLayout",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"app/form/layout",preview:!0});return this.client.put(n,e)}},{key:"getViews",value:function(e){var n=e.preview,a=b(e,vv),t=this.buildPathWithGuestSpaceId({endpointName:"app/views",preview:n});return this.client.get(t,a)}},{key:"updateViews",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"app/views",preview:!0});return this.client.put(n,e)}},{key:"getApp",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"app"});return this.client.get(n,e)}},{key:"getApps",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"apps"});return this.client.get(n,e)}},{key:"addApp",value:(n=s(i().mark((function e(n){var a,o,r,s,c,p;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=n.name,o=n.space,r=this.buildPathWithGuestSpaceId({endpointName:"app",preview:!0}),!o){e.next=9;break}return s=this.buildPathWithGuestSpaceId({endpointName:"space"}),e.next=6,this.client.get(s,{id:o});case 6:return c=e.sent,p=c.defaultThread,e.abrupt("return",this.client.post(r,t(t({},n),{},{thread:p})));case 9:return e.abrupt("return",this.client.post(r,{name:a}));case 10:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"getAppSettings",value:function(e){var n=e.preview,a=b(e,hv),t=this.buildPathWithGuestSpaceId({endpointName:"app/settings",preview:n});return this.client.get(t,a)}},{key:"updateAppSettings",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"app/settings",preview:!0});return this.client.put(n,e)}},{key:"getProcessManagement",value:function(e){var n=e.preview,a=b(e,xv),t=this.buildPathWithGuestSpaceId({endpointName:"app/status",preview:n});return this.client.get(t,a)}},{key:"updateProcessManagement",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"app/status",preview:!0});return this.client.put(n,e)}},{key:"getDeployStatus",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"app/deploy",preview:!0});return this.client.get(n,e)}},{key:"deployApp",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"app/deploy",preview:!0});return this.client.post(n,e)}},{key:"getFieldAcl",value:function(e){var n=e.preview,a=b(e,bv),i=this.buildPathWithGuestSpaceId({endpointName:"field/acl",preview:n});return this.client.get(i,t({},a))}},{key:"updateFieldAcl",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"field/acl",preview:!0});return this.client.put(n,e)}},{key:"getAppAcl",value:function(e){var n=e.preview,a=b(e,gv),i=this.buildPathWithGuestSpaceId({endpointName:"app/acl",preview:n});return this.client.get(i,t({},a))}},{key:"updateAppAcl",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"app/acl",preview:!0});return this.client.put(n,e)}},{key:"evaluateRecordsAcl",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"records/acl/evaluate"});return this.client.get(n,e)}},{key:"getRecordAcl",value:function(e){var n=e.preview,a=b(e,yv),i=this.buildPathWithGuestSpaceId({endpointName:"record/acl",preview:n});return this.client.get(i,t({},a))}},{key:"updateRecordAcl",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"record/acl",preview:!0});return this.client.put(n,e)}},{key:"getAppCustomize",value:function(e){var n=e.preview,a=b(e,wv),i=this.buildPathWithGuestSpaceId({endpointName:"app/customize",preview:n});return this.client.get(i,t({},a))}},{key:"updateAppCustomize",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"app/customize",preview:!0});return this.client.put(n,e)}},{key:"getGeneralNotifications",value:function(e){var n=e.preview,a=b(e,kv),i=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/general",preview:n});return this.client.get(i,t({},a))}},{key:"updateGeneralNotifications",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/general",preview:!0});return this.client.put(n,e)}},{key:"getPerRecordNotifications",value:function(e){var n=e.preview,a=b(e,jv),t=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/perRecord",preview:n});return this.client.get(t,a)}},{key:"updatePerRecordNotifications",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/perRecord",preview:!0});return this.client.put(n,e)}},{key:"getReminderNotifications",value:function(e){var n=e.preview,a=b(e,Av),t=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/reminder",preview:n});return this.client.get(t,a)}},{key:"updateReminderNotifications",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/reminder",preview:!0});return this.client.put(n,e)}},{key:"getReports",value:function(e){var n=e.preview,a=b(e,Sv),t=this.buildPathWithGuestSpaceId({endpointName:"app/reports",preview:n});return this.client.get(t,a)}},{key:"updateReports",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"app/reports",preview:!0});return this.client.put(n,e)}},{key:"getAppActions",value:function(e){var n=e.preview,a=b(e,Ev),t=this.buildPathWithGuestSpaceId({endpointName:"app/actions",preview:n});return this.client.get(t,a)}},{key:"updateAppActions",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"app/actions",preview:!0});return this.client.put(n,e)}},{key:"buildPathWithGuestSpaceId",value:function(e){return uv(t(t({},e),{},{guestSpaceId:this.guestSpaceId}))}}]),e}(),Rv=Hu;Si({target:"Object",stat:!0,arity:2,forced:Object.assign!==Rv},{assign:Rv});var Ov=C,Iv=oa,Tv=ie,Uv=Ft,_v=dr,Nv=se,Fv=Ye,Cv=Hs,qv=rc;Ns("match",(function(e,n,a){return[function(n){var a=Nv(this),t=Tv(n)?void 0:Fv(n,e);return t?Ov(t,n,a):new RegExp(n)[e](_v(a))},function(e){var t=Iv(this),i=_v(e),o=a(n,t,i);if(o.done)return o.value;if(!t.global)return qv(t,i);var r=t.unicode;t.lastIndex=0;for(var s,c=[],p=0;null!==(s=qv(t,i));){var u=_v(s[0]);c[p]=u,""===u&&(t.lastIndex=Cv(i,Uv(t.lastIndex),r)),p++}return 0===p?null:c}]}));var Lv=O,Bv=fe,zv=xe,Dv=Mo,Mv=$(1..valueOf),Wv=se,Gv=dr,Hv=$("".replace),Vv="[\t\n\v\f\r                 \u2028\u2029\ufeff]",Yv=RegExp("^"+Vv+Vv+"*"),$v=RegExp(Vv+Vv+"*$"),Jv=function(e){return function(n){var a=Gv(Wv(n));return 1&e&&(a=Hv(a,Yv,"")),2&e&&(a=Hv(a,$v,"")),a}},Qv={start:Jv(1),end:Jv(2),trim:Jv(3)},Kv=Si,Xv=U,Zv=O,eh=Lv,nh=$,ah=xi,th=mn,ih=function(e,n,a){var t,i;return Dv&&Bv(t=n.constructor)&&t!==a&&zv(i=t.prototype)&&i!==a.prototype&&Dv(e,i),e},oh=ke,rh=Le,sh=Fn,ch=T,ph=At.f,uh=I.f,lh=ea.f,dh=Mv,mh=Qv.trim,fh="Number",vh=Zv.Number;eh.Number;var hh=vh.prototype,xh=Zv.TypeError,bh=nh("".slice),gh=nh("".charCodeAt),yh=function(e){var n=sh(e,"number");return"bigint"==typeof n?n:wh(n)},wh=function(e){var n,a,t,i,o,r,s,c,p=sh(e,"number");if(rh(p))throw xh("Cannot convert a Symbol value to a number");if("string"==typeof p&&p.length>2)if(p=mh(p),43===(n=gh(p,0))||45===n){if(88===(a=gh(p,2))||120===a)return NaN}else if(48===n){switch(gh(p,1)){case 66:case 98:t=2,i=49;break;case 79:case 111:t=8,i=55;break;default:return+p}for(r=(o=bh(p,2)).length,s=0;s<r;s++)if((c=gh(o,s))<48||c>i)return NaN;return parseInt(o,t)}return+p},kh=ah(fh,!vh(" 0o1")||!vh("0b1")||vh("+0x1")),jh=function(e){return oh(hh,e)&&ch((function(){dh(e)}))},Ah=function(e){var n=arguments.length<1?0:vh(yh(e));return jh(this)?ih(Object(n),this,Ah):n};Ah.prototype=hh,kh&&(hh.constructor=Ah),Kv({global:!0,constructor:!0,wrap:!0,forced:kh},{Number:Ah});kh&&function(e,n){for(var a,t=Xv?ph(n):"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(","),i=0;t.length>i;i++)th(n,a=t[i])&&!th(e,a)&&lh(e,a,uh(n,a))}(eh.Number,vh);var Sh=T,Eh=function(e,n){var a=[][e];return!!a&&Sh((function(){a.call(null,n||function(){return 1},1)}))},Ph=Si,Rh=Mt.indexOf,Oh=Eh,Ih=Ss([].indexOf),Th=!!Ih&&1/Ih([1],1,-0)<0;Ph({target:"Array",proto:!0,forced:Th||!Oh("indexOf")},{indexOf:function(e){var n=arguments.length>1?arguments[1]:void 0;return Th?Ih(this,e,n)||0:Rh(this,e,n)}});var Uh=cv.every;Si({target:"Array",proto:!0,forced:!Eh("every")},{every:function(e){return Uh(this,e,arguments.length>1?arguments[1]:void 0)}}),Si({target:"Array",stat:!0},{isArray:Pi});var _h=$([].slice),Nh=Si,Fh=Pi,Ch=no,qh=xe,Lh=Ut,Bh=qt,zh=ue,Dh=Ui,Mh=Pn,Wh=_h,Gh=mo("slice"),Hh=Mh("species"),Vh=Array,Yh=Math.max;Nh({target:"Array",proto:!0,forced:!Gh},{slice:function(e,n){var a,t,i,o=zh(this),r=Bh(o),s=Lh(e,r),c=Lh(void 0===n?r:n,r);if(Fh(o)&&(a=o.constructor,(Ch(a)&&(a===Vh||Fh(a.prototype))||qh(a)&&null===(a=a[Hh]))&&(a=void 0),a===Vh||void 0===a))return Wh(o,s,c);for(t=new(void 0===a?Vh:a)(Yh(c-s,0)),i=0;s<c;s++,i++)s in o&&Dh(t,i,o[s]);return t.length=i,t}});var $h=Ge,Jh=un,Qh=te,Kh=qt,Xh=TypeError,Zh=function(e){return function(n,a,t,i){$h(a);var o=Jh(n),r=Qh(o),s=Kh(o),c=e?s-1:0,p=e?-1:1;if(t<2)for(;;){if(c in r){i=r[c],c+=p;break}if(c+=p,e?c<0:s<=c)throw Xh("Reduce of empty array with no initial value")}for(;e?c>=0:s>c;c+=p)c in r&&(i=a(i,r[c],c,o));return i}},ex={left:Zh(!1),right:Zh(!0)},nx="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function ax(){throw new Error("setTimeout has not been defined")}function tx(){throw new Error("clearTimeout has not been defined")}var ix=ax,ox=tx;function rx(e){if(ix===setTimeout)return setTimeout(e,0);if((ix===ax||!ix)&&setTimeout)return ix=setTimeout,setTimeout(e,0);try{return ix(e,0)}catch(n){try{return ix.call(null,e,0)}catch(n){return ix.call(this,e,0)}}}"function"==typeof nx.setTimeout&&(ix=setTimeout),"function"==typeof nx.clearTimeout&&(ox=clearTimeout);var sx,cx=[],px=!1,ux=-1;function lx(){px&&sx&&(px=!1,sx.length?cx=sx.concat(cx):ux=-1,cx.length&&dx())}function dx(){if(!px){var e=rx(lx);px=!0;for(var n=cx.length;n;){for(sx=cx,cx=[];++ux<n;)sx&&sx[ux].run();ux=-1,n=cx.length}sx=null,px=!1,function(e){if(ox===clearTimeout)return clearTimeout(e);if((ox===tx||!ox)&&clearTimeout)return ox=clearTimeout,clearTimeout(e);try{ox(e)}catch(n){try{return ox.call(null,e)}catch(n){return ox.call(this,e)}}}(e)}}function mx(e,n){this.fun=e,this.array=n}mx.prototype.run=function(){this.fun.apply(null,this.array)};function fx(){}var vx=fx,hx=fx,xx=fx,bx=fx,gx=fx,yx=fx,wx=fx;var kx=nx.performance||{},jx=kx.now||kx.mozNow||kx.msNow||kx.oNow||kx.webkitNow||function(){return(new Date).getTime()};var Ax=new Date;var Sx={nextTick:function(e){var n=new Array(arguments.length-1);if(arguments.length>1)for(var a=1;a<arguments.length;a++)n[a-1]=arguments[a];cx.push(new mx(e,n)),1!==cx.length||px||rx(dx)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:vx,addListener:hx,once:xx,off:bx,removeListener:gx,removeAllListeners:yx,emit:wx,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var n=.001*jx.call(kx),a=Math.floor(n),t=Math.floor(n%1*1e9);return e&&(a-=e[0],(t-=e[1])<0&&(a--,t+=1e9)),[a,t]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Ax)/1e3}},Ex=void 0!==Sx&&"process"==X(Sx),Px=ex.left;Si({target:"Array",proto:!0,forced:!Ex&&Oe>79&&Oe<83||!Eh("reduce")},{reduce:function(e){var n=arguments.length;return Px(this,e,n,n>1?arguments[1]:void 0)}});var Rx=cv.forEach,Ox=Eh("forEach")?[].forEach:function(e){return Rx(this,e,arguments.length>1?arguments[1]:void 0)};Si({target:"Array",proto:!0,forced:[].forEach!=Ox},{forEach:Ox});var Ix=O,Tx=ru,Ux=pu,_x=Ox,Nx=ga,Fx=function(e){if(e&&e.forEach!==_x)try{Nx(e,"forEach",_x)}catch(n){e.forEach=_x}};for(var Cx in Tx)Tx[Cx]&&Fx(Ix[Cx]&&Ix[Cx].prototype);Fx(Ux);var qx=un,Lx=jr;Si({target:"Object",stat:!0,forced:T((function(){Lx(1)}))},{keys:function(e){return Lx(qx(e))}});var Bx,zx=function(e){d(a,e);var n=w(a);function a(e,t,i,o,r){var s;c(this,a);var p=i-t.length,u=a.extractErrorIndex(p,o,r),l=a.buildErrorMessage(p,i,u);return(s=n.call(this,l)).name="KintoneAllRecordsError",s.processedRecordsResult=e,s.unprocessedRecords=t,s.error=o,s.errorIndex=u,s.message=l,s.numOfProcessedRecords=p,s.numOfAllRecords=i,Object.setPrototypeOf(g(s),a.prototype),s}return u(a,null,[{key:"parseErrorIndex",value:function(e){var n=[];return Object.keys(e).forEach((function(e){var a=e.match(/records\[(\d+)\]/);a&&n.push(Number(a[1]))})),n.length>0?Math.min.apply(Math,n):null}},{key:"extractErrorIndex",value:function(e,n,t){if(void 0!==n.bulkRequestIndex&&n.errors){var i=a.parseErrorIndex(n.errors);if(null!==i)return e+n.bulkRequestIndex*t+i}}},{key:"buildErrorMessage",value:function(e,n,a){var t="";return void 0!==a&&(t="An error occurred at records[".concat(a,"]. ")),t+="".concat(e,"/").concat(n," records are processed successfully")}}]),a}(x(Error)),Dx=["condition","orderBy","withCursor"],Mx=["fields"],Wx=["condition"],Gx=["condition","orderBy"],Hx=function(){function e(n,a,t){c(this,e),this.client=n,this.bulkRequestClient=a,this.guestSpaceId=t,this.didWarnMaximumOffsetValue=!1}var n,a,o,r,p,d,m,f,v,h,x,g,y,w,j,A,S,E;return u(e,[{key:"getRecord",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.get(n,e)}},{key:"addRecord",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.post(n,e)}},{key:"updateRecord",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.put(n,e)}},{key:"upsertRecord",value:(E=s(i().mark((function e(n){var a,t,o,r,s,c,p;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=n.app,t=n.updateKey,o=n.record,e.next=3,this.getRecords({app:a,query:"".concat(t.field,' = "').concat(t.value,'"')});case 3:if(r=e.sent,!((s=r.records).length>0)){e.next=13;break}if("__ID__"!==s[0].$id.type){e.next=12;break}return e.next=9,this.updateRecord(n);case 9:return c=e.sent,p=c.revision,e.abrupt("return",{id:s[0].$id.value,revision:p});case 12:throw new Error("Missing `$id` in `getRecords` response. This error is likely caused by a bug in Kintone REST API Client. Please file an issue.");case 13:return e.abrupt("return",this.addRecord({app:a,record:Object.assign({},o,l({},t.field,{value:t.value}))}));case 14:case"end":return e.stop()}}),e,this)}))),function(e){return E.apply(this,arguments)})},{key:"getRecords",value:(S=s(i().mark((function e(n){var a,t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this.buildPathWithGuestSpaceId({endpointName:"records"}),e.next=3,this.client.get(a,n);case 3:return t=e.sent,this.warnMaximumOffsetValueIfNeeded(n.query),e.abrupt("return",t);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return S.apply(this,arguments)})},{key:"warnMaximumOffsetValueIfNeeded",value:function(e){if(e){var n=e.match(/offset\s+(\d+)/i);!this.didWarnMaximumOffsetValue&&n&&Number(n[1])>1e4&&(this.didWarnMaximumOffsetValue=!0,console.warn("Warning: The maximum offset value will be limited to 10,000 in the future. Please use `createCursor()` and `getRecordsByCursor()` instead."))}}},{key:"addRecords",value:(A=s(i().mark((function e(n){var a,t,o,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this.buildPathWithGuestSpaceId({endpointName:"records"}),e.next=3,this.client.post(a,n);case 3:return t=e.sent,o=t.ids,r=t.revisions,e.abrupt("return",{ids:o,revisions:r,records:o.map((function(e,n){return{id:e,revision:r[n]}}))});case 7:case"end":return e.stop()}}),e,this)}))),function(e){return A.apply(this,arguments)})},{key:"updateRecords",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"records"});return this.client.put(n,e)}},{key:"deleteRecords",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"records"});return this.client.delete(n,e)}},{key:"createCursor",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.post(n,e)}},{key:"getRecordsByCursor",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.get(n,e)}},{key:"deleteCursor",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.delete(n,e)}},{key:"getAllRecords",value:(j=s(i().mark((function e(n){var a,o,r,s,c,p,u;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=n.condition,o=n.orderBy,r=n.withCursor,s=void 0===r||r,c=b(n,Dx),o){e.next=3;break}return e.abrupt("return",this.getAllRecordsWithId(t(t({},c),{},{condition:a})));case 3:if(!s){e.next=7;break}return p=a?"".concat(a," "):"",u="".concat(p).concat(o?"order by ".concat(o):""),e.abrupt("return",this.getAllRecordsWithCursor(t(t({},c),{},{query:u})));case 7:return e.abrupt("return",this.getAllRecordsWithOffset(t(t({},c),{},{orderBy:o,condition:a})));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return j.apply(this,arguments)})},{key:"getAllRecordsWithId",value:(w=s(i().mark((function e(n){var a,o,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=n.fields,o=b(n,Mx),(r=a)&&r.length>0&&-1===r.indexOf("$id")&&(r=[].concat(k(r),["$id"])),e.abrupt("return",this.getAllRecordsRecursiveWithId(t(t({},o),{},{fields:r}),"0",[]));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return w.apply(this,arguments)})},{key:"getAllRecordsRecursiveWithId",value:(y=s(i().mark((function e(n,a,o){var r,s,c,p,u,l,d,m,f;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=500,s=n.condition,c=b(n,Wx),p=s?"(".concat(s,") and "):"",u="".concat(p,"$id > ").concat(a," order by $id asc limit ").concat(r),e.next=6,this.getRecords(t(t({},c),{},{query:u}));case 6:if(l=e.sent,d=o.concat(l.records),!(l.records.length<r)){e.next=10;break}return e.abrupt("return",d);case 10:if("__ID__"!==(m=l.records[l.records.length-1]).$id.type){e.next=14;break}return f=m.$id.value,e.abrupt("return",this.getAllRecordsRecursiveWithId(n,f,d));case 14:throw new Error("Missing `$id` in `getRecords` response. This error is likely caused by a bug in Kintone REST API Client. Please file an issue.");case 15:case"end":return e.stop()}}),e,this)}))),function(e,n,a){return y.apply(this,arguments)})},{key:"getAllRecordsWithOffset",value:(g=s(i().mark((function e(n){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAllRecordsRecursiveWithOffset(n,0,[]));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return g.apply(this,arguments)})},{key:"getAllRecordsRecursiveWithOffset",value:(x=s(i().mark((function e(n,a,o){var r,s,c,p,u,l,d,m;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=500,s=n.condition,c=n.orderBy,p=b(n,Gx),u=s?"".concat(s," "):"",l="".concat(u).concat(c?"order by ".concat(c," "):"","limit ").concat(r," offset ").concat(a),e.next=6,this.getRecords(t(t({},p),{},{query:l}));case 6:if(d=e.sent,m=o.concat(d.records),!(d.records.length<r)){e.next=10;break}return e.abrupt("return",m);case 10:return e.abrupt("return",this.getAllRecordsRecursiveWithOffset(n,a+r,m));case 11:case"end":return e.stop()}}),e,this)}))),function(e,n,a){return x.apply(this,arguments)})},{key:"getAllRecordsWithCursor",value:(h=s(i().mark((function e(n){var a,t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.createCursor(n);case 2:return a=e.sent,t=a.id,e.prev=4,e.next=7,this.getAllRecordsRecursiveByCursor(t,[]);case 7:return e.abrupt("return",e.sent);case 10:return e.prev=10,e.t0=e.catch(4),e.next=14,this.deleteCursor({id:t});case 14:throw e.t0;case 15:case"end":return e.stop()}}),e,this,[[4,10]])}))),function(e){return h.apply(this,arguments)})},{key:"getAllRecordsRecursiveByCursor",value:(v=s(i().mark((function e(n,a){var t,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getRecordsByCursor({id:n});case 2:if(t=e.sent,o=a.concat(t.records),!t.next){e.next=6;break}return e.abrupt("return",this.getAllRecordsRecursiveByCursor(n,o));case 6:return e.abrupt("return",o);case 7:case"end":return e.stop()}}),e,this)}))),function(e,n){return v.apply(this,arguments)})},{key:"addAllRecords",value:(f=s(i().mark((function e(n){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.records.every((function(e){return!Array.isArray(e)&&e instanceof Object}))){e.next=2;break}throw new Error("the `records` parameter must be an array of object.");case 2:return e.abrupt("return",this.addAllRecordsRecursive(n,n.records.length,[]));case 3:case"end":return e.stop()}}),e,this)}))),function(e){return f.apply(this,arguments)})},{key:"addAllRecordsRecursive",value:(m=s(i().mark((function e(n,a,t){var o,r,s,c,p;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,r=n.app,s=n.records,0!==(c=s.slice(0,o)).length){e.next=5;break}return e.abrupt("return",{records:t});case 5:return e.prev=5,e.next=8,this.addAllRecordsWithBulkRequest({app:r,records:c});case 8:p=e.sent,e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(5),new zx({records:t},s,a,e.t0,100);case 14:return e.abrupt("return",this.addAllRecordsRecursive({app:r,records:s.slice(o)},a,t.concat(p)));case 15:case"end":return e.stop()}}),e,this,[[5,11]])}))),function(e,n,a){return m.apply(this,arguments)})},{key:"addAllRecordsWithBulkRequest",value:(d=s(i().mark((function e(n){var a,t,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this.separateArrayRecursive(100,[],n.records),t=a.map((function(e){return{method:"POST",endpointName:"records",payload:{app:n.app,records:e}}})),e.next=4,this.bulkRequestClient.send({requests:t});case 4:return o=e.sent.results,e.abrupt("return",o.map((function(e){var n=e.ids,a=e.revisions;return n.map((function(e,n){return{id:e,revision:a[n]}}))})).reduce((function(e,n){return e.concat(n)}),[]));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return d.apply(this,arguments)})},{key:"updateAllRecords",value:(p=s(i().mark((function e(n){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.updateAllRecordsRecursive(n,n.records.length,[]));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return p.apply(this,arguments)})},{key:"updateAllRecordsRecursive",value:(r=s(i().mark((function e(n,a,t){var o,r,s,c,p;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,r=n.app,s=n.records,0!==(c=s.slice(0,o)).length){e.next=5;break}return e.abrupt("return",{records:t});case 5:return e.prev=5,e.next=8,this.updateAllRecordsWithBulkRequest({app:r,records:c});case 8:p=e.sent,e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(5),new zx({records:t},s,a,e.t0,100);case 14:return e.abrupt("return",this.updateAllRecordsRecursive({app:r,records:s.slice(o)},a,t.concat(p)));case 15:case"end":return e.stop()}}),e,this,[[5,11]])}))),function(e,n,a){return r.apply(this,arguments)})},{key:"updateAllRecordsWithBulkRequest",value:(o=s(i().mark((function e(n){var a,t,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this.separateArrayRecursive(100,[],n.records),t=a.map((function(e){return{method:"PUT",endpointName:"records",payload:{app:n.app,records:e}}})),e.next=4,this.bulkRequestClient.send({requests:t});case 4:return o=e.sent.results,e.abrupt("return",o.map((function(e){return e.records})).reduce((function(e,n){return e.concat(n)}),[]));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"deleteAllRecords",value:function(e){return this.deleteAllRecordsRecursive(e,e.records.length)}},{key:"deleteAllRecordsRecursive",value:(a=s(i().mark((function e(n,a){var t,o,r,s;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,o=n.app,r=n.records,0!==(s=r.slice(0,t)).length){e.next=5;break}return e.abrupt("return",{});case 5:return e.prev=5,e.next=8,this.deleteAllRecordsWithBulkRequest({app:o,records:s});case 8:e.next=13;break;case 10:throw e.prev=10,e.t0=e.catch(5),new zx({},r,a,e.t0,100);case 13:return e.abrupt("return",this.deleteAllRecordsRecursive({app:o,records:r.slice(t)},a));case 14:case"end":return e.stop()}}),e,this,[[5,10]])}))),function(e,n){return a.apply(this,arguments)})},{key:"deleteAllRecordsWithBulkRequest",value:(n=s(i().mark((function e(n){var a,t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this.separateArrayRecursive(100,[],n.records),t=a.map((function(e){return{method:"DELETE",endpointName:"records",payload:{app:n.app,ids:e.map((function(e){return e.id})),revisions:e.map((function(e){return e.revision}))}}})),e.next=4,this.bulkRequestClient.send({requests:t});case 4:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"separateArrayRecursive",value:function(e,n,a){var t=a.slice(0,e);return 0===t.length?n:this.separateArrayRecursive(e,[].concat(k(n),[t]),a.slice(e))}},{key:"addRecordComment",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"record/comment"});return this.client.post(n,e)}},{key:"deleteRecordComment",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"record/comment"});return this.client.delete(n,e)}},{key:"getRecordComments",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"record/comments"});return this.client.get(n,e)}},{key:"updateRecordAssignees",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"record/assignees"});return this.client.put(n,e)}},{key:"updateRecordStatus",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"record/status"});return this.client.put(n,e)}},{key:"updateRecordsStatus",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"records/status"});return this.client.put(n,e)}},{key:"buildPathWithGuestSpaceId",value:function(e){return uv(t(t({},e),{},{guestSpaceId:this.guestSpaceId}))}}]),e}(),Vx="object"==typeof self?self.FormData:window.FormData,Yx=function(){function e(n,a){c(this,e),this.client=n,this.guestSpaceId=a}var a;return u(e,[{key:"uploadFile",value:(a=s(i().mark((function e(a){var t,o,r,s,c,p,u,l,d;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.buildPathWithGuestSpaceId({endpointName:"file"}),o=new Vx,!("path"in a.file)){e.next=19;break}return e.prev=3,e.next=6,n.readFileFromPath(a.file.path);case 6:r=e.sent,s=r.name,c=r.data,o.append("file",c,s),e.next=17;break;case 12:if(e.prev=12,e.t0=e.catch(3),!(e.t0 instanceof Wo)){e.next=16;break}throw new Error("uploadFile doesn't allow to accept a file path in ".concat(e.t0.platform," environment."));case 16:throw e.t0;case 17:e.next=22;break;case 19:p=a.file,u=p.name,l=p.data,d=n.buildFormDataValue(l,u),o.append("file",d,u);case 22:return e.abrupt("return",this.client.postData(t,o));case 23:case"end":return e.stop()}}),e,this,[[3,12]])}))),function(e){return a.apply(this,arguments)})},{key:"downloadFile",value:function(e){var n=this.buildPathWithGuestSpaceId({endpointName:"file"});return this.client.getData(n,e)}},{key:"buildPathWithGuestSpaceId",value:function(e){return uv(t(t({},e),{},{guestSpaceId:this.guestSpaceId}))}}]),e}(),$x={},Jx={get exports(){return $x},set exports(e){$x=e}},Qx={},Kx={get exports(){return Qx},set exports(e){Qx=e}},Xx=function(e,n){return function(){for(var a=new Array(arguments.length),t=0;t<a.length;t++)a[t]=arguments[t];return e.apply(n,a)}},Zx=Xx,eb=Object.prototype.toString,nb=(Bx=Object.create(null),function(e){var n=eb.call(e);return Bx[n]||(Bx[n]=n.slice(8,-1).toLowerCase())});function ab(e){return e=e.toLowerCase(),function(n){return nb(n)===e}}function tb(e){return Array.isArray(e)}function ib(e){return void 0===e}var ob=ab("ArrayBuffer");function rb(e){return null!==e&&"object"==typeof e}function sb(e){if("object"!==nb(e))return!1;var n=Object.getPrototypeOf(e);return null===n||n===Object.prototype}var cb=ab("Date"),pb=ab("File"),ub=ab("Blob"),lb=ab("FileList");function db(e){return"[object Function]"===eb.call(e)}var mb=ab("URLSearchParams");function fb(e,n){if(null!=e)if("object"!=typeof e&&(e=[e]),tb(e))for(var a=0,t=e.length;a<t;a++)n.call(null,e[a],a,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.call(null,e[i],i,e)}var vb=function(e){return function(n){return e&&n instanceof e}}("undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array)),hb={isArray:tb,isArrayBuffer:ob,isBuffer:function(e){return null!==e&&!ib(e)&&null!==e.constructor&&!ib(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var n="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||eb.call(e)===n||db(e.toString)&&e.toString()===n)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ob(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:rb,isPlainObject:sb,isUndefined:ib,isDate:cb,isFile:pb,isBlob:ub,isFunction:db,isStream:function(e){return rb(e)&&db(e.pipe)},isURLSearchParams:mb,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:fb,merge:function e(){var n={};function a(a,t){sb(n[t])&&sb(a)?n[t]=e(n[t],a):sb(a)?n[t]=e({},a):tb(a)?n[t]=a.slice():n[t]=a}for(var t=0,i=arguments.length;t<i;t++)fb(arguments[t],a);return n},extend:function(e,n,a){return fb(n,(function(n,t){e[t]=a&&"function"==typeof n?Zx(n,a):n})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,n,a,t){e.prototype=Object.create(n.prototype,t),e.prototype.constructor=e,a&&Object.assign(e.prototype,a)},toFlatObject:function(e,n,a){var t,i,o,r={};n=n||{};do{for(i=(t=Object.getOwnPropertyNames(e)).length;i-- >0;)r[o=t[i]]||(n[o]=e[o],r[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!a||a(e,n))&&e!==Object.prototype);return n},kindOf:nb,kindOfTest:ab,endsWith:function(e,n,a){e=String(e),(void 0===a||a>e.length)&&(a=e.length),a-=n.length;var t=e.indexOf(n,a);return-1!==t&&t===a},toArray:function(e){if(!e)return null;var n=e.length;if(ib(n))return null;for(var a=new Array(n);n-- >0;)a[n]=e[n];return a},isTypedArray:vb,isFileList:lb},xb=hb;function bb(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var gb=function(e,n,a){if(!n)return e;var t;if(a)t=a(n);else if(xb.isURLSearchParams(n))t=n.toString();else{var i=[];xb.forEach(n,(function(e,n){null!=e&&(xb.isArray(e)?n+="[]":e=[e],xb.forEach(e,(function(e){xb.isDate(e)?e=e.toISOString():xb.isObject(e)&&(e=JSON.stringify(e)),i.push(bb(n)+"="+bb(e))})))})),t=i.join("&")}if(t){var o=e.indexOf("#");-1!==o&&(e=e.slice(0,o)),e+=(-1===e.indexOf("?")?"?":"&")+t}return e},yb=hb;function wb(){this.handlers=[]}wb.prototype.use=function(e,n,a){return this.handlers.push({fulfilled:e,rejected:n,synchronous:!!a&&a.synchronous,runWhen:a?a.runWhen:null}),this.handlers.length-1},wb.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},wb.prototype.forEach=function(e){yb.forEach(this.handlers,(function(n){null!==n&&e(n)}))};var kb,jb,Ab=wb,Sb=hb;function Eb(){if(jb)return kb;jb=1;var e=hb;function n(e,n,a,t,i){Error.call(this),this.message=e,this.name="AxiosError",n&&(this.code=n),a&&(this.config=a),t&&(this.request=t),i&&(this.response=i)}e.inherits(n,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var a=n.prototype,t={};return["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){t[e]={value:e}})),Object.defineProperties(n,t),Object.defineProperty(a,"isAxiosError",{value:!0}),n.from=function(t,i,o,r,s,c){var p=Object.create(a);return e.toFlatObject(t,p,(function(e){return e!==Error.prototype})),n.call(p,t.message,i,o,r,s),p.name=t.name,c&&Object.assign(p,c),p},kb=n}var Pb={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Rb=[],Ob=[],Ib="undefined"!=typeof Uint8Array?Uint8Array:Array,Tb=!1;function Ub(){Tb=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=0,a=e.length;n<a;++n)Rb[n]=e[n],Ob[e.charCodeAt(n)]=n;Ob["-".charCodeAt(0)]=62,Ob["_".charCodeAt(0)]=63}function _b(e,n,a){for(var t,i,o=[],r=n;r<a;r+=3)t=(e[r]<<16)+(e[r+1]<<8)+e[r+2],o.push(Rb[(i=t)>>18&63]+Rb[i>>12&63]+Rb[i>>6&63]+Rb[63&i]);return o.join("")}function Nb(e){var n;Tb||Ub();for(var a=e.length,t=a%3,i="",o=[],r=16383,s=0,c=a-t;s<c;s+=r)o.push(_b(e,s,s+r>c?c:s+r));return 1===t?(n=e[a-1],i+=Rb[n>>2],i+=Rb[n<<4&63],i+="=="):2===t&&(n=(e[a-2]<<8)+e[a-1],i+=Rb[n>>10],i+=Rb[n>>4&63],i+=Rb[n<<2&63],i+="="),o.push(i),o.join("")}function Fb(e,n,a,t,i){var o,r,s=8*i-t-1,c=(1<<s)-1,p=c>>1,u=-7,l=a?i-1:0,d=a?-1:1,m=e[n+l];for(l+=d,o=m&(1<<-u)-1,m>>=-u,u+=s;u>0;o=256*o+e[n+l],l+=d,u-=8);for(r=o&(1<<-u)-1,o>>=-u,u+=t;u>0;r=256*r+e[n+l],l+=d,u-=8);if(0===o)o=1-p;else{if(o===c)return r?NaN:1/0*(m?-1:1);r+=Math.pow(2,t),o-=p}return(m?-1:1)*r*Math.pow(2,o-t)}function Cb(e,n,a,t,i,o){var r,s,c,p=8*o-i-1,u=(1<<p)-1,l=u>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,m=t?0:o-1,f=t?1:-1,v=n<0||0===n&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(s=isNaN(n)?1:0,r=u):(r=Math.floor(Math.log(n)/Math.LN2),n*(c=Math.pow(2,-r))<1&&(r--,c*=2),(n+=r+l>=1?d/c:d*Math.pow(2,1-l))*c>=2&&(r++,c/=2),r+l>=u?(s=0,r=u):r+l>=1?(s=(n*c-1)*Math.pow(2,i),r+=l):(s=n*Math.pow(2,l-1)*Math.pow(2,i),r=0));i>=8;e[a+m]=255&s,m+=f,s/=256,i-=8);for(r=r<<i|s,p+=i;p>0;e[a+m]=255&r,m+=f,r/=256,p-=8);e[a+m-f]|=128*v}var qb={}.toString,Lb=Array.isArray||function(e){return"[object Array]"==qb.call(e)};function Bb(){return Db.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function zb(e,n){if(Bb()<n)throw new RangeError("Invalid typed array length");return Db.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(n)).__proto__=Db.prototype:(null===e&&(e=new Db(n)),e.length=n),e}function Db(e,n,a){if(!(Db.TYPED_ARRAY_SUPPORT||this instanceof Db))return new Db(e,n,a);if("number"==typeof e){if("string"==typeof n)throw new Error("If encoding is specified then the first argument must be a string");return Gb(this,e)}return Mb(this,e,n,a)}function Mb(e,n,a,t){if("number"==typeof n)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer?function(e,n,a,t){if(n.byteLength,a<0||n.byteLength<a)throw new RangeError("'offset' is out of bounds");if(n.byteLength<a+(t||0))throw new RangeError("'length' is out of bounds");n=void 0===a&&void 0===t?new Uint8Array(n):void 0===t?new Uint8Array(n,a):new Uint8Array(n,a,t);Db.TYPED_ARRAY_SUPPORT?(e=n).__proto__=Db.prototype:e=Hb(e,n);return e}(e,n,a,t):"string"==typeof n?function(e,n,a){"string"==typeof a&&""!==a||(a="utf8");if(!Db.isEncoding(a))throw new TypeError('"encoding" must be a valid string encoding');var t=0|$b(n,a),i=(e=zb(e,t)).write(n,a);i!==t&&(e=e.slice(0,i));return e}(e,n,a):function(e,n){if(Yb(n)){var a=0|Vb(n.length);return 0===(e=zb(e,a)).length||n.copy(e,0,0,a),e}if(n){if("undefined"!=typeof ArrayBuffer&&n.buffer instanceof ArrayBuffer||"length"in n)return"number"!=typeof n.length||(t=n.length)!=t?zb(e,0):Hb(e,n);if("Buffer"===n.type&&Lb(n.data))return Hb(e,n.data)}var t;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,n)}function Wb(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function Gb(e,n){if(Wb(n),e=zb(e,n<0?0:0|Vb(n)),!Db.TYPED_ARRAY_SUPPORT)for(var a=0;a<n;++a)e[a]=0;return e}function Hb(e,n){var a=n.length<0?0:0|Vb(n.length);e=zb(e,a);for(var t=0;t<a;t+=1)e[t]=255&n[t];return e}function Vb(e){if(e>=Bb())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Bb().toString(16)+" bytes");return 0|e}function Yb(e){return!(null==e||!e._isBuffer)}function $b(e,n){if(Yb(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var a=e.length;if(0===a)return 0;for(var t=!1;;)switch(n){case"ascii":case"latin1":case"binary":return a;case"utf8":case"utf-8":case void 0:return Pg(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*a;case"hex":return a>>>1;case"base64":return Rg(e).length;default:if(t)return Pg(e).length;n=(""+n).toLowerCase(),t=!0}}function Jb(e,n,a){var t=!1;if((void 0===n||n<0)&&(n=0),n>this.length)return"";if((void 0===a||a>this.length)&&(a=this.length),a<=0)return"";if((a>>>=0)<=(n>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return ug(this,n,a);case"utf8":case"utf-8":return rg(this,n,a);case"ascii":return cg(this,n,a);case"latin1":case"binary":return pg(this,n,a);case"base64":return og(this,n,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return lg(this,n,a);default:if(t)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),t=!0}}function Qb(e,n,a){var t=e[n];e[n]=e[a],e[a]=t}function Kb(e,n,a,t,i){if(0===e.length)return-1;if("string"==typeof a?(t=a,a=0):a>2147483647?a=2147483647:a<-2147483648&&(a=-2147483648),a=+a,isNaN(a)&&(a=i?0:e.length-1),a<0&&(a=e.length+a),a>=e.length){if(i)return-1;a=e.length-1}else if(a<0){if(!i)return-1;a=0}if("string"==typeof n&&(n=Db.from(n,t)),Yb(n))return 0===n.length?-1:Xb(e,n,a,t,i);if("number"==typeof n)return n&=255,Db.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,n,a):Uint8Array.prototype.lastIndexOf.call(e,n,a):Xb(e,[n],a,t,i);throw new TypeError("val must be string, number or Buffer")}function Xb(e,n,a,t,i){var o,r=1,s=e.length,c=n.length;if(void 0!==t&&("ucs2"===(t=String(t).toLowerCase())||"ucs-2"===t||"utf16le"===t||"utf-16le"===t)){if(e.length<2||n.length<2)return-1;r=2,s/=2,c/=2,a/=2}function p(e,n){return 1===r?e[n]:e.readUInt16BE(n*r)}if(i){var u=-1;for(o=a;o<s;o++)if(p(e,o)===p(n,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===c)return u*r}else-1!==u&&(o-=o-u),u=-1}else for(a+c>s&&(a=s-c),o=a;o>=0;o--){for(var l=!0,d=0;d<c;d++)if(p(e,o+d)!==p(n,d)){l=!1;break}if(l)return o}return-1}function Zb(e,n,a,t){a=Number(a)||0;var i=e.length-a;t?(t=Number(t))>i&&(t=i):t=i;var o=n.length;if(o%2!=0)throw new TypeError("Invalid hex string");t>o/2&&(t=o/2);for(var r=0;r<t;++r){var s=parseInt(n.substr(2*r,2),16);if(isNaN(s))return r;e[a+r]=s}return r}function eg(e,n,a,t){return Og(Pg(n,e.length-a),e,a,t)}function ng(e,n,a,t){return Og(function(e){for(var n=[],a=0;a<e.length;++a)n.push(255&e.charCodeAt(a));return n}(n),e,a,t)}function ag(e,n,a,t){return ng(e,n,a,t)}function tg(e,n,a,t){return Og(Rg(n),e,a,t)}function ig(e,n,a,t){return Og(function(e,n){for(var a,t,i,o=[],r=0;r<e.length&&!((n-=2)<0);++r)t=(a=e.charCodeAt(r))>>8,i=a%256,o.push(i),o.push(t);return o}(n,e.length-a),e,a,t)}function og(e,n,a){return 0===n&&a===e.length?Nb(e):Nb(e.slice(n,a))}function rg(e,n,a){a=Math.min(e.length,a);for(var t=[],i=n;i<a;){var o,r,s,c,p=e[i],u=null,l=p>239?4:p>223?3:p>191?2:1;if(i+l<=a)switch(l){case 1:p<128&&(u=p);break;case 2:128==(192&(o=e[i+1]))&&(c=(31&p)<<6|63&o)>127&&(u=c);break;case 3:o=e[i+1],r=e[i+2],128==(192&o)&&128==(192&r)&&(c=(15&p)<<12|(63&o)<<6|63&r)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:o=e[i+1],r=e[i+2],s=e[i+3],128==(192&o)&&128==(192&r)&&128==(192&s)&&(c=(15&p)<<18|(63&o)<<12|(63&r)<<6|63&s)>65535&&c<1114112&&(u=c)}null===u?(u=65533,l=1):u>65535&&(u-=65536,t.push(u>>>10&1023|55296),u=56320|1023&u),t.push(u),i+=l}return function(e){var n=e.length;if(n<=sg)return String.fromCharCode.apply(String,e);var a="",t=0;for(;t<n;)a+=String.fromCharCode.apply(String,e.slice(t,t+=sg));return a}(t)}Db.TYPED_ARRAY_SUPPORT=void 0===nx.TYPED_ARRAY_SUPPORT||nx.TYPED_ARRAY_SUPPORT,Bb(),Db.poolSize=8192,Db._augment=function(e){return e.__proto__=Db.prototype,e},Db.from=function(e,n,a){return Mb(null,e,n,a)},Db.TYPED_ARRAY_SUPPORT&&(Db.prototype.__proto__=Uint8Array.prototype,Db.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Db[Symbol.species]),Db.alloc=function(e,n,a){return function(e,n,a,t){return Wb(n),n<=0?zb(e,n):void 0!==a?"string"==typeof t?zb(e,n).fill(a,t):zb(e,n).fill(a):zb(e,n)}(null,e,n,a)},Db.allocUnsafe=function(e){return Gb(null,e)},Db.allocUnsafeSlow=function(e){return Gb(null,e)},Db.isBuffer=function(e){return null!=e&&(!!e._isBuffer||Ig(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&Ig(e.slice(0,0))}(e))},Db.compare=function(e,n){if(!Yb(e)||!Yb(n))throw new TypeError("Arguments must be Buffers");if(e===n)return 0;for(var a=e.length,t=n.length,i=0,o=Math.min(a,t);i<o;++i)if(e[i]!==n[i]){a=e[i],t=n[i];break}return a<t?-1:t<a?1:0},Db.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Db.concat=function(e,n){if(!Lb(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return Db.alloc(0);var a;if(void 0===n)for(n=0,a=0;a<e.length;++a)n+=e[a].length;var t=Db.allocUnsafe(n),i=0;for(a=0;a<e.length;++a){var o=e[a];if(!Yb(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(t,i),i+=o.length}return t},Db.byteLength=$b,Db.prototype._isBuffer=!0,Db.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<e;n+=2)Qb(this,n,n+1);return this},Db.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<e;n+=4)Qb(this,n,n+3),Qb(this,n+1,n+2);return this},Db.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<e;n+=8)Qb(this,n,n+7),Qb(this,n+1,n+6),Qb(this,n+2,n+5),Qb(this,n+3,n+4);return this},Db.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?rg(this,0,e):Jb.apply(this,arguments)},Db.prototype.equals=function(e){if(!Yb(e))throw new TypeError("Argument must be a Buffer");return this===e||0===Db.compare(this,e)},Db.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},Db.prototype.compare=function(e,n,a,t,i){if(!Yb(e))throw new TypeError("Argument must be a Buffer");if(void 0===n&&(n=0),void 0===a&&(a=e?e.length:0),void 0===t&&(t=0),void 0===i&&(i=this.length),n<0||a>e.length||t<0||i>this.length)throw new RangeError("out of range index");if(t>=i&&n>=a)return 0;if(t>=i)return-1;if(n>=a)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(t>>>=0),r=(a>>>=0)-(n>>>=0),s=Math.min(o,r),c=this.slice(t,i),p=e.slice(n,a),u=0;u<s;++u)if(c[u]!==p[u]){o=c[u],r=p[u];break}return o<r?-1:r<o?1:0},Db.prototype.includes=function(e,n,a){return-1!==this.indexOf(e,n,a)},Db.prototype.indexOf=function(e,n,a){return Kb(this,e,n,a,!0)},Db.prototype.lastIndexOf=function(e,n,a){return Kb(this,e,n,a,!1)},Db.prototype.write=function(e,n,a,t){if(void 0===n)t="utf8",a=this.length,n=0;else if(void 0===a&&"string"==typeof n)t=n,a=this.length,n=0;else{if(!isFinite(n))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");n|=0,isFinite(a)?(a|=0,void 0===t&&(t="utf8")):(t=a,a=void 0)}var i=this.length-n;if((void 0===a||a>i)&&(a=i),e.length>0&&(a<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");t||(t="utf8");for(var o=!1;;)switch(t){case"hex":return Zb(this,e,n,a);case"utf8":case"utf-8":return eg(this,e,n,a);case"ascii":return ng(this,e,n,a);case"latin1":case"binary":return ag(this,e,n,a);case"base64":return tg(this,e,n,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ig(this,e,n,a);default:if(o)throw new TypeError("Unknown encoding: "+t);t=(""+t).toLowerCase(),o=!0}},Db.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var sg=4096;function cg(e,n,a){var t="";a=Math.min(e.length,a);for(var i=n;i<a;++i)t+=String.fromCharCode(127&e[i]);return t}function pg(e,n,a){var t="";a=Math.min(e.length,a);for(var i=n;i<a;++i)t+=String.fromCharCode(e[i]);return t}function ug(e,n,a){var t=e.length;(!n||n<0)&&(n=0),(!a||a<0||a>t)&&(a=t);for(var i="",o=n;o<a;++o)i+=Eg(e[o]);return i}function lg(e,n,a){for(var t=e.slice(n,a),i="",o=0;o<t.length;o+=2)i+=String.fromCharCode(t[o]+256*t[o+1]);return i}function dg(e,n,a){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+n>a)throw new RangeError("Trying to access beyond buffer length")}function mg(e,n,a,t,i,o){if(!Yb(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>i||n<o)throw new RangeError('"value" argument is out of bounds');if(a+t>e.length)throw new RangeError("Index out of range")}function fg(e,n,a,t){n<0&&(n=65535+n+1);for(var i=0,o=Math.min(e.length-a,2);i<o;++i)e[a+i]=(n&255<<8*(t?i:1-i))>>>8*(t?i:1-i)}function vg(e,n,a,t){n<0&&(n=4294967295+n+1);for(var i=0,o=Math.min(e.length-a,4);i<o;++i)e[a+i]=n>>>8*(t?i:3-i)&255}function hg(e,n,a,t,i,o){if(a+t>e.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("Index out of range")}function xg(e,n,a,t,i){return i||hg(e,0,a,4),Cb(e,n,a,t,23,4),a+4}function bg(e,n,a,t,i){return i||hg(e,0,a,8),Cb(e,n,a,t,52,8),a+8}Db.prototype.slice=function(e,n){var a,t=this.length;if((e=~~e)<0?(e+=t)<0&&(e=0):e>t&&(e=t),(n=void 0===n?t:~~n)<0?(n+=t)<0&&(n=0):n>t&&(n=t),n<e&&(n=e),Db.TYPED_ARRAY_SUPPORT)(a=this.subarray(e,n)).__proto__=Db.prototype;else{var i=n-e;a=new Db(i,void 0);for(var o=0;o<i;++o)a[o]=this[o+e]}return a},Db.prototype.readUIntLE=function(e,n,a){e|=0,n|=0,a||dg(e,n,this.length);for(var t=this[e],i=1,o=0;++o<n&&(i*=256);)t+=this[e+o]*i;return t},Db.prototype.readUIntBE=function(e,n,a){e|=0,n|=0,a||dg(e,n,this.length);for(var t=this[e+--n],i=1;n>0&&(i*=256);)t+=this[e+--n]*i;return t},Db.prototype.readUInt8=function(e,n){return n||dg(e,1,this.length),this[e]},Db.prototype.readUInt16LE=function(e,n){return n||dg(e,2,this.length),this[e]|this[e+1]<<8},Db.prototype.readUInt16BE=function(e,n){return n||dg(e,2,this.length),this[e]<<8|this[e+1]},Db.prototype.readUInt32LE=function(e,n){return n||dg(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Db.prototype.readUInt32BE=function(e,n){return n||dg(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Db.prototype.readIntLE=function(e,n,a){e|=0,n|=0,a||dg(e,n,this.length);for(var t=this[e],i=1,o=0;++o<n&&(i*=256);)t+=this[e+o]*i;return t>=(i*=128)&&(t-=Math.pow(2,8*n)),t},Db.prototype.readIntBE=function(e,n,a){e|=0,n|=0,a||dg(e,n,this.length);for(var t=n,i=1,o=this[e+--t];t>0&&(i*=256);)o+=this[e+--t]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*n)),o},Db.prototype.readInt8=function(e,n){return n||dg(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Db.prototype.readInt16LE=function(e,n){n||dg(e,2,this.length);var a=this[e]|this[e+1]<<8;return 32768&a?4294901760|a:a},Db.prototype.readInt16BE=function(e,n){n||dg(e,2,this.length);var a=this[e+1]|this[e]<<8;return 32768&a?4294901760|a:a},Db.prototype.readInt32LE=function(e,n){return n||dg(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Db.prototype.readInt32BE=function(e,n){return n||dg(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Db.prototype.readFloatLE=function(e,n){return n||dg(e,4,this.length),Fb(this,e,!0,23,4)},Db.prototype.readFloatBE=function(e,n){return n||dg(e,4,this.length),Fb(this,e,!1,23,4)},Db.prototype.readDoubleLE=function(e,n){return n||dg(e,8,this.length),Fb(this,e,!0,52,8)},Db.prototype.readDoubleBE=function(e,n){return n||dg(e,8,this.length),Fb(this,e,!1,52,8)},Db.prototype.writeUIntLE=function(e,n,a,t){(e=+e,n|=0,a|=0,t)||mg(this,e,n,a,Math.pow(2,8*a)-1,0);var i=1,o=0;for(this[n]=255&e;++o<a&&(i*=256);)this[n+o]=e/i&255;return n+a},Db.prototype.writeUIntBE=function(e,n,a,t){(e=+e,n|=0,a|=0,t)||mg(this,e,n,a,Math.pow(2,8*a)-1,0);var i=a-1,o=1;for(this[n+i]=255&e;--i>=0&&(o*=256);)this[n+i]=e/o&255;return n+a},Db.prototype.writeUInt8=function(e,n,a){return e=+e,n|=0,a||mg(this,e,n,1,255,0),Db.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[n]=255&e,n+1},Db.prototype.writeUInt16LE=function(e,n,a){return e=+e,n|=0,a||mg(this,e,n,2,65535,0),Db.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8):fg(this,e,n,!0),n+2},Db.prototype.writeUInt16BE=function(e,n,a){return e=+e,n|=0,a||mg(this,e,n,2,65535,0),Db.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=255&e):fg(this,e,n,!1),n+2},Db.prototype.writeUInt32LE=function(e,n,a){return e=+e,n|=0,a||mg(this,e,n,4,4294967295,0),Db.TYPED_ARRAY_SUPPORT?(this[n+3]=e>>>24,this[n+2]=e>>>16,this[n+1]=e>>>8,this[n]=255&e):vg(this,e,n,!0),n+4},Db.prototype.writeUInt32BE=function(e,n,a){return e=+e,n|=0,a||mg(this,e,n,4,4294967295,0),Db.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e):vg(this,e,n,!1),n+4},Db.prototype.writeIntLE=function(e,n,a,t){if(e=+e,n|=0,!t){var i=Math.pow(2,8*a-1);mg(this,e,n,a,i-1,-i)}var o=0,r=1,s=0;for(this[n]=255&e;++o<a&&(r*=256);)e<0&&0===s&&0!==this[n+o-1]&&(s=1),this[n+o]=(e/r>>0)-s&255;return n+a},Db.prototype.writeIntBE=function(e,n,a,t){if(e=+e,n|=0,!t){var i=Math.pow(2,8*a-1);mg(this,e,n,a,i-1,-i)}var o=a-1,r=1,s=0;for(this[n+o]=255&e;--o>=0&&(r*=256);)e<0&&0===s&&0!==this[n+o+1]&&(s=1),this[n+o]=(e/r>>0)-s&255;return n+a},Db.prototype.writeInt8=function(e,n,a){return e=+e,n|=0,a||mg(this,e,n,1,127,-128),Db.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[n]=255&e,n+1},Db.prototype.writeInt16LE=function(e,n,a){return e=+e,n|=0,a||mg(this,e,n,2,32767,-32768),Db.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8):fg(this,e,n,!0),n+2},Db.prototype.writeInt16BE=function(e,n,a){return e=+e,n|=0,a||mg(this,e,n,2,32767,-32768),Db.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=255&e):fg(this,e,n,!1),n+2},Db.prototype.writeInt32LE=function(e,n,a){return e=+e,n|=0,a||mg(this,e,n,4,2147483647,-2147483648),Db.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8,this[n+2]=e>>>16,this[n+3]=e>>>24):vg(this,e,n,!0),n+4},Db.prototype.writeInt32BE=function(e,n,a){return e=+e,n|=0,a||mg(this,e,n,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Db.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e):vg(this,e,n,!1),n+4},Db.prototype.writeFloatLE=function(e,n,a){return xg(this,e,n,!0,a)},Db.prototype.writeFloatBE=function(e,n,a){return xg(this,e,n,!1,a)},Db.prototype.writeDoubleLE=function(e,n,a){return bg(this,e,n,!0,a)},Db.prototype.writeDoubleBE=function(e,n,a){return bg(this,e,n,!1,a)},Db.prototype.copy=function(e,n,a,t){if(a||(a=0),t||0===t||(t=this.length),n>=e.length&&(n=e.length),n||(n=0),t>0&&t<a&&(t=a),t===a)return 0;if(0===e.length||0===this.length)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(a<0||a>=this.length)throw new RangeError("sourceStart out of bounds");if(t<0)throw new RangeError("sourceEnd out of bounds");t>this.length&&(t=this.length),e.length-n<t-a&&(t=e.length-n+a);var i,o=t-a;if(this===e&&a<n&&n<t)for(i=o-1;i>=0;--i)e[i+n]=this[i+a];else if(o<1e3||!Db.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+n]=this[i+a];else Uint8Array.prototype.set.call(e,this.subarray(a,a+o),n);return o},Db.prototype.fill=function(e,n,a,t){if("string"==typeof e){if("string"==typeof n?(t=n,n=0,a=this.length):"string"==typeof a&&(t=a,a=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==t&&"string"!=typeof t)throw new TypeError("encoding must be a string");if("string"==typeof t&&!Db.isEncoding(t))throw new TypeError("Unknown encoding: "+t)}else"number"==typeof e&&(e&=255);if(n<0||this.length<n||this.length<a)throw new RangeError("Out of range index");if(a<=n)return this;var o;if(n>>>=0,a=void 0===a?this.length:a>>>0,e||(e=0),"number"==typeof e)for(o=n;o<a;++o)this[o]=e;else{var r=Yb(e)?e:Pg(new Db(e,t).toString()),s=r.length;for(o=0;o<a-n;++o)this[o+n]=r[o%s]}return this};var gg,yg,wg,kg,jg,Ag,Sg=/[^+\/0-9A-Za-z-_]/g;function Eg(e){return e<16?"0"+e.toString(16):e.toString(16)}function Pg(e,n){var a;n=n||1/0;for(var t=e.length,i=null,o=[],r=0;r<t;++r){if((a=e.charCodeAt(r))>55295&&a<57344){if(!i){if(a>56319){(n-=3)>-1&&o.push(239,191,189);continue}if(r+1===t){(n-=3)>-1&&o.push(239,191,189);continue}i=a;continue}if(a<56320){(n-=3)>-1&&o.push(239,191,189),i=a;continue}a=65536+(i-55296<<10|a-56320)}else i&&(n-=3)>-1&&o.push(239,191,189);if(i=null,a<128){if((n-=1)<0)break;o.push(a)}else if(a<2048){if((n-=2)<0)break;o.push(a>>6|192,63&a|128)}else if(a<65536){if((n-=3)<0)break;o.push(a>>12|224,a>>6&63|128,63&a|128)}else{if(!(a<1114112))throw new Error("Invalid code point");if((n-=4)<0)break;o.push(a>>18|240,a>>12&63|128,a>>6&63|128,63&a|128)}}return o}function Rg(e){return function(e){var n,a,t,i,o,r;Tb||Ub();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[s-2]?2:"="===e[s-1]?1:0,r=new Ib(3*s/4-o),t=o>0?s-4:s;var c=0;for(n=0,a=0;n<t;n+=4,a+=3)i=Ob[e.charCodeAt(n)]<<18|Ob[e.charCodeAt(n+1)]<<12|Ob[e.charCodeAt(n+2)]<<6|Ob[e.charCodeAt(n+3)],r[c++]=i>>16&255,r[c++]=i>>8&255,r[c++]=255&i;return 2===o?(i=Ob[e.charCodeAt(n)]<<2|Ob[e.charCodeAt(n+1)]>>4,r[c++]=255&i):1===o&&(i=Ob[e.charCodeAt(n)]<<10|Ob[e.charCodeAt(n+1)]<<4|Ob[e.charCodeAt(n+2)]>>2,r[c++]=i>>8&255,r[c++]=255&i),r}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(Sg,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Og(e,n,a,t){for(var i=0;i<t&&!(i+a>=n.length||i>=e.length);++i)n[i+a]=e[i];return i}function Ig(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function Tg(){if(yg)return gg;yg=1;var e=hb;return gg=function(n,a){a=a||new FormData;var t=[];function i(n){return null===n?"":e.isDate(n)?n.toISOString():e.isArrayBuffer(n)||e.isTypedArray(n)?"function"==typeof Blob?new Blob([n]):Db.from(n):n}return function n(o,r){if(e.isPlainObject(o)||e.isArray(o)){if(-1!==t.indexOf(o))throw Error("Circular reference detected in "+r);t.push(o),e.forEach(o,(function(t,o){if(!e.isUndefined(t)){var s,c=r?r+"."+o:o;if(t&&!r&&"object"==typeof t)if(e.endsWith(o,"{}"))t=JSON.stringify(t);else if(e.endsWith(o,"[]")&&(s=e.toArray(t)))return void s.forEach((function(n){!e.isUndefined(n)&&a.append(c,i(n))}));n(t,c)}})),t.pop()}else a.append(r,i(o))}(n),a},gg}function Ug(){if(kg)return wg;kg=1;var e=Eb();return wg=function(n,a,t){var i=t.config.validateStatus;t.status&&i&&!i(t.status)?a(new e("Request failed with status code "+t.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t)):n(t)},wg}function _g(){if(Ag)return jg;Ag=1;var e=hb;return jg=e.isStandardBrowserEnv()?{write:function(n,a,t,i,o,r){var s=[];s.push(n+"="+encodeURIComponent(a)),e.isNumber(t)&&s.push("expires="+new Date(t).toGMTString()),e.isString(i)&&s.push("path="+i),e.isString(o)&&s.push("domain="+o),!0===r&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var n=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},jg}var Ng,Fg,Cg,qg,Lg,Bg,zg,Dg,Mg,Wg,Gg,Hg,Vg=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)},Yg=function(e,n){return n?e.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):e},$g=function(e,n){return e&&!Vg(n)?Yg(e,n):n};function Jg(){if(Fg)return Ng;Fg=1;var e=hb,n=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return Ng=function(a){var t,i,o,r={};return a?(e.forEach(a.split("\n"),(function(a){if(o=a.indexOf(":"),t=e.trim(a.substr(0,o)).toLowerCase(),i=e.trim(a.substr(o+1)),t){if(r[t]&&n.indexOf(t)>=0)return;r[t]="set-cookie"===t?(r[t]?r[t]:[]).concat([i]):r[t]?r[t]+", "+i:i}})),r):r}}function Qg(){if(qg)return Cg;qg=1;var e=hb;return Cg=e.isStandardBrowserEnv()?function(){var n,a=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");function i(e){var n=e;return a&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=i(window.location.href),function(a){var t=e.isString(a)?i(a):a;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0}}function Kg(){if(Bg)return Lg;Bg=1;var e=Eb();function n(n){e.call(this,null==n?"canceled":n,e.ERR_CANCELED),this.name="CanceledError"}return hb.inherits(n,e,{__CANCEL__:!0}),Lg=n}function Xg(){return Dg||(Dg=1,zg=function(e){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}),zg}function Zg(){if(Wg)return Mg;Wg=1;var e=hb,n=Ug(),a=_g(),t=gb,i=$g,o=Jg(),r=Qg(),s=Pb,c=Eb(),p=Kg(),u=Xg();return Mg=function(l){return new Promise((function(d,m){var f,v=l.data,h=l.headers,x=l.responseType;function b(){l.cancelToken&&l.cancelToken.unsubscribe(f),l.signal&&l.signal.removeEventListener("abort",f)}e.isFormData(v)&&e.isStandardBrowserEnv()&&delete h["Content-Type"];var g=new XMLHttpRequest;if(l.auth){var y=l.auth.username||"",w=l.auth.password?unescape(encodeURIComponent(l.auth.password)):"";h.Authorization="Basic "+btoa(y+":"+w)}var k=i(l.baseURL,l.url);function j(){if(g){var e="getAllResponseHeaders"in g?o(g.getAllResponseHeaders()):null,a={data:x&&"text"!==x&&"json"!==x?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:e,config:l,request:g};n((function(e){d(e),b()}),(function(e){m(e),b()}),a),g=null}}if(g.open(l.method.toUpperCase(),t(k,l.params,l.paramsSerializer),!0),g.timeout=l.timeout,"onloadend"in g?g.onloadend=j:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(j)},g.onabort=function(){g&&(m(new c("Request aborted",c.ECONNABORTED,l,g)),g=null)},g.onerror=function(){m(new c("Network Error",c.ERR_NETWORK,l,g,g)),g=null},g.ontimeout=function(){var e=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded",n=l.transitional||s;l.timeoutErrorMessage&&(e=l.timeoutErrorMessage),m(new c(e,n.clarifyTimeoutError?c.ETIMEDOUT:c.ECONNABORTED,l,g)),g=null},e.isStandardBrowserEnv()){var A=(l.withCredentials||r(k))&&l.xsrfCookieName?a.read(l.xsrfCookieName):void 0;A&&(h[l.xsrfHeaderName]=A)}"setRequestHeader"in g&&e.forEach(h,(function(e,n){void 0===v&&"content-type"===n.toLowerCase()?delete h[n]:g.setRequestHeader(n,e)})),e.isUndefined(l.withCredentials)||(g.withCredentials=!!l.withCredentials),x&&"json"!==x&&(g.responseType=l.responseType),"function"==typeof l.onDownloadProgress&&g.addEventListener("progress",l.onDownloadProgress),"function"==typeof l.onUploadProgress&&g.upload&&g.upload.addEventListener("progress",l.onUploadProgress),(l.cancelToken||l.signal)&&(f=function(e){g&&(m(!e||e&&e.type?new p:e),g.abort(),g=null)},l.cancelToken&&l.cancelToken.subscribe(f),l.signal&&(l.signal.aborted?f():l.signal.addEventListener("abort",f))),v||(v=null);var S=u(k);S&&-1===["http","https","file"].indexOf(S)?m(new c("Unsupported protocol "+S+":",c.ERR_BAD_REQUEST,l)):g.send(v)}))},Mg}var ey=hb,ny=function(e,n){Sb.forEach(e,(function(a,t){t!==n&&t.toUpperCase()===n.toUpperCase()&&(e[n]=a,delete e[t])}))},ay=Eb(),ty=Pb,iy=Tg(),oy={"Content-Type":"application/x-www-form-urlencoded"};function ry(e,n){!ey.isUndefined(e)&&ey.isUndefined(e["Content-Type"])&&(e["Content-Type"]=n)}var sy,cy={transitional:ty,adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==Sx&&"[object process]"===Object.prototype.toString.call(Sx))&&(sy=Zg()),sy),transformRequest:[function(e,n){if(ny(n,"Accept"),ny(n,"Content-Type"),ey.isFormData(e)||ey.isArrayBuffer(e)||ey.isBuffer(e)||ey.isStream(e)||ey.isFile(e)||ey.isBlob(e))return e;if(ey.isArrayBufferView(e))return e.buffer;if(ey.isURLSearchParams(e))return ry(n,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var a,t=ey.isObject(e),i=n&&n["Content-Type"];if((a=ey.isFileList(e))||t&&"multipart/form-data"===i){var o=this.env&&this.env.FormData;return iy(a?{"files[]":e}:e,o&&new o)}return t||"application/json"===i?(ry(n,"application/json"),function(e,n,a){if(ey.isString(e))try{return(n||JSON.parse)(e),ey.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(a||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var n=this.transitional||cy.transitional,a=n&&n.silentJSONParsing,t=n&&n.forcedJSONParsing,i=!a&&"json"===this.responseType;if(i||t&&ey.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw ay.from(e,ay.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Hg?Gg:(Hg=1,Gg=null)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};ey.forEach(["delete","get","head"],(function(e){cy.headers[e]={}})),ey.forEach(["post","put","patch"],(function(e){cy.headers[e]=ey.merge(oy)}));var py,uy,ly=cy,dy=hb,my=ly;function fy(){return uy?py:(uy=1,py=function(e){return!(!e||!e.__CANCEL__)})}var vy=hb,hy=function(e,n,a){var t=this||my;return dy.forEach(a,(function(a){e=a.call(t,e,n)})),e},xy=fy(),by=ly,gy=Kg();function yy(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new gy}var wy,ky,jy=hb,Ay=function(e,n){n=n||{};var a={};function t(e,n){return jy.isPlainObject(e)&&jy.isPlainObject(n)?jy.merge(e,n):jy.isPlainObject(n)?jy.merge({},n):jy.isArray(n)?n.slice():n}function i(a){return jy.isUndefined(n[a])?jy.isUndefined(e[a])?void 0:t(void 0,e[a]):t(e[a],n[a])}function o(e){if(!jy.isUndefined(n[e]))return t(void 0,n[e])}function r(a){return jy.isUndefined(n[a])?jy.isUndefined(e[a])?void 0:t(void 0,e[a]):t(void 0,n[a])}function s(a){return a in n?t(e[a],n[a]):a in e?t(void 0,e[a]):void 0}var c={url:o,method:o,data:o,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:s};return jy.forEach(Object.keys(e).concat(Object.keys(n)),(function(e){var n=c[e]||i,t=n(e);jy.isUndefined(t)&&n!==s||(a[e]=t)})),a};function Sy(){return ky?wy:(ky=1,wy={version:"0.27.2"})}var Ey=Sy().version,Py=Eb(),Ry={};["object","boolean","number","function","string","symbol"].forEach((function(e,n){Ry[e]=function(a){return typeof a===e||"a"+(n<1?"n ":" ")+e}}));var Oy={};Ry.transitional=function(e,n,a){function t(e,n){return"[Axios v"+Ey+"] Transitional option '"+e+"'"+n+(a?". "+a:"")}return function(a,i,o){if(!1===e)throw new Py(t(i," has been removed"+(n?" in "+n:"")),Py.ERR_DEPRECATED);return n&&!Oy[i]&&(Oy[i]=!0,console.warn(t(i," has been deprecated since v"+n+" and will be removed in the near future"))),!e||e(a,i,o)}};var Iy,Ty,Uy,_y,Ny,Fy,Cy={assertOptions:function(e,n,a){if("object"!=typeof e)throw new Py("options must be an object",Py.ERR_BAD_OPTION_VALUE);for(var t=Object.keys(e),i=t.length;i-- >0;){var o=t[i],r=n[o];if(r){var s=e[o],c=void 0===s||r(s,o,e);if(!0!==c)throw new Py("option "+o+" must be "+c,Py.ERR_BAD_OPTION_VALUE)}else if(!0!==a)throw new Py("Unknown option "+o,Py.ERR_BAD_OPTION)}},validators:Ry},qy=hb,Ly=gb,By=Ab,zy=function(e){return yy(e),e.headers=e.headers||{},e.data=hy.call(e,e.data,e.headers,e.transformRequest),e.headers=vy.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),vy.forEach(["delete","get","head","post","put","patch","common"],(function(n){delete e.headers[n]})),(e.adapter||by.adapter)(e).then((function(n){return yy(e),n.data=hy.call(e,n.data,n.headers,e.transformResponse),n}),(function(n){return xy(n)||(yy(e),n&&n.response&&(n.response.data=hy.call(e,n.response.data,n.response.headers,e.transformResponse))),Promise.reject(n)}))},Dy=Ay,My=$g,Wy=Cy,Gy=Wy.validators;function Hy(e){this.defaults=e,this.interceptors={request:new By,response:new By}}Hy.prototype.request=function(e,n){"string"==typeof e?(n=n||{}).url=e:n=e||{},(n=Dy(this.defaults,n)).method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var a=n.transitional;void 0!==a&&Wy.assertOptions(a,{silentJSONParsing:Gy.transitional(Gy.boolean),forcedJSONParsing:Gy.transitional(Gy.boolean),clarifyTimeoutError:Gy.transitional(Gy.boolean)},!1);var t=[],i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(n)||(i=i&&e.synchronous,t.unshift(e.fulfilled,e.rejected))}));var o,r=[];if(this.interceptors.response.forEach((function(e){r.push(e.fulfilled,e.rejected)})),!i){var s=[zy,void 0];for(Array.prototype.unshift.apply(s,t),s=s.concat(r),o=Promise.resolve(n);s.length;)o=o.then(s.shift(),s.shift());return o}for(var c=n;t.length;){var p=t.shift(),u=t.shift();try{c=p(c)}catch(e){u(e);break}}try{o=zy(c)}catch(e){return Promise.reject(e)}for(;r.length;)o=o.then(r.shift(),r.shift());return o},Hy.prototype.getUri=function(e){e=Dy(this.defaults,e);var n=My(e.baseURL,e.url);return Ly(n,e.params,e.paramsSerializer)},qy.forEach(["delete","get","head","options"],(function(e){Hy.prototype[e]=function(n,a){return this.request(Dy(a||{},{method:e,url:n,data:(a||{}).data}))}})),qy.forEach(["post","put","patch"],(function(e){function n(n){return function(a,t,i){return this.request(Dy(i||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:t}))}}Hy.prototype[e]=n(),Hy.prototype[e+"Form"]=n(!0)}));var Vy=hb,Yy=Xx,$y=Hy,Jy=Ay;var Qy=function e(n){var a=new $y(n),t=Yy($y.prototype.request,a);return Vy.extend(t,$y.prototype,a),Vy.extend(t,a),t.create=function(a){return e(Jy(n,a))},t}(ly);Qy.Axios=$y,Qy.CanceledError=Kg(),Qy.CancelToken=function(){if(Ty)return Iy;Ty=1;var e=Kg();function n(n){if("function"!=typeof n)throw new TypeError("executor must be a function.");var a;this.promise=new Promise((function(e){a=e}));var t=this;this.promise.then((function(e){if(t._listeners){var n,a=t._listeners.length;for(n=0;n<a;n++)t._listeners[n](e);t._listeners=null}})),this.promise.then=function(e){var n,a=new Promise((function(e){t.subscribe(e),n=e})).then(e);return a.cancel=function(){t.unsubscribe(n)},a},n((function(n){t.reason||(t.reason=new e(n),a(t.reason))}))}return n.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},n.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},n.prototype.unsubscribe=function(e){if(this._listeners){var n=this._listeners.indexOf(e);-1!==n&&this._listeners.splice(n,1)}},n.source=function(){var e;return{token:new n((function(n){e=n})),cancel:e}},Iy=n}(),Qy.isCancel=fy(),Qy.VERSION=Sy().version,Qy.toFormData=Tg(),Qy.AxiosError=Eb(),Qy.Cancel=Qy.CanceledError,Qy.all=function(e){return Promise.all(e)},Qy.spread=_y?Uy:(_y=1,Uy=function(e){return function(n){return e.apply(null,n)}}),Qy.isAxiosError=function(){if(Fy)return Ny;Fy=1;var e=hb;return Ny=function(n){return e.isObject(n)&&!0===n.isAxiosError}}(),Kx.exports=Qy,Qx.default=Qy,function(e){e.exports=Qx}(Jx);var Ky=E($x),Xy=function(){function e(n){var a=n.responseHandler,t=n.requestConfigBuilder;c(this,e),this.responseHandler=a,this.requestConfigBuilder=t}var n,a,o,r,p,l;return u(e,[{key:"get",value:(l=s(i().mark((function e(n,a){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("get",n,a);case 2:return t=e.sent,e.next=5,this.sendRequest(t);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,n){return l.apply(this,arguments)})},{key:"getData",value:(p=s(i().mark((function e(n,a){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("get",n,a,{responseType:"arraybuffer"});case 2:return t=e.sent,e.next=5,this.sendRequest(t);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,n){return p.apply(this,arguments)})},{key:"post",value:(r=s(i().mark((function e(n,a){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("post",n,a);case 2:return t=e.sent,e.next=5,this.sendRequest(t);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,n){return r.apply(this,arguments)})},{key:"postData",value:(o=s(i().mark((function e(n,a){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("post",n,a);case 2:return t=e.sent,e.next=5,this.sendRequest(t);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,n){return o.apply(this,arguments)})},{key:"put",value:(a=s(i().mark((function e(n,a){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("put",n,a);case 2:return t=e.sent,e.next=5,this.sendRequest(t);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,n){return a.apply(this,arguments)})},{key:"delete",value:(n=s(i().mark((function e(n,a){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("delete",n,a);case 2:return t=e.sent,e.next=5,this.sendRequest(t);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,a){return n.apply(this,arguments)})},{key:"sendRequest",value:function(e){return this.responseHandler.handle(Ky(t(t({},e),{},{maxBodyLength:1/0,maxContentLength:1/0})))}}]),e}(),Zy=Si,ew=te,nw=ue,aw=Eh,tw=$([].join);Zy({target:"Array",proto:!0,forced:ew!=Object||!aw("join",",")},{join:function(e){return tw(nw(this),void 0===e?",":e)}});var iw,ow=S.Symbol,rw=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},n=Symbol("test"),a=Object(n);if("string"==typeof n)return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;if("[object Symbol]"!==Object.prototype.toString.call(a))return!1;for(n in e[n]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var t=Object.getOwnPropertySymbols(e);if(1!==t.length||t[0]!==n)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,n);if(42!==i.value||!0!==i.enumerable)return!1}return!0},sw=function(){return"function"==typeof ow&&("function"==typeof Symbol&&("symbol"==typeof ow("foo")&&("symbol"==typeof Symbol("bar")&&rw())))},cw="Function.prototype.bind called on incompatible ",pw=Array.prototype.slice,uw=Object.prototype.toString,lw="[object Function]",dw=function(e){var n=this;if("function"!=typeof n||uw.call(n)!==lw)throw new TypeError(cw+n);for(var a,t=pw.call(arguments,1),i=function(){if(this instanceof a){var i=n.apply(this,t.concat(pw.call(arguments)));return Object(i)===i?i:this}return n.apply(e,t.concat(pw.call(arguments)))},o=Math.max(0,n.length-t.length),r=[],s=0;s<o;s++)r.push("$"+s);if(a=Function("binder","return function ("+r.join(",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var c=function(){};c.prototype=n.prototype,a.prototype=new c,c.prototype=null}return a},mw=Function.prototype.bind||dw,fw=mw.call(Function.call,Object.prototype.hasOwnProperty),vw=SyntaxError,hw=Function,xw=TypeError,bw=function(e){try{return hw('"use strict"; return ('+e+").constructor;")()}catch(e){}},gw=Object.getOwnPropertyDescriptor;if(gw)try{gw({},"")}catch(e){gw=null}var yw,ww=function(){throw new xw},kw=gw?function(){try{return ww}catch(e){try{return gw(arguments,"callee").get}catch(e){return ww}}}():ww,jw=sw(),Aw=Object.getPrototypeOf||function(e){return e.__proto__},Sw={},Ew="undefined"==typeof Uint8Array?iw:Aw(Uint8Array),Pw={"%AggregateError%":"undefined"==typeof AggregateError?iw:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?iw:ArrayBuffer,"%ArrayIteratorPrototype%":jw?Aw([][Symbol.iterator]()):iw,"%AsyncFromSyncIteratorPrototype%":iw,"%AsyncFunction%":Sw,"%AsyncGenerator%":Sw,"%AsyncGeneratorFunction%":Sw,"%AsyncIteratorPrototype%":Sw,"%Atomics%":"undefined"==typeof Atomics?iw:Atomics,"%BigInt%":"undefined"==typeof BigInt?iw:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?iw:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?iw:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?iw:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?iw:FinalizationRegistry,"%Function%":hw,"%GeneratorFunction%":Sw,"%Int8Array%":"undefined"==typeof Int8Array?iw:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?iw:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?iw:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":jw?Aw(Aw([][Symbol.iterator]())):iw,"%JSON%":"object"==typeof JSON?JSON:iw,"%Map%":"undefined"==typeof Map?iw:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&jw?Aw((new Map)[Symbol.iterator]()):iw,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?iw:Promise,"%Proxy%":"undefined"==typeof Proxy?iw:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?iw:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?iw:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&jw?Aw((new Set)[Symbol.iterator]()):iw,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?iw:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":jw?Aw(""[Symbol.iterator]()):iw,"%Symbol%":jw?Symbol:iw,"%SyntaxError%":vw,"%ThrowTypeError%":kw,"%TypedArray%":Ew,"%TypeError%":xw,"%Uint8Array%":"undefined"==typeof Uint8Array?iw:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?iw:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?iw:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?iw:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?iw:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?iw:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?iw:WeakSet},Rw=function e(n){var a;if("%AsyncFunction%"===n)a=bw("async function () {}");else if("%GeneratorFunction%"===n)a=bw("function* () {}");else if("%AsyncGeneratorFunction%"===n)a=bw("async function* () {}");else if("%AsyncGenerator%"===n){var t=e("%AsyncGeneratorFunction%");t&&(a=t.prototype)}else if("%AsyncIteratorPrototype%"===n){var i=e("%AsyncGenerator%");i&&(a=Aw(i.prototype))}return Pw[n]=a,a},Ow={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Iw=mw,Tw=fw,Uw=Iw.call(Function.call,Array.prototype.concat),_w=Iw.call(Function.apply,Array.prototype.splice),Nw=Iw.call(Function.call,String.prototype.replace),Fw=Iw.call(Function.call,String.prototype.slice),Cw=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,qw=/\\(\\)?/g,Lw=function(e){var n=Fw(e,0,1),a=Fw(e,-1);if("%"===n&&"%"!==a)throw new vw("invalid intrinsic syntax, expected closing `%`");if("%"===a&&"%"!==n)throw new vw("invalid intrinsic syntax, expected opening `%`");var t=[];return Nw(e,Cw,(function(e,n,a,i){t[t.length]=a?Nw(i,qw,"$1"):n||e})),t},Bw=function(e,n){var a,t=e;if(Tw(Ow,t)&&(t="%"+(a=Ow[t])[0]+"%"),Tw(Pw,t)){var i=Pw[t];if(i===Sw&&(i=Rw(t)),void 0===i&&!n)throw new xw("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:t,value:i}}throw new vw("intrinsic "+e+" does not exist!")},zw=SyntaxError,Dw=Function,Mw=TypeError,Ww=function(e){try{return Function('"use strict"; return ('+e+").constructor;")()}catch(e){}},Gw=Object.getOwnPropertyDescriptor;if(Gw)try{Gw({},"")}catch(e){Gw=null}var Hw=function(){throw new Mw},Vw=Gw?function(){try{return Hw}catch(e){try{return Gw(arguments,"callee").get}catch(e){return Hw}}}():Hw,Yw=sw(),$w=Object.getPrototypeOf||function(e){return e.__proto__},Jw=Ww("async function* () {}"),Qw=Jw?Jw.prototype:yw,Kw=Qw?Qw.prototype:yw,Xw="undefined"==typeof Uint8Array?yw:$w(Uint8Array),Zw={"%AggregateError%":"undefined"==typeof AggregateError?yw:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?yw:ArrayBuffer,"%ArrayIteratorPrototype%":Yw?$w([][Symbol.iterator]()):yw,"%AsyncFromSyncIteratorPrototype%":yw,"%AsyncFunction%":Ww("async function () {}"),"%AsyncGenerator%":Qw,"%AsyncGeneratorFunction%":Jw,"%AsyncIteratorPrototype%":Kw?$w(Kw):yw,"%Atomics%":"undefined"==typeof Atomics?yw:Atomics,"%BigInt%":"undefined"==typeof BigInt?yw:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?yw:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?yw:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?yw:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?yw:FinalizationRegistry,"%Function%":Dw,"%GeneratorFunction%":Ww("function* () {}"),"%Int8Array%":"undefined"==typeof Int8Array?yw:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?yw:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?yw:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Yw?$w($w([][Symbol.iterator]())):yw,"%JSON%":"object"==typeof JSON?JSON:yw,"%Map%":"undefined"==typeof Map?yw:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Yw?$w((new Map)[Symbol.iterator]()):yw,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?yw:Promise,"%Proxy%":"undefined"==typeof Proxy?yw:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?yw:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?yw:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Yw?$w((new Set)[Symbol.iterator]()):yw,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?yw:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Yw?$w(""[Symbol.iterator]()):yw,"%Symbol%":Yw?Symbol:yw,"%SyntaxError%":zw,"%ThrowTypeError%":Vw,"%TypedArray%":Xw,"%TypeError%":Mw,"%Uint8Array%":"undefined"==typeof Uint8Array?yw:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?yw:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?yw:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?yw:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?yw:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?yw:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?yw:WeakSet},ek={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},nk=mw,ak=fw,tk=nk.call(Function.call,Array.prototype.concat),ik=nk.call(Function.apply,Array.prototype.splice),ok=nk.call(Function.call,String.prototype.replace),rk=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,sk=/\\(\\)?/g,ck=function(e){var n=[];return ok(e,rk,(function(e,a,t,i){n[n.length]=t?ok(i,sk,"$1"):a||e})),n},pk=function(e,n){var a,t=e;if(ak(ek,t)&&(t="%"+(a=ek[t])[0]+"%"),ak(Zw,t)){var i=Zw[t];if(void 0===i&&!n)throw new Mw("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:t,value:i}}throw new zw("intrinsic "+e+" does not exist!")},uk=function(e,n){if("string"!=typeof e||0===e.length)throw new Mw("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof n)throw new Mw('"allowMissing" argument must be a boolean');var a=ck(e),t=a.length>0?a[0]:"",i=pk("%"+t+"%",n),o=i.name,r=i.value,s=!1,c=i.alias;c&&(t=c[0],ik(a,tk([0,1],c)));for(var p=1,u=!0;p<a.length;p+=1){var l=a[p];if("constructor"!==l&&u||(s=!0),ak(Zw,o="%"+(t+="."+l)+"%"))r=Zw[o];else if(null!=r){if(Gw&&p+1>=a.length){var d=Gw(r,l);if(u=!!d,!n&&!(l in r))throw new Mw("base intrinsic for "+e+" exists, but the property is not available.");r=u&&"get"in d&&!("originalValue"in d.get)?d.get:r[l]}else u=ak(r,l),r=r[l];u&&!s&&(Zw[o]=r)}}return r},lk={};!function(e){var n=mw,a=uk,t=a("%Function.prototype.apply%"),i=a("%Function.prototype.call%"),o=a("%Reflect.apply%",!0)||n.call(i,t),r=a("%Object.defineProperty%",!0);if(r)try{r({},"a",{value:1})}catch(e){r=null}e.exports=function(){return o(n,i,arguments)};var s=function(){return o(n,t,arguments)};r?r(e.exports,"apply",{value:s}):e.exports.apply=s}({get exports(){return lk},set exports(e){lk=e}});var dk=uk,mk=lk,fk=mk(dk("String.prototype.indexOf")),vk=P(Object.freeze({__proto__:null,default:{}})),hk="function"==typeof Map&&Map.prototype,xk=Object.getOwnPropertyDescriptor&&hk?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,bk=hk&&xk&&"function"==typeof xk.get?xk.get:null,gk=hk&&Map.prototype.forEach,yk="function"==typeof Set&&Set.prototype,wk=Object.getOwnPropertyDescriptor&&yk?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,kk=yk&&wk&&"function"==typeof wk.get?wk.get:null,jk=yk&&Set.prototype.forEach,Ak="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Sk="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Ek=Boolean.prototype.valueOf,Pk=Object.prototype.toString,Rk=Function.prototype.toString,Ok=String.prototype.match,Ik="function"==typeof BigInt?BigInt.prototype.valueOf:null,Tk=Object.getOwnPropertySymbols,Uk="function"==typeof Symbol?Symbol.prototype.toString:null,_k=Object.prototype.propertyIsEnumerable,Nk=vk.custom,Fk=Nk&&Bk(Nk)?Nk:null;function Ck(e,n,a){var t="double"===(a.quoteStyle||n)?'"':"'";return t+e+t}function qk(e){return String(e).replace(/"/g,"&quot;")}function Lk(e){return"[object Array]"===Mk(e)}function Bk(e){return"[object Symbol]"===Mk(e)}var zk=Object.prototype.hasOwnProperty||function(e){return e in this};function Dk(e,n){return zk.call(e,n)}function Mk(e){return Pk.call(e)}function Wk(e,n){if(e.indexOf)return e.indexOf(n);for(var a=0,t=e.length;a<t;a++)if(e[a]===n)return a;return-1}function Gk(e,n){if(e.length>n.maxStringLength){var a=e.length-n.maxStringLength,t="... "+a+" more character"+(a>1?"s":"");return Gk(e.slice(0,n.maxStringLength),n)+t}return Ck(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,Hk),"single",n)}function Hk(e){var n=e.charCodeAt(0),a={8:"b",9:"t",10:"n",12:"f",13:"r"}[n];return a?"\\"+a:"\\x"+(n<16?"0":"")+n.toString(16).toUpperCase()}function Vk(e){return"Object("+e+")"}function Yk(e){return e+" { ? }"}function $k(e,n,a,t){return e+" ("+n+") {"+(t?Jk(a,t):a.join(", "))+"}"}function Jk(e,n){if(0===e.length)return"";var a="\n"+n.prev+n.base;return a+e.join(","+a)+"\n"+n.prev}function Qk(e,n){var a=Lk(e),t=[];if(a){t.length=e.length;for(var i=0;i<e.length;i++)t[i]=Dk(e,i)?n(e[i],e):""}for(var o in e)Dk(e,o)&&(a&&String(Number(o))===o&&o<e.length||(/[^\w$]/.test(o)?t.push(n(o,e)+": "+n(e[o],e)):t.push(o+": "+n(e[o],e))));if("function"==typeof Tk)for(var r=Tk(e),s=0;s<r.length;s++)_k.call(e,r[s])&&t.push("["+n(r[s])+"]: "+n(e[r[s]],e));return t}var Kk=function(e,n){if("string"!=typeof e||0===e.length)throw new xw("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof n)throw new xw('"allowMissing" argument must be a boolean');var a=Lw(e),t=a.length>0?a[0]:"",i=Bw("%"+t+"%",n),o=i.name,r=i.value,s=!1,c=i.alias;c&&(t=c[0],_w(a,Uw([0,1],c)));for(var p=1,u=!0;p<a.length;p+=1){var l=a[p],d=Fw(l,0,1),m=Fw(l,-1);if(('"'===d||"'"===d||"`"===d||'"'===m||"'"===m||"`"===m)&&d!==m)throw new vw("property names with quotes must have matching quotes");if("constructor"!==l&&u||(s=!0),Tw(Pw,o="%"+(t+="."+l)+"%"))r=Pw[o];else if(null!=r){if(!(l in r)){if(!n)throw new xw("base intrinsic for "+e+" exists, but the property is not available.");return}if(gw&&p+1>=a.length){var f=gw(r,l);r=(u=!!f)&&"get"in f&&!("originalValue"in f.get)?f.get:r[l]}else u=Tw(r,l),r=r[l];u&&!s&&(Pw[o]=r)}}return r},Xk=function(e,n){var a=dk(e,!!n);return"function"==typeof a&&fk(e,".prototype.")>-1?mk(a):a},Zk=function e(n,a,t,i){var o=a||{};if(Dk(o,"quoteStyle")&&"single"!==o.quoteStyle&&"double"!==o.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Dk(o,"maxStringLength")&&("number"==typeof o.maxStringLength?o.maxStringLength<0&&o.maxStringLength!==1/0:null!==o.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var r=!Dk(o,"customInspect")||o.customInspect;if("boolean"!=typeof r)throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(Dk(o,"indent")&&null!==o.indent&&"\t"!==o.indent&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===n)return"undefined";if(null===n)return"null";if("boolean"==typeof n)return n?"true":"false";if("string"==typeof n)return Gk(n,o);if("number"==typeof n)return 0===n?1/0/n>0?"0":"-0":String(n);if("bigint"==typeof n)return String(n)+"n";var s=void 0===o.depth?5:o.depth;if(void 0===t&&(t=0),t>=s&&s>0&&"object"==typeof n)return Lk(n)?"[Array]":"[Object]";var c=function(e,n){var a;if("\t"===e.indent)a="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;a=Array(e.indent+1).join(" ")}return{base:a,prev:Array(n+1).join(a)}}(o,t);if(void 0===i)i=[];else if(Wk(i,n)>=0)return"[Circular]";function p(n,a,r){if(a&&(i=i.slice()).push(a),r){var s={depth:o.depth};return Dk(o,"quoteStyle")&&(s.quoteStyle=o.quoteStyle),e(n,s,t+1,i)}return e(n,o,t+1,i)}if("function"==typeof n){var u=function(e){if(e.name)return e.name;var n=Ok.call(Rk.call(e),/^function\s*([\w$]+)/);if(n)return n[1];return null}(n),l=Qk(n,p);return"[Function"+(u?": "+u:" (anonymous)")+"]"+(l.length>0?" { "+l.join(", ")+" }":"")}if(Bk(n)){var d=Uk.call(n);return"object"==typeof n?Vk(d):d}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(n)){for(var m="<"+String(n.nodeName).toLowerCase(),f=n.attributes||[],v=0;v<f.length;v++)m+=" "+f[v].name+"="+Ck(qk(f[v].value),"double",o);return m+=">",n.childNodes&&n.childNodes.length&&(m+="..."),m+="</"+String(n.nodeName).toLowerCase()+">"}if(Lk(n)){if(0===n.length)return"[]";var h=Qk(n,p);return c&&!function(e){for(var n=0;n<e.length;n++)if(Wk(e[n],"\n")>=0)return!1;return!0}(h)?"["+Jk(h,c)+"]":"[ "+h.join(", ")+" ]"}if(function(e){return"[object Error]"===Mk(e)}(n)){var x=Qk(n,p);return 0===x.length?"["+String(n)+"]":"{ ["+String(n)+"] "+x.join(", ")+" }"}if("object"==typeof n&&r){if(Fk&&"function"==typeof n[Fk])return n[Fk]();if("function"==typeof n.inspect)return n.inspect()}if(function(e){if(!bk||!e||"object"!=typeof e)return!1;try{bk.call(e);try{kk.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(n)){var b=[];return gk.call(n,(function(e,a){b.push(p(a,n,!0)+" => "+p(e,n))})),$k("Map",bk.call(n),b,c)}if(function(e){if(!kk||!e||"object"!=typeof e)return!1;try{kk.call(e);try{bk.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(n)){var g=[];return jk.call(n,(function(e){g.push(p(e,n))})),$k("Set",kk.call(n),g,c)}if(function(e){if(!Ak||!e||"object"!=typeof e)return!1;try{Ak.call(e,Ak);try{Sk.call(e,Sk)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(n))return Yk("WeakMap");if(function(e){if(!Sk||!e||"object"!=typeof e)return!1;try{Sk.call(e,Sk);try{Ak.call(e,Ak)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(n))return Yk("WeakSet");if(function(e){return"[object Number]"===Mk(e)}(n))return Vk(p(Number(n)));if(function(e){return"[object BigInt]"===Mk(e)}(n))return Vk(p(Ik.call(n)));if(function(e){return"[object Boolean]"===Mk(e)}(n))return Vk(Ek.call(n));if(function(e){return"[object String]"===Mk(e)}(n))return Vk(p(String(n)));if(!function(e){return"[object Date]"===Mk(e)}(n)&&!function(e){return"[object RegExp]"===Mk(e)}(n)){var y=Qk(n,p);return 0===y.length?"{}":c?"{"+Jk(y,c)+"}":"{ "+y.join(", ")+" }"}return String(n)},ej=Kk("%TypeError%"),nj=Kk("%WeakMap%",!0),aj=Kk("%Map%",!0),tj=Xk("WeakMap.prototype.get",!0),ij=Xk("WeakMap.prototype.set",!0),oj=Xk("WeakMap.prototype.has",!0),rj=Xk("Map.prototype.get",!0),sj=Xk("Map.prototype.set",!0),cj=Xk("Map.prototype.has",!0),pj=function(e,n){for(var a,t=e;null!==(a=t.next);t=a)if(a.key===n)return t.next=a.next,a.next=e.next,e.next=a,a},uj=String.prototype.replace,lj=/%20/g,dj="RFC3986",mj={default:dj,formatters:{RFC1738:function(e){return uj.call(e,lj,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:dj},fj=mj,vj=Object.prototype.hasOwnProperty,hj=Array.isArray,xj=function(){for(var e=[],n=0;n<256;++n)e.push("%"+((n<16?"0":"")+n.toString(16)).toUpperCase());return e}(),bj=function(e,n){for(var a=n&&n.plainObjects?Object.create(null):{},t=0;t<e.length;++t)void 0!==e[t]&&(a[t]=e[t]);return a},gj={arrayToObject:bj,assign:function(e,n){return Object.keys(n).reduce((function(e,a){return e[a]=n[a],e}),e)},combine:function(e,n){return[].concat(e,n)},compact:function(e){for(var n=[{obj:{o:e},prop:"o"}],a=[],t=0;t<n.length;++t)for(var i=n[t],o=i.obj[i.prop],r=Object.keys(o),s=0;s<r.length;++s){var c=r[s],p=o[c];"object"==typeof p&&null!==p&&-1===a.indexOf(p)&&(n.push({obj:o,prop:c}),a.push(p))}return function(e){for(;e.length>1;){var n=e.pop(),a=n.obj[n.prop];if(hj(a)){for(var t=[],i=0;i<a.length;++i)void 0!==a[i]&&t.push(a[i]);n.obj[n.prop]=t}}}(n),e},decode:function(e,n,a){var t=e.replace(/\+/g," ");if("iso-8859-1"===a)return t.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(t)}catch(e){return t}},encode:function(e,n,a,t,i){if(0===e.length)return e;var o=e;if("symbol"==typeof e?o=Symbol.prototype.toString.call(e):"string"!=typeof e&&(o=String(e)),"iso-8859-1"===a)return escape(o).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var r="",s=0;s<o.length;++s){var c=o.charCodeAt(s);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||i===fj.RFC1738&&(40===c||41===c)?r+=o.charAt(s):c<128?r+=xj[c]:c<2048?r+=xj[192|c>>6]+xj[128|63&c]:c<55296||c>=57344?r+=xj[224|c>>12]+xj[128|c>>6&63]+xj[128|63&c]:(s+=1,c=65536+((1023&c)<<10|1023&o.charCodeAt(s)),r+=xj[240|c>>18]+xj[128|c>>12&63]+xj[128|c>>6&63]+xj[128|63&c])}return r},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,n){if(hj(e)){for(var a=[],t=0;t<e.length;t+=1)a.push(n(e[t]));return a}return n(e)},merge:function e(n,a,t){if(!a)return n;if("object"!=typeof a){if(hj(n))n.push(a);else{if(!n||"object"!=typeof n)return[n,a];(t&&(t.plainObjects||t.allowPrototypes)||!vj.call(Object.prototype,a))&&(n[a]=!0)}return n}if(!n||"object"!=typeof n)return[n].concat(a);var i=n;return hj(n)&&!hj(a)&&(i=bj(n,t)),hj(n)&&hj(a)?(a.forEach((function(a,i){if(vj.call(n,i)){var o=n[i];o&&"object"==typeof o&&a&&"object"==typeof a?n[i]=e(o,a,t):n.push(a)}else n[i]=a})),n):Object.keys(a).reduce((function(n,i){var o=a[i];return vj.call(n,i)?n[i]=e(n[i],o,t):n[i]=o,n}),i)}},yj=function(){var e,n,a,t={assert:function(e){if(!t.has(e))throw new ej("Side channel does not contain "+Zk(e))},get:function(t){if(nj&&t&&("object"==typeof t||"function"==typeof t)){if(e)return tj(e,t)}else if(aj){if(n)return rj(n,t)}else if(a)return function(e,n){var a=pj(e,n);return a&&a.value}(a,t)},has:function(t){if(nj&&t&&("object"==typeof t||"function"==typeof t)){if(e)return oj(e,t)}else if(aj){if(n)return cj(n,t)}else if(a)return function(e,n){return!!pj(e,n)}(a,t);return!1},set:function(t,i){nj&&t&&("object"==typeof t||"function"==typeof t)?(e||(e=new nj),ij(e,t,i)):aj?(n||(n=new aj),sj(n,t,i)):(a||(a={key:{},next:null}),function(e,n,a){var t=pj(e,n);t?t.value=a:e.next={key:n,next:e.next,value:a}}(a,t,i))}};return t},wj=gj,kj=mj,jj=Object.prototype.hasOwnProperty,Aj={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,n){return e+"["+n+"]"},repeat:function(e){return e}},Sj=Array.isArray,Ej=String.prototype.split,Pj=Array.prototype.push,Rj=function(e,n){Pj.apply(e,Sj(n)?n:[n])},Oj=Date.prototype.toISOString,Ij=kj.default,Tj={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:wj.encode,encodeValuesOnly:!1,format:Ij,formatter:kj.formatters[Ij],indices:!1,serializeDate:function(e){return Oj.call(e)},skipNulls:!1,strictNullHandling:!1},Uj={},_j=function e(n,a,t,i,o,r,s,c,p,u,l,d,m,f,v){for(var h,x=n,b=v,g=0,y=!1;void 0!==(b=b.get(Uj))&&!y;){var w=b.get(n);if(g+=1,void 0!==w){if(w===g)throw new RangeError("Cyclic object value");y=!0}void 0===b.get(Uj)&&(g=0)}if("function"==typeof s?x=s(a,x):x instanceof Date?x=u(x):"comma"===t&&Sj(x)&&(x=wj.maybeMap(x,(function(e){return e instanceof Date?u(e):e}))),null===x){if(i)return r&&!m?r(a,Tj.encoder,f,"key",l):a;x=""}if("string"==typeof(h=x)||"number"==typeof h||"boolean"==typeof h||"symbol"==typeof h||"bigint"==typeof h||wj.isBuffer(x)){if(r){var k=m?a:r(a,Tj.encoder,f,"key",l);if("comma"===t&&m){for(var j=Ej.call(String(x),","),A="",S=0;S<j.length;++S)A+=(0===S?"":",")+d(r(j[S],Tj.encoder,f,"value",l));return[d(k)+(Sj(x)&&1===j.length?"[]":"")+"="+A]}return[d(k)+"="+d(r(x,Tj.encoder,f,"value",l))]}return[d(a)+"="+d(String(x))]}var E,P=[];if(void 0===x)return P;if("comma"===t&&Sj(x))E=[{value:x.length>0?x.join(",")||null:void 0}];else if(Sj(s))E=s;else{var R=Object.keys(x);E=c?R.sort(c):R}for(var O="comma"===t&&Sj(x)&&1===x.length?a+"[]":a,I=0;I<E.length;++I){var T=E[I],U="object"==typeof T&&void 0!==T.value?T.value:x[T];if(!o||null!==U){var _=Sj(x)?"function"==typeof t?t(O,T):O:O+(p?"."+T:"["+T+"]");v.set(n,g);var N=yj();N.set(Uj,v),Rj(P,e(U,_,t,i,o,r,s,c,p,u,l,d,m,f,N))}}return P},Nj=gj,Fj=Object.prototype.hasOwnProperty,Cj=Array.isArray,qj={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Nj.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Lj=function(e){return e.replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(parseInt(n,10))}))},Bj=function(e,n){return e&&"string"==typeof e&&n.comma&&e.indexOf(",")>-1?e.split(","):e},zj=function(e,n,a,t){if(e){var i=a.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,r=a.depth>0&&/(\[[^[\]]*])/.exec(i),s=r?i.slice(0,r.index):i,c=[];if(s){if(!a.plainObjects&&Fj.call(Object.prototype,s)&&!a.allowPrototypes)return;c.push(s)}for(var p=0;a.depth>0&&null!==(r=o.exec(i))&&p<a.depth;){if(p+=1,!a.plainObjects&&Fj.call(Object.prototype,r[1].slice(1,-1))&&!a.allowPrototypes)return;c.push(r[1])}return r&&c.push("["+i.slice(r.index)+"]"),function(e,n,a,t){for(var i=t?n:Bj(n,a),o=e.length-1;o>=0;--o){var r,s=e[o];if("[]"===s&&a.parseArrays)r=[].concat(i);else{r=a.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,p=parseInt(c,10);a.parseArrays||""!==c?!isNaN(p)&&s!==c&&String(p)===c&&p>=0&&a.parseArrays&&p<=a.arrayLimit?(r=[])[p]=i:"__proto__"!==c&&(r[c]=i):r={0:i}}i=r}return i}(c,n,a,t)}},Dj=function(e,n){var a,t=e,i=function(e){if(!e)return Tj;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var n=e.charset||Tj.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var a=kj.default;if(void 0!==e.format){if(!jj.call(kj.formatters,e.format))throw new TypeError("Unknown format option provided.");a=e.format}var t=kj.formatters[a],i=Tj.filter;return("function"==typeof e.filter||Sj(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:Tj.addQueryPrefix,allowDots:void 0===e.allowDots?Tj.allowDots:!!e.allowDots,charset:n,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Tj.charsetSentinel,delimiter:void 0===e.delimiter?Tj.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:Tj.encode,encoder:"function"==typeof e.encoder?e.encoder:Tj.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:Tj.encodeValuesOnly,filter:i,format:a,formatter:t,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:Tj.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:Tj.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Tj.strictNullHandling}}(n);"function"==typeof i.filter?t=(0,i.filter)("",t):Sj(i.filter)&&(a=i.filter);var o,r=[];if("object"!=typeof t||null===t)return"";o=n&&n.arrayFormat in Aj?n.arrayFormat:n&&"indices"in n?n.indices?"indices":"repeat":"indices";var s=Aj[o];a||(a=Object.keys(t)),i.sort&&a.sort(i.sort);for(var c=yj(),p=0;p<a.length;++p){var u=a[p];i.skipNulls&&null===t[u]||Rj(r,_j(t[u],u,s,i.strictNullHandling,i.skipNulls,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,c))}var l=r.join(i.delimiter),d=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?d+="utf8=%26%2310003%3B&":d+="utf8=%E2%9C%93&"),l.length>0?d+l:""},Mj=function(e,n){var a=function(e){if(!e)return qj;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=void 0===e.charset?qj.charset:e.charset;return{allowDots:void 0===e.allowDots?qj.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:qj.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:qj.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:qj.arrayLimit,charset:n,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:qj.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:qj.comma,decoder:"function"==typeof e.decoder?e.decoder:qj.decoder,delimiter:"string"==typeof e.delimiter||Nj.isRegExp(e.delimiter)?e.delimiter:qj.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:qj.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:qj.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:qj.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:qj.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:qj.strictNullHandling}}(n);if(""===e||null==e)return a.plainObjects?Object.create(null):{};for(var t="string"==typeof e?function(e,n){var a,t={},i=n.ignoreQueryPrefix?e.replace(/^\?/,""):e,o=n.parameterLimit===1/0?void 0:n.parameterLimit,r=i.split(n.delimiter,o),s=-1,c=n.charset;if(n.charsetSentinel)for(a=0;a<r.length;++a)0===r[a].indexOf("utf8=")&&("utf8=%E2%9C%93"===r[a]?c="utf-8":"utf8=%26%2310003%3B"===r[a]&&(c="iso-8859-1"),s=a,a=r.length);for(a=0;a<r.length;++a)if(a!==s){var p,u,l=r[a],d=l.indexOf("]="),m=-1===d?l.indexOf("="):d+1;-1===m?(p=n.decoder(l,qj.decoder,c,"key"),u=n.strictNullHandling?null:""):(p=n.decoder(l.slice(0,m),qj.decoder,c,"key"),u=Nj.maybeMap(Bj(l.slice(m+1),n),(function(e){return n.decoder(e,qj.decoder,c,"value")}))),u&&n.interpretNumericEntities&&"iso-8859-1"===c&&(u=Lj(u)),l.indexOf("[]=")>-1&&(u=Cj(u)?[u]:u),Fj.call(t,p)?t[p]=Nj.combine(t[p],u):t[p]=u}return t}(e,a):e,i=a.plainObjects?Object.create(null):{},o=Object.keys(t),r=0;r<o.length;++r){var s=o[r],c=zj(s,t[s],a,"string"==typeof e);i=Nj.merge(i,c,a)}return!0===a.allowSparse?i:Nj.compact(i)},Wj={formats:mj,parse:Mj,stringify:Dj};const Gj="function"==typeof btoa,Hj="function"==typeof Buffer,Vj=("function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder?new TextEncoder:void 0),Yj=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),$j=((e=>{let n={};e.forEach(((e,a)=>n[e]=a))})(Yj),String.fromCharCode.bind(String)),Jj=("function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array),e=>e.replace(/=/g,"").replace(/[+\/]/g,(e=>"+"==e?"-":"_"))),Qj=e=>{let n,a,t,i,o="";const r=e.length%3;for(let r=0;r<e.length;){if((a=e.charCodeAt(r++))>255||(t=e.charCodeAt(r++))>255||(i=e.charCodeAt(r++))>255)throw new TypeError("invalid character found");n=a<<16|t<<8|i,o+=Yj[n>>18&63]+Yj[n>>12&63]+Yj[n>>6&63]+Yj[63&n]}return r?o.slice(0,r-3)+"===".substring(r):o},Kj=Gj?e=>btoa(e):Hj?e=>Buffer.from(e,"binary").toString("base64"):Qj,Xj=Hj?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let a=0,t=e.length;a<t;a+=4096)n.push($j.apply(null,e.subarray(a,a+4096)));return Kj(n.join(""))},Zj=e=>{if(e.length<2)return(n=e.charCodeAt(0))<128?e:n<2048?$j(192|n>>>6)+$j(128|63&n):$j(224|n>>>12&15)+$j(128|n>>>6&63)+$j(128|63&n);var n=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return $j(240|n>>>18&7)+$j(128|n>>>12&63)+$j(128|n>>>6&63)+$j(128|63&n)},eA=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,nA=e=>e.replace(eA,Zj),aA=Hj?e=>Buffer.from(e,"utf8").toString("base64"):Vj?e=>Xj(Vj.encode(e)):e=>Kj(nA(e)),tA=function(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n?Jj(aA(e)):aA(e)},iA=tA;var oA=function(){function e(n){if(c(this,e),this.baseUrl=n.baseUrl,this.auth=n.auth,this.headers=this.buildHeaders({basicAuth:n.basicAuth,userAgent:n.userAgent}),"httpsAgent"in n){if("clientCertAuth"in n)throw new Error("Cannot specify clientCertAuth along with httpsAgent.");this.httpsAgent=n.httpsAgent}else"clientCertAuth"in n&&(this.clientCertAuth=n.clientCertAuth);this.proxy=n.proxy,this.requestToken=null}var a,o,r;return u(e,[{key:"build",value:(r=s(i().mark((function e(a,o,r,s){var c,p,u,l;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c=t(t(t({method:a,headers:this.headers,url:"".concat(this.baseUrl).concat(o)},s||{}),n.buildPlatformDependentConfig({httpsAgent:this.httpsAgent,clientCertAuth:this.clientCertAuth})),{},{proxy:this.proxy}),e.t0=a,e.next="get"===e.t0?4:"post"===e.t0?16:"put"===e.t0?29:"delete"===e.t0?37:44;break;case 4:if(!((p=this.buildRequestUrl(o,r)).length>4096)){e.next=15;break}return e.t1=t,e.t2=t({},c),e.t3={},e.t4=t(t({},this.headers),{},{"X-HTTP-Method-Override":"GET"}),e.next=12,this.buildData(r);case 12:return e.t5=e.sent,e.t6={method:"post",headers:e.t4,data:e.t5},e.abrupt("return",(0,e.t1)(e.t2,e.t3,e.t6));case 15:return e.abrupt("return",t(t({},c),{},{url:p}));case 16:if(!(r instanceof Vx)){e.next=21;break}return e.next=19,this.buildData(r);case 19:return u=e.sent,e.abrupt("return",t(t({},c),{},{headers:"function"==typeof u.getHeaders?t(t({},this.headers),u.getHeaders()):this.headers,data:u}));case 21:return e.t7=t,e.t8=t({},c),e.t9={},e.next=26,this.buildData(r);case 26:return e.t10=e.sent,e.t11={data:e.t10},e.abrupt("return",(0,e.t7)(e.t8,e.t9,e.t11));case 29:return e.t12=t,e.t13=t({},c),e.t14={},e.next=34,this.buildData(r);case 34:return e.t15=e.sent,e.t16={data:e.t15},e.abrupt("return",(0,e.t12)(e.t13,e.t14,e.t16));case 37:return e.t17=this,e.t18=o,e.next=41,this.buildData(r);case 41:return e.t19=e.sent,l=e.t17.buildRequestUrl.call(e.t17,e.t18,e.t19),e.abrupt("return",t(t({},c),{},{url:l}));case 44:throw new Error("".concat(a," method is not supported"));case 45:case"end":return e.stop()}}),e,this)}))),function(e,n,a,t){return r.apply(this,arguments)})},{key:"buildRequestUrl",value:function(e,n){return"".concat(this.baseUrl).concat(e,"?").concat(Wj.stringify(n))}},{key:"buildData",value:(o=s(i().mark((function e(n){var a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("session"!==this.auth.type){e.next=8;break}return e.next=3,this.getRequestToken();case 3:if(a=e.sent,!(n instanceof Vx)){e.next=7;break}return n.append("__REQUEST_TOKEN__",a),e.abrupt("return",n);case 7:return e.abrupt("return",t({__REQUEST_TOKEN__:a},n));case 8:return e.abrupt("return",n);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"buildHeaders",value:function(e){var a=e.basicAuth,i=e.userAgent,o=a?{Authorization:"Basic ".concat(iA("".concat(a.username,":").concat(a.password)))}:{},r=t(t({},n.buildHeaders({userAgent:i})),o);switch(this.auth.type){case"password":return t(t({},r),{},{"X-Cybozu-Authorization":iA("".concat(this.auth.username,":").concat(this.auth.password))});case"apiToken":var s=this.auth.apiToken;return Array.isArray(s)?t(t({},r),{},{"X-Cybozu-API-Token":s.join(",")}):t(t({},r),{},{"X-Cybozu-API-Token":s});case"oAuthToken":return t(t({},r),{},{Authorization:"Bearer ".concat(this.auth.oAuthToken)});default:return t(t({},r),{},{"X-Requested-With":"XMLHttpRequest"})}}},{key:"getRequestToken",value:(a=s(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==this.requestToken){e.next=4;break}return e.next=3,n.getRequestToken();case 3:this.requestToken=e.sent;case 4:return e.abrupt("return",this.requestToken);case 5:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})}]),e}(),rA=$,sA=jt,cA=Date.prototype,pA="Invalid Date",uA="toString",lA=rA(cA.toString),dA=rA(cA.getTime);String(new Date(NaN))!=pA&&sA(cA,uA,(function(){var e=dA(this);return e==e?lA(this):pA}));var mA=C,fA=mn,vA=ke,hA=fr,xA=RegExp.prototype,bA=Pa.PROPER,gA=jt,yA=oa,wA=dr,kA=T,jA=function(e){var n=e.flags;return void 0!==n||"flags"in xA||fA(e,"flags")||!vA(xA,e)?n:mA(hA,e)},AA="toString",SA=RegExp.prototype.toString,EA=kA((function(){return"/a/b"!=SA.call({source:"a",flags:"b"})})),PA=bA&&SA.name!=AA;(EA||PA)&&gA(RegExp.prototype,AA,(function(){var e=yA(this);return"/"+wA(e.source)+"/"+wA(jA(e))}),{unsafe:!0});var RA,OA=function(e){d(a,e);var n=w(a);function a(e){var t;return c(this,a),(t=n.call(this,e)).name="KintoneAbortSearchError",t.message=e,Object.setPrototypeOf(g(t),a.prototype),t}return u(a)}(x(Error)),IA=function(e){d(a,e);var n=w(a);function a(e){var t;c(this,a);var i=a.buildErrorResponseDateWithIndex(e),o=i.data,r=i.bulkRequestIndex;return(t=n.call(this,o.message)).name="KintoneRestAPIError",t.id=o.id,t.code=o.code,t.errors=o.errors,t.status=e.status,t.bulkRequestIndex=r,t.headers=e.headers,t.message="[".concat(e.status,"] [").concat(t.code,"] ").concat(t.message," (").concat(t.id,")"),Error.captureStackTrace&&Error.captureStackTrace(g(t),a),Object.setPrototypeOf(g(t),a.prototype),t}return u(a,null,[{key:"findErrorResponseDataWithIndex",value:function(e){for(var n=0;n<e.length;n++){if(0!==Object.keys(e[n]).length)return{data:e[n],bulkRequestIndex:n}}throw Error("Missing response data in `results`. This error is likely caused by a bug in Kintone REST API Client. Please file an issue.")}},{key:"buildErrorResponseDateWithIndex",value:function(e){return"results"in e.data?a.findErrorResponseDataWithIndex(e.data.results):{data:e.data}}}]),a}(x(Error)),TA=["data"],UA=function(){function e(n){var a=n.enableAbortSearchError;c(this,e),this.enableAbortSearchError=a}return u(e,[{key:"handle",value:function(e){var n=this;return e.then((function(e){return n.handleSuccessResponse(e)}),(function(e){return n.handleErrorResponse(e)}))}},{key:"handleSuccessResponse",value:function(e){if(this.enableAbortSearchError&&/Filter aborted because of too many search results/.test(e.headers["x-cybozu-warning"]))throw new OA(e.headers["x-cybozu-warning"]);return e.data}},{key:"handleErrorResponse",value:function(e){if(!e.response){if(/mac verify failure/.test(e.toString()))throw new Error("invalid clientCertAuth setting");throw e}var n=e.response,a=n.data,i=b(n,TA);if("string"==typeof a)throw new Error("".concat(i.status,": ").concat(i.statusText));throw new IA(t({data:a},i))}}]),e}(),_A=function(e){if("username"in e)return t({type:"password"},e);if("apiToken"in e)return t({type:"apiToken"},e);if("oAuthToken"in e)return t({type:"oAuthToken"},e);try{return n.getDefaultAuth()}catch(e){if(e instanceof Wo)throw new Error("session authentication is not supported in ".concat(e.platform," environment."));throw e}},NA=function(){function e(){var a,i,o,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c(this,e),FA(r),this.baseUrl=n.buildBaseUrl(r.baseUrl).replace(/\/+$/,"");var s=_A(null!==(a=r.auth)&&void 0!==a?a:{}),p=new oA(t(t({},r),{},{baseUrl:this.baseUrl,auth:s})),u=new UA({enableAbortSearchError:null!==(i=null===(o=r.featureFlags)||void 0===o?void 0:o.enableAbortSearchError)&&void 0!==i&&i}),l=new Xy({responseHandler:u,requestConfigBuilder:p}),d=r.guestSpaceId;this.bulkRequest_=new dv(l,d),this.record=new Hx(l,this.bulkRequest_,d),this.app=new Pv(l,d),this.file=new Yx(l,d)}return u(e,[{key:"getBaseUrl",value:function(){return this.baseUrl}},{key:"bulkRequest",value:function(e){return this.bulkRequest_.send(e)}}],[{key:"version",get:function(){return n.getVersion()}}]),e}(),FA=function(e){CA(e.baseUrl),qA(e.guestSpaceId)},CA=function(e){if(void 0!==e){var n=new URL(e);if("localhost"!==n.hostname&&"https:"!==n.protocol)throw new Error('The protocol of baseUrl must be "https".')}},qA=function(e){if(""===e||null===e)throw new Error("invalid guestSpaceId: got [".concat(e,"]"))};(RA=pr).readFileFromPath&&(n.readFileFromPath=RA.readFileFromPath),RA.getRequestToken&&(n.getRequestToken=RA.getRequestToken),RA.getDefaultAuth&&(n.getDefaultAuth=RA.getDefaultAuth),RA.buildPlatformDependentConfig&&(n.buildPlatformDependentConfig=RA.buildPlatformDependentConfig),RA.buildHeaders&&(n.buildHeaders=RA.buildHeaders),RA.buildFormDataValue&&(n.buildFormDataValue=RA.buildFormDataValue),RA.buildBaseUrl&&(n.buildBaseUrl=RA.buildBaseUrl),RA.getVersion&&(n.getVersion=RA.getVersion),e.KintoneAbortSearchError=OA,e.KintoneAllRecordsError=zx,e.KintoneRestAPIClient=NA,e.KintoneRestAPIError=IA,Object.defineProperty(e,"__esModule",{value:!0})}));