@das-fed/upf-utils 6.4.0-dev.124

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 (203) hide show
  1. package/__VLS_types.d.ts +124 -0
  2. package/api-services/i18n/index.d.ts +53 -0
  3. package/api-services/i18n/index.js +27 -0
  4. package/api-services/i18n/index.js.gz +0 -0
  5. package/api-services/index.d.ts +2 -0
  6. package/api-services/index.js +3141 -0
  7. package/api-services/index.js.gz +0 -0
  8. package/api-services/modules/app-manage/index.d.ts +2 -0
  9. package/api-services/modules/app-manage/index.js +2827 -0
  10. package/api-services/modules/app-manage/index.js.gz +0 -0
  11. package/api-services/modules/authentication/index.d.ts +2 -0
  12. package/api-services/modules/authentication/index.js +2827 -0
  13. package/api-services/modules/authentication/index.js.gz +0 -0
  14. package/api-services/modules/bems/index.d.ts +6 -0
  15. package/api-services/modules/bems/index.js +2831 -0
  16. package/api-services/modules/bems/index.js.gz +0 -0
  17. package/api-services/modules/contract/index.d.ts +2 -0
  18. package/api-services/modules/contract/index.js +2827 -0
  19. package/api-services/modules/contract/index.js.gz +0 -0
  20. package/api-services/modules/duty-manage/index.d.ts +7 -0
  21. package/api-services/modules/duty-manage/index.js +2836 -0
  22. package/api-services/modules/duty-manage/index.js.gz +0 -0
  23. package/api-services/modules/enterpriseright/index.d.ts +2 -0
  24. package/api-services/modules/enterpriseright/index.js +2827 -0
  25. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  26. package/api-services/modules/file/index.d.ts +37 -0
  27. package/api-services/modules/file/index.js +3059 -0
  28. package/api-services/modules/file/index.js.gz +0 -0
  29. package/api-services/modules/gateway-edge/index.d.ts +2 -0
  30. package/api-services/modules/gateway-edge/index.js +2827 -0
  31. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  32. package/api-services/modules/index.d.ts +21 -0
  33. package/api-services/modules/index.js +3115 -0
  34. package/api-services/modules/index.js.gz +0 -0
  35. package/api-services/modules/iot/index.d.ts +16 -0
  36. package/api-services/modules/iot/index.js +2841 -0
  37. package/api-services/modules/iot/index.js.gz +0 -0
  38. package/api-services/modules/justauth/index.d.ts +3 -0
  39. package/api-services/modules/justauth/index.js +2828 -0
  40. package/api-services/modules/justauth/index.js.gz +0 -0
  41. package/api-services/modules/knowledge/index.d.ts +2 -0
  42. package/api-services/modules/knowledge/index.js +2827 -0
  43. package/api-services/modules/knowledge/index.js.gz +0 -0
  44. package/api-services/modules/link/index.d.ts +2 -0
  45. package/api-services/modules/link/index.js +2827 -0
  46. package/api-services/modules/link/index.js.gz +0 -0
  47. package/api-services/modules/permission/index.d.ts +2 -0
  48. package/api-services/modules/permission/index.js +2827 -0
  49. package/api-services/modules/permission/index.js.gz +0 -0
  50. package/api-services/modules/platformManage/index.d.ts +14 -0
  51. package/api-services/modules/platformManage/index.js +2835 -0
  52. package/api-services/modules/platformManage/index.js.gz +0 -0
  53. package/api-services/modules/portal/index.d.ts +2 -0
  54. package/api-services/modules/portal/index.js +2827 -0
  55. package/api-services/modules/portal/index.js.gz +0 -0
  56. package/api-services/modules/space-manage/index.d.ts +2 -0
  57. package/api-services/modules/space-manage/index.js +2827 -0
  58. package/api-services/modules/space-manage/index.js.gz +0 -0
  59. package/api-services/modules/super-admin/index.d.ts +8 -0
  60. package/api-services/modules/super-admin/index.js +2830 -0
  61. package/api-services/modules/super-admin/index.js.gz +0 -0
  62. package/api-services/modules/supplier/index.d.ts +6 -0
  63. package/api-services/modules/supplier/index.js +2829 -0
  64. package/api-services/modules/supplier/index.js.gz +0 -0
  65. package/api-services/modules/supplychain-manage/index.d.ts +2 -0
  66. package/api-services/modules/supplychain-manage/index.js +2827 -0
  67. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  68. package/api-services/modules/systemConfiguration/index.d.ts +2 -0
  69. package/api-services/modules/systemConfiguration/index.js +2827 -0
  70. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  71. package/api-services/modules/tool/index.d.ts +2 -0
  72. package/api-services/modules/tool/index.js +2827 -0
  73. package/api-services/modules/tool/index.js.gz +0 -0
  74. package/api-services/src/create-service/index.d.ts +1 -0
  75. package/api-services/src/create-service/index.js +2827 -0
  76. package/api-services/src/create-service/index.js.gz +0 -0
  77. package/atob/index.d.ts +2 -0
  78. package/atob/index.js +11 -0
  79. package/common-info/getIframeUrl/index.d.ts +9 -0
  80. package/common-info/getIframeUrl/index.js +10 -0
  81. package/common-info/getInfoFromUrl/index.d.ts +8 -0
  82. package/common-info/getInfoFromUrl/index.js +84 -0
  83. package/common-info/getInfoFromUrl/index.js.gz +0 -0
  84. package/common-info/index.d.ts +61 -0
  85. package/common-info/index.js +171 -0
  86. package/common-info/index.js.gz +0 -0
  87. package/common-info/set-personal-info/index.d.ts +5 -0
  88. package/common-info/set-personal-info/index.js +1474 -0
  89. package/common-info/set-personal-info/index.js.gz +0 -0
  90. package/common-info/type.d.ts +214 -0
  91. package/common-tools/arr-tools/index.d.ts +15 -0
  92. package/common-tools/arr-tools/index.js +8 -0
  93. package/common-tools/calc-text-width/index.d.ts +1 -0
  94. package/common-tools/calc-text-width/index.js +10 -0
  95. package/common-tools/date-format/index.d.ts +7 -0
  96. package/common-tools/date-format/index.js +19 -0
  97. package/common-tools/extract-file-name/index.d.ts +1 -0
  98. package/common-tools/extract-file-name/index.js +1466 -0
  99. package/common-tools/extract-file-name/index.js.gz +0 -0
  100. package/common-tools/get-file-extension/index.d.ts +6 -0
  101. package/common-tools/get-file-extension/index.js +7 -0
  102. package/common-tools/get-url-params/index.d.ts +46 -0
  103. package/common-tools/get-url-params/index.js +63 -0
  104. package/common-tools/get-url-params/index.js.gz +0 -0
  105. package/common-tools/handle-data/index.d.ts +6 -0
  106. package/common-tools/handle-data/index.js +4 -0
  107. package/common-tools/index.d.ts +14 -0
  108. package/common-tools/index.js +14 -0
  109. package/common-tools/nest-tree-format/index.d.ts +30 -0
  110. package/common-tools/nest-tree-format/index.js +24 -0
  111. package/common-tools/obj-tools/index.d.ts +7 -0
  112. package/common-tools/obj-tools/index.js +14 -0
  113. package/common-tools/platform-tools/index.d.ts +19 -0
  114. package/common-tools/platform-tools/index.js +19 -0
  115. package/common-tools/queue-promise/index.d.ts +6 -0
  116. package/common-tools/queue-promise/index.js +9 -0
  117. package/common-tools/setHtmlMinWH/index.d.ts +5 -0
  118. package/common-tools/setHtmlMinWH/index.js +7 -0
  119. package/common-tools/update-browser-title/index.d.ts +1 -0
  120. package/common-tools/update-browser-title/index.js +12 -0
  121. package/common-tools/update-fav-icon/index.d.ts +11 -0
  122. package/common-tools/update-fav-icon/index.js +22 -0
  123. package/config/index.d.ts +2 -0
  124. package/config/index.js +9 -0
  125. package/create-api-service/i18n/index.d.ts +33 -0
  126. package/create-api-service/i18n/index.js +15 -0
  127. package/create-api-service/index.d.ts +3 -0
  128. package/create-api-service/index.js +2827 -0
  129. package/create-api-service/index.js.gz +0 -0
  130. package/create-api-service/proxy-sso/index.d.ts +3 -0
  131. package/create-api-service/proxy-sso/index.js +21 -0
  132. package/create-api-service/sso/index.d.ts +21 -0
  133. package/create-api-service/sso/index.js +1845 -0
  134. package/create-api-service/sso/index.js.gz +0 -0
  135. package/curring-http/index.d.ts +12 -0
  136. package/curring-http/index.js +2002 -0
  137. package/curring-http/index.js.gz +0 -0
  138. package/curring-http/type.d.ts +89 -0
  139. package/dimple-canvas/index.d.ts +3 -0
  140. package/dimple-canvas/index.js +5 -0
  141. package/directive/auth/index.d.ts +8 -0
  142. package/directive/auth/index.js +62 -0
  143. package/directive/auth/index.js.gz +0 -0
  144. package/directive/clickOutside/index.d.ts +6 -0
  145. package/directive/clickOutside/index.js +27 -0
  146. package/directive/hoverInside/index.d.ts +6 -0
  147. package/directive/hoverInside/index.js +21 -0
  148. package/directive/index.d.ts +3 -0
  149. package/directive/index.js +8 -0
  150. package/directive/utils/index.d.ts +7 -0
  151. package/directive/utils/index.js +7 -0
  152. package/dom-check-in/index.d.ts +6 -0
  153. package/dom-check-in/index.js +8 -0
  154. package/dom-watcher/index.d.ts +25 -0
  155. package/dom-watcher/index.js +9 -0
  156. package/esm-map.json +146 -0
  157. package/hooks/popup-manager/use-zindex/index.d.ts +3 -0
  158. package/hooks/popup-manager/use-zindex/index.js +9 -0
  159. package/hooks/use-get-auth/apis.d.ts +4 -0
  160. package/hooks/use-get-auth/index.d.ts +9 -0
  161. package/hooks/use-get-auth/index.js +53 -0
  162. package/hooks/use-get-auth/index.js.gz +0 -0
  163. package/index.d.ts +2 -0
  164. package/index.js +2 -0
  165. package/load-js/index.d.ts +3 -0
  166. package/load-js/index.js +12 -0
  167. package/nextTiken/index.d.ts +12 -0
  168. package/nextTiken/index.js +45 -0
  169. package/nextTiken/index.js.gz +0 -0
  170. package/oss/index.d.ts +2 -0
  171. package/oss/index.js +11 -0
  172. package/package.json +49 -0
  173. package/pinyin-first-character/index.d.ts +2 -0
  174. package/pinyin-first-character/index.js +25022 -0
  175. package/pinyin-first-character/index.js.gz +0 -0
  176. package/process-engine-info/index.d.ts +13 -0
  177. package/process-engine-info/index.js +15 -0
  178. package/pure-image-src/index.d.ts +2 -0
  179. package/pure-image-src/index.js +4 -0
  180. package/size-watcher/index.d.ts +6 -0
  181. package/size-watcher/index.js +20 -0
  182. package/style/index.d.ts +2 -0
  183. package/style/index.js +70 -0
  184. package/style/index.js.gz +0 -0
  185. package/style/math.d.ts +9 -0
  186. package/style/style.d.ts +31 -0
  187. package/token-tools/index.d.ts +21 -0
  188. package/token-tools/index.js +11 -0
  189. package/use-low-code/index.d.ts +1 -0
  190. package/use-low-code/index.js +69 -0
  191. package/use-low-code/index.js.gz +0 -0
  192. package/use-low-code/low-code-iframe.vue.d.ts +2 -0
  193. package/use-low-code/style.css +1 -0
  194. package/vue/hooks/use-model-value/index.d.ts +9 -0
  195. package/vue/hooks/use-model-value/index.js +10 -0
  196. package/vue/index.d.ts +1 -0
  197. package/vue/index.js +4 -0
  198. package/webSocket-service/index.d.ts +41 -0
  199. package/webSocket-service/index.js +83 -0
  200. package/webSocket-service/index.js.gz +0 -0
  201. package/webSocket-service/type.d.ts +28 -0
  202. package/with-install/index.d.ts +11 -0
  203. package/with-install/index.js +6 -0
@@ -0,0 +1,3141 @@
1
+ import { setI18nRule as Nr, currentLang as Rn, t as x } from "@das-fed/upf-web/packages/i18n/index";
2
+ import { curringHttp as xn } from "@das-fed/upf-utils/curring-http";
3
+ import { getToken as $n, getQuery as Tn, login as Cn, real_uri as Nn, getTokenParams as Fn } from "@das-fed/upf-utils/create-api-service/sso";
4
+ import Xe from "dayjs";
5
+ import _n from "dayjs/plugin/utc";
6
+ import In from "dayjs/plugin/timezone";
7
+ import { getProjectInfo as kn, getInstanceInfo as Dn } from "@das-fed/upf-utils/common-info";
8
+ import { getAccessToken as Bn } from "@das-fed/upf-utils/token-tools";
9
+ import { getConfig as Ge } from "@das-fed/upf-utils/config";
10
+ import { extractFilename as Kt } from "@das-fed/upf-utils/common-tools";
11
+ import { ref as U } from "vue";
12
+ const Un = {
13
+ 导入进度: { "zh-CN": "导入进度", en: "Import Progress", _appCode: "framework" },
14
+ 上传失败: { "zh-CN": "上传失败", en: "Uploaded Failed", _appCode: "framework" },
15
+ 导出进度: { "zh-CN": "导出进度", en: "Export Progress", _appCode: "framework" },
16
+ 导出成功: { "zh-CN": "导出成功", en: "Exported Successfully", _appCode: "framework" },
17
+ 导入成功: { "zh-CN": "导入成功", en: "Imported Successfully", _appCode: "framework" },
18
+ 导出失败: { "zh-CN": "导出失败", en: "Exported Failed", _appCode: "framework" },
19
+ 导入失败: { "zh-CN": "导入失败", en: "Imported Failed", _appCode: "framework" },
20
+ 部分导出失败: {
21
+ "zh-CN": "部分导出失败",
22
+ en: "Partial exported failed",
23
+ _appCode: "framework"
24
+ },
25
+ 部分导入失败: {
26
+ "zh-CN": "部分导入失败",
27
+ en: "Partial imported failed",
28
+ _appCode: "framework"
29
+ },
30
+ "部分数据校验不通过,请下载附件并修改,重新导入!": {
31
+ "zh-CN": "部分数据校验不通过,请下载附件并修改,重新导入!",
32
+ en: "Some data failed to pass the verification. Please download the attachment, make modifications and import it again!",
33
+ _appCode: "framework"
34
+ }
35
+ };
36
+ function Fr(t, e) {
37
+ return function() {
38
+ return t.apply(e, arguments);
39
+ };
40
+ }
41
+ const { toString: Mn } = Object.prototype, { getPrototypeOf: _t } = Object, Ye = /* @__PURE__ */ ((t) => (e) => {
42
+ const n = Mn.call(e);
43
+ return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
44
+ })(/* @__PURE__ */ Object.create(null)), X = (t) => (t = t.toLowerCase(), (e) => Ye(e) === t), Ze = (t) => (e) => typeof e === t, { isArray: Ee } = Array, Ce = Ze("undefined");
45
+ function Ln(t) {
46
+ return t !== null && !Ce(t) && t.constructor !== null && !Ce(t.constructor) && M(t.constructor.isBuffer) && t.constructor.isBuffer(t);
47
+ }
48
+ const _r = X("ArrayBuffer");
49
+ function jn(t) {
50
+ let e;
51
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && _r(t.buffer), e;
52
+ }
53
+ const zn = Ze("string"), M = Ze("function"), Ir = Ze("number"), et = (t) => t !== null && typeof t == "object", Hn = (t) => t === !0 || t === !1, ze = (t) => {
54
+ if (Ye(t) !== "object")
55
+ return !1;
56
+ const e = _t(t);
57
+ return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
58
+ }, Wn = X("Date"), qn = X("File"), Gn = X("Blob"), Jn = X("FileList"), Vn = (t) => et(t) && M(t.pipe), Kn = (t) => {
59
+ let e;
60
+ return t && (typeof FormData == "function" && t instanceof FormData || M(t.append) && ((e = Ye(t)) === "formdata" || // detect form-data instance
61
+ e === "object" && M(t.toString) && t.toString() === "[object FormData]"));
62
+ }, Qn = X("URLSearchParams"), Xn = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
63
+ function Ne(t, e, { allOwnKeys: n = !1 } = {}) {
64
+ if (t === null || typeof t > "u")
65
+ return;
66
+ let r, o;
67
+ if (typeof t != "object" && (t = [t]), Ee(t))
68
+ for (r = 0, o = t.length; r < o; r++)
69
+ e.call(null, t[r], r, t);
70
+ else {
71
+ const a = n ? Object.getOwnPropertyNames(t) : Object.keys(t), i = a.length;
72
+ let s;
73
+ for (r = 0; r < i; r++)
74
+ s = a[r], e.call(null, t[s], s, t);
75
+ }
76
+ }
77
+ function kr(t, e) {
78
+ e = e.toLowerCase();
79
+ const n = Object.keys(t);
80
+ let r = n.length, o;
81
+ for (; r-- > 0; )
82
+ if (o = n[r], e === o.toLowerCase())
83
+ return o;
84
+ return null;
85
+ }
86
+ const Dr = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Br = (t) => !Ce(t) && t !== Dr;
87
+ function bt() {
88
+ const { caseless: t } = Br(this) && this || {}, e = {}, n = (r, o) => {
89
+ const a = t && kr(e, o) || o;
90
+ ze(e[a]) && ze(r) ? e[a] = bt(e[a], r) : ze(r) ? e[a] = bt({}, r) : Ee(r) ? e[a] = r.slice() : e[a] = r;
91
+ };
92
+ for (let r = 0, o = arguments.length; r < o; r++)
93
+ arguments[r] && Ne(arguments[r], n);
94
+ return e;
95
+ }
96
+ const Yn = (t, e, n, { allOwnKeys: r } = {}) => (Ne(e, (o, a) => {
97
+ n && M(o) ? t[a] = Fr(o, n) : t[a] = o;
98
+ }, { allOwnKeys: r }), t), Zn = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), eo = (t, e, n, r) => {
99
+ t.prototype = Object.create(e.prototype, r), t.prototype.constructor = t, Object.defineProperty(t, "super", {
100
+ value: e.prototype
101
+ }), n && Object.assign(t.prototype, n);
102
+ }, to = (t, e, n, r) => {
103
+ let o, a, i;
104
+ const s = {};
105
+ if (e = e || {}, t == null) return e;
106
+ do {
107
+ for (o = Object.getOwnPropertyNames(t), a = o.length; a-- > 0; )
108
+ i = o[a], (!r || r(i, t, e)) && !s[i] && (e[i] = t[i], s[i] = !0);
109
+ t = n !== !1 && _t(t);
110
+ } while (t && (!n || n(t, e)) && t !== Object.prototype);
111
+ return e;
112
+ }, ro = (t, e, n) => {
113
+ t = String(t), (n === void 0 || n > t.length) && (n = t.length), n -= e.length;
114
+ const r = t.indexOf(e, n);
115
+ return r !== -1 && r === n;
116
+ }, no = (t) => {
117
+ if (!t) return null;
118
+ if (Ee(t)) return t;
119
+ let e = t.length;
120
+ if (!Ir(e)) return null;
121
+ const n = new Array(e);
122
+ for (; e-- > 0; )
123
+ n[e] = t[e];
124
+ return n;
125
+ }, oo = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && _t(Uint8Array)), ao = (t, e) => {
126
+ const r = (t && t[Symbol.iterator]).call(t);
127
+ let o;
128
+ for (; (o = r.next()) && !o.done; ) {
129
+ const a = o.value;
130
+ e.call(t, a[0], a[1]);
131
+ }
132
+ }, io = (t, e) => {
133
+ let n;
134
+ const r = [];
135
+ for (; (n = t.exec(e)) !== null; )
136
+ r.push(n);
137
+ return r;
138
+ }, so = X("HTMLFormElement"), lo = (t) => t.toLowerCase().replace(
139
+ /[-_\s]([a-z\d])(\w*)/g,
140
+ function(n, r, o) {
141
+ return r.toUpperCase() + o;
142
+ }
143
+ ), Qt = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), co = X("RegExp"), Ur = (t, e) => {
144
+ const n = Object.getOwnPropertyDescriptors(t), r = {};
145
+ Ne(n, (o, a) => {
146
+ let i;
147
+ (i = e(o, a, t)) !== !1 && (r[a] = i || o);
148
+ }), Object.defineProperties(t, r);
149
+ }, uo = (t) => {
150
+ Ur(t, (e, n) => {
151
+ if (M(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
152
+ return !1;
153
+ const r = t[n];
154
+ if (M(r)) {
155
+ if (e.enumerable = !1, "writable" in e) {
156
+ e.writable = !1;
157
+ return;
158
+ }
159
+ e.set || (e.set = () => {
160
+ throw Error("Can not rewrite read-only method '" + n + "'");
161
+ });
162
+ }
163
+ });
164
+ }, fo = (t, e) => {
165
+ const n = {}, r = (o) => {
166
+ o.forEach((a) => {
167
+ n[a] = !0;
168
+ });
169
+ };
170
+ return Ee(t) ? r(t) : r(String(t).split(e)), n;
171
+ }, po = () => {
172
+ }, yo = (t, e) => (t = +t, Number.isFinite(t) ? t : e), at = "abcdefghijklmnopqrstuvwxyz", Xt = "0123456789", Mr = {
173
+ DIGIT: Xt,
174
+ ALPHA: at,
175
+ ALPHA_DIGIT: at + at.toUpperCase() + Xt
176
+ }, mo = (t = 16, e = Mr.ALPHA_DIGIT) => {
177
+ let n = "";
178
+ const { length: r } = e;
179
+ for (; t--; )
180
+ n += e[Math.random() * r | 0];
181
+ return n;
182
+ };
183
+ function ho(t) {
184
+ return !!(t && M(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]);
185
+ }
186
+ const vo = (t) => {
187
+ const e = new Array(10), n = (r, o) => {
188
+ if (et(r)) {
189
+ if (e.indexOf(r) >= 0)
190
+ return;
191
+ if (!("toJSON" in r)) {
192
+ e[o] = r;
193
+ const a = Ee(r) ? [] : {};
194
+ return Ne(r, (i, s) => {
195
+ const c = n(i, o + 1);
196
+ !Ce(c) && (a[s] = c);
197
+ }), e[o] = void 0, a;
198
+ }
199
+ }
200
+ return r;
201
+ };
202
+ return n(t, 0);
203
+ }, go = X("AsyncFunction"), bo = (t) => t && (et(t) || M(t)) && M(t.then) && M(t.catch), f = {
204
+ isArray: Ee,
205
+ isArrayBuffer: _r,
206
+ isBuffer: Ln,
207
+ isFormData: Kn,
208
+ isArrayBufferView: jn,
209
+ isString: zn,
210
+ isNumber: Ir,
211
+ isBoolean: Hn,
212
+ isObject: et,
213
+ isPlainObject: ze,
214
+ isUndefined: Ce,
215
+ isDate: Wn,
216
+ isFile: qn,
217
+ isBlob: Gn,
218
+ isRegExp: co,
219
+ isFunction: M,
220
+ isStream: Vn,
221
+ isURLSearchParams: Qn,
222
+ isTypedArray: oo,
223
+ isFileList: Jn,
224
+ forEach: Ne,
225
+ merge: bt,
226
+ extend: Yn,
227
+ trim: Xn,
228
+ stripBOM: Zn,
229
+ inherits: eo,
230
+ toFlatObject: to,
231
+ kindOf: Ye,
232
+ kindOfTest: X,
233
+ endsWith: ro,
234
+ toArray: no,
235
+ forEachEntry: ao,
236
+ matchAll: io,
237
+ isHTMLForm: so,
238
+ hasOwnProperty: Qt,
239
+ hasOwnProp: Qt,
240
+ // an alias to avoid ESLint no-prototype-builtins detection
241
+ reduceDescriptors: Ur,
242
+ freezeMethods: uo,
243
+ toObjectSet: fo,
244
+ toCamelCase: lo,
245
+ noop: po,
246
+ toFiniteNumber: yo,
247
+ findKey: kr,
248
+ global: Dr,
249
+ isContextDefined: Br,
250
+ ALPHABET: Mr,
251
+ generateString: mo,
252
+ isSpecCompliantForm: ho,
253
+ toJSONObject: vo,
254
+ isAsyncFn: go,
255
+ isThenable: bo
256
+ };
257
+ function A(t, e, n, r, o) {
258
+ Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), n && (this.config = n), r && (this.request = r), o && (this.response = o);
259
+ }
260
+ f.inherits(A, Error, {
261
+ toJSON: function() {
262
+ return {
263
+ // Standard
264
+ message: this.message,
265
+ name: this.name,
266
+ // Microsoft
267
+ description: this.description,
268
+ number: this.number,
269
+ // Mozilla
270
+ fileName: this.fileName,
271
+ lineNumber: this.lineNumber,
272
+ columnNumber: this.columnNumber,
273
+ stack: this.stack,
274
+ // Axios
275
+ config: f.toJSONObject(this.config),
276
+ code: this.code,
277
+ status: this.response && this.response.status ? this.response.status : null
278
+ };
279
+ }
280
+ });
281
+ const Lr = A.prototype, jr = {};
282
+ [
283
+ "ERR_BAD_OPTION_VALUE",
284
+ "ERR_BAD_OPTION",
285
+ "ECONNABORTED",
286
+ "ETIMEDOUT",
287
+ "ERR_NETWORK",
288
+ "ERR_FR_TOO_MANY_REDIRECTS",
289
+ "ERR_DEPRECATED",
290
+ "ERR_BAD_RESPONSE",
291
+ "ERR_BAD_REQUEST",
292
+ "ERR_CANCELED",
293
+ "ERR_NOT_SUPPORT",
294
+ "ERR_INVALID_URL"
295
+ // eslint-disable-next-line func-names
296
+ ].forEach((t) => {
297
+ jr[t] = { value: t };
298
+ });
299
+ Object.defineProperties(A, jr);
300
+ Object.defineProperty(Lr, "isAxiosError", { value: !0 });
301
+ A.from = (t, e, n, r, o, a) => {
302
+ const i = Object.create(Lr);
303
+ return f.toFlatObject(t, i, function(c) {
304
+ return c !== Error.prototype;
305
+ }, (s) => s !== "isAxiosError"), A.call(i, t.message, e, n, r, o), i.cause = t, i.name = t.name, a && Object.assign(i, a), i;
306
+ };
307
+ const wo = null;
308
+ function wt(t) {
309
+ return f.isPlainObject(t) || f.isArray(t);
310
+ }
311
+ function zr(t) {
312
+ return f.endsWith(t, "[]") ? t.slice(0, -2) : t;
313
+ }
314
+ function Yt(t, e, n) {
315
+ return t ? t.concat(e).map(function(o, a) {
316
+ return o = zr(o), !n && a ? "[" + o + "]" : o;
317
+ }).join(n ? "." : "") : e;
318
+ }
319
+ function So(t) {
320
+ return f.isArray(t) && !t.some(wt);
321
+ }
322
+ const Eo = f.toFlatObject(f, {}, null, function(e) {
323
+ return /^is[A-Z]/.test(e);
324
+ });
325
+ function tt(t, e, n) {
326
+ if (!f.isObject(t))
327
+ throw new TypeError("target must be an object");
328
+ e = e || new FormData(), n = f.toFlatObject(n, {
329
+ metaTokens: !0,
330
+ dots: !1,
331
+ indexes: !1
332
+ }, !1, function(y, O) {
333
+ return !f.isUndefined(O[y]);
334
+ });
335
+ const r = n.metaTokens, o = n.visitor || p, a = n.dots, i = n.indexes, c = (n.Blob || typeof Blob < "u" && Blob) && f.isSpecCompliantForm(e);
336
+ if (!f.isFunction(o))
337
+ throw new TypeError("visitor must be a function");
338
+ function l(d) {
339
+ if (d === null) return "";
340
+ if (f.isDate(d))
341
+ return d.toISOString();
342
+ if (!c && f.isBlob(d))
343
+ throw new A("Blob is not supported. Use a Buffer instead.");
344
+ return f.isArrayBuffer(d) || f.isTypedArray(d) ? c && typeof Blob == "function" ? new Blob([d]) : Buffer.from(d) : d;
345
+ }
346
+ function p(d, y, O) {
347
+ let h = d;
348
+ if (d && !O && typeof d == "object") {
349
+ if (f.endsWith(y, "{}"))
350
+ y = r ? y : y.slice(0, -2), d = JSON.stringify(d);
351
+ else if (f.isArray(d) && So(d) || (f.isFileList(d) || f.endsWith(y, "[]")) && (h = f.toArray(d)))
352
+ return y = zr(y), h.forEach(function(C, W) {
353
+ !(f.isUndefined(C) || C === null) && e.append(
354
+ // eslint-disable-next-line no-nested-ternary
355
+ i === !0 ? Yt([y], W, a) : i === null ? y : y + "[]",
356
+ l(C)
357
+ );
358
+ }), !1;
359
+ }
360
+ return wt(d) ? !0 : (e.append(Yt(O, y, a), l(d)), !1);
361
+ }
362
+ const u = [], m = Object.assign(Eo, {
363
+ defaultVisitor: p,
364
+ convertValue: l,
365
+ isVisitable: wt
366
+ });
367
+ function v(d, y) {
368
+ if (!f.isUndefined(d)) {
369
+ if (u.indexOf(d) !== -1)
370
+ throw Error("Circular reference detected in " + y.join("."));
371
+ u.push(d), f.forEach(d, function(h, T) {
372
+ (!(f.isUndefined(h) || h === null) && o.call(
373
+ e,
374
+ h,
375
+ f.isString(T) ? T.trim() : T,
376
+ y,
377
+ m
378
+ )) === !0 && v(h, y ? y.concat(T) : [T]);
379
+ }), u.pop();
380
+ }
381
+ }
382
+ if (!f.isObject(t))
383
+ throw new TypeError("data must be an object");
384
+ return v(t), e;
385
+ }
386
+ function Zt(t) {
387
+ const e = {
388
+ "!": "%21",
389
+ "'": "%27",
390
+ "(": "%28",
391
+ ")": "%29",
392
+ "~": "%7E",
393
+ "%20": "+",
394
+ "%00": "\0"
395
+ };
396
+ return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g, function(r) {
397
+ return e[r];
398
+ });
399
+ }
400
+ function It(t, e) {
401
+ this._pairs = [], t && tt(t, this, e);
402
+ }
403
+ const Hr = It.prototype;
404
+ Hr.append = function(e, n) {
405
+ this._pairs.push([e, n]);
406
+ };
407
+ Hr.toString = function(e) {
408
+ const n = e ? function(r) {
409
+ return e.call(this, r, Zt);
410
+ } : Zt;
411
+ return this._pairs.map(function(o) {
412
+ return n(o[0]) + "=" + n(o[1]);
413
+ }, "").join("&");
414
+ };
415
+ function Ao(t) {
416
+ return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
417
+ }
418
+ function Wr(t, e, n) {
419
+ if (!e)
420
+ return t;
421
+ const r = n && n.encode || Ao, o = n && n.serialize;
422
+ let a;
423
+ if (o ? a = o(e, n) : a = f.isURLSearchParams(e) ? e.toString() : new It(e, n).toString(r), a) {
424
+ const i = t.indexOf("#");
425
+ i !== -1 && (t = t.slice(0, i)), t += (t.indexOf("?") === -1 ? "?" : "&") + a;
426
+ }
427
+ return t;
428
+ }
429
+ class er {
430
+ constructor() {
431
+ this.handlers = [];
432
+ }
433
+ /**
434
+ * Add a new interceptor to the stack
435
+ *
436
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
437
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
438
+ *
439
+ * @return {Number} An ID used to remove interceptor later
440
+ */
441
+ use(e, n, r) {
442
+ return this.handlers.push({
443
+ fulfilled: e,
444
+ rejected: n,
445
+ synchronous: r ? r.synchronous : !1,
446
+ runWhen: r ? r.runWhen : null
447
+ }), this.handlers.length - 1;
448
+ }
449
+ /**
450
+ * Remove an interceptor from the stack
451
+ *
452
+ * @param {Number} id The ID that was returned by `use`
453
+ *
454
+ * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
455
+ */
456
+ eject(e) {
457
+ this.handlers[e] && (this.handlers[e] = null);
458
+ }
459
+ /**
460
+ * Clear all interceptors from the stack
461
+ *
462
+ * @returns {void}
463
+ */
464
+ clear() {
465
+ this.handlers && (this.handlers = []);
466
+ }
467
+ /**
468
+ * Iterate over all the registered interceptors
469
+ *
470
+ * This method is particularly useful for skipping over any
471
+ * interceptors that may have become `null` calling `eject`.
472
+ *
473
+ * @param {Function} fn The function to call for each interceptor
474
+ *
475
+ * @returns {void}
476
+ */
477
+ forEach(e) {
478
+ f.forEach(this.handlers, function(r) {
479
+ r !== null && e(r);
480
+ });
481
+ }
482
+ }
483
+ const qr = {
484
+ silentJSONParsing: !0,
485
+ forcedJSONParsing: !0,
486
+ clarifyTimeoutError: !1
487
+ }, Oo = typeof URLSearchParams < "u" ? URLSearchParams : It, Po = typeof FormData < "u" ? FormData : null, Ro = typeof Blob < "u" ? Blob : null, xo = {
488
+ isBrowser: !0,
489
+ classes: {
490
+ URLSearchParams: Oo,
491
+ FormData: Po,
492
+ Blob: Ro
493
+ },
494
+ protocols: ["http", "https", "file", "blob", "url", "data"]
495
+ }, Gr = typeof window < "u" && typeof document < "u", $o = ((t) => Gr && ["ReactNative", "NativeScript", "NS"].indexOf(t) < 0)(typeof navigator < "u" && navigator.product), To = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
496
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Co = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
497
+ __proto__: null,
498
+ hasBrowserEnv: Gr,
499
+ hasStandardBrowserEnv: $o,
500
+ hasStandardBrowserWebWorkerEnv: To
501
+ }, Symbol.toStringTag, { value: "Module" })), Q = {
502
+ ...Co,
503
+ ...xo
504
+ };
505
+ function No(t, e) {
506
+ return tt(t, new Q.classes.URLSearchParams(), Object.assign({
507
+ visitor: function(n, r, o, a) {
508
+ return Q.isNode && f.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
509
+ }
510
+ }, e));
511
+ }
512
+ function Fo(t) {
513
+ return f.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
514
+ }
515
+ function _o(t) {
516
+ const e = {}, n = Object.keys(t);
517
+ let r;
518
+ const o = n.length;
519
+ let a;
520
+ for (r = 0; r < o; r++)
521
+ a = n[r], e[a] = t[a];
522
+ return e;
523
+ }
524
+ function Jr(t) {
525
+ function e(n, r, o, a) {
526
+ let i = n[a++];
527
+ if (i === "__proto__") return !0;
528
+ const s = Number.isFinite(+i), c = a >= n.length;
529
+ return i = !i && f.isArray(o) ? o.length : i, c ? (f.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !s) : ((!o[i] || !f.isObject(o[i])) && (o[i] = []), e(n, r, o[i], a) && f.isArray(o[i]) && (o[i] = _o(o[i])), !s);
530
+ }
531
+ if (f.isFormData(t) && f.isFunction(t.entries)) {
532
+ const n = {};
533
+ return f.forEachEntry(t, (r, o) => {
534
+ e(Fo(r), o, n, 0);
535
+ }), n;
536
+ }
537
+ return null;
538
+ }
539
+ function Io(t, e, n) {
540
+ if (f.isString(t))
541
+ try {
542
+ return (e || JSON.parse)(t), f.trim(t);
543
+ } catch (r) {
544
+ if (r.name !== "SyntaxError")
545
+ throw r;
546
+ }
547
+ return (n || JSON.stringify)(t);
548
+ }
549
+ const Fe = {
550
+ transitional: qr,
551
+ adapter: ["xhr", "http"],
552
+ transformRequest: [function(e, n) {
553
+ const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, a = f.isObject(e);
554
+ if (a && f.isHTMLForm(e) && (e = new FormData(e)), f.isFormData(e))
555
+ return o ? JSON.stringify(Jr(e)) : e;
556
+ if (f.isArrayBuffer(e) || f.isBuffer(e) || f.isStream(e) || f.isFile(e) || f.isBlob(e))
557
+ return e;
558
+ if (f.isArrayBufferView(e))
559
+ return e.buffer;
560
+ if (f.isURLSearchParams(e))
561
+ return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
562
+ let s;
563
+ if (a) {
564
+ if (r.indexOf("application/x-www-form-urlencoded") > -1)
565
+ return No(e, this.formSerializer).toString();
566
+ if ((s = f.isFileList(e)) || r.indexOf("multipart/form-data") > -1) {
567
+ const c = this.env && this.env.FormData;
568
+ return tt(
569
+ s ? { "files[]": e } : e,
570
+ c && new c(),
571
+ this.formSerializer
572
+ );
573
+ }
574
+ }
575
+ return a || o ? (n.setContentType("application/json", !1), Io(e)) : e;
576
+ }],
577
+ transformResponse: [function(e) {
578
+ const n = this.transitional || Fe.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
579
+ if (e && f.isString(e) && (r && !this.responseType || o)) {
580
+ const i = !(n && n.silentJSONParsing) && o;
581
+ try {
582
+ return JSON.parse(e);
583
+ } catch (s) {
584
+ if (i)
585
+ throw s.name === "SyntaxError" ? A.from(s, A.ERR_BAD_RESPONSE, this, null, this.response) : s;
586
+ }
587
+ }
588
+ return e;
589
+ }],
590
+ /**
591
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
592
+ * timeout is not created.
593
+ */
594
+ timeout: 0,
595
+ xsrfCookieName: "XSRF-TOKEN",
596
+ xsrfHeaderName: "X-XSRF-TOKEN",
597
+ maxContentLength: -1,
598
+ maxBodyLength: -1,
599
+ env: {
600
+ FormData: Q.classes.FormData,
601
+ Blob: Q.classes.Blob
602
+ },
603
+ validateStatus: function(e) {
604
+ return e >= 200 && e < 300;
605
+ },
606
+ headers: {
607
+ common: {
608
+ Accept: "application/json, text/plain, */*",
609
+ "Content-Type": void 0
610
+ }
611
+ }
612
+ };
613
+ f.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
614
+ Fe.headers[t] = {};
615
+ });
616
+ const ko = f.toObjectSet([
617
+ "age",
618
+ "authorization",
619
+ "content-length",
620
+ "content-type",
621
+ "etag",
622
+ "expires",
623
+ "from",
624
+ "host",
625
+ "if-modified-since",
626
+ "if-unmodified-since",
627
+ "last-modified",
628
+ "location",
629
+ "max-forwards",
630
+ "proxy-authorization",
631
+ "referer",
632
+ "retry-after",
633
+ "user-agent"
634
+ ]), Do = (t) => {
635
+ const e = {};
636
+ let n, r, o;
637
+ return t && t.split(`
638
+ `).forEach(function(i) {
639
+ o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || e[n] && ko[n]) && (n === "set-cookie" ? e[n] ? e[n].push(r) : e[n] = [r] : e[n] = e[n] ? e[n] + ", " + r : r);
640
+ }), e;
641
+ }, tr = Symbol("internals");
642
+ function Oe(t) {
643
+ return t && String(t).trim().toLowerCase();
644
+ }
645
+ function He(t) {
646
+ return t === !1 || t == null ? t : f.isArray(t) ? t.map(He) : String(t);
647
+ }
648
+ function Bo(t) {
649
+ const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
650
+ let r;
651
+ for (; r = n.exec(t); )
652
+ e[r[1]] = r[2];
653
+ return e;
654
+ }
655
+ const Uo = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
656
+ function it(t, e, n, r, o) {
657
+ if (f.isFunction(r))
658
+ return r.call(this, e, n);
659
+ if (o && (e = n), !!f.isString(e)) {
660
+ if (f.isString(r))
661
+ return e.indexOf(r) !== -1;
662
+ if (f.isRegExp(r))
663
+ return r.test(e);
664
+ }
665
+ }
666
+ function Mo(t) {
667
+ return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, n, r) => n.toUpperCase() + r);
668
+ }
669
+ function Lo(t, e) {
670
+ const n = f.toCamelCase(" " + e);
671
+ ["get", "set", "has"].forEach((r) => {
672
+ Object.defineProperty(t, r + n, {
673
+ value: function(o, a, i) {
674
+ return this[r].call(this, e, o, a, i);
675
+ },
676
+ configurable: !0
677
+ });
678
+ });
679
+ }
680
+ let L = class {
681
+ constructor(e) {
682
+ e && this.set(e);
683
+ }
684
+ set(e, n, r) {
685
+ const o = this;
686
+ function a(s, c, l) {
687
+ const p = Oe(c);
688
+ if (!p)
689
+ throw new Error("header name must be a non-empty string");
690
+ const u = f.findKey(o, p);
691
+ (!u || o[u] === void 0 || l === !0 || l === void 0 && o[u] !== !1) && (o[u || c] = He(s));
692
+ }
693
+ const i = (s, c) => f.forEach(s, (l, p) => a(l, p, c));
694
+ return f.isPlainObject(e) || e instanceof this.constructor ? i(e, n) : f.isString(e) && (e = e.trim()) && !Uo(e) ? i(Do(e), n) : e != null && a(n, e, r), this;
695
+ }
696
+ get(e, n) {
697
+ if (e = Oe(e), e) {
698
+ const r = f.findKey(this, e);
699
+ if (r) {
700
+ const o = this[r];
701
+ if (!n)
702
+ return o;
703
+ if (n === !0)
704
+ return Bo(o);
705
+ if (f.isFunction(n))
706
+ return n.call(this, o, r);
707
+ if (f.isRegExp(n))
708
+ return n.exec(o);
709
+ throw new TypeError("parser must be boolean|regexp|function");
710
+ }
711
+ }
712
+ }
713
+ has(e, n) {
714
+ if (e = Oe(e), e) {
715
+ const r = f.findKey(this, e);
716
+ return !!(r && this[r] !== void 0 && (!n || it(this, this[r], r, n)));
717
+ }
718
+ return !1;
719
+ }
720
+ delete(e, n) {
721
+ const r = this;
722
+ let o = !1;
723
+ function a(i) {
724
+ if (i = Oe(i), i) {
725
+ const s = f.findKey(r, i);
726
+ s && (!n || it(r, r[s], s, n)) && (delete r[s], o = !0);
727
+ }
728
+ }
729
+ return f.isArray(e) ? e.forEach(a) : a(e), o;
730
+ }
731
+ clear(e) {
732
+ const n = Object.keys(this);
733
+ let r = n.length, o = !1;
734
+ for (; r--; ) {
735
+ const a = n[r];
736
+ (!e || it(this, this[a], a, e, !0)) && (delete this[a], o = !0);
737
+ }
738
+ return o;
739
+ }
740
+ normalize(e) {
741
+ const n = this, r = {};
742
+ return f.forEach(this, (o, a) => {
743
+ const i = f.findKey(r, a);
744
+ if (i) {
745
+ n[i] = He(o), delete n[a];
746
+ return;
747
+ }
748
+ const s = e ? Mo(a) : String(a).trim();
749
+ s !== a && delete n[a], n[s] = He(o), r[s] = !0;
750
+ }), this;
751
+ }
752
+ concat(...e) {
753
+ return this.constructor.concat(this, ...e);
754
+ }
755
+ toJSON(e) {
756
+ const n = /* @__PURE__ */ Object.create(null);
757
+ return f.forEach(this, (r, o) => {
758
+ r != null && r !== !1 && (n[o] = e && f.isArray(r) ? r.join(", ") : r);
759
+ }), n;
760
+ }
761
+ [Symbol.iterator]() {
762
+ return Object.entries(this.toJSON())[Symbol.iterator]();
763
+ }
764
+ toString() {
765
+ return Object.entries(this.toJSON()).map(([e, n]) => e + ": " + n).join(`
766
+ `);
767
+ }
768
+ get [Symbol.toStringTag]() {
769
+ return "AxiosHeaders";
770
+ }
771
+ static from(e) {
772
+ return e instanceof this ? e : new this(e);
773
+ }
774
+ static concat(e, ...n) {
775
+ const r = new this(e);
776
+ return n.forEach((o) => r.set(o)), r;
777
+ }
778
+ static accessor(e) {
779
+ const r = (this[tr] = this[tr] = {
780
+ accessors: {}
781
+ }).accessors, o = this.prototype;
782
+ function a(i) {
783
+ const s = Oe(i);
784
+ r[s] || (Lo(o, i), r[s] = !0);
785
+ }
786
+ return f.isArray(e) ? e.forEach(a) : a(e), this;
787
+ }
788
+ };
789
+ L.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
790
+ f.reduceDescriptors(L.prototype, ({ value: t }, e) => {
791
+ let n = e[0].toUpperCase() + e.slice(1);
792
+ return {
793
+ get: () => t,
794
+ set(r) {
795
+ this[n] = r;
796
+ }
797
+ };
798
+ });
799
+ f.freezeMethods(L);
800
+ function st(t, e) {
801
+ const n = this || Fe, r = e || n, o = L.from(r.headers);
802
+ let a = r.data;
803
+ return f.forEach(t, function(s) {
804
+ a = s.call(n, a, o.normalize(), e ? e.status : void 0);
805
+ }), o.normalize(), a;
806
+ }
807
+ function Vr(t) {
808
+ return !!(t && t.__CANCEL__);
809
+ }
810
+ function _e(t, e, n) {
811
+ A.call(this, t ?? "canceled", A.ERR_CANCELED, e, n), this.name = "CanceledError";
812
+ }
813
+ f.inherits(_e, A, {
814
+ __CANCEL__: !0
815
+ });
816
+ function jo(t, e, n) {
817
+ const r = n.config.validateStatus;
818
+ !n.status || !r || r(n.status) ? t(n) : e(new A(
819
+ "Request failed with status code " + n.status,
820
+ [A.ERR_BAD_REQUEST, A.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
821
+ n.config,
822
+ n.request,
823
+ n
824
+ ));
825
+ }
826
+ const zo = Q.hasStandardBrowserEnv ? (
827
+ // Standard browser envs support document.cookie
828
+ {
829
+ write(t, e, n, r, o, a) {
830
+ const i = [t + "=" + encodeURIComponent(e)];
831
+ f.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), f.isString(r) && i.push("path=" + r), f.isString(o) && i.push("domain=" + o), a === !0 && i.push("secure"), document.cookie = i.join("; ");
832
+ },
833
+ read(t) {
834
+ const e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)"));
835
+ return e ? decodeURIComponent(e[3]) : null;
836
+ },
837
+ remove(t) {
838
+ this.write(t, "", Date.now() - 864e5);
839
+ }
840
+ }
841
+ ) : (
842
+ // Non-standard browser env (web workers, react-native) lack needed support.
843
+ {
844
+ write() {
845
+ },
846
+ read() {
847
+ return null;
848
+ },
849
+ remove() {
850
+ }
851
+ }
852
+ );
853
+ function Ho(t) {
854
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
855
+ }
856
+ function Wo(t, e) {
857
+ return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
858
+ }
859
+ function Kr(t, e) {
860
+ return t && !Ho(e) ? Wo(t, e) : e;
861
+ }
862
+ const qo = Q.hasStandardBrowserEnv ? (
863
+ // Standard browser envs have full support of the APIs needed to test
864
+ // whether the request URL is of the same origin as current location.
865
+ function() {
866
+ const e = /(msie|trident)/i.test(navigator.userAgent), n = document.createElement("a");
867
+ let r;
868
+ function o(a) {
869
+ let i = a;
870
+ return e && (n.setAttribute("href", i), i = n.href), n.setAttribute("href", i), {
871
+ href: n.href,
872
+ protocol: n.protocol ? n.protocol.replace(/:$/, "") : "",
873
+ host: n.host,
874
+ search: n.search ? n.search.replace(/^\?/, "") : "",
875
+ hash: n.hash ? n.hash.replace(/^#/, "") : "",
876
+ hostname: n.hostname,
877
+ port: n.port,
878
+ pathname: n.pathname.charAt(0) === "/" ? n.pathname : "/" + n.pathname
879
+ };
880
+ }
881
+ return r = o(window.location.href), function(i) {
882
+ const s = f.isString(i) ? o(i) : i;
883
+ return s.protocol === r.protocol && s.host === r.host;
884
+ };
885
+ }()
886
+ ) : (
887
+ // Non standard browser envs (web workers, react-native) lack needed support.
888
+ /* @__PURE__ */ function() {
889
+ return function() {
890
+ return !0;
891
+ };
892
+ }()
893
+ );
894
+ function Go(t) {
895
+ const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
896
+ return e && e[1] || "";
897
+ }
898
+ function Jo(t, e) {
899
+ t = t || 10;
900
+ const n = new Array(t), r = new Array(t);
901
+ let o = 0, a = 0, i;
902
+ return e = e !== void 0 ? e : 1e3, function(c) {
903
+ const l = Date.now(), p = r[a];
904
+ i || (i = l), n[o] = c, r[o] = l;
905
+ let u = a, m = 0;
906
+ for (; u !== o; )
907
+ m += n[u++], u = u % t;
908
+ if (o = (o + 1) % t, o === a && (a = (a + 1) % t), l - i < e)
909
+ return;
910
+ const v = p && l - p;
911
+ return v ? Math.round(m * 1e3 / v) : void 0;
912
+ };
913
+ }
914
+ function rr(t, e) {
915
+ let n = 0;
916
+ const r = Jo(50, 250);
917
+ return (o) => {
918
+ const a = o.loaded, i = o.lengthComputable ? o.total : void 0, s = a - n, c = r(s), l = a <= i;
919
+ n = a;
920
+ const p = {
921
+ loaded: a,
922
+ total: i,
923
+ progress: i ? a / i : void 0,
924
+ bytes: s,
925
+ rate: c || void 0,
926
+ estimated: c && i && l ? (i - a) / c : void 0,
927
+ event: o
928
+ };
929
+ p[e ? "download" : "upload"] = !0, t(p);
930
+ };
931
+ }
932
+ const Vo = typeof XMLHttpRequest < "u", Ko = Vo && function(t) {
933
+ return new Promise(function(n, r) {
934
+ let o = t.data;
935
+ const a = L.from(t.headers).normalize();
936
+ let { responseType: i, withXSRFToken: s } = t, c;
937
+ function l() {
938
+ t.cancelToken && t.cancelToken.unsubscribe(c), t.signal && t.signal.removeEventListener("abort", c);
939
+ }
940
+ let p;
941
+ if (f.isFormData(o)) {
942
+ if (Q.hasStandardBrowserEnv || Q.hasStandardBrowserWebWorkerEnv)
943
+ a.setContentType(!1);
944
+ else if ((p = a.getContentType()) !== !1) {
945
+ const [y, ...O] = p ? p.split(";").map((h) => h.trim()).filter(Boolean) : [];
946
+ a.setContentType([y || "multipart/form-data", ...O].join("; "));
947
+ }
948
+ }
949
+ let u = new XMLHttpRequest();
950
+ if (t.auth) {
951
+ const y = t.auth.username || "", O = t.auth.password ? unescape(encodeURIComponent(t.auth.password)) : "";
952
+ a.set("Authorization", "Basic " + btoa(y + ":" + O));
953
+ }
954
+ const m = Kr(t.baseURL, t.url);
955
+ u.open(t.method.toUpperCase(), Wr(m, t.params, t.paramsSerializer), !0), u.timeout = t.timeout;
956
+ function v() {
957
+ if (!u)
958
+ return;
959
+ const y = L.from(
960
+ "getAllResponseHeaders" in u && u.getAllResponseHeaders()
961
+ ), h = {
962
+ data: !i || i === "text" || i === "json" ? u.responseText : u.response,
963
+ status: u.status,
964
+ statusText: u.statusText,
965
+ headers: y,
966
+ config: t,
967
+ request: u
968
+ };
969
+ jo(function(C) {
970
+ n(C), l();
971
+ }, function(C) {
972
+ r(C), l();
973
+ }, h), u = null;
974
+ }
975
+ if ("onloadend" in u ? u.onloadend = v : u.onreadystatechange = function() {
976
+ !u || u.readyState !== 4 || u.status === 0 && !(u.responseURL && u.responseURL.indexOf("file:") === 0) || setTimeout(v);
977
+ }, u.onabort = function() {
978
+ u && (r(new A("Request aborted", A.ECONNABORTED, t, u)), u = null);
979
+ }, u.onerror = function() {
980
+ r(new A("Network Error", A.ERR_NETWORK, t, u)), u = null;
981
+ }, u.ontimeout = function() {
982
+ let O = t.timeout ? "timeout of " + t.timeout + "ms exceeded" : "timeout exceeded";
983
+ const h = t.transitional || qr;
984
+ t.timeoutErrorMessage && (O = t.timeoutErrorMessage), r(new A(
985
+ O,
986
+ h.clarifyTimeoutError ? A.ETIMEDOUT : A.ECONNABORTED,
987
+ t,
988
+ u
989
+ )), u = null;
990
+ }, Q.hasStandardBrowserEnv && (s && f.isFunction(s) && (s = s(t)), s || s !== !1 && qo(m))) {
991
+ const y = t.xsrfHeaderName && t.xsrfCookieName && zo.read(t.xsrfCookieName);
992
+ y && a.set(t.xsrfHeaderName, y);
993
+ }
994
+ o === void 0 && a.setContentType(null), "setRequestHeader" in u && f.forEach(a.toJSON(), function(O, h) {
995
+ u.setRequestHeader(h, O);
996
+ }), f.isUndefined(t.withCredentials) || (u.withCredentials = !!t.withCredentials), i && i !== "json" && (u.responseType = t.responseType), typeof t.onDownloadProgress == "function" && u.addEventListener("progress", rr(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && u.upload && u.upload.addEventListener("progress", rr(t.onUploadProgress)), (t.cancelToken || t.signal) && (c = (y) => {
997
+ u && (r(!y || y.type ? new _e(null, t, u) : y), u.abort(), u = null);
998
+ }, t.cancelToken && t.cancelToken.subscribe(c), t.signal && (t.signal.aborted ? c() : t.signal.addEventListener("abort", c)));
999
+ const d = Go(m);
1000
+ if (d && Q.protocols.indexOf(d) === -1) {
1001
+ r(new A("Unsupported protocol " + d + ":", A.ERR_BAD_REQUEST, t));
1002
+ return;
1003
+ }
1004
+ u.send(o || null);
1005
+ });
1006
+ }, St = {
1007
+ http: wo,
1008
+ xhr: Ko
1009
+ };
1010
+ f.forEach(St, (t, e) => {
1011
+ if (t) {
1012
+ try {
1013
+ Object.defineProperty(t, "name", { value: e });
1014
+ } catch {
1015
+ }
1016
+ Object.defineProperty(t, "adapterName", { value: e });
1017
+ }
1018
+ });
1019
+ const nr = (t) => `- ${t}`, Qo = (t) => f.isFunction(t) || t === null || t === !1, Qr = {
1020
+ getAdapter: (t) => {
1021
+ t = f.isArray(t) ? t : [t];
1022
+ const { length: e } = t;
1023
+ let n, r;
1024
+ const o = {};
1025
+ for (let a = 0; a < e; a++) {
1026
+ n = t[a];
1027
+ let i;
1028
+ if (r = n, !Qo(n) && (r = St[(i = String(n)).toLowerCase()], r === void 0))
1029
+ throw new A(`Unknown adapter '${i}'`);
1030
+ if (r)
1031
+ break;
1032
+ o[i || "#" + a] = r;
1033
+ }
1034
+ if (!r) {
1035
+ const a = Object.entries(o).map(
1036
+ ([s, c]) => `adapter ${s} ` + (c === !1 ? "is not supported by the environment" : "is not available in the build")
1037
+ );
1038
+ let i = e ? a.length > 1 ? `since :
1039
+ ` + a.map(nr).join(`
1040
+ `) : " " + nr(a[0]) : "as no adapter specified";
1041
+ throw new A(
1042
+ "There is no suitable adapter to dispatch the request " + i,
1043
+ "ERR_NOT_SUPPORT"
1044
+ );
1045
+ }
1046
+ return r;
1047
+ },
1048
+ adapters: St
1049
+ };
1050
+ function lt(t) {
1051
+ if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
1052
+ throw new _e(null, t);
1053
+ }
1054
+ function or(t) {
1055
+ return lt(t), t.headers = L.from(t.headers), t.data = st.call(
1056
+ t,
1057
+ t.transformRequest
1058
+ ), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Qr.getAdapter(t.adapter || Fe.adapter)(t).then(function(r) {
1059
+ return lt(t), r.data = st.call(
1060
+ t,
1061
+ t.transformResponse,
1062
+ r
1063
+ ), r.headers = L.from(r.headers), r;
1064
+ }, function(r) {
1065
+ return Vr(r) || (lt(t), r && r.response && (r.response.data = st.call(
1066
+ t,
1067
+ t.transformResponse,
1068
+ r.response
1069
+ ), r.response.headers = L.from(r.response.headers))), Promise.reject(r);
1070
+ });
1071
+ }
1072
+ const ar = (t) => t instanceof L ? t.toJSON() : t;
1073
+ function ge(t, e) {
1074
+ e = e || {};
1075
+ const n = {};
1076
+ function r(l, p, u) {
1077
+ return f.isPlainObject(l) && f.isPlainObject(p) ? f.merge.call({ caseless: u }, l, p) : f.isPlainObject(p) ? f.merge({}, p) : f.isArray(p) ? p.slice() : p;
1078
+ }
1079
+ function o(l, p, u) {
1080
+ if (f.isUndefined(p)) {
1081
+ if (!f.isUndefined(l))
1082
+ return r(void 0, l, u);
1083
+ } else return r(l, p, u);
1084
+ }
1085
+ function a(l, p) {
1086
+ if (!f.isUndefined(p))
1087
+ return r(void 0, p);
1088
+ }
1089
+ function i(l, p) {
1090
+ if (f.isUndefined(p)) {
1091
+ if (!f.isUndefined(l))
1092
+ return r(void 0, l);
1093
+ } else return r(void 0, p);
1094
+ }
1095
+ function s(l, p, u) {
1096
+ if (u in e)
1097
+ return r(l, p);
1098
+ if (u in t)
1099
+ return r(void 0, l);
1100
+ }
1101
+ const c = {
1102
+ url: a,
1103
+ method: a,
1104
+ data: a,
1105
+ baseURL: i,
1106
+ transformRequest: i,
1107
+ transformResponse: i,
1108
+ paramsSerializer: i,
1109
+ timeout: i,
1110
+ timeoutMessage: i,
1111
+ withCredentials: i,
1112
+ withXSRFToken: i,
1113
+ adapter: i,
1114
+ responseType: i,
1115
+ xsrfCookieName: i,
1116
+ xsrfHeaderName: i,
1117
+ onUploadProgress: i,
1118
+ onDownloadProgress: i,
1119
+ decompress: i,
1120
+ maxContentLength: i,
1121
+ maxBodyLength: i,
1122
+ beforeRedirect: i,
1123
+ transport: i,
1124
+ httpAgent: i,
1125
+ httpsAgent: i,
1126
+ cancelToken: i,
1127
+ socketPath: i,
1128
+ responseEncoding: i,
1129
+ validateStatus: s,
1130
+ headers: (l, p) => o(ar(l), ar(p), !0)
1131
+ };
1132
+ return f.forEach(Object.keys(Object.assign({}, t, e)), function(p) {
1133
+ const u = c[p] || o, m = u(t[p], e[p], p);
1134
+ f.isUndefined(m) && u !== s || (n[p] = m);
1135
+ }), n;
1136
+ }
1137
+ const Xr = "1.6.7", kt = {};
1138
+ ["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
1139
+ kt[t] = function(r) {
1140
+ return typeof r === t || "a" + (e < 1 ? "n " : " ") + t;
1141
+ };
1142
+ });
1143
+ const ir = {};
1144
+ kt.transitional = function(e, n, r) {
1145
+ function o(a, i) {
1146
+ return "[Axios v" + Xr + "] Transitional option '" + a + "'" + i + (r ? ". " + r : "");
1147
+ }
1148
+ return (a, i, s) => {
1149
+ if (e === !1)
1150
+ throw new A(
1151
+ o(i, " has been removed" + (n ? " in " + n : "")),
1152
+ A.ERR_DEPRECATED
1153
+ );
1154
+ return n && !ir[i] && (ir[i] = !0), e ? e(a, i, s) : !0;
1155
+ };
1156
+ };
1157
+ function Xo(t, e, n) {
1158
+ if (typeof t != "object")
1159
+ throw new A("options must be an object", A.ERR_BAD_OPTION_VALUE);
1160
+ const r = Object.keys(t);
1161
+ let o = r.length;
1162
+ for (; o-- > 0; ) {
1163
+ const a = r[o], i = e[a];
1164
+ if (i) {
1165
+ const s = t[a], c = s === void 0 || i(s, a, t);
1166
+ if (c !== !0)
1167
+ throw new A("option " + a + " must be " + c, A.ERR_BAD_OPTION_VALUE);
1168
+ continue;
1169
+ }
1170
+ if (n !== !0)
1171
+ throw new A("Unknown option " + a, A.ERR_BAD_OPTION);
1172
+ }
1173
+ }
1174
+ const Et = {
1175
+ assertOptions: Xo,
1176
+ validators: kt
1177
+ }, te = Et.validators;
1178
+ let le = class {
1179
+ constructor(e) {
1180
+ this.defaults = e, this.interceptors = {
1181
+ request: new er(),
1182
+ response: new er()
1183
+ };
1184
+ }
1185
+ /**
1186
+ * Dispatch a request
1187
+ *
1188
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
1189
+ * @param {?Object} config
1190
+ *
1191
+ * @returns {Promise} The Promise to be fulfilled
1192
+ */
1193
+ async request(e, n) {
1194
+ try {
1195
+ return await this._request(e, n);
1196
+ } catch (r) {
1197
+ if (r instanceof Error) {
1198
+ let o;
1199
+ Error.captureStackTrace ? Error.captureStackTrace(o = {}) : o = new Error();
1200
+ const a = o.stack ? o.stack.replace(/^.+\n/, "") : "";
1201
+ r.stack ? a && !String(r.stack).endsWith(a.replace(/^.+\n.+\n/, "")) && (r.stack += `
1202
+ ` + a) : r.stack = a;
1203
+ }
1204
+ throw r;
1205
+ }
1206
+ }
1207
+ _request(e, n) {
1208
+ typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = ge(this.defaults, n);
1209
+ const { transitional: r, paramsSerializer: o, headers: a } = n;
1210
+ r !== void 0 && Et.assertOptions(r, {
1211
+ silentJSONParsing: te.transitional(te.boolean),
1212
+ forcedJSONParsing: te.transitional(te.boolean),
1213
+ clarifyTimeoutError: te.transitional(te.boolean)
1214
+ }, !1), o != null && (f.isFunction(o) ? n.paramsSerializer = {
1215
+ serialize: o
1216
+ } : Et.assertOptions(o, {
1217
+ encode: te.function,
1218
+ serialize: te.function
1219
+ }, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1220
+ let i = a && f.merge(
1221
+ a.common,
1222
+ a[n.method]
1223
+ );
1224
+ a && f.forEach(
1225
+ ["delete", "get", "head", "post", "put", "patch", "common"],
1226
+ (d) => {
1227
+ delete a[d];
1228
+ }
1229
+ ), n.headers = L.concat(i, a);
1230
+ const s = [];
1231
+ let c = !0;
1232
+ this.interceptors.request.forEach(function(y) {
1233
+ typeof y.runWhen == "function" && y.runWhen(n) === !1 || (c = c && y.synchronous, s.unshift(y.fulfilled, y.rejected));
1234
+ });
1235
+ const l = [];
1236
+ this.interceptors.response.forEach(function(y) {
1237
+ l.push(y.fulfilled, y.rejected);
1238
+ });
1239
+ let p, u = 0, m;
1240
+ if (!c) {
1241
+ const d = [or.bind(this), void 0];
1242
+ for (d.unshift.apply(d, s), d.push.apply(d, l), m = d.length, p = Promise.resolve(n); u < m; )
1243
+ p = p.then(d[u++], d[u++]);
1244
+ return p;
1245
+ }
1246
+ m = s.length;
1247
+ let v = n;
1248
+ for (u = 0; u < m; ) {
1249
+ const d = s[u++], y = s[u++];
1250
+ try {
1251
+ v = d(v);
1252
+ } catch (O) {
1253
+ y.call(this, O);
1254
+ break;
1255
+ }
1256
+ }
1257
+ try {
1258
+ p = or.call(this, v);
1259
+ } catch (d) {
1260
+ return Promise.reject(d);
1261
+ }
1262
+ for (u = 0, m = l.length; u < m; )
1263
+ p = p.then(l[u++], l[u++]);
1264
+ return p;
1265
+ }
1266
+ getUri(e) {
1267
+ e = ge(this.defaults, e);
1268
+ const n = Kr(e.baseURL, e.url);
1269
+ return Wr(n, e.params, e.paramsSerializer);
1270
+ }
1271
+ };
1272
+ f.forEach(["delete", "get", "head", "options"], function(e) {
1273
+ le.prototype[e] = function(n, r) {
1274
+ return this.request(ge(r || {}, {
1275
+ method: e,
1276
+ url: n,
1277
+ data: (r || {}).data
1278
+ }));
1279
+ };
1280
+ });
1281
+ f.forEach(["post", "put", "patch"], function(e) {
1282
+ function n(r) {
1283
+ return function(a, i, s) {
1284
+ return this.request(ge(s || {}, {
1285
+ method: e,
1286
+ headers: r ? {
1287
+ "Content-Type": "multipart/form-data"
1288
+ } : {},
1289
+ url: a,
1290
+ data: i
1291
+ }));
1292
+ };
1293
+ }
1294
+ le.prototype[e] = n(), le.prototype[e + "Form"] = n(!0);
1295
+ });
1296
+ let Yo = class Yr {
1297
+ constructor(e) {
1298
+ if (typeof e != "function")
1299
+ throw new TypeError("executor must be a function.");
1300
+ let n;
1301
+ this.promise = new Promise(function(a) {
1302
+ n = a;
1303
+ });
1304
+ const r = this;
1305
+ this.promise.then((o) => {
1306
+ if (!r._listeners) return;
1307
+ let a = r._listeners.length;
1308
+ for (; a-- > 0; )
1309
+ r._listeners[a](o);
1310
+ r._listeners = null;
1311
+ }), this.promise.then = (o) => {
1312
+ let a;
1313
+ const i = new Promise((s) => {
1314
+ r.subscribe(s), a = s;
1315
+ }).then(o);
1316
+ return i.cancel = function() {
1317
+ r.unsubscribe(a);
1318
+ }, i;
1319
+ }, e(function(a, i, s) {
1320
+ r.reason || (r.reason = new _e(a, i, s), n(r.reason));
1321
+ });
1322
+ }
1323
+ /**
1324
+ * Throws a `CanceledError` if cancellation has been requested.
1325
+ */
1326
+ throwIfRequested() {
1327
+ if (this.reason)
1328
+ throw this.reason;
1329
+ }
1330
+ /**
1331
+ * Subscribe to the cancel signal
1332
+ */
1333
+ subscribe(e) {
1334
+ if (this.reason) {
1335
+ e(this.reason);
1336
+ return;
1337
+ }
1338
+ this._listeners ? this._listeners.push(e) : this._listeners = [e];
1339
+ }
1340
+ /**
1341
+ * Unsubscribe from the cancel signal
1342
+ */
1343
+ unsubscribe(e) {
1344
+ if (!this._listeners)
1345
+ return;
1346
+ const n = this._listeners.indexOf(e);
1347
+ n !== -1 && this._listeners.splice(n, 1);
1348
+ }
1349
+ /**
1350
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
1351
+ * cancels the `CancelToken`.
1352
+ */
1353
+ static source() {
1354
+ let e;
1355
+ return {
1356
+ token: new Yr(function(o) {
1357
+ e = o;
1358
+ }),
1359
+ cancel: e
1360
+ };
1361
+ }
1362
+ };
1363
+ function Zo(t) {
1364
+ return function(n) {
1365
+ return t.apply(null, n);
1366
+ };
1367
+ }
1368
+ function ea(t) {
1369
+ return f.isObject(t) && t.isAxiosError === !0;
1370
+ }
1371
+ const At = {
1372
+ Continue: 100,
1373
+ SwitchingProtocols: 101,
1374
+ Processing: 102,
1375
+ EarlyHints: 103,
1376
+ Ok: 200,
1377
+ Created: 201,
1378
+ Accepted: 202,
1379
+ NonAuthoritativeInformation: 203,
1380
+ NoContent: 204,
1381
+ ResetContent: 205,
1382
+ PartialContent: 206,
1383
+ MultiStatus: 207,
1384
+ AlreadyReported: 208,
1385
+ ImUsed: 226,
1386
+ MultipleChoices: 300,
1387
+ MovedPermanently: 301,
1388
+ Found: 302,
1389
+ SeeOther: 303,
1390
+ NotModified: 304,
1391
+ UseProxy: 305,
1392
+ Unused: 306,
1393
+ TemporaryRedirect: 307,
1394
+ PermanentRedirect: 308,
1395
+ BadRequest: 400,
1396
+ Unauthorized: 401,
1397
+ PaymentRequired: 402,
1398
+ Forbidden: 403,
1399
+ NotFound: 404,
1400
+ MethodNotAllowed: 405,
1401
+ NotAcceptable: 406,
1402
+ ProxyAuthenticationRequired: 407,
1403
+ RequestTimeout: 408,
1404
+ Conflict: 409,
1405
+ Gone: 410,
1406
+ LengthRequired: 411,
1407
+ PreconditionFailed: 412,
1408
+ PayloadTooLarge: 413,
1409
+ UriTooLong: 414,
1410
+ UnsupportedMediaType: 415,
1411
+ RangeNotSatisfiable: 416,
1412
+ ExpectationFailed: 417,
1413
+ ImATeapot: 418,
1414
+ MisdirectedRequest: 421,
1415
+ UnprocessableEntity: 422,
1416
+ Locked: 423,
1417
+ FailedDependency: 424,
1418
+ TooEarly: 425,
1419
+ UpgradeRequired: 426,
1420
+ PreconditionRequired: 428,
1421
+ TooManyRequests: 429,
1422
+ RequestHeaderFieldsTooLarge: 431,
1423
+ UnavailableForLegalReasons: 451,
1424
+ InternalServerError: 500,
1425
+ NotImplemented: 501,
1426
+ BadGateway: 502,
1427
+ ServiceUnavailable: 503,
1428
+ GatewayTimeout: 504,
1429
+ HttpVersionNotSupported: 505,
1430
+ VariantAlsoNegotiates: 506,
1431
+ InsufficientStorage: 507,
1432
+ LoopDetected: 508,
1433
+ NotExtended: 510,
1434
+ NetworkAuthenticationRequired: 511
1435
+ };
1436
+ Object.entries(At).forEach(([t, e]) => {
1437
+ At[e] = t;
1438
+ });
1439
+ function Zr(t) {
1440
+ const e = new le(t), n = Fr(le.prototype.request, e);
1441
+ return f.extend(n, le.prototype, e, { allOwnKeys: !0 }), f.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(o) {
1442
+ return Zr(ge(t, o));
1443
+ }, n;
1444
+ }
1445
+ const $ = Zr(Fe);
1446
+ $.Axios = le;
1447
+ $.CanceledError = _e;
1448
+ $.CancelToken = Yo;
1449
+ $.isCancel = Vr;
1450
+ $.VERSION = Xr;
1451
+ $.toFormData = tt;
1452
+ $.AxiosError = A;
1453
+ $.Cancel = $.CanceledError;
1454
+ $.all = function(e) {
1455
+ return Promise.all(e);
1456
+ };
1457
+ $.spread = Zo;
1458
+ $.isAxiosError = ea;
1459
+ $.mergeConfig = ge;
1460
+ $.AxiosHeaders = L;
1461
+ $.formToJSON = (t) => Jr(f.isHTMLForm(t) ? new FormData(t) : t);
1462
+ $.getAdapter = Qr.getAdapter;
1463
+ $.HttpStatusCode = At;
1464
+ $.default = $;
1465
+ const {
1466
+ Axios: el,
1467
+ AxiosError: tl,
1468
+ CanceledError: rl,
1469
+ isCancel: nl,
1470
+ CancelToken: ol,
1471
+ VERSION: al,
1472
+ all: il,
1473
+ Cancel: sl,
1474
+ isAxiosError: ll,
1475
+ spread: cl,
1476
+ toFormData: ul,
1477
+ AxiosHeaders: fl,
1478
+ HttpStatusCode: pl,
1479
+ formToJSON: dl,
1480
+ getAdapter: yl,
1481
+ mergeConfig: ml
1482
+ } = $;
1483
+ var ta = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1484
+ function ra(t) {
1485
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
1486
+ }
1487
+ function na(t) {
1488
+ if (t.__esModule) return t;
1489
+ var e = t.default;
1490
+ if (typeof e == "function") {
1491
+ var n = function r() {
1492
+ return this instanceof r ? Reflect.construct(e, arguments, this.constructor) : e.apply(this, arguments);
1493
+ };
1494
+ n.prototype = e.prototype;
1495
+ } else n = {};
1496
+ return Object.defineProperty(n, "__esModule", { value: !0 }), Object.keys(t).forEach(function(r) {
1497
+ var o = Object.getOwnPropertyDescriptor(t, r);
1498
+ Object.defineProperty(n, r, o.get ? o : {
1499
+ enumerable: !0,
1500
+ get: function() {
1501
+ return t[r];
1502
+ }
1503
+ });
1504
+ }), n;
1505
+ }
1506
+ var oa = function() {
1507
+ if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
1508
+ return !1;
1509
+ if (typeof Symbol.iterator == "symbol")
1510
+ return !0;
1511
+ var e = {}, n = Symbol("test"), r = Object(n);
1512
+ if (typeof n == "string" || Object.prototype.toString.call(n) !== "[object Symbol]" || Object.prototype.toString.call(r) !== "[object Symbol]")
1513
+ return !1;
1514
+ var o = 42;
1515
+ e[n] = o;
1516
+ for (n in e)
1517
+ return !1;
1518
+ if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0)
1519
+ return !1;
1520
+ var a = Object.getOwnPropertySymbols(e);
1521
+ if (a.length !== 1 || a[0] !== n || !Object.prototype.propertyIsEnumerable.call(e, n))
1522
+ return !1;
1523
+ if (typeof Object.getOwnPropertyDescriptor == "function") {
1524
+ var i = Object.getOwnPropertyDescriptor(e, n);
1525
+ if (i.value !== o || i.enumerable !== !0)
1526
+ return !1;
1527
+ }
1528
+ return !0;
1529
+ }, sr = typeof Symbol < "u" && Symbol, aa = oa, ia = function() {
1530
+ return typeof sr != "function" || typeof Symbol != "function" || typeof sr("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : aa();
1531
+ }, lr = {
1532
+ foo: {}
1533
+ }, sa = Object, la = function() {
1534
+ return { __proto__: lr }.foo === lr.foo && !({ __proto__: null } instanceof sa);
1535
+ }, ca = "Function.prototype.bind called on incompatible ", ua = Object.prototype.toString, fa = Math.max, pa = "[object Function]", cr = function(e, n) {
1536
+ for (var r = [], o = 0; o < e.length; o += 1)
1537
+ r[o] = e[o];
1538
+ for (var a = 0; a < n.length; a += 1)
1539
+ r[a + e.length] = n[a];
1540
+ return r;
1541
+ }, da = function(e, n) {
1542
+ for (var r = [], o = n, a = 0; o < e.length; o += 1, a += 1)
1543
+ r[a] = e[o];
1544
+ return r;
1545
+ }, ya = function(t, e) {
1546
+ for (var n = "", r = 0; r < t.length; r += 1)
1547
+ n += t[r], r + 1 < t.length && (n += e);
1548
+ return n;
1549
+ }, ma = function(e) {
1550
+ var n = this;
1551
+ if (typeof n != "function" || ua.apply(n) !== pa)
1552
+ throw new TypeError(ca + n);
1553
+ for (var r = da(arguments, 1), o, a = function() {
1554
+ if (this instanceof o) {
1555
+ var p = n.apply(
1556
+ this,
1557
+ cr(r, arguments)
1558
+ );
1559
+ return Object(p) === p ? p : this;
1560
+ }
1561
+ return n.apply(
1562
+ e,
1563
+ cr(r, arguments)
1564
+ );
1565
+ }, i = fa(0, n.length - r.length), s = [], c = 0; c < i; c++)
1566
+ s[c] = "$" + c;
1567
+ if (o = Function("binder", "return function (" + ya(s, ",") + "){ return binder.apply(this,arguments); }")(a), n.prototype) {
1568
+ var l = function() {
1569
+ };
1570
+ l.prototype = n.prototype, o.prototype = new l(), l.prototype = null;
1571
+ }
1572
+ return o;
1573
+ }, ha = ma, Dt = Function.prototype.bind || ha, va = Function.prototype.call, ga = Object.prototype.hasOwnProperty, ba = Dt, wa = ba.call(va, ga), E, be = SyntaxError, en = Function, ve = TypeError, ct = function(t) {
1574
+ try {
1575
+ return en('"use strict"; return (' + t + ").constructor;")();
1576
+ } catch {
1577
+ }
1578
+ }, ce = Object.getOwnPropertyDescriptor;
1579
+ if (ce)
1580
+ try {
1581
+ ce({}, "");
1582
+ } catch {
1583
+ ce = null;
1584
+ }
1585
+ var ut = function() {
1586
+ throw new ve();
1587
+ }, Sa = ce ? function() {
1588
+ try {
1589
+ return arguments.callee, ut;
1590
+ } catch {
1591
+ try {
1592
+ return ce(arguments, "callee").get;
1593
+ } catch {
1594
+ return ut;
1595
+ }
1596
+ }
1597
+ }() : ut, ye = ia(), Ea = la(), _ = Object.getPrototypeOf || (Ea ? function(t) {
1598
+ return t.__proto__;
1599
+ } : null), he = {}, Aa = typeof Uint8Array > "u" || !_ ? E : _(Uint8Array), ue = {
1600
+ "%AggregateError%": typeof AggregateError > "u" ? E : AggregateError,
1601
+ "%Array%": Array,
1602
+ "%ArrayBuffer%": typeof ArrayBuffer > "u" ? E : ArrayBuffer,
1603
+ "%ArrayIteratorPrototype%": ye && _ ? _([][Symbol.iterator]()) : E,
1604
+ "%AsyncFromSyncIteratorPrototype%": E,
1605
+ "%AsyncFunction%": he,
1606
+ "%AsyncGenerator%": he,
1607
+ "%AsyncGeneratorFunction%": he,
1608
+ "%AsyncIteratorPrototype%": he,
1609
+ "%Atomics%": typeof Atomics > "u" ? E : Atomics,
1610
+ "%BigInt%": typeof BigInt > "u" ? E : BigInt,
1611
+ "%BigInt64Array%": typeof BigInt64Array > "u" ? E : BigInt64Array,
1612
+ "%BigUint64Array%": typeof BigUint64Array > "u" ? E : BigUint64Array,
1613
+ "%Boolean%": Boolean,
1614
+ "%DataView%": typeof DataView > "u" ? E : DataView,
1615
+ "%Date%": Date,
1616
+ "%decodeURI%": decodeURI,
1617
+ "%decodeURIComponent%": decodeURIComponent,
1618
+ "%encodeURI%": encodeURI,
1619
+ "%encodeURIComponent%": encodeURIComponent,
1620
+ "%Error%": Error,
1621
+ "%eval%": eval,
1622
+ // eslint-disable-line no-eval
1623
+ "%EvalError%": EvalError,
1624
+ "%Float32Array%": typeof Float32Array > "u" ? E : Float32Array,
1625
+ "%Float64Array%": typeof Float64Array > "u" ? E : Float64Array,
1626
+ "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? E : FinalizationRegistry,
1627
+ "%Function%": en,
1628
+ "%GeneratorFunction%": he,
1629
+ "%Int8Array%": typeof Int8Array > "u" ? E : Int8Array,
1630
+ "%Int16Array%": typeof Int16Array > "u" ? E : Int16Array,
1631
+ "%Int32Array%": typeof Int32Array > "u" ? E : Int32Array,
1632
+ "%isFinite%": isFinite,
1633
+ "%isNaN%": isNaN,
1634
+ "%IteratorPrototype%": ye && _ ? _(_([][Symbol.iterator]())) : E,
1635
+ "%JSON%": typeof JSON == "object" ? JSON : E,
1636
+ "%Map%": typeof Map > "u" ? E : Map,
1637
+ "%MapIteratorPrototype%": typeof Map > "u" || !ye || !_ ? E : _((/* @__PURE__ */ new Map())[Symbol.iterator]()),
1638
+ "%Math%": Math,
1639
+ "%Number%": Number,
1640
+ "%Object%": Object,
1641
+ "%parseFloat%": parseFloat,
1642
+ "%parseInt%": parseInt,
1643
+ "%Promise%": typeof Promise > "u" ? E : Promise,
1644
+ "%Proxy%": typeof Proxy > "u" ? E : Proxy,
1645
+ "%RangeError%": RangeError,
1646
+ "%ReferenceError%": ReferenceError,
1647
+ "%Reflect%": typeof Reflect > "u" ? E : Reflect,
1648
+ "%RegExp%": RegExp,
1649
+ "%Set%": typeof Set > "u" ? E : Set,
1650
+ "%SetIteratorPrototype%": typeof Set > "u" || !ye || !_ ? E : _((/* @__PURE__ */ new Set())[Symbol.iterator]()),
1651
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? E : SharedArrayBuffer,
1652
+ "%String%": String,
1653
+ "%StringIteratorPrototype%": ye && _ ? _(""[Symbol.iterator]()) : E,
1654
+ "%Symbol%": ye ? Symbol : E,
1655
+ "%SyntaxError%": be,
1656
+ "%ThrowTypeError%": Sa,
1657
+ "%TypedArray%": Aa,
1658
+ "%TypeError%": ve,
1659
+ "%Uint8Array%": typeof Uint8Array > "u" ? E : Uint8Array,
1660
+ "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? E : Uint8ClampedArray,
1661
+ "%Uint16Array%": typeof Uint16Array > "u" ? E : Uint16Array,
1662
+ "%Uint32Array%": typeof Uint32Array > "u" ? E : Uint32Array,
1663
+ "%URIError%": URIError,
1664
+ "%WeakMap%": typeof WeakMap > "u" ? E : WeakMap,
1665
+ "%WeakRef%": typeof WeakRef > "u" ? E : WeakRef,
1666
+ "%WeakSet%": typeof WeakSet > "u" ? E : WeakSet
1667
+ };
1668
+ if (_)
1669
+ try {
1670
+ null.error;
1671
+ } catch (t) {
1672
+ var Oa = _(_(t));
1673
+ ue["%Error.prototype%"] = Oa;
1674
+ }
1675
+ var Pa = function t(e) {
1676
+ var n;
1677
+ if (e === "%AsyncFunction%")
1678
+ n = ct("async function () {}");
1679
+ else if (e === "%GeneratorFunction%")
1680
+ n = ct("function* () {}");
1681
+ else if (e === "%AsyncGeneratorFunction%")
1682
+ n = ct("async function* () {}");
1683
+ else if (e === "%AsyncGenerator%") {
1684
+ var r = t("%AsyncGeneratorFunction%");
1685
+ r && (n = r.prototype);
1686
+ } else if (e === "%AsyncIteratorPrototype%") {
1687
+ var o = t("%AsyncGenerator%");
1688
+ o && _ && (n = _(o.prototype));
1689
+ }
1690
+ return ue[e] = n, n;
1691
+ }, ur = {
1692
+ "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
1693
+ "%ArrayPrototype%": ["Array", "prototype"],
1694
+ "%ArrayProto_entries%": ["Array", "prototype", "entries"],
1695
+ "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
1696
+ "%ArrayProto_keys%": ["Array", "prototype", "keys"],
1697
+ "%ArrayProto_values%": ["Array", "prototype", "values"],
1698
+ "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
1699
+ "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
1700
+ "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
1701
+ "%BooleanPrototype%": ["Boolean", "prototype"],
1702
+ "%DataViewPrototype%": ["DataView", "prototype"],
1703
+ "%DatePrototype%": ["Date", "prototype"],
1704
+ "%ErrorPrototype%": ["Error", "prototype"],
1705
+ "%EvalErrorPrototype%": ["EvalError", "prototype"],
1706
+ "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
1707
+ "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
1708
+ "%FunctionPrototype%": ["Function", "prototype"],
1709
+ "%Generator%": ["GeneratorFunction", "prototype"],
1710
+ "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
1711
+ "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
1712
+ "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
1713
+ "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
1714
+ "%JSONParse%": ["JSON", "parse"],
1715
+ "%JSONStringify%": ["JSON", "stringify"],
1716
+ "%MapPrototype%": ["Map", "prototype"],
1717
+ "%NumberPrototype%": ["Number", "prototype"],
1718
+ "%ObjectPrototype%": ["Object", "prototype"],
1719
+ "%ObjProto_toString%": ["Object", "prototype", "toString"],
1720
+ "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
1721
+ "%PromisePrototype%": ["Promise", "prototype"],
1722
+ "%PromiseProto_then%": ["Promise", "prototype", "then"],
1723
+ "%Promise_all%": ["Promise", "all"],
1724
+ "%Promise_reject%": ["Promise", "reject"],
1725
+ "%Promise_resolve%": ["Promise", "resolve"],
1726
+ "%RangeErrorPrototype%": ["RangeError", "prototype"],
1727
+ "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
1728
+ "%RegExpPrototype%": ["RegExp", "prototype"],
1729
+ "%SetPrototype%": ["Set", "prototype"],
1730
+ "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
1731
+ "%StringPrototype%": ["String", "prototype"],
1732
+ "%SymbolPrototype%": ["Symbol", "prototype"],
1733
+ "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
1734
+ "%TypedArrayPrototype%": ["TypedArray", "prototype"],
1735
+ "%TypeErrorPrototype%": ["TypeError", "prototype"],
1736
+ "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
1737
+ "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
1738
+ "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
1739
+ "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
1740
+ "%URIErrorPrototype%": ["URIError", "prototype"],
1741
+ "%WeakMapPrototype%": ["WeakMap", "prototype"],
1742
+ "%WeakSetPrototype%": ["WeakSet", "prototype"]
1743
+ }, Ie = Dt, Je = wa, Ra = Ie.call(Function.call, Array.prototype.concat), xa = Ie.call(Function.apply, Array.prototype.splice), fr = Ie.call(Function.call, String.prototype.replace), Ve = Ie.call(Function.call, String.prototype.slice), $a = Ie.call(Function.call, RegExp.prototype.exec), Ta = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Ca = /\\(\\)?/g, Na = function(e) {
1744
+ var n = Ve(e, 0, 1), r = Ve(e, -1);
1745
+ if (n === "%" && r !== "%")
1746
+ throw new be("invalid intrinsic syntax, expected closing `%`");
1747
+ if (r === "%" && n !== "%")
1748
+ throw new be("invalid intrinsic syntax, expected opening `%`");
1749
+ var o = [];
1750
+ return fr(e, Ta, function(a, i, s, c) {
1751
+ o[o.length] = s ? fr(c, Ca, "$1") : i || a;
1752
+ }), o;
1753
+ }, Fa = function(e, n) {
1754
+ var r = e, o;
1755
+ if (Je(ur, r) && (o = ur[r], r = "%" + o[0] + "%"), Je(ue, r)) {
1756
+ var a = ue[r];
1757
+ if (a === he && (a = Pa(r)), typeof a > "u" && !n)
1758
+ throw new ve("intrinsic " + e + " exists, but is not available. Please file an issue!");
1759
+ return {
1760
+ alias: o,
1761
+ name: r,
1762
+ value: a
1763
+ };
1764
+ }
1765
+ throw new be("intrinsic " + e + " does not exist!");
1766
+ }, pe = function(e, n) {
1767
+ if (typeof e != "string" || e.length === 0)
1768
+ throw new ve("intrinsic name must be a non-empty string");
1769
+ if (arguments.length > 1 && typeof n != "boolean")
1770
+ throw new ve('"allowMissing" argument must be a boolean');
1771
+ if ($a(/^%?[^%]*%?$/, e) === null)
1772
+ throw new be("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
1773
+ var r = Na(e), o = r.length > 0 ? r[0] : "", a = Fa("%" + o + "%", n), i = a.name, s = a.value, c = !1, l = a.alias;
1774
+ l && (o = l[0], xa(r, Ra([0, 1], l)));
1775
+ for (var p = 1, u = !0; p < r.length; p += 1) {
1776
+ var m = r[p], v = Ve(m, 0, 1), d = Ve(m, -1);
1777
+ if ((v === '"' || v === "'" || v === "`" || d === '"' || d === "'" || d === "`") && v !== d)
1778
+ throw new be("property names with quotes must have matching quotes");
1779
+ if ((m === "constructor" || !u) && (c = !0), o += "." + m, i = "%" + o + "%", Je(ue, i))
1780
+ s = ue[i];
1781
+ else if (s != null) {
1782
+ if (!(m in s)) {
1783
+ if (!n)
1784
+ throw new ve("base intrinsic for " + e + " exists, but the property is not available.");
1785
+ return;
1786
+ }
1787
+ if (ce && p + 1 >= r.length) {
1788
+ var y = ce(s, m);
1789
+ u = !!y, u && "get" in y && !("originalValue" in y.get) ? s = y.get : s = s[m];
1790
+ } else
1791
+ u = Je(s, m), s = s[m];
1792
+ u && !c && (ue[i] = s);
1793
+ }
1794
+ }
1795
+ return s;
1796
+ }, tn = { exports: {} }, _a = pe, Ot = _a("%Object.defineProperty%", !0), Pt = function() {
1797
+ if (Ot)
1798
+ try {
1799
+ return Ot({}, "a", { value: 1 }), !0;
1800
+ } catch {
1801
+ return !1;
1802
+ }
1803
+ return !1;
1804
+ };
1805
+ Pt.hasArrayLengthDefineBug = function() {
1806
+ if (!Pt())
1807
+ return null;
1808
+ try {
1809
+ return Ot([], "length", { value: 1 }).length !== 1;
1810
+ } catch {
1811
+ return !0;
1812
+ }
1813
+ };
1814
+ var rn = Pt, Ia = pe, We = Ia("%Object.getOwnPropertyDescriptor%", !0);
1815
+ if (We)
1816
+ try {
1817
+ We([], "length");
1818
+ } catch {
1819
+ We = null;
1820
+ }
1821
+ var nn = We, ka = rn(), Bt = pe, Re = ka && Bt("%Object.defineProperty%", !0);
1822
+ if (Re)
1823
+ try {
1824
+ Re({}, "a", { value: 1 });
1825
+ } catch {
1826
+ Re = !1;
1827
+ }
1828
+ var Da = Bt("%SyntaxError%"), me = Bt("%TypeError%"), pr = nn, Ba = function(e, n, r) {
1829
+ if (!e || typeof e != "object" && typeof e != "function")
1830
+ throw new me("`obj` must be an object or a function`");
1831
+ if (typeof n != "string" && typeof n != "symbol")
1832
+ throw new me("`property` must be a string or a symbol`");
1833
+ if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null)
1834
+ throw new me("`nonEnumerable`, if provided, must be a boolean or null");
1835
+ if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null)
1836
+ throw new me("`nonWritable`, if provided, must be a boolean or null");
1837
+ if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null)
1838
+ throw new me("`nonConfigurable`, if provided, must be a boolean or null");
1839
+ if (arguments.length > 6 && typeof arguments[6] != "boolean")
1840
+ throw new me("`loose`, if provided, must be a boolean");
1841
+ var o = arguments.length > 3 ? arguments[3] : null, a = arguments.length > 4 ? arguments[4] : null, i = arguments.length > 5 ? arguments[5] : null, s = arguments.length > 6 ? arguments[6] : !1, c = !!pr && pr(e, n);
1842
+ if (Re)
1843
+ Re(e, n, {
1844
+ configurable: i === null && c ? c.configurable : !i,
1845
+ enumerable: o === null && c ? c.enumerable : !o,
1846
+ value: r,
1847
+ writable: a === null && c ? c.writable : !a
1848
+ });
1849
+ else if (s || !o && !a && !i)
1850
+ e[n] = r;
1851
+ else
1852
+ throw new Da("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
1853
+ }, on = pe, dr = Ba, Ua = rn(), yr = nn, mr = on("%TypeError%"), Ma = on("%Math.floor%"), La = function(e, n) {
1854
+ if (typeof e != "function")
1855
+ throw new mr("`fn` is not a function");
1856
+ if (typeof n != "number" || n < 0 || n > 4294967295 || Ma(n) !== n)
1857
+ throw new mr("`length` must be a positive 32-bit integer");
1858
+ var r = arguments.length > 2 && !!arguments[2], o = !0, a = !0;
1859
+ if ("length" in e && yr) {
1860
+ var i = yr(e, "length");
1861
+ i && !i.configurable && (o = !1), i && !i.writable && (a = !1);
1862
+ }
1863
+ return (o || a || !r) && (Ua ? dr(e, "length", n, !0, !0) : dr(e, "length", n)), e;
1864
+ };
1865
+ (function(t) {
1866
+ var e = Dt, n = pe, r = La, o = n("%TypeError%"), a = n("%Function.prototype.apply%"), i = n("%Function.prototype.call%"), s = n("%Reflect.apply%", !0) || e.call(i, a), c = n("%Object.defineProperty%", !0), l = n("%Math.max%");
1867
+ if (c)
1868
+ try {
1869
+ c({}, "a", { value: 1 });
1870
+ } catch {
1871
+ c = null;
1872
+ }
1873
+ t.exports = function(m) {
1874
+ if (typeof m != "function")
1875
+ throw new o("a function is required");
1876
+ var v = s(e, i, arguments);
1877
+ return r(
1878
+ v,
1879
+ 1 + l(0, m.length - (arguments.length - 1)),
1880
+ !0
1881
+ );
1882
+ };
1883
+ var p = function() {
1884
+ return s(e, a, arguments);
1885
+ };
1886
+ c ? c(t.exports, "apply", { value: p }) : t.exports.apply = p;
1887
+ })(tn);
1888
+ var ja = tn.exports, an = pe, sn = ja, za = sn(an("String.prototype.indexOf")), Ha = function(e, n) {
1889
+ var r = an(e, !!n);
1890
+ return typeof r == "function" && za(e, ".prototype.") > -1 ? sn(r) : r;
1891
+ };
1892
+ const Wa = {}, qa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1893
+ __proto__: null,
1894
+ default: Wa
1895
+ }, Symbol.toStringTag, { value: "Module" })), Ga = /* @__PURE__ */ na(qa);
1896
+ var Ut = typeof Map == "function" && Map.prototype, ft = Object.getOwnPropertyDescriptor && Ut ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ke = Ut && ft && typeof ft.get == "function" ? ft.get : null, hr = Ut && Map.prototype.forEach, Mt = typeof Set == "function" && Set.prototype, pt = Object.getOwnPropertyDescriptor && Mt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Qe = Mt && pt && typeof pt.get == "function" ? pt.get : null, vr = Mt && Set.prototype.forEach, Ja = typeof WeakMap == "function" && WeakMap.prototype, xe = Ja ? WeakMap.prototype.has : null, Va = typeof WeakSet == "function" && WeakSet.prototype, $e = Va ? WeakSet.prototype.has : null, Ka = typeof WeakRef == "function" && WeakRef.prototype, gr = Ka ? WeakRef.prototype.deref : null, Qa = Boolean.prototype.valueOf, Xa = Object.prototype.toString, Ya = Function.prototype.toString, Za = String.prototype.match, Lt = String.prototype.slice, ne = String.prototype.replace, ei = String.prototype.toUpperCase, br = String.prototype.toLowerCase, ln = RegExp.prototype.test, wr = Array.prototype.concat, K = Array.prototype.join, ti = Array.prototype.slice, Sr = Math.floor, Rt = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, dt = Object.getOwnPropertySymbols, xt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, we = typeof Symbol == "function" && typeof Symbol.iterator == "object", k = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === we || !0) ? Symbol.toStringTag : null, cn = Object.prototype.propertyIsEnumerable, Er = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
1897
+ return t.__proto__;
1898
+ } : null);
1899
+ function Ar(t, e) {
1900
+ if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 || ln.call(/e/, e))
1901
+ return e;
1902
+ var n = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
1903
+ if (typeof t == "number") {
1904
+ var r = t < 0 ? -Sr(-t) : Sr(t);
1905
+ if (r !== t) {
1906
+ var o = String(r), a = Lt.call(e, o.length + 1);
1907
+ return ne.call(o, n, "$&_") + "." + ne.call(ne.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
1908
+ }
1909
+ }
1910
+ return ne.call(e, n, "$&_");
1911
+ }
1912
+ var $t = Ga, Or = $t.custom, Pr = fn(Or) ? Or : null, ri = function t(e, n, r, o) {
1913
+ var a = n || {};
1914
+ if (re(a, "quoteStyle") && a.quoteStyle !== "single" && a.quoteStyle !== "double")
1915
+ throw new TypeError('option "quoteStyle" must be "single" or "double"');
1916
+ if (re(a, "maxStringLength") && (typeof a.maxStringLength == "number" ? a.maxStringLength < 0 && a.maxStringLength !== 1 / 0 : a.maxStringLength !== null))
1917
+ throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
1918
+ var i = re(a, "customInspect") ? a.customInspect : !0;
1919
+ if (typeof i != "boolean" && i !== "symbol")
1920
+ throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
1921
+ if (re(a, "indent") && a.indent !== null && a.indent !== " " && !(parseInt(a.indent, 10) === a.indent && a.indent > 0))
1922
+ throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
1923
+ if (re(a, "numericSeparator") && typeof a.numericSeparator != "boolean")
1924
+ throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
1925
+ var s = a.numericSeparator;
1926
+ if (typeof e > "u")
1927
+ return "undefined";
1928
+ if (e === null)
1929
+ return "null";
1930
+ if (typeof e == "boolean")
1931
+ return e ? "true" : "false";
1932
+ if (typeof e == "string")
1933
+ return dn(e, a);
1934
+ if (typeof e == "number") {
1935
+ if (e === 0)
1936
+ return 1 / 0 / e > 0 ? "0" : "-0";
1937
+ var c = String(e);
1938
+ return s ? Ar(e, c) : c;
1939
+ }
1940
+ if (typeof e == "bigint") {
1941
+ var l = String(e) + "n";
1942
+ return s ? Ar(e, l) : l;
1943
+ }
1944
+ var p = typeof a.depth > "u" ? 5 : a.depth;
1945
+ if (typeof r > "u" && (r = 0), r >= p && p > 0 && typeof e == "object")
1946
+ return Tt(e) ? "[Array]" : "[Object]";
1947
+ var u = wi(a, r);
1948
+ if (typeof o > "u")
1949
+ o = [];
1950
+ else if (pn(o, e) >= 0)
1951
+ return "[Circular]";
1952
+ function m(R, N, b) {
1953
+ if (N && (o = ti.call(o), o.push(N)), b) {
1954
+ var D = {
1955
+ depth: a.depth
1956
+ };
1957
+ return re(a, "quoteStyle") && (D.quoteStyle = a.quoteStyle), t(R, D, r + 1, o);
1958
+ }
1959
+ return t(R, a, r + 1, o);
1960
+ }
1961
+ if (typeof e == "function" && !Rr(e)) {
1962
+ var v = fi(e), d = Be(e, m);
1963
+ return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (d.length > 0 ? " { " + K.call(d, ", ") + " }" : "");
1964
+ }
1965
+ if (fn(e)) {
1966
+ var y = we ? ne.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : xt.call(e);
1967
+ return typeof e == "object" && !we ? Pe(y) : y;
1968
+ }
1969
+ if (vi(e)) {
1970
+ for (var O = "<" + br.call(String(e.nodeName)), h = e.attributes || [], T = 0; T < h.length; T++)
1971
+ O += " " + h[T].name + "=" + un(ni(h[T].value), "double", a);
1972
+ return O += ">", e.childNodes && e.childNodes.length && (O += "..."), O += "</" + br.call(String(e.nodeName)) + ">", O;
1973
+ }
1974
+ if (Tt(e)) {
1975
+ if (e.length === 0)
1976
+ return "[]";
1977
+ var C = Be(e, m);
1978
+ return u && !bi(C) ? "[" + Ct(C, u) + "]" : "[ " + K.call(C, ", ") + " ]";
1979
+ }
1980
+ if (ai(e)) {
1981
+ var W = Be(e, m);
1982
+ return !("cause" in Error.prototype) && "cause" in e && !cn.call(e, "cause") ? "{ [" + String(e) + "] " + K.call(wr.call("[cause]: " + m(e.cause), W), ", ") + " }" : W.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + K.call(W, ", ") + " }";
1983
+ }
1984
+ if (typeof e == "object" && i) {
1985
+ if (Pr && typeof e[Pr] == "function" && $t)
1986
+ return $t(e, { depth: p - r });
1987
+ if (i !== "symbol" && typeof e.inspect == "function")
1988
+ return e.inspect();
1989
+ }
1990
+ if (pi(e)) {
1991
+ var q = [];
1992
+ return hr && hr.call(e, function(R, N) {
1993
+ q.push(m(N, e, !0) + " => " + m(R, e));
1994
+ }), xr("Map", Ke.call(e), q, u);
1995
+ }
1996
+ if (mi(e)) {
1997
+ var ae = [];
1998
+ return vr && vr.call(e, function(R) {
1999
+ ae.push(m(R, e));
2000
+ }), xr("Set", Qe.call(e), ae, u);
2001
+ }
2002
+ if (di(e))
2003
+ return yt("WeakMap");
2004
+ if (hi(e))
2005
+ return yt("WeakSet");
2006
+ if (yi(e))
2007
+ return yt("WeakRef");
2008
+ if (si(e))
2009
+ return Pe(m(Number(e)));
2010
+ if (ci(e))
2011
+ return Pe(m(Rt.call(e)));
2012
+ if (li(e))
2013
+ return Pe(Qa.call(e));
2014
+ if (ii(e))
2015
+ return Pe(m(String(e)));
2016
+ if (typeof window < "u" && e === window)
2017
+ return "{ [object Window] }";
2018
+ if (e === ta)
2019
+ return "{ [object globalThis] }";
2020
+ if (!oi(e) && !Rr(e)) {
2021
+ var G = Be(e, m), j = Er ? Er(e) === Object.prototype : e instanceof Object || e.constructor === Object, ie = e instanceof Object ? "" : "null prototype", w = !j && k && Object(e) === e && k in e ? Lt.call(oe(e), 8, -1) : ie ? "Object" : "", S = j || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", P = S + (w || ie ? "[" + K.call(wr.call([], w || [], ie || []), ": ") + "] " : "");
2022
+ return G.length === 0 ? P + "{}" : u ? P + "{" + Ct(G, u) + "}" : P + "{ " + K.call(G, ", ") + " }";
2023
+ }
2024
+ return String(e);
2025
+ };
2026
+ function un(t, e, n) {
2027
+ var r = (n.quoteStyle || e) === "double" ? '"' : "'";
2028
+ return r + t + r;
2029
+ }
2030
+ function ni(t) {
2031
+ return ne.call(String(t), /"/g, "&quot;");
2032
+ }
2033
+ function Tt(t) {
2034
+ return oe(t) === "[object Array]" && (!k || !(typeof t == "object" && k in t));
2035
+ }
2036
+ function oi(t) {
2037
+ return oe(t) === "[object Date]" && (!k || !(typeof t == "object" && k in t));
2038
+ }
2039
+ function Rr(t) {
2040
+ return oe(t) === "[object RegExp]" && (!k || !(typeof t == "object" && k in t));
2041
+ }
2042
+ function ai(t) {
2043
+ return oe(t) === "[object Error]" && (!k || !(typeof t == "object" && k in t));
2044
+ }
2045
+ function ii(t) {
2046
+ return oe(t) === "[object String]" && (!k || !(typeof t == "object" && k in t));
2047
+ }
2048
+ function si(t) {
2049
+ return oe(t) === "[object Number]" && (!k || !(typeof t == "object" && k in t));
2050
+ }
2051
+ function li(t) {
2052
+ return oe(t) === "[object Boolean]" && (!k || !(typeof t == "object" && k in t));
2053
+ }
2054
+ function fn(t) {
2055
+ if (we)
2056
+ return t && typeof t == "object" && t instanceof Symbol;
2057
+ if (typeof t == "symbol")
2058
+ return !0;
2059
+ if (!t || typeof t != "object" || !xt)
2060
+ return !1;
2061
+ try {
2062
+ return xt.call(t), !0;
2063
+ } catch {
2064
+ }
2065
+ return !1;
2066
+ }
2067
+ function ci(t) {
2068
+ if (!t || typeof t != "object" || !Rt)
2069
+ return !1;
2070
+ try {
2071
+ return Rt.call(t), !0;
2072
+ } catch {
2073
+ }
2074
+ return !1;
2075
+ }
2076
+ var ui = Object.prototype.hasOwnProperty || function(t) {
2077
+ return t in this;
2078
+ };
2079
+ function re(t, e) {
2080
+ return ui.call(t, e);
2081
+ }
2082
+ function oe(t) {
2083
+ return Xa.call(t);
2084
+ }
2085
+ function fi(t) {
2086
+ if (t.name)
2087
+ return t.name;
2088
+ var e = Za.call(Ya.call(t), /^function\s*([\w$]+)/);
2089
+ return e ? e[1] : null;
2090
+ }
2091
+ function pn(t, e) {
2092
+ if (t.indexOf)
2093
+ return t.indexOf(e);
2094
+ for (var n = 0, r = t.length; n < r; n++)
2095
+ if (t[n] === e)
2096
+ return n;
2097
+ return -1;
2098
+ }
2099
+ function pi(t) {
2100
+ if (!Ke || !t || typeof t != "object")
2101
+ return !1;
2102
+ try {
2103
+ Ke.call(t);
2104
+ try {
2105
+ Qe.call(t);
2106
+ } catch {
2107
+ return !0;
2108
+ }
2109
+ return t instanceof Map;
2110
+ } catch {
2111
+ }
2112
+ return !1;
2113
+ }
2114
+ function di(t) {
2115
+ if (!xe || !t || typeof t != "object")
2116
+ return !1;
2117
+ try {
2118
+ xe.call(t, xe);
2119
+ try {
2120
+ $e.call(t, $e);
2121
+ } catch {
2122
+ return !0;
2123
+ }
2124
+ return t instanceof WeakMap;
2125
+ } catch {
2126
+ }
2127
+ return !1;
2128
+ }
2129
+ function yi(t) {
2130
+ if (!gr || !t || typeof t != "object")
2131
+ return !1;
2132
+ try {
2133
+ return gr.call(t), !0;
2134
+ } catch {
2135
+ }
2136
+ return !1;
2137
+ }
2138
+ function mi(t) {
2139
+ if (!Qe || !t || typeof t != "object")
2140
+ return !1;
2141
+ try {
2142
+ Qe.call(t);
2143
+ try {
2144
+ Ke.call(t);
2145
+ } catch {
2146
+ return !0;
2147
+ }
2148
+ return t instanceof Set;
2149
+ } catch {
2150
+ }
2151
+ return !1;
2152
+ }
2153
+ function hi(t) {
2154
+ if (!$e || !t || typeof t != "object")
2155
+ return !1;
2156
+ try {
2157
+ $e.call(t, $e);
2158
+ try {
2159
+ xe.call(t, xe);
2160
+ } catch {
2161
+ return !0;
2162
+ }
2163
+ return t instanceof WeakSet;
2164
+ } catch {
2165
+ }
2166
+ return !1;
2167
+ }
2168
+ function vi(t) {
2169
+ return !t || typeof t != "object" ? !1 : typeof HTMLElement < "u" && t instanceof HTMLElement ? !0 : typeof t.nodeName == "string" && typeof t.getAttribute == "function";
2170
+ }
2171
+ function dn(t, e) {
2172
+ if (t.length > e.maxStringLength) {
2173
+ var n = t.length - e.maxStringLength, r = "... " + n + " more character" + (n > 1 ? "s" : "");
2174
+ return dn(Lt.call(t, 0, e.maxStringLength), e) + r;
2175
+ }
2176
+ var o = ne.call(ne.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, gi);
2177
+ return un(o, "single", e);
2178
+ }
2179
+ function gi(t) {
2180
+ var e = t.charCodeAt(0), n = {
2181
+ 8: "b",
2182
+ 9: "t",
2183
+ 10: "n",
2184
+ 12: "f",
2185
+ 13: "r"
2186
+ }[e];
2187
+ return n ? "\\" + n : "\\x" + (e < 16 ? "0" : "") + ei.call(e.toString(16));
2188
+ }
2189
+ function Pe(t) {
2190
+ return "Object(" + t + ")";
2191
+ }
2192
+ function yt(t) {
2193
+ return t + " { ? }";
2194
+ }
2195
+ function xr(t, e, n, r) {
2196
+ var o = r ? Ct(n, r) : K.call(n, ", ");
2197
+ return t + " (" + e + ") {" + o + "}";
2198
+ }
2199
+ function bi(t) {
2200
+ for (var e = 0; e < t.length; e++)
2201
+ if (pn(t[e], `
2202
+ `) >= 0)
2203
+ return !1;
2204
+ return !0;
2205
+ }
2206
+ function wi(t, e) {
2207
+ var n;
2208
+ if (t.indent === " ")
2209
+ n = " ";
2210
+ else if (typeof t.indent == "number" && t.indent > 0)
2211
+ n = K.call(Array(t.indent + 1), " ");
2212
+ else
2213
+ return null;
2214
+ return {
2215
+ base: n,
2216
+ prev: K.call(Array(e + 1), n)
2217
+ };
2218
+ }
2219
+ function Ct(t, e) {
2220
+ if (t.length === 0)
2221
+ return "";
2222
+ var n = `
2223
+ ` + e.prev + e.base;
2224
+ return n + K.call(t, "," + n) + `
2225
+ ` + e.prev;
2226
+ }
2227
+ function Be(t, e) {
2228
+ var n = Tt(t), r = [];
2229
+ if (n) {
2230
+ r.length = t.length;
2231
+ for (var o = 0; o < t.length; o++)
2232
+ r[o] = re(t, o) ? e(t[o], t) : "";
2233
+ }
2234
+ var a = typeof dt == "function" ? dt(t) : [], i;
2235
+ if (we) {
2236
+ i = {};
2237
+ for (var s = 0; s < a.length; s++)
2238
+ i["$" + a[s]] = a[s];
2239
+ }
2240
+ for (var c in t)
2241
+ re(t, c) && (n && String(Number(c)) === c && c < t.length || we && i["$" + c] instanceof Symbol || (ln.call(/[^\w$]/, c) ? r.push(e(c, t) + ": " + e(t[c], t)) : r.push(c + ": " + e(t[c], t))));
2242
+ if (typeof dt == "function")
2243
+ for (var l = 0; l < a.length; l++)
2244
+ cn.call(t, a[l]) && r.push("[" + e(a[l]) + "]: " + e(t[a[l]], t));
2245
+ return r;
2246
+ }
2247
+ var jt = pe, Ae = Ha, Si = ri, Ei = jt("%TypeError%"), Ue = jt("%WeakMap%", !0), Me = jt("%Map%", !0), Ai = Ae("WeakMap.prototype.get", !0), Oi = Ae("WeakMap.prototype.set", !0), Pi = Ae("WeakMap.prototype.has", !0), Ri = Ae("Map.prototype.get", !0), xi = Ae("Map.prototype.set", !0), $i = Ae("Map.prototype.has", !0), zt = function(t, e) {
2248
+ for (var n = t, r; (r = n.next) !== null; n = r)
2249
+ if (r.key === e)
2250
+ return n.next = r.next, r.next = t.next, t.next = r, r;
2251
+ }, Ti = function(t, e) {
2252
+ var n = zt(t, e);
2253
+ return n && n.value;
2254
+ }, Ci = function(t, e, n) {
2255
+ var r = zt(t, e);
2256
+ r ? r.value = n : t.next = {
2257
+ // eslint-disable-line no-param-reassign
2258
+ key: e,
2259
+ next: t.next,
2260
+ value: n
2261
+ };
2262
+ }, Ni = function(t, e) {
2263
+ return !!zt(t, e);
2264
+ }, Fi = function() {
2265
+ var e, n, r, o = {
2266
+ assert: function(a) {
2267
+ if (!o.has(a))
2268
+ throw new Ei("Side channel does not contain " + Si(a));
2269
+ },
2270
+ get: function(a) {
2271
+ if (Ue && a && (typeof a == "object" || typeof a == "function")) {
2272
+ if (e)
2273
+ return Ai(e, a);
2274
+ } else if (Me) {
2275
+ if (n)
2276
+ return Ri(n, a);
2277
+ } else if (r)
2278
+ return Ti(r, a);
2279
+ },
2280
+ has: function(a) {
2281
+ if (Ue && a && (typeof a == "object" || typeof a == "function")) {
2282
+ if (e)
2283
+ return Pi(e, a);
2284
+ } else if (Me) {
2285
+ if (n)
2286
+ return $i(n, a);
2287
+ } else if (r)
2288
+ return Ni(r, a);
2289
+ return !1;
2290
+ },
2291
+ set: function(a, i) {
2292
+ Ue && a && (typeof a == "object" || typeof a == "function") ? (e || (e = new Ue()), Oi(e, a, i)) : Me ? (n || (n = new Me()), xi(n, a, i)) : (r || (r = { key: {}, next: null }), Ci(r, a, i));
2293
+ }
2294
+ };
2295
+ return o;
2296
+ }, _i = String.prototype.replace, Ii = /%20/g, mt = {
2297
+ RFC1738: "RFC1738",
2298
+ RFC3986: "RFC3986"
2299
+ }, Ht = {
2300
+ default: mt.RFC3986,
2301
+ formatters: {
2302
+ RFC1738: function(t) {
2303
+ return _i.call(t, Ii, "+");
2304
+ },
2305
+ RFC3986: function(t) {
2306
+ return String(t);
2307
+ }
2308
+ },
2309
+ RFC1738: mt.RFC1738,
2310
+ RFC3986: mt.RFC3986
2311
+ }, ki = Ht, ht = Object.prototype.hasOwnProperty, se = Array.isArray, V = function() {
2312
+ for (var t = [], e = 0; e < 256; ++e)
2313
+ t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
2314
+ return t;
2315
+ }(), Di = function(e) {
2316
+ for (; e.length > 1; ) {
2317
+ var n = e.pop(), r = n.obj[n.prop];
2318
+ if (se(r)) {
2319
+ for (var o = [], a = 0; a < r.length; ++a)
2320
+ typeof r[a] < "u" && o.push(r[a]);
2321
+ n.obj[n.prop] = o;
2322
+ }
2323
+ }
2324
+ }, yn = function(e, n) {
2325
+ for (var r = n && n.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = 0; o < e.length; ++o)
2326
+ typeof e[o] < "u" && (r[o] = e[o]);
2327
+ return r;
2328
+ }, Bi = function t(e, n, r) {
2329
+ if (!n)
2330
+ return e;
2331
+ if (typeof n != "object") {
2332
+ if (se(e))
2333
+ e.push(n);
2334
+ else if (e && typeof e == "object")
2335
+ (r && (r.plainObjects || r.allowPrototypes) || !ht.call(Object.prototype, n)) && (e[n] = !0);
2336
+ else
2337
+ return [e, n];
2338
+ return e;
2339
+ }
2340
+ if (!e || typeof e != "object")
2341
+ return [e].concat(n);
2342
+ var o = e;
2343
+ return se(e) && !se(n) && (o = yn(e, r)), se(e) && se(n) ? (n.forEach(function(a, i) {
2344
+ if (ht.call(e, i)) {
2345
+ var s = e[i];
2346
+ s && typeof s == "object" && a && typeof a == "object" ? e[i] = t(s, a, r) : e.push(a);
2347
+ } else
2348
+ e[i] = a;
2349
+ }), e) : Object.keys(n).reduce(function(a, i) {
2350
+ var s = n[i];
2351
+ return ht.call(a, i) ? a[i] = t(a[i], s, r) : a[i] = s, a;
2352
+ }, o);
2353
+ }, Ui = function(e, n) {
2354
+ return Object.keys(n).reduce(function(r, o) {
2355
+ return r[o] = n[o], r;
2356
+ }, e);
2357
+ }, Mi = function(t, e, n) {
2358
+ var r = t.replace(/\+/g, " ");
2359
+ if (n === "iso-8859-1")
2360
+ return r.replace(/%[0-9a-f]{2}/gi, unescape);
2361
+ try {
2362
+ return decodeURIComponent(r);
2363
+ } catch {
2364
+ return r;
2365
+ }
2366
+ }, Li = function(e, n, r, o, a) {
2367
+ if (e.length === 0)
2368
+ return e;
2369
+ var i = e;
2370
+ if (typeof e == "symbol" ? i = Symbol.prototype.toString.call(e) : typeof e != "string" && (i = String(e)), r === "iso-8859-1")
2371
+ return escape(i).replace(/%u[0-9a-f]{4}/gi, function(p) {
2372
+ return "%26%23" + parseInt(p.slice(2), 16) + "%3B";
2373
+ });
2374
+ for (var s = "", c = 0; c < i.length; ++c) {
2375
+ var l = i.charCodeAt(c);
2376
+ if (l === 45 || l === 46 || l === 95 || l === 126 || l >= 48 && l <= 57 || l >= 65 && l <= 90 || l >= 97 && l <= 122 || a === ki.RFC1738 && (l === 40 || l === 41)) {
2377
+ s += i.charAt(c);
2378
+ continue;
2379
+ }
2380
+ if (l < 128) {
2381
+ s = s + V[l];
2382
+ continue;
2383
+ }
2384
+ if (l < 2048) {
2385
+ s = s + (V[192 | l >> 6] + V[128 | l & 63]);
2386
+ continue;
2387
+ }
2388
+ if (l < 55296 || l >= 57344) {
2389
+ s = s + (V[224 | l >> 12] + V[128 | l >> 6 & 63] + V[128 | l & 63]);
2390
+ continue;
2391
+ }
2392
+ c += 1, l = 65536 + ((l & 1023) << 10 | i.charCodeAt(c) & 1023), s += V[240 | l >> 18] + V[128 | l >> 12 & 63] + V[128 | l >> 6 & 63] + V[128 | l & 63];
2393
+ }
2394
+ return s;
2395
+ }, ji = function(e) {
2396
+ for (var n = [{ obj: { o: e }, prop: "o" }], r = [], o = 0; o < n.length; ++o)
2397
+ for (var a = n[o], i = a.obj[a.prop], s = Object.keys(i), c = 0; c < s.length; ++c) {
2398
+ var l = s[c], p = i[l];
2399
+ typeof p == "object" && p !== null && r.indexOf(p) === -1 && (n.push({ obj: i, prop: l }), r.push(p));
2400
+ }
2401
+ return Di(n), e;
2402
+ }, zi = function(e) {
2403
+ return Object.prototype.toString.call(e) === "[object RegExp]";
2404
+ }, Hi = function(e) {
2405
+ return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
2406
+ }, Wi = function(e, n) {
2407
+ return [].concat(e, n);
2408
+ }, qi = function(e, n) {
2409
+ if (se(e)) {
2410
+ for (var r = [], o = 0; o < e.length; o += 1)
2411
+ r.push(n(e[o]));
2412
+ return r;
2413
+ }
2414
+ return n(e);
2415
+ }, mn = {
2416
+ arrayToObject: yn,
2417
+ assign: Ui,
2418
+ combine: Wi,
2419
+ compact: ji,
2420
+ decode: Mi,
2421
+ encode: Li,
2422
+ isBuffer: Hi,
2423
+ isRegExp: zi,
2424
+ maybeMap: qi,
2425
+ merge: Bi
2426
+ }, hn = Fi, qe = mn, Te = Ht, Gi = Object.prototype.hasOwnProperty, $r = {
2427
+ brackets: function(e) {
2428
+ return e + "[]";
2429
+ },
2430
+ comma: "comma",
2431
+ indices: function(e, n) {
2432
+ return e + "[" + n + "]";
2433
+ },
2434
+ repeat: function(e) {
2435
+ return e;
2436
+ }
2437
+ }, Z = Array.isArray, Ji = Array.prototype.push, vn = function(t, e) {
2438
+ Ji.apply(t, Z(e) ? e : [e]);
2439
+ }, Vi = Date.prototype.toISOString, Tr = Te.default, I = {
2440
+ addQueryPrefix: !1,
2441
+ allowDots: !1,
2442
+ charset: "utf-8",
2443
+ charsetSentinel: !1,
2444
+ delimiter: "&",
2445
+ encode: !0,
2446
+ encoder: qe.encode,
2447
+ encodeValuesOnly: !1,
2448
+ format: Tr,
2449
+ formatter: Te.formatters[Tr],
2450
+ // deprecated
2451
+ indices: !1,
2452
+ serializeDate: function(e) {
2453
+ return Vi.call(e);
2454
+ },
2455
+ skipNulls: !1,
2456
+ strictNullHandling: !1
2457
+ }, Ki = function(e) {
2458
+ return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
2459
+ }, vt = {}, Qi = function t(e, n, r, o, a, i, s, c, l, p, u, m, v, d, y, O) {
2460
+ for (var h = e, T = O, C = 0, W = !1; (T = T.get(vt)) !== void 0 && !W; ) {
2461
+ var q = T.get(e);
2462
+ if (C += 1, typeof q < "u") {
2463
+ if (q === C)
2464
+ throw new RangeError("Cyclic object value");
2465
+ W = !0;
2466
+ }
2467
+ typeof T.get(vt) > "u" && (C = 0);
2468
+ }
2469
+ if (typeof c == "function" ? h = c(n, h) : h instanceof Date ? h = u(h) : r === "comma" && Z(h) && (h = qe.maybeMap(h, function(D) {
2470
+ return D instanceof Date ? u(D) : D;
2471
+ })), h === null) {
2472
+ if (a)
2473
+ return s && !d ? s(n, I.encoder, y, "key", m) : n;
2474
+ h = "";
2475
+ }
2476
+ if (Ki(h) || qe.isBuffer(h)) {
2477
+ if (s) {
2478
+ var ae = d ? n : s(n, I.encoder, y, "key", m);
2479
+ return [v(ae) + "=" + v(s(h, I.encoder, y, "value", m))];
2480
+ }
2481
+ return [v(n) + "=" + v(String(h))];
2482
+ }
2483
+ var G = [];
2484
+ if (typeof h > "u")
2485
+ return G;
2486
+ var j;
2487
+ if (r === "comma" && Z(h))
2488
+ d && s && (h = qe.maybeMap(h, s)), j = [{ value: h.length > 0 ? h.join(",") || null : void 0 }];
2489
+ else if (Z(c))
2490
+ j = c;
2491
+ else {
2492
+ var ie = Object.keys(h);
2493
+ j = l ? ie.sort(l) : ie;
2494
+ }
2495
+ for (var w = o && Z(h) && h.length === 1 ? n + "[]" : n, S = 0; S < j.length; ++S) {
2496
+ var P = j[S], R = typeof P == "object" && typeof P.value < "u" ? P.value : h[P];
2497
+ if (!(i && R === null)) {
2498
+ var N = Z(h) ? typeof r == "function" ? r(w, P) : w : w + (p ? "." + P : "[" + P + "]");
2499
+ O.set(e, C);
2500
+ var b = hn();
2501
+ b.set(vt, O), vn(G, t(
2502
+ R,
2503
+ N,
2504
+ r,
2505
+ o,
2506
+ a,
2507
+ i,
2508
+ r === "comma" && d && Z(h) ? null : s,
2509
+ c,
2510
+ l,
2511
+ p,
2512
+ u,
2513
+ m,
2514
+ v,
2515
+ d,
2516
+ y,
2517
+ b
2518
+ ));
2519
+ }
2520
+ }
2521
+ return G;
2522
+ }, Xi = function(e) {
2523
+ if (!e)
2524
+ return I;
2525
+ if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
2526
+ throw new TypeError("Encoder has to be a function.");
2527
+ var n = e.charset || I.charset;
2528
+ if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
2529
+ throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
2530
+ var r = Te.default;
2531
+ if (typeof e.format < "u") {
2532
+ if (!Gi.call(Te.formatters, e.format))
2533
+ throw new TypeError("Unknown format option provided.");
2534
+ r = e.format;
2535
+ }
2536
+ var o = Te.formatters[r], a = I.filter;
2537
+ return (typeof e.filter == "function" || Z(e.filter)) && (a = e.filter), {
2538
+ addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : I.addQueryPrefix,
2539
+ allowDots: typeof e.allowDots > "u" ? I.allowDots : !!e.allowDots,
2540
+ charset: n,
2541
+ charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : I.charsetSentinel,
2542
+ delimiter: typeof e.delimiter > "u" ? I.delimiter : e.delimiter,
2543
+ encode: typeof e.encode == "boolean" ? e.encode : I.encode,
2544
+ encoder: typeof e.encoder == "function" ? e.encoder : I.encoder,
2545
+ encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : I.encodeValuesOnly,
2546
+ filter: a,
2547
+ format: r,
2548
+ formatter: o,
2549
+ serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : I.serializeDate,
2550
+ skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : I.skipNulls,
2551
+ sort: typeof e.sort == "function" ? e.sort : null,
2552
+ strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : I.strictNullHandling
2553
+ };
2554
+ }, Yi = function(t, e) {
2555
+ var n = t, r = Xi(e), o, a;
2556
+ typeof r.filter == "function" ? (a = r.filter, n = a("", n)) : Z(r.filter) && (a = r.filter, o = a);
2557
+ var i = [];
2558
+ if (typeof n != "object" || n === null)
2559
+ return "";
2560
+ var s;
2561
+ e && e.arrayFormat in $r ? s = e.arrayFormat : e && "indices" in e ? s = e.indices ? "indices" : "repeat" : s = "indices";
2562
+ var c = $r[s];
2563
+ if (e && "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
2564
+ throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
2565
+ var l = c === "comma" && e && e.commaRoundTrip;
2566
+ o || (o = Object.keys(n)), r.sort && o.sort(r.sort);
2567
+ for (var p = hn(), u = 0; u < o.length; ++u) {
2568
+ var m = o[u];
2569
+ r.skipNulls && n[m] === null || vn(i, Qi(
2570
+ n[m],
2571
+ m,
2572
+ c,
2573
+ l,
2574
+ r.strictNullHandling,
2575
+ r.skipNulls,
2576
+ r.encode ? r.encoder : null,
2577
+ r.filter,
2578
+ r.sort,
2579
+ r.allowDots,
2580
+ r.serializeDate,
2581
+ r.format,
2582
+ r.formatter,
2583
+ r.encodeValuesOnly,
2584
+ r.charset,
2585
+ p
2586
+ ));
2587
+ }
2588
+ var v = i.join(r.delimiter), d = r.addQueryPrefix === !0 ? "?" : "";
2589
+ return r.charsetSentinel && (r.charset === "iso-8859-1" ? d += "utf8=%26%2310003%3B&" : d += "utf8=%E2%9C%93&"), v.length > 0 ? d + v : "";
2590
+ }, Se = mn, Nt = Object.prototype.hasOwnProperty, Zi = Array.isArray, F = {
2591
+ allowDots: !1,
2592
+ allowPrototypes: !1,
2593
+ allowSparse: !1,
2594
+ arrayLimit: 20,
2595
+ charset: "utf-8",
2596
+ charsetSentinel: !1,
2597
+ comma: !1,
2598
+ decoder: Se.decode,
2599
+ delimiter: "&",
2600
+ depth: 5,
2601
+ ignoreQueryPrefix: !1,
2602
+ interpretNumericEntities: !1,
2603
+ parameterLimit: 1e3,
2604
+ parseArrays: !0,
2605
+ plainObjects: !1,
2606
+ strictNullHandling: !1
2607
+ }, es = function(t) {
2608
+ return t.replace(/&#(\d+);/g, function(e, n) {
2609
+ return String.fromCharCode(parseInt(n, 10));
2610
+ });
2611
+ }, gn = function(t, e) {
2612
+ return t && typeof t == "string" && e.comma && t.indexOf(",") > -1 ? t.split(",") : t;
2613
+ }, ts = "utf8=%26%2310003%3B", rs = "utf8=%E2%9C%93", ns = function(e, n) {
2614
+ var r = { __proto__: null }, o = n.ignoreQueryPrefix ? e.replace(/^\?/, "") : e, a = n.parameterLimit === 1 / 0 ? void 0 : n.parameterLimit, i = o.split(n.delimiter, a), s = -1, c, l = n.charset;
2615
+ if (n.charsetSentinel)
2616
+ for (c = 0; c < i.length; ++c)
2617
+ i[c].indexOf("utf8=") === 0 && (i[c] === rs ? l = "utf-8" : i[c] === ts && (l = "iso-8859-1"), s = c, c = i.length);
2618
+ for (c = 0; c < i.length; ++c)
2619
+ if (c !== s) {
2620
+ var p = i[c], u = p.indexOf("]="), m = u === -1 ? p.indexOf("=") : u + 1, v, d;
2621
+ m === -1 ? (v = n.decoder(p, F.decoder, l, "key"), d = n.strictNullHandling ? null : "") : (v = n.decoder(p.slice(0, m), F.decoder, l, "key"), d = Se.maybeMap(
2622
+ gn(p.slice(m + 1), n),
2623
+ function(y) {
2624
+ return n.decoder(y, F.decoder, l, "value");
2625
+ }
2626
+ )), d && n.interpretNumericEntities && l === "iso-8859-1" && (d = es(d)), p.indexOf("[]=") > -1 && (d = Zi(d) ? [d] : d), Nt.call(r, v) ? r[v] = Se.combine(r[v], d) : r[v] = d;
2627
+ }
2628
+ return r;
2629
+ }, os = function(t, e, n, r) {
2630
+ for (var o = r ? e : gn(e, n), a = t.length - 1; a >= 0; --a) {
2631
+ var i, s = t[a];
2632
+ if (s === "[]" && n.parseArrays)
2633
+ i = [].concat(o);
2634
+ else {
2635
+ i = n.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
2636
+ var c = s.charAt(0) === "[" && s.charAt(s.length - 1) === "]" ? s.slice(1, -1) : s, l = parseInt(c, 10);
2637
+ !n.parseArrays && c === "" ? i = { 0: o } : !isNaN(l) && s !== c && String(l) === c && l >= 0 && n.parseArrays && l <= n.arrayLimit ? (i = [], i[l] = o) : c !== "__proto__" && (i[c] = o);
2638
+ }
2639
+ o = i;
2640
+ }
2641
+ return o;
2642
+ }, as = function(e, n, r, o) {
2643
+ if (e) {
2644
+ var a = r.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, i = /(\[[^[\]]*])/, s = /(\[[^[\]]*])/g, c = r.depth > 0 && i.exec(a), l = c ? a.slice(0, c.index) : a, p = [];
2645
+ if (l) {
2646
+ if (!r.plainObjects && Nt.call(Object.prototype, l) && !r.allowPrototypes)
2647
+ return;
2648
+ p.push(l);
2649
+ }
2650
+ for (var u = 0; r.depth > 0 && (c = s.exec(a)) !== null && u < r.depth; ) {
2651
+ if (u += 1, !r.plainObjects && Nt.call(Object.prototype, c[1].slice(1, -1)) && !r.allowPrototypes)
2652
+ return;
2653
+ p.push(c[1]);
2654
+ }
2655
+ return c && p.push("[" + a.slice(c.index) + "]"), os(p, n, r, o);
2656
+ }
2657
+ }, is = function(e) {
2658
+ if (!e)
2659
+ return F;
2660
+ if (e.decoder !== null && e.decoder !== void 0 && typeof e.decoder != "function")
2661
+ throw new TypeError("Decoder has to be a function.");
2662
+ if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
2663
+ throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
2664
+ var n = typeof e.charset > "u" ? F.charset : e.charset;
2665
+ return {
2666
+ allowDots: typeof e.allowDots > "u" ? F.allowDots : !!e.allowDots,
2667
+ allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : F.allowPrototypes,
2668
+ allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : F.allowSparse,
2669
+ arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : F.arrayLimit,
2670
+ charset: n,
2671
+ charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : F.charsetSentinel,
2672
+ comma: typeof e.comma == "boolean" ? e.comma : F.comma,
2673
+ decoder: typeof e.decoder == "function" ? e.decoder : F.decoder,
2674
+ delimiter: typeof e.delimiter == "string" || Se.isRegExp(e.delimiter) ? e.delimiter : F.delimiter,
2675
+ // eslint-disable-next-line no-implicit-coercion, no-extra-parens
2676
+ depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : F.depth,
2677
+ ignoreQueryPrefix: e.ignoreQueryPrefix === !0,
2678
+ interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : F.interpretNumericEntities,
2679
+ parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : F.parameterLimit,
2680
+ parseArrays: e.parseArrays !== !1,
2681
+ plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : F.plainObjects,
2682
+ strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : F.strictNullHandling
2683
+ };
2684
+ }, ss = function(t, e) {
2685
+ var n = is(e);
2686
+ if (t === "" || t === null || typeof t > "u")
2687
+ return n.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
2688
+ for (var r = typeof t == "string" ? ns(t, n) : t, o = n.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, a = Object.keys(r), i = 0; i < a.length; ++i) {
2689
+ var s = a[i], c = as(s, r[s], n, typeof t == "string");
2690
+ o = Se.merge(o, c, n);
2691
+ }
2692
+ return n.allowSparse === !0 ? o : Se.compact(o);
2693
+ }, ls = Yi, cs = ss, us = Ht, fs = {
2694
+ formats: us,
2695
+ parse: cs,
2696
+ stringify: ls
2697
+ };
2698
+ const ps = /* @__PURE__ */ ra(fs);
2699
+ /*! js-cookie v3.0.5 | MIT */
2700
+ function Le(t) {
2701
+ for (var e = 1; e < arguments.length; e++) {
2702
+ var n = arguments[e];
2703
+ for (var r in n)
2704
+ t[r] = n[r];
2705
+ }
2706
+ return t;
2707
+ }
2708
+ var ds = {
2709
+ read: function(t) {
2710
+ return t[0] === '"' && (t = t.slice(1, -1)), t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
2711
+ },
2712
+ write: function(t) {
2713
+ return encodeURIComponent(t).replace(
2714
+ /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
2715
+ decodeURIComponent
2716
+ );
2717
+ }
2718
+ };
2719
+ function Ft(t, e) {
2720
+ function n(o, a, i) {
2721
+ if (!(typeof document > "u")) {
2722
+ i = Le({}, e, i), typeof i.expires == "number" && (i.expires = new Date(Date.now() + i.expires * 864e5)), i.expires && (i.expires = i.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
2723
+ var s = "";
2724
+ for (var c in i)
2725
+ i[c] && (s += "; " + c, i[c] !== !0 && (s += "=" + i[c].split(";")[0]));
2726
+ return document.cookie = o + "=" + t.write(a, o) + s;
2727
+ }
2728
+ }
2729
+ function r(o) {
2730
+ if (!(typeof document > "u" || arguments.length && !o)) {
2731
+ for (var a = document.cookie ? document.cookie.split("; ") : [], i = {}, s = 0; s < a.length; s++) {
2732
+ var c = a[s].split("="), l = c.slice(1).join("=");
2733
+ try {
2734
+ var p = decodeURIComponent(c[0]);
2735
+ if (i[p] = t.read(l, p), o === p)
2736
+ break;
2737
+ } catch {
2738
+ }
2739
+ }
2740
+ return o ? i[o] : i;
2741
+ }
2742
+ }
2743
+ return Object.create(
2744
+ {
2745
+ set: n,
2746
+ get: r,
2747
+ remove: function(o, a) {
2748
+ n(
2749
+ o,
2750
+ "",
2751
+ Le({}, a, {
2752
+ expires: -1
2753
+ })
2754
+ );
2755
+ },
2756
+ withAttributes: function(o) {
2757
+ return Ft(this.converter, Le({}, this.attributes, o));
2758
+ },
2759
+ withConverter: function(o) {
2760
+ return Ft(Le({}, this.converter, o), this.attributes);
2761
+ }
2762
+ },
2763
+ {
2764
+ attributes: { value: Object.freeze(e) },
2765
+ converter: { value: Object.freeze(t) }
2766
+ }
2767
+ );
2768
+ }
2769
+ var ys = Ft(ds, { path: "/" });
2770
+ const ms = {
2771
+ 参数校验错误: { "zh-CN": "参数校验错误", en: "Parameter Validation Error", _appCode: "framework" },
2772
+ 接口地址未找到: { "zh-CN": "接口地址未找到", en: "Api endpoint not found", _appCode: "framework" },
2773
+ 服务器内部错误: { "zh-CN": "服务器内部错误", en: "Internal Server Error", _appCode: "framework" },
2774
+ 解析错误: { "zh-CN": "解析错误", en: "Parsing Error", _appCode: "framework" },
2775
+ 请求配置异常: { "zh-CN": "请求配置异常", en: "Request Configuration Error", _appCode: "framework" },
2776
+ "网络异常,请检查您的网络情况": {
2777
+ "zh-CN": "网络异常,请检查您的网络情况",
2778
+ en: "Network error, please check your network status",
2779
+ _appCode: "framework"
2780
+ }
2781
+ };
2782
+ Nr(ms);
2783
+ Xe.extend(_n);
2784
+ Xe.extend(In);
2785
+ const Wt = Ge(), bn = Wt.sso ?? !0, hs = Wt.i18n ?? !0, wn = Wt.noRedireLogin ?? !1, Sn = () => {
2786
+ if (wn) return;
2787
+ const t = "/login";
2788
+ location.pathname !== t && (sessionStorage.clear(), window.__isAutoCloseApp = !1, location.replace(t));
2789
+ }, vs = async (t) => {
2790
+ var n;
2791
+ return ((n = t.config) == null ? void 0 : n.responseType) === "blob" ? t : t.data ?? t;
2792
+ }, gs = async (t, e) => {
2793
+ var c, l, p, u, m;
2794
+ let n = ((c = t.response) == null ? void 0 : c.status) || 500, r = (l = t.response) == null ? void 0 : l.message, o = {};
2795
+ const a = { 400: x("参数校验错误"), 404: x("接口地址未找到"), 500: x("服务器内部错误") };
2796
+ let i = ((p = t == null ? void 0 : t.response) == null ? void 0 : p.data) || {};
2797
+ if (!(Tn("code") || "") && !wn && (n === 401 || (i == null ? void 0 : i.code) === 401))
2798
+ bn ? Cn({ ...Fn, redirect_uri: Nn }) : Sn(), o = i;
2799
+ else {
2800
+ if (t.response) {
2801
+ if (i instanceof Blob && (i = await new Promise((v) => {
2802
+ const d = new FileReader();
2803
+ d.readAsText(i, "utf-8"), d.onload = () => {
2804
+ try {
2805
+ v(JSON.parse(d.result || "{}"));
2806
+ } catch {
2807
+ v({ code: 400, msg: x("blob解析错误") });
2808
+ }
2809
+ };
2810
+ })), i.code) {
2811
+ n = i.code;
2812
+ const v = (e == null ? void 0 : e.i18n) ?? !0;
2813
+ if (hs && v) {
2814
+ const d = (i == null ? void 0 : i.status) ?? "";
2815
+ r = !(i != null && i.data) || !i.data.length ? x(d) : x(d, ...i.data);
2816
+ } else
2817
+ r = (i == null ? void 0 : i.msg) ?? "";
2818
+ o = i;
2819
+ }
2820
+ r || (r = a[t.response.status] || t.message);
2821
+ } else t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = x("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = x("请求配置异常");
2822
+ e != null && e.customErrorMessage && (r = e == null ? void 0 : e.customErrorMessage(r, t)), !(e != null && e.ignoreErrorMessage) && r && ((m = (u = window.DasMessage) == null ? void 0 : u.error) == null || m.call(u, { message: r, showClose: !0 }));
2823
+ }
2824
+ return { ...o, code: n, msg: r, error: t };
2825
+ }, g = (t, e) => {
2826
+ const n = $.create();
2827
+ return xn(n, async (r) => {
2828
+ const o = Ge();
2829
+ if (r.headers || (r.headers = {}), !(r != null && r.public)) {
2830
+ let l = "";
2831
+ if (o.token && (l = o.token), !l) {
2832
+ const p = new URL(location.href).searchParams;
2833
+ l = p.get("token") || p.get("accessToken") || p.get("accesstoken") || "";
2834
+ }
2835
+ bn ? l || (l = await $n(r)) : (l || (l = Bn()), l || Sn()), l && !r.headers.Authorization && (r.headers.Authorization = `Bearer ${l}`);
2836
+ }
2837
+ r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => ps.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess = vs), r.onError || (r.onError = gs), (r.csrf ?? !1) && (r.headers["csrf-token"] = ys.get("csrf-token"));
2838
+ const s = r.params || {};
2839
+ if (s.project === void 0) {
2840
+ let l = 0;
2841
+ const p = new URL(location.href).searchParams;
2842
+ l = p.get("project") || p.get("projectId") || 0, l || (l = kn().id ?? 0), (l || l === 0) && (s.project = l);
2843
+ }
2844
+ if (new URL(location.href).pathname.startsWith("/iot/iot") || new URL(location.href).searchParams.get("app") === "iot") {
2845
+ const { instanceInfo: l } = Dn();
2846
+ l != null && l.instanceId && (s.instance = l.instanceId);
2847
+ }
2848
+ return r.params = s, r.headers.Timezone = Xe.tz.guess(), r.headers["X-Origin"] = location.origin, r.headers["Accept-Language"] = Rn.value, (e == null ? void 0 : e(r)) || r;
2849
+ });
2850
+ }, bs = "v1", hl = g(`/api/app-manager/application/${bs}`), ws = "v1", vl = g(`/api/license/admin/${ws}`), Ss = "v1", gt = `/api/bems/data-manage/${Ss}`, gl = {
2851
+ energyType: g(`${gt}/energy-type`),
2852
+ energyObject: g(`${gt}/energy-object`),
2853
+ energyDimension: g(`${gt}/energy-dimension`)
2854
+ }, Es = "v1", bl = g(`/api/supply/contract/${Es}`), je = "v1", wl = {
2855
+ classes: g(`/api/duty-manage/classes/${je}`),
2856
+ // 班次管理
2857
+ group: g(`/api/duty-manage/group/${je}`),
2858
+ // 分组管理
2859
+ scheduling: g(`/api/duty-manage/scheduling/${je}`),
2860
+ // 排班管理
2861
+ shift: g(`/api/duty-manage/shift/${je}`)
2862
+ // 交接班管理
2863
+ }, As = "v1", Sl = g(`/api/enterpriseright/permission/${As}`), H = "v1", El = g(`/api/iot/${H}`), Al = {
2864
+ thingmodel: g(`/api/iot-device/thingmodel/${H}`),
2865
+ deviceManage: g(`/api/iot-device/devicemanage/${H}`),
2866
+ product: g(`/api/iot-device/product/${H}`),
2867
+ productStorage: g(`/api/iot-device/product-storage/${H}`)
2868
+ }, Ol = {
2869
+ projectDevice: g(`/api/device-relation/deviceproject/${H}`),
2870
+ deviceRules: g(`/api/device-relation/devicerule/${H}`),
2871
+ project: g(`/api/device-relation/project/${H}`)
2872
+ }, qt = g(`/api/oss/minio/${H}`), Os = g(`/api/progress/accessor/${H}`), Pl = g(`/api/dms/analysis/${H}`);
2873
+ let Ps = (t = 21) => {
2874
+ let e = "", n = crypto.getRandomValues(new Uint8Array(t));
2875
+ for (; t--; ) {
2876
+ let r = n[t] & 63;
2877
+ r < 36 ? e += r.toString(36) : r < 62 ? e += (r - 26).toString(36).toUpperCase() : r < 63 ? e += "_" : e += "-";
2878
+ }
2879
+ return e;
2880
+ };
2881
+ const Rs = qt.get("token"), xs = qt.post("put-object", (t) => (t.headers || (t.headers = {}), t.headers["Content-Type"] = "multipart/form-data", t.responseType = "blob", t)), $s = qt.post("upload-objects", (t) => (t.headers || (t.headers = {}), t.headers["Content-Type"] = "multipart/form-data", t.responseType = "blob", t)), Ts = Os.get("progress"), Rl = () => {
2882
+ let t = U(!1), e = U(""), n = U(0), r = U("normal"), o = U(!1), a, i = U(""), s = U(""), c = U(""), l = U(""), p = U(!1), u = U(""), m = "", v = U(""), d;
2883
+ const y = () => {
2884
+ s.value = "", c.value = "", l.value = "", p.value = !1, u.value = "";
2885
+ }, O = async () => {
2886
+ const [w, S] = await Rs().run();
2887
+ return w ? { stauts: !1 } : { status: !0, data: S };
2888
+ }, h = (w) => new Promise((S, P) => {
2889
+ const N = [];
2890
+ let b = 0;
2891
+ for (; b < w.size; ) {
2892
+ const z = w.slice(b, b + 1048576);
2893
+ N.push(z), b += 1048576;
2894
+ }
2895
+ const D = new Blob(N, { type: w.type });
2896
+ S(D);
2897
+ }), T = async (w, S, P, R = !0, N = "", b = !1) => {
2898
+ var Jt, Vt;
2899
+ m = N, v.value = "import", R && (r.value = "normal", n.value = 0, e.value = x("导入进度"), t.value = !0, i.value = ""), d = S;
2900
+ const D = await O();
2901
+ if (!D.status) return;
2902
+ let z = D.data, B = null, { autoContentType: Y, bucketName: de, importFileName: ke } = P;
2903
+ const An = b ? $s : xs;
2904
+ if (b) {
2905
+ let ee = [];
2906
+ await S.forEach(async (De) => {
2907
+ let ot = await h(De);
2908
+ ee.push(ot);
2909
+ }), B = new FormData(), B.append("accessKeyId", z.accessKeyId), B.append("secretAccessKey", z.secretAccessKey), B.append("sessionToken", z.sessionToken), B.append("bucketName", de), S.forEach((De, ot) => {
2910
+ B.append("file", ee[ot]);
2911
+ }), ke.forEach((De) => {
2912
+ B.append("filePaths", De);
2913
+ });
2914
+ } else {
2915
+ const ee = await h(S);
2916
+ B = {
2917
+ accessKeyId: z.accessKeyId,
2918
+ secretAccessKey: z.secretAccessKey,
2919
+ sessionToken: z.sessionToken,
2920
+ file: ee,
2921
+ bucketName: de,
2922
+ filePath: ke,
2923
+ autoContentType: Y
2924
+ };
2925
+ }
2926
+ const [On, Pn] = await An(B).run();
2927
+ if (On) return t.value = !1;
2928
+ const J = await Ns(Pn.data);
2929
+ if (!b && (J == null ? void 0 : J.statusCode) != 200 || b && (J != null && J.some((ee) => (ee == null ? void 0 : ee.statusCode) != 200))) {
2930
+ t.value = !1, (Jt = window.DasMessage) == null || Jt.error({
2931
+ message: (J == null ? void 0 : J.errorMsg) || x("上传失败"),
2932
+ grouping: !0,
2933
+ repeatNum: 1
2934
+ });
2935
+ return;
2936
+ }
2937
+ const nt = await (w == null ? void 0 : w(J));
2938
+ if (R) {
2939
+ if (!nt.status) {
2940
+ t.value = !1, r.value = "error";
2941
+ return;
2942
+ }
2943
+ e.value = x("导入进度"), t.value = !0, q(nt.taskId, "import", "");
2944
+ } else {
2945
+ if (!nt.status) return;
2946
+ r.value = "success", (Vt = window.DasMessage) == null || Vt.success({
2947
+ message: x("导入成功"),
2948
+ grouping: !0,
2949
+ repeatNum: 1
2950
+ });
2951
+ }
2952
+ }, C = async (w, S = "", P = "") => {
2953
+ r.value = "normal", n.value = 0, e.value = P || x("导出进度"), t.value = !0;
2954
+ const R = await (w == null ? void 0 : w());
2955
+ if (!R.status) {
2956
+ t.value = !1, r.value = "error";
2957
+ return;
2958
+ }
2959
+ q(R.taskId, "action", "");
2960
+ }, W = async (w, S = "", P = "", R = !0) => {
2961
+ v.value = "export", R && (r.value = "normal", n.value = 0, e.value = x("导出进度"), t.value = !0);
2962
+ const N = await (w == null ? void 0 : w());
2963
+ if (!N.status) {
2964
+ t.value = !1, r.value = "error";
2965
+ return;
2966
+ }
2967
+ Xe().format("YYYYMMDDHHmmss") + "", q(N.taskId, "export", S || "", P);
2968
+ }, q = async (w, S, P, R = "") => {
2969
+ o.value = !0, G(w, S, P, R), a = setTimeout(() => {
2970
+ }, 50);
2971
+ }, ae = () => {
2972
+ clearTimeout(a), a = null, t.value = !1;
2973
+ }, G = async (w, S = "export", P, R = "") => {
2974
+ var D, z, B;
2975
+ const [N, b] = await Ts("", {
2976
+ url: `progress/${w}`
2977
+ }).run();
2978
+ if (N) {
2979
+ o.value = !1;
2980
+ return;
2981
+ }
2982
+ if (n.value = b.percentage, n.value == 100)
2983
+ if (i.value = b, o.value = !1, ae(), S == "export")
2984
+ if (b.status == 1) {
2985
+ r.value = "success";
2986
+ let Y = await Kt(`/oss/${b == null ? void 0 : b.filePath}`);
2987
+ const de = ((D = Y == null ? void 0 : Y.split("/")) == null ? void 0 : D.pop()) || "";
2988
+ let ke = P || de;
2989
+ Cr(`${Ge().baseURL}/oss${b.filePath}`, ke, R), o.value = !1;
2990
+ } else b.status == 2 && (l.value = b.message || (S == "export" ? x("导出失败") : x("导入失败")), (z = window.DasMessage) == null || z.error({
2991
+ message: l.value,
2992
+ grouping: !0,
2993
+ repeatNum: 1
2994
+ }));
2995
+ else if (S == "import") {
2996
+ if (b.filePath) {
2997
+ r.value = "error", p.value = !0;
2998
+ let Y = await Kt(`/oss/${b == null ? void 0 : b.filePath}`);
2999
+ const de = ((B = Y == null ? void 0 : Y.split("/")) == null ? void 0 : B.pop()) || "";
3000
+ s.value = m || de, c.value = d.sizeText, l.value = x("部分数据校验不通过,请下载附件并修改,重新导入!"), u.value = `${Ge().baseURL}/oss/${b == null ? void 0 : b.filePath}`;
3001
+ }
3002
+ j(b.status, S, b.message);
3003
+ } else S == "action" && (r.value = "success");
3004
+ else
3005
+ a && b.status != 2 ? a = setTimeout(() => {
3006
+ G(w, S, P, R);
3007
+ }, 50) : (i.value = b, o.value = !1, j(b.status, S, b.message), ae(), p.value = !0, l.value = (b == null ? void 0 : b.message) || "");
3008
+ }, j = (w, S = "export", P) => {
3009
+ var R, N, b;
3010
+ w == 1 ? (r.value = "success", (R = window.DasMessage) == null || R.success({
3011
+ message: S == "export" ? x("导出成功") : x("导入成功"),
3012
+ grouping: !0,
3013
+ repeatNum: 1
3014
+ }), s.value = "", c.value = "", l.value = "") : w == 2 ? (r.value = "error", (N = window.DasMessage) == null || N.error({
3015
+ message: P || (S == "export" ? x("导出失败") : x("导入失败")),
3016
+ grouping: !0,
3017
+ repeatNum: 1
3018
+ }), l.value = P || x("部分数据校验不通过,请下载附件并修改,重新导入!")) : w == 3 && (r.value = "error", (b = window.DasMessage) == null || b.error({
3019
+ message: S == "export" ? x("部分导出失败") : x("部分导入失败"),
3020
+ grouping: !0,
3021
+ repeatNum: 1
3022
+ }));
3023
+ };
3024
+ return {
3025
+ showProgressDialog: t,
3026
+ progressTitle: e,
3027
+ percent: n,
3028
+ progressStatus: r,
3029
+ progressLoading: o,
3030
+ progressResult: i,
3031
+ errorFileName: s,
3032
+ errorFileSize: c,
3033
+ errorMessage: l,
3034
+ errorImport: p,
3035
+ errorFilePath: u,
3036
+ fileImport: T,
3037
+ fileExport: W,
3038
+ fileAction: C,
3039
+ generateUniqueName: (w) => {
3040
+ const S = w == null ? void 0 : w.match(/(.*?)(\.[^.]*$|$)/), P = S.length ? S[2] : "";
3041
+ return `${S.length ? S[1] : w}${Ps()}${P}`;
3042
+ },
3043
+ downloadFile: Cr,
3044
+ resetStataus: y,
3045
+ checkProgress: q,
3046
+ fileHandleType: v
3047
+ };
3048
+ }, Cs = (t) => {
3049
+ let e = t == null ? void 0 : t.toLocaleLowerCase();
3050
+ return {
3051
+ excel: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
3052
+ pdf: "application/pdf",
3053
+ doc: "application/msword",
3054
+ docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
3055
+ xls: "application/vnd.ms-excel",
3056
+ xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
3057
+ zip: "application/zip",
3058
+ txt: "text/plain",
3059
+ html: "text/html",
3060
+ xml: "application/xml",
3061
+ json: "application/json",
3062
+ css: "text/css",
3063
+ js: "application/javascript",
3064
+ svg: "image/svg+xml",
3065
+ jpg: "image/jpeg",
3066
+ jpeg: "image/jpeg",
3067
+ gif: "image/gif",
3068
+ bmp: "image/bmp",
3069
+ ico: "image/x-icon",
3070
+ mp3: "audio/mpeg",
3071
+ mp4: "video/mp4",
3072
+ pem: "application/x-pem-file",
3073
+ crt: "application/x-x509-ca-cert",
3074
+ der: "application/x-x509-ca-cert",
3075
+ cer: "application/pkix-cert"
3076
+ }[e];
3077
+ }, Cr = (t, e, n = "excel") => {
3078
+ const r = new XMLHttpRequest();
3079
+ r.open("get", t), r.setRequestHeader("Content-Type", "application/json; charset=UTF-8"), r.responseType = "blob", r.onload = function(o) {
3080
+ const a = new Blob([this.response], {
3081
+ type: Cs(n)
3082
+ }), i = URL.createObjectURL(a);
3083
+ if (window.navigator.msSaveOrOpenBlob)
3084
+ navigator.msSaveBlob(a, e);
3085
+ else {
3086
+ const s = document.createElement("a");
3087
+ s.href = i, s.download = e, s.click(), window.URL.revokeObjectURL(i);
3088
+ }
3089
+ }, r.send();
3090
+ }, Ns = (t) => new Promise((e, n) => {
3091
+ var r = new FileReader();
3092
+ r.onload = function(o) {
3093
+ let a = "";
3094
+ typeof r.result == "string" && (a = JSON.parse(r.result)), e(a);
3095
+ }, r.readAsText(t);
3096
+ }), Fs = "v2", xl = g(`/api/edge/${Fs}`), En = "v1", $l = g(`/api/justauth/oauth-server/${En}/visitor`), Tl = g(`/api/justauth/oauth-server/${En}`), _s = "v1", Cl = g(`/api/knowledge-base/knowledge/${_s}`), Is = "v1", Nl = g(`/api/custom-datasource/custom/${Is}`), ks = "v1", Fl = g(`/api/permission/${ks}`), fe = "v1", _l = g(`/api/customer/customer/${fe}`), Il = g(`/api/customer/company/${fe}`), kl = g(`/api/customer/customer-grade/${fe}`), Dl = g(`/api/customer/customer-type/${fe}`), Bl = {
3097
+ list: g(`/api/project/${fe}/list`),
3098
+ app: g(`/api/project/${fe}/app`),
3099
+ people: g(`/api/project/${fe}/people`)
3100
+ }, Ds = "v1", Ul = g(`/api/portal/user/${Ds}`), Bs = "v1", Ml = g(`/api/space-manage/space-tree/${Bs}`), rt = "v1", Ll = g(`/api/superadmin/portal/${rt}`), jl = g(`/api/superadmin/permission/${rt}`), zl = g(`/api/superadmin/resource/${rt}`), Hl = g(`/api/superadmin/license/${rt}`), Gt = "v1", Wl = g(`/api/supply/supplier/${Gt}`), ql = g(`/api/supplier/${Gt}`), Gl = g(`/api/supplier/${Gt}/classification`), Us = "v1", Jl = g(`/api/supply/brand/${Us}`), Ms = "v2", Vl = g(`/api/tool/${Ms}`), Ls = "v1", Kl = g(`/api/system-config/${Ls}`);
3101
+ Nr(Un);
3102
+ export {
3103
+ Pl as analyApi,
3104
+ hl as appManage,
3105
+ vl as authentication,
3106
+ gl as bemsModules,
3107
+ Il as company,
3108
+ bl as contract,
3109
+ g as createService,
3110
+ _l as customer,
3111
+ kl as customerGrade,
3112
+ Dl as customerType,
3113
+ Nl as daslink,
3114
+ Cr as downloadFile,
3115
+ wl as dutyModules,
3116
+ Jl as enterpriseadminBrandModel,
3117
+ Sl as enterpriseright,
3118
+ xl as gatewayEdge,
3119
+ El as iot,
3120
+ qt as iotMinio,
3121
+ Al as iotModules,
3122
+ Os as iotProgress,
3123
+ Ol as iotRelationModules,
3124
+ $l as justauth,
3125
+ Cl as knowledgeBase,
3126
+ Tl as oauthServer,
3127
+ Fl as permission,
3128
+ Ul as portal,
3129
+ Bl as projectManage,
3130
+ Ml as spaceManage,
3131
+ Hl as superadminLicense,
3132
+ jl as superadminPermission,
3133
+ Ll as superadminPortal,
3134
+ zl as superadminResource,
3135
+ Wl as supplier,
3136
+ Gl as supplierClassification,
3137
+ ql as supplierManage,
3138
+ Kl as systemConfiguration,
3139
+ Vl as tool,
3140
+ Rl as useFile
3141
+ };