@bdky/aaas-pilot-kit 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/README.md +222 -0
  2. package/dist/http.cjs.js +2 -0
  3. package/dist/http.cjs.js.LICENSE.txt +1 -0
  4. package/dist/http.esm.js +2 -0
  5. package/dist/http.esm.js.LICENSE.txt +1 -0
  6. package/dist/http.umd.js +2 -0
  7. package/dist/http.umd.js.LICENSE.txt +1 -0
  8. package/dist/index.cjs.js +44 -0
  9. package/dist/index.cjs.js.LICENSE.txt +45 -0
  10. package/dist/index.esm.js +44 -0
  11. package/dist/index.esm.js.LICENSE.txt +45 -0
  12. package/dist/index.umd.js +44 -0
  13. package/dist/index.umd.js.LICENSE.txt +45 -0
  14. package/dist/ky-aaas-pilot-kit.umd.js +44 -0
  15. package/dist/ky-aaas-pilot-kit.umd.js.LICENSE.txt +45 -0
  16. package/dist/libs/aaas-pilot-kit/src/http.d.ts +4 -0
  17. package/dist/libs/aaas-pilot-kit/src/index.d.ts +5 -0
  18. package/dist/libs/aaas-pilot-kit/src/lib/DI/types.d.ts +12 -0
  19. package/dist/libs/aaas-pilot-kit/src/lib/aaas-pilot-kit.d.ts +5 -0
  20. package/dist/libs/aaas-pilot-kit/src/lib/api/request.d.ts +9 -0
  21. package/dist/libs/aaas-pilot-kit/src/lib/constants/env.d.ts +1 -0
  22. package/dist/libs/aaas-pilot-kit/src/lib/controller.d.ts +107 -0
  23. package/dist/libs/aaas-pilot-kit/src/lib/error/BaseError.d.ts +12 -0
  24. package/dist/libs/aaas-pilot-kit/src/lib/error/ErrorEmitter.d.ts +54 -0
  25. package/dist/libs/aaas-pilot-kit/src/lib/error/ErrorHandler.d.ts +17 -0
  26. package/dist/libs/aaas-pilot-kit/src/lib/error/ErrorManager.d.ts +34 -0
  27. package/dist/libs/aaas-pilot-kit/src/lib/error/codes.d.ts +57 -0
  28. package/dist/libs/aaas-pilot-kit/src/lib/error/index.d.ts +16 -0
  29. package/dist/libs/aaas-pilot-kit/src/lib/error/monitoring/MonitoringError.d.ts +46 -0
  30. package/dist/libs/aaas-pilot-kit/src/lib/error/reporters/ConsoleReporter.d.ts +4 -0
  31. package/dist/libs/aaas-pilot-kit/src/lib/error/reporters/HttpReporter.d.ts +16 -0
  32. package/dist/libs/aaas-pilot-kit/src/lib/error/reporters/index.d.ts +2 -0
  33. package/dist/libs/aaas-pilot-kit/src/lib/error/services/AgentError.d.ts +17 -0
  34. package/dist/libs/aaas-pilot-kit/src/lib/error/services/AsrError.d.ts +23 -0
  35. package/dist/libs/aaas-pilot-kit/src/lib/error/services/ConversationError.d.ts +23 -0
  36. package/dist/libs/aaas-pilot-kit/src/lib/error/services/DigitalHumanError.d.ts +32 -0
  37. package/dist/libs/aaas-pilot-kit/src/lib/error/services/index.d.ts +4 -0
  38. package/dist/libs/aaas-pilot-kit/src/lib/error/types.d.ts +41 -0
  39. package/dist/libs/aaas-pilot-kit/src/lib/error/utils/ErrorUtils.d.ts +7 -0
  40. package/dist/libs/aaas-pilot-kit/src/lib/service/agent/aiobAgentService.d.ts +69 -0
  41. package/dist/libs/aaas-pilot-kit/src/lib/service/agent/baseAgentService.d.ts +65 -0
  42. package/dist/libs/aaas-pilot-kit/src/lib/service/agent/cspAgentService.d.ts +90 -0
  43. package/dist/libs/aaas-pilot-kit/src/lib/service/conversation/aiWorkerConversationBean.d.ts +39 -0
  44. package/dist/libs/aaas-pilot-kit/src/lib/service/conversation/clientConversationBean.d.ts +25 -0
  45. package/dist/libs/aaas-pilot-kit/src/lib/service/conversation/content/ImageContent.d.ts +25 -0
  46. package/dist/libs/aaas-pilot-kit/src/lib/service/conversation/content/MultimodalContent.d.ts +42 -0
  47. package/dist/libs/aaas-pilot-kit/src/lib/service/conversation/content/TextContent.d.ts +41 -0
  48. package/dist/libs/aaas-pilot-kit/src/lib/service/conversation/content/VideoContent.d.ts +26 -0
  49. package/dist/libs/aaas-pilot-kit/src/lib/service/conversation/content/index.d.ts +8 -0
  50. package/dist/libs/aaas-pilot-kit/src/lib/service/conversation/conversationBean.d.ts +25 -0
  51. package/dist/libs/aaas-pilot-kit/src/lib/service/conversation/conversationService.d.ts +36 -0
  52. package/dist/libs/aaas-pilot-kit/src/lib/service/conversation/index.d.ts +4 -0
  53. package/dist/libs/aaas-pilot-kit/src/lib/service/digital-human/BaseDigitalHumanService.d.ts +62 -0
  54. package/dist/libs/aaas-pilot-kit/src/lib/service/digital-human/CloudDigitalHumanService.d.ts +102 -0
  55. package/dist/libs/aaas-pilot-kit/src/lib/service/digital-human/PictureClientDigitalHumanService.d.ts +85 -0
  56. package/dist/libs/aaas-pilot-kit/src/lib/service/digital-human/interface.d.ts +100 -0
  57. package/dist/libs/aaas-pilot-kit/src/lib/service/rtc-asr/asr/baseAsrService.d.ts +82 -0
  58. package/dist/libs/aaas-pilot-kit/src/lib/service/rtc-asr/asr/brtcAsrService.d.ts +38 -0
  59. package/dist/libs/aaas-pilot-kit/src/lib/service/rtc-asr/signal/base.d.ts +19 -0
  60. package/dist/libs/aaas-pilot-kit/src/lib/service/rtc-asr/signal/brtc.d.ts +69 -0
  61. package/dist/libs/aaas-pilot-kit/src/lib/utils/applyTextReplacements.d.ts +15 -0
  62. package/dist/libs/aaas-pilot-kit/src/lib/utils/customXmlParser.d.ts +46 -0
  63. package/dist/libs/aaas-pilot-kit/src/lib/utils/isEmptyObject.d.ts +14 -0
  64. package/dist/libs/aaas-pilot-kit/src/lib/utils/isPlainObject.d.ts +13 -0
  65. package/dist/libs/aaas-pilot-kit/src/lib/utils/noop.d.ts +1 -0
  66. package/dist/libs/aaas-pilot-kit/src/lib/utils/sleep.d.ts +1 -0
  67. package/dist/libs/aaas-pilot-kit/src/lib/utils/toQueryString.d.ts +1 -0
  68. package/dist/libs/aaas-pilot-kit/src/lib/utils/ua.d.ts +3 -0
  69. package/dist/libs/aaas-pilot-kit/src/samples/react/Route/index.d.ts +3 -0
  70. package/dist/libs/aaas-pilot-kit/src/samples/react/conversation.d.ts +2 -0
  71. package/dist/libs/aaas-pilot-kit/src/samples/react/index.d.ts +1 -0
  72. package/dist/libs/aaas-pilot-kit/src/test-setup.d.ts +1 -0
  73. package/dist/libs/aaas-pilot-kit/src/types/agent.d.ts +8 -0
  74. package/dist/libs/aaas-pilot-kit/src/types/common.d.ts +5 -0
  75. package/dist/libs/aaas-pilot-kit/src/types/config.d.ts +552 -0
  76. package/package.json +64 -0
@@ -0,0 +1,2 @@
1
+ /*! For license information please see http.umd.js.LICENSE.txt */
2
+ !function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports.KyDigitalHuman=o():e.KyDigitalHuman=o()}(globalThis,()=>(()=>{"use strict";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={};return(()=>{n.r(t),n.d(t,{TimeoutError:()=>r,ky:()=>q,sseHook:()=>e,HTTPError:()=>o});var e={};n.r(e),n.d(e,{createHook:()=>I}),n("../../node_modules/core-js/modules/es.object.has-own.js"),n("../../node_modules/core-js/modules/es.array.includes.js");class o 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 r 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 s=(()=>{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})(),i="function"==typeof globalThis.AbortController,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:"*/*"},d=new TextEncoder().encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length,j=Symbol("stop"),f={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,prefixUrl:!0,retry:!0,timeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0},p={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},m=e=>{if(!e)return 0;if(e instanceof FormData){let o=0;for(let[n,t]of e)o+=d,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},y=(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})},h=(e,o)=>{let n=m(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()}})})},_=e=>null!==e&&"object"==typeof e,b=function(){for(var e=arguments.length,o=Array(e),n=0;n<e;n++)o[n]=arguments[n];for(let e of o)if((!_(e)||Array.isArray(e))&&void 0!==e)throw TypeError("The `options` argument must be an object");return x({},...o)},g=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 v(e,o,n){var t,r;return Object.hasOwn(o,n)&&void 0===o[n]?[]:x(null!=(t=e[n])?t:[],null!=(r=o[n])?r:[])}let w=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{beforeRequest:v(e,o,"beforeRequest"),beforeRetry:v(e,o,"beforeRetry"),afterResponse:v(e,o,"afterResponse"),beforeError:v(e,o,"beforeError")}},x=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(_(e)){for(let[o,n]of Object.entries(e))_(n)&&o in t&&(n=x(t[o],n)),t={...t,[o]:n};_(e.hooks)&&(s=w(s,e.hooks),t.hooks=s),_(e.headers)&&(r=g(r,e.headers),t.headers=r)}return t},T=e=>u.includes(e)?e.toUpperCase():e,R={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},O=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}};async function S(e,o,n,t){return new Promise((s,i)=>{let l=setTimeout(()=>{n&&n.abort(),i(new r(e))},t.timeout);t.fetch(e,o).then(s).catch(i).then(()=>{clearTimeout(l)})})}async function A(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 E=(e,o)=>{let n={};for(let t in o)t in p||t in f||t in e||(n[t]=o[t]);return n};class P{static create(e,n){let t=new P(e,n),r=async()=>{if("number"==typeof t._options.timeout&&t._options.timeout>0x7fffffff)throw RangeError("The `timeout` option cannot be greater than 2147483647");await Promise.resolve();let e=await t._fetch();for(let o of t._options.hooks.afterResponse){let n=await o(t.request,t._options,t._decorateResponse(e.clone()));n instanceof globalThis.Response&&(e=n)}if(t._decorateResponse(e),!e.ok&&t._options.throwHttpErrors){let n=new o(e,t.request,t._options);for(let e of t._options.hooks.beforeError)n=await e(n);throw n}if(t._options.onDownloadProgress){if("function"!=typeof t._options.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 y(e.clone(),t._options.onDownloadProgress)}return e},s=(t._options.retry.methods.includes(t.request.method.toLowerCase())?t._retry(r):r()).finally(async()=>{if(!t.request.bodyUsed){var e;await (null==(e=t.request.body)?void 0:e.cancel())}});for(let[e,o]of Object.entries(c))s[e]=async()=>{t.request.headers.set("accept",t.request.headers.get("accept")||o);let r=await s;if("json"===e){if(204===r.status||0===(await r.clone().arrayBuffer()).byteLength)return"";if(n.parseJson)return n.parseJson(await r.text())}return r[e]()};return s}constructor(e,o={}){var n,t,r,l,u,c,d,j,f;if(this._retryCount=0,this._input=e,this._options={...o,headers:g(this._input.headers,o.headers),hooks:w({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},o.hooks),method:T(null!=(t=null!=(n=o.method)?n:this._input.method)?t:"GET"),prefixUrl:String(o.prefixUrl||""),retry:O(o.retry),throwHttpErrors:!1!==o.throwHttpErrors,timeout:null!=(r=o.timeout)?r: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(i){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(s&&(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);(a&&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(!s)throw Error("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");this.request.body&&(this.request=h(this.request,this._options.onUploadProgress))}}_calculateRetryDelay(e){if(this._retryCount++,this._retryCount>this._options.retry.limit||e instanceof r)throw e;if(e instanceof o){var n,t,s,i;if(!this._options.retry.statusCodes.includes(e.response.status))throw e;let o=null!=(s=null!=(t=null!=(n=e.response.headers.get("Retry-After"))?n:e.response.headers.get("RateLimit-Reset"))?t: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 n=null!=(i=this._options.retry.maxRetryAfter)?i:e;return e<n?e:n}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 A(o,{signal:this._options.signal}),this._options.hooks.beforeRetry))if(await e({request:this.request,options:this._options,error:n,retryCount:this._retryCount})===j)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=E(this.request,this._options),o=this.request;return(this.request=o.clone(),!1===this._options.timeout)?this._options.fetch(o,e):S(o,e,this.abortController,this._options)}}let k=e=>{let o=(o,n)=>P.create(o,b(e,n));for(let n of u)o[n]=(o,t)=>P.create(o,b(e,t,{method:n}));return o.create=e=>k(b(e)),o.extend=o=>("function"==typeof o&&(o=o(null!=e?e:{})),k(b(e,o))),o.stop=j,o},q=k(),C=[239,187,191],I=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,C.every((e,o)=>u.charCodeAt(o)===e))&&(n=n.slice(C.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}})(),t})());
@@ -0,0 +1 @@
1
+ /*! MIT License © Sindre Sorhus */