@bdky/aaas-pilot-kit 1.0.3 → 1.0.5-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/http.cjs.js +1 -1
- package/dist/http.esm.js +1 -1
- package/dist/http.umd.js +1 -1
- package/dist/index.cjs.js +28 -21
- package/dist/index.esm.js +27 -20
- package/dist/index.umd.js +28 -21
- package/dist/ky-aaas-pilot-kit.umd.js +28 -21
- package/dist/libs/aaas-pilot-kit/src/index.d.ts +2 -0
- package/dist/libs/aaas-pilot-kit/src/lib/controller.d.ts +40 -2
- package/dist/libs/aaas-pilot-kit/src/lib/error/codes.d.ts +6 -0
- package/dist/libs/aaas-pilot-kit/src/lib/error/services/AsrError.d.ts +18 -0
- package/dist/libs/aaas-pilot-kit/src/lib/service/agent/agentResponse.d.ts +174 -0
- package/dist/libs/aaas-pilot-kit/src/lib/service/agent/aiobAgentService.d.ts +1 -1
- package/dist/libs/aaas-pilot-kit/src/lib/service/agent/baseAgentService.d.ts +20 -2
- package/dist/libs/aaas-pilot-kit/src/lib/service/agent/cspAgentService.d.ts +1 -1
- package/dist/libs/aaas-pilot-kit/src/lib/service/digital-human/BaseDigitalHumanService.d.ts +16 -0
- package/dist/libs/aaas-pilot-kit/src/lib/service/digital-human/CloudDigitalHumanService.d.ts +12 -0
- package/dist/libs/aaas-pilot-kit/src/lib/service/digital-human/CloudNativeDigitalHumanService.d.ts +134 -0
- package/dist/libs/aaas-pilot-kit/src/lib/service/digital-human/PictureClientDigitalHumanService.d.ts +18 -0
- package/dist/libs/aaas-pilot-kit/src/lib/service/rtc-asr/asr/baseAsrService.d.ts +38 -3
- package/dist/libs/aaas-pilot-kit/src/lib/service/rtc-asr/asr/brtcAsrService.d.ts +2 -2
- package/dist/libs/aaas-pilot-kit/src/lib/utils/AudioDeviceDetector.d.ts +138 -0
- package/dist/libs/aaas-pilot-kit/src/lib/utils/agentResponseHelper.d.ts +42 -0
- package/dist/libs/aaas-pilot-kit/src/lib/utils/language-mapper.d.ts +70 -0
- package/dist/libs/aaas-pilot-kit/src/types/config.d.ts +175 -21
- package/package.json +7 -4
package/dist/http.cjs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see http.cjs.js.LICENSE.txt */
|
|
2
|
-
"use strict";var __webpack_modules__={"../../node_modules/core-js/internals/a-callable.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/is-callable.js"),r=t("../../node_modules/core-js/internals/try-to-string.js"),s=TypeError;e.exports=function(e){if(n(e))return e;throw new s(r(e)+" is not a function")}},"../../node_modules/core-js/internals/a-possible-prototype.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/is-possible-prototype.js"),r=String,s=TypeError;e.exports=function(e){if(n(e))return e;throw new s("Can't set "+r(e)+" as a prototype")}},"../../node_modules/core-js/internals/add-to-unscopables.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/well-known-symbol.js"),r=t("../../node_modules/core-js/internals/object-create.js"),s=t("../../node_modules/core-js/internals/object-define-property.js").f,i=n("unscopables"),a=Array.prototype;void 0===a[i]&&s(a,i,{configurable:!0,value:r(null)}),e.exports=function(e){a[i][e]=!0}},"../../node_modules/core-js/internals/an-object.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/is-object.js"),r=String,s=TypeError;e.exports=function(e){if(n(e))return e;throw new s(r(e)+" is not an object")}},"../../node_modules/core-js/internals/array-buffer-basic-detection.js":function(e){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},"../../node_modules/core-js/internals/array-buffer-view-core.js":function(e,o,t){var n,r,s,i=t("../../node_modules/core-js/internals/array-buffer-basic-detection.js"),a=t("../../node_modules/core-js/internals/descriptors.js"),l=t("../../node_modules/core-js/internals/global-this.js"),u=t("../../node_modules/core-js/internals/is-callable.js"),c=t("../../node_modules/core-js/internals/is-object.js"),d=t("../../node_modules/core-js/internals/has-own-property.js"),j=t("../../node_modules/core-js/internals/classof.js"),f=t("../../node_modules/core-js/internals/try-to-string.js"),p=t("../../node_modules/core-js/internals/create-non-enumerable-property.js"),_=t("../../node_modules/core-js/internals/define-built-in.js"),m=t("../../node_modules/core-js/internals/define-built-in-accessor.js"),y=t("../../node_modules/core-js/internals/object-is-prototype-of.js"),h=t("../../node_modules/core-js/internals/object-get-prototype-of.js"),b=t("../../node_modules/core-js/internals/object-set-prototype-of.js"),g=t("../../node_modules/core-js/internals/well-known-symbol.js"),v=t("../../node_modules/core-js/internals/uid.js"),w=t("../../node_modules/core-js/internals/internal-state.js"),x=w.enforce,T=w.get,k=l.Int8Array,R=k&&k.prototype,O=l.Uint8ClampedArray,E=O&&O.prototype,S=k&&h(k),A=R&&h(R),P=Object.prototype,q=l.TypeError,C=g("toStringTag"),I=v("TYPED_ARRAY_TAG"),U="TypedArrayConstructor",D=i&&!!b&&"Opera"!==j(l.opera),F=!1,L={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},N={BigInt64Array:8,BigUint64Array:8},M=function(e){var o=h(e);if(c(o)){var t=T(o);return t&&d(t,U)?t[U]:M(o)}},H=function(e){if(!c(e))return!1;var o=j(e);return d(L,o)||d(N,o)};for(n in L)(s=(r=l[n])&&r.prototype)?x(s)[U]=r:D=!1;for(n in N)(s=(r=l[n])&&r.prototype)&&(x(s)[U]=r);if((!D||!u(S)||S===Function.prototype)&&(S=function(){throw new q("Incorrect invocation")},D))for(n in L)l[n]&&b(l[n],S);if((!D||!A||A===P)&&(A=S.prototype,D))for(n in L)l[n]&&b(l[n].prototype,A);if(D&&h(E)!==A&&b(E,A),a&&!d(A,C))for(n in F=!0,m(A,C,{configurable:!0,get:function(){return c(this)?this[I]:void 0}}),L)l[n]&&p(l[n],I,n);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:D,TYPED_ARRAY_TAG:F&&I,aTypedArray:function(e){if(H(e))return e;throw new q("Target is not a typed array")},aTypedArrayConstructor:function(e){if(u(e)&&(!b||y(S,e)))return e;throw new q(f(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,o,t,n){if(a){if(t)for(var r in L){var s=l[r];if(s&&d(s.prototype,e))try{delete s.prototype[e]}catch(t){try{s.prototype[e]=o}catch(e){}}}(!A[e]||t)&&_(A,e,t?o:D&&R[e]||o,n)}},exportTypedArrayStaticMethod:function(e,o,t){var n,r;if(a){if(b){if(t){for(n in L)if((r=l[n])&&d(r,e))try{delete r[e]}catch(e){}}if(S[e]&&!t)return;try{return _(S,e,t?o:D&&S[e]||o)}catch(e){}}for(n in L)(r=l[n])&&(!r[e]||t)&&_(r,e,o)}},getTypedArrayConstructor:M,isView:function(e){if(!c(e))return!1;var o=j(e);return"DataView"===o||d(L,o)||d(N,o)},isTypedArray:H,TypedArray:S,TypedArrayPrototype:A}},"../../node_modules/core-js/internals/array-includes.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/to-indexed-object.js"),r=t("../../node_modules/core-js/internals/to-absolute-index.js"),s=t("../../node_modules/core-js/internals/length-of-array-like.js"),i=function(e){return function(o,t,i){var a,l=n(o),u=s(l);if(0===u)return!e&&-1;var c=r(i,u);if(e&&t!=t){for(;u>c;)if((a=l[c++])!=a)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===t)return e||c||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},"../../node_modules/core-js/internals/classof-raw.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/function-uncurry-this.js"),r=n({}.toString),s=n("".slice);e.exports=function(e){return s(r(e),8,-1)}},"../../node_modules/core-js/internals/classof.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/to-string-tag-support.js"),r=t("../../node_modules/core-js/internals/is-callable.js"),s=t("../../node_modules/core-js/internals/classof-raw.js"),i=t("../../node_modules/core-js/internals/well-known-symbol.js")("toStringTag"),a=Object,l="Arguments"===s(function(){return arguments}()),u=function(e,o){try{return e[o]}catch(e){}};e.exports=n?s:function(e){var o,t,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=u(o=a(e),i))?t:l?s(o):"Object"===(n=s(o))&&r(o.callee)?"Arguments":n}},"../../node_modules/core-js/internals/copy-constructor-properties.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/has-own-property.js"),r=t("../../node_modules/core-js/internals/own-keys.js"),s=t("../../node_modules/core-js/internals/object-get-own-property-descriptor.js"),i=t("../../node_modules/core-js/internals/object-define-property.js");e.exports=function(e,o,t){for(var a=r(o),l=i.f,u=s.f,c=0;c<a.length;c++){var d=a[c];n(e,d)||t&&n(t,d)||l(e,d,u(o,d))}}},"../../node_modules/core-js/internals/correct-prototype-getter.js":function(e,o,t){e.exports=!t("../../node_modules/core-js/internals/fails.js")(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},"../../node_modules/core-js/internals/create-non-enumerable-property.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/descriptors.js"),r=t("../../node_modules/core-js/internals/object-define-property.js"),s=t("../../node_modules/core-js/internals/create-property-descriptor.js");e.exports=n?function(e,o,t){return r.f(e,o,s(1,t))}:function(e,o,t){return e[o]=t,e}},"../../node_modules/core-js/internals/create-property-descriptor.js":function(e){e.exports=function(e,o){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:o}}},"../../node_modules/core-js/internals/define-built-in-accessor.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/make-built-in.js"),r=t("../../node_modules/core-js/internals/object-define-property.js");e.exports=function(e,o,t){return t.get&&n(t.get,o,{getter:!0}),t.set&&n(t.set,o,{setter:!0}),r.f(e,o,t)}},"../../node_modules/core-js/internals/define-built-in.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/is-callable.js"),r=t("../../node_modules/core-js/internals/object-define-property.js"),s=t("../../node_modules/core-js/internals/make-built-in.js"),i=t("../../node_modules/core-js/internals/define-global-property.js");e.exports=function(e,o,t,a){a||(a={});var l=a.enumerable,u=void 0!==a.name?a.name:o;if(n(t)&&s(t,u,a),a.global)l?e[o]=t:i(o,t);else{try{a.unsafe?e[o]&&(l=!0):delete e[o]}catch(e){}l?e[o]=t:r.f(e,o,{value:t,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},"../../node_modules/core-js/internals/define-global-property.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/global-this.js"),r=Object.defineProperty;e.exports=function(e,o){try{r(n,e,{value:o,configurable:!0,writable:!0})}catch(t){n[e]=o}return o}},"../../node_modules/core-js/internals/descriptors.js":function(e,o,t){e.exports=!t("../../node_modules/core-js/internals/fails.js")(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},"../../node_modules/core-js/internals/document-create-element.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/global-this.js"),r=t("../../node_modules/core-js/internals/is-object.js"),s=n.document,i=r(s)&&r(s.createElement);e.exports=function(e){return i?s.createElement(e):{}}},"../../node_modules/core-js/internals/enum-bug-keys.js":function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"../../node_modules/core-js/internals/environment-user-agent.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/global-this.js").navigator,r=n&&n.userAgent;e.exports=r?String(r):""},"../../node_modules/core-js/internals/environment-v8-version.js":function(e,o,t){var n,r,s=t("../../node_modules/core-js/internals/global-this.js"),i=t("../../node_modules/core-js/internals/environment-user-agent.js"),a=s.process,l=s.Deno,u=a&&a.versions||l&&l.version,c=u&&u.v8;c&&(r=(n=c.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!r&&i&&(!(n=i.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=i.match(/Chrome\/(\d+)/))&&(r=+n[1]),e.exports=r},"../../node_modules/core-js/internals/export.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/global-this.js"),r=t("../../node_modules/core-js/internals/object-get-own-property-descriptor.js").f,s=t("../../node_modules/core-js/internals/create-non-enumerable-property.js"),i=t("../../node_modules/core-js/internals/define-built-in.js"),a=t("../../node_modules/core-js/internals/define-global-property.js"),l=t("../../node_modules/core-js/internals/copy-constructor-properties.js"),u=t("../../node_modules/core-js/internals/is-forced.js");e.exports=function(e,o){var t,c,d,j,f,p=e.target,_=e.global,m=e.stat;if(t=_?n:m?n[p]||a(p,{}):n[p]&&n[p].prototype)for(c in o){if(j=o[c],d=e.dontCallGetSet?(f=r(t,c))&&f.value:t[c],!u(_?c:p+(m?".":"#")+c,e.forced)&&void 0!==d){if(typeof j==typeof d)continue;l(j,d)}(e.sham||d&&d.sham)&&s(j,"sham",!0),i(t,c,j,e)}}},"../../node_modules/core-js/internals/fails.js":function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"../../node_modules/core-js/internals/function-bind-native.js":function(e,o,t){e.exports=!t("../../node_modules/core-js/internals/fails.js")(function(){var e=(function(){}).bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},"../../node_modules/core-js/internals/function-call.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/function-bind-native.js"),r=Function.prototype.call;e.exports=n?r.bind(r):function(){return r.apply(r,arguments)}},"../../node_modules/core-js/internals/function-name.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/descriptors.js"),r=t("../../node_modules/core-js/internals/has-own-property.js"),s=Function.prototype,i=n&&Object.getOwnPropertyDescriptor,a=r(s,"name"),l=a&&(!n||n&&i(s,"name").configurable);e.exports={EXISTS:a,PROPER:a&&"something"===(function(){}).name,CONFIGURABLE:l}},"../../node_modules/core-js/internals/function-uncurry-this-accessor.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/function-uncurry-this.js"),r=t("../../node_modules/core-js/internals/a-callable.js");e.exports=function(e,o,t){try{return n(r(Object.getOwnPropertyDescriptor(e,o)[t]))}catch(e){}}},"../../node_modules/core-js/internals/function-uncurry-this.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/function-bind-native.js"),r=Function.prototype,s=r.call,i=n&&r.bind.bind(s,s);e.exports=n?i:function(e){return function(){return s.apply(e,arguments)}}},"../../node_modules/core-js/internals/get-built-in.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/global-this.js"),r=t("../../node_modules/core-js/internals/is-callable.js");e.exports=function(e,o){var t;return arguments.length<2?r(t=n[e])?t:void 0:n[e]&&n[e][o]}},"../../node_modules/core-js/internals/get-method.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/a-callable.js"),r=t("../../node_modules/core-js/internals/is-null-or-undefined.js");e.exports=function(e,o){var t=e[o];return r(t)?void 0:n(t)}},"../../node_modules/core-js/internals/global-this.js":function(e,o,t){var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t.g&&t.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},"../../node_modules/core-js/internals/has-own-property.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/function-uncurry-this.js"),r=t("../../node_modules/core-js/internals/to-object.js"),s=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,o){return s(r(e),o)}},"../../node_modules/core-js/internals/hidden-keys.js":function(e){e.exports={}},"../../node_modules/core-js/internals/html.js":function(e,o,t){e.exports=t("../../node_modules/core-js/internals/get-built-in.js")("document","documentElement")},"../../node_modules/core-js/internals/ie8-dom-define.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/descriptors.js"),r=t("../../node_modules/core-js/internals/fails.js"),s=t("../../node_modules/core-js/internals/document-create-element.js");e.exports=!n&&!r(function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a})},"../../node_modules/core-js/internals/indexed-object.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/function-uncurry-this.js"),r=t("../../node_modules/core-js/internals/fails.js"),s=t("../../node_modules/core-js/internals/classof-raw.js"),i=Object,a=n("".split);e.exports=r(function(){return!i("z").propertyIsEnumerable(0)})?function(e){return"String"===s(e)?a(e,""):i(e)}:i},"../../node_modules/core-js/internals/inspect-source.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/function-uncurry-this.js"),r=t("../../node_modules/core-js/internals/is-callable.js"),s=t("../../node_modules/core-js/internals/shared-store.js"),i=n(Function.toString);r(s.inspectSource)||(s.inspectSource=function(e){return i(e)}),e.exports=s.inspectSource},"../../node_modules/core-js/internals/internal-state.js":function(e,o,t){var n,r,s,i=t("../../node_modules/core-js/internals/weak-map-basic-detection.js"),a=t("../../node_modules/core-js/internals/global-this.js"),l=t("../../node_modules/core-js/internals/is-object.js"),u=t("../../node_modules/core-js/internals/create-non-enumerable-property.js"),c=t("../../node_modules/core-js/internals/has-own-property.js"),d=t("../../node_modules/core-js/internals/shared-store.js"),j=t("../../node_modules/core-js/internals/shared-key.js"),f=t("../../node_modules/core-js/internals/hidden-keys.js"),p="Object already initialized",_=a.TypeError,m=a.WeakMap;if(i||d.state){var y=d.state||(d.state=new m);y.get=y.get,y.has=y.has,y.set=y.set,n=function(e,o){if(y.has(e))throw new _(p);return o.facade=e,y.set(e,o),o},r=function(e){return y.get(e)||{}},s=function(e){return y.has(e)}}else{var h=j("state");f[h]=!0,n=function(e,o){if(c(e,h))throw new _(p);return o.facade=e,u(e,h,o),o},r=function(e){return c(e,h)?e[h]:{}},s=function(e){return c(e,h)}}e.exports={set:n,get:r,has:s,enforce:function(e){return s(e)?r(e):n(e,{})},getterFor:function(e){return function(o){var t;if(!l(o)||(t=r(o)).type!==e)throw new _("Incompatible receiver, "+e+" required");return t}}}},"../../node_modules/core-js/internals/is-callable.js":function(e){var o="object"==typeof document&&document.all;e.exports=void 0===o&&void 0!==o?function(e){return"function"==typeof e||e===o}:function(e){return"function"==typeof e}},"../../node_modules/core-js/internals/is-forced.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/fails.js"),r=t("../../node_modules/core-js/internals/is-callable.js"),s=/#|\.prototype\./,i=function(e,o){var t=l[a(e)];return t===c||t!==u&&(r(o)?n(o):!!o)},a=i.normalize=function(e){return String(e).replace(s,".").toLowerCase()},l=i.data={},u=i.NATIVE="N",c=i.POLYFILL="P";e.exports=i},"../../node_modules/core-js/internals/is-null-or-undefined.js":function(e){e.exports=function(e){return null==e}},"../../node_modules/core-js/internals/is-object.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/is-callable.js");e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},"../../node_modules/core-js/internals/is-possible-prototype.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/is-object.js");e.exports=function(e){return n(e)||null===e}},"../../node_modules/core-js/internals/is-pure.js":function(e){e.exports=!1},"../../node_modules/core-js/internals/is-symbol.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/get-built-in.js"),r=t("../../node_modules/core-js/internals/is-callable.js"),s=t("../../node_modules/core-js/internals/object-is-prototype-of.js"),i=t("../../node_modules/core-js/internals/use-symbol-as-uid.js"),a=Object;e.exports=i?function(e){return"symbol"==typeof e}:function(e){var o=n("Symbol");return r(o)&&s(o.prototype,a(e))}},"../../node_modules/core-js/internals/length-of-array-like.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/to-length.js");e.exports=function(e){return n(e.length)}},"../../node_modules/core-js/internals/make-built-in.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/function-uncurry-this.js"),r=t("../../node_modules/core-js/internals/fails.js"),s=t("../../node_modules/core-js/internals/is-callable.js"),i=t("../../node_modules/core-js/internals/has-own-property.js"),a=t("../../node_modules/core-js/internals/descriptors.js"),l=t("../../node_modules/core-js/internals/function-name.js").CONFIGURABLE,u=t("../../node_modules/core-js/internals/inspect-source.js"),c=t("../../node_modules/core-js/internals/internal-state.js"),d=c.enforce,j=c.get,f=String,p=Object.defineProperty,_=n("".slice),m=n("".replace),y=n([].join),h=a&&!r(function(){return 8!==p(function(){},"length",{value:8}).length}),b=String(String).split("String"),g=e.exports=function(e,o,t){"Symbol("===_(f(o),0,7)&&(o="["+m(f(o),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),t&&t.getter&&(o="get "+o),t&&t.setter&&(o="set "+o),(!i(e,"name")||l&&e.name!==o)&&(a?p(e,"name",{value:o,configurable:!0}):e.name=o),h&&t&&i(t,"arity")&&e.length!==t.arity&&p(e,"length",{value:t.arity});try{t&&i(t,"constructor")&&t.constructor?a&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=d(e);return i(n,"source")||(n.source=y(b,"string"==typeof o?o:"")),e};Function.prototype.toString=g(function(){return s(this)&&j(this).source||u(this)},"toString")},"../../node_modules/core-js/internals/math-trunc.js":function(e){var o=Math.ceil,t=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?t:o)(n)}},"../../node_modules/core-js/internals/object-create.js":function(e,o,t){var n,r=t("../../node_modules/core-js/internals/an-object.js"),s=t("../../node_modules/core-js/internals/object-define-properties.js"),i=t("../../node_modules/core-js/internals/enum-bug-keys.js"),a=t("../../node_modules/core-js/internals/hidden-keys.js"),l=t("../../node_modules/core-js/internals/html.js"),u=t("../../node_modules/core-js/internals/document-create-element.js"),c=t("../../node_modules/core-js/internals/shared-key.js"),d="prototype",j="script",f=c("IE_PROTO"),p=function(){},_=function(e){return"<"+j+">"+e+"</"+j+">"},m=function(e){e.write(_("")),e.close();var o=e.parentWindow.Object;return e=null,o},y=function(){var e,o=u("iframe");return o.style.display="none",l.appendChild(o),o.src=String("java"+j+":"),(e=o.contentWindow.document).open(),e.write(_("document.F=Object")),e.close(),e.F},h=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}h="undefined"!=typeof document?document.domain&&n?m(n):y():m(n);for(var e=i.length;e--;)delete h[d][i[e]];return h()};a[f]=!0,e.exports=Object.create||function(e,o){var t;return null!==e?(p[d]=r(e),t=new p,p[d]=null,t[f]=e):t=h(),void 0===o?t:s.f(t,o)}},"../../node_modules/core-js/internals/object-define-properties.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/descriptors.js"),r=t("../../node_modules/core-js/internals/v8-prototype-define-bug.js"),s=t("../../node_modules/core-js/internals/object-define-property.js"),i=t("../../node_modules/core-js/internals/an-object.js"),a=t("../../node_modules/core-js/internals/to-indexed-object.js"),l=t("../../node_modules/core-js/internals/object-keys.js");o.f=n&&!r?Object.defineProperties:function(e,o){i(e);for(var t,n=a(o),r=l(o),u=r.length,c=0;u>c;)s.f(e,t=r[c++],n[t]);return e}},"../../node_modules/core-js/internals/object-define-property.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/descriptors.js"),r=t("../../node_modules/core-js/internals/ie8-dom-define.js"),s=t("../../node_modules/core-js/internals/v8-prototype-define-bug.js"),i=t("../../node_modules/core-js/internals/an-object.js"),a=t("../../node_modules/core-js/internals/to-property-key.js"),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d="enumerable",j="configurable",f="writable";o.f=n?s?function(e,o,t){if(i(e),o=a(o),i(t),"function"==typeof e&&"prototype"===o&&"value"in t&&f in t&&!t[f]){var n=c(e,o);n&&n[f]&&(e[o]=t.value,t={configurable:j in t?t[j]:n[j],enumerable:d in t?t[d]:n[d],writable:!1})}return u(e,o,t)}:u:function(e,o,t){if(i(e),o=a(o),i(t),r)try{return u(e,o,t)}catch(e){}if("get"in t||"set"in t)throw new l("Accessors not supported");return"value"in t&&(e[o]=t.value),e}},"../../node_modules/core-js/internals/object-get-own-property-descriptor.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/descriptors.js"),r=t("../../node_modules/core-js/internals/function-call.js"),s=t("../../node_modules/core-js/internals/object-property-is-enumerable.js"),i=t("../../node_modules/core-js/internals/create-property-descriptor.js"),a=t("../../node_modules/core-js/internals/to-indexed-object.js"),l=t("../../node_modules/core-js/internals/to-property-key.js"),u=t("../../node_modules/core-js/internals/has-own-property.js"),c=t("../../node_modules/core-js/internals/ie8-dom-define.js"),d=Object.getOwnPropertyDescriptor;o.f=n?d:function(e,o){if(e=a(e),o=l(o),c)try{return d(e,o)}catch(e){}if(u(e,o))return i(!r(s.f,e,o),e[o])}},"../../node_modules/core-js/internals/object-get-own-property-names.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/object-keys-internal.js"),r=t("../../node_modules/core-js/internals/enum-bug-keys.js").concat("length","prototype");o.f=Object.getOwnPropertyNames||function(e){return n(e,r)}},"../../node_modules/core-js/internals/object-get-own-property-symbols.js":function(e,o){o.f=Object.getOwnPropertySymbols},"../../node_modules/core-js/internals/object-get-prototype-of.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/has-own-property.js"),r=t("../../node_modules/core-js/internals/is-callable.js"),s=t("../../node_modules/core-js/internals/to-object.js"),i=t("../../node_modules/core-js/internals/shared-key.js"),a=t("../../node_modules/core-js/internals/correct-prototype-getter.js"),l=i("IE_PROTO"),u=Object,c=u.prototype;e.exports=a?u.getPrototypeOf:function(e){var o=s(e);if(n(o,l))return o[l];var t=o.constructor;return r(t)&&o instanceof t?t.prototype:o instanceof u?c:null}},"../../node_modules/core-js/internals/object-is-prototype-of.js":function(e,o,t){e.exports=t("../../node_modules/core-js/internals/function-uncurry-this.js")({}.isPrototypeOf)},"../../node_modules/core-js/internals/object-keys-internal.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/function-uncurry-this.js"),r=t("../../node_modules/core-js/internals/has-own-property.js"),s=t("../../node_modules/core-js/internals/to-indexed-object.js"),i=t("../../node_modules/core-js/internals/array-includes.js").indexOf,a=t("../../node_modules/core-js/internals/hidden-keys.js"),l=n([].push);e.exports=function(e,o){var t,n=s(e),u=0,c=[];for(t in n)!r(a,t)&&r(n,t)&&l(c,t);for(;o.length>u;)r(n,t=o[u++])&&(~i(c,t)||l(c,t));return c}},"../../node_modules/core-js/internals/object-keys.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/object-keys-internal.js"),r=t("../../node_modules/core-js/internals/enum-bug-keys.js");e.exports=Object.keys||function(e){return n(e,r)}},"../../node_modules/core-js/internals/object-property-is-enumerable.js":function(e,o){var t={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor;o.f=n&&!t.call({1:2},1)?function(e){var o=n(this,e);return!!o&&o.enumerable}:t},"../../node_modules/core-js/internals/object-set-prototype-of.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/function-uncurry-this-accessor.js"),r=t("../../node_modules/core-js/internals/is-object.js"),s=t("../../node_modules/core-js/internals/require-object-coercible.js"),i=t("../../node_modules/core-js/internals/a-possible-prototype.js");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,o=!1,t={};try{(e=n(Object.prototype,"__proto__","set"))(t,[]),o=t instanceof Array}catch(e){}return function(t,n){return s(t),i(n),r(t)&&(o?e(t,n):t.__proto__=n),t}}():void 0)},"../../node_modules/core-js/internals/ordinary-to-primitive.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/function-call.js"),r=t("../../node_modules/core-js/internals/is-callable.js"),s=t("../../node_modules/core-js/internals/is-object.js"),i=TypeError;e.exports=function(e,o){var t,a;if("string"===o&&r(t=e.toString)&&!s(a=n(t,e))||r(t=e.valueOf)&&!s(a=n(t,e))||"string"!==o&&r(t=e.toString)&&!s(a=n(t,e)))return a;throw new i("Can't convert object to primitive value")}},"../../node_modules/core-js/internals/own-keys.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/get-built-in.js"),r=t("../../node_modules/core-js/internals/function-uncurry-this.js"),s=t("../../node_modules/core-js/internals/object-get-own-property-names.js"),i=t("../../node_modules/core-js/internals/object-get-own-property-symbols.js"),a=t("../../node_modules/core-js/internals/an-object.js"),l=r([].concat);e.exports=n("Reflect","ownKeys")||function(e){var o=s.f(a(e)),t=i.f;return t?l(o,t(e)):o}},"../../node_modules/core-js/internals/require-object-coercible.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/is-null-or-undefined.js"),r=TypeError;e.exports=function(e){if(n(e))throw new r("Can't call method on "+e);return e}},"../../node_modules/core-js/internals/shared-key.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/shared.js"),r=t("../../node_modules/core-js/internals/uid.js"),s=n("keys");e.exports=function(e){return s[e]||(s[e]=r(e))}},"../../node_modules/core-js/internals/shared-store.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/is-pure.js"),r=t("../../node_modules/core-js/internals/global-this.js"),s=t("../../node_modules/core-js/internals/define-global-property.js"),i="__core-js_shared__",a=e.exports=r[i]||s(i,{});(a.versions||(a.versions=[])).push({version:"3.44.0",mode:n?"pure":"global",copyright:"\xa9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",source:"https://github.com/zloirock/core-js"})},"../../node_modules/core-js/internals/shared.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/shared-store.js");e.exports=function(e,o){return n[e]||(n[e]=o||{})}},"../../node_modules/core-js/internals/symbol-constructor-detection.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/environment-v8-version.js"),r=t("../../node_modules/core-js/internals/fails.js"),s=t("../../node_modules/core-js/internals/global-this.js").String;e.exports=!!Object.getOwnPropertySymbols&&!r(function(){var e=Symbol("symbol detection");return!s(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},"../../node_modules/core-js/internals/to-absolute-index.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/to-integer-or-infinity.js"),r=Math.max,s=Math.min;e.exports=function(e,o){var t=n(e);return t<0?r(t+o,0):s(t,o)}},"../../node_modules/core-js/internals/to-indexed-object.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/indexed-object.js"),r=t("../../node_modules/core-js/internals/require-object-coercible.js");e.exports=function(e){return n(r(e))}},"../../node_modules/core-js/internals/to-integer-or-infinity.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/math-trunc.js");e.exports=function(e){var o=+e;return o!=o||0===o?0:n(o)}},"../../node_modules/core-js/internals/to-length.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/to-integer-or-infinity.js"),r=Math.min;e.exports=function(e){var o=n(e);return o>0?r(o,0x1fffffffffffff):0}},"../../node_modules/core-js/internals/to-object.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/require-object-coercible.js"),r=Object;e.exports=function(e){return r(n(e))}},"../../node_modules/core-js/internals/to-offset.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/to-positive-integer.js"),r=RangeError;e.exports=function(e,o){var t=n(e);if(t%o)throw new r("Wrong offset");return t}},"../../node_modules/core-js/internals/to-positive-integer.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/to-integer-or-infinity.js"),r=RangeError;e.exports=function(e){var o=n(e);if(o<0)throw new r("The argument can't be less than 0");return o}},"../../node_modules/core-js/internals/to-primitive.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/function-call.js"),r=t("../../node_modules/core-js/internals/is-object.js"),s=t("../../node_modules/core-js/internals/is-symbol.js"),i=t("../../node_modules/core-js/internals/get-method.js"),a=t("../../node_modules/core-js/internals/ordinary-to-primitive.js"),l=t("../../node_modules/core-js/internals/well-known-symbol.js"),u=TypeError,c=l("toPrimitive");e.exports=function(e,o){if(!r(e)||s(e))return e;var t,l=i(e,c);if(l){if(void 0===o&&(o="default"),!r(t=n(l,e,o))||s(t))return t;throw new u("Can't convert object to primitive value")}return void 0===o&&(o="number"),a(e,o)}},"../../node_modules/core-js/internals/to-property-key.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/to-primitive.js"),r=t("../../node_modules/core-js/internals/is-symbol.js");e.exports=function(e){var o=n(e,"string");return r(o)?o:o+""}},"../../node_modules/core-js/internals/to-string-tag-support.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/well-known-symbol.js")("toStringTag"),r={};r[n]="z",e.exports="[object z]"===String(r)},"../../node_modules/core-js/internals/try-to-string.js":function(e){var o=String;e.exports=function(e){try{return o(e)}catch(e){return"Object"}}},"../../node_modules/core-js/internals/uid.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/function-uncurry-this.js"),r=0,s=Math.random(),i=n(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++r+s,36)}},"../../node_modules/core-js/internals/use-symbol-as-uid.js":function(e,o,t){e.exports=t("../../node_modules/core-js/internals/symbol-constructor-detection.js")&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"../../node_modules/core-js/internals/v8-prototype-define-bug.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/descriptors.js"),r=t("../../node_modules/core-js/internals/fails.js");e.exports=n&&r(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},"../../node_modules/core-js/internals/weak-map-basic-detection.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/global-this.js"),r=t("../../node_modules/core-js/internals/is-callable.js"),s=n.WeakMap;e.exports=r(s)&&/native code/.test(String(s))},"../../node_modules/core-js/internals/well-known-symbol.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/global-this.js"),r=t("../../node_modules/core-js/internals/shared.js"),s=t("../../node_modules/core-js/internals/has-own-property.js"),i=t("../../node_modules/core-js/internals/uid.js"),a=t("../../node_modules/core-js/internals/symbol-constructor-detection.js"),l=t("../../node_modules/core-js/internals/use-symbol-as-uid.js"),u=n.Symbol,c=r("wks"),d=l?u.for||u:u&&u.withoutSetter||i;e.exports=function(e){return s(c,e)||(c[e]=a&&s(u,e)?u[e]:d("Symbol."+e)),c[e]}},"../../node_modules/core-js/modules/es.array.includes.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/export.js"),r=t("../../node_modules/core-js/internals/array-includes.js").includes,s=t("../../node_modules/core-js/internals/fails.js"),i=t("../../node_modules/core-js/internals/add-to-unscopables.js");n({target:"Array",proto:!0,forced:s(function(){return![,].includes()})},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},"../../node_modules/core-js/modules/es.object.has-own.js":function(e,o,t){t("../../node_modules/core-js/internals/export.js")({target:"Object",stat:!0},{hasOwn:t("../../node_modules/core-js/internals/has-own-property.js")})},"../../node_modules/core-js/modules/es.typed-array.set.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/global-this.js"),r=t("../../node_modules/core-js/internals/function-call.js"),s=t("../../node_modules/core-js/internals/array-buffer-view-core.js"),i=t("../../node_modules/core-js/internals/length-of-array-like.js"),a=t("../../node_modules/core-js/internals/to-offset.js"),l=t("../../node_modules/core-js/internals/to-object.js"),u=t("../../node_modules/core-js/internals/fails.js"),c=n.RangeError,d=n.Int8Array,j=d&&d.prototype,f=j&&j.set,p=s.aTypedArray,_=s.exportTypedArrayMethod,m=!u(function(){var e=new Uint8ClampedArray(2);return r(f,e,{length:1,0:3},1),3!==e[1]}),y=m&&s.NATIVE_ARRAY_BUFFER_VIEWS&&u(function(){var e=new d(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]});_("set",function(e){p(this);var o=a(arguments.length>1?arguments[1]:void 0,1),t=l(e);if(m)return r(f,this,t,o);var n=this.length,s=i(t),u=0;if(s+o>n)throw new c("Wrong length");for(;u<s;)this[o+u]=t[u++]},!m||y)}},__webpack_module_cache__={};function __webpack_require__(e){var o=__webpack_module_cache__[e];if(void 0!==o)return o.exports;var t=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(t.exports,t,t.exports,__webpack_require__),t.exports}__webpack_require__.d=(e,o)=>{for(var t in o)__webpack_require__.o(o,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},__webpack_require__.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),__webpack_require__.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};for(var __webpack_i__ in(()=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{TimeoutError:()=>t,ky:()=>A,sseHook:()=>e,HTTPError:()=>o});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{createHook:()=>q}),__webpack_require__("../../node_modules/core-js/modules/es.object.has-own.js"),__webpack_require__("../../node_modules/core-js/modules/es.array.includes.js");class o extends Error{constructor(e,o,t){let n=e.status||0===e.status?e.status:"",r=e.statusText||"",s=`${n} ${r}`.trim();super(`Request failed with ${s?`status code ${s}`:"an unknown error"}: ${o.method} ${o.url}`),this.name="HTTPError",this.response=e,this.request=o,this.options=t}}class t extends Error{constructor(e){super(`Request timed out: ${e.method} ${e.url}`),this.name="TimeoutError",this.request=e}}__webpack_require__("../../node_modules/core-js/modules/es.typed-array.set.js");let n=(()=>{let e=!1,o=!1,t="function"==typeof globalThis.Request;if("function"==typeof globalThis.ReadableStream&&t)try{o=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type")}catch(e){if(e instanceof Error&&"unsupported BodyInit type"===e.message)return!1;throw e}return e&&!o})(),r="function"==typeof globalThis.AbortController,s="function"==typeof globalThis.ReadableStream,i="function"==typeof globalThis.FormData,a=["get","post","put","patch","head","delete"],l={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*"},u=new TextEncoder().encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length,c=Symbol("stop"),d={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,prefixUrl:!0,retry:!0,timeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0},j={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,dispatcher:!0,duplex:!0,priority:!0},f=e=>{if(!e)return 0;if(e instanceof FormData){let o=0;for(let[t,n]of e)o+=u,o+=new TextEncoder().encode(`Content-Disposition: form-data; name="${t}"`).length,o+="string"==typeof n?new TextEncoder().encode(n).length:n.size;return o}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength;if("string"==typeof e)return new TextEncoder().encode(e).length;if(e instanceof URLSearchParams)return new TextEncoder().encode(e.toString()).length;if("byteLength"in e)return e.byteLength;if("object"==typeof e&&null!==e)try{let o=JSON.stringify(e);return new TextEncoder().encode(o).length}catch{}return 0},p=(e,o)=>{let t=Number(e.headers.get("content-length"))||0,n=0;return 204===e.status?(o&&o({percent:1,totalBytes:t,transferredBytes:n},new Uint8Array),new Response(null,{status:e.status,statusText:e.statusText,headers:e.headers})):new Response(new ReadableStream({async start(r){let s=e.body.getReader();async function i(){let{done:e,value:a}=await s.read();if(e)return void r.close();o&&(n+=a.byteLength,o({percent:0===t?0:n/t,transferredBytes:n,totalBytes:t},a)),r.enqueue(a),await i()}o&&o({percent:0,transferredBytes:0,totalBytes:t},new Uint8Array),await i()}}),{status:e.status,statusText:e.statusText,headers:e.headers})},_=(e,o)=>{let t=f(e.body),n=0;return new Request(e,{duplex:"half",body:new ReadableStream({async start(r){let s=e.body instanceof ReadableStream?e.body.getReader():new Response("").body.getReader();async function i(){let{done:e,value:a}=await s.read();if(e){o&&o({percent:1,transferredBytes:n,totalBytes:Math.max(t,n)},new Uint8Array),r.close();return}n+=a.byteLength;let l=0===t?0:n/t;(t<n||1===l)&&(l=.99),o&&o({percent:Number(l.toFixed(2)),transferredBytes:n,totalBytes:t},a),r.enqueue(a),await i()}await i()}})})},m=e=>null!==e&&"object"==typeof e,y=function(){for(var e=arguments.length,o=Array(e),t=0;t<e;t++)o[t]=arguments[t];for(let e of o)if((!m(e)||Array.isArray(e))&&void 0!==e)throw TypeError("The `options` argument must be an object");return v({},...o)},h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=new globalThis.Headers(e),n=o instanceof globalThis.Headers;for(let[e,r]of new globalThis.Headers(o).entries())n&&"undefined"===r||void 0===r?t.delete(e):t.set(e,r);return t};function b(e,o,t){var n,r;return Object.hasOwn(o,t)&&void 0===o[t]?[]:v(null!=(n=e[t])?n:[],null!=(r=o[t])?r:[])}let g=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{beforeRequest:b(e,o,"beforeRequest"),beforeRetry:b(e,o,"beforeRetry"),afterResponse:b(e,o,"afterResponse"),beforeError:b(e,o,"beforeError")}},v=function(){for(var e=arguments.length,o=Array(e),t=0;t<e;t++)o[t]=arguments[t];let n={},r={},s={};for(let e of o)if(Array.isArray(e))Array.isArray(n)||(n=[]),n=[...n,...e];else if(m(e)){for(let[o,t]of Object.entries(e))m(t)&&o in n&&(t=v(n[o],t)),n={...n,[o]:t};m(e.hooks)&&(s=g(s,e.hooks),n.hooks=s),m(e.headers)&&(r=h(r,e.headers),n.headers=r)}return n},w=e=>a.includes(e)?e.toUpperCase():e,x={limit:2,methods:["get","put","head","delete","options","trace"],statusCodes:[408,413,429,500,502,503,504],afterStatusCodes:[413,429,503],maxRetryAfter:Number.POSITIVE_INFINITY,backoffLimit:Number.POSITIVE_INFINITY,delay:e=>.3*2**(e-1)*1e3},T=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("number"==typeof e)return{...x,limit:e};if(e.methods&&!Array.isArray(e.methods))throw Error("retry.methods must be an array");if(e.statusCodes&&!Array.isArray(e.statusCodes))throw Error("retry.statusCodes must be an array");return{...x,...e}};async function k(e,o,n,r){return new Promise((s,i)=>{let a=setTimeout(()=>{n&&n.abort(),i(new t(e))},r.timeout);r.fetch(e,o).then(s).catch(i).then(()=>{clearTimeout(a)})})}async function R(e,o){let{signal:t}=o;return new Promise((o,n)=>{function r(){clearTimeout(s),n(t.reason)}t&&(t.throwIfAborted(),t.addEventListener("abort",r,{once:!0}));let s=setTimeout(()=>{null==t||t.removeEventListener("abort",r),o()},e)})}let O=(e,o)=>{let t={};for(let n in o)n in j||n in d||n in e||(t[n]=o[n]);return t};class E{static create(e,t){let n=new E(e,t),r=async()=>{if("number"==typeof n._options.timeout&&n._options.timeout>0x7fffffff)throw RangeError("The `timeout` option cannot be greater than 2147483647");await Promise.resolve();let e=await n._fetch();for(let o of n._options.hooks.afterResponse){let t=await o(n.request,n._options,n._decorateResponse(e.clone()));t instanceof globalThis.Response&&(e=t)}if(n._decorateResponse(e),!e.ok&&n._options.throwHttpErrors){let t=new o(e,n.request,n._options);for(let e of n._options.hooks.beforeError)t=await e(t);throw t}if(n._options.onDownloadProgress){if("function"!=typeof n._options.onDownloadProgress)throw TypeError("The `onDownloadProgress` option must be a function");if(!s)throw Error("Streams are not supported in your environment. `ReadableStream` is missing.");return p(e.clone(),n._options.onDownloadProgress)}return e},i=(n._options.retry.methods.includes(n.request.method.toLowerCase())?n._retry(r):r()).finally(async()=>{if(!n.request.bodyUsed){var e;await (null==(e=n.request.body)?void 0:e.cancel())}});for(let[e,o]of Object.entries(l))i[e]=async()=>{n.request.headers.set("accept",n.request.headers.get("accept")||o);let r=await i;if("json"===e){if(204===r.status||0===(await r.clone().arrayBuffer()).byteLength)return"";if(t.parseJson)return t.parseJson(await r.text())}return r[e]()};return i}constructor(e,o={}){var t,s,a,l,u,c,d,j,f;if(this._retryCount=0,this._input=e,this._options={...o,headers:h(this._input.headers,o.headers),hooks:g({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},o.hooks),method:w(null!=(s=null!=(t=o.method)?t:this._input.method)?s:"GET"),prefixUrl:String(o.prefixUrl||""),retry:T(o.retry),throwHttpErrors:!1!==o.throwHttpErrors,timeout:null!=(a=o.timeout)?a:1e4,fetch:null!=(l=o.fetch)?l:globalThis.fetch.bind(globalThis)},"string"!=typeof this._input&&!(this._input instanceof URL||this._input instanceof globalThis.Request))throw TypeError("`input` must be a string, URL, or Request");if(this._options.prefixUrl&&"string"==typeof this._input){if(this._input.startsWith("/"))throw Error("`input` must not begin with a slash when using `prefixUrl`");this._options.prefixUrl.endsWith("/")||(this._options.prefixUrl+="/"),this._input=this._options.prefixUrl+this._input}if(r){let e=null!=(u=this._options.signal)?u:this._input.signal;this.abortController=new globalThis.AbortController,this._options.signal=e?AbortSignal.any([e,this.abortController.signal]):this.abortController.signal}if(n&&(this._options.duplex="half"),void 0!==this._options.json&&(this._options.body=null!=(j=null==(c=(d=this._options).stringifyJson)?void 0:c.call(d,this._options.json))?j:JSON.stringify(this._options.json),this._options.headers.set("content-type",null!=(f=this._options.headers.get("content-type"))?f:"application/json")),this.request=new globalThis.Request(this._input,this._options),this._options.searchParams){let e="string"==typeof this._options.searchParams?this._options.searchParams.replace(/^\?/,""):new URLSearchParams(this._options.searchParams).toString(),o=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,"?"+e);(i&&this._options.body instanceof globalThis.FormData||this._options.body instanceof URLSearchParams)&&!(this._options.headers&&this._options.headers["content-type"])&&this.request.headers.delete("content-type"),this.request=new globalThis.Request(new globalThis.Request(o,{...this.request}),this._options)}if(this._options.onUploadProgress){if("function"!=typeof this._options.onUploadProgress)throw TypeError("The `onUploadProgress` option must be a function");if(!n)throw Error("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");this.request.body&&(this.request=_(this.request,this._options.onUploadProgress))}}_calculateRetryDelay(e){if(this._retryCount++,this._retryCount>this._options.retry.limit||e instanceof t)throw e;if(e instanceof o){var n,r,s,i;if(!this._options.retry.statusCodes.includes(e.response.status))throw e;let o=null!=(s=null!=(r=null!=(n=e.response.headers.get("Retry-After"))?n:e.response.headers.get("RateLimit-Reset"))?r:e.response.headers.get("X-RateLimit-Reset"))?s:e.response.headers.get("X-Rate-Limit-Reset");if(o&&this._options.retry.afterStatusCodes.includes(e.response.status)){let e=1e3*Number(o);Number.isNaN(e)?e=Date.parse(o)-Date.now():e>=Date.parse("2024-01-01")&&(e-=Date.now());let t=null!=(i=this._options.retry.maxRetryAfter)?i:e;return e<t?e:t}if(413===e.response.status)throw e}let a=this._options.retry.delay(this._retryCount);return Math.min(this._options.retry.backoffLimit,a)}_decorateResponse(e){return this._options.parseJson&&(e.json=async()=>this._options.parseJson(await e.text())),e}async _retry(e){try{return await e()}catch(t){let o=Math.min(this._calculateRetryDelay(t),0x7fffffff);if(this._retryCount<1)throw t;for(let e of(await R(o,{signal:this._options.signal}),this._options.hooks.beforeRetry))if(await e({request:this.request,options:this._options,error:t,retryCount:this._retryCount})===c)return;return this._retry(e)}}async _fetch(){for(let e of this._options.hooks.beforeRequest){let o=await e(this.request,this._options);if(o instanceof Request){this.request=o;break}if(o instanceof Response)return o}let e=O(this.request,this._options),o=this.request;return(this.request=o.clone(),!1===this._options.timeout)?this._options.fetch(o,e):k(o,e,this.abortController,this._options)}}let S=e=>{let o=(o,t)=>E.create(o,y(e,t));for(let t of a)o[t]=(o,n)=>E.create(o,y(e,n,{method:t}));return o.create=e=>S(y(e)),o.extend=o=>("function"==typeof o&&(o=o(null!=e?e:{})),S(y(e,o))),o.stop=c,o},A=S(),P=[239,187,191],q=e=>async(o,t,n)=>{if(!n.ok||!n.body)return;let r=!1,s=o=>{var t;r||(r=!0,null==(t=e.onCompleted)||t.call(e,o))},i=n.body.getReader(),a=new TextDecoder("utf8"),l=function(e){let o,t,n,r,s,i,a;return l(),{feed:function(l){var u;t=t?t+l:l,o&&(u=t,P.every((e,o)=>u.charCodeAt(o)===e))&&(t=t.slice(P.length)),o=!1;let c=t.length,d=0,j=!1;for(;d<c;){let o;j&&("\n"===t[d]&&++d,j=!1);let l=-1,u=r;for(let e=n;l<0&&e<c;++e)":"===(o=t[e])&&u<0?u=e-d:"\r"===o?(j=!0,l=e-d):"\n"===o&&(l=e-d);if(l<0){n=c-d,r=u;break}n=0,r=-1,function(o,t,n,r){if(0===r){a.length>0&&(e({type:"event",id:s,event:i||void 0,data:a.slice(0,-1)}),a="",s=void 0),i=void 0;return}let l=n<0,u=o.slice(t,t+(l?r:n)),c=0;c=l?r:" "===o[t+n+1]?n+2:n+1;let d=t+c,j=r-c,f=o.slice(d,d+j).toString();if("data"===u)a+=f?"".concat(f,"\n"):"\n";else if("event"===u)i=f;else if("id"!==u||f.includes("\0")){if("retry"===u){let o=parseInt(f,10);Number.isNaN(o)||e({type:"reconnect-interval",value:o})}}else s=f}(t,d,u,l),d+=l+1}d===c?t="":d>0&&(t=t.slice(d))},reset:l};function l(){o=!0,t="",n=0,r=-1,s=void 0,i=void 0,a=""}}(o=>{var t,n,r;if("event"===o.type&&(null==(t=e.onMessage)||t.call(e,o)),"event"===o.type&&o.data)for(let t of(null==(n=e.onEvent)||n.call(e,o),o.data.split("\n")))e.onData(t);else"reconnect-interval"===o.type&&(null==(r=e.onReconnectInterval)||r.call(e,o.value))}),u=()=>{i.read().then(e=>{if(e.done)return void s();l.feed(a.decode(e.value,{stream:!0})),u()}).catch(t=>{var n;if(o.signal.aborted){null==(n=e.onAborted)||n.call(e);return}s(t)})};return u(),n}})(),exports.HTTPError=__webpack_exports__.HTTPError,exports.TimeoutError=__webpack_exports__.TimeoutError,exports.ky=__webpack_exports__.ky,exports.sseHook=__webpack_exports__.sseHook,__webpack_exports__)-1===["HTTPError","TimeoutError","ky","sseHook"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
2
|
+
"use strict";var __webpack_modules__={"../../node_modules/core-js/internals/a-callable.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/is-callable.js"),r=t("../../node_modules/core-js/internals/try-to-string.js"),s=TypeError;e.exports=function(e){if(n(e))return e;throw new s(r(e)+" is not a function")}},"../../node_modules/core-js/internals/add-to-unscopables.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/well-known-symbol.js"),r=t("../../node_modules/core-js/internals/object-create.js"),s=t("../../node_modules/core-js/internals/object-define-property.js").f,i=n("unscopables"),l=Array.prototype;void 0===l[i]&&s(l,i,{configurable:!0,value:r(null)}),e.exports=function(e){l[i][e]=!0}},"../../node_modules/core-js/internals/an-object.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/is-object.js"),r=String,s=TypeError;e.exports=function(e){if(n(e))return e;throw new s(r(e)+" is not an object")}},"../../node_modules/core-js/internals/array-includes.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/to-indexed-object.js"),r=t("../../node_modules/core-js/internals/to-absolute-index.js"),s=t("../../node_modules/core-js/internals/length-of-array-like.js"),i=function(e){return function(o,t,i){var l,a=n(o),u=s(a);if(0===u)return!e&&-1;var c=r(i,u);if(e&&t!=t){for(;u>c;)if((l=a[c++])!=l)return!0}else for(;u>c;c++)if((e||c in a)&&a[c]===t)return e||c||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},"../../node_modules/core-js/internals/classof-raw.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/function-uncurry-this.js"),r=n({}.toString),s=n("".slice);e.exports=function(e){return s(r(e),8,-1)}},"../../node_modules/core-js/internals/copy-constructor-properties.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/has-own-property.js"),r=t("../../node_modules/core-js/internals/own-keys.js"),s=t("../../node_modules/core-js/internals/object-get-own-property-descriptor.js"),i=t("../../node_modules/core-js/internals/object-define-property.js");e.exports=function(e,o,t){for(var l=r(o),a=i.f,u=s.f,c=0;c<l.length;c++){var d=l[c];n(e,d)||t&&n(t,d)||a(e,d,u(o,d))}}},"../../node_modules/core-js/internals/create-non-enumerable-property.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/descriptors.js"),r=t("../../node_modules/core-js/internals/object-define-property.js"),s=t("../../node_modules/core-js/internals/create-property-descriptor.js");e.exports=n?function(e,o,t){return r.f(e,o,s(1,t))}:function(e,o,t){return e[o]=t,e}},"../../node_modules/core-js/internals/create-property-descriptor.js":function(e){e.exports=function(e,o){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:o}}},"../../node_modules/core-js/internals/define-built-in.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/is-callable.js"),r=t("../../node_modules/core-js/internals/object-define-property.js"),s=t("../../node_modules/core-js/internals/make-built-in.js"),i=t("../../node_modules/core-js/internals/define-global-property.js");e.exports=function(e,o,t,l){l||(l={});var a=l.enumerable,u=void 0!==l.name?l.name:o;if(n(t)&&s(t,u,l),l.global)a?e[o]=t:i(o,t);else{try{l.unsafe?e[o]&&(a=!0):delete e[o]}catch(e){}a?e[o]=t:r.f(e,o,{value:t,enumerable:!1,configurable:!l.nonConfigurable,writable:!l.nonWritable})}return e}},"../../node_modules/core-js/internals/define-global-property.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/global-this.js"),r=Object.defineProperty;e.exports=function(e,o){try{r(n,e,{value:o,configurable:!0,writable:!0})}catch(t){n[e]=o}return o}},"../../node_modules/core-js/internals/descriptors.js":function(e,o,t){e.exports=!t("../../node_modules/core-js/internals/fails.js")(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},"../../node_modules/core-js/internals/document-create-element.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/global-this.js"),r=t("../../node_modules/core-js/internals/is-object.js"),s=n.document,i=r(s)&&r(s.createElement);e.exports=function(e){return i?s.createElement(e):{}}},"../../node_modules/core-js/internals/enum-bug-keys.js":function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"../../node_modules/core-js/internals/environment-user-agent.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/global-this.js").navigator,r=n&&n.userAgent;e.exports=r?String(r):""},"../../node_modules/core-js/internals/environment-v8-version.js":function(e,o,t){var n,r,s=t("../../node_modules/core-js/internals/global-this.js"),i=t("../../node_modules/core-js/internals/environment-user-agent.js"),l=s.process,a=s.Deno,u=l&&l.versions||a&&a.version,c=u&&u.v8;c&&(r=(n=c.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!r&&i&&(!(n=i.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=i.match(/Chrome\/(\d+)/))&&(r=+n[1]),e.exports=r},"../../node_modules/core-js/internals/export.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/global-this.js"),r=t("../../node_modules/core-js/internals/object-get-own-property-descriptor.js").f,s=t("../../node_modules/core-js/internals/create-non-enumerable-property.js"),i=t("../../node_modules/core-js/internals/define-built-in.js"),l=t("../../node_modules/core-js/internals/define-global-property.js"),a=t("../../node_modules/core-js/internals/copy-constructor-properties.js"),u=t("../../node_modules/core-js/internals/is-forced.js");e.exports=function(e,o){var t,c,d,f,p,j=e.target,m=e.global,h=e.stat;if(t=m?n:h?n[j]||l(j,{}):n[j]&&n[j].prototype)for(c in o){if(f=o[c],d=e.dontCallGetSet?(p=r(t,c))&&p.value:t[c],!u(m?c:j+(h?".":"#")+c,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;a(f,d)}(e.sham||d&&d.sham)&&s(f,"sham",!0),i(t,c,f,e)}}},"../../node_modules/core-js/internals/fails.js":function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"../../node_modules/core-js/internals/function-bind-native.js":function(e,o,t){e.exports=!t("../../node_modules/core-js/internals/fails.js")(function(){var e=(function(){}).bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},"../../node_modules/core-js/internals/function-call.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/function-bind-native.js"),r=Function.prototype.call;e.exports=n?r.bind(r):function(){return r.apply(r,arguments)}},"../../node_modules/core-js/internals/function-name.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/descriptors.js"),r=t("../../node_modules/core-js/internals/has-own-property.js"),s=Function.prototype,i=n&&Object.getOwnPropertyDescriptor,l=r(s,"name"),a=l&&(!n||n&&i(s,"name").configurable);e.exports={EXISTS:l,PROPER:l&&"something"===(function(){}).name,CONFIGURABLE:a}},"../../node_modules/core-js/internals/function-uncurry-this.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/function-bind-native.js"),r=Function.prototype,s=r.call,i=n&&r.bind.bind(s,s);e.exports=n?i:function(e){return function(){return s.apply(e,arguments)}}},"../../node_modules/core-js/internals/get-built-in.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/global-this.js"),r=t("../../node_modules/core-js/internals/is-callable.js");e.exports=function(e,o){var t;return arguments.length<2?r(t=n[e])?t:void 0:n[e]&&n[e][o]}},"../../node_modules/core-js/internals/get-method.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/a-callable.js"),r=t("../../node_modules/core-js/internals/is-null-or-undefined.js");e.exports=function(e,o){var t=e[o];return r(t)?void 0:n(t)}},"../../node_modules/core-js/internals/global-this.js":function(e,o,t){var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t.g&&t.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},"../../node_modules/core-js/internals/has-own-property.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/function-uncurry-this.js"),r=t("../../node_modules/core-js/internals/to-object.js"),s=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,o){return s(r(e),o)}},"../../node_modules/core-js/internals/hidden-keys.js":function(e){e.exports={}},"../../node_modules/core-js/internals/html.js":function(e,o,t){e.exports=t("../../node_modules/core-js/internals/get-built-in.js")("document","documentElement")},"../../node_modules/core-js/internals/ie8-dom-define.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/descriptors.js"),r=t("../../node_modules/core-js/internals/fails.js"),s=t("../../node_modules/core-js/internals/document-create-element.js");e.exports=!n&&!r(function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a})},"../../node_modules/core-js/internals/indexed-object.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/function-uncurry-this.js"),r=t("../../node_modules/core-js/internals/fails.js"),s=t("../../node_modules/core-js/internals/classof-raw.js"),i=Object,l=n("".split);e.exports=r(function(){return!i("z").propertyIsEnumerable(0)})?function(e){return"String"===s(e)?l(e,""):i(e)}:i},"../../node_modules/core-js/internals/inspect-source.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/function-uncurry-this.js"),r=t("../../node_modules/core-js/internals/is-callable.js"),s=t("../../node_modules/core-js/internals/shared-store.js"),i=n(Function.toString);r(s.inspectSource)||(s.inspectSource=function(e){return i(e)}),e.exports=s.inspectSource},"../../node_modules/core-js/internals/internal-state.js":function(e,o,t){var n,r,s,i=t("../../node_modules/core-js/internals/weak-map-basic-detection.js"),l=t("../../node_modules/core-js/internals/global-this.js"),a=t("../../node_modules/core-js/internals/is-object.js"),u=t("../../node_modules/core-js/internals/create-non-enumerable-property.js"),c=t("../../node_modules/core-js/internals/has-own-property.js"),d=t("../../node_modules/core-js/internals/shared-store.js"),f=t("../../node_modules/core-js/internals/shared-key.js"),p=t("../../node_modules/core-js/internals/hidden-keys.js"),j="Object already initialized",m=l.TypeError,h=l.WeakMap;if(i||d.state){var y=d.state||(d.state=new h);y.get=y.get,y.has=y.has,y.set=y.set,n=function(e,o){if(y.has(e))throw new m(j);return o.facade=e,y.set(e,o),o},r=function(e){return y.get(e)||{}},s=function(e){return y.has(e)}}else{var b=f("state");p[b]=!0,n=function(e,o){if(c(e,b))throw new m(j);return o.facade=e,u(e,b,o),o},r=function(e){return c(e,b)?e[b]:{}},s=function(e){return c(e,b)}}e.exports={set:n,get:r,has:s,enforce:function(e){return s(e)?r(e):n(e,{})},getterFor:function(e){return function(o){var t;if(!a(o)||(t=r(o)).type!==e)throw new m("Incompatible receiver, "+e+" required");return t}}}},"../../node_modules/core-js/internals/is-callable.js":function(e){var o="object"==typeof document&&document.all;e.exports=void 0===o&&void 0!==o?function(e){return"function"==typeof e||e===o}:function(e){return"function"==typeof e}},"../../node_modules/core-js/internals/is-forced.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/fails.js"),r=t("../../node_modules/core-js/internals/is-callable.js"),s=/#|\.prototype\./,i=function(e,o){var t=a[l(e)];return t===c||t!==u&&(r(o)?n(o):!!o)},l=i.normalize=function(e){return String(e).replace(s,".").toLowerCase()},a=i.data={},u=i.NATIVE="N",c=i.POLYFILL="P";e.exports=i},"../../node_modules/core-js/internals/is-null-or-undefined.js":function(e){e.exports=function(e){return null==e}},"../../node_modules/core-js/internals/is-object.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/is-callable.js");e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},"../../node_modules/core-js/internals/is-pure.js":function(e){e.exports=!1},"../../node_modules/core-js/internals/is-symbol.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/get-built-in.js"),r=t("../../node_modules/core-js/internals/is-callable.js"),s=t("../../node_modules/core-js/internals/object-is-prototype-of.js"),i=t("../../node_modules/core-js/internals/use-symbol-as-uid.js"),l=Object;e.exports=i?function(e){return"symbol"==typeof e}:function(e){var o=n("Symbol");return r(o)&&s(o.prototype,l(e))}},"../../node_modules/core-js/internals/length-of-array-like.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/to-length.js");e.exports=function(e){return n(e.length)}},"../../node_modules/core-js/internals/make-built-in.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/function-uncurry-this.js"),r=t("../../node_modules/core-js/internals/fails.js"),s=t("../../node_modules/core-js/internals/is-callable.js"),i=t("../../node_modules/core-js/internals/has-own-property.js"),l=t("../../node_modules/core-js/internals/descriptors.js"),a=t("../../node_modules/core-js/internals/function-name.js").CONFIGURABLE,u=t("../../node_modules/core-js/internals/inspect-source.js"),c=t("../../node_modules/core-js/internals/internal-state.js"),d=c.enforce,f=c.get,p=String,j=Object.defineProperty,m=n("".slice),h=n("".replace),y=n([].join),b=l&&!r(function(){return 8!==j(function(){},"length",{value:8}).length}),_=String(String).split("String"),g=e.exports=function(e,o,t){"Symbol("===m(p(o),0,7)&&(o="["+h(p(o),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),t&&t.getter&&(o="get "+o),t&&t.setter&&(o="set "+o),(!i(e,"name")||a&&e.name!==o)&&(l?j(e,"name",{value:o,configurable:!0}):e.name=o),b&&t&&i(t,"arity")&&e.length!==t.arity&&j(e,"length",{value:t.arity});try{t&&i(t,"constructor")&&t.constructor?l&&j(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=d(e);return i(n,"source")||(n.source=y(_,"string"==typeof o?o:"")),e};Function.prototype.toString=g(function(){return s(this)&&f(this).source||u(this)},"toString")},"../../node_modules/core-js/internals/math-trunc.js":function(e){var o=Math.ceil,t=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?t:o)(n)}},"../../node_modules/core-js/internals/object-create.js":function(e,o,t){var n,r=t("../../node_modules/core-js/internals/an-object.js"),s=t("../../node_modules/core-js/internals/object-define-properties.js"),i=t("../../node_modules/core-js/internals/enum-bug-keys.js"),l=t("../../node_modules/core-js/internals/hidden-keys.js"),a=t("../../node_modules/core-js/internals/html.js"),u=t("../../node_modules/core-js/internals/document-create-element.js"),c=t("../../node_modules/core-js/internals/shared-key.js"),d="prototype",f="script",p=c("IE_PROTO"),j=function(){},m=function(e){return"<"+f+">"+e+"</"+f+">"},h=function(e){e.write(m("")),e.close();var o=e.parentWindow.Object;return e=null,o},y=function(){var e,o=u("iframe");return o.style.display="none",a.appendChild(o),o.src=String("java"+f+":"),(e=o.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F},b=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}b="undefined"!=typeof document?document.domain&&n?h(n):y():h(n);for(var e=i.length;e--;)delete b[d][i[e]];return b()};l[p]=!0,e.exports=Object.create||function(e,o){var t;return null!==e?(j[d]=r(e),t=new j,j[d]=null,t[p]=e):t=b(),void 0===o?t:s.f(t,o)}},"../../node_modules/core-js/internals/object-define-properties.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/descriptors.js"),r=t("../../node_modules/core-js/internals/v8-prototype-define-bug.js"),s=t("../../node_modules/core-js/internals/object-define-property.js"),i=t("../../node_modules/core-js/internals/an-object.js"),l=t("../../node_modules/core-js/internals/to-indexed-object.js"),a=t("../../node_modules/core-js/internals/object-keys.js");o.f=n&&!r?Object.defineProperties:function(e,o){i(e);for(var t,n=l(o),r=a(o),u=r.length,c=0;u>c;)s.f(e,t=r[c++],n[t]);return e}},"../../node_modules/core-js/internals/object-define-property.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/descriptors.js"),r=t("../../node_modules/core-js/internals/ie8-dom-define.js"),s=t("../../node_modules/core-js/internals/v8-prototype-define-bug.js"),i=t("../../node_modules/core-js/internals/an-object.js"),l=t("../../node_modules/core-js/internals/to-property-key.js"),a=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d="enumerable",f="configurable",p="writable";o.f=n?s?function(e,o,t){if(i(e),o=l(o),i(t),"function"==typeof e&&"prototype"===o&&"value"in t&&p in t&&!t[p]){var n=c(e,o);n&&n[p]&&(e[o]=t.value,t={configurable:f in t?t[f]:n[f],enumerable:d in t?t[d]:n[d],writable:!1})}return u(e,o,t)}:u:function(e,o,t){if(i(e),o=l(o),i(t),r)try{return u(e,o,t)}catch(e){}if("get"in t||"set"in t)throw new a("Accessors not supported");return"value"in t&&(e[o]=t.value),e}},"../../node_modules/core-js/internals/object-get-own-property-descriptor.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/descriptors.js"),r=t("../../node_modules/core-js/internals/function-call.js"),s=t("../../node_modules/core-js/internals/object-property-is-enumerable.js"),i=t("../../node_modules/core-js/internals/create-property-descriptor.js"),l=t("../../node_modules/core-js/internals/to-indexed-object.js"),a=t("../../node_modules/core-js/internals/to-property-key.js"),u=t("../../node_modules/core-js/internals/has-own-property.js"),c=t("../../node_modules/core-js/internals/ie8-dom-define.js"),d=Object.getOwnPropertyDescriptor;o.f=n?d:function(e,o){if(e=l(e),o=a(o),c)try{return d(e,o)}catch(e){}if(u(e,o))return i(!r(s.f,e,o),e[o])}},"../../node_modules/core-js/internals/object-get-own-property-names.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/object-keys-internal.js"),r=t("../../node_modules/core-js/internals/enum-bug-keys.js").concat("length","prototype");o.f=Object.getOwnPropertyNames||function(e){return n(e,r)}},"../../node_modules/core-js/internals/object-get-own-property-symbols.js":function(e,o){o.f=Object.getOwnPropertySymbols},"../../node_modules/core-js/internals/object-is-prototype-of.js":function(e,o,t){e.exports=t("../../node_modules/core-js/internals/function-uncurry-this.js")({}.isPrototypeOf)},"../../node_modules/core-js/internals/object-keys-internal.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/function-uncurry-this.js"),r=t("../../node_modules/core-js/internals/has-own-property.js"),s=t("../../node_modules/core-js/internals/to-indexed-object.js"),i=t("../../node_modules/core-js/internals/array-includes.js").indexOf,l=t("../../node_modules/core-js/internals/hidden-keys.js"),a=n([].push);e.exports=function(e,o){var t,n=s(e),u=0,c=[];for(t in n)!r(l,t)&&r(n,t)&&a(c,t);for(;o.length>u;)r(n,t=o[u++])&&(~i(c,t)||a(c,t));return c}},"../../node_modules/core-js/internals/object-keys.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/object-keys-internal.js"),r=t("../../node_modules/core-js/internals/enum-bug-keys.js");e.exports=Object.keys||function(e){return n(e,r)}},"../../node_modules/core-js/internals/object-property-is-enumerable.js":function(e,o){var t={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor;o.f=n&&!t.call({1:2},1)?function(e){var o=n(this,e);return!!o&&o.enumerable}:t},"../../node_modules/core-js/internals/ordinary-to-primitive.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/function-call.js"),r=t("../../node_modules/core-js/internals/is-callable.js"),s=t("../../node_modules/core-js/internals/is-object.js"),i=TypeError;e.exports=function(e,o){var t,l;if("string"===o&&r(t=e.toString)&&!s(l=n(t,e))||r(t=e.valueOf)&&!s(l=n(t,e))||"string"!==o&&r(t=e.toString)&&!s(l=n(t,e)))return l;throw new i("Can't convert object to primitive value")}},"../../node_modules/core-js/internals/own-keys.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/get-built-in.js"),r=t("../../node_modules/core-js/internals/function-uncurry-this.js"),s=t("../../node_modules/core-js/internals/object-get-own-property-names.js"),i=t("../../node_modules/core-js/internals/object-get-own-property-symbols.js"),l=t("../../node_modules/core-js/internals/an-object.js"),a=r([].concat);e.exports=n("Reflect","ownKeys")||function(e){var o=s.f(l(e)),t=i.f;return t?a(o,t(e)):o}},"../../node_modules/core-js/internals/require-object-coercible.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/is-null-or-undefined.js"),r=TypeError;e.exports=function(e){if(n(e))throw new r("Can't call method on "+e);return e}},"../../node_modules/core-js/internals/shared-key.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/shared.js"),r=t("../../node_modules/core-js/internals/uid.js"),s=n("keys");e.exports=function(e){return s[e]||(s[e]=r(e))}},"../../node_modules/core-js/internals/shared-store.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/is-pure.js"),r=t("../../node_modules/core-js/internals/global-this.js"),s=t("../../node_modules/core-js/internals/define-global-property.js"),i="__core-js_shared__",l=e.exports=r[i]||s(i,{});(l.versions||(l.versions=[])).push({version:"3.44.0",mode:n?"pure":"global",copyright:"\xa9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",source:"https://github.com/zloirock/core-js"})},"../../node_modules/core-js/internals/shared.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/shared-store.js");e.exports=function(e,o){return n[e]||(n[e]=o||{})}},"../../node_modules/core-js/internals/symbol-constructor-detection.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/environment-v8-version.js"),r=t("../../node_modules/core-js/internals/fails.js"),s=t("../../node_modules/core-js/internals/global-this.js").String;e.exports=!!Object.getOwnPropertySymbols&&!r(function(){var e=Symbol("symbol detection");return!s(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},"../../node_modules/core-js/internals/to-absolute-index.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/to-integer-or-infinity.js"),r=Math.max,s=Math.min;e.exports=function(e,o){var t=n(e);return t<0?r(t+o,0):s(t,o)}},"../../node_modules/core-js/internals/to-indexed-object.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/indexed-object.js"),r=t("../../node_modules/core-js/internals/require-object-coercible.js");e.exports=function(e){return n(r(e))}},"../../node_modules/core-js/internals/to-integer-or-infinity.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/math-trunc.js");e.exports=function(e){var o=+e;return o!=o||0===o?0:n(o)}},"../../node_modules/core-js/internals/to-length.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/to-integer-or-infinity.js"),r=Math.min;e.exports=function(e){var o=n(e);return o>0?r(o,0x1fffffffffffff):0}},"../../node_modules/core-js/internals/to-object.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/require-object-coercible.js"),r=Object;e.exports=function(e){return r(n(e))}},"../../node_modules/core-js/internals/to-primitive.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/function-call.js"),r=t("../../node_modules/core-js/internals/is-object.js"),s=t("../../node_modules/core-js/internals/is-symbol.js"),i=t("../../node_modules/core-js/internals/get-method.js"),l=t("../../node_modules/core-js/internals/ordinary-to-primitive.js"),a=t("../../node_modules/core-js/internals/well-known-symbol.js"),u=TypeError,c=a("toPrimitive");e.exports=function(e,o){if(!r(e)||s(e))return e;var t,a=i(e,c);if(a){if(void 0===o&&(o="default"),!r(t=n(a,e,o))||s(t))return t;throw new u("Can't convert object to primitive value")}return void 0===o&&(o="number"),l(e,o)}},"../../node_modules/core-js/internals/to-property-key.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/to-primitive.js"),r=t("../../node_modules/core-js/internals/is-symbol.js");e.exports=function(e){var o=n(e,"string");return r(o)?o:o+""}},"../../node_modules/core-js/internals/try-to-string.js":function(e){var o=String;e.exports=function(e){try{return o(e)}catch(e){return"Object"}}},"../../node_modules/core-js/internals/uid.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/function-uncurry-this.js"),r=0,s=Math.random(),i=n(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++r+s,36)}},"../../node_modules/core-js/internals/use-symbol-as-uid.js":function(e,o,t){e.exports=t("../../node_modules/core-js/internals/symbol-constructor-detection.js")&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"../../node_modules/core-js/internals/v8-prototype-define-bug.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/descriptors.js"),r=t("../../node_modules/core-js/internals/fails.js");e.exports=n&&r(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},"../../node_modules/core-js/internals/weak-map-basic-detection.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/global-this.js"),r=t("../../node_modules/core-js/internals/is-callable.js"),s=n.WeakMap;e.exports=r(s)&&/native code/.test(String(s))},"../../node_modules/core-js/internals/well-known-symbol.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/global-this.js"),r=t("../../node_modules/core-js/internals/shared.js"),s=t("../../node_modules/core-js/internals/has-own-property.js"),i=t("../../node_modules/core-js/internals/uid.js"),l=t("../../node_modules/core-js/internals/symbol-constructor-detection.js"),a=t("../../node_modules/core-js/internals/use-symbol-as-uid.js"),u=n.Symbol,c=r("wks"),d=a?u.for||u:u&&u.withoutSetter||i;e.exports=function(e){return s(c,e)||(c[e]=l&&s(u,e)?u[e]:d("Symbol."+e)),c[e]}},"../../node_modules/core-js/modules/es.array.includes.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/export.js"),r=t("../../node_modules/core-js/internals/array-includes.js").includes,s=t("../../node_modules/core-js/internals/fails.js"),i=t("../../node_modules/core-js/internals/add-to-unscopables.js");n({target:"Array",proto:!0,forced:s(function(){return![,].includes()})},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},"../../node_modules/core-js/modules/es.object.has-own.js":function(e,o,t){t("../../node_modules/core-js/internals/export.js")({target:"Object",stat:!0},{hasOwn:t("../../node_modules/core-js/internals/has-own-property.js")})}},__webpack_module_cache__={};function __webpack_require__(e){var o=__webpack_module_cache__[e];if(void 0!==o)return o.exports;var t=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(t.exports,t,t.exports,__webpack_require__),t.exports}__webpack_require__.d=(e,o)=>{for(var t in o)__webpack_require__.o(o,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},__webpack_require__.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),__webpack_require__.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};for(var __webpack_i__ in(()=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ky:()=>C,TimeoutError:()=>O,HTTPError:()=>o,sseHook:()=>e});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{createHook:()=>N}),__webpack_require__("../../node_modules/core-js/modules/es.object.has-own.js"),__webpack_require__("../../node_modules/core-js/modules/es.array.includes.js");class o extends Error{constructor(e,o,t){var n;const r=e.status||0===e.status?e.status:"",s=null!=(n=e.statusText)?n:"",i=`${r} ${s}`.trim();super(`Request failed with ${i?`status code ${i}`:"an unknown error"}: ${o.method} ${o.url}`),this.name="HTTPError",this.response=e,this.request=o,this.options=t}}class t extends Error{constructor(e){let o="Non-error value was thrown";try{"string"==typeof e?o=e:e&&"object"==typeof e&&"message"in e&&"string"==typeof e.message&&(o=e.message)}catch{}super(o),this.name="NonError",this.value=e}}class n extends Error{constructor(e){const o=(null==e?void 0:e.cause)?e.cause instanceof Error?e.cause:new t(e.cause):void 0;super((null==e?void 0:e.code)?`Forced retry: ${e.code}`:"Forced retry",o?{cause:o}:void 0),this.name="ForceRetryError",this.customDelay=null==e?void 0:e.delay,this.code=null==e?void 0:e.code,this.customRequest=null==e?void 0:e.request}}let r=(()=>{let e=!1,o=!1,t="function"==typeof globalThis.Request;if("function"==typeof globalThis.ReadableStream&&t)try{o=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type")}catch(e){if(e instanceof Error&&"unsupported BodyInit type"===e.message)return!1;throw e}return e&&!o})(),s="function"==typeof globalThis.AbortController,i="function"==typeof globalThis.AbortSignal&&"function"==typeof globalThis.AbortSignal.any,l="function"==typeof globalThis.ReadableStream,a="function"==typeof globalThis.FormData,u=["get","post","put","patch","head","delete"],c={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},d=new TextEncoder().encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length,f=Symbol("stop");class p{constructor(e){this.options=e}}let j=e=>new p(e),m={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,prefixUrl:!0,retry:!0,timeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0,context:!0},h={next:!0},y={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,duplex:!0},b=(e,o,t)=>{let n,r=0;return e.pipeThrough(new TransformStream({transform(e,s){if(s.enqueue(e),n){r+=n.byteLength;let e=0===o?0:r/o;e>=1&&(e=1-Number.EPSILON),null==t||t({percent:e,totalBytes:Math.max(o,r),transferredBytes:r},n)}n=e},flush(){n&&(r+=n.byteLength,null==t||t({percent:1,totalBytes:Math.max(o,r),transferredBytes:r},n))}}))},_=e=>null!==e&&"object"==typeof e,g=function(){for(var e=arguments.length,o=Array(e),t=0;t<e;t++)o[t]=arguments[t];for(let e of o)if((!_(e)||Array.isArray(e))&&void 0!==e)throw TypeError("The `options` argument must be an object");return T({},...o)},v=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=new globalThis.Headers(e),n=o instanceof globalThis.Headers;for(let[e,r]of new globalThis.Headers(o).entries())n&&"undefined"===r||void 0===r?t.delete(e):t.set(e,r);return t};function w(e,o,t){var n,r;return Object.hasOwn(o,t)&&void 0===o[t]?[]:T(null!=(n=e[t])?n:[],null!=(r=o[t])?r:[])}let x=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{beforeRequest:w(e,o,"beforeRequest"),beforeRetry:w(e,o,"beforeRetry"),afterResponse:w(e,o,"afterResponse"),beforeError:w(e,o,"beforeError")}},k=(e,o)=>{let t=new URLSearchParams;for(let n of[e,o])if(void 0!==n)if(n instanceof URLSearchParams)for(let[e,o]of n.entries())t.append(e,o);else if(Array.isArray(n))for(let e of n){if(!Array.isArray(e)||2!==e.length)throw TypeError("Array search parameters must be provided in [[key, value], ...] format");t.append(String(e[0]),String(e[1]))}else if(_(n))for(let[e,o]of Object.entries(n))void 0!==o&&t.append(e,String(o));else for(let[e,o]of new URLSearchParams(n).entries())t.append(e,o);return t},T=function(){let e;for(var o=arguments.length,t=Array(o),n=0;n<o;n++)t[n]=arguments[n];let r={},s={},l={},a=[];for(let o of t)if(Array.isArray(o))Array.isArray(r)||(r=[]),r=[...r,...o];else if(_(o)){for(let[t,n]of Object.entries(o)){if("signal"===t&&n instanceof globalThis.AbortSignal){a.push(n);continue}if("context"===t){if(null!=n&&(!_(n)||Array.isArray(n)))throw TypeError("The `context` option must be an object");r={...r,context:null==n?{}:{...r.context,...n}};continue}if("searchParams"===t){e=null==n?void 0:void 0===e?n:k(e,n);continue}_(n)&&t in r&&(n=T(r[t],n)),r={...r,[t]:n}}_(o.hooks)&&(l=x(l,o.hooks),r.hooks=l),_(o.headers)&&(s=v(s,o.headers),r.headers=s)}return void 0!==e&&(r.searchParams=e),a.length>0&&(1===a.length?r.signal=a[0]:i?r.signal=AbortSignal.any(a):r.signal=a.at(-1)),void 0===r.context&&(r.context={}),r},R={limit:2,methods:["get","put","head","delete","options","trace"],statusCodes:[408,413,429,500,502,503,504],afterStatusCodes:[413,429,503],maxRetryAfter:1/0,backoffLimit:1/0,delay:e=>.3*2**(e-1)*1e3,jitter:void 0,retryOnTimeout:!1},S=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("number"==typeof e)return{...R,limit:e};if(e.methods&&!Array.isArray(e.methods))throw Error("retry.methods must be an array");if(e.statusCodes&&!Array.isArray(e.statusCodes))throw Error("retry.statusCodes must be an array");return{...R,...e}};class O extends Error{constructor(e){super(`Request timed out: ${e.method} ${e.url}`),this.name="TimeoutError",this.request=e}}async function P(e,o,t,n){return new Promise((r,s)=>{let i=setTimeout(()=>{t&&t.abort(),s(new O(e))},n.timeout);n.fetch(e,o).then(r).catch(s).then(()=>{clearTimeout(i)})})}async function q(e,o){let{signal:t}=o;return new Promise((o,n)=>{function r(){clearTimeout(s),n(t.reason)}t&&(t.throwIfAborted(),t.addEventListener("abort",r,{once:!0}));let s=setTimeout(()=>{null==t||t.removeEventListener("abort",r),o()},e)})}class E{static create(e,t){let r=new E(e,t),s=async()=>{if("number"==typeof r.#e.timeout&&r.#e.timeout>0x7fffffff)throw RangeError("The `timeout` option cannot be greater than 2147483647");await Promise.resolve();let e=await r.#o();for(let o of r.#e.hooks.afterResponse){let i=r.#t(e.clone()),l=await o(r.request,r.#n(),i,{retryCount:r.#r});if(l instanceof globalThis.Response&&(e=l),l instanceof p){var t,s;throw await Promise.all([null==(t=i.body)?void 0:t.cancel(),null==(s=e.body)?void 0:s.cancel()]),new n(l.options)}}if(r.#t(e),!e.ok&&("function"==typeof r.#e.throwHttpErrors?r.#e.throwHttpErrors(e.status):r.#e.throwHttpErrors)){let t=new o(e,r.request,r.#n());for(let e of r.#e.hooks.beforeError)t=await e(t,{retryCount:r.#r});throw t}if(r.#e.onDownloadProgress){if("function"!=typeof r.#e.onDownloadProgress)throw TypeError("The `onDownloadProgress` option must be a function");if(!l)throw Error("Streams are not supported in your environment. `ReadableStream` is missing.");return((e,o)=>{if(!e.body)return e;if(204===e.status)return new Response(null,{status:e.status,statusText:e.statusText,headers:e.headers});let t=Math.max(0,Number(e.headers.get("content-length"))||0);return new Response(b(e.body,t,o),{status:e.status,statusText:e.statusText,headers:e.headers})})(e.clone(),r.#e.onDownloadProgress)}return e},i=r.#s(s).finally(async()=>{var e,o;let t=r.#i,n=[];t&&!t.bodyUsed&&n.push(null==(e=t.body)?void 0:e.cancel()),r.request.bodyUsed||n.push(null==(o=r.request.body)?void 0:o.cancel()),await Promise.all(n)});for(let[e,o]of Object.entries(c)){var a,u;("bytes"!==e||"function"==typeof(null==(u=globalThis.Response)||null==(a=u.prototype)?void 0:a.bytes))&&(i[e]=async()=>{r.request.headers.set("accept",r.request.headers.get("accept")||o);let n=await i;if("json"===e){if(204===n.status)return"";let e=await n.text();return""===e?"":t.parseJson?t.parseJson(e):JSON.parse(e)}return n[e]()})}return i}static #l(e){return!e||"object"!=typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.fromEntries(Object.entries(e).filter(e=>{let[,o]=e;return void 0!==o}))}#a;#r;#u;#e;#i;#c;#d;constructor(e,o={}){var t,n,l,c,d,f,p,j,m,h,y,b;if(this.#r=0,this.#u=e,this.#e={...o,headers:v(this.#u.headers,o.headers),hooks:x({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},o.hooks),method:(e=>u.includes(e)?e.toUpperCase():e)(null!=(n=null!=(t=o.method)?t:this.#u.method)?n:"GET"),prefixUrl:String(o.prefixUrl||""),retry:S(o.retry),throwHttpErrors:null==(l=o.throwHttpErrors)||l,timeout:null!=(c=o.timeout)?c:1e4,fetch:null!=(d=o.fetch)?d:globalThis.fetch.bind(globalThis),context:null!=(f=o.context)?f:{}},"string"!=typeof this.#u&&!(this.#u instanceof URL||this.#u instanceof globalThis.Request))throw TypeError("`input` must be a string, URL, or Request");if(this.#e.prefixUrl&&"string"==typeof this.#u){if(this.#u.startsWith("/"))throw Error("`input` must not begin with a slash when using `prefixUrl`");this.#e.prefixUrl.endsWith("/")||(this.#e.prefixUrl+="/"),this.#u=this.#e.prefixUrl+this.#u}s&&i&&(this.#c=null!=(p=this.#e.signal)?p:this.#u.signal,this.#a=new globalThis.AbortController,this.#e.signal=this.#c?AbortSignal.any([this.#c,this.#a.signal]):this.#a.signal),r&&(this.#e.duplex="half"),void 0!==this.#e.json&&(this.#e.body=null!=(h=null==(j=(m=this.#e).stringifyJson)?void 0:j.call(m,this.#e.json))?h:JSON.stringify(this.#e.json),this.#e.headers.set("content-type",null!=(y=this.#e.headers.get("content-type"))?y:"application/json"));const _=o.headers&&new globalThis.Headers(o.headers).has("content-type");if(this.#u instanceof globalThis.Request&&(a&&this.#e.body instanceof globalThis.FormData||this.#e.body instanceof URLSearchParams)&&!_&&this.#e.headers.delete("content-type"),this.request=new globalThis.Request(this.#u,this.#e),(e=>void 0!==e&&(Array.isArray(e)?e.length>0:e instanceof URLSearchParams?e.size>0:"object"==typeof e?Object.keys(e).length>0:"string"==typeof e?e.trim().length>0:!!e))(this.#e.searchParams)){const e="string"==typeof this.#e.searchParams?this.#e.searchParams.replace(/^\?/,""):new URLSearchParams(E.#l(this.#e.searchParams)).toString(),o=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,"?"+e);this.request=new globalThis.Request(o,this.#e)}if(this.#e.onUploadProgress){if("function"!=typeof this.#e.onUploadProgress)throw TypeError("The `onUploadProgress` option must be a function");if(!r)throw Error("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");this.request=this.#f(this.request,null!=(b=this.#e.body)?b:void 0)}}#p(){let e=this.#e.retry.delay(this.#r),o=e;return!0===this.#e.retry.jitter?o=Math.random()*e:"function"==typeof this.#e.retry.jitter&&(!Number.isFinite(o=this.#e.retry.jitter(e))||o<0)&&(o=e),Math.min(this.#e.retry.backoffLimit,o)}async #j(e){var r,s,i,l,a,u,c,d;if(this.#r++,this.#r>this.#e.retry.limit)throw e;let f=e instanceof Error?e:new t(e);if(f instanceof n)return null!=(r=f.customDelay)?r:this.#p();if(!this.#e.retry.methods.includes(this.request.method.toLowerCase()))throw e;if(void 0!==this.#e.retry.shouldRetry){let o=await this.#e.retry.shouldRetry({error:f,retryCount:this.#r});if(!1===o)throw e;if(!0===o)return this.#p()}if(((c=e)instanceof O||(null==c?void 0:c.name)===O.name)&&!this.#e.retry.retryOnTimeout)throw e;if((d=e)instanceof o||(null==d?void 0:d.name)===o.name){if(!this.#e.retry.statusCodes.includes(e.response.status))throw e;let o=null!=(a=null!=(l=null!=(i=null!=(s=e.response.headers.get("Retry-After"))?s:e.response.headers.get("RateLimit-Reset"))?i:e.response.headers.get("X-RateLimit-Retry-After"))?l:e.response.headers.get("X-RateLimit-Reset"))?a:e.response.headers.get("X-Rate-Limit-Reset");if(o&&this.#e.retry.afterStatusCodes.includes(e.response.status)){let e=1e3*Number(o);Number.isNaN(e)?e=Date.parse(o)-Date.now():e>=Date.parse("2024-01-01")&&(e-=Date.now());let t=null!=(u=this.#e.retry.maxRetryAfter)?u:e;return e<t?e:t}if(413===e.response.status)throw e}return this.#p()}#t(e){return this.#e.parseJson&&(e.json=async()=>this.#e.parseJson(await e.text())),e}async #s(e){try{return await e()}catch(t){let o=Math.min(await this.#j(t),0x7fffffff);if(this.#r<1)throw t;if(await q(o,this.#c?{signal:this.#c}:{}),t instanceof n&&t.customRequest){let e=this.#e.signal?new globalThis.Request(t.customRequest,{signal:this.#e.signal}):new globalThis.Request(t.customRequest);this.#m(e)}for(let e of this.#e.hooks.beforeRetry){let o=await e({request:this.request,options:this.#n(),error:t,retryCount:this.#r});if(o instanceof globalThis.Request){this.#m(o);break}if(o instanceof globalThis.Response)return o;if(o===f)return}return this.#s(e)}}async #o(){var e;for(let o of((null==(e=this.#a)?void 0:e.signal.aborted)&&(this.#a=new globalThis.AbortController,this.#e.signal=this.#c?AbortSignal.any([this.#c,this.#a.signal]):this.#a.signal,this.request=new globalThis.Request(this.request,{signal:this.#e.signal})),this.#e.hooks.beforeRequest)){let e=await o(this.request,this.#n(),{retryCount:this.#r});if(e instanceof Response)return e;if(e instanceof globalThis.Request){this.#m(e);break}}let o=((e,o)=>{let t={};for(let n in o)Object.hasOwn(o,n)&&(n in y||n in m||n in e&&!(n in h)||(t[n]=o[n]));return t})(this.request,this.#e);return(this.#i=this.request,this.request=this.#i.clone(),!1===this.#e.timeout)?this.#e.fetch(this.#i,o):P(this.#i,o,this.#a,this.#e)}#n(){if(!this.#d){let{hooks:e,...o}=this.#e;this.#d=Object.freeze(o)}return this.#d}#m(e){this.#d=void 0,this.request=this.#f(e)}#f(e,o){var t;return this.#e.onUploadProgress&&e.body?((e,o,t)=>{if(!e.body)return e;let n=(e=>{if(!e)return 0;if(e instanceof FormData){let o=0;for(let[t,n]of e)o+=d,o+=new TextEncoder().encode(`Content-Disposition: form-data; name="${t}"`).length,o+="string"==typeof n?new TextEncoder().encode(n).length:n.size;return o}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength;if("string"==typeof e)return new TextEncoder().encode(e).length;if(e instanceof URLSearchParams)return new TextEncoder().encode(e.toString()).length;if("byteLength"in e)return e.byteLength;if("object"==typeof e&&null!==e)try{let o=JSON.stringify(e);return new TextEncoder().encode(o).length}catch{}return 0})(null!=t?t:e.body);return new Request(e,{duplex:"half",body:b(e.body,n,o)})})(e,this.#e.onUploadProgress,null!=(t=null!=o?o:this.#e.body)?t:void 0):e}}let A=e=>{let o=(o,t)=>E.create(o,g(e,t));for(let t of u)o[t]=(o,n)=>E.create(o,g(e,n,{method:t}));return o.create=e=>A(g(e)),o.extend=o=>("function"==typeof o&&(o=o(null!=e?e:{})),A(g(e,o))),o.stop=f,o.retry=j,o},C=A(),L=[239,187,191],N=e=>async(o,t,n)=>{if(!n.ok||!n.body)return;let r=!1,s=o=>{var t;r||(r=!0,null==(t=e.onCompleted)||t.call(e,o))},i=n.body.getReader(),l=new TextDecoder("utf8"),a=function(e){let o,t,n,r,s,i,l;return a(),{feed:function(a){var u;t=t?t+a:a,o&&(u=t,L.every((e,o)=>u.charCodeAt(o)===e))&&(t=t.slice(L.length)),o=!1;let c=t.length,d=0,f=!1;for(;d<c;){let o;f&&("\n"===t[d]&&++d,f=!1);let a=-1,u=r;for(let e=n;a<0&&e<c;++e)":"===(o=t[e])&&u<0?u=e-d:"\r"===o?(f=!0,a=e-d):"\n"===o&&(a=e-d);if(a<0){n=c-d,r=u;break}n=0,r=-1,function(o,t,n,r){if(0===r){l.length>0&&(e({type:"event",id:s,event:i||void 0,data:l.slice(0,-1)}),l="",s=void 0),i=void 0;return}let a=n<0,u=o.slice(t,t+(a?r:n)),c=0;c=a?r:" "===o[t+n+1]?n+2:n+1;let d=t+c,f=r-c,p=o.slice(d,d+f).toString();if("data"===u)l+=p?"".concat(p,"\n"):"\n";else if("event"===u)i=p;else if("id"!==u||p.includes("\0")){if("retry"===u){let o=parseInt(p,10);Number.isNaN(o)||e({type:"reconnect-interval",value:o})}}else s=p}(t,d,u,a),d+=a+1}d===c?t="":d>0&&(t=t.slice(d))},reset:a};function a(){o=!0,t="",n=0,r=-1,s=void 0,i=void 0,l=""}}(o=>{var t,n,r;if("event"===o.type&&(null==(t=e.onMessage)||t.call(e,o)),"event"===o.type&&o.data)for(let t of(null==(n=e.onEvent)||n.call(e,o),o.data.split("\n")))e.onData(t);else"reconnect-interval"===o.type&&(null==(r=e.onReconnectInterval)||r.call(e,o.value))}),u=()=>{i.read().then(e=>{e.done?s():(a.feed(l.decode(e.value,{stream:!0})),u())}).catch(t=>{var n;if(o.signal.aborted){null==(n=e.onAborted)||n.call(e);return}s(t)})};return u(),n}})(),exports.HTTPError=__webpack_exports__.HTTPError,exports.TimeoutError=__webpack_exports__.TimeoutError,exports.ky=__webpack_exports__.ky,exports.sseHook=__webpack_exports__.sseHook,__webpack_exports__)-1===["HTTPError","TimeoutError","ky","sseHook"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
|
package/dist/http.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see http.esm.js.LICENSE.txt */
|
|
2
|
-
var e={"../../node_modules/core-js/internals/a-callable.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/is-callable.js"),r=n("../../node_modules/core-js/internals/try-to-string.js"),s=TypeError;e.exports=function(e){if(t(e))return e;throw new s(r(e)+" is not a function")}},"../../node_modules/core-js/internals/a-possible-prototype.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/is-possible-prototype.js"),r=String,s=TypeError;e.exports=function(e){if(t(e))return e;throw new s("Can't set "+r(e)+" as a prototype")}},"../../node_modules/core-js/internals/add-to-unscopables.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/well-known-symbol.js"),r=n("../../node_modules/core-js/internals/object-create.js"),s=n("../../node_modules/core-js/internals/object-define-property.js").f,i=t("unscopables"),l=Array.prototype;void 0===l[i]&&s(l,i,{configurable:!0,value:r(null)}),e.exports=function(e){l[i][e]=!0}},"../../node_modules/core-js/internals/an-object.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/is-object.js"),r=String,s=TypeError;e.exports=function(e){if(t(e))return e;throw new s(r(e)+" is not an object")}},"../../node_modules/core-js/internals/array-buffer-basic-detection.js":function(e){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},"../../node_modules/core-js/internals/array-buffer-view-core.js":function(e,o,n){var t,r,s,i=n("../../node_modules/core-js/internals/array-buffer-basic-detection.js"),l=n("../../node_modules/core-js/internals/descriptors.js"),a=n("../../node_modules/core-js/internals/global-this.js"),u=n("../../node_modules/core-js/internals/is-callable.js"),c=n("../../node_modules/core-js/internals/is-object.js"),d=n("../../node_modules/core-js/internals/has-own-property.js"),j=n("../../node_modules/core-js/internals/classof.js"),f=n("../../node_modules/core-js/internals/try-to-string.js"),p=n("../../node_modules/core-js/internals/create-non-enumerable-property.js"),m=n("../../node_modules/core-js/internals/define-built-in.js"),y=n("../../node_modules/core-js/internals/define-built-in-accessor.js"),h=n("../../node_modules/core-js/internals/object-is-prototype-of.js"),_=n("../../node_modules/core-js/internals/object-get-prototype-of.js"),b=n("../../node_modules/core-js/internals/object-set-prototype-of.js"),g=n("../../node_modules/core-js/internals/well-known-symbol.js"),v=n("../../node_modules/core-js/internals/uid.js"),w=n("../../node_modules/core-js/internals/internal-state.js"),x=w.enforce,T=w.get,R=a.Int8Array,O=R&&R.prototype,S=a.Uint8ClampedArray,A=S&&S.prototype,E=R&&_(R),P=O&&_(O),k=Object.prototype,q=a.TypeError,C=g("toStringTag"),I=v("TYPED_ARRAY_TAG"),U="TypedArrayConstructor",D=i&&!!b&&"Opera"!==j(a.opera),F=!1,L={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},N={BigInt64Array:8,BigUint64Array:8},M=function(e){var o=_(e);if(c(o)){var n=T(o);return n&&d(n,U)?n[U]:M(o)}},B=function(e){if(!c(e))return!1;var o=j(e);return d(L,o)||d(N,o)};for(t in L)(s=(r=a[t])&&r.prototype)?x(s)[U]=r:D=!1;for(t in N)(s=(r=a[t])&&r.prototype)&&(x(s)[U]=r);if((!D||!u(E)||E===Function.prototype)&&(E=function(){throw new q("Incorrect invocation")},D))for(t in L)a[t]&&b(a[t],E);if((!D||!P||P===k)&&(P=E.prototype,D))for(t in L)a[t]&&b(a[t].prototype,P);if(D&&_(A)!==P&&b(A,P),l&&!d(P,C))for(t in F=!0,y(P,C,{configurable:!0,get:function(){return c(this)?this[I]:void 0}}),L)a[t]&&p(a[t],I,t);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:D,TYPED_ARRAY_TAG:F&&I,aTypedArray:function(e){if(B(e))return e;throw new q("Target is not a typed array")},aTypedArrayConstructor:function(e){if(u(e)&&(!b||h(E,e)))return e;throw new q(f(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,o,n,t){if(l){if(n)for(var r in L){var s=a[r];if(s&&d(s.prototype,e))try{delete s.prototype[e]}catch(n){try{s.prototype[e]=o}catch(e){}}}(!P[e]||n)&&m(P,e,n?o:D&&O[e]||o,t)}},exportTypedArrayStaticMethod:function(e,o,n){var t,r;if(l){if(b){if(n){for(t in L)if((r=a[t])&&d(r,e))try{delete r[e]}catch(e){}}if(E[e]&&!n)return;try{return m(E,e,n?o:D&&E[e]||o)}catch(e){}}for(t in L)(r=a[t])&&(!r[e]||n)&&m(r,e,o)}},getTypedArrayConstructor:M,isView:function(e){if(!c(e))return!1;var o=j(e);return"DataView"===o||d(L,o)||d(N,o)},isTypedArray:B,TypedArray:E,TypedArrayPrototype:P}},"../../node_modules/core-js/internals/array-includes.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/to-indexed-object.js"),r=n("../../node_modules/core-js/internals/to-absolute-index.js"),s=n("../../node_modules/core-js/internals/length-of-array-like.js"),i=function(e){return function(o,n,i){var l,a=t(o),u=s(a);if(0===u)return!e&&-1;var c=r(i,u);if(e&&n!=n){for(;u>c;)if((l=a[c++])!=l)return!0}else for(;u>c;c++)if((e||c in a)&&a[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},"../../node_modules/core-js/internals/classof-raw.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/function-uncurry-this.js"),r=t({}.toString),s=t("".slice);e.exports=function(e){return s(r(e),8,-1)}},"../../node_modules/core-js/internals/classof.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/to-string-tag-support.js"),r=n("../../node_modules/core-js/internals/is-callable.js"),s=n("../../node_modules/core-js/internals/classof-raw.js"),i=n("../../node_modules/core-js/internals/well-known-symbol.js")("toStringTag"),l=Object,a="Arguments"===s(function(){return arguments}()),u=function(e,o){try{return e[o]}catch(e){}};e.exports=t?s:function(e){var o,n,t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=u(o=l(e),i))?n:a?s(o):"Object"===(t=s(o))&&r(o.callee)?"Arguments":t}},"../../node_modules/core-js/internals/copy-constructor-properties.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/has-own-property.js"),r=n("../../node_modules/core-js/internals/own-keys.js"),s=n("../../node_modules/core-js/internals/object-get-own-property-descriptor.js"),i=n("../../node_modules/core-js/internals/object-define-property.js");e.exports=function(e,o,n){for(var l=r(o),a=i.f,u=s.f,c=0;c<l.length;c++){var d=l[c];t(e,d)||n&&t(n,d)||a(e,d,u(o,d))}}},"../../node_modules/core-js/internals/correct-prototype-getter.js":function(e,o,n){e.exports=!n("../../node_modules/core-js/internals/fails.js")(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},"../../node_modules/core-js/internals/create-non-enumerable-property.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/descriptors.js"),r=n("../../node_modules/core-js/internals/object-define-property.js"),s=n("../../node_modules/core-js/internals/create-property-descriptor.js");e.exports=t?function(e,o,n){return r.f(e,o,s(1,n))}:function(e,o,n){return e[o]=n,e}},"../../node_modules/core-js/internals/create-property-descriptor.js":function(e){e.exports=function(e,o){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:o}}},"../../node_modules/core-js/internals/define-built-in-accessor.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/make-built-in.js"),r=n("../../node_modules/core-js/internals/object-define-property.js");e.exports=function(e,o,n){return n.get&&t(n.get,o,{getter:!0}),n.set&&t(n.set,o,{setter:!0}),r.f(e,o,n)}},"../../node_modules/core-js/internals/define-built-in.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/is-callable.js"),r=n("../../node_modules/core-js/internals/object-define-property.js"),s=n("../../node_modules/core-js/internals/make-built-in.js"),i=n("../../node_modules/core-js/internals/define-global-property.js");e.exports=function(e,o,n,l){l||(l={});var a=l.enumerable,u=void 0!==l.name?l.name:o;if(t(n)&&s(n,u,l),l.global)a?e[o]=n:i(o,n);else{try{l.unsafe?e[o]&&(a=!0):delete e[o]}catch(e){}a?e[o]=n:r.f(e,o,{value:n,enumerable:!1,configurable:!l.nonConfigurable,writable:!l.nonWritable})}return e}},"../../node_modules/core-js/internals/define-global-property.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/global-this.js"),r=Object.defineProperty;e.exports=function(e,o){try{r(t,e,{value:o,configurable:!0,writable:!0})}catch(n){t[e]=o}return o}},"../../node_modules/core-js/internals/descriptors.js":function(e,o,n){e.exports=!n("../../node_modules/core-js/internals/fails.js")(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},"../../node_modules/core-js/internals/document-create-element.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/global-this.js"),r=n("../../node_modules/core-js/internals/is-object.js"),s=t.document,i=r(s)&&r(s.createElement);e.exports=function(e){return i?s.createElement(e):{}}},"../../node_modules/core-js/internals/enum-bug-keys.js":function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"../../node_modules/core-js/internals/environment-user-agent.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/global-this.js").navigator,r=t&&t.userAgent;e.exports=r?String(r):""},"../../node_modules/core-js/internals/environment-v8-version.js":function(e,o,n){var t,r,s=n("../../node_modules/core-js/internals/global-this.js"),i=n("../../node_modules/core-js/internals/environment-user-agent.js"),l=s.process,a=s.Deno,u=l&&l.versions||a&&a.version,c=u&&u.v8;c&&(r=(t=c.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!r&&i&&(!(t=i.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=i.match(/Chrome\/(\d+)/))&&(r=+t[1]),e.exports=r},"../../node_modules/core-js/internals/export.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/global-this.js"),r=n("../../node_modules/core-js/internals/object-get-own-property-descriptor.js").f,s=n("../../node_modules/core-js/internals/create-non-enumerable-property.js"),i=n("../../node_modules/core-js/internals/define-built-in.js"),l=n("../../node_modules/core-js/internals/define-global-property.js"),a=n("../../node_modules/core-js/internals/copy-constructor-properties.js"),u=n("../../node_modules/core-js/internals/is-forced.js");e.exports=function(e,o){var n,c,d,j,f,p=e.target,m=e.global,y=e.stat;if(n=m?t:y?t[p]||l(p,{}):t[p]&&t[p].prototype)for(c in o){if(j=o[c],d=e.dontCallGetSet?(f=r(n,c))&&f.value:n[c],!u(m?c:p+(y?".":"#")+c,e.forced)&&void 0!==d){if(typeof j==typeof d)continue;a(j,d)}(e.sham||d&&d.sham)&&s(j,"sham",!0),i(n,c,j,e)}}},"../../node_modules/core-js/internals/fails.js":function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"../../node_modules/core-js/internals/function-bind-native.js":function(e,o,n){e.exports=!n("../../node_modules/core-js/internals/fails.js")(function(){var e=(function(){}).bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},"../../node_modules/core-js/internals/function-call.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/function-bind-native.js"),r=Function.prototype.call;e.exports=t?r.bind(r):function(){return r.apply(r,arguments)}},"../../node_modules/core-js/internals/function-name.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/descriptors.js"),r=n("../../node_modules/core-js/internals/has-own-property.js"),s=Function.prototype,i=t&&Object.getOwnPropertyDescriptor,l=r(s,"name"),a=l&&(!t||t&&i(s,"name").configurable);e.exports={EXISTS:l,PROPER:l&&"something"===(function(){}).name,CONFIGURABLE:a}},"../../node_modules/core-js/internals/function-uncurry-this-accessor.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/function-uncurry-this.js"),r=n("../../node_modules/core-js/internals/a-callable.js");e.exports=function(e,o,n){try{return t(r(Object.getOwnPropertyDescriptor(e,o)[n]))}catch(e){}}},"../../node_modules/core-js/internals/function-uncurry-this.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/function-bind-native.js"),r=Function.prototype,s=r.call,i=t&&r.bind.bind(s,s);e.exports=t?i:function(e){return function(){return s.apply(e,arguments)}}},"../../node_modules/core-js/internals/get-built-in.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/global-this.js"),r=n("../../node_modules/core-js/internals/is-callable.js");e.exports=function(e,o){var n;return arguments.length<2?r(n=t[e])?n:void 0:t[e]&&t[e][o]}},"../../node_modules/core-js/internals/get-method.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/a-callable.js"),r=n("../../node_modules/core-js/internals/is-null-or-undefined.js");e.exports=function(e,o){var n=e[o];return r(n)?void 0:t(n)}},"../../node_modules/core-js/internals/global-this.js":function(e,o,n){var t=function(e){return e&&e.Math===Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof n.g&&n.g)||t("object"==typeof this&&this)||function(){return this}()||Function("return this")()},"../../node_modules/core-js/internals/has-own-property.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/function-uncurry-this.js"),r=n("../../node_modules/core-js/internals/to-object.js"),s=t({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,o){return s(r(e),o)}},"../../node_modules/core-js/internals/hidden-keys.js":function(e){e.exports={}},"../../node_modules/core-js/internals/html.js":function(e,o,n){e.exports=n("../../node_modules/core-js/internals/get-built-in.js")("document","documentElement")},"../../node_modules/core-js/internals/ie8-dom-define.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/descriptors.js"),r=n("../../node_modules/core-js/internals/fails.js"),s=n("../../node_modules/core-js/internals/document-create-element.js");e.exports=!t&&!r(function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a})},"../../node_modules/core-js/internals/indexed-object.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/function-uncurry-this.js"),r=n("../../node_modules/core-js/internals/fails.js"),s=n("../../node_modules/core-js/internals/classof-raw.js"),i=Object,l=t("".split);e.exports=r(function(){return!i("z").propertyIsEnumerable(0)})?function(e){return"String"===s(e)?l(e,""):i(e)}:i},"../../node_modules/core-js/internals/inspect-source.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/function-uncurry-this.js"),r=n("../../node_modules/core-js/internals/is-callable.js"),s=n("../../node_modules/core-js/internals/shared-store.js"),i=t(Function.toString);r(s.inspectSource)||(s.inspectSource=function(e){return i(e)}),e.exports=s.inspectSource},"../../node_modules/core-js/internals/internal-state.js":function(e,o,n){var t,r,s,i=n("../../node_modules/core-js/internals/weak-map-basic-detection.js"),l=n("../../node_modules/core-js/internals/global-this.js"),a=n("../../node_modules/core-js/internals/is-object.js"),u=n("../../node_modules/core-js/internals/create-non-enumerable-property.js"),c=n("../../node_modules/core-js/internals/has-own-property.js"),d=n("../../node_modules/core-js/internals/shared-store.js"),j=n("../../node_modules/core-js/internals/shared-key.js"),f=n("../../node_modules/core-js/internals/hidden-keys.js"),p="Object already initialized",m=l.TypeError,y=l.WeakMap;if(i||d.state){var h=d.state||(d.state=new y);h.get=h.get,h.has=h.has,h.set=h.set,t=function(e,o){if(h.has(e))throw new m(p);return o.facade=e,h.set(e,o),o},r=function(e){return h.get(e)||{}},s=function(e){return h.has(e)}}else{var _=j("state");f[_]=!0,t=function(e,o){if(c(e,_))throw new m(p);return o.facade=e,u(e,_,o),o},r=function(e){return c(e,_)?e[_]:{}},s=function(e){return c(e,_)}}e.exports={set:t,get:r,has:s,enforce:function(e){return s(e)?r(e):t(e,{})},getterFor:function(e){return function(o){var n;if(!a(o)||(n=r(o)).type!==e)throw new m("Incompatible receiver, "+e+" required");return n}}}},"../../node_modules/core-js/internals/is-callable.js":function(e){var o="object"==typeof document&&document.all;e.exports=void 0===o&&void 0!==o?function(e){return"function"==typeof e||e===o}:function(e){return"function"==typeof e}},"../../node_modules/core-js/internals/is-forced.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/fails.js"),r=n("../../node_modules/core-js/internals/is-callable.js"),s=/#|\.prototype\./,i=function(e,o){var n=a[l(e)];return n===c||n!==u&&(r(o)?t(o):!!o)},l=i.normalize=function(e){return String(e).replace(s,".").toLowerCase()},a=i.data={},u=i.NATIVE="N",c=i.POLYFILL="P";e.exports=i},"../../node_modules/core-js/internals/is-null-or-undefined.js":function(e){e.exports=function(e){return null==e}},"../../node_modules/core-js/internals/is-object.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/is-callable.js");e.exports=function(e){return"object"==typeof e?null!==e:t(e)}},"../../node_modules/core-js/internals/is-possible-prototype.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/is-object.js");e.exports=function(e){return t(e)||null===e}},"../../node_modules/core-js/internals/is-pure.js":function(e){e.exports=!1},"../../node_modules/core-js/internals/is-symbol.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/get-built-in.js"),r=n("../../node_modules/core-js/internals/is-callable.js"),s=n("../../node_modules/core-js/internals/object-is-prototype-of.js"),i=n("../../node_modules/core-js/internals/use-symbol-as-uid.js"),l=Object;e.exports=i?function(e){return"symbol"==typeof e}:function(e){var o=t("Symbol");return r(o)&&s(o.prototype,l(e))}},"../../node_modules/core-js/internals/length-of-array-like.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/to-length.js");e.exports=function(e){return t(e.length)}},"../../node_modules/core-js/internals/make-built-in.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/function-uncurry-this.js"),r=n("../../node_modules/core-js/internals/fails.js"),s=n("../../node_modules/core-js/internals/is-callable.js"),i=n("../../node_modules/core-js/internals/has-own-property.js"),l=n("../../node_modules/core-js/internals/descriptors.js"),a=n("../../node_modules/core-js/internals/function-name.js").CONFIGURABLE,u=n("../../node_modules/core-js/internals/inspect-source.js"),c=n("../../node_modules/core-js/internals/internal-state.js"),d=c.enforce,j=c.get,f=String,p=Object.defineProperty,m=t("".slice),y=t("".replace),h=t([].join),_=l&&!r(function(){return 8!==p(function(){},"length",{value:8}).length}),b=String(String).split("String"),g=e.exports=function(e,o,n){"Symbol("===m(f(o),0,7)&&(o="["+y(f(o),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(o="get "+o),n&&n.setter&&(o="set "+o),(!i(e,"name")||a&&e.name!==o)&&(l?p(e,"name",{value:o,configurable:!0}):e.name=o),_&&n&&i(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?l&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var t=d(e);return i(t,"source")||(t.source=h(b,"string"==typeof o?o:"")),e};Function.prototype.toString=g(function(){return s(this)&&j(this).source||u(this)},"toString")},"../../node_modules/core-js/internals/math-trunc.js":function(e){var o=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?n:o)(t)}},"../../node_modules/core-js/internals/object-create.js":function(e,o,n){var t,r=n("../../node_modules/core-js/internals/an-object.js"),s=n("../../node_modules/core-js/internals/object-define-properties.js"),i=n("../../node_modules/core-js/internals/enum-bug-keys.js"),l=n("../../node_modules/core-js/internals/hidden-keys.js"),a=n("../../node_modules/core-js/internals/html.js"),u=n("../../node_modules/core-js/internals/document-create-element.js"),c=n("../../node_modules/core-js/internals/shared-key.js"),d="prototype",j="script",f=c("IE_PROTO"),p=function(){},m=function(e){return"<"+j+">"+e+"</"+j+">"},y=function(e){e.write(m("")),e.close();var o=e.parentWindow.Object;return e=null,o},h=function(){var e,o=u("iframe");return o.style.display="none",a.appendChild(o),o.src=String("java"+j+":"),(e=o.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F},_=function(){try{t=new ActiveXObject("htmlfile")}catch(e){}_="undefined"!=typeof document?document.domain&&t?y(t):h():y(t);for(var e=i.length;e--;)delete _[d][i[e]];return _()};l[f]=!0,e.exports=Object.create||function(e,o){var n;return null!==e?(p[d]=r(e),n=new p,p[d]=null,n[f]=e):n=_(),void 0===o?n:s.f(n,o)}},"../../node_modules/core-js/internals/object-define-properties.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/descriptors.js"),r=n("../../node_modules/core-js/internals/v8-prototype-define-bug.js"),s=n("../../node_modules/core-js/internals/object-define-property.js"),i=n("../../node_modules/core-js/internals/an-object.js"),l=n("../../node_modules/core-js/internals/to-indexed-object.js"),a=n("../../node_modules/core-js/internals/object-keys.js");o.f=t&&!r?Object.defineProperties:function(e,o){i(e);for(var n,t=l(o),r=a(o),u=r.length,c=0;u>c;)s.f(e,n=r[c++],t[n]);return e}},"../../node_modules/core-js/internals/object-define-property.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/descriptors.js"),r=n("../../node_modules/core-js/internals/ie8-dom-define.js"),s=n("../../node_modules/core-js/internals/v8-prototype-define-bug.js"),i=n("../../node_modules/core-js/internals/an-object.js"),l=n("../../node_modules/core-js/internals/to-property-key.js"),a=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d="enumerable",j="configurable",f="writable";o.f=t?s?function(e,o,n){if(i(e),o=l(o),i(n),"function"==typeof e&&"prototype"===o&&"value"in n&&f in n&&!n[f]){var t=c(e,o);t&&t[f]&&(e[o]=n.value,n={configurable:j in n?n[j]:t[j],enumerable:d in n?n[d]:t[d],writable:!1})}return u(e,o,n)}:u:function(e,o,n){if(i(e),o=l(o),i(n),r)try{return u(e,o,n)}catch(e){}if("get"in n||"set"in n)throw new a("Accessors not supported");return"value"in n&&(e[o]=n.value),e}},"../../node_modules/core-js/internals/object-get-own-property-descriptor.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/descriptors.js"),r=n("../../node_modules/core-js/internals/function-call.js"),s=n("../../node_modules/core-js/internals/object-property-is-enumerable.js"),i=n("../../node_modules/core-js/internals/create-property-descriptor.js"),l=n("../../node_modules/core-js/internals/to-indexed-object.js"),a=n("../../node_modules/core-js/internals/to-property-key.js"),u=n("../../node_modules/core-js/internals/has-own-property.js"),c=n("../../node_modules/core-js/internals/ie8-dom-define.js"),d=Object.getOwnPropertyDescriptor;o.f=t?d:function(e,o){if(e=l(e),o=a(o),c)try{return d(e,o)}catch(e){}if(u(e,o))return i(!r(s.f,e,o),e[o])}},"../../node_modules/core-js/internals/object-get-own-property-names.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/object-keys-internal.js"),r=n("../../node_modules/core-js/internals/enum-bug-keys.js").concat("length","prototype");o.f=Object.getOwnPropertyNames||function(e){return t(e,r)}},"../../node_modules/core-js/internals/object-get-own-property-symbols.js":function(e,o){o.f=Object.getOwnPropertySymbols},"../../node_modules/core-js/internals/object-get-prototype-of.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/has-own-property.js"),r=n("../../node_modules/core-js/internals/is-callable.js"),s=n("../../node_modules/core-js/internals/to-object.js"),i=n("../../node_modules/core-js/internals/shared-key.js"),l=n("../../node_modules/core-js/internals/correct-prototype-getter.js"),a=i("IE_PROTO"),u=Object,c=u.prototype;e.exports=l?u.getPrototypeOf:function(e){var o=s(e);if(t(o,a))return o[a];var n=o.constructor;return r(n)&&o instanceof n?n.prototype:o instanceof u?c:null}},"../../node_modules/core-js/internals/object-is-prototype-of.js":function(e,o,n){e.exports=n("../../node_modules/core-js/internals/function-uncurry-this.js")({}.isPrototypeOf)},"../../node_modules/core-js/internals/object-keys-internal.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/function-uncurry-this.js"),r=n("../../node_modules/core-js/internals/has-own-property.js"),s=n("../../node_modules/core-js/internals/to-indexed-object.js"),i=n("../../node_modules/core-js/internals/array-includes.js").indexOf,l=n("../../node_modules/core-js/internals/hidden-keys.js"),a=t([].push);e.exports=function(e,o){var n,t=s(e),u=0,c=[];for(n in t)!r(l,n)&&r(t,n)&&a(c,n);for(;o.length>u;)r(t,n=o[u++])&&(~i(c,n)||a(c,n));return c}},"../../node_modules/core-js/internals/object-keys.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/object-keys-internal.js"),r=n("../../node_modules/core-js/internals/enum-bug-keys.js");e.exports=Object.keys||function(e){return t(e,r)}},"../../node_modules/core-js/internals/object-property-is-enumerable.js":function(e,o){var n={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor;o.f=t&&!n.call({1:2},1)?function(e){var o=t(this,e);return!!o&&o.enumerable}:n},"../../node_modules/core-js/internals/object-set-prototype-of.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/function-uncurry-this-accessor.js"),r=n("../../node_modules/core-js/internals/is-object.js"),s=n("../../node_modules/core-js/internals/require-object-coercible.js"),i=n("../../node_modules/core-js/internals/a-possible-prototype.js");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,o=!1,n={};try{(e=t(Object.prototype,"__proto__","set"))(n,[]),o=n instanceof Array}catch(e){}return function(n,t){return s(n),i(t),r(n)&&(o?e(n,t):n.__proto__=t),n}}():void 0)},"../../node_modules/core-js/internals/ordinary-to-primitive.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/function-call.js"),r=n("../../node_modules/core-js/internals/is-callable.js"),s=n("../../node_modules/core-js/internals/is-object.js"),i=TypeError;e.exports=function(e,o){var n,l;if("string"===o&&r(n=e.toString)&&!s(l=t(n,e))||r(n=e.valueOf)&&!s(l=t(n,e))||"string"!==o&&r(n=e.toString)&&!s(l=t(n,e)))return l;throw new i("Can't convert object to primitive value")}},"../../node_modules/core-js/internals/own-keys.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/get-built-in.js"),r=n("../../node_modules/core-js/internals/function-uncurry-this.js"),s=n("../../node_modules/core-js/internals/object-get-own-property-names.js"),i=n("../../node_modules/core-js/internals/object-get-own-property-symbols.js"),l=n("../../node_modules/core-js/internals/an-object.js"),a=r([].concat);e.exports=t("Reflect","ownKeys")||function(e){var o=s.f(l(e)),n=i.f;return n?a(o,n(e)):o}},"../../node_modules/core-js/internals/require-object-coercible.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/is-null-or-undefined.js"),r=TypeError;e.exports=function(e){if(t(e))throw new r("Can't call method on "+e);return e}},"../../node_modules/core-js/internals/shared-key.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/shared.js"),r=n("../../node_modules/core-js/internals/uid.js"),s=t("keys");e.exports=function(e){return s[e]||(s[e]=r(e))}},"../../node_modules/core-js/internals/shared-store.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/is-pure.js"),r=n("../../node_modules/core-js/internals/global-this.js"),s=n("../../node_modules/core-js/internals/define-global-property.js"),i="__core-js_shared__",l=e.exports=r[i]||s(i,{});(l.versions||(l.versions=[])).push({version:"3.44.0",mode:t?"pure":"global",copyright:"\xa9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",source:"https://github.com/zloirock/core-js"})},"../../node_modules/core-js/internals/shared.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/shared-store.js");e.exports=function(e,o){return t[e]||(t[e]=o||{})}},"../../node_modules/core-js/internals/symbol-constructor-detection.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/environment-v8-version.js"),r=n("../../node_modules/core-js/internals/fails.js"),s=n("../../node_modules/core-js/internals/global-this.js").String;e.exports=!!Object.getOwnPropertySymbols&&!r(function(){var e=Symbol("symbol detection");return!s(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41})},"../../node_modules/core-js/internals/to-absolute-index.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/to-integer-or-infinity.js"),r=Math.max,s=Math.min;e.exports=function(e,o){var n=t(e);return n<0?r(n+o,0):s(n,o)}},"../../node_modules/core-js/internals/to-indexed-object.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/indexed-object.js"),r=n("../../node_modules/core-js/internals/require-object-coercible.js");e.exports=function(e){return t(r(e))}},"../../node_modules/core-js/internals/to-integer-or-infinity.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/math-trunc.js");e.exports=function(e){var o=+e;return o!=o||0===o?0:t(o)}},"../../node_modules/core-js/internals/to-length.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/to-integer-or-infinity.js"),r=Math.min;e.exports=function(e){var o=t(e);return o>0?r(o,0x1fffffffffffff):0}},"../../node_modules/core-js/internals/to-object.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/require-object-coercible.js"),r=Object;e.exports=function(e){return r(t(e))}},"../../node_modules/core-js/internals/to-offset.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/to-positive-integer.js"),r=RangeError;e.exports=function(e,o){var n=t(e);if(n%o)throw new r("Wrong offset");return n}},"../../node_modules/core-js/internals/to-positive-integer.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/to-integer-or-infinity.js"),r=RangeError;e.exports=function(e){var o=t(e);if(o<0)throw new r("The argument can't be less than 0");return o}},"../../node_modules/core-js/internals/to-primitive.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/function-call.js"),r=n("../../node_modules/core-js/internals/is-object.js"),s=n("../../node_modules/core-js/internals/is-symbol.js"),i=n("../../node_modules/core-js/internals/get-method.js"),l=n("../../node_modules/core-js/internals/ordinary-to-primitive.js"),a=n("../../node_modules/core-js/internals/well-known-symbol.js"),u=TypeError,c=a("toPrimitive");e.exports=function(e,o){if(!r(e)||s(e))return e;var n,a=i(e,c);if(a){if(void 0===o&&(o="default"),!r(n=t(a,e,o))||s(n))return n;throw new u("Can't convert object to primitive value")}return void 0===o&&(o="number"),l(e,o)}},"../../node_modules/core-js/internals/to-property-key.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/to-primitive.js"),r=n("../../node_modules/core-js/internals/is-symbol.js");e.exports=function(e){var o=t(e,"string");return r(o)?o:o+""}},"../../node_modules/core-js/internals/to-string-tag-support.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/well-known-symbol.js")("toStringTag"),r={};r[t]="z",e.exports="[object z]"===String(r)},"../../node_modules/core-js/internals/try-to-string.js":function(e){var o=String;e.exports=function(e){try{return o(e)}catch(e){return"Object"}}},"../../node_modules/core-js/internals/uid.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/function-uncurry-this.js"),r=0,s=Math.random(),i=t(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++r+s,36)}},"../../node_modules/core-js/internals/use-symbol-as-uid.js":function(e,o,n){e.exports=n("../../node_modules/core-js/internals/symbol-constructor-detection.js")&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"../../node_modules/core-js/internals/v8-prototype-define-bug.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/descriptors.js"),r=n("../../node_modules/core-js/internals/fails.js");e.exports=t&&r(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},"../../node_modules/core-js/internals/weak-map-basic-detection.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/global-this.js"),r=n("../../node_modules/core-js/internals/is-callable.js"),s=t.WeakMap;e.exports=r(s)&&/native code/.test(String(s))},"../../node_modules/core-js/internals/well-known-symbol.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/global-this.js"),r=n("../../node_modules/core-js/internals/shared.js"),s=n("../../node_modules/core-js/internals/has-own-property.js"),i=n("../../node_modules/core-js/internals/uid.js"),l=n("../../node_modules/core-js/internals/symbol-constructor-detection.js"),a=n("../../node_modules/core-js/internals/use-symbol-as-uid.js"),u=t.Symbol,c=r("wks"),d=a?u.for||u:u&&u.withoutSetter||i;e.exports=function(e){return s(c,e)||(c[e]=l&&s(u,e)?u[e]:d("Symbol."+e)),c[e]}},"../../node_modules/core-js/modules/es.array.includes.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/export.js"),r=n("../../node_modules/core-js/internals/array-includes.js").includes,s=n("../../node_modules/core-js/internals/fails.js"),i=n("../../node_modules/core-js/internals/add-to-unscopables.js");t({target:"Array",proto:!0,forced:s(function(){return![,].includes()})},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},"../../node_modules/core-js/modules/es.object.has-own.js":function(e,o,n){n("../../node_modules/core-js/internals/export.js")({target:"Object",stat:!0},{hasOwn:n("../../node_modules/core-js/internals/has-own-property.js")})},"../../node_modules/core-js/modules/es.typed-array.set.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/global-this.js"),r=n("../../node_modules/core-js/internals/function-call.js"),s=n("../../node_modules/core-js/internals/array-buffer-view-core.js"),i=n("../../node_modules/core-js/internals/length-of-array-like.js"),l=n("../../node_modules/core-js/internals/to-offset.js"),a=n("../../node_modules/core-js/internals/to-object.js"),u=n("../../node_modules/core-js/internals/fails.js"),c=t.RangeError,d=t.Int8Array,j=d&&d.prototype,f=j&&j.set,p=s.aTypedArray,m=s.exportTypedArrayMethod,y=!u(function(){var e=new Uint8ClampedArray(2);return r(f,e,{length:1,0:3},1),3!==e[1]}),h=y&&s.NATIVE_ARRAY_BUFFER_VIEWS&&u(function(){var e=new d(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]});m("set",function(e){p(this);var o=l(arguments.length>1?arguments[1]:void 0,1),n=a(e);if(y)return r(f,this,n,o);var t=this.length,s=i(n),u=0;if(s+o>t)throw new c("Wrong length");for(;u<s;)this[o+u]=n[u++]},!y||h)}},o={};function n(t){var r=o[t];if(void 0!==r)return r.exports;var s=o[t]={exports:{}};return e[t].call(s.exports,s,s.exports,n),s.exports}n.d=(e,o)=>{for(var t in o)n.o(o,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},n.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),n.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};n.r(t),n.d(t,{createHook:()=>U}),n("../../node_modules/core-js/modules/es.object.has-own.js"),n("../../node_modules/core-js/modules/es.array.includes.js");class r extends Error{constructor(e,o,n){let t=e.status||0===e.status?e.status:"",r=e.statusText||"",s=`${t} ${r}`.trim();super(`Request failed with ${s?`status code ${s}`:"an unknown error"}: ${o.method} ${o.url}`),this.name="HTTPError",this.response=e,this.request=o,this.options=n}}class s extends Error{constructor(e){super(`Request timed out: ${e.method} ${e.url}`),this.name="TimeoutError",this.request=e}}n("../../node_modules/core-js/modules/es.typed-array.set.js");let i=(()=>{let e=!1,o=!1,n="function"==typeof globalThis.Request;if("function"==typeof globalThis.ReadableStream&&n)try{o=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type")}catch(e){if(e instanceof Error&&"unsupported BodyInit type"===e.message)return!1;throw e}return e&&!o})(),l="function"==typeof globalThis.AbortController,a="function"==typeof globalThis.ReadableStream,u="function"==typeof globalThis.FormData,c=["get","post","put","patch","head","delete"],d={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*"},j=new TextEncoder().encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length,f=Symbol("stop"),p={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,prefixUrl:!0,retry:!0,timeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0},m={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,dispatcher:!0,duplex:!0,priority:!0},y=e=>{if(!e)return 0;if(e instanceof FormData){let o=0;for(let[n,t]of e)o+=j,o+=new TextEncoder().encode(`Content-Disposition: form-data; name="${n}"`).length,o+="string"==typeof t?new TextEncoder().encode(t).length:t.size;return o}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength;if("string"==typeof e)return new TextEncoder().encode(e).length;if(e instanceof URLSearchParams)return new TextEncoder().encode(e.toString()).length;if("byteLength"in e)return e.byteLength;if("object"==typeof e&&null!==e)try{let o=JSON.stringify(e);return new TextEncoder().encode(o).length}catch{}return 0},h=(e,o)=>{let n=Number(e.headers.get("content-length"))||0,t=0;return 204===e.status?(o&&o({percent:1,totalBytes:n,transferredBytes:t},new Uint8Array),new Response(null,{status:e.status,statusText:e.statusText,headers:e.headers})):new Response(new ReadableStream({async start(r){let s=e.body.getReader();async function i(){let{done:e,value:l}=await s.read();if(e)return void r.close();o&&(t+=l.byteLength,o({percent:0===n?0:t/n,transferredBytes:t,totalBytes:n},l)),r.enqueue(l),await i()}o&&o({percent:0,transferredBytes:0,totalBytes:n},new Uint8Array),await i()}}),{status:e.status,statusText:e.statusText,headers:e.headers})},_=(e,o)=>{let n=y(e.body),t=0;return new Request(e,{duplex:"half",body:new ReadableStream({async start(r){let s=e.body instanceof ReadableStream?e.body.getReader():new Response("").body.getReader();async function i(){let{done:e,value:l}=await s.read();if(e){o&&o({percent:1,transferredBytes:t,totalBytes:Math.max(n,t)},new Uint8Array),r.close();return}t+=l.byteLength;let a=0===n?0:t/n;(n<t||1===a)&&(a=.99),o&&o({percent:Number(a.toFixed(2)),transferredBytes:t,totalBytes:n},l),r.enqueue(l),await i()}await i()}})})},b=e=>null!==e&&"object"==typeof e,g=function(){for(var e=arguments.length,o=Array(e),n=0;n<e;n++)o[n]=arguments[n];for(let e of o)if((!b(e)||Array.isArray(e))&&void 0!==e)throw TypeError("The `options` argument must be an object");return T({},...o)},v=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new globalThis.Headers(e),t=o instanceof globalThis.Headers;for(let[e,r]of new globalThis.Headers(o).entries())t&&"undefined"===r||void 0===r?n.delete(e):n.set(e,r);return n};function w(e,o,n){var t,r;return Object.hasOwn(o,n)&&void 0===o[n]?[]:T(null!=(t=e[n])?t:[],null!=(r=o[n])?r:[])}let x=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{beforeRequest:w(e,o,"beforeRequest"),beforeRetry:w(e,o,"beforeRetry"),afterResponse:w(e,o,"afterResponse"),beforeError:w(e,o,"beforeError")}},T=function(){for(var e=arguments.length,o=Array(e),n=0;n<e;n++)o[n]=arguments[n];let t={},r={},s={};for(let e of o)if(Array.isArray(e))Array.isArray(t)||(t=[]),t=[...t,...e];else if(b(e)){for(let[o,n]of Object.entries(e))b(n)&&o in t&&(n=T(t[o],n)),t={...t,[o]:n};b(e.hooks)&&(s=x(s,e.hooks),t.hooks=s),b(e.headers)&&(r=v(r,e.headers),t.headers=r)}return t},R=e=>c.includes(e)?e.toUpperCase():e,O={limit:2,methods:["get","put","head","delete","options","trace"],statusCodes:[408,413,429,500,502,503,504],afterStatusCodes:[413,429,503],maxRetryAfter:Number.POSITIVE_INFINITY,backoffLimit:Number.POSITIVE_INFINITY,delay:e=>.3*2**(e-1)*1e3},S=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("number"==typeof e)return{...O,limit:e};if(e.methods&&!Array.isArray(e.methods))throw Error("retry.methods must be an array");if(e.statusCodes&&!Array.isArray(e.statusCodes))throw Error("retry.statusCodes must be an array");return{...O,...e}};async function A(e,o,n,t){return new Promise((r,i)=>{let l=setTimeout(()=>{n&&n.abort(),i(new s(e))},t.timeout);t.fetch(e,o).then(r).catch(i).then(()=>{clearTimeout(l)})})}async function E(e,o){let{signal:n}=o;return new Promise((o,t)=>{function r(){clearTimeout(s),t(n.reason)}n&&(n.throwIfAborted(),n.addEventListener("abort",r,{once:!0}));let s=setTimeout(()=>{null==n||n.removeEventListener("abort",r),o()},e)})}let P=(e,o)=>{let n={};for(let t in o)t in m||t in p||t in e||(n[t]=o[t]);return n};class k{static create(e,o){let n=new k(e,o),t=async()=>{if("number"==typeof n._options.timeout&&n._options.timeout>0x7fffffff)throw RangeError("The `timeout` option cannot be greater than 2147483647");await Promise.resolve();let e=await n._fetch();for(let o of n._options.hooks.afterResponse){let t=await o(n.request,n._options,n._decorateResponse(e.clone()));t instanceof globalThis.Response&&(e=t)}if(n._decorateResponse(e),!e.ok&&n._options.throwHttpErrors){let o=new r(e,n.request,n._options);for(let e of n._options.hooks.beforeError)o=await e(o);throw o}if(n._options.onDownloadProgress){if("function"!=typeof n._options.onDownloadProgress)throw TypeError("The `onDownloadProgress` option must be a function");if(!a)throw Error("Streams are not supported in your environment. `ReadableStream` is missing.");return h(e.clone(),n._options.onDownloadProgress)}return e},s=(n._options.retry.methods.includes(n.request.method.toLowerCase())?n._retry(t):t()).finally(async()=>{if(!n.request.bodyUsed){var e;await (null==(e=n.request.body)?void 0:e.cancel())}});for(let[e,t]of Object.entries(d))s[e]=async()=>{n.request.headers.set("accept",n.request.headers.get("accept")||t);let r=await s;if("json"===e){if(204===r.status||0===(await r.clone().arrayBuffer()).byteLength)return"";if(o.parseJson)return o.parseJson(await r.text())}return r[e]()};return s}constructor(e,o={}){var n,t,r,s,a,c,d,j,f;if(this._retryCount=0,this._input=e,this._options={...o,headers:v(this._input.headers,o.headers),hooks:x({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},o.hooks),method:R(null!=(t=null!=(n=o.method)?n:this._input.method)?t:"GET"),prefixUrl:String(o.prefixUrl||""),retry:S(o.retry),throwHttpErrors:!1!==o.throwHttpErrors,timeout:null!=(r=o.timeout)?r:1e4,fetch:null!=(s=o.fetch)?s:globalThis.fetch.bind(globalThis)},"string"!=typeof this._input&&!(this._input instanceof URL||this._input instanceof globalThis.Request))throw TypeError("`input` must be a string, URL, or Request");if(this._options.prefixUrl&&"string"==typeof this._input){if(this._input.startsWith("/"))throw Error("`input` must not begin with a slash when using `prefixUrl`");this._options.prefixUrl.endsWith("/")||(this._options.prefixUrl+="/"),this._input=this._options.prefixUrl+this._input}if(l){let e=null!=(a=this._options.signal)?a:this._input.signal;this.abortController=new globalThis.AbortController,this._options.signal=e?AbortSignal.any([e,this.abortController.signal]):this.abortController.signal}if(i&&(this._options.duplex="half"),void 0!==this._options.json&&(this._options.body=null!=(j=null==(c=(d=this._options).stringifyJson)?void 0:c.call(d,this._options.json))?j:JSON.stringify(this._options.json),this._options.headers.set("content-type",null!=(f=this._options.headers.get("content-type"))?f:"application/json")),this.request=new globalThis.Request(this._input,this._options),this._options.searchParams){let e="string"==typeof this._options.searchParams?this._options.searchParams.replace(/^\?/,""):new URLSearchParams(this._options.searchParams).toString(),o=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,"?"+e);(u&&this._options.body instanceof globalThis.FormData||this._options.body instanceof URLSearchParams)&&!(this._options.headers&&this._options.headers["content-type"])&&this.request.headers.delete("content-type"),this.request=new globalThis.Request(new globalThis.Request(o,{...this.request}),this._options)}if(this._options.onUploadProgress){if("function"!=typeof this._options.onUploadProgress)throw TypeError("The `onUploadProgress` option must be a function");if(!i)throw Error("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");this.request.body&&(this.request=_(this.request,this._options.onUploadProgress))}}_calculateRetryDelay(e){if(this._retryCount++,this._retryCount>this._options.retry.limit||e instanceof s)throw e;if(e instanceof r){var o,n,t,i;if(!this._options.retry.statusCodes.includes(e.response.status))throw e;let r=null!=(t=null!=(n=null!=(o=e.response.headers.get("Retry-After"))?o:e.response.headers.get("RateLimit-Reset"))?n:e.response.headers.get("X-RateLimit-Reset"))?t:e.response.headers.get("X-Rate-Limit-Reset");if(r&&this._options.retry.afterStatusCodes.includes(e.response.status)){let e=1e3*Number(r);Number.isNaN(e)?e=Date.parse(r)-Date.now():e>=Date.parse("2024-01-01")&&(e-=Date.now());let o=null!=(i=this._options.retry.maxRetryAfter)?i:e;return e<o?e:o}if(413===e.response.status)throw e}let l=this._options.retry.delay(this._retryCount);return Math.min(this._options.retry.backoffLimit,l)}_decorateResponse(e){return this._options.parseJson&&(e.json=async()=>this._options.parseJson(await e.text())),e}async _retry(e){try{return await e()}catch(n){let o=Math.min(this._calculateRetryDelay(n),0x7fffffff);if(this._retryCount<1)throw n;for(let e of(await E(o,{signal:this._options.signal}),this._options.hooks.beforeRetry))if(await e({request:this.request,options:this._options,error:n,retryCount:this._retryCount})===f)return;return this._retry(e)}}async _fetch(){for(let e of this._options.hooks.beforeRequest){let o=await e(this.request,this._options);if(o instanceof Request){this.request=o;break}if(o instanceof Response)return o}let e=P(this.request,this._options),o=this.request;return(this.request=o.clone(),!1===this._options.timeout)?this._options.fetch(o,e):A(o,e,this.abortController,this._options)}}let q=e=>{let o=(o,n)=>k.create(o,g(e,n));for(let n of c)o[n]=(o,t)=>k.create(o,g(e,t,{method:n}));return o.create=e=>q(g(e)),o.extend=o=>("function"==typeof o&&(o=o(null!=e?e:{})),q(g(e,o))),o.stop=f,o},C=q(),I=[239,187,191],U=e=>async(o,n,t)=>{if(!t.ok||!t.body)return;let r=!1,s=o=>{var n;r||(r=!0,null==(n=e.onCompleted)||n.call(e,o))},i=t.body.getReader(),l=new TextDecoder("utf8"),a=function(e){let o,n,t,r,s,i,l;return a(),{feed:function(a){var u;n=n?n+a:a,o&&(u=n,I.every((e,o)=>u.charCodeAt(o)===e))&&(n=n.slice(I.length)),o=!1;let c=n.length,d=0,j=!1;for(;d<c;){let o;j&&("\n"===n[d]&&++d,j=!1);let a=-1,u=r;for(let e=t;a<0&&e<c;++e)":"===(o=n[e])&&u<0?u=e-d:"\r"===o?(j=!0,a=e-d):"\n"===o&&(a=e-d);if(a<0){t=c-d,r=u;break}t=0,r=-1,function(o,n,t,r){if(0===r){l.length>0&&(e({type:"event",id:s,event:i||void 0,data:l.slice(0,-1)}),l="",s=void 0),i=void 0;return}let a=t<0,u=o.slice(n,n+(a?r:t)),c=0;c=a?r:" "===o[n+t+1]?t+2:t+1;let d=n+c,j=r-c,f=o.slice(d,d+j).toString();if("data"===u)l+=f?"".concat(f,"\n"):"\n";else if("event"===u)i=f;else if("id"!==u||f.includes("\0")){if("retry"===u){let o=parseInt(f,10);Number.isNaN(o)||e({type:"reconnect-interval",value:o})}}else s=f}(n,d,u,a),d+=a+1}d===c?n="":d>0&&(n=n.slice(d))},reset:a};function a(){o=!0,n="",t=0,r=-1,s=void 0,i=void 0,l=""}}(o=>{var n,t,r;if("event"===o.type&&(null==(n=e.onMessage)||n.call(e,o)),"event"===o.type&&o.data)for(let n of(null==(t=e.onEvent)||t.call(e,o),o.data.split("\n")))e.onData(n);else"reconnect-interval"===o.type&&(null==(r=e.onReconnectInterval)||r.call(e,o.value))}),u=()=>{i.read().then(e=>{if(e.done)return void s();a.feed(l.decode(e.value,{stream:!0})),u()}).catch(n=>{var t;if(o.signal.aborted){null==(t=e.onAborted)||t.call(e);return}s(n)})};return u(),t};export{r as HTTPError,s as TimeoutError,C as ky,t as sseHook};
|
|
2
|
+
var e={"../../node_modules/core-js/internals/a-callable.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/is-callable.js"),r=o("../../node_modules/core-js/internals/try-to-string.js"),s=TypeError;e.exports=function(e){if(n(e))return e;throw new s(r(e)+" is not a function")}},"../../node_modules/core-js/internals/add-to-unscopables.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/well-known-symbol.js"),r=o("../../node_modules/core-js/internals/object-create.js"),s=o("../../node_modules/core-js/internals/object-define-property.js").f,i=n("unscopables"),l=Array.prototype;void 0===l[i]&&s(l,i,{configurable:!0,value:r(null)}),e.exports=function(e){l[i][e]=!0}},"../../node_modules/core-js/internals/an-object.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/is-object.js"),r=String,s=TypeError;e.exports=function(e){if(n(e))return e;throw new s(r(e)+" is not an object")}},"../../node_modules/core-js/internals/array-includes.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/to-indexed-object.js"),r=o("../../node_modules/core-js/internals/to-absolute-index.js"),s=o("../../node_modules/core-js/internals/length-of-array-like.js"),i=function(e){return function(t,o,i){var l,a=n(t),u=s(a);if(0===u)return!e&&-1;var c=r(i,u);if(e&&o!=o){for(;u>c;)if((l=a[c++])!=l)return!0}else for(;u>c;c++)if((e||c in a)&&a[c]===o)return e||c||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},"../../node_modules/core-js/internals/classof-raw.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/function-uncurry-this.js"),r=n({}.toString),s=n("".slice);e.exports=function(e){return s(r(e),8,-1)}},"../../node_modules/core-js/internals/copy-constructor-properties.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/has-own-property.js"),r=o("../../node_modules/core-js/internals/own-keys.js"),s=o("../../node_modules/core-js/internals/object-get-own-property-descriptor.js"),i=o("../../node_modules/core-js/internals/object-define-property.js");e.exports=function(e,t,o){for(var l=r(t),a=i.f,u=s.f,c=0;c<l.length;c++){var d=l[c];n(e,d)||o&&n(o,d)||a(e,d,u(t,d))}}},"../../node_modules/core-js/internals/create-non-enumerable-property.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/descriptors.js"),r=o("../../node_modules/core-js/internals/object-define-property.js"),s=o("../../node_modules/core-js/internals/create-property-descriptor.js");e.exports=n?function(e,t,o){return r.f(e,t,s(1,o))}:function(e,t,o){return e[t]=o,e}},"../../node_modules/core-js/internals/create-property-descriptor.js":function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"../../node_modules/core-js/internals/define-built-in.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/is-callable.js"),r=o("../../node_modules/core-js/internals/object-define-property.js"),s=o("../../node_modules/core-js/internals/make-built-in.js"),i=o("../../node_modules/core-js/internals/define-global-property.js");e.exports=function(e,t,o,l){l||(l={});var a=l.enumerable,u=void 0!==l.name?l.name:t;if(n(o)&&s(o,u,l),l.global)a?e[t]=o:i(t,o);else{try{l.unsafe?e[t]&&(a=!0):delete e[t]}catch(e){}a?e[t]=o:r.f(e,t,{value:o,enumerable:!1,configurable:!l.nonConfigurable,writable:!l.nonWritable})}return e}},"../../node_modules/core-js/internals/define-global-property.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/global-this.js"),r=Object.defineProperty;e.exports=function(e,t){try{r(n,e,{value:t,configurable:!0,writable:!0})}catch(o){n[e]=t}return t}},"../../node_modules/core-js/internals/descriptors.js":function(e,t,o){e.exports=!o("../../node_modules/core-js/internals/fails.js")(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},"../../node_modules/core-js/internals/document-create-element.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/global-this.js"),r=o("../../node_modules/core-js/internals/is-object.js"),s=n.document,i=r(s)&&r(s.createElement);e.exports=function(e){return i?s.createElement(e):{}}},"../../node_modules/core-js/internals/enum-bug-keys.js":function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"../../node_modules/core-js/internals/environment-user-agent.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/global-this.js").navigator,r=n&&n.userAgent;e.exports=r?String(r):""},"../../node_modules/core-js/internals/environment-v8-version.js":function(e,t,o){var n,r,s=o("../../node_modules/core-js/internals/global-this.js"),i=o("../../node_modules/core-js/internals/environment-user-agent.js"),l=s.process,a=s.Deno,u=l&&l.versions||a&&a.version,c=u&&u.v8;c&&(r=(n=c.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!r&&i&&(!(n=i.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=i.match(/Chrome\/(\d+)/))&&(r=+n[1]),e.exports=r},"../../node_modules/core-js/internals/export.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/global-this.js"),r=o("../../node_modules/core-js/internals/object-get-own-property-descriptor.js").f,s=o("../../node_modules/core-js/internals/create-non-enumerable-property.js"),i=o("../../node_modules/core-js/internals/define-built-in.js"),l=o("../../node_modules/core-js/internals/define-global-property.js"),a=o("../../node_modules/core-js/internals/copy-constructor-properties.js"),u=o("../../node_modules/core-js/internals/is-forced.js");e.exports=function(e,t){var o,c,d,f,j,p=e.target,m=e.global,h=e.stat;if(o=m?n:h?n[p]||l(p,{}):n[p]&&n[p].prototype)for(c in t){if(f=t[c],d=e.dontCallGetSet?(j=r(o,c))&&j.value:o[c],!u(m?c:p+(h?".":"#")+c,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;a(f,d)}(e.sham||d&&d.sham)&&s(f,"sham",!0),i(o,c,f,e)}}},"../../node_modules/core-js/internals/fails.js":function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"../../node_modules/core-js/internals/function-bind-native.js":function(e,t,o){e.exports=!o("../../node_modules/core-js/internals/fails.js")(function(){var e=(function(){}).bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},"../../node_modules/core-js/internals/function-call.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/function-bind-native.js"),r=Function.prototype.call;e.exports=n?r.bind(r):function(){return r.apply(r,arguments)}},"../../node_modules/core-js/internals/function-name.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/descriptors.js"),r=o("../../node_modules/core-js/internals/has-own-property.js"),s=Function.prototype,i=n&&Object.getOwnPropertyDescriptor,l=r(s,"name"),a=l&&(!n||n&&i(s,"name").configurable);e.exports={EXISTS:l,PROPER:l&&"something"===(function(){}).name,CONFIGURABLE:a}},"../../node_modules/core-js/internals/function-uncurry-this.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/function-bind-native.js"),r=Function.prototype,s=r.call,i=n&&r.bind.bind(s,s);e.exports=n?i:function(e){return function(){return s.apply(e,arguments)}}},"../../node_modules/core-js/internals/get-built-in.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/global-this.js"),r=o("../../node_modules/core-js/internals/is-callable.js");e.exports=function(e,t){var o;return arguments.length<2?r(o=n[e])?o:void 0:n[e]&&n[e][t]}},"../../node_modules/core-js/internals/get-method.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/a-callable.js"),r=o("../../node_modules/core-js/internals/is-null-or-undefined.js");e.exports=function(e,t){var o=e[t];return r(o)?void 0:n(o)}},"../../node_modules/core-js/internals/global-this.js":function(e,t,o){var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof o.g&&o.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},"../../node_modules/core-js/internals/has-own-property.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/function-uncurry-this.js"),r=o("../../node_modules/core-js/internals/to-object.js"),s=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return s(r(e),t)}},"../../node_modules/core-js/internals/hidden-keys.js":function(e){e.exports={}},"../../node_modules/core-js/internals/html.js":function(e,t,o){e.exports=o("../../node_modules/core-js/internals/get-built-in.js")("document","documentElement")},"../../node_modules/core-js/internals/ie8-dom-define.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/descriptors.js"),r=o("../../node_modules/core-js/internals/fails.js"),s=o("../../node_modules/core-js/internals/document-create-element.js");e.exports=!n&&!r(function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a})},"../../node_modules/core-js/internals/indexed-object.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/function-uncurry-this.js"),r=o("../../node_modules/core-js/internals/fails.js"),s=o("../../node_modules/core-js/internals/classof-raw.js"),i=Object,l=n("".split);e.exports=r(function(){return!i("z").propertyIsEnumerable(0)})?function(e){return"String"===s(e)?l(e,""):i(e)}:i},"../../node_modules/core-js/internals/inspect-source.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/function-uncurry-this.js"),r=o("../../node_modules/core-js/internals/is-callable.js"),s=o("../../node_modules/core-js/internals/shared-store.js"),i=n(Function.toString);r(s.inspectSource)||(s.inspectSource=function(e){return i(e)}),e.exports=s.inspectSource},"../../node_modules/core-js/internals/internal-state.js":function(e,t,o){var n,r,s,i=o("../../node_modules/core-js/internals/weak-map-basic-detection.js"),l=o("../../node_modules/core-js/internals/global-this.js"),a=o("../../node_modules/core-js/internals/is-object.js"),u=o("../../node_modules/core-js/internals/create-non-enumerable-property.js"),c=o("../../node_modules/core-js/internals/has-own-property.js"),d=o("../../node_modules/core-js/internals/shared-store.js"),f=o("../../node_modules/core-js/internals/shared-key.js"),j=o("../../node_modules/core-js/internals/hidden-keys.js"),p="Object already initialized",m=l.TypeError,h=l.WeakMap;if(i||d.state){var y=d.state||(d.state=new h);y.get=y.get,y.has=y.has,y.set=y.set,n=function(e,t){if(y.has(e))throw new m(p);return t.facade=e,y.set(e,t),t},r=function(e){return y.get(e)||{}},s=function(e){return y.has(e)}}else{var b=f("state");j[b]=!0,n=function(e,t){if(c(e,b))throw new m(p);return t.facade=e,u(e,b,t),t},r=function(e){return c(e,b)?e[b]:{}},s=function(e){return c(e,b)}}e.exports={set:n,get:r,has:s,enforce:function(e){return s(e)?r(e):n(e,{})},getterFor:function(e){return function(t){var o;if(!a(t)||(o=r(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return o}}}},"../../node_modules/core-js/internals/is-callable.js":function(e){var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},"../../node_modules/core-js/internals/is-forced.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/fails.js"),r=o("../../node_modules/core-js/internals/is-callable.js"),s=/#|\.prototype\./,i=function(e,t){var o=a[l(e)];return o===c||o!==u&&(r(t)?n(t):!!t)},l=i.normalize=function(e){return String(e).replace(s,".").toLowerCase()},a=i.data={},u=i.NATIVE="N",c=i.POLYFILL="P";e.exports=i},"../../node_modules/core-js/internals/is-null-or-undefined.js":function(e){e.exports=function(e){return null==e}},"../../node_modules/core-js/internals/is-object.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/is-callable.js");e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},"../../node_modules/core-js/internals/is-pure.js":function(e){e.exports=!1},"../../node_modules/core-js/internals/is-symbol.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/get-built-in.js"),r=o("../../node_modules/core-js/internals/is-callable.js"),s=o("../../node_modules/core-js/internals/object-is-prototype-of.js"),i=o("../../node_modules/core-js/internals/use-symbol-as-uid.js"),l=Object;e.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return r(t)&&s(t.prototype,l(e))}},"../../node_modules/core-js/internals/length-of-array-like.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/to-length.js");e.exports=function(e){return n(e.length)}},"../../node_modules/core-js/internals/make-built-in.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/function-uncurry-this.js"),r=o("../../node_modules/core-js/internals/fails.js"),s=o("../../node_modules/core-js/internals/is-callable.js"),i=o("../../node_modules/core-js/internals/has-own-property.js"),l=o("../../node_modules/core-js/internals/descriptors.js"),a=o("../../node_modules/core-js/internals/function-name.js").CONFIGURABLE,u=o("../../node_modules/core-js/internals/inspect-source.js"),c=o("../../node_modules/core-js/internals/internal-state.js"),d=c.enforce,f=c.get,j=String,p=Object.defineProperty,m=n("".slice),h=n("".replace),y=n([].join),b=l&&!r(function(){return 8!==p(function(){},"length",{value:8}).length}),g=String(String).split("String"),v=e.exports=function(e,t,o){"Symbol("===m(j(t),0,7)&&(t="["+h(j(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),o&&o.getter&&(t="get "+t),o&&o.setter&&(t="set "+t),(!i(e,"name")||a&&e.name!==t)&&(l?p(e,"name",{value:t,configurable:!0}):e.name=t),b&&o&&i(o,"arity")&&e.length!==o.arity&&p(e,"length",{value:o.arity});try{o&&i(o,"constructor")&&o.constructor?l&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=d(e);return i(n,"source")||(n.source=y(g,"string"==typeof t?t:"")),e};Function.prototype.toString=v(function(){return s(this)&&f(this).source||u(this)},"toString")},"../../node_modules/core-js/internals/math-trunc.js":function(e){var t=Math.ceil,o=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?o:t)(n)}},"../../node_modules/core-js/internals/object-create.js":function(e,t,o){var n,r=o("../../node_modules/core-js/internals/an-object.js"),s=o("../../node_modules/core-js/internals/object-define-properties.js"),i=o("../../node_modules/core-js/internals/enum-bug-keys.js"),l=o("../../node_modules/core-js/internals/hidden-keys.js"),a=o("../../node_modules/core-js/internals/html.js"),u=o("../../node_modules/core-js/internals/document-create-element.js"),c=o("../../node_modules/core-js/internals/shared-key.js"),d="prototype",f="script",j=c("IE_PROTO"),p=function(){},m=function(e){return"<"+f+">"+e+"</"+f+">"},h=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){var e,t=u("iframe");return t.style.display="none",a.appendChild(t),t.src=String("java"+f+":"),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F},b=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}b="undefined"!=typeof document?document.domain&&n?h(n):y():h(n);for(var e=i.length;e--;)delete b[d][i[e]];return b()};l[j]=!0,e.exports=Object.create||function(e,t){var o;return null!==e?(p[d]=r(e),o=new p,p[d]=null,o[j]=e):o=b(),void 0===t?o:s.f(o,t)}},"../../node_modules/core-js/internals/object-define-properties.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/descriptors.js"),r=o("../../node_modules/core-js/internals/v8-prototype-define-bug.js"),s=o("../../node_modules/core-js/internals/object-define-property.js"),i=o("../../node_modules/core-js/internals/an-object.js"),l=o("../../node_modules/core-js/internals/to-indexed-object.js"),a=o("../../node_modules/core-js/internals/object-keys.js");t.f=n&&!r?Object.defineProperties:function(e,t){i(e);for(var o,n=l(t),r=a(t),u=r.length,c=0;u>c;)s.f(e,o=r[c++],n[o]);return e}},"../../node_modules/core-js/internals/object-define-property.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/descriptors.js"),r=o("../../node_modules/core-js/internals/ie8-dom-define.js"),s=o("../../node_modules/core-js/internals/v8-prototype-define-bug.js"),i=o("../../node_modules/core-js/internals/an-object.js"),l=o("../../node_modules/core-js/internals/to-property-key.js"),a=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d="enumerable",f="configurable",j="writable";t.f=n?s?function(e,t,o){if(i(e),t=l(t),i(o),"function"==typeof e&&"prototype"===t&&"value"in o&&j in o&&!o[j]){var n=c(e,t);n&&n[j]&&(e[t]=o.value,o={configurable:f in o?o[f]:n[f],enumerable:d in o?o[d]:n[d],writable:!1})}return u(e,t,o)}:u:function(e,t,o){if(i(e),t=l(t),i(o),r)try{return u(e,t,o)}catch(e){}if("get"in o||"set"in o)throw new a("Accessors not supported");return"value"in o&&(e[t]=o.value),e}},"../../node_modules/core-js/internals/object-get-own-property-descriptor.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/descriptors.js"),r=o("../../node_modules/core-js/internals/function-call.js"),s=o("../../node_modules/core-js/internals/object-property-is-enumerable.js"),i=o("../../node_modules/core-js/internals/create-property-descriptor.js"),l=o("../../node_modules/core-js/internals/to-indexed-object.js"),a=o("../../node_modules/core-js/internals/to-property-key.js"),u=o("../../node_modules/core-js/internals/has-own-property.js"),c=o("../../node_modules/core-js/internals/ie8-dom-define.js"),d=Object.getOwnPropertyDescriptor;t.f=n?d:function(e,t){if(e=l(e),t=a(t),c)try{return d(e,t)}catch(e){}if(u(e,t))return i(!r(s.f,e,t),e[t])}},"../../node_modules/core-js/internals/object-get-own-property-names.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/object-keys-internal.js"),r=o("../../node_modules/core-js/internals/enum-bug-keys.js").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,r)}},"../../node_modules/core-js/internals/object-get-own-property-symbols.js":function(e,t){t.f=Object.getOwnPropertySymbols},"../../node_modules/core-js/internals/object-is-prototype-of.js":function(e,t,o){e.exports=o("../../node_modules/core-js/internals/function-uncurry-this.js")({}.isPrototypeOf)},"../../node_modules/core-js/internals/object-keys-internal.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/function-uncurry-this.js"),r=o("../../node_modules/core-js/internals/has-own-property.js"),s=o("../../node_modules/core-js/internals/to-indexed-object.js"),i=o("../../node_modules/core-js/internals/array-includes.js").indexOf,l=o("../../node_modules/core-js/internals/hidden-keys.js"),a=n([].push);e.exports=function(e,t){var o,n=s(e),u=0,c=[];for(o in n)!r(l,o)&&r(n,o)&&a(c,o);for(;t.length>u;)r(n,o=t[u++])&&(~i(c,o)||a(c,o));return c}},"../../node_modules/core-js/internals/object-keys.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/object-keys-internal.js"),r=o("../../node_modules/core-js/internals/enum-bug-keys.js");e.exports=Object.keys||function(e){return n(e,r)}},"../../node_modules/core-js/internals/object-property-is-enumerable.js":function(e,t){var o={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor;t.f=n&&!o.call({1:2},1)?function(e){var t=n(this,e);return!!t&&t.enumerable}:o},"../../node_modules/core-js/internals/ordinary-to-primitive.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/function-call.js"),r=o("../../node_modules/core-js/internals/is-callable.js"),s=o("../../node_modules/core-js/internals/is-object.js"),i=TypeError;e.exports=function(e,t){var o,l;if("string"===t&&r(o=e.toString)&&!s(l=n(o,e))||r(o=e.valueOf)&&!s(l=n(o,e))||"string"!==t&&r(o=e.toString)&&!s(l=n(o,e)))return l;throw new i("Can't convert object to primitive value")}},"../../node_modules/core-js/internals/own-keys.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/get-built-in.js"),r=o("../../node_modules/core-js/internals/function-uncurry-this.js"),s=o("../../node_modules/core-js/internals/object-get-own-property-names.js"),i=o("../../node_modules/core-js/internals/object-get-own-property-symbols.js"),l=o("../../node_modules/core-js/internals/an-object.js"),a=r([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=s.f(l(e)),o=i.f;return o?a(t,o(e)):t}},"../../node_modules/core-js/internals/require-object-coercible.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/is-null-or-undefined.js"),r=TypeError;e.exports=function(e){if(n(e))throw new r("Can't call method on "+e);return e}},"../../node_modules/core-js/internals/shared-key.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/shared.js"),r=o("../../node_modules/core-js/internals/uid.js"),s=n("keys");e.exports=function(e){return s[e]||(s[e]=r(e))}},"../../node_modules/core-js/internals/shared-store.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/is-pure.js"),r=o("../../node_modules/core-js/internals/global-this.js"),s=o("../../node_modules/core-js/internals/define-global-property.js"),i="__core-js_shared__",l=e.exports=r[i]||s(i,{});(l.versions||(l.versions=[])).push({version:"3.44.0",mode:n?"pure":"global",copyright:"\xa9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",source:"https://github.com/zloirock/core-js"})},"../../node_modules/core-js/internals/shared.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/shared-store.js");e.exports=function(e,t){return n[e]||(n[e]=t||{})}},"../../node_modules/core-js/internals/symbol-constructor-detection.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/environment-v8-version.js"),r=o("../../node_modules/core-js/internals/fails.js"),s=o("../../node_modules/core-js/internals/global-this.js").String;e.exports=!!Object.getOwnPropertySymbols&&!r(function(){var e=Symbol("symbol detection");return!s(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},"../../node_modules/core-js/internals/to-absolute-index.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/to-integer-or-infinity.js"),r=Math.max,s=Math.min;e.exports=function(e,t){var o=n(e);return o<0?r(o+t,0):s(o,t)}},"../../node_modules/core-js/internals/to-indexed-object.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/indexed-object.js"),r=o("../../node_modules/core-js/internals/require-object-coercible.js");e.exports=function(e){return n(r(e))}},"../../node_modules/core-js/internals/to-integer-or-infinity.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/math-trunc.js");e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},"../../node_modules/core-js/internals/to-length.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/to-integer-or-infinity.js"),r=Math.min;e.exports=function(e){var t=n(e);return t>0?r(t,0x1fffffffffffff):0}},"../../node_modules/core-js/internals/to-object.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/require-object-coercible.js"),r=Object;e.exports=function(e){return r(n(e))}},"../../node_modules/core-js/internals/to-primitive.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/function-call.js"),r=o("../../node_modules/core-js/internals/is-object.js"),s=o("../../node_modules/core-js/internals/is-symbol.js"),i=o("../../node_modules/core-js/internals/get-method.js"),l=o("../../node_modules/core-js/internals/ordinary-to-primitive.js"),a=o("../../node_modules/core-js/internals/well-known-symbol.js"),u=TypeError,c=a("toPrimitive");e.exports=function(e,t){if(!r(e)||s(e))return e;var o,a=i(e,c);if(a){if(void 0===t&&(t="default"),!r(o=n(a,e,t))||s(o))return o;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),l(e,t)}},"../../node_modules/core-js/internals/to-property-key.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/to-primitive.js"),r=o("../../node_modules/core-js/internals/is-symbol.js");e.exports=function(e){var t=n(e,"string");return r(t)?t:t+""}},"../../node_modules/core-js/internals/try-to-string.js":function(e){var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},"../../node_modules/core-js/internals/uid.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/function-uncurry-this.js"),r=0,s=Math.random(),i=n(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++r+s,36)}},"../../node_modules/core-js/internals/use-symbol-as-uid.js":function(e,t,o){e.exports=o("../../node_modules/core-js/internals/symbol-constructor-detection.js")&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"../../node_modules/core-js/internals/v8-prototype-define-bug.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/descriptors.js"),r=o("../../node_modules/core-js/internals/fails.js");e.exports=n&&r(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},"../../node_modules/core-js/internals/weak-map-basic-detection.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/global-this.js"),r=o("../../node_modules/core-js/internals/is-callable.js"),s=n.WeakMap;e.exports=r(s)&&/native code/.test(String(s))},"../../node_modules/core-js/internals/well-known-symbol.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/global-this.js"),r=o("../../node_modules/core-js/internals/shared.js"),s=o("../../node_modules/core-js/internals/has-own-property.js"),i=o("../../node_modules/core-js/internals/uid.js"),l=o("../../node_modules/core-js/internals/symbol-constructor-detection.js"),a=o("../../node_modules/core-js/internals/use-symbol-as-uid.js"),u=n.Symbol,c=r("wks"),d=a?u.for||u:u&&u.withoutSetter||i;e.exports=function(e){return s(c,e)||(c[e]=l&&s(u,e)?u[e]:d("Symbol."+e)),c[e]}},"../../node_modules/core-js/modules/es.array.includes.js":function(e,t,o){var n=o("../../node_modules/core-js/internals/export.js"),r=o("../../node_modules/core-js/internals/array-includes.js").includes,s=o("../../node_modules/core-js/internals/fails.js"),i=o("../../node_modules/core-js/internals/add-to-unscopables.js");n({target:"Array",proto:!0,forced:s(function(){return![,].includes()})},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},"../../node_modules/core-js/modules/es.object.has-own.js":function(e,t,o){o("../../node_modules/core-js/internals/export.js")({target:"Object",stat:!0},{hasOwn:o("../../node_modules/core-js/internals/has-own-property.js")})}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var s=t[n]={exports:{}};return e[n].call(s.exports,s,s.exports,o),s.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};o.r(n),o.d(n,{createHook:()=>z}),o("../../node_modules/core-js/modules/es.object.has-own.js"),o("../../node_modules/core-js/modules/es.array.includes.js");class r extends Error{constructor(e,t,o){var n;let r=e.status||0===e.status?e.status:"",s=null!=(n=e.statusText)?n:"",i=`${r} ${s}`.trim();super(`Request failed with ${i?`status code ${i}`:"an unknown error"}: ${t.method} ${t.url}`),this.name="HTTPError",this.response=e,this.request=t,this.options=o}}class s extends Error{constructor(e){let t="Non-error value was thrown";try{"string"==typeof e?t=e:e&&"object"==typeof e&&"message"in e&&"string"==typeof e.message&&(t=e.message)}catch{}super(t),this.name="NonError",this.value=e}}class i extends Error{constructor(e){let t=(null==e?void 0:e.cause)?e.cause instanceof Error?e.cause:new s(e.cause):void 0;super((null==e?void 0:e.code)?`Forced retry: ${e.code}`:"Forced retry",t?{cause:t}:void 0),this.name="ForceRetryError",this.customDelay=null==e?void 0:e.delay,this.code=null==e?void 0:e.code,this.customRequest=null==e?void 0:e.request}}let l=(()=>{let e=!1,t=!1,o="function"==typeof globalThis.Request;if("function"==typeof globalThis.ReadableStream&&o)try{t=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type")}catch(e){if(e instanceof Error&&"unsupported BodyInit type"===e.message)return!1;throw e}return e&&!t})(),a="function"==typeof globalThis.AbortController,u="function"==typeof globalThis.AbortSignal&&"function"==typeof globalThis.AbortSignal.any,c="function"==typeof globalThis.ReadableStream,d="function"==typeof globalThis.FormData,f=["get","post","put","patch","head","delete"],j={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},p=new TextEncoder().encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length,m=Symbol("stop");class h{constructor(e){this.options=e}}let y=e=>new h(e),b={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,prefixUrl:!0,retry:!0,timeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0,context:!0},g={next:!0},v={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,duplex:!0},_=(e,t,o)=>{let n,r=0;return e.pipeThrough(new TransformStream({transform(e,s){if(s.enqueue(e),n){r+=n.byteLength;let e=0===t?0:r/t;e>=1&&(e=1-Number.EPSILON),null==o||o({percent:e,totalBytes:Math.max(t,r),transferredBytes:r},n)}n=e},flush(){n&&(r+=n.byteLength,null==o||o({percent:1,totalBytes:Math.max(t,r),transferredBytes:r},n))}}))},w=e=>null!==e&&"object"==typeof e,x=function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];for(let e of t)if((!w(e)||Array.isArray(e))&&void 0!==e)throw TypeError("The `options` argument must be an object");return P({},...t)},R=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=new globalThis.Headers(e),n=t instanceof globalThis.Headers;for(let[e,r]of new globalThis.Headers(t).entries())n&&"undefined"===r||void 0===r?o.delete(e):o.set(e,r);return o};function S(e,t,o){var n,r;return Object.hasOwn(t,o)&&void 0===t[o]?[]:P(null!=(n=e[o])?n:[],null!=(r=t[o])?r:[])}let T=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{beforeRequest:S(e,t,"beforeRequest"),beforeRetry:S(e,t,"beforeRetry"),afterResponse:S(e,t,"afterResponse"),beforeError:S(e,t,"beforeError")}},O=(e,t)=>{let o=new URLSearchParams;for(let n of[e,t])if(void 0!==n)if(n instanceof URLSearchParams)for(let[e,t]of n.entries())o.append(e,t);else if(Array.isArray(n))for(let e of n){if(!Array.isArray(e)||2!==e.length)throw TypeError("Array search parameters must be provided in [[key, value], ...] format");o.append(String(e[0]),String(e[1]))}else if(w(n))for(let[e,t]of Object.entries(n))void 0!==t&&o.append(e,String(t));else for(let[e,t]of new URLSearchParams(n).entries())o.append(e,t);return o},P=function(){let e;for(var t=arguments.length,o=Array(t),n=0;n<t;n++)o[n]=arguments[n];let r={},s={},i={},l=[];for(let t of o)if(Array.isArray(t))Array.isArray(r)||(r=[]),r=[...r,...t];else if(w(t)){for(let[o,n]of Object.entries(t)){if("signal"===o&&n instanceof globalThis.AbortSignal){l.push(n);continue}if("context"===o){if(null!=n&&(!w(n)||Array.isArray(n)))throw TypeError("The `context` option must be an object");r={...r,context:null==n?{}:{...r.context,...n}};continue}if("searchParams"===o){e=null==n?void 0:void 0===e?n:O(e,n);continue}w(n)&&o in r&&(n=P(r[o],n)),r={...r,[o]:n}}w(t.hooks)&&(i=T(i,t.hooks),r.hooks=i),w(t.headers)&&(s=R(s,t.headers),r.headers=s)}return void 0!==e&&(r.searchParams=e),l.length>0&&(1===l.length?r.signal=l[0]:u?r.signal=AbortSignal.any(l):r.signal=l.at(-1)),void 0===r.context&&(r.context={}),r},E={limit:2,methods:["get","put","head","delete","options","trace"],statusCodes:[408,413,429,500,502,503,504],afterStatusCodes:[413,429,503],maxRetryAfter:1/0,backoffLimit:1/0,delay:e=>.3*2**(e-1)*1e3,jitter:void 0,retryOnTimeout:!1},q=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("number"==typeof e)return{...E,limit:e};if(e.methods&&!Array.isArray(e.methods))throw Error("retry.methods must be an array");if(e.statusCodes&&!Array.isArray(e.statusCodes))throw Error("retry.statusCodes must be an array");return{...E,...e}};class k extends Error{constructor(e){super(`Request timed out: ${e.method} ${e.url}`),this.name="TimeoutError",this.request=e}}async function A(e,t,o,n){return new Promise((r,s)=>{let i=setTimeout(()=>{o&&o.abort(),s(new k(e))},n.timeout);n.fetch(e,t).then(r).catch(s).then(()=>{clearTimeout(i)})})}async function C(e,t){let{signal:o}=t;return new Promise((t,n)=>{function r(){clearTimeout(s),n(o.reason)}o&&(o.throwIfAborted(),o.addEventListener("abort",r,{once:!0}));let s=setTimeout(()=>{null==o||o.removeEventListener("abort",r),t()},e)})}class L{static create(e,t){let o=new L(e,t),n=async()=>{if("number"==typeof o.#e.timeout&&o.#e.timeout>0x7fffffff)throw RangeError("The `timeout` option cannot be greater than 2147483647");await Promise.resolve();let e=await o.#t();for(let r of o.#e.hooks.afterResponse){let s=o.#o(e.clone()),l=await r(o.request,o.#n(),s,{retryCount:o.#r});if(l instanceof globalThis.Response&&(e=l),l instanceof h){var t,n;throw await Promise.all([null==(t=s.body)?void 0:t.cancel(),null==(n=e.body)?void 0:n.cancel()]),new i(l.options)}}if(o.#o(e),!e.ok&&("function"==typeof o.#e.throwHttpErrors?o.#e.throwHttpErrors(e.status):o.#e.throwHttpErrors)){let t=new r(e,o.request,o.#n());for(let e of o.#e.hooks.beforeError)t=await e(t,{retryCount:o.#r});throw t}if(o.#e.onDownloadProgress){if("function"!=typeof o.#e.onDownloadProgress)throw TypeError("The `onDownloadProgress` option must be a function");if(!c)throw Error("Streams are not supported in your environment. `ReadableStream` is missing.");return((e,t)=>{if(!e.body)return e;if(204===e.status)return new Response(null,{status:e.status,statusText:e.statusText,headers:e.headers});let o=Math.max(0,Number(e.headers.get("content-length"))||0);return new Response(_(e.body,o,t),{status:e.status,statusText:e.statusText,headers:e.headers})})(e.clone(),o.#e.onDownloadProgress)}return e},s=o.#s(n).finally(async()=>{var e,t;let n=o.#i,r=[];n&&!n.bodyUsed&&r.push(null==(e=n.body)?void 0:e.cancel()),o.request.bodyUsed||r.push(null==(t=o.request.body)?void 0:t.cancel()),await Promise.all(r)});for(let[e,n]of Object.entries(j)){var l,a;("bytes"!==e||"function"==typeof(null==(a=globalThis.Response)||null==(l=a.prototype)?void 0:l.bytes))&&(s[e]=async()=>{o.request.headers.set("accept",o.request.headers.get("accept")||n);let r=await s;if("json"===e){if(204===r.status)return"";let e=await r.text();return""===e?"":t.parseJson?t.parseJson(e):JSON.parse(e)}return r[e]()})}return s}static #l(e){return!e||"object"!=typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.fromEntries(Object.entries(e).filter(e=>{let[,t]=e;return void 0!==t}))}#a;#r;#u;#e;#i;#c;#d;constructor(e,t={}){var o,n,r,s,i,c,j,p,m,h,y,b,g;let v;if(this.#r=0,this.#u=e,this.#e={...t,headers:R(this.#u.headers,t.headers),hooks:T({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},t.hooks),method:(v=null!=(n=null!=(o=t.method)?o:this.#u.method)?n:"GET",f.includes(v)?v.toUpperCase():v),prefixUrl:String(t.prefixUrl||""),retry:q(t.retry),throwHttpErrors:null==(r=t.throwHttpErrors)||r,timeout:null!=(s=t.timeout)?s:1e4,fetch:null!=(i=t.fetch)?i:globalThis.fetch.bind(globalThis),context:null!=(c=t.context)?c:{}},"string"!=typeof this.#u&&!(this.#u instanceof URL||this.#u instanceof globalThis.Request))throw TypeError("`input` must be a string, URL, or Request");if(this.#e.prefixUrl&&"string"==typeof this.#u){if(this.#u.startsWith("/"))throw Error("`input` must not begin with a slash when using `prefixUrl`");this.#e.prefixUrl.endsWith("/")||(this.#e.prefixUrl+="/"),this.#u=this.#e.prefixUrl+this.#u}a&&u&&(this.#c=null!=(j=this.#e.signal)?j:this.#u.signal,this.#a=new globalThis.AbortController,this.#e.signal=this.#c?AbortSignal.any([this.#c,this.#a.signal]):this.#a.signal),l&&(this.#e.duplex="half"),void 0!==this.#e.json&&(this.#e.body=null!=(h=null==(p=(m=this.#e).stringifyJson)?void 0:p.call(m,this.#e.json))?h:JSON.stringify(this.#e.json),this.#e.headers.set("content-type",null!=(y=this.#e.headers.get("content-type"))?y:"application/json"));let _=t.headers&&new globalThis.Headers(t.headers).has("content-type");if(this.#u instanceof globalThis.Request&&(d&&this.#e.body instanceof globalThis.FormData||this.#e.body instanceof URLSearchParams)&&!_&&this.#e.headers.delete("content-type"),this.request=new globalThis.Request(this.#u,this.#e),void 0!==(g=this.#e.searchParams)&&(Array.isArray(g)?g.length>0:g instanceof URLSearchParams?g.size>0:"object"==typeof g?Object.keys(g).length>0:"string"==typeof g?g.trim().length>0:!!g)){let e="string"==typeof this.#e.searchParams?this.#e.searchParams.replace(/^\?/,""):new URLSearchParams(L.#l(this.#e.searchParams)).toString(),t=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,"?"+e);this.request=new globalThis.Request(t,this.#e)}if(this.#e.onUploadProgress){if("function"!=typeof this.#e.onUploadProgress)throw TypeError("The `onUploadProgress` option must be a function");if(!l)throw Error("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");this.request=this.#f(this.request,null!=(b=this.#e.body)?b:void 0)}}#j(){let e=this.#e.retry.delay(this.#r),t=e;return!0===this.#e.retry.jitter?t=Math.random()*e:"function"==typeof this.#e.retry.jitter&&(!Number.isFinite(t=this.#e.retry.jitter(e))||t<0)&&(t=e),Math.min(this.#e.retry.backoffLimit,t)}async #p(e){var t,o,n,l,a,u;if(this.#r++,this.#r>this.#e.retry.limit)throw e;let c=e instanceof Error?e:new s(e);if(c instanceof i)return null!=(t=c.customDelay)?t:this.#j();if(!this.#e.retry.methods.includes(this.request.method.toLowerCase()))throw e;if(void 0!==this.#e.retry.shouldRetry){let t=await this.#e.retry.shouldRetry({error:c,retryCount:this.#r});if(!1===t)throw e;if(!0===t)return this.#j()}if((e instanceof k||(null==e?void 0:e.name)===k.name)&&!this.#e.retry.retryOnTimeout)throw e;if(e instanceof r||(null==e?void 0:e.name)===r.name){if(!this.#e.retry.statusCodes.includes(e.response.status))throw e;let t=null!=(a=null!=(l=null!=(n=null!=(o=e.response.headers.get("Retry-After"))?o:e.response.headers.get("RateLimit-Reset"))?n:e.response.headers.get("X-RateLimit-Retry-After"))?l:e.response.headers.get("X-RateLimit-Reset"))?a:e.response.headers.get("X-Rate-Limit-Reset");if(t&&this.#e.retry.afterStatusCodes.includes(e.response.status)){let e=1e3*Number(t);Number.isNaN(e)?e=Date.parse(t)-Date.now():e>=Date.parse("2024-01-01")&&(e-=Date.now());let o=null!=(u=this.#e.retry.maxRetryAfter)?u:e;return e<o?e:o}if(413===e.response.status)throw e}return this.#j()}#o(e){return this.#e.parseJson&&(e.json=async()=>this.#e.parseJson(await e.text())),e}async #s(e){try{return await e()}catch(o){let t=Math.min(await this.#p(o),0x7fffffff);if(this.#r<1)throw o;if(await C(t,this.#c?{signal:this.#c}:{}),o instanceof i&&o.customRequest){let e=this.#e.signal?new globalThis.Request(o.customRequest,{signal:this.#e.signal}):new globalThis.Request(o.customRequest);this.#m(e)}for(let e of this.#e.hooks.beforeRetry){let t=await e({request:this.request,options:this.#n(),error:o,retryCount:this.#r});if(t instanceof globalThis.Request){this.#m(t);break}if(t instanceof globalThis.Response)return t;if(t===m)return}return this.#s(e)}}async #t(){var e;for(let t of((null==(e=this.#a)?void 0:e.signal.aborted)&&(this.#a=new globalThis.AbortController,this.#e.signal=this.#c?AbortSignal.any([this.#c,this.#a.signal]):this.#a.signal,this.request=new globalThis.Request(this.request,{signal:this.#e.signal})),this.#e.hooks.beforeRequest)){let e=await t(this.request,this.#n(),{retryCount:this.#r});if(e instanceof Response)return e;if(e instanceof globalThis.Request){this.#m(e);break}}let t=((e,t)=>{let o={};for(let n in t)Object.hasOwn(t,n)&&(n in v||n in b||n in e&&!(n in g)||(o[n]=t[n]));return o})(this.request,this.#e);return(this.#i=this.request,this.request=this.#i.clone(),!1===this.#e.timeout)?this.#e.fetch(this.#i,t):A(this.#i,t,this.#a,this.#e)}#n(){if(!this.#d){let{hooks:e,...t}=this.#e;this.#d=Object.freeze(t)}return this.#d}#m(e){this.#d=void 0,this.request=this.#f(e)}#f(e,t){var o;return this.#e.onUploadProgress&&e.body?((e,t,o)=>{if(!e.body)return e;let n=(e=>{if(!e)return 0;if(e instanceof FormData){let t=0;for(let[o,n]of e)t+=p,t+=new TextEncoder().encode(`Content-Disposition: form-data; name="${o}"`).length,t+="string"==typeof n?new TextEncoder().encode(n).length:n.size;return t}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength;if("string"==typeof e)return new TextEncoder().encode(e).length;if(e instanceof URLSearchParams)return new TextEncoder().encode(e.toString()).length;if("byteLength"in e)return e.byteLength;if("object"==typeof e&&null!==e)try{let t=JSON.stringify(e);return new TextEncoder().encode(t).length}catch{}return 0})(null!=o?o:e.body);return new Request(e,{duplex:"half",body:_(e.body,n,t)})})(e,this.#e.onUploadProgress,null!=(o=null!=t?t:this.#e.body)?o:void 0):e}}let N=e=>{let t=(t,o)=>L.create(t,x(e,o));for(let o of f)t[o]=(t,n)=>L.create(t,x(e,n,{method:o}));return t.create=e=>N(x(e)),t.extend=t=>("function"==typeof t&&(t=t(null!=e?e:{})),N(x(e,t))),t.stop=m,t.retry=y,t},U=N(),D=[239,187,191],z=e=>async(t,o,n)=>{if(!n.ok||!n.body)return;let r=!1,s=t=>{var o;r||(r=!0,null==(o=e.onCompleted)||o.call(e,t))},i=n.body.getReader(),l=new TextDecoder("utf8"),a=function(e){let t,o,n,r,s,i,l;return a(),{feed:function(a){var u;o=o?o+a:a,t&&(u=o,D.every((e,t)=>u.charCodeAt(t)===e))&&(o=o.slice(D.length)),t=!1;let c=o.length,d=0,f=!1;for(;d<c;){let t;f&&("\n"===o[d]&&++d,f=!1);let a=-1,u=r;for(let e=n;a<0&&e<c;++e)":"===(t=o[e])&&u<0?u=e-d:"\r"===t?(f=!0,a=e-d):"\n"===t&&(a=e-d);if(a<0){n=c-d,r=u;break}n=0,r=-1,function(t,o,n,r){if(0===r){l.length>0&&(e({type:"event",id:s,event:i||void 0,data:l.slice(0,-1)}),l="",s=void 0),i=void 0;return}let a=n<0,u=t.slice(o,o+(a?r:n)),c=0;c=a?r:" "===t[o+n+1]?n+2:n+1;let d=o+c,f=r-c,j=t.slice(d,d+f).toString();if("data"===u)l+=j?"".concat(j,"\n"):"\n";else if("event"===u)i=j;else if("id"!==u||j.includes("\0")){if("retry"===u){let t=parseInt(j,10);Number.isNaN(t)||e({type:"reconnect-interval",value:t})}}else s=j}(o,d,u,a),d+=a+1}d===c?o="":d>0&&(o=o.slice(d))},reset:a};function a(){t=!0,o="",n=0,r=-1,s=void 0,i=void 0,l=""}}(t=>{var o,n,r;if("event"===t.type&&(null==(o=e.onMessage)||o.call(e,t)),"event"===t.type&&t.data)for(let o of(null==(n=e.onEvent)||n.call(e,t),t.data.split("\n")))e.onData(o);else"reconnect-interval"===t.type&&(null==(r=e.onReconnectInterval)||r.call(e,t.value))}),u=()=>{i.read().then(e=>{e.done?s():(a.feed(l.decode(e.value,{stream:!0})),u())}).catch(o=>{var n;if(t.signal.aborted){null==(n=e.onAborted)||n.call(e);return}s(o)})};return u(),n};export{r as HTTPError,k as TimeoutError,U as ky,n as sseHook};
|