@kintone/rest-api-client 2.0.36 → 3.0.0

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.
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).window=e.window||{})}(this,(function(e){"use strict";var t={readFileFromPath:function(){throw new Error("not implemented")},getRequestToken:function(){throw new Error("not implemented")},getDefaultAuth:function(){throw new Error("not implemented")},buildPlatformDependentConfig:function(){throw new Error("not implemented")},buildHeaders:function(){throw new Error("not implemented")},buildFormDataValue:function(){throw new Error("not implemented")},buildBaseUrl:function(){throw new Error("not implemented")},getVersion:function(){throw new Error("not implemented")}};function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function u(e){i(a,n,o,u,c,"next",e)}function c(e){i(a,n,o,u,c,"throw",e)}u(void 0)}))}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t,r){return t&&c(e.prototype,t),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function h(e,t,r){return(h=y()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&d(o,r.prototype),o}).apply(null,arguments)}function v(e){var t="function"==typeof Map?new Map:void 0;return(v=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return h(e,arguments,f(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),d(n,e)})(e)}function g(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function w(e){var t=y();return function(){var r,n=f(e);if(t){var o=f(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return b(this,r)}}function S(e){return function(e){if(Array.isArray(e))return A(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return A(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return A(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var x="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function R(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})})),t}var P=function(e){return e&&e.Math==Math&&e},E=P("object"==("undefined"==typeof globalThis?"undefined":o(globalThis))&&globalThis)||P("object"==("undefined"==typeof window?"undefined":o(window))&&window)||P("object"==("undefined"==typeof self?"undefined":o(self))&&self)||P("object"==o(x)&&x)||function(){return this}()||Function("return this")(),k={},O=function(e){try{return!!e()}catch(e){return!0}},j=!O((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),I=!O((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),N=I,T=Function.prototype.call,F=N?T.bind(T):function(){return T.apply(T,arguments)},C={},_={}.propertyIsEnumerable,U=Object.getOwnPropertyDescriptor,W=U&&!_.call({1:2},1);C.f=W?function(e){var t=U(this,e);return!!t&&t.enumerable}:_;var D,B,G=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},M=I,L=Function.prototype,q=L.bind,V=L.call,z=M&&q.bind(V,V),H=M?function(e){return e&&z(e)}:function(e){return e&&function(){return V.apply(e,arguments)}},J=H,$=J({}.toString),K=J("".slice),Q=function(e){return K($(e),8,-1)},X=H,Y=O,Z=Q,ee=E.Object,te=X("".split),re=Y((function(){return!ee("z").propertyIsEnumerable(0)}))?function(e){return"String"==Z(e)?te(e,""):ee(e)}:ee,ne=E.TypeError,oe=function(e){if(null==e)throw ne("Can't call method on "+e);return e},ie=re,ae=oe,ue=function(e){return ie(ae(e))},ce=function(e){return"function"==typeof e},se=ce,pe=function(e){return"object"==o(e)?null!==e:se(e)},le=E,fe=ce,de=function(e){return fe(e)?e:void 0},ye=function(e,t){return arguments.length<2?de(le[e]):le[e]&&le[e][t]},he=H({}.isPrototypeOf),ve=E,ge=ye("navigator","userAgent")||"",me=ve.process,be=ve.Deno,we=me&&me.versions||be&&be.version,Se=we&&we.v8;Se&&(B=(D=Se.split("."))[0]>0&&D[0]<4?1:+(D[0]+D[1])),!B&&ge&&(!(D=ge.match(/Edge\/(\d+)/))||D[1]>=74)&&(D=ge.match(/Chrome\/(\d+)/))&&(B=+D[1]);var Ae=B,xe=Ae,Re=O,Pe=!!Object.getOwnPropertySymbols&&!Re((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&xe&&xe<41})),Ee=Pe&&!Symbol.sham&&"symbol"==o(Symbol.iterator),ke=ye,Oe=ce,je=he,Ie=Ee,Ne=E.Object,Te=Ie?function(e){return"symbol"==o(e)}:function(e){var t=ke("Symbol");return Oe(t)&&je(t.prototype,Ne(e))},Fe=E.String,Ce=ce,_e=function(e){try{return Fe(e)}catch(e){return"Object"}},Ue=E.TypeError,We=function(e){if(Ce(e))return e;throw Ue(_e(e)+" is not a function")},De=We,Be=function(e,t){var r=e[t];return null==r?void 0:De(r)},Ge=F,Me=ce,Le=pe,qe=E.TypeError,Ve={exports:{}},ze=E,He=Object.defineProperty,Je=function(e,t){try{He(ze,e,{value:t,configurable:!0,writable:!0})}catch(r){ze[e]=t}return t},$e=Je,Ke="__core-js_shared__",Qe=E[Ke]||$e(Ke,{}),Xe=Qe;(Ve.exports=function(e,t){return Xe[e]||(Xe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.21.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Ye=oe,Ze=E.Object,et=function(e){return Ze(Ye(e))},tt=et,rt=H({}.hasOwnProperty),nt=Object.hasOwn||function(e,t){return rt(tt(e),t)},ot=H,it=0,at=Math.random(),ut=ot(1..toString),ct=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ut(++it+at,36)},st=E,pt=Ve.exports,lt=nt,ft=ct,dt=Pe,yt=Ee,ht=pt("wks"),vt=st.Symbol,gt=vt&&vt.for,mt=yt?vt:vt&&vt.withoutSetter||ft,bt=function(e){if(!lt(ht,e)||!dt&&"string"!=typeof ht[e]){var t="Symbol."+e;dt&&lt(vt,e)?ht[e]=vt[e]:ht[e]=yt&&gt?gt(t):mt(t)}return ht[e]},wt=F,St=pe,At=Te,xt=Be,Rt=function(e,t){var r,n;if("string"===t&&Me(r=e.toString)&&!Le(n=Ge(r,e)))return n;if(Me(r=e.valueOf)&&!Le(n=Ge(r,e)))return n;if("string"!==t&&Me(r=e.toString)&&!Le(n=Ge(r,e)))return n;throw qe("Can't convert object to primitive value")},Pt=bt,Et=E.TypeError,kt=Pt("toPrimitive"),Ot=function(e,t){if(!St(e)||At(e))return e;var r,n=xt(e,kt);if(n){if(void 0===t&&(t="default"),r=wt(n,e,t),!St(r)||At(r))return r;throw Et("Can't convert object to primitive value")}return void 0===t&&(t="number"),Rt(e,t)},jt=Ot,It=Te,Nt=function(e){var t=jt(e,"string");return It(t)?t:t+""},Tt=pe,Ft=E.document,Ct=Tt(Ft)&&Tt(Ft.createElement),_t=function(e){return Ct?Ft.createElement(e):{}},Ut=_t,Wt=!j&&!O((function(){return 7!=Object.defineProperty(Ut("div"),"a",{get:function(){return 7}}).a})),Dt=j,Bt=F,Gt=C,Mt=G,Lt=ue,qt=Nt,Vt=nt,zt=Wt,Ht=Object.getOwnPropertyDescriptor;k.f=Dt?Ht:function(e,t){if(e=Lt(e),t=qt(t),zt)try{return Ht(e,t)}catch(e){}if(Vt(e,t))return Mt(!Bt(Gt.f,e,t),e[t])};var Jt={},$t=j&&O((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Kt=E,Qt=pe,Xt=Kt.String,Yt=Kt.TypeError,Zt=function(e){if(Qt(e))return e;throw Yt(Xt(e)+" is not an object")},er=j,tr=Wt,rr=$t,nr=Zt,or=Nt,ir=E.TypeError,ar=Object.defineProperty,ur=Object.getOwnPropertyDescriptor,cr="enumerable",sr="configurable",pr="writable";Jt.f=er?rr?function(e,t,r){if(nr(e),t=or(t),nr(r),"function"==typeof e&&"prototype"===t&&"value"in r&&pr in r&&!r.writable){var n=ur(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:sr in r?r.configurable:n.configurable,enumerable:cr in r?r.enumerable:n.enumerable,writable:!1})}return ar(e,t,r)}:ar:function(e,t,r){if(nr(e),t=or(t),nr(r),tr)try{return ar(e,t,r)}catch(e){}if("get"in r||"set"in r)throw ir("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var lr=Jt,fr=G,dr=j?function(e,t,r){return lr.f(e,t,fr(1,r))}:function(e,t,r){return e[t]=r,e},yr={exports:{}},hr=ce,vr=Qe,gr=H(Function.toString);hr(vr.inspectSource)||(vr.inspectSource=function(e){return gr(e)});var mr,br,wr,Sr=vr.inspectSource,Ar=ce,xr=Sr,Rr=E.WeakMap,Pr=Ar(Rr)&&/native code/.test(xr(Rr)),Er=Ve.exports,kr=ct,Or=Er("keys"),jr=function(e){return Or[e]||(Or[e]=kr(e))},Ir={},Nr=Pr,Tr=E,Fr=H,Cr=pe,_r=dr,Ur=nt,Wr=Qe,Dr=jr,Br=Ir,Gr="Object already initialized",Mr=Tr.TypeError,Lr=Tr.WeakMap;if(Nr||Wr.state){var qr=Wr.state||(Wr.state=new Lr),Vr=Fr(qr.get),zr=Fr(qr.has),Hr=Fr(qr.set);mr=function(e,t){if(zr(qr,e))throw new Mr(Gr);return t.facade=e,Hr(qr,e,t),t},br=function(e){return Vr(qr,e)||{}},wr=function(e){return zr(qr,e)}}else{var Jr=Dr("state");Br[Jr]=!0,mr=function(e,t){if(Ur(e,Jr))throw new Mr(Gr);return t.facade=e,_r(e,Jr,t),t},br=function(e){return Ur(e,Jr)?e[Jr]:{}},wr=function(e){return Ur(e,Jr)}}var $r={set:mr,get:br,has:wr,enforce:function(e){return wr(e)?br(e):mr(e,{})},getterFor:function(e){return function(t){var r;if(!Cr(t)||(r=br(t)).type!==e)throw Mr("Incompatible receiver, "+e+" required");return r}}},Kr=j,Qr=nt,Xr=Function.prototype,Yr=Kr&&Object.getOwnPropertyDescriptor,Zr=Qr(Xr,"name"),en={EXISTS:Zr,PROPER:Zr&&"something"===function(){}.name,CONFIGURABLE:Zr&&(!Kr||Kr&&Yr(Xr,"name").configurable)},tn=E,rn=ce,nn=nt,on=dr,an=Je,un=Sr,cn=en.CONFIGURABLE,sn=$r.get,pn=$r.enforce,ln=String(String).split("String");(yr.exports=function(e,t,r,n){var o,i=!!n&&!!n.unsafe,a=!!n&&!!n.enumerable,u=!!n&&!!n.noTargetGet,c=n&&void 0!==n.name?n.name:t;rn(r)&&("Symbol("===String(c).slice(0,7)&&(c="["+String(c).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!nn(r,"name")||cn&&r.name!==c)&&on(r,"name",c),(o=pn(r)).source||(o.source=ln.join("string"==typeof c?c:""))),e!==tn?(i?!u&&e[t]&&(a=!0):delete e[t],a?e[t]=r:on(e,t,r)):a?e[t]=r:an(t,r)})(Function.prototype,"toString",(function(){return rn(this)&&sn(this).source||un(this)}));var fn={},dn=Math.ceil,yn=Math.floor,hn=function(e){var t=+e;return t!=t||0===t?0:(t>0?yn:dn)(t)},vn=hn,gn=Math.max,mn=Math.min,bn=function(e,t){var r=vn(e);return r<0?gn(r+t,0):mn(r,t)},wn=hn,Sn=Math.min,An=function(e){return e>0?Sn(wn(e),9007199254740991):0},xn=An,Rn=function(e){return xn(e.length)},Pn=ue,En=bn,kn=Rn,On=function(e){return function(t,r,n){var o,i=Pn(t),a=kn(i),u=En(n,a);if(e&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},jn={includes:On(!0),indexOf:On(!1)},In=nt,Nn=ue,Tn=jn.indexOf,Fn=Ir,Cn=H([].push),_n=function(e,t){var r,n=Nn(e),o=0,i=[];for(r in n)!In(Fn,r)&&In(n,r)&&Cn(i,r);for(;t.length>o;)In(n,r=t[o++])&&(~Tn(i,r)||Cn(i,r));return i},Un=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Wn=_n,Dn=Un.concat("length","prototype");fn.f=Object.getOwnPropertyNames||function(e){return Wn(e,Dn)};var Bn={};Bn.f=Object.getOwnPropertySymbols;var Gn=ye,Mn=fn,Ln=Bn,qn=Zt,Vn=H([].concat),zn=Gn("Reflect","ownKeys")||function(e){var t=Mn.f(qn(e)),r=Ln.f;return r?Vn(t,r(e)):t},Hn=nt,Jn=zn,$n=k,Kn=Jt,Qn=O,Xn=ce,Yn=/#|\.prototype\./,Zn=function(e,t){var r=to[eo(e)];return r==no||r!=ro&&(Xn(t)?Qn(t):!!t)},eo=Zn.normalize=function(e){return String(e).replace(Yn,".").toLowerCase()},to=Zn.data={},ro=Zn.NATIVE="N",no=Zn.POLYFILL="P",oo=Zn,io=E,ao=k.f,uo=dr,co=yr.exports,so=Je,po=function(e,t,r){for(var n=Jn(t),o=Kn.f,i=$n.f,a=0;a<n.length;a++){var u=n[a];Hn(e,u)||r&&Hn(r,u)||o(e,u,i(t,u))}},lo=oo,fo=function(e,t){var r,n,i,a,u,c=e.target,s=e.global,p=e.stat;if(r=s?io:p?io[c]||so(c,{}):(io[c]||{}).prototype)for(n in t){if(a=t[n],i=e.noTargetGet?(u=ao(r,n))&&u.value:r[n],!lo(s?n:c+(p?".":"#")+n,e.forced)&&void 0!==i){if(o(a)==o(i))continue;po(a,i)}(e.sham||i&&i.sham)&&uo(a,"sham",!0),co(r,n,a,e)}},yo=Q,ho=Array.isArray||function(e){return"Array"==yo(e)},vo=Nt,go=Jt,mo=G,bo=function(e,t,r){var n=vo(t);n in e?go.f(e,n,mo(0,r)):e[n]=r},wo={};wo[bt("toStringTag")]="z";var So="[object z]"===String(wo),Ao=E,xo=So,Ro=ce,Po=Q,Eo=bt("toStringTag"),ko=Ao.Object,Oo="Arguments"==Po(function(){return arguments}()),jo=xo?Po:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=ko(e),Eo))?r:Oo?Po(t):"Object"==(n=Po(t))&&Ro(t.callee)?"Arguments":n},Io=H,No=O,To=ce,Fo=jo,Co=Sr,_o=function(){},Uo=[],Wo=ye("Reflect","construct"),Do=/^\s*(?:class|function)\b/,Bo=Io(Do.exec),Go=!Do.exec(_o),Mo=function(e){if(!To(e))return!1;try{return Wo(_o,Uo,e),!0}catch(e){return!1}},Lo=function(e){if(!To(e))return!1;switch(Fo(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Go||!!Bo(Do,Co(e))}catch(e){return!0}};Lo.sham=!0;var qo=!Wo||No((function(){var e;return Mo(Mo.call)||!Mo(Object)||!Mo((function(){e=!0}))||e}))?Lo:Mo,Vo=E,zo=ho,Ho=qo,Jo=pe,$o=bt("species"),Ko=Vo.Array,Qo=function(e){var t;return zo(e)&&(t=e.constructor,(Ho(t)&&(t===Ko||zo(t.prototype))||Jo(t)&&null===(t=t[$o]))&&(t=void 0)),void 0===t?Ko:t},Xo=function(e,t){return new(Qo(e))(0===t?0:t)},Yo=O,Zo=Ae,ei=bt("species"),ti=function(e){return Zo>=51||!Yo((function(){var t=[];return(t.constructor={})[ei]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},ri=fo,ni=E,oi=O,ii=ho,ai=pe,ui=et,ci=Rn,si=bo,pi=Xo,li=ti,fi=Ae,di=bt("isConcatSpreadable"),yi=9007199254740991,hi="Maximum allowed index exceeded",vi=ni.TypeError,gi=fi>=51||!oi((function(){var e=[];return e[di]=!1,e.concat()[0]!==e})),mi=li("concat"),bi=function(e){if(!ai(e))return!1;var t=e[di];return void 0!==t?!!t:ii(e)};ri({target:"Array",proto:!0,forced:!gi||!mi},{concat:function(e){var t,r,n,o,i,a=ui(this),u=pi(a,0),c=0;for(t=-1,n=arguments.length;t<n;t++)if(bi(i=-1===t?a:arguments[t])){if(c+(o=ci(i))>yi)throw vi(hi);for(r=0;r<o;r++,c++)r in i&&si(u,c,i[r])}else{if(c>=yi)throw vi(hi);si(u,c++,i)}return u.length=c,u}});!function(e){var t=function(e){var t,r=Object.prototype,n=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),a=new j(n||[]);return i._invoke=function(e,t,r){var n=f;return function(o,i){if(n===y)throw new Error("Generator is already running");if(n===h){if("throw"===o)throw i;return N()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=E(a,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=y;var c=l(e,t,r);if("normal"===c.type){if(n=r.done?h:d,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=h,r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=p;var f="suspendedStart",d="suspendedYield",y="executing",h="completed",v={};function g(){}function m(){}function b(){}var w={};w[a]=function(){return this};var S=Object.getPrototypeOf,A=S&&S(S(I([])));A&&A!==r&&n.call(A,a)&&(w=A);var x=b.prototype=g.prototype=Object.create(w);function R(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function r(i,a,u,c){var s=l(e[i],e,a);if("throw"!==s.type){var p=s.arg,f=p.value;return f&&"object"===o(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,u,c)}),(function(e){r("throw",e,u,c)})):t.resolve(f).then((function(e){p.value=e,u(p)}),(function(e){return r("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}}function E(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,E(e,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=l(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function I(e){if(e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}return{next:N}}function N(){return{value:t,done:!0}}return m.prototype=x.constructor=b,b.constructor=m,m.displayName=s(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},R(P.prototype),P.prototype[u]=function(){return this},e.AsyncIterator=P,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new P(p(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},R(x),s(x,c,"Generator"),x[a]=function(){return this},x.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=I,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}}({exports:{}});var wi=j,Si=en.EXISTS,Ai=H,xi=Jt.f,Ri=Function.prototype,Pi=Ai(Ri.toString),Ei=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ki=Ai(Ei.exec);wi&&!Si&&xi(Ri,"name",{configurable:!0,get:function(){try{return ki(Ei,Pi(this))[1]}catch(e){return""}}});var Oi=E,ji=ce,Ii=Oi.String,Ni=Oi.TypeError,Ti=H,Fi=Zt,Ci=function(e){if("object"==o(e)||ji(e))return e;throw Ni("Can't set "+Ii(e)+" as a prototype")},_i=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Ti(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return Fi(r),Ci(n),t?e(r,n):r.__proto__=n,r}}():void 0);fo({target:"Object",stat:!0},{setPrototypeOf:_i});var Ui=function(e){l(r,e);var t=w(r);function r(e){var n;u(this,r);var o="This function is not supported in ".concat(e," environment");return n=t.call(this,o),Error.captureStackTrace&&Error.captureStackTrace(m(n),r),n.name="UnsupportedPlatformError",n.platform=e,Object.setPrototypeOf(m(n),r.prototype),n}return s(r)}(v(Error)),Wi=function(){var e=a(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.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===(t=garoon.connect)||void 0===t||null===(r=t.kintone)||void 0===r?void 0:r.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)}}(),Di=Object.freeze({__proto__:null,readFileFromPath:function(e){throw new Ui("Browser")},getRequestToken:Wi,getDefaultAuth:function(){return{type:"session"}},buildPlatformDependentConfig:function(){return{}},buildHeaders:function(){return{}},buildFormDataValue:function(e){return new Blob([e])},buildBaseUrl:function(e){if(e)return e;var t=location,r=t.host,n=t.protocol;return"".concat(n,"//").concat(r)},getVersion:function(){return"2.0.36"}}),Bi=We,Gi=I,Mi=H(H.bind),Li=function(e,t){return Bi(e),void 0===t?e:Gi?Mi(e,t):function(){return e.apply(t,arguments)}},qi=re,Vi=et,zi=Rn,Hi=Xo,Ji=H([].push),$i=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(c,s,p,l){for(var f,d,y=Vi(c),h=qi(y),v=Li(s,p),g=zi(h),m=0,b=l||Hi,w=t?b(c,g):r||a?b(c,0):void 0;g>m;m++)if((u||m in h)&&(d=v(f=h[m],m,y),e))if(t)w[m]=d;else if(d)switch(e){case 3:return!0;case 5:return f;case 6:return m;case 2:Ji(w,f)}else switch(e){case 4:return!1;case 7:Ji(w,f)}return i?-1:n||o?o:w}},Ki={forEach:$i(0),map:$i(1),filter:$i(2),some:$i(3),every:$i(4),find:$i(5),findIndex:$i(6),filterReject:$i(7)},Qi=Ki.map;fo({target:"Array",proto:!0,forced:!ti("map")},{map:function(e){return Qi(this,e,arguments.length>1?arguments[1]:void 0)}});var Xi=function(e){var t=e.endpointName,r=e.guestSpaceId,n=e.preview,o=void 0!==r?"/guest/".concat(r):"",i=n?"/preview":"";return"/k".concat(o,"/v1").concat(i,"/").concat(t,".json")},Yi=["endpointName"],Zi=function(){function e(t,r){u(this,e),this.client=t,this.guestSpaceId=r,this.REQUESTS_LENGTH_LIMIT=20}return s(e,[{key:"send",value:function(e){var t=this,r=e.requests.map((function(e){if("endpointName"in e){var r=e.endpointName,o=g(e,Yi);return n({api:t.buildPathWithGuestSpaceId({endpointName:r})},o)}return e})),o=this.buildPathWithGuestSpaceId({endpointName:"bulkRequest"});return this.client.post(o,{requests:r})}},{key:"buildPathWithGuestSpaceId",value:function(e){return Xi(n(n({},e),{},{guestSpaceId:this.guestSpaceId}))}}]),e}(),ea=["preview"],ta=["preview"],ra=["preview"],na=["preview"],oa=["preview"],ia=["preview"],aa=["preview"],ua=["preview"],ca=["preview"],sa=["preview"],pa=["preview"],la=["preview"],fa=["preview"],da=["preview"],ya=function(){function e(t,r){u(this,e),this.client=t,this.guestSpaceId=r}var t;return s(e,[{key:"getFormFields",value:function(e){var t=e.preview,r=g(e,ea),o=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:t});return this.client.get(o,n({},r))}},{key:"addFormFields",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.post(t,e)}},{key:"updateFormFields",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.put(t,e)}},{key:"deleteFormFields",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.delete(t,e)}},{key:"getFormLayout",value:function(e){var t=e.preview,r=g(e,ta),o=this.buildPathWithGuestSpaceId({endpointName:"app/form/layout",preview:t});return this.client.get(o,n({},r))}},{key:"updateFormLayout",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/form/layout",preview:!0});return this.client.put(t,e)}},{key:"getViews",value:function(e){var t=e.preview,r=g(e,ra),n=this.buildPathWithGuestSpaceId({endpointName:"app/views",preview:t});return this.client.get(n,r)}},{key:"updateViews",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/views",preview:!0});return this.client.put(t,e)}},{key:"getApp",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app"});return this.client.get(t,e)}},{key:"getApps",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"apps"});return this.client.get(t,e)}},{key:"addApp",value:(t=a(regeneratorRuntime.mark((function e(t){var r,o,i,a,u,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.name,o=t.space,i=this.buildPathWithGuestSpaceId({endpointName:"app",preview:!0}),!o){e.next=9;break}return a=this.buildPathWithGuestSpaceId({endpointName:"space"}),e.next=6,this.client.get(a,{id:o});case 6:return u=e.sent,c=u.defaultThread,e.abrupt("return",this.client.post(i,n(n({},t),{},{thread:c})));case 9:return e.abrupt("return",this.client.post(i,{name:r}));case 10:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"getAppSettings",value:function(e){var t=e.preview,r=g(e,na),n=this.buildPathWithGuestSpaceId({endpointName:"app/settings",preview:t});return this.client.get(n,r)}},{key:"updateAppSettings",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/settings",preview:!0});return this.client.put(t,e)}},{key:"getProcessManagement",value:function(e){var t=e.preview,r=g(e,oa),n=this.buildPathWithGuestSpaceId({endpointName:"app/status",preview:t});return this.client.get(n,r)}},{key:"updateProcessManagement",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/status",preview:!0});return this.client.put(t,e)}},{key:"getDeployStatus",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/deploy",preview:!0});return this.client.get(t,e)}},{key:"deployApp",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/deploy",preview:!0});return this.client.post(t,e)}},{key:"getFieldAcl",value:function(e){var t=e.preview,r=g(e,ia),o=this.buildPathWithGuestSpaceId({endpointName:"field/acl",preview:t});return this.client.get(o,n({},r))}},{key:"updateFieldAcl",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"field/acl",preview:!0});return this.client.put(t,e)}},{key:"getAppAcl",value:function(e){var t=e.preview,r=g(e,aa),o=this.buildPathWithGuestSpaceId({endpointName:"app/acl",preview:t});return this.client.get(o,n({},r))}},{key:"updateAppAcl",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/acl",preview:!0});return this.client.put(t,e)}},{key:"evaluateRecordsAcl",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records/acl/evaluate"});return this.client.get(t,e)}},{key:"getRecordAcl",value:function(e){var t=e.preview,r=g(e,ua),o=this.buildPathWithGuestSpaceId({endpointName:"record/acl",preview:t});return this.client.get(o,n({},r))}},{key:"updateRecordAcl",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/acl",preview:!0});return this.client.put(t,e)}},{key:"getAppCustomize",value:function(e){var t=e.preview,r=g(e,ca),o=this.buildPathWithGuestSpaceId({endpointName:"app/customize",preview:t});return this.client.get(o,n({},r))}},{key:"updateAppCustomize",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/customize",preview:!0});return this.client.put(t,e)}},{key:"getGeneralNotifications",value:function(e){var t=e.preview,r=g(e,sa),o=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/general",preview:t});return this.client.get(o,n({},r))}},{key:"updateGeneralNotifications",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/general",preview:!0});return this.client.put(t,e)}},{key:"getPerRecordNotifications",value:function(e){var t=e.preview,r=g(e,pa),n=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/perRecord",preview:t});return this.client.get(n,r)}},{key:"updatePerRecordNotifications",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/perRecord",preview:!0});return this.client.put(t,e)}},{key:"getReminderNotifications",value:function(e){var t=e.preview,r=g(e,la),n=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/reminder",preview:t});return this.client.get(n,r)}},{key:"updateReminderNotifications",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/reminder",preview:!0});return this.client.put(t,e)}},{key:"getReports",value:function(e){var t=e.preview,r=g(e,fa),n=this.buildPathWithGuestSpaceId({endpointName:"app/reports",preview:t});return this.client.get(n,r)}},{key:"updateReports",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/reports",preview:!0});return this.client.put(t,e)}},{key:"getAppActions",value:function(e){var t=e.preview,r=g(e,da),n=this.buildPathWithGuestSpaceId({endpointName:"app/actions",preview:t});return this.client.get(n,r)}},{key:"updateAppActions",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/actions",preview:!0});return this.client.put(t,e)}},{key:"buildPathWithGuestSpaceId",value:function(e){return Xi(n(n({},e),{},{guestSpaceId:this.guestSpaceId}))}}]),e}(),ha=_n,va=Un,ga=Object.keys||function(e){return ha(e,va)},ma=j,ba=H,wa=F,Sa=O,Aa=ga,xa=Bn,Ra=C,Pa=et,Ea=re,ka=Object.assign,Oa=Object.defineProperty,ja=ba([].concat),Ia=!ka||Sa((function(){if(ma&&1!==ka({b:1},ka(Oa({},"a",{enumerable:!0,get:function(){Oa(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=ka({},e)[r]||Aa(ka({},t)).join("")!=n}))?function(e,t){for(var r=Pa(e),n=arguments.length,o=1,i=xa.f,a=Ra.f;n>o;)for(var u,c=Ea(arguments[o++]),s=i?ja(Aa(c),i(c)):Aa(c),p=s.length,l=0;p>l;)u=s[l++],ma&&!wa(a,c,u)||(r[u]=c[u]);return r}:ka;fo({target:"Object",stat:!0,forced:Object.assign!==Ia},{assign:Ia});var Na=jo,Ta=E.String,Fa=function(e){if("Symbol"===Na(e))throw TypeError("Cannot convert a Symbol value to a string");return Ta(e)},Ca=Zt,_a=function(){var e=Ca(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},Ua=O,Wa=E.RegExp,Da=Ua((function(){var e=Wa("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Ba=Da||Ua((function(){return!Wa("a","y").sticky})),Ga={BROKEN_CARET:Da||Ua((function(){var e=Wa("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Ba,UNSUPPORTED_Y:Da},Ma={},La=j,qa=$t,Va=Jt,za=Zt,Ha=ue,Ja=ga;Ma.f=La&&!qa?Object.defineProperties:function(e,t){za(e);for(var r,n=Ha(t),o=Ja(t),i=o.length,a=0;i>a;)Va.f(e,r=o[a++],n[r]);return e};var $a,Ka=ye("document","documentElement"),Qa=Zt,Xa=Ma,Ya=Un,Za=Ir,eu=Ka,tu=_t,ru=jr("IE_PROTO"),nu=function(){},ou=function(e){return"<script>"+e+"</"+"script>"},iu=function(e){e.write(ou("")),e.close();var t=e.parentWindow.Object;return e=null,t},au=function(){try{$a=new ActiveXObject("htmlfile")}catch(e){}var e,t;au="undefined"!=typeof document?document.domain&&$a?iu($a):((t=tu("iframe")).style.display="none",eu.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(ou("document.F=Object")),e.close(),e.F):iu($a);for(var r=Ya.length;r--;)delete au.prototype[Ya[r]];return au()};Za[ru]=!0;var uu,cu,su=Object.create||function(e,t){var r;return null!==e?(nu.prototype=Qa(e),r=new nu,nu.prototype=null,r[ru]=e):r=au(),void 0===t?r:Xa.f(r,t)},pu=O,lu=E.RegExp,fu=pu((function(){var e=lu(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),du=O,yu=E.RegExp,hu=du((function(){var e=yu("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),vu=F,gu=H,mu=Fa,bu=_a,wu=Ga,Su=Ve.exports,Au=su,xu=$r.get,Ru=fu,Pu=hu,Eu=Su("native-string-replace",String.prototype.replace),ku=RegExp.prototype.exec,Ou=ku,ju=gu("".charAt),Iu=gu("".indexOf),Nu=gu("".replace),Tu=gu("".slice),Fu=(cu=/b*/g,vu(ku,uu=/a/,"a"),vu(ku,cu,"a"),0!==uu.lastIndex||0!==cu.lastIndex),Cu=wu.BROKEN_CARET,_u=void 0!==/()??/.exec("")[1];(Fu||_u||Cu||Ru||Pu)&&(Ou=function(e){var t,r,n,o,i,a,u,c=this,s=xu(c),p=mu(e),l=s.raw;if(l)return l.lastIndex=c.lastIndex,t=vu(Ou,l,p),c.lastIndex=l.lastIndex,t;var f=s.groups,d=Cu&&c.sticky,y=vu(bu,c),h=c.source,v=0,g=p;if(d&&(y=Nu(y,"y",""),-1===Iu(y,"g")&&(y+="g"),g=Tu(p,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==ju(p,c.lastIndex-1))&&(h="(?: "+h+")",g=" "+g,v++),r=new RegExp("^(?:"+h+")",y)),_u&&(r=new RegExp("^"+h+"$(?!\\s)",y)),Fu&&(n=c.lastIndex),o=vu(ku,d?r:c,g),d?o?(o.input=Tu(o.input,v),o[0]=Tu(o[0],v),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:Fu&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),_u&&o&&o.length>1&&vu(Eu,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&f)for(o.groups=a=Au(null),i=0;i<f.length;i++)a[(u=f[i])[0]]=o[u[1]];return o});var Uu=Ou;fo({target:"RegExp",proto:!0,forced:/./.exec!==Uu},{exec:Uu});var Wu=H,Du=yr.exports,Bu=Uu,Gu=O,Mu=bt,Lu=dr,qu=Mu("species"),Vu=RegExp.prototype,zu=H,Hu=hn,Ju=Fa,$u=oe,Ku=zu("".charAt),Qu=zu("".charCodeAt),Xu=zu("".slice),Yu=function(e){return function(t,r){var n,o,i=Ju($u(t)),a=Hu(r),u=i.length;return a<0||a>=u?e?"":void 0:(n=Qu(i,a))<55296||n>56319||a+1===u||(o=Qu(i,a+1))<56320||o>57343?e?Ku(i,a):n:e?Xu(i,a,a+2):o-56320+(n-55296<<10)+65536}},Zu={codeAt:Yu(!1),charAt:Yu(!0)}.charAt,ec=F,tc=Zt,rc=ce,nc=Q,oc=Uu,ic=E.TypeError,ac=F,uc=Zt,cc=An,sc=Fa,pc=oe,lc=Be,fc=function(e,t,r){return t+(r?Zu(e,t).length:1)},dc=function(e,t){var r=e.exec;if(rc(r)){var n=ec(r,e,t);return null!==n&&tc(n),n}if("RegExp"===nc(e))return ec(oc,e,t);throw ic("RegExp#exec called on incompatible receiver")};(function(e,t,r,n){var o=Mu(e),i=!Gu((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Gu((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[qu]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!i||!a||r){var u=Wu(/./[o]),c=t(o,""[e],(function(e,t,r,n,o){var a=Wu(e),c=t.exec;return c===Bu||c===Vu.exec?i&&!o?{done:!0,value:u(t,r,n)}:{done:!0,value:a(r,t,n)}:{done:!1}}));Du(String.prototype,e,c[0]),Du(Vu,o,c[1])}n&&Lu(Vu[o],"sham",!0)})("match",(function(e,t,r){return[function(t){var r=pc(this),n=null==t?void 0:lc(t,e);return n?ac(n,t,r):new RegExp(t)[e](sc(r))},function(e){var n=uc(this),o=sc(e),i=r(t,n,o);if(i.done)return i.value;if(!n.global)return dc(n,o);var a=n.unicode;n.lastIndex=0;for(var u,c=[],s=0;null!==(u=dc(n,o));){var p=sc(u[0]);c[s]=p,""===p&&(n.lastIndex=fc(o,cc(n.lastIndex),a)),s++}return 0===s?null:c}]}));var yc=ce,hc=pe,vc=_i,gc=H(1..valueOf),mc=oe,bc=Fa,wc=H("".replace),Sc="[\t\n\v\f\r                 \u2028\u2029\ufeff]",Ac=RegExp("^"+Sc+Sc+"*"),xc=RegExp(Sc+Sc+"*$"),Rc=function(e){return function(t){var r=bc(mc(t));return 1&e&&(r=wc(r,Ac,"")),2&e&&(r=wc(r,xc,"")),r}},Pc={start:Rc(1),end:Rc(2),trim:Rc(3)},Ec=j,kc=E,Oc=H,jc=oo,Ic=yr.exports,Nc=nt,Tc=function(e,t,r){var n,o;return vc&&yc(n=t.constructor)&&n!==r&&hc(o=n.prototype)&&o!==r.prototype&&vc(e,o),e},Fc=he,Cc=Te,_c=Ot,Uc=O,Wc=fn.f,Dc=k.f,Bc=Jt.f,Gc=gc,Mc=Pc.trim,Lc="Number",qc=kc.Number,Vc=qc.prototype,zc=kc.TypeError,Hc=Oc("".slice),Jc=Oc("".charCodeAt),$c=function(e){var t=_c(e,"number");return"bigint"==typeof t?t:Kc(t)},Kc=function(e){var t,r,n,o,i,a,u,c,s=_c(e,"number");if(Cc(s))throw zc("Cannot convert a Symbol value to a number");if("string"==typeof s&&s.length>2)if(s=Mc(s),43===(t=Jc(s,0))||45===t){if(88===(r=Jc(s,2))||120===r)return NaN}else if(48===t){switch(Jc(s,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+s}for(a=(i=Hc(s,2)).length,u=0;u<a;u++)if((c=Jc(i,u))<48||c>o)return NaN;return parseInt(i,n)}return+s};if(jc(Lc,!qc(" 0o1")||!qc("0b1")||qc("+0x1"))){for(var Qc,Xc=function(e){var t=arguments.length<1?0:qc($c(e)),r=this;return Fc(Vc,r)&&Uc((function(){Gc(r)}))?Tc(Object(t),r,Xc):t},Yc=Ec?Wc(qc):"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(","),Zc=0;Yc.length>Zc;Zc++)Nc(qc,Qc=Yc[Zc])&&!Nc(Xc,Qc)&&Bc(Xc,Qc,Dc(qc,Qc));Xc.prototype=Vc,Vc.constructor=Xc,Ic(kc,Lc,Xc)}var es=O,ts=function(e,t){var r=[][e];return!!r&&es((function(){r.call(null,t||function(){return 1},1)}))},rs=fo,ns=jn.indexOf,os=ts,is=H([].indexOf),as=!!is&&1/is([1],1,-0)<0,us=os("indexOf");rs({target:"Array",proto:!0,forced:as||!us},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return as?is(this,e,t)||0:ns(this,e,t)}});var cs=Ki.every;fo({target:"Array",proto:!0,forced:!ts("every")},{every:function(e){return cs(this,e,arguments.length>1?arguments[1]:void 0)}});var ss=jo,ps=So?{}.toString:function(){return"[object "+ss(this)+"]"},ls=So,fs=yr.exports,ds=ps;ls||fs(Object.prototype,"toString",ds,{unsafe:!0}),fo({target:"Array",stat:!0},{isArray:ho});var ys=H([].slice),hs=fo,vs=E,gs=ho,ms=qo,bs=pe,ws=bn,Ss=Rn,As=ue,xs=bo,Rs=bt,Ps=ys,Es=ti("slice"),ks=Rs("species"),Os=vs.Array,js=Math.max;hs({target:"Array",proto:!0,forced:!Es},{slice:function(e,t){var r,n,o,i=As(this),a=Ss(i),u=ws(e,a),c=ws(void 0===t?a:t,a);if(gs(i)&&(r=i.constructor,(ms(r)&&(r===Os||gs(r.prototype))||bs(r)&&null===(r=r[ks]))&&(r=void 0),r===Os||void 0===r))return Ps(i,u,c);for(n=new(void 0===r?Os:r)(js(c-u,0)),o=0;u<c;u++,o++)u in i&&xs(n,o,i[u]);return n.length=o,n}});var Is=We,Ns=et,Ts=re,Fs=Rn,Cs=E.TypeError,_s=function(e){return function(t,r,n,o){Is(r);var i=Ns(t),a=Ts(i),u=Fs(i),c=e?u-1:0,s=e?-1:1;if(n<2)for(;;){if(c in a){o=a[c],c+=s;break}if(c+=s,e?c<0:u<=c)throw Cs("Reduce of empty array with no initial value")}for(;e?c>=0:u>c;c+=s)c in a&&(o=r(o,a[c],c,i));return o}},Us={left:_s(!1),right:_s(!0)},Ws="process"==Q(E.process),Ds=Us.left,Bs=Ae,Gs=Ws;fo({target:"Array",proto:!0,forced:!ts("reduce")||!Gs&&Bs>79&&Bs<83},{reduce:function(e){var t=arguments.length;return Ds(this,e,t,t>1?arguments[1]:void 0)}});var Ms=et,Ls=ga;fo({target:"Object",stat:!0,forced:O((function(){Ls(1)}))},{keys:function(e){return Ls(Ms(e))}});var qs=function(e){l(r,e);var t=w(r);function r(e,n,o,i,a){var c;u(this,r);var s=o-n.length,p=r.extractErrorIndex(s,i,a),l=r.buildErrorMessage(s,o,p);return(c=t.call(this,l)).name="KintoneAllRecordsError",c.processedRecordsResult=e,c.unprocessedRecords=n,c.error=i,c.errorIndex=p,c.message=l,Object.setPrototypeOf(m(c),r.prototype),c}return s(r,null,[{key:"parseErrorIndex",value:function(e){var t=Object.keys(e)[0].match(/records\[(\d+)\]/);return t?Number(t[1]):null}},{key:"extractErrorIndex",value:function(e,t,n){if(void 0!==t.bulkRequestIndex&&t.errors){var o=r.parseErrorIndex(t.errors);if(null!==o)return e+t.bulkRequestIndex*n+o}}},{key:"buildErrorMessage",value:function(e,t,r){var n="";return void 0!==r&&(n="An error occurred at records[".concat(r,"]. ")),n+="".concat(e,"/").concat(t," records are processed successfully")}}]),r}(v(Error)),Vs=["condition","orderBy","withCursor"],zs=["fields"],Hs=["condition"],Js=["condition","orderBy"],$s=function(){function e(t,r,n){u(this,e),this.client=t,this.bulkRequestClient=r,this.guestSpaceId=n,this.didWarnMaximumOffsetValue=!1}var t,r,o,i,c,l,f,d,y,h,v,m,b,w,A,x,R,P;return s(e,[{key:"getRecord",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.get(t,e)}},{key:"addRecord",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.post(t,e)}},{key:"updateRecord",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.put(t,e)}},{key:"upsertRecord",value:(P=a(regeneratorRuntime.mark((function e(t){var r,n,o,i,a,u,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.app,n=t.updateKey,o=t.record,e.next=3,this.getRecords({app:r,query:"".concat(n.field,' = "').concat(n.value,'"')});case 3:if(i=e.sent,!((a=i.records).length>0)){e.next=13;break}if("__ID__"!==a[0].$id.type){e.next=12;break}return e.next=9,this.updateRecord(t);case 9:return u=e.sent,c=u.revision,e.abrupt("return",{id:a[0].$id.value,revision:c});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:r,record:Object.assign({},o,p({},n.field,{value:n.value}))}));case 14:case"end":return e.stop()}}),e,this)}))),function(e){return P.apply(this,arguments)})},{key:"getRecords",value:(R=a(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.buildPathWithGuestSpaceId({endpointName:"records"}),e.next=3,this.client.get(r,t);case 3:return n=e.sent,this.warnMaximumOffsetValueIfNeeded(t.query),e.abrupt("return",n);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return R.apply(this,arguments)})},{key:"warnMaximumOffsetValueIfNeeded",value:function(e){if(e){var t=e.match(/offset\s+(\d+)/i);!this.didWarnMaximumOffsetValue&&t&&Number(t[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:(x=a(regeneratorRuntime.mark((function e(t){var r,n,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.buildPathWithGuestSpaceId({endpointName:"records"}),e.next=3,this.client.post(r,t);case 3:return n=e.sent,o=n.ids,i=n.revisions,e.abrupt("return",{ids:o,revisions:i,records:o.map((function(e,t){return{id:e,revision:i[t]}}))});case 7:case"end":return e.stop()}}),e,this)}))),function(e){return x.apply(this,arguments)})},{key:"updateRecords",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records"});return this.client.put(t,e)}},{key:"deleteRecords",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records"});return this.client.delete(t,e)}},{key:"createCursor",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.post(t,e)}},{key:"getRecordsByCursor",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.get(t,e)}},{key:"deleteCursor",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.delete(t,e)}},{key:"getAllRecords",value:(A=a(regeneratorRuntime.mark((function e(t){var r,o,i,a,u,c,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.condition,o=t.orderBy,i=t.withCursor,a=void 0===i||i,u=g(t,Vs),o){e.next=3;break}return e.abrupt("return",this.getAllRecordsWithId(n(n({},u),{},{condition:r})));case 3:if(!a){e.next=7;break}return c=r?"".concat(r," "):"",s="".concat(c).concat(o?"order by ".concat(o):""),e.abrupt("return",this.getAllRecordsWithCursor(n(n({},u),{},{query:s})));case 7:return e.abrupt("return",this.getAllRecordsWithOffset(n(n({},u),{},{orderBy:o,condition:r})));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return A.apply(this,arguments)})},{key:"getAllRecordsWithId",value:(w=a(regeneratorRuntime.mark((function e(t){var r,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.fields,o=g(t,zs),(i=r)&&i.length>0&&-1===i.indexOf("$id")&&(i=[].concat(S(i),["$id"])),e.abrupt("return",this.getAllRecordsRecursiveWithId(n(n({},o),{},{fields:i}),"0",[]));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return w.apply(this,arguments)})},{key:"getAllRecordsRecursiveWithId",value:(b=a(regeneratorRuntime.mark((function e(t,r,o){var i,a,u,c,s,p,l,f,d;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=500,a=t.condition,u=g(t,Hs),c=a?"(".concat(a,") and "):"",s="".concat(c,"$id > ").concat(r," order by $id asc limit ").concat(i),e.next=6,this.getRecords(n(n({},u),{},{query:s}));case 6:if(p=e.sent,l=o.concat(p.records),!(p.records.length<i)){e.next=10;break}return e.abrupt("return",l);case 10:if("__ID__"!==(f=p.records[p.records.length-1]).$id.type){e.next=14;break}return d=f.$id.value,e.abrupt("return",this.getAllRecordsRecursiveWithId(t,d,l));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,t,r){return b.apply(this,arguments)})},{key:"getAllRecordsWithOffset",value:(m=a(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAllRecordsRecursiveWithOffset(t,0,[]));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return m.apply(this,arguments)})},{key:"getAllRecordsRecursiveWithOffset",value:(v=a(regeneratorRuntime.mark((function e(t,r,o){var i,a,u,c,s,p,l,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=500,a=t.condition,u=t.orderBy,c=g(t,Js),s=a?"".concat(a," "):"",p="".concat(s).concat(u?"order by ".concat(u," "):"","limit ").concat(i," offset ").concat(r),e.next=6,this.getRecords(n(n({},c),{},{query:p}));case 6:if(l=e.sent,f=o.concat(l.records),!(l.records.length<i)){e.next=10;break}return e.abrupt("return",f);case 10:return e.abrupt("return",this.getAllRecordsRecursiveWithOffset(t,r+i,f));case 11:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return v.apply(this,arguments)})},{key:"getAllRecordsWithCursor",value:(h=a(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.createCursor(t);case 2:return r=e.sent,n=r.id,e.prev=4,e.next=7,this.getAllRecordsRecursiveByCursor(n,[]);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:n});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:(y=a(regeneratorRuntime.mark((function e(t,r){var n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getRecordsByCursor({id:t});case 2:if(n=e.sent,o=r.concat(n.records),!n.next){e.next=6;break}return e.abrupt("return",this.getAllRecordsRecursiveByCursor(t,o));case 6:return e.abrupt("return",o);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return y.apply(this,arguments)})},{key:"addAllRecords",value:(d=a(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.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(t,t.records.length,[]));case 3:case"end":return e.stop()}}),e,this)}))),function(e){return d.apply(this,arguments)})},{key:"addAllRecordsRecursive",value:(f=a(regeneratorRuntime.mark((function e(t,r,n){var o,i,a,u,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,i=t.app,a=t.records,0!==(u=a.slice(0,o)).length){e.next=5;break}return e.abrupt("return",{records:n});case 5:return e.prev=5,e.next=8,this.addAllRecordsWithBulkRequest({app:i,records:u});case 8:c=e.sent,e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(5),new qs({records:n},a,r,e.t0,100);case 14:return e.abrupt("return",this.addAllRecordsRecursive({app:i,records:a.slice(o)},r,n.concat(c)));case 15:case"end":return e.stop()}}),e,this,[[5,11]])}))),function(e,t,r){return f.apply(this,arguments)})},{key:"addAllRecordsWithBulkRequest",value:(l=a(regeneratorRuntime.mark((function e(t){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.separateArrayRecursive(100,[],t.records),n=r.map((function(e){return{method:"POST",endpointName:"records",payload:{app:t.app,records:e}}})),e.next=4,this.bulkRequestClient.send({requests:n});case 4:return o=e.sent.results,e.abrupt("return",o.map((function(e){var t=e.ids,r=e.revisions;return t.map((function(e,t){return{id:e,revision:r[t]}}))})).reduce((function(e,t){return e.concat(t)}),[]));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"updateAllRecords",value:(c=a(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.updateAllRecordsRecursive(t,t.records.length,[]));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"updateAllRecordsRecursive",value:(i=a(regeneratorRuntime.mark((function e(t,r,n){var o,i,a,u,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,i=t.app,a=t.records,0!==(u=a.slice(0,o)).length){e.next=5;break}return e.abrupt("return",{records:n});case 5:return e.prev=5,e.next=8,this.updateAllRecordsWithBulkRequest({app:i,records:u});case 8:c=e.sent,e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(5),new qs({records:n},a,r,e.t0,100);case 14:return e.abrupt("return",this.updateAllRecordsRecursive({app:i,records:a.slice(o)},r,n.concat(c)));case 15:case"end":return e.stop()}}),e,this,[[5,11]])}))),function(e,t,r){return i.apply(this,arguments)})},{key:"updateAllRecordsWithBulkRequest",value:(o=a(regeneratorRuntime.mark((function e(t){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.separateArrayRecursive(100,[],t.records),n=r.map((function(e){return{method:"PUT",endpointName:"records",payload:{app:t.app,records:e}}})),e.next=4,this.bulkRequestClient.send({requests:n});case 4:return o=e.sent.results,e.abrupt("return",o.map((function(e){return e.records})).reduce((function(e,t){return e.concat(t)}),[]));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:(r=a(regeneratorRuntime.mark((function e(t,r){var n,o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,o=t.app,i=t.records,0!==(a=i.slice(0,n)).length){e.next=5;break}return e.abrupt("return",{});case 5:return e.prev=5,e.next=8,this.deleteAllRecordsWithBulkRequest({app:o,records:a});case 8:e.next=13;break;case 10:throw e.prev=10,e.t0=e.catch(5),new qs({},i,r,e.t0,100);case 13:return e.abrupt("return",this.deleteAllRecordsRecursive({app:o,records:i.slice(n)},r));case 14:case"end":return e.stop()}}),e,this,[[5,10]])}))),function(e,t){return r.apply(this,arguments)})},{key:"deleteAllRecordsWithBulkRequest",value:(t=a(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.separateArrayRecursive(100,[],t.records),n=r.map((function(e){return{method:"DELETE",endpointName:"records",payload:{app:t.app,ids:e.map((function(e){return e.id})),revisions:e.map((function(e){return e.revision}))}}})),e.next=4,this.bulkRequestClient.send({requests:n});case 4:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"separateArrayRecursive",value:function(e,t,r){var n=r.slice(0,e);return 0===n.length?t:this.separateArrayRecursive(e,[].concat(S(t),[n]),r.slice(e))}},{key:"addRecordComment",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/comment"});return this.client.post(t,e)}},{key:"deleteRecordComment",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/comment"});return this.client.delete(t,e)}},{key:"getRecordComments",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/comments"});return this.client.get(t,e)}},{key:"updateRecordAssignees",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/assignees"});return this.client.put(t,e)}},{key:"updateRecordStatus",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/status"});return this.client.put(t,e)}},{key:"updateRecordsStatus",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records/status"});return this.client.put(t,e)}},{key:"buildPathWithGuestSpaceId",value:function(e){return Xi(n(n({},e),{},{guestSpaceId:this.guestSpaceId}))}}]),e}(),Ks="object"==("undefined"==typeof self?"undefined":o(self))?self.FormData:window.FormData,Qs=function(){function e(t,r){u(this,e),this.client=t,this.guestSpaceId=r}var r;return s(e,[{key:"uploadFile",value:(r=a(regeneratorRuntime.mark((function e(r){var n,o,i,a,u,c,s,p;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.buildPathWithGuestSpaceId({endpointName:"file"}),o=new Ks,!("path"in r.file)){e.next=19;break}return e.prev=3,e.next=6,t.readFileFromPath(r.file.path);case 6:i=e.sent,a=i.name,u=i.data,o.append("file",u,a),e.next=17;break;case 12:if(e.prev=12,e.t0=e.catch(3),!(e.t0 instanceof Ui)){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=21;break;case 19:c=r.file,s=c.name,p=c.data,o.append("file",t.buildFormDataValue(p),s);case 21:return e.abrupt("return",this.client.postData(n,o));case 22:case"end":return e.stop()}}),e,this,[[3,12]])}))),function(e){return r.apply(this,arguments)})},{key:"downloadFile",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"file"});return this.client.getData(t,e)}},{key:"buildPathWithGuestSpaceId",value:function(e){return Xi(n(n({},e),{},{guestSpaceId:this.guestSpaceId}))}}]),e}(),Xs={exports:{}},Ys=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}},Zs=Ys,ep=Object.prototype.toString;function tp(e){return Array.isArray(e)}function rp(e){return void 0===e}function np(e){return"[object ArrayBuffer]"===ep.call(e)}function op(e){return null!==e&&"object"===o(e)}function ip(e){if("[object Object]"!==ep.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function ap(e){return"[object Function]"===ep.call(e)}function up(e,t){if(null!=e)if("object"!==o(e)&&(e=[e]),tp(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}var cp={isArray:tp,isArrayBuffer:np,isBuffer:function(e){return null!==e&&!rp(e)&&null!==e.constructor&&!rp(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"[object FormData]"===ep.call(e)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&np(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:op,isPlainObject:ip,isUndefined:rp,isDate:function(e){return"[object Date]"===ep.call(e)},isFile:function(e){return"[object File]"===ep.call(e)},isBlob:function(e){return"[object Blob]"===ep.call(e)},isFunction:ap,isStream:function(e){return op(e)&&ap(e.pipe)},isURLSearchParams:function(e){return"[object URLSearchParams]"===ep.call(e)},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:up,merge:function e(){var t={};function r(r,n){ip(t[n])&&ip(r)?t[n]=e(t[n],r):ip(r)?t[n]=e({},r):tp(r)?t[n]=r.slice():t[n]=r}for(var n=0,o=arguments.length;n<o;n++)up(arguments[n],r);return t},extend:function(e,t,r){return up(t,(function(t,n){e[n]=r&&"function"==typeof t?Zs(t,r):t})),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}},sp=cp;function pp(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var lp=function(e,t,r){if(!t)return e;var n;if(r)n=r(t);else if(sp.isURLSearchParams(t))n=t.toString();else{var o=[];sp.forEach(t,(function(e,t){null!=e&&(sp.isArray(e)?t+="[]":e=[e],sp.forEach(e,(function(e){sp.isDate(e)?e=e.toISOString():sp.isObject(e)&&(e=JSON.stringify(e)),o.push(pp(t)+"="+pp(e))})))})),n=o.join("&")}if(n){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e},fp=cp;function dp(){this.handlers=[]}dp.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},dp.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},dp.prototype.forEach=function(e){fp.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var yp=dp,hp="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function vp(){throw new Error("setTimeout has not been defined")}function gp(){throw new Error("clearTimeout has not been defined")}var mp=vp,bp=gp;function wp(e){if(mp===setTimeout)return setTimeout(e,0);if((mp===vp||!mp)&&setTimeout)return mp=setTimeout,setTimeout(e,0);try{return mp(e,0)}catch(t){try{return mp.call(null,e,0)}catch(t){return mp.call(this,e,0)}}}"function"==typeof hp.setTimeout&&(mp=setTimeout),"function"==typeof hp.clearTimeout&&(bp=clearTimeout);var Sp,Ap=[],xp=!1,Rp=-1;function Pp(){xp&&Sp&&(xp=!1,Sp.length?Ap=Sp.concat(Ap):Rp=-1,Ap.length&&Ep())}function Ep(){if(!xp){var e=wp(Pp);xp=!0;for(var t=Ap.length;t;){for(Sp=Ap,Ap=[];++Rp<t;)Sp&&Sp[Rp].run();Rp=-1,t=Ap.length}Sp=null,xp=!1,function(e){if(bp===clearTimeout)return clearTimeout(e);if((bp===gp||!bp)&&clearTimeout)return bp=clearTimeout,clearTimeout(e);try{bp(e)}catch(t){try{return bp.call(null,e)}catch(t){return bp.call(this,e)}}}(e)}}function kp(e,t){this.fun=e,this.array=t}kp.prototype.run=function(){this.fun.apply(null,this.array)};function Op(){}var jp=Op,Ip=Op,Np=Op,Tp=Op,Fp=Op,Cp=Op,_p=Op;var Up=hp.performance||{},Wp=Up.now||Up.mozNow||Up.msNow||Up.oNow||Up.webkitNow||function(){return(new Date).getTime()};var Dp=new Date;var Bp={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Ap.push(new kp(e,t)),1!==Ap.length||xp||wp(Ep)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:jp,addListener:Ip,once:Np,off:Tp,removeListener:Fp,removeAllListeners:Cp,emit:_p,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 t=.001*Wp.call(Up),r=Math.floor(t),n=Math.floor(t%1*1e9);return e&&(r-=e[0],(n-=e[1])<0&&(r--,n+=1e9)),[r,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Dp)/1e3}},Gp=cp,Mp=function(e,t,r,n,o){return e.config=t,r&&(e.code=r),e.request=n,e.response=o,e.isAxiosError=!0,e.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}},e},Lp=Mp,qp=function(e,t,r,n,o){var i=new Error(e);return Lp(i,t,r,n,o)},Vp=qp,zp=cp,Hp=zp.isStandardBrowserEnv()?{write:function(e,t,r,n,o,i){var a=[];a.push(e+"="+encodeURIComponent(t)),zp.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),zp.isString(n)&&a.push("path="+n),zp.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},Jp=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)},$p=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e},Kp=cp,Qp=["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"],Xp=cp,Yp=Xp.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){var r=Xp.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0};function Zp(e){this.message=e}Zp.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Zp.prototype.__CANCEL__=!0;var el=Zp,tl=cp,rl=function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(Vp("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)},nl=Hp,ol=lp,il=function(e,t){return e&&!Jp(t)?$p(e,t):t},al=function(e){var t,r,n,o={};return e?(Kp.forEach(e.split("\n"),(function(e){if(n=e.indexOf(":"),t=Kp.trim(e.substr(0,n)).toLowerCase(),r=Kp.trim(e.substr(n+1)),t){if(o[t]&&Qp.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([r]):o[t]?o[t]+", "+r:r}})),o):o},ul=Yp,cl=qp,sl=bl,pl=el,ll=function(e){return new Promise((function(t,r){var n,o=e.data,i=e.headers,a=e.responseType;function u(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}tl.isFormData(o)&&delete i["Content-Type"];var c=new XMLHttpRequest;if(e.auth){var s=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.Authorization="Basic "+btoa(s+":"+p)}var l=il(e.baseURL,e.url);function f(){if(c){var n="getAllResponseHeaders"in c?al(c.getAllResponseHeaders()):null,o={data:a&&"text"!==a&&"json"!==a?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:n,config:e,request:c};rl((function(e){t(e),u()}),(function(e){r(e),u()}),o),c=null}}if(c.open(e.method.toUpperCase(),ol(l,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=f:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(f)},c.onabort=function(){c&&(r(cl("Request aborted",e,"ECONNABORTED",c)),c=null)},c.onerror=function(){r(cl("Network Error",e,null,c)),c=null},c.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||sl.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(cl(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},tl.isStandardBrowserEnv()){var d=(e.withCredentials||ul(l))&&e.xsrfCookieName?nl.read(e.xsrfCookieName):void 0;d&&(i[e.xsrfHeaderName]=d)}"setRequestHeader"in c&&tl.forEach(i,(function(e,t){void 0===o&&"content-type"===t.toLowerCase()?delete i[t]:c.setRequestHeader(t,e)})),tl.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),a&&"json"!==a&&(c.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&c.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(n=function(e){c&&(r(!e||e&&e.type?new pl("canceled"):e),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n))),o||(o=null),c.send(o)}))},fl=cp,dl=function(e,t){Gp.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))},yl=Mp,hl={"Content-Type":"application/x-www-form-urlencoded"};function vl(e,t){!fl.isUndefined(e)&&fl.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var gl,ml={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==Bp&&"[object process]"===Object.prototype.toString.call(Bp))&&(gl=ll),gl),transformRequest:[function(e,t){return dl(t,"Accept"),dl(t,"Content-Type"),fl.isFormData(e)||fl.isArrayBuffer(e)||fl.isBuffer(e)||fl.isStream(e)||fl.isFile(e)||fl.isBlob(e)?e:fl.isArrayBufferView(e)?e.buffer:fl.isURLSearchParams(e)?(vl(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):fl.isObject(e)||t&&"application/json"===t["Content-Type"]?(vl(t,"application/json"),function(e,t,r){if(fl.isString(e))try{return(t||JSON.parse)(e),fl.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||ml.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,o=!r&&"json"===this.responseType;if(o||n&&fl.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw yl(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};fl.forEach(["delete","get","head"],(function(e){ml.headers[e]={}})),fl.forEach(["post","put","patch"],(function(e){ml.headers[e]=fl.merge(hl)}));var bl=ml,wl=cp,Sl=bl,Al=function(e){return!(!e||!e.__CANCEL__)},xl=cp,Rl=function(e,t,r){var n=this||Sl;return wl.forEach(r,(function(r){e=r.call(n,e,t)})),e},Pl=Al,El=bl,kl=el;function Ol(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new kl("canceled")}var jl=cp,Il=function(e,t){t=t||{};var r={};function n(e,t){return jl.isPlainObject(e)&&jl.isPlainObject(t)?jl.merge(e,t):jl.isPlainObject(t)?jl.merge({},t):jl.isArray(t)?t.slice():t}function o(r){return jl.isUndefined(t[r])?jl.isUndefined(e[r])?void 0:n(void 0,e[r]):n(e[r],t[r])}function i(e){if(!jl.isUndefined(t[e]))return n(void 0,t[e])}function a(r){return jl.isUndefined(t[r])?jl.isUndefined(e[r])?void 0:n(void 0,e[r]):n(void 0,t[r])}function u(r){return r in t?n(e[r],t[r]):r in e?n(void 0,e[r]):void 0}var c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u};return jl.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||o,n=t(e);jl.isUndefined(n)&&t!==u||(r[e]=n)})),r},Nl="0.26.0",Tl=Nl,Fl={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Fl[e]=function(r){return o(r)===e||"a"+(t<1?"n ":" ")+e}}));var Cl={};Fl.transitional=function(e,t,r){function n(e,t){return"[Axios v"+Tl+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,o,i){if(!1===e)throw new Error(n(o," has been removed"+(t?" in "+t:"")));return t&&!Cl[o]&&(Cl[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}};var _l=cp,Ul=lp,Wl=yp,Dl=function(e){return Ol(e),e.headers=e.headers||{},e.data=Rl.call(e,e.data,e.headers,e.transformRequest),e.headers=xl.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),xl.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||El.adapter)(e).then((function(t){return Ol(e),t.data=Rl.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return Pl(t)||(Ol(e),t&&t.response&&(t.response.data=Rl.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},Bl=Il,Gl={assertOptions:function(e,t,r){if("object"!==o(e))throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var a=n[i],u=t[a];if(u){var c=e[a],s=void 0===c||u(c,a,e);if(!0!==s)throw new TypeError("option "+a+" must be "+s)}else if(!0!==r)throw Error("Unknown option "+a)}},validators:Fl},Ml=Gl.validators;function Ll(e){this.defaults=e,this.interceptors={request:new Wl,response:new Wl}}Ll.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=Bl(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&Gl.assertOptions(r,{silentJSONParsing:Ml.transitional(Ml.boolean),forcedJSONParsing:Ml.transitional(Ml.boolean),clarifyTimeoutError:Ml.transitional(Ml.boolean)},!1);var n=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var i,a=[];if(this.interceptors.response.forEach((function(e){a.push(e.fulfilled,e.rejected)})),!o){var u=[Dl,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(a),i=Promise.resolve(t);u.length;)i=i.then(u.shift(),u.shift());return i}for(var c=t;n.length;){var s=n.shift(),p=n.shift();try{c=s(c)}catch(e){p(e);break}}try{i=Dl(c)}catch(e){return Promise.reject(e)}for(;a.length;)i=i.then(a.shift(),a.shift());return i},Ll.prototype.getUri=function(e){return e=Bl(this.defaults,e),Ul(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},_l.forEach(["delete","get","head","options"],(function(e){Ll.prototype[e]=function(t,r){return this.request(Bl(r||{},{method:e,url:t,data:(r||{}).data}))}})),_l.forEach(["post","put","patch"],(function(e){Ll.prototype[e]=function(t,r,n){return this.request(Bl(n||{},{method:e,url:t,data:r}))}}));var ql=Ll,Vl=el;function zl(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e){r.reason||(r.reason=new Vl(e),t(r.reason))}))}zl.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},zl.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},zl.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},zl.source=function(){var e;return{token:new zl((function(t){e=t})),cancel:e}};var Hl=zl,Jl=cp,$l=cp,Kl=Ys,Ql=ql,Xl=Il;var Yl=function e(t){var r=new Ql(t),n=Kl(Ql.prototype.request,r);return $l.extend(n,Ql.prototype,r),$l.extend(n,r),n.create=function(r){return e(Xl(t,r))},n}(bl);Yl.Axios=Ql,Yl.Cancel=el,Yl.CancelToken=Hl,Yl.isCancel=Al,Yl.VERSION=Nl,Yl.all=function(e){return Promise.all(e)},Yl.spread=function(e){return function(t){return e.apply(null,t)}},Yl.isAxiosError=function(e){return Jl.isObject(e)&&!0===e.isAxiosError},Xs.exports=Yl,Xs.exports.default=Yl;var Zl=Xs.exports,ef=function(){function e(t){var r=t.responseHandler,n=t.requestConfigBuilder;u(this,e),this.responseHandler=r,this.requestConfigBuilder=n}var t,r,o,i,c,p;return s(e,[{key:"get",value:(p=a(regeneratorRuntime.mark((function e(t,r){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("get",t,r);case 2:return n=e.sent,e.next=5,this.sendRequest(n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return p.apply(this,arguments)})},{key:"getData",value:(c=a(regeneratorRuntime.mark((function e(t,r){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("get",t,r,{responseType:"arraybuffer"});case 2:return n=e.sent,e.next=5,this.sendRequest(n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return c.apply(this,arguments)})},{key:"post",value:(i=a(regeneratorRuntime.mark((function e(t,r){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("post",t,r);case 2:return n=e.sent,e.next=5,this.sendRequest(n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"postData",value:(o=a(regeneratorRuntime.mark((function e(t,r){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("post",t,r);case 2:return n=e.sent,e.next=5,this.sendRequest(n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return o.apply(this,arguments)})},{key:"put",value:(r=a(regeneratorRuntime.mark((function e(t,r){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("put",t,r);case 2:return n=e.sent,e.next=5,this.sendRequest(n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"delete",value:(t=a(regeneratorRuntime.mark((function e(t,r){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("delete",t,r);case 2:return n=e.sent,e.next=5,this.sendRequest(n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,r){return t.apply(this,arguments)})},{key:"sendRequest",value:function(e){return this.responseHandler.handle(Zl(n(n({},e),{},{maxBodyLength:1/0,maxContentLength:1/0})))}}]),e}(),tf=fo,rf=re,nf=ue,of=ts,af=H([].join),uf=rf!=Object,cf=of("join",",");tf({target:"Array",proto:!0,forced:uf||!cf},{join:function(e){return af(nf(this),void 0===e?",":e)}});var sf,pf=x.Symbol,lf=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"===o(Symbol.iterator))return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=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 n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0},ff=function(){return"function"==typeof pf&&("function"==typeof Symbol&&("symbol"===o(pf("foo"))&&("symbol"===o(Symbol("bar"))&&lf())))},df="Function.prototype.bind called on incompatible ",yf=Array.prototype.slice,hf=Object.prototype.toString,vf="[object Function]",gf=function(e){var t=this;if("function"!=typeof t||hf.call(t)!==vf)throw new TypeError(df+t);for(var r,n=yf.call(arguments,1),o=function(){if(this instanceof r){var o=t.apply(this,n.concat(yf.call(arguments)));return Object(o)===o?o:this}return t.apply(e,n.concat(yf.call(arguments)))},i=Math.max(0,t.length-n.length),a=[],u=0;u<i;u++)a.push("$"+u);if(r=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(o),t.prototype){var c=function(){};c.prototype=t.prototype,r.prototype=new c,c.prototype=null}return r},mf=Function.prototype.bind||gf,bf=mf.call(Function.call,Object.prototype.hasOwnProperty),wf=SyntaxError,Sf=Function,Af=TypeError,xf=function(e){try{return Sf('"use strict"; return ('+e+").constructor;")()}catch(e){}},Rf=Object.getOwnPropertyDescriptor;if(Rf)try{Rf({},"")}catch(e){Rf=null}var Pf,Ef=function(){throw new Af},kf=Rf?function(){try{return Ef}catch(e){try{return Rf(arguments,"callee").get}catch(e){return Ef}}}():Ef,Of=ff(),jf=Object.getPrototypeOf||function(e){return e.__proto__},If={},Nf="undefined"==typeof Uint8Array?sf:jf(Uint8Array),Tf={"%AggregateError%":"undefined"==typeof AggregateError?sf:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?sf:ArrayBuffer,"%ArrayIteratorPrototype%":Of?jf([][Symbol.iterator]()):sf,"%AsyncFromSyncIteratorPrototype%":sf,"%AsyncFunction%":If,"%AsyncGenerator%":If,"%AsyncGeneratorFunction%":If,"%AsyncIteratorPrototype%":If,"%Atomics%":"undefined"==typeof Atomics?sf:Atomics,"%BigInt%":"undefined"==typeof BigInt?sf:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?sf:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?sf:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?sf:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?sf:FinalizationRegistry,"%Function%":Sf,"%GeneratorFunction%":If,"%Int8Array%":"undefined"==typeof Int8Array?sf:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?sf:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?sf:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Of?jf(jf([][Symbol.iterator]())):sf,"%JSON%":"object"===("undefined"==typeof JSON?"undefined":o(JSON))?JSON:sf,"%Map%":"undefined"==typeof Map?sf:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Of?jf((new Map)[Symbol.iterator]()):sf,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?sf:Promise,"%Proxy%":"undefined"==typeof Proxy?sf:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?sf:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?sf:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Of?jf((new Set)[Symbol.iterator]()):sf,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?sf:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Of?jf(""[Symbol.iterator]()):sf,"%Symbol%":Of?Symbol:sf,"%SyntaxError%":wf,"%ThrowTypeError%":kf,"%TypedArray%":Nf,"%TypeError%":Af,"%Uint8Array%":"undefined"==typeof Uint8Array?sf:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?sf:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?sf:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?sf:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?sf:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?sf:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?sf:WeakSet},Ff=function e(t){var r;if("%AsyncFunction%"===t)r=xf("async function () {}");else if("%GeneratorFunction%"===t)r=xf("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=xf("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(r=jf(o.prototype))}return Tf[t]=r,r},Cf={"%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"]},_f=mf,Uf=bf,Wf=_f.call(Function.call,Array.prototype.concat),Df=_f.call(Function.apply,Array.prototype.splice),Bf=_f.call(Function.call,String.prototype.replace),Gf=_f.call(Function.call,String.prototype.slice),Mf=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Lf=/\\(\\)?/g,qf=function(e){var t=Gf(e,0,1),r=Gf(e,-1);if("%"===t&&"%"!==r)throw new wf("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new wf("invalid intrinsic syntax, expected opening `%`");var n=[];return Bf(e,Mf,(function(e,t,r,o){n[n.length]=r?Bf(o,Lf,"$1"):t||e})),n},Vf=function(e,t){var r,n=e;if(Uf(Cf,n)&&(n="%"+(r=Cf[n])[0]+"%"),Uf(Tf,n)){var o=Tf[n];if(o===If&&(o=Ff(n)),void 0===o&&!t)throw new Af("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new wf("intrinsic "+e+" does not exist!")},zf=SyntaxError,Hf=Function,Jf=TypeError,$f=function(e){try{return Function('"use strict"; return ('+e+").constructor;")()}catch(e){}},Kf=Object.getOwnPropertyDescriptor;if(Kf)try{Kf({},"")}catch(e){Kf=null}var Qf=function(){throw new Jf},Xf=Kf?function(){try{return Qf}catch(e){try{return Kf(arguments,"callee").get}catch(e){return Qf}}}():Qf,Yf=ff(),Zf=Object.getPrototypeOf||function(e){return e.__proto__},ed=$f("async function* () {}"),td=ed?ed.prototype:Pf,rd=td?td.prototype:Pf,nd="undefined"==typeof Uint8Array?Pf:Zf(Uint8Array),od={"%AggregateError%":"undefined"==typeof AggregateError?Pf:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?Pf:ArrayBuffer,"%ArrayIteratorPrototype%":Yf?Zf([][Symbol.iterator]()):Pf,"%AsyncFromSyncIteratorPrototype%":Pf,"%AsyncFunction%":$f("async function () {}"),"%AsyncGenerator%":td,"%AsyncGeneratorFunction%":ed,"%AsyncIteratorPrototype%":rd?Zf(rd):Pf,"%Atomics%":"undefined"==typeof Atomics?Pf:Atomics,"%BigInt%":"undefined"==typeof BigInt?Pf:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?Pf:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?Pf:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?Pf:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?Pf:FinalizationRegistry,"%Function%":Hf,"%GeneratorFunction%":$f("function* () {}"),"%Int8Array%":"undefined"==typeof Int8Array?Pf:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?Pf:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?Pf:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Yf?Zf(Zf([][Symbol.iterator]())):Pf,"%JSON%":"object"===("undefined"==typeof JSON?"undefined":o(JSON))?JSON:Pf,"%Map%":"undefined"==typeof Map?Pf:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Yf?Zf((new Map)[Symbol.iterator]()):Pf,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?Pf:Promise,"%Proxy%":"undefined"==typeof Proxy?Pf:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?Pf:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?Pf:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Yf?Zf((new Set)[Symbol.iterator]()):Pf,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Pf:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Yf?Zf(""[Symbol.iterator]()):Pf,"%Symbol%":Yf?Symbol:Pf,"%SyntaxError%":zf,"%ThrowTypeError%":Xf,"%TypedArray%":nd,"%TypeError%":Jf,"%Uint8Array%":"undefined"==typeof Uint8Array?Pf:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Pf:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?Pf:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?Pf:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?Pf:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?Pf:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?Pf:WeakSet},id={"%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"]},ad=mf,ud=bf,cd=ad.call(Function.call,Array.prototype.concat),sd=ad.call(Function.apply,Array.prototype.splice),pd=ad.call(Function.call,String.prototype.replace),ld=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,fd=/\\(\\)?/g,dd=function(e){var t=[];return pd(e,ld,(function(e,r,n,o){t[t.length]=n?pd(o,fd,"$1"):r||e})),t},yd=function(e,t){var r,n=e;if(ud(id,n)&&(n="%"+(r=id[n])[0]+"%"),ud(od,n)){var o=od[n];if(void 0===o&&!t)throw new Jf("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new zf("intrinsic "+e+" does not exist!")},hd=function(e,t){if("string"!=typeof e||0===e.length)throw new Jf("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new Jf('"allowMissing" argument must be a boolean');var r=dd(e),n=r.length>0?r[0]:"",o=yd("%"+n+"%",t),i=o.name,a=o.value,u=!1,c=o.alias;c&&(n=c[0],sd(r,cd([0,1],c)));for(var s=1,p=!0;s<r.length;s+=1){var l=r[s];if("constructor"!==l&&p||(u=!0),ud(od,i="%"+(n+="."+l)+"%"))a=od[i];else if(null!=a){if(Kf&&s+1>=r.length){var f=Kf(a,l);if(p=!!f,!t&&!(l in a))throw new Jf("base intrinsic for "+e+" exists, but the property is not available.");a=p&&"get"in f&&!("originalValue"in f.get)?f.get:a[l]}else p=ud(a,l),a=a[l];p&&!u&&(od[i]=a)}}return a},vd={exports:{}};!function(e){var t=mf,r=hd,n=r("%Function.prototype.apply%"),o=r("%Function.prototype.call%"),i=r("%Reflect.apply%",!0)||t.call(o,n),a=r("%Object.defineProperty%",!0);if(a)try{a({},"a",{value:1})}catch(e){a=null}e.exports=function(){return i(t,o,arguments)};var u=function(){return i(t,n,arguments)};a?a(e.exports,"apply",{value:u}):e.exports.apply=u}(vd);var gd=hd,md=vd.exports,bd=md(gd("String.prototype.indexOf")),wd=R(Object.freeze({__proto__:null,default:{}})),Sd="function"==typeof Map&&Map.prototype,Ad=Object.getOwnPropertyDescriptor&&Sd?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,xd=Sd&&Ad&&"function"==typeof Ad.get?Ad.get:null,Rd=Sd&&Map.prototype.forEach,Pd="function"==typeof Set&&Set.prototype,Ed=Object.getOwnPropertyDescriptor&&Pd?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,kd=Pd&&Ed&&"function"==typeof Ed.get?Ed.get:null,Od=Pd&&Set.prototype.forEach,jd="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Id="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Nd=Boolean.prototype.valueOf,Td=Object.prototype.toString,Fd=Function.prototype.toString,Cd=String.prototype.match,_d="function"==typeof BigInt?BigInt.prototype.valueOf:null,Ud=Object.getOwnPropertySymbols,Wd="function"==typeof Symbol?Symbol.prototype.toString:null,Dd=Object.prototype.propertyIsEnumerable,Bd=wd.custom,Gd=Bd&&Vd(Bd)?Bd:null;function Md(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function Ld(e){return String(e).replace(/"/g,"&quot;")}function qd(e){return"[object Array]"===Jd(e)}function Vd(e){return"[object Symbol]"===Jd(e)}var zd=Object.prototype.hasOwnProperty||function(e){return e in this};function Hd(e,t){return zd.call(e,t)}function Jd(e){return Td.call(e)}function $d(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function Kd(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Kd(e.slice(0,t.maxStringLength),t)+n}return Md(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,Qd),"single",t)}function Qd(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+t.toString(16).toUpperCase()}function Xd(e){return"Object("+e+")"}function Yd(e){return e+" { ? }"}function Zd(e,t,r,n){return e+" ("+t+") {"+(n?ey(r,n):r.join(", "))+"}"}function ey(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+e.join(","+r)+"\n"+t.prev}function ty(e,t){var r=qd(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=Hd(e,o)?t(e[o],e):""}for(var i in e)Hd(e,i)&&(r&&String(Number(i))===i&&i<e.length||(/[^\w$]/.test(i)?n.push(t(i,e)+": "+t(e[i],e)):n.push(i+": "+t(e[i],e))));if("function"==typeof Ud)for(var a=Ud(e),u=0;u<a.length;u++)Dd.call(e,a[u])&&n.push("["+t(a[u])+"]: "+t(e[a[u]],e));return n}var ry,ny=function(e,t){if("string"!=typeof e||0===e.length)throw new Af("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new Af('"allowMissing" argument must be a boolean');var r=qf(e),n=r.length>0?r[0]:"",o=Vf("%"+n+"%",t),i=o.name,a=o.value,u=!1,c=o.alias;c&&(n=c[0],Df(r,Wf([0,1],c)));for(var s=1,p=!0;s<r.length;s+=1){var l=r[s],f=Gf(l,0,1),d=Gf(l,-1);if(('"'===f||"'"===f||"`"===f||'"'===d||"'"===d||"`"===d)&&f!==d)throw new wf("property names with quotes must have matching quotes");if("constructor"!==l&&p||(u=!0),Uf(Tf,i="%"+(n+="."+l)+"%"))a=Tf[i];else if(null!=a){if(!(l in a)){if(!t)throw new Af("base intrinsic for "+e+" exists, but the property is not available.");return}if(Rf&&s+1>=r.length){var y=Rf(a,l);a=(p=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[l]}else p=Uf(a,l),a=a[l];p&&!u&&(Tf[i]=a)}}return a},oy=function(e,t){var r=gd(e,!!t);return"function"==typeof r&&bd(e,".prototype.")>-1?md(r):r},iy=function e(t,r,n,i){var a=r||{};if(Hd(a,"quoteStyle")&&"single"!==a.quoteStyle&&"double"!==a.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Hd(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!Hd(a,"customInspect")||a.customInspect;if("boolean"!=typeof u)throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(Hd(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return Kd(t,a);if("number"==typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"==typeof t)return String(t)+"n";var c=void 0===a.depth?5:a.depth;if(void 0===n&&(n=0),n>=c&&c>0&&"object"===o(t))return qd(t)?"[Array]":"[Object]";var s=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=Array(e.indent+1).join(" ")}return{base:r,prev:Array(t+1).join(r)}}(a,n);if(void 0===i)i=[];else if($d(i,t)>=0)return"[Circular]";function p(t,r,o){if(r&&(i=i.slice()).push(r),o){var u={depth:a.depth};return Hd(a,"quoteStyle")&&(u.quoteStyle=a.quoteStyle),e(t,u,n+1,i)}return e(t,a,n+1,i)}if("function"==typeof t){var l=function(e){if(e.name)return e.name;var t=Cd.call(Fd.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),f=ty(t,p);return"[Function"+(l?": "+l:" (anonymous)")+"]"+(f.length>0?" { "+f.join(", ")+" }":"")}if(Vd(t)){var d=Wd.call(t);return"object"===o(t)?Xd(d):d}if(function(e){if(!e||"object"!==o(e))return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var y="<"+String(t.nodeName).toLowerCase(),h=t.attributes||[],v=0;v<h.length;v++)y+=" "+h[v].name+"="+Md(Ld(h[v].value),"double",a);return y+=">",t.childNodes&&t.childNodes.length&&(y+="..."),y+="</"+String(t.nodeName).toLowerCase()+">"}if(qd(t)){if(0===t.length)return"[]";var g=ty(t,p);return s&&!function(e){for(var t=0;t<e.length;t++)if($d(e[t],"\n")>=0)return!1;return!0}(g)?"["+ey(g,s)+"]":"[ "+g.join(", ")+" ]"}if(function(e){return"[object Error]"===Jd(e)}(t)){var m=ty(t,p);return 0===m.length?"["+String(t)+"]":"{ ["+String(t)+"] "+m.join(", ")+" }"}if("object"===o(t)&&u){if(Gd&&"function"==typeof t[Gd])return t[Gd]();if("function"==typeof t.inspect)return t.inspect()}if(function(e){if(!xd||!e||"object"!==o(e))return!1;try{xd.call(e);try{kd.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var b=[];return Rd.call(t,(function(e,r){b.push(p(r,t,!0)+" => "+p(e,t))})),Zd("Map",xd.call(t),b,s)}if(function(e){if(!kd||!e||"object"!==o(e))return!1;try{kd.call(e);try{xd.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var w=[];return Od.call(t,(function(e){w.push(p(e,t))})),Zd("Set",kd.call(t),w,s)}if(function(e){if(!jd||!e||"object"!==o(e))return!1;try{jd.call(e,jd);try{Id.call(e,Id)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Yd("WeakMap");if(function(e){if(!Id||!e||"object"!==o(e))return!1;try{Id.call(e,Id);try{jd.call(e,jd)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Yd("WeakSet");if(function(e){return"[object Number]"===Jd(e)}(t))return Xd(p(Number(t)));if(function(e){return"[object BigInt]"===Jd(e)}(t))return Xd(p(_d.call(t)));if(function(e){return"[object Boolean]"===Jd(e)}(t))return Xd(Nd.call(t));if(function(e){return"[object String]"===Jd(e)}(t))return Xd(p(String(t)));if(!function(e){return"[object Date]"===Jd(e)}(t)&&!function(e){return"[object RegExp]"===Jd(e)}(t)){var S=ty(t,p);return 0===S.length?"{}":s?"{"+ey(S,s)+"}":"{ "+S.join(", ")+" }"}return String(t)},ay=ny("%TypeError%"),uy=ny("%WeakMap%",!0),cy=ny("%Map%",!0),sy=oy("WeakMap.prototype.get",!0),py=oy("WeakMap.prototype.set",!0),ly=oy("WeakMap.prototype.has",!0),fy=oy("Map.prototype.get",!0),dy=oy("Map.prototype.set",!0),yy=oy("Map.prototype.has",!0),hy=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},vy=String.prototype.replace,gy=/%20/g,my="RFC3986",by={default:my,formatters:{RFC1738:function(e){return vy.call(e,gy,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:my},wy=by,Sy=Object.prototype.hasOwnProperty,Ay=Array.isArray,xy=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Ry=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r},Py={arrayToObject:Ry,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var i=t[n],a=i.obj[i.prop],u=Object.keys(a),c=0;c<u.length;++c){var s=u[c],p=a[s];"object"===o(p)&&null!==p&&-1===r.indexOf(p)&&(t.push({obj:a,prop:s}),r.push(p))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(Ay(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,n,i){if(0===e.length)return e;var a=e;if("symbol"===o(e)?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===r)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var u="",c=0;c<a.length;++c){var s=a.charCodeAt(c);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||i===wy.RFC1738&&(40===s||41===s)?u+=a.charAt(c):s<128?u+=xy[s]:s<2048?u+=xy[192|s>>6]+xy[128|63&s]:s<55296||s>=57344?u+=xy[224|s>>12]+xy[128|s>>6&63]+xy[128|63&s]:(c+=1,s=65536+((1023&s)<<10|1023&a.charCodeAt(c)),u+=xy[240|s>>18]+xy[128|s>>12&63]+xy[128|s>>6&63]+xy[128|63&s])}return u},isBuffer:function(e){return!(!e||"object"!==o(e))&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(Ay(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!==o(r)){if(Ay(t))t.push(r);else{if(!t||"object"!==o(t))return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!Sy.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!==o(t))return[t].concat(r);var i=t;return Ay(t)&&!Ay(r)&&(i=Ry(t,n)),Ay(t)&&Ay(r)?(r.forEach((function(r,i){if(Sy.call(t,i)){var a=t[i];a&&"object"===o(a)&&r&&"object"===o(r)?t[i]=e(a,r,n):t.push(r)}else t[i]=r})),t):Object.keys(r).reduce((function(t,o){var i=r[o];return Sy.call(t,o)?t[o]=e(t[o],i,n):t[o]=i,t}),i)}},Ey=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new ay("Side channel does not contain "+iy(e))},get:function(n){if(uy&&n&&("object"===o(n)||"function"==typeof n)){if(e)return sy(e,n)}else if(cy){if(t)return fy(t,n)}else if(r)return function(e,t){var r=hy(e,t);return r&&r.value}(r,n)},has:function(n){if(uy&&n&&("object"===o(n)||"function"==typeof n)){if(e)return ly(e,n)}else if(cy){if(t)return yy(t,n)}else if(r)return function(e,t){return!!hy(e,t)}(r,n);return!1},set:function(n,i){uy&&n&&("object"===o(n)||"function"==typeof n)?(e||(e=new uy),py(e,n,i)):cy?(t||(t=new cy),dy(t,n,i)):(r||(r={key:{},next:null}),function(e,t,r){var n=hy(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,i))}};return n},ky=Py,Oy=by,jy=Object.prototype.hasOwnProperty,Iy={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Ny=Array.isArray,Ty=String.prototype.split,Fy=Array.prototype.push,Cy=function(e,t){Fy.apply(e,Ny(t)?t:[t])},_y=Date.prototype.toISOString,Uy=Oy.default,Wy={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:ky.encode,encodeValuesOnly:!1,format:Uy,formatter:Oy.formatters[Uy],indices:!1,serializeDate:function(e){return _y.call(e)},skipNulls:!1,strictNullHandling:!1},Dy={},By=function e(t,r,n,i,a,u,c,s,p,l,f,d,y,h,v){for(var g,m=t,b=v,w=0,S=!1;void 0!==(b=b.get(Dy))&&!S;){var A=b.get(t);if(w+=1,void 0!==A){if(A===w)throw new RangeError("Cyclic object value");S=!0}void 0===b.get(Dy)&&(w=0)}if("function"==typeof c?m=c(r,m):m instanceof Date?m=l(m):"comma"===n&&Ny(m)&&(m=ky.maybeMap(m,(function(e){return e instanceof Date?l(e):e}))),null===m){if(i)return u&&!y?u(r,Wy.encoder,h,"key",f):r;m=""}if("string"==typeof(g=m)||"number"==typeof g||"boolean"==typeof g||"symbol"===o(g)||"bigint"==typeof g||ky.isBuffer(m)){if(u){var x=y?r:u(r,Wy.encoder,h,"key",f);if("comma"===n&&y){for(var R=Ty.call(String(m),","),P="",E=0;E<R.length;++E)P+=(0===E?"":",")+d(u(R[E],Wy.encoder,h,"value",f));return[d(x)+"="+P]}return[d(x)+"="+d(u(m,Wy.encoder,h,"value",f))]}return[d(r)+"="+d(String(m))]}var k,O=[];if(void 0===m)return O;if("comma"===n&&Ny(m))k=[{value:m.length>0?m.join(",")||null:void 0}];else if(Ny(c))k=c;else{var j=Object.keys(m);k=s?j.sort(s):j}for(var I=0;I<k.length;++I){var N=k[I],T="object"===o(N)&&void 0!==N.value?N.value:m[N];if(!a||null!==T){var F=Ny(m)?"function"==typeof n?n(r,N):r:r+(p?"."+N:"["+N+"]");v.set(t,w);var C=Ey();C.set(Dy,v),Cy(O,e(T,F,n,i,a,u,c,s,p,l,f,d,y,h,C))}}return O},Gy=Py,My=Object.prototype.hasOwnProperty,Ly=Array.isArray,qy={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Gy.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Vy=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},zy=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Hy=function(e,t,r,n){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(o),u=a?o.slice(0,a.index):o,c=[];if(u){if(!r.plainObjects&&My.call(Object.prototype,u)&&!r.allowPrototypes)return;c.push(u)}for(var s=0;r.depth>0&&null!==(a=i.exec(o))&&s<r.depth;){if(s+=1,!r.plainObjects&&My.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(a[1])}return a&&c.push("["+o.slice(a.index)+"]"),function(e,t,r,n){for(var o=n?t:zy(t,r),i=e.length-1;i>=0;--i){var a,u=e[i];if("[]"===u&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var c="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,s=parseInt(c,10);r.parseArrays||""!==c?!isNaN(s)&&u!==c&&String(s)===c&&s>=0&&r.parseArrays&&s<=r.arrayLimit?(a=[])[s]=o:"__proto__"!==c&&(a[c]=o):a={0:o}}o=a}return o}(c,t,r,n)}},Jy={formats:by,parse:function(e,t){var r=function(e){if(!e)return qy;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 t=void 0===e.charset?qy.charset:e.charset;return{allowDots:void 0===e.allowDots?qy.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:qy.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:qy.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:qy.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:qy.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:qy.comma,decoder:"function"==typeof e.decoder?e.decoder:qy.decoder,delimiter:"string"==typeof e.delimiter||Gy.isRegExp(e.delimiter)?e.delimiter:qy.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:qy.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:qy.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:qy.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:qy.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:qy.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var n="string"==typeof e?function(e,t){var r,n={},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,a=o.split(t.delimiter,i),u=-1,c=t.charset;if(t.charsetSentinel)for(r=0;r<a.length;++r)0===a[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===a[r]?c="utf-8":"utf8=%26%2310003%3B"===a[r]&&(c="iso-8859-1"),u=r,r=a.length);for(r=0;r<a.length;++r)if(r!==u){var s,p,l=a[r],f=l.indexOf("]="),d=-1===f?l.indexOf("="):f+1;-1===d?(s=t.decoder(l,qy.decoder,c,"key"),p=t.strictNullHandling?null:""):(s=t.decoder(l.slice(0,d),qy.decoder,c,"key"),p=Gy.maybeMap(zy(l.slice(d+1),t),(function(e){return t.decoder(e,qy.decoder,c,"value")}))),p&&t.interpretNumericEntities&&"iso-8859-1"===c&&(p=Vy(p)),l.indexOf("[]=")>-1&&(p=Ly(p)?[p]:p),My.call(n,s)?n[s]=Gy.combine(n[s],p):n[s]=p}return n}(e,r):e,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),a=0;a<i.length;++a){var u=i[a],c=Hy(u,n[u],r,"string"==typeof e);o=Gy.merge(o,c,r)}return!0===r.allowSparse?o:Gy.compact(o)},stringify:function(e,t){var r,n=e,i=function(e){if(!e)return Wy;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||Wy.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 r=Oy.default;if(void 0!==e.format){if(!jy.call(Oy.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=Oy.formatters[r],o=Wy.filter;return("function"==typeof e.filter||Ny(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:Wy.addQueryPrefix,allowDots:void 0===e.allowDots?Wy.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Wy.charsetSentinel,delimiter:void 0===e.delimiter?Wy.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:Wy.encode,encoder:"function"==typeof e.encoder?e.encoder:Wy.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:Wy.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:Wy.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:Wy.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Wy.strictNullHandling}}(t);"function"==typeof i.filter?n=(0,i.filter)("",n):Ny(i.filter)&&(r=i.filter);var a,u=[];if("object"!==o(n)||null===n)return"";a=t&&t.arrayFormat in Iy?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var c=Iy[a];r||(r=Object.keys(n)),i.sort&&r.sort(i.sort);for(var s=Ey(),p=0;p<r.length;++p){var l=r[p];i.skipNulls&&null===n[l]||Cy(u,By(n[l],l,c,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,s))}var f=u.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&"),f.length>0?d+f:""}},$y="function"==typeof btoa,Ky="function"==typeof Buffer,Qy=("function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder?new TextEncoder:void 0),Xy=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),Yy=(ry={},Xy.forEach((function(e,t){return ry[e]=t})),String.fromCharCode.bind(String)),Zy=("function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array),function(e){return e.replace(/=/g,"").replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"}))}),eh=function(e){for(var t,r,n,o,i="",a=e.length%3,u=0;u<e.length;){if((r=e.charCodeAt(u++))>255||(n=e.charCodeAt(u++))>255||(o=e.charCodeAt(u++))>255)throw new TypeError("invalid character found");i+=Xy[(t=r<<16|n<<8|o)>>18&63]+Xy[t>>12&63]+Xy[t>>6&63]+Xy[63&t]}return a?i.slice(0,a-3)+"===".substring(a):i},th=$y?function(e){return btoa(e)}:Ky?function(e){return Buffer.from(e,"binary").toString("base64")}:eh,rh=Ky?function(e){return Buffer.from(e).toString("base64")}:function(e){for(var t=[],r=0,n=e.length;r<n;r+=4096)t.push(Yy.apply(null,e.subarray(r,r+4096)));return th(t.join(""))},nh=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?Yy(192|t>>>6)+Yy(128|63&t):Yy(224|t>>>12&15)+Yy(128|t>>>6&63)+Yy(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return Yy(240|t>>>18&7)+Yy(128|t>>>12&63)+Yy(128|t>>>6&63)+Yy(128|63&t)},oh=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ih=function(e){return e.replace(oh,nh)},ah=Ky?function(e){return Buffer.from(e,"utf8").toString("base64")}:Qy?function(e){return rh(Qy.encode(e))}:function(e){return th(ih(e))},uh=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?Zy(ah(e)):ah(e)},ch=uh,sh=function(){function e(t){var r=t.baseUrl,n=t.auth,o=t.basicAuth,i=t.clientCertAuth,a=t.proxy,c=t.userAgent;u(this,e),this.baseUrl=r,this.auth=n,this.headers=this.buildHeaders({basicAuth:o,userAgent:c}),this.clientCertAuth=i,this.proxy=a,this.requestToken=null}var r,o,i;return s(e,[{key:"build",value:(i=a(regeneratorRuntime.mark((function e(r,o,i,a){var u,c,s,p;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:u=n(n(n({method:r,headers:this.headers,url:"".concat(this.baseUrl).concat(o)},a||{}),t.buildPlatformDependentConfig({clientCertAuth:this.clientCertAuth})),{},{proxy:this.proxy}),e.t0=r,e.next="get"===e.t0?4:"post"===e.t0?16:"put"===e.t0?29:"delete"===e.t0?37:44;break;case 4:if(!((c=this.buildRequestUrl(o,i)).length>4096)){e.next=15;break}return e.t1=n,e.t2=n({},u),e.t3={},e.t4=n(n({},this.headers),{},{"X-HTTP-Method-Override":"GET"}),e.next=12,this.buildData(i);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",n(n({},u),{},{url:c}));case 16:if(!(i instanceof Ks)){e.next=21;break}return e.next=19,this.buildData(i);case 19:return s=e.sent,e.abrupt("return",n(n({},u),{},{headers:"function"==typeof s.getHeaders?n(n({},this.headers),s.getHeaders()):this.headers,data:s}));case 21:return e.t7=n,e.t8=n({},u),e.t9={},e.next=26,this.buildData(i);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=n,e.t13=n({},u),e.t14={},e.next=34,this.buildData(i);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(i);case 41:return e.t19=e.sent,p=e.t17.buildRequestUrl.call(e.t17,e.t18,e.t19),e.abrupt("return",n(n({},u),{},{url:p}));case 44:throw new Error("".concat(r," method is not supported"));case 45:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return i.apply(this,arguments)})},{key:"buildRequestUrl",value:function(e,t){return"".concat(this.baseUrl).concat(e,"?").concat(Jy.stringify(t))}},{key:"buildData",value:(o=a(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.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(r=e.sent,!(t instanceof Ks)){e.next=7;break}return t.append("__REQUEST_TOKEN__",r),e.abrupt("return",t);case 7:return e.abrupt("return",n({__REQUEST_TOKEN__:r},t));case 8:return e.abrupt("return",t);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"buildHeaders",value:function(e){var r=e.basicAuth,o=e.userAgent,i=r?{Authorization:"Basic ".concat(ch("".concat(r.username,":").concat(r.password)))}:{},a=n(n({},t.buildHeaders({userAgent:o})),i);switch(this.auth.type){case"password":return n(n({},a),{},{"X-Cybozu-Authorization":ch("".concat(this.auth.username,":").concat(this.auth.password))});case"apiToken":var u=this.auth.apiToken;return Array.isArray(u)?n(n({},a),{},{"X-Cybozu-API-Token":u.join(",")}):n(n({},a),{},{"X-Cybozu-API-Token":u});case"oAuthToken":return n(n({},a),{},{Authorization:"Bearer ".concat(this.auth.oAuthToken)});default:return n(n({},a),{},{"X-Requested-With":"XMLHttpRequest"})}}},{key:"getRequestToken",value:(r=a(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==this.requestToken){e.next=4;break}return e.next=3,t.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 r.apply(this,arguments)})}]),e}(),ph=H,lh=yr.exports,fh=Date.prototype,dh="Invalid Date",yh="toString",hh=ph(fh.toString),vh=ph(fh.getTime);String(new Date(NaN))!=dh&&lh(fh,yh,(function(){var e=vh(this);return e==e?hh(this):dh}));var gh=H,mh=en.PROPER,bh=yr.exports,wh=Zt,Sh=he,Ah=Fa,xh=O,Rh=_a,Ph="toString",Eh=RegExp.prototype,kh=Eh.toString,Oh=gh(Rh),jh=xh((function(){return"/a/b"!=kh.call({source:"a",flags:"b"})})),Ih=mh&&kh.name!=Ph;(jh||Ih)&&bh(RegExp.prototype,Ph,(function(){var e=wh(this),t=Ah(e.source),r=e.flags;return"/"+t+"/"+Ah(void 0===r&&Sh(Eh,e)&&!("flags"in Eh)?Oh(e):r)}),{unsafe:!0});var Nh,Th=function(e){l(r,e);var t=w(r);function r(e){var n;return u(this,r),(n=t.call(this,e)).name="KintoneAbortSearchError",n.message=e,Object.setPrototypeOf(m(n),r.prototype),n}return s(r)}(v(Error)),Fh=function(e){l(r,e);var t=w(r);function r(e){var n;u(this,r);var o=r.buildErrorResponseDateWithIndex(e),i=o.data,a=o.bulkRequestIndex;return(n=t.call(this,i.message)).name="KintoneRestAPIError",n.id=i.id,n.code=i.code,n.errors=i.errors,n.status=e.status,n.bulkRequestIndex=a,n.headers=e.headers,n.message="[".concat(e.status,"] [").concat(n.code,"] ").concat(n.message," (").concat(n.id,")"),Error.captureStackTrace&&Error.captureStackTrace(m(n),r),Object.setPrototypeOf(m(n),r.prototype),n}return s(r,null,[{key:"findErrorResponseDataWithIndex",value:function(e){for(var t=0;t<e.length;t++){if(0!==Object.keys(e[t]).length)return{data:e[t],bulkRequestIndex:t}}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?r.findErrorResponseDataWithIndex(e.data.results):{data:e.data}}}]),r}(v(Error)),Ch=["data"],_h=function(){function e(t){var r=t.enableAbortSearchError;u(this,e),this.enableAbortSearchError=r}return s(e,[{key:"handle",value:function(e){var t=this;return e.then((function(e){return t.handleSuccessResponse(e)}),(function(e){return t.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 Th(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 t=e.response,r=t.data,o=g(t,Ch);if("string"==typeof r)throw new Error("".concat(o.status,": ").concat(o.statusText));throw new Fh(n({data:r},o))}}]),e}(),Uh=function(e){if("username"in e)return n({type:"password"},e);if("apiToken"in e)return n({type:"apiToken"},e);if("oAuthToken"in e)return n({type:"oAuthToken"},e);try{return t.getDefaultAuth()}catch(e){if(e instanceof Ui)throw new Error("session authentication is not supported in ".concat(e.platform," environment."));throw e}},Wh=function(){function e(){var r,o,i,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u(this,e),Dh(a),this.baseUrl=t.buildBaseUrl(a.baseUrl);var c=Uh(null!==(r=a.auth)&&void 0!==r?r:{}),s=new sh(n(n({},a),{},{baseUrl:this.baseUrl,auth:c})),p=new _h({enableAbortSearchError:null!==(o=null===(i=a.featureFlags)||void 0===i?void 0:i.enableAbortSearchError)&&void 0!==o&&o}),l=new ef({responseHandler:p,requestConfigBuilder:s}),f=a.guestSpaceId;this.bulkRequest_=new Zi(l,f),this.record=new $s(l,this.bulkRequest_,f),this.app=new ya(l,f),this.file=new Qs(l,f)}return s(e,[{key:"getBaseUrl",value:function(){return this.baseUrl}},{key:"bulkRequest",value:function(e){return this.bulkRequest_.send(e)}}],[{key:"version",get:function(){return t.getVersion()}}]),e}(),Dh=function(e){Bh(e.guestSpaceId)},Bh=function(e){if(""===e||null===e)throw new Error("invalid guestSpaceId: got [".concat(e,"]"))};(Nh=Di).readFileFromPath&&(t.readFileFromPath=Nh.readFileFromPath),Nh.getRequestToken&&(t.getRequestToken=Nh.getRequestToken),Nh.getDefaultAuth&&(t.getDefaultAuth=Nh.getDefaultAuth),Nh.buildPlatformDependentConfig&&(t.buildPlatformDependentConfig=Nh.buildPlatformDependentConfig),Nh.buildHeaders&&(t.buildHeaders=Nh.buildHeaders),Nh.buildFormDataValue&&(t.buildFormDataValue=Nh.buildFormDataValue),Nh.buildBaseUrl&&(t.buildBaseUrl=Nh.buildBaseUrl),Nh.getVersion&&(t.getVersion=Nh.getVersion),e.KintoneAbortSearchError=Th,e.KintoneAllRecordsError=qs,e.KintoneRestAPIClient=Wh,e.KintoneRestAPIError=Fh,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).window=e.window||{})}(this,(function(e){"use strict";var t={readFileFromPath:function(){throw new Error("not implemented")},getRequestToken:function(){throw new Error("not implemented")},getDefaultAuth:function(){throw new Error("not implemented")},buildPlatformDependentConfig:function(){throw new Error("not implemented")},buildHeaders:function(){throw new Error("not implemented")},buildFormDataValue:function(){throw new Error("not implemented")},buildBaseUrl:function(){throw new Error("not implemented")},getVersion:function(){throw new Error("not implemented")}};function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,r,n,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void r(e)}u.done?t(s):Promise.resolve(s).then(n,o)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function u(e){i(a,n,o,u,s,"next",e)}function s(e){i(a,n,o,u,s,"throw",e)}u(void 0)}))}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function y(e,t,r){return(y=d()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&h(o,r.prototype),o}).apply(null,arguments)}function v(e){var t="function"==typeof Map?new Map:void 0;return(v=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return y(e,arguments,l(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),h(n,e)})(e)}function g(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function w(e){var t=d();return function(){var r,n=l(e);if(t){var o=l(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return b(this,r)}}function A(e){return function(e){if(Array.isArray(e))return R(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return R(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return R(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var E="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function S(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function P(e){var t=e.default;if("function"==typeof t){var r=function(){return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var O=function(e){return e&&e.Math==Math&&e},x=O("object"==("undefined"==typeof globalThis?"undefined":o(globalThis))&&globalThis)||O("object"==("undefined"==typeof window?"undefined":o(window))&&window)||O("object"==("undefined"==typeof self?"undefined":o(self))&&self)||O("object"==o(E)&&E)||function(){return this}()||Function("return this")(),k={},I=function(e){try{return!!e()}catch(e){return!0}},j=!I((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),T=!I((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),N=T,_=Function.prototype.call,C=N?_.bind(_):function(){return _.apply(_,arguments)},U={},F={}.propertyIsEnumerable,B=Object.getOwnPropertyDescriptor,D=B&&!F.call({1:2},1);U.f=D?function(e){var t=B(this,e);return!!t&&t.enumerable}:F;var L,M,W=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},G=T,q=Function.prototype,z=q.bind,V=q.call,Y=G&&z.bind(V,V),H=G?function(e){return e&&Y(e)}:function(e){return e&&function(){return V.apply(e,arguments)}},$=H,J=$({}.toString),K=$("".slice),Q=function(e){return K(J(e),8,-1)},X=H,Z=I,ee=Q,te=x.Object,re=X("".split),ne=Z((function(){return!te("z").propertyIsEnumerable(0)}))?function(e){return"String"==ee(e)?re(e,""):te(e)}:te,oe=x.TypeError,ie=function(e){if(null==e)throw oe("Can't call method on "+e);return e},ae=ne,ue=ie,se=function(e){return ae(ue(e))},ce=function(e){return"function"==typeof e},fe=ce,pe=function(e){return"object"==o(e)?null!==e:fe(e)},le=x,he=ce,de=function(e){return he(e)?e:void 0},ye=function(e,t){return arguments.length<2?de(le[e]):le[e]&&le[e][t]},ve=H({}.isPrototypeOf),ge=x,me=ye("navigator","userAgent")||"",be=ge.process,we=ge.Deno,Ae=be&&be.versions||we&&we.version,Re=Ae&&Ae.v8;Re&&(M=(L=Re.split("."))[0]>0&&L[0]<4?1:+(L[0]+L[1])),!M&&me&&(!(L=me.match(/Edge\/(\d+)/))||L[1]>=74)&&(L=me.match(/Chrome\/(\d+)/))&&(M=+L[1]);var Ee=M,Se=Ee,Pe=I,Oe=!!Object.getOwnPropertySymbols&&!Pe((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Se&&Se<41})),xe=Oe&&!Symbol.sham&&"symbol"==o(Symbol.iterator),ke=ye,Ie=ce,je=ve,Te=xe,Ne=x.Object,_e=Te?function(e){return"symbol"==o(e)}:function(e){var t=ke("Symbol");return Ie(t)&&je(t.prototype,Ne(e))},Ce=x.String,Ue=ce,Fe=function(e){try{return Ce(e)}catch(e){return"Object"}},Be=x.TypeError,De=function(e){if(Ue(e))return e;throw Be(Fe(e)+" is not a function")},Le=De,Me=function(e,t){var r=e[t];return null==r?void 0:Le(r)},We=C,Ge=ce,qe=pe,ze=x.TypeError,Ve={exports:{}},Ye=x,He=Object.defineProperty,$e=function(e,t){try{He(Ye,e,{value:t,configurable:!0,writable:!0})}catch(r){Ye[e]=t}return t},Je=$e,Ke="__core-js_shared__",Qe=x[Ke]||Je(Ke,{}),Xe=Qe;(Ve.exports=function(e,t){return Xe[e]||(Xe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.22.5",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.5/LICENSE",source:"https://github.com/zloirock/core-js"});var Ze=ie,et=x.Object,tt=function(e){return et(Ze(e))},rt=tt,nt=H({}.hasOwnProperty),ot=Object.hasOwn||function(e,t){return nt(rt(e),t)},it=H,at=0,ut=Math.random(),st=it(1..toString),ct=function(e){return"Symbol("+(void 0===e?"":e)+")_"+st(++at+ut,36)},ft=x,pt=Ve.exports,lt=ot,ht=ct,dt=Oe,yt=xe,vt=pt("wks"),gt=ft.Symbol,mt=gt&&gt.for,bt=yt?gt:gt&&gt.withoutSetter||ht,wt=function(e){if(!lt(vt,e)||!dt&&"string"!=typeof vt[e]){var t="Symbol."+e;dt&&lt(gt,e)?vt[e]=gt[e]:vt[e]=yt&&mt?mt(t):bt(t)}return vt[e]},At=C,Rt=pe,Et=_e,St=Me,Pt=function(e,t){var r,n;if("string"===t&&Ge(r=e.toString)&&!qe(n=We(r,e)))return n;if(Ge(r=e.valueOf)&&!qe(n=We(r,e)))return n;if("string"!==t&&Ge(r=e.toString)&&!qe(n=We(r,e)))return n;throw ze("Can't convert object to primitive value")},Ot=wt,xt=x.TypeError,kt=Ot("toPrimitive"),It=function(e,t){if(!Rt(e)||Et(e))return e;var r,n=St(e,kt);if(n){if(void 0===t&&(t="default"),r=At(n,e,t),!Rt(r)||Et(r))return r;throw xt("Can't convert object to primitive value")}return void 0===t&&(t="number"),Pt(e,t)},jt=It,Tt=_e,Nt=function(e){var t=jt(e,"string");return Tt(t)?t:t+""},_t=pe,Ct=x.document,Ut=_t(Ct)&&_t(Ct.createElement),Ft=function(e){return Ut?Ct.createElement(e):{}},Bt=Ft,Dt=!j&&!I((function(){return 7!=Object.defineProperty(Bt("div"),"a",{get:function(){return 7}}).a})),Lt=j,Mt=C,Wt=U,Gt=W,qt=se,zt=Nt,Vt=ot,Yt=Dt,Ht=Object.getOwnPropertyDescriptor;k.f=Lt?Ht:function(e,t){if(e=qt(e),t=zt(t),Yt)try{return Ht(e,t)}catch(e){}if(Vt(e,t))return Gt(!Mt(Wt.f,e,t),e[t])};var $t={},Jt=j&&I((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Kt=x,Qt=pe,Xt=Kt.String,Zt=Kt.TypeError,er=function(e){if(Qt(e))return e;throw Zt(Xt(e)+" is not an object")},tr=j,rr=Dt,nr=Jt,or=er,ir=Nt,ar=x.TypeError,ur=Object.defineProperty,sr=Object.getOwnPropertyDescriptor,cr="enumerable",fr="configurable",pr="writable";$t.f=tr?nr?function(e,t,r){if(or(e),t=ir(t),or(r),"function"==typeof e&&"prototype"===t&&"value"in r&&pr in r&&!r.writable){var n=sr(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:fr in r?r.configurable:n.configurable,enumerable:cr in r?r.enumerable:n.enumerable,writable:!1})}return ur(e,t,r)}:ur:function(e,t,r){if(or(e),t=ir(t),or(r),rr)try{return ur(e,t,r)}catch(e){}if("get"in r||"set"in r)throw ar("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var lr=$t,hr=W,dr=j?function(e,t,r){return lr.f(e,t,hr(1,r))}:function(e,t,r){return e[t]=r,e},yr={exports:{}},vr=j,gr=ot,mr=Function.prototype,br=vr&&Object.getOwnPropertyDescriptor,wr=gr(mr,"name"),Ar={EXISTS:wr,PROPER:wr&&"something"===function(){}.name,CONFIGURABLE:wr&&(!vr||vr&&br(mr,"name").configurable)},Rr=ce,Er=Qe,Sr=H(Function.toString);Rr(Er.inspectSource)||(Er.inspectSource=function(e){return Sr(e)});var Pr,Or,xr,kr=Er.inspectSource,Ir=ce,jr=kr,Tr=x.WeakMap,Nr=Ir(Tr)&&/native code/.test(jr(Tr)),_r=Ve.exports,Cr=ct,Ur=_r("keys"),Fr=function(e){return Ur[e]||(Ur[e]=Cr(e))},Br={},Dr=Nr,Lr=x,Mr=H,Wr=pe,Gr=dr,qr=ot,zr=Qe,Vr=Fr,Yr=Br,Hr="Object already initialized",$r=Lr.TypeError,Jr=Lr.WeakMap;if(Dr||zr.state){var Kr=zr.state||(zr.state=new Jr),Qr=Mr(Kr.get),Xr=Mr(Kr.has),Zr=Mr(Kr.set);Pr=function(e,t){if(Xr(Kr,e))throw new $r(Hr);return t.facade=e,Zr(Kr,e,t),t},Or=function(e){return Qr(Kr,e)||{}},xr=function(e){return Xr(Kr,e)}}else{var en=Vr("state");Yr[en]=!0,Pr=function(e,t){if(qr(e,en))throw new $r(Hr);return t.facade=e,Gr(e,en,t),t},Or=function(e){return qr(e,en)?e[en]:{}},xr=function(e){return qr(e,en)}}var tn={set:Pr,get:Or,has:xr,enforce:function(e){return xr(e)?Or(e):Pr(e,{})},getterFor:function(e){return function(t){var r;if(!Wr(t)||(r=Or(t)).type!==e)throw $r("Incompatible receiver, "+e+" required");return r}}},rn=I,nn=ce,on=ot,an=j,un=Ar.CONFIGURABLE,sn=kr,cn=tn.enforce,fn=tn.get,pn=Object.defineProperty,ln=an&&!rn((function(){return 8!==pn((function(){}),"length",{value:8}).length})),hn=String(String).split("String"),dn=yr.exports=function(e,t,r){if("Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!on(e,"name")||un&&e.name!==t)&&pn(e,"name",{value:t,configurable:!0}),ln&&r&&on(r,"arity")&&e.length!==r.arity&&pn(e,"length",{value:r.arity}),r&&on(r,"constructor")&&r.constructor){if(an)try{pn(e,"prototype",{writable:!1})}catch(e){}}else e.prototype=void 0;var n=cn(e);return on(n,"source")||(n.source=hn.join("string"==typeof t?t:"")),e};Function.prototype.toString=dn((function(){return nn(this)&&fn(this).source||sn(this)}),"toString");var yn=x,vn=ce,gn=dr,mn=yr.exports,bn=$e,wn=function(e,t,r,n){var o=!!n&&!!n.unsafe,i=!!n&&!!n.enumerable,a=!!n&&!!n.noTargetGet,u=n&&void 0!==n.name?n.name:t;return vn(r)&&mn(r,u,n),e===yn?(i?e[t]=r:bn(t,r),e):(o?!a&&e[t]&&(i=!0):delete e[t],i?e[t]=r:gn(e,t,r),e)},An={},Rn=Math.ceil,En=Math.floor,Sn=function(e){var t=+e;return t!=t||0===t?0:(t>0?En:Rn)(t)},Pn=Sn,On=Math.max,xn=Math.min,kn=function(e,t){var r=Pn(e);return r<0?On(r+t,0):xn(r,t)},In=Sn,jn=Math.min,Tn=function(e){return e>0?jn(In(e),9007199254740991):0},Nn=Tn,_n=function(e){return Nn(e.length)},Cn=se,Un=kn,Fn=_n,Bn=function(e){return function(t,r,n){var o,i=Cn(t),a=Fn(i),u=Un(n,a);if(e&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},Dn={includes:Bn(!0),indexOf:Bn(!1)},Ln=ot,Mn=se,Wn=Dn.indexOf,Gn=Br,qn=H([].push),zn=function(e,t){var r,n=Mn(e),o=0,i=[];for(r in n)!Ln(Gn,r)&&Ln(n,r)&&qn(i,r);for(;t.length>o;)Ln(n,r=t[o++])&&(~Wn(i,r)||qn(i,r));return i},Vn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Yn=zn,Hn=Vn.concat("length","prototype");An.f=Object.getOwnPropertyNames||function(e){return Yn(e,Hn)};var $n={};$n.f=Object.getOwnPropertySymbols;var Jn=ye,Kn=An,Qn=$n,Xn=er,Zn=H([].concat),eo=Jn("Reflect","ownKeys")||function(e){var t=Kn.f(Xn(e)),r=Qn.f;return r?Zn(t,r(e)):t},to=ot,ro=eo,no=k,oo=$t,io=I,ao=ce,uo=/#|\.prototype\./,so=function(e,t){var r=fo[co(e)];return r==lo||r!=po&&(ao(t)?io(t):!!t)},co=so.normalize=function(e){return String(e).replace(uo,".").toLowerCase()},fo=so.data={},po=so.NATIVE="N",lo=so.POLYFILL="P",ho=so,yo=x,vo=k.f,go=dr,mo=wn,bo=$e,wo=function(e,t,r){for(var n=ro(t),o=oo.f,i=no.f,a=0;a<n.length;a++){var u=n[a];to(e,u)||r&&to(r,u)||o(e,u,i(t,u))}},Ao=ho,Ro=function(e,t){var r,n,i,a,u,s=e.target,c=e.global,f=e.stat;if(r=c?yo:f?yo[s]||bo(s,{}):(yo[s]||{}).prototype)for(n in t){if(a=t[n],i=e.noTargetGet?(u=vo(r,n))&&u.value:r[n],!Ao(c?n:s+(f?".":"#")+n,e.forced)&&void 0!==i){if(o(a)==o(i))continue;wo(a,i)}(e.sham||i&&i.sham)&&go(a,"sham",!0),mo(r,n,a,e)}},Eo=Q,So=Array.isArray||function(e){return"Array"==Eo(e)},Po=Nt,Oo=$t,xo=W,ko=function(e,t,r){var n=Po(t);n in e?Oo.f(e,n,xo(0,r)):e[n]=r},Io={};Io[wt("toStringTag")]="z";var jo="[object z]"===String(Io),To=x,No=jo,_o=ce,Co=Q,Uo=wt("toStringTag"),Fo=To.Object,Bo="Arguments"==Co(function(){return arguments}()),Do=No?Co:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Fo(e),Uo))?r:Bo?Co(t):"Object"==(n=Co(t))&&_o(t.callee)?"Arguments":n},Lo=H,Mo=I,Wo=ce,Go=Do,qo=kr,zo=function(){},Vo=[],Yo=ye("Reflect","construct"),Ho=/^\s*(?:class|function)\b/,$o=Lo(Ho.exec),Jo=!Ho.exec(zo),Ko=function(e){if(!Wo(e))return!1;try{return Yo(zo,Vo,e),!0}catch(e){return!1}},Qo=function(e){if(!Wo(e))return!1;switch(Go(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Jo||!!$o(Ho,qo(e))}catch(e){return!0}};Qo.sham=!0;var Xo=!Yo||Mo((function(){var e;return Ko(Ko.call)||!Ko(Object)||!Ko((function(){e=!0}))||e}))?Qo:Ko,Zo=x,ei=So,ti=Xo,ri=pe,ni=wt("species"),oi=Zo.Array,ii=function(e){var t;return ei(e)&&(t=e.constructor,(ti(t)&&(t===oi||ei(t.prototype))||ri(t)&&null===(t=t[ni]))&&(t=void 0)),void 0===t?oi:t},ai=function(e,t){return new(ii(e))(0===t?0:t)},ui=I,si=Ee,ci=wt("species"),fi=function(e){return si>=51||!ui((function(){var t=[];return(t.constructor={})[ci]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},pi=Ro,li=x,hi=I,di=So,yi=pe,vi=tt,gi=_n,mi=ko,bi=ai,wi=fi,Ai=Ee,Ri=wt("isConcatSpreadable"),Ei=9007199254740991,Si="Maximum allowed index exceeded",Pi=li.TypeError,Oi=Ai>=51||!hi((function(){var e=[];return e[Ri]=!1,e.concat()[0]!==e})),xi=wi("concat"),ki=function(e){if(!yi(e))return!1;var t=e[Ri];return void 0!==t?!!t:di(e)};pi({target:"Array",proto:!0,arity:1,forced:!Oi||!xi},{concat:function(e){var t,r,n,o,i,a=vi(this),u=bi(a,0),s=0;for(t=-1,n=arguments.length;t<n;t++)if(ki(i=-1===t?a:arguments[t])){if(s+(o=gi(i))>Ei)throw Pi(Si);for(r=0;r<o;r++,s++)r in i&&mi(u,s,i[r])}else{if(s>=Ei)throw Pi(Si);mi(u,s++,i)}return u.length=s,u}});!function(e){var t=function(e){var t,r=Object.prototype,n=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),a=new I(n||[]);return i._invoke=function(e,t,r){var n=l;return function(o,i){if(n===d)throw new Error("Generator is already running");if(n===y){if("throw"===o)throw i;return T()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=d;var s=p(e,t,r);if("normal"===s.type){if(n=r.done?y:h,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=y,r.method="throw",r.arg=s.arg)}}}(e,r,a),i}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var l="suspendedStart",h="suspendedYield",d="executing",y="completed",v={};function g(){}function m(){}function b(){}var w={};w[a]=function(){return this};var A=Object.getPrototypeOf,R=A&&A(A(j([])));R&&R!==r&&n.call(R,a)&&(w=R);var E=b.prototype=g.prototype=Object.create(w);function S(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function r(i,a,u,s){var c=p(e[i],e,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"===o(l)&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,u,s)}),(function(e){r("throw",e,u,s)})):t.resolve(l).then((function(e){f.value=e,u(f)}),(function(e){return r("throw",e,u,s)}))}s(c.arg)}var i;this._invoke=function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}}function O(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=p(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function j(e){if(e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}return{next:T}}function T(){return{value:t,done:!0}}return m.prototype=E.constructor=b,b.constructor=m,m.displayName=c(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,s,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},S(P.prototype),P.prototype[u]=function(){return this},e.AsyncIterator=P,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new P(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(E),c(E,s,"Generator"),E[a]=function(){return this},E.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=j,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:j(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}}({exports:{}});var Ii=j,ji=Ar.EXISTS,Ti=H,Ni=$t.f,_i=Function.prototype,Ci=Ti(_i.toString),Ui=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Fi=Ti(Ui.exec);Ii&&!ji&&Ni(_i,"name",{configurable:!0,get:function(){try{return Fi(Ui,Ci(this))[1]}catch(e){return""}}});var Bi=x,Di=ce,Li=Bi.String,Mi=Bi.TypeError,Wi=H,Gi=er,qi=function(e){if("object"==o(e)||Di(e))return e;throw Mi("Can't set "+Li(e)+" as a prototype")},zi=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Wi(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return Gi(r),qi(n),t?e(r,n):r.__proto__=n,r}}():void 0);Ro({target:"Object",stat:!0},{setPrototypeOf:zi});var Vi=function(e){p(r,e);var t=w(r);function r(e){var n;u(this,r);var o="This function is not supported in ".concat(e," environment");return n=t.call(this,o),Error.captureStackTrace&&Error.captureStackTrace(m(n),r),n.name="UnsupportedPlatformError",n.platform=e,Object.setPrototypeOf(m(n),r.prototype),n}return c(r)}(v(Error)),Yi=function(){var e=a(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.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===(t=garoon.connect)||void 0===t||null===(r=t.kintone)||void 0===r?void 0:r.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)}}(),Hi=Object.freeze({__proto__:null,readFileFromPath:function(e){throw new Vi("Browser")},getRequestToken:Yi,getDefaultAuth:function(){return{type:"session"}},buildPlatformDependentConfig:function(){return{}},buildHeaders:function(){return{}},buildFormDataValue:function(e){return new Blob([e])},buildBaseUrl:function(e){if(e)return e;var t=location,r=t.host,n=t.protocol;return"".concat(n,"//").concat(r)},getVersion:function(){return"3.0.0"}}),$i=Do,Ji=x.String,Ki=function(e){if("Symbol"===$i(e))throw TypeError("Cannot convert a Symbol value to a string");return Ji(e)},Qi=er,Xi=function(){var e=Qi(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},Zi=I,ea=x.RegExp,ta=Zi((function(){var e=ea("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),ra=ta||Zi((function(){return!ea("a","y").sticky})),na={BROKEN_CARET:ta||Zi((function(){var e=ea("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:ra,UNSUPPORTED_Y:ta},oa={},ia=zn,aa=Vn,ua=Object.keys||function(e){return ia(e,aa)},sa=j,ca=Jt,fa=$t,pa=er,la=se,ha=ua;oa.f=sa&&!ca?Object.defineProperties:function(e,t){pa(e);for(var r,n=la(t),o=ha(t),i=o.length,a=0;i>a;)fa.f(e,r=o[a++],n[r]);return e};var da,ya=ye("document","documentElement"),va=er,ga=oa,ma=Vn,ba=Br,wa=ya,Aa=Ft,Ra=Fr("IE_PROTO"),Ea=function(){},Sa=function(e){return"<script>"+e+"</"+"script>"},Pa=function(e){e.write(Sa("")),e.close();var t=e.parentWindow.Object;return e=null,t},Oa=function(){try{da=new ActiveXObject("htmlfile")}catch(e){}var e,t;Oa="undefined"!=typeof document?document.domain&&da?Pa(da):((t=Aa("iframe")).style.display="none",wa.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Sa("document.F=Object")),e.close(),e.F):Pa(da);for(var r=ma.length;r--;)delete Oa.prototype[ma[r]];return Oa()};ba[Ra]=!0;var xa,ka,Ia=Object.create||function(e,t){var r;return null!==e?(Ea.prototype=va(e),r=new Ea,Ea.prototype=null,r[Ra]=e):r=Oa(),void 0===t?r:ga.f(r,t)},ja=I,Ta=x.RegExp,Na=ja((function(){var e=Ta(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),_a=I,Ca=x.RegExp,Ua=_a((function(){var e=Ca("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Fa=C,Ba=H,Da=Ki,La=Xi,Ma=na,Wa=Ve.exports,Ga=Ia,qa=tn.get,za=Na,Va=Ua,Ya=Wa("native-string-replace",String.prototype.replace),Ha=RegExp.prototype.exec,$a=Ha,Ja=Ba("".charAt),Ka=Ba("".indexOf),Qa=Ba("".replace),Xa=Ba("".slice),Za=(ka=/b*/g,Fa(Ha,xa=/a/,"a"),Fa(Ha,ka,"a"),0!==xa.lastIndex||0!==ka.lastIndex),eu=Ma.BROKEN_CARET,tu=void 0!==/()??/.exec("")[1];(Za||tu||eu||za||Va)&&($a=function(e){var t,r,n,o,i,a,u,s=this,c=qa(s),f=Da(e),p=c.raw;if(p)return p.lastIndex=s.lastIndex,t=Fa($a,p,f),s.lastIndex=p.lastIndex,t;var l=c.groups,h=eu&&s.sticky,d=Fa(La,s),y=s.source,v=0,g=f;if(h&&(d=Qa(d,"y",""),-1===Ka(d,"g")&&(d+="g"),g=Xa(f,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Ja(f,s.lastIndex-1))&&(y="(?: "+y+")",g=" "+g,v++),r=new RegExp("^(?:"+y+")",d)),tu&&(r=new RegExp("^"+y+"$(?!\\s)",d)),Za&&(n=s.lastIndex),o=Fa(Ha,h?r:s,g),h?o?(o.input=Xa(o.input,v),o[0]=Xa(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Za&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),tu&&o&&o.length>1&&Fa(Ya,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&l)for(o.groups=a=Ga(null),i=0;i<l.length;i++)a[(u=l[i])[0]]=o[u[1]];return o});var ru=$a;Ro({target:"RegExp",proto:!0,forced:/./.exec!==ru},{exec:ru});var nu=T,ou=Function.prototype,iu=ou.apply,au=ou.call,uu="object"==("undefined"==typeof Reflect?"undefined":o(Reflect))&&Reflect.apply||(nu?au.bind(iu):function(){return au.apply(iu,arguments)}),su=H,cu=wn,fu=ru,pu=I,lu=wt,hu=dr,du=lu("species"),yu=RegExp.prototype,vu=function(e,t,r,n){var o=lu(e),i=!pu((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!pu((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[du]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!i||!a||r){var u=su(/./[o]),s=t(o,""[e],(function(e,t,r,n,o){var a=su(e),s=t.exec;return s===fu||s===yu.exec?i&&!o?{done:!0,value:u(t,r,n)}:{done:!0,value:a(r,t,n)}:{done:!1}}));cu(String.prototype,e,s[0]),cu(yu,o,s[1])}n&&hu(yu[o],"sham",!0)},gu=H,mu=Sn,bu=Ki,wu=ie,Au=gu("".charAt),Ru=gu("".charCodeAt),Eu=gu("".slice),Su=function(e){return function(t,r){var n,o,i=bu(wu(t)),a=mu(r),u=i.length;return a<0||a>=u?e?"":void 0:(n=Ru(i,a))<55296||n>56319||a+1===u||(o=Ru(i,a+1))<56320||o>57343?e?Au(i,a):n:e?Eu(i,a,a+2):o-56320+(n-55296<<10)+65536}},Pu={codeAt:Su(!1),charAt:Su(!0)}.charAt,Ou=function(e,t,r){return t+(r?Pu(e,t).length:1)},xu=H,ku=tt,Iu=Math.floor,ju=xu("".charAt),Tu=xu("".replace),Nu=xu("".slice),_u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Cu=/\$([$&'`]|\d{1,2})/g,Uu=C,Fu=er,Bu=ce,Du=Q,Lu=ru,Mu=x.TypeError,Wu=function(e,t){var r=e.exec;if(Bu(r)){var n=Uu(r,e,t);return null!==n&&Fu(n),n}if("RegExp"===Du(e))return Uu(Lu,e,t);throw Mu("RegExp#exec called on incompatible receiver")},Gu=uu,qu=C,zu=H,Vu=vu,Yu=I,Hu=er,$u=ce,Ju=Sn,Ku=Tn,Qu=Ki,Xu=ie,Zu=Ou,es=Me,ts=function(e,t,r,n,o,i){var a=r+e.length,u=n.length,s=Cu;return void 0!==o&&(o=ku(o),s=_u),Tu(i,s,(function(i,s){var c;switch(ju(s,0)){case"$":return"$";case"&":return e;case"`":return Nu(t,0,r);case"'":return Nu(t,a);case"<":c=o[Nu(s,1,-1)];break;default:var f=+s;if(0===f)return i;if(f>u){var p=Iu(f/10);return 0===p?i:p<=u?void 0===n[p-1]?ju(s,1):n[p-1]+ju(s,1):i}c=n[f-1]}return void 0===c?"":c}))},rs=Wu,ns=wt("replace"),os=Math.max,is=Math.min,as=zu([].concat),us=zu([].push),ss=zu("".indexOf),cs=zu("".slice),fs="$0"==="a".replace(/./,"$0"),ps=!!/./[ns]&&""===/./[ns]("a","$0");Vu("replace",(function(e,t,r){var n=ps?"$":"$0";return[function(e,r){var n=Xu(this),o=null==e?void 0:es(e,ns);return o?qu(o,e,n,r):qu(t,Qu(n),e,r)},function(e,o){var i=Hu(this),a=Qu(e);if("string"==typeof o&&-1===ss(o,n)&&-1===ss(o,"$<")){var u=r(t,i,a,o);if(u.done)return u.value}var s=$u(o);s||(o=Qu(o));var c=i.global;if(c){var f=i.unicode;i.lastIndex=0}for(var p=[];;){var l=rs(i,a);if(null===l)break;if(us(p,l),!c)break;""===Qu(l[0])&&(i.lastIndex=Zu(a,Ku(i.lastIndex),f))}for(var h,d="",y=0,v=0;v<p.length;v++){for(var g=Qu((l=p[v])[0]),m=os(is(Ju(l.index),a.length),0),b=[],w=1;w<l.length;w++)us(b,void 0===(h=l[w])?h:String(h));var A=l.groups;if(s){var R=as([g],b,m,a);void 0!==A&&us(R,A);var E=Qu(Gu(o,void 0,R))}else E=ts(g,a,m,b,A,o);m>=y&&(d+=cs(a,y,m)+E,y=m+g.length)}return d+cs(a,y)}]}),!!Yu((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!fs||ps);var ls=De,hs=T,ds=H(H.bind),ys=function(e,t){return ls(e),void 0===t?e:hs?ds(e,t):function(){return e.apply(t,arguments)}},vs=ne,gs=tt,ms=_n,bs=ai,ws=H([].push),As=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,c,f,p){for(var l,h,d=gs(s),y=vs(d),v=ys(c,f),g=ms(y),m=0,b=p||bs,w=t?b(s,g):r||a?b(s,0):void 0;g>m;m++)if((u||m in y)&&(h=v(l=y[m],m,d),e))if(t)w[m]=h;else if(h)switch(e){case 3:return!0;case 5:return l;case 6:return m;case 2:ws(w,l)}else switch(e){case 4:return!1;case 7:ws(w,l)}return i?-1:n||o?o:w}},Rs={forEach:As(0),map:As(1),filter:As(2),some:As(3),every:As(4),find:As(5),findIndex:As(6),filterReject:As(7)},Es=Rs.map;Ro({target:"Array",proto:!0,forced:!fi("map")},{map:function(e){return Es(this,e,arguments.length>1?arguments[1]:void 0)}});var Ss=function(e){var t=e.endpointName,r=e.guestSpaceId,n=e.preview,o=void 0!==r?"/guest/".concat(r):"",i=n?"/preview":"";return"/k".concat(o,"/v1").concat(i,"/").concat(t,".json")},Ps=["endpointName"],Os=function(){function e(t,r){u(this,e),this.client=t,this.guestSpaceId=r,this.REQUESTS_LENGTH_LIMIT=20}return c(e,[{key:"send",value:function(e){var t=this,r=e.requests.map((function(e){if("endpointName"in e){var r=e.endpointName,o=g(e,Ps);return n({api:t.buildPathWithGuestSpaceId({endpointName:r})},o)}return e})),o=this.buildPathWithGuestSpaceId({endpointName:"bulkRequest"});return this.client.post(o,{requests:r})}},{key:"buildPathWithGuestSpaceId",value:function(e){return Ss(n(n({},e),{},{guestSpaceId:this.guestSpaceId}))}}]),e}(),xs=["preview"],ks=["preview"],Is=["preview"],js=["preview"],Ts=["preview"],Ns=["preview"],_s=["preview"],Cs=["preview"],Us=["preview"],Fs=["preview"],Bs=["preview"],Ds=["preview"],Ls=["preview"],Ms=["preview"],Ws=function(){function e(t,r){u(this,e),this.client=t,this.guestSpaceId=r}var t;return c(e,[{key:"getFormFields",value:function(e){var t=e.preview,r=g(e,xs),o=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:t});return this.client.get(o,n({},r))}},{key:"addFormFields",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.post(t,e)}},{key:"updateFormFields",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.put(t,e)}},{key:"deleteFormFields",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.delete(t,e)}},{key:"getFormLayout",value:function(e){var t=e.preview,r=g(e,ks),o=this.buildPathWithGuestSpaceId({endpointName:"app/form/layout",preview:t});return this.client.get(o,n({},r))}},{key:"updateFormLayout",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/form/layout",preview:!0});return this.client.put(t,e)}},{key:"getViews",value:function(e){var t=e.preview,r=g(e,Is),n=this.buildPathWithGuestSpaceId({endpointName:"app/views",preview:t});return this.client.get(n,r)}},{key:"updateViews",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/views",preview:!0});return this.client.put(t,e)}},{key:"getApp",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app"});return this.client.get(t,e)}},{key:"getApps",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"apps"});return this.client.get(t,e)}},{key:"addApp",value:(t=a(regeneratorRuntime.mark((function e(t){var r,o,i,a,u,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.name,o=t.space,i=this.buildPathWithGuestSpaceId({endpointName:"app",preview:!0}),!o){e.next=9;break}return a=this.buildPathWithGuestSpaceId({endpointName:"space"}),e.next=6,this.client.get(a,{id:o});case 6:return u=e.sent,s=u.defaultThread,e.abrupt("return",this.client.post(i,n(n({},t),{},{thread:s})));case 9:return e.abrupt("return",this.client.post(i,{name:r}));case 10:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"getAppSettings",value:function(e){var t=e.preview,r=g(e,js),n=this.buildPathWithGuestSpaceId({endpointName:"app/settings",preview:t});return this.client.get(n,r)}},{key:"updateAppSettings",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/settings",preview:!0});return this.client.put(t,e)}},{key:"getProcessManagement",value:function(e){var t=e.preview,r=g(e,Ts),n=this.buildPathWithGuestSpaceId({endpointName:"app/status",preview:t});return this.client.get(n,r)}},{key:"updateProcessManagement",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/status",preview:!0});return this.client.put(t,e)}},{key:"getDeployStatus",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/deploy",preview:!0});return this.client.get(t,e)}},{key:"deployApp",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/deploy",preview:!0});return this.client.post(t,e)}},{key:"getFieldAcl",value:function(e){var t=e.preview,r=g(e,Ns),o=this.buildPathWithGuestSpaceId({endpointName:"field/acl",preview:t});return this.client.get(o,n({},r))}},{key:"updateFieldAcl",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"field/acl",preview:!0});return this.client.put(t,e)}},{key:"getAppAcl",value:function(e){var t=e.preview,r=g(e,_s),o=this.buildPathWithGuestSpaceId({endpointName:"app/acl",preview:t});return this.client.get(o,n({},r))}},{key:"updateAppAcl",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/acl",preview:!0});return this.client.put(t,e)}},{key:"evaluateRecordsAcl",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records/acl/evaluate"});return this.client.get(t,e)}},{key:"getRecordAcl",value:function(e){var t=e.preview,r=g(e,Cs),o=this.buildPathWithGuestSpaceId({endpointName:"record/acl",preview:t});return this.client.get(o,n({},r))}},{key:"updateRecordAcl",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/acl",preview:!0});return this.client.put(t,e)}},{key:"getAppCustomize",value:function(e){var t=e.preview,r=g(e,Us),o=this.buildPathWithGuestSpaceId({endpointName:"app/customize",preview:t});return this.client.get(o,n({},r))}},{key:"updateAppCustomize",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/customize",preview:!0});return this.client.put(t,e)}},{key:"getGeneralNotifications",value:function(e){var t=e.preview,r=g(e,Fs),o=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/general",preview:t});return this.client.get(o,n({},r))}},{key:"updateGeneralNotifications",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/general",preview:!0});return this.client.put(t,e)}},{key:"getPerRecordNotifications",value:function(e){var t=e.preview,r=g(e,Bs),n=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/perRecord",preview:t});return this.client.get(n,r)}},{key:"updatePerRecordNotifications",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/perRecord",preview:!0});return this.client.put(t,e)}},{key:"getReminderNotifications",value:function(e){var t=e.preview,r=g(e,Ds),n=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/reminder",preview:t});return this.client.get(n,r)}},{key:"updateReminderNotifications",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/reminder",preview:!0});return this.client.put(t,e)}},{key:"getReports",value:function(e){var t=e.preview,r=g(e,Ls),n=this.buildPathWithGuestSpaceId({endpointName:"app/reports",preview:t});return this.client.get(n,r)}},{key:"updateReports",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/reports",preview:!0});return this.client.put(t,e)}},{key:"getAppActions",value:function(e){var t=e.preview,r=g(e,Ms),n=this.buildPathWithGuestSpaceId({endpointName:"app/actions",preview:t});return this.client.get(n,r)}},{key:"updateAppActions",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/actions",preview:!0});return this.client.put(t,e)}},{key:"buildPathWithGuestSpaceId",value:function(e){return Ss(n(n({},e),{},{guestSpaceId:this.guestSpaceId}))}}]),e}(),Gs=j,qs=H,zs=C,Vs=I,Ys=ua,Hs=$n,$s=U,Js=tt,Ks=ne,Qs=Object.assign,Xs=Object.defineProperty,Zs=qs([].concat),ec=!Qs||Vs((function(){if(Gs&&1!==Qs({b:1},Qs(Xs({},"a",{enumerable:!0,get:function(){Xs(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=Qs({},e)[r]||Ys(Qs({},t)).join("")!=n}))?function(e,t){for(var r=Js(e),n=arguments.length,o=1,i=Hs.f,a=$s.f;n>o;)for(var u,s=Ks(arguments[o++]),c=i?Zs(Ys(s),i(s)):Ys(s),f=c.length,p=0;f>p;)u=c[p++],Gs&&!zs(a,s,u)||(r[u]=s[u]);return r}:Qs;Ro({target:"Object",stat:!0,arity:2,forced:Object.assign!==ec},{assign:ec});var tc=C,rc=er,nc=Tn,oc=Ki,ic=ie,ac=Me,uc=Ou,sc=Wu;vu("match",(function(e,t,r){return[function(t){var r=ic(this),n=null==t?void 0:ac(t,e);return n?tc(n,t,r):new RegExp(t)[e](oc(r))},function(e){var n=rc(this),o=oc(e),i=r(t,n,o);if(i.done)return i.value;if(!n.global)return sc(n,o);var a=n.unicode;n.lastIndex=0;for(var u,s=[],c=0;null!==(u=sc(n,o));){var f=oc(u[0]);s[c]=f,""===f&&(n.lastIndex=uc(o,nc(n.lastIndex),a)),c++}return 0===c?null:s}]}));var cc=ce,fc=pe,pc=zi,lc=H(1..valueOf),hc=ie,dc=Ki,yc=H("".replace),vc="[\t\n\v\f\r                 \u2028\u2029\ufeff]",gc=RegExp("^"+vc+vc+"*"),mc=RegExp(vc+vc+"*$"),bc=function(e){return function(t){var r=dc(hc(t));return 1&e&&(r=yc(r,gc,"")),2&e&&(r=yc(r,mc,"")),r}},wc={start:bc(1),end:bc(2),trim:bc(3)},Ac=j,Rc=x,Ec=H,Sc=ho,Pc=wn,Oc=ot,xc=function(e,t,r){var n,o;return pc&&cc(n=t.constructor)&&n!==r&&fc(o=n.prototype)&&o!==r.prototype&&pc(e,o),e},kc=ve,Ic=_e,jc=It,Tc=I,Nc=An.f,_c=k.f,Cc=$t.f,Uc=lc,Fc=wc.trim,Bc="Number",Dc=Rc.Number,Lc=Dc.prototype,Mc=Rc.TypeError,Wc=Ec("".slice),Gc=Ec("".charCodeAt),qc=function(e){var t=jc(e,"number");return"bigint"==typeof t?t:zc(t)},zc=function(e){var t,r,n,o,i,a,u,s,c=jc(e,"number");if(Ic(c))throw Mc("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=Fc(c),43===(t=Gc(c,0))||45===t){if(88===(r=Gc(c,2))||120===r)return NaN}else if(48===t){switch(Gc(c,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+c}for(a=(i=Wc(c,2)).length,u=0;u<a;u++)if((s=Gc(i,u))<48||s>o)return NaN;return parseInt(i,n)}return+c};if(Sc(Bc,!Dc(" 0o1")||!Dc("0b1")||Dc("+0x1"))){for(var Vc,Yc=function(e){var t=arguments.length<1?0:Dc(qc(e)),r=this;return kc(Lc,r)&&Tc((function(){Uc(r)}))?xc(Object(t),r,Yc):t},Hc=Ac?Nc(Dc):"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(","),$c=0;Hc.length>$c;$c++)Oc(Dc,Vc=Hc[$c])&&!Oc(Yc,Vc)&&Cc(Yc,Vc,_c(Dc,Vc));Yc.prototype=Lc,Lc.constructor=Yc,Pc(Rc,Bc,Yc,{constructor:!0})}var Jc=I,Kc=function(e,t){var r=[][e];return!!r&&Jc((function(){r.call(null,t||function(){return 1},1)}))},Qc=Ro,Xc=Dn.indexOf,Zc=Kc,ef=H([].indexOf),tf=!!ef&&1/ef([1],1,-0)<0,rf=Zc("indexOf");Qc({target:"Array",proto:!0,forced:tf||!rf},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return tf?ef(this,e,t)||0:Xc(this,e,t)}});var nf=Rs.every;Ro({target:"Array",proto:!0,forced:!Kc("every")},{every:function(e){return nf(this,e,arguments.length>1?arguments[1]:void 0)}});var of=Do,af=jo?{}.toString:function(){return"[object "+of(this)+"]"};jo||wn(Object.prototype,"toString",af,{unsafe:!0}),Ro({target:"Array",stat:!0},{isArray:So});var uf=H([].slice),sf=Ro,cf=x,ff=So,pf=Xo,lf=pe,hf=kn,df=_n,yf=se,vf=ko,gf=wt,mf=uf,bf=fi("slice"),wf=gf("species"),Af=cf.Array,Rf=Math.max;sf({target:"Array",proto:!0,forced:!bf},{slice:function(e,t){var r,n,o,i=yf(this),a=df(i),u=hf(e,a),s=hf(void 0===t?a:t,a);if(ff(i)&&(r=i.constructor,(pf(r)&&(r===Af||ff(r.prototype))||lf(r)&&null===(r=r[wf]))&&(r=void 0),r===Af||void 0===r))return mf(i,u,s);for(n=new(void 0===r?Af:r)(Rf(s-u,0)),o=0;u<s;u++,o++)u in i&&vf(n,o,i[u]);return n.length=o,n}});var Ef=De,Sf=tt,Pf=ne,Of=_n,xf=x.TypeError,kf=function(e){return function(t,r,n,o){Ef(r);var i=Sf(t),a=Pf(i),u=Of(i),s=e?u-1:0,c=e?-1:1;if(n<2)for(;;){if(s in a){o=a[s],s+=c;break}if(s+=c,e?s<0:u<=s)throw xf("Reduce of empty array with no initial value")}for(;e?s>=0:u>s;s+=c)s in a&&(o=r(o,a[s],s,i));return o}},If={left:kf(!1),right:kf(!0)},jf="process"==Q(x.process),Tf=If.left,Nf=Ee,_f=jf;Ro({target:"Array",proto:!0,forced:!Kc("reduce")||!_f&&Nf>79&&Nf<83},{reduce:function(e){var t=arguments.length;return Tf(this,e,t,t>1?arguments[1]:void 0)}});var Cf=tt,Uf=ua;Ro({target:"Object",stat:!0,forced:I((function(){Uf(1)}))},{keys:function(e){return Uf(Cf(e))}});var Ff,Bf=function(e){p(r,e);var t=w(r);function r(e,n,o,i,a){var s;u(this,r);var c=o-n.length,f=r.extractErrorIndex(c,i,a),p=r.buildErrorMessage(c,o,f);return(s=t.call(this,p)).name="KintoneAllRecordsError",s.processedRecordsResult=e,s.unprocessedRecords=n,s.error=i,s.errorIndex=f,s.message=p,Object.setPrototypeOf(m(s),r.prototype),s}return c(r,null,[{key:"parseErrorIndex",value:function(e){var t=Object.keys(e)[0].match(/records\[(\d+)\]/);return t?Number(t[1]):null}},{key:"extractErrorIndex",value:function(e,t,n){if(void 0!==t.bulkRequestIndex&&t.errors){var o=r.parseErrorIndex(t.errors);if(null!==o)return e+t.bulkRequestIndex*n+o}}},{key:"buildErrorMessage",value:function(e,t,r){var n="";return void 0!==r&&(n="An error occurred at records[".concat(r,"]. ")),n+="".concat(e,"/").concat(t," records are processed successfully")}}]),r}(v(Error)),Df=["condition","orderBy","withCursor"],Lf=["fields"],Mf=["condition"],Wf=["condition","orderBy"],Gf=function(){function e(t,r,n){u(this,e),this.client=t,this.bulkRequestClient=r,this.guestSpaceId=n,this.didWarnMaximumOffsetValue=!1}var t,r,o,i,s,p,l,h,d,y,v,m,b,w,R,E,S,P;return c(e,[{key:"getRecord",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.get(t,e)}},{key:"addRecord",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.post(t,e)}},{key:"updateRecord",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.put(t,e)}},{key:"upsertRecord",value:(P=a(regeneratorRuntime.mark((function e(t){var r,n,o,i,a,u,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.app,n=t.updateKey,o=t.record,e.next=3,this.getRecords({app:r,query:"".concat(n.field,' = "').concat(n.value,'"')});case 3:if(i=e.sent,!((a=i.records).length>0)){e.next=13;break}if("__ID__"!==a[0].$id.type){e.next=12;break}return e.next=9,this.updateRecord(t);case 9:return u=e.sent,s=u.revision,e.abrupt("return",{id:a[0].$id.value,revision:s});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:r,record:Object.assign({},o,f({},n.field,{value:n.value}))}));case 14:case"end":return e.stop()}}),e,this)}))),function(e){return P.apply(this,arguments)})},{key:"getRecords",value:(S=a(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.buildPathWithGuestSpaceId({endpointName:"records"}),e.next=3,this.client.get(r,t);case 3:return n=e.sent,this.warnMaximumOffsetValueIfNeeded(t.query),e.abrupt("return",n);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return S.apply(this,arguments)})},{key:"warnMaximumOffsetValueIfNeeded",value:function(e){if(e){var t=e.match(/offset\s+(\d+)/i);!this.didWarnMaximumOffsetValue&&t&&Number(t[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:(E=a(regeneratorRuntime.mark((function e(t){var r,n,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.buildPathWithGuestSpaceId({endpointName:"records"}),e.next=3,this.client.post(r,t);case 3:return n=e.sent,o=n.ids,i=n.revisions,e.abrupt("return",{ids:o,revisions:i,records:o.map((function(e,t){return{id:e,revision:i[t]}}))});case 7:case"end":return e.stop()}}),e,this)}))),function(e){return E.apply(this,arguments)})},{key:"updateRecords",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records"});return this.client.put(t,e)}},{key:"deleteRecords",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records"});return this.client.delete(t,e)}},{key:"createCursor",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.post(t,e)}},{key:"getRecordsByCursor",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.get(t,e)}},{key:"deleteCursor",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.delete(t,e)}},{key:"getAllRecords",value:(R=a(regeneratorRuntime.mark((function e(t){var r,o,i,a,u,s,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.condition,o=t.orderBy,i=t.withCursor,a=void 0===i||i,u=g(t,Df),o){e.next=3;break}return e.abrupt("return",this.getAllRecordsWithId(n(n({},u),{},{condition:r})));case 3:if(!a){e.next=7;break}return s=r?"".concat(r," "):"",c="".concat(s).concat(o?"order by ".concat(o):""),e.abrupt("return",this.getAllRecordsWithCursor(n(n({},u),{},{query:c})));case 7:return e.abrupt("return",this.getAllRecordsWithOffset(n(n({},u),{},{orderBy:o,condition:r})));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return R.apply(this,arguments)})},{key:"getAllRecordsWithId",value:(w=a(regeneratorRuntime.mark((function e(t){var r,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.fields,o=g(t,Lf),(i=r)&&i.length>0&&-1===i.indexOf("$id")&&(i=[].concat(A(i),["$id"])),e.abrupt("return",this.getAllRecordsRecursiveWithId(n(n({},o),{},{fields:i}),"0",[]));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return w.apply(this,arguments)})},{key:"getAllRecordsRecursiveWithId",value:(b=a(regeneratorRuntime.mark((function e(t,r,o){var i,a,u,s,c,f,p,l,h;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=500,a=t.condition,u=g(t,Mf),s=a?"(".concat(a,") and "):"",c="".concat(s,"$id > ").concat(r," order by $id asc limit ").concat(i),e.next=6,this.getRecords(n(n({},u),{},{query:c}));case 6:if(f=e.sent,p=o.concat(f.records),!(f.records.length<i)){e.next=10;break}return e.abrupt("return",p);case 10:if("__ID__"!==(l=f.records[f.records.length-1]).$id.type){e.next=14;break}return h=l.$id.value,e.abrupt("return",this.getAllRecordsRecursiveWithId(t,h,p));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,t,r){return b.apply(this,arguments)})},{key:"getAllRecordsWithOffset",value:(m=a(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAllRecordsRecursiveWithOffset(t,0,[]));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return m.apply(this,arguments)})},{key:"getAllRecordsRecursiveWithOffset",value:(v=a(regeneratorRuntime.mark((function e(t,r,o){var i,a,u,s,c,f,p,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=500,a=t.condition,u=t.orderBy,s=g(t,Wf),c=a?"".concat(a," "):"",f="".concat(c).concat(u?"order by ".concat(u," "):"","limit ").concat(i," offset ").concat(r),e.next=6,this.getRecords(n(n({},s),{},{query:f}));case 6:if(p=e.sent,l=o.concat(p.records),!(p.records.length<i)){e.next=10;break}return e.abrupt("return",l);case 10:return e.abrupt("return",this.getAllRecordsRecursiveWithOffset(t,r+i,l));case 11:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return v.apply(this,arguments)})},{key:"getAllRecordsWithCursor",value:(y=a(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.createCursor(t);case 2:return r=e.sent,n=r.id,e.prev=4,e.next=7,this.getAllRecordsRecursiveByCursor(n,[]);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:n});case 14:throw e.t0;case 15:case"end":return e.stop()}}),e,this,[[4,10]])}))),function(e){return y.apply(this,arguments)})},{key:"getAllRecordsRecursiveByCursor",value:(d=a(regeneratorRuntime.mark((function e(t,r){var n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getRecordsByCursor({id:t});case 2:if(n=e.sent,o=r.concat(n.records),!n.next){e.next=6;break}return e.abrupt("return",this.getAllRecordsRecursiveByCursor(t,o));case 6:return e.abrupt("return",o);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return d.apply(this,arguments)})},{key:"addAllRecords",value:(h=a(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.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(t,t.records.length,[]));case 3:case"end":return e.stop()}}),e,this)}))),function(e){return h.apply(this,arguments)})},{key:"addAllRecordsRecursive",value:(l=a(regeneratorRuntime.mark((function e(t,r,n){var o,i,a,u,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,i=t.app,a=t.records,0!==(u=a.slice(0,o)).length){e.next=5;break}return e.abrupt("return",{records:n});case 5:return e.prev=5,e.next=8,this.addAllRecordsWithBulkRequest({app:i,records:u});case 8:s=e.sent,e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(5),new Bf({records:n},a,r,e.t0,100);case 14:return e.abrupt("return",this.addAllRecordsRecursive({app:i,records:a.slice(o)},r,n.concat(s)));case 15:case"end":return e.stop()}}),e,this,[[5,11]])}))),function(e,t,r){return l.apply(this,arguments)})},{key:"addAllRecordsWithBulkRequest",value:(p=a(regeneratorRuntime.mark((function e(t){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.separateArrayRecursive(100,[],t.records),n=r.map((function(e){return{method:"POST",endpointName:"records",payload:{app:t.app,records:e}}})),e.next=4,this.bulkRequestClient.send({requests:n});case 4:return o=e.sent.results,e.abrupt("return",o.map((function(e){var t=e.ids,r=e.revisions;return t.map((function(e,t){return{id:e,revision:r[t]}}))})).reduce((function(e,t){return e.concat(t)}),[]));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return p.apply(this,arguments)})},{key:"updateAllRecords",value:(s=a(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.updateAllRecordsRecursive(t,t.records.length,[]));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"updateAllRecordsRecursive",value:(i=a(regeneratorRuntime.mark((function e(t,r,n){var o,i,a,u,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,i=t.app,a=t.records,0!==(u=a.slice(0,o)).length){e.next=5;break}return e.abrupt("return",{records:n});case 5:return e.prev=5,e.next=8,this.updateAllRecordsWithBulkRequest({app:i,records:u});case 8:s=e.sent,e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(5),new Bf({records:n},a,r,e.t0,100);case 14:return e.abrupt("return",this.updateAllRecordsRecursive({app:i,records:a.slice(o)},r,n.concat(s)));case 15:case"end":return e.stop()}}),e,this,[[5,11]])}))),function(e,t,r){return i.apply(this,arguments)})},{key:"updateAllRecordsWithBulkRequest",value:(o=a(regeneratorRuntime.mark((function e(t){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.separateArrayRecursive(100,[],t.records),n=r.map((function(e){return{method:"PUT",endpointName:"records",payload:{app:t.app,records:e}}})),e.next=4,this.bulkRequestClient.send({requests:n});case 4:return o=e.sent.results,e.abrupt("return",o.map((function(e){return e.records})).reduce((function(e,t){return e.concat(t)}),[]));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:(r=a(regeneratorRuntime.mark((function e(t,r){var n,o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,o=t.app,i=t.records,0!==(a=i.slice(0,n)).length){e.next=5;break}return e.abrupt("return",{});case 5:return e.prev=5,e.next=8,this.deleteAllRecordsWithBulkRequest({app:o,records:a});case 8:e.next=13;break;case 10:throw e.prev=10,e.t0=e.catch(5),new Bf({},i,r,e.t0,100);case 13:return e.abrupt("return",this.deleteAllRecordsRecursive({app:o,records:i.slice(n)},r));case 14:case"end":return e.stop()}}),e,this,[[5,10]])}))),function(e,t){return r.apply(this,arguments)})},{key:"deleteAllRecordsWithBulkRequest",value:(t=a(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.separateArrayRecursive(100,[],t.records),n=r.map((function(e){return{method:"DELETE",endpointName:"records",payload:{app:t.app,ids:e.map((function(e){return e.id})),revisions:e.map((function(e){return e.revision}))}}})),e.next=4,this.bulkRequestClient.send({requests:n});case 4:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"separateArrayRecursive",value:function(e,t,r){var n=r.slice(0,e);return 0===n.length?t:this.separateArrayRecursive(e,[].concat(A(t),[n]),r.slice(e))}},{key:"addRecordComment",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/comment"});return this.client.post(t,e)}},{key:"deleteRecordComment",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/comment"});return this.client.delete(t,e)}},{key:"getRecordComments",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/comments"});return this.client.get(t,e)}},{key:"updateRecordAssignees",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/assignees"});return this.client.put(t,e)}},{key:"updateRecordStatus",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/status"});return this.client.put(t,e)}},{key:"updateRecordsStatus",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records/status"});return this.client.put(t,e)}},{key:"buildPathWithGuestSpaceId",value:function(e){return Ss(n(n({},e),{},{guestSpaceId:this.guestSpaceId}))}}]),e}(),qf="object"==("undefined"==typeof self?"undefined":o(self))?self.FormData:window.FormData,zf=function(){function e(t,r){u(this,e),this.client=t,this.guestSpaceId=r}var r;return c(e,[{key:"uploadFile",value:(r=a(regeneratorRuntime.mark((function e(r){var n,o,i,a,u,s,c,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.buildPathWithGuestSpaceId({endpointName:"file"}),o=new qf,!("path"in r.file)){e.next=19;break}return e.prev=3,e.next=6,t.readFileFromPath(r.file.path);case 6:i=e.sent,a=i.name,u=i.data,o.append("file",u,a),e.next=17;break;case 12:if(e.prev=12,e.t0=e.catch(3),!(e.t0 instanceof Vi)){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=21;break;case 19:s=r.file,c=s.name,f=s.data,o.append("file",t.buildFormDataValue(f),c);case 21:return e.abrupt("return",this.client.postData(n,o));case 22:case"end":return e.stop()}}),e,this,[[3,12]])}))),function(e){return r.apply(this,arguments)})},{key:"downloadFile",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"file"});return this.client.getData(t,e)}},{key:"buildPathWithGuestSpaceId",value:function(e){return Ss(n(n({},e),{},{guestSpaceId:this.guestSpaceId}))}}]),e}(),Vf={exports:{}},Yf={exports:{}},Hf=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}},$f=Hf,Jf=Object.prototype.toString,Kf=(Ff=Object.create(null),function(e){var t=Jf.call(e);return Ff[t]||(Ff[t]=t.slice(8,-1).toLowerCase())});function Qf(e){return e=e.toLowerCase(),function(t){return Kf(t)===e}}function Xf(e){return Array.isArray(e)}function Zf(e){return void 0===e}var ep=Qf("ArrayBuffer");function tp(e){return null!==e&&"object"===o(e)}function rp(e){if("object"!==Kf(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var np=Qf("Date"),op=Qf("File"),ip=Qf("Blob"),ap=Qf("FileList");function up(e){return"[object Function]"===Jf.call(e)}var sp=Qf("URLSearchParams");function cp(e,t){if(null!=e)if("object"!==o(e)&&(e=[e]),Xf(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}var fp=function(e){return function(t){return e&&t instanceof e}}("undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array)),pp={isArray:Xf,isArrayBuffer:ep,isBuffer:function(e){return null!==e&&!Zf(e)&&null!==e.constructor&&!Zf(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||Jf.call(e)===t||up(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ep(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:tp,isPlainObject:rp,isUndefined:Zf,isDate:np,isFile:op,isBlob:ip,isFunction:up,isStream:function(e){return tp(e)&&up(e.pipe)},isURLSearchParams:sp,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:cp,merge:function e(){var t={};function r(r,n){rp(t[n])&&rp(r)?t[n]=e(t[n],r):rp(r)?t[n]=e({},r):Xf(r)?t[n]=r.slice():t[n]=r}for(var n=0,o=arguments.length;n<o;n++)cp(arguments[n],r);return t},extend:function(e,t,r){return cp(t,(function(t,n){e[n]=r&&"function"==typeof t?$f(t,r):t})),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,t,r,n){e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,r&&Object.assign(e.prototype,r)},toFlatObject:function(e,t,r){var n,o,i,a={};t=t||{};do{for(o=(n=Object.getOwnPropertyNames(e)).length;o-- >0;)a[i=n[o]]||(t[i]=e[i],a[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:Kf,kindOfTest:Qf,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;var n=e.indexOf(t,r);return-1!==n&&n===r},toArray:function(e){if(!e)return null;var t=e.length;if(Zf(t))return null;for(var r=new Array(t);t-- >0;)r[t]=e[t];return r},isTypedArray:fp,isFileList:ap},lp=pp;function hp(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var dp=function(e,t,r){if(!t)return e;var n;if(r)n=r(t);else if(lp.isURLSearchParams(t))n=t.toString();else{var o=[];lp.forEach(t,(function(e,t){null!=e&&(lp.isArray(e)?t+="[]":e=[e],lp.forEach(e,(function(e){lp.isDate(e)?e=e.toISOString():lp.isObject(e)&&(e=JSON.stringify(e)),o.push(hp(t)+"="+hp(e))})))})),n=o.join("&")}if(n){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e},yp=pp;function vp(){this.handlers=[]}vp.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},vp.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},vp.prototype.forEach=function(e){yp.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var gp=vp,mp="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function bp(){throw new Error("setTimeout has not been defined")}function wp(){throw new Error("clearTimeout has not been defined")}var Ap=bp,Rp=wp;function Ep(e){if(Ap===setTimeout)return setTimeout(e,0);if((Ap===bp||!Ap)&&setTimeout)return Ap=setTimeout,setTimeout(e,0);try{return Ap(e,0)}catch(t){try{return Ap.call(null,e,0)}catch(t){return Ap.call(this,e,0)}}}"function"==typeof mp.setTimeout&&(Ap=setTimeout),"function"==typeof mp.clearTimeout&&(Rp=clearTimeout);var Sp,Pp=[],Op=!1,xp=-1;function kp(){Op&&Sp&&(Op=!1,Sp.length?Pp=Sp.concat(Pp):xp=-1,Pp.length&&Ip())}function Ip(){if(!Op){var e=Ep(kp);Op=!0;for(var t=Pp.length;t;){for(Sp=Pp,Pp=[];++xp<t;)Sp&&Sp[xp].run();xp=-1,t=Pp.length}Sp=null,Op=!1,function(e){if(Rp===clearTimeout)return clearTimeout(e);if((Rp===wp||!Rp)&&clearTimeout)return Rp=clearTimeout,clearTimeout(e);try{Rp(e)}catch(t){try{return Rp.call(null,e)}catch(t){return Rp.call(this,e)}}}(e)}}function jp(e,t){this.fun=e,this.array=t}jp.prototype.run=function(){this.fun.apply(null,this.array)};function Tp(){}var Np=Tp,_p=Tp,Cp=Tp,Up=Tp,Fp=Tp,Bp=Tp,Dp=Tp;var Lp=mp.performance||{},Mp=Lp.now||Lp.mozNow||Lp.msNow||Lp.oNow||Lp.webkitNow||function(){return(new Date).getTime()};var Wp=new Date;var Gp,qp,zp={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Pp.push(new jp(e,t)),1!==Pp.length||Op||Ep(Ip)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:Np,addListener:_p,once:Cp,off:Up,removeListener:Fp,removeAllListeners:Bp,emit:Dp,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 t=.001*Mp.call(Lp),r=Math.floor(t),n=Math.floor(t%1*1e9);return e&&(r-=e[0],(n-=e[1])<0&&(r--,n+=1e9)),[r,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Wp)/1e3}},Vp=pp;function Yp(){if(qp)return Gp;qp=1;var e=pp;function t(e,t,r,n,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}e.inherits(t,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 r=t.prototype,n={};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){n[e]={value:e}})),Object.defineProperties(t,n),Object.defineProperty(r,"isAxiosError",{value:!0}),t.from=function(n,o,i,a,u,s){var c=Object.create(r);return e.toFlatObject(n,c,(function(e){return e!==Error.prototype})),t.call(c,n.message,o,i,a,u),c.name=n.name,s&&Object.assign(c,s),c},Gp=t}var Hp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},$p=[],Jp=[],Kp="undefined"!=typeof Uint8Array?Uint8Array:Array,Qp=!1;function Xp(){Qp=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=e.length;t<r;++t)$p[t]=e[t],Jp[e.charCodeAt(t)]=t;Jp["-".charCodeAt(0)]=62,Jp["_".charCodeAt(0)]=63}function Zp(e,t,r){for(var n,o,i=[],a=t;a<r;a+=3)n=(e[a]<<16)+(e[a+1]<<8)+e[a+2],i.push($p[(o=n)>>18&63]+$p[o>>12&63]+$p[o>>6&63]+$p[63&o]);return i.join("")}function el(e){var t;Qp||Xp();for(var r=e.length,n=r%3,o="",i=[],a=16383,u=0,s=r-n;u<s;u+=a)i.push(Zp(e,u,u+a>s?s:u+a));return 1===n?(t=e[r-1],o+=$p[t>>2],o+=$p[t<<4&63],o+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],o+=$p[t>>10],o+=$p[t>>4&63],o+=$p[t<<2&63],o+="="),i.push(o),i.join("")}function tl(e,t,r,n,o){var i,a,u=8*o-n-1,s=(1<<u)-1,c=s>>1,f=-7,p=r?o-1:0,l=r?-1:1,h=e[t+p];for(p+=l,i=h&(1<<-f)-1,h>>=-f,f+=u;f>0;i=256*i+e[t+p],p+=l,f-=8);for(a=i&(1<<-f)-1,i>>=-f,f+=n;f>0;a=256*a+e[t+p],p+=l,f-=8);if(0===i)i=1-c;else{if(i===s)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),i-=c}return(h?-1:1)*a*Math.pow(2,i-n)}function rl(e,t,r,n,o,i){var a,u,s,c=8*i-o-1,f=(1<<c)-1,p=f>>1,l=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,d=n?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,a=f):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),(t+=a+p>=1?l/s:l*Math.pow(2,1-p))*s>=2&&(a++,s/=2),a+p>=f?(u=0,a=f):a+p>=1?(u=(t*s-1)*Math.pow(2,o),a+=p):(u=t*Math.pow(2,p-1)*Math.pow(2,o),a=0));o>=8;e[r+h]=255&u,h+=d,u/=256,o-=8);for(a=a<<o|u,c+=o;c>0;e[r+h]=255&a,h+=d,a/=256,c-=8);e[r+h-d]|=128*y}var nl={}.toString,ol=Array.isArray||function(e){return"[object Array]"==nl.call(e)};function il(){return ul.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function al(e,t){if(il()<t)throw new RangeError("Invalid typed array length");return ul.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=ul.prototype:(null===e&&(e=new ul(t)),e.length=t),e}function ul(e,t,r){if(!(ul.TYPED_ARRAY_SUPPORT||this instanceof ul))return new ul(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return fl(this,e)}return sl(this,e,t,r)}function sl(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);ul.TYPED_ARRAY_SUPPORT?(e=t).__proto__=ul.prototype:e=pl(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!ul.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|dl(t,r),o=(e=al(e,n)).write(t,r);o!==n&&(e=e.slice(0,o));return e}(e,t,r):function(e,t){if(hl(t)){var r=0|ll(t.length);return 0===(e=al(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?al(e,0):pl(e,t);if("Buffer"===t.type&&ol(t.data))return pl(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function cl(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 fl(e,t){if(cl(t),e=al(e,t<0?0:0|ll(t)),!ul.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function pl(e,t){var r=t.length<0?0:0|ll(t.length);e=al(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function ll(e){if(e>=il())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+il().toString(16)+" bytes");return 0|e}function hl(e){return!(null==e||!e._isBuffer)}function dl(e,t){if(hl(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 r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return Hl(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return $l(e).length;default:if(n)return Hl(e).length;t=(""+t).toLowerCase(),n=!0}}function yl(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return jl(this,t,r);case"utf8":case"utf-8":return Ol(this,t,r);case"ascii":return kl(this,t,r);case"latin1":case"binary":return Il(this,t,r);case"base64":return Pl(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Tl(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function vl(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function gl(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=ul.from(t,n)),hl(t))return 0===t.length?-1:ml(e,t,r,n,o);if("number"==typeof t)return t&=255,ul.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):ml(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function ml(e,t,r,n,o){var i,a=1,u=e.length,s=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,u/=2,s/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var f=-1;for(i=r;i<u;i++)if(c(e,i)===c(t,-1===f?0:i-f)){if(-1===f&&(f=i),i-f+1===s)return f*a}else-1!==f&&(i-=i-f),f=-1}else for(r+s>u&&(r=u-s),i=r;i>=0;i--){for(var p=!0,l=0;l<s;l++)if(c(e,i+l)!==c(t,l)){p=!1;break}if(p)return i}return-1}function bl(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var a=0;a<n;++a){var u=parseInt(t.substr(2*a,2),16);if(isNaN(u))return a;e[r+a]=u}return a}function wl(e,t,r,n){return Jl(Hl(t,e.length-r),e,r,n)}function Al(e,t,r,n){return Jl(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function Rl(e,t,r,n){return Al(e,t,r,n)}function El(e,t,r,n){return Jl($l(t),e,r,n)}function Sl(e,t,r,n){return Jl(function(e,t){for(var r,n,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function Pl(e,t,r){return 0===t&&r===e.length?el(e):el(e.slice(t,r))}function Ol(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,a,u,s,c=e[o],f=null,p=c>239?4:c>223?3:c>191?2:1;if(o+p<=r)switch(p){case 1:c<128&&(f=c);break;case 2:128==(192&(i=e[o+1]))&&(s=(31&c)<<6|63&i)>127&&(f=s);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(s=(15&c)<<12|(63&i)<<6|63&a)>2047&&(s<55296||s>57343)&&(f=s);break;case 4:i=e[o+1],a=e[o+2],u=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&u)&&(s=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&u)>65535&&s<1114112&&(f=s)}null===f?(f=65533,p=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),o+=p}return function(e){var t=e.length;if(t<=xl)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=xl));return r}(n)}ul.TYPED_ARRAY_SUPPORT=void 0===mp.TYPED_ARRAY_SUPPORT||mp.TYPED_ARRAY_SUPPORT,ul.poolSize=8192,ul._augment=function(e){return e.__proto__=ul.prototype,e},ul.from=function(e,t,r){return sl(null,e,t,r)},ul.TYPED_ARRAY_SUPPORT&&(ul.prototype.__proto__=Uint8Array.prototype,ul.__proto__=Uint8Array),ul.alloc=function(e,t,r){return function(e,t,r,n){return cl(t),t<=0?al(e,t):void 0!==r?"string"==typeof n?al(e,t).fill(r,n):al(e,t).fill(r):al(e,t)}(null,e,t,r)},ul.allocUnsafe=function(e){return fl(null,e)},ul.allocUnsafeSlow=function(e){return fl(null,e)},ul.isBuffer=function(e){return null!=e&&(!!e._isBuffer||Kl(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&Kl(e.slice(0,0))}(e))},ul.compare=function(e,t){if(!hl(e)||!hl(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},ul.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}},ul.concat=function(e,t){if(!ol(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return ul.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=ul.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var i=e[r];if(!hl(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,o),o+=i.length}return n},ul.byteLength=dl,ul.prototype._isBuffer=!0,ul.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 t=0;t<e;t+=2)vl(this,t,t+1);return this},ul.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 t=0;t<e;t+=4)vl(this,t,t+3),vl(this,t+1,t+2);return this},ul.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 t=0;t<e;t+=8)vl(this,t,t+7),vl(this,t+1,t+6),vl(this,t+2,t+5),vl(this,t+3,t+4);return this},ul.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?Ol(this,0,e):yl.apply(this,arguments)},ul.prototype.equals=function(e){if(!hl(e))throw new TypeError("Argument must be a Buffer");return this===e||0===ul.compare(this,e)},ul.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+">"},ul.prototype.compare=function(e,t,r,n,o){if(!hl(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),u=Math.min(i,a),s=this.slice(n,o),c=e.slice(t,r),f=0;f<u;++f)if(s[f]!==c[f]){i=s[f],a=c[f];break}return i<a?-1:a<i?1:0},ul.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},ul.prototype.indexOf=function(e,t,r){return gl(this,e,t,r,!0)},ul.prototype.lastIndexOf=function(e,t,r){return gl(this,e,t,r,!1)},ul.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return bl(this,e,t,r);case"utf8":case"utf-8":return wl(this,e,t,r);case"ascii":return Al(this,e,t,r);case"latin1":case"binary":return Rl(this,e,t,r);case"base64":return El(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Sl(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},ul.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var xl=4096;function kl(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function Il(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function jl(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i<r;++i)o+=Yl(e[i]);return o}function Tl(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function Nl(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function _l(e,t,r,n,o,i){if(!hl(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function Cl(e,t,r,n){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-r,2);o<i;++o)e[r+o]=(t&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function Ul(e,t,r,n){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-r,4);o<i;++o)e[r+o]=t>>>8*(n?o:3-o)&255}function Fl(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Bl(e,t,r,n,o){return o||Fl(e,0,r,4),rl(e,t,r,n,23,4),r+4}function Dl(e,t,r,n,o){return o||Fl(e,0,r,8),rl(e,t,r,n,52,8),r+8}ul.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),ul.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=ul.prototype;else{var o=t-e;r=new ul(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+e]}return r},ul.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||Nl(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},ul.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||Nl(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},ul.prototype.readUInt8=function(e,t){return t||Nl(e,1,this.length),this[e]},ul.prototype.readUInt16LE=function(e,t){return t||Nl(e,2,this.length),this[e]|this[e+1]<<8},ul.prototype.readUInt16BE=function(e,t){return t||Nl(e,2,this.length),this[e]<<8|this[e+1]},ul.prototype.readUInt32LE=function(e,t){return t||Nl(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},ul.prototype.readUInt32BE=function(e,t){return t||Nl(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},ul.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||Nl(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},ul.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||Nl(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},ul.prototype.readInt8=function(e,t){return t||Nl(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},ul.prototype.readInt16LE=function(e,t){t||Nl(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},ul.prototype.readInt16BE=function(e,t){t||Nl(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},ul.prototype.readInt32LE=function(e,t){return t||Nl(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},ul.prototype.readInt32BE=function(e,t){return t||Nl(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},ul.prototype.readFloatLE=function(e,t){return t||Nl(e,4,this.length),tl(this,e,!0,23,4)},ul.prototype.readFloatBE=function(e,t){return t||Nl(e,4,this.length),tl(this,e,!1,23,4)},ul.prototype.readDoubleLE=function(e,t){return t||Nl(e,8,this.length),tl(this,e,!0,52,8)},ul.prototype.readDoubleBE=function(e,t){return t||Nl(e,8,this.length),tl(this,e,!1,52,8)},ul.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||_l(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},ul.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||_l(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},ul.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||_l(this,e,t,1,255,0),ul.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},ul.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||_l(this,e,t,2,65535,0),ul.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Cl(this,e,t,!0),t+2},ul.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||_l(this,e,t,2,65535,0),ul.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Cl(this,e,t,!1),t+2},ul.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||_l(this,e,t,4,4294967295,0),ul.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Ul(this,e,t,!0),t+4},ul.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||_l(this,e,t,4,4294967295,0),ul.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ul(this,e,t,!1),t+4},ul.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);_l(this,e,t,r,o-1,-o)}var i=0,a=1,u=0;for(this[t]=255&e;++i<r&&(a*=256);)e<0&&0===u&&0!==this[t+i-1]&&(u=1),this[t+i]=(e/a>>0)-u&255;return t+r},ul.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);_l(this,e,t,r,o-1,-o)}var i=r-1,a=1,u=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===u&&0!==this[t+i+1]&&(u=1),this[t+i]=(e/a>>0)-u&255;return t+r},ul.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||_l(this,e,t,1,127,-128),ul.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},ul.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||_l(this,e,t,2,32767,-32768),ul.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Cl(this,e,t,!0),t+2},ul.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||_l(this,e,t,2,32767,-32768),ul.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Cl(this,e,t,!1),t+2},ul.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||_l(this,e,t,4,2147483647,-2147483648),ul.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Ul(this,e,t,!0),t+4},ul.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||_l(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),ul.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ul(this,e,t,!1),t+4},ul.prototype.writeFloatLE=function(e,t,r){return Bl(this,e,t,!0,r)},ul.prototype.writeFloatBE=function(e,t,r){return Bl(this,e,t,!1,r)},ul.prototype.writeDoubleLE=function(e,t,r){return Dl(this,e,t,!0,r)},ul.prototype.writeDoubleBE=function(e,t,r){return Dl(this,e,t,!1,r)},ul.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o,i=n-r;if(this===e&&r<t&&t<n)for(o=i-1;o>=0;--o)e[o+t]=this[o+r];else if(i<1e3||!ul.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+i),t);return i},ul.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!ul.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var a=hl(e)?e:Hl(new ul(e,n).toString()),u=a.length;for(i=0;i<r-t;++i)this[i+t]=a[i%u]}return this};var Ll,Ml,Wl,Gl,ql,zl,Vl=/[^+\/0-9A-Za-z-_]/g;function Yl(e){return e<16?"0"+e.toString(16):e.toString(16)}function Hl(e,t){var r;t=t||1/0;for(var n=e.length,o=null,i=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function $l(e){return function(e){var t,r,n,o,i,a;Qp||Xp();var u=e.length;if(u%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i="="===e[u-2]?2:"="===e[u-1]?1:0,a=new Kp(3*u/4-i),n=i>0?u-4:u;var s=0;for(t=0,r=0;t<n;t+=4,r+=3)o=Jp[e.charCodeAt(t)]<<18|Jp[e.charCodeAt(t+1)]<<12|Jp[e.charCodeAt(t+2)]<<6|Jp[e.charCodeAt(t+3)],a[s++]=o>>16&255,a[s++]=o>>8&255,a[s++]=255&o;return 2===i?(o=Jp[e.charCodeAt(t)]<<2|Jp[e.charCodeAt(t+1)]>>4,a[s++]=255&o):1===i&&(o=Jp[e.charCodeAt(t)]<<10|Jp[e.charCodeAt(t+1)]<<4|Jp[e.charCodeAt(t+2)]>>2,a[s++]=o>>8&255,a[s++]=255&o),a}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(Vl,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Jl(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function Kl(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function Ql(){if(Ml)return Ll;Ml=1;var e=pp;return Ll=function(t,r){r=r||new FormData;var n=[];function i(t){return null===t?"":e.isDate(t)?t.toISOString():e.isArrayBuffer(t)||e.isTypedArray(t)?"function"==typeof Blob?new Blob([t]):ul.from(t):t}return function t(a,u){if(e.isPlainObject(a)||e.isArray(a)){if(-1!==n.indexOf(a))throw Error("Circular reference detected in "+u);n.push(a),e.forEach(a,(function(n,a){if(!e.isUndefined(n)){var s,c=u?u+"."+a:a;if(n&&!u&&"object"===o(n))if(e.endsWith(a,"{}"))n=JSON.stringify(n);else if(e.endsWith(a,"[]")&&(s=e.toArray(n)))return void s.forEach((function(t){!e.isUndefined(t)&&r.append(c,i(t))}));t(n,c)}})),n.pop()}else r.append(u,i(a))}(t),r}}function Xl(){if(Gl)return Wl;Gl=1;var e=Yp();return Wl=function(t,r,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?r(new e("Request failed with status code "+n.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}}function Zl(){if(zl)return ql;zl=1;var e=pp;return ql=e.isStandardBrowserEnv()?{write:function(t,r,n,o,i,a){var u=[];u.push(t+"="+encodeURIComponent(r)),e.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),e.isString(o)&&u.push("path="+o),e.isString(i)&&u.push("domain="+i),!0===a&&u.push("secure"),document.cookie=u.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}}var eh,th,rh,nh,oh,ih,ah,uh,sh,ch,fh,ph,lh=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)},hh=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e},dh=function(e,t){return e&&!lh(t)?hh(e,t):t};function yh(){if(th)return eh;th=1;var e=pp,t=["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 eh=function(r){var n,o,i,a={};return r?(e.forEach(r.split("\n"),(function(r){if(i=r.indexOf(":"),n=e.trim(r.substr(0,i)).toLowerCase(),o=e.trim(r.substr(i+1)),n){if(a[n]&&t.indexOf(n)>=0)return;a[n]="set-cookie"===n?(a[n]?a[n]:[]).concat([o]):a[n]?a[n]+", "+o:o}})),a):a}}function vh(){if(nh)return rh;nh=1;var e=pp;return rh=e.isStandardBrowserEnv()?function(){var t,r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var t=e;return r&&(n.setAttribute("href",t),t=n.href),n.setAttribute("href",t),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(r){var n=e.isString(r)?o(r):r;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}}function gh(){if(ih)return oh;ih=1;var e=Yp();function t(t){e.call(this,null==t?"canceled":t,e.ERR_CANCELED),this.name="CanceledError"}return pp.inherits(t,e,{__CANCEL__:!0}),oh=t}function mh(){return uh?ah:(uh=1,ah=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""})}function bh(){if(ch)return sh;ch=1;var e=pp,t=Xl(),r=Zl(),n=dp,o=dh,i=yh(),a=vh(),u=Hp,s=Yp(),c=gh(),f=mh();return sh=function(p){return new Promise((function(l,h){var d,y=p.data,v=p.headers,g=p.responseType;function m(){p.cancelToken&&p.cancelToken.unsubscribe(d),p.signal&&p.signal.removeEventListener("abort",d)}e.isFormData(y)&&e.isStandardBrowserEnv()&&delete v["Content-Type"];var b=new XMLHttpRequest;if(p.auth){var w=p.auth.username||"",A=p.auth.password?unescape(encodeURIComponent(p.auth.password)):"";v.Authorization="Basic "+btoa(w+":"+A)}var R=o(p.baseURL,p.url);function E(){if(b){var e="getAllResponseHeaders"in b?i(b.getAllResponseHeaders()):null,r={data:g&&"text"!==g&&"json"!==g?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:e,config:p,request:b};t((function(e){l(e),m()}),(function(e){h(e),m()}),r),b=null}}if(b.open(p.method.toUpperCase(),n(R,p.params,p.paramsSerializer),!0),b.timeout=p.timeout,"onloadend"in b?b.onloadend=E:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(E)},b.onabort=function(){b&&(h(new s("Request aborted",s.ECONNABORTED,p,b)),b=null)},b.onerror=function(){h(new s("Network Error",s.ERR_NETWORK,p,b,b)),b=null},b.ontimeout=function(){var e=p.timeout?"timeout of "+p.timeout+"ms exceeded":"timeout exceeded",t=p.transitional||u;p.timeoutErrorMessage&&(e=p.timeoutErrorMessage),h(new s(e,t.clarifyTimeoutError?s.ETIMEDOUT:s.ECONNABORTED,p,b)),b=null},e.isStandardBrowserEnv()){var S=(p.withCredentials||a(R))&&p.xsrfCookieName?r.read(p.xsrfCookieName):void 0;S&&(v[p.xsrfHeaderName]=S)}"setRequestHeader"in b&&e.forEach(v,(function(e,t){void 0===y&&"content-type"===t.toLowerCase()?delete v[t]:b.setRequestHeader(t,e)})),e.isUndefined(p.withCredentials)||(b.withCredentials=!!p.withCredentials),g&&"json"!==g&&(b.responseType=p.responseType),"function"==typeof p.onDownloadProgress&&b.addEventListener("progress",p.onDownloadProgress),"function"==typeof p.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",p.onUploadProgress),(p.cancelToken||p.signal)&&(d=function(e){b&&(h(!e||e&&e.type?new c:e),b.abort(),b=null)},p.cancelToken&&p.cancelToken.subscribe(d),p.signal&&(p.signal.aborted?d():p.signal.addEventListener("abort",d))),y||(y=null);var P=f(R);P&&-1===["http","https","file"].indexOf(P)?h(new s("Unsupported protocol "+P+":",s.ERR_BAD_REQUEST,p)):b.send(y)}))}}var wh=pp,Ah=function(e,t){Vp.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))},Rh=Yp(),Eh=Hp,Sh=Ql(),Ph={"Content-Type":"application/x-www-form-urlencoded"};function Oh(e,t){!wh.isUndefined(e)&&wh.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var xh,kh={transitional:Eh,adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==zp&&"[object process]"===Object.prototype.toString.call(zp))&&(xh=bh()),xh),transformRequest:[function(e,t){if(Ah(t,"Accept"),Ah(t,"Content-Type"),wh.isFormData(e)||wh.isArrayBuffer(e)||wh.isBuffer(e)||wh.isStream(e)||wh.isFile(e)||wh.isBlob(e))return e;if(wh.isArrayBufferView(e))return e.buffer;if(wh.isURLSearchParams(e))return Oh(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var r,n=wh.isObject(e),o=t&&t["Content-Type"];if((r=wh.isFileList(e))||n&&"multipart/form-data"===o){var i=this.env&&this.env.FormData;return Sh(r?{"files[]":e}:e,i&&new i)}return n||"application/json"===o?(Oh(t,"application/json"),function(e,t,r){if(wh.isString(e))try{return(t||JSON.parse)(e),wh.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||kh.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,o=!r&&"json"===this.responseType;if(o||n&&wh.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw Rh.from(e,Rh.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:ph?fh:(ph=1,fh=null)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};wh.forEach(["delete","get","head"],(function(e){kh.headers[e]={}})),wh.forEach(["post","put","patch"],(function(e){kh.headers[e]=wh.merge(Ph)}));var Ih,jh,Th=kh,Nh=pp,_h=Th;function Ch(){return jh?Ih:(jh=1,Ih=function(e){return!(!e||!e.__CANCEL__)})}var Uh=pp,Fh=function(e,t,r){var n=this||_h;return Nh.forEach(r,(function(r){e=r.call(n,e,t)})),e},Bh=Ch(),Dh=Th,Lh=gh();function Mh(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Lh}var Wh,Gh,qh=pp,zh=function(e,t){t=t||{};var r={};function n(e,t){return qh.isPlainObject(e)&&qh.isPlainObject(t)?qh.merge(e,t):qh.isPlainObject(t)?qh.merge({},t):qh.isArray(t)?t.slice():t}function o(r){return qh.isUndefined(t[r])?qh.isUndefined(e[r])?void 0:n(void 0,e[r]):n(e[r],t[r])}function i(e){if(!qh.isUndefined(t[e]))return n(void 0,t[e])}function a(r){return qh.isUndefined(t[r])?qh.isUndefined(e[r])?void 0:n(void 0,e[r]):n(void 0,t[r])}function u(r){return r in t?n(e[r],t[r]):r in e?n(void 0,e[r]):void 0}var s={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u};return qh.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=s[e]||o,n=t(e);qh.isUndefined(n)&&t!==u||(r[e]=n)})),r};function Vh(){return Gh?Wh:(Gh=1,Wh={version:"0.27.2"})}var Yh=Vh().version,Hh=Yp(),$h={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){$h[e]=function(r){return o(r)===e||"a"+(t<1?"n ":" ")+e}}));var Jh={};$h.transitional=function(e,t,r){function n(e,t){return"[Axios v"+Yh+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,o,i){if(!1===e)throw new Hh(n(o," has been removed"+(t?" in "+t:"")),Hh.ERR_DEPRECATED);return t&&!Jh[o]&&(Jh[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}};var Kh,Qh,Xh,Zh,ed,td,rd=pp,nd=dp,od=gp,id=function(e){return Mh(e),e.headers=e.headers||{},e.data=Fh.call(e,e.data,e.headers,e.transformRequest),e.headers=Uh.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),Uh.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||Dh.adapter)(e).then((function(t){return Mh(e),t.data=Fh.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return Bh(t)||(Mh(e),t&&t.response&&(t.response.data=Fh.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},ad=zh,ud=dh,sd={assertOptions:function(e,t,r){if("object"!==o(e))throw new Hh("options must be an object",Hh.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),i=n.length;i-- >0;){var a=n[i],u=t[a];if(u){var s=e[a],c=void 0===s||u(s,a,e);if(!0!==c)throw new Hh("option "+a+" must be "+c,Hh.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new Hh("Unknown option "+a,Hh.ERR_BAD_OPTION)}},validators:$h},cd=sd.validators;function fd(e){this.defaults=e,this.interceptors={request:new od,response:new od}}fd.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=ad(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&sd.assertOptions(r,{silentJSONParsing:cd.transitional(cd.boolean),forcedJSONParsing:cd.transitional(cd.boolean),clarifyTimeoutError:cd.transitional(cd.boolean)},!1);var n=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var i,a=[];if(this.interceptors.response.forEach((function(e){a.push(e.fulfilled,e.rejected)})),!o){var u=[id,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(a),i=Promise.resolve(t);u.length;)i=i.then(u.shift(),u.shift());return i}for(var s=t;n.length;){var c=n.shift(),f=n.shift();try{s=c(s)}catch(e){f(e);break}}try{i=id(s)}catch(e){return Promise.reject(e)}for(;a.length;)i=i.then(a.shift(),a.shift());return i},fd.prototype.getUri=function(e){e=ad(this.defaults,e);var t=ud(e.baseURL,e.url);return nd(t,e.params,e.paramsSerializer)},rd.forEach(["delete","get","head","options"],(function(e){fd.prototype[e]=function(t,r){return this.request(ad(r||{},{method:e,url:t,data:(r||{}).data}))}})),rd.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(ad(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}fd.prototype[e]=t(),fd.prototype[e+"Form"]=t(!0)}));var pd=pp,ld=Hf,hd=fd,dd=zh;var yd=function e(t){var r=new hd(t),n=ld(hd.prototype.request,r);return pd.extend(n,hd.prototype,r),pd.extend(n,r),n.create=function(r){return e(dd(t,r))},n}(Th);yd.Axios=hd,yd.CanceledError=gh(),yd.CancelToken=function(){if(Qh)return Kh;Qh=1;var e=gh();function t(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var r;this.promise=new Promise((function(e){r=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},t((function(t){n.reason||(n.reason=new e(t),r(n.reason))}))}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},t.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},t.source=function(){var e;return{token:new t((function(t){e=t})),cancel:e}},Kh=t}(),yd.isCancel=Ch(),yd.VERSION=Vh().version,yd.toFormData=Ql(),yd.AxiosError=Yp(),yd.Cancel=yd.CanceledError,yd.all=function(e){return Promise.all(e)},yd.spread=Zh?Xh:(Zh=1,Xh=function(e){return function(t){return e.apply(null,t)}}),yd.isAxiosError=function(){if(td)return ed;td=1;var e=pp;return ed=function(t){return e.isObject(t)&&!0===t.isAxiosError}}(),Yf.exports=yd,Yf.exports.default=yd,function(e){e.exports=Yf.exports}(Vf);var vd=S(Vf.exports),gd=function(){function e(t){var r=t.responseHandler,n=t.requestConfigBuilder;u(this,e),this.responseHandler=r,this.requestConfigBuilder=n}var t,r,o,i,s,f;return c(e,[{key:"get",value:(f=a(regeneratorRuntime.mark((function e(t,r){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("get",t,r);case 2:return n=e.sent,e.next=5,this.sendRequest(n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return f.apply(this,arguments)})},{key:"getData",value:(s=a(regeneratorRuntime.mark((function e(t,r){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("get",t,r,{responseType:"arraybuffer"});case 2:return n=e.sent,e.next=5,this.sendRequest(n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return s.apply(this,arguments)})},{key:"post",value:(i=a(regeneratorRuntime.mark((function e(t,r){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("post",t,r);case 2:return n=e.sent,e.next=5,this.sendRequest(n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"postData",value:(o=a(regeneratorRuntime.mark((function e(t,r){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("post",t,r);case 2:return n=e.sent,e.next=5,this.sendRequest(n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return o.apply(this,arguments)})},{key:"put",value:(r=a(regeneratorRuntime.mark((function e(t,r){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("put",t,r);case 2:return n=e.sent,e.next=5,this.sendRequest(n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"delete",value:(t=a(regeneratorRuntime.mark((function e(t,r){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("delete",t,r);case 2:return n=e.sent,e.next=5,this.sendRequest(n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,r){return t.apply(this,arguments)})},{key:"sendRequest",value:function(e){return this.responseHandler.handle(vd(n(n({},e),{},{maxBodyLength:1/0,maxContentLength:1/0})))}}]),e}(),md=Ro,bd=ne,wd=se,Ad=Kc,Rd=H([].join),Ed=bd!=Object,Sd=Ad("join",",");md({target:"Array",proto:!0,forced:Ed||!Sd},{join:function(e){return Rd(wd(this),void 0===e?",":e)}});var Pd,Od=E.Symbol,xd=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"===o(Symbol.iterator))return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=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 n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0},kd=function(){return"function"==typeof Od&&("function"==typeof Symbol&&("symbol"===o(Od("foo"))&&("symbol"===o(Symbol("bar"))&&xd())))},Id="Function.prototype.bind called on incompatible ",jd=Array.prototype.slice,Td=Object.prototype.toString,Nd="[object Function]",_d=function(e){var t=this;if("function"!=typeof t||Td.call(t)!==Nd)throw new TypeError(Id+t);for(var r,n=jd.call(arguments,1),o=function(){if(this instanceof r){var o=t.apply(this,n.concat(jd.call(arguments)));return Object(o)===o?o:this}return t.apply(e,n.concat(jd.call(arguments)))},i=Math.max(0,t.length-n.length),a=[],u=0;u<i;u++)a.push("$"+u);if(r=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(o),t.prototype){var s=function(){};s.prototype=t.prototype,r.prototype=new s,s.prototype=null}return r},Cd=Function.prototype.bind||_d,Ud=Cd.call(Function.call,Object.prototype.hasOwnProperty),Fd=SyntaxError,Bd=Function,Dd=TypeError,Ld=function(e){try{return Bd('"use strict"; return ('+e+").constructor;")()}catch(e){}},Md=Object.getOwnPropertyDescriptor;if(Md)try{Md({},"")}catch(e){Md=null}var Wd,Gd=function(){throw new Dd},qd=Md?function(){try{return Gd}catch(e){try{return Md(arguments,"callee").get}catch(e){return Gd}}}():Gd,zd=kd(),Vd=Object.getPrototypeOf||function(e){return e.__proto__},Yd={},Hd="undefined"==typeof Uint8Array?Pd:Vd(Uint8Array),$d={"%AggregateError%":"undefined"==typeof AggregateError?Pd:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?Pd:ArrayBuffer,"%ArrayIteratorPrototype%":zd?Vd([][Symbol.iterator]()):Pd,"%AsyncFromSyncIteratorPrototype%":Pd,"%AsyncFunction%":Yd,"%AsyncGenerator%":Yd,"%AsyncGeneratorFunction%":Yd,"%AsyncIteratorPrototype%":Yd,"%Atomics%":"undefined"==typeof Atomics?Pd:Atomics,"%BigInt%":"undefined"==typeof BigInt?Pd:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?Pd:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?Pd:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?Pd:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?Pd:FinalizationRegistry,"%Function%":Bd,"%GeneratorFunction%":Yd,"%Int8Array%":"undefined"==typeof Int8Array?Pd:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?Pd:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?Pd:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":zd?Vd(Vd([][Symbol.iterator]())):Pd,"%JSON%":"object"===("undefined"==typeof JSON?"undefined":o(JSON))?JSON:Pd,"%Map%":"undefined"==typeof Map?Pd:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&zd?Vd((new Map)[Symbol.iterator]()):Pd,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?Pd:Promise,"%Proxy%":"undefined"==typeof Proxy?Pd:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?Pd:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?Pd:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&zd?Vd((new Set)[Symbol.iterator]()):Pd,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Pd:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":zd?Vd(""[Symbol.iterator]()):Pd,"%Symbol%":zd?Symbol:Pd,"%SyntaxError%":Fd,"%ThrowTypeError%":qd,"%TypedArray%":Hd,"%TypeError%":Dd,"%Uint8Array%":"undefined"==typeof Uint8Array?Pd:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Pd:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?Pd:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?Pd:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?Pd:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?Pd:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?Pd:WeakSet},Jd=function e(t){var r;if("%AsyncFunction%"===t)r=Ld("async function () {}");else if("%GeneratorFunction%"===t)r=Ld("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=Ld("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(r=Vd(o.prototype))}return $d[t]=r,r},Kd={"%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"]},Qd=Cd,Xd=Ud,Zd=Qd.call(Function.call,Array.prototype.concat),ey=Qd.call(Function.apply,Array.prototype.splice),ty=Qd.call(Function.call,String.prototype.replace),ry=Qd.call(Function.call,String.prototype.slice),ny=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,oy=/\\(\\)?/g,iy=function(e){var t=ry(e,0,1),r=ry(e,-1);if("%"===t&&"%"!==r)throw new Fd("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new Fd("invalid intrinsic syntax, expected opening `%`");var n=[];return ty(e,ny,(function(e,t,r,o){n[n.length]=r?ty(o,oy,"$1"):t||e})),n},ay=function(e,t){var r,n=e;if(Xd(Kd,n)&&(n="%"+(r=Kd[n])[0]+"%"),Xd($d,n)){var o=$d[n];if(o===Yd&&(o=Jd(n)),void 0===o&&!t)throw new Dd("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new Fd("intrinsic "+e+" does not exist!")},uy=SyntaxError,sy=Function,cy=TypeError,fy=function(e){try{return Function('"use strict"; return ('+e+").constructor;")()}catch(e){}},py=Object.getOwnPropertyDescriptor;if(py)try{py({},"")}catch(e){py=null}var ly=function(){throw new cy},hy=py?function(){try{return ly}catch(e){try{return py(arguments,"callee").get}catch(e){return ly}}}():ly,dy=kd(),yy=Object.getPrototypeOf||function(e){return e.__proto__},vy=fy("async function* () {}"),gy=vy?vy.prototype:Wd,my=gy?gy.prototype:Wd,by="undefined"==typeof Uint8Array?Wd:yy(Uint8Array),wy={"%AggregateError%":"undefined"==typeof AggregateError?Wd:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?Wd:ArrayBuffer,"%ArrayIteratorPrototype%":dy?yy([][Symbol.iterator]()):Wd,"%AsyncFromSyncIteratorPrototype%":Wd,"%AsyncFunction%":fy("async function () {}"),"%AsyncGenerator%":gy,"%AsyncGeneratorFunction%":vy,"%AsyncIteratorPrototype%":my?yy(my):Wd,"%Atomics%":"undefined"==typeof Atomics?Wd:Atomics,"%BigInt%":"undefined"==typeof BigInt?Wd:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?Wd:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?Wd:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?Wd:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?Wd:FinalizationRegistry,"%Function%":sy,"%GeneratorFunction%":fy("function* () {}"),"%Int8Array%":"undefined"==typeof Int8Array?Wd:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?Wd:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?Wd:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":dy?yy(yy([][Symbol.iterator]())):Wd,"%JSON%":"object"===("undefined"==typeof JSON?"undefined":o(JSON))?JSON:Wd,"%Map%":"undefined"==typeof Map?Wd:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&dy?yy((new Map)[Symbol.iterator]()):Wd,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?Wd:Promise,"%Proxy%":"undefined"==typeof Proxy?Wd:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?Wd:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?Wd:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&dy?yy((new Set)[Symbol.iterator]()):Wd,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Wd:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":dy?yy(""[Symbol.iterator]()):Wd,"%Symbol%":dy?Symbol:Wd,"%SyntaxError%":uy,"%ThrowTypeError%":hy,"%TypedArray%":by,"%TypeError%":cy,"%Uint8Array%":"undefined"==typeof Uint8Array?Wd:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Wd:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?Wd:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?Wd:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?Wd:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?Wd:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?Wd:WeakSet},Ay={"%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"]},Ry=Cd,Ey=Ud,Sy=Ry.call(Function.call,Array.prototype.concat),Py=Ry.call(Function.apply,Array.prototype.splice),Oy=Ry.call(Function.call,String.prototype.replace),xy=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ky=/\\(\\)?/g,Iy=function(e){var t=[];return Oy(e,xy,(function(e,r,n,o){t[t.length]=n?Oy(o,ky,"$1"):r||e})),t},jy=function(e,t){var r,n=e;if(Ey(Ay,n)&&(n="%"+(r=Ay[n])[0]+"%"),Ey(wy,n)){var o=wy[n];if(void 0===o&&!t)throw new cy("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new uy("intrinsic "+e+" does not exist!")},Ty=function(e,t){if("string"!=typeof e||0===e.length)throw new cy("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new cy('"allowMissing" argument must be a boolean');var r=Iy(e),n=r.length>0?r[0]:"",o=jy("%"+n+"%",t),i=o.name,a=o.value,u=!1,s=o.alias;s&&(n=s[0],Py(r,Sy([0,1],s)));for(var c=1,f=!0;c<r.length;c+=1){var p=r[c];if("constructor"!==p&&f||(u=!0),Ey(wy,i="%"+(n+="."+p)+"%"))a=wy[i];else if(null!=a){if(py&&c+1>=r.length){var l=py(a,p);if(f=!!l,!t&&!(p in a))throw new cy("base intrinsic for "+e+" exists, but the property is not available.");a=f&&"get"in l&&!("originalValue"in l.get)?l.get:a[p]}else f=Ey(a,p),a=a[p];f&&!u&&(wy[i]=a)}}return a},Ny={exports:{}};!function(e){var t=Cd,r=Ty,n=r("%Function.prototype.apply%"),o=r("%Function.prototype.call%"),i=r("%Reflect.apply%",!0)||t.call(o,n),a=r("%Object.defineProperty%",!0);if(a)try{a({},"a",{value:1})}catch(e){a=null}e.exports=function(){return i(t,o,arguments)};var u=function(){return i(t,n,arguments)};a?a(e.exports,"apply",{value:u}):e.exports.apply=u}(Ny);var _y=Ty,Cy=Ny.exports,Uy=Cy(_y("String.prototype.indexOf")),Fy=P(Object.freeze({__proto__:null,default:{}})),By="function"==typeof Map&&Map.prototype,Dy=Object.getOwnPropertyDescriptor&&By?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ly=By&&Dy&&"function"==typeof Dy.get?Dy.get:null,My=By&&Map.prototype.forEach,Wy="function"==typeof Set&&Set.prototype,Gy=Object.getOwnPropertyDescriptor&&Wy?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,qy=Wy&&Gy&&"function"==typeof Gy.get?Gy.get:null,zy=Wy&&Set.prototype.forEach,Vy="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Yy="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Hy=Boolean.prototype.valueOf,$y=Object.prototype.toString,Jy=Function.prototype.toString,Ky=String.prototype.match,Qy="function"==typeof BigInt?BigInt.prototype.valueOf:null,Xy=Object.getOwnPropertySymbols,Zy="function"==typeof Symbol?Symbol.prototype.toString:null,ev=Object.prototype.propertyIsEnumerable,tv=Fy.custom,rv=tv&&av(tv)?tv:null;function nv(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function ov(e){return String(e).replace(/"/g,"&quot;")}function iv(e){return"[object Array]"===cv(e)}function av(e){return"[object Symbol]"===cv(e)}var uv=Object.prototype.hasOwnProperty||function(e){return e in this};function sv(e,t){return uv.call(e,t)}function cv(e){return $y.call(e)}function fv(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function pv(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return pv(e.slice(0,t.maxStringLength),t)+n}return nv(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,lv),"single",t)}function lv(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+t.toString(16).toUpperCase()}function hv(e){return"Object("+e+")"}function dv(e){return e+" { ? }"}function yv(e,t,r,n){return e+" ("+t+") {"+(n?vv(r,n):r.join(", "))+"}"}function vv(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+e.join(","+r)+"\n"+t.prev}function gv(e,t){var r=iv(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=sv(e,o)?t(e[o],e):""}for(var i in e)sv(e,i)&&(r&&String(Number(i))===i&&i<e.length||(/[^\w$]/.test(i)?n.push(t(i,e)+": "+t(e[i],e)):n.push(i+": "+t(e[i],e))));if("function"==typeof Xy)for(var a=Xy(e),u=0;u<a.length;u++)ev.call(e,a[u])&&n.push("["+t(a[u])+"]: "+t(e[a[u]],e));return n}var mv,bv=function(e,t){if("string"!=typeof e||0===e.length)throw new Dd("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new Dd('"allowMissing" argument must be a boolean');var r=iy(e),n=r.length>0?r[0]:"",o=ay("%"+n+"%",t),i=o.name,a=o.value,u=!1,s=o.alias;s&&(n=s[0],ey(r,Zd([0,1],s)));for(var c=1,f=!0;c<r.length;c+=1){var p=r[c],l=ry(p,0,1),h=ry(p,-1);if(('"'===l||"'"===l||"`"===l||'"'===h||"'"===h||"`"===h)&&l!==h)throw new Fd("property names with quotes must have matching quotes");if("constructor"!==p&&f||(u=!0),Xd($d,i="%"+(n+="."+p)+"%"))a=$d[i];else if(null!=a){if(!(p in a)){if(!t)throw new Dd("base intrinsic for "+e+" exists, but the property is not available.");return}if(Md&&c+1>=r.length){var d=Md(a,p);a=(f=!!d)&&"get"in d&&!("originalValue"in d.get)?d.get:a[p]}else f=Xd(a,p),a=a[p];f&&!u&&($d[i]=a)}}return a},wv=function(e,t){var r=_y(e,!!t);return"function"==typeof r&&Uy(e,".prototype.")>-1?Cy(r):r},Av=function e(t,r,n,i){var a=r||{};if(sv(a,"quoteStyle")&&"single"!==a.quoteStyle&&"double"!==a.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(sv(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!sv(a,"customInspect")||a.customInspect;if("boolean"!=typeof u)throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(sv(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return pv(t,a);if("number"==typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"==typeof t)return String(t)+"n";var s=void 0===a.depth?5:a.depth;if(void 0===n&&(n=0),n>=s&&s>0&&"object"===o(t))return iv(t)?"[Array]":"[Object]";var c=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=Array(e.indent+1).join(" ")}return{base:r,prev:Array(t+1).join(r)}}(a,n);if(void 0===i)i=[];else if(fv(i,t)>=0)return"[Circular]";function f(t,r,o){if(r&&(i=i.slice()).push(r),o){var u={depth:a.depth};return sv(a,"quoteStyle")&&(u.quoteStyle=a.quoteStyle),e(t,u,n+1,i)}return e(t,a,n+1,i)}if("function"==typeof t){var p=function(e){if(e.name)return e.name;var t=Ky.call(Jy.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),l=gv(t,f);return"[Function"+(p?": "+p:" (anonymous)")+"]"+(l.length>0?" { "+l.join(", ")+" }":"")}if(av(t)){var h=Zy.call(t);return"object"===o(t)?hv(h):h}if(function(e){if(!e||"object"!==o(e))return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var d="<"+String(t.nodeName).toLowerCase(),y=t.attributes||[],v=0;v<y.length;v++)d+=" "+y[v].name+"="+nv(ov(y[v].value),"double",a);return d+=">",t.childNodes&&t.childNodes.length&&(d+="..."),d+="</"+String(t.nodeName).toLowerCase()+">"}if(iv(t)){if(0===t.length)return"[]";var g=gv(t,f);return c&&!function(e){for(var t=0;t<e.length;t++)if(fv(e[t],"\n")>=0)return!1;return!0}(g)?"["+vv(g,c)+"]":"[ "+g.join(", ")+" ]"}if(function(e){return"[object Error]"===cv(e)}(t)){var m=gv(t,f);return 0===m.length?"["+String(t)+"]":"{ ["+String(t)+"] "+m.join(", ")+" }"}if("object"===o(t)&&u){if(rv&&"function"==typeof t[rv])return t[rv]();if("function"==typeof t.inspect)return t.inspect()}if(function(e){if(!Ly||!e||"object"!==o(e))return!1;try{Ly.call(e);try{qy.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var b=[];return My.call(t,(function(e,r){b.push(f(r,t,!0)+" => "+f(e,t))})),yv("Map",Ly.call(t),b,c)}if(function(e){if(!qy||!e||"object"!==o(e))return!1;try{qy.call(e);try{Ly.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var w=[];return zy.call(t,(function(e){w.push(f(e,t))})),yv("Set",qy.call(t),w,c)}if(function(e){if(!Vy||!e||"object"!==o(e))return!1;try{Vy.call(e,Vy);try{Yy.call(e,Yy)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return dv("WeakMap");if(function(e){if(!Yy||!e||"object"!==o(e))return!1;try{Yy.call(e,Yy);try{Vy.call(e,Vy)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return dv("WeakSet");if(function(e){return"[object Number]"===cv(e)}(t))return hv(f(Number(t)));if(function(e){return"[object BigInt]"===cv(e)}(t))return hv(f(Qy.call(t)));if(function(e){return"[object Boolean]"===cv(e)}(t))return hv(Hy.call(t));if(function(e){return"[object String]"===cv(e)}(t))return hv(f(String(t)));if(!function(e){return"[object Date]"===cv(e)}(t)&&!function(e){return"[object RegExp]"===cv(e)}(t)){var A=gv(t,f);return 0===A.length?"{}":c?"{"+vv(A,c)+"}":"{ "+A.join(", ")+" }"}return String(t)},Rv=bv("%TypeError%"),Ev=bv("%WeakMap%",!0),Sv=bv("%Map%",!0),Pv=wv("WeakMap.prototype.get",!0),Ov=wv("WeakMap.prototype.set",!0),xv=wv("WeakMap.prototype.has",!0),kv=wv("Map.prototype.get",!0),Iv=wv("Map.prototype.set",!0),jv=wv("Map.prototype.has",!0),Tv=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},Nv=String.prototype.replace,_v=/%20/g,Cv="RFC3986",Uv={default:Cv,formatters:{RFC1738:function(e){return Nv.call(e,_v,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:Cv},Fv=Uv,Bv=Object.prototype.hasOwnProperty,Dv=Array.isArray,Lv=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Mv=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r},Wv={arrayToObject:Mv,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var i=t[n],a=i.obj[i.prop],u=Object.keys(a),s=0;s<u.length;++s){var c=u[s],f=a[c];"object"===o(f)&&null!==f&&-1===r.indexOf(f)&&(t.push({obj:a,prop:c}),r.push(f))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(Dv(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,n,i){if(0===e.length)return e;var a=e;if("symbol"===o(e)?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===r)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var u="",s=0;s<a.length;++s){var c=a.charCodeAt(s);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||i===Fv.RFC1738&&(40===c||41===c)?u+=a.charAt(s):c<128?u+=Lv[c]:c<2048?u+=Lv[192|c>>6]+Lv[128|63&c]:c<55296||c>=57344?u+=Lv[224|c>>12]+Lv[128|c>>6&63]+Lv[128|63&c]:(s+=1,c=65536+((1023&c)<<10|1023&a.charCodeAt(s)),u+=Lv[240|c>>18]+Lv[128|c>>12&63]+Lv[128|c>>6&63]+Lv[128|63&c])}return u},isBuffer:function(e){return!(!e||"object"!==o(e))&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(Dv(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!==o(r)){if(Dv(t))t.push(r);else{if(!t||"object"!==o(t))return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!Bv.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!==o(t))return[t].concat(r);var i=t;return Dv(t)&&!Dv(r)&&(i=Mv(t,n)),Dv(t)&&Dv(r)?(r.forEach((function(r,i){if(Bv.call(t,i)){var a=t[i];a&&"object"===o(a)&&r&&"object"===o(r)?t[i]=e(a,r,n):t.push(r)}else t[i]=r})),t):Object.keys(r).reduce((function(t,o){var i=r[o];return Bv.call(t,o)?t[o]=e(t[o],i,n):t[o]=i,t}),i)}},Gv=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new Rv("Side channel does not contain "+Av(e))},get:function(n){if(Ev&&n&&("object"===o(n)||"function"==typeof n)){if(e)return Pv(e,n)}else if(Sv){if(t)return kv(t,n)}else if(r)return function(e,t){var r=Tv(e,t);return r&&r.value}(r,n)},has:function(n){if(Ev&&n&&("object"===o(n)||"function"==typeof n)){if(e)return xv(e,n)}else if(Sv){if(t)return jv(t,n)}else if(r)return function(e,t){return!!Tv(e,t)}(r,n);return!1},set:function(n,i){Ev&&n&&("object"===o(n)||"function"==typeof n)?(e||(e=new Ev),Ov(e,n,i)):Sv?(t||(t=new Sv),Iv(t,n,i)):(r||(r={key:{},next:null}),function(e,t,r){var n=Tv(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,i))}};return n},qv=Wv,zv=Uv,Vv=Object.prototype.hasOwnProperty,Yv={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Hv=Array.isArray,$v=String.prototype.split,Jv=Array.prototype.push,Kv=function(e,t){Jv.apply(e,Hv(t)?t:[t])},Qv=Date.prototype.toISOString,Xv=zv.default,Zv={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:qv.encode,encodeValuesOnly:!1,format:Xv,formatter:zv.formatters[Xv],indices:!1,serializeDate:function(e){return Qv.call(e)},skipNulls:!1,strictNullHandling:!1},eg={},tg=function e(t,r,n,i,a,u,s,c,f,p,l,h,d,y,v){for(var g,m=t,b=v,w=0,A=!1;void 0!==(b=b.get(eg))&&!A;){var R=b.get(t);if(w+=1,void 0!==R){if(R===w)throw new RangeError("Cyclic object value");A=!0}void 0===b.get(eg)&&(w=0)}if("function"==typeof s?m=s(r,m):m instanceof Date?m=p(m):"comma"===n&&Hv(m)&&(m=qv.maybeMap(m,(function(e){return e instanceof Date?p(e):e}))),null===m){if(i)return u&&!d?u(r,Zv.encoder,y,"key",l):r;m=""}if("string"==typeof(g=m)||"number"==typeof g||"boolean"==typeof g||"symbol"===o(g)||"bigint"==typeof g||qv.isBuffer(m)){if(u){var E=d?r:u(r,Zv.encoder,y,"key",l);if("comma"===n&&d){for(var S=$v.call(String(m),","),P="",O=0;O<S.length;++O)P+=(0===O?"":",")+h(u(S[O],Zv.encoder,y,"value",l));return[h(E)+"="+P]}return[h(E)+"="+h(u(m,Zv.encoder,y,"value",l))]}return[h(r)+"="+h(String(m))]}var x,k=[];if(void 0===m)return k;if("comma"===n&&Hv(m))x=[{value:m.length>0?m.join(",")||null:void 0}];else if(Hv(s))x=s;else{var I=Object.keys(m);x=c?I.sort(c):I}for(var j=0;j<x.length;++j){var T=x[j],N="object"===o(T)&&void 0!==T.value?T.value:m[T];if(!a||null!==N){var _=Hv(m)?"function"==typeof n?n(r,T):r:r+(f?"."+T:"["+T+"]");v.set(t,w);var C=Gv();C.set(eg,v),Kv(k,e(N,_,n,i,a,u,s,c,f,p,l,h,d,y,C))}}return k},rg=Wv,ng=Object.prototype.hasOwnProperty,og=Array.isArray,ig={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:rg.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},ag=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},ug=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},sg=function(e,t,r,n){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(o),u=a?o.slice(0,a.index):o,s=[];if(u){if(!r.plainObjects&&ng.call(Object.prototype,u)&&!r.allowPrototypes)return;s.push(u)}for(var c=0;r.depth>0&&null!==(a=i.exec(o))&&c<r.depth;){if(c+=1,!r.plainObjects&&ng.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;s.push(a[1])}return a&&s.push("["+o.slice(a.index)+"]"),function(e,t,r,n){for(var o=n?t:ug(t,r),i=e.length-1;i>=0;--i){var a,u=e[i];if("[]"===u&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var s="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,c=parseInt(s,10);r.parseArrays||""!==s?!isNaN(c)&&u!==s&&String(c)===s&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(a=[])[c]=o:"__proto__"!==s&&(a[s]=o):a={0:o}}o=a}return o}(s,t,r,n)}},cg={formats:Uv,parse:function(e,t){var r=function(e){if(!e)return ig;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 t=void 0===e.charset?ig.charset:e.charset;return{allowDots:void 0===e.allowDots?ig.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:ig.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:ig.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:ig.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:ig.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:ig.comma,decoder:"function"==typeof e.decoder?e.decoder:ig.decoder,delimiter:"string"==typeof e.delimiter||rg.isRegExp(e.delimiter)?e.delimiter:ig.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:ig.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:ig.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:ig.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:ig.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:ig.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var n="string"==typeof e?function(e,t){var r,n={},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,a=o.split(t.delimiter,i),u=-1,s=t.charset;if(t.charsetSentinel)for(r=0;r<a.length;++r)0===a[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===a[r]?s="utf-8":"utf8=%26%2310003%3B"===a[r]&&(s="iso-8859-1"),u=r,r=a.length);for(r=0;r<a.length;++r)if(r!==u){var c,f,p=a[r],l=p.indexOf("]="),h=-1===l?p.indexOf("="):l+1;-1===h?(c=t.decoder(p,ig.decoder,s,"key"),f=t.strictNullHandling?null:""):(c=t.decoder(p.slice(0,h),ig.decoder,s,"key"),f=rg.maybeMap(ug(p.slice(h+1),t),(function(e){return t.decoder(e,ig.decoder,s,"value")}))),f&&t.interpretNumericEntities&&"iso-8859-1"===s&&(f=ag(f)),p.indexOf("[]=")>-1&&(f=og(f)?[f]:f),ng.call(n,c)?n[c]=rg.combine(n[c],f):n[c]=f}return n}(e,r):e,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),a=0;a<i.length;++a){var u=i[a],s=sg(u,n[u],r,"string"==typeof e);o=rg.merge(o,s,r)}return!0===r.allowSparse?o:rg.compact(o)},stringify:function(e,t){var r,n=e,i=function(e){if(!e)return Zv;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||Zv.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 r=zv.default;if(void 0!==e.format){if(!Vv.call(zv.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=zv.formatters[r],o=Zv.filter;return("function"==typeof e.filter||Hv(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:Zv.addQueryPrefix,allowDots:void 0===e.allowDots?Zv.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Zv.charsetSentinel,delimiter:void 0===e.delimiter?Zv.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:Zv.encode,encoder:"function"==typeof e.encoder?e.encoder:Zv.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:Zv.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:Zv.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:Zv.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Zv.strictNullHandling}}(t);"function"==typeof i.filter?n=(0,i.filter)("",n):Hv(i.filter)&&(r=i.filter);var a,u=[];if("object"!==o(n)||null===n)return"";a=t&&t.arrayFormat in Yv?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var s=Yv[a];r||(r=Object.keys(n)),i.sort&&r.sort(i.sort);for(var c=Gv(),f=0;f<r.length;++f){var p=r[f];i.skipNulls&&null===n[p]||Kv(u,tg(n[p],p,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=u.join(i.delimiter),h=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?h+="utf8=%26%2310003%3B&":h+="utf8=%E2%9C%93&"),l.length>0?h+l:""}},fg="function"==typeof btoa,pg="function"==typeof Buffer,lg=("function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder?new TextEncoder:void 0),hg=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),dg=(mv={},hg.forEach((function(e,t){return mv[e]=t})),String.fromCharCode.bind(String)),yg=("function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array),function(e){return e.replace(/=/g,"").replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"}))}),vg=function(e){for(var t,r,n,o,i="",a=e.length%3,u=0;u<e.length;){if((r=e.charCodeAt(u++))>255||(n=e.charCodeAt(u++))>255||(o=e.charCodeAt(u++))>255)throw new TypeError("invalid character found");i+=hg[(t=r<<16|n<<8|o)>>18&63]+hg[t>>12&63]+hg[t>>6&63]+hg[63&t]}return a?i.slice(0,a-3)+"===".substring(a):i},gg=fg?function(e){return btoa(e)}:pg?function(e){return Buffer.from(e,"binary").toString("base64")}:vg,mg=pg?function(e){return Buffer.from(e).toString("base64")}:function(e){for(var t=[],r=0,n=e.length;r<n;r+=4096)t.push(dg.apply(null,e.subarray(r,r+4096)));return gg(t.join(""))},bg=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?dg(192|t>>>6)+dg(128|63&t):dg(224|t>>>12&15)+dg(128|t>>>6&63)+dg(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return dg(240|t>>>18&7)+dg(128|t>>>12&63)+dg(128|t>>>6&63)+dg(128|63&t)},wg=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Ag=function(e){return e.replace(wg,bg)},Rg=pg?function(e){return Buffer.from(e,"utf8").toString("base64")}:lg?function(e){return mg(lg.encode(e))}:function(e){return gg(Ag(e))},Eg=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?yg(Rg(e)):Rg(e)},Sg=Eg,Pg=function(){function e(t){var r=t.baseUrl,n=t.auth,o=t.basicAuth,i=t.clientCertAuth,a=t.proxy,s=t.userAgent;u(this,e),this.baseUrl=r,this.auth=n,this.headers=this.buildHeaders({basicAuth:o,userAgent:s}),this.clientCertAuth=i,this.proxy=a,this.requestToken=null}var r,o,i;return c(e,[{key:"build",value:(i=a(regeneratorRuntime.mark((function e(r,o,i,a){var u,s,c,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:u=n(n(n({method:r,headers:this.headers,url:"".concat(this.baseUrl).concat(o)},a||{}),t.buildPlatformDependentConfig({clientCertAuth:this.clientCertAuth})),{},{proxy:this.proxy}),e.t0=r,e.next="get"===e.t0?4:"post"===e.t0?16:"put"===e.t0?29:"delete"===e.t0?37:44;break;case 4:if(!((s=this.buildRequestUrl(o,i)).length>4096)){e.next=15;break}return e.t1=n,e.t2=n({},u),e.t3={},e.t4=n(n({},this.headers),{},{"X-HTTP-Method-Override":"GET"}),e.next=12,this.buildData(i);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",n(n({},u),{},{url:s}));case 16:if(!(i instanceof qf)){e.next=21;break}return e.next=19,this.buildData(i);case 19:return c=e.sent,e.abrupt("return",n(n({},u),{},{headers:"function"==typeof c.getHeaders?n(n({},this.headers),c.getHeaders()):this.headers,data:c}));case 21:return e.t7=n,e.t8=n({},u),e.t9={},e.next=26,this.buildData(i);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=n,e.t13=n({},u),e.t14={},e.next=34,this.buildData(i);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(i);case 41:return e.t19=e.sent,f=e.t17.buildRequestUrl.call(e.t17,e.t18,e.t19),e.abrupt("return",n(n({},u),{},{url:f}));case 44:throw new Error("".concat(r," method is not supported"));case 45:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return i.apply(this,arguments)})},{key:"buildRequestUrl",value:function(e,t){return"".concat(this.baseUrl).concat(e,"?").concat(cg.stringify(t))}},{key:"buildData",value:(o=a(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.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(r=e.sent,!(t instanceof qf)){e.next=7;break}return t.append("__REQUEST_TOKEN__",r),e.abrupt("return",t);case 7:return e.abrupt("return",n({__REQUEST_TOKEN__:r},t));case 8:return e.abrupt("return",t);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"buildHeaders",value:function(e){var r=e.basicAuth,o=e.userAgent,i=r?{Authorization:"Basic ".concat(Sg("".concat(r.username,":").concat(r.password)))}:{},a=n(n({},t.buildHeaders({userAgent:o})),i);switch(this.auth.type){case"password":return n(n({},a),{},{"X-Cybozu-Authorization":Sg("".concat(this.auth.username,":").concat(this.auth.password))});case"apiToken":var u=this.auth.apiToken;return Array.isArray(u)?n(n({},a),{},{"X-Cybozu-API-Token":u.join(",")}):n(n({},a),{},{"X-Cybozu-API-Token":u});case"oAuthToken":return n(n({},a),{},{Authorization:"Bearer ".concat(this.auth.oAuthToken)});default:return n(n({},a),{},{"X-Requested-With":"XMLHttpRequest"})}}},{key:"getRequestToken",value:(r=a(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==this.requestToken){e.next=4;break}return e.next=3,t.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 r.apply(this,arguments)})}]),e}(),Og=H,xg=wn,kg=Date.prototype,Ig="Invalid Date",jg="toString",Tg=Og(kg.toString),Ng=Og(kg.getTime);String(new Date(NaN))!=Ig&&xg(kg,jg,(function(){var e=Ng(this);return e==e?Tg(this):Ig}));var _g=C,Cg=ot,Ug=ve,Fg=Xi,Bg=RegExp.prototype,Dg=Ar.PROPER,Lg=wn,Mg=er,Wg=Ki,Gg=I,qg=function(e){var t=e.flags;return void 0!==t||"flags"in Bg||Cg(e,"flags")||!Ug(Bg,e)?t:_g(Fg,e)},zg="toString",Vg=RegExp.prototype.toString,Yg=Gg((function(){return"/a/b"!=Vg.call({source:"a",flags:"b"})})),Hg=Dg&&Vg.name!=zg;(Yg||Hg)&&Lg(RegExp.prototype,zg,(function(){var e=Mg(this);return"/"+Wg(e.source)+"/"+Wg(qg(e))}),{unsafe:!0});var $g,Jg=function(e){p(r,e);var t=w(r);function r(e){var n;return u(this,r),(n=t.call(this,e)).name="KintoneAbortSearchError",n.message=e,Object.setPrototypeOf(m(n),r.prototype),n}return c(r)}(v(Error)),Kg=function(e){p(r,e);var t=w(r);function r(e){var n;u(this,r);var o=r.buildErrorResponseDateWithIndex(e),i=o.data,a=o.bulkRequestIndex;return(n=t.call(this,i.message)).name="KintoneRestAPIError",n.id=i.id,n.code=i.code,n.errors=i.errors,n.status=e.status,n.bulkRequestIndex=a,n.headers=e.headers,n.message="[".concat(e.status,"] [").concat(n.code,"] ").concat(n.message," (").concat(n.id,")"),Error.captureStackTrace&&Error.captureStackTrace(m(n),r),Object.setPrototypeOf(m(n),r.prototype),n}return c(r,null,[{key:"findErrorResponseDataWithIndex",value:function(e){for(var t=0;t<e.length;t++){if(0!==Object.keys(e[t]).length)return{data:e[t],bulkRequestIndex:t}}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?r.findErrorResponseDataWithIndex(e.data.results):{data:e.data}}}]),r}(v(Error)),Qg=["data"],Xg=function(){function e(t){var r=t.enableAbortSearchError;u(this,e),this.enableAbortSearchError=r}return c(e,[{key:"handle",value:function(e){var t=this;return e.then((function(e){return t.handleSuccessResponse(e)}),(function(e){return t.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 Jg(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 t=e.response,r=t.data,o=g(t,Qg);if("string"==typeof r)throw new Error("".concat(o.status,": ").concat(o.statusText));throw new Kg(n({data:r},o))}}]),e}(),Zg=function(e){if("username"in e)return n({type:"password"},e);if("apiToken"in e)return n({type:"apiToken"},e);if("oAuthToken"in e)return n({type:"oAuthToken"},e);try{return t.getDefaultAuth()}catch(e){if(e instanceof Vi)throw new Error("session authentication is not supported in ".concat(e.platform," environment."));throw e}},em=function(){function e(){var r,o,i,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u(this,e),tm(a),this.baseUrl=t.buildBaseUrl(a.baseUrl).replace(/\/+$/,"");var s=Zg(null!==(r=a.auth)&&void 0!==r?r:{}),c=new Pg(n(n({},a),{},{baseUrl:this.baseUrl,auth:s})),f=new Xg({enableAbortSearchError:null!==(o=null===(i=a.featureFlags)||void 0===i?void 0:i.enableAbortSearchError)&&void 0!==o&&o}),p=new gd({responseHandler:f,requestConfigBuilder:c}),l=a.guestSpaceId;this.bulkRequest_=new Os(p,l),this.record=new Gf(p,this.bulkRequest_,l),this.app=new Ws(p,l),this.file=new zf(p,l)}return c(e,[{key:"getBaseUrl",value:function(){return this.baseUrl}},{key:"bulkRequest",value:function(e){return this.bulkRequest_.send(e)}}],[{key:"version",get:function(){return t.getVersion()}}]),e}(),tm=function(e){rm(e.guestSpaceId)},rm=function(e){if(""===e||null===e)throw new Error("invalid guestSpaceId: got [".concat(e,"]"))};($g=Hi).readFileFromPath&&(t.readFileFromPath=$g.readFileFromPath),$g.getRequestToken&&(t.getRequestToken=$g.getRequestToken),$g.getDefaultAuth&&(t.getDefaultAuth=$g.getDefaultAuth),$g.buildPlatformDependentConfig&&(t.buildPlatformDependentConfig=$g.buildPlatformDependentConfig),$g.buildHeaders&&(t.buildHeaders=$g.buildHeaders),$g.buildFormDataValue&&(t.buildFormDataValue=$g.buildFormDataValue),$g.buildBaseUrl&&(t.buildBaseUrl=$g.buildBaseUrl),$g.getVersion&&(t.getVersion=$g.getVersion),e.KintoneAbortSearchError=Jg,e.KintoneAllRecordsError=Bf,e.KintoneRestAPIClient=em,e.KintoneRestAPIError=Kg,Object.defineProperty(e,"__esModule",{value:!0})}));