@kintone/rest-api-client 5.0.0 → 5.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25,7 +25,7 @@
25
25
  * This bundle includes the following third-party libraries:
26
26
  *
27
27
  * =====
28
- * core-js@3.32.2 -- MIT
28
+ * core-js@3.33.1 -- MIT
29
29
  * -----
30
30
  *
31
31
  * Copyright (c) 2014-2023 Denis Pushkarev
@@ -108,7 +108,7 @@
108
108
  *
109
109
  *
110
110
  * =====
111
- * axios@1.4.0 -- MIT
111
+ * axios@1.5.1 -- MIT
112
112
  * -----
113
113
  *
114
114
  * # Copyright (c) 2014-present Matt Zabriskie & Collaborators
@@ -466,4 +466,4 @@
466
466
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
467
467
  */
468
468
 
469
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).window=t.window||{})}(this,(function(t){"use strict";var e={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(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function n(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(){o=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),s=new I(n||[]);return i(a,"_invoke",{value:P(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var h="suspendedStart",d="suspendedYield",y="executing",m="completed",g={};function v(){}function b(){}function w(){}var x={};l(x,s,(function(){return this}));var S=Object.getPrototypeOf,A=S&&S(S(_([])));A&&A!==r&&n.call(A,s)&&(x=A);var E=w.prototype=v.prototype=Object.create(x);function R(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,s){var u=f(t[o],t,i);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,s)}))}s(u.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}})}function P(e,r,n){var o=h;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var u=k(s,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var c=f(e,r,n);if("normal"===c.type){if(o=n.done?m:d,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=m,n.method="throw",n.arg=c.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function _(e){if(e||""===e){var r=e[s];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}}throw new TypeError(typeof e+" is not iterable")}return b.prototype=w,i(E,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,c,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},R(O.prototype),l(O.prototype,u,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(p(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},R(E),l(E,c,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=_,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(T),!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 t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.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],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){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(t,e){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"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:_(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function a(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function s(t){a(i,n,o,s,u,"next",t)}function u(t){a(i,n,o,s,u,"throw",t)}s(void 0)}))}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,A(n.key),n)}}function l(t,e,r){return e&&c(t.prototype,e),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function p(t,e,r){return(e=A(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}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(t){return!1}}function m(t,e,r){return m=y()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&d(o,r.prototype),o},m.apply(null,arguments)}function g(t){var e="function"==typeof Map?new Map:void 0;return g=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return m(t,arguments,h(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),d(n,t)},g(t)}function v(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function b(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function w(t){var e=y();return function(){var r,n=h(t);if(e){var o=h(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return b(t)}(this,r)}}function x(t){return function(t){if(Array.isArray(t))return S(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return S(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return S(t,e)}(t)||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 S(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function A(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var E="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function R(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function O(t){if(t.__esModule)return t;var e=t.default;if("function"==typeof e){var r=function t(){return this instanceof t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach((function(e){var n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:function(){return t[e]}})})),r}var P=function(t){return t&&t.Math===Math&&t},k=P("object"==typeof globalThis&&globalThis)||P("object"==typeof window&&window)||P("object"==typeof self&&self)||P("object"==typeof E&&E)||function(){return this}()||E||Function("return this")(),j={},T=function(t){try{return!!t()}catch(t){return!0}},I=!T((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),_=!T((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),N=_,C=Function.prototype.call,U=N?C.bind(C):function(){return C.apply(C,arguments)},L={},F={}.propertyIsEnumerable,B=Object.getOwnPropertyDescriptor,D=B&&!F.call({1:2},1);L.f=D?function(t){var e=B(this,t);return!!e&&e.enumerable}:F;var M,q,W=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},G=_,z=Function.prototype,H=z.call,V=G&&z.bind.bind(H,H),$=G?V:function(t){return function(){return H.apply(t,arguments)}},Y=$,K=Y({}.toString),J=Y("".slice),Q=function(t){return J(K(t),8,-1)},X=T,Z=Q,tt=Object,et=$("".split),rt=X((function(){return!tt("z").propertyIsEnumerable(0)}))?function(t){return"String"===Z(t)?et(t,""):tt(t)}:tt,nt=function(t){return null==t},ot=nt,it=TypeError,at=function(t){if(ot(t))throw it("Can't call method on "+t);return t},st=rt,ut=at,ct=function(t){return st(ut(t))},lt="object"==typeof document&&document.all,pt={all:lt,IS_HTMLDDA:void 0===lt&&void 0!==lt},ft=pt.all,ht=pt.IS_HTMLDDA?function(t){return"function"==typeof t||t===ft}:function(t){return"function"==typeof t},dt=ht,yt=pt.all,mt=pt.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:dt(t)||t===yt}:function(t){return"object"==typeof t?null!==t:dt(t)},gt=k,vt=ht,bt=function(t,e){return arguments.length<2?(r=gt[t],vt(r)?r:void 0):gt[t]&&gt[t][e];var r},wt=$({}.isPrototypeOf),xt=k,St="undefined"!=typeof navigator&&String(navigator.userAgent)||"",At=xt.process,Et=xt.Deno,Rt=At&&At.versions||Et&&Et.version,Ot=Rt&&Rt.v8;Ot&&(q=(M=Ot.split("."))[0]>0&&M[0]<4?1:+(M[0]+M[1])),!q&&St&&(!(M=St.match(/Edge\/(\d+)/))||M[1]>=74)&&(M=St.match(/Chrome\/(\d+)/))&&(q=+M[1]);var Pt=q,kt=Pt,jt=T,Tt=k.String,It=!!Object.getOwnPropertySymbols&&!jt((function(){var t=Symbol("symbol detection");return!Tt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&kt&&kt<41})),_t=It&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Nt=bt,Ct=ht,Ut=wt,Lt=Object,Ft=_t?function(t){return"symbol"==typeof t}:function(t){var e=Nt("Symbol");return Ct(e)&&Ut(e.prototype,Lt(t))},Bt=String,Dt=function(t){try{return Bt(t)}catch(t){return"Object"}},Mt=ht,qt=Dt,Wt=TypeError,Gt=function(t){if(Mt(t))return t;throw Wt(qt(t)+" is not a function")},zt=Gt,Ht=nt,Vt=function(t,e){var r=t[e];return Ht(r)?void 0:zt(r)},$t=U,Yt=ht,Kt=mt,Jt=TypeError,Qt={exports:{}},Xt=k,Zt=Object.defineProperty,te=function(t,e){try{Zt(Xt,t,{value:e,configurable:!0,writable:!0})}catch(r){Xt[t]=e}return e},ee=te,re="__core-js_shared__",ne=k[re]||ee(re,{}),oe=ne;(Qt.exports=function(t,e){return oe[t]||(oe[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.32.2",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.2/LICENSE",source:"https://github.com/zloirock/core-js"});var ie=Qt.exports,ae=at,se=Object,ue=function(t){return se(ae(t))},ce=ue,le=$({}.hasOwnProperty),pe=Object.hasOwn||function(t,e){return le(ce(t),e)},fe=$,he=0,de=Math.random(),ye=fe(1..toString),me=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ye(++he+de,36)},ge=ie,ve=pe,be=me,we=It,xe=_t,Se=k.Symbol,Ae=ge("wks"),Ee=xe?Se.for||Se:Se&&Se.withoutSetter||be,Re=function(t){return ve(Ae,t)||(Ae[t]=we&&ve(Se,t)?Se[t]:Ee("Symbol."+t)),Ae[t]},Oe=U,Pe=mt,ke=Ft,je=Vt,Te=function(t,e){var r,n;if("string"===e&&Yt(r=t.toString)&&!Kt(n=$t(r,t)))return n;if(Yt(r=t.valueOf)&&!Kt(n=$t(r,t)))return n;if("string"!==e&&Yt(r=t.toString)&&!Kt(n=$t(r,t)))return n;throw Jt("Can't convert object to primitive value")},Ie=TypeError,_e=Re("toPrimitive"),Ne=function(t,e){if(!Pe(t)||ke(t))return t;var r,n=je(t,_e);if(n){if(void 0===e&&(e="default"),r=Oe(n,t,e),!Pe(r)||ke(r))return r;throw Ie("Can't convert object to primitive value")}return void 0===e&&(e="number"),Te(t,e)},Ce=Ne,Ue=Ft,Le=function(t){var e=Ce(t,"string");return Ue(e)?e:e+""},Fe=mt,Be=k.document,De=Fe(Be)&&Fe(Be.createElement),Me=function(t){return De?Be.createElement(t):{}},qe=Me,We=!I&&!T((function(){return 7!==Object.defineProperty(qe("div"),"a",{get:function(){return 7}}).a})),Ge=I,ze=U,He=L,Ve=W,$e=ct,Ye=Le,Ke=pe,Je=We,Qe=Object.getOwnPropertyDescriptor;j.f=Ge?Qe:function(t,e){if(t=$e(t),e=Ye(e),Je)try{return Qe(t,e)}catch(t){}if(Ke(t,e))return Ve(!ze(He.f,t,e),t[e])};var Xe={},Ze=I&&T((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),tr=mt,er=String,rr=TypeError,nr=function(t){if(tr(t))return t;throw rr(er(t)+" is not an object")},or=I,ir=We,ar=Ze,sr=nr,ur=Le,cr=TypeError,lr=Object.defineProperty,pr=Object.getOwnPropertyDescriptor,fr="enumerable",hr="configurable",dr="writable";Xe.f=or?ar?function(t,e,r){if(sr(t),e=ur(e),sr(r),"function"==typeof t&&"prototype"===e&&"value"in r&&dr in r&&!r[dr]){var n=pr(t,e);n&&n[dr]&&(t[e]=r.value,r={configurable:hr in r?r[hr]:n[hr],enumerable:fr in r?r[fr]:n[fr],writable:!1})}return lr(t,e,r)}:lr:function(t,e,r){if(sr(t),e=ur(e),sr(r),ir)try{return lr(t,e,r)}catch(t){}if("get"in r||"set"in r)throw cr("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var yr=Xe,mr=W,gr=I?function(t,e,r){return yr.f(t,e,mr(1,r))}:function(t,e,r){return t[e]=r,t},vr={exports:{}},br=I,wr=pe,xr=Function.prototype,Sr=br&&Object.getOwnPropertyDescriptor,Ar=wr(xr,"name"),Er={EXISTS:Ar,PROPER:Ar&&"something"===function(){}.name,CONFIGURABLE:Ar&&(!br||br&&Sr(xr,"name").configurable)},Rr=ht,Or=ne,Pr=$(Function.toString);Rr(Or.inspectSource)||(Or.inspectSource=function(t){return Pr(t)});var kr,jr,Tr,Ir=Or.inspectSource,_r=ht,Nr=k.WeakMap,Cr=_r(Nr)&&/native code/.test(String(Nr)),Ur=me,Lr=ie("keys"),Fr=function(t){return Lr[t]||(Lr[t]=Ur(t))},Br={},Dr=Cr,Mr=k,qr=mt,Wr=gr,Gr=pe,zr=ne,Hr=Fr,Vr=Br,$r="Object already initialized",Yr=Mr.TypeError,Kr=Mr.WeakMap;if(Dr||zr.state){var Jr=zr.state||(zr.state=new Kr);Jr.get=Jr.get,Jr.has=Jr.has,Jr.set=Jr.set,kr=function(t,e){if(Jr.has(t))throw Yr($r);return e.facade=t,Jr.set(t,e),e},jr=function(t){return Jr.get(t)||{}},Tr=function(t){return Jr.has(t)}}else{var Qr=Hr("state");Vr[Qr]=!0,kr=function(t,e){if(Gr(t,Qr))throw Yr($r);return e.facade=t,Wr(t,Qr,e),e},jr=function(t){return Gr(t,Qr)?t[Qr]:{}},Tr=function(t){return Gr(t,Qr)}}var Xr={set:kr,get:jr,has:Tr,enforce:function(t){return Tr(t)?jr(t):kr(t,{})},getterFor:function(t){return function(e){var r;if(!qr(e)||(r=jr(e)).type!==t)throw Yr("Incompatible receiver, "+t+" required");return r}}},Zr=$,tn=T,en=ht,rn=pe,nn=I,on=Er.CONFIGURABLE,an=Ir,sn=Xr.enforce,un=Xr.get,cn=String,ln=Object.defineProperty,pn=Zr("".slice),fn=Zr("".replace),hn=Zr([].join),dn=nn&&!tn((function(){return 8!==ln((function(){}),"length",{value:8}).length})),yn=String(String).split("String"),mn=vr.exports=function(t,e,r){"Symbol("===pn(cn(e),0,7)&&(e="["+fn(cn(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!rn(t,"name")||on&&t.name!==e)&&(nn?ln(t,"name",{value:e,configurable:!0}):t.name=e),dn&&r&&rn(r,"arity")&&t.length!==r.arity&&ln(t,"length",{value:r.arity});try{r&&rn(r,"constructor")&&r.constructor?nn&&ln(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=sn(t);return rn(n,"source")||(n.source=hn(yn,"string"==typeof e?e:"")),t};Function.prototype.toString=mn((function(){return en(this)&&un(this).source||an(this)}),"toString");var gn=vr.exports,vn=ht,bn=Xe,wn=gn,xn=te,Sn=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(vn(r)&&wn(r,i,n),n.global)o?t[e]=r:xn(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:bn.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},An={},En=Math.ceil,Rn=Math.floor,On=Math.trunc||function(t){var e=+t;return(e>0?Rn:En)(e)},Pn=function(t){var e=+t;return e!=e||0===e?0:On(e)},kn=Pn,jn=Math.max,Tn=Math.min,In=function(t,e){var r=kn(t);return r<0?jn(r+e,0):Tn(r,e)},_n=Pn,Nn=Math.min,Cn=function(t){return t>0?Nn(_n(t),9007199254740991):0},Un=Cn,Ln=function(t){return Un(t.length)},Fn=ct,Bn=In,Dn=Ln,Mn=function(t){return function(e,r,n){var o,i=Fn(e),a=Dn(i),s=Bn(n,a);if(t&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((t||s in i)&&i[s]===r)return t||s||0;return!t&&-1}},qn={includes:Mn(!0),indexOf:Mn(!1)},Wn=pe,Gn=ct,zn=qn.indexOf,Hn=Br,Vn=$([].push),$n=function(t,e){var r,n=Gn(t),o=0,i=[];for(r in n)!Wn(Hn,r)&&Wn(n,r)&&Vn(i,r);for(;e.length>o;)Wn(n,r=e[o++])&&(~zn(i,r)||Vn(i,r));return i},Yn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Kn=$n,Jn=Yn.concat("length","prototype");An.f=Object.getOwnPropertyNames||function(t){return Kn(t,Jn)};var Qn={};Qn.f=Object.getOwnPropertySymbols;var Xn=bt,Zn=An,to=Qn,eo=nr,ro=$([].concat),no=Xn("Reflect","ownKeys")||function(t){var e=Zn.f(eo(t)),r=to.f;return r?ro(e,r(t)):e},oo=pe,io=no,ao=j,so=Xe,uo=T,co=ht,lo=/#|\.prototype\./,po=function(t,e){var r=ho[fo(t)];return r===mo||r!==yo&&(co(e)?uo(e):!!e)},fo=po.normalize=function(t){return String(t).replace(lo,".").toLowerCase()},ho=po.data={},yo=po.NATIVE="N",mo=po.POLYFILL="P",go=po,vo=k,bo=j.f,wo=gr,xo=Sn,So=te,Ao=function(t,e,r){for(var n=io(e),o=so.f,i=ao.f,a=0;a<n.length;a++){var s=n[a];oo(t,s)||r&&oo(r,s)||o(t,s,i(e,s))}},Eo=go,Ro=function(t,e){var r,n,o,i,a,s=t.target,u=t.global,c=t.stat;if(r=u?vo:c?vo[s]||So(s,{}):(vo[s]||{}).prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(a=bo(r,n))&&a.value:r[n],!Eo(u?n:s+(c?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ao(i,o)}(t.sham||o&&o.sham)&&wo(i,"sham",!0),xo(r,n,i,t)}},Oo=Q,Po=Array.isArray||function(t){return"Array"===Oo(t)},ko=TypeError,jo=Le,To=Xe,Io=W,_o=function(t,e,r){var n=jo(e);n in t?To.f(t,n,Io(0,r)):t[n]=r},No={};No[Re("toStringTag")]="z";var Co="[object z]"===String(No),Uo=Co,Lo=ht,Fo=Q,Bo=Re("toStringTag"),Do=Object,Mo="Arguments"===Fo(function(){return arguments}()),qo=Uo?Fo:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Do(t),Bo))?r:Mo?Fo(e):"Object"===(n=Fo(e))&&Lo(e.callee)?"Arguments":n},Wo=$,Go=T,zo=ht,Ho=qo,Vo=Ir,$o=function(){},Yo=[],Ko=bt("Reflect","construct"),Jo=/^\s*(?:class|function)\b/,Qo=Wo(Jo.exec),Xo=!Jo.exec($o),Zo=function(t){if(!zo(t))return!1;try{return Ko($o,Yo,t),!0}catch(t){return!1}},ti=function(t){if(!zo(t))return!1;switch(Ho(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Xo||!!Qo(Jo,Vo(t))}catch(t){return!0}};ti.sham=!0;var ei=!Ko||Go((function(){var t;return Zo(Zo.call)||!Zo(Object)||!Zo((function(){t=!0}))||t}))?ti:Zo,ri=Po,ni=ei,oi=mt,ii=Re("species"),ai=Array,si=function(t){var e;return ri(t)&&(e=t.constructor,(ni(e)&&(e===ai||ri(e.prototype))||oi(e)&&null===(e=e[ii]))&&(e=void 0)),void 0===e?ai:e},ui=function(t,e){return new(si(t))(0===e?0:e)},ci=T,li=Pt,pi=Re("species"),fi=function(t){return li>=51||!ci((function(){var e=[];return(e.constructor={})[pi]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},hi=Ro,di=T,yi=Po,mi=mt,gi=ue,vi=Ln,bi=function(t){if(t>9007199254740991)throw ko("Maximum allowed index exceeded");return t},wi=_o,xi=ui,Si=fi,Ai=Pt,Ei=Re("isConcatSpreadable"),Ri=Ai>=51||!di((function(){var t=[];return t[Ei]=!1,t.concat()[0]!==t})),Oi=function(t){if(!mi(t))return!1;var e=t[Ei];return void 0!==e?!!e:yi(t)};hi({target:"Array",proto:!0,arity:1,forced:!Ri||!Si("concat")},{concat:function(t){var e,r,n,o,i,a=gi(this),s=xi(a,0),u=0;for(e=-1,n=arguments.length;e<n;e++)if(Oi(i=-1===e?a:arguments[e]))for(o=vi(i),bi(u+o),r=0;r<o;r++,u++)r in i&&wi(s,u,i[r]);else bi(u+1),wi(s,u++,i);return s.length=u,s}});var Pi=gn,ki=Xe,ji=function(t,e,r){return r.get&&Pi(r.get,e,{getter:!0}),r.set&&Pi(r.set,e,{setter:!0}),ki.f(t,e,r)},Ti=I,Ii=Er.EXISTS,_i=$,Ni=ji,Ci=Function.prototype,Ui=_i(Ci.toString),Li=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Fi=_i(Li.exec);Ti&&!Ii&&Ni(Ci,"name",{configurable:!0,get:function(){try{return Fi(Li,Ui(this))[1]}catch(t){return""}}});var Bi=$,Di=Gt,Mi=ht,qi=String,Wi=TypeError,Gi=function(t,e,r){try{return Bi(Di(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}},zi=nr,Hi=function(t){if("object"==typeof t||Mi(t))return t;throw Wi("Can't set "+qi(t)+" as a prototype")},Vi=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Gi(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return zi(r),Hi(n),e?t(r,n):r.__proto__=n,r}}():void 0);Ro({target:"Object",stat:!0},{setPrototypeOf:Vi});var $i=function(t){f(r,t);var e=w(r);function r(t){var n;u(this,r);var o="This function is not supported in ".concat(t," environment");return n=e.call(this,o),Error.captureStackTrace&&Error.captureStackTrace(b(n),r),n.name="UnsupportedPlatformError",n.platform=t,Object.setPrototypeOf(b(n),r.prototype),n}return l(r)}(g(Error));function Yi(){this._types=Object.create(null),this._extensions=Object.create(null);for(let t=0;t<arguments.length;t++)this.define(arguments[t]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}Yi.prototype.define=function(t,e){for(let r in t){let n=t[r].map((function(t){return t.toLowerCase()}));r=r.toLowerCase();for(let t=0;t<n.length;t++){const o=n[t];if("*"!==o[0]){if(!e&&o in this._types)throw new Error('Attempt to change mapping for "'+o+'" extension from "'+this._types[o]+'" to "'+r+'". Pass `force=true` to allow this, otherwise remove "'+o+'" from the list of extensions for "'+r+'".');this._types[o]=r}}if(e||!this._extensions[r]){const t=n[0];this._extensions[r]="*"!==t[0]?t:t.substr(1)}}},Yi.prototype.getType=function(t){let e=(t=String(t)).replace(/^.*[/\\]/,"").toLowerCase(),r=e.replace(/^.*\./,"").toLowerCase(),n=e.length<t.length;return(r.length<e.length-1||!n)&&this._types[r]||null},Yi.prototype.getExtension=function(t){return(t=/^\s*([^;\s]*)/.test(t)&&RegExp.$1)&&this._extensions[t.toLowerCase()]||null};var Ki=R(new Yi({"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]})),Ji="5.0.0",Qi=function(){var t=s(o().mark((function t(){var e;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("object"!==("undefined"==typeof kintone?"undefined":i(kintone))||null===kintone||"function"!=typeof kintone.getRequestToken){t.next=2;break}return t.abrupt("return",kintone.getRequestToken());case 2:if("object"!==("undefined"==typeof garoon?"undefined":i(garoon))||null===garoon||"function"!=typeof(null===(e=garoon.connect)||void 0===e||null===(e=e.kintone)||void 0===e?void 0:e.getRequestToken)){t.next=4;break}return t.abrupt("return",garoon.connect.kintone.getRequestToken());case 4:throw new Error("session authentication must specify a request token");case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),Xi=Object.freeze({__proto__:null,buildBaseUrl:function(t){if(t)return t;if(void 0===location)throw new Error("The baseUrl parameter is required for this environment");var e=location,r=e.host,n=e.protocol;return"".concat(n,"//").concat(r)},buildFormDataValue:function(t,e){var r={};return e&&(r.type=Ki.getType(e)||void 0),new Blob([t],r)},buildHeaders:function(){return{}},buildPlatformDependentConfig:function(){return{}},getDefaultAuth:function(){return{type:"session"}},getRequestToken:Qi,getVersion:function(){return Ji},readFileFromPath:function(t){throw new $i("Browser")}}),Zi=qo,ta=String,ea=function(t){if("Symbol"===Zi(t))throw TypeError("Cannot convert a Symbol value to a string");return ta(t)},ra=nr,na=function(){var t=ra(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},oa=T,ia=k.RegExp,aa=oa((function(){var t=ia("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),sa=aa||oa((function(){return!ia("a","y").sticky})),ua={BROKEN_CARET:aa||oa((function(){var t=ia("^r","gy");return t.lastIndex=2,null!==t.exec("str")})),MISSED_STICKY:sa,UNSUPPORTED_Y:aa},ca={},la=$n,pa=Yn,fa=Object.keys||function(t){return la(t,pa)},ha=I,da=Ze,ya=Xe,ma=nr,ga=ct,va=fa;ca.f=ha&&!da?Object.defineProperties:function(t,e){ma(t);for(var r,n=ga(e),o=va(e),i=o.length,a=0;i>a;)ya.f(t,r=o[a++],n[r]);return t};var ba,wa=bt("document","documentElement"),xa=nr,Sa=ca,Aa=Yn,Ea=Br,Ra=wa,Oa=Me,Pa="prototype",ka="script",ja=Fr("IE_PROTO"),Ta=function(){},Ia=function(t){return"<"+ka+">"+t+"</"+ka+">"},_a=function(t){t.write(Ia("")),t.close();var e=t.parentWindow.Object;return t=null,e},Na=function(){try{ba=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;Na="undefined"!=typeof document?document.domain&&ba?_a(ba):(e=Oa("iframe"),r="java"+ka+":",e.style.display="none",Ra.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(Ia("document.F=Object")),t.close(),t.F):_a(ba);for(var n=Aa.length;n--;)delete Na[Pa][Aa[n]];return Na()};Ea[ja]=!0;var Ca,Ua,La=Object.create||function(t,e){var r;return null!==t?(Ta[Pa]=xa(t),r=new Ta,Ta[Pa]=null,r[ja]=t):r=Na(),void 0===e?r:Sa.f(r,e)},Fa=T,Ba=k.RegExp,Da=Fa((function(){var t=Ba(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Ma=T,qa=k.RegExp,Wa=Ma((function(){var t=qa("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Ga=U,za=$,Ha=ea,Va=na,$a=ua,Ya=La,Ka=Xr.get,Ja=Da,Qa=Wa,Xa=ie("native-string-replace",String.prototype.replace),Za=RegExp.prototype.exec,ts=Za,es=za("".charAt),rs=za("".indexOf),ns=za("".replace),os=za("".slice),is=(Ua=/b*/g,Ga(Za,Ca=/a/,"a"),Ga(Za,Ua,"a"),0!==Ca.lastIndex||0!==Ua.lastIndex),as=$a.BROKEN_CARET,ss=void 0!==/()??/.exec("")[1];(is||ss||as||Ja||Qa)&&(ts=function(t){var e,r,n,o,i,a,s,u=this,c=Ka(u),l=Ha(t),p=c.raw;if(p)return p.lastIndex=u.lastIndex,e=Ga(ts,p,l),u.lastIndex=p.lastIndex,e;var f=c.groups,h=as&&u.sticky,d=Ga(Va,u),y=u.source,m=0,g=l;if(h&&(d=ns(d,"y",""),-1===rs(d,"g")&&(d+="g"),g=os(l,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==es(l,u.lastIndex-1))&&(y="(?: "+y+")",g=" "+g,m++),r=new RegExp("^(?:"+y+")",d)),ss&&(r=new RegExp("^"+y+"$(?!\\s)",d)),is&&(n=u.lastIndex),o=Ga(Za,h?r:u,g),h?o?(o.input=os(o.input,m),o[0]=os(o[0],m),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:is&&o&&(u.lastIndex=u.global?o.index+o[0].length:n),ss&&o&&o.length>1&&Ga(Xa,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=Ya(null),i=0;i<f.length;i++)a[(s=f[i])[0]]=o[s[1]];return o});var us=ts;Ro({target:"RegExp",proto:!0,forced:/./.exec!==us},{exec:us});var cs=_,ls=Function.prototype,ps=ls.apply,fs=ls.call,hs="object"==typeof Reflect&&Reflect.apply||(cs?fs.bind(ps):function(){return fs.apply(ps,arguments)}),ds=Q,ys=$,ms=function(t){if("Function"===ds(t))return ys(t)},gs=ms,vs=Sn,bs=us,ws=T,xs=Re,Ss=gr,As=xs("species"),Es=RegExp.prototype,Rs=function(t,e,r,n){var o=xs(t),i=!ws((function(){var e={};return e[o]=function(){return 7},7!==""[t](e)})),a=i&&!ws((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[As]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!a||r){var s=gs(/./[o]),u=e(o,""[t],(function(t,e,r,n,o){var a=gs(t),u=e.exec;return u===bs||u===Es.exec?i&&!o?{done:!0,value:s(e,r,n)}:{done:!0,value:a(r,e,n)}:{done:!1}}));vs(String.prototype,t,u[0]),vs(Es,o,u[1])}n&&Ss(Es[o],"sham",!0)},Os=$,Ps=Pn,ks=ea,js=at,Ts=Os("".charAt),Is=Os("".charCodeAt),_s=Os("".slice),Ns=function(t){return function(e,r){var n,o,i=ks(js(e)),a=Ps(r),s=i.length;return a<0||a>=s?t?"":void 0:(n=Is(i,a))<55296||n>56319||a+1===s||(o=Is(i,a+1))<56320||o>57343?t?Ts(i,a):n:t?_s(i,a,a+2):o-56320+(n-55296<<10)+65536}},Cs={codeAt:Ns(!1),charAt:Ns(!0)},Us=Cs.charAt,Ls=function(t,e,r){return e+(r?Us(t,e).length:1)},Fs=$,Bs=ue,Ds=Math.floor,Ms=Fs("".charAt),qs=Fs("".replace),Ws=Fs("".slice),Gs=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,zs=/\$([$&'`]|\d{1,2})/g,Hs=U,Vs=nr,$s=ht,Ys=Q,Ks=us,Js=TypeError,Qs=function(t,e){var r=t.exec;if($s(r)){var n=Hs(r,t,e);return null!==n&&Vs(n),n}if("RegExp"===Ys(t))return Hs(Ks,t,e);throw Js("RegExp#exec called on incompatible receiver")},Xs=hs,Zs=U,tu=$,eu=Rs,ru=T,nu=nr,ou=ht,iu=nt,au=Pn,su=Cn,uu=ea,cu=at,lu=Ls,pu=Vt,fu=function(t,e,r,n,o,i){var a=r+t.length,s=n.length,u=zs;return void 0!==o&&(o=Bs(o),u=Gs),qs(i,u,(function(i,u){var c;switch(Ms(u,0)){case"$":return"$";case"&":return t;case"`":return Ws(e,0,r);case"'":return Ws(e,a);case"<":c=o[Ws(u,1,-1)];break;default:var l=+u;if(0===l)return i;if(l>s){var p=Ds(l/10);return 0===p?i:p<=s?void 0===n[p-1]?Ms(u,1):n[p-1]+Ms(u,1):i}c=n[l-1]}return void 0===c?"":c}))},hu=Qs,du=Re("replace"),yu=Math.max,mu=Math.min,gu=tu([].concat),vu=tu([].push),bu=tu("".indexOf),wu=tu("".slice),xu="$0"==="a".replace(/./,"$0"),Su=!!/./[du]&&""===/./[du]("a","$0");eu("replace",(function(t,e,r){var n=Su?"$":"$0";return[function(t,r){var n=cu(this),o=iu(t)?void 0:pu(t,du);return o?Zs(o,t,n,r):Zs(e,uu(n),t,r)},function(t,o){var i=nu(this),a=uu(t);if("string"==typeof o&&-1===bu(o,n)&&-1===bu(o,"$<")){var s=r(e,i,a,o);if(s.done)return s.value}var u=ou(o);u||(o=uu(o));var c,l=i.global;l&&(c=i.unicode,i.lastIndex=0);for(var p,f=[];null!==(p=hu(i,a))&&(vu(f,p),l);){""===uu(p[0])&&(i.lastIndex=lu(a,su(i.lastIndex),c))}for(var h,d="",y=0,m=0;m<f.length;m++){for(var g,v=uu((p=f[m])[0]),b=yu(mu(au(p.index),a.length),0),w=[],x=1;x<p.length;x++)vu(w,void 0===(h=p[x])?h:String(h));var S=p.groups;if(u){var A=gu([v],w,b,a);void 0!==S&&vu(A,S),g=uu(Xs(o,void 0,A))}else g=fu(v,a,b,w,S,o);b>=y&&(d+=wu(a,y,b)+g,y=b+v.length)}return d+wu(a,y)}]}),!!ru((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!xu||Su);var Au=Re,Eu=La,Ru=Xe.f,Ou=Au("unscopables"),Pu=Array.prototype;void 0===Pu[Ou]&&Ru(Pu,Ou,{configurable:!0,value:Eu(null)});var ku,ju,Tu,Iu={},_u=!T((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Nu=pe,Cu=ht,Uu=ue,Lu=_u,Fu=Fr("IE_PROTO"),Bu=Object,Du=Bu.prototype,Mu=Lu?Bu.getPrototypeOf:function(t){var e=Uu(t);if(Nu(e,Fu))return e[Fu];var r=e.constructor;return Cu(r)&&e instanceof r?r.prototype:e instanceof Bu?Du:null},qu=T,Wu=ht,Gu=mt,zu=Mu,Hu=Sn,Vu=Re("iterator"),$u=!1;[].keys&&("next"in(Tu=[].keys())?(ju=zu(zu(Tu)))!==Object.prototype&&(ku=ju):$u=!0);var Yu=!Gu(ku)||qu((function(){var t={};return ku[Vu].call(t)!==t}));Yu&&(ku={}),Wu(ku[Vu])||Hu(ku,Vu,(function(){return this}));var Ku={IteratorPrototype:ku,BUGGY_SAFARI_ITERATORS:$u},Ju=Xe.f,Qu=pe,Xu=Re("toStringTag"),Zu=function(t,e,r){t&&!r&&(t=t.prototype),t&&!Qu(t,Xu)&&Ju(t,Xu,{configurable:!0,value:e})},tc=Ku.IteratorPrototype,ec=La,rc=W,nc=Zu,oc=Iu,ic=function(){return this},ac=function(t,e,r,n){var o=e+" Iterator";return t.prototype=ec(tc,{next:rc(+!n,r)}),nc(t,o,!1),oc[o]=ic,t},sc=Ro,uc=U,cc=ht,lc=ac,pc=Mu,fc=Vi,hc=Zu,dc=gr,yc=Sn,mc=Iu,gc=Er.PROPER,vc=Er.CONFIGURABLE,bc=Ku.IteratorPrototype,wc=Ku.BUGGY_SAFARI_ITERATORS,xc=Re("iterator"),Sc="keys",Ac="values",Ec="entries",Rc=function(){return this},Oc=function(t,e,r,n,o,i,a){lc(r,e,n);var s,u,c,l=function(t){if(t===o&&y)return y;if(!wc&&t&&t in h)return h[t];switch(t){case Sc:case Ac:case Ec:return function(){return new r(this,t)}}return function(){return new r(this)}},p=e+" Iterator",f=!1,h=t.prototype,d=h[xc]||h["@@iterator"]||o&&h[o],y=!wc&&d||l(o),m="Array"===e&&h.entries||d;if(m&&(s=pc(m.call(new t)))!==Object.prototype&&s.next&&(pc(s)!==bc&&(fc?fc(s,bc):cc(s[xc])||yc(s,xc,Rc)),hc(s,p,!0)),gc&&o===Ac&&d&&d.name!==Ac&&(vc?dc(h,"name",Ac):(f=!0,y=function(){return uc(d,this)})),o)if(u={values:l(Ac),keys:i?y:l(Sc),entries:l(Ec)},a)for(c in u)(wc||f||!(c in h))&&yc(h,c,u[c]);else sc({target:e,proto:!0,forced:wc||f},u);return h[xc]!==y&&yc(h,xc,y,{name:o}),mc[e]=y,u},Pc=function(t,e){return{value:t,done:e}},kc=ct,jc=function(t){Pu[Ou][t]=!0},Tc=Iu,Ic=Xr,_c=Xe.f,Nc=Oc,Cc=Pc,Uc=I,Lc="Array Iterator",Fc=Ic.set,Bc=Ic.getterFor(Lc),Dc=Nc(Array,"Array",(function(t,e){Fc(this,{type:Lc,target:kc(t),index:0,kind:e})}),(function(){var t=Bc(this),e=t.target,r=t.kind,n=t.index++;if(!e||n>=e.length)return t.target=void 0,Cc(void 0,!0);switch(r){case"keys":return Cc(n,!1);case"values":return Cc(e[n],!1)}return Cc([n,e[n]],!1)}),"values"),Mc=Tc.Arguments=Tc.Array;if(jc("keys"),jc("values"),jc("entries"),Uc&&"values"!==Mc.name)try{_c(Mc,"name",{value:"values"})}catch(t){}var qc=qo,Wc=Co?{}.toString:function(){return"[object "+qc(this)+"]"};Co||Sn(Object.prototype,"toString",Wc,{unsafe:!0});var Gc=Cs.charAt,zc=ea,Hc=Xr,Vc=Oc,$c=Pc,Yc="String Iterator",Kc=Hc.set,Jc=Hc.getterFor(Yc);Vc(String,"String",(function(t){Kc(this,{type:Yc,string:zc(t),index:0})}),(function(){var t,e=Jc(this),r=e.string,n=e.index;return n>=r.length?$c(void 0,!0):(t=Gc(r,n),e.index+=t.length,$c(t,!1))}));var Qc={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Xc=Me("span").classList,Zc=Xc&&Xc.constructor&&Xc.constructor.prototype,tl=Zc===Object.prototype?void 0:Zc,el=k,rl=Qc,nl=tl,ol=Dc,il=gr,al=Re,sl=al("iterator"),ul=al("toStringTag"),cl=ol.values,ll=function(t,e){if(t){if(t[sl]!==cl)try{il(t,sl,cl)}catch(e){t[sl]=cl}if(t[ul]||il(t,ul,e),rl[e])for(var r in ol)if(t[r]!==ol[r])try{il(t,r,ol[r])}catch(e){t[r]=ol[r]}}};for(var pl in rl)ll(el[pl]&&el[pl].prototype,pl);ll(nl,"DOMTokenList");var fl=T,hl=I,dl=Re("iterator"),yl=!fl((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),n="";return t.pathname="c%20d",e.forEach((function(t,r){e.delete("b"),n+=r+t})),r.delete("a",2),r.delete("b",void 0),!e.size&&!hl||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[dl]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host})),ml=Gt,gl=_,vl=ms(ms.bind),bl=function(t,e){return ml(t),void 0===e?t:gl?vl(t,e):function(){return t.apply(e,arguments)}},wl=wt,xl=TypeError,Sl=function(t,e){if(wl(e,t))return t;throw xl("Incorrect invocation")},Al=I,El=$,Rl=U,Ol=T,Pl=fa,kl=Qn,jl=L,Tl=ue,Il=rt,_l=Object.assign,Nl=Object.defineProperty,Cl=El([].concat),Ul=!_l||Ol((function(){if(Al&&1!==_l({b:1},_l(Nl({},"a",{enumerable:!0,get:function(){Nl(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!==_l({},t)[r]||Pl(_l({},e)).join("")!==n}))?function(t,e){for(var r=Tl(t),n=arguments.length,o=1,i=kl.f,a=jl.f;n>o;)for(var s,u=Il(arguments[o++]),c=i?Cl(Pl(u),i(u)):Pl(u),l=c.length,p=0;l>p;)s=c[p++],Al&&!Rl(a,u,s)||(r[s]=u[s]);return r}:_l,Ll=U,Fl=nr,Bl=Vt,Dl=nr,Ml=function(t,e,r){var n,o;Fl(t);try{if(!(n=Bl(t,"return"))){if("throw"===e)throw r;return r}n=Ll(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return Fl(n),r},ql=Iu,Wl=Re("iterator"),Gl=Array.prototype,zl=qo,Hl=Vt,Vl=nt,$l=Iu,Yl=Re("iterator"),Kl=function(t){if(!Vl(t))return Hl(t,Yl)||Hl(t,"@@iterator")||$l[zl(t)]},Jl=U,Ql=Gt,Xl=nr,Zl=Dt,tp=Kl,ep=TypeError,rp=function(t,e){var r=arguments.length<2?tp(t):e;if(Ql(r))return Xl(Jl(r,t));throw ep(Zl(t)+" is not iterable")},np=bl,op=U,ip=ue,ap=function(t,e,r,n){try{return n?e(Dl(r)[0],r[1]):e(r)}catch(e){Ml(t,"throw",e)}},sp=function(t){return void 0!==t&&(ql.Array===t||Gl[Wl]===t)},up=ei,cp=Ln,lp=_o,pp=rp,fp=Kl,hp=Array,dp=In,yp=Ln,mp=_o,gp=Array,vp=Math.max,bp=function(t,e,r){for(var n=yp(t),o=dp(e,n),i=dp(void 0===r?n:r,n),a=gp(vp(i-o,0)),s=0;o<i;o++,s++)mp(a,s,t[o]);return a.length=s,a},wp=$,xp=2147483647,Sp=/[^\0-\u007E]/,Ap=/[.\u3002\uFF0E\uFF61]/g,Ep="Overflow: input needs wider integers to process",Rp=RangeError,Op=wp(Ap.exec),Pp=Math.floor,kp=String.fromCharCode,jp=wp("".charCodeAt),Tp=wp([].join),Ip=wp([].push),_p=wp("".replace),Np=wp("".split),Cp=wp("".toLowerCase),Up=function(t){return t+22+75*(t<26)},Lp=function(t,e,r){var n=0;for(t=r?Pp(t/700):t>>1,t+=Pp(t/e);t>455;)t=Pp(t/35),n+=36;return Pp(n+36*t/(t+38))},Fp=function(t){var e=[];t=function(t){for(var e=[],r=0,n=t.length;r<n;){var o=jp(t,r++);if(o>=55296&&o<=56319&&r<n){var i=jp(t,r++);56320==(64512&i)?Ip(e,((1023&o)<<10)+(1023&i)+65536):(Ip(e,o),r--)}else Ip(e,o)}return e}(t);var r,n,o=t.length,i=128,a=0,s=72;for(r=0;r<t.length;r++)(n=t[r])<128&&Ip(e,kp(n));var u=e.length,c=u;for(u&&Ip(e,"-");c<o;){var l=xp;for(r=0;r<t.length;r++)(n=t[r])>=i&&n<l&&(l=n);var p=c+1;if(l-i>Pp((xp-a)/p))throw Rp(Ep);for(a+=(l-i)*p,i=l,r=0;r<t.length;r++){if((n=t[r])<i&&++a>xp)throw Rp(Ep);if(n===i){for(var f=a,h=36;;){var d=h<=s?1:h>=s+26?26:h-s;if(f<d)break;var y=f-d,m=36-d;Ip(e,kp(Up(d+y%m))),f=Pp(y/m),h+=36}Ip(e,kp(Up(f))),s=Lp(a,p,c===u),a=0,c++}}a++,i++}return Tp(e,"")},Bp=TypeError,Dp=function(t,e){if(t<e)throw Bp("Not enough arguments");return t},Mp=Sn,qp=bp,Wp=Math.floor,Gp=function(t,e){var r=t.length,n=Wp(r/2);return r<8?zp(t,e):Hp(t,Gp(qp(t,0,n),e),Gp(qp(t,n),e),e)},zp=function(t,e){for(var r,n,o=t.length,i=1;i<o;){for(n=i,r=t[i];n&&e(t[n-1],r)>0;)t[n]=t[--n];n!==i++&&(t[n]=r)}return t},Hp=function(t,e,r,n){for(var o=e.length,i=r.length,a=0,s=0;a<o||s<i;)t[a+s]=a<o&&s<i?n(e[a],r[s])<=0?e[a++]:r[s++]:a<o?e[a++]:r[s++];return t},Vp=Ro,$p=k,Yp=U,Kp=$,Jp=I,Qp=yl,Xp=Sn,Zp=ji,tf=function(t,e,r){for(var n in e)Mp(t,n,e[n],r);return t},ef=Zu,rf=ac,nf=Xr,of=Sl,af=ht,sf=pe,uf=bl,cf=qo,lf=nr,pf=mt,ff=ea,hf=La,df=W,yf=rp,mf=Kl,gf=Dp,vf=Gp,bf=Re("iterator"),wf="URLSearchParams",xf=wf+"Iterator",Sf=nf.set,Af=nf.getterFor(wf),Ef=nf.getterFor(xf),Rf=Object.getOwnPropertyDescriptor,Of=function(t){if(!Jp)return $p[t];var e=Rf($p,t);return e&&e.value},Pf=Of("fetch"),kf=Of("Request"),jf=Of("Headers"),Tf=kf&&kf.prototype,If=jf&&jf.prototype,_f=$p.RegExp,Nf=$p.TypeError,Cf=$p.decodeURIComponent,Uf=$p.encodeURIComponent,Lf=Kp("".charAt),Ff=Kp([].join),Bf=Kp([].push),Df=Kp("".replace),Mf=Kp([].shift),qf=Kp([].splice),Wf=Kp("".split),Gf=Kp("".slice),zf=/\+/g,Hf=Array(4),Vf=function(t){return Hf[t-1]||(Hf[t-1]=_f("((?:%[\\da-f]{2}){"+t+"})","gi"))},$f=function(t){try{return Cf(t)}catch(e){return t}},Yf=function(t){var e=Df(t,zf," "),r=4;try{return Cf(e)}catch(t){for(;r;)e=Df(e,Vf(r--),$f);return e}},Kf=/[!'()~]|%20/g,Jf={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Qf=function(t){return Jf[t]},Xf=function(t){return Df(Uf(t),Kf,Qf)},Zf=rf((function(t,e){Sf(this,{type:xf,iterator:yf(Af(t).entries),kind:e})}),"Iterator",(function(){var t=Ef(this),e=t.kind,r=t.iterator.next(),n=r.value;return r.done||(r.value="keys"===e?n.key:"values"===e?n.value:[n.key,n.value]),r}),!0),th=function(t){this.entries=[],this.url=null,void 0!==t&&(pf(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===Lf(t,0)?Gf(t,1):t:ff(t)))};th.prototype={type:wf,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,r,n,o,i,a,s,u=mf(t);if(u)for(r=(e=yf(t,u)).next;!(n=Yp(r,e)).done;){if(i=(o=yf(lf(n.value))).next,(a=Yp(i,o)).done||(s=Yp(i,o)).done||!Yp(i,o).done)throw Nf("Expected sequence with length 2");Bf(this.entries,{key:ff(a.value),value:ff(s.value)})}else for(var c in t)sf(t,c)&&Bf(this.entries,{key:c,value:ff(t[c])})},parseQuery:function(t){if(t)for(var e,r,n=Wf(t,"&"),o=0;o<n.length;)(e=n[o++]).length&&(r=Wf(e,"="),Bf(this.entries,{key:Yf(Mf(r)),value:Yf(Ff(r,"="))}))},serialize:function(){for(var t,e=this.entries,r=[],n=0;n<e.length;)t=e[n++],Bf(r,Xf(t.key)+"="+Xf(t.value));return Ff(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var eh=function(){of(this,rh);var t=Sf(this,new th(arguments.length>0?arguments[0]:void 0));Jp||(this.size=t.entries.length)},rh=eh.prototype;if(tf(rh,{append:function(t,e){var r=Af(this);gf(arguments.length,2),Bf(r.entries,{key:ff(t),value:ff(e)}),Jp||this.length++,r.updateURL()},delete:function(t){for(var e=Af(this),r=gf(arguments.length,1),n=e.entries,o=ff(t),i=r<2?void 0:arguments[1],a=void 0===i?i:ff(i),s=0;s<n.length;){var u=n[s];if(u.key!==o||void 0!==a&&u.value!==a)s++;else if(qf(n,s,1),void 0!==a)break}Jp||(this.size=n.length),e.updateURL()},get:function(t){var e=Af(this).entries;gf(arguments.length,1);for(var r=ff(t),n=0;n<e.length;n++)if(e[n].key===r)return e[n].value;return null},getAll:function(t){var e=Af(this).entries;gf(arguments.length,1);for(var r=ff(t),n=[],o=0;o<e.length;o++)e[o].key===r&&Bf(n,e[o].value);return n},has:function(t){for(var e=Af(this).entries,r=gf(arguments.length,1),n=ff(t),o=r<2?void 0:arguments[1],i=void 0===o?o:ff(o),a=0;a<e.length;){var s=e[a++];if(s.key===n&&(void 0===i||s.value===i))return!0}return!1},set:function(t,e){var r=Af(this);gf(arguments.length,1);for(var n,o=r.entries,i=!1,a=ff(t),s=ff(e),u=0;u<o.length;u++)(n=o[u]).key===a&&(i?qf(o,u--,1):(i=!0,n.value=s));i||Bf(o,{key:a,value:s}),Jp||(this.size=o.length),r.updateURL()},sort:function(){var t=Af(this);vf(t.entries,(function(t,e){return t.key>e.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,r=Af(this).entries,n=uf(t,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((e=r[o++]).value,e.key,this)},keys:function(){return new Zf(this,"keys")},values:function(){return new Zf(this,"values")},entries:function(){return new Zf(this,"entries")}},{enumerable:!0}),Xp(rh,bf,rh.entries,{name:"entries"}),Xp(rh,"toString",(function(){return Af(this).serialize()}),{enumerable:!0}),Jp&&Zp(rh,"size",{get:function(){return Af(this).entries.length},configurable:!0,enumerable:!0}),ef(eh,wf),Vp({global:!0,constructor:!0,forced:!Qp},{URLSearchParams:eh}),!Qp&&af(jf)){var nh=Kp(If.has),oh=Kp(If.set),ih=function(t){if(pf(t)){var e,r=t.body;if(cf(r)===wf)return e=t.headers?new jf(t.headers):new jf,nh(e,"content-type")||oh(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),hf(t,{body:df(0,ff(r)),headers:df(0,e)})}return t};if(af(Pf)&&Vp({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(t){return Pf(t,arguments.length>1?ih(arguments[1]):{})}}),af(kf)){var ah=function(t){return of(this,Tf),new kf(t,arguments.length>1?ih(arguments[1]):{})};Tf.constructor=ah,ah.prototype=Tf,Vp({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ah})}}var sh,uh=Ro,ch=I,lh=yl,ph=k,fh=bl,hh=$,dh=Sn,yh=ji,mh=Sl,gh=pe,vh=Ul,bh=function(t){var e=ip(t),r=up(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=np(o,n>2?arguments[2]:void 0));var a,s,u,c,l,p,f=fp(e),h=0;if(!f||this===hp&&sp(f))for(a=cp(e),s=r?new this(a):hp(a);a>h;h++)p=i?o(e[h],h):e[h],lp(s,h,p);else for(l=(c=pp(e,f)).next,s=r?new this:[];!(u=op(l,c)).done;h++)p=i?ap(c,o,[u.value,h],!0):u.value,lp(s,h,p);return s.length=h,s},wh=bp,xh=Cs.codeAt,Sh=function(t){var e,r,n=[],o=Np(_p(Cp(t),Ap,"."),".");for(e=0;e<o.length;e++)r=o[e],Ip(n,Op(Sp,r)?"xn--"+Fp(r):r);return Tp(n,".")},Ah=ea,Eh=Zu,Rh=Dp,Oh={URLSearchParams:eh,getState:Af},Ph=Xr,kh=Ph.set,jh=Ph.getterFor("URL"),Th=Oh.URLSearchParams,Ih=Oh.getState,_h=ph.URL,Nh=ph.TypeError,Ch=ph.parseInt,Uh=Math.floor,Lh=Math.pow,Fh=hh("".charAt),Bh=hh(/./.exec),Dh=hh([].join),Mh=hh(1..toString),qh=hh([].pop),Wh=hh([].push),Gh=hh("".replace),zh=hh([].shift),Hh=hh("".split),Vh=hh("".slice),$h=hh("".toLowerCase),Yh=hh([].unshift),Kh="Invalid scheme",Jh="Invalid host",Qh="Invalid port",Xh=/[a-z]/i,Zh=/[\d+-.a-z]/i,td=/\d/,ed=/^0x/i,rd=/^[0-7]+$/,nd=/^\d+$/,od=/^[\da-f]+$/i,id=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ad=/[\0\t\n\r #/:<>?@[\\\]^|]/,sd=/^[\u0000-\u0020]+/,ud=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,cd=/[\t\n\r]/g,ld=function(t){var e,r,n,o;if("number"==typeof t){for(e=[],r=0;r<4;r++)Yh(e,t%256),t=Uh(t/256);return Dh(e,".")}if("object"==typeof t){for(e="",n=function(t){for(var e=null,r=1,n=null,o=0,i=0;i<8;i++)0!==t[i]?(o>r&&(e=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(e=n,r=o),e}(t),r=0;r<8;r++)o&&0===t[r]||(o&&(o=!1),n===r?(e+=r?":":"::",o=!0):(e+=Mh(t[r],16),r<7&&(e+=":")));return"["+e+"]"}return t},pd={},fd=vh({},pd,{" ":1,'"':1,"<":1,">":1,"`":1}),hd=vh({},fd,{"#":1,"?":1,"{":1,"}":1}),dd=vh({},hd,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),yd=function(t,e){var r=xh(t,0);return r>32&&r<127&&!gh(e,t)?t:encodeURIComponent(t)},md={ftp:21,file:null,http:80,https:443,ws:80,wss:443},gd=function(t,e){var r;return 2===t.length&&Bh(Xh,Fh(t,0))&&(":"===(r=Fh(t,1))||!e&&"|"===r)},vd=function(t){var e;return t.length>1&&gd(Vh(t,0,2))&&(2===t.length||"/"===(e=Fh(t,2))||"\\"===e||"?"===e||"#"===e)},bd=function(t){return"."===t||"%2e"===$h(t)},wd={},xd={},Sd={},Ad={},Ed={},Rd={},Od={},Pd={},kd={},jd={},Td={},Id={},_d={},Nd={},Cd={},Ud={},Ld={},Fd={},Bd={},Dd={},Md={},qd=function(t,e,r){var n,o,i,a=Ah(t);if(e){if(o=this.parse(a))throw Nh(o);this.searchParams=null}else{if(void 0!==r&&(n=new qd(r,!0)),o=this.parse(a,null,n))throw Nh(o);(i=Ih(new Th)).bindURL(this),this.searchParams=i}};qd.prototype={type:"URL",parse:function(t,e,r){var n,o,i,a,s,u=this,c=e||wd,l=0,p="",f=!1,h=!1,d=!1;for(t=Ah(t),e||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,t=Gh(t,sd,""),t=Gh(t,ud,"$1")),t=Gh(t,cd,""),n=bh(t);l<=n.length;){switch(o=n[l],c){case wd:if(!o||!Bh(Xh,o)){if(e)return Kh;c=Sd;continue}p+=$h(o),c=xd;break;case xd:if(o&&(Bh(Zh,o)||"+"===o||"-"===o||"."===o))p+=$h(o);else{if(":"!==o){if(e)return Kh;p="",c=Sd,l=0;continue}if(e&&(u.isSpecial()!==gh(md,p)||"file"===p&&(u.includesCredentials()||null!==u.port)||"file"===u.scheme&&!u.host))return;if(u.scheme=p,e)return void(u.isSpecial()&&md[u.scheme]===u.port&&(u.port=null));p="","file"===u.scheme?c=Nd:u.isSpecial()&&r&&r.scheme===u.scheme?c=Ad:u.isSpecial()?c=Pd:"/"===n[l+1]?(c=Ed,l++):(u.cannotBeABaseURL=!0,Wh(u.path,""),c=Bd)}break;case Sd:if(!r||r.cannotBeABaseURL&&"#"!==o)return Kh;if(r.cannotBeABaseURL&&"#"===o){u.scheme=r.scheme,u.path=wh(r.path),u.query=r.query,u.fragment="",u.cannotBeABaseURL=!0,c=Md;break}c="file"===r.scheme?Nd:Rd;continue;case Ad:if("/"!==o||"/"!==n[l+1]){c=Rd;continue}c=kd,l++;break;case Ed:if("/"===o){c=jd;break}c=Fd;continue;case Rd:if(u.scheme=r.scheme,o===sh)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=wh(r.path),u.query=r.query;else if("/"===o||"\\"===o&&u.isSpecial())c=Od;else if("?"===o)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=wh(r.path),u.query="",c=Dd;else{if("#"!==o){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=wh(r.path),u.path.length--,c=Fd;continue}u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=wh(r.path),u.query=r.query,u.fragment="",c=Md}break;case Od:if(!u.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,c=Fd;continue}c=jd}else c=kd;break;case Pd:if(c=kd,"/"!==o||"/"!==Fh(p,l+1))continue;l++;break;case kd:if("/"!==o&&"\\"!==o){c=jd;continue}break;case jd:if("@"===o){f&&(p="%40"+p),f=!0,i=bh(p);for(var y=0;y<i.length;y++){var m=i[y];if(":"!==m||d){var g=yd(m,dd);d?u.password+=g:u.username+=g}else d=!0}p=""}else if(o===sh||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()){if(f&&""===p)return"Invalid authority";l-=bh(p).length+1,p="",c=Td}else p+=o;break;case Td:case Id:if(e&&"file"===u.scheme){c=Ud;continue}if(":"!==o||h){if(o===sh||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()){if(u.isSpecial()&&""===p)return Jh;if(e&&""===p&&(u.includesCredentials()||null!==u.port))return;if(a=u.parseHost(p))return a;if(p="",c=Ld,e)return;continue}"["===o?h=!0:"]"===o&&(h=!1),p+=o}else{if(""===p)return Jh;if(a=u.parseHost(p))return a;if(p="",c=_d,e===Id)return}break;case _d:if(!Bh(td,o)){if(o===sh||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()||e){if(""!==p){var v=Ch(p,10);if(v>65535)return Qh;u.port=u.isSpecial()&&v===md[u.scheme]?null:v,p=""}if(e)return;c=Ld;continue}return Qh}p+=o;break;case Nd:if(u.scheme="file","/"===o||"\\"===o)c=Cd;else{if(!r||"file"!==r.scheme){c=Fd;continue}switch(o){case sh:u.host=r.host,u.path=wh(r.path),u.query=r.query;break;case"?":u.host=r.host,u.path=wh(r.path),u.query="",c=Dd;break;case"#":u.host=r.host,u.path=wh(r.path),u.query=r.query,u.fragment="",c=Md;break;default:vd(Dh(wh(n,l),""))||(u.host=r.host,u.path=wh(r.path),u.shortenPath()),c=Fd;continue}}break;case Cd:if("/"===o||"\\"===o){c=Ud;break}r&&"file"===r.scheme&&!vd(Dh(wh(n,l),""))&&(gd(r.path[0],!0)?Wh(u.path,r.path[0]):u.host=r.host),c=Fd;continue;case Ud:if(o===sh||"/"===o||"\\"===o||"?"===o||"#"===o){if(!e&&gd(p))c=Fd;else if(""===p){if(u.host="",e)return;c=Ld}else{if(a=u.parseHost(p))return a;if("localhost"===u.host&&(u.host=""),e)return;p="",c=Ld}continue}p+=o;break;case Ld:if(u.isSpecial()){if(c=Fd,"/"!==o&&"\\"!==o)continue}else if(e||"?"!==o)if(e||"#"!==o){if(o!==sh&&(c=Fd,"/"!==o))continue}else u.fragment="",c=Md;else u.query="",c=Dd;break;case Fd:if(o===sh||"/"===o||"\\"===o&&u.isSpecial()||!e&&("?"===o||"#"===o)){if(".."===(s=$h(s=p))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(u.shortenPath(),"/"===o||"\\"===o&&u.isSpecial()||Wh(u.path,"")):bd(p)?"/"===o||"\\"===o&&u.isSpecial()||Wh(u.path,""):("file"===u.scheme&&!u.path.length&&gd(p)&&(u.host&&(u.host=""),p=Fh(p,0)+":"),Wh(u.path,p)),p="","file"===u.scheme&&(o===sh||"?"===o||"#"===o))for(;u.path.length>1&&""===u.path[0];)zh(u.path);"?"===o?(u.query="",c=Dd):"#"===o&&(u.fragment="",c=Md)}else p+=yd(o,hd);break;case Bd:"?"===o?(u.query="",c=Dd):"#"===o?(u.fragment="",c=Md):o!==sh&&(u.path[0]+=yd(o,pd));break;case Dd:e||"#"!==o?o!==sh&&("'"===o&&u.isSpecial()?u.query+="%27":u.query+="#"===o?"%23":yd(o,pd)):(u.fragment="",c=Md);break;case Md:o!==sh&&(u.fragment+=yd(o,fd))}l++}},parseHost:function(t){var e,r,n;if("["===Fh(t,0)){if("]"!==Fh(t,t.length-1))return Jh;if(e=function(t){var e,r,n,o,i,a,s,u=[0,0,0,0,0,0,0,0],c=0,l=null,p=0,f=function(){return Fh(t,p)};if(":"===f()){if(":"!==Fh(t,1))return;p+=2,l=++c}for(;f();){if(8===c)return;if(":"!==f()){for(e=r=0;r<4&&Bh(od,f());)e=16*e+Ch(f(),16),p++,r++;if("."===f()){if(0===r)return;if(p-=r,c>6)return;for(n=0;f();){if(o=null,n>0){if(!("."===f()&&n<4))return;p++}if(!Bh(td,f()))return;for(;Bh(td,f());){if(i=Ch(f(),10),null===o)o=i;else{if(0===o)return;o=10*o+i}if(o>255)return;p++}u[c]=256*u[c]+o,2!=++n&&4!==n||c++}if(4!==n)return;break}if(":"===f()){if(p++,!f())return}else if(f())return;u[c++]=e}else{if(null!==l)return;p++,l=++c}}if(null!==l)for(a=c-l,c=7;0!==c&&a>0;)s=u[c],u[c--]=u[l+a-1],u[l+--a]=s;else if(8!==c)return;return u}(Vh(t,1,-1)),!e)return Jh;this.host=e}else if(this.isSpecial()){if(t=Sh(t),Bh(id,t))return Jh;if(e=function(t){var e,r,n,o,i,a,s,u=Hh(t,".");if(u.length&&""===u[u.length-1]&&u.length--,(e=u.length)>4)return t;for(r=[],n=0;n<e;n++){if(""===(o=u[n]))return t;if(i=10,o.length>1&&"0"===Fh(o,0)&&(i=Bh(ed,o)?16:8,o=Vh(o,8===i?1:2)),""===o)a=0;else{if(!Bh(10===i?nd:8===i?rd:od,o))return t;a=Ch(o,i)}Wh(r,a)}for(n=0;n<e;n++)if(a=r[n],n===e-1){if(a>=Lh(256,5-e))return null}else if(a>255)return null;for(s=qh(r),n=0;n<r.length;n++)s+=r[n]*Lh(256,3-n);return s}(t),null===e)return Jh;this.host=e}else{if(Bh(ad,t))return Jh;for(e="",r=bh(t),n=0;n<r.length;n++)e+=yd(r[n],pd);this.host=e}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return gh(md,this.scheme)},shortenPath:function(){var t=this.path,e=t.length;!e||"file"===this.scheme&&1===e&&gd(t[0],!0)||t.length--},serialize:function(){var t=this,e=t.scheme,r=t.username,n=t.password,o=t.host,i=t.port,a=t.path,s=t.query,u=t.fragment,c=e+":";return null!==o?(c+="//",t.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=ld(o),null!==i&&(c+=":"+i)):"file"===e&&(c+="//"),c+=t.cannotBeABaseURL?a[0]:a.length?"/"+Dh(a,"/"):"",null!==s&&(c+="?"+s),null!==u&&(c+="#"+u),c},setHref:function(t){var e=this.parse(t);if(e)throw Nh(e);this.searchParams.update()},getOrigin:function(){var t=this.scheme,e=this.port;if("blob"===t)try{return new Wd(t.path[0]).origin}catch(t){return"null"}return"file"!==t&&this.isSpecial()?t+"://"+ld(this.host)+(null!==e?":"+e:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(Ah(t)+":",wd)},getUsername:function(){return this.username},setUsername:function(t){var e=bh(Ah(t));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<e.length;r++)this.username+=yd(e[r],dd)}},getPassword:function(){return this.password},setPassword:function(t){var e=bh(Ah(t));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<e.length;r++)this.password+=yd(e[r],dd)}},getHost:function(){var t=this.host,e=this.port;return null===t?"":null===e?ld(t):ld(t)+":"+e},setHost:function(t){this.cannotBeABaseURL||this.parse(t,Td)},getHostname:function(){var t=this.host;return null===t?"":ld(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,Id)},getPort:function(){var t=this.port;return null===t?"":Ah(t)},setPort:function(t){this.cannotHaveUsernamePasswordPort()||(""===(t=Ah(t))?this.port=null:this.parse(t,_d))},getPathname:function(){var t=this.path;return this.cannotBeABaseURL?t[0]:t.length?"/"+Dh(t,"/"):""},setPathname:function(t){this.cannotBeABaseURL||(this.path=[],this.parse(t,Ld))},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){""===(t=Ah(t))?this.query=null:("?"===Fh(t,0)&&(t=Vh(t,1)),this.query="",this.parse(t,Dd)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){""!==(t=Ah(t))?("#"===Fh(t,0)&&(t=Vh(t,1)),this.fragment="",this.parse(t,Md)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Wd=function(t){var e=mh(this,Gd),r=Rh(arguments.length,1)>1?arguments[1]:void 0,n=kh(e,new qd(t,!1,r));ch||(e.href=n.serialize(),e.origin=n.getOrigin(),e.protocol=n.getProtocol(),e.username=n.getUsername(),e.password=n.getPassword(),e.host=n.getHost(),e.hostname=n.getHostname(),e.port=n.getPort(),e.pathname=n.getPathname(),e.search=n.getSearch(),e.searchParams=n.getSearchParams(),e.hash=n.getHash())},Gd=Wd.prototype,zd=function(t,e){return{get:function(){return jh(this)[t]()},set:e&&function(t){return jh(this)[e](t)},configurable:!0,enumerable:!0}};if(ch&&(yh(Gd,"href",zd("serialize","setHref")),yh(Gd,"origin",zd("getOrigin")),yh(Gd,"protocol",zd("getProtocol","setProtocol")),yh(Gd,"username",zd("getUsername","setUsername")),yh(Gd,"password",zd("getPassword","setPassword")),yh(Gd,"host",zd("getHost","setHost")),yh(Gd,"hostname",zd("getHostname","setHostname")),yh(Gd,"port",zd("getPort","setPort")),yh(Gd,"pathname",zd("getPathname","setPathname")),yh(Gd,"search",zd("getSearch","setSearch")),yh(Gd,"searchParams",zd("getSearchParams")),yh(Gd,"hash",zd("getHash","setHash"))),dh(Gd,"toJSON",(function(){return jh(this).serialize()}),{enumerable:!0}),dh(Gd,"toString",(function(){return jh(this).serialize()}),{enumerable:!0}),_h){var Hd=_h.createObjectURL,Vd=_h.revokeObjectURL;Hd&&dh(Wd,"createObjectURL",fh(Hd,_h)),Vd&&dh(Wd,"revokeObjectURL",fh(Vd,_h))}Eh(Wd,"URL"),uh({global:!0,constructor:!0,forced:!lh,sham:!ch},{URL:Wd});var $d="\t\n\v\f\r                 \u2028\u2029\ufeff",Yd=at,Kd=ea,Jd=$d,Qd=$("".replace),Xd=RegExp("^["+Jd+"]+"),Zd=RegExp("(^|[^"+Jd+"])["+Jd+"]+$"),ty=function(t){return function(e){var r=Kd(Yd(e));return 1&t&&(r=Qd(r,Xd,"")),2&t&&(r=Qd(r,Zd,"$1")),r}},ey={start:ty(1),end:ty(2),trim:ty(3)},ry=k,ny=T,oy=ea,iy=ey.trim,ay=$d,sy=$("".charAt),uy=ry.parseFloat,cy=ry.Symbol,ly=cy&&cy.iterator,py=1/uy(ay+"-0")!=-1/0||ly&&!ny((function(){uy(Object(ly))}))?function(t){var e=iy(oy(t)),r=uy(e);return 0===r&&"-"===sy(e,0)?-0:r}:uy;Ro({global:!0,forced:parseFloat!==py},{parseFloat:py});var fy=$,hy=Sn,dy=Date.prototype,yy="Invalid Date",my="toString",gy=fy(dy[my]),vy=fy(dy.getTime);String(new Date(NaN))!==yy&&hy(dy,my,(function(){var t=vy(this);return t==t?gy(this):yy}));var by=U,wy=pe,xy=wt,Sy=na,Ay=RegExp.prototype,Ey=Er.PROPER,Ry=Sn,Oy=nr,Py=ea,ky=T,jy=function(t){var e=t.flags;return void 0!==e||"flags"in Ay||wy(t,"flags")||!xy(Ay,t)?e:by(Sy,t)},Ty="toString",Iy=RegExp.prototype[Ty],_y=ky((function(){return"/a/b"!==Iy.call({source:"a",flags:"b"})})),Ny=Ey&&Iy.name!==Ty;(_y||Ny)&&Ry(RegExp.prototype,Ty,(function(){var t=Oy(this);return"/"+Py(t.source)+"/"+Py(jy(t))}),{unsafe:!0});var Cy=bl,Uy=rt,Ly=ue,Fy=Ln,By=ui,Dy=$([].push),My=function(t){var e=1===t,r=2===t,n=3===t,o=4===t,i=6===t,a=7===t,s=5===t||i;return function(u,c,l,p){for(var f,h,d=Ly(u),y=Uy(d),m=Cy(c,l),g=Fy(y),v=0,b=p||By,w=e?b(u,g):r||a?b(u,0):void 0;g>v;v++)if((s||v in y)&&(h=m(f=y[v],v,d),t))if(e)w[v]=h;else if(h)switch(t){case 3:return!0;case 5:return f;case 6:return v;case 2:Dy(w,f)}else switch(t){case 4:return!1;case 7:Dy(w,f)}return i?-1:n||o?o:w}},qy={forEach:My(0),map:My(1),filter:My(2),some:My(3),every:My(4),find:My(5),findIndex:My(6),filterReject:My(7)},Wy=qy.map;Ro({target:"Array",proto:!0,forced:!fi("map")},{map:function(t){return Wy(this,t,arguments.length>1?arguments[1]:void 0)}});var Gy=function(t){var e=t.endpointName,r=t.guestSpaceId,n=t.preview,o=void 0!==r?"/guest/".concat(r):"",i=n?"/preview":"";return"/k".concat(o,"/v1").concat(i,"/").concat(e,".json")},zy=["endpointName"],Hy=function(){function t(e,r){u(this,t),this.client=e,this.guestSpaceId=r,this.REQUESTS_LENGTH_LIMIT=20}return l(t,[{key:"send",value:function(t){var e=this,r=t.requests.map((function(t){if("endpointName"in t){var r=t.endpointName,o=v(t,zy);return n({api:e.buildPathWithGuestSpaceId({endpointName:r})},o)}return t})),o=this.buildPathWithGuestSpaceId({endpointName:"bulkRequest"});return this.client.post(o,{requests:r})}},{key:"buildPathWithGuestSpaceId",value:function(t){return Gy(n(n({},t),{},{guestSpaceId:this.guestSpaceId}))}}]),t}(),Vy=["preview"],$y=["preview"],Yy=["preview"],Ky=["preview"],Jy=["preview"],Qy=["preview"],Xy=["preview"],Zy=["preview"],tm=["preview"],em=["preview"],rm=["preview"],nm=["preview"],om=["preview"],im=["preview"],am=function(){function t(e,r){u(this,t),this.client=e,this.guestSpaceId=r}var e;return l(t,[{key:"getFormFields",value:function(t){var e=t.preview,r=v(t,Vy),o=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:e});return this.client.get(o,n({},r))}},{key:"addFormFields",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.post(e,t)}},{key:"updateFormFields",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.put(e,t)}},{key:"deleteFormFields",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.delete(e,t)}},{key:"getFormLayout",value:function(t){var e=t.preview,r=v(t,$y),o=this.buildPathWithGuestSpaceId({endpointName:"app/form/layout",preview:e});return this.client.get(o,n({},r))}},{key:"updateFormLayout",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/form/layout",preview:!0});return this.client.put(e,t)}},{key:"getViews",value:function(t){var e=t.preview,r=v(t,Yy),n=this.buildPathWithGuestSpaceId({endpointName:"app/views",preview:e});return this.client.get(n,r)}},{key:"updateViews",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/views",preview:!0});return this.client.put(e,t)}},{key:"getApp",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app"});return this.client.get(e,t)}},{key:"getApps",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"apps"});return this.client.get(e,t)}},{key:"addApp",value:(e=s(o().mark((function t(e){var r,i,a,s,u,c;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.name,i=e.space,a=this.buildPathWithGuestSpaceId({endpointName:"app",preview:!0}),!i){t.next=9;break}return s=this.buildPathWithGuestSpaceId({endpointName:"space"}),t.next=6,this.client.get(s,{id:i});case 6:return u=t.sent,c=u.defaultThread,t.abrupt("return",this.client.post(a,n(n({},e),{},{thread:c})));case 9:return t.abrupt("return",this.client.post(a,{name:r}));case 10:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"getAppSettings",value:function(t){var e=t.preview,r=v(t,Ky),n=this.buildPathWithGuestSpaceId({endpointName:"app/settings",preview:e});return this.client.get(n,r)}},{key:"updateAppSettings",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/settings",preview:!0});return this.client.put(e,t)}},{key:"getProcessManagement",value:function(t){var e=t.preview,r=v(t,Jy),n=this.buildPathWithGuestSpaceId({endpointName:"app/status",preview:e});return this.client.get(n,r)}},{key:"updateProcessManagement",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/status",preview:!0});return this.client.put(e,t)}},{key:"getDeployStatus",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/deploy",preview:!0});return this.client.get(e,t)}},{key:"deployApp",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/deploy",preview:!0});return this.client.post(e,t)}},{key:"getFieldAcl",value:function(t){var e=t.preview,r=v(t,Qy),o=this.buildPathWithGuestSpaceId({endpointName:"field/acl",preview:e});return this.client.get(o,n({},r))}},{key:"updateFieldAcl",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"field/acl",preview:!0});return this.client.put(e,t)}},{key:"getAppAcl",value:function(t){var e=t.preview,r=v(t,Xy),o=this.buildPathWithGuestSpaceId({endpointName:"app/acl",preview:e});return this.client.get(o,n({},r))}},{key:"updateAppAcl",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/acl",preview:!0});return this.client.put(e,t)}},{key:"evaluateRecordsAcl",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"records/acl/evaluate"});return this.client.get(e,t)}},{key:"getRecordAcl",value:function(t){var e=t.preview,r=v(t,Zy),o=this.buildPathWithGuestSpaceId({endpointName:"record/acl",preview:e});return this.client.get(o,n({},r))}},{key:"updateRecordAcl",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"record/acl",preview:!0});return this.client.put(e,t)}},{key:"getAppCustomize",value:function(t){var e=t.preview,r=v(t,tm),o=this.buildPathWithGuestSpaceId({endpointName:"app/customize",preview:e});return this.client.get(o,n({},r))}},{key:"updateAppCustomize",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/customize",preview:!0});return this.client.put(e,t)}},{key:"getGeneralNotifications",value:function(t){var e=t.preview,r=v(t,em),o=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/general",preview:e});return this.client.get(o,n({},r))}},{key:"updateGeneralNotifications",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/general",preview:!0});return this.client.put(e,t)}},{key:"getPerRecordNotifications",value:function(t){var e=t.preview,r=v(t,rm),n=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/perRecord",preview:e});return this.client.get(n,r)}},{key:"updatePerRecordNotifications",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/perRecord",preview:!0});return this.client.put(e,t)}},{key:"getReminderNotifications",value:function(t){var e=t.preview,r=v(t,nm),n=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/reminder",preview:e});return this.client.get(n,r)}},{key:"updateReminderNotifications",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/reminder",preview:!0});return this.client.put(e,t)}},{key:"getReports",value:function(t){var e=t.preview,r=v(t,om),n=this.buildPathWithGuestSpaceId({endpointName:"app/reports",preview:e});return this.client.get(n,r)}},{key:"updateReports",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/reports",preview:!0});return this.client.put(e,t)}},{key:"getAppActions",value:function(t){var e=t.preview,r=v(t,im),n=this.buildPathWithGuestSpaceId({endpointName:"app/actions",preview:e});return this.client.get(n,r)}},{key:"updateAppActions",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/actions",preview:!0});return this.client.put(e,t)}},{key:"buildPathWithGuestSpaceId",value:function(t){return Gy(n(n({},t),{},{guestSpaceId:this.guestSpaceId}))}}]),t}(),sm=Ul;Ro({target:"Object",stat:!0,arity:2,forced:Object.assign!==sm},{assign:sm});var um=U,cm=nr,lm=nt,pm=Cn,fm=ea,hm=at,dm=Vt,ym=Ls,mm=Qs;Rs("match",(function(t,e,r){return[function(e){var r=hm(this),n=lm(e)?void 0:dm(e,t);return n?um(n,e,r):new RegExp(e)[t](fm(r))},function(t){var n=cm(this),o=fm(t),i=r(e,n,o);if(i.done)return i.value;if(!n.global)return mm(n,o);var a=n.unicode;n.lastIndex=0;for(var s,u=[],c=0;null!==(s=mm(n,o));){var l=fm(s[0]);u[c]=l,""===l&&(n.lastIndex=ym(o,pm(n.lastIndex),a)),c++}return 0===c?null:u}]}));var gm=k,vm=ht,bm=mt,wm=Vi,xm=$(1..valueOf),Sm=Ro,Am=I,Em=k,Rm=gm,Om=$,Pm=go,km=pe,jm=function(t,e,r){var n,o;return wm&&vm(n=e.constructor)&&n!==r&&bm(o=n.prototype)&&o!==r.prototype&&wm(t,o),t},Tm=wt,Im=Ft,_m=Ne,Nm=T,Cm=An.f,Um=j.f,Lm=Xe.f,Fm=xm,Bm=ey.trim,Dm="Number",Mm=Em[Dm];Rm[Dm];var qm=Mm.prototype,Wm=Em.TypeError,Gm=Om("".slice),zm=Om("".charCodeAt),Hm=function(t){var e,r,n,o,i,a,s,u,c=_m(t,"number");if(Im(c))throw Wm("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=Bm(c),43===(e=zm(c,0))||45===e){if(88===(r=zm(c,2))||120===r)return NaN}else if(48===e){switch(zm(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=Gm(c,2)).length,s=0;s<a;s++)if((u=zm(i,s))<48||u>o)return NaN;return parseInt(i,n)}return+c},Vm=Pm(Dm,!Mm(" 0o1")||!Mm("0b1")||Mm("+0x1")),$m=function(t){var e,r=arguments.length<1?0:Mm(function(t){var e=_m(t,"number");return"bigint"==typeof e?e:Hm(e)}(t));return Tm(qm,e=this)&&Nm((function(){Fm(e)}))?jm(Object(r),this,$m):r};$m.prototype=qm,Vm&&(qm.constructor=$m),Sm({global:!0,constructor:!0,wrap:!0,forced:Vm},{Number:$m});Vm&&function(t,e){for(var r,n=Am?Cm(e):"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(","),o=0;n.length>o;o++)km(e,r=n[o])&&!km(t,r)&&Lm(t,r,Um(e,r))}(Rm[Dm],Mm);var Ym=T,Km=function(t,e){var r=[][t];return!!r&&Ym((function(){r.call(null,e||function(){return 1},1)}))},Jm=Ro,Qm=qn.indexOf,Xm=Km,Zm=ms([].indexOf),tg=!!Zm&&1/Zm([1],1,-0)<0;Jm({target:"Array",proto:!0,forced:tg||!Xm("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return tg?Zm(this,t,e)||0:Qm(this,t,e)}});var eg=qy.every;Ro({target:"Array",proto:!0,forced:!Km("every")},{every:function(t){return eg(this,t,arguments.length>1?arguments[1]:void 0)}}),Ro({target:"Array",stat:!0},{isArray:Po});var rg=$([].slice),ng=Ro,og=Po,ig=ei,ag=mt,sg=In,ug=Ln,cg=ct,lg=_o,pg=Re,fg=rg,hg=fi("slice"),dg=pg("species"),yg=Array,mg=Math.max;ng({target:"Array",proto:!0,forced:!hg},{slice:function(t,e){var r,n,o,i=cg(this),a=ug(i),s=sg(t,a),u=sg(void 0===e?a:e,a);if(og(i)&&(r=i.constructor,(ig(r)&&(r===yg||og(r.prototype))||ag(r)&&null===(r=r[dg]))&&(r=void 0),r===yg||void 0===r))return fg(i,s,u);for(n=new(void 0===r?yg:r)(mg(u-s,0)),o=0;s<u;s++,o++)s in i&&lg(n,o,i[s]);return n.length=o,n}});var gg=Gt,vg=ue,bg=rt,wg=Ln,xg=TypeError,Sg=function(t){return function(e,r,n,o){gg(r);var i=vg(e),a=bg(i),s=wg(i),u=t?s-1:0,c=t?-1:1;if(n<2)for(;;){if(u in a){o=a[u],u+=c;break}if(u+=c,t?u<0:s<=u)throw xg("Reduce of empty array with no initial value")}for(;t?u>=0:s>u;u+=c)u in a&&(o=r(o,a[u],u,i));return o}},Ag={left:Sg(!1),right:Sg(!0)},Eg="process"===Q(k.process),Rg=Ag.left;Ro({target:"Array",proto:!0,forced:!Eg&&Pt>79&&Pt<83||!Km("reduce")},{reduce:function(t){var e=arguments.length;return Rg(this,t,e,e>1?arguments[1]:void 0)}});var Og=qy.forEach,Pg=Km("forEach")?[].forEach:function(t){return Og(this,t,arguments.length>1?arguments[1]:void 0)};Ro({target:"Array",proto:!0,forced:[].forEach!==Pg},{forEach:Pg});var kg=k,jg=Qc,Tg=tl,Ig=Pg,_g=gr,Ng=function(t){if(t&&t.forEach!==Ig)try{_g(t,"forEach",Ig)}catch(e){t.forEach=Ig}};for(var Cg in jg)jg[Cg]&&Ng(kg[Cg]&&kg[Cg].prototype);Ng(Tg);var Ug=ue,Lg=fa;Ro({target:"Object",stat:!0,forced:T((function(){Lg(1)}))},{keys:function(t){return Lg(Ug(t))}});var Fg=function(t){f(r,t);var e=w(r);function r(t,n,o,i,a){var s;u(this,r);var c=o-n.length,l=r.extractErrorIndex(c,i,a),p=r.buildErrorMessage(c,o,l);return(s=e.call(this,p)).name="KintoneAllRecordsError",s.processedRecordsResult=t,s.unprocessedRecords=n,s.error=i,s.errorIndex=l,s.message=p,s.numOfProcessedRecords=c,s.numOfAllRecords=o,Object.setPrototypeOf(b(s),r.prototype),s}return l(r,null,[{key:"parseErrorIndex",value:function(t){var e=[];return Object.keys(t).forEach((function(t){var r=t.match(/records\[(\d+)\]/);r&&e.push(Number(r[1]))})),e.length>0?Math.min.apply(Math,e):null}},{key:"extractErrorIndex",value:function(t,e,n){if(void 0!==e.bulkRequestIndex&&e.errors){var o=r.parseErrorIndex(e.errors);if(null!==o)return t+e.bulkRequestIndex*n+o}}},{key:"buildErrorMessage",value:function(t,e,r){var n="";return void 0!==r&&(n="An error occurred at records[".concat(r,"]. ")),n+="".concat(t,"/").concat(e," records are processed successfully")}}]),r}(g(Error)),Bg=["condition","orderBy","withCursor"],Dg=["fields"],Mg=["condition"],qg=["condition","orderBy"],Wg=function(){function t(e,r,n){u(this,t),this.client=e,this.bulkRequestClient=r,this.guestSpaceId=n,this.didWarnMaximumOffsetValue=!1}var e,r,i,a,c,f,h,d,y,m,g,b,w,S,A,E,R,O;return l(t,[{key:"getRecord",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.get(e,t)}},{key:"addRecord",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.post(e,t)}},{key:"updateRecord",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.put(e,t)}},{key:"upsertRecord",value:(O=s(o().mark((function t(e){var r,n,i,a,s,u,c;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.app,n=e.updateKey,i=e.record,t.next=3,this.getRecords({app:r,query:"".concat(n.field,' = "').concat(n.value,'"')});case 3:if(a=t.sent,!((s=a.records).length>0)){t.next=13;break}if("__ID__"!==s[0].$id.type){t.next=12;break}return t.next=9,this.updateRecord(e);case 9:return u=t.sent,c=u.revision,t.abrupt("return",{id:s[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 t.abrupt("return",this.addRecord({app:r,record:Object.assign({},i,p({},n.field,{value:n.value}))}));case 14:case"end":return t.stop()}}),t,this)}))),function(t){return O.apply(this,arguments)})},{key:"getRecords",value:(R=s(o().mark((function t(e){var r,n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.buildPathWithGuestSpaceId({endpointName:"records"}),t.next=3,this.client.get(r,e);case 3:return n=t.sent,this.warnMaximumOffsetValueIfNeeded(e.query),t.abrupt("return",n);case 6:case"end":return t.stop()}}),t,this)}))),function(t){return R.apply(this,arguments)})},{key:"warnMaximumOffsetValueIfNeeded",value:function(t){if(t){var e=t.match(/offset\s+(\d+)/i);!this.didWarnMaximumOffsetValue&&e&&Number(e[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=s(o().mark((function t(e){var r,n,i,a;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.buildPathWithGuestSpaceId({endpointName:"records"}),t.next=3,this.client.post(r,e);case 3:return n=t.sent,i=n.ids,a=n.revisions,t.abrupt("return",{ids:i,revisions:a,records:i.map((function(t,e){return{id:t,revision:a[e]}}))});case 7:case"end":return t.stop()}}),t,this)}))),function(t){return E.apply(this,arguments)})},{key:"updateRecords",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"records"});return this.client.put(e,t)}},{key:"deleteRecords",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"records"});return this.client.delete(e,t)}},{key:"createCursor",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.post(e,t)}},{key:"getRecordsByCursor",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.get(e,t)}},{key:"deleteCursor",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.delete(e,t)}},{key:"getAllRecords",value:(A=s(o().mark((function t(e){var r,i,a,s,u,c,l;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.condition,i=e.orderBy,a=e.withCursor,s=void 0===a||a,u=v(e,Bg),i){t.next=3;break}return t.abrupt("return",this.getAllRecordsWithId(n(n({},u),{},{condition:r})));case 3:if(!s){t.next=7;break}return c=r?"".concat(r," "):"",l="".concat(c).concat(i?"order by ".concat(i):""),t.abrupt("return",this.getAllRecordsWithCursor(n(n({},u),{},{query:l})));case 7:return t.abrupt("return",this.getAllRecordsWithOffset(n(n({},u),{},{orderBy:i,condition:r})));case 8:case"end":return t.stop()}}),t,this)}))),function(t){return A.apply(this,arguments)})},{key:"getAllRecordsWithId",value:(S=s(o().mark((function t(e){var r,i,a;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.fields,i=v(e,Dg),(a=r)&&a.length>0&&-1===a.indexOf("$id")&&(a=[].concat(x(a),["$id"])),t.abrupt("return",this.getAllRecordsRecursiveWithId(n(n({},i),{},{fields:a}),"0",[]));case 4:case"end":return t.stop()}}),t,this)}))),function(t){return S.apply(this,arguments)})},{key:"getAllRecordsRecursiveWithId",value:(w=s(o().mark((function t(e,r,i){var a,s,u,c,l,p,f,h,d;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=500,s=e.condition,u=v(e,Mg),c=s?"(".concat(s,") and "):"",l="".concat(c,"$id > ").concat(r," order by $id asc limit ").concat(a),t.next=6,this.getRecords(n(n({},u),{},{query:l}));case 6:if(p=t.sent,f=i.concat(p.records),!(p.records.length<a)){t.next=10;break}return t.abrupt("return",f);case 10:if("__ID__"!==(h=p.records[p.records.length-1]).$id.type){t.next=14;break}return d=h.$id.value,t.abrupt("return",this.getAllRecordsRecursiveWithId(e,d,f));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 t.stop()}}),t,this)}))),function(t,e,r){return w.apply(this,arguments)})},{key:"getAllRecordsWithOffset",value:(b=s(o().mark((function t(e){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.getAllRecordsRecursiveWithOffset(e,0,[]));case 1:case"end":return t.stop()}}),t,this)}))),function(t){return b.apply(this,arguments)})},{key:"getAllRecordsRecursiveWithOffset",value:(g=s(o().mark((function t(e,r,i){var a,s,u,c,l,p,f,h;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=500,s=e.condition,u=e.orderBy,c=v(e,qg),l=s?"".concat(s," "):"",p="".concat(l).concat(u?"order by ".concat(u," "):"","limit ").concat(a," offset ").concat(r),t.next=6,this.getRecords(n(n({},c),{},{query:p}));case 6:if(f=t.sent,h=i.concat(f.records),!(f.records.length<a)){t.next=10;break}return t.abrupt("return",h);case 10:return t.abrupt("return",this.getAllRecordsRecursiveWithOffset(e,r+a,h));case 11:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return g.apply(this,arguments)})},{key:"getAllRecordsWithCursor",value:(m=s(o().mark((function t(e){var r,n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.createCursor(e);case 2:return r=t.sent,n=r.id,t.prev=4,t.next=7,this.getAllRecordsRecursiveByCursor(n,[]);case 7:return t.abrupt("return",t.sent);case 10:return t.prev=10,t.t0=t.catch(4),t.next=14,this.deleteCursor({id:n});case 14:throw t.t0;case 15:case"end":return t.stop()}}),t,this,[[4,10]])}))),function(t){return m.apply(this,arguments)})},{key:"getAllRecordsRecursiveByCursor",value:(y=s(o().mark((function t(e,r){var n,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getRecordsByCursor({id:e});case 2:if(n=t.sent,i=r.concat(n.records),!n.next){t.next=6;break}return t.abrupt("return",this.getAllRecordsRecursiveByCursor(e,i));case 6:return t.abrupt("return",i);case 7:case"end":return t.stop()}}),t,this)}))),function(t,e){return y.apply(this,arguments)})},{key:"addAllRecords",value:(d=s(o().mark((function t(e){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.records.every((function(t){return!Array.isArray(t)&&t instanceof Object}))){t.next=2;break}throw new Error("the `records` parameter must be an array of object.");case 2:return t.abrupt("return",this.addAllRecordsRecursive(e,e.records.length,[]));case 3:case"end":return t.stop()}}),t,this)}))),function(t){return d.apply(this,arguments)})},{key:"addAllRecordsRecursive",value:(h=s(o().mark((function t(e,r,n){var i,a,s,u,c;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,a=e.app,s=e.records,0!==(u=s.slice(0,i)).length){t.next=5;break}return t.abrupt("return",{records:n});case 5:return t.prev=5,t.next=8,this.addAllRecordsWithBulkRequest({app:a,records:u});case 8:c=t.sent,t.next=14;break;case 11:throw t.prev=11,t.t0=t.catch(5),new Fg({records:n},s,r,t.t0,100);case 14:return t.abrupt("return",this.addAllRecordsRecursive({app:a,records:s.slice(i)},r,n.concat(c)));case 15:case"end":return t.stop()}}),t,this,[[5,11]])}))),function(t,e,r){return h.apply(this,arguments)})},{key:"addAllRecordsWithBulkRequest",value:(f=s(o().mark((function t(e){var r,n,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.separateArrayRecursive(100,[],e.records),n=r.map((function(t){return{method:"POST",endpointName:"records",payload:{app:e.app,records:t}}})),t.next=4,this.bulkRequestClient.send({requests:n});case 4:return i=t.sent.results,t.abrupt("return",i.map((function(t){var e=t.ids,r=t.revisions;return e.map((function(t,e){return{id:t,revision:r[e]}}))})).reduce((function(t,e){return t.concat(e)}),[]));case 6:case"end":return t.stop()}}),t,this)}))),function(t){return f.apply(this,arguments)})},{key:"updateAllRecords",value:(c=s(o().mark((function t(e){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.updateAllRecordsRecursive(e,e.records.length,[]));case 1:case"end":return t.stop()}}),t,this)}))),function(t){return c.apply(this,arguments)})},{key:"updateAllRecordsRecursive",value:(a=s(o().mark((function t(e,r,n){var i,a,s,u,c;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,a=e.app,s=e.records,0!==(u=s.slice(0,i)).length){t.next=5;break}return t.abrupt("return",{records:n});case 5:return t.prev=5,t.next=8,this.updateAllRecordsWithBulkRequest({app:a,records:u});case 8:c=t.sent,t.next=14;break;case 11:throw t.prev=11,t.t0=t.catch(5),new Fg({records:n},s,r,t.t0,100);case 14:return t.abrupt("return",this.updateAllRecordsRecursive({app:a,records:s.slice(i)},r,n.concat(c)));case 15:case"end":return t.stop()}}),t,this,[[5,11]])}))),function(t,e,r){return a.apply(this,arguments)})},{key:"updateAllRecordsWithBulkRequest",value:(i=s(o().mark((function t(e){var r,n,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.separateArrayRecursive(100,[],e.records),n=r.map((function(t){return{method:"PUT",endpointName:"records",payload:{app:e.app,records:t}}})),t.next=4,this.bulkRequestClient.send({requests:n});case 4:return i=t.sent.results,t.abrupt("return",i.map((function(t){return t.records})).reduce((function(t,e){return t.concat(e)}),[]));case 6:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"deleteAllRecords",value:function(t){return this.deleteAllRecordsRecursive(t,t.records.length)}},{key:"deleteAllRecordsRecursive",value:(r=s(o().mark((function t(e,r){var n,i,a,s;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,i=e.app,a=e.records,0!==(s=a.slice(0,n)).length){t.next=5;break}return t.abrupt("return",{});case 5:return t.prev=5,t.next=8,this.deleteAllRecordsWithBulkRequest({app:i,records:s});case 8:t.next=13;break;case 10:throw t.prev=10,t.t0=t.catch(5),new Fg({},a,r,t.t0,100);case 13:return t.abrupt("return",this.deleteAllRecordsRecursive({app:i,records:a.slice(n)},r));case 14:case"end":return t.stop()}}),t,this,[[5,10]])}))),function(t,e){return r.apply(this,arguments)})},{key:"deleteAllRecordsWithBulkRequest",value:(e=s(o().mark((function t(e){var r,n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.separateArrayRecursive(100,[],e.records),n=r.map((function(t){return{method:"DELETE",endpointName:"records",payload:{app:e.app,ids:t.map((function(t){return t.id})),revisions:t.map((function(t){return t.revision}))}}})),t.next=4,this.bulkRequestClient.send({requests:n});case 4:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"separateArrayRecursive",value:function(t,e,r){var n=r.slice(0,t);return 0===n.length?e:this.separateArrayRecursive(t,[].concat(x(e),[n]),r.slice(t))}},{key:"addRecordComment",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"record/comment"});return this.client.post(e,t)}},{key:"deleteRecordComment",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"record/comment"});return this.client.delete(e,t)}},{key:"getRecordComments",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"record/comments"});return this.client.get(e,t)}},{key:"updateRecordAssignees",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"record/assignees"});return this.client.put(e,t)}},{key:"updateRecordStatus",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"record/status"});return this.client.put(e,t)}},{key:"updateRecordsStatus",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"records/status"});return this.client.put(e,t)}},{key:"buildPathWithGuestSpaceId",value:function(t){return Gy(n(n({},t),{},{guestSpaceId:this.guestSpaceId}))}}]),t}(),Gg=R("object"==typeof self?self.FormData:window.FormData),zg=function(){function t(e,r){u(this,t),this.client=e,this.guestSpaceId=r}var r;return l(t,[{key:"uploadFile",value:(r=s(o().mark((function t(r){var n,i,a,s,u,c,l,p,f;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.buildPathWithGuestSpaceId({endpointName:"file"}),i=new Gg,!("path"in r.file)){t.next=19;break}return t.prev=3,t.next=6,e.readFileFromPath(r.file.path);case 6:a=t.sent,s=a.name,u=a.data,i.append("file",u,s),t.next=17;break;case 12:if(t.prev=12,t.t0=t.catch(3),!(t.t0 instanceof $i)){t.next=16;break}throw new Error("uploadFile doesn't allow to accept a file path in ".concat(t.t0.platform," environment."));case 16:throw t.t0;case 17:t.next=22;break;case 19:c=r.file,l=c.name,p=c.data,f=e.buildFormDataValue(p,l),i.append("file",f,l);case 22:return t.abrupt("return",this.client.postData(n,i));case 23:case"end":return t.stop()}}),t,this,[[3,12]])}))),function(t){return r.apply(this,arguments)})},{key:"downloadFile",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"file"});return this.client.getData(e,t)}},{key:"buildPathWithGuestSpaceId",value:function(t){return Gy(n(n({},t),{},{guestSpaceId:this.guestSpaceId}))}}]),t}(),Hg="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function Vg(t,e){return function(){return t.apply(e,arguments)}}const{toString:$g}=Object.prototype,{getPrototypeOf:Yg}=Object,Kg=(Jg=Object.create(null),t=>{const e=$g.call(t);return Jg[e]||(Jg[e]=e.slice(8,-1).toLowerCase())});var Jg;const Qg=t=>(t=t.toLowerCase(),e=>Kg(e)===t),Xg=t=>e=>typeof e===t,{isArray:Zg}=Array,tv=Xg("undefined");const ev=Qg("ArrayBuffer");const rv=Xg("string"),nv=Xg("function"),ov=Xg("number"),iv=t=>null!==t&&"object"==typeof t,av=t=>{if("object"!==Kg(t))return!1;const e=Yg(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},sv=Qg("Date"),uv=Qg("File"),cv=Qg("Blob"),lv=Qg("FileList"),pv=Qg("URLSearchParams");function fv(t,e){let r,n,{allOwnKeys:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!=t)if("object"!=typeof t&&(t=[t]),Zg(t))for(r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else{const n=o?Object.getOwnPropertyNames(t):Object.keys(t),i=n.length;let a;for(r=0;r<i;r++)a=n[r],e.call(null,t[a],a,t)}}function hv(t,e){e=e.toLowerCase();const r=Object.keys(t);let n,o=r.length;for(;o-- >0;)if(n=r[o],e===n.toLowerCase())return n;return null}const dv="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:Hg,yv=t=>!tv(t)&&t!==dv;const mv=(t=>e=>t&&e instanceof t)("undefined"!=typeof Uint8Array&&Yg(Uint8Array)),gv=Qg("HTMLFormElement"),vv=(t=>{let{hasOwnProperty:e}=t;return(t,r)=>e.call(t,r)})(Object.prototype),bv=Qg("RegExp"),wv=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};fv(r,((r,o)=>{!1!==e(r,o,t)&&(n[o]=r)})),Object.defineProperties(t,n)},xv="abcdefghijklmnopqrstuvwxyz",Sv="0123456789",Av={DIGIT:Sv,ALPHA:xv,ALPHA_DIGIT:xv+xv.toUpperCase()+Sv};const Ev=Qg("AsyncFunction");var Rv={isArray:Zg,isArrayBuffer:ev,isBuffer:function(t){return null!==t&&!tv(t)&&null!==t.constructor&&!tv(t.constructor)&&nv(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||nv(t.append)&&("formdata"===(e=Kg(t))||"object"===e&&nv(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&ev(t.buffer),e},isString:rv,isNumber:ov,isBoolean:t=>!0===t||!1===t,isObject:iv,isPlainObject:av,isUndefined:tv,isDate:sv,isFile:uv,isBlob:cv,isRegExp:bv,isFunction:nv,isStream:t=>iv(t)&&nv(t.pipe),isURLSearchParams:pv,isTypedArray:mv,isFileList:lv,forEach:fv,merge:function t(){const{caseless:e}=yv(this)&&this||{},r={},n=(n,o)=>{const i=e&&hv(r,o)||o;av(r[i])&&av(n)?r[i]=t(r[i],n):av(n)?r[i]=t({},n):Zg(n)?r[i]=n.slice():r[i]=n};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&fv(arguments[t],n);return r},extend:function(t,e,r){let{allOwnKeys:n}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return fv(e,((e,n)=>{r&&nv(e)?t[n]=Vg(e,r):t[n]=e}),{allOwnKeys:n}),t},trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},toFlatObject:(t,e,r,n)=>{let o,i,a;const s={};if(e=e||{},null==t)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)a=o[i],n&&!n(a,t,e)||s[a]||(e[a]=t[a],s[a]=!0);t=!1!==r&&Yg(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kindOf:Kg,kindOfTest:Qg,endsWith:(t,e,r)=>{t=String(t),(void 0===r||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return-1!==n&&n===r},toArray:t=>{if(!t)return null;if(Zg(t))return t;let e=t.length;if(!ov(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},forEachEntry:(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let n;for(;(n=r.next())&&!n.done;){const r=n.value;e.call(t,r[0],r[1])}},matchAll:(t,e)=>{let r;const n=[];for(;null!==(r=t.exec(e));)n.push(r);return n},isHTMLForm:gv,hasOwnProperty:vv,hasOwnProp:vv,reduceDescriptors:wv,freezeMethods:t=>{wv(t,((e,r)=>{if(nv(t)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=t[r];nv(n)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(t,e)=>{const r={},n=t=>{t.forEach((t=>{r[t]=!0}))};return Zg(t)?n(t):n(String(t).split(e)),r},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,r){return e.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(t,e)=>(t=+t,Number.isFinite(t)?t:e),findKey:hv,global:dv,isContextDefined:yv,ALPHABET:Av,generateString:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Av.ALPHA_DIGIT,r="";const{length:n}=e;for(;t--;)r+=e[Math.random()*n|0];return r},isSpecCompliantForm:function(t){return!!(t&&nv(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),r=(t,n)=>{if(iv(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[n]=t;const o=Zg(t)?[]:{};return fv(t,((t,e)=>{const i=r(t,n+1);!tv(i)&&(o[e]=i)})),e[n]=void 0,o}}return t};return r(t,0)},isAsyncFn:Ev,isThenable:t=>t&&(iv(t)||nv(t))&&nv(t.then)&&nv(t.catch)},Ov=[],Pv=[],kv="undefined"!=typeof Uint8Array?Uint8Array:Array,jv=!1;function Tv(){jv=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0;e<64;++e)Ov[e]=t[e],Pv[t.charCodeAt(e)]=e;Pv["-".charCodeAt(0)]=62,Pv["_".charCodeAt(0)]=63}function Iv(t,e,r){for(var n,o,i=[],a=e;a<r;a+=3)n=(t[a]<<16)+(t[a+1]<<8)+t[a+2],i.push(Ov[(o=n)>>18&63]+Ov[o>>12&63]+Ov[o>>6&63]+Ov[63&o]);return i.join("")}function _v(t){var e;jv||Tv();for(var r=t.length,n=r%3,o="",i=[],a=16383,s=0,u=r-n;s<u;s+=a)i.push(Iv(t,s,s+a>u?u:s+a));return 1===n?(e=t[r-1],o+=Ov[e>>2],o+=Ov[e<<4&63],o+="=="):2===n&&(e=(t[r-2]<<8)+t[r-1],o+=Ov[e>>10],o+=Ov[e>>4&63],o+=Ov[e<<2&63],o+="="),i.push(o),i.join("")}function Nv(t,e,r,n,o){var i,a,s=8*o-n-1,u=(1<<s)-1,c=u>>1,l=-7,p=r?o-1:0,f=r?-1:1,h=t[e+p];for(p+=f,i=h&(1<<-l)-1,h>>=-l,l+=s;l>0;i=256*i+t[e+p],p+=f,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=n;l>0;a=256*a+t[e+p],p+=f,l-=8);if(0===i)i=1-c;else{if(i===u)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 Cv(t,e,r,n,o,i){var a,s,u,c=8*i-o-1,l=(1<<c)-1,p=l>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,d=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+p>=1?f/u:f*Math.pow(2,1-p))*u>=2&&(a++,u/=2),a+p>=l?(s=0,a=l):a+p>=1?(s=(e*u-1)*Math.pow(2,o),a+=p):(s=e*Math.pow(2,p-1)*Math.pow(2,o),a=0));o>=8;t[r+h]=255&s,h+=d,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;t[r+h]=255&a,h+=d,a/=256,c-=8);t[r+h-d]|=128*y}var Uv={}.toString,Lv=Array.isArray||function(t){return"[object Array]"==Uv.call(t)};function Fv(){return Dv.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Bv(t,e){if(Fv()<e)throw new RangeError("Invalid typed array length");return Dv.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=Dv.prototype:(null===t&&(t=new Dv(e)),t.length=e),t}function Dv(t,e,r){if(!(Dv.TYPED_ARRAY_SUPPORT||this instanceof Dv))return new Dv(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return Wv(this,t)}return Mv(this,t,e,r)}function Mv(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);Dv.TYPED_ARRAY_SUPPORT?(t=e).__proto__=Dv.prototype:t=Gv(t,e);return t}(t,e,r,n):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!Dv.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|Vv(e,r);t=Bv(t,n);var o=t.write(e,r);o!==n&&(t=t.slice(0,o));return t}(t,e,r):function(t,e){if(Hv(e)){var r=0|zv(e.length);return 0===(t=Bv(t,r)).length||e.copy(t,0,0,r),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(n=e.length)!=n?Bv(t,0):Gv(t,e);if("Buffer"===e.type&&Lv(e.data))return Gv(t,e.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function qv(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function Wv(t,e){if(qv(e),t=Bv(t,e<0?0:0|zv(e)),!Dv.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function Gv(t,e){var r=e.length<0?0:0|zv(e.length);t=Bv(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function zv(t){if(t>=Fv())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Fv().toString(16)+" bytes");return 0|t}function Hv(t){return!(null==t||!t._isBuffer)}function Vv(t,e){if(Hv(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return bb(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return wb(t).length;default:if(n)return bb(t).length;e=(""+e).toLowerCase(),n=!0}}function $v(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return ub(this,e,r);case"utf8":case"utf-8":return ob(this,e,r);case"ascii":return ab(this,e,r);case"latin1":case"binary":return sb(this,e,r);case"base64":return nb(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return cb(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function Yv(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function Kv(t,e,r,n,o){if(0===t.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:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=Dv.from(e,n)),Hv(e))return 0===e.length?-1:Jv(t,e,r,n,o);if("number"==typeof e)return e&=255,Dv.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):Jv(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function Jv(t,e,r,n,o){var i,a=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,r/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){var l=-1;for(i=r;i<s;i++)if(c(t,i)===c(e,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(r+u>s&&(r=s-u),i=r;i>=0;i--){for(var p=!0,f=0;f<u;f++)if(c(t,i+f)!==c(e,f)){p=!1;break}if(p)return i}return-1}function Qv(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=e.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 s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[r+a]=s}return a}function Xv(t,e,r,n){return xb(bb(e,t.length-r),t,r,n)}function Zv(t,e,r,n){return xb(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function tb(t,e,r,n){return Zv(t,e,r,n)}function eb(t,e,r,n){return xb(wb(e),t,r,n)}function rb(t,e,r,n){return xb(function(t,e){for(var r,n,o,i=[],a=0;a<t.length&&!((e-=2)<0);++a)n=(r=t.charCodeAt(a))>>8,o=r%256,i.push(o),i.push(n);return i}(e,t.length-r),t,r,n)}function nb(t,e,r){return 0===e&&r===t.length?_v(t):_v(t.slice(e,r))}function ob(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i,a,s,u,c=t[o],l=null,p=c>239?4:c>223?3:c>191?2:1;if(o+p<=r)switch(p){case 1:c<128&&(l=c);break;case 2:128==(192&(i=t[o+1]))&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:i=t[o+1],a=t[o+2],128==(192&i)&&128==(192&a)&&(u=(15&c)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=t[o+1],a=t[o+2],s=t[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,p=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),o+=p}return function(t){var e=t.length;if(e<=ib)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=ib));return r}(n)}Dv.TYPED_ARRAY_SUPPORT=void 0===Hg.TYPED_ARRAY_SUPPORT||Hg.TYPED_ARRAY_SUPPORT,Fv(),Dv.poolSize=8192,Dv._augment=function(t){return t.__proto__=Dv.prototype,t},Dv.from=function(t,e,r){return Mv(null,t,e,r)},Dv.TYPED_ARRAY_SUPPORT&&(Dv.prototype.__proto__=Uint8Array.prototype,Dv.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Dv[Symbol.species]),Dv.alloc=function(t,e,r){return function(t,e,r,n){return qv(e),e<=0?Bv(t,e):void 0!==r?"string"==typeof n?Bv(t,e).fill(r,n):Bv(t,e).fill(r):Bv(t,e)}(null,t,e,r)},Dv.allocUnsafe=function(t){return Wv(null,t)},Dv.allocUnsafeSlow=function(t){return Wv(null,t)},Dv.isBuffer=function(t){return null!=t&&(!!t._isBuffer||Sb(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&Sb(t.slice(0,0))}(t))},Dv.compare=function(t,e){if(!Hv(t)||!Hv(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,o=0,i=Math.min(r,n);o<i;++o)if(t[o]!==e[o]){r=t[o],n=e[o];break}return r<n?-1:n<r?1:0},Dv.isEncoding=function(t){switch(String(t).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}},Dv.concat=function(t,e){if(!Lv(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return Dv.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=Dv.allocUnsafe(e),o=0;for(r=0;r<t.length;++r){var i=t[r];if(!Hv(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,o),o+=i.length}return n},Dv.byteLength=Vv,Dv.prototype._isBuffer=!0,Dv.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)Yv(this,e,e+1);return this},Dv.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)Yv(this,e,e+3),Yv(this,e+1,e+2);return this},Dv.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)Yv(this,e,e+7),Yv(this,e+1,e+6),Yv(this,e+2,e+5),Yv(this,e+3,e+4);return this},Dv.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?ob(this,0,t):$v.apply(this,arguments)},Dv.prototype.equals=function(t){if(!Hv(t))throw new TypeError("Argument must be a Buffer");return this===t||0===Dv.compare(this,t)},Dv.prototype.inspect=function(){var t="";return this.length>0&&(t=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(t+=" ... ")),"<Buffer "+t+">"},Dv.prototype.compare=function(t,e,r,n,o){if(!Hv(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(this===t)return 0;for(var i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0),s=Math.min(i,a),u=this.slice(n,o),c=t.slice(e,r),l=0;l<s;++l)if(u[l]!==c[l]){i=u[l],a=c[l];break}return i<a?-1:a<i?1:0},Dv.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},Dv.prototype.indexOf=function(t,e,r){return Kv(this,t,e,r,!0)},Dv.prototype.lastIndexOf=function(t,e,r){return Kv(this,t,e,r,!1)},Dv.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-e;if((void 0===r||r>o)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return Qv(this,t,e,r);case"utf8":case"utf-8":return Xv(this,t,e,r);case"ascii":return Zv(this,t,e,r);case"latin1":case"binary":return tb(this,t,e,r);case"base64":return eb(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return rb(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},Dv.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ib=4096;function ab(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(127&t[o]);return n}function sb(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function ub(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=e;i<r;++i)o+=vb(t[i]);return o}function cb(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function lb(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function pb(t,e,r,n,o,i){if(!Hv(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function fb(t,e,r,n){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-r,2);o<i;++o)t[r+o]=(e&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function hb(t,e,r,n){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-r,4);o<i;++o)t[r+o]=e>>>8*(n?o:3-o)&255}function db(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function yb(t,e,r,n,o){return o||db(t,0,r,4),Cv(t,e,r,n,23,4),r+4}function mb(t,e,r,n,o){return o||db(t,0,r,8),Cv(t,e,r,n,52,8),r+8}Dv.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),Dv.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=Dv.prototype;else{var o=e-t;r=new Dv(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+t]}return r},Dv.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||lb(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n},Dv.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||lb(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},Dv.prototype.readUInt8=function(t,e){return e||lb(t,1,this.length),this[t]},Dv.prototype.readUInt16LE=function(t,e){return e||lb(t,2,this.length),this[t]|this[t+1]<<8},Dv.prototype.readUInt16BE=function(t,e){return e||lb(t,2,this.length),this[t]<<8|this[t+1]},Dv.prototype.readUInt32LE=function(t,e){return e||lb(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},Dv.prototype.readUInt32BE=function(t,e){return e||lb(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},Dv.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||lb(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*e)),n},Dv.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||lb(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},Dv.prototype.readInt8=function(t,e){return e||lb(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},Dv.prototype.readInt16LE=function(t,e){e||lb(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},Dv.prototype.readInt16BE=function(t,e){e||lb(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},Dv.prototype.readInt32LE=function(t,e){return e||lb(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},Dv.prototype.readInt32BE=function(t,e){return e||lb(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},Dv.prototype.readFloatLE=function(t,e){return e||lb(t,4,this.length),Nv(this,t,!0,23,4)},Dv.prototype.readFloatBE=function(t,e){return e||lb(t,4,this.length),Nv(this,t,!1,23,4)},Dv.prototype.readDoubleLE=function(t,e){return e||lb(t,8,this.length),Nv(this,t,!0,52,8)},Dv.prototype.readDoubleBE=function(t,e){return e||lb(t,8,this.length),Nv(this,t,!1,52,8)},Dv.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||pb(this,t,e,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[e]=255&t;++i<r&&(o*=256);)this[e+i]=t/o&255;return e+r},Dv.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||pb(this,t,e,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+r},Dv.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||pb(this,t,e,1,255,0),Dv.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},Dv.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||pb(this,t,e,2,65535,0),Dv.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):fb(this,t,e,!0),e+2},Dv.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||pb(this,t,e,2,65535,0),Dv.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):fb(this,t,e,!1),e+2},Dv.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||pb(this,t,e,4,4294967295,0),Dv.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):hb(this,t,e,!0),e+4},Dv.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||pb(this,t,e,4,4294967295,0),Dv.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):hb(this,t,e,!1),e+4},Dv.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);pb(this,t,e,r,o-1,-o)}var i=0,a=1,s=0;for(this[e]=255&t;++i<r&&(a*=256);)t<0&&0===s&&0!==this[e+i-1]&&(s=1),this[e+i]=(t/a>>0)-s&255;return e+r},Dv.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);pb(this,t,e,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/a>>0)-s&255;return e+r},Dv.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||pb(this,t,e,1,127,-128),Dv.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},Dv.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||pb(this,t,e,2,32767,-32768),Dv.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):fb(this,t,e,!0),e+2},Dv.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||pb(this,t,e,2,32767,-32768),Dv.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):fb(this,t,e,!1),e+2},Dv.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||pb(this,t,e,4,2147483647,-2147483648),Dv.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):hb(this,t,e,!0),e+4},Dv.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||pb(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),Dv.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):hb(this,t,e,!1),e+4},Dv.prototype.writeFloatLE=function(t,e,r){return yb(this,t,e,!0,r)},Dv.prototype.writeFloatBE=function(t,e,r){return yb(this,t,e,!1,r)},Dv.prototype.writeDoubleLE=function(t,e,r){return mb(this,t,e,!0,r)},Dv.prototype.writeDoubleBE=function(t,e,r){return mb(this,t,e,!1,r)},Dv.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<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),t.length-e<n-r&&(n=t.length-e+r);var o,i=n-r;if(this===t&&r<e&&e<n)for(o=i-1;o>=0;--o)t[o+e]=this[o+r];else if(i<1e3||!Dv.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+i),e);return i},Dv.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!Dv.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var i;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{var a=Hv(t)?t:bb(new Dv(t,n).toString()),s=a.length;for(i=0;i<r-e;++i)this[i+e]=a[i%s]}return this};var gb=/[^+\/0-9A-Za-z-_]/g;function vb(t){return t<16?"0"+t.toString(16):t.toString(16)}function bb(t,e){var r;e=e||1/0;for(var n=t.length,o=null,i=[],a=0;a<n;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=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((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function wb(t){return function(t){var e,r,n,o,i,a;jv||Tv();var s=t.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i="="===t[s-2]?2:"="===t[s-1]?1:0,a=new kv(3*s/4-i),n=i>0?s-4:s;var u=0;for(e=0,r=0;e<n;e+=4,r+=3)o=Pv[t.charCodeAt(e)]<<18|Pv[t.charCodeAt(e+1)]<<12|Pv[t.charCodeAt(e+2)]<<6|Pv[t.charCodeAt(e+3)],a[u++]=o>>16&255,a[u++]=o>>8&255,a[u++]=255&o;return 2===i?(o=Pv[t.charCodeAt(e)]<<2|Pv[t.charCodeAt(e+1)]>>4,a[u++]=255&o):1===i&&(o=Pv[t.charCodeAt(e)]<<10|Pv[t.charCodeAt(e+1)]<<4|Pv[t.charCodeAt(e+2)]>>2,a[u++]=o>>8&255,a[u++]=255&o),a}(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(gb,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function xb(t,e,r,n){for(var o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function Sb(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function Ab(t,e,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}Rv.inherits(Ab,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:Rv.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Eb=Ab.prototype,Rb={};["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","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{Rb[t]={value:t}})),Object.defineProperties(Ab,Rb),Object.defineProperty(Eb,"isAxiosError",{value:!0}),Ab.from=(t,e,r,n,o,i)=>{const a=Object.create(Eb);return Rv.toFlatObject(t,a,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),Ab.call(a,t.message,e,r,n,o),a.cause=t,a.name=t.name,i&&Object.assign(a,i),a};function Ob(t){return Rv.isPlainObject(t)||Rv.isArray(t)}function Pb(t){return Rv.endsWith(t,"[]")?t.slice(0,-2):t}function kb(t,e,r){return t?t.concat(e).map((function(t,e){return t=Pb(t),!r&&e?"["+t+"]":t})).join(r?".":""):e}const jb=Rv.toFlatObject(Rv,{},null,(function(t){return/^is[A-Z]/.test(t)}));function Tb(t,e,r){if(!Rv.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const n=(r=Rv.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!Rv.isUndefined(e[t])}))).metaTokens,o=r.visitor||c,i=r.dots,a=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&Rv.isSpecCompliantForm(e);if(!Rv.isFunction(o))throw new TypeError("visitor must be a function");function u(t){if(null===t)return"";if(Rv.isDate(t))return t.toISOString();if(!s&&Rv.isBlob(t))throw new Ab("Blob is not supported. Use a Buffer instead.");return Rv.isArrayBuffer(t)||Rv.isTypedArray(t)?s&&"function"==typeof Blob?new Blob([t]):Dv.from(t):t}function c(t,r,o){let s=t;if(t&&!o&&"object"==typeof t)if(Rv.endsWith(r,"{}"))r=n?r:r.slice(0,-2),t=JSON.stringify(t);else if(Rv.isArray(t)&&function(t){return Rv.isArray(t)&&!t.some(Ob)}(t)||(Rv.isFileList(t)||Rv.endsWith(r,"[]"))&&(s=Rv.toArray(t)))return r=Pb(r),s.forEach((function(t,n){!Rv.isUndefined(t)&&null!==t&&e.append(!0===a?kb([r],n,i):null===a?r:r+"[]",u(t))})),!1;return!!Ob(t)||(e.append(kb(o,r,i),u(t)),!1)}const l=[],p=Object.assign(jb,{defaultVisitor:c,convertValue:u,isVisitable:Ob});if(!Rv.isObject(t))throw new TypeError("data must be an object");return function t(r,n){if(!Rv.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),Rv.forEach(r,(function(r,i){!0===(!(Rv.isUndefined(r)||null===r)&&o.call(e,r,Rv.isString(i)?i.trim():i,n,p))&&t(r,n?n.concat(i):[i])})),l.pop()}}(t),e}function Ib(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function _b(t,e){this._pairs=[],t&&Tb(t,this,e)}const Nb=_b.prototype;function Cb(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ub(t,e,r){if(!e)return t;const n=r&&r.encode||Cb,o=r&&r.serialize;let i;if(i=o?o(e,r):Rv.isURLSearchParams(e)?e.toString():new _b(e,r).toString(n),i){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}Nb.append=function(t,e){this._pairs.push([t,e])},Nb.toString=function(t){const e=t?function(e){return t.call(this,e,Ib)}:Ib;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};var Lb=class{constructor(){this.handlers=[]}use(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Rv.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},Fb={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var Bb={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:_b,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:(()=>{let t;return("undefined"==typeof navigator||"ReactNative"!==(t=navigator.product)&&"NativeScript"!==t&&"NS"!==t)&&("undefined"!=typeof window&&"undefined"!=typeof document)})(),isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]};function Db(t){function e(t,r,n,o){let i=t[o++];const a=Number.isFinite(+i),s=o>=t.length;if(i=!i&&Rv.isArray(n)?n.length:i,s)return Rv.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!a;n[i]&&Rv.isObject(n[i])||(n[i]=[]);return e(t,r,n[i],o)&&Rv.isArray(n[i])&&(n[i]=function(t){const e={},r=Object.keys(t);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],e[i]=t[i];return e}(n[i])),!a}if(Rv.isFormData(t)&&Rv.isFunction(t.entries)){const r={};return Rv.forEachEntry(t,((t,n)=>{e(function(t){return Rv.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),n,r,0)})),r}return null}const Mb={"Content-Type":void 0};const qb={transitional:Fb,adapter:["xhr","http"],transformRequest:[function(t,e){const r=e.getContentType()||"",n=r.indexOf("application/json")>-1,o=Rv.isObject(t);o&&Rv.isHTMLForm(t)&&(t=new FormData(t));if(Rv.isFormData(t))return n&&n?JSON.stringify(Db(t)):t;if(Rv.isArrayBuffer(t)||Rv.isBuffer(t)||Rv.isStream(t)||Rv.isFile(t)||Rv.isBlob(t))return t;if(Rv.isArrayBufferView(t))return t.buffer;if(Rv.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return Tb(t,new Bb.classes.URLSearchParams,Object.assign({visitor:function(t,e,r,n){return Bb.isNode&&Rv.isBuffer(t)?(this.append(e,t.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((i=Rv.isFileList(t))||r.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return Tb(i?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||n?(e.setContentType("application/json",!1),function(t,e,r){if(Rv.isString(t))try{return(e||JSON.parse)(t),Rv.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(r||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||qb.transitional,r=e&&e.forcedJSONParsing,n="json"===this.responseType;if(t&&Rv.isString(t)&&(r&&!this.responseType||n)){const r=!(e&&e.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(t){if(r){if("SyntaxError"===t.name)throw Ab.from(t,Ab.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Bb.classes.FormData,Blob:Bb.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Rv.forEach(["delete","get","head"],(function(t){qb.headers[t]={}})),Rv.forEach(["post","put","patch"],(function(t){qb.headers[t]=Rv.merge(Mb)}));var Wb=qb;const Gb=Rv.toObjectSet(["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"]);const zb=Symbol("internals");function Hb(t){return t&&String(t).trim().toLowerCase()}function Vb(t){return!1===t||null==t?t:Rv.isArray(t)?t.map(Vb):String(t)}function $b(t,e,r,n,o){return Rv.isFunction(n)?n.call(this,e,r):(o&&(e=r),Rv.isString(e)?Rv.isString(n)?-1!==e.indexOf(n):Rv.isRegExp(n)?n.test(e):void 0:void 0)}class Yb{constructor(t){t&&this.set(t)}set(t,e,r){const n=this;function o(t,e,r){const o=Hb(e);if(!o)throw new Error("header name must be a non-empty string");const i=Rv.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||e]=Vb(t))}const i=(t,e)=>Rv.forEach(t,((t,r)=>o(t,r,e)));return Rv.isPlainObject(t)||t instanceof this.constructor?i(t,e):Rv.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim())?i((t=>{const e={};let r,n,o;return t&&t.split("\n").forEach((function(t){o=t.indexOf(":"),r=t.substring(0,o).trim().toLowerCase(),n=t.substring(o+1).trim(),!r||e[r]&&Gb[r]||("set-cookie"===r?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)})),e})(t),e):null!=t&&o(e,t,r),this}get(t,e){if(t=Hb(t)){const r=Rv.findKey(this,t);if(r){const t=this[r];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}(t);if(Rv.isFunction(e))return e.call(this,t,r);if(Rv.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Hb(t)){const r=Rv.findKey(this,t);return!(!r||void 0===this[r]||e&&!$b(0,this[r],r,e))}return!1}delete(t,e){const r=this;let n=!1;function o(t){if(t=Hb(t)){const o=Rv.findKey(r,t);!o||e&&!$b(0,r[o],o,e)||(delete r[o],n=!0)}}return Rv.isArray(t)?t.forEach(o):o(t),n}clear(t){const e=Object.keys(this);let r=e.length,n=!1;for(;r--;){const o=e[r];t&&!$b(0,this[o],o,t,!0)||(delete this[o],n=!0)}return n}normalize(t){const e=this,r={};return Rv.forEach(this,((n,o)=>{const i=Rv.findKey(r,o);if(i)return e[i]=Vb(n),void delete e[o];const a=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,r)=>e.toUpperCase()+r))}(o):String(o).trim();a!==o&&delete e[o],e[a]=Vb(n),r[a]=!0})),this}concat(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.constructor.concat(this,...e)}toJSON(t){const e=Object.create(null);return Rv.forEach(this,((r,n)=>{null!=r&&!1!==r&&(e[n]=t&&Rv.isArray(r)?r.join(", "):r)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((t=>{let[e,r]=t;return e+": "+r})).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t){const e=new this(t);for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return n.forEach((t=>e.set(t))),e}static accessor(t){const e=(this[zb]=this[zb]={accessors:{}}).accessors,r=this.prototype;function n(t){const n=Hb(t);e[n]||(!function(t,e){const r=Rv.toCamelCase(" "+e);["get","set","has"].forEach((n=>{Object.defineProperty(t,n+r,{value:function(t,r,o){return this[n].call(this,e,t,r,o)},configurable:!0})}))}(r,t),e[n]=!0)}return Rv.isArray(t)?t.forEach(n):n(t),this}}Yb.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Rv.freezeMethods(Yb.prototype),Rv.freezeMethods(Yb);var Kb=Yb;function Jb(t,e){const r=this||Wb,n=e||r,o=Kb.from(n.headers);let i=n.data;return Rv.forEach(t,(function(t){i=t.call(r,i,o.normalize(),e?e.status:void 0)})),o.normalize(),i}function Qb(t){return!(!t||!t.__CANCEL__)}function Xb(t,e,r){Ab.call(this,null==t?"canceled":t,Ab.ERR_CANCELED,e,r),this.name="CanceledError"}Rv.inherits(Xb,Ab,{__CANCEL__:!0});var Zb=Bb.isStandardBrowserEnv?{write:function(t,e,r,n,o,i){const a=[];a.push(t+"="+encodeURIComponent(e)),Rv.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),Rv.isString(n)&&a.push("path="+n),Rv.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function tw(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}var ew=Bb.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let r;function n(r){let n=r;return t&&(e.setAttribute("href",n),n=e.href),e.setAttribute("href",n),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return r=n(window.location.href),function(t){const e=Rv.isString(t)?n(t):t;return e.protocol===r.protocol&&e.host===r.host}}():function(){return!0};function rw(t,e){let r=0;const n=function(t,e){t=t||10;const r=new Array(t),n=new Array(t);let o,i=0,a=0;return e=void 0!==e?e:1e3,function(s){const u=Date.now(),c=n[a];o||(o=u),r[i]=s,n[i]=u;let l=a,p=0;for(;l!==i;)p+=r[l++],l%=t;if(i=(i+1)%t,i===a&&(a=(a+1)%t),u-o<e)return;const f=c&&u-c;return f?Math.round(1e3*p/f):void 0}}(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-r,u=n(s);r=i;const c={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:u||void 0,estimated:u&&a&&i<=a?(a-i)/u:void 0,event:o};c[e?"download":"upload"]=!0,t(c)}}var nw="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,r){let n=t.data;const o=Kb.from(t.headers).normalize(),i=t.responseType;let a;function s(){t.cancelToken&&t.cancelToken.unsubscribe(a),t.signal&&t.signal.removeEventListener("abort",a)}Rv.isFormData(n)&&(Bb.isStandardBrowserEnv||Bb.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"",r=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.set("Authorization","Basic "+btoa(e+":"+r))}const c=tw(t.baseURL,t.url);function l(){if(!u)return;const n=Kb.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(t,e,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?e(new Ab("Request failed with status code "+r.status,[Ab.ERR_BAD_REQUEST,Ab.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):t(r)}((function(t){e(t),s()}),(function(t){r(t),s()}),{data:i&&"text"!==i&&"json"!==i?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:n,config:t,request:u}),u=null}if(u.open(t.method.toUpperCase(),Ub(c,t.params,t.paramsSerializer),!0),u.timeout=t.timeout,"onloadend"in u?u.onloadend=l:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(l)},u.onabort=function(){u&&(r(new Ab("Request aborted",Ab.ECONNABORTED,t,u)),u=null)},u.onerror=function(){r(new Ab("Network Error",Ab.ERR_NETWORK,t,u)),u=null},u.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const n=t.transitional||Fb;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(new Ab(e,n.clarifyTimeoutError?Ab.ETIMEDOUT:Ab.ECONNABORTED,t,u)),u=null},Bb.isStandardBrowserEnv){const e=(t.withCredentials||ew(c))&&t.xsrfCookieName&&Zb.read(t.xsrfCookieName);e&&o.set(t.xsrfHeaderName,e)}void 0===n&&o.setContentType(null),"setRequestHeader"in u&&Rv.forEach(o.toJSON(),(function(t,e){u.setRequestHeader(e,t)})),Rv.isUndefined(t.withCredentials)||(u.withCredentials=!!t.withCredentials),i&&"json"!==i&&(u.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&u.addEventListener("progress",rw(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",rw(t.onUploadProgress)),(t.cancelToken||t.signal)&&(a=e=>{u&&(r(!e||e.type?new Xb(null,t,u):e),u.abort(),u=null)},t.cancelToken&&t.cancelToken.subscribe(a),t.signal&&(t.signal.aborted?a():t.signal.addEventListener("abort",a)));const p=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(c);p&&-1===Bb.protocols.indexOf(p)?r(new Ab("Unsupported protocol "+p+":",Ab.ERR_BAD_REQUEST,t)):u.send(n||null)}))};const ow={http:null,xhr:nw};Rv.forEach(ow,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));var iw=t=>{t=Rv.isArray(t)?t:[t];const{length:e}=t;let r,n;for(let o=0;o<e&&(r=t[o],!(n=Rv.isString(r)?ow[r.toLowerCase()]:r));o++);if(!n){if(!1===n)throw new Ab(`Adapter ${r} is not supported by the environment`,"ERR_NOT_SUPPORT");throw new Error(Rv.hasOwnProp(ow,r)?`Adapter '${r}' is not available in the build`:`Unknown adapter '${r}'`)}if(!Rv.isFunction(n))throw new TypeError("adapter is not a function");return n};function aw(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Xb(null,t)}function sw(t){aw(t),t.headers=Kb.from(t.headers),t.data=Jb.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return iw(t.adapter||Wb.adapter)(t).then((function(e){return aw(t),e.data=Jb.call(t,t.transformResponse,e),e.headers=Kb.from(e.headers),e}),(function(e){return Qb(e)||(aw(t),e&&e.response&&(e.response.data=Jb.call(t,t.transformResponse,e.response),e.response.headers=Kb.from(e.response.headers))),Promise.reject(e)}))}const uw=t=>t instanceof Kb?t.toJSON():t;function cw(t,e){e=e||{};const r={};function n(t,e,r){return Rv.isPlainObject(t)&&Rv.isPlainObject(e)?Rv.merge.call({caseless:r},t,e):Rv.isPlainObject(e)?Rv.merge({},e):Rv.isArray(e)?e.slice():e}function o(t,e,r){return Rv.isUndefined(e)?Rv.isUndefined(t)?void 0:n(void 0,t,r):n(t,e,r)}function i(t,e){if(!Rv.isUndefined(e))return n(void 0,e)}function a(t,e){return Rv.isUndefined(e)?Rv.isUndefined(t)?void 0:n(void 0,t):n(void 0,e)}function s(r,o,i){return i in e?n(r,o):i in t?n(void 0,r):void 0}const u={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:s,headers:(t,e)=>o(uw(t),uw(e),!0)};return Rv.forEach(Object.keys(Object.assign({},t,e)),(function(n){const i=u[n]||o,a=i(t[n],e[n],n);Rv.isUndefined(a)&&i!==s||(r[n]=a)})),r}const lw="1.4.0",pw={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{pw[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));const fw={};pw.transitional=function(t,e,r){function n(t,e){return"[Axios v1.4.0] Transitional option '"+t+"'"+e+(r?". "+r:"")}return(r,o,i)=>{if(!1===t)throw new Ab(n(o," has been removed"+(e?" in "+e:"")),Ab.ERR_DEPRECATED);return e&&!fw[o]&&(fw[o]=!0,console.warn(n(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,o,i)}};var hw={assertOptions:function(t,e,r){if("object"!=typeof t)throw new Ab("options must be an object",Ab.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let o=n.length;for(;o-- >0;){const i=n[o],a=e[i];if(a){const e=t[i],r=void 0===e||a(e,i,t);if(!0!==r)throw new Ab("option "+i+" must be "+r,Ab.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new Ab("Unknown option "+i,Ab.ERR_BAD_OPTION)}},validators:pw};const dw=hw.validators;let yw=class{constructor(t){this.defaults=t,this.interceptors={request:new Lb,response:new Lb}}request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=cw(this.defaults,e);const{transitional:r,paramsSerializer:n,headers:o}=e;let i;void 0!==r&&hw.assertOptions(r,{silentJSONParsing:dw.transitional(dw.boolean),forcedJSONParsing:dw.transitional(dw.boolean),clarifyTimeoutError:dw.transitional(dw.boolean)},!1),null!=n&&(Rv.isFunction(n)?e.paramsSerializer={serialize:n}:hw.assertOptions(n,{encode:dw.function,serialize:dw.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase(),i=o&&Rv.merge(o.common,o[e.method]),i&&Rv.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete o[t]})),e.headers=Kb.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(s=s&&t.synchronous,a.unshift(t.fulfilled,t.rejected))}));const u=[];let c;this.interceptors.response.forEach((function(t){u.push(t.fulfilled,t.rejected)}));let l,p=0;if(!s){const t=[sw.bind(this),void 0];for(t.unshift.apply(t,a),t.push.apply(t,u),l=t.length,c=Promise.resolve(e);p<l;)c=c.then(t[p++],t[p++]);return c}l=a.length;let f=e;for(p=0;p<l;){const t=a[p++],e=a[p++];try{f=t(f)}catch(t){e.call(this,t);break}}try{c=sw.call(this,f)}catch(t){return Promise.reject(t)}for(p=0,l=u.length;p<l;)c=c.then(u[p++],u[p++]);return c}getUri(t){return Ub(tw((t=cw(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}};Rv.forEach(["delete","get","head","options"],(function(t){yw.prototype[t]=function(e,r){return this.request(cw(r||{},{method:t,url:e,data:(r||{}).data}))}})),Rv.forEach(["post","put","patch"],(function(t){function e(e){return function(r,n,o){return this.request(cw(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}yw.prototype[t]=e(),yw.prototype[t+"Form"]=e(!0)}));var mw=yw;class gw{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const r=this;this.promise.then((t=>{if(!r._listeners)return;let e=r._listeners.length;for(;e-- >0;)r._listeners[e](t);r._listeners=null})),this.promise.then=t=>{let e;const n=new Promise((t=>{r.subscribe(t),e=t})).then(t);return n.cancel=function(){r.unsubscribe(e)},n},t((function(t,n,o){r.reason||(r.reason=new Xb(t,n,o),e(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;return{token:new gw((function(e){t=e})),cancel:t}}}var vw=gw;const bw={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(bw).forEach((t=>{let[e,r]=t;bw[r]=e}));var ww=bw;const xw=function t(e){const r=new mw(e),n=Vg(mw.prototype.request,r);return Rv.extend(n,mw.prototype,r,{allOwnKeys:!0}),Rv.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return t(cw(e,r))},n}(Wb);xw.Axios=mw,xw.CanceledError=Xb,xw.CancelToken=vw,xw.isCancel=Qb,xw.VERSION=lw,xw.toFormData=Tb,xw.AxiosError=Ab,xw.Cancel=xw.CanceledError,xw.all=function(t){return Promise.all(t)},xw.spread=function(t){return function(e){return t.apply(null,e)}},xw.isAxiosError=function(t){return Rv.isObject(t)&&!0===t.isAxiosError},xw.mergeConfig=cw,xw.AxiosHeaders=Kb,xw.formToJSON=t=>Db(Rv.isHTMLForm(t)?new FormData(t):t),xw.HttpStatusCode=ww,xw.default=xw;var Sw=xw,Aw=function(){function t(e){var r=e.responseHandler,n=e.requestConfigBuilder;u(this,t),this.responseHandler=r,this.requestConfigBuilder=n}var e,r,i,a,c,p;return l(t,[{key:"get",value:(p=s(o().mark((function t(e,r){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.requestConfigBuilder.build("get",e,r);case 2:return n=t.sent,t.next=5,this.sendRequest(n);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return p.apply(this,arguments)})},{key:"getData",value:(c=s(o().mark((function t(e,r){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.requestConfigBuilder.build("get",e,r,{responseType:"arraybuffer"});case 2:return n=t.sent,t.next=5,this.sendRequest(n);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return c.apply(this,arguments)})},{key:"post",value:(a=s(o().mark((function t(e,r){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.requestConfigBuilder.build("post",e,r);case 2:return n=t.sent,t.next=5,this.sendRequest(n);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return a.apply(this,arguments)})},{key:"postData",value:(i=s(o().mark((function t(e,r){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.requestConfigBuilder.build("post",e,r);case 2:return n=t.sent,t.next=5,this.sendRequest(n);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return i.apply(this,arguments)})},{key:"put",value:(r=s(o().mark((function t(e,r){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.requestConfigBuilder.build("put",e,r);case 2:return n=t.sent,t.next=5,this.sendRequest(n);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)})},{key:"delete",value:(e=s(o().mark((function t(e,r){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.requestConfigBuilder.build("delete",e,r);case 2:return n=t.sent,t.next=5,this.sendRequest(n);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t,this)}))),function(t,r){return e.apply(this,arguments)})},{key:"sendRequest",value:function(t){return this.responseHandler.handle(Sw(n(n({},t),{},{maxBodyLength:1/0,maxContentLength:1/0})))}}]),t}(),Ew=Ro,Rw=rt,Ow=ct,Pw=Km,kw=$([].join);Ew({target:"Array",proto:!0,forced:Rw!==Object||!Pw("join",",")},{join:function(t){return kw(Ow(this),void 0===t?",":t)}});var jw,Tw="undefined"!=typeof Symbol&&Symbol,Iw=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0},_w={foo:{}},Nw=Object,Cw=Array.prototype.slice,Uw=Object.prototype.toString,Lw=function(t){var e=this;if("function"!=typeof e||"[object Function]"!==Uw.call(e))throw new TypeError("Function.prototype.bind called on incompatible "+e);for(var r,n=Cw.call(arguments,1),o=Math.max(0,e.length-n.length),i=[],a=0;a<o;a++)i.push("$"+a);if(r=Function("binder","return function ("+i.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof r){var o=e.apply(this,n.concat(Cw.call(arguments)));return Object(o)===o?o:this}return e.apply(t,n.concat(Cw.call(arguments)))})),e.prototype){var s=function(){};s.prototype=e.prototype,r.prototype=new s,s.prototype=null}return r},Fw=Function.prototype.bind||Lw,Bw=Fw.call(Function.call,Object.prototype.hasOwnProperty),Dw=SyntaxError,Mw=Function,qw=TypeError,Ww=function(t){try{return Mw('"use strict"; return ('+t+").constructor;")()}catch(t){}},Gw=Object.getOwnPropertyDescriptor;if(Gw)try{Gw({},"")}catch(t){Gw=null}var zw=function(){throw new qw},Hw=Gw?function(){try{return zw}catch(t){try{return Gw(arguments,"callee").get}catch(t){return zw}}}():zw,Vw="function"==typeof Tw&&"function"==typeof Symbol&&"symbol"==typeof Tw("foo")&&"symbol"==typeof Symbol("bar")&&Iw(),$w={__proto__:_w}.foo===_w.foo&&!({__proto__:null}instanceof Nw),Yw=Object.getPrototypeOf||($w?function(t){return t.__proto__}:null),Kw={},Jw="undefined"!=typeof Uint8Array&&Yw?Yw(Uint8Array):jw,Qw={"%AggregateError%":"undefined"==typeof AggregateError?jw:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?jw:ArrayBuffer,"%ArrayIteratorPrototype%":Vw&&Yw?Yw([][Symbol.iterator]()):jw,"%AsyncFromSyncIteratorPrototype%":jw,"%AsyncFunction%":Kw,"%AsyncGenerator%":Kw,"%AsyncGeneratorFunction%":Kw,"%AsyncIteratorPrototype%":Kw,"%Atomics%":"undefined"==typeof Atomics?jw:Atomics,"%BigInt%":"undefined"==typeof BigInt?jw:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?jw:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?jw:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?jw:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?jw:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?jw:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?jw:FinalizationRegistry,"%Function%":Mw,"%GeneratorFunction%":Kw,"%Int8Array%":"undefined"==typeof Int8Array?jw:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?jw:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?jw:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Vw&&Yw?Yw(Yw([][Symbol.iterator]())):jw,"%JSON%":"object"==typeof JSON?JSON:jw,"%Map%":"undefined"==typeof Map?jw:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Vw&&Yw?Yw((new Map)[Symbol.iterator]()):jw,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?jw:Promise,"%Proxy%":"undefined"==typeof Proxy?jw:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?jw:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?jw:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Vw&&Yw?Yw((new Set)[Symbol.iterator]()):jw,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?jw:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Vw&&Yw?Yw(""[Symbol.iterator]()):jw,"%Symbol%":Vw?Symbol:jw,"%SyntaxError%":Dw,"%ThrowTypeError%":Hw,"%TypedArray%":Jw,"%TypeError%":qw,"%Uint8Array%":"undefined"==typeof Uint8Array?jw:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?jw:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?jw:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?jw:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?jw:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?jw:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?jw:WeakSet};if(Yw)try{null.error}catch(t){var Xw=Yw(Yw(t));Qw["%Error.prototype%"]=Xw}var Zw=function t(e){var r;if("%AsyncFunction%"===e)r=Ww("async function () {}");else if("%GeneratorFunction%"===e)r=Ww("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=Ww("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&Yw&&(r=Yw(o.prototype))}return Qw[e]=r,r},tx={"%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"]},ex=Fw,rx=Bw,nx=ex.call(Function.call,Array.prototype.concat),ox=ex.call(Function.apply,Array.prototype.splice),ix=ex.call(Function.call,String.prototype.replace),ax=ex.call(Function.call,String.prototype.slice),sx=ex.call(Function.call,RegExp.prototype.exec),ux=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,cx=/\\(\\)?/g,lx=function(t,e){var r,n=t;if(rx(tx,n)&&(n="%"+(r=tx[n])[0]+"%"),rx(Qw,n)){var o=Qw[n];if(o===Kw&&(o=Zw(n)),void 0===o&&!e)throw new qw("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new Dw("intrinsic "+t+" does not exist!")},px=function(t,e){if("string"!=typeof t||0===t.length)throw new qw("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new qw('"allowMissing" argument must be a boolean');if(null===sx(/^%?[^%]*%?$/,t))throw new Dw("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=ax(t,0,1),r=ax(t,-1);if("%"===e&&"%"!==r)throw new Dw("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new Dw("invalid intrinsic syntax, expected opening `%`");var n=[];return ix(t,ux,(function(t,e,r,o){n[n.length]=r?ix(o,cx,"$1"):e||t})),n}(t),n=r.length>0?r[0]:"",o=lx("%"+n+"%",e),i=o.name,a=o.value,s=!1,u=o.alias;u&&(n=u[0],ox(r,nx([0,1],u)));for(var c=1,l=!0;c<r.length;c+=1){var p=r[c],f=ax(p,0,1),h=ax(p,-1);if(('"'===f||"'"===f||"`"===f||'"'===h||"'"===h||"`"===h)&&f!==h)throw new Dw("property names with quotes must have matching quotes");if("constructor"!==p&&l||(s=!0),rx(Qw,i="%"+(n+="."+p)+"%"))a=Qw[i];else if(null!=a){if(!(p in a)){if(!e)throw new qw("base intrinsic for "+t+" exists, but the property is not available.");return}if(Gw&&c+1>=r.length){var d=Gw(a,p);a=(l=!!d)&&"get"in d&&!("originalValue"in d.get)?d.get:a[p]}else l=rx(a,p),a=a[p];l&&!s&&(Qw[i]=a)}}return a},fx={exports:{}};!function(t){var e=Fw,r=px,n=r("%Function.prototype.apply%"),o=r("%Function.prototype.call%"),i=r("%Reflect.apply%",!0)||e.call(o,n),a=r("%Object.getOwnPropertyDescriptor%",!0),s=r("%Object.defineProperty%",!0),u=r("%Math.max%");if(s)try{s({},"a",{value:1})}catch(t){s=null}t.exports=function(t){var r=i(e,o,arguments);a&&s&&(a(r,"length").configurable&&s(r,"length",{value:1+u(0,t.length-(arguments.length-1))}));return r};var c=function(){return i(e,n,arguments)};s?s(t.exports,"apply",{value:c}):t.exports.apply=c}(fx);var hx=px,dx=fx.exports,yx=dx(hx("String.prototype.indexOf")),mx=O(Object.freeze({__proto__:null,default:{}})),gx="function"==typeof Map&&Map.prototype,vx=Object.getOwnPropertyDescriptor&&gx?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,bx=gx&&vx&&"function"==typeof vx.get?vx.get:null,wx=gx&&Map.prototype.forEach,xx="function"==typeof Set&&Set.prototype,Sx=Object.getOwnPropertyDescriptor&&xx?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ax=xx&&Sx&&"function"==typeof Sx.get?Sx.get:null,Ex=xx&&Set.prototype.forEach,Rx="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Ox="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Px="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,kx=Boolean.prototype.valueOf,jx=Object.prototype.toString,Tx=Function.prototype.toString,Ix=String.prototype.match,_x=String.prototype.slice,Nx=String.prototype.replace,Cx=String.prototype.toUpperCase,Ux=String.prototype.toLowerCase,Lx=RegExp.prototype.test,Fx=Array.prototype.concat,Bx=Array.prototype.join,Dx=Array.prototype.slice,Mx=Math.floor,qx="function"==typeof BigInt?BigInt.prototype.valueOf:null,Wx=Object.getOwnPropertySymbols,Gx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,zx="function"==typeof Symbol&&"object"==typeof Symbol.iterator,Hx="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===zx||"symbol")?Symbol.toStringTag:null,Vx=Object.prototype.propertyIsEnumerable,$x=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Yx(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||Lx.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var n=t<0?-Mx(-t):Mx(t);if(n!==t){var o=String(n),i=_x.call(e,o.length+1);return Nx.call(o,r,"$&_")+"."+Nx.call(Nx.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Nx.call(e,r,"$&_")}var Kx=mx,Jx=Kx.custom,Qx=rS(Jx)?Jx:null;function Xx(t,e,r){var n="double"===(r.quoteStyle||e)?'"':"'";return n+t+n}function Zx(t){return Nx.call(String(t),/"/g,"&quot;")}function tS(t){return!("[object Array]"!==iS(t)||Hx&&"object"==typeof t&&Hx in t)}function eS(t){return!("[object RegExp]"!==iS(t)||Hx&&"object"==typeof t&&Hx in t)}function rS(t){if(zx)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!Gx)return!1;try{return Gx.call(t),!0}catch(t){}return!1}var nS=Object.prototype.hasOwnProperty||function(t){return t in this};function oS(t,e){return nS.call(t,e)}function iS(t){return jx.call(t)}function aS(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function sS(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return sS(_x.call(t,0,e.maxStringLength),e)+n}return Xx(Nx.call(Nx.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,uS),"single",e)}function uS(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+Cx.call(e.toString(16))}function cS(t){return"Object("+t+")"}function lS(t){return t+" { ? }"}function pS(t,e,r,n){return t+" ("+e+") {"+(n?fS(r,n):Bx.call(r,", "))+"}"}function fS(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+Bx.call(t,","+r)+"\n"+e.prev}function hS(t,e){var r=tS(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=oS(t,o)?e(t[o],t):""}var i,a="function"==typeof Wx?Wx(t):[];if(zx){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var u in t)oS(t,u)&&(r&&String(Number(u))===u&&u<t.length||zx&&i["$"+u]instanceof Symbol||(Lx.call(/[^\w$]/,u)?n.push(e(u,t)+": "+e(t[u],t)):n.push(u+": "+e(t[u],t))));if("function"==typeof Wx)for(var c=0;c<a.length;c++)Vx.call(t,a[c])&&n.push("["+e(a[c])+"]: "+e(t[a[c]],t));return n}var dS=px,yS=function(t,e){var r=hx(t,!!e);return"function"==typeof r&&yx(t,".prototype.")>-1?dx(r):r},mS=function t(e,r,n,o){var i=r||{};if(oS(i,"quoteStyle")&&"single"!==i.quoteStyle&&"double"!==i.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(oS(i,"maxStringLength")&&("number"==typeof i.maxStringLength?i.maxStringLength<0&&i.maxStringLength!==1/0:null!==i.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=!oS(i,"customInspect")||i.customInspect;if("boolean"!=typeof a&&"symbol"!==a)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(oS(i,"indent")&&null!==i.indent&&"\t"!==i.indent&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(oS(i,"numericSeparator")&&"boolean"!=typeof i.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=i.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return sS(e,i);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var u=String(e);return s?Yx(e,u):u}if("bigint"==typeof e){var c=String(e)+"n";return s?Yx(e,c):c}var l=void 0===i.depth?5:i.depth;if(void 0===n&&(n=0),n>=l&&l>0&&"object"==typeof e)return tS(e)?"[Array]":"[Object]";var p=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=Bx.call(Array(t.indent+1)," ")}return{base:r,prev:Bx.call(Array(e+1),r)}}(i,n);if(void 0===o)o=[];else if(aS(o,e)>=0)return"[Circular]";function f(e,r,a){if(r&&(o=Dx.call(o)).push(r),a){var s={depth:i.depth};return oS(i,"quoteStyle")&&(s.quoteStyle=i.quoteStyle),t(e,s,n+1,o)}return t(e,i,n+1,o)}if("function"==typeof e&&!eS(e)){var h=function(t){if(t.name)return t.name;var e=Ix.call(Tx.call(t),/^function\s*([\w$]+)/);if(e)return e[1];return null}(e),d=hS(e,f);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(d.length>0?" { "+Bx.call(d,", ")+" }":"")}if(rS(e)){var y=zx?Nx.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Gx.call(e);return"object"!=typeof e||zx?y:cS(y)}if(function(t){if(!t||"object"!=typeof t)return!1;if("undefined"!=typeof HTMLElement&&t instanceof HTMLElement)return!0;return"string"==typeof t.nodeName&&"function"==typeof t.getAttribute}(e)){for(var m="<"+Ux.call(String(e.nodeName)),g=e.attributes||[],v=0;v<g.length;v++)m+=" "+g[v].name+"="+Xx(Zx(g[v].value),"double",i);return m+=">",e.childNodes&&e.childNodes.length&&(m+="..."),m+="</"+Ux.call(String(e.nodeName))+">"}if(tS(e)){if(0===e.length)return"[]";var b=hS(e,f);return p&&!function(t){for(var e=0;e<t.length;e++)if(aS(t[e],"\n")>=0)return!1;return!0}(b)?"["+fS(b,p)+"]":"[ "+Bx.call(b,", ")+" ]"}if(function(t){return!("[object Error]"!==iS(t)||Hx&&"object"==typeof t&&Hx in t)}(e)){var w=hS(e,f);return"cause"in Error.prototype||!("cause"in e)||Vx.call(e,"cause")?0===w.length?"["+String(e)+"]":"{ ["+String(e)+"] "+Bx.call(w,", ")+" }":"{ ["+String(e)+"] "+Bx.call(Fx.call("[cause]: "+f(e.cause),w),", ")+" }"}if("object"==typeof e&&a){if(Qx&&"function"==typeof e[Qx]&&Kx)return Kx(e,{depth:l-n});if("symbol"!==a&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!bx||!t||"object"!=typeof t)return!1;try{bx.call(t);try{Ax.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var x=[];return wx&&wx.call(e,(function(t,r){x.push(f(r,e,!0)+" => "+f(t,e))})),pS("Map",bx.call(e),x,p)}if(function(t){if(!Ax||!t||"object"!=typeof t)return!1;try{Ax.call(t);try{bx.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var S=[];return Ex&&Ex.call(e,(function(t){S.push(f(t,e))})),pS("Set",Ax.call(e),S,p)}if(function(t){if(!Rx||!t||"object"!=typeof t)return!1;try{Rx.call(t,Rx);try{Ox.call(t,Ox)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return lS("WeakMap");if(function(t){if(!Ox||!t||"object"!=typeof t)return!1;try{Ox.call(t,Ox);try{Rx.call(t,Rx)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return lS("WeakSet");if(function(t){if(!Px||!t||"object"!=typeof t)return!1;try{return Px.call(t),!0}catch(t){}return!1}(e))return lS("WeakRef");if(function(t){return!("[object Number]"!==iS(t)||Hx&&"object"==typeof t&&Hx in t)}(e))return cS(f(Number(e)));if(function(t){if(!t||"object"!=typeof t||!qx)return!1;try{return qx.call(t),!0}catch(t){}return!1}(e))return cS(f(qx.call(e)));if(function(t){return!("[object Boolean]"!==iS(t)||Hx&&"object"==typeof t&&Hx in t)}(e))return cS(kx.call(e));if(function(t){return!("[object String]"!==iS(t)||Hx&&"object"==typeof t&&Hx in t)}(e))return cS(f(String(e)));if(!function(t){return!("[object Date]"!==iS(t)||Hx&&"object"==typeof t&&Hx in t)}(e)&&!eS(e)){var A=hS(e,f),E=$x?$x(e)===Object.prototype:e instanceof Object||e.constructor===Object,R=e instanceof Object?"":"null prototype",O=!E&&Hx&&Object(e)===e&&Hx in e?_x.call(iS(e),8,-1):R?"Object":"",P=(E||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(O||R?"["+Bx.call(Fx.call([],O||[],R||[]),": ")+"] ":"");return 0===A.length?P+"{}":p?P+"{"+fS(A,p)+"}":P+"{ "+Bx.call(A,", ")+" }"}return String(e)},gS=dS("%TypeError%"),vS=dS("%WeakMap%",!0),bS=dS("%Map%",!0),wS=yS("WeakMap.prototype.get",!0),xS=yS("WeakMap.prototype.set",!0),SS=yS("WeakMap.prototype.has",!0),AS=yS("Map.prototype.get",!0),ES=yS("Map.prototype.set",!0),RS=yS("Map.prototype.has",!0),OS=function(t,e){for(var r,n=t;null!==(r=n.next);n=r)if(r.key===e)return n.next=r.next,r.next=t.next,t.next=r,r},PS=String.prototype.replace,kS=/%20/g,jS="RFC3986",TS={default:jS,formatters:{RFC1738:function(t){return PS.call(t,kS,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:jS},IS=TS,_S=Object.prototype.hasOwnProperty,NS=Array.isArray,CS=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),US=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r},LS={arrayToObject:US,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n<e.length;++n)for(var o=e[n],i=o.obj[o.prop],a=Object.keys(i),s=0;s<a.length;++s){var u=a[s],c=i[u];"object"==typeof c&&null!==c&&-1===r.indexOf(c)&&(e.push({obj:i,prop:u}),r.push(c))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(NS(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);e.obj[e.prop]=n}}}(e),t},decode:function(t,e,r){var n=t.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(t){return n}},encode:function(t,e,r,n,o){if(0===t.length)return t;var i=t;if("symbol"==typeof t?i=Symbol.prototype.toString.call(t):"string"!=typeof t&&(i=String(t)),"iso-8859-1"===r)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var a="",s=0;s<i.length;++s){var u=i.charCodeAt(s);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||o===IS.RFC1738&&(40===u||41===u)?a+=i.charAt(s):u<128?a+=CS[u]:u<2048?a+=CS[192|u>>6]+CS[128|63&u]:u<55296||u>=57344?a+=CS[224|u>>12]+CS[128|u>>6&63]+CS[128|63&u]:(s+=1,u=65536+((1023&u)<<10|1023&i.charCodeAt(s)),a+=CS[240|u>>18]+CS[128|u>>12&63]+CS[128|u>>6&63]+CS[128|63&u])}return a},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(NS(t)){for(var r=[],n=0;n<t.length;n+=1)r.push(e(t[n]));return r}return e(t)},merge:function t(e,r,n){if(!r)return e;if("object"!=typeof r){if(NS(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(n&&(n.plainObjects||n.allowPrototypes)||!_S.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var o=e;return NS(e)&&!NS(r)&&(o=US(e,n)),NS(e)&&NS(r)?(r.forEach((function(r,o){if(_S.call(e,o)){var i=e[o];i&&"object"==typeof i&&r&&"object"==typeof r?e[o]=t(i,r,n):e.push(r)}else e[o]=r})),e):Object.keys(r).reduce((function(e,o){var i=r[o];return _S.call(e,o)?e[o]=t(e[o],i,n):e[o]=i,e}),o)}},FS=function(){var t,e,r,n={assert:function(t){if(!n.has(t))throw new gS("Side channel does not contain "+mS(t))},get:function(n){if(vS&&n&&("object"==typeof n||"function"==typeof n)){if(t)return wS(t,n)}else if(bS){if(e)return AS(e,n)}else if(r)return function(t,e){var r=OS(t,e);return r&&r.value}(r,n)},has:function(n){if(vS&&n&&("object"==typeof n||"function"==typeof n)){if(t)return SS(t,n)}else if(bS){if(e)return RS(e,n)}else if(r)return function(t,e){return!!OS(t,e)}(r,n);return!1},set:function(n,o){vS&&n&&("object"==typeof n||"function"==typeof n)?(t||(t=new vS),xS(t,n,o)):bS?(e||(e=new bS),ES(e,n,o)):(r||(r={key:{},next:null}),function(t,e,r){var n=OS(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}}(r,n,o))}};return n},BS=LS,DS=TS,MS=Object.prototype.hasOwnProperty,qS={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},WS=Array.isArray,GS=Array.prototype.push,zS=function(t,e){GS.apply(t,WS(e)?e:[e])},HS=Date.prototype.toISOString,VS=DS.default,$S={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:BS.encode,encodeValuesOnly:!1,format:VS,formatter:DS.formatters[VS],indices:!1,serializeDate:function(t){return HS.call(t)},skipNulls:!1,strictNullHandling:!1},YS={},KS=function t(e,r,n,o,i,a,s,u,c,l,p,f,h,d,y,m){for(var g,v=e,b=m,w=0,x=!1;void 0!==(b=b.get(YS))&&!x;){var S=b.get(e);if(w+=1,void 0!==S){if(S===w)throw new RangeError("Cyclic object value");x=!0}void 0===b.get(YS)&&(w=0)}if("function"==typeof u?v=u(r,v):v instanceof Date?v=p(v):"comma"===n&&WS(v)&&(v=BS.maybeMap(v,(function(t){return t instanceof Date?p(t):t}))),null===v){if(i)return s&&!d?s(r,$S.encoder,y,"key",f):r;v=""}if("string"==typeof(g=v)||"number"==typeof g||"boolean"==typeof g||"symbol"==typeof g||"bigint"==typeof g||BS.isBuffer(v))return s?[h(d?r:s(r,$S.encoder,y,"key",f))+"="+h(s(v,$S.encoder,y,"value",f))]:[h(r)+"="+h(String(v))];var A,E=[];if(void 0===v)return E;if("comma"===n&&WS(v))d&&s&&(v=BS.maybeMap(v,s)),A=[{value:v.length>0?v.join(",")||null:void 0}];else if(WS(u))A=u;else{var R=Object.keys(v);A=c?R.sort(c):R}for(var O=o&&WS(v)&&1===v.length?r+"[]":r,P=0;P<A.length;++P){var k=A[P],j="object"==typeof k&&void 0!==k.value?k.value:v[k];if(!a||null!==j){var T=WS(v)?"function"==typeof n?n(O,k):O:O+(l?"."+k:"["+k+"]");m.set(e,w);var I=FS();I.set(YS,m),zS(E,t(j,T,n,o,i,a,"comma"===n&&d&&WS(v)?null:s,u,c,l,p,f,h,d,y,I))}}return E},JS=LS,QS=Object.prototype.hasOwnProperty,XS=Array.isArray,ZS={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:JS.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},tA=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},eA=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},rA=function(t,e,r,n){if(t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(o),s=a?o.slice(0,a.index):o,u=[];if(s){if(!r.plainObjects&&QS.call(Object.prototype,s)&&!r.allowPrototypes)return;u.push(s)}for(var c=0;r.depth>0&&null!==(a=i.exec(o))&&c<r.depth;){if(c+=1,!r.plainObjects&&QS.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(a[1])}return a&&u.push("["+o.slice(a.index)+"]"),function(t,e,r,n){for(var o=n?e:eA(e,r),i=t.length-1;i>=0;--i){var a,s=t[i];if("[]"===s&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=parseInt(u,10);r.parseArrays||""!==u?!isNaN(c)&&s!==u&&String(c)===u&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(a=[])[c]=o:"__proto__"!==u&&(a[u]=o):a={0:o}}o=a}return o}(u,e,r,n)}},nA=function(t,e){var r,n=t,o=function(t){if(!t)return $S;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||$S.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=DS.default;if(void 0!==t.format){if(!MS.call(DS.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n=DS.formatters[r],o=$S.filter;return("function"==typeof t.filter||WS(t.filter))&&(o=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:$S.addQueryPrefix,allowDots:void 0===t.allowDots?$S.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:$S.charsetSentinel,delimiter:void 0===t.delimiter?$S.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:$S.encode,encoder:"function"==typeof t.encoder?t.encoder:$S.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:$S.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:$S.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:$S.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:$S.strictNullHandling}}(e);"function"==typeof o.filter?n=(0,o.filter)("",n):WS(o.filter)&&(r=o.filter);var i,a=[];if("object"!=typeof n||null===n)return"";i=e&&e.arrayFormat in qS?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var s=qS[i];if(e&&"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u="comma"===s&&e&&e.commaRoundTrip;r||(r=Object.keys(n)),o.sort&&r.sort(o.sort);for(var c=FS(),l=0;l<r.length;++l){var p=r[l];o.skipNulls&&null===n[p]||zS(a,KS(n[p],p,s,u,o.strictNullHandling,o.skipNulls,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,c))}var f=a.join(o.delimiter),h=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?h+="utf8=%26%2310003%3B&":h+="utf8=%E2%9C%93&"),f.length>0?h+f:""},oA=function(t,e){var r=function(t){if(!t)return ZS;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?ZS.charset:t.charset;return{allowDots:void 0===t.allowDots?ZS.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:ZS.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:ZS.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:ZS.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:ZS.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:ZS.comma,decoder:"function"==typeof t.decoder?t.decoder:ZS.decoder,delimiter:"string"==typeof t.delimiter||JS.isRegExp(t.delimiter)?t.delimiter:ZS.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:ZS.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:ZS.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:ZS.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:ZS.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:ZS.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var n="string"==typeof t?function(t,e){var r,n={__proto__:null},o=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,i=e.parameterLimit===1/0?void 0:e.parameterLimit,a=o.split(e.delimiter,i),s=-1,u=e.charset;if(e.charsetSentinel)for(r=0;r<a.length;++r)0===a[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===a[r]?u="utf-8":"utf8=%26%2310003%3B"===a[r]&&(u="iso-8859-1"),s=r,r=a.length);for(r=0;r<a.length;++r)if(r!==s){var c,l,p=a[r],f=p.indexOf("]="),h=-1===f?p.indexOf("="):f+1;-1===h?(c=e.decoder(p,ZS.decoder,u,"key"),l=e.strictNullHandling?null:""):(c=e.decoder(p.slice(0,h),ZS.decoder,u,"key"),l=JS.maybeMap(eA(p.slice(h+1),e),(function(t){return e.decoder(t,ZS.decoder,u,"value")}))),l&&e.interpretNumericEntities&&"iso-8859-1"===u&&(l=tA(l)),p.indexOf("[]=")>-1&&(l=XS(l)?[l]:l),QS.call(n,c)?n[c]=JS.combine(n[c],l):n[c]=l}return n}(t,r):t,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),a=0;a<i.length;++a){var s=i[a],u=rA(s,n[s],r,"string"==typeof t);o=JS.merge(o,u,r)}return!0===r.allowSparse?o:JS.compact(o)},iA=R({formats:TS,parse:oA,stringify:nA});const aA="function"==typeof btoa,sA="function"==typeof Buffer,uA=("function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder?new TextEncoder:void 0),cA=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),lA=((t=>{let e={};t.forEach(((t,r)=>e[t]=r))})(cA),String.fromCharCode.bind(String)),pA=("function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array),t=>t.replace(/=/g,"").replace(/[+\/]/g,(t=>"+"==t?"-":"_"))),fA=t=>{let e,r,n,o,i="";const a=t.length%3;for(let a=0;a<t.length;){if((r=t.charCodeAt(a++))>255||(n=t.charCodeAt(a++))>255||(o=t.charCodeAt(a++))>255)throw new TypeError("invalid character found");e=r<<16|n<<8|o,i+=cA[e>>18&63]+cA[e>>12&63]+cA[e>>6&63]+cA[63&e]}return a?i.slice(0,a-3)+"===".substring(a):i},hA=aA?t=>btoa(t):sA?t=>Buffer.from(t,"binary").toString("base64"):fA,dA=sA?t=>Buffer.from(t).toString("base64"):t=>{let e=[];for(let r=0,n=t.length;r<n;r+=4096)e.push(lA.apply(null,t.subarray(r,r+4096)));return hA(e.join(""))},yA=t=>{if(t.length<2)return(e=t.charCodeAt(0))<128?t:e<2048?lA(192|e>>>6)+lA(128|63&e):lA(224|e>>>12&15)+lA(128|e>>>6&63)+lA(128|63&e);var e=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320);return lA(240|e>>>18&7)+lA(128|e>>>12&63)+lA(128|e>>>6&63)+lA(128|63&e)},mA=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,gA=t=>t.replace(mA,yA),vA=sA?t=>Buffer.from(t,"utf8").toString("base64"):uA?t=>dA(uA.encode(t)):t=>hA(gA(t)),bA=function(t){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?pA(vA(t)):vA(t)},wA=bA;var xA,SA=function(){function t(e){if(u(this,t),this.baseUrl=e.baseUrl,this.auth=e.auth,this.headers=this.buildHeaders({basicAuth:e.basicAuth,userAgent:e.userAgent}),"httpsAgent"in e){if("clientCertAuth"in e)throw new Error("Cannot specify clientCertAuth along with httpsAgent.");this.httpsAgent=e.httpsAgent}else"clientCertAuth"in e&&(this.clientCertAuth=e.clientCertAuth);this.proxy=e.proxy,this.requestToken=null,this.socketTimeout=e.socketTimeout}var r,i,a;return l(t,[{key:"build",value:(a=s(o().mark((function t(r,i,a,s){var u,c,l,p;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:u=n(n(n({method:r,headers:this.headers,url:"".concat(this.baseUrl).concat(i)},s||{}),e.buildPlatformDependentConfig({httpsAgent:this.httpsAgent,clientCertAuth:this.clientCertAuth,socketTimeout:this.socketTimeout})),{},{proxy:this.buildProxyConfig(this.proxy)}),t.t0=r,t.next="get"===t.t0?4:"post"===t.t0?16:"put"===t.t0?29:"delete"===t.t0?37:44;break;case 4:if(!((c=this.buildRequestUrl(i,a)).length>4096)){t.next=15;break}return t.t1=n,t.t2=n({},u),t.t3={},t.t4=n(n({},this.headers),{},{"X-HTTP-Method-Override":"GET"}),t.next=12,this.buildData(a);case 12:return t.t5=t.sent,t.t6={method:"post",headers:t.t4,data:t.t5},t.abrupt("return",(0,t.t1)(t.t2,t.t3,t.t6));case 15:return t.abrupt("return",n(n({},u),{},{url:c}));case 16:if(!(a instanceof Gg)){t.next=21;break}return t.next=19,this.buildData(a);case 19:return l=t.sent,t.abrupt("return",n(n({},u),{},{headers:"function"==typeof l.getHeaders?n(n({},this.headers),l.getHeaders()):this.headers,data:l}));case 21:return t.t7=n,t.t8=n({},u),t.t9={},t.next=26,this.buildData(a);case 26:return t.t10=t.sent,t.t11={data:t.t10},t.abrupt("return",(0,t.t7)(t.t8,t.t9,t.t11));case 29:return t.t12=n,t.t13=n({},u),t.t14={},t.next=34,this.buildData(a);case 34:return t.t15=t.sent,t.t16={data:t.t15},t.abrupt("return",(0,t.t12)(t.t13,t.t14,t.t16));case 37:return t.t17=this,t.t18=i,t.next=41,this.buildData(a);case 41:return t.t19=t.sent,p=t.t17.buildRequestUrl.call(t.t17,t.t18,t.t19),t.abrupt("return",n(n({},u),{},{url:p}));case 44:throw new Error("".concat(r," method is not supported"));case 45:case"end":return t.stop()}}),t,this)}))),function(t,e,r,n){return a.apply(this,arguments)})},{key:"buildProxyConfig",value:function(t){var e;if(void 0!==t){if(!1===t)return!1;var r=t;return!r.auth||0!==r.auth.username.length&&0!==r.auth.password.length||(r.auth=void 0),r.protocol=null!==(e=r.protocol)&&void 0!==e?e:"http",r}}},{key:"buildRequestUrl",value:function(t,e){return"".concat(this.baseUrl).concat(t,"?").concat(iA.stringify(e))}},{key:"buildData",value:(i=s(o().mark((function t(e){var r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("session"!==this.auth.type){t.next=8;break}return t.next=3,this.getRequestToken();case 3:if(r=t.sent,!(e instanceof Gg)){t.next=7;break}return e.append("__REQUEST_TOKEN__",r),t.abrupt("return",e);case 7:return t.abrupt("return",n({__REQUEST_TOKEN__:r},e));case 8:return t.abrupt("return",e);case 9:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"buildHeaders",value:function(t){var r=t.basicAuth,o=t.userAgent,i=r?{Authorization:"Basic ".concat(wA("".concat(r.username,":").concat(r.password)))}:{},a=n(n({},e.buildHeaders({userAgent:o})),i);switch(this.auth.type){case"password":return n(n({},a),{},{"X-Cybozu-Authorization":wA("".concat(this.auth.username,":").concat(this.auth.password))});case"apiToken":var s=this.auth.apiToken;return Array.isArray(s)?n(n({},a),{},{"X-Cybozu-API-Token":s.join(",")}):n(n({},a),{},{"X-Cybozu-API-Token":s});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=s(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==this.requestToken){t.next=4;break}return t.next=3,e.getRequestToken();case 3:this.requestToken=t.sent;case 4:return t.abrupt("return",this.requestToken);case 5:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})}]),t}(),AA=function(t){f(r,t);var e=w(r);function r(t){var n;return u(this,r),(n=e.call(this,t)).name="KintoneAbortSearchError",n.message=t,Object.setPrototypeOf(b(n),r.prototype),n}return l(r)}(g(Error)),EA=function(t){f(r,t);var e=w(r);function r(t){var n;u(this,r);var o=r.buildErrorResponseDateWithIndex(t),i=o.data,a=o.bulkRequestIndex;return(n=e.call(this,i.message)).name="KintoneRestAPIError",n.id=i.id,n.code=i.code,n.errors=i.errors,n.status=t.status,n.bulkRequestIndex=a,n.headers=t.headers,n.message="[".concat(t.status,"] [").concat(n.code,"] ").concat(n.message," (").concat(n.id,")"),Error.captureStackTrace&&Error.captureStackTrace(b(n),r),Object.setPrototypeOf(b(n),r.prototype),n}return l(r,null,[{key:"findErrorResponseDataWithIndex",value:function(t){for(var e=0;e<t.length;e++){if(0!==Object.keys(t[e]).length)return{data:t[e],bulkRequestIndex:e}}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(t){return"results"in t.data?r.findErrorResponseDataWithIndex(t.data.results):{data:t.data}}}]),r}(g(Error)),RA=["data"],OA=function(){function t(e){var r=e.enableAbortSearchError;u(this,t),this.enableAbortSearchError=r}return l(t,[{key:"handle",value:function(t){var e=this;return t.then((function(t){return e.handleSuccessResponse(t)}),(function(t){return e.handleErrorResponse(t)}))}},{key:"handleSuccessResponse",value:function(t){if(this.enableAbortSearchError&&/Filter aborted because of too many search results/.test(t.headers["x-cybozu-warning"]))throw new AA(t.headers["x-cybozu-warning"]);return t.data}},{key:"handleErrorResponse",value:function(t){if(!t.response){if(/mac verify failure/.test(t.toString()))throw new Error("invalid clientCertAuth setting");throw t}var e=t.response,r=e.data,o=v(e,RA);if("string"==typeof r)throw new Error("".concat(o.status,": ").concat(o.statusText));throw new EA(n({data:r},o))}}]),t}(),PA=function(){function t(){var r,o,i,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u(this,t),kA(a),this.baseUrl=e.buildBaseUrl(a.baseUrl).replace(/\/+$/,"");var s=function(t){if("username"in t)return n({type:"password"},t);if("apiToken"in t)return n({type:"apiToken"},t);if("oAuthToken"in t)return n({type:"oAuthToken"},t);try{return e.getDefaultAuth()}catch(t){if(t instanceof $i)throw new Error("session authentication is not supported in ".concat(t.platform," environment."));throw t}}(null!==(r=a.auth)&&void 0!==r?r:{}),c=new SA(n(n({},a),{},{baseUrl:this.baseUrl,auth:s})),l=new OA({enableAbortSearchError:null!==(o=null===(i=a.featureFlags)||void 0===i?void 0:i.enableAbortSearchError)&&void 0!==o&&o}),p=new Aw({responseHandler:l,requestConfigBuilder:c}),f=a.guestSpaceId;this.bulkRequest_=new Hy(p,f),this.record=new Wg(p,this.bulkRequest_,f),this.app=new am(p,f),this.file=new zg(p,f)}return l(t,[{key:"getBaseUrl",value:function(){return this.baseUrl}},{key:"bulkRequest",value:function(t){return this.bulkRequest_.send(t)}}],[{key:"version",get:function(){return e.getVersion()}}]),t}(),kA=function(t){jA(t.baseUrl),TA(t.guestSpaceId),IA(t.socketTimeout)},jA=function(t){if(void 0!==t){var e=new URL(t);if("localhost"!==e.hostname&&"https:"!==e.protocol)throw new Error('The protocol of baseUrl must be "https".')}},TA=function(t){if(""===t||null===t)throw new Error("invalid guestSpaceId: got [".concat(t,"]"))},IA=function(t){if(void 0!==t){var e=parseFloat(t.toString());if(isNaN(e)||e<0)throw new Error("Invalid socketTimeout. Must be a positive number.")}};(xA=Xi).readFileFromPath&&(e.readFileFromPath=xA.readFileFromPath),xA.getRequestToken&&(e.getRequestToken=xA.getRequestToken),xA.getDefaultAuth&&(e.getDefaultAuth=xA.getDefaultAuth),xA.buildPlatformDependentConfig&&(e.buildPlatformDependentConfig=xA.buildPlatformDependentConfig),xA.buildHeaders&&(e.buildHeaders=xA.buildHeaders),xA.buildFormDataValue&&(e.buildFormDataValue=xA.buildFormDataValue),xA.buildBaseUrl&&(e.buildBaseUrl=xA.buildBaseUrl),xA.getVersion&&(e.getVersion=xA.getVersion),t.KintoneAbortSearchError=AA,t.KintoneAllRecordsError=Fg,t.KintoneRestAPIClient=PA,t.KintoneRestAPIError=EA}));
469
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).window=t.window||{})}(this,(function(t){"use strict";var e={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(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function n(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(){o=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),s=new I(n||[]);return i(a,"_invoke",{value:P(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var h="suspendedStart",d="suspendedYield",y="executing",m="completed",g={};function v(){}function b(){}function w(){}var x={};l(x,s,(function(){return this}));var S=Object.getPrototypeOf,A=S&&S(S(_([])));A&&A!==r&&n.call(A,s)&&(x=A);var E=w.prototype=v.prototype=Object.create(x);function R(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,s){var u=f(t[o],t,i);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,s)}))}s(u.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}})}function P(e,r,n){var o=h;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var u=k(s,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var c=f(e,r,n);if("normal"===c.type){if(o=n.done?m:d,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=m,n.method="throw",n.arg=c.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function _(e){if(e||""===e){var r=e[s];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}}throw new TypeError(typeof e+" is not iterable")}return b.prototype=w,i(E,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,c,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},R(O.prototype),l(O.prototype,u,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(p(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},R(E),l(E,c,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=_,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(T),!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 t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.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],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){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(t,e){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"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:_(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function a(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function s(t){a(i,n,o,s,u,"next",t)}function u(t){a(i,n,o,s,u,"throw",t)}s(void 0)}))}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,A(n.key),n)}}function l(t,e,r){return e&&c(t.prototype,e),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function p(t,e,r){return(e=A(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}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(t){return!1}}function m(t,e,r){return m=y()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&d(o,r.prototype),o},m.apply(null,arguments)}function g(t){var e="function"==typeof Map?new Map:void 0;return g=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return m(t,arguments,h(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),d(r,t)},g(t)}function v(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function b(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function w(t){var e=y();return function(){var r,n=h(t);if(e){var o=h(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return b(t)}(this,r)}}function x(t){return function(t){if(Array.isArray(t))return S(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return S(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return S(t,e)}(t)||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 S(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function A(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var E="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function R(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function O(t){if(t.__esModule)return t;var e=t.default;if("function"==typeof e){var r=function t(){return this instanceof t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach((function(e){var n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:function(){return t[e]}})})),r}var P=function(t){return t&&t.Math===Math&&t},k=P("object"==typeof globalThis&&globalThis)||P("object"==typeof window&&window)||P("object"==typeof self&&self)||P("object"==typeof E&&E)||function(){return this}()||E||Function("return this")(),j={},T=function(t){try{return!!t()}catch(t){return!0}},I=!T((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),_=!T((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),N=_,C=Function.prototype.call,U=N?C.bind(C):function(){return C.apply(C,arguments)},L={},F={}.propertyIsEnumerable,B=Object.getOwnPropertyDescriptor,D=B&&!F.call({1:2},1);L.f=D?function(t){var e=B(this,t);return!!e&&e.enumerable}:F;var M,q,W=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},G=_,z=Function.prototype,H=z.call,$=G&&z.bind.bind(H,H),V=G?$:function(t){return function(){return H.apply(t,arguments)}},Y=V,K=Y({}.toString),J=Y("".slice),Q=function(t){return J(K(t),8,-1)},X=T,Z=Q,tt=Object,et=V("".split),rt=X((function(){return!tt("z").propertyIsEnumerable(0)}))?function(t){return"String"===Z(t)?et(t,""):tt(t)}:tt,nt=function(t){return null==t},ot=nt,it=TypeError,at=function(t){if(ot(t))throw new it("Can't call method on "+t);return t},st=rt,ut=at,ct=function(t){return st(ut(t))},lt="object"==typeof document&&document.all,pt={all:lt,IS_HTMLDDA:void 0===lt&&void 0!==lt},ft=pt.all,ht=pt.IS_HTMLDDA?function(t){return"function"==typeof t||t===ft}:function(t){return"function"==typeof t},dt=ht,yt=pt.all,mt=pt.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:dt(t)||t===yt}:function(t){return"object"==typeof t?null!==t:dt(t)},gt=k,vt=ht,bt=function(t,e){return arguments.length<2?(r=gt[t],vt(r)?r:void 0):gt[t]&&gt[t][e];var r},wt=V({}.isPrototypeOf),xt=k,St="undefined"!=typeof navigator&&String(navigator.userAgent)||"",At=xt.process,Et=xt.Deno,Rt=At&&At.versions||Et&&Et.version,Ot=Rt&&Rt.v8;Ot&&(q=(M=Ot.split("."))[0]>0&&M[0]<4?1:+(M[0]+M[1])),!q&&St&&(!(M=St.match(/Edge\/(\d+)/))||M[1]>=74)&&(M=St.match(/Chrome\/(\d+)/))&&(q=+M[1]);var Pt=q,kt=Pt,jt=T,Tt=k.String,It=!!Object.getOwnPropertySymbols&&!jt((function(){var t=Symbol("symbol detection");return!Tt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&kt&&kt<41})),_t=It&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Nt=bt,Ct=ht,Ut=wt,Lt=Object,Ft=_t?function(t){return"symbol"==typeof t}:function(t){var e=Nt("Symbol");return Ct(e)&&Ut(e.prototype,Lt(t))},Bt=String,Dt=function(t){try{return Bt(t)}catch(t){return"Object"}},Mt=ht,qt=Dt,Wt=TypeError,Gt=function(t){if(Mt(t))return t;throw new Wt(qt(t)+" is not a function")},zt=Gt,Ht=nt,$t=function(t,e){var r=t[e];return Ht(r)?void 0:zt(r)},Vt=U,Yt=ht,Kt=mt,Jt=TypeError,Qt={exports:{}},Xt=k,Zt=Object.defineProperty,te=function(t,e){try{Zt(Xt,t,{value:e,configurable:!0,writable:!0})}catch(r){Xt[t]=e}return e},ee=te,re="__core-js_shared__",ne=k[re]||ee(re,{}),oe=ne;(Qt.exports=function(t,e){return oe[t]||(oe[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.33.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.1/LICENSE",source:"https://github.com/zloirock/core-js"});var ie=Qt.exports,ae=at,se=Object,ue=function(t){return se(ae(t))},ce=ue,le=V({}.hasOwnProperty),pe=Object.hasOwn||function(t,e){return le(ce(t),e)},fe=V,he=0,de=Math.random(),ye=fe(1..toString),me=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ye(++he+de,36)},ge=ie,ve=pe,be=me,we=It,xe=_t,Se=k.Symbol,Ae=ge("wks"),Ee=xe?Se.for||Se:Se&&Se.withoutSetter||be,Re=function(t){return ve(Ae,t)||(Ae[t]=we&&ve(Se,t)?Se[t]:Ee("Symbol."+t)),Ae[t]},Oe=U,Pe=mt,ke=Ft,je=$t,Te=function(t,e){var r,n;if("string"===e&&Yt(r=t.toString)&&!Kt(n=Vt(r,t)))return n;if(Yt(r=t.valueOf)&&!Kt(n=Vt(r,t)))return n;if("string"!==e&&Yt(r=t.toString)&&!Kt(n=Vt(r,t)))return n;throw new Jt("Can't convert object to primitive value")},Ie=TypeError,_e=Re("toPrimitive"),Ne=function(t,e){if(!Pe(t)||ke(t))return t;var r,n=je(t,_e);if(n){if(void 0===e&&(e="default"),r=Oe(n,t,e),!Pe(r)||ke(r))return r;throw new Ie("Can't convert object to primitive value")}return void 0===e&&(e="number"),Te(t,e)},Ce=Ne,Ue=Ft,Le=function(t){var e=Ce(t,"string");return Ue(e)?e:e+""},Fe=mt,Be=k.document,De=Fe(Be)&&Fe(Be.createElement),Me=function(t){return De?Be.createElement(t):{}},qe=Me,We=!I&&!T((function(){return 7!==Object.defineProperty(qe("div"),"a",{get:function(){return 7}}).a})),Ge=I,ze=U,He=L,$e=W,Ve=ct,Ye=Le,Ke=pe,Je=We,Qe=Object.getOwnPropertyDescriptor;j.f=Ge?Qe:function(t,e){if(t=Ve(t),e=Ye(e),Je)try{return Qe(t,e)}catch(t){}if(Ke(t,e))return $e(!ze(He.f,t,e),t[e])};var Xe={},Ze=I&&T((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),tr=mt,er=String,rr=TypeError,nr=function(t){if(tr(t))return t;throw new rr(er(t)+" is not an object")},or=I,ir=We,ar=Ze,sr=nr,ur=Le,cr=TypeError,lr=Object.defineProperty,pr=Object.getOwnPropertyDescriptor,fr="enumerable",hr="configurable",dr="writable";Xe.f=or?ar?function(t,e,r){if(sr(t),e=ur(e),sr(r),"function"==typeof t&&"prototype"===e&&"value"in r&&dr in r&&!r[dr]){var n=pr(t,e);n&&n[dr]&&(t[e]=r.value,r={configurable:hr in r?r[hr]:n[hr],enumerable:fr in r?r[fr]:n[fr],writable:!1})}return lr(t,e,r)}:lr:function(t,e,r){if(sr(t),e=ur(e),sr(r),ir)try{return lr(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new cr("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var yr=Xe,mr=W,gr=I?function(t,e,r){return yr.f(t,e,mr(1,r))}:function(t,e,r){return t[e]=r,t},vr={exports:{}},br=I,wr=pe,xr=Function.prototype,Sr=br&&Object.getOwnPropertyDescriptor,Ar=wr(xr,"name"),Er={EXISTS:Ar,PROPER:Ar&&"something"===function(){}.name,CONFIGURABLE:Ar&&(!br||br&&Sr(xr,"name").configurable)},Rr=ht,Or=ne,Pr=V(Function.toString);Rr(Or.inspectSource)||(Or.inspectSource=function(t){return Pr(t)});var kr,jr,Tr,Ir=Or.inspectSource,_r=ht,Nr=k.WeakMap,Cr=_r(Nr)&&/native code/.test(String(Nr)),Ur=me,Lr=ie("keys"),Fr=function(t){return Lr[t]||(Lr[t]=Ur(t))},Br={},Dr=Cr,Mr=k,qr=mt,Wr=gr,Gr=pe,zr=ne,Hr=Fr,$r=Br,Vr="Object already initialized",Yr=Mr.TypeError,Kr=Mr.WeakMap;if(Dr||zr.state){var Jr=zr.state||(zr.state=new Kr);Jr.get=Jr.get,Jr.has=Jr.has,Jr.set=Jr.set,kr=function(t,e){if(Jr.has(t))throw new Yr(Vr);return e.facade=t,Jr.set(t,e),e},jr=function(t){return Jr.get(t)||{}},Tr=function(t){return Jr.has(t)}}else{var Qr=Hr("state");$r[Qr]=!0,kr=function(t,e){if(Gr(t,Qr))throw new Yr(Vr);return e.facade=t,Wr(t,Qr,e),e},jr=function(t){return Gr(t,Qr)?t[Qr]:{}},Tr=function(t){return Gr(t,Qr)}}var Xr={set:kr,get:jr,has:Tr,enforce:function(t){return Tr(t)?jr(t):kr(t,{})},getterFor:function(t){return function(e){var r;if(!qr(e)||(r=jr(e)).type!==t)throw new Yr("Incompatible receiver, "+t+" required");return r}}},Zr=V,tn=T,en=ht,rn=pe,nn=I,on=Er.CONFIGURABLE,an=Ir,sn=Xr.enforce,un=Xr.get,cn=String,ln=Object.defineProperty,pn=Zr("".slice),fn=Zr("".replace),hn=Zr([].join),dn=nn&&!tn((function(){return 8!==ln((function(){}),"length",{value:8}).length})),yn=String(String).split("String"),mn=vr.exports=function(t,e,r){"Symbol("===pn(cn(e),0,7)&&(e="["+fn(cn(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!rn(t,"name")||on&&t.name!==e)&&(nn?ln(t,"name",{value:e,configurable:!0}):t.name=e),dn&&r&&rn(r,"arity")&&t.length!==r.arity&&ln(t,"length",{value:r.arity});try{r&&rn(r,"constructor")&&r.constructor?nn&&ln(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=sn(t);return rn(n,"source")||(n.source=hn(yn,"string"==typeof e?e:"")),t};Function.prototype.toString=mn((function(){return en(this)&&un(this).source||an(this)}),"toString");var gn=vr.exports,vn=ht,bn=Xe,wn=gn,xn=te,Sn=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(vn(r)&&wn(r,i,n),n.global)o?t[e]=r:xn(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:bn.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},An={},En=Math.ceil,Rn=Math.floor,On=Math.trunc||function(t){var e=+t;return(e>0?Rn:En)(e)},Pn=function(t){var e=+t;return e!=e||0===e?0:On(e)},kn=Pn,jn=Math.max,Tn=Math.min,In=function(t,e){var r=kn(t);return r<0?jn(r+e,0):Tn(r,e)},_n=Pn,Nn=Math.min,Cn=function(t){return t>0?Nn(_n(t),9007199254740991):0},Un=Cn,Ln=function(t){return Un(t.length)},Fn=ct,Bn=In,Dn=Ln,Mn=function(t){return function(e,r,n){var o,i=Fn(e),a=Dn(i),s=Bn(n,a);if(t&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((t||s in i)&&i[s]===r)return t||s||0;return!t&&-1}},qn={includes:Mn(!0),indexOf:Mn(!1)},Wn=pe,Gn=ct,zn=qn.indexOf,Hn=Br,$n=V([].push),Vn=function(t,e){var r,n=Gn(t),o=0,i=[];for(r in n)!Wn(Hn,r)&&Wn(n,r)&&$n(i,r);for(;e.length>o;)Wn(n,r=e[o++])&&(~zn(i,r)||$n(i,r));return i},Yn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Kn=Vn,Jn=Yn.concat("length","prototype");An.f=Object.getOwnPropertyNames||function(t){return Kn(t,Jn)};var Qn={};Qn.f=Object.getOwnPropertySymbols;var Xn=bt,Zn=An,to=Qn,eo=nr,ro=V([].concat),no=Xn("Reflect","ownKeys")||function(t){var e=Zn.f(eo(t)),r=to.f;return r?ro(e,r(t)):e},oo=pe,io=no,ao=j,so=Xe,uo=T,co=ht,lo=/#|\.prototype\./,po=function(t,e){var r=ho[fo(t)];return r===mo||r!==yo&&(co(e)?uo(e):!!e)},fo=po.normalize=function(t){return String(t).replace(lo,".").toLowerCase()},ho=po.data={},yo=po.NATIVE="N",mo=po.POLYFILL="P",go=po,vo=k,bo=j.f,wo=gr,xo=Sn,So=te,Ao=function(t,e,r){for(var n=io(e),o=so.f,i=ao.f,a=0;a<n.length;a++){var s=n[a];oo(t,s)||r&&oo(r,s)||o(t,s,i(e,s))}},Eo=go,Ro=function(t,e){var r,n,o,i,a,s=t.target,u=t.global,c=t.stat;if(r=u?vo:c?vo[s]||So(s,{}):(vo[s]||{}).prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(a=bo(r,n))&&a.value:r[n],!Eo(u?n:s+(c?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ao(i,o)}(t.sham||o&&o.sham)&&wo(i,"sham",!0),xo(r,n,i,t)}},Oo=Q,Po=Array.isArray||function(t){return"Array"===Oo(t)},ko=TypeError,jo=Le,To=Xe,Io=W,_o=function(t,e,r){var n=jo(e);n in t?To.f(t,n,Io(0,r)):t[n]=r},No={};No[Re("toStringTag")]="z";var Co="[object z]"===String(No),Uo=Co,Lo=ht,Fo=Q,Bo=Re("toStringTag"),Do=Object,Mo="Arguments"===Fo(function(){return arguments}()),qo=Uo?Fo:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Do(t),Bo))?r:Mo?Fo(e):"Object"===(n=Fo(e))&&Lo(e.callee)?"Arguments":n},Wo=V,Go=T,zo=ht,Ho=qo,$o=Ir,Vo=function(){},Yo=[],Ko=bt("Reflect","construct"),Jo=/^\s*(?:class|function)\b/,Qo=Wo(Jo.exec),Xo=!Jo.test(Vo),Zo=function(t){if(!zo(t))return!1;try{return Ko(Vo,Yo,t),!0}catch(t){return!1}},ti=function(t){if(!zo(t))return!1;switch(Ho(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Xo||!!Qo(Jo,$o(t))}catch(t){return!0}};ti.sham=!0;var ei=!Ko||Go((function(){var t;return Zo(Zo.call)||!Zo(Object)||!Zo((function(){t=!0}))||t}))?ti:Zo,ri=Po,ni=ei,oi=mt,ii=Re("species"),ai=Array,si=function(t){var e;return ri(t)&&(e=t.constructor,(ni(e)&&(e===ai||ri(e.prototype))||oi(e)&&null===(e=e[ii]))&&(e=void 0)),void 0===e?ai:e},ui=function(t,e){return new(si(t))(0===e?0:e)},ci=T,li=Pt,pi=Re("species"),fi=function(t){return li>=51||!ci((function(){var e=[];return(e.constructor={})[pi]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},hi=Ro,di=T,yi=Po,mi=mt,gi=ue,vi=Ln,bi=function(t){if(t>9007199254740991)throw ko("Maximum allowed index exceeded");return t},wi=_o,xi=ui,Si=fi,Ai=Pt,Ei=Re("isConcatSpreadable"),Ri=Ai>=51||!di((function(){var t=[];return t[Ei]=!1,t.concat()[0]!==t})),Oi=function(t){if(!mi(t))return!1;var e=t[Ei];return void 0!==e?!!e:yi(t)};hi({target:"Array",proto:!0,arity:1,forced:!Ri||!Si("concat")},{concat:function(t){var e,r,n,o,i,a=gi(this),s=xi(a,0),u=0;for(e=-1,n=arguments.length;e<n;e++)if(Oi(i=-1===e?a:arguments[e]))for(o=vi(i),bi(u+o),r=0;r<o;r++,u++)r in i&&wi(s,u,i[r]);else bi(u+1),wi(s,u++,i);return s.length=u,s}});var Pi=gn,ki=Xe,ji=function(t,e,r){return r.get&&Pi(r.get,e,{getter:!0}),r.set&&Pi(r.set,e,{setter:!0}),ki.f(t,e,r)},Ti=I,Ii=Er.EXISTS,_i=V,Ni=ji,Ci=Function.prototype,Ui=_i(Ci.toString),Li=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Fi=_i(Li.exec);Ti&&!Ii&&Ni(Ci,"name",{configurable:!0,get:function(){try{return Fi(Li,Ui(this))[1]}catch(t){return""}}});var Bi=V,Di=Gt,Mi=ht,qi=String,Wi=TypeError,Gi=function(t,e,r){try{return Bi(Di(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}},zi=nr,Hi=function(t){if("object"==typeof t||Mi(t))return t;throw new Wi("Can't set "+qi(t)+" as a prototype")},$i=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Gi(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return zi(r),Hi(n),e?t(r,n):r.__proto__=n,r}}():void 0);Ro({target:"Object",stat:!0},{setPrototypeOf:$i});var Vi=function(t){f(r,t);var e=w(r);function r(t){var n;u(this,r);var o="This function is not supported in ".concat(t," environment");return n=e.call(this,o),Error.captureStackTrace&&Error.captureStackTrace(b(n),r),n.name="UnsupportedPlatformError",n.platform=t,Object.setPrototypeOf(b(n),r.prototype),n}return l(r)}(g(Error));function Yi(){this._types=Object.create(null),this._extensions=Object.create(null);for(let t=0;t<arguments.length;t++)this.define(arguments[t]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}Yi.prototype.define=function(t,e){for(let r in t){let n=t[r].map((function(t){return t.toLowerCase()}));r=r.toLowerCase();for(let t=0;t<n.length;t++){const o=n[t];if("*"!==o[0]){if(!e&&o in this._types)throw new Error('Attempt to change mapping for "'+o+'" extension from "'+this._types[o]+'" to "'+r+'". Pass `force=true` to allow this, otherwise remove "'+o+'" from the list of extensions for "'+r+'".');this._types[o]=r}}if(e||!this._extensions[r]){const t=n[0];this._extensions[r]="*"!==t[0]?t:t.substr(1)}}},Yi.prototype.getType=function(t){let e=(t=String(t)).replace(/^.*[/\\]/,"").toLowerCase(),r=e.replace(/^.*\./,"").toLowerCase(),n=e.length<t.length;return(r.length<e.length-1||!n)&&this._types[r]||null},Yi.prototype.getExtension=function(t){return(t=/^\s*([^;\s]*)/.test(t)&&RegExp.$1)&&this._extensions[t.toLowerCase()]||null};var Ki=R(new Yi({"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]})),Ji="5.0.2",Qi=function(){var t=s(o().mark((function t(){var e;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("object"!==("undefined"==typeof kintone?"undefined":i(kintone))||null===kintone||"function"!=typeof kintone.getRequestToken){t.next=2;break}return t.abrupt("return",kintone.getRequestToken());case 2:if("object"!==("undefined"==typeof garoon?"undefined":i(garoon))||null===garoon||"function"!=typeof(null===(e=garoon.connect)||void 0===e||null===(e=e.kintone)||void 0===e?void 0:e.getRequestToken)){t.next=4;break}return t.abrupt("return",garoon.connect.kintone.getRequestToken());case 4:throw new Error("session authentication must specify a request token");case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),Xi=Object.freeze({__proto__:null,buildBaseUrl:function(t){if(t)return t;if(void 0===location)throw new Error("The baseUrl parameter is required for this environment");var e=location,r=e.host,n=e.protocol;return"".concat(n,"//").concat(r)},buildFormDataValue:function(t,e){var r={};return e&&(r.type=Ki.getType(e)||void 0),new Blob([t],r)},buildHeaders:function(){return{}},buildPlatformDependentConfig:function(){return{}},getDefaultAuth:function(){return{type:"session"}},getRequestToken:Qi,getVersion:function(){return Ji},readFileFromPath:function(t){throw new Vi("Browser")}}),Zi=qo,ta=String,ea=function(t){if("Symbol"===Zi(t))throw new TypeError("Cannot convert a Symbol value to a string");return ta(t)},ra=nr,na=function(){var t=ra(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},oa=T,ia=k.RegExp,aa=oa((function(){var t=ia("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),sa=aa||oa((function(){return!ia("a","y").sticky})),ua={BROKEN_CARET:aa||oa((function(){var t=ia("^r","gy");return t.lastIndex=2,null!==t.exec("str")})),MISSED_STICKY:sa,UNSUPPORTED_Y:aa},ca={},la=Vn,pa=Yn,fa=Object.keys||function(t){return la(t,pa)},ha=I,da=Ze,ya=Xe,ma=nr,ga=ct,va=fa;ca.f=ha&&!da?Object.defineProperties:function(t,e){ma(t);for(var r,n=ga(e),o=va(e),i=o.length,a=0;i>a;)ya.f(t,r=o[a++],n[r]);return t};var ba,wa=bt("document","documentElement"),xa=nr,Sa=ca,Aa=Yn,Ea=Br,Ra=wa,Oa=Me,Pa="prototype",ka="script",ja=Fr("IE_PROTO"),Ta=function(){},Ia=function(t){return"<"+ka+">"+t+"</"+ka+">"},_a=function(t){t.write(Ia("")),t.close();var e=t.parentWindow.Object;return t=null,e},Na=function(){try{ba=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;Na="undefined"!=typeof document?document.domain&&ba?_a(ba):(e=Oa("iframe"),r="java"+ka+":",e.style.display="none",Ra.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(Ia("document.F=Object")),t.close(),t.F):_a(ba);for(var n=Aa.length;n--;)delete Na[Pa][Aa[n]];return Na()};Ea[ja]=!0;var Ca,Ua,La=Object.create||function(t,e){var r;return null!==t?(Ta[Pa]=xa(t),r=new Ta,Ta[Pa]=null,r[ja]=t):r=Na(),void 0===e?r:Sa.f(r,e)},Fa=T,Ba=k.RegExp,Da=Fa((function(){var t=Ba(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})),Ma=T,qa=k.RegExp,Wa=Ma((function(){var t=qa("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Ga=U,za=V,Ha=ea,$a=na,Va=ua,Ya=La,Ka=Xr.get,Ja=Da,Qa=Wa,Xa=ie("native-string-replace",String.prototype.replace),Za=RegExp.prototype.exec,ts=Za,es=za("".charAt),rs=za("".indexOf),ns=za("".replace),os=za("".slice),is=(Ua=/b*/g,Ga(Za,Ca=/a/,"a"),Ga(Za,Ua,"a"),0!==Ca.lastIndex||0!==Ua.lastIndex),as=Va.BROKEN_CARET,ss=void 0!==/()??/.exec("")[1];(is||ss||as||Ja||Qa)&&(ts=function(t){var e,r,n,o,i,a,s,u=this,c=Ka(u),l=Ha(t),p=c.raw;if(p)return p.lastIndex=u.lastIndex,e=Ga(ts,p,l),u.lastIndex=p.lastIndex,e;var f=c.groups,h=as&&u.sticky,d=Ga($a,u),y=u.source,m=0,g=l;if(h&&(d=ns(d,"y",""),-1===rs(d,"g")&&(d+="g"),g=os(l,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==es(l,u.lastIndex-1))&&(y="(?: "+y+")",g=" "+g,m++),r=new RegExp("^(?:"+y+")",d)),ss&&(r=new RegExp("^"+y+"$(?!\\s)",d)),is&&(n=u.lastIndex),o=Ga(Za,h?r:u,g),h?o?(o.input=os(o.input,m),o[0]=os(o[0],m),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:is&&o&&(u.lastIndex=u.global?o.index+o[0].length:n),ss&&o&&o.length>1&&Ga(Xa,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=Ya(null),i=0;i<f.length;i++)a[(s=f[i])[0]]=o[s[1]];return o});var us=ts;Ro({target:"RegExp",proto:!0,forced:/./.exec!==us},{exec:us});var cs=_,ls=Function.prototype,ps=ls.apply,fs=ls.call,hs="object"==typeof Reflect&&Reflect.apply||(cs?fs.bind(ps):function(){return fs.apply(ps,arguments)}),ds=Q,ys=V,ms=function(t){if("Function"===ds(t))return ys(t)},gs=ms,vs=Sn,bs=us,ws=T,xs=Re,Ss=gr,As=xs("species"),Es=RegExp.prototype,Rs=function(t,e,r,n){var o=xs(t),i=!ws((function(){var e={};return e[o]=function(){return 7},7!==""[t](e)})),a=i&&!ws((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[As]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!a||r){var s=gs(/./[o]),u=e(o,""[t],(function(t,e,r,n,o){var a=gs(t),u=e.exec;return u===bs||u===Es.exec?i&&!o?{done:!0,value:s(e,r,n)}:{done:!0,value:a(r,e,n)}:{done:!1}}));vs(String.prototype,t,u[0]),vs(Es,o,u[1])}n&&Ss(Es[o],"sham",!0)},Os=V,Ps=Pn,ks=ea,js=at,Ts=Os("".charAt),Is=Os("".charCodeAt),_s=Os("".slice),Ns=function(t){return function(e,r){var n,o,i=ks(js(e)),a=Ps(r),s=i.length;return a<0||a>=s?t?"":void 0:(n=Is(i,a))<55296||n>56319||a+1===s||(o=Is(i,a+1))<56320||o>57343?t?Ts(i,a):n:t?_s(i,a,a+2):o-56320+(n-55296<<10)+65536}},Cs={codeAt:Ns(!1),charAt:Ns(!0)},Us=Cs.charAt,Ls=function(t,e,r){return e+(r?Us(t,e).length:1)},Fs=V,Bs=ue,Ds=Math.floor,Ms=Fs("".charAt),qs=Fs("".replace),Ws=Fs("".slice),Gs=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,zs=/\$([$&'`]|\d{1,2})/g,Hs=U,$s=nr,Vs=ht,Ys=Q,Ks=us,Js=TypeError,Qs=function(t,e){var r=t.exec;if(Vs(r)){var n=Hs(r,t,e);return null!==n&&$s(n),n}if("RegExp"===Ys(t))return Hs(Ks,t,e);throw new Js("RegExp#exec called on incompatible receiver")},Xs=hs,Zs=U,tu=V,eu=Rs,ru=T,nu=nr,ou=ht,iu=nt,au=Pn,su=Cn,uu=ea,cu=at,lu=Ls,pu=$t,fu=function(t,e,r,n,o,i){var a=r+t.length,s=n.length,u=zs;return void 0!==o&&(o=Bs(o),u=Gs),qs(i,u,(function(i,u){var c;switch(Ms(u,0)){case"$":return"$";case"&":return t;case"`":return Ws(e,0,r);case"'":return Ws(e,a);case"<":c=o[Ws(u,1,-1)];break;default:var l=+u;if(0===l)return i;if(l>s){var p=Ds(l/10);return 0===p?i:p<=s?void 0===n[p-1]?Ms(u,1):n[p-1]+Ms(u,1):i}c=n[l-1]}return void 0===c?"":c}))},hu=Qs,du=Re("replace"),yu=Math.max,mu=Math.min,gu=tu([].concat),vu=tu([].push),bu=tu("".indexOf),wu=tu("".slice),xu="$0"==="a".replace(/./,"$0"),Su=!!/./[du]&&""===/./[du]("a","$0");eu("replace",(function(t,e,r){var n=Su?"$":"$0";return[function(t,r){var n=cu(this),o=iu(t)?void 0:pu(t,du);return o?Zs(o,t,n,r):Zs(e,uu(n),t,r)},function(t,o){var i=nu(this),a=uu(t);if("string"==typeof o&&-1===bu(o,n)&&-1===bu(o,"$<")){var s=r(e,i,a,o);if(s.done)return s.value}var u=ou(o);u||(o=uu(o));var c,l=i.global;l&&(c=i.unicode,i.lastIndex=0);for(var p,f=[];null!==(p=hu(i,a))&&(vu(f,p),l);){""===uu(p[0])&&(i.lastIndex=lu(a,su(i.lastIndex),c))}for(var h,d="",y=0,m=0;m<f.length;m++){for(var g,v=uu((p=f[m])[0]),b=yu(mu(au(p.index),a.length),0),w=[],x=1;x<p.length;x++)vu(w,void 0===(h=p[x])?h:String(h));var S=p.groups;if(u){var A=gu([v],w,b,a);void 0!==S&&vu(A,S),g=uu(Xs(o,void 0,A))}else g=fu(v,a,b,w,S,o);b>=y&&(d+=wu(a,y,b)+g,y=b+v.length)}return d+wu(a,y)}]}),!!ru((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!xu||Su);var Au=Re,Eu=La,Ru=Xe.f,Ou=Au("unscopables"),Pu=Array.prototype;void 0===Pu[Ou]&&Ru(Pu,Ou,{configurable:!0,value:Eu(null)});var ku,ju,Tu,Iu={},_u=!T((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Nu=pe,Cu=ht,Uu=ue,Lu=_u,Fu=Fr("IE_PROTO"),Bu=Object,Du=Bu.prototype,Mu=Lu?Bu.getPrototypeOf:function(t){var e=Uu(t);if(Nu(e,Fu))return e[Fu];var r=e.constructor;return Cu(r)&&e instanceof r?r.prototype:e instanceof Bu?Du:null},qu=T,Wu=ht,Gu=mt,zu=Mu,Hu=Sn,$u=Re("iterator"),Vu=!1;[].keys&&("next"in(Tu=[].keys())?(ju=zu(zu(Tu)))!==Object.prototype&&(ku=ju):Vu=!0);var Yu=!Gu(ku)||qu((function(){var t={};return ku[$u].call(t)!==t}));Yu&&(ku={}),Wu(ku[$u])||Hu(ku,$u,(function(){return this}));var Ku={IteratorPrototype:ku,BUGGY_SAFARI_ITERATORS:Vu},Ju=Xe.f,Qu=pe,Xu=Re("toStringTag"),Zu=function(t,e,r){t&&!r&&(t=t.prototype),t&&!Qu(t,Xu)&&Ju(t,Xu,{configurable:!0,value:e})},tc=Ku.IteratorPrototype,ec=La,rc=W,nc=Zu,oc=Iu,ic=function(){return this},ac=function(t,e,r,n){var o=e+" Iterator";return t.prototype=ec(tc,{next:rc(+!n,r)}),nc(t,o,!1),oc[o]=ic,t},sc=Ro,uc=U,cc=ht,lc=ac,pc=Mu,fc=$i,hc=Zu,dc=gr,yc=Sn,mc=Iu,gc=Er.PROPER,vc=Er.CONFIGURABLE,bc=Ku.IteratorPrototype,wc=Ku.BUGGY_SAFARI_ITERATORS,xc=Re("iterator"),Sc="keys",Ac="values",Ec="entries",Rc=function(){return this},Oc=function(t,e,r,n,o,i,a){lc(r,e,n);var s,u,c,l=function(t){if(t===o&&y)return y;if(!wc&&t&&t in h)return h[t];switch(t){case Sc:case Ac:case Ec:return function(){return new r(this,t)}}return function(){return new r(this)}},p=e+" Iterator",f=!1,h=t.prototype,d=h[xc]||h["@@iterator"]||o&&h[o],y=!wc&&d||l(o),m="Array"===e&&h.entries||d;if(m&&(s=pc(m.call(new t)))!==Object.prototype&&s.next&&(pc(s)!==bc&&(fc?fc(s,bc):cc(s[xc])||yc(s,xc,Rc)),hc(s,p,!0)),gc&&o===Ac&&d&&d.name!==Ac&&(vc?dc(h,"name",Ac):(f=!0,y=function(){return uc(d,this)})),o)if(u={values:l(Ac),keys:i?y:l(Sc),entries:l(Ec)},a)for(c in u)(wc||f||!(c in h))&&yc(h,c,u[c]);else sc({target:e,proto:!0,forced:wc||f},u);return h[xc]!==y&&yc(h,xc,y,{name:o}),mc[e]=y,u},Pc=function(t,e){return{value:t,done:e}},kc=ct,jc=function(t){Pu[Ou][t]=!0},Tc=Iu,Ic=Xr,_c=Xe.f,Nc=Oc,Cc=Pc,Uc=I,Lc="Array Iterator",Fc=Ic.set,Bc=Ic.getterFor(Lc),Dc=Nc(Array,"Array",(function(t,e){Fc(this,{type:Lc,target:kc(t),index:0,kind:e})}),(function(){var t=Bc(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=void 0,Cc(void 0,!0);switch(t.kind){case"keys":return Cc(r,!1);case"values":return Cc(e[r],!1)}return Cc([r,e[r]],!1)}),"values"),Mc=Tc.Arguments=Tc.Array;if(jc("keys"),jc("values"),jc("entries"),Uc&&"values"!==Mc.name)try{_c(Mc,"name",{value:"values"})}catch(t){}var qc=qo,Wc=Co?{}.toString:function(){return"[object "+qc(this)+"]"};Co||Sn(Object.prototype,"toString",Wc,{unsafe:!0});var Gc=Cs.charAt,zc=ea,Hc=Xr,$c=Oc,Vc=Pc,Yc="String Iterator",Kc=Hc.set,Jc=Hc.getterFor(Yc);$c(String,"String",(function(t){Kc(this,{type:Yc,string:zc(t),index:0})}),(function(){var t,e=Jc(this),r=e.string,n=e.index;return n>=r.length?Vc(void 0,!0):(t=Gc(r,n),e.index+=t.length,Vc(t,!1))}));var Qc={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Xc=Me("span").classList,Zc=Xc&&Xc.constructor&&Xc.constructor.prototype,tl=Zc===Object.prototype?void 0:Zc,el=k,rl=Qc,nl=tl,ol=Dc,il=gr,al=Re,sl=al("iterator"),ul=al("toStringTag"),cl=ol.values,ll=function(t,e){if(t){if(t[sl]!==cl)try{il(t,sl,cl)}catch(e){t[sl]=cl}if(t[ul]||il(t,ul,e),rl[e])for(var r in ol)if(t[r]!==ol[r])try{il(t,r,ol[r])}catch(e){t[r]=ol[r]}}};for(var pl in rl)ll(el[pl]&&el[pl].prototype,pl);ll(nl,"DOMTokenList");var fl=T,hl=I,dl=Re("iterator"),yl=!fl((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),n="";return t.pathname="c%20d",e.forEach((function(t,r){e.delete("b"),n+=r+t})),r.delete("a",2),r.delete("b",void 0),!e.size&&!hl||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[dl]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host})),ml=Gt,gl=_,vl=ms(ms.bind),bl=function(t,e){return ml(t),void 0===e?t:gl?vl(t,e):function(){return t.apply(e,arguments)}},wl=wt,xl=TypeError,Sl=function(t,e){if(wl(e,t))return t;throw new xl("Incorrect invocation")},Al=I,El=V,Rl=U,Ol=T,Pl=fa,kl=Qn,jl=L,Tl=ue,Il=rt,_l=Object.assign,Nl=Object.defineProperty,Cl=El([].concat),Ul=!_l||Ol((function(){if(Al&&1!==_l({b:1},_l(Nl({},"a",{enumerable:!0,get:function(){Nl(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!==_l({},t)[r]||Pl(_l({},e)).join("")!==n}))?function(t,e){for(var r=Tl(t),n=arguments.length,o=1,i=kl.f,a=jl.f;n>o;)for(var s,u=Il(arguments[o++]),c=i?Cl(Pl(u),i(u)):Pl(u),l=c.length,p=0;l>p;)s=c[p++],Al&&!Rl(a,u,s)||(r[s]=u[s]);return r}:_l,Ll=U,Fl=nr,Bl=$t,Dl=nr,Ml=function(t,e,r){var n,o;Fl(t);try{if(!(n=Bl(t,"return"))){if("throw"===e)throw r;return r}n=Ll(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return Fl(n),r},ql=Iu,Wl=Re("iterator"),Gl=Array.prototype,zl=qo,Hl=$t,$l=nt,Vl=Iu,Yl=Re("iterator"),Kl=function(t){if(!$l(t))return Hl(t,Yl)||Hl(t,"@@iterator")||Vl[zl(t)]},Jl=U,Ql=Gt,Xl=nr,Zl=Dt,tp=Kl,ep=TypeError,rp=function(t,e){var r=arguments.length<2?tp(t):e;if(Ql(r))return Xl(Jl(r,t));throw new ep(Zl(t)+" is not iterable")},np=bl,op=U,ip=ue,ap=function(t,e,r,n){try{return n?e(Dl(r)[0],r[1]):e(r)}catch(e){Ml(t,"throw",e)}},sp=function(t){return void 0!==t&&(ql.Array===t||Gl[Wl]===t)},up=ei,cp=Ln,lp=_o,pp=rp,fp=Kl,hp=Array,dp=In,yp=Ln,mp=_o,gp=Array,vp=Math.max,bp=function(t,e,r){for(var n=yp(t),o=dp(e,n),i=dp(void 0===r?n:r,n),a=gp(vp(i-o,0)),s=0;o<i;o++,s++)mp(a,s,t[o]);return a.length=s,a},wp=V,xp=2147483647,Sp=/[^\0-\u007E]/,Ap=/[.\u3002\uFF0E\uFF61]/g,Ep="Overflow: input needs wider integers to process",Rp=RangeError,Op=wp(Ap.exec),Pp=Math.floor,kp=String.fromCharCode,jp=wp("".charCodeAt),Tp=wp([].join),Ip=wp([].push),_p=wp("".replace),Np=wp("".split),Cp=wp("".toLowerCase),Up=function(t){return t+22+75*(t<26)},Lp=function(t,e,r){var n=0;for(t=r?Pp(t/700):t>>1,t+=Pp(t/e);t>455;)t=Pp(t/35),n+=36;return Pp(n+36*t/(t+38))},Fp=function(t){var e=[];t=function(t){for(var e=[],r=0,n=t.length;r<n;){var o=jp(t,r++);if(o>=55296&&o<=56319&&r<n){var i=jp(t,r++);56320==(64512&i)?Ip(e,((1023&o)<<10)+(1023&i)+65536):(Ip(e,o),r--)}else Ip(e,o)}return e}(t);var r,n,o=t.length,i=128,a=0,s=72;for(r=0;r<t.length;r++)(n=t[r])<128&&Ip(e,kp(n));var u=e.length,c=u;for(u&&Ip(e,"-");c<o;){var l=xp;for(r=0;r<t.length;r++)(n=t[r])>=i&&n<l&&(l=n);var p=c+1;if(l-i>Pp((xp-a)/p))throw new Rp(Ep);for(a+=(l-i)*p,i=l,r=0;r<t.length;r++){if((n=t[r])<i&&++a>xp)throw new Rp(Ep);if(n===i){for(var f=a,h=36;;){var d=h<=s?1:h>=s+26?26:h-s;if(f<d)break;var y=f-d,m=36-d;Ip(e,kp(Up(d+y%m))),f=Pp(y/m),h+=36}Ip(e,kp(Up(f))),s=Lp(a,p,c===u),a=0,c++}}a++,i++}return Tp(e,"")},Bp=TypeError,Dp=function(t,e){if(t<e)throw new Bp("Not enough arguments");return t},Mp=Sn,qp=bp,Wp=Math.floor,Gp=function(t,e){var r=t.length,n=Wp(r/2);return r<8?zp(t,e):Hp(t,Gp(qp(t,0,n),e),Gp(qp(t,n),e),e)},zp=function(t,e){for(var r,n,o=t.length,i=1;i<o;){for(n=i,r=t[i];n&&e(t[n-1],r)>0;)t[n]=t[--n];n!==i++&&(t[n]=r)}return t},Hp=function(t,e,r,n){for(var o=e.length,i=r.length,a=0,s=0;a<o||s<i;)t[a+s]=a<o&&s<i?n(e[a],r[s])<=0?e[a++]:r[s++]:a<o?e[a++]:r[s++];return t},$p=Ro,Vp=k,Yp=U,Kp=V,Jp=I,Qp=yl,Xp=Sn,Zp=ji,tf=function(t,e,r){for(var n in e)Mp(t,n,e[n],r);return t},ef=Zu,rf=ac,nf=Xr,of=Sl,af=ht,sf=pe,uf=bl,cf=qo,lf=nr,pf=mt,ff=ea,hf=La,df=W,yf=rp,mf=Kl,gf=Pc,vf=Dp,bf=Gp,wf=Re("iterator"),xf="URLSearchParams",Sf=xf+"Iterator",Af=nf.set,Ef=nf.getterFor(xf),Rf=nf.getterFor(Sf),Of=Object.getOwnPropertyDescriptor,Pf=function(t){if(!Jp)return Vp[t];var e=Of(Vp,t);return e&&e.value},kf=Pf("fetch"),jf=Pf("Request"),Tf=Pf("Headers"),If=jf&&jf.prototype,_f=Tf&&Tf.prototype,Nf=Vp.RegExp,Cf=Vp.TypeError,Uf=Vp.decodeURIComponent,Lf=Vp.encodeURIComponent,Ff=Kp("".charAt),Bf=Kp([].join),Df=Kp([].push),Mf=Kp("".replace),qf=Kp([].shift),Wf=Kp([].splice),Gf=Kp("".split),zf=Kp("".slice),Hf=/\+/g,$f=Array(4),Vf=function(t){return $f[t-1]||($f[t-1]=Nf("((?:%[\\da-f]{2}){"+t+"})","gi"))},Yf=function(t){try{return Uf(t)}catch(e){return t}},Kf=function(t){var e=Mf(t,Hf," "),r=4;try{return Uf(e)}catch(t){for(;r;)e=Mf(e,Vf(r--),Yf);return e}},Jf=/[!'()~]|%20/g,Qf={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Xf=function(t){return Qf[t]},Zf=function(t){return Mf(Lf(t),Jf,Xf)},th=rf((function(t,e){Af(this,{type:Sf,target:Ef(t).entries,index:0,kind:e})}),xf,(function(){var t=Rf(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=void 0,gf(void 0,!0);var n=e[r];switch(t.kind){case"keys":return gf(n.key,!1);case"values":return gf(n.value,!1)}return gf([n.key,n.value],!1)}),!0),eh=function(t){this.entries=[],this.url=null,void 0!==t&&(pf(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===Ff(t,0)?zf(t,1):t:ff(t)))};eh.prototype={type:xf,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,r,n,o,i,a,s,u=this.entries,c=mf(t);if(c)for(r=(e=yf(t,c)).next;!(n=Yp(r,e)).done;){if(i=(o=yf(lf(n.value))).next,(a=Yp(i,o)).done||(s=Yp(i,o)).done||!Yp(i,o).done)throw new Cf("Expected sequence with length 2");Df(u,{key:ff(a.value),value:ff(s.value)})}else for(var l in t)sf(t,l)&&Df(u,{key:l,value:ff(t[l])})},parseQuery:function(t){if(t)for(var e,r,n=this.entries,o=Gf(t,"&"),i=0;i<o.length;)(e=o[i++]).length&&(r=Gf(e,"="),Df(n,{key:Kf(qf(r)),value:Kf(Bf(r,"="))}))},serialize:function(){for(var t,e=this.entries,r=[],n=0;n<e.length;)t=e[n++],Df(r,Zf(t.key)+"="+Zf(t.value));return Bf(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var rh=function(){of(this,nh);var t=Af(this,new eh(arguments.length>0?arguments[0]:void 0));Jp||(this.size=t.entries.length)},nh=rh.prototype;if(tf(nh,{append:function(t,e){var r=Ef(this);vf(arguments.length,2),Df(r.entries,{key:ff(t),value:ff(e)}),Jp||this.length++,r.updateURL()},delete:function(t){for(var e=Ef(this),r=vf(arguments.length,1),n=e.entries,o=ff(t),i=r<2?void 0:arguments[1],a=void 0===i?i:ff(i),s=0;s<n.length;){var u=n[s];if(u.key!==o||void 0!==a&&u.value!==a)s++;else if(Wf(n,s,1),void 0!==a)break}Jp||(this.size=n.length),e.updateURL()},get:function(t){var e=Ef(this).entries;vf(arguments.length,1);for(var r=ff(t),n=0;n<e.length;n++)if(e[n].key===r)return e[n].value;return null},getAll:function(t){var e=Ef(this).entries;vf(arguments.length,1);for(var r=ff(t),n=[],o=0;o<e.length;o++)e[o].key===r&&Df(n,e[o].value);return n},has:function(t){for(var e=Ef(this).entries,r=vf(arguments.length,1),n=ff(t),o=r<2?void 0:arguments[1],i=void 0===o?o:ff(o),a=0;a<e.length;){var s=e[a++];if(s.key===n&&(void 0===i||s.value===i))return!0}return!1},set:function(t,e){var r=Ef(this);vf(arguments.length,1);for(var n,o=r.entries,i=!1,a=ff(t),s=ff(e),u=0;u<o.length;u++)(n=o[u]).key===a&&(i?Wf(o,u--,1):(i=!0,n.value=s));i||Df(o,{key:a,value:s}),Jp||(this.size=o.length),r.updateURL()},sort:function(){var t=Ef(this);bf(t.entries,(function(t,e){return t.key>e.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,r=Ef(this).entries,n=uf(t,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((e=r[o++]).value,e.key,this)},keys:function(){return new th(this,"keys")},values:function(){return new th(this,"values")},entries:function(){return new th(this,"entries")}},{enumerable:!0}),Xp(nh,wf,nh.entries,{name:"entries"}),Xp(nh,"toString",(function(){return Ef(this).serialize()}),{enumerable:!0}),Jp&&Zp(nh,"size",{get:function(){return Ef(this).entries.length},configurable:!0,enumerable:!0}),ef(rh,xf),$p({global:!0,constructor:!0,forced:!Qp},{URLSearchParams:rh}),!Qp&&af(Tf)){var oh=Kp(_f.has),ih=Kp(_f.set),ah=function(t){if(pf(t)){var e,r=t.body;if(cf(r)===xf)return e=t.headers?new Tf(t.headers):new Tf,oh(e,"content-type")||ih(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),hf(t,{body:df(0,ff(r)),headers:df(0,e)})}return t};if(af(kf)&&$p({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(t){return kf(t,arguments.length>1?ah(arguments[1]):{})}}),af(jf)){var sh=function(t){return of(this,If),new jf(t,arguments.length>1?ah(arguments[1]):{})};If.constructor=sh,sh.prototype=If,$p({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:sh})}}var uh,ch=Ro,lh=I,ph=yl,fh=k,hh=bl,dh=V,yh=Sn,mh=ji,gh=Sl,vh=pe,bh=Ul,wh=function(t){var e=ip(t),r=up(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=np(o,n>2?arguments[2]:void 0));var a,s,u,c,l,p,f=fp(e),h=0;if(!f||this===hp&&sp(f))for(a=cp(e),s=r?new this(a):hp(a);a>h;h++)p=i?o(e[h],h):e[h],lp(s,h,p);else for(l=(c=pp(e,f)).next,s=r?new this:[];!(u=op(l,c)).done;h++)p=i?ap(c,o,[u.value,h],!0):u.value,lp(s,h,p);return s.length=h,s},xh=bp,Sh=Cs.codeAt,Ah=function(t){var e,r,n=[],o=Np(_p(Cp(t),Ap,"."),".");for(e=0;e<o.length;e++)r=o[e],Ip(n,Op(Sp,r)?"xn--"+Fp(r):r);return Tp(n,".")},Eh=ea,Rh=Zu,Oh=Dp,Ph={URLSearchParams:rh,getState:Ef},kh=Xr,jh=kh.set,Th=kh.getterFor("URL"),Ih=Ph.URLSearchParams,_h=Ph.getState,Nh=fh.URL,Ch=fh.TypeError,Uh=fh.parseInt,Lh=Math.floor,Fh=Math.pow,Bh=dh("".charAt),Dh=dh(/./.exec),Mh=dh([].join),qh=dh(1..toString),Wh=dh([].pop),Gh=dh([].push),zh=dh("".replace),Hh=dh([].shift),$h=dh("".split),Vh=dh("".slice),Yh=dh("".toLowerCase),Kh=dh([].unshift),Jh="Invalid scheme",Qh="Invalid host",Xh="Invalid port",Zh=/[a-z]/i,td=/[\d+-.a-z]/i,ed=/\d/,rd=/^0x/i,nd=/^[0-7]+$/,od=/^\d+$/,id=/^[\da-f]+$/i,ad=/[\0\t\n\r #%/:<>?@[\\\]^|]/,sd=/[\0\t\n\r #/:<>?@[\\\]^|]/,ud=/^[\u0000-\u0020]+/,cd=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ld=/[\t\n\r]/g,pd=function(t){var e,r,n,o;if("number"==typeof t){for(e=[],r=0;r<4;r++)Kh(e,t%256),t=Lh(t/256);return Mh(e,".")}if("object"==typeof t){for(e="",n=function(t){for(var e=null,r=1,n=null,o=0,i=0;i<8;i++)0!==t[i]?(o>r&&(e=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(e=n,r=o),e}(t),r=0;r<8;r++)o&&0===t[r]||(o&&(o=!1),n===r?(e+=r?":":"::",o=!0):(e+=qh(t[r],16),r<7&&(e+=":")));return"["+e+"]"}return t},fd={},hd=bh({},fd,{" ":1,'"':1,"<":1,">":1,"`":1}),dd=bh({},hd,{"#":1,"?":1,"{":1,"}":1}),yd=bh({},dd,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),md=function(t,e){var r=Sh(t,0);return r>32&&r<127&&!vh(e,t)?t:encodeURIComponent(t)},gd={ftp:21,file:null,http:80,https:443,ws:80,wss:443},vd=function(t,e){var r;return 2===t.length&&Dh(Zh,Bh(t,0))&&(":"===(r=Bh(t,1))||!e&&"|"===r)},bd=function(t){var e;return t.length>1&&vd(Vh(t,0,2))&&(2===t.length||"/"===(e=Bh(t,2))||"\\"===e||"?"===e||"#"===e)},wd=function(t){return"."===t||"%2e"===Yh(t)},xd={},Sd={},Ad={},Ed={},Rd={},Od={},Pd={},kd={},jd={},Td={},Id={},_d={},Nd={},Cd={},Ud={},Ld={},Fd={},Bd={},Dd={},Md={},qd={},Wd=function(t,e,r){var n,o,i,a=Eh(t);if(e){if(o=this.parse(a))throw new Ch(o);this.searchParams=null}else{if(void 0!==r&&(n=new Wd(r,!0)),o=this.parse(a,null,n))throw new Ch(o);(i=_h(new Ih)).bindURL(this),this.searchParams=i}};Wd.prototype={type:"URL",parse:function(t,e,r){var n,o,i,a,s,u=this,c=e||xd,l=0,p="",f=!1,h=!1,d=!1;for(t=Eh(t),e||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,t=zh(t,ud,""),t=zh(t,cd,"$1")),t=zh(t,ld,""),n=wh(t);l<=n.length;){switch(o=n[l],c){case xd:if(!o||!Dh(Zh,o)){if(e)return Jh;c=Ad;continue}p+=Yh(o),c=Sd;break;case Sd:if(o&&(Dh(td,o)||"+"===o||"-"===o||"."===o))p+=Yh(o);else{if(":"!==o){if(e)return Jh;p="",c=Ad,l=0;continue}if(e&&(u.isSpecial()!==vh(gd,p)||"file"===p&&(u.includesCredentials()||null!==u.port)||"file"===u.scheme&&!u.host))return;if(u.scheme=p,e)return void(u.isSpecial()&&gd[u.scheme]===u.port&&(u.port=null));p="","file"===u.scheme?c=Cd:u.isSpecial()&&r&&r.scheme===u.scheme?c=Ed:u.isSpecial()?c=kd:"/"===n[l+1]?(c=Rd,l++):(u.cannotBeABaseURL=!0,Gh(u.path,""),c=Dd)}break;case Ad:if(!r||r.cannotBeABaseURL&&"#"!==o)return Jh;if(r.cannotBeABaseURL&&"#"===o){u.scheme=r.scheme,u.path=xh(r.path),u.query=r.query,u.fragment="",u.cannotBeABaseURL=!0,c=qd;break}c="file"===r.scheme?Cd:Od;continue;case Ed:if("/"!==o||"/"!==n[l+1]){c=Od;continue}c=jd,l++;break;case Rd:if("/"===o){c=Td;break}c=Bd;continue;case Od:if(u.scheme=r.scheme,o===uh)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=xh(r.path),u.query=r.query;else if("/"===o||"\\"===o&&u.isSpecial())c=Pd;else if("?"===o)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=xh(r.path),u.query="",c=Md;else{if("#"!==o){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=xh(r.path),u.path.length--,c=Bd;continue}u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=xh(r.path),u.query=r.query,u.fragment="",c=qd}break;case Pd:if(!u.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,c=Bd;continue}c=Td}else c=jd;break;case kd:if(c=jd,"/"!==o||"/"!==Bh(p,l+1))continue;l++;break;case jd:if("/"!==o&&"\\"!==o){c=Td;continue}break;case Td:if("@"===o){f&&(p="%40"+p),f=!0,i=wh(p);for(var y=0;y<i.length;y++){var m=i[y];if(":"!==m||d){var g=md(m,yd);d?u.password+=g:u.username+=g}else d=!0}p=""}else if(o===uh||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()){if(f&&""===p)return"Invalid authority";l-=wh(p).length+1,p="",c=Id}else p+=o;break;case Id:case _d:if(e&&"file"===u.scheme){c=Ld;continue}if(":"!==o||h){if(o===uh||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()){if(u.isSpecial()&&""===p)return Qh;if(e&&""===p&&(u.includesCredentials()||null!==u.port))return;if(a=u.parseHost(p))return a;if(p="",c=Fd,e)return;continue}"["===o?h=!0:"]"===o&&(h=!1),p+=o}else{if(""===p)return Qh;if(a=u.parseHost(p))return a;if(p="",c=Nd,e===_d)return}break;case Nd:if(!Dh(ed,o)){if(o===uh||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()||e){if(""!==p){var v=Uh(p,10);if(v>65535)return Xh;u.port=u.isSpecial()&&v===gd[u.scheme]?null:v,p=""}if(e)return;c=Fd;continue}return Xh}p+=o;break;case Cd:if(u.scheme="file","/"===o||"\\"===o)c=Ud;else{if(!r||"file"!==r.scheme){c=Bd;continue}switch(o){case uh:u.host=r.host,u.path=xh(r.path),u.query=r.query;break;case"?":u.host=r.host,u.path=xh(r.path),u.query="",c=Md;break;case"#":u.host=r.host,u.path=xh(r.path),u.query=r.query,u.fragment="",c=qd;break;default:bd(Mh(xh(n,l),""))||(u.host=r.host,u.path=xh(r.path),u.shortenPath()),c=Bd;continue}}break;case Ud:if("/"===o||"\\"===o){c=Ld;break}r&&"file"===r.scheme&&!bd(Mh(xh(n,l),""))&&(vd(r.path[0],!0)?Gh(u.path,r.path[0]):u.host=r.host),c=Bd;continue;case Ld:if(o===uh||"/"===o||"\\"===o||"?"===o||"#"===o){if(!e&&vd(p))c=Bd;else if(""===p){if(u.host="",e)return;c=Fd}else{if(a=u.parseHost(p))return a;if("localhost"===u.host&&(u.host=""),e)return;p="",c=Fd}continue}p+=o;break;case Fd:if(u.isSpecial()){if(c=Bd,"/"!==o&&"\\"!==o)continue}else if(e||"?"!==o)if(e||"#"!==o){if(o!==uh&&(c=Bd,"/"!==o))continue}else u.fragment="",c=qd;else u.query="",c=Md;break;case Bd:if(o===uh||"/"===o||"\\"===o&&u.isSpecial()||!e&&("?"===o||"#"===o)){if(".."===(s=Yh(s=p))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(u.shortenPath(),"/"===o||"\\"===o&&u.isSpecial()||Gh(u.path,"")):wd(p)?"/"===o||"\\"===o&&u.isSpecial()||Gh(u.path,""):("file"===u.scheme&&!u.path.length&&vd(p)&&(u.host&&(u.host=""),p=Bh(p,0)+":"),Gh(u.path,p)),p="","file"===u.scheme&&(o===uh||"?"===o||"#"===o))for(;u.path.length>1&&""===u.path[0];)Hh(u.path);"?"===o?(u.query="",c=Md):"#"===o&&(u.fragment="",c=qd)}else p+=md(o,dd);break;case Dd:"?"===o?(u.query="",c=Md):"#"===o?(u.fragment="",c=qd):o!==uh&&(u.path[0]+=md(o,fd));break;case Md:e||"#"!==o?o!==uh&&("'"===o&&u.isSpecial()?u.query+="%27":u.query+="#"===o?"%23":md(o,fd)):(u.fragment="",c=qd);break;case qd:o!==uh&&(u.fragment+=md(o,hd))}l++}},parseHost:function(t){var e,r,n;if("["===Bh(t,0)){if("]"!==Bh(t,t.length-1))return Qh;if(e=function(t){var e,r,n,o,i,a,s,u=[0,0,0,0,0,0,0,0],c=0,l=null,p=0,f=function(){return Bh(t,p)};if(":"===f()){if(":"!==Bh(t,1))return;p+=2,l=++c}for(;f();){if(8===c)return;if(":"!==f()){for(e=r=0;r<4&&Dh(id,f());)e=16*e+Uh(f(),16),p++,r++;if("."===f()){if(0===r)return;if(p-=r,c>6)return;for(n=0;f();){if(o=null,n>0){if(!("."===f()&&n<4))return;p++}if(!Dh(ed,f()))return;for(;Dh(ed,f());){if(i=Uh(f(),10),null===o)o=i;else{if(0===o)return;o=10*o+i}if(o>255)return;p++}u[c]=256*u[c]+o,2!=++n&&4!==n||c++}if(4!==n)return;break}if(":"===f()){if(p++,!f())return}else if(f())return;u[c++]=e}else{if(null!==l)return;p++,l=++c}}if(null!==l)for(a=c-l,c=7;0!==c&&a>0;)s=u[c],u[c--]=u[l+a-1],u[l+--a]=s;else if(8!==c)return;return u}(Vh(t,1,-1)),!e)return Qh;this.host=e}else if(this.isSpecial()){if(t=Ah(t),Dh(ad,t))return Qh;if(e=function(t){var e,r,n,o,i,a,s,u=$h(t,".");if(u.length&&""===u[u.length-1]&&u.length--,(e=u.length)>4)return t;for(r=[],n=0;n<e;n++){if(""===(o=u[n]))return t;if(i=10,o.length>1&&"0"===Bh(o,0)&&(i=Dh(rd,o)?16:8,o=Vh(o,8===i?1:2)),""===o)a=0;else{if(!Dh(10===i?od:8===i?nd:id,o))return t;a=Uh(o,i)}Gh(r,a)}for(n=0;n<e;n++)if(a=r[n],n===e-1){if(a>=Fh(256,5-e))return null}else if(a>255)return null;for(s=Wh(r),n=0;n<r.length;n++)s+=r[n]*Fh(256,3-n);return s}(t),null===e)return Qh;this.host=e}else{if(Dh(sd,t))return Qh;for(e="",r=wh(t),n=0;n<r.length;n++)e+=md(r[n],fd);this.host=e}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return vh(gd,this.scheme)},shortenPath:function(){var t=this.path,e=t.length;!e||"file"===this.scheme&&1===e&&vd(t[0],!0)||t.length--},serialize:function(){var t=this,e=t.scheme,r=t.username,n=t.password,o=t.host,i=t.port,a=t.path,s=t.query,u=t.fragment,c=e+":";return null!==o?(c+="//",t.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=pd(o),null!==i&&(c+=":"+i)):"file"===e&&(c+="//"),c+=t.cannotBeABaseURL?a[0]:a.length?"/"+Mh(a,"/"):"",null!==s&&(c+="?"+s),null!==u&&(c+="#"+u),c},setHref:function(t){var e=this.parse(t);if(e)throw new Ch(e);this.searchParams.update()},getOrigin:function(){var t=this.scheme,e=this.port;if("blob"===t)try{return new Gd(t.path[0]).origin}catch(t){return"null"}return"file"!==t&&this.isSpecial()?t+"://"+pd(this.host)+(null!==e?":"+e:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(Eh(t)+":",xd)},getUsername:function(){return this.username},setUsername:function(t){var e=wh(Eh(t));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<e.length;r++)this.username+=md(e[r],yd)}},getPassword:function(){return this.password},setPassword:function(t){var e=wh(Eh(t));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<e.length;r++)this.password+=md(e[r],yd)}},getHost:function(){var t=this.host,e=this.port;return null===t?"":null===e?pd(t):pd(t)+":"+e},setHost:function(t){this.cannotBeABaseURL||this.parse(t,Id)},getHostname:function(){var t=this.host;return null===t?"":pd(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,_d)},getPort:function(){var t=this.port;return null===t?"":Eh(t)},setPort:function(t){this.cannotHaveUsernamePasswordPort()||(""===(t=Eh(t))?this.port=null:this.parse(t,Nd))},getPathname:function(){var t=this.path;return this.cannotBeABaseURL?t[0]:t.length?"/"+Mh(t,"/"):""},setPathname:function(t){this.cannotBeABaseURL||(this.path=[],this.parse(t,Fd))},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){""===(t=Eh(t))?this.query=null:("?"===Bh(t,0)&&(t=Vh(t,1)),this.query="",this.parse(t,Md)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){""!==(t=Eh(t))?("#"===Bh(t,0)&&(t=Vh(t,1)),this.fragment="",this.parse(t,qd)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Gd=function(t){var e=gh(this,zd),r=Oh(arguments.length,1)>1?arguments[1]:void 0,n=jh(e,new Wd(t,!1,r));lh||(e.href=n.serialize(),e.origin=n.getOrigin(),e.protocol=n.getProtocol(),e.username=n.getUsername(),e.password=n.getPassword(),e.host=n.getHost(),e.hostname=n.getHostname(),e.port=n.getPort(),e.pathname=n.getPathname(),e.search=n.getSearch(),e.searchParams=n.getSearchParams(),e.hash=n.getHash())},zd=Gd.prototype,Hd=function(t,e){return{get:function(){return Th(this)[t]()},set:e&&function(t){return Th(this)[e](t)},configurable:!0,enumerable:!0}};if(lh&&(mh(zd,"href",Hd("serialize","setHref")),mh(zd,"origin",Hd("getOrigin")),mh(zd,"protocol",Hd("getProtocol","setProtocol")),mh(zd,"username",Hd("getUsername","setUsername")),mh(zd,"password",Hd("getPassword","setPassword")),mh(zd,"host",Hd("getHost","setHost")),mh(zd,"hostname",Hd("getHostname","setHostname")),mh(zd,"port",Hd("getPort","setPort")),mh(zd,"pathname",Hd("getPathname","setPathname")),mh(zd,"search",Hd("getSearch","setSearch")),mh(zd,"searchParams",Hd("getSearchParams")),mh(zd,"hash",Hd("getHash","setHash"))),yh(zd,"toJSON",(function(){return Th(this).serialize()}),{enumerable:!0}),yh(zd,"toString",(function(){return Th(this).serialize()}),{enumerable:!0}),Nh){var $d=Nh.createObjectURL,Vd=Nh.revokeObjectURL;$d&&yh(Gd,"createObjectURL",hh($d,Nh)),Vd&&yh(Gd,"revokeObjectURL",hh(Vd,Nh))}Rh(Gd,"URL"),ch({global:!0,constructor:!0,forced:!ph,sham:!lh},{URL:Gd});var Yd="\t\n\v\f\r                 \u2028\u2029\ufeff",Kd=at,Jd=ea,Qd=Yd,Xd=V("".replace),Zd=RegExp("^["+Qd+"]+"),ty=RegExp("(^|[^"+Qd+"])["+Qd+"]+$"),ey=function(t){return function(e){var r=Jd(Kd(e));return 1&t&&(r=Xd(r,Zd,"")),2&t&&(r=Xd(r,ty,"$1")),r}},ry={start:ey(1),end:ey(2),trim:ey(3)},ny=k,oy=T,iy=ea,ay=ry.trim,sy=Yd,uy=V("".charAt),cy=ny.parseFloat,ly=ny.Symbol,py=ly&&ly.iterator,fy=1/cy(sy+"-0")!=-1/0||py&&!oy((function(){cy(Object(py))}))?function(t){var e=ay(iy(t)),r=cy(e);return 0===r&&"-"===uy(e,0)?-0:r}:cy;Ro({global:!0,forced:parseFloat!==fy},{parseFloat:fy});var hy=V,dy=Sn,yy=Date.prototype,my="Invalid Date",gy="toString",vy=hy(yy[gy]),by=hy(yy.getTime);String(new Date(NaN))!==my&&dy(yy,gy,(function(){var t=by(this);return t==t?vy(this):my}));var wy=U,xy=pe,Sy=wt,Ay=na,Ey=RegExp.prototype,Ry=Er.PROPER,Oy=Sn,Py=nr,ky=ea,jy=T,Ty=function(t){var e=t.flags;return void 0!==e||"flags"in Ey||xy(t,"flags")||!Sy(Ey,t)?e:wy(Ay,t)},Iy="toString",_y=RegExp.prototype[Iy],Ny=jy((function(){return"/a/b"!==_y.call({source:"a",flags:"b"})})),Cy=Ry&&_y.name!==Iy;(Ny||Cy)&&Oy(RegExp.prototype,Iy,(function(){var t=Py(this);return"/"+ky(t.source)+"/"+ky(Ty(t))}),{unsafe:!0});var Uy=bl,Ly=rt,Fy=ue,By=Ln,Dy=ui,My=V([].push),qy=function(t){var e=1===t,r=2===t,n=3===t,o=4===t,i=6===t,a=7===t,s=5===t||i;return function(u,c,l,p){for(var f,h,d=Fy(u),y=Ly(d),m=Uy(c,l),g=By(y),v=0,b=p||Dy,w=e?b(u,g):r||a?b(u,0):void 0;g>v;v++)if((s||v in y)&&(h=m(f=y[v],v,d),t))if(e)w[v]=h;else if(h)switch(t){case 3:return!0;case 5:return f;case 6:return v;case 2:My(w,f)}else switch(t){case 4:return!1;case 7:My(w,f)}return i?-1:n||o?o:w}},Wy={forEach:qy(0),map:qy(1),filter:qy(2),some:qy(3),every:qy(4),find:qy(5),findIndex:qy(6),filterReject:qy(7)},Gy=Wy.map;Ro({target:"Array",proto:!0,forced:!fi("map")},{map:function(t){return Gy(this,t,arguments.length>1?arguments[1]:void 0)}});var zy=function(t){var e=t.endpointName,r=t.guestSpaceId,n=t.preview,o=void 0!==r?"/guest/".concat(r):"",i=n?"/preview":"";return"/k".concat(o,"/v1").concat(i,"/").concat(e,".json")},Hy=["endpointName"],$y=function(){function t(e,r){u(this,t),this.client=e,this.guestSpaceId=r,this.REQUESTS_LENGTH_LIMIT=20}return l(t,[{key:"send",value:function(t){var e=this,r=t.requests.map((function(t){if("endpointName"in t){var r=t.endpointName,o=v(t,Hy);return n({api:e.buildPathWithGuestSpaceId({endpointName:r})},o)}return t})),o=this.buildPathWithGuestSpaceId({endpointName:"bulkRequest"});return this.client.post(o,{requests:r})}},{key:"buildPathWithGuestSpaceId",value:function(t){return zy(n(n({},t),{},{guestSpaceId:this.guestSpaceId}))}}]),t}(),Vy=["preview"],Yy=["preview"],Ky=["preview"],Jy=["preview"],Qy=["preview"],Xy=["preview"],Zy=["preview"],tm=["preview"],em=["preview"],rm=["preview"],nm=["preview"],om=["preview"],im=["preview"],am=["preview"],sm=function(){function t(e,r){u(this,t),this.client=e,this.guestSpaceId=r}var e;return l(t,[{key:"getFormFields",value:function(t){var e=t.preview,r=v(t,Vy),o=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:e});return this.client.get(o,n({},r))}},{key:"addFormFields",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.post(e,t)}},{key:"updateFormFields",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.put(e,t)}},{key:"deleteFormFields",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.delete(e,t)}},{key:"getFormLayout",value:function(t){var e=t.preview,r=v(t,Yy),o=this.buildPathWithGuestSpaceId({endpointName:"app/form/layout",preview:e});return this.client.get(o,n({},r))}},{key:"updateFormLayout",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/form/layout",preview:!0});return this.client.put(e,t)}},{key:"getViews",value:function(t){var e=t.preview,r=v(t,Ky),n=this.buildPathWithGuestSpaceId({endpointName:"app/views",preview:e});return this.client.get(n,r)}},{key:"updateViews",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/views",preview:!0});return this.client.put(e,t)}},{key:"getApp",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app"});return this.client.get(e,t)}},{key:"getApps",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"apps"});return this.client.get(e,t)}},{key:"addApp",value:(e=s(o().mark((function t(e){var r,i,a,s,u,c;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.name,i=e.space,a=this.buildPathWithGuestSpaceId({endpointName:"app",preview:!0}),!i){t.next=9;break}return s=this.buildPathWithGuestSpaceId({endpointName:"space"}),t.next=6,this.client.get(s,{id:i});case 6:return u=t.sent,c=u.defaultThread,t.abrupt("return",this.client.post(a,n(n({},e),{},{thread:c})));case 9:return t.abrupt("return",this.client.post(a,{name:r}));case 10:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"getAppSettings",value:function(t){var e=t.preview,r=v(t,Jy),n=this.buildPathWithGuestSpaceId({endpointName:"app/settings",preview:e});return this.client.get(n,r)}},{key:"updateAppSettings",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/settings",preview:!0});return this.client.put(e,t)}},{key:"getProcessManagement",value:function(t){var e=t.preview,r=v(t,Qy),n=this.buildPathWithGuestSpaceId({endpointName:"app/status",preview:e});return this.client.get(n,r)}},{key:"updateProcessManagement",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/status",preview:!0});return this.client.put(e,t)}},{key:"getDeployStatus",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/deploy",preview:!0});return this.client.get(e,t)}},{key:"deployApp",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/deploy",preview:!0});return this.client.post(e,t)}},{key:"getFieldAcl",value:function(t){var e=t.preview,r=v(t,Xy),o=this.buildPathWithGuestSpaceId({endpointName:"field/acl",preview:e});return this.client.get(o,n({},r))}},{key:"updateFieldAcl",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"field/acl",preview:!0});return this.client.put(e,t)}},{key:"getAppAcl",value:function(t){var e=t.preview,r=v(t,Zy),o=this.buildPathWithGuestSpaceId({endpointName:"app/acl",preview:e});return this.client.get(o,n({},r))}},{key:"updateAppAcl",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/acl",preview:!0});return this.client.put(e,t)}},{key:"evaluateRecordsAcl",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"records/acl/evaluate"});return this.client.get(e,t)}},{key:"getRecordAcl",value:function(t){var e=t.preview,r=v(t,tm),o=this.buildPathWithGuestSpaceId({endpointName:"record/acl",preview:e});return this.client.get(o,n({},r))}},{key:"updateRecordAcl",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"record/acl",preview:!0});return this.client.put(e,t)}},{key:"getAppCustomize",value:function(t){var e=t.preview,r=v(t,em),o=this.buildPathWithGuestSpaceId({endpointName:"app/customize",preview:e});return this.client.get(o,n({},r))}},{key:"updateAppCustomize",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/customize",preview:!0});return this.client.put(e,t)}},{key:"getGeneralNotifications",value:function(t){var e=t.preview,r=v(t,rm),o=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/general",preview:e});return this.client.get(o,n({},r))}},{key:"updateGeneralNotifications",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/general",preview:!0});return this.client.put(e,t)}},{key:"getPerRecordNotifications",value:function(t){var e=t.preview,r=v(t,nm),n=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/perRecord",preview:e});return this.client.get(n,r)}},{key:"updatePerRecordNotifications",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/perRecord",preview:!0});return this.client.put(e,t)}},{key:"getReminderNotifications",value:function(t){var e=t.preview,r=v(t,om),n=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/reminder",preview:e});return this.client.get(n,r)}},{key:"updateReminderNotifications",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/reminder",preview:!0});return this.client.put(e,t)}},{key:"getReports",value:function(t){var e=t.preview,r=v(t,im),n=this.buildPathWithGuestSpaceId({endpointName:"app/reports",preview:e});return this.client.get(n,r)}},{key:"updateReports",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/reports",preview:!0});return this.client.put(e,t)}},{key:"getAppActions",value:function(t){var e=t.preview,r=v(t,am),n=this.buildPathWithGuestSpaceId({endpointName:"app/actions",preview:e});return this.client.get(n,r)}},{key:"updateAppActions",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/actions",preview:!0});return this.client.put(e,t)}},{key:"buildPathWithGuestSpaceId",value:function(t){return zy(n(n({},t),{},{guestSpaceId:this.guestSpaceId}))}}]),t}(),um=Ul;Ro({target:"Object",stat:!0,arity:2,forced:Object.assign!==um},{assign:um});var cm=U,lm=nr,pm=nt,fm=Cn,hm=ea,dm=at,ym=$t,mm=Ls,gm=Qs;Rs("match",(function(t,e,r){return[function(e){var r=dm(this),n=pm(e)?void 0:ym(e,t);return n?cm(n,e,r):new RegExp(e)[t](hm(r))},function(t){var n=lm(this),o=hm(t),i=r(e,n,o);if(i.done)return i.value;if(!n.global)return gm(n,o);var a=n.unicode;n.lastIndex=0;for(var s,u=[],c=0;null!==(s=gm(n,o));){var l=hm(s[0]);u[c]=l,""===l&&(n.lastIndex=mm(o,fm(n.lastIndex),a)),c++}return 0===c?null:u}]}));var vm=k,bm=ht,wm=mt,xm=$i,Sm=V(1..valueOf),Am=Ro,Em=I,Rm=k,Om=vm,Pm=V,km=go,jm=pe,Tm=function(t,e,r){var n,o;return xm&&bm(n=e.constructor)&&n!==r&&wm(o=n.prototype)&&o!==r.prototype&&xm(t,o),t},Im=wt,_m=Ft,Nm=Ne,Cm=T,Um=An.f,Lm=j.f,Fm=Xe.f,Bm=Sm,Dm=ry.trim,Mm="Number",qm=Rm[Mm];Om[Mm];var Wm=qm.prototype,Gm=Rm.TypeError,zm=Pm("".slice),Hm=Pm("".charCodeAt),$m=function(t){var e,r,n,o,i,a,s,u,c=Nm(t,"number");if(_m(c))throw new Gm("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=Dm(c),43===(e=Hm(c,0))||45===e){if(88===(r=Hm(c,2))||120===r)return NaN}else if(48===e){switch(Hm(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=zm(c,2)).length,s=0;s<a;s++)if((u=Hm(i,s))<48||u>o)return NaN;return parseInt(i,n)}return+c},Vm=km(Mm,!qm(" 0o1")||!qm("0b1")||qm("+0x1")),Ym=function(t){var e,r=arguments.length<1?0:qm(function(t){var e=Nm(t,"number");return"bigint"==typeof e?e:$m(e)}(t));return Im(Wm,e=this)&&Cm((function(){Bm(e)}))?Tm(Object(r),this,Ym):r};Ym.prototype=Wm,Vm&&(Wm.constructor=Ym),Am({global:!0,constructor:!0,wrap:!0,forced:Vm},{Number:Ym});Vm&&function(t,e){for(var r,n=Em?Um(e):"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(","),o=0;n.length>o;o++)jm(e,r=n[o])&&!jm(t,r)&&Fm(t,r,Lm(e,r))}(Om[Mm],qm);var Km=T,Jm=function(t,e){var r=[][t];return!!r&&Km((function(){r.call(null,e||function(){return 1},1)}))},Qm=Ro,Xm=qn.indexOf,Zm=Jm,tg=ms([].indexOf),eg=!!tg&&1/tg([1],1,-0)<0;Qm({target:"Array",proto:!0,forced:eg||!Zm("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return eg?tg(this,t,e)||0:Xm(this,t,e)}});var rg=Wy.every;Ro({target:"Array",proto:!0,forced:!Jm("every")},{every:function(t){return rg(this,t,arguments.length>1?arguments[1]:void 0)}}),Ro({target:"Array",stat:!0},{isArray:Po});var ng=V([].slice),og=Ro,ig=Po,ag=ei,sg=mt,ug=In,cg=Ln,lg=ct,pg=_o,fg=Re,hg=ng,dg=fi("slice"),yg=fg("species"),mg=Array,gg=Math.max;og({target:"Array",proto:!0,forced:!dg},{slice:function(t,e){var r,n,o,i=lg(this),a=cg(i),s=ug(t,a),u=ug(void 0===e?a:e,a);if(ig(i)&&(r=i.constructor,(ag(r)&&(r===mg||ig(r.prototype))||sg(r)&&null===(r=r[yg]))&&(r=void 0),r===mg||void 0===r))return hg(i,s,u);for(n=new(void 0===r?mg:r)(gg(u-s,0)),o=0;s<u;s++,o++)s in i&&pg(n,o,i[s]);return n.length=o,n}});var vg=Gt,bg=ue,wg=rt,xg=Ln,Sg=TypeError,Ag=function(t){return function(e,r,n,o){vg(r);var i=bg(e),a=wg(i),s=xg(i),u=t?s-1:0,c=t?-1:1;if(n<2)for(;;){if(u in a){o=a[u],u+=c;break}if(u+=c,t?u<0:s<=u)throw new Sg("Reduce of empty array with no initial value")}for(;t?u>=0:s>u;u+=c)u in a&&(o=r(o,a[u],u,i));return o}},Eg={left:Ag(!1),right:Ag(!0)},Rg="process"===Q(k.process),Og=Eg.left;Ro({target:"Array",proto:!0,forced:!Rg&&Pt>79&&Pt<83||!Jm("reduce")},{reduce:function(t){var e=arguments.length;return Og(this,t,e,e>1?arguments[1]:void 0)}});var Pg=Wy.forEach,kg=Jm("forEach")?[].forEach:function(t){return Pg(this,t,arguments.length>1?arguments[1]:void 0)};Ro({target:"Array",proto:!0,forced:[].forEach!==kg},{forEach:kg});var jg=k,Tg=Qc,Ig=tl,_g=kg,Ng=gr,Cg=function(t){if(t&&t.forEach!==_g)try{Ng(t,"forEach",_g)}catch(e){t.forEach=_g}};for(var Ug in Tg)Tg[Ug]&&Cg(jg[Ug]&&jg[Ug].prototype);Cg(Ig);var Lg=ue,Fg=fa;Ro({target:"Object",stat:!0,forced:T((function(){Fg(1)}))},{keys:function(t){return Fg(Lg(t))}});var Bg=function(t){f(r,t);var e=w(r);function r(t,n,o,i,a){var s;u(this,r);var c=o-n.length,l=r.extractErrorIndex(c,i,a),p=r.buildErrorMessage(c,o,l);return(s=e.call(this,p)).name="KintoneAllRecordsError",s.processedRecordsResult=t,s.unprocessedRecords=n,s.error=i,s.errorIndex=l,s.message=p,s.numOfProcessedRecords=c,s.numOfAllRecords=o,Object.setPrototypeOf(b(s),r.prototype),s}return l(r,null,[{key:"parseErrorIndex",value:function(t){var e=[];return Object.keys(t).forEach((function(t){var r=t.match(/records\[(\d+)\]/);r&&e.push(Number(r[1]))})),e.length>0?Math.min.apply(Math,e):null}},{key:"extractErrorIndex",value:function(t,e,n){if(void 0!==e.bulkRequestIndex&&e.errors){var o=r.parseErrorIndex(e.errors);if(null!==o)return t+e.bulkRequestIndex*n+o}}},{key:"buildErrorMessage",value:function(t,e,r){var n="";return void 0!==r&&(n="An error occurred at records[".concat(r,"]. ")),n+="".concat(t,"/").concat(e," records are processed successfully")}}]),r}(g(Error)),Dg=["condition","orderBy","withCursor"],Mg=["fields"],qg=["condition"],Wg=["condition","orderBy"],Gg=function(){function t(e,r,n){u(this,t),this.client=e,this.bulkRequestClient=r,this.guestSpaceId=n,this.didWarnMaximumOffsetValue=!1}var e,r,i,a,c,f,h,d,y,m,g,b,w,S,A,E,R,O;return l(t,[{key:"getRecord",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.get(e,t)}},{key:"addRecord",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.post(e,t)}},{key:"updateRecord",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.put(e,t)}},{key:"upsertRecord",value:(O=s(o().mark((function t(e){var r,n,i,a,s,u,c;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.app,n=e.updateKey,i=e.record,t.next=3,this.getRecords({app:r,query:"".concat(n.field,' = "').concat(n.value,'"')});case 3:if(a=t.sent,!((s=a.records).length>0)){t.next=13;break}if("__ID__"!==s[0].$id.type){t.next=12;break}return t.next=9,this.updateRecord(e);case 9:return u=t.sent,c=u.revision,t.abrupt("return",{id:s[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 t.abrupt("return",this.addRecord({app:r,record:Object.assign({},i,p({},n.field,{value:n.value}))}));case 14:case"end":return t.stop()}}),t,this)}))),function(t){return O.apply(this,arguments)})},{key:"getRecords",value:(R=s(o().mark((function t(e){var r,n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.buildPathWithGuestSpaceId({endpointName:"records"}),t.next=3,this.client.get(r,e);case 3:return n=t.sent,this.warnMaximumOffsetValueIfNeeded(e.query),t.abrupt("return",n);case 6:case"end":return t.stop()}}),t,this)}))),function(t){return R.apply(this,arguments)})},{key:"warnMaximumOffsetValueIfNeeded",value:function(t){if(t){var e=t.match(/offset\s+(\d+)/i);!this.didWarnMaximumOffsetValue&&e&&Number(e[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=s(o().mark((function t(e){var r,n,i,a;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.buildPathWithGuestSpaceId({endpointName:"records"}),t.next=3,this.client.post(r,e);case 3:return n=t.sent,i=n.ids,a=n.revisions,t.abrupt("return",{ids:i,revisions:a,records:i.map((function(t,e){return{id:t,revision:a[e]}}))});case 7:case"end":return t.stop()}}),t,this)}))),function(t){return E.apply(this,arguments)})},{key:"updateRecords",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"records"});return this.client.put(e,t)}},{key:"deleteRecords",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"records"});return this.client.delete(e,t)}},{key:"createCursor",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.post(e,t)}},{key:"getRecordsByCursor",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.get(e,t)}},{key:"deleteCursor",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.delete(e,t)}},{key:"getAllRecords",value:(A=s(o().mark((function t(e){var r,i,a,s,u,c,l;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.condition,i=e.orderBy,a=e.withCursor,s=void 0===a||a,u=v(e,Dg),i){t.next=3;break}return t.abrupt("return",this.getAllRecordsWithId(n(n({},u),{},{condition:r})));case 3:if(!s){t.next=7;break}return c=r?"".concat(r," "):"",l="".concat(c).concat(i?"order by ".concat(i):""),t.abrupt("return",this.getAllRecordsWithCursor(n(n({},u),{},{query:l})));case 7:return t.abrupt("return",this.getAllRecordsWithOffset(n(n({},u),{},{orderBy:i,condition:r})));case 8:case"end":return t.stop()}}),t,this)}))),function(t){return A.apply(this,arguments)})},{key:"getAllRecordsWithId",value:(S=s(o().mark((function t(e){var r,i,a;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.fields,i=v(e,Mg),(a=r)&&a.length>0&&-1===a.indexOf("$id")&&(a=[].concat(x(a),["$id"])),t.abrupt("return",this.getAllRecordsRecursiveWithId(n(n({},i),{},{fields:a}),"0",[]));case 4:case"end":return t.stop()}}),t,this)}))),function(t){return S.apply(this,arguments)})},{key:"getAllRecordsRecursiveWithId",value:(w=s(o().mark((function t(e,r,i){var a,s,u,c,l,p,f,h,d;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=500,s=e.condition,u=v(e,qg),c=s?"(".concat(s,") and "):"",l="".concat(c,"$id > ").concat(r," order by $id asc limit ").concat(a),t.next=6,this.getRecords(n(n({},u),{},{query:l}));case 6:if(p=t.sent,f=i.concat(p.records),!(p.records.length<a)){t.next=10;break}return t.abrupt("return",f);case 10:if("__ID__"!==(h=p.records[p.records.length-1]).$id.type){t.next=14;break}return d=h.$id.value,t.abrupt("return",this.getAllRecordsRecursiveWithId(e,d,f));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 t.stop()}}),t,this)}))),function(t,e,r){return w.apply(this,arguments)})},{key:"getAllRecordsWithOffset",value:(b=s(o().mark((function t(e){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.getAllRecordsRecursiveWithOffset(e,0,[]));case 1:case"end":return t.stop()}}),t,this)}))),function(t){return b.apply(this,arguments)})},{key:"getAllRecordsRecursiveWithOffset",value:(g=s(o().mark((function t(e,r,i){var a,s,u,c,l,p,f,h;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=500,s=e.condition,u=e.orderBy,c=v(e,Wg),l=s?"".concat(s," "):"",p="".concat(l).concat(u?"order by ".concat(u," "):"","limit ").concat(a," offset ").concat(r),t.next=6,this.getRecords(n(n({},c),{},{query:p}));case 6:if(f=t.sent,h=i.concat(f.records),!(f.records.length<a)){t.next=10;break}return t.abrupt("return",h);case 10:return t.abrupt("return",this.getAllRecordsRecursiveWithOffset(e,r+a,h));case 11:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return g.apply(this,arguments)})},{key:"getAllRecordsWithCursor",value:(m=s(o().mark((function t(e){var r,n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.createCursor(e);case 2:return r=t.sent,n=r.id,t.prev=4,t.next=7,this.getAllRecordsRecursiveByCursor(n,[]);case 7:return t.abrupt("return",t.sent);case 10:return t.prev=10,t.t0=t.catch(4),t.next=14,this.deleteCursor({id:n});case 14:throw t.t0;case 15:case"end":return t.stop()}}),t,this,[[4,10]])}))),function(t){return m.apply(this,arguments)})},{key:"getAllRecordsRecursiveByCursor",value:(y=s(o().mark((function t(e,r){var n,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getRecordsByCursor({id:e});case 2:if(n=t.sent,i=r.concat(n.records),!n.next){t.next=6;break}return t.abrupt("return",this.getAllRecordsRecursiveByCursor(e,i));case 6:return t.abrupt("return",i);case 7:case"end":return t.stop()}}),t,this)}))),function(t,e){return y.apply(this,arguments)})},{key:"addAllRecords",value:(d=s(o().mark((function t(e){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.records.every((function(t){return!Array.isArray(t)&&t instanceof Object}))){t.next=2;break}throw new Error("the `records` parameter must be an array of object.");case 2:return t.abrupt("return",this.addAllRecordsRecursive(e,e.records.length,[]));case 3:case"end":return t.stop()}}),t,this)}))),function(t){return d.apply(this,arguments)})},{key:"addAllRecordsRecursive",value:(h=s(o().mark((function t(e,r,n){var i,a,s,u,c;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,a=e.app,s=e.records,0!==(u=s.slice(0,i)).length){t.next=5;break}return t.abrupt("return",{records:n});case 5:return t.prev=5,t.next=8,this.addAllRecordsWithBulkRequest({app:a,records:u});case 8:c=t.sent,t.next=14;break;case 11:throw t.prev=11,t.t0=t.catch(5),new Bg({records:n},s,r,t.t0,100);case 14:return t.abrupt("return",this.addAllRecordsRecursive({app:a,records:s.slice(i)},r,n.concat(c)));case 15:case"end":return t.stop()}}),t,this,[[5,11]])}))),function(t,e,r){return h.apply(this,arguments)})},{key:"addAllRecordsWithBulkRequest",value:(f=s(o().mark((function t(e){var r,n,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.separateArrayRecursive(100,[],e.records),n=r.map((function(t){return{method:"POST",endpointName:"records",payload:{app:e.app,records:t}}})),t.next=4,this.bulkRequestClient.send({requests:n});case 4:return i=t.sent.results,t.abrupt("return",i.map((function(t){var e=t.ids,r=t.revisions;return e.map((function(t,e){return{id:t,revision:r[e]}}))})).reduce((function(t,e){return t.concat(e)}),[]));case 6:case"end":return t.stop()}}),t,this)}))),function(t){return f.apply(this,arguments)})},{key:"updateAllRecords",value:(c=s(o().mark((function t(e){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.updateAllRecordsRecursive(e,e.records.length,[]));case 1:case"end":return t.stop()}}),t,this)}))),function(t){return c.apply(this,arguments)})},{key:"updateAllRecordsRecursive",value:(a=s(o().mark((function t(e,r,n){var i,a,s,u,c;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,a=e.app,s=e.records,0!==(u=s.slice(0,i)).length){t.next=5;break}return t.abrupt("return",{records:n});case 5:return t.prev=5,t.next=8,this.updateAllRecordsWithBulkRequest({app:a,records:u});case 8:c=t.sent,t.next=14;break;case 11:throw t.prev=11,t.t0=t.catch(5),new Bg({records:n},s,r,t.t0,100);case 14:return t.abrupt("return",this.updateAllRecordsRecursive({app:a,records:s.slice(i)},r,n.concat(c)));case 15:case"end":return t.stop()}}),t,this,[[5,11]])}))),function(t,e,r){return a.apply(this,arguments)})},{key:"updateAllRecordsWithBulkRequest",value:(i=s(o().mark((function t(e){var r,n,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.separateArrayRecursive(100,[],e.records),n=r.map((function(t){return{method:"PUT",endpointName:"records",payload:{app:e.app,records:t}}})),t.next=4,this.bulkRequestClient.send({requests:n});case 4:return i=t.sent.results,t.abrupt("return",i.map((function(t){return t.records})).reduce((function(t,e){return t.concat(e)}),[]));case 6:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"deleteAllRecords",value:function(t){return this.deleteAllRecordsRecursive(t,t.records.length)}},{key:"deleteAllRecordsRecursive",value:(r=s(o().mark((function t(e,r){var n,i,a,s;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,i=e.app,a=e.records,0!==(s=a.slice(0,n)).length){t.next=5;break}return t.abrupt("return",{});case 5:return t.prev=5,t.next=8,this.deleteAllRecordsWithBulkRequest({app:i,records:s});case 8:t.next=13;break;case 10:throw t.prev=10,t.t0=t.catch(5),new Bg({},a,r,t.t0,100);case 13:return t.abrupt("return",this.deleteAllRecordsRecursive({app:i,records:a.slice(n)},r));case 14:case"end":return t.stop()}}),t,this,[[5,10]])}))),function(t,e){return r.apply(this,arguments)})},{key:"deleteAllRecordsWithBulkRequest",value:(e=s(o().mark((function t(e){var r,n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.separateArrayRecursive(100,[],e.records),n=r.map((function(t){return{method:"DELETE",endpointName:"records",payload:{app:e.app,ids:t.map((function(t){return t.id})),revisions:t.map((function(t){return t.revision}))}}})),t.next=4,this.bulkRequestClient.send({requests:n});case 4:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"separateArrayRecursive",value:function(t,e,r){var n=r.slice(0,t);return 0===n.length?e:this.separateArrayRecursive(t,[].concat(x(e),[n]),r.slice(t))}},{key:"addRecordComment",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"record/comment"});return this.client.post(e,t)}},{key:"deleteRecordComment",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"record/comment"});return this.client.delete(e,t)}},{key:"getRecordComments",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"record/comments"});return this.client.get(e,t)}},{key:"updateRecordAssignees",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"record/assignees"});return this.client.put(e,t)}},{key:"updateRecordStatus",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"record/status"});return this.client.put(e,t)}},{key:"updateRecordsStatus",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"records/status"});return this.client.put(e,t)}},{key:"buildPathWithGuestSpaceId",value:function(t){return zy(n(n({},t),{},{guestSpaceId:this.guestSpaceId}))}}]),t}(),zg=R("object"==typeof self?self.FormData:window.FormData),Hg=function(){function t(e,r){u(this,t),this.client=e,this.guestSpaceId=r}var r;return l(t,[{key:"uploadFile",value:(r=s(o().mark((function t(r){var n,i,a,s,u,c,l,p,f;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.buildPathWithGuestSpaceId({endpointName:"file"}),i=new zg,!("path"in r.file)){t.next=19;break}return t.prev=3,t.next=6,e.readFileFromPath(r.file.path);case 6:a=t.sent,s=a.name,u=a.data,i.append("file",u,s),t.next=17;break;case 12:if(t.prev=12,t.t0=t.catch(3),!(t.t0 instanceof Vi)){t.next=16;break}throw new Error("uploadFile doesn't allow to accept a file path in ".concat(t.t0.platform," environment."));case 16:throw t.t0;case 17:t.next=22;break;case 19:c=r.file,l=c.name,p=c.data,f=e.buildFormDataValue(p,l),i.append("file",f,l);case 22:return t.abrupt("return",this.client.postData(n,i));case 23:case"end":return t.stop()}}),t,this,[[3,12]])}))),function(t){return r.apply(this,arguments)})},{key:"downloadFile",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"file"});return this.client.getData(e,t)}},{key:"buildPathWithGuestSpaceId",value:function(t){return zy(n(n({},t),{},{guestSpaceId:this.guestSpaceId}))}}]),t}(),$g="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function Vg(t,e){return function(){return t.apply(e,arguments)}}const{toString:Yg}=Object.prototype,{getPrototypeOf:Kg}=Object,Jg=(Qg=Object.create(null),t=>{const e=Yg.call(t);return Qg[e]||(Qg[e]=e.slice(8,-1).toLowerCase())});var Qg;const Xg=t=>(t=t.toLowerCase(),e=>Jg(e)===t),Zg=t=>e=>typeof e===t,{isArray:tv}=Array,ev=Zg("undefined");const rv=Xg("ArrayBuffer");const nv=Zg("string"),ov=Zg("function"),iv=Zg("number"),av=t=>null!==t&&"object"==typeof t,sv=t=>{if("object"!==Jg(t))return!1;const e=Kg(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},uv=Xg("Date"),cv=Xg("File"),lv=Xg("Blob"),pv=Xg("FileList"),fv=Xg("URLSearchParams");function hv(t,e){let r,n,{allOwnKeys:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!=t)if("object"!=typeof t&&(t=[t]),tv(t))for(r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else{const n=o?Object.getOwnPropertyNames(t):Object.keys(t),i=n.length;let a;for(r=0;r<i;r++)a=n[r],e.call(null,t[a],a,t)}}function dv(t,e){e=e.toLowerCase();const r=Object.keys(t);let n,o=r.length;for(;o-- >0;)if(n=r[o],e===n.toLowerCase())return n;return null}const yv="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:$g,mv=t=>!ev(t)&&t!==yv;const gv=(t=>e=>t&&e instanceof t)("undefined"!=typeof Uint8Array&&Kg(Uint8Array)),vv=Xg("HTMLFormElement"),bv=(t=>{let{hasOwnProperty:e}=t;return(t,r)=>e.call(t,r)})(Object.prototype),wv=Xg("RegExp"),xv=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};hv(r,((r,o)=>{let i;!1!==(i=e(r,o,t))&&(n[o]=i||r)})),Object.defineProperties(t,n)},Sv="abcdefghijklmnopqrstuvwxyz",Av="0123456789",Ev={DIGIT:Av,ALPHA:Sv,ALPHA_DIGIT:Sv+Sv.toUpperCase()+Av};const Rv=Xg("AsyncFunction");var Ov={isArray:tv,isArrayBuffer:rv,isBuffer:function(t){return null!==t&&!ev(t)&&null!==t.constructor&&!ev(t.constructor)&&ov(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||ov(t.append)&&("formdata"===(e=Jg(t))||"object"===e&&ov(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&rv(t.buffer),e},isString:nv,isNumber:iv,isBoolean:t=>!0===t||!1===t,isObject:av,isPlainObject:sv,isUndefined:ev,isDate:uv,isFile:cv,isBlob:lv,isRegExp:wv,isFunction:ov,isStream:t=>av(t)&&ov(t.pipe),isURLSearchParams:fv,isTypedArray:gv,isFileList:pv,forEach:hv,merge:function t(){const{caseless:e}=mv(this)&&this||{},r={},n=(n,o)=>{const i=e&&dv(r,o)||o;sv(r[i])&&sv(n)?r[i]=t(r[i],n):sv(n)?r[i]=t({},n):tv(n)?r[i]=n.slice():r[i]=n};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&hv(arguments[t],n);return r},extend:function(t,e,r){let{allOwnKeys:n}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return hv(e,((e,n)=>{r&&ov(e)?t[n]=Vg(e,r):t[n]=e}),{allOwnKeys:n}),t},trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},toFlatObject:(t,e,r,n)=>{let o,i,a;const s={};if(e=e||{},null==t)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)a=o[i],n&&!n(a,t,e)||s[a]||(e[a]=t[a],s[a]=!0);t=!1!==r&&Kg(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kindOf:Jg,kindOfTest:Xg,endsWith:(t,e,r)=>{t=String(t),(void 0===r||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return-1!==n&&n===r},toArray:t=>{if(!t)return null;if(tv(t))return t;let e=t.length;if(!iv(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},forEachEntry:(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let n;for(;(n=r.next())&&!n.done;){const r=n.value;e.call(t,r[0],r[1])}},matchAll:(t,e)=>{let r;const n=[];for(;null!==(r=t.exec(e));)n.push(r);return n},isHTMLForm:vv,hasOwnProperty:bv,hasOwnProp:bv,reduceDescriptors:xv,freezeMethods:t=>{xv(t,((e,r)=>{if(ov(t)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=t[r];ov(n)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(t,e)=>{const r={},n=t=>{t.forEach((t=>{r[t]=!0}))};return tv(t)?n(t):n(String(t).split(e)),r},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,r){return e.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(t,e)=>(t=+t,Number.isFinite(t)?t:e),findKey:dv,global:yv,isContextDefined:mv,ALPHABET:Ev,generateString:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ev.ALPHA_DIGIT,r="";const{length:n}=e;for(;t--;)r+=e[Math.random()*n|0];return r},isSpecCompliantForm:function(t){return!!(t&&ov(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),r=(t,n)=>{if(av(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[n]=t;const o=tv(t)?[]:{};return hv(t,((t,e)=>{const i=r(t,n+1);!ev(i)&&(o[e]=i)})),e[n]=void 0,o}}return t};return r(t,0)},isAsyncFn:Rv,isThenable:t=>t&&(av(t)||ov(t))&&ov(t.then)&&ov(t.catch)},Pv=[],kv=[],jv="undefined"!=typeof Uint8Array?Uint8Array:Array,Tv=!1;function Iv(){Tv=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0;e<64;++e)Pv[e]=t[e],kv[t.charCodeAt(e)]=e;kv["-".charCodeAt(0)]=62,kv["_".charCodeAt(0)]=63}function _v(t,e,r){for(var n,o,i=[],a=e;a<r;a+=3)n=(t[a]<<16)+(t[a+1]<<8)+t[a+2],i.push(Pv[(o=n)>>18&63]+Pv[o>>12&63]+Pv[o>>6&63]+Pv[63&o]);return i.join("")}function Nv(t){var e;Tv||Iv();for(var r=t.length,n=r%3,o="",i=[],a=16383,s=0,u=r-n;s<u;s+=a)i.push(_v(t,s,s+a>u?u:s+a));return 1===n?(e=t[r-1],o+=Pv[e>>2],o+=Pv[e<<4&63],o+="=="):2===n&&(e=(t[r-2]<<8)+t[r-1],o+=Pv[e>>10],o+=Pv[e>>4&63],o+=Pv[e<<2&63],o+="="),i.push(o),i.join("")}function Cv(t,e,r,n,o){var i,a,s=8*o-n-1,u=(1<<s)-1,c=u>>1,l=-7,p=r?o-1:0,f=r?-1:1,h=t[e+p];for(p+=f,i=h&(1<<-l)-1,h>>=-l,l+=s;l>0;i=256*i+t[e+p],p+=f,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=n;l>0;a=256*a+t[e+p],p+=f,l-=8);if(0===i)i=1-c;else{if(i===u)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 Uv(t,e,r,n,o,i){var a,s,u,c=8*i-o-1,l=(1<<c)-1,p=l>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,d=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+p>=1?f/u:f*Math.pow(2,1-p))*u>=2&&(a++,u/=2),a+p>=l?(s=0,a=l):a+p>=1?(s=(e*u-1)*Math.pow(2,o),a+=p):(s=e*Math.pow(2,p-1)*Math.pow(2,o),a=0));o>=8;t[r+h]=255&s,h+=d,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;t[r+h]=255&a,h+=d,a/=256,c-=8);t[r+h-d]|=128*y}var Lv={}.toString,Fv=Array.isArray||function(t){return"[object Array]"==Lv.call(t)};function Bv(){return Mv.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Dv(t,e){if(Bv()<e)throw new RangeError("Invalid typed array length");return Mv.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=Mv.prototype:(null===t&&(t=new Mv(e)),t.length=e),t}function Mv(t,e,r){if(!(Mv.TYPED_ARRAY_SUPPORT||this instanceof Mv))return new Mv(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return Gv(this,t)}return qv(this,t,e,r)}function qv(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);Mv.TYPED_ARRAY_SUPPORT?(t=e).__proto__=Mv.prototype:t=zv(t,e);return t}(t,e,r,n):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!Mv.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|Vv(e,r);t=Dv(t,n);var o=t.write(e,r);o!==n&&(t=t.slice(0,o));return t}(t,e,r):function(t,e){if($v(e)){var r=0|Hv(e.length);return 0===(t=Dv(t,r)).length||e.copy(t,0,0,r),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(n=e.length)!=n?Dv(t,0):zv(t,e);if("Buffer"===e.type&&Fv(e.data))return zv(t,e.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function Wv(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function Gv(t,e){if(Wv(e),t=Dv(t,e<0?0:0|Hv(e)),!Mv.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function zv(t,e){var r=e.length<0?0:0|Hv(e.length);t=Dv(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function Hv(t){if(t>=Bv())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Bv().toString(16)+" bytes");return 0|t}function $v(t){return!(null==t||!t._isBuffer)}function Vv(t,e){if($v(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return wb(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return xb(t).length;default:if(n)return wb(t).length;e=(""+e).toLowerCase(),n=!0}}function Yv(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return cb(this,e,r);case"utf8":case"utf-8":return ib(this,e,r);case"ascii":return sb(this,e,r);case"latin1":case"binary":return ub(this,e,r);case"base64":return ob(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return lb(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function Kv(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function Jv(t,e,r,n,o){if(0===t.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:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=Mv.from(e,n)),$v(e))return 0===e.length?-1:Qv(t,e,r,n,o);if("number"==typeof e)return e&=255,Mv.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):Qv(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function Qv(t,e,r,n,o){var i,a=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,r/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){var l=-1;for(i=r;i<s;i++)if(c(t,i)===c(e,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(r+u>s&&(r=s-u),i=r;i>=0;i--){for(var p=!0,f=0;f<u;f++)if(c(t,i+f)!==c(e,f)){p=!1;break}if(p)return i}return-1}function Xv(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=e.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 s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[r+a]=s}return a}function Zv(t,e,r,n){return Sb(wb(e,t.length-r),t,r,n)}function tb(t,e,r,n){return Sb(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function eb(t,e,r,n){return tb(t,e,r,n)}function rb(t,e,r,n){return Sb(xb(e),t,r,n)}function nb(t,e,r,n){return Sb(function(t,e){for(var r,n,o,i=[],a=0;a<t.length&&!((e-=2)<0);++a)n=(r=t.charCodeAt(a))>>8,o=r%256,i.push(o),i.push(n);return i}(e,t.length-r),t,r,n)}function ob(t,e,r){return 0===e&&r===t.length?Nv(t):Nv(t.slice(e,r))}function ib(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i,a,s,u,c=t[o],l=null,p=c>239?4:c>223?3:c>191?2:1;if(o+p<=r)switch(p){case 1:c<128&&(l=c);break;case 2:128==(192&(i=t[o+1]))&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:i=t[o+1],a=t[o+2],128==(192&i)&&128==(192&a)&&(u=(15&c)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=t[o+1],a=t[o+2],s=t[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,p=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),o+=p}return function(t){var e=t.length;if(e<=ab)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=ab));return r}(n)}Mv.TYPED_ARRAY_SUPPORT=void 0===$g.TYPED_ARRAY_SUPPORT||$g.TYPED_ARRAY_SUPPORT,Bv(),Mv.poolSize=8192,Mv._augment=function(t){return t.__proto__=Mv.prototype,t},Mv.from=function(t,e,r){return qv(null,t,e,r)},Mv.TYPED_ARRAY_SUPPORT&&(Mv.prototype.__proto__=Uint8Array.prototype,Mv.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Mv[Symbol.species]),Mv.alloc=function(t,e,r){return function(t,e,r,n){return Wv(e),e<=0?Dv(t,e):void 0!==r?"string"==typeof n?Dv(t,e).fill(r,n):Dv(t,e).fill(r):Dv(t,e)}(null,t,e,r)},Mv.allocUnsafe=function(t){return Gv(null,t)},Mv.allocUnsafeSlow=function(t){return Gv(null,t)},Mv.isBuffer=function(t){return null!=t&&(!!t._isBuffer||Ab(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&Ab(t.slice(0,0))}(t))},Mv.compare=function(t,e){if(!$v(t)||!$v(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,o=0,i=Math.min(r,n);o<i;++o)if(t[o]!==e[o]){r=t[o],n=e[o];break}return r<n?-1:n<r?1:0},Mv.isEncoding=function(t){switch(String(t).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}},Mv.concat=function(t,e){if(!Fv(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return Mv.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=Mv.allocUnsafe(e),o=0;for(r=0;r<t.length;++r){var i=t[r];if(!$v(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,o),o+=i.length}return n},Mv.byteLength=Vv,Mv.prototype._isBuffer=!0,Mv.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)Kv(this,e,e+1);return this},Mv.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)Kv(this,e,e+3),Kv(this,e+1,e+2);return this},Mv.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)Kv(this,e,e+7),Kv(this,e+1,e+6),Kv(this,e+2,e+5),Kv(this,e+3,e+4);return this},Mv.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?ib(this,0,t):Yv.apply(this,arguments)},Mv.prototype.equals=function(t){if(!$v(t))throw new TypeError("Argument must be a Buffer");return this===t||0===Mv.compare(this,t)},Mv.prototype.inspect=function(){var t="";return this.length>0&&(t=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(t+=" ... ")),"<Buffer "+t+">"},Mv.prototype.compare=function(t,e,r,n,o){if(!$v(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(this===t)return 0;for(var i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0),s=Math.min(i,a),u=this.slice(n,o),c=t.slice(e,r),l=0;l<s;++l)if(u[l]!==c[l]){i=u[l],a=c[l];break}return i<a?-1:a<i?1:0},Mv.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},Mv.prototype.indexOf=function(t,e,r){return Jv(this,t,e,r,!0)},Mv.prototype.lastIndexOf=function(t,e,r){return Jv(this,t,e,r,!1)},Mv.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-e;if((void 0===r||r>o)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return Xv(this,t,e,r);case"utf8":case"utf-8":return Zv(this,t,e,r);case"ascii":return tb(this,t,e,r);case"latin1":case"binary":return eb(this,t,e,r);case"base64":return rb(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return nb(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},Mv.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ab=4096;function sb(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(127&t[o]);return n}function ub(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function cb(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=e;i<r;++i)o+=bb(t[i]);return o}function lb(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function pb(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function fb(t,e,r,n,o,i){if(!$v(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function hb(t,e,r,n){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-r,2);o<i;++o)t[r+o]=(e&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function db(t,e,r,n){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-r,4);o<i;++o)t[r+o]=e>>>8*(n?o:3-o)&255}function yb(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function mb(t,e,r,n,o){return o||yb(t,0,r,4),Uv(t,e,r,n,23,4),r+4}function gb(t,e,r,n,o){return o||yb(t,0,r,8),Uv(t,e,r,n,52,8),r+8}Mv.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),Mv.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=Mv.prototype;else{var o=e-t;r=new Mv(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+t]}return r},Mv.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||pb(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n},Mv.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||pb(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},Mv.prototype.readUInt8=function(t,e){return e||pb(t,1,this.length),this[t]},Mv.prototype.readUInt16LE=function(t,e){return e||pb(t,2,this.length),this[t]|this[t+1]<<8},Mv.prototype.readUInt16BE=function(t,e){return e||pb(t,2,this.length),this[t]<<8|this[t+1]},Mv.prototype.readUInt32LE=function(t,e){return e||pb(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},Mv.prototype.readUInt32BE=function(t,e){return e||pb(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},Mv.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||pb(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*e)),n},Mv.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||pb(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},Mv.prototype.readInt8=function(t,e){return e||pb(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},Mv.prototype.readInt16LE=function(t,e){e||pb(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},Mv.prototype.readInt16BE=function(t,e){e||pb(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},Mv.prototype.readInt32LE=function(t,e){return e||pb(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},Mv.prototype.readInt32BE=function(t,e){return e||pb(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},Mv.prototype.readFloatLE=function(t,e){return e||pb(t,4,this.length),Cv(this,t,!0,23,4)},Mv.prototype.readFloatBE=function(t,e){return e||pb(t,4,this.length),Cv(this,t,!1,23,4)},Mv.prototype.readDoubleLE=function(t,e){return e||pb(t,8,this.length),Cv(this,t,!0,52,8)},Mv.prototype.readDoubleBE=function(t,e){return e||pb(t,8,this.length),Cv(this,t,!1,52,8)},Mv.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||fb(this,t,e,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[e]=255&t;++i<r&&(o*=256);)this[e+i]=t/o&255;return e+r},Mv.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||fb(this,t,e,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+r},Mv.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||fb(this,t,e,1,255,0),Mv.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},Mv.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||fb(this,t,e,2,65535,0),Mv.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):hb(this,t,e,!0),e+2},Mv.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||fb(this,t,e,2,65535,0),Mv.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):hb(this,t,e,!1),e+2},Mv.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||fb(this,t,e,4,4294967295,0),Mv.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):db(this,t,e,!0),e+4},Mv.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||fb(this,t,e,4,4294967295,0),Mv.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):db(this,t,e,!1),e+4},Mv.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);fb(this,t,e,r,o-1,-o)}var i=0,a=1,s=0;for(this[e]=255&t;++i<r&&(a*=256);)t<0&&0===s&&0!==this[e+i-1]&&(s=1),this[e+i]=(t/a>>0)-s&255;return e+r},Mv.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);fb(this,t,e,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/a>>0)-s&255;return e+r},Mv.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||fb(this,t,e,1,127,-128),Mv.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},Mv.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||fb(this,t,e,2,32767,-32768),Mv.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):hb(this,t,e,!0),e+2},Mv.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||fb(this,t,e,2,32767,-32768),Mv.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):hb(this,t,e,!1),e+2},Mv.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||fb(this,t,e,4,2147483647,-2147483648),Mv.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):db(this,t,e,!0),e+4},Mv.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||fb(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),Mv.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):db(this,t,e,!1),e+4},Mv.prototype.writeFloatLE=function(t,e,r){return mb(this,t,e,!0,r)},Mv.prototype.writeFloatBE=function(t,e,r){return mb(this,t,e,!1,r)},Mv.prototype.writeDoubleLE=function(t,e,r){return gb(this,t,e,!0,r)},Mv.prototype.writeDoubleBE=function(t,e,r){return gb(this,t,e,!1,r)},Mv.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<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),t.length-e<n-r&&(n=t.length-e+r);var o,i=n-r;if(this===t&&r<e&&e<n)for(o=i-1;o>=0;--o)t[o+e]=this[o+r];else if(i<1e3||!Mv.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+i),e);return i},Mv.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!Mv.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var i;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{var a=$v(t)?t:wb(new Mv(t,n).toString()),s=a.length;for(i=0;i<r-e;++i)this[i+e]=a[i%s]}return this};var vb=/[^+\/0-9A-Za-z-_]/g;function bb(t){return t<16?"0"+t.toString(16):t.toString(16)}function wb(t,e){var r;e=e||1/0;for(var n=t.length,o=null,i=[],a=0;a<n;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=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((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function xb(t){return function(t){var e,r,n,o,i,a;Tv||Iv();var s=t.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i="="===t[s-2]?2:"="===t[s-1]?1:0,a=new jv(3*s/4-i),n=i>0?s-4:s;var u=0;for(e=0,r=0;e<n;e+=4,r+=3)o=kv[t.charCodeAt(e)]<<18|kv[t.charCodeAt(e+1)]<<12|kv[t.charCodeAt(e+2)]<<6|kv[t.charCodeAt(e+3)],a[u++]=o>>16&255,a[u++]=o>>8&255,a[u++]=255&o;return 2===i?(o=kv[t.charCodeAt(e)]<<2|kv[t.charCodeAt(e+1)]>>4,a[u++]=255&o):1===i&&(o=kv[t.charCodeAt(e)]<<10|kv[t.charCodeAt(e+1)]<<4|kv[t.charCodeAt(e+2)]>>2,a[u++]=o>>8&255,a[u++]=255&o),a}(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(vb,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function Sb(t,e,r,n){for(var o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function Ab(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function Eb(t,e,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}Ov.inherits(Eb,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:Ov.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Rb=Eb.prototype,Ob={};["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","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{Ob[t]={value:t}})),Object.defineProperties(Eb,Ob),Object.defineProperty(Rb,"isAxiosError",{value:!0}),Eb.from=(t,e,r,n,o,i)=>{const a=Object.create(Rb);return Ov.toFlatObject(t,a,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),Eb.call(a,t.message,e,r,n,o),a.cause=t,a.name=t.name,i&&Object.assign(a,i),a};function Pb(t){return Ov.isPlainObject(t)||Ov.isArray(t)}function kb(t){return Ov.endsWith(t,"[]")?t.slice(0,-2):t}function jb(t,e,r){return t?t.concat(e).map((function(t,e){return t=kb(t),!r&&e?"["+t+"]":t})).join(r?".":""):e}const Tb=Ov.toFlatObject(Ov,{},null,(function(t){return/^is[A-Z]/.test(t)}));function Ib(t,e,r){if(!Ov.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const n=(r=Ov.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!Ov.isUndefined(e[t])}))).metaTokens,o=r.visitor||c,i=r.dots,a=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&Ov.isSpecCompliantForm(e);if(!Ov.isFunction(o))throw new TypeError("visitor must be a function");function u(t){if(null===t)return"";if(Ov.isDate(t))return t.toISOString();if(!s&&Ov.isBlob(t))throw new Eb("Blob is not supported. Use a Buffer instead.");return Ov.isArrayBuffer(t)||Ov.isTypedArray(t)?s&&"function"==typeof Blob?new Blob([t]):Mv.from(t):t}function c(t,r,o){let s=t;if(t&&!o&&"object"==typeof t)if(Ov.endsWith(r,"{}"))r=n?r:r.slice(0,-2),t=JSON.stringify(t);else if(Ov.isArray(t)&&function(t){return Ov.isArray(t)&&!t.some(Pb)}(t)||(Ov.isFileList(t)||Ov.endsWith(r,"[]"))&&(s=Ov.toArray(t)))return r=kb(r),s.forEach((function(t,n){!Ov.isUndefined(t)&&null!==t&&e.append(!0===a?jb([r],n,i):null===a?r:r+"[]",u(t))})),!1;return!!Pb(t)||(e.append(jb(o,r,i),u(t)),!1)}const l=[],p=Object.assign(Tb,{defaultVisitor:c,convertValue:u,isVisitable:Pb});if(!Ov.isObject(t))throw new TypeError("data must be an object");return function t(r,n){if(!Ov.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),Ov.forEach(r,(function(r,i){!0===(!(Ov.isUndefined(r)||null===r)&&o.call(e,r,Ov.isString(i)?i.trim():i,n,p))&&t(r,n?n.concat(i):[i])})),l.pop()}}(t),e}function _b(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function Nb(t,e){this._pairs=[],t&&Ib(t,this,e)}const Cb=Nb.prototype;function Ub(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Lb(t,e,r){if(!e)return t;const n=r&&r.encode||Ub,o=r&&r.serialize;let i;if(i=o?o(e,r):Ov.isURLSearchParams(e)?e.toString():new Nb(e,r).toString(n),i){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}Cb.append=function(t,e){this._pairs.push([t,e])},Cb.toString=function(t){const e=t?function(e){return t.call(this,e,_b)}:_b;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};var Fb=class{constructor(){this.handlers=[]}use(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ov.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},Bb={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var Db={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Nb,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:(()=>{let t;return("undefined"==typeof navigator||"ReactNative"!==(t=navigator.product)&&"NativeScript"!==t&&"NS"!==t)&&("undefined"!=typeof window&&"undefined"!=typeof document)})(),isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]};function Mb(t){function e(t,r,n,o){let i=t[o++];const a=Number.isFinite(+i),s=o>=t.length;if(i=!i&&Ov.isArray(n)?n.length:i,s)return Ov.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!a;n[i]&&Ov.isObject(n[i])||(n[i]=[]);return e(t,r,n[i],o)&&Ov.isArray(n[i])&&(n[i]=function(t){const e={},r=Object.keys(t);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],e[i]=t[i];return e}(n[i])),!a}if(Ov.isFormData(t)&&Ov.isFunction(t.entries)){const r={};return Ov.forEachEntry(t,((t,n)=>{e(function(t){return Ov.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),n,r,0)})),r}return null}const qb={transitional:Bb,adapter:["xhr","http"],transformRequest:[function(t,e){const r=e.getContentType()||"",n=r.indexOf("application/json")>-1,o=Ov.isObject(t);o&&Ov.isHTMLForm(t)&&(t=new FormData(t));if(Ov.isFormData(t))return n&&n?JSON.stringify(Mb(t)):t;if(Ov.isArrayBuffer(t)||Ov.isBuffer(t)||Ov.isStream(t)||Ov.isFile(t)||Ov.isBlob(t))return t;if(Ov.isArrayBufferView(t))return t.buffer;if(Ov.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return Ib(t,new Db.classes.URLSearchParams,Object.assign({visitor:function(t,e,r,n){return Db.isNode&&Ov.isBuffer(t)?(this.append(e,t.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((i=Ov.isFileList(t))||r.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return Ib(i?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||n?(e.setContentType("application/json",!1),function(t,e,r){if(Ov.isString(t))try{return(e||JSON.parse)(t),Ov.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(r||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||qb.transitional,r=e&&e.forcedJSONParsing,n="json"===this.responseType;if(t&&Ov.isString(t)&&(r&&!this.responseType||n)){const r=!(e&&e.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(t){if(r){if("SyntaxError"===t.name)throw Eb.from(t,Eb.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Db.classes.FormData,Blob:Db.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ov.forEach(["delete","get","head","post","put","patch"],(t=>{qb.headers[t]={}}));var Wb=qb;const Gb=Ov.toObjectSet(["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"]);const zb=Symbol("internals");function Hb(t){return t&&String(t).trim().toLowerCase()}function $b(t){return!1===t||null==t?t:Ov.isArray(t)?t.map($b):String(t)}function Vb(t,e,r,n,o){return Ov.isFunction(n)?n.call(this,e,r):(o&&(e=r),Ov.isString(e)?Ov.isString(n)?-1!==e.indexOf(n):Ov.isRegExp(n)?n.test(e):void 0:void 0)}class Yb{constructor(t){t&&this.set(t)}set(t,e,r){const n=this;function o(t,e,r){const o=Hb(e);if(!o)throw new Error("header name must be a non-empty string");const i=Ov.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||e]=$b(t))}const i=(t,e)=>Ov.forEach(t,((t,r)=>o(t,r,e)));return Ov.isPlainObject(t)||t instanceof this.constructor?i(t,e):Ov.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim())?i((t=>{const e={};let r,n,o;return t&&t.split("\n").forEach((function(t){o=t.indexOf(":"),r=t.substring(0,o).trim().toLowerCase(),n=t.substring(o+1).trim(),!r||e[r]&&Gb[r]||("set-cookie"===r?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)})),e})(t),e):null!=t&&o(e,t,r),this}get(t,e){if(t=Hb(t)){const r=Ov.findKey(this,t);if(r){const t=this[r];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}(t);if(Ov.isFunction(e))return e.call(this,t,r);if(Ov.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Hb(t)){const r=Ov.findKey(this,t);return!(!r||void 0===this[r]||e&&!Vb(0,this[r],r,e))}return!1}delete(t,e){const r=this;let n=!1;function o(t){if(t=Hb(t)){const o=Ov.findKey(r,t);!o||e&&!Vb(0,r[o],o,e)||(delete r[o],n=!0)}}return Ov.isArray(t)?t.forEach(o):o(t),n}clear(t){const e=Object.keys(this);let r=e.length,n=!1;for(;r--;){const o=e[r];t&&!Vb(0,this[o],o,t,!0)||(delete this[o],n=!0)}return n}normalize(t){const e=this,r={};return Ov.forEach(this,((n,o)=>{const i=Ov.findKey(r,o);if(i)return e[i]=$b(n),void delete e[o];const a=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,r)=>e.toUpperCase()+r))}(o):String(o).trim();a!==o&&delete e[o],e[a]=$b(n),r[a]=!0})),this}concat(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.constructor.concat(this,...e)}toJSON(t){const e=Object.create(null);return Ov.forEach(this,((r,n)=>{null!=r&&!1!==r&&(e[n]=t&&Ov.isArray(r)?r.join(", "):r)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((t=>{let[e,r]=t;return e+": "+r})).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t){const e=new this(t);for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return n.forEach((t=>e.set(t))),e}static accessor(t){const e=(this[zb]=this[zb]={accessors:{}}).accessors,r=this.prototype;function n(t){const n=Hb(t);e[n]||(!function(t,e){const r=Ov.toCamelCase(" "+e);["get","set","has"].forEach((n=>{Object.defineProperty(t,n+r,{value:function(t,r,o){return this[n].call(this,e,t,r,o)},configurable:!0})}))}(r,t),e[n]=!0)}return Ov.isArray(t)?t.forEach(n):n(t),this}}Yb.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ov.reduceDescriptors(Yb.prototype,((t,e)=>{let{value:r}=t,n=e[0].toUpperCase()+e.slice(1);return{get:()=>r,set(t){this[n]=t}}})),Ov.freezeMethods(Yb);var Kb=Yb;function Jb(t,e){const r=this||Wb,n=e||r,o=Kb.from(n.headers);let i=n.data;return Ov.forEach(t,(function(t){i=t.call(r,i,o.normalize(),e?e.status:void 0)})),o.normalize(),i}function Qb(t){return!(!t||!t.__CANCEL__)}function Xb(t,e,r){Eb.call(this,null==t?"canceled":t,Eb.ERR_CANCELED,e,r),this.name="CanceledError"}Ov.inherits(Xb,Eb,{__CANCEL__:!0});var Zb=Db.isStandardBrowserEnv?{write:function(t,e,r,n,o,i){const a=[];a.push(t+"="+encodeURIComponent(e)),Ov.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),Ov.isString(n)&&a.push("path="+n),Ov.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function tw(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}var ew=Db.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let r;function n(r){let n=r;return t&&(e.setAttribute("href",n),n=e.href),e.setAttribute("href",n),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return r=n(window.location.href),function(t){const e=Ov.isString(t)?n(t):t;return e.protocol===r.protocol&&e.host===r.host}}():function(){return!0};function rw(t,e){let r=0;const n=function(t,e){t=t||10;const r=new Array(t),n=new Array(t);let o,i=0,a=0;return e=void 0!==e?e:1e3,function(s){const u=Date.now(),c=n[a];o||(o=u),r[i]=s,n[i]=u;let l=a,p=0;for(;l!==i;)p+=r[l++],l%=t;if(i=(i+1)%t,i===a&&(a=(a+1)%t),u-o<e)return;const f=c&&u-c;return f?Math.round(1e3*p/f):void 0}}(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-r,u=n(s);r=i;const c={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:u||void 0,estimated:u&&a&&i<=a?(a-i)/u:void 0,event:o};c[e?"download":"upload"]=!0,t(c)}}var nw="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,r){let n=t.data;const o=Kb.from(t.headers).normalize(),i=t.responseType;let a,s;function u(){t.cancelToken&&t.cancelToken.unsubscribe(a),t.signal&&t.signal.removeEventListener("abort",a)}Ov.isFormData(n)&&(Db.isStandardBrowserEnv||Db.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.getContentType(/^\s*multipart\/form-data/)?Ov.isString(s=o.getContentType())&&o.setContentType(s.replace(/^\s*(multipart\/form-data);+/,"$1")):o.setContentType("multipart/form-data"));let c=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"",r=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.set("Authorization","Basic "+btoa(e+":"+r))}const l=tw(t.baseURL,t.url);function p(){if(!c)return;const n=Kb.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());!function(t,e,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?e(new Eb("Request failed with status code "+r.status,[Eb.ERR_BAD_REQUEST,Eb.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):t(r)}((function(t){e(t),u()}),(function(t){r(t),u()}),{data:i&&"text"!==i&&"json"!==i?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:n,config:t,request:c}),c=null}if(c.open(t.method.toUpperCase(),Lb(l,t.params,t.paramsSerializer),!0),c.timeout=t.timeout,"onloadend"in c?c.onloadend=p:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(p)},c.onabort=function(){c&&(r(new Eb("Request aborted",Eb.ECONNABORTED,t,c)),c=null)},c.onerror=function(){r(new Eb("Network Error",Eb.ERR_NETWORK,t,c)),c=null},c.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const n=t.transitional||Bb;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(new Eb(e,n.clarifyTimeoutError?Eb.ETIMEDOUT:Eb.ECONNABORTED,t,c)),c=null},Db.isStandardBrowserEnv){const e=(t.withCredentials||ew(l))&&t.xsrfCookieName&&Zb.read(t.xsrfCookieName);e&&o.set(t.xsrfHeaderName,e)}void 0===n&&o.setContentType(null),"setRequestHeader"in c&&Ov.forEach(o.toJSON(),(function(t,e){c.setRequestHeader(e,t)})),Ov.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),i&&"json"!==i&&(c.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&c.addEventListener("progress",rw(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",rw(t.onUploadProgress)),(t.cancelToken||t.signal)&&(a=e=>{c&&(r(!e||e.type?new Xb(null,t,c):e),c.abort(),c=null)},t.cancelToken&&t.cancelToken.subscribe(a),t.signal&&(t.signal.aborted?a():t.signal.addEventListener("abort",a)));const f=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(l);f&&-1===Db.protocols.indexOf(f)?r(new Eb("Unsupported protocol "+f+":",Eb.ERR_BAD_REQUEST,t)):c.send(n||null)}))};const ow={http:null,xhr:nw};Ov.forEach(ow,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));const iw=t=>`- ${t}`,aw=t=>Ov.isFunction(t)||null===t||!1===t;var sw=t=>{t=Ov.isArray(t)?t:[t];const{length:e}=t;let r,n;const o={};for(let i=0;i<e;i++){let e;if(r=t[i],n=r,!aw(r)&&(n=ow[(e=String(r)).toLowerCase()],void 0===n))throw new Eb(`Unknown adapter '${e}'`);if(n)break;o[e||"#"+i]=n}if(!n){const t=Object.entries(o).map((t=>{let[e,r]=t;return`adapter ${e} `+(!1===r?"is not supported by the environment":"is not available in the build")}));throw new Eb("There is no suitable adapter to dispatch the request "+(e?t.length>1?"since :\n"+t.map(iw).join("\n"):" "+iw(t[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function uw(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Xb(null,t)}function cw(t){uw(t),t.headers=Kb.from(t.headers),t.data=Jb.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return sw(t.adapter||Wb.adapter)(t).then((function(e){return uw(t),e.data=Jb.call(t,t.transformResponse,e),e.headers=Kb.from(e.headers),e}),(function(e){return Qb(e)||(uw(t),e&&e.response&&(e.response.data=Jb.call(t,t.transformResponse,e.response),e.response.headers=Kb.from(e.response.headers))),Promise.reject(e)}))}const lw=t=>t instanceof Kb?t.toJSON():t;function pw(t,e){e=e||{};const r={};function n(t,e,r){return Ov.isPlainObject(t)&&Ov.isPlainObject(e)?Ov.merge.call({caseless:r},t,e):Ov.isPlainObject(e)?Ov.merge({},e):Ov.isArray(e)?e.slice():e}function o(t,e,r){return Ov.isUndefined(e)?Ov.isUndefined(t)?void 0:n(void 0,t,r):n(t,e,r)}function i(t,e){if(!Ov.isUndefined(e))return n(void 0,e)}function a(t,e){return Ov.isUndefined(e)?Ov.isUndefined(t)?void 0:n(void 0,t):n(void 0,e)}function s(r,o,i){return i in e?n(r,o):i in t?n(void 0,r):void 0}const u={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:s,headers:(t,e)=>o(lw(t),lw(e),!0)};return Ov.forEach(Object.keys(Object.assign({},t,e)),(function(n){const i=u[n]||o,a=i(t[n],e[n],n);Ov.isUndefined(a)&&i!==s||(r[n]=a)})),r}const fw="1.5.1",hw={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{hw[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));const dw={};hw.transitional=function(t,e,r){function n(t,e){return"[Axios v1.5.1] Transitional option '"+t+"'"+e+(r?". "+r:"")}return(r,o,i)=>{if(!1===t)throw new Eb(n(o," has been removed"+(e?" in "+e:"")),Eb.ERR_DEPRECATED);return e&&!dw[o]&&(dw[o]=!0,console.warn(n(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,o,i)}};var yw={assertOptions:function(t,e,r){if("object"!=typeof t)throw new Eb("options must be an object",Eb.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let o=n.length;for(;o-- >0;){const i=n[o],a=e[i];if(a){const e=t[i],r=void 0===e||a(e,i,t);if(!0!==r)throw new Eb("option "+i+" must be "+r,Eb.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new Eb("Unknown option "+i,Eb.ERR_BAD_OPTION)}},validators:hw};const mw=yw.validators;let gw=class{constructor(t){this.defaults=t,this.interceptors={request:new Fb,response:new Fb}}request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=pw(this.defaults,e);const{transitional:r,paramsSerializer:n,headers:o}=e;void 0!==r&&yw.assertOptions(r,{silentJSONParsing:mw.transitional(mw.boolean),forcedJSONParsing:mw.transitional(mw.boolean),clarifyTimeoutError:mw.transitional(mw.boolean)},!1),null!=n&&(Ov.isFunction(n)?e.paramsSerializer={serialize:n}:yw.assertOptions(n,{encode:mw.function,serialize:mw.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let i=o&&Ov.merge(o.common,o[e.method]);o&&Ov.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete o[t]})),e.headers=Kb.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(s=s&&t.synchronous,a.unshift(t.fulfilled,t.rejected))}));const u=[];let c;this.interceptors.response.forEach((function(t){u.push(t.fulfilled,t.rejected)}));let l,p=0;if(!s){const t=[cw.bind(this),void 0];for(t.unshift.apply(t,a),t.push.apply(t,u),l=t.length,c=Promise.resolve(e);p<l;)c=c.then(t[p++],t[p++]);return c}l=a.length;let f=e;for(p=0;p<l;){const t=a[p++],e=a[p++];try{f=t(f)}catch(t){e.call(this,t);break}}try{c=cw.call(this,f)}catch(t){return Promise.reject(t)}for(p=0,l=u.length;p<l;)c=c.then(u[p++],u[p++]);return c}getUri(t){return Lb(tw((t=pw(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}};Ov.forEach(["delete","get","head","options"],(function(t){gw.prototype[t]=function(e,r){return this.request(pw(r||{},{method:t,url:e,data:(r||{}).data}))}})),Ov.forEach(["post","put","patch"],(function(t){function e(e){return function(r,n,o){return this.request(pw(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}gw.prototype[t]=e(),gw.prototype[t+"Form"]=e(!0)}));var vw=gw;class bw{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const r=this;this.promise.then((t=>{if(!r._listeners)return;let e=r._listeners.length;for(;e-- >0;)r._listeners[e](t);r._listeners=null})),this.promise.then=t=>{let e;const n=new Promise((t=>{r.subscribe(t),e=t})).then(t);return n.cancel=function(){r.unsubscribe(e)},n},t((function(t,n,o){r.reason||(r.reason=new Xb(t,n,o),e(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;return{token:new bw((function(e){t=e})),cancel:t}}}var ww=bw;const xw={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(xw).forEach((t=>{let[e,r]=t;xw[r]=e}));var Sw=xw;const Aw=function t(e){const r=new vw(e),n=Vg(vw.prototype.request,r);return Ov.extend(n,vw.prototype,r,{allOwnKeys:!0}),Ov.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return t(pw(e,r))},n}(Wb);Aw.Axios=vw,Aw.CanceledError=Xb,Aw.CancelToken=ww,Aw.isCancel=Qb,Aw.VERSION=fw,Aw.toFormData=Ib,Aw.AxiosError=Eb,Aw.Cancel=Aw.CanceledError,Aw.all=function(t){return Promise.all(t)},Aw.spread=function(t){return function(e){return t.apply(null,e)}},Aw.isAxiosError=function(t){return Ov.isObject(t)&&!0===t.isAxiosError},Aw.mergeConfig=pw,Aw.AxiosHeaders=Kb,Aw.formToJSON=t=>Mb(Ov.isHTMLForm(t)?new FormData(t):t),Aw.getAdapter=sw,Aw.HttpStatusCode=Sw,Aw.default=Aw;var Ew=Aw,Rw=function(){function t(e){var r=e.responseHandler,n=e.requestConfigBuilder;u(this,t),this.responseHandler=r,this.requestConfigBuilder=n}var e,r,i,a,c,p;return l(t,[{key:"get",value:(p=s(o().mark((function t(e,r){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.requestConfigBuilder.build("get",e,r);case 2:return n=t.sent,t.next=5,this.sendRequest(n);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return p.apply(this,arguments)})},{key:"getData",value:(c=s(o().mark((function t(e,r){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.requestConfigBuilder.build("get",e,r,{responseType:"arraybuffer"});case 2:return n=t.sent,t.next=5,this.sendRequest(n);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return c.apply(this,arguments)})},{key:"post",value:(a=s(o().mark((function t(e,r){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.requestConfigBuilder.build("post",e,r);case 2:return n=t.sent,t.next=5,this.sendRequest(n);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return a.apply(this,arguments)})},{key:"postData",value:(i=s(o().mark((function t(e,r){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.requestConfigBuilder.build("post",e,r);case 2:return n=t.sent,t.next=5,this.sendRequest(n);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return i.apply(this,arguments)})},{key:"put",value:(r=s(o().mark((function t(e,r){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.requestConfigBuilder.build("put",e,r);case 2:return n=t.sent,t.next=5,this.sendRequest(n);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)})},{key:"delete",value:(e=s(o().mark((function t(e,r){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.requestConfigBuilder.build("delete",e,r);case 2:return n=t.sent,t.next=5,this.sendRequest(n);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t,this)}))),function(t,r){return e.apply(this,arguments)})},{key:"sendRequest",value:function(t){return this.responseHandler.handle(Ew(n(n({},t),{},{maxBodyLength:1/0,maxContentLength:1/0})))}}]),t}(),Ow=Ro,Pw=rt,kw=ct,jw=Jm,Tw=V([].join);Ow({target:"Array",proto:!0,forced:Pw!==Object||!jw("join",",")},{join:function(t){return Tw(kw(this),void 0===t?",":t)}});var Iw,_w="undefined"!=typeof Symbol&&Symbol,Nw=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0},Cw={foo:{}},Uw=Object,Lw=Array.prototype.slice,Fw=Object.prototype.toString,Bw=function(t){var e=this;if("function"!=typeof e||"[object Function]"!==Fw.call(e))throw new TypeError("Function.prototype.bind called on incompatible "+e);for(var r,n=Lw.call(arguments,1),o=Math.max(0,e.length-n.length),i=[],a=0;a<o;a++)i.push("$"+a);if(r=Function("binder","return function ("+i.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof r){var o=e.apply(this,n.concat(Lw.call(arguments)));return Object(o)===o?o:this}return e.apply(t,n.concat(Lw.call(arguments)))})),e.prototype){var s=function(){};s.prototype=e.prototype,r.prototype=new s,s.prototype=null}return r},Dw=Function.prototype.bind||Bw,Mw=Dw.call(Function.call,Object.prototype.hasOwnProperty),qw=SyntaxError,Ww=Function,Gw=TypeError,zw=function(t){try{return Ww('"use strict"; return ('+t+").constructor;")()}catch(t){}},Hw=Object.getOwnPropertyDescriptor;if(Hw)try{Hw({},"")}catch(t){Hw=null}var $w=function(){throw new Gw},Vw=Hw?function(){try{return $w}catch(t){try{return Hw(arguments,"callee").get}catch(t){return $w}}}():$w,Yw="function"==typeof _w&&"function"==typeof Symbol&&"symbol"==typeof _w("foo")&&"symbol"==typeof Symbol("bar")&&Nw(),Kw={__proto__:Cw}.foo===Cw.foo&&!({__proto__:null}instanceof Uw),Jw=Object.getPrototypeOf||(Kw?function(t){return t.__proto__}:null),Qw={},Xw="undefined"!=typeof Uint8Array&&Jw?Jw(Uint8Array):Iw,Zw={"%AggregateError%":"undefined"==typeof AggregateError?Iw:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?Iw:ArrayBuffer,"%ArrayIteratorPrototype%":Yw&&Jw?Jw([][Symbol.iterator]()):Iw,"%AsyncFromSyncIteratorPrototype%":Iw,"%AsyncFunction%":Qw,"%AsyncGenerator%":Qw,"%AsyncGeneratorFunction%":Qw,"%AsyncIteratorPrototype%":Qw,"%Atomics%":"undefined"==typeof Atomics?Iw:Atomics,"%BigInt%":"undefined"==typeof BigInt?Iw:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?Iw:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?Iw:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?Iw:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?Iw:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?Iw:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?Iw:FinalizationRegistry,"%Function%":Ww,"%GeneratorFunction%":Qw,"%Int8Array%":"undefined"==typeof Int8Array?Iw:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?Iw:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?Iw:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Yw&&Jw?Jw(Jw([][Symbol.iterator]())):Iw,"%JSON%":"object"==typeof JSON?JSON:Iw,"%Map%":"undefined"==typeof Map?Iw:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Yw&&Jw?Jw((new Map)[Symbol.iterator]()):Iw,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?Iw:Promise,"%Proxy%":"undefined"==typeof Proxy?Iw:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?Iw:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?Iw:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Yw&&Jw?Jw((new Set)[Symbol.iterator]()):Iw,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Iw:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Yw&&Jw?Jw(""[Symbol.iterator]()):Iw,"%Symbol%":Yw?Symbol:Iw,"%SyntaxError%":qw,"%ThrowTypeError%":Vw,"%TypedArray%":Xw,"%TypeError%":Gw,"%Uint8Array%":"undefined"==typeof Uint8Array?Iw:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Iw:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?Iw:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?Iw:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?Iw:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?Iw:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?Iw:WeakSet};if(Jw)try{null.error}catch(t){var tx=Jw(Jw(t));Zw["%Error.prototype%"]=tx}var ex=function t(e){var r;if("%AsyncFunction%"===e)r=zw("async function () {}");else if("%GeneratorFunction%"===e)r=zw("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=zw("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&Jw&&(r=Jw(o.prototype))}return Zw[e]=r,r},rx={"%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"]},nx=Dw,ox=Mw,ix=nx.call(Function.call,Array.prototype.concat),ax=nx.call(Function.apply,Array.prototype.splice),sx=nx.call(Function.call,String.prototype.replace),ux=nx.call(Function.call,String.prototype.slice),cx=nx.call(Function.call,RegExp.prototype.exec),lx=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,px=/\\(\\)?/g,fx=function(t,e){var r,n=t;if(ox(rx,n)&&(n="%"+(r=rx[n])[0]+"%"),ox(Zw,n)){var o=Zw[n];if(o===Qw&&(o=ex(n)),void 0===o&&!e)throw new Gw("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new qw("intrinsic "+t+" does not exist!")},hx=function(t,e){if("string"!=typeof t||0===t.length)throw new Gw("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new Gw('"allowMissing" argument must be a boolean');if(null===cx(/^%?[^%]*%?$/,t))throw new qw("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=ux(t,0,1),r=ux(t,-1);if("%"===e&&"%"!==r)throw new qw("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new qw("invalid intrinsic syntax, expected opening `%`");var n=[];return sx(t,lx,(function(t,e,r,o){n[n.length]=r?sx(o,px,"$1"):e||t})),n}(t),n=r.length>0?r[0]:"",o=fx("%"+n+"%",e),i=o.name,a=o.value,s=!1,u=o.alias;u&&(n=u[0],ax(r,ix([0,1],u)));for(var c=1,l=!0;c<r.length;c+=1){var p=r[c],f=ux(p,0,1),h=ux(p,-1);if(('"'===f||"'"===f||"`"===f||'"'===h||"'"===h||"`"===h)&&f!==h)throw new qw("property names with quotes must have matching quotes");if("constructor"!==p&&l||(s=!0),ox(Zw,i="%"+(n+="."+p)+"%"))a=Zw[i];else if(null!=a){if(!(p in a)){if(!e)throw new Gw("base intrinsic for "+t+" exists, but the property is not available.");return}if(Hw&&c+1>=r.length){var d=Hw(a,p);a=(l=!!d)&&"get"in d&&!("originalValue"in d.get)?d.get:a[p]}else l=ox(a,p),a=a[p];l&&!s&&(Zw[i]=a)}}return a},dx={exports:{}};!function(t){var e=Dw,r=hx,n=r("%Function.prototype.apply%"),o=r("%Function.prototype.call%"),i=r("%Reflect.apply%",!0)||e.call(o,n),a=r("%Object.getOwnPropertyDescriptor%",!0),s=r("%Object.defineProperty%",!0),u=r("%Math.max%");if(s)try{s({},"a",{value:1})}catch(t){s=null}t.exports=function(t){var r=i(e,o,arguments);a&&s&&(a(r,"length").configurable&&s(r,"length",{value:1+u(0,t.length-(arguments.length-1))}));return r};var c=function(){return i(e,n,arguments)};s?s(t.exports,"apply",{value:c}):t.exports.apply=c}(dx);var yx=hx,mx=dx.exports,gx=mx(yx("String.prototype.indexOf")),vx=O(Object.freeze({__proto__:null,default:{}})),bx="function"==typeof Map&&Map.prototype,wx=Object.getOwnPropertyDescriptor&&bx?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,xx=bx&&wx&&"function"==typeof wx.get?wx.get:null,Sx=bx&&Map.prototype.forEach,Ax="function"==typeof Set&&Set.prototype,Ex=Object.getOwnPropertyDescriptor&&Ax?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Rx=Ax&&Ex&&"function"==typeof Ex.get?Ex.get:null,Ox=Ax&&Set.prototype.forEach,Px="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,kx="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,jx="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Tx=Boolean.prototype.valueOf,Ix=Object.prototype.toString,_x=Function.prototype.toString,Nx=String.prototype.match,Cx=String.prototype.slice,Ux=String.prototype.replace,Lx=String.prototype.toUpperCase,Fx=String.prototype.toLowerCase,Bx=RegExp.prototype.test,Dx=Array.prototype.concat,Mx=Array.prototype.join,qx=Array.prototype.slice,Wx=Math.floor,Gx="function"==typeof BigInt?BigInt.prototype.valueOf:null,zx=Object.getOwnPropertySymbols,Hx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,$x="function"==typeof Symbol&&"object"==typeof Symbol.iterator,Vx="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===$x||"symbol")?Symbol.toStringTag:null,Yx=Object.prototype.propertyIsEnumerable,Kx=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Jx(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||Bx.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var n=t<0?-Wx(-t):Wx(t);if(n!==t){var o=String(n),i=Cx.call(e,o.length+1);return Ux.call(o,r,"$&_")+"."+Ux.call(Ux.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ux.call(e,r,"$&_")}var Qx=vx,Xx=Qx.custom,Zx=oS(Xx)?Xx:null;function tS(t,e,r){var n="double"===(r.quoteStyle||e)?'"':"'";return n+t+n}function eS(t){return Ux.call(String(t),/"/g,"&quot;")}function rS(t){return!("[object Array]"!==sS(t)||Vx&&"object"==typeof t&&Vx in t)}function nS(t){return!("[object RegExp]"!==sS(t)||Vx&&"object"==typeof t&&Vx in t)}function oS(t){if($x)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!Hx)return!1;try{return Hx.call(t),!0}catch(t){}return!1}var iS=Object.prototype.hasOwnProperty||function(t){return t in this};function aS(t,e){return iS.call(t,e)}function sS(t){return Ix.call(t)}function uS(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function cS(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return cS(Cx.call(t,0,e.maxStringLength),e)+n}return tS(Ux.call(Ux.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lS),"single",e)}function lS(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+Lx.call(e.toString(16))}function pS(t){return"Object("+t+")"}function fS(t){return t+" { ? }"}function hS(t,e,r,n){return t+" ("+e+") {"+(n?dS(r,n):Mx.call(r,", "))+"}"}function dS(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+Mx.call(t,","+r)+"\n"+e.prev}function yS(t,e){var r=rS(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=aS(t,o)?e(t[o],t):""}var i,a="function"==typeof zx?zx(t):[];if($x){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var u in t)aS(t,u)&&(r&&String(Number(u))===u&&u<t.length||$x&&i["$"+u]instanceof Symbol||(Bx.call(/[^\w$]/,u)?n.push(e(u,t)+": "+e(t[u],t)):n.push(u+": "+e(t[u],t))));if("function"==typeof zx)for(var c=0;c<a.length;c++)Yx.call(t,a[c])&&n.push("["+e(a[c])+"]: "+e(t[a[c]],t));return n}var mS=hx,gS=function(t,e){var r=yx(t,!!e);return"function"==typeof r&&gx(t,".prototype.")>-1?mx(r):r},vS=function t(e,r,n,o){var i=r||{};if(aS(i,"quoteStyle")&&"single"!==i.quoteStyle&&"double"!==i.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(aS(i,"maxStringLength")&&("number"==typeof i.maxStringLength?i.maxStringLength<0&&i.maxStringLength!==1/0:null!==i.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=!aS(i,"customInspect")||i.customInspect;if("boolean"!=typeof a&&"symbol"!==a)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(aS(i,"indent")&&null!==i.indent&&"\t"!==i.indent&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(aS(i,"numericSeparator")&&"boolean"!=typeof i.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=i.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return cS(e,i);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var u=String(e);return s?Jx(e,u):u}if("bigint"==typeof e){var c=String(e)+"n";return s?Jx(e,c):c}var l=void 0===i.depth?5:i.depth;if(void 0===n&&(n=0),n>=l&&l>0&&"object"==typeof e)return rS(e)?"[Array]":"[Object]";var p=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=Mx.call(Array(t.indent+1)," ")}return{base:r,prev:Mx.call(Array(e+1),r)}}(i,n);if(void 0===o)o=[];else if(uS(o,e)>=0)return"[Circular]";function f(e,r,a){if(r&&(o=qx.call(o)).push(r),a){var s={depth:i.depth};return aS(i,"quoteStyle")&&(s.quoteStyle=i.quoteStyle),t(e,s,n+1,o)}return t(e,i,n+1,o)}if("function"==typeof e&&!nS(e)){var h=function(t){if(t.name)return t.name;var e=Nx.call(_x.call(t),/^function\s*([\w$]+)/);if(e)return e[1];return null}(e),d=yS(e,f);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(d.length>0?" { "+Mx.call(d,", ")+" }":"")}if(oS(e)){var y=$x?Ux.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Hx.call(e);return"object"!=typeof e||$x?y:pS(y)}if(function(t){if(!t||"object"!=typeof t)return!1;if("undefined"!=typeof HTMLElement&&t instanceof HTMLElement)return!0;return"string"==typeof t.nodeName&&"function"==typeof t.getAttribute}(e)){for(var m="<"+Fx.call(String(e.nodeName)),g=e.attributes||[],v=0;v<g.length;v++)m+=" "+g[v].name+"="+tS(eS(g[v].value),"double",i);return m+=">",e.childNodes&&e.childNodes.length&&(m+="..."),m+="</"+Fx.call(String(e.nodeName))+">"}if(rS(e)){if(0===e.length)return"[]";var b=yS(e,f);return p&&!function(t){for(var e=0;e<t.length;e++)if(uS(t[e],"\n")>=0)return!1;return!0}(b)?"["+dS(b,p)+"]":"[ "+Mx.call(b,", ")+" ]"}if(function(t){return!("[object Error]"!==sS(t)||Vx&&"object"==typeof t&&Vx in t)}(e)){var w=yS(e,f);return"cause"in Error.prototype||!("cause"in e)||Yx.call(e,"cause")?0===w.length?"["+String(e)+"]":"{ ["+String(e)+"] "+Mx.call(w,", ")+" }":"{ ["+String(e)+"] "+Mx.call(Dx.call("[cause]: "+f(e.cause),w),", ")+" }"}if("object"==typeof e&&a){if(Zx&&"function"==typeof e[Zx]&&Qx)return Qx(e,{depth:l-n});if("symbol"!==a&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!xx||!t||"object"!=typeof t)return!1;try{xx.call(t);try{Rx.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var x=[];return Sx&&Sx.call(e,(function(t,r){x.push(f(r,e,!0)+" => "+f(t,e))})),hS("Map",xx.call(e),x,p)}if(function(t){if(!Rx||!t||"object"!=typeof t)return!1;try{Rx.call(t);try{xx.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var S=[];return Ox&&Ox.call(e,(function(t){S.push(f(t,e))})),hS("Set",Rx.call(e),S,p)}if(function(t){if(!Px||!t||"object"!=typeof t)return!1;try{Px.call(t,Px);try{kx.call(t,kx)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return fS("WeakMap");if(function(t){if(!kx||!t||"object"!=typeof t)return!1;try{kx.call(t,kx);try{Px.call(t,Px)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return fS("WeakSet");if(function(t){if(!jx||!t||"object"!=typeof t)return!1;try{return jx.call(t),!0}catch(t){}return!1}(e))return fS("WeakRef");if(function(t){return!("[object Number]"!==sS(t)||Vx&&"object"==typeof t&&Vx in t)}(e))return pS(f(Number(e)));if(function(t){if(!t||"object"!=typeof t||!Gx)return!1;try{return Gx.call(t),!0}catch(t){}return!1}(e))return pS(f(Gx.call(e)));if(function(t){return!("[object Boolean]"!==sS(t)||Vx&&"object"==typeof t&&Vx in t)}(e))return pS(Tx.call(e));if(function(t){return!("[object String]"!==sS(t)||Vx&&"object"==typeof t&&Vx in t)}(e))return pS(f(String(e)));if(!function(t){return!("[object Date]"!==sS(t)||Vx&&"object"==typeof t&&Vx in t)}(e)&&!nS(e)){var A=yS(e,f),E=Kx?Kx(e)===Object.prototype:e instanceof Object||e.constructor===Object,R=e instanceof Object?"":"null prototype",O=!E&&Vx&&Object(e)===e&&Vx in e?Cx.call(sS(e),8,-1):R?"Object":"",P=(E||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(O||R?"["+Mx.call(Dx.call([],O||[],R||[]),": ")+"] ":"");return 0===A.length?P+"{}":p?P+"{"+dS(A,p)+"}":P+"{ "+Mx.call(A,", ")+" }"}return String(e)},bS=mS("%TypeError%"),wS=mS("%WeakMap%",!0),xS=mS("%Map%",!0),SS=gS("WeakMap.prototype.get",!0),AS=gS("WeakMap.prototype.set",!0),ES=gS("WeakMap.prototype.has",!0),RS=gS("Map.prototype.get",!0),OS=gS("Map.prototype.set",!0),PS=gS("Map.prototype.has",!0),kS=function(t,e){for(var r,n=t;null!==(r=n.next);n=r)if(r.key===e)return n.next=r.next,r.next=t.next,t.next=r,r},jS=String.prototype.replace,TS=/%20/g,IS="RFC3986",_S={default:IS,formatters:{RFC1738:function(t){return jS.call(t,TS,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:IS},NS=_S,CS=Object.prototype.hasOwnProperty,US=Array.isArray,LS=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),FS=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r},BS={arrayToObject:FS,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n<e.length;++n)for(var o=e[n],i=o.obj[o.prop],a=Object.keys(i),s=0;s<a.length;++s){var u=a[s],c=i[u];"object"==typeof c&&null!==c&&-1===r.indexOf(c)&&(e.push({obj:i,prop:u}),r.push(c))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(US(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);e.obj[e.prop]=n}}}(e),t},decode:function(t,e,r){var n=t.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(t){return n}},encode:function(t,e,r,n,o){if(0===t.length)return t;var i=t;if("symbol"==typeof t?i=Symbol.prototype.toString.call(t):"string"!=typeof t&&(i=String(t)),"iso-8859-1"===r)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var a="",s=0;s<i.length;++s){var u=i.charCodeAt(s);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||o===NS.RFC1738&&(40===u||41===u)?a+=i.charAt(s):u<128?a+=LS[u]:u<2048?a+=LS[192|u>>6]+LS[128|63&u]:u<55296||u>=57344?a+=LS[224|u>>12]+LS[128|u>>6&63]+LS[128|63&u]:(s+=1,u=65536+((1023&u)<<10|1023&i.charCodeAt(s)),a+=LS[240|u>>18]+LS[128|u>>12&63]+LS[128|u>>6&63]+LS[128|63&u])}return a},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(US(t)){for(var r=[],n=0;n<t.length;n+=1)r.push(e(t[n]));return r}return e(t)},merge:function t(e,r,n){if(!r)return e;if("object"!=typeof r){if(US(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(n&&(n.plainObjects||n.allowPrototypes)||!CS.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var o=e;return US(e)&&!US(r)&&(o=FS(e,n)),US(e)&&US(r)?(r.forEach((function(r,o){if(CS.call(e,o)){var i=e[o];i&&"object"==typeof i&&r&&"object"==typeof r?e[o]=t(i,r,n):e.push(r)}else e[o]=r})),e):Object.keys(r).reduce((function(e,o){var i=r[o];return CS.call(e,o)?e[o]=t(e[o],i,n):e[o]=i,e}),o)}},DS=function(){var t,e,r,n={assert:function(t){if(!n.has(t))throw new bS("Side channel does not contain "+vS(t))},get:function(n){if(wS&&n&&("object"==typeof n||"function"==typeof n)){if(t)return SS(t,n)}else if(xS){if(e)return RS(e,n)}else if(r)return function(t,e){var r=kS(t,e);return r&&r.value}(r,n)},has:function(n){if(wS&&n&&("object"==typeof n||"function"==typeof n)){if(t)return ES(t,n)}else if(xS){if(e)return PS(e,n)}else if(r)return function(t,e){return!!kS(t,e)}(r,n);return!1},set:function(n,o){wS&&n&&("object"==typeof n||"function"==typeof n)?(t||(t=new wS),AS(t,n,o)):xS?(e||(e=new xS),OS(e,n,o)):(r||(r={key:{},next:null}),function(t,e,r){var n=kS(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}}(r,n,o))}};return n},MS=BS,qS=_S,WS=Object.prototype.hasOwnProperty,GS={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},zS=Array.isArray,HS=Array.prototype.push,$S=function(t,e){HS.apply(t,zS(e)?e:[e])},VS=Date.prototype.toISOString,YS=qS.default,KS={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:MS.encode,encodeValuesOnly:!1,format:YS,formatter:qS.formatters[YS],indices:!1,serializeDate:function(t){return VS.call(t)},skipNulls:!1,strictNullHandling:!1},JS={},QS=function t(e,r,n,o,i,a,s,u,c,l,p,f,h,d,y,m){for(var g,v=e,b=m,w=0,x=!1;void 0!==(b=b.get(JS))&&!x;){var S=b.get(e);if(w+=1,void 0!==S){if(S===w)throw new RangeError("Cyclic object value");x=!0}void 0===b.get(JS)&&(w=0)}if("function"==typeof u?v=u(r,v):v instanceof Date?v=p(v):"comma"===n&&zS(v)&&(v=MS.maybeMap(v,(function(t){return t instanceof Date?p(t):t}))),null===v){if(i)return s&&!d?s(r,KS.encoder,y,"key",f):r;v=""}if("string"==typeof(g=v)||"number"==typeof g||"boolean"==typeof g||"symbol"==typeof g||"bigint"==typeof g||MS.isBuffer(v))return s?[h(d?r:s(r,KS.encoder,y,"key",f))+"="+h(s(v,KS.encoder,y,"value",f))]:[h(r)+"="+h(String(v))];var A,E=[];if(void 0===v)return E;if("comma"===n&&zS(v))d&&s&&(v=MS.maybeMap(v,s)),A=[{value:v.length>0?v.join(",")||null:void 0}];else if(zS(u))A=u;else{var R=Object.keys(v);A=c?R.sort(c):R}for(var O=o&&zS(v)&&1===v.length?r+"[]":r,P=0;P<A.length;++P){var k=A[P],j="object"==typeof k&&void 0!==k.value?k.value:v[k];if(!a||null!==j){var T=zS(v)?"function"==typeof n?n(O,k):O:O+(l?"."+k:"["+k+"]");m.set(e,w);var I=DS();I.set(JS,m),$S(E,t(j,T,n,o,i,a,"comma"===n&&d&&zS(v)?null:s,u,c,l,p,f,h,d,y,I))}}return E},XS=BS,ZS=Object.prototype.hasOwnProperty,tA=Array.isArray,eA={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:XS.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},rA=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},nA=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},oA=function(t,e,r,n){if(t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(o),s=a?o.slice(0,a.index):o,u=[];if(s){if(!r.plainObjects&&ZS.call(Object.prototype,s)&&!r.allowPrototypes)return;u.push(s)}for(var c=0;r.depth>0&&null!==(a=i.exec(o))&&c<r.depth;){if(c+=1,!r.plainObjects&&ZS.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(a[1])}return a&&u.push("["+o.slice(a.index)+"]"),function(t,e,r,n){for(var o=n?e:nA(e,r),i=t.length-1;i>=0;--i){var a,s=t[i];if("[]"===s&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=parseInt(u,10);r.parseArrays||""!==u?!isNaN(c)&&s!==u&&String(c)===u&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(a=[])[c]=o:"__proto__"!==u&&(a[u]=o):a={0:o}}o=a}return o}(u,e,r,n)}},iA=function(t,e){var r,n=t,o=function(t){if(!t)return KS;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||KS.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=qS.default;if(void 0!==t.format){if(!WS.call(qS.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n=qS.formatters[r],o=KS.filter;return("function"==typeof t.filter||zS(t.filter))&&(o=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:KS.addQueryPrefix,allowDots:void 0===t.allowDots?KS.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:KS.charsetSentinel,delimiter:void 0===t.delimiter?KS.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:KS.encode,encoder:"function"==typeof t.encoder?t.encoder:KS.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:KS.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:KS.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:KS.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:KS.strictNullHandling}}(e);"function"==typeof o.filter?n=(0,o.filter)("",n):zS(o.filter)&&(r=o.filter);var i,a=[];if("object"!=typeof n||null===n)return"";i=e&&e.arrayFormat in GS?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var s=GS[i];if(e&&"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u="comma"===s&&e&&e.commaRoundTrip;r||(r=Object.keys(n)),o.sort&&r.sort(o.sort);for(var c=DS(),l=0;l<r.length;++l){var p=r[l];o.skipNulls&&null===n[p]||$S(a,QS(n[p],p,s,u,o.strictNullHandling,o.skipNulls,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,c))}var f=a.join(o.delimiter),h=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?h+="utf8=%26%2310003%3B&":h+="utf8=%E2%9C%93&"),f.length>0?h+f:""},aA=function(t,e){var r=function(t){if(!t)return eA;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?eA.charset:t.charset;return{allowDots:void 0===t.allowDots?eA.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:eA.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:eA.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:eA.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:eA.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:eA.comma,decoder:"function"==typeof t.decoder?t.decoder:eA.decoder,delimiter:"string"==typeof t.delimiter||XS.isRegExp(t.delimiter)?t.delimiter:eA.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:eA.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:eA.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:eA.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:eA.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:eA.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var n="string"==typeof t?function(t,e){var r,n={__proto__:null},o=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,i=e.parameterLimit===1/0?void 0:e.parameterLimit,a=o.split(e.delimiter,i),s=-1,u=e.charset;if(e.charsetSentinel)for(r=0;r<a.length;++r)0===a[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===a[r]?u="utf-8":"utf8=%26%2310003%3B"===a[r]&&(u="iso-8859-1"),s=r,r=a.length);for(r=0;r<a.length;++r)if(r!==s){var c,l,p=a[r],f=p.indexOf("]="),h=-1===f?p.indexOf("="):f+1;-1===h?(c=e.decoder(p,eA.decoder,u,"key"),l=e.strictNullHandling?null:""):(c=e.decoder(p.slice(0,h),eA.decoder,u,"key"),l=XS.maybeMap(nA(p.slice(h+1),e),(function(t){return e.decoder(t,eA.decoder,u,"value")}))),l&&e.interpretNumericEntities&&"iso-8859-1"===u&&(l=rA(l)),p.indexOf("[]=")>-1&&(l=tA(l)?[l]:l),ZS.call(n,c)?n[c]=XS.combine(n[c],l):n[c]=l}return n}(t,r):t,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),a=0;a<i.length;++a){var s=i[a],u=oA(s,n[s],r,"string"==typeof t);o=XS.merge(o,u,r)}return!0===r.allowSparse?o:XS.compact(o)},sA=R({formats:_S,parse:aA,stringify:iA});const uA="function"==typeof btoa,cA="function"==typeof Buffer,lA=("function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder?new TextEncoder:void 0),pA=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),fA=((t=>{let e={};t.forEach(((t,r)=>e[t]=r))})(pA),String.fromCharCode.bind(String)),hA=("function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array),t=>t.replace(/=/g,"").replace(/[+\/]/g,(t=>"+"==t?"-":"_"))),dA=t=>{let e,r,n,o,i="";const a=t.length%3;for(let a=0;a<t.length;){if((r=t.charCodeAt(a++))>255||(n=t.charCodeAt(a++))>255||(o=t.charCodeAt(a++))>255)throw new TypeError("invalid character found");e=r<<16|n<<8|o,i+=pA[e>>18&63]+pA[e>>12&63]+pA[e>>6&63]+pA[63&e]}return a?i.slice(0,a-3)+"===".substring(a):i},yA=uA?t=>btoa(t):cA?t=>Buffer.from(t,"binary").toString("base64"):dA,mA=cA?t=>Buffer.from(t).toString("base64"):t=>{let e=[];for(let r=0,n=t.length;r<n;r+=4096)e.push(fA.apply(null,t.subarray(r,r+4096)));return yA(e.join(""))},gA=t=>{if(t.length<2)return(e=t.charCodeAt(0))<128?t:e<2048?fA(192|e>>>6)+fA(128|63&e):fA(224|e>>>12&15)+fA(128|e>>>6&63)+fA(128|63&e);var e=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320);return fA(240|e>>>18&7)+fA(128|e>>>12&63)+fA(128|e>>>6&63)+fA(128|63&e)},vA=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,bA=t=>t.replace(vA,gA),wA=cA?t=>Buffer.from(t,"utf8").toString("base64"):lA?t=>mA(lA.encode(t)):t=>yA(bA(t)),xA=function(t){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?hA(wA(t)):wA(t)},SA=xA;var AA,EA=function(){function t(e){if(u(this,t),this.baseUrl=e.baseUrl,this.auth=e.auth,this.headers=this.buildHeaders({basicAuth:e.basicAuth,userAgent:e.userAgent}),"httpsAgent"in e){if("clientCertAuth"in e)throw new Error("Cannot specify clientCertAuth along with httpsAgent.");this.httpsAgent=e.httpsAgent}else"clientCertAuth"in e&&(this.clientCertAuth=e.clientCertAuth);this.proxy=e.proxy,this.requestToken=null,this.socketTimeout=e.socketTimeout}var r,i,a;return l(t,[{key:"build",value:(a=s(o().mark((function t(r,i,a,s){var u,c,l,p;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:u=n(n(n({method:r,headers:this.headers,url:"".concat(this.baseUrl).concat(i)},s||{}),e.buildPlatformDependentConfig({httpsAgent:this.httpsAgent,clientCertAuth:this.clientCertAuth,socketTimeout:this.socketTimeout})),{},{proxy:this.buildProxyConfig(this.proxy)}),t.t0=r,t.next="get"===t.t0?4:"post"===t.t0?16:"put"===t.t0?29:"delete"===t.t0?37:44;break;case 4:if(!((c=this.buildRequestUrl(i,a)).length>4096)){t.next=15;break}return t.t1=n,t.t2=n({},u),t.t3={},t.t4=n(n({},this.headers),{},{"X-HTTP-Method-Override":"GET"}),t.next=12,this.buildData(a);case 12:return t.t5=t.sent,t.t6={method:"post",headers:t.t4,data:t.t5},t.abrupt("return",(0,t.t1)(t.t2,t.t3,t.t6));case 15:return t.abrupt("return",n(n({},u),{},{url:c}));case 16:if(!(a instanceof zg)){t.next=21;break}return t.next=19,this.buildData(a);case 19:return l=t.sent,t.abrupt("return",n(n({},u),{},{headers:"function"==typeof l.getHeaders?n(n({},this.headers),l.getHeaders()):this.headers,data:l}));case 21:return t.t7=n,t.t8=n({},u),t.t9={},t.next=26,this.buildData(a);case 26:return t.t10=t.sent,t.t11={data:t.t10},t.abrupt("return",(0,t.t7)(t.t8,t.t9,t.t11));case 29:return t.t12=n,t.t13=n({},u),t.t14={},t.next=34,this.buildData(a);case 34:return t.t15=t.sent,t.t16={data:t.t15},t.abrupt("return",(0,t.t12)(t.t13,t.t14,t.t16));case 37:return t.t17=this,t.t18=i,t.next=41,this.buildData(a);case 41:return t.t19=t.sent,p=t.t17.buildRequestUrl.call(t.t17,t.t18,t.t19),t.abrupt("return",n(n({},u),{},{url:p}));case 44:throw new Error("".concat(r," method is not supported"));case 45:case"end":return t.stop()}}),t,this)}))),function(t,e,r,n){return a.apply(this,arguments)})},{key:"buildProxyConfig",value:function(t){var e;if(void 0!==t){if(!1===t)return!1;var r=t;return!r.auth||0!==r.auth.username.length&&0!==r.auth.password.length||(r.auth=void 0),r.protocol=null!==(e=r.protocol)&&void 0!==e?e:"http",r}}},{key:"buildRequestUrl",value:function(t,e){return"".concat(this.baseUrl).concat(t,"?").concat(sA.stringify(e))}},{key:"buildData",value:(i=s(o().mark((function t(e){var r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("session"!==this.auth.type){t.next=8;break}return t.next=3,this.getRequestToken();case 3:if(r=t.sent,!(e instanceof zg)){t.next=7;break}return e.append("__REQUEST_TOKEN__",r),t.abrupt("return",e);case 7:return t.abrupt("return",n({__REQUEST_TOKEN__:r},e));case 8:return t.abrupt("return",e);case 9:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"buildHeaders",value:function(t){var r=t.basicAuth,o=t.userAgent,i=r?{Authorization:"Basic ".concat(SA("".concat(r.username,":").concat(r.password)))}:{},a=n(n({},e.buildHeaders({userAgent:o})),i);switch(this.auth.type){case"password":return n(n({},a),{},{"X-Cybozu-Authorization":SA("".concat(this.auth.username,":").concat(this.auth.password))});case"apiToken":var s=this.auth.apiToken;return Array.isArray(s)?n(n({},a),{},{"X-Cybozu-API-Token":s.join(",")}):n(n({},a),{},{"X-Cybozu-API-Token":s});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=s(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==this.requestToken){t.next=4;break}return t.next=3,e.getRequestToken();case 3:this.requestToken=t.sent;case 4:return t.abrupt("return",this.requestToken);case 5:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})}]),t}(),RA=function(t){f(r,t);var e=w(r);function r(t){var n;return u(this,r),(n=e.call(this,t)).name="KintoneAbortSearchError",n.message=t,Object.setPrototypeOf(b(n),r.prototype),n}return l(r)}(g(Error)),OA=function(t){f(r,t);var e=w(r);function r(t){var n;u(this,r);var o=r.buildErrorResponseDateWithIndex(t),i=o.data,a=o.bulkRequestIndex;return(n=e.call(this,i.message)).name="KintoneRestAPIError",n.id=i.id,n.code=i.code,n.errors=i.errors,n.status=t.status,n.bulkRequestIndex=a,n.headers=t.headers,n.message="[".concat(t.status,"] [").concat(n.code,"] ").concat(n.message," (").concat(n.id,")"),Error.captureStackTrace&&Error.captureStackTrace(b(n),r),Object.setPrototypeOf(b(n),r.prototype),n}return l(r,null,[{key:"findErrorResponseDataWithIndex",value:function(t){for(var e=0;e<t.length;e++){if(0!==Object.keys(t[e]).length)return{data:t[e],bulkRequestIndex:e}}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(t){return"results"in t.data?r.findErrorResponseDataWithIndex(t.data.results):{data:t.data}}}]),r}(g(Error)),PA=["data"],kA=function(){function t(e){var r=e.enableAbortSearchError;u(this,t),this.enableAbortSearchError=r}return l(t,[{key:"handle",value:function(t){var e=this;return t.then((function(t){return e.handleSuccessResponse(t)}),(function(t){return e.handleErrorResponse(t)}))}},{key:"handleSuccessResponse",value:function(t){if(this.enableAbortSearchError&&/Filter aborted because of too many search results/.test(t.headers["x-cybozu-warning"]))throw new RA(t.headers["x-cybozu-warning"]);return t.data}},{key:"handleErrorResponse",value:function(t){if(!t.response){if(/mac verify failure/.test(t.toString()))throw new Error("invalid clientCertAuth setting");throw t}var e=t.response,r=e.data,o=v(e,PA);if("string"==typeof r)throw new Error("".concat(o.status,": ").concat(o.statusText));throw new OA(n({data:r},o))}}]),t}(),jA=function(){function t(){var r,o,i,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u(this,t),TA(a),this.baseUrl=e.buildBaseUrl(a.baseUrl).replace(/\/+$/,"");var s=function(t){if("username"in t)return n({type:"password"},t);if("apiToken"in t)return n({type:"apiToken"},t);if("oAuthToken"in t)return n({type:"oAuthToken"},t);try{return e.getDefaultAuth()}catch(t){if(t instanceof Vi)throw new Error("session authentication is not supported in ".concat(t.platform," environment."));throw t}}(null!==(r=a.auth)&&void 0!==r?r:{}),c=new EA(n(n({},a),{},{baseUrl:this.baseUrl,auth:s})),l=new kA({enableAbortSearchError:null!==(o=null===(i=a.featureFlags)||void 0===i?void 0:i.enableAbortSearchError)&&void 0!==o&&o}),p=new Rw({responseHandler:l,requestConfigBuilder:c}),f=a.guestSpaceId;this.bulkRequest_=new $y(p,f),this.record=new Gg(p,this.bulkRequest_,f),this.app=new sm(p,f),this.file=new Hg(p,f)}return l(t,[{key:"getBaseUrl",value:function(){return this.baseUrl}},{key:"bulkRequest",value:function(t){return this.bulkRequest_.send(t)}}],[{key:"version",get:function(){return e.getVersion()}}]),t}(),TA=function(t){IA(t.baseUrl),_A(t.guestSpaceId),NA(t.socketTimeout)},IA=function(t){if(void 0!==t){var e=new URL(t);if("localhost"!==e.hostname&&"https:"!==e.protocol)throw new Error('The protocol of baseUrl must be "https".')}},_A=function(t){if(""===t||null===t)throw new Error("invalid guestSpaceId: got [".concat(t,"]"))},NA=function(t){if(void 0!==t){var e=parseFloat(t.toString());if(isNaN(e)||e<0)throw new Error("Invalid socketTimeout. Must be a positive number.")}};(AA=Xi).readFileFromPath&&(e.readFileFromPath=AA.readFileFromPath),AA.getRequestToken&&(e.getRequestToken=AA.getRequestToken),AA.getDefaultAuth&&(e.getDefaultAuth=AA.getDefaultAuth),AA.buildPlatformDependentConfig&&(e.buildPlatformDependentConfig=AA.buildPlatformDependentConfig),AA.buildHeaders&&(e.buildHeaders=AA.buildHeaders),AA.buildFormDataValue&&(e.buildFormDataValue=AA.buildFormDataValue),AA.buildBaseUrl&&(e.buildBaseUrl=AA.buildBaseUrl),AA.getVersion&&(e.getVersion=AA.getVersion),t.KintoneAbortSearchError=RA,t.KintoneAllRecordsError=Bg,t.KintoneRestAPIClient=jA,t.KintoneRestAPIError=OA}));