hook-fetch 2.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +16 -16
- package/README.md +25 -25
- package/dist/cjs/index.cjs +2 -2
- package/dist/es/index.mjs +1 -1
- package/dist/umd/index.js +5 -5
- package/package.json +1 -1
- package/types/react/index.d.ts +1 -1
- package/types/types.d.ts +1 -1
- package/types/utils.d.ts +1 -1
- package/types/vue/index.d.ts +1 -1
package/README.en.md
CHANGED
|
@@ -27,14 +27,14 @@ pnpm add hook-fetch
|
|
|
27
27
|
import hookFetch from 'hook-fetch';
|
|
28
28
|
|
|
29
29
|
// Make a GET request
|
|
30
|
-
const response = await hookFetch('https://example.com/api/data');
|
|
31
|
-
console.log(response); //
|
|
30
|
+
const response = await hookFetch('https://example.com/api/data').json();
|
|
31
|
+
console.log(response); // Call json() method to parse response data as JSON
|
|
32
32
|
|
|
33
33
|
// Using other HTTP methods
|
|
34
34
|
const postResponse = await hookFetch('https://example.com/api/data', {
|
|
35
35
|
method: 'POST',
|
|
36
36
|
data: { name: 'hook-fetch' }
|
|
37
|
-
});
|
|
37
|
+
}).json();
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
### Creating an Instance
|
|
@@ -50,26 +50,26 @@ const api = hookFetch.create({
|
|
|
50
50
|
});
|
|
51
51
|
|
|
52
52
|
// Use the instance to make requests
|
|
53
|
-
const userData = await api.get('/users/1');
|
|
53
|
+
const userData = await api.get('/users/1').json();
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
### HTTP Request Methods
|
|
57
57
|
|
|
58
58
|
```typescript
|
|
59
59
|
// GET request
|
|
60
|
-
const data = await api.get('/users', { page: 1, limit: 10 });
|
|
60
|
+
const data = await api.get('/users', { page: 1, limit: 10 }).json();
|
|
61
61
|
|
|
62
62
|
// POST request
|
|
63
|
-
const newUser = await api.post('/users', { name: 'John', age: 30 });
|
|
63
|
+
const newUser = await api.post('/users', { name: 'John', age: 30 }).json();
|
|
64
64
|
|
|
65
65
|
// PUT request
|
|
66
|
-
const updatedUser = await api.put('/users/1', { name: 'John Doe' });
|
|
66
|
+
const updatedUser = await api.put('/users/1', { name: 'John Doe' }).json();
|
|
67
67
|
|
|
68
68
|
// PATCH request
|
|
69
|
-
const patchedUser = await api.patch('/users/1', { age: 31 });
|
|
69
|
+
const patchedUser = await api.patch('/users/1', { age: 31 }).json();
|
|
70
70
|
|
|
71
71
|
// DELETE request
|
|
72
|
-
const deleted = await api.delete('/users/1');
|
|
72
|
+
const deleted = await api.delete('/users/1').json();
|
|
73
73
|
|
|
74
74
|
// HEAD request
|
|
75
75
|
const headers = await api.head('/users/1');
|
|
@@ -87,8 +87,8 @@ Hook-Fetch supports various response data handling methods:
|
|
|
87
87
|
```typescript
|
|
88
88
|
const req = hookFetch('https://example.com/api/data');
|
|
89
89
|
|
|
90
|
-
// JSON parsing
|
|
91
|
-
const jsonData = await req;
|
|
90
|
+
// JSON parsing
|
|
91
|
+
const jsonData = await req.json();
|
|
92
92
|
|
|
93
93
|
// Text parsing
|
|
94
94
|
const textData = await req.text();
|
|
@@ -128,7 +128,7 @@ req.abort();
|
|
|
128
128
|
|
|
129
129
|
// Retry the request
|
|
130
130
|
const newReq = req.retry();
|
|
131
|
-
const result = await newReq;
|
|
131
|
+
const result = await newReq.json();
|
|
132
132
|
```
|
|
133
133
|
|
|
134
134
|
### Streaming Data Processing
|
|
@@ -266,7 +266,7 @@ interface User {
|
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
// Use the type in a request
|
|
269
|
-
const res = await request.get<User>('/users/1');
|
|
269
|
+
const res = await request.get<User>('/users/1').json();
|
|
270
270
|
console.log(res.data); // TypeScript provides complete type hints
|
|
271
271
|
```
|
|
272
272
|
|
|
@@ -371,7 +371,7 @@ const YourComponent = defineComponent({
|
|
|
371
371
|
|
|
372
372
|
// Make request
|
|
373
373
|
const fetchData = async () => {
|
|
374
|
-
const response = await request('/users');
|
|
374
|
+
const response = await request('/users').json();
|
|
375
375
|
console.log(response);
|
|
376
376
|
};
|
|
377
377
|
|
|
@@ -429,7 +429,7 @@ const YourComponent = () => {
|
|
|
429
429
|
|
|
430
430
|
// Make request
|
|
431
431
|
const fetchData = async () => {
|
|
432
|
-
const response = await request('/users');
|
|
432
|
+
const response = await request('/users').json();
|
|
433
433
|
console.log(response);
|
|
434
434
|
};
|
|
435
435
|
|
|
@@ -473,7 +473,7 @@ const YourComponent = () => {
|
|
|
473
473
|
|
|
474
474
|
## Notes
|
|
475
475
|
|
|
476
|
-
1. Hook-Fetch
|
|
476
|
+
1. Hook-Fetch requires explicitly calling the `.json()` method to parse JSON responses.
|
|
477
477
|
2. All request methods return Promise objects.
|
|
478
478
|
3. You can retry aborted requests using the `.retry()` method.
|
|
479
479
|
4. Plugins execute in order of priority.
|
package/README.md
CHANGED
|
@@ -27,14 +27,14 @@ pnpm add hook-fetch
|
|
|
27
27
|
import hookFetch from 'hook-fetch';
|
|
28
28
|
|
|
29
29
|
// 发起 GET 请求
|
|
30
|
-
const response = await hookFetch('https://example.com/api/data');
|
|
31
|
-
console.log(response); //
|
|
30
|
+
const response = await hookFetch('https://example.com/api/data').json();
|
|
31
|
+
console.log(response); // 调用 json() 方法解析响应数据为JSON
|
|
32
32
|
|
|
33
33
|
// 使用其他HTTP方法
|
|
34
34
|
const postResponse = await hookFetch('https://example.com/api/data', {
|
|
35
35
|
method: 'POST',
|
|
36
36
|
data: { name: 'hook-fetch' }
|
|
37
|
-
});
|
|
37
|
+
}).json();
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
### 创建实例
|
|
@@ -50,26 +50,26 @@ const api = hookFetch.create({
|
|
|
50
50
|
});
|
|
51
51
|
|
|
52
52
|
// 使用实例发起请求
|
|
53
|
-
const userData = await api.get('/users/1');
|
|
53
|
+
const userData = await api.get('/users/1').json();
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
### HTTP请求方法
|
|
57
57
|
|
|
58
58
|
```typescript
|
|
59
59
|
// GET 请求
|
|
60
|
-
const data = await api.get('/users', { page: 1, limit: 10 });
|
|
60
|
+
const data = await api.get('/users', { page: 1, limit: 10 }).json();
|
|
61
61
|
|
|
62
62
|
// POST 请求
|
|
63
|
-
const newUser = await api.post('/users', { name: 'John', age: 30 });
|
|
63
|
+
const newUser = await api.post('/users', { name: 'John', age: 30 }).json();
|
|
64
64
|
|
|
65
65
|
// PUT 请求
|
|
66
|
-
const updatedUser = await api.put('/users/1', { name: 'John Doe' });
|
|
66
|
+
const updatedUser = await api.put('/users/1', { name: 'John Doe' }).json();
|
|
67
67
|
|
|
68
68
|
// PATCH 请求
|
|
69
|
-
const patchedUser = await api.patch('/users/1', { age: 31 });
|
|
69
|
+
const patchedUser = await api.patch('/users/1', { age: 31 }).json();
|
|
70
70
|
|
|
71
71
|
// DELETE 请求
|
|
72
|
-
const deleted = await api.delete('/users/1');
|
|
72
|
+
const deleted = await api.delete('/users/1').json();
|
|
73
73
|
|
|
74
74
|
// HEAD 请求
|
|
75
75
|
const headers = await api.head('/users/1');
|
|
@@ -87,8 +87,8 @@ Hook-Fetch 支持多种响应数据处理方式:
|
|
|
87
87
|
```typescript
|
|
88
88
|
const req = hookFetch('https://example.com/api/data');
|
|
89
89
|
|
|
90
|
-
// JSON 解析
|
|
91
|
-
const jsonData = await req;
|
|
90
|
+
// JSON 解析
|
|
91
|
+
const jsonData = await req.json();
|
|
92
92
|
|
|
93
93
|
// 文本解析
|
|
94
94
|
const textData = await req.text();
|
|
@@ -128,7 +128,7 @@ req.abort();
|
|
|
128
128
|
|
|
129
129
|
// 重试请求
|
|
130
130
|
const newReq = req.retry();
|
|
131
|
-
const result = await newReq;
|
|
131
|
+
const result = await newReq.json();
|
|
132
132
|
```
|
|
133
133
|
|
|
134
134
|
### 流式数据处理
|
|
@@ -308,21 +308,21 @@ const createRequest = () => {
|
|
|
308
308
|
return {
|
|
309
309
|
// 用户相关接口
|
|
310
310
|
user: {
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
311
|
+
// 获取用户信息
|
|
312
|
+
getInfo: () => request.get('/user/info').json(),
|
|
313
|
+
// 更新用户信息
|
|
314
|
+
updateInfo: (data) => request.put('/user/info', data).json(),
|
|
315
|
+
// 修改密码
|
|
316
|
+
changePassword: (data) => request.post('/user/password', data).json()
|
|
317
317
|
},
|
|
318
318
|
// 订单相关接口
|
|
319
319
|
order: {
|
|
320
320
|
// 获取订单列表
|
|
321
|
-
getList: (params) => request.get('/orders', params),
|
|
321
|
+
getList: (params) => request.get('/orders', params).json(),
|
|
322
322
|
// 创建订单
|
|
323
|
-
create: (data) => request.post('/orders', data),
|
|
323
|
+
create: (data) => request.post('/orders', data).json(),
|
|
324
324
|
// 取消订单
|
|
325
|
-
cancel: (id) => request.post(`/orders/${id}/cancel`)
|
|
325
|
+
cancel: (id) => request.post(`/orders/${id}/cancel`).json()
|
|
326
326
|
}
|
|
327
327
|
};
|
|
328
328
|
};
|
|
@@ -377,7 +377,7 @@ interface User {
|
|
|
377
377
|
}
|
|
378
378
|
|
|
379
379
|
// 在请求中使用类型
|
|
380
|
-
const res = await request.get<User>('/users/1');
|
|
380
|
+
const res = await request.get<User>('/users/1').json();
|
|
381
381
|
console.log(res.data); // TypeScript提供完整类型提示
|
|
382
382
|
```
|
|
383
383
|
|
|
@@ -479,7 +479,7 @@ const YourComponent = defineComponent({
|
|
|
479
479
|
|
|
480
480
|
// 发起请求
|
|
481
481
|
const fetchData = async () => {
|
|
482
|
-
const response = await request('/users');
|
|
482
|
+
const response = await request('/users').json();
|
|
483
483
|
console.log(response);
|
|
484
484
|
};
|
|
485
485
|
|
|
@@ -537,7 +537,7 @@ const YourComponent = () => {
|
|
|
537
537
|
|
|
538
538
|
// 发起请求
|
|
539
539
|
const fetchData = async () => {
|
|
540
|
-
const response = await request('/users');
|
|
540
|
+
const response = await request('/users').json();
|
|
541
541
|
console.log(response);
|
|
542
542
|
};
|
|
543
543
|
|
|
@@ -581,7 +581,7 @@ const YourComponent = () => {
|
|
|
581
581
|
|
|
582
582
|
## 注意事项
|
|
583
583
|
|
|
584
|
-
1. Hook-Fetch
|
|
584
|
+
1. Hook-Fetch 需要显式调用 `.json()` 方法来解析JSON响应
|
|
585
585
|
2. 所有的请求方法都返回Promise对象
|
|
586
586
|
3. 可以通过`.retry()`方法重试已中断的请求
|
|
587
587
|
4. 插件按照优先级顺序执行
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var e=function(exports){function t(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function n(e,n,r){return e.set(t(e,n),r),r}function r(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function i(e,t,n){r(e,t),t.set(e,n)}function a(e,t){r(e,t),t.add(e)}function o(e,n){return e.get(t(e,n))}return exports.assertClassBrand=t,exports.classPrivateFieldGet2=o,exports.classPrivateFieldInitSpec=i,exports.classPrivateFieldSet2=n,exports.classPrivateMethodInitSpec=a,exports}({}),t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k;Object.defineProperty(exports,`__esModule`,{value:!0});const A=require(`../chunk-mbd8xe7s.cjs`);var j=A.__commonJSMin((exports,t)=>{t.exports=TypeError}),M=A.__commonJSMin((exports,t)=>{t.exports={}}),N=A.__commonJSMin((exports,t)=>{var n=typeof Map==`function`&&Map.prototype,r=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,`size`):null,i=n&&r&&typeof r.get==`function`?r.get:null,a=n&&Map.prototype.forEach,o=typeof Set==`function`&&Set.prototype,s=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,`size`):null,c=o&&s&&typeof s.get==`function`?s.get:null,l=o&&Set.prototype.forEach,u=typeof WeakMap==`function`&&WeakMap.prototype,d=u?WeakMap.prototype.has:null,f=typeof WeakSet==`function`&&WeakSet.prototype,p=f?WeakSet.prototype.has:null,m=typeof WeakRef==`function`&&WeakRef.prototype,h=m?WeakRef.prototype.deref:null,g=Boolean.prototype.valueOf,_=Object.prototype.toString,v=Function.prototype.toString,y=String.prototype.match,b=String.prototype.slice,x=String.prototype.replace,S=String.prototype.toUpperCase,C=String.prototype.toLowerCase,w=RegExp.prototype.test,T=Array.prototype.concat,E=Array.prototype.join,D=Array.prototype.slice,O=Math.floor,k=typeof BigInt==`function`?BigInt.prototype.valueOf:null,A=Object.getOwnPropertySymbols,j=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?Symbol.prototype.toString:null,N=typeof Symbol==`function`&&typeof Symbol.iterator==`object`,P=typeof Symbol==`function`&&Symbol.toStringTag&&(typeof Symbol.toStringTag===N||`symbol`)?Symbol.toStringTag:null,
|
|
1
|
+
var e=function(exports){function t(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function n(e,n,r){return e.set(t(e,n),r),r}function r(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function i(e,t,n){r(e,t),t.set(e,n)}function a(e,t){r(e,t),t.add(e)}function o(e,n){return e.get(t(e,n))}return exports.assertClassBrand=t,exports.classPrivateFieldGet2=o,exports.classPrivateFieldInitSpec=i,exports.classPrivateFieldSet2=n,exports.classPrivateMethodInitSpec=a,exports}({}),t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k;Object.defineProperty(exports,`__esModule`,{value:!0});const A=require(`../chunk-mbd8xe7s.cjs`);var j=A.__commonJSMin((exports,t)=>{t.exports=TypeError}),M=A.__commonJSMin((exports,t)=>{t.exports={}}),N=A.__commonJSMin((exports,t)=>{var n=typeof Map==`function`&&Map.prototype,r=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,`size`):null,i=n&&r&&typeof r.get==`function`?r.get:null,a=n&&Map.prototype.forEach,o=typeof Set==`function`&&Set.prototype,s=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,`size`):null,c=o&&s&&typeof s.get==`function`?s.get:null,l=o&&Set.prototype.forEach,u=typeof WeakMap==`function`&&WeakMap.prototype,d=u?WeakMap.prototype.has:null,f=typeof WeakSet==`function`&&WeakSet.prototype,p=f?WeakSet.prototype.has:null,m=typeof WeakRef==`function`&&WeakRef.prototype,h=m?WeakRef.prototype.deref:null,g=Boolean.prototype.valueOf,_=Object.prototype.toString,v=Function.prototype.toString,y=String.prototype.match,b=String.prototype.slice,x=String.prototype.replace,S=String.prototype.toUpperCase,C=String.prototype.toLowerCase,w=RegExp.prototype.test,T=Array.prototype.concat,E=Array.prototype.join,D=Array.prototype.slice,O=Math.floor,k=typeof BigInt==`function`?BigInt.prototype.valueOf:null,A=Object.getOwnPropertySymbols,j=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?Symbol.prototype.toString:null,N=typeof Symbol==`function`&&typeof Symbol.iterator==`object`,P=typeof Symbol==`function`&&Symbol.toStringTag&&(typeof Symbol.toStringTag===N||`symbol`)?Symbol.toStringTag:null,ee=Object.prototype.propertyIsEnumerable,F=(typeof Reflect==`function`?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function I(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||w.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e==`number`){var r=e<0?-O(-e):O(e);if(r!==e){var i=String(r),a=b.call(t,i.length+1);return x.call(i,n,`$&_`)+`.`+x.call(x.call(a,/([0-9]{3})/g,`$&_`),/_$/,``)}}return x.call(t,n,`$&_`)}var L=M(),R=L.custom,z=H(R)?R:null,te={__proto__:null,double:`"`,single:`'`},B={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};t.exports=function e(t,n,r,o){var s=n||{};if(W(s,`quoteStyle`)&&!W(te,s.quoteStyle))throw TypeError(`option "quoteStyle" must be "single" or "double"`);if(W(s,`maxStringLength`)&&(typeof s.maxStringLength==`number`?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=W(s,`customInspect`)?s.customInspect:!0;if(typeof u!=`boolean`&&u!==`symbol`)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(s,`indent`)&&s.indent!==null&&s.indent!==` `&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(s,`numericSeparator`)&&typeof s.numericSeparator!=`boolean`)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=s.numericSeparator;if(t===void 0)return`undefined`;if(t===null)return`null`;if(typeof t==`boolean`)return t?`true`:`false`;if(typeof t==`string`)return ye(t,s);if(typeof t==`number`){if(t===0)return 1/0/t>0?`0`:`-0`;var f=String(t);return d?I(t,f):f}if(typeof t==`bigint`){var p=String(t)+`n`;return d?I(t,p):p}var m=s.depth===void 0?5:s.depth;if(r===void 0&&(r=0),r>=m&&m>0&&typeof t==`object`)return ie(t)?`[Array]`:`[Object]`;var h=Ce(s,r);if(o===void 0)o=[];else if(pe(o,t)>=0)return`[Circular]`;function _(t,n,i){if(n&&(o=D.call(o),o.push(n)),i){var a={depth:s.depth};return W(s,`quoteStyle`)&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,o)}return e(t,s,r+1,o)}if(typeof t==`function`&&!oe(t)){var v=fe(t),y=Te(t,_);return`[Function`+(v?`: `+v:` (anonymous)`)+`]`+(y.length>0?` { `+E.call(y,`, `)+` }`:``)}if(H(t)){var S=N?x.call(String(t),/^(Symbol\(.*\))_[^)]*$/,`$1`):j.call(t);return typeof t==`object`&&!N?J(S):S}if(ve(t)){for(var w=`<`+C.call(String(t.nodeName)),O=t.attributes||[],A=0;A<O.length;A++)w+=` `+O[A].name+`=`+ne(re(O[A].value),`double`,s);return w+=`>`,t.childNodes&&t.childNodes.length&&(w+=`...`),w+=`</`+C.call(String(t.nodeName))+`>`,w}if(ie(t)){if(t.length===0)return`[]`;var M=Te(t,_);return h&&!Se(M)?`[`+we(M,h)+`]`:`[ `+E.call(M,`, `)+` ]`}if(se(t)){var R=Te(t,_);return!(`cause`in Error.prototype)&&`cause`in t&&!ee.call(t,`cause`)?`{ [`+String(t)+`] `+E.call(T.call(`[cause]: `+_(t.cause),R),`, `)+` }`:R.length===0?`[`+String(t)+`]`:`{ [`+String(t)+`] `+E.call(R,`, `)+` }`}if(typeof t==`object`&&u){if(z&&typeof t[z]==`function`&&L)return L(t,{depth:m-r});if(u!==`symbol`&&typeof t.inspect==`function`)return t.inspect()}if(me(t)){var B=[];return a&&a.call(t,function(e,n){B.push(_(n,t,!0)+` => `+_(e,t))}),xe(`Map`,i.call(t),B,h)}if(_e(t)){var V=[];return l&&l.call(t,function(e){V.push(_(e,t))}),xe(`Set`,c.call(t),V,h)}if(he(t))return be(`WeakMap`);if(K(t))return be(`WeakSet`);if(ge(t))return be(`WeakRef`);if(le(t))return J(_(Number(t)));if(de(t))return J(_(k.call(t)));if(ue(t))return J(g.call(t));if(ce(t))return J(_(String(t)));if(typeof window<`u`&&t===window)return`{ [object Window] }`;if(typeof globalThis<`u`&&t===globalThis||typeof global<`u`&&t===global)return`{ [object globalThis] }`;if(!ae(t)&&!oe(t)){var U=Te(t,_),q=F?F(t)===Object.prototype:t instanceof Object||t.constructor===Object,Ee=t instanceof Object?``:`null prototype`,De=!q&&P&&Object(t)===t&&P in t?b.call(G(t),8,-1):Ee?`Object`:``,Oe=q||typeof t.constructor!=`function`?``:t.constructor.name?t.constructor.name+` `:``,Y=Oe+(De||Ee?`[`+E.call(T.call([],De||[],Ee||[]),`: `)+`] `:``);return U.length===0?Y+`{}`:h?Y+`{`+we(U,h)+`}`:Y+`{ `+E.call(U,`, `)+` }`}return String(t)};function ne(e,t,n){var r=n.quoteStyle||t,i=te[r];return i+e+i}function re(e){return x.call(String(e),/"/g,`"`)}function V(e){return!P||!(typeof e==`object`&&(P in e||e[P]!==void 0))}function ie(e){return G(e)===`[object Array]`&&V(e)}function ae(e){return G(e)===`[object Date]`&&V(e)}function oe(e){return G(e)===`[object RegExp]`&&V(e)}function se(e){return G(e)===`[object Error]`&&V(e)}function ce(e){return G(e)===`[object String]`&&V(e)}function le(e){return G(e)===`[object Number]`&&V(e)}function ue(e){return G(e)===`[object Boolean]`&&V(e)}function H(e){if(N)return e&&typeof e==`object`&&e instanceof Symbol;if(typeof e==`symbol`)return!0;if(!e||typeof e!=`object`||!j)return!1;try{return j.call(e),!0}catch{}return!1}function de(e){if(!e||typeof e!=`object`||!k)return!1;try{return k.call(e),!0}catch{}return!1}var U=Object.prototype.hasOwnProperty||function(e){return e in this};function W(e,t){return U.call(e,t)}function G(e){return _.call(e)}function fe(e){if(e.name)return e.name;var t=y.call(v.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function pe(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function me(e){if(!i||!e||typeof e!=`object`)return!1;try{i.call(e);try{c.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function he(e){if(!d||!e||typeof e!=`object`)return!1;try{d.call(e,d);try{p.call(e,p)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function ge(e){if(!h||!e||typeof e!=`object`)return!1;try{return h.call(e),!0}catch{}return!1}function _e(e){if(!c||!e||typeof e!=`object`)return!1;try{c.call(e);try{i.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function K(e){if(!p||!e||typeof e!=`object`)return!1;try{p.call(e,p);try{d.call(e,d)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function ve(e){return!e||typeof e!=`object`?!1:typeof HTMLElement<`u`&&e instanceof HTMLElement?!0:typeof e.nodeName==`string`&&typeof e.getAttribute==`function`}function ye(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r=`... `+n+` more character`+(n>1?`s`:``);return ye(b.call(e,0,t.maxStringLength),t)+r}var i=B[t.quoteStyle||`single`];i.lastIndex=0;var a=x.call(x.call(e,i,`\\$1`),/[\x00-\x1f]/g,q);return ne(a,`single`,t)}function q(e){var t=e.charCodeAt(0),n={8:`b`,9:`t`,10:`n`,12:`f`,13:`r`}[t];return n?`\\`+n:`\\x`+(t<16?`0`:``)+S.call(t.toString(16))}function J(e){return`Object(`+e+`)`}function be(e){return e+` { ? }`}function xe(e,t,n,r){var i=r?we(n,r):E.call(n,`, `);return e+` (`+t+`) {`+i+`}`}function Se(e){for(var t=0;t<e.length;t++)if(pe(e[t],`
|
|
2
2
|
`)>=0)return!1;return!0}function Ce(e,t){var n;if(e.indent===` `)n=` `;else if(typeof e.indent==`number`&&e.indent>0)n=E.call(Array(e.indent+1),` `);else return null;return{base:n,prev:E.call(Array(t+1),n)}}function we(e,t){if(e.length===0)return``;var n=`
|
|
3
3
|
`+t.prev+t.base;return n+E.call(e,`,`+n)+`
|
|
4
|
-
`+t.prev}function Te(e,t){var n=re(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=G(e,i)?t(e[i],e):``}var a=typeof A==`function`?A(e):[],o;if(N){o={};for(var s=0;s<a.length;s++)o[`$`+a[s]]=a[s]}for(var c in e){if(!G(e,c)||n&&String(Number(c))===c&&c<e.length||N&&o[`$`+c]instanceof Symbol)continue;w.call(/[^\w$]/,c)?r.push(t(c,e)+`: `+t(e[c],e)):r.push(c+`: `+t(e[c],e))}if(typeof A==`function`)for(var l=0;l<a.length;l++)F.call(e,a[l])&&r.push(`[`+t(a[l])+`]: `+t(e[a[l]],e));return r}}),P=A.__commonJSMin((exports,t)=>{var n=N(),r=j(),i=function(e,t,n){for(var r=e,i;(i=r.next)!=null;r=i)if(i.key===t)return r.next=i.next,n||(i.next=e.next,e.next=i),i},a=function(e,t){if(e){var n=i(e,t);return n&&n.value}},o=function(e,t,n){var r=i(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},s=function(e,t){return e?!!i(e,t):!1},c=function(e,t){if(e)return i(e,t,!0)};t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r(`Side channel does not contain `+n(e))},delete:function(t){var n=e&&e.next,r=c(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return a(e,t)},has:function(t){return s(e,t)},set:function(t,n){e||={next:void 0},o(e,t,n)}};return t}}),F=A.__commonJSMin((exports,t)=>{t.exports=Object}),I=A.__commonJSMin((exports,t)=>{t.exports=Error}),L=A.__commonJSMin((exports,t)=>{t.exports=EvalError}),R=A.__commonJSMin((exports,t)=>{t.exports=RangeError}),z=A.__commonJSMin((exports,t)=>{t.exports=ReferenceError}),B=A.__commonJSMin((exports,t)=>{t.exports=SyntaxError}),ee=A.__commonJSMin((exports,t)=>{t.exports=URIError}),V=A.__commonJSMin((exports,t)=>{t.exports=Math.abs}),te=A.__commonJSMin((exports,t)=>{t.exports=Math.floor}),ne=A.__commonJSMin((exports,t)=>{t.exports=Math.max}),H=A.__commonJSMin((exports,t)=>{t.exports=Math.min}),re=A.__commonJSMin((exports,t)=>{t.exports=Math.pow}),ie=A.__commonJSMin((exports,t)=>{t.exports=Math.round}),ae=A.__commonJSMin((exports,t)=>{t.exports=Number.isNaN||function(e){return e!==e}}),oe=A.__commonJSMin((exports,t)=>{var n=ae();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}}),se=A.__commonJSMin((exports,t)=>{t.exports=Object.getOwnPropertyDescriptor}),ce=A.__commonJSMin((exports,t)=>{var n=se();if(n)try{n([],`length`)}catch{n=null}t.exports=n}),le=A.__commonJSMin((exports,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n}),U=A.__commonJSMin((exports,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}}),ue=A.__commonJSMin((exports,t)=>{var n=typeof Symbol<`u`&&Symbol,r=U();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}}),W=A.__commonJSMin((exports,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null}),G=A.__commonJSMin((exports,t)=>{var n=F();t.exports=n.getPrototypeOf||null}),K=A.__commonJSMin((exports,t)=>{var n=`Function.prototype.bind called on incompatible `,r=Object.prototype.toString,i=Math.max,a=`[object Function]`,o=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},s=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},c=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||r.apply(t)!==a)throw TypeError(n+t);for(var l=s(arguments,1),u,d=function(){if(this instanceof u){var n=t.apply(this,o(l,arguments));return Object(n)===n?n:this}return t.apply(e,o(l,arguments))},f=i(0,t.length-l.length),p=[],m=0;m<f;m++)p[m]=`$`+m;if(u=Function(`binder`,`return function (`+c(p,`,`)+`){ return binder.apply(this,arguments); }`)(d),t.prototype){var h=function(){};h.prototype=t.prototype,u.prototype=new h,h.prototype=null}return u}}),de=A.__commonJSMin((exports,t)=>{var n=K();t.exports=Function.prototype.bind||n}),fe=A.__commonJSMin((exports,t)=>{t.exports=Function.prototype.call}),pe=A.__commonJSMin((exports,t)=>{t.exports=Function.prototype.apply}),me=A.__commonJSMin((exports,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply}),he=A.__commonJSMin((exports,t)=>{var n=de(),r=pe(),i=fe(),a=me();t.exports=a||n.call(i,r)}),ge=A.__commonJSMin((exports,t)=>{var n=de(),r=j(),i=fe(),a=he();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}}),_e=A.__commonJSMin((exports,t)=>{var n=ge(),r=ce(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`?function(e){return s(e==null?e:o(e))}:!1}),ve=A.__commonJSMin((exports,t)=>{var n=W(),r=G(),i=_e();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null}),ye=A.__commonJSMin((exports,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty,i=de();t.exports=i.call(n,r)}),q=A.__commonJSMin((exports,t)=>{var n,r=F(),i=I(),a=L(),o=R(),s=z(),c=B(),l=j(),u=ee(),d=V(),f=te(),p=ne(),m=H(),h=re(),g=ie(),_=oe(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=ce(),x=le(),S=function(){throw new l},C=b?function(){try{return arguments.callee,S}catch{try{return b(arguments,`callee`).get}catch{return S}}}():S,w=ue()(),T=ve(),E=G(),D=W(),O=pe(),k=fe(),A={},M=typeof Uint8Array>`u`||!T?n:T(Uint8Array),N={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&T?T(T([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!w||!T?n:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!w||!T?n:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&T?T(``[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":C,"%TypedArray%":M,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":E,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(T)try{null.error}catch(e){var P=T(T(e));N[`%Error.prototype%`]=P}var ae=function e(t){var n;if(t===`%AsyncFunction%`)n=y(`async function () {}`);else if(t===`%GeneratorFunction%`)n=y(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=y(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&T&&(n=T(i.prototype))}return N[t]=n,n},se={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},U=de(),K=ye(),me=U.call(k,Array.prototype.concat),he=U.call(O,Array.prototype.splice),ge=U.call(k,String.prototype.replace),_e=U.call(k,String.prototype.slice),q=U.call(k,RegExp.prototype.exec),J=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,be=/\\(\\)?/g,xe=function(e){var t=_e(e,0,1),n=_e(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return ge(e,J,function(e,t,n,i){r[r.length]=n?ge(i,be,`$1`):t||e}),r},Se=function(e,t){var n=e,r;if(K(se,n)&&(r=se[n],n=`%`+r[0]+`%`),K(N,n)){var i=N[n];if(i===A&&(i=ae(n)),i===void 0&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(q(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=xe(e),r=n.length>0?n[0]:``,i=Se(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],he(n,me([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=_e(p,0,1),h=_e(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,K(N,a))o=N[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(b&&d+1>=n.length){var g=b(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=K(o,p),o=o[p];f&&!s&&(N[a]=o)}}return o}}),J=A.__commonJSMin((exports,t)=>{var n=q(),r=ge(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}}),be=A.__commonJSMin((exports,t)=>{var n=q(),r=J(),i=N(),a=j(),o=n(`%Map%`,!0),s=r(`Map.prototype.get`,!0),c=r(`Map.prototype.set`,!0),l=r(`Map.prototype.has`,!0),u=r(`Map.prototype.delete`,!0),d=r(`Map.prototype.size`,!0);t.exports=!!o&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a(`Side channel does not contain `+i(e))},delete:function(t){if(e){var n=u(e,t);return d(e)===0&&(e=void 0),n}return!1},get:function(t){if(e)return s(e,t)},has:function(t){return e?l(e,t):!1},set:function(t,n){e||=new o,c(e,t,n)}};return t}}),xe=A.__commonJSMin((exports,t)=>{var n=q(),r=J(),i=N(),a=be(),o=j(),s=n(`%WeakMap%`,!0),c=r(`WeakMap.prototype.get`,!0),l=r(`WeakMap.prototype.set`,!0),u=r(`WeakMap.prototype.has`,!0),d=r(`WeakMap.prototype.delete`,!0);t.exports=s?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new o(`Side channel does not contain `+i(e))},delete:function(n){if(s&&n&&(typeof n==`object`||typeof n==`function`)){if(e)return d(e,n)}else if(a&&t)return t.delete(n);return!1},get:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?c(e,n):t&&t.get(n)},has:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?u(e,n):!!t&&t.has(n)},set:function(n,r){s&&n&&(typeof n==`object`||typeof n==`function`)?(e||=new s,l(e,n,r)):a&&(t||=a(),t.set(n,r))}};return n}:a}),Se=A.__commonJSMin((exports,t)=>{var n=j(),r=N(),i=P(),a=be(),o=xe(),s=o||a||i;t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n(`Side channel does not contain `+r(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||=s(),e.set(t,n)}};return t}}),Ce=A.__commonJSMin((exports,t)=>{var n=String.prototype.replace,r=/%20/g,i={RFC1738:`RFC1738`,RFC3986:`RFC3986`};t.exports={default:i.RFC3986,formatters:{RFC1738:function(e){return n.call(e,r,`+`)},RFC3986:function(e){return String(e)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986}}),we=A.__commonJSMin((exports,t)=>{var n=Ce(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push(`%`+((t<16?`0`:``)+t.toString(16)).toUpperCase());return e}(),o=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],a=0;a<n.length;++a)n[a]!==void 0&&r.push(n[a]);t.obj[t.prop]=r}}},s=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)e[r]!==void 0&&(n[r]=e[r]);return n},c=function e(t,n,a){if(!n)return t;if(typeof n!=`object`&&typeof n!=`function`){if(i(t))t.push(n);else if(t&&typeof t==`object`)(a&&(a.plainObjects||a.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!=`object`)return[t].concat(n);var o=t;return i(t)&&!i(n)&&(o=s(t,a)),i(t)&&i(n)?(n.forEach(function(n,i){if(r.call(t,i)){var o=t[i];o&&typeof o==`object`&&n&&typeof n==`object`?t[i]=e(o,n,a):t.push(n)}else t[i]=n}),t):Object.keys(n).reduce(function(t,i){var o=n[i];return r.call(t,i)?t[i]=e(t[i],o,a):t[i]=o,t},o)},l=function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},u=function(e,t,n){var r=e.replace(/\+/g,` `);if(n===`iso-8859-1`)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},d=1024,f=function(e,t,r,i,o){if(e.length===0)return e;var s=e;if(typeof e==`symbol`?s=Symbol.prototype.toString.call(e):typeof e!=`string`&&(s=String(e)),r===`iso-8859-1`)return escape(s).replace(/%u[0-9a-f]{4}/gi,function(e){return`%26%23`+parseInt(e.slice(2),16)+`%3B`});for(var c=``,l=0;l<s.length;l+=d){for(var u=s.length>=d?s.slice(l,l+d):s,f=[],p=0;p<u.length;++p){var m=u.charCodeAt(p);if(m===45||m===46||m===95||m===126||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||o===n.RFC1738&&(m===40||m===41)){f[f.length]=u.charAt(p);continue}if(m<128){f[f.length]=a[m];continue}if(m<2048){f[f.length]=a[192|m>>6]+a[128|m&63];continue}if(m<55296||m>=57344){f[f.length]=a[224|m>>12]+a[128|m>>6&63]+a[128|m&63];continue}p+=1,m=65536+((m&1023)<<10|u.charCodeAt(p)&1023),f[f.length]=a[240|m>>18]+a[128|m>>12&63]+a[128|m>>6&63]+a[128|m&63]}c+=f.join(``)}return c},p=function(e){for(var t=[{obj:{o:e},prop:`o`}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),c=0;c<s.length;++c){var l=s[c],u=a[l];typeof u==`object`&&u&&n.indexOf(u)===-1&&(t.push({obj:a,prop:l}),n.push(u))}return o(t),e},m=function(e){return Object.prototype.toString.call(e)===`[object RegExp]`},h=function(e){return!e||typeof e!=`object`?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},g=function(e,t){return[].concat(e,t)},_=function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)};t.exports={arrayToObject:s,assign:l,combine:g,compact:p,decode:u,encode:f,isBuffer:h,isRegExp:m,maybeMap:_,merge:c}}),Te=A.__commonJSMin((exports,t)=>{var n=Se(),r=we(),i=Ce(),a=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+`[]`},comma:`comma`,indices:function(e,t){return e+`[`+t+`]`},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,d=i.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:`indices`,charset:`utf-8`,charsetSentinel:!1,commaRoundTrip:!1,delimiter:`&`,encode:!0,encodeDotInKeys:!1,encoder:r.encode,encodeValuesOnly:!1,filter:void 0,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`symbol`||typeof e==`bigint`},m={},h=function e(t,i,a,o,c,u,d,h,g,_,v,y,b,x,S,C,w,T){for(var E=t,D=T,O=0,k=!1;(D=D.get(m))!==void 0&&!k;){var A=D.get(t);if(O+=1,A!==void 0){if(A===O)throw RangeError(`Cyclic object value`);k=!0}D.get(m)===void 0&&(O=0)}if(typeof _==`function`?E=_(i,E):E instanceof Date?E=b(E):a===`comma`&&s(E)&&(E=r.maybeMap(E,function(e){return e instanceof Date?b(e):e})),E===null){if(u)return g&&!C?g(i,f.encoder,w,`key`,x):i;E=``}if(p(E)||r.isBuffer(E)){if(g){var j=C?i:g(i,f.encoder,w,`key`,x);return[S(j)+`=`+S(g(E,f.encoder,w,`value`,x))]}return[S(i)+`=`+S(String(E))]}var M=[];if(E===void 0)return M;var N;if(a===`comma`&&s(E))C&&g&&(E=r.maybeMap(E,g)),N=[{value:E.length>0?E.join(`,`)||null:void 0}];else if(s(_))N=_;else{var P=Object.keys(E);N=v?P.sort(v):P}var F=h?String(i).replace(/\./g,`%2E`):String(i),I=o&&s(E)&&E.length===1?F+`[]`:F;if(c&&s(E)&&E.length===0)return I+`[]`;for(var L=0;L<N.length;++L){var R=N[L],z=typeof R==`object`&&R&&R.value!==void 0?R.value:E[R];if(!(d&&z===null)){var B=y&&h?String(R).replace(/\./g,`%2E`):String(R),ee=s(E)?typeof a==`function`?a(I,B):I:I+(y?`.`+B:`[`+B+`]`);T.set(t,O);var V=n();V.set(m,T),l(M,e(z,ee,a,o,c,u,d,h,a===`comma`&&C&&s(E)?null:g,_,v,y,b,x,S,C,w,V))}}return M},g=function(e){if(!e)return f;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.encodeDotInKeys!==void 0&&typeof e.encodeDotInKeys!=`boolean`)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&e.encoder!==void 0&&typeof e.encoder!=`function`)throw TypeError(`Encoder has to be a function.`);var t=e.charset||f.charset;if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);var n=i.default;if(e.format!==void 0){if(!a.call(i.formatters,e.format))throw TypeError(`Unknown format option provided.`);n=e.format}var r=i.formatters[n],c=f.filter;(typeof e.filter==`function`||s(e.filter))&&(c=e.filter);var l;if(l=e.arrayFormat in o?e.arrayFormat:`indices`in e?e.indices?`indices`:`repeat`:f.arrayFormat,`commaRoundTrip`in e&&typeof e.commaRoundTrip!=`boolean`)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var u=e.allowDots===void 0?e.encodeDotInKeys===!0?!0:f.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix==`boolean`?e.addQueryPrefix:f.addQueryPrefix,allowDots:u,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:l,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:f.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:e.delimiter===void 0?f.delimiter:e.delimiter,encode:typeof e.encode==`boolean`?e.encode:f.encode,encodeDotInKeys:typeof e.encodeDotInKeys==`boolean`?e.encodeDotInKeys:f.encodeDotInKeys,encoder:typeof e.encoder==`function`?e.encoder:f.encoder,encodeValuesOnly:typeof e.encodeValuesOnly==`boolean`?e.encodeValuesOnly:f.encodeValuesOnly,filter:c,format:n,formatter:r,serializeDate:typeof e.serializeDate==`function`?e.serializeDate:f.serializeDate,skipNulls:typeof e.skipNulls==`boolean`?e.skipNulls:f.skipNulls,sort:typeof e.sort==`function`?e.sort:null,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:f.strictNullHandling}};t.exports=function(e,t){var r=e,i=g(t),a,c;typeof i.filter==`function`?(c=i.filter,r=c(``,r)):s(i.filter)&&(c=i.filter,a=c);var u=[];if(typeof r!=`object`||!r)return``;var d=o[i.arrayFormat],f=d===`comma`&&i.commaRoundTrip;a||=Object.keys(r),i.sort&&a.sort(i.sort);for(var p=n(),m=0;m<a.length;++m){var _=a[m],v=r[_];i.skipNulls&&v===null||l(u,h(v,_,d,f,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,p))}var y=u.join(i.delimiter),b=i.addQueryPrefix===!0?`?`:``;return i.charsetSentinel&&(i.charset===`iso-8859-1`?b+=`utf8=%26%2310003%3B&`:b+=`utf8=%E2%9C%93&`),y.length>0?b+y:``}}),Ee=A.__commonJSMin((exports,t)=>{var n=we(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:`utf-8`,charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:`&`,depth:5,duplicates:`combine`,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,n){if(e&&typeof e==`string`&&t.comma&&e.indexOf(`,`)>-1)return e.split(`,`);if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw RangeError(`Array limit exceeded. Only `+t.arrayLimit+` element`+(t.arrayLimit===1?``:`s`)+` allowed in an array.`);return e},c=`utf8=%26%2310003%3B`,l=`utf8=%E2%9C%93`,u=function(e,t){var u={__proto__:null},d=t.ignoreQueryPrefix?e.replace(/^\?/,``):e;d=d.replace(/%5B/gi,`[`).replace(/%5D/gi,`]`);var f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=d.split(t.delimiter,t.throwOnLimitExceeded?f+1:f);if(t.throwOnLimitExceeded&&p.length>f)throw RangeError(`Parameter limit exceeded. Only `+f+` parameter`+(f===1?``:`s`)+` allowed.`);var m=-1,h,g=t.charset;if(t.charsetSentinel)for(h=0;h<p.length;++h)p[h].indexOf(`utf8=`)===0&&(p[h]===l?g=`utf-8`:p[h]===c&&(g=`iso-8859-1`),m=h,h=p.length);for(h=0;h<p.length;++h)if(h!==m){var _=p[h],v=_.indexOf(`]=`),y=v===-1?_.indexOf(`=`):v+1,b,x;y===-1?(b=t.decoder(_,a.decoder,g,`key`),x=t.strictNullHandling?null:``):(b=t.decoder(_.slice(0,y),a.decoder,g,`key`),x=n.maybeMap(s(_.slice(y+1),t,i(u[b])?u[b].length:0),function(e){return t.decoder(e,a.decoder,g,`value`)})),x&&t.interpretNumericEntities&&g===`iso-8859-1`&&(x=o(String(x))),_.indexOf(`[]=`)>-1&&(x=i(x)?[x]:x);var S=r.call(u,b);S&&t.duplicates===`combine`?u[b]=n.combine(u[b],x):(!S||t.duplicates===`last`)&&(u[b]=x)}return u},d=function(e,t,r,i){var a=0;if(e.length>0&&e[e.length-1]===`[]`){var o=e.slice(0,-1).join(``);a=Array.isArray(t)&&t[o]?t[o].length:0}for(var c=i?t:s(t,r,a),l=e.length-1;l>=0;--l){var u,d=e[l];if(d===`[]`&&r.parseArrays)u=r.allowEmptyArrays&&(c===``||r.strictNullHandling&&c===null)?[]:n.combine([],c);else{u=r.plainObjects?{__proto__:null}:{};var f=d.charAt(0)===`[`&&d.charAt(d.length-1)===`]`?d.slice(1,-1):d,p=r.decodeDotInKeys?f.replace(/%2E/g,`.`):f,m=parseInt(p,10);!r.parseArrays&&p===``?u={0:c}:!isNaN(m)&&d!==p&&String(m)===p&&m>=0&&r.parseArrays&&m<=r.arrayLimit?(u=[],u[m]=c):p!==`__proto__`&&(u[p]=c)}c=u}return c},f=function(e,t,n,i){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,`[$1]`):e,o=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,c=n.depth>0&&o.exec(a),l=c?a.slice(0,c.index):a,u=[];if(l){if(!n.plainObjects&&r.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var f=0;n.depth>0&&(c=s.exec(a))!==null&&f<n.depth;){if(f+=1,!n.plainObjects&&r.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(c[1])}if(c){if(n.strictDepth===!0)throw RangeError(`Input depth exceeded depth option of `+n.depth+` and strictDepth is true`);u.push(`[`+a.slice(c.index)+`]`)}return d(u,t,n,i)}},p=function(e){if(!e)return a;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.decodeDotInKeys!==void 0&&typeof e.decodeDotInKeys!=`boolean`)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!=`function`)throw TypeError(`Decoder has to be a function.`);if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);if(e.throwOnLimitExceeded!==void 0&&typeof e.throwOnLimitExceeded!=`boolean`)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=e.charset===void 0?a.charset:e.charset,r=e.duplicates===void 0?a.duplicates:e.duplicates;if(r!==`combine`&&r!==`first`&&r!==`last`)throw TypeError(`The duplicates option must be either combine, first, or last`);var i=e.allowDots===void 0?e.decodeDotInKeys===!0?!0:a.allowDots:!!e.allowDots;return{allowDots:i,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes==`boolean`?e.allowPrototypes:a.allowPrototypes,allowSparse:typeof e.allowSparse==`boolean`?e.allowSparse:a.allowSparse,arrayLimit:typeof e.arrayLimit==`number`?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:a.charsetSentinel,comma:typeof e.comma==`boolean`?e.comma:a.comma,decodeDotInKeys:typeof e.decodeDotInKeys==`boolean`?e.decodeDotInKeys:a.decodeDotInKeys,decoder:typeof e.decoder==`function`?e.decoder:a.decoder,delimiter:typeof e.delimiter==`string`||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:typeof e.depth==`number`||e.depth===!1?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities==`boolean`?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:typeof e.parameterLimit==`number`?e.parameterLimit:a.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects==`boolean`?e.plainObjects:a.plainObjects,strictDepth:typeof e.strictDepth==`boolean`?!!e.strictDepth:a.strictDepth,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded==`boolean`?e.throwOnLimitExceeded:!1}};t.exports=function(e,t){var r=p(t);if(e===``||e==null)return r.plainObjects?{__proto__:null}:{};for(var i=typeof e==`string`?u(e,r):e,a=r.plainObjects?{__proto__:null}:{},o=Object.keys(i),s=0;s<o.length;++s){var c=o[s],l=f(c,i[c],r,typeof e==`string`);a=n.merge(a,l,r)}return r.allowSparse===!0?a:n.compact(a)}}),De=A.__commonJSMin((exports,t)=>{var n=Te(),r=Ee(),i=Ce();t.exports={formats:i,parse:r,stringify:n}});const Oe=(e,t)=>e?!t||t.length===0?e:t.reduce((e,t)=>(delete e[t],e),{...e}):{};let Y=function(e){return e.JSON=`application/json`,e.FORM_URLENCODED=`application/x-www-form-urlencoded`,e.FORM_DATA=`multipart/form-data`,e.TEXT=`text/plain`,e.HTML=`text/html`,e.XML=`text/xml`,e.CSV=`text/csv`,e.STREAM=`application/octet-stream`,e}({}),ke=function(e){return e[e.TIME_OUT=408]=`TIME_OUT`,e[e.ABORTED=499]=`ABORTED`,e[e.NETWORK_ERROR=599]=`NETWORK_ERROR`,e[e.BODY_NULL=502]=`BODY_NULL`,e[e.UNKNOWN=601]=`UNKNOWN`,e}({}),Ae=function(e){return e.GET=`GET`,e.POST=`POST`,e.PUT=`PUT`,e.DELETE=`DELETE`,e.PATCH=`PATCH`,e.HEAD=`HEAD`,e.OPTIONS=`OPTIONS`,e}({});var je=A.__toESM(De()),X=(t=new WeakMap,n=new WeakMap,r=new WeakMap,i=new WeakMap,a=new WeakMap,o=new WeakMap,class extends Error{constructor({message:s,status:c,statusText:l,response:u,config:d,name:f}){super(s),e.classPrivateFieldInitSpec(this,t,void 0),e.classPrivateFieldInitSpec(this,n,void 0),e.classPrivateFieldInitSpec(this,r,void 0),e.classPrivateFieldInitSpec(this,i,void 0),e.classPrivateFieldInitSpec(this,a,void 0),e.classPrivateFieldInitSpec(this,o,void 0),e.classPrivateFieldSet2(t,this,s),e.classPrivateFieldSet2(r,this,c),e.classPrivateFieldSet2(i,this,l),e.classPrivateFieldSet2(a,this,u),e.classPrivateFieldSet2(o,this,d),e.classPrivateFieldSet2(n,this,f??s)}get message(){return e.classPrivateFieldGet2(t,this)}get status(){return e.classPrivateFieldGet2(r,this)}get statusText(){return e.classPrivateFieldGet2(i,this)}get response(){return e.classPrivateFieldGet2(a,this)}get config(){return e.classPrivateFieldGet2(o,this)}get name(){return e.classPrivateFieldGet2(n,this)}});const Me=e=>{let t=new Map;e.forEach(e=>{t.set(e.name,e)});let n=Array.from(t.values()).sort((e,t)=>(e.priority??0)-(t.priority??0)),r=[],i=[],a=[],o=[],s=[],c=[];return n.forEach(e=>{e.beforeRequest&&r.push(e.beforeRequest),e.afterResponse&&i.push(e.afterResponse),e.onError&&a.push(e.onError),e.onFinally&&o.push(e.onFinally),e.transformStreamChunk&&s.push(e.transformStreamChunk),e.beforeStream&&c.push(e.beforeStream)}),{beforeRequestPlugins:r,afterResponsePlugins:i,errorPlugins:a,finallyPlugins:o,beforeStreamPlugins:c,transformStreamChunkPlugins:s}},Ne=(e,t,n=`repeat`)=>{if(t){let r=je.default.stringify(t,{arrayFormat:n});r&&(e=e.includes(`?`)?`${e}&${r}`:`${e}?${r}`)}return e},Pe=(e={},t={})=>{let n=e instanceof Headers?e:new Headers(e),r=e=>{e instanceof Headers||(e=new Headers(e)),e.forEach((e,t)=>{n.set(t,e)})};return r(t),n},Fe=[`PATCH`,`POST`,`PUT`],Ie=[`GET`,`HEAD`,`OPTIONS`,`DELETE`],Le=(e,t,n,r=`repeat`)=>{if(!e)return null;if(e instanceof FormData)return e;let i=null;if(Fe.includes(t.toUpperCase())){let t=new Headers(n||{}),a=t.get(`Content-Type`)||Y.JSON;if(a.includes(Y.JSON))i=JSON.stringify(e);else if(a.includes(Y.FORM_URLENCODED))i=je.default.stringify(e,{arrayFormat:r});else if(a.includes(Y.FORM_DATA)){let t=new FormData;if(!(e instanceof FormData)&&typeof e==`object`){let n=e;Object.keys(n).forEach(e=>{n.prototype.hasOwnProperty.call(e)&&t.append(e,n[e])}),i=t}}}return Ie.includes(t.toUpperCase())&&(i=null),i};var Re=(s=new WeakMap,c=new WeakMap,l=new WeakMap,u=new WeakMap,d=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,h=new WeakMap,g=new WeakSet,class t{constructor(t){e.classPrivateMethodInitSpec(this,g),e.classPrivateFieldInitSpec(this,s,void 0),e.classPrivateFieldInitSpec(this,c,void 0),e.classPrivateFieldInitSpec(this,l,void 0),e.classPrivateFieldInitSpec(this,u,void 0),e.classPrivateFieldInitSpec(this,d,!1),e.classPrivateFieldInitSpec(this,f,null),e.classPrivateFieldInitSpec(this,p,[]),e.classPrivateFieldInitSpec(this,m,`json`),e.classPrivateFieldInitSpec(this,h,void 0),e.classPrivateFieldSet2(h,this,t);let{plugins:n=[],controller:r,url:i,baseURL:a=``,params:o,data:_,qsArrayFormat:v=`repeat`,withCredentials:y,extra:b,method:x=`GET`,headers:S}=t;e.classPrivateFieldSet2(c,this,r??new AbortController),e.classPrivateFieldSet2(s,this,Me(n)),e.classPrivateFieldSet2(l,this,{url:i,baseURL:a,params:o,data:_,withCredentials:y,extra:b,method:x,headers:S,qsArrayFormat:v}),e.classPrivateFieldSet2(u,this,e.assertClassBrand(g,this,ze).call(this,t))}json(){return e.classPrivateFieldSet2(f,this,Q.call(e.assertClassBrand(g,this)).then(e=>e.json()).then(t=>(e.classPrivateFieldSet2(m,this,`json`),e.assertClassBrand(g,this,Z).call(this,t))).catch(t=>(e.classPrivateFieldSet2(m,this,`json`),e.assertClassBrand(g,this,Ve).call(this,t)))),e.classPrivateFieldGet2(f,this)}lazyFinally(t){return e.classPrivateFieldGet2(f,this)?e.classPrivateFieldGet2(f,this).finally(()=>{for(let t of e.classPrivateFieldGet2(p,this))t();e.classPrivateFieldSet2(p,this,[])}):(t&&e.classPrivateFieldGet2(p,this).push(t),null)}then(t,n){return He.call(e.assertClassBrand(g,this)).then(async n=>t?.call(this,await e.assertClassBrand(g,this,Z).call(this,n)),async t=>n?.call(this,await e.assertClassBrand(g,this,Ve).call(this,t)))}catch(t){return He.call(e.assertClassBrand(g,this)).catch(t)}finally(t){return He.call(e.assertClassBrand(g,this)).finally(t)}abort(){e.classPrivateFieldGet2(c,this).abort()}blob(){return e.classPrivateFieldSet2(f,this,Q.call(e.assertClassBrand(g,this)).then(e=>e.blob()).then(t=>(e.classPrivateFieldSet2(m,this,`blob`),e.assertClassBrand(g,this,Z).call(this,t)))),e.classPrivateFieldGet2(f,this)}text(){return e.classPrivateFieldSet2(f,this,Q.call(e.assertClassBrand(g,this)).then(e=>e.text()).then(t=>(e.classPrivateFieldSet2(m,this,`text`),e.assertClassBrand(g,this,Z).call(this,t)))),e.classPrivateFieldGet2(f,this).finally(this.lazyFinally.bind(this)),e.classPrivateFieldGet2(f,this)}arrayBuffer(){return e.classPrivateFieldSet2(f,this,Q.call(e.assertClassBrand(g,this)).then(e=>e.arrayBuffer()).then(t=>(e.classPrivateFieldSet2(m,this,`arrayBuffer`),e.assertClassBrand(g,this,Z).call(this,t)))),e.classPrivateFieldGet2(f,this).finally(this.lazyFinally.bind(this)),e.classPrivateFieldGet2(f,this)}formData(){return e.classPrivateFieldSet2(f,this,Q.call(e.assertClassBrand(g,this)).then(e=>e.formData()).then(t=>(e.classPrivateFieldSet2(m,this,`formData`),e.assertClassBrand(g,this,Z).call(this,t)))),e.classPrivateFieldGet2(f,this).finally(this.lazyFinally.bind(this)),e.classPrivateFieldGet2(f,this)}bytes(){return e.classPrivateFieldSet2(f,this,Q.call(e.assertClassBrand(g,this)).then(e=>e.bytes()).then(t=>(e.classPrivateFieldSet2(m,this,`bytes`),e.assertClassBrand(g,this,Z).call(this,t)))),e.classPrivateFieldGet2(f,this).finally(this.lazyFinally.bind(this)),e.classPrivateFieldGet2(f,this)}async*stream(){var t;let n=(t=await Q.call(e.assertClassBrand(g,this)))?.body;if(!n)throw Error(`Response body is null`);for(let t of e.classPrivateFieldGet2(s,this).beforeStreamPlugins)n=await t(n,e.classPrivateFieldGet2(l,this));let r=n.getReader();if(!r)throw Error(`Response body reader is null`);try{for(;;){let{done:t,value:n}=await r.read();if(t)break;let i={source:n,result:n,error:null};try{for(let t of e.classPrivateFieldGet2(s,this).transformStreamChunkPlugins)i=await t(i,e.classPrivateFieldGet2(l,this));if(i.result&&(Ue(i.result)||We(i.result)))for await(let e of i.result){let t={source:i.source,result:e,error:null};yield t}else yield i}catch(e){i.error=e,i.result=null,yield i}}}finally{r.releaseLock()}}retry(){let{controller:n,...r}=e.classPrivateFieldGet2(h,this);return new t(r)}get response(){return Q.call(e.assertClassBrand(g,this))}});function ze({timeout:t}){return new Promise(async(n,r)=>{let i=e.classPrivateFieldGet2(l,this),{beforeRequestPlugins:a}=e.classPrivateFieldGet2(s,this);for(let e of a)i=await e(i);let o=Ne(i.baseURL+i.url,i.params,i.qsArrayFormat),u=Le(i.data,i.method,i.headers,i.qsArrayFormat),f=Oe(i??{},[`baseURL`,`data`,`extra`,`headers`,`method`,`params`,`url`,`withCredentials`]),p={...f,method:i.method,headers:i.headers,signal:e.classPrivateFieldGet2(c,this).signal,credentials:i.withCredentials?`include`:`omit`,body:u},m=fetch(o,p),h=[m],_=null;if(t){let n=new Promise(n=>{_=setTimeout(()=>{var t;e.classPrivateFieldSet2(d,this,!0),(t=e.classPrivateFieldGet2(c,this))?.abort()},t)});h.push(n)}try{let t=await Promise.race(h);return t?(t.ok&&n(t),r(new X({message:`Fail Request`,status:t.status,statusText:t.statusText,config:e.classPrivateFieldGet2(l,this),name:`Fail Request`}))):r(new X({message:`NETWORK_ERROR`,status:ke.NETWORK_ERROR,statusText:`Network Error`,config:e.classPrivateFieldGet2(l,this),name:`Network Error`}))}catch(t){r(await e.assertClassBrand(g,this,Ve).call(this,t))}finally{_&&clearTimeout(_)}})}async function Be(t){return t instanceof X?t:t instanceof TypeError?t.name===`AbortError`?e.classPrivateFieldGet2(d,this)?new X({message:`Request timeout`,status:ke.TIME_OUT,statusText:`Request timeout`,config:e.classPrivateFieldGet2(l,this),name:`Request timeout`,response:await Q.call(e.assertClassBrand(g,this))}):new X({message:`Request aborted`,status:ke.ABORTED,statusText:`Request aborted`,config:e.classPrivateFieldGet2(l,this),name:`Request aborted`,response:await Q.call(e.assertClassBrand(g,this))}):new X({message:t.message,status:ke.NETWORK_ERROR,statusText:`Unknown Request Error`,config:e.classPrivateFieldGet2(l,this),name:t.name,response:await Q.call(e.assertClassBrand(g,this))}):new X({message:t?.message??`Unknown Request Error`,status:ke.UNKNOWN,statusText:`Unknown Request Error`,config:e.classPrivateFieldGet2(l,this),name:`Unknown Request Error`,response:await Q.call(e.assertClassBrand(g,this))})}async function Ve(t){let n=await e.assertClassBrand(g,this,Be).call(this,t);for(let t of e.classPrivateFieldGet2(s,this).errorPlugins)n=await t(n,e.classPrivateFieldGet2(l,this));return n}function He(){return e.classPrivateFieldGet2(f,this)?e.classPrivateFieldGet2(f,this):Q.call(e.assertClassBrand(g,this))}async function Z(t){let n=e.classPrivateFieldGet2(s,this).afterResponsePlugins,r={config:e.classPrivateFieldGet2(l,this),response:await Q.call(e.assertClassBrand(g,this)).then(e=>e.clone()),responseType:e.classPrivateFieldGet2(m,this),controller:e.classPrivateFieldGet2(c,this),result:t};for(let t of n)r=await t(r,e.classPrivateFieldGet2(l,this));return r.result}function Q(){return e.classPrivateFieldGet2(u,this).then(e=>e.clone())}const Ue=e=>e[Symbol.toStringTag]===`Generator`&&typeof e.next==`function`&&typeof e.return==`function`&&typeof e.throw==`function`&&typeof e[Symbol.iterator]==`function`,We=e=>e[Symbol.toStringTag]===`AsyncGenerator`&&typeof e.next==`function`&&typeof e.return==`function`&&typeof e.throw==`function`&&typeof e[Symbol.asyncIterator]==`function`,Ge=e=>new Re(e);var Ke=(_=new WeakMap,v=new WeakMap,y=new WeakMap,b=new WeakMap,x=new WeakMap,S=new WeakMap,C=new WeakSet,class{constructor({timeout:t=0,baseURL:n=``,headers:r={},plugins:i=[],withCredentials:a=!1}){e.classPrivateMethodInitSpec(this,C),e.classPrivateFieldInitSpec(this,_,void 0),e.classPrivateFieldInitSpec(this,v,void 0),e.classPrivateFieldInitSpec(this,y,void 0),e.classPrivateFieldInitSpec(this,b,[]),e.classPrivateFieldInitSpec(this,x,[]),e.classPrivateFieldInitSpec(this,S,void 0),e.classPrivateFieldSet2(_,this,t),e.classPrivateFieldSet2(v,this,n),e.classPrivateFieldSet2(y,this,r),e.classPrivateFieldSet2(x,this,i),e.classPrivateFieldSet2(S,this,a),this.request=this.request.bind(this),this.get=this.get.bind(this),this.head=this.head.bind(this),this.options=this.options.bind(this),this.delete=this.delete.bind(this),this.post=this.post.bind(this),this.put=this.put.bind(this),this.patch=this.patch.bind(this),this.abortAll=this.abortAll.bind(this),this.use=this.use.bind(this)}use(t){return e.classPrivateFieldGet2(x,this).push(t),this}request(t,{timeout:n,headers:r,method:i=`GET`,params:a={},data:o,qsArrayFormat:s,withCredentials:c,extra:l}={}){let u=new AbortController;e.classPrivateFieldGet2(b,this).push(u);let d=Ge({url:t,baseURL:e.classPrivateFieldGet2(v,this),timeout:n??e.classPrivateFieldGet2(_,this),plugins:e.classPrivateFieldGet2(x,this),headers:Pe(e.classPrivateFieldGet2(y,this),r),controller:u,method:i,params:a,data:o,qsArrayFormat:s,withCredentials:c??e.classPrivateFieldGet2(S,this),extra:l});return d.lazyFinally(()=>{e.classPrivateFieldSet2(b,this,e.classPrivateFieldGet2(b,this).filter(e=>e!==u))}),d}get(t,n={},r){return e.assertClassBrand(C,this,qe).call(this,t,n,{...r,method:`GET`})}head(t,n={},r){return e.assertClassBrand(C,this,qe).call(this,t,n,{...r,method:`HEAD`})}options(t,n={},r){return e.assertClassBrand(C,this,qe).call(this,t,n,{...r,method:`OPTIONS`})}delete(e,t){return this.request(e,{...t,method:`DELETE`})}post(t,n,r){return e.assertClassBrand(C,this,Je).call(this,t,n,{...r,method:`POST`})}upload(t,n,r){let i=new FormData;for(let e in n)if(Object.prototype.hasOwnProperty.call(n,e)){let t=n[e];t instanceof File||t instanceof Blob?i.append(e,t):i.append(e,String(t))}return e.assertClassBrand(C,this,Je).call(this,t,i,{...r,method:`POST`})}put(t,n,r){return e.assertClassBrand(C,this,Je).call(this,t,n,{...r,method:`PUT`})}patch(t,n,r){return e.assertClassBrand(C,this,Je).call(this,t,n,{...r,method:`PATCH`})}abortAll(){e.classPrivateFieldGet2(b,this).forEach(e=>e.abort()),e.classPrivateFieldSet2(b,this,[])}});function qe(e,t={},n={}){return this.request(e,{...n,params:t})}function Je(e,t={},n={}){return this.request(e,{...n,data:t})}const Ye=(e,t={})=>Ge({url:e,baseURL:``,...t}),Xe=(e,t,n={})=>Ye(e,{...n,params:t}),Ze=(e,t=null,n={})=>Ye(e,{...n,data:t}),Qe=Ye,$e=(e,t={},n)=>Xe(e,t,{...n,method:`GET`}),et=(e,t={},n)=>Xe(e,t,{...n,method:`HEAD`}),tt=(e,t={},n)=>Xe(e,t,{...n,method:`OPTIONS`}),nt=(e,t)=>Ye(e,{...t,method:`DELETE`}),rt=(e,t,n)=>Ze(e,t,{...n,method:`POST`}),it=(e,t,n)=>{let r=new FormData;for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)){let n=t[e];n instanceof File||n instanceof Blob?r.append(e,n):r.append(e,String(n))}return Ze(e,r,{...n,method:`POST`})},at=(e,t,n)=>Ze(e,t,{...n,method:`PUT`}),ot=(e,t,n)=>Ze(e,t,{...n,method:`PATCH`}),$=Ye;$.create=e=>{let t=new Ke(e),n=t.request.bind(void 0);return Object.assign(n,Ke.prototype,t),n},$.get=$e,$.head=et,$.options=tt,$.delete=nt,$.post=rt,$.put=at,$.patch=ot,$.upload=it;var st=$,ct=(w=new WeakMap,T=new WeakMap,E=new WeakMap,D=new WeakMap,O=new WeakMap,k=new WeakMap,class extends Error{constructor({message:t,status:n,statusText:r,response:i,config:a,name:o}){super(t),e.classPrivateFieldInitSpec(this,w,void 0),e.classPrivateFieldInitSpec(this,T,void 0),e.classPrivateFieldInitSpec(this,E,void 0),e.classPrivateFieldInitSpec(this,D,void 0),e.classPrivateFieldInitSpec(this,O,void 0),e.classPrivateFieldInitSpec(this,k,void 0),e.classPrivateFieldSet2(w,this,t),e.classPrivateFieldSet2(E,this,n),e.classPrivateFieldSet2(D,this,r),e.classPrivateFieldSet2(O,this,i),e.classPrivateFieldSet2(k,this,a),e.classPrivateFieldSet2(T,this,o??t)}get message(){return e.classPrivateFieldGet2(w,this)}get status(){return e.classPrivateFieldGet2(E,this)}get statusText(){return e.classPrivateFieldGet2(D,this)}get response(){return e.classPrivateFieldGet2(O,this)}get config(){return e.classPrivateFieldGet2(k,this)}get name(){return e.classPrivateFieldGet2(T,this)}}),lt=st;exports.ContentType=Y,exports.Method=Ae,exports.ResponseError=ct,exports.StatusCode=ke,exports.default=lt,exports.del=nt,exports.get=$e,exports.head=et,exports.options=tt,exports.patch=ot,exports.post=rt,exports.put=at,exports.request=Qe,exports.upload=it;
|
|
4
|
+
`+t.prev}function Te(e,t){var n=ie(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=W(e,i)?t(e[i],e):``}var a=typeof A==`function`?A(e):[],o;if(N){o={};for(var s=0;s<a.length;s++)o[`$`+a[s]]=a[s]}for(var c in e){if(!W(e,c)||n&&String(Number(c))===c&&c<e.length||N&&o[`$`+c]instanceof Symbol)continue;w.call(/[^\w$]/,c)?r.push(t(c,e)+`: `+t(e[c],e)):r.push(c+`: `+t(e[c],e))}if(typeof A==`function`)for(var l=0;l<a.length;l++)ee.call(e,a[l])&&r.push(`[`+t(a[l])+`]: `+t(e[a[l]],e));return r}}),P=A.__commonJSMin((exports,t)=>{var n=N(),r=j(),i=function(e,t,n){for(var r=e,i;(i=r.next)!=null;r=i)if(i.key===t)return r.next=i.next,n||(i.next=e.next,e.next=i),i},a=function(e,t){if(e){var n=i(e,t);return n&&n.value}},o=function(e,t,n){var r=i(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},s=function(e,t){return e?!!i(e,t):!1},c=function(e,t){if(e)return i(e,t,!0)};t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r(`Side channel does not contain `+n(e))},delete:function(t){var n=e&&e.next,r=c(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return a(e,t)},has:function(t){return s(e,t)},set:function(t,n){e||={next:void 0},o(e,t,n)}};return t}}),ee=A.__commonJSMin((exports,t)=>{t.exports=Object}),F=A.__commonJSMin((exports,t)=>{t.exports=Error}),I=A.__commonJSMin((exports,t)=>{t.exports=EvalError}),L=A.__commonJSMin((exports,t)=>{t.exports=RangeError}),R=A.__commonJSMin((exports,t)=>{t.exports=ReferenceError}),z=A.__commonJSMin((exports,t)=>{t.exports=SyntaxError}),te=A.__commonJSMin((exports,t)=>{t.exports=URIError}),B=A.__commonJSMin((exports,t)=>{t.exports=Math.abs}),ne=A.__commonJSMin((exports,t)=>{t.exports=Math.floor}),re=A.__commonJSMin((exports,t)=>{t.exports=Math.max}),V=A.__commonJSMin((exports,t)=>{t.exports=Math.min}),ie=A.__commonJSMin((exports,t)=>{t.exports=Math.pow}),ae=A.__commonJSMin((exports,t)=>{t.exports=Math.round}),oe=A.__commonJSMin((exports,t)=>{t.exports=Number.isNaN||function(e){return e!==e}}),se=A.__commonJSMin((exports,t)=>{var n=oe();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}}),ce=A.__commonJSMin((exports,t)=>{t.exports=Object.getOwnPropertyDescriptor}),le=A.__commonJSMin((exports,t)=>{var n=ce();if(n)try{n([],`length`)}catch{n=null}t.exports=n}),ue=A.__commonJSMin((exports,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n}),H=A.__commonJSMin((exports,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}}),de=A.__commonJSMin((exports,t)=>{var n=typeof Symbol<`u`&&Symbol,r=H();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}}),U=A.__commonJSMin((exports,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null}),W=A.__commonJSMin((exports,t)=>{var n=ee();t.exports=n.getPrototypeOf||null}),G=A.__commonJSMin((exports,t)=>{var n=`Function.prototype.bind called on incompatible `,r=Object.prototype.toString,i=Math.max,a=`[object Function]`,o=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},s=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},c=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||r.apply(t)!==a)throw TypeError(n+t);for(var l=s(arguments,1),u,d=function(){if(this instanceof u){var n=t.apply(this,o(l,arguments));return Object(n)===n?n:this}return t.apply(e,o(l,arguments))},f=i(0,t.length-l.length),p=[],m=0;m<f;m++)p[m]=`$`+m;if(u=Function(`binder`,`return function (`+c(p,`,`)+`){ return binder.apply(this,arguments); }`)(d),t.prototype){var h=function(){};h.prototype=t.prototype,u.prototype=new h,h.prototype=null}return u}}),fe=A.__commonJSMin((exports,t)=>{var n=G();t.exports=Function.prototype.bind||n}),pe=A.__commonJSMin((exports,t)=>{t.exports=Function.prototype.call}),me=A.__commonJSMin((exports,t)=>{t.exports=Function.prototype.apply}),he=A.__commonJSMin((exports,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply}),ge=A.__commonJSMin((exports,t)=>{var n=fe(),r=me(),i=pe(),a=he();t.exports=a||n.call(i,r)}),_e=A.__commonJSMin((exports,t)=>{var n=fe(),r=j(),i=pe(),a=ge();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}}),K=A.__commonJSMin((exports,t)=>{var n=_e(),r=le(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`?function(e){return s(e==null?e:o(e))}:!1}),ve=A.__commonJSMin((exports,t)=>{var n=U(),r=W(),i=K();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null}),ye=A.__commonJSMin((exports,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty,i=fe();t.exports=i.call(n,r)}),q=A.__commonJSMin((exports,t)=>{var n,r=ee(),i=F(),a=I(),o=L(),s=R(),c=z(),l=j(),u=te(),d=B(),f=ne(),p=re(),m=V(),h=ie(),g=ae(),_=se(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=le(),x=ue(),S=function(){throw new l},C=b?function(){try{return arguments.callee,S}catch{try{return b(arguments,`callee`).get}catch{return S}}}():S,w=de()(),T=ve(),E=W(),D=U(),O=me(),k=pe(),A={},M=typeof Uint8Array>`u`||!T?n:T(Uint8Array),N={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&T?T(T([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!w||!T?n:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!w||!T?n:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&T?T(``[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":C,"%TypedArray%":M,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":E,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(T)try{null.error}catch(e){var P=T(T(e));N[`%Error.prototype%`]=P}var oe=function e(t){var n;if(t===`%AsyncFunction%`)n=y(`async function () {}`);else if(t===`%GeneratorFunction%`)n=y(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=y(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&T&&(n=T(i.prototype))}return N[t]=n,n},ce={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},H=fe(),G=ye(),he=H.call(k,Array.prototype.concat),ge=H.call(O,Array.prototype.splice),_e=H.call(k,String.prototype.replace),K=H.call(k,String.prototype.slice),q=H.call(k,RegExp.prototype.exec),J=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,be=/\\(\\)?/g,xe=function(e){var t=K(e,0,1),n=K(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return _e(e,J,function(e,t,n,i){r[r.length]=n?_e(i,be,`$1`):t||e}),r},Se=function(e,t){var n=e,r;if(G(ce,n)&&(r=ce[n],n=`%`+r[0]+`%`),G(N,n)){var i=N[n];if(i===A&&(i=oe(n)),i===void 0&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(q(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=xe(e),r=n.length>0?n[0]:``,i=Se(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],ge(n,he([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=K(p,0,1),h=K(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,G(N,a))o=N[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(b&&d+1>=n.length){var g=b(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=G(o,p),o=o[p];f&&!s&&(N[a]=o)}}return o}}),J=A.__commonJSMin((exports,t)=>{var n=q(),r=_e(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}}),be=A.__commonJSMin((exports,t)=>{var n=q(),r=J(),i=N(),a=j(),o=n(`%Map%`,!0),s=r(`Map.prototype.get`,!0),c=r(`Map.prototype.set`,!0),l=r(`Map.prototype.has`,!0),u=r(`Map.prototype.delete`,!0),d=r(`Map.prototype.size`,!0);t.exports=!!o&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a(`Side channel does not contain `+i(e))},delete:function(t){if(e){var n=u(e,t);return d(e)===0&&(e=void 0),n}return!1},get:function(t){if(e)return s(e,t)},has:function(t){return e?l(e,t):!1},set:function(t,n){e||=new o,c(e,t,n)}};return t}}),xe=A.__commonJSMin((exports,t)=>{var n=q(),r=J(),i=N(),a=be(),o=j(),s=n(`%WeakMap%`,!0),c=r(`WeakMap.prototype.get`,!0),l=r(`WeakMap.prototype.set`,!0),u=r(`WeakMap.prototype.has`,!0),d=r(`WeakMap.prototype.delete`,!0);t.exports=s?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new o(`Side channel does not contain `+i(e))},delete:function(n){if(s&&n&&(typeof n==`object`||typeof n==`function`)){if(e)return d(e,n)}else if(a&&t)return t.delete(n);return!1},get:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?c(e,n):t&&t.get(n)},has:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?u(e,n):!!t&&t.has(n)},set:function(n,r){s&&n&&(typeof n==`object`||typeof n==`function`)?(e||=new s,l(e,n,r)):a&&(t||=a(),t.set(n,r))}};return n}:a}),Se=A.__commonJSMin((exports,t)=>{var n=j(),r=N(),i=P(),a=be(),o=xe(),s=o||a||i;t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n(`Side channel does not contain `+r(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||=s(),e.set(t,n)}};return t}}),Ce=A.__commonJSMin((exports,t)=>{var n=String.prototype.replace,r=/%20/g,i={RFC1738:`RFC1738`,RFC3986:`RFC3986`};t.exports={default:i.RFC3986,formatters:{RFC1738:function(e){return n.call(e,r,`+`)},RFC3986:function(e){return String(e)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986}}),we=A.__commonJSMin((exports,t)=>{var n=Ce(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push(`%`+((t<16?`0`:``)+t.toString(16)).toUpperCase());return e}(),o=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],a=0;a<n.length;++a)n[a]!==void 0&&r.push(n[a]);t.obj[t.prop]=r}}},s=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)e[r]!==void 0&&(n[r]=e[r]);return n},c=function e(t,n,a){if(!n)return t;if(typeof n!=`object`&&typeof n!=`function`){if(i(t))t.push(n);else if(t&&typeof t==`object`)(a&&(a.plainObjects||a.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!=`object`)return[t].concat(n);var o=t;return i(t)&&!i(n)&&(o=s(t,a)),i(t)&&i(n)?(n.forEach(function(n,i){if(r.call(t,i)){var o=t[i];o&&typeof o==`object`&&n&&typeof n==`object`?t[i]=e(o,n,a):t.push(n)}else t[i]=n}),t):Object.keys(n).reduce(function(t,i){var o=n[i];return r.call(t,i)?t[i]=e(t[i],o,a):t[i]=o,t},o)},l=function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},u=function(e,t,n){var r=e.replace(/\+/g,` `);if(n===`iso-8859-1`)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},d=1024,f=function(e,t,r,i,o){if(e.length===0)return e;var s=e;if(typeof e==`symbol`?s=Symbol.prototype.toString.call(e):typeof e!=`string`&&(s=String(e)),r===`iso-8859-1`)return escape(s).replace(/%u[0-9a-f]{4}/gi,function(e){return`%26%23`+parseInt(e.slice(2),16)+`%3B`});for(var c=``,l=0;l<s.length;l+=d){for(var u=s.length>=d?s.slice(l,l+d):s,f=[],p=0;p<u.length;++p){var m=u.charCodeAt(p);if(m===45||m===46||m===95||m===126||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||o===n.RFC1738&&(m===40||m===41)){f[f.length]=u.charAt(p);continue}if(m<128){f[f.length]=a[m];continue}if(m<2048){f[f.length]=a[192|m>>6]+a[128|m&63];continue}if(m<55296||m>=57344){f[f.length]=a[224|m>>12]+a[128|m>>6&63]+a[128|m&63];continue}p+=1,m=65536+((m&1023)<<10|u.charCodeAt(p)&1023),f[f.length]=a[240|m>>18]+a[128|m>>12&63]+a[128|m>>6&63]+a[128|m&63]}c+=f.join(``)}return c},p=function(e){for(var t=[{obj:{o:e},prop:`o`}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),c=0;c<s.length;++c){var l=s[c],u=a[l];typeof u==`object`&&u&&n.indexOf(u)===-1&&(t.push({obj:a,prop:l}),n.push(u))}return o(t),e},m=function(e){return Object.prototype.toString.call(e)===`[object RegExp]`},h=function(e){return!e||typeof e!=`object`?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},g=function(e,t){return[].concat(e,t)},_=function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)};t.exports={arrayToObject:s,assign:l,combine:g,compact:p,decode:u,encode:f,isBuffer:h,isRegExp:m,maybeMap:_,merge:c}}),Te=A.__commonJSMin((exports,t)=>{var n=Se(),r=we(),i=Ce(),a=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+`[]`},comma:`comma`,indices:function(e,t){return e+`[`+t+`]`},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,d=i.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:`indices`,charset:`utf-8`,charsetSentinel:!1,commaRoundTrip:!1,delimiter:`&`,encode:!0,encodeDotInKeys:!1,encoder:r.encode,encodeValuesOnly:!1,filter:void 0,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`symbol`||typeof e==`bigint`},m={},h=function e(t,i,a,o,c,u,d,h,g,_,v,y,b,x,S,C,w,T){for(var E=t,D=T,O=0,k=!1;(D=D.get(m))!==void 0&&!k;){var A=D.get(t);if(O+=1,A!==void 0){if(A===O)throw RangeError(`Cyclic object value`);k=!0}D.get(m)===void 0&&(O=0)}if(typeof _==`function`?E=_(i,E):E instanceof Date?E=b(E):a===`comma`&&s(E)&&(E=r.maybeMap(E,function(e){return e instanceof Date?b(e):e})),E===null){if(u)return g&&!C?g(i,f.encoder,w,`key`,x):i;E=``}if(p(E)||r.isBuffer(E)){if(g){var j=C?i:g(i,f.encoder,w,`key`,x);return[S(j)+`=`+S(g(E,f.encoder,w,`value`,x))]}return[S(i)+`=`+S(String(E))]}var M=[];if(E===void 0)return M;var N;if(a===`comma`&&s(E))C&&g&&(E=r.maybeMap(E,g)),N=[{value:E.length>0?E.join(`,`)||null:void 0}];else if(s(_))N=_;else{var P=Object.keys(E);N=v?P.sort(v):P}var ee=h?String(i).replace(/\./g,`%2E`):String(i),F=o&&s(E)&&E.length===1?ee+`[]`:ee;if(c&&s(E)&&E.length===0)return F+`[]`;for(var I=0;I<N.length;++I){var L=N[I],R=typeof L==`object`&&L&&L.value!==void 0?L.value:E[L];if(!(d&&R===null)){var z=y&&h?String(L).replace(/\./g,`%2E`):String(L),te=s(E)?typeof a==`function`?a(F,z):F:F+(y?`.`+z:`[`+z+`]`);T.set(t,O);var B=n();B.set(m,T),l(M,e(R,te,a,o,c,u,d,h,a===`comma`&&C&&s(E)?null:g,_,v,y,b,x,S,C,w,B))}}return M},g=function(e){if(!e)return f;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.encodeDotInKeys!==void 0&&typeof e.encodeDotInKeys!=`boolean`)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&e.encoder!==void 0&&typeof e.encoder!=`function`)throw TypeError(`Encoder has to be a function.`);var t=e.charset||f.charset;if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);var n=i.default;if(e.format!==void 0){if(!a.call(i.formatters,e.format))throw TypeError(`Unknown format option provided.`);n=e.format}var r=i.formatters[n],c=f.filter;(typeof e.filter==`function`||s(e.filter))&&(c=e.filter);var l;if(l=e.arrayFormat in o?e.arrayFormat:`indices`in e?e.indices?`indices`:`repeat`:f.arrayFormat,`commaRoundTrip`in e&&typeof e.commaRoundTrip!=`boolean`)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var u=e.allowDots===void 0?e.encodeDotInKeys===!0?!0:f.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix==`boolean`?e.addQueryPrefix:f.addQueryPrefix,allowDots:u,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:l,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:f.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:e.delimiter===void 0?f.delimiter:e.delimiter,encode:typeof e.encode==`boolean`?e.encode:f.encode,encodeDotInKeys:typeof e.encodeDotInKeys==`boolean`?e.encodeDotInKeys:f.encodeDotInKeys,encoder:typeof e.encoder==`function`?e.encoder:f.encoder,encodeValuesOnly:typeof e.encodeValuesOnly==`boolean`?e.encodeValuesOnly:f.encodeValuesOnly,filter:c,format:n,formatter:r,serializeDate:typeof e.serializeDate==`function`?e.serializeDate:f.serializeDate,skipNulls:typeof e.skipNulls==`boolean`?e.skipNulls:f.skipNulls,sort:typeof e.sort==`function`?e.sort:null,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:f.strictNullHandling}};t.exports=function(e,t){var r=e,i=g(t),a,c;typeof i.filter==`function`?(c=i.filter,r=c(``,r)):s(i.filter)&&(c=i.filter,a=c);var u=[];if(typeof r!=`object`||!r)return``;var d=o[i.arrayFormat],f=d===`comma`&&i.commaRoundTrip;a||=Object.keys(r),i.sort&&a.sort(i.sort);for(var p=n(),m=0;m<a.length;++m){var _=a[m],v=r[_];i.skipNulls&&v===null||l(u,h(v,_,d,f,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,p))}var y=u.join(i.delimiter),b=i.addQueryPrefix===!0?`?`:``;return i.charsetSentinel&&(i.charset===`iso-8859-1`?b+=`utf8=%26%2310003%3B&`:b+=`utf8=%E2%9C%93&`),y.length>0?b+y:``}}),Ee=A.__commonJSMin((exports,t)=>{var n=we(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:`utf-8`,charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:`&`,depth:5,duplicates:`combine`,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,n){if(e&&typeof e==`string`&&t.comma&&e.indexOf(`,`)>-1)return e.split(`,`);if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw RangeError(`Array limit exceeded. Only `+t.arrayLimit+` element`+(t.arrayLimit===1?``:`s`)+` allowed in an array.`);return e},c=`utf8=%26%2310003%3B`,l=`utf8=%E2%9C%93`,u=function(e,t){var u={__proto__:null},d=t.ignoreQueryPrefix?e.replace(/^\?/,``):e;d=d.replace(/%5B/gi,`[`).replace(/%5D/gi,`]`);var f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=d.split(t.delimiter,t.throwOnLimitExceeded?f+1:f);if(t.throwOnLimitExceeded&&p.length>f)throw RangeError(`Parameter limit exceeded. Only `+f+` parameter`+(f===1?``:`s`)+` allowed.`);var m=-1,h,g=t.charset;if(t.charsetSentinel)for(h=0;h<p.length;++h)p[h].indexOf(`utf8=`)===0&&(p[h]===l?g=`utf-8`:p[h]===c&&(g=`iso-8859-1`),m=h,h=p.length);for(h=0;h<p.length;++h)if(h!==m){var _=p[h],v=_.indexOf(`]=`),y=v===-1?_.indexOf(`=`):v+1,b,x;y===-1?(b=t.decoder(_,a.decoder,g,`key`),x=t.strictNullHandling?null:``):(b=t.decoder(_.slice(0,y),a.decoder,g,`key`),x=n.maybeMap(s(_.slice(y+1),t,i(u[b])?u[b].length:0),function(e){return t.decoder(e,a.decoder,g,`value`)})),x&&t.interpretNumericEntities&&g===`iso-8859-1`&&(x=o(String(x))),_.indexOf(`[]=`)>-1&&(x=i(x)?[x]:x);var S=r.call(u,b);S&&t.duplicates===`combine`?u[b]=n.combine(u[b],x):(!S||t.duplicates===`last`)&&(u[b]=x)}return u},d=function(e,t,r,i){var a=0;if(e.length>0&&e[e.length-1]===`[]`){var o=e.slice(0,-1).join(``);a=Array.isArray(t)&&t[o]?t[o].length:0}for(var c=i?t:s(t,r,a),l=e.length-1;l>=0;--l){var u,d=e[l];if(d===`[]`&&r.parseArrays)u=r.allowEmptyArrays&&(c===``||r.strictNullHandling&&c===null)?[]:n.combine([],c);else{u=r.plainObjects?{__proto__:null}:{};var f=d.charAt(0)===`[`&&d.charAt(d.length-1)===`]`?d.slice(1,-1):d,p=r.decodeDotInKeys?f.replace(/%2E/g,`.`):f,m=parseInt(p,10);!r.parseArrays&&p===``?u={0:c}:!isNaN(m)&&d!==p&&String(m)===p&&m>=0&&r.parseArrays&&m<=r.arrayLimit?(u=[],u[m]=c):p!==`__proto__`&&(u[p]=c)}c=u}return c},f=function(e,t,n,i){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,`[$1]`):e,o=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,c=n.depth>0&&o.exec(a),l=c?a.slice(0,c.index):a,u=[];if(l){if(!n.plainObjects&&r.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var f=0;n.depth>0&&(c=s.exec(a))!==null&&f<n.depth;){if(f+=1,!n.plainObjects&&r.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(c[1])}if(c){if(n.strictDepth===!0)throw RangeError(`Input depth exceeded depth option of `+n.depth+` and strictDepth is true`);u.push(`[`+a.slice(c.index)+`]`)}return d(u,t,n,i)}},p=function(e){if(!e)return a;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.decodeDotInKeys!==void 0&&typeof e.decodeDotInKeys!=`boolean`)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!=`function`)throw TypeError(`Decoder has to be a function.`);if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);if(e.throwOnLimitExceeded!==void 0&&typeof e.throwOnLimitExceeded!=`boolean`)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=e.charset===void 0?a.charset:e.charset,r=e.duplicates===void 0?a.duplicates:e.duplicates;if(r!==`combine`&&r!==`first`&&r!==`last`)throw TypeError(`The duplicates option must be either combine, first, or last`);var i=e.allowDots===void 0?e.decodeDotInKeys===!0?!0:a.allowDots:!!e.allowDots;return{allowDots:i,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes==`boolean`?e.allowPrototypes:a.allowPrototypes,allowSparse:typeof e.allowSparse==`boolean`?e.allowSparse:a.allowSparse,arrayLimit:typeof e.arrayLimit==`number`?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:a.charsetSentinel,comma:typeof e.comma==`boolean`?e.comma:a.comma,decodeDotInKeys:typeof e.decodeDotInKeys==`boolean`?e.decodeDotInKeys:a.decodeDotInKeys,decoder:typeof e.decoder==`function`?e.decoder:a.decoder,delimiter:typeof e.delimiter==`string`||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:typeof e.depth==`number`||e.depth===!1?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities==`boolean`?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:typeof e.parameterLimit==`number`?e.parameterLimit:a.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects==`boolean`?e.plainObjects:a.plainObjects,strictDepth:typeof e.strictDepth==`boolean`?!!e.strictDepth:a.strictDepth,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded==`boolean`?e.throwOnLimitExceeded:!1}};t.exports=function(e,t){var r=p(t);if(e===``||e==null)return r.plainObjects?{__proto__:null}:{};for(var i=typeof e==`string`?u(e,r):e,a=r.plainObjects?{__proto__:null}:{},o=Object.keys(i),s=0;s<o.length;++s){var c=o[s],l=f(c,i[c],r,typeof e==`string`);a=n.merge(a,l,r)}return r.allowSparse===!0?a:n.compact(a)}}),De=A.__commonJSMin((exports,t)=>{var n=Te(),r=Ee(),i=Ce();t.exports={formats:i,parse:r,stringify:n}});const Oe=(e,t)=>e?!t||t.length===0?e:t.reduce((e,t)=>(delete e[t],e),{...e}):{};let Y=function(e){return e.JSON=`application/json`,e.FORM_URLENCODED=`application/x-www-form-urlencoded`,e.FORM_DATA=`multipart/form-data`,e.TEXT=`text/plain`,e.HTML=`text/html`,e.XML=`text/xml`,e.CSV=`text/csv`,e.STREAM=`application/octet-stream`,e}({}),ke=function(e){return e[e.TIME_OUT=408]=`TIME_OUT`,e[e.ABORTED=499]=`ABORTED`,e[e.NETWORK_ERROR=599]=`NETWORK_ERROR`,e[e.BODY_NULL=502]=`BODY_NULL`,e[e.UNKNOWN=601]=`UNKNOWN`,e}({}),Ae=function(e){return e.GET=`GET`,e.POST=`POST`,e.PUT=`PUT`,e.DELETE=`DELETE`,e.PATCH=`PATCH`,e.HEAD=`HEAD`,e.OPTIONS=`OPTIONS`,e}({});var je=A.__toESM(De()),X=function(e){return e.JSON=`json`,e.BLOB=`blob`,e.TEXT=`text`,e.ARRAY_BUFFER=`arrayBuffer`,e.FORM_DATA=`formData`,e.BYTES=`bytes`,e}(X||{}),Z=(t=new WeakMap,n=new WeakMap,r=new WeakMap,i=new WeakMap,a=new WeakMap,o=new WeakMap,class extends Error{constructor({message:s,status:c,statusText:l,response:u,config:d,name:f}){super(s),e.classPrivateFieldInitSpec(this,t,void 0),e.classPrivateFieldInitSpec(this,n,void 0),e.classPrivateFieldInitSpec(this,r,void 0),e.classPrivateFieldInitSpec(this,i,void 0),e.classPrivateFieldInitSpec(this,a,void 0),e.classPrivateFieldInitSpec(this,o,void 0),e.classPrivateFieldSet2(t,this,s),e.classPrivateFieldSet2(r,this,c),e.classPrivateFieldSet2(i,this,l),e.classPrivateFieldSet2(a,this,u),e.classPrivateFieldSet2(o,this,d),e.classPrivateFieldSet2(n,this,f??s)}get message(){return e.classPrivateFieldGet2(t,this)}get status(){return e.classPrivateFieldGet2(r,this)}get statusText(){return e.classPrivateFieldGet2(i,this)}get response(){return e.classPrivateFieldGet2(a,this)}get config(){return e.classPrivateFieldGet2(o,this)}get name(){return e.classPrivateFieldGet2(n,this)}});const Me=e=>{let t=new Map;e.forEach(e=>{t.set(e.name,e)});let n=Array.from(t.values()).sort((e,t)=>(e.priority??0)-(t.priority??0)),r=[],i=[],a=[],o=[],s=[],c=[];return n.forEach(e=>{e.beforeRequest&&r.push(e.beforeRequest),e.afterResponse&&i.push(e.afterResponse),e.onError&&a.push(e.onError),e.onFinally&&o.push(e.onFinally),e.transformStreamChunk&&s.push(e.transformStreamChunk),e.beforeStream&&c.push(e.beforeStream)}),{beforeRequestPlugins:r,afterResponsePlugins:i,errorPlugins:a,finallyPlugins:o,beforeStreamPlugins:c,transformStreamChunkPlugins:s}},Ne=(e,t,n=`repeat`)=>{if(t){let r=je.default.stringify(t,{arrayFormat:n});r&&(e=e.includes(`?`)?`${e}&${r}`:`${e}?${r}`)}return e},Pe=(e={},t={})=>{let n=e instanceof Headers?e:new Headers(e),r=e=>{e instanceof Headers||(e=new Headers(e)),e.forEach((e,t)=>{n.set(t,e)})};return r(t),n},Fe=[`PATCH`,`POST`,`PUT`],Ie=[`GET`,`HEAD`,`OPTIONS`,`DELETE`],Le=(e,t,n,r=`repeat`)=>{if(!e)return null;if(e instanceof FormData)return e;let i=null;if(Fe.includes(t.toUpperCase())){let t=new Headers(n||{}),a=t.get(`Content-Type`)||Y.JSON;if(a.includes(Y.JSON))i=JSON.stringify(e);else if(a.includes(Y.FORM_URLENCODED))i=je.default.stringify(e,{arrayFormat:r});else if(a.includes(Y.FORM_DATA)){let t=new FormData;if(!(e instanceof FormData)&&typeof e==`object`){let n=e;Object.keys(n).forEach(e=>{n.prototype.hasOwnProperty.call(e)&&t.append(e,n[e])}),i=t}}}return Ie.includes(t.toUpperCase())&&(i=null),i};var Re=(s=new WeakMap,c=new WeakMap,l=new WeakMap,u=new WeakMap,d=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,h=new WeakMap,g=new WeakSet,class t{constructor(t){e.classPrivateMethodInitSpec(this,g),e.classPrivateFieldInitSpec(this,s,void 0),e.classPrivateFieldInitSpec(this,c,void 0),e.classPrivateFieldInitSpec(this,l,void 0),e.classPrivateFieldInitSpec(this,u,void 0),e.classPrivateFieldInitSpec(this,d,!1),e.classPrivateFieldInitSpec(this,f,null),e.classPrivateFieldInitSpec(this,p,[]),e.classPrivateFieldInitSpec(this,m,`json`),e.classPrivateFieldInitSpec(this,h,void 0),e.classPrivateFieldSet2(h,this,t);let{plugins:n=[],controller:r,url:i,baseURL:a=``,params:o,data:_,qsArrayFormat:v=`repeat`,withCredentials:y,extra:b,method:x=`GET`,headers:S}=t;e.classPrivateFieldSet2(c,this,r??new AbortController),e.classPrivateFieldSet2(s,this,Me(n)),e.classPrivateFieldSet2(l,this,{url:i,baseURL:a,params:o,data:_,withCredentials:y,extra:b,method:x,headers:S,qsArrayFormat:v}),e.classPrivateFieldSet2(u,this,e.assertClassBrand(g,this,ze).call(this,t))}json(){return e.assertClassBrand(g,this,We).call(this,X.JSON,Q.call(e.assertClassBrand(g,this)).then(e=>e.json()))}lazyFinally(t){return e.classPrivateFieldGet2(f,this)?e.classPrivateFieldGet2(f,this).finally(()=>{for(let t of e.classPrivateFieldGet2(p,this))t();e.classPrivateFieldSet2(p,this,[])}):(t&&e.classPrivateFieldGet2(p,this).push(t),null)}then(t,n){return He.call(e.assertClassBrand(g,this)).then(async n=>t?.call(this,await e.assertClassBrand(g,this,Ue).call(this,n)),async t=>n?.call(this,await e.assertClassBrand(g,this,Ve).call(this,t)))}catch(t){return He.call(e.assertClassBrand(g,this)).catch(t)}finally(t){return He.call(e.assertClassBrand(g,this)).finally(t)}abort(){e.classPrivateFieldGet2(c,this).abort()}blob(){return e.assertClassBrand(g,this,We).call(this,X.BLOB,Q.call(e.assertClassBrand(g,this)).then(e=>e.blob()))}text(){return e.assertClassBrand(g,this,We).call(this,X.TEXT,Q.call(e.assertClassBrand(g,this)).then(e=>e.text()))}arrayBuffer(){return e.assertClassBrand(g,this,We).call(this,X.ARRAY_BUFFER,Q.call(e.assertClassBrand(g,this)).then(e=>e.arrayBuffer()))}formData(){return e.assertClassBrand(g,this,We).call(this,X.FORM_DATA,Q.call(e.assertClassBrand(g,this)).then(e=>e.formData()))}bytes(){return e.assertClassBrand(g,this,We).call(this,X.BYTES,Q.call(e.assertClassBrand(g,this)).then(e=>e.bytes()))}async*stream(){var t;let n=(t=await Q.call(e.assertClassBrand(g,this)))?.body;if(!n)throw Error(`Response body is null`);for(let t of e.classPrivateFieldGet2(s,this).beforeStreamPlugins)n=await t(n,e.classPrivateFieldGet2(l,this));let r=n.getReader();if(!r)throw Error(`Response body reader is null`);try{for(;;){let{done:t,value:n}=await r.read();if(t)break;let i={source:n,result:n,error:null};try{for(let t of e.classPrivateFieldGet2(s,this).transformStreamChunkPlugins)i=await t(i,e.classPrivateFieldGet2(l,this));if(i.result&&(Ge(i.result)||Ke(i.result)))for await(let e of i.result){let t={source:i.source,result:e,error:null};yield t}else yield i}catch(e){i.error=e,i.result=null,yield i}}}catch(t){return e.assertClassBrand(g,this,Ve).call(this,t)}finally{r.releaseLock()}}retry(){let{controller:n,...r}=e.classPrivateFieldGet2(h,this);return new t(r)}get response(){return Q.call(e.assertClassBrand(g,this))}});function ze({timeout:t}){return new Promise(async(n,r)=>{let i=e.classPrivateFieldGet2(l,this),{beforeRequestPlugins:a}=e.classPrivateFieldGet2(s,this);for(let e of a)i=await e(i);let o=Ne(i.baseURL+i.url,i.params,i.qsArrayFormat),u=Le(i.data,i.method,i.headers,i.qsArrayFormat),f=Oe(i??{},[`baseURL`,`data`,`extra`,`headers`,`method`,`params`,`url`,`withCredentials`]),p={...f,method:i.method,headers:i.headers,signal:e.classPrivateFieldGet2(c,this).signal,credentials:i.withCredentials?`include`:`omit`,body:u},m=fetch(o,p),h=[m],_=null;if(t){let n=new Promise(n=>{_=setTimeout(()=>{var t;e.classPrivateFieldSet2(d,this,!0),(t=e.classPrivateFieldGet2(c,this))?.abort()},t)});h.push(n)}let v=null;try{let t=await Promise.race(h);t?(t.ok&&n(t),v=new Z({message:`Fail Request`,status:t.status,statusText:t.statusText,config:e.classPrivateFieldGet2(l,this),name:`Fail Request`})):v=new Z({message:`NETWORK_ERROR`,status:ke.NETWORK_ERROR,statusText:`Network Error`,config:e.classPrivateFieldGet2(l,this),name:`Network Error`})}catch(e){v=e}finally{v&&r(await e.assertClassBrand(g,this,Ve).call(this,v)),_&&clearTimeout(_)}})}async function Be(t){return t instanceof Z?t:t instanceof TypeError?t.name===`AbortError`?e.classPrivateFieldGet2(d,this)?new Z({message:`Request timeout`,status:ke.TIME_OUT,statusText:`Request timeout`,config:e.classPrivateFieldGet2(l,this),name:`Request timeout`,response:await Q.call(e.assertClassBrand(g,this))}):new Z({message:`Request aborted`,status:ke.ABORTED,statusText:`Request aborted`,config:e.classPrivateFieldGet2(l,this),name:`Request aborted`,response:await Q.call(e.assertClassBrand(g,this))}):new Z({message:t.message,status:ke.NETWORK_ERROR,statusText:`Unknown Request Error`,config:e.classPrivateFieldGet2(l,this),name:t.name,response:await Q.call(e.assertClassBrand(g,this))}):new Z({message:t?.message??`Unknown Request Error`,status:ke.UNKNOWN,statusText:`Unknown Request Error`,config:e.classPrivateFieldGet2(l,this),name:`Unknown Request Error`,response:await Q.call(e.assertClassBrand(g,this))})}async function Ve(t){let n=await e.assertClassBrand(g,this,Be).call(this,t);for(let t of e.classPrivateFieldGet2(s,this).errorPlugins)n=await t(n,e.classPrivateFieldGet2(l,this));return n}function He(){return e.classPrivateFieldGet2(f,this)?e.classPrivateFieldGet2(f,this):Q.call(e.assertClassBrand(g,this))}async function Ue(t){let n=e.classPrivateFieldGet2(s,this).afterResponsePlugins,r={config:e.classPrivateFieldGet2(l,this),response:await Q.call(e.assertClassBrand(g,this)).then(e=>e.clone()),responseType:e.classPrivateFieldGet2(m,this),controller:e.classPrivateFieldGet2(c,this),result:t};for(let t of n)r=await t(r,e.classPrivateFieldGet2(l,this));return r.result}function Q(){return e.classPrivateFieldGet2(u,this).then(e=>e.clone())}function We(t,n){return e.classPrivateFieldSet2(f,this,n.then(n=>(e.classPrivateFieldSet2(m,this,t),e.assertClassBrand(g,this,Ue).call(this,n))).catch(n=>(e.classPrivateFieldSet2(m,this,t),e.assertClassBrand(g,this,Ve).call(this,n)))),e.classPrivateFieldGet2(f,this).finally(this.lazyFinally.bind(this)),e.classPrivateFieldGet2(f,this)}const Ge=e=>e[Symbol.toStringTag]===`Generator`&&typeof e.next==`function`&&typeof e.return==`function`&&typeof e.throw==`function`&&typeof e[Symbol.iterator]==`function`,Ke=e=>e[Symbol.toStringTag]===`AsyncGenerator`&&typeof e.next==`function`&&typeof e.return==`function`&&typeof e.throw==`function`&&typeof e[Symbol.asyncIterator]==`function`,qe=e=>new Re(e);var Je=(_=new WeakMap,v=new WeakMap,y=new WeakMap,b=new WeakMap,x=new WeakMap,S=new WeakMap,C=new WeakSet,class{constructor({timeout:t=0,baseURL:n=``,headers:r={},plugins:i=[],withCredentials:a=!1}){e.classPrivateMethodInitSpec(this,C),e.classPrivateFieldInitSpec(this,_,void 0),e.classPrivateFieldInitSpec(this,v,void 0),e.classPrivateFieldInitSpec(this,y,void 0),e.classPrivateFieldInitSpec(this,b,[]),e.classPrivateFieldInitSpec(this,x,[]),e.classPrivateFieldInitSpec(this,S,void 0),e.classPrivateFieldSet2(_,this,t),e.classPrivateFieldSet2(v,this,n),e.classPrivateFieldSet2(y,this,r),e.classPrivateFieldSet2(x,this,i),e.classPrivateFieldSet2(S,this,a),this.request=this.request.bind(this),this.get=this.get.bind(this),this.head=this.head.bind(this),this.options=this.options.bind(this),this.delete=this.delete.bind(this),this.post=this.post.bind(this),this.put=this.put.bind(this),this.patch=this.patch.bind(this),this.abortAll=this.abortAll.bind(this),this.use=this.use.bind(this)}use(t){return e.classPrivateFieldGet2(x,this).push(t),this}request(t,{timeout:n,headers:r,method:i=`GET`,params:a={},data:o,qsArrayFormat:s,withCredentials:c,extra:l}={}){let u=new AbortController;e.classPrivateFieldGet2(b,this).push(u);let d=qe({url:t,baseURL:e.classPrivateFieldGet2(v,this),timeout:n??e.classPrivateFieldGet2(_,this),plugins:e.classPrivateFieldGet2(x,this),headers:Pe(e.classPrivateFieldGet2(y,this),r),controller:u,method:i,params:a,data:o,qsArrayFormat:s,withCredentials:c??e.classPrivateFieldGet2(S,this),extra:l});return d.lazyFinally(()=>{e.classPrivateFieldSet2(b,this,e.classPrivateFieldGet2(b,this).filter(e=>e!==u))}),d}get(t,n={},r){return e.assertClassBrand(C,this,Ye).call(this,t,n,{...r,method:`GET`})}head(t,n={},r){return e.assertClassBrand(C,this,Ye).call(this,t,n,{...r,method:`HEAD`})}options(t,n={},r){return e.assertClassBrand(C,this,Ye).call(this,t,n,{...r,method:`OPTIONS`})}delete(e,t){return this.request(e,{...t,method:`DELETE`})}post(t,n,r){return e.assertClassBrand(C,this,Xe).call(this,t,n,{...r,method:`POST`})}upload(t,n,r){let i=new FormData;for(let e in n)if(Object.prototype.hasOwnProperty.call(n,e)){let t=n[e];t instanceof File||t instanceof Blob?i.append(e,t):i.append(e,String(t))}return e.assertClassBrand(C,this,Xe).call(this,t,i,{...r,method:`POST`})}put(t,n,r){return e.assertClassBrand(C,this,Xe).call(this,t,n,{...r,method:`PUT`})}patch(t,n,r){return e.assertClassBrand(C,this,Xe).call(this,t,n,{...r,method:`PATCH`})}abortAll(){e.classPrivateFieldGet2(b,this).forEach(e=>e.abort()),e.classPrivateFieldSet2(b,this,[])}});function Ye(e,t={},n={}){return this.request(e,{...n,params:t})}function Xe(e,t={},n={}){return this.request(e,{...n,data:t})}const Ze=(e,t={})=>qe({url:e,baseURL:``,...t}),Qe=(e,t,n={})=>Ze(e,{...n,params:t}),$e=(e,t=null,n={})=>Ze(e,{...n,data:t}),et=Ze,tt=(e,t={},n)=>Qe(e,t,{...n,method:`GET`}),nt=(e,t={},n)=>Qe(e,t,{...n,method:`HEAD`}),rt=(e,t={},n)=>Qe(e,t,{...n,method:`OPTIONS`}),it=(e,t)=>Ze(e,{...t,method:`DELETE`}),at=(e,t,n)=>$e(e,t,{...n,method:`POST`}),ot=(e,t,n)=>{let r=new FormData;for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)){let n=t[e];n instanceof File||n instanceof Blob?r.append(e,n):r.append(e,String(n))}return $e(e,r,{...n,method:`POST`})},st=(e,t,n)=>$e(e,t,{...n,method:`PUT`}),ct=(e,t,n)=>$e(e,t,{...n,method:`PATCH`}),$=Ze;$.create=e=>{let t=new Je(e),n=t.request.bind(void 0);return Object.assign(n,Je.prototype,t),n},$.get=tt,$.head=nt,$.options=rt,$.delete=it,$.post=at,$.put=st,$.patch=ct,$.upload=ot;var lt=$,ut=(w=new WeakMap,T=new WeakMap,E=new WeakMap,D=new WeakMap,O=new WeakMap,k=new WeakMap,class extends Error{constructor({message:t,status:n,statusText:r,response:i,config:a,name:o}){super(t),e.classPrivateFieldInitSpec(this,w,void 0),e.classPrivateFieldInitSpec(this,T,void 0),e.classPrivateFieldInitSpec(this,E,void 0),e.classPrivateFieldInitSpec(this,D,void 0),e.classPrivateFieldInitSpec(this,O,void 0),e.classPrivateFieldInitSpec(this,k,void 0),e.classPrivateFieldSet2(w,this,t),e.classPrivateFieldSet2(E,this,n),e.classPrivateFieldSet2(D,this,r),e.classPrivateFieldSet2(O,this,i),e.classPrivateFieldSet2(k,this,a),e.classPrivateFieldSet2(T,this,o??t)}get message(){return e.classPrivateFieldGet2(w,this)}get status(){return e.classPrivateFieldGet2(E,this)}get statusText(){return e.classPrivateFieldGet2(D,this)}get response(){return e.classPrivateFieldGet2(O,this)}get config(){return e.classPrivateFieldGet2(k,this)}get name(){return e.classPrivateFieldGet2(T,this)}}),dt=lt;exports.ContentType=Y,exports.Method=Ae,exports.ResponseError=ut,exports.StatusCode=ke,exports.default=dt,exports.del=it,exports.get=tt,exports.head=nt,exports.options=rt,exports.patch=ct,exports.post=at,exports.put=st,exports.request=et,exports.upload=ot;
|
package/dist/es/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
var e=function(exports){function t(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function n(e,n,r){return e.set(t(e,n),r),r}function r(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function i(e,t,n){r(e,t),t.set(e,n)}function a(e,t){r(e,t),t.add(e)}function o(e,n){return e.get(t(e,n))}return exports.assertClassBrand=t,exports.classPrivateFieldGet2=o,exports.classPrivateFieldInitSpec=i,exports.classPrivateFieldSet2=n,exports.classPrivateMethodInitSpec=a,exports}({}),t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A=Object.create,j=Object.defineProperty,M=Object.getOwnPropertyDescriptor,N=Object.getOwnPropertyNames,P=Object.getPrototypeOf,F=Object.prototype.hasOwnProperty,I=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),L=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=N(t),a=0,o=i.length,s;a<o;a++)s=i[a],!F.call(e,s)&&s!==n&&j(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=M(t,s))||r.enumerable});return e},R=(e,t,n)=>(n=e==null?{}:A(P(e)),L(t||!e||!e.__esModule?j(n,`default`,{value:e,enumerable:!0}):n,e)),z=I((exports,t)=>{t.exports=TypeError}),B=I((exports,t)=>{t.exports={}}),V=I((exports,t)=>{var n=typeof Map==`function`&&Map.prototype,r=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,`size`):null,i=n&&r&&typeof r.get==`function`?r.get:null,a=n&&Map.prototype.forEach,o=typeof Set==`function`&&Set.prototype,s=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,`size`):null,c=o&&s&&typeof s.get==`function`?s.get:null,l=o&&Set.prototype.forEach,u=typeof WeakMap==`function`&&WeakMap.prototype,d=u?WeakMap.prototype.has:null,f=typeof WeakSet==`function`&&WeakSet.prototype,p=f?WeakSet.prototype.has:null,m=typeof WeakRef==`function`&&WeakRef.prototype,h=m?WeakRef.prototype.deref:null,g=Boolean.prototype.valueOf,_=Object.prototype.toString,v=Function.prototype.toString,y=String.prototype.match,b=String.prototype.slice,x=String.prototype.replace,S=String.prototype.toUpperCase,C=String.prototype.toLowerCase,w=RegExp.prototype.test,T=Array.prototype.concat,E=Array.prototype.join,D=Array.prototype.slice,O=Math.floor,k=typeof BigInt==`function`?BigInt.prototype.valueOf:null,A=Object.getOwnPropertySymbols,j=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?Symbol.prototype.toString:null,M=typeof Symbol==`function`&&typeof Symbol.iterator==`object`,N=typeof Symbol==`function`&&Symbol.toStringTag&&(typeof Symbol.toStringTag===M||`symbol`)?Symbol.toStringTag:null,P=Object.prototype.propertyIsEnumerable,F=(typeof Reflect==`function`?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function I(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||w.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e==`number`){var r=e<0?-O(-e):O(e);if(r!==e){var i=String(r),a=b.call(t,i.length+1);return x.call(i,n,`$&_`)+`.`+x.call(x.call(a,/([0-9]{3})/g,`$&_`),/_$/,``)}}return x.call(t,n,`$&_`)}var L=B(),R=L.custom,z=le(R)?R:null,V={__proto__:null,double:`"`,single:`'`},H={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};t.exports=function e(t,n,r,o){var s=n||{};if(W(s,`quoteStyle`)&&!W(V,s.quoteStyle))throw TypeError(`option "quoteStyle" must be "single" or "double"`);if(W(s,`maxStringLength`)&&(typeof s.maxStringLength==`number`?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=W(s,`customInspect`)?s.customInspect:!0;if(typeof u!=`boolean`&&u!==`symbol`)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(s,`indent`)&&s.indent!==null&&s.indent!==` `&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(s,`numericSeparator`)&&typeof s.numericSeparator!=`boolean`)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=s.numericSeparator;if(t===void 0)return`undefined`;if(t===null)return`null`;if(typeof t==`boolean`)return t?`true`:`false`;if(typeof t==`string`)return K(t,s);if(typeof t==`number`){if(t===0)return 1/0/t>0?`0`:`-0`;var f=String(t);return d?I(t,f):f}if(typeof t==`bigint`){var p=String(t)+`n`;return d?I(t,p):p}var m=s.depth===void 0?5:s.depth;if(r===void 0&&(r=0),r>=m&&m>0&&typeof t==`object`)return ne(t)?`[Array]`:`[Object]`;var h=Ce(s,r);if(o===void 0)o=[];else if(pe(o,t)>=0)return`[Circular]`;function _(t,n,i){if(n&&(o=D.call(o),o.push(n)),i){var a={depth:s.depth};return W(s,`quoteStyle`)&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,o)}return e(t,s,r+1,o)}if(typeof t==`function`&&!ie(t)){var v=fe(t),y=Te(t,_);return`[Function`+(v?`: `+v:` (anonymous)`)+`]`+(y.length>0?` { `+E.call(y,`, `)+` }`:``)}if(le(t)){var S=M?x.call(String(t),/^(Symbol\(.*\))_[^)]*$/,`$1`):j.call(t);return typeof t==`object`&&!M?J(S):S}if(ye(t)){for(var w=`<`+C.call(String(t.nodeName)),O=t.attributes||[],A=0;A<O.length;A++)w+=` `+O[A].name+`=`+ee(te(O[A].value),`double`,s);return w+=`>`,t.childNodes&&t.childNodes.length&&(w+=`...`),w+=`</`+C.call(String(t.nodeName))+`>`,w}if(ne(t)){if(t.length===0)return`[]`;var R=Te(t,_);return h&&!Se(R)?`[`+we(R,h)+`]`:`[ `+E.call(R,`, `)+` ]`}if(ae(t)){var B=Te(t,_);return!(`cause`in Error.prototype)&&`cause`in t&&!P.call(t,`cause`)?`{ [`+String(t)+`] `+E.call(T.call(`[cause]: `+_(t.cause),B),`, `)+` }`:B.length===0?`[`+String(t)+`]`:`{ [`+String(t)+`] `+E.call(B,`, `)+` }`}if(typeof t==`object`&&u){if(z&&typeof t[z]==`function`&&L)return L(t,{depth:m-r});if(u!==`symbol`&&typeof t.inspect==`function`)return t.inspect()}if(me(t)){var H=[];return a&&a.call(t,function(e,n){H.push(_(n,t,!0)+` => `+_(e,t))}),xe(`Map`,i.call(t),H,h)}if(_e(t)){var U=[];return l&&l.call(t,function(e){U.push(_(e,t))}),xe(`Set`,c.call(t),U,h)}if(he(t))return be(`WeakMap`);if(ve(t))return be(`WeakSet`);if(ge(t))return be(`WeakRef`);if(se(t))return J(_(Number(t)));if(ue(t))return J(_(k.call(t)));if(ce(t))return J(g.call(t));if(oe(t))return J(_(String(t)));if(typeof window<`u`&&t===window)return`{ [object Window] }`;if(typeof globalThis<`u`&&t===globalThis||typeof global<`u`&&t===global)return`{ [object globalThis] }`;if(!re(t)&&!ie(t)){var de=Te(t,_),q=F?F(t)===Object.prototype:t instanceof Object||t.constructor===Object,Y=t instanceof Object?``:`null prototype`,Ee=!q&&N&&Object(t)===t&&N in t?b.call(G(t),8,-1):Y?`Object`:``,De=q||typeof t.constructor!=`function`?``:t.constructor.name?t.constructor.name+` `:``,Oe=De+(Ee||Y?`[`+E.call(T.call([],Ee||[],Y||[]),`: `)+`] `:``);return de.length===0?Oe+`{}`:h?Oe+`{`+we(de,h)+`}`:Oe+`{ `+E.call(de,`, `)+` }`}return String(t)};function ee(e,t,n){var r=n.quoteStyle||t,i=V[r];return i+e+i}function te(e){return x.call(String(e),/"/g,`"`)}function U(e){return!N||!(typeof e==`object`&&(N in e||e[N]!==void 0))}function ne(e){return G(e)===`[object Array]`&&U(e)}function re(e){return G(e)===`[object Date]`&&U(e)}function ie(e){return G(e)===`[object RegExp]`&&U(e)}function ae(e){return G(e)===`[object Error]`&&U(e)}function oe(e){return G(e)===`[object String]`&&U(e)}function se(e){return G(e)===`[object Number]`&&U(e)}function ce(e){return G(e)===`[object Boolean]`&&U(e)}function le(e){if(M)return e&&typeof e==`object`&&e instanceof Symbol;if(typeof e==`symbol`)return!0;if(!e||typeof e!=`object`||!j)return!1;try{return j.call(e),!0}catch{}return!1}function ue(e){if(!e||typeof e!=`object`||!k)return!1;try{return k.call(e),!0}catch{}return!1}var de=Object.prototype.hasOwnProperty||function(e){return e in this};function W(e,t){return de.call(e,t)}function G(e){return _.call(e)}function fe(e){if(e.name)return e.name;var t=y.call(v.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function pe(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function me(e){if(!i||!e||typeof e!=`object`)return!1;try{i.call(e);try{c.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function he(e){if(!d||!e||typeof e!=`object`)return!1;try{d.call(e,d);try{p.call(e,p)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function ge(e){if(!h||!e||typeof e!=`object`)return!1;try{return h.call(e),!0}catch{}return!1}function _e(e){if(!c||!e||typeof e!=`object`)return!1;try{c.call(e);try{i.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function ve(e){if(!p||!e||typeof e!=`object`)return!1;try{p.call(e,p);try{d.call(e,d)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function ye(e){return!e||typeof e!=`object`?!1:typeof HTMLElement<`u`&&e instanceof HTMLElement?!0:typeof e.nodeName==`string`&&typeof e.getAttribute==`function`}function K(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r=`... `+n+` more character`+(n>1?`s`:``);return K(b.call(e,0,t.maxStringLength),t)+r}var i=H[t.quoteStyle||`single`];i.lastIndex=0;var a=x.call(x.call(e,i,`\\$1`),/[\x00-\x1f]/g,q);return ee(a,`single`,t)}function q(e){var t=e.charCodeAt(0),n={8:`b`,9:`t`,10:`n`,12:`f`,13:`r`}[t];return n?`\\`+n:`\\x`+(t<16?`0`:``)+S.call(t.toString(16))}function J(e){return`Object(`+e+`)`}function be(e){return e+` { ? }`}function xe(e,t,n,r){var i=r?we(n,r):E.call(n,`, `);return e+` (`+t+`) {`+i+`}`}function Se(e){for(var t=0;t<e.length;t++)if(pe(e[t],`
|
|
2
2
|
`)>=0)return!1;return!0}function Ce(e,t){var n;if(e.indent===` `)n=` `;else if(typeof e.indent==`number`&&e.indent>0)n=E.call(Array(e.indent+1),` `);else return null;return{base:n,prev:E.call(Array(t+1),n)}}function we(e,t){if(e.length===0)return``;var n=`
|
|
3
3
|
`+t.prev+t.base;return n+E.call(e,`,`+n)+`
|
|
4
|
-
`+t.prev}function Te(e,t){var n=ne(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=W(e,i)?t(e[i],e):``}var a=typeof A==`function`?A(e):[],o;if(M){o={};for(var s=0;s<a.length;s++)o[`$`+a[s]]=a[s]}for(var c in e){if(!W(e,c)||n&&String(Number(c))===c&&c<e.length||M&&o[`$`+c]instanceof Symbol)continue;w.call(/[^\w$]/,c)?r.push(t(c,e)+`: `+t(e[c],e)):r.push(c+`: `+t(e[c],e))}if(typeof A==`function`)for(var l=0;l<a.length;l++)P.call(e,a[l])&&r.push(`[`+t(a[l])+`]: `+t(e[a[l]],e));return r}}),H=I((exports,t)=>{var n=V(),r=z(),i=function(e,t,n){for(var r=e,i;(i=r.next)!=null;r=i)if(i.key===t)return r.next=i.next,n||(i.next=e.next,e.next=i),i},a=function(e,t){if(e){var n=i(e,t);return n&&n.value}},o=function(e,t,n){var r=i(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},s=function(e,t){return e?!!i(e,t):!1},c=function(e,t){if(e)return i(e,t,!0)};t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r(`Side channel does not contain `+n(e))},delete:function(t){var n=e&&e.next,r=c(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return a(e,t)},has:function(t){return s(e,t)},set:function(t,n){e||={next:void 0},o(e,t,n)}};return t}}),ee=I((exports,t)=>{t.exports=Object}),te=I((exports,t)=>{t.exports=Error}),U=I((exports,t)=>{t.exports=EvalError}),ne=I((exports,t)=>{t.exports=RangeError}),re=I((exports,t)=>{t.exports=ReferenceError}),ie=I((exports,t)=>{t.exports=SyntaxError}),ae=I((exports,t)=>{t.exports=URIError}),oe=I((exports,t)=>{t.exports=Math.abs}),se=I((exports,t)=>{t.exports=Math.floor}),ce=I((exports,t)=>{t.exports=Math.max}),le=I((exports,t)=>{t.exports=Math.min}),ue=I((exports,t)=>{t.exports=Math.pow}),de=I((exports,t)=>{t.exports=Math.round}),W=I((exports,t)=>{t.exports=Number.isNaN||function(e){return e!==e}}),G=I((exports,t)=>{var n=W();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}}),fe=I((exports,t)=>{t.exports=Object.getOwnPropertyDescriptor}),pe=I((exports,t)=>{var n=fe();if(n)try{n([],`length`)}catch{n=null}t.exports=n}),me=I((exports,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n}),he=I((exports,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}}),ge=I((exports,t)=>{var n=typeof Symbol<`u`&&Symbol,r=he();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}}),_e=I((exports,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null}),ve=I((exports,t)=>{var n=ee();t.exports=n.getPrototypeOf||null}),ye=I((exports,t)=>{var n=`Function.prototype.bind called on incompatible `,r=Object.prototype.toString,i=Math.max,a=`[object Function]`,o=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},s=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},c=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||r.apply(t)!==a)throw TypeError(n+t);for(var l=s(arguments,1),u,d=function(){if(this instanceof u){var n=t.apply(this,o(l,arguments));return Object(n)===n?n:this}return t.apply(e,o(l,arguments))},f=i(0,t.length-l.length),p=[],m=0;m<f;m++)p[m]=`$`+m;if(u=Function(`binder`,`return function (`+c(p,`,`)+`){ return binder.apply(this,arguments); }`)(d),t.prototype){var h=function(){};h.prototype=t.prototype,u.prototype=new h,h.prototype=null}return u}}),K=I((exports,t)=>{var n=ye();t.exports=Function.prototype.bind||n}),q=I((exports,t)=>{t.exports=Function.prototype.call}),J=I((exports,t)=>{t.exports=Function.prototype.apply}),be=I((exports,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply}),xe=I((exports,t)=>{var n=K(),r=J(),i=q(),a=be();t.exports=a||n.call(i,r)}),Se=I((exports,t)=>{var n=K(),r=z(),i=q(),a=xe();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}}),Ce=I((exports,t)=>{var n=Se(),r=pe(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`?function(e){return s(e==null?e:o(e))}:!1}),we=I((exports,t)=>{var n=_e(),r=ve(),i=Ce();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null}),Te=I((exports,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty,i=K();t.exports=i.call(n,r)}),Y=I((exports,t)=>{var n,r=ee(),i=te(),a=U(),o=ne(),s=re(),c=ie(),l=z(),u=ae(),d=oe(),f=se(),p=ce(),m=le(),h=ue(),g=de(),_=G(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=pe(),x=me(),S=function(){throw new l},C=b?function(){try{return arguments.callee,S}catch{try{return b(arguments,`callee`).get}catch{return S}}}():S,w=ge()(),T=we(),E=ve(),D=_e(),O=J(),k=q(),A={},j=typeof Uint8Array>`u`||!T?n:T(Uint8Array),M={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&T?T(T([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!w||!T?n:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!w||!T?n:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&T?T(``[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":C,"%TypedArray%":j,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":E,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(T)try{null.error}catch(e){var N=T(T(e));M[`%Error.prototype%`]=N}var P=function e(t){var n;if(t===`%AsyncFunction%`)n=y(`async function () {}`);else if(t===`%GeneratorFunction%`)n=y(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=y(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&T&&(n=T(i.prototype))}return M[t]=n,n},F={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},I=K(),L=Te(),R=I.call(k,Array.prototype.concat),B=I.call(O,Array.prototype.splice),V=I.call(k,String.prototype.replace),H=I.call(k,String.prototype.slice),W=I.call(k,RegExp.prototype.exec),fe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,he=/\\(\\)?/g,ye=function(e){var t=H(e,0,1),n=H(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return V(e,fe,function(e,t,n,i){r[r.length]=n?V(i,he,`$1`):t||e}),r},be=function(e,t){var n=e,r;if(L(F,n)&&(r=F[n],n=`%`+r[0]+`%`),L(M,n)){var i=M[n];if(i===A&&(i=P(n)),i===void 0&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(W(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ye(e),r=n.length>0?n[0]:``,i=be(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],B(n,R([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=H(p,0,1),h=H(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,L(M,a))o=M[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(b&&d+1>=n.length){var g=b(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=L(o,p),o=o[p];f&&!s&&(M[a]=o)}}return o}}),Ee=I((exports,t)=>{var n=Y(),r=Se(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}}),De=I((exports,t)=>{var n=Y(),r=Ee(),i=V(),a=z(),o=n(`%Map%`,!0),s=r(`Map.prototype.get`,!0),c=r(`Map.prototype.set`,!0),l=r(`Map.prototype.has`,!0),u=r(`Map.prototype.delete`,!0),d=r(`Map.prototype.size`,!0);t.exports=!!o&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a(`Side channel does not contain `+i(e))},delete:function(t){if(e){var n=u(e,t);return d(e)===0&&(e=void 0),n}return!1},get:function(t){if(e)return s(e,t)},has:function(t){return e?l(e,t):!1},set:function(t,n){e||=new o,c(e,t,n)}};return t}}),Oe=I((exports,t)=>{var n=Y(),r=Ee(),i=V(),a=De(),o=z(),s=n(`%WeakMap%`,!0),c=r(`WeakMap.prototype.get`,!0),l=r(`WeakMap.prototype.set`,!0),u=r(`WeakMap.prototype.has`,!0),d=r(`WeakMap.prototype.delete`,!0);t.exports=s?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new o(`Side channel does not contain `+i(e))},delete:function(n){if(s&&n&&(typeof n==`object`||typeof n==`function`)){if(e)return d(e,n)}else if(a&&t)return t.delete(n);return!1},get:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?c(e,n):t&&t.get(n)},has:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?u(e,n):!!t&&t.has(n)},set:function(n,r){s&&n&&(typeof n==`object`||typeof n==`function`)?(e||=new s,l(e,n,r)):a&&(t||=a(),t.set(n,r))}};return n}:a}),ke=I((exports,t)=>{var n=z(),r=V(),i=H(),a=De(),o=Oe(),s=o||a||i;t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n(`Side channel does not contain `+r(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||=s(),e.set(t,n)}};return t}}),Ae=I((exports,t)=>{var n=String.prototype.replace,r=/%20/g,i={RFC1738:`RFC1738`,RFC3986:`RFC3986`};t.exports={default:i.RFC3986,formatters:{RFC1738:function(e){return n.call(e,r,`+`)},RFC3986:function(e){return String(e)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986}}),je=I((exports,t)=>{var n=Ae(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push(`%`+((t<16?`0`:``)+t.toString(16)).toUpperCase());return e}(),o=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],a=0;a<n.length;++a)n[a]!==void 0&&r.push(n[a]);t.obj[t.prop]=r}}},s=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)e[r]!==void 0&&(n[r]=e[r]);return n},c=function e(t,n,a){if(!n)return t;if(typeof n!=`object`&&typeof n!=`function`){if(i(t))t.push(n);else if(t&&typeof t==`object`)(a&&(a.plainObjects||a.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!=`object`)return[t].concat(n);var o=t;return i(t)&&!i(n)&&(o=s(t,a)),i(t)&&i(n)?(n.forEach(function(n,i){if(r.call(t,i)){var o=t[i];o&&typeof o==`object`&&n&&typeof n==`object`?t[i]=e(o,n,a):t.push(n)}else t[i]=n}),t):Object.keys(n).reduce(function(t,i){var o=n[i];return r.call(t,i)?t[i]=e(t[i],o,a):t[i]=o,t},o)},l=function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},u=function(e,t,n){var r=e.replace(/\+/g,` `);if(n===`iso-8859-1`)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},d=1024,f=function(e,t,r,i,o){if(e.length===0)return e;var s=e;if(typeof e==`symbol`?s=Symbol.prototype.toString.call(e):typeof e!=`string`&&(s=String(e)),r===`iso-8859-1`)return escape(s).replace(/%u[0-9a-f]{4}/gi,function(e){return`%26%23`+parseInt(e.slice(2),16)+`%3B`});for(var c=``,l=0;l<s.length;l+=d){for(var u=s.length>=d?s.slice(l,l+d):s,f=[],p=0;p<u.length;++p){var m=u.charCodeAt(p);if(m===45||m===46||m===95||m===126||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||o===n.RFC1738&&(m===40||m===41)){f[f.length]=u.charAt(p);continue}if(m<128){f[f.length]=a[m];continue}if(m<2048){f[f.length]=a[192|m>>6]+a[128|m&63];continue}if(m<55296||m>=57344){f[f.length]=a[224|m>>12]+a[128|m>>6&63]+a[128|m&63];continue}p+=1,m=65536+((m&1023)<<10|u.charCodeAt(p)&1023),f[f.length]=a[240|m>>18]+a[128|m>>12&63]+a[128|m>>6&63]+a[128|m&63]}c+=f.join(``)}return c},p=function(e){for(var t=[{obj:{o:e},prop:`o`}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),c=0;c<s.length;++c){var l=s[c],u=a[l];typeof u==`object`&&u&&n.indexOf(u)===-1&&(t.push({obj:a,prop:l}),n.push(u))}return o(t),e},m=function(e){return Object.prototype.toString.call(e)===`[object RegExp]`},h=function(e){return!e||typeof e!=`object`?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},g=function(e,t){return[].concat(e,t)},_=function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)};t.exports={arrayToObject:s,assign:l,combine:g,compact:p,decode:u,encode:f,isBuffer:h,isRegExp:m,maybeMap:_,merge:c}}),Me=I((exports,t)=>{var n=ke(),r=je(),i=Ae(),a=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+`[]`},comma:`comma`,indices:function(e,t){return e+`[`+t+`]`},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,d=i.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:`indices`,charset:`utf-8`,charsetSentinel:!1,commaRoundTrip:!1,delimiter:`&`,encode:!0,encodeDotInKeys:!1,encoder:r.encode,encodeValuesOnly:!1,filter:void 0,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`symbol`||typeof e==`bigint`},m={},h=function e(t,i,a,o,c,u,d,h,g,_,v,y,b,x,S,C,w,T){for(var E=t,D=T,O=0,k=!1;(D=D.get(m))!==void 0&&!k;){var A=D.get(t);if(O+=1,A!==void 0){if(A===O)throw RangeError(`Cyclic object value`);k=!0}D.get(m)===void 0&&(O=0)}if(typeof _==`function`?E=_(i,E):E instanceof Date?E=b(E):a===`comma`&&s(E)&&(E=r.maybeMap(E,function(e){return e instanceof Date?b(e):e})),E===null){if(u)return g&&!C?g(i,f.encoder,w,`key`,x):i;E=``}if(p(E)||r.isBuffer(E)){if(g){var j=C?i:g(i,f.encoder,w,`key`,x);return[S(j)+`=`+S(g(E,f.encoder,w,`value`,x))]}return[S(i)+`=`+S(String(E))]}var M=[];if(E===void 0)return M;var N;if(a===`comma`&&s(E))C&&g&&(E=r.maybeMap(E,g)),N=[{value:E.length>0?E.join(`,`)||null:void 0}];else if(s(_))N=_;else{var P=Object.keys(E);N=v?P.sort(v):P}var F=h?String(i).replace(/\./g,`%2E`):String(i),I=o&&s(E)&&E.length===1?F+`[]`:F;if(c&&s(E)&&E.length===0)return I+`[]`;for(var L=0;L<N.length;++L){var R=N[L],z=typeof R==`object`&&R&&R.value!==void 0?R.value:E[R];if(!(d&&z===null)){var B=y&&h?String(R).replace(/\./g,`%2E`):String(R),V=s(E)?typeof a==`function`?a(I,B):I:I+(y?`.`+B:`[`+B+`]`);T.set(t,O);var H=n();H.set(m,T),l(M,e(z,V,a,o,c,u,d,h,a===`comma`&&C&&s(E)?null:g,_,v,y,b,x,S,C,w,H))}}return M},g=function(e){if(!e)return f;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.encodeDotInKeys!==void 0&&typeof e.encodeDotInKeys!=`boolean`)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&e.encoder!==void 0&&typeof e.encoder!=`function`)throw TypeError(`Encoder has to be a function.`);var t=e.charset||f.charset;if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);var n=i.default;if(e.format!==void 0){if(!a.call(i.formatters,e.format))throw TypeError(`Unknown format option provided.`);n=e.format}var r=i.formatters[n],c=f.filter;(typeof e.filter==`function`||s(e.filter))&&(c=e.filter);var l;if(l=e.arrayFormat in o?e.arrayFormat:`indices`in e?e.indices?`indices`:`repeat`:f.arrayFormat,`commaRoundTrip`in e&&typeof e.commaRoundTrip!=`boolean`)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var u=e.allowDots===void 0?e.encodeDotInKeys===!0?!0:f.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix==`boolean`?e.addQueryPrefix:f.addQueryPrefix,allowDots:u,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:l,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:f.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:e.delimiter===void 0?f.delimiter:e.delimiter,encode:typeof e.encode==`boolean`?e.encode:f.encode,encodeDotInKeys:typeof e.encodeDotInKeys==`boolean`?e.encodeDotInKeys:f.encodeDotInKeys,encoder:typeof e.encoder==`function`?e.encoder:f.encoder,encodeValuesOnly:typeof e.encodeValuesOnly==`boolean`?e.encodeValuesOnly:f.encodeValuesOnly,filter:c,format:n,formatter:r,serializeDate:typeof e.serializeDate==`function`?e.serializeDate:f.serializeDate,skipNulls:typeof e.skipNulls==`boolean`?e.skipNulls:f.skipNulls,sort:typeof e.sort==`function`?e.sort:null,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:f.strictNullHandling}};t.exports=function(e,t){var r=e,i=g(t),a,c;typeof i.filter==`function`?(c=i.filter,r=c(``,r)):s(i.filter)&&(c=i.filter,a=c);var u=[];if(typeof r!=`object`||!r)return``;var d=o[i.arrayFormat],f=d===`comma`&&i.commaRoundTrip;a||=Object.keys(r),i.sort&&a.sort(i.sort);for(var p=n(),m=0;m<a.length;++m){var _=a[m],v=r[_];i.skipNulls&&v===null||l(u,h(v,_,d,f,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,p))}var y=u.join(i.delimiter),b=i.addQueryPrefix===!0?`?`:``;return i.charsetSentinel&&(i.charset===`iso-8859-1`?b+=`utf8=%26%2310003%3B&`:b+=`utf8=%E2%9C%93&`),y.length>0?b+y:``}}),Ne=I((exports,t)=>{var n=je(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:`utf-8`,charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:`&`,depth:5,duplicates:`combine`,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,n){if(e&&typeof e==`string`&&t.comma&&e.indexOf(`,`)>-1)return e.split(`,`);if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw RangeError(`Array limit exceeded. Only `+t.arrayLimit+` element`+(t.arrayLimit===1?``:`s`)+` allowed in an array.`);return e},c=`utf8=%26%2310003%3B`,l=`utf8=%E2%9C%93`,u=function(e,t){var u={__proto__:null},d=t.ignoreQueryPrefix?e.replace(/^\?/,``):e;d=d.replace(/%5B/gi,`[`).replace(/%5D/gi,`]`);var f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=d.split(t.delimiter,t.throwOnLimitExceeded?f+1:f);if(t.throwOnLimitExceeded&&p.length>f)throw RangeError(`Parameter limit exceeded. Only `+f+` parameter`+(f===1?``:`s`)+` allowed.`);var m=-1,h,g=t.charset;if(t.charsetSentinel)for(h=0;h<p.length;++h)p[h].indexOf(`utf8=`)===0&&(p[h]===l?g=`utf-8`:p[h]===c&&(g=`iso-8859-1`),m=h,h=p.length);for(h=0;h<p.length;++h)if(h!==m){var _=p[h],v=_.indexOf(`]=`),y=v===-1?_.indexOf(`=`):v+1,b,x;y===-1?(b=t.decoder(_,a.decoder,g,`key`),x=t.strictNullHandling?null:``):(b=t.decoder(_.slice(0,y),a.decoder,g,`key`),x=n.maybeMap(s(_.slice(y+1),t,i(u[b])?u[b].length:0),function(e){return t.decoder(e,a.decoder,g,`value`)})),x&&t.interpretNumericEntities&&g===`iso-8859-1`&&(x=o(String(x))),_.indexOf(`[]=`)>-1&&(x=i(x)?[x]:x);var S=r.call(u,b);S&&t.duplicates===`combine`?u[b]=n.combine(u[b],x):(!S||t.duplicates===`last`)&&(u[b]=x)}return u},d=function(e,t,r,i){var a=0;if(e.length>0&&e[e.length-1]===`[]`){var o=e.slice(0,-1).join(``);a=Array.isArray(t)&&t[o]?t[o].length:0}for(var c=i?t:s(t,r,a),l=e.length-1;l>=0;--l){var u,d=e[l];if(d===`[]`&&r.parseArrays)u=r.allowEmptyArrays&&(c===``||r.strictNullHandling&&c===null)?[]:n.combine([],c);else{u=r.plainObjects?{__proto__:null}:{};var f=d.charAt(0)===`[`&&d.charAt(d.length-1)===`]`?d.slice(1,-1):d,p=r.decodeDotInKeys?f.replace(/%2E/g,`.`):f,m=parseInt(p,10);!r.parseArrays&&p===``?u={0:c}:!isNaN(m)&&d!==p&&String(m)===p&&m>=0&&r.parseArrays&&m<=r.arrayLimit?(u=[],u[m]=c):p!==`__proto__`&&(u[p]=c)}c=u}return c},f=function(e,t,n,i){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,`[$1]`):e,o=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,c=n.depth>0&&o.exec(a),l=c?a.slice(0,c.index):a,u=[];if(l){if(!n.plainObjects&&r.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var f=0;n.depth>0&&(c=s.exec(a))!==null&&f<n.depth;){if(f+=1,!n.plainObjects&&r.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(c[1])}if(c){if(n.strictDepth===!0)throw RangeError(`Input depth exceeded depth option of `+n.depth+` and strictDepth is true`);u.push(`[`+a.slice(c.index)+`]`)}return d(u,t,n,i)}},p=function(e){if(!e)return a;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.decodeDotInKeys!==void 0&&typeof e.decodeDotInKeys!=`boolean`)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!=`function`)throw TypeError(`Decoder has to be a function.`);if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);if(e.throwOnLimitExceeded!==void 0&&typeof e.throwOnLimitExceeded!=`boolean`)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=e.charset===void 0?a.charset:e.charset,r=e.duplicates===void 0?a.duplicates:e.duplicates;if(r!==`combine`&&r!==`first`&&r!==`last`)throw TypeError(`The duplicates option must be either combine, first, or last`);var i=e.allowDots===void 0?e.decodeDotInKeys===!0?!0:a.allowDots:!!e.allowDots;return{allowDots:i,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes==`boolean`?e.allowPrototypes:a.allowPrototypes,allowSparse:typeof e.allowSparse==`boolean`?e.allowSparse:a.allowSparse,arrayLimit:typeof e.arrayLimit==`number`?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:a.charsetSentinel,comma:typeof e.comma==`boolean`?e.comma:a.comma,decodeDotInKeys:typeof e.decodeDotInKeys==`boolean`?e.decodeDotInKeys:a.decodeDotInKeys,decoder:typeof e.decoder==`function`?e.decoder:a.decoder,delimiter:typeof e.delimiter==`string`||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:typeof e.depth==`number`||e.depth===!1?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities==`boolean`?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:typeof e.parameterLimit==`number`?e.parameterLimit:a.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects==`boolean`?e.plainObjects:a.plainObjects,strictDepth:typeof e.strictDepth==`boolean`?!!e.strictDepth:a.strictDepth,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded==`boolean`?e.throwOnLimitExceeded:!1}};t.exports=function(e,t){var r=p(t);if(e===``||e==null)return r.plainObjects?{__proto__:null}:{};for(var i=typeof e==`string`?u(e,r):e,a=r.plainObjects?{__proto__:null}:{},o=Object.keys(i),s=0;s<o.length;++s){var c=o[s],l=f(c,i[c],r,typeof e==`string`);a=n.merge(a,l,r)}return r.allowSparse===!0?a:n.compact(a)}}),Pe=I((exports,t)=>{var n=Me(),r=Ne(),i=Ae();t.exports={formats:i,parse:r,stringify:n}});const Fe=(e,t)=>e?!t||t.length===0?e:t.reduce((e,t)=>(delete e[t],e),{...e}):{};let Ie=function(e){return e.JSON=`application/json`,e.FORM_URLENCODED=`application/x-www-form-urlencoded`,e.FORM_DATA=`multipart/form-data`,e.TEXT=`text/plain`,e.HTML=`text/html`,e.XML=`text/xml`,e.CSV=`text/csv`,e.STREAM=`application/octet-stream`,e}({}),Le=function(e){return e[e.TIME_OUT=408]=`TIME_OUT`,e[e.ABORTED=499]=`ABORTED`,e[e.NETWORK_ERROR=599]=`NETWORK_ERROR`,e[e.BODY_NULL=502]=`BODY_NULL`,e[e.UNKNOWN=601]=`UNKNOWN`,e}({}),Re=function(e){return e.GET=`GET`,e.POST=`POST`,e.PUT=`PUT`,e.DELETE=`DELETE`,e.PATCH=`PATCH`,e.HEAD=`HEAD`,e.OPTIONS=`OPTIONS`,e}({});var ze=R(Pe()),X=(t=new WeakMap,n=new WeakMap,r=new WeakMap,i=new WeakMap,a=new WeakMap,o=new WeakMap,class extends Error{constructor({message:s,status:c,statusText:l,response:u,config:d,name:f}){super(s),e.classPrivateFieldInitSpec(this,t,void 0),e.classPrivateFieldInitSpec(this,n,void 0),e.classPrivateFieldInitSpec(this,r,void 0),e.classPrivateFieldInitSpec(this,i,void 0),e.classPrivateFieldInitSpec(this,a,void 0),e.classPrivateFieldInitSpec(this,o,void 0),e.classPrivateFieldSet2(t,this,s),e.classPrivateFieldSet2(r,this,c),e.classPrivateFieldSet2(i,this,l),e.classPrivateFieldSet2(a,this,u),e.classPrivateFieldSet2(o,this,d),e.classPrivateFieldSet2(n,this,f??s)}get message(){return e.classPrivateFieldGet2(t,this)}get status(){return e.classPrivateFieldGet2(r,this)}get statusText(){return e.classPrivateFieldGet2(i,this)}get response(){return e.classPrivateFieldGet2(a,this)}get config(){return e.classPrivateFieldGet2(o,this)}get name(){return e.classPrivateFieldGet2(n,this)}});const Be=e=>{let t=new Map;e.forEach(e=>{t.set(e.name,e)});let n=Array.from(t.values()).sort((e,t)=>(e.priority??0)-(t.priority??0)),r=[],i=[],a=[],o=[],s=[],c=[];return n.forEach(e=>{e.beforeRequest&&r.push(e.beforeRequest),e.afterResponse&&i.push(e.afterResponse),e.onError&&a.push(e.onError),e.onFinally&&o.push(e.onFinally),e.transformStreamChunk&&s.push(e.transformStreamChunk),e.beforeStream&&c.push(e.beforeStream)}),{beforeRequestPlugins:r,afterResponsePlugins:i,errorPlugins:a,finallyPlugins:o,beforeStreamPlugins:c,transformStreamChunkPlugins:s}},Ve=(e,t,n=`repeat`)=>{if(t){let r=ze.default.stringify(t,{arrayFormat:n});r&&(e=e.includes(`?`)?`${e}&${r}`:`${e}?${r}`)}return e},He=(e={},t={})=>{let n=e instanceof Headers?e:new Headers(e),r=e=>{e instanceof Headers||(e=new Headers(e)),e.forEach((e,t)=>{n.set(t,e)})};return r(t),n},Ue=[`PATCH`,`POST`,`PUT`],We=[`GET`,`HEAD`,`OPTIONS`,`DELETE`],Ge=(e,t,n,r=`repeat`)=>{if(!e)return null;if(e instanceof FormData)return e;let i=null;if(Ue.includes(t.toUpperCase())){let t=new Headers(n||{}),a=t.get(`Content-Type`)||Ie.JSON;if(a.includes(Ie.JSON))i=JSON.stringify(e);else if(a.includes(Ie.FORM_URLENCODED))i=ze.default.stringify(e,{arrayFormat:r});else if(a.includes(Ie.FORM_DATA)){let t=new FormData;if(!(e instanceof FormData)&&typeof e==`object`){let n=e;Object.keys(n).forEach(e=>{n.prototype.hasOwnProperty.call(e)&&t.append(e,n[e])}),i=t}}}return We.includes(t.toUpperCase())&&(i=null),i};var Ke=(s=new WeakMap,c=new WeakMap,l=new WeakMap,u=new WeakMap,d=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,h=new WeakMap,g=new WeakSet,class t{constructor(t){e.classPrivateMethodInitSpec(this,g),e.classPrivateFieldInitSpec(this,s,void 0),e.classPrivateFieldInitSpec(this,c,void 0),e.classPrivateFieldInitSpec(this,l,void 0),e.classPrivateFieldInitSpec(this,u,void 0),e.classPrivateFieldInitSpec(this,d,!1),e.classPrivateFieldInitSpec(this,f,null),e.classPrivateFieldInitSpec(this,p,[]),e.classPrivateFieldInitSpec(this,m,`json`),e.classPrivateFieldInitSpec(this,h,void 0),e.classPrivateFieldSet2(h,this,t);let{plugins:n=[],controller:r,url:i,baseURL:a=``,params:o,data:_,qsArrayFormat:v=`repeat`,withCredentials:y,extra:b,method:x=`GET`,headers:S}=t;e.classPrivateFieldSet2(c,this,r??new AbortController),e.classPrivateFieldSet2(s,this,Be(n)),e.classPrivateFieldSet2(l,this,{url:i,baseURL:a,params:o,data:_,withCredentials:y,extra:b,method:x,headers:S,qsArrayFormat:v}),e.classPrivateFieldSet2(u,this,e.assertClassBrand(g,this,qe).call(this,t))}json(){return e.classPrivateFieldSet2(f,this,Q.call(e.assertClassBrand(g,this)).then(e=>e.json()).then(t=>(e.classPrivateFieldSet2(m,this,`json`),e.assertClassBrand(g,this,Z).call(this,t))).catch(t=>(e.classPrivateFieldSet2(m,this,`json`),e.assertClassBrand(g,this,Ye).call(this,t)))),e.classPrivateFieldGet2(f,this)}lazyFinally(t){return e.classPrivateFieldGet2(f,this)?e.classPrivateFieldGet2(f,this).finally(()=>{for(let t of e.classPrivateFieldGet2(p,this))t();e.classPrivateFieldSet2(p,this,[])}):(t&&e.classPrivateFieldGet2(p,this).push(t),null)}then(t,n){return Xe.call(e.assertClassBrand(g,this)).then(async n=>t?.call(this,await e.assertClassBrand(g,this,Z).call(this,n)),async t=>n?.call(this,await e.assertClassBrand(g,this,Ye).call(this,t)))}catch(t){return Xe.call(e.assertClassBrand(g,this)).catch(t)}finally(t){return Xe.call(e.assertClassBrand(g,this)).finally(t)}abort(){e.classPrivateFieldGet2(c,this).abort()}blob(){return e.classPrivateFieldSet2(f,this,Q.call(e.assertClassBrand(g,this)).then(e=>e.blob()).then(t=>(e.classPrivateFieldSet2(m,this,`blob`),e.assertClassBrand(g,this,Z).call(this,t)))),e.classPrivateFieldGet2(f,this)}text(){return e.classPrivateFieldSet2(f,this,Q.call(e.assertClassBrand(g,this)).then(e=>e.text()).then(t=>(e.classPrivateFieldSet2(m,this,`text`),e.assertClassBrand(g,this,Z).call(this,t)))),e.classPrivateFieldGet2(f,this).finally(this.lazyFinally.bind(this)),e.classPrivateFieldGet2(f,this)}arrayBuffer(){return e.classPrivateFieldSet2(f,this,Q.call(e.assertClassBrand(g,this)).then(e=>e.arrayBuffer()).then(t=>(e.classPrivateFieldSet2(m,this,`arrayBuffer`),e.assertClassBrand(g,this,Z).call(this,t)))),e.classPrivateFieldGet2(f,this).finally(this.lazyFinally.bind(this)),e.classPrivateFieldGet2(f,this)}formData(){return e.classPrivateFieldSet2(f,this,Q.call(e.assertClassBrand(g,this)).then(e=>e.formData()).then(t=>(e.classPrivateFieldSet2(m,this,`formData`),e.assertClassBrand(g,this,Z).call(this,t)))),e.classPrivateFieldGet2(f,this).finally(this.lazyFinally.bind(this)),e.classPrivateFieldGet2(f,this)}bytes(){return e.classPrivateFieldSet2(f,this,Q.call(e.assertClassBrand(g,this)).then(e=>e.bytes()).then(t=>(e.classPrivateFieldSet2(m,this,`bytes`),e.assertClassBrand(g,this,Z).call(this,t)))),e.classPrivateFieldGet2(f,this).finally(this.lazyFinally.bind(this)),e.classPrivateFieldGet2(f,this)}async*stream(){var t;let n=(t=await Q.call(e.assertClassBrand(g,this)))?.body;if(!n)throw Error(`Response body is null`);for(let t of e.classPrivateFieldGet2(s,this).beforeStreamPlugins)n=await t(n,e.classPrivateFieldGet2(l,this));let r=n.getReader();if(!r)throw Error(`Response body reader is null`);try{for(;;){let{done:t,value:n}=await r.read();if(t)break;let i={source:n,result:n,error:null};try{for(let t of e.classPrivateFieldGet2(s,this).transformStreamChunkPlugins)i=await t(i,e.classPrivateFieldGet2(l,this));if(i.result&&(Ze(i.result)||Qe(i.result)))for await(let e of i.result){let t={source:i.source,result:e,error:null};yield t}else yield i}catch(e){i.error=e,i.result=null,yield i}}}finally{r.releaseLock()}}retry(){let{controller:n,...r}=e.classPrivateFieldGet2(h,this);return new t(r)}get response(){return Q.call(e.assertClassBrand(g,this))}});function qe({timeout:t}){return new Promise(async(n,r)=>{let i=e.classPrivateFieldGet2(l,this),{beforeRequestPlugins:a}=e.classPrivateFieldGet2(s,this);for(let e of a)i=await e(i);let o=Ve(i.baseURL+i.url,i.params,i.qsArrayFormat),u=Ge(i.data,i.method,i.headers,i.qsArrayFormat),f=Fe(i??{},[`baseURL`,`data`,`extra`,`headers`,`method`,`params`,`url`,`withCredentials`]),p={...f,method:i.method,headers:i.headers,signal:e.classPrivateFieldGet2(c,this).signal,credentials:i.withCredentials?`include`:`omit`,body:u},m=fetch(o,p),h=[m],_=null;if(t){let n=new Promise(n=>{_=setTimeout(()=>{var t;e.classPrivateFieldSet2(d,this,!0),(t=e.classPrivateFieldGet2(c,this))?.abort()},t)});h.push(n)}try{let t=await Promise.race(h);return t?(t.ok&&n(t),r(new X({message:`Fail Request`,status:t.status,statusText:t.statusText,config:e.classPrivateFieldGet2(l,this),name:`Fail Request`}))):r(new X({message:`NETWORK_ERROR`,status:Le.NETWORK_ERROR,statusText:`Network Error`,config:e.classPrivateFieldGet2(l,this),name:`Network Error`}))}catch(t){r(await e.assertClassBrand(g,this,Ye).call(this,t))}finally{_&&clearTimeout(_)}})}async function Je(t){return t instanceof X?t:t instanceof TypeError?t.name===`AbortError`?e.classPrivateFieldGet2(d,this)?new X({message:`Request timeout`,status:Le.TIME_OUT,statusText:`Request timeout`,config:e.classPrivateFieldGet2(l,this),name:`Request timeout`,response:await Q.call(e.assertClassBrand(g,this))}):new X({message:`Request aborted`,status:Le.ABORTED,statusText:`Request aborted`,config:e.classPrivateFieldGet2(l,this),name:`Request aborted`,response:await Q.call(e.assertClassBrand(g,this))}):new X({message:t.message,status:Le.NETWORK_ERROR,statusText:`Unknown Request Error`,config:e.classPrivateFieldGet2(l,this),name:t.name,response:await Q.call(e.assertClassBrand(g,this))}):new X({message:t?.message??`Unknown Request Error`,status:Le.UNKNOWN,statusText:`Unknown Request Error`,config:e.classPrivateFieldGet2(l,this),name:`Unknown Request Error`,response:await Q.call(e.assertClassBrand(g,this))})}async function Ye(t){let n=await e.assertClassBrand(g,this,Je).call(this,t);for(let t of e.classPrivateFieldGet2(s,this).errorPlugins)n=await t(n,e.classPrivateFieldGet2(l,this));return n}function Xe(){return e.classPrivateFieldGet2(f,this)?e.classPrivateFieldGet2(f,this):Q.call(e.assertClassBrand(g,this))}async function Z(t){let n=e.classPrivateFieldGet2(s,this).afterResponsePlugins,r={config:e.classPrivateFieldGet2(l,this),response:await Q.call(e.assertClassBrand(g,this)).then(e=>e.clone()),responseType:e.classPrivateFieldGet2(m,this),controller:e.classPrivateFieldGet2(c,this),result:t};for(let t of n)r=await t(r,e.classPrivateFieldGet2(l,this));return r.result}function Q(){return e.classPrivateFieldGet2(u,this).then(e=>e.clone())}const Ze=e=>e[Symbol.toStringTag]===`Generator`&&typeof e.next==`function`&&typeof e.return==`function`&&typeof e.throw==`function`&&typeof e[Symbol.iterator]==`function`,Qe=e=>e[Symbol.toStringTag]===`AsyncGenerator`&&typeof e.next==`function`&&typeof e.return==`function`&&typeof e.throw==`function`&&typeof e[Symbol.asyncIterator]==`function`,$e=e=>new Ke(e);var et=(_=new WeakMap,v=new WeakMap,y=new WeakMap,b=new WeakMap,x=new WeakMap,S=new WeakMap,C=new WeakSet,class{constructor({timeout:t=0,baseURL:n=``,headers:r={},plugins:i=[],withCredentials:a=!1}){e.classPrivateMethodInitSpec(this,C),e.classPrivateFieldInitSpec(this,_,void 0),e.classPrivateFieldInitSpec(this,v,void 0),e.classPrivateFieldInitSpec(this,y,void 0),e.classPrivateFieldInitSpec(this,b,[]),e.classPrivateFieldInitSpec(this,x,[]),e.classPrivateFieldInitSpec(this,S,void 0),e.classPrivateFieldSet2(_,this,t),e.classPrivateFieldSet2(v,this,n),e.classPrivateFieldSet2(y,this,r),e.classPrivateFieldSet2(x,this,i),e.classPrivateFieldSet2(S,this,a),this.request=this.request.bind(this),this.get=this.get.bind(this),this.head=this.head.bind(this),this.options=this.options.bind(this),this.delete=this.delete.bind(this),this.post=this.post.bind(this),this.put=this.put.bind(this),this.patch=this.patch.bind(this),this.abortAll=this.abortAll.bind(this),this.use=this.use.bind(this)}use(t){return e.classPrivateFieldGet2(x,this).push(t),this}request(t,{timeout:n,headers:r,method:i=`GET`,params:a={},data:o,qsArrayFormat:s,withCredentials:c,extra:l}={}){let u=new AbortController;e.classPrivateFieldGet2(b,this).push(u);let d=$e({url:t,baseURL:e.classPrivateFieldGet2(v,this),timeout:n??e.classPrivateFieldGet2(_,this),plugins:e.classPrivateFieldGet2(x,this),headers:He(e.classPrivateFieldGet2(y,this),r),controller:u,method:i,params:a,data:o,qsArrayFormat:s,withCredentials:c??e.classPrivateFieldGet2(S,this),extra:l});return d.lazyFinally(()=>{e.classPrivateFieldSet2(b,this,e.classPrivateFieldGet2(b,this).filter(e=>e!==u))}),d}get(t,n={},r){return e.assertClassBrand(C,this,tt).call(this,t,n,{...r,method:`GET`})}head(t,n={},r){return e.assertClassBrand(C,this,tt).call(this,t,n,{...r,method:`HEAD`})}options(t,n={},r){return e.assertClassBrand(C,this,tt).call(this,t,n,{...r,method:`OPTIONS`})}delete(e,t){return this.request(e,{...t,method:`DELETE`})}post(t,n,r){return e.assertClassBrand(C,this,nt).call(this,t,n,{...r,method:`POST`})}upload(t,n,r){let i=new FormData;for(let e in n)if(Object.prototype.hasOwnProperty.call(n,e)){let t=n[e];t instanceof File||t instanceof Blob?i.append(e,t):i.append(e,String(t))}return e.assertClassBrand(C,this,nt).call(this,t,i,{...r,method:`POST`})}put(t,n,r){return e.assertClassBrand(C,this,nt).call(this,t,n,{...r,method:`PUT`})}patch(t,n,r){return e.assertClassBrand(C,this,nt).call(this,t,n,{...r,method:`PATCH`})}abortAll(){e.classPrivateFieldGet2(b,this).forEach(e=>e.abort()),e.classPrivateFieldSet2(b,this,[])}});function tt(e,t={},n={}){return this.request(e,{...n,params:t})}function nt(e,t={},n={}){return this.request(e,{...n,data:t})}const rt=(e,t={})=>$e({url:e,baseURL:``,...t}),it=(e,t,n={})=>rt(e,{...n,params:t}),at=(e,t=null,n={})=>rt(e,{...n,data:t}),ot=rt,st=(e,t={},n)=>it(e,t,{...n,method:`GET`}),ct=(e,t={},n)=>it(e,t,{...n,method:`HEAD`}),lt=(e,t={},n)=>it(e,t,{...n,method:`OPTIONS`}),ut=(e,t)=>rt(e,{...t,method:`DELETE`}),dt=(e,t,n)=>at(e,t,{...n,method:`POST`}),ft=(e,t,n)=>{let r=new FormData;for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)){let n=t[e];n instanceof File||n instanceof Blob?r.append(e,n):r.append(e,String(n))}return at(e,r,{...n,method:`POST`})},pt=(e,t,n)=>at(e,t,{...n,method:`PUT`}),mt=(e,t,n)=>at(e,t,{...n,method:`PATCH`}),$=rt;$.create=e=>{let t=new et(e),n=t.request.bind(void 0);return Object.assign(n,et.prototype,t),n},$.get=st,$.head=ct,$.options=lt,$.delete=ut,$.post=dt,$.put=pt,$.patch=mt,$.upload=ft;var ht=$,gt=(w=new WeakMap,T=new WeakMap,E=new WeakMap,D=new WeakMap,O=new WeakMap,k=new WeakMap,class extends Error{constructor({message:t,status:n,statusText:r,response:i,config:a,name:o}){super(t),e.classPrivateFieldInitSpec(this,w,void 0),e.classPrivateFieldInitSpec(this,T,void 0),e.classPrivateFieldInitSpec(this,E,void 0),e.classPrivateFieldInitSpec(this,D,void 0),e.classPrivateFieldInitSpec(this,O,void 0),e.classPrivateFieldInitSpec(this,k,void 0),e.classPrivateFieldSet2(w,this,t),e.classPrivateFieldSet2(E,this,n),e.classPrivateFieldSet2(D,this,r),e.classPrivateFieldSet2(O,this,i),e.classPrivateFieldSet2(k,this,a),e.classPrivateFieldSet2(T,this,o??t)}get message(){return e.classPrivateFieldGet2(w,this)}get status(){return e.classPrivateFieldGet2(E,this)}get statusText(){return e.classPrivateFieldGet2(D,this)}get response(){return e.classPrivateFieldGet2(O,this)}get config(){return e.classPrivateFieldGet2(k,this)}get name(){return e.classPrivateFieldGet2(T,this)}}),_t=ht;export{Ie as ContentType,Re as Method,gt as ResponseError,Le as StatusCode,_t as default,ut as del,st as get,ct as head,lt as options,mt as patch,dt as post,pt as put,ot as request,ft as upload};
|
|
4
|
+
`+t.prev}function Te(e,t){var n=ne(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=W(e,i)?t(e[i],e):``}var a=typeof A==`function`?A(e):[],o;if(M){o={};for(var s=0;s<a.length;s++)o[`$`+a[s]]=a[s]}for(var c in e){if(!W(e,c)||n&&String(Number(c))===c&&c<e.length||M&&o[`$`+c]instanceof Symbol)continue;w.call(/[^\w$]/,c)?r.push(t(c,e)+`: `+t(e[c],e)):r.push(c+`: `+t(e[c],e))}if(typeof A==`function`)for(var l=0;l<a.length;l++)P.call(e,a[l])&&r.push(`[`+t(a[l])+`]: `+t(e[a[l]],e));return r}}),H=I((exports,t)=>{var n=V(),r=z(),i=function(e,t,n){for(var r=e,i;(i=r.next)!=null;r=i)if(i.key===t)return r.next=i.next,n||(i.next=e.next,e.next=i),i},a=function(e,t){if(e){var n=i(e,t);return n&&n.value}},o=function(e,t,n){var r=i(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},s=function(e,t){return e?!!i(e,t):!1},c=function(e,t){if(e)return i(e,t,!0)};t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r(`Side channel does not contain `+n(e))},delete:function(t){var n=e&&e.next,r=c(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return a(e,t)},has:function(t){return s(e,t)},set:function(t,n){e||={next:void 0},o(e,t,n)}};return t}}),ee=I((exports,t)=>{t.exports=Object}),te=I((exports,t)=>{t.exports=Error}),U=I((exports,t)=>{t.exports=EvalError}),ne=I((exports,t)=>{t.exports=RangeError}),re=I((exports,t)=>{t.exports=ReferenceError}),ie=I((exports,t)=>{t.exports=SyntaxError}),ae=I((exports,t)=>{t.exports=URIError}),oe=I((exports,t)=>{t.exports=Math.abs}),se=I((exports,t)=>{t.exports=Math.floor}),ce=I((exports,t)=>{t.exports=Math.max}),le=I((exports,t)=>{t.exports=Math.min}),ue=I((exports,t)=>{t.exports=Math.pow}),de=I((exports,t)=>{t.exports=Math.round}),W=I((exports,t)=>{t.exports=Number.isNaN||function(e){return e!==e}}),G=I((exports,t)=>{var n=W();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}}),fe=I((exports,t)=>{t.exports=Object.getOwnPropertyDescriptor}),pe=I((exports,t)=>{var n=fe();if(n)try{n([],`length`)}catch{n=null}t.exports=n}),me=I((exports,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n}),he=I((exports,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}}),ge=I((exports,t)=>{var n=typeof Symbol<`u`&&Symbol,r=he();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}}),_e=I((exports,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null}),ve=I((exports,t)=>{var n=ee();t.exports=n.getPrototypeOf||null}),ye=I((exports,t)=>{var n=`Function.prototype.bind called on incompatible `,r=Object.prototype.toString,i=Math.max,a=`[object Function]`,o=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},s=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},c=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||r.apply(t)!==a)throw TypeError(n+t);for(var l=s(arguments,1),u,d=function(){if(this instanceof u){var n=t.apply(this,o(l,arguments));return Object(n)===n?n:this}return t.apply(e,o(l,arguments))},f=i(0,t.length-l.length),p=[],m=0;m<f;m++)p[m]=`$`+m;if(u=Function(`binder`,`return function (`+c(p,`,`)+`){ return binder.apply(this,arguments); }`)(d),t.prototype){var h=function(){};h.prototype=t.prototype,u.prototype=new h,h.prototype=null}return u}}),K=I((exports,t)=>{var n=ye();t.exports=Function.prototype.bind||n}),q=I((exports,t)=>{t.exports=Function.prototype.call}),J=I((exports,t)=>{t.exports=Function.prototype.apply}),be=I((exports,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply}),xe=I((exports,t)=>{var n=K(),r=J(),i=q(),a=be();t.exports=a||n.call(i,r)}),Se=I((exports,t)=>{var n=K(),r=z(),i=q(),a=xe();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}}),Ce=I((exports,t)=>{var n=Se(),r=pe(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`?function(e){return s(e==null?e:o(e))}:!1}),we=I((exports,t)=>{var n=_e(),r=ve(),i=Ce();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null}),Te=I((exports,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty,i=K();t.exports=i.call(n,r)}),Y=I((exports,t)=>{var n,r=ee(),i=te(),a=U(),o=ne(),s=re(),c=ie(),l=z(),u=ae(),d=oe(),f=se(),p=ce(),m=le(),h=ue(),g=de(),_=G(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=pe(),x=me(),S=function(){throw new l},C=b?function(){try{return arguments.callee,S}catch{try{return b(arguments,`callee`).get}catch{return S}}}():S,w=ge()(),T=we(),E=ve(),D=_e(),O=J(),k=q(),A={},j=typeof Uint8Array>`u`||!T?n:T(Uint8Array),M={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&T?T(T([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!w||!T?n:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!w||!T?n:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&T?T(``[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":C,"%TypedArray%":j,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":E,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(T)try{null.error}catch(e){var N=T(T(e));M[`%Error.prototype%`]=N}var P=function e(t){var n;if(t===`%AsyncFunction%`)n=y(`async function () {}`);else if(t===`%GeneratorFunction%`)n=y(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=y(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&T&&(n=T(i.prototype))}return M[t]=n,n},F={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},I=K(),L=Te(),R=I.call(k,Array.prototype.concat),B=I.call(O,Array.prototype.splice),V=I.call(k,String.prototype.replace),H=I.call(k,String.prototype.slice),W=I.call(k,RegExp.prototype.exec),fe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,he=/\\(\\)?/g,ye=function(e){var t=H(e,0,1),n=H(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return V(e,fe,function(e,t,n,i){r[r.length]=n?V(i,he,`$1`):t||e}),r},be=function(e,t){var n=e,r;if(L(F,n)&&(r=F[n],n=`%`+r[0]+`%`),L(M,n)){var i=M[n];if(i===A&&(i=P(n)),i===void 0&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(W(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ye(e),r=n.length>0?n[0]:``,i=be(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],B(n,R([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=H(p,0,1),h=H(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,L(M,a))o=M[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(b&&d+1>=n.length){var g=b(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=L(o,p),o=o[p];f&&!s&&(M[a]=o)}}return o}}),Ee=I((exports,t)=>{var n=Y(),r=Se(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}}),De=I((exports,t)=>{var n=Y(),r=Ee(),i=V(),a=z(),o=n(`%Map%`,!0),s=r(`Map.prototype.get`,!0),c=r(`Map.prototype.set`,!0),l=r(`Map.prototype.has`,!0),u=r(`Map.prototype.delete`,!0),d=r(`Map.prototype.size`,!0);t.exports=!!o&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a(`Side channel does not contain `+i(e))},delete:function(t){if(e){var n=u(e,t);return d(e)===0&&(e=void 0),n}return!1},get:function(t){if(e)return s(e,t)},has:function(t){return e?l(e,t):!1},set:function(t,n){e||=new o,c(e,t,n)}};return t}}),Oe=I((exports,t)=>{var n=Y(),r=Ee(),i=V(),a=De(),o=z(),s=n(`%WeakMap%`,!0),c=r(`WeakMap.prototype.get`,!0),l=r(`WeakMap.prototype.set`,!0),u=r(`WeakMap.prototype.has`,!0),d=r(`WeakMap.prototype.delete`,!0);t.exports=s?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new o(`Side channel does not contain `+i(e))},delete:function(n){if(s&&n&&(typeof n==`object`||typeof n==`function`)){if(e)return d(e,n)}else if(a&&t)return t.delete(n);return!1},get:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?c(e,n):t&&t.get(n)},has:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?u(e,n):!!t&&t.has(n)},set:function(n,r){s&&n&&(typeof n==`object`||typeof n==`function`)?(e||=new s,l(e,n,r)):a&&(t||=a(),t.set(n,r))}};return n}:a}),ke=I((exports,t)=>{var n=z(),r=V(),i=H(),a=De(),o=Oe(),s=o||a||i;t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n(`Side channel does not contain `+r(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||=s(),e.set(t,n)}};return t}}),Ae=I((exports,t)=>{var n=String.prototype.replace,r=/%20/g,i={RFC1738:`RFC1738`,RFC3986:`RFC3986`};t.exports={default:i.RFC3986,formatters:{RFC1738:function(e){return n.call(e,r,`+`)},RFC3986:function(e){return String(e)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986}}),je=I((exports,t)=>{var n=Ae(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push(`%`+((t<16?`0`:``)+t.toString(16)).toUpperCase());return e}(),o=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],a=0;a<n.length;++a)n[a]!==void 0&&r.push(n[a]);t.obj[t.prop]=r}}},s=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)e[r]!==void 0&&(n[r]=e[r]);return n},c=function e(t,n,a){if(!n)return t;if(typeof n!=`object`&&typeof n!=`function`){if(i(t))t.push(n);else if(t&&typeof t==`object`)(a&&(a.plainObjects||a.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!=`object`)return[t].concat(n);var o=t;return i(t)&&!i(n)&&(o=s(t,a)),i(t)&&i(n)?(n.forEach(function(n,i){if(r.call(t,i)){var o=t[i];o&&typeof o==`object`&&n&&typeof n==`object`?t[i]=e(o,n,a):t.push(n)}else t[i]=n}),t):Object.keys(n).reduce(function(t,i){var o=n[i];return r.call(t,i)?t[i]=e(t[i],o,a):t[i]=o,t},o)},l=function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},u=function(e,t,n){var r=e.replace(/\+/g,` `);if(n===`iso-8859-1`)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},d=1024,f=function(e,t,r,i,o){if(e.length===0)return e;var s=e;if(typeof e==`symbol`?s=Symbol.prototype.toString.call(e):typeof e!=`string`&&(s=String(e)),r===`iso-8859-1`)return escape(s).replace(/%u[0-9a-f]{4}/gi,function(e){return`%26%23`+parseInt(e.slice(2),16)+`%3B`});for(var c=``,l=0;l<s.length;l+=d){for(var u=s.length>=d?s.slice(l,l+d):s,f=[],p=0;p<u.length;++p){var m=u.charCodeAt(p);if(m===45||m===46||m===95||m===126||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||o===n.RFC1738&&(m===40||m===41)){f[f.length]=u.charAt(p);continue}if(m<128){f[f.length]=a[m];continue}if(m<2048){f[f.length]=a[192|m>>6]+a[128|m&63];continue}if(m<55296||m>=57344){f[f.length]=a[224|m>>12]+a[128|m>>6&63]+a[128|m&63];continue}p+=1,m=65536+((m&1023)<<10|u.charCodeAt(p)&1023),f[f.length]=a[240|m>>18]+a[128|m>>12&63]+a[128|m>>6&63]+a[128|m&63]}c+=f.join(``)}return c},p=function(e){for(var t=[{obj:{o:e},prop:`o`}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),c=0;c<s.length;++c){var l=s[c],u=a[l];typeof u==`object`&&u&&n.indexOf(u)===-1&&(t.push({obj:a,prop:l}),n.push(u))}return o(t),e},m=function(e){return Object.prototype.toString.call(e)===`[object RegExp]`},h=function(e){return!e||typeof e!=`object`?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},g=function(e,t){return[].concat(e,t)},_=function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)};t.exports={arrayToObject:s,assign:l,combine:g,compact:p,decode:u,encode:f,isBuffer:h,isRegExp:m,maybeMap:_,merge:c}}),Me=I((exports,t)=>{var n=ke(),r=je(),i=Ae(),a=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+`[]`},comma:`comma`,indices:function(e,t){return e+`[`+t+`]`},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,d=i.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:`indices`,charset:`utf-8`,charsetSentinel:!1,commaRoundTrip:!1,delimiter:`&`,encode:!0,encodeDotInKeys:!1,encoder:r.encode,encodeValuesOnly:!1,filter:void 0,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`symbol`||typeof e==`bigint`},m={},h=function e(t,i,a,o,c,u,d,h,g,_,v,y,b,x,S,C,w,T){for(var E=t,D=T,O=0,k=!1;(D=D.get(m))!==void 0&&!k;){var A=D.get(t);if(O+=1,A!==void 0){if(A===O)throw RangeError(`Cyclic object value`);k=!0}D.get(m)===void 0&&(O=0)}if(typeof _==`function`?E=_(i,E):E instanceof Date?E=b(E):a===`comma`&&s(E)&&(E=r.maybeMap(E,function(e){return e instanceof Date?b(e):e})),E===null){if(u)return g&&!C?g(i,f.encoder,w,`key`,x):i;E=``}if(p(E)||r.isBuffer(E)){if(g){var j=C?i:g(i,f.encoder,w,`key`,x);return[S(j)+`=`+S(g(E,f.encoder,w,`value`,x))]}return[S(i)+`=`+S(String(E))]}var M=[];if(E===void 0)return M;var N;if(a===`comma`&&s(E))C&&g&&(E=r.maybeMap(E,g)),N=[{value:E.length>0?E.join(`,`)||null:void 0}];else if(s(_))N=_;else{var P=Object.keys(E);N=v?P.sort(v):P}var F=h?String(i).replace(/\./g,`%2E`):String(i),I=o&&s(E)&&E.length===1?F+`[]`:F;if(c&&s(E)&&E.length===0)return I+`[]`;for(var L=0;L<N.length;++L){var R=N[L],z=typeof R==`object`&&R&&R.value!==void 0?R.value:E[R];if(!(d&&z===null)){var B=y&&h?String(R).replace(/\./g,`%2E`):String(R),V=s(E)?typeof a==`function`?a(I,B):I:I+(y?`.`+B:`[`+B+`]`);T.set(t,O);var H=n();H.set(m,T),l(M,e(z,V,a,o,c,u,d,h,a===`comma`&&C&&s(E)?null:g,_,v,y,b,x,S,C,w,H))}}return M},g=function(e){if(!e)return f;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.encodeDotInKeys!==void 0&&typeof e.encodeDotInKeys!=`boolean`)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&e.encoder!==void 0&&typeof e.encoder!=`function`)throw TypeError(`Encoder has to be a function.`);var t=e.charset||f.charset;if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);var n=i.default;if(e.format!==void 0){if(!a.call(i.formatters,e.format))throw TypeError(`Unknown format option provided.`);n=e.format}var r=i.formatters[n],c=f.filter;(typeof e.filter==`function`||s(e.filter))&&(c=e.filter);var l;if(l=e.arrayFormat in o?e.arrayFormat:`indices`in e?e.indices?`indices`:`repeat`:f.arrayFormat,`commaRoundTrip`in e&&typeof e.commaRoundTrip!=`boolean`)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var u=e.allowDots===void 0?e.encodeDotInKeys===!0?!0:f.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix==`boolean`?e.addQueryPrefix:f.addQueryPrefix,allowDots:u,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:l,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:f.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:e.delimiter===void 0?f.delimiter:e.delimiter,encode:typeof e.encode==`boolean`?e.encode:f.encode,encodeDotInKeys:typeof e.encodeDotInKeys==`boolean`?e.encodeDotInKeys:f.encodeDotInKeys,encoder:typeof e.encoder==`function`?e.encoder:f.encoder,encodeValuesOnly:typeof e.encodeValuesOnly==`boolean`?e.encodeValuesOnly:f.encodeValuesOnly,filter:c,format:n,formatter:r,serializeDate:typeof e.serializeDate==`function`?e.serializeDate:f.serializeDate,skipNulls:typeof e.skipNulls==`boolean`?e.skipNulls:f.skipNulls,sort:typeof e.sort==`function`?e.sort:null,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:f.strictNullHandling}};t.exports=function(e,t){var r=e,i=g(t),a,c;typeof i.filter==`function`?(c=i.filter,r=c(``,r)):s(i.filter)&&(c=i.filter,a=c);var u=[];if(typeof r!=`object`||!r)return``;var d=o[i.arrayFormat],f=d===`comma`&&i.commaRoundTrip;a||=Object.keys(r),i.sort&&a.sort(i.sort);for(var p=n(),m=0;m<a.length;++m){var _=a[m],v=r[_];i.skipNulls&&v===null||l(u,h(v,_,d,f,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,p))}var y=u.join(i.delimiter),b=i.addQueryPrefix===!0?`?`:``;return i.charsetSentinel&&(i.charset===`iso-8859-1`?b+=`utf8=%26%2310003%3B&`:b+=`utf8=%E2%9C%93&`),y.length>0?b+y:``}}),Ne=I((exports,t)=>{var n=je(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:`utf-8`,charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:`&`,depth:5,duplicates:`combine`,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,n){if(e&&typeof e==`string`&&t.comma&&e.indexOf(`,`)>-1)return e.split(`,`);if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw RangeError(`Array limit exceeded. Only `+t.arrayLimit+` element`+(t.arrayLimit===1?``:`s`)+` allowed in an array.`);return e},c=`utf8=%26%2310003%3B`,l=`utf8=%E2%9C%93`,u=function(e,t){var u={__proto__:null},d=t.ignoreQueryPrefix?e.replace(/^\?/,``):e;d=d.replace(/%5B/gi,`[`).replace(/%5D/gi,`]`);var f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=d.split(t.delimiter,t.throwOnLimitExceeded?f+1:f);if(t.throwOnLimitExceeded&&p.length>f)throw RangeError(`Parameter limit exceeded. Only `+f+` parameter`+(f===1?``:`s`)+` allowed.`);var m=-1,h,g=t.charset;if(t.charsetSentinel)for(h=0;h<p.length;++h)p[h].indexOf(`utf8=`)===0&&(p[h]===l?g=`utf-8`:p[h]===c&&(g=`iso-8859-1`),m=h,h=p.length);for(h=0;h<p.length;++h)if(h!==m){var _=p[h],v=_.indexOf(`]=`),y=v===-1?_.indexOf(`=`):v+1,b,x;y===-1?(b=t.decoder(_,a.decoder,g,`key`),x=t.strictNullHandling?null:``):(b=t.decoder(_.slice(0,y),a.decoder,g,`key`),x=n.maybeMap(s(_.slice(y+1),t,i(u[b])?u[b].length:0),function(e){return t.decoder(e,a.decoder,g,`value`)})),x&&t.interpretNumericEntities&&g===`iso-8859-1`&&(x=o(String(x))),_.indexOf(`[]=`)>-1&&(x=i(x)?[x]:x);var S=r.call(u,b);S&&t.duplicates===`combine`?u[b]=n.combine(u[b],x):(!S||t.duplicates===`last`)&&(u[b]=x)}return u},d=function(e,t,r,i){var a=0;if(e.length>0&&e[e.length-1]===`[]`){var o=e.slice(0,-1).join(``);a=Array.isArray(t)&&t[o]?t[o].length:0}for(var c=i?t:s(t,r,a),l=e.length-1;l>=0;--l){var u,d=e[l];if(d===`[]`&&r.parseArrays)u=r.allowEmptyArrays&&(c===``||r.strictNullHandling&&c===null)?[]:n.combine([],c);else{u=r.plainObjects?{__proto__:null}:{};var f=d.charAt(0)===`[`&&d.charAt(d.length-1)===`]`?d.slice(1,-1):d,p=r.decodeDotInKeys?f.replace(/%2E/g,`.`):f,m=parseInt(p,10);!r.parseArrays&&p===``?u={0:c}:!isNaN(m)&&d!==p&&String(m)===p&&m>=0&&r.parseArrays&&m<=r.arrayLimit?(u=[],u[m]=c):p!==`__proto__`&&(u[p]=c)}c=u}return c},f=function(e,t,n,i){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,`[$1]`):e,o=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,c=n.depth>0&&o.exec(a),l=c?a.slice(0,c.index):a,u=[];if(l){if(!n.plainObjects&&r.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var f=0;n.depth>0&&(c=s.exec(a))!==null&&f<n.depth;){if(f+=1,!n.plainObjects&&r.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(c[1])}if(c){if(n.strictDepth===!0)throw RangeError(`Input depth exceeded depth option of `+n.depth+` and strictDepth is true`);u.push(`[`+a.slice(c.index)+`]`)}return d(u,t,n,i)}},p=function(e){if(!e)return a;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.decodeDotInKeys!==void 0&&typeof e.decodeDotInKeys!=`boolean`)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!=`function`)throw TypeError(`Decoder has to be a function.`);if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);if(e.throwOnLimitExceeded!==void 0&&typeof e.throwOnLimitExceeded!=`boolean`)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=e.charset===void 0?a.charset:e.charset,r=e.duplicates===void 0?a.duplicates:e.duplicates;if(r!==`combine`&&r!==`first`&&r!==`last`)throw TypeError(`The duplicates option must be either combine, first, or last`);var i=e.allowDots===void 0?e.decodeDotInKeys===!0?!0:a.allowDots:!!e.allowDots;return{allowDots:i,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes==`boolean`?e.allowPrototypes:a.allowPrototypes,allowSparse:typeof e.allowSparse==`boolean`?e.allowSparse:a.allowSparse,arrayLimit:typeof e.arrayLimit==`number`?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:a.charsetSentinel,comma:typeof e.comma==`boolean`?e.comma:a.comma,decodeDotInKeys:typeof e.decodeDotInKeys==`boolean`?e.decodeDotInKeys:a.decodeDotInKeys,decoder:typeof e.decoder==`function`?e.decoder:a.decoder,delimiter:typeof e.delimiter==`string`||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:typeof e.depth==`number`||e.depth===!1?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities==`boolean`?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:typeof e.parameterLimit==`number`?e.parameterLimit:a.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects==`boolean`?e.plainObjects:a.plainObjects,strictDepth:typeof e.strictDepth==`boolean`?!!e.strictDepth:a.strictDepth,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded==`boolean`?e.throwOnLimitExceeded:!1}};t.exports=function(e,t){var r=p(t);if(e===``||e==null)return r.plainObjects?{__proto__:null}:{};for(var i=typeof e==`string`?u(e,r):e,a=r.plainObjects?{__proto__:null}:{},o=Object.keys(i),s=0;s<o.length;++s){var c=o[s],l=f(c,i[c],r,typeof e==`string`);a=n.merge(a,l,r)}return r.allowSparse===!0?a:n.compact(a)}}),Pe=I((exports,t)=>{var n=Me(),r=Ne(),i=Ae();t.exports={formats:i,parse:r,stringify:n}});const Fe=(e,t)=>e?!t||t.length===0?e:t.reduce((e,t)=>(delete e[t],e),{...e}):{};let Ie=function(e){return e.JSON=`application/json`,e.FORM_URLENCODED=`application/x-www-form-urlencoded`,e.FORM_DATA=`multipart/form-data`,e.TEXT=`text/plain`,e.HTML=`text/html`,e.XML=`text/xml`,e.CSV=`text/csv`,e.STREAM=`application/octet-stream`,e}({}),Le=function(e){return e[e.TIME_OUT=408]=`TIME_OUT`,e[e.ABORTED=499]=`ABORTED`,e[e.NETWORK_ERROR=599]=`NETWORK_ERROR`,e[e.BODY_NULL=502]=`BODY_NULL`,e[e.UNKNOWN=601]=`UNKNOWN`,e}({}),Re=function(e){return e.GET=`GET`,e.POST=`POST`,e.PUT=`PUT`,e.DELETE=`DELETE`,e.PATCH=`PATCH`,e.HEAD=`HEAD`,e.OPTIONS=`OPTIONS`,e}({});var ze=R(Pe()),X=function(e){return e.JSON=`json`,e.BLOB=`blob`,e.TEXT=`text`,e.ARRAY_BUFFER=`arrayBuffer`,e.FORM_DATA=`formData`,e.BYTES=`bytes`,e}(X||{}),Z=(t=new WeakMap,n=new WeakMap,r=new WeakMap,i=new WeakMap,a=new WeakMap,o=new WeakMap,class extends Error{constructor({message:s,status:c,statusText:l,response:u,config:d,name:f}){super(s),e.classPrivateFieldInitSpec(this,t,void 0),e.classPrivateFieldInitSpec(this,n,void 0),e.classPrivateFieldInitSpec(this,r,void 0),e.classPrivateFieldInitSpec(this,i,void 0),e.classPrivateFieldInitSpec(this,a,void 0),e.classPrivateFieldInitSpec(this,o,void 0),e.classPrivateFieldSet2(t,this,s),e.classPrivateFieldSet2(r,this,c),e.classPrivateFieldSet2(i,this,l),e.classPrivateFieldSet2(a,this,u),e.classPrivateFieldSet2(o,this,d),e.classPrivateFieldSet2(n,this,f??s)}get message(){return e.classPrivateFieldGet2(t,this)}get status(){return e.classPrivateFieldGet2(r,this)}get statusText(){return e.classPrivateFieldGet2(i,this)}get response(){return e.classPrivateFieldGet2(a,this)}get config(){return e.classPrivateFieldGet2(o,this)}get name(){return e.classPrivateFieldGet2(n,this)}});const Be=e=>{let t=new Map;e.forEach(e=>{t.set(e.name,e)});let n=Array.from(t.values()).sort((e,t)=>(e.priority??0)-(t.priority??0)),r=[],i=[],a=[],o=[],s=[],c=[];return n.forEach(e=>{e.beforeRequest&&r.push(e.beforeRequest),e.afterResponse&&i.push(e.afterResponse),e.onError&&a.push(e.onError),e.onFinally&&o.push(e.onFinally),e.transformStreamChunk&&s.push(e.transformStreamChunk),e.beforeStream&&c.push(e.beforeStream)}),{beforeRequestPlugins:r,afterResponsePlugins:i,errorPlugins:a,finallyPlugins:o,beforeStreamPlugins:c,transformStreamChunkPlugins:s}},Ve=(e,t,n=`repeat`)=>{if(t){let r=ze.default.stringify(t,{arrayFormat:n});r&&(e=e.includes(`?`)?`${e}&${r}`:`${e}?${r}`)}return e},He=(e={},t={})=>{let n=e instanceof Headers?e:new Headers(e),r=e=>{e instanceof Headers||(e=new Headers(e)),e.forEach((e,t)=>{n.set(t,e)})};return r(t),n},Ue=[`PATCH`,`POST`,`PUT`],We=[`GET`,`HEAD`,`OPTIONS`,`DELETE`],Ge=(e,t,n,r=`repeat`)=>{if(!e)return null;if(e instanceof FormData)return e;let i=null;if(Ue.includes(t.toUpperCase())){let t=new Headers(n||{}),a=t.get(`Content-Type`)||Ie.JSON;if(a.includes(Ie.JSON))i=JSON.stringify(e);else if(a.includes(Ie.FORM_URLENCODED))i=ze.default.stringify(e,{arrayFormat:r});else if(a.includes(Ie.FORM_DATA)){let t=new FormData;if(!(e instanceof FormData)&&typeof e==`object`){let n=e;Object.keys(n).forEach(e=>{n.prototype.hasOwnProperty.call(e)&&t.append(e,n[e])}),i=t}}}return We.includes(t.toUpperCase())&&(i=null),i};var Ke=(s=new WeakMap,c=new WeakMap,l=new WeakMap,u=new WeakMap,d=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,h=new WeakMap,g=new WeakSet,class t{constructor(t){e.classPrivateMethodInitSpec(this,g),e.classPrivateFieldInitSpec(this,s,void 0),e.classPrivateFieldInitSpec(this,c,void 0),e.classPrivateFieldInitSpec(this,l,void 0),e.classPrivateFieldInitSpec(this,u,void 0),e.classPrivateFieldInitSpec(this,d,!1),e.classPrivateFieldInitSpec(this,f,null),e.classPrivateFieldInitSpec(this,p,[]),e.classPrivateFieldInitSpec(this,m,`json`),e.classPrivateFieldInitSpec(this,h,void 0),e.classPrivateFieldSet2(h,this,t);let{plugins:n=[],controller:r,url:i,baseURL:a=``,params:o,data:_,qsArrayFormat:v=`repeat`,withCredentials:y,extra:b,method:x=`GET`,headers:S}=t;e.classPrivateFieldSet2(c,this,r??new AbortController),e.classPrivateFieldSet2(s,this,Be(n)),e.classPrivateFieldSet2(l,this,{url:i,baseURL:a,params:o,data:_,withCredentials:y,extra:b,method:x,headers:S,qsArrayFormat:v}),e.classPrivateFieldSet2(u,this,e.assertClassBrand(g,this,qe).call(this,t))}json(){return e.assertClassBrand(g,this,Qe).call(this,X.JSON,Q.call(e.assertClassBrand(g,this)).then(e=>e.json()))}lazyFinally(t){return e.classPrivateFieldGet2(f,this)?e.classPrivateFieldGet2(f,this).finally(()=>{for(let t of e.classPrivateFieldGet2(p,this))t();e.classPrivateFieldSet2(p,this,[])}):(t&&e.classPrivateFieldGet2(p,this).push(t),null)}then(t,n){return Xe.call(e.assertClassBrand(g,this)).then(async n=>t?.call(this,await e.assertClassBrand(g,this,Ze).call(this,n)),async t=>n?.call(this,await e.assertClassBrand(g,this,Ye).call(this,t)))}catch(t){return Xe.call(e.assertClassBrand(g,this)).catch(t)}finally(t){return Xe.call(e.assertClassBrand(g,this)).finally(t)}abort(){e.classPrivateFieldGet2(c,this).abort()}blob(){return e.assertClassBrand(g,this,Qe).call(this,X.BLOB,Q.call(e.assertClassBrand(g,this)).then(e=>e.blob()))}text(){return e.assertClassBrand(g,this,Qe).call(this,X.TEXT,Q.call(e.assertClassBrand(g,this)).then(e=>e.text()))}arrayBuffer(){return e.assertClassBrand(g,this,Qe).call(this,X.ARRAY_BUFFER,Q.call(e.assertClassBrand(g,this)).then(e=>e.arrayBuffer()))}formData(){return e.assertClassBrand(g,this,Qe).call(this,X.FORM_DATA,Q.call(e.assertClassBrand(g,this)).then(e=>e.formData()))}bytes(){return e.assertClassBrand(g,this,Qe).call(this,X.BYTES,Q.call(e.assertClassBrand(g,this)).then(e=>e.bytes()))}async*stream(){var t;let n=(t=await Q.call(e.assertClassBrand(g,this)))?.body;if(!n)throw Error(`Response body is null`);for(let t of e.classPrivateFieldGet2(s,this).beforeStreamPlugins)n=await t(n,e.classPrivateFieldGet2(l,this));let r=n.getReader();if(!r)throw Error(`Response body reader is null`);try{for(;;){let{done:t,value:n}=await r.read();if(t)break;let i={source:n,result:n,error:null};try{for(let t of e.classPrivateFieldGet2(s,this).transformStreamChunkPlugins)i=await t(i,e.classPrivateFieldGet2(l,this));if(i.result&&($e(i.result)||et(i.result)))for await(let e of i.result){let t={source:i.source,result:e,error:null};yield t}else yield i}catch(e){i.error=e,i.result=null,yield i}}}catch(t){return e.assertClassBrand(g,this,Ye).call(this,t)}finally{r.releaseLock()}}retry(){let{controller:n,...r}=e.classPrivateFieldGet2(h,this);return new t(r)}get response(){return Q.call(e.assertClassBrand(g,this))}});function qe({timeout:t}){return new Promise(async(n,r)=>{let i=e.classPrivateFieldGet2(l,this),{beforeRequestPlugins:a}=e.classPrivateFieldGet2(s,this);for(let e of a)i=await e(i);let o=Ve(i.baseURL+i.url,i.params,i.qsArrayFormat),u=Ge(i.data,i.method,i.headers,i.qsArrayFormat),f=Fe(i??{},[`baseURL`,`data`,`extra`,`headers`,`method`,`params`,`url`,`withCredentials`]),p={...f,method:i.method,headers:i.headers,signal:e.classPrivateFieldGet2(c,this).signal,credentials:i.withCredentials?`include`:`omit`,body:u},m=fetch(o,p),h=[m],_=null;if(t){let n=new Promise(n=>{_=setTimeout(()=>{var t;e.classPrivateFieldSet2(d,this,!0),(t=e.classPrivateFieldGet2(c,this))?.abort()},t)});h.push(n)}let v=null;try{let t=await Promise.race(h);t?(t.ok&&n(t),v=new Z({message:`Fail Request`,status:t.status,statusText:t.statusText,config:e.classPrivateFieldGet2(l,this),name:`Fail Request`})):v=new Z({message:`NETWORK_ERROR`,status:Le.NETWORK_ERROR,statusText:`Network Error`,config:e.classPrivateFieldGet2(l,this),name:`Network Error`})}catch(e){v=e}finally{v&&r(await e.assertClassBrand(g,this,Ye).call(this,v)),_&&clearTimeout(_)}})}async function Je(t){return t instanceof Z?t:t instanceof TypeError?t.name===`AbortError`?e.classPrivateFieldGet2(d,this)?new Z({message:`Request timeout`,status:Le.TIME_OUT,statusText:`Request timeout`,config:e.classPrivateFieldGet2(l,this),name:`Request timeout`,response:await Q.call(e.assertClassBrand(g,this))}):new Z({message:`Request aborted`,status:Le.ABORTED,statusText:`Request aborted`,config:e.classPrivateFieldGet2(l,this),name:`Request aborted`,response:await Q.call(e.assertClassBrand(g,this))}):new Z({message:t.message,status:Le.NETWORK_ERROR,statusText:`Unknown Request Error`,config:e.classPrivateFieldGet2(l,this),name:t.name,response:await Q.call(e.assertClassBrand(g,this))}):new Z({message:t?.message??`Unknown Request Error`,status:Le.UNKNOWN,statusText:`Unknown Request Error`,config:e.classPrivateFieldGet2(l,this),name:`Unknown Request Error`,response:await Q.call(e.assertClassBrand(g,this))})}async function Ye(t){let n=await e.assertClassBrand(g,this,Je).call(this,t);for(let t of e.classPrivateFieldGet2(s,this).errorPlugins)n=await t(n,e.classPrivateFieldGet2(l,this));return n}function Xe(){return e.classPrivateFieldGet2(f,this)?e.classPrivateFieldGet2(f,this):Q.call(e.assertClassBrand(g,this))}async function Ze(t){let n=e.classPrivateFieldGet2(s,this).afterResponsePlugins,r={config:e.classPrivateFieldGet2(l,this),response:await Q.call(e.assertClassBrand(g,this)).then(e=>e.clone()),responseType:e.classPrivateFieldGet2(m,this),controller:e.classPrivateFieldGet2(c,this),result:t};for(let t of n)r=await t(r,e.classPrivateFieldGet2(l,this));return r.result}function Q(){return e.classPrivateFieldGet2(u,this).then(e=>e.clone())}function Qe(t,n){return e.classPrivateFieldSet2(f,this,n.then(n=>(e.classPrivateFieldSet2(m,this,t),e.assertClassBrand(g,this,Ze).call(this,n))).catch(n=>(e.classPrivateFieldSet2(m,this,t),e.assertClassBrand(g,this,Ye).call(this,n)))),e.classPrivateFieldGet2(f,this).finally(this.lazyFinally.bind(this)),e.classPrivateFieldGet2(f,this)}const $e=e=>e[Symbol.toStringTag]===`Generator`&&typeof e.next==`function`&&typeof e.return==`function`&&typeof e.throw==`function`&&typeof e[Symbol.iterator]==`function`,et=e=>e[Symbol.toStringTag]===`AsyncGenerator`&&typeof e.next==`function`&&typeof e.return==`function`&&typeof e.throw==`function`&&typeof e[Symbol.asyncIterator]==`function`,tt=e=>new Ke(e);var nt=(_=new WeakMap,v=new WeakMap,y=new WeakMap,b=new WeakMap,x=new WeakMap,S=new WeakMap,C=new WeakSet,class{constructor({timeout:t=0,baseURL:n=``,headers:r={},plugins:i=[],withCredentials:a=!1}){e.classPrivateMethodInitSpec(this,C),e.classPrivateFieldInitSpec(this,_,void 0),e.classPrivateFieldInitSpec(this,v,void 0),e.classPrivateFieldInitSpec(this,y,void 0),e.classPrivateFieldInitSpec(this,b,[]),e.classPrivateFieldInitSpec(this,x,[]),e.classPrivateFieldInitSpec(this,S,void 0),e.classPrivateFieldSet2(_,this,t),e.classPrivateFieldSet2(v,this,n),e.classPrivateFieldSet2(y,this,r),e.classPrivateFieldSet2(x,this,i),e.classPrivateFieldSet2(S,this,a),this.request=this.request.bind(this),this.get=this.get.bind(this),this.head=this.head.bind(this),this.options=this.options.bind(this),this.delete=this.delete.bind(this),this.post=this.post.bind(this),this.put=this.put.bind(this),this.patch=this.patch.bind(this),this.abortAll=this.abortAll.bind(this),this.use=this.use.bind(this)}use(t){return e.classPrivateFieldGet2(x,this).push(t),this}request(t,{timeout:n,headers:r,method:i=`GET`,params:a={},data:o,qsArrayFormat:s,withCredentials:c,extra:l}={}){let u=new AbortController;e.classPrivateFieldGet2(b,this).push(u);let d=tt({url:t,baseURL:e.classPrivateFieldGet2(v,this),timeout:n??e.classPrivateFieldGet2(_,this),plugins:e.classPrivateFieldGet2(x,this),headers:He(e.classPrivateFieldGet2(y,this),r),controller:u,method:i,params:a,data:o,qsArrayFormat:s,withCredentials:c??e.classPrivateFieldGet2(S,this),extra:l});return d.lazyFinally(()=>{e.classPrivateFieldSet2(b,this,e.classPrivateFieldGet2(b,this).filter(e=>e!==u))}),d}get(t,n={},r){return e.assertClassBrand(C,this,rt).call(this,t,n,{...r,method:`GET`})}head(t,n={},r){return e.assertClassBrand(C,this,rt).call(this,t,n,{...r,method:`HEAD`})}options(t,n={},r){return e.assertClassBrand(C,this,rt).call(this,t,n,{...r,method:`OPTIONS`})}delete(e,t){return this.request(e,{...t,method:`DELETE`})}post(t,n,r){return e.assertClassBrand(C,this,it).call(this,t,n,{...r,method:`POST`})}upload(t,n,r){let i=new FormData;for(let e in n)if(Object.prototype.hasOwnProperty.call(n,e)){let t=n[e];t instanceof File||t instanceof Blob?i.append(e,t):i.append(e,String(t))}return e.assertClassBrand(C,this,it).call(this,t,i,{...r,method:`POST`})}put(t,n,r){return e.assertClassBrand(C,this,it).call(this,t,n,{...r,method:`PUT`})}patch(t,n,r){return e.assertClassBrand(C,this,it).call(this,t,n,{...r,method:`PATCH`})}abortAll(){e.classPrivateFieldGet2(b,this).forEach(e=>e.abort()),e.classPrivateFieldSet2(b,this,[])}});function rt(e,t={},n={}){return this.request(e,{...n,params:t})}function it(e,t={},n={}){return this.request(e,{...n,data:t})}const at=(e,t={})=>tt({url:e,baseURL:``,...t}),ot=(e,t,n={})=>at(e,{...n,params:t}),st=(e,t=null,n={})=>at(e,{...n,data:t}),ct=at,lt=(e,t={},n)=>ot(e,t,{...n,method:`GET`}),ut=(e,t={},n)=>ot(e,t,{...n,method:`HEAD`}),dt=(e,t={},n)=>ot(e,t,{...n,method:`OPTIONS`}),ft=(e,t)=>at(e,{...t,method:`DELETE`}),pt=(e,t,n)=>st(e,t,{...n,method:`POST`}),mt=(e,t,n)=>{let r=new FormData;for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)){let n=t[e];n instanceof File||n instanceof Blob?r.append(e,n):r.append(e,String(n))}return st(e,r,{...n,method:`POST`})},ht=(e,t,n)=>st(e,t,{...n,method:`PUT`}),gt=(e,t,n)=>st(e,t,{...n,method:`PATCH`}),$=at;$.create=e=>{let t=new nt(e),n=t.request.bind(void 0);return Object.assign(n,nt.prototype,t),n},$.get=lt,$.head=ut,$.options=dt,$.delete=ft,$.post=pt,$.put=ht,$.patch=gt,$.upload=mt;var _t=$,vt=(w=new WeakMap,T=new WeakMap,E=new WeakMap,D=new WeakMap,O=new WeakMap,k=new WeakMap,class extends Error{constructor({message:t,status:n,statusText:r,response:i,config:a,name:o}){super(t),e.classPrivateFieldInitSpec(this,w,void 0),e.classPrivateFieldInitSpec(this,T,void 0),e.classPrivateFieldInitSpec(this,E,void 0),e.classPrivateFieldInitSpec(this,D,void 0),e.classPrivateFieldInitSpec(this,O,void 0),e.classPrivateFieldInitSpec(this,k,void 0),e.classPrivateFieldSet2(w,this,t),e.classPrivateFieldSet2(E,this,n),e.classPrivateFieldSet2(D,this,r),e.classPrivateFieldSet2(O,this,i),e.classPrivateFieldSet2(k,this,a),e.classPrivateFieldSet2(T,this,o??t)}get message(){return e.classPrivateFieldGet2(w,this)}get status(){return e.classPrivateFieldGet2(E,this)}get statusText(){return e.classPrivateFieldGet2(D,this)}get response(){return e.classPrivateFieldGet2(O,this)}get config(){return e.classPrivateFieldGet2(k,this)}get name(){return e.classPrivateFieldGet2(T,this)}}),yt=_t;export{Ie as ContentType,Re as Method,vt as ResponseError,Le as StatusCode,yt as default,ft as del,lt as get,ut as head,dt as options,gt as patch,pt as post,ht as put,ct as request,mt as upload};
|
package/dist/umd/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports):typeof define==`function`&&define.amd?define([`exports`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e[`hook-fetch`]={}))})(this,function(exports){var t=function(exports){function t(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function n(e,n,r){return e.set(t(e,n),r),r}function r(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function i(e,t,n){r(e,t),t.set(e,n)}function a(e,t){r(e,t),t.add(e)}function o(e,n){return e.get(t(e,n))}return exports.assertClassBrand=t,exports.classPrivateFieldGet2=o,exports.classPrivateFieldInitSpec=i,exports.classPrivateFieldSet2=n,exports.classPrivateMethodInitSpec=a,exports}({}),n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A;Object.defineProperty(exports,`__esModule`,{value:!0});var j=Object.create,M=Object.defineProperty,N=Object.getOwnPropertyDescriptor,P=Object.getOwnPropertyNames,F=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty,L=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),R=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=P(t),a=0,o=i.length,s;a<o;a++)s=i[a],!I.call(e,s)&&s!==n&&M(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=N(t,s))||r.enumerable});return e},z=(e,t,n)=>(n=e==null?{}:j(F(e)),R(t||!e||!e.__esModule?M(n,`default`,{value:e,enumerable:!0}):n,e)),B=L((exports,t)=>{t.exports=TypeError}),V=L((exports,t)=>{t.exports={}}),H=L((exports,t)=>{var n=typeof Map==`function`&&Map.prototype,r=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,`size`):null,i=n&&r&&typeof r.get==`function`?r.get:null,a=n&&Map.prototype.forEach,o=typeof Set==`function`&&Set.prototype,s=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,`size`):null,c=o&&s&&typeof s.get==`function`?s.get:null,l=o&&Set.prototype.forEach,u=typeof WeakMap==`function`&&WeakMap.prototype,d=u?WeakMap.prototype.has:null,f=typeof WeakSet==`function`&&WeakSet.prototype,p=f?WeakSet.prototype.has:null,m=typeof WeakRef==`function`&&WeakRef.prototype,h=m?WeakRef.prototype.deref:null,g=Boolean.prototype.valueOf,_=Object.prototype.toString,v=Function.prototype.toString,y=String.prototype.match,b=String.prototype.slice,x=String.prototype.replace,S=String.prototype.toUpperCase,C=String.prototype.toLowerCase,w=RegExp.prototype.test,T=Array.prototype.concat,E=Array.prototype.join,D=Array.prototype.slice,O=Math.floor,k=typeof BigInt==`function`?BigInt.prototype.valueOf:null,A=Object.getOwnPropertySymbols,j=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?Symbol.prototype.toString:null,M=typeof Symbol==`function`&&typeof Symbol.iterator==`object`,N=typeof Symbol==`function`&&Symbol.toStringTag&&(typeof Symbol.toStringTag===M||`symbol`)?Symbol.toStringTag:null,P=Object.prototype.propertyIsEnumerable,F=(typeof Reflect==`function`?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function I(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||w.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e==`number`){var r=e<0?-O(-e):O(e);if(r!==e){var i=String(r),a=b.call(t,i.length+1);return x.call(i,n,`$&_`)+`.`+x.call(x.call(a,/([0-9]{3})/g,`$&_`),/_$/,``)}}return x.call(t,n,`$&_`)}var L=V(),R=L.custom,z=le(R)?R:null,B={__proto__:null,double:`"`,single:`'`},H={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};t.exports=function e(t,n,r,o){var s=n||{};if(
|
|
2
|
-
`)>=0)return!1;return!0}function
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports):typeof define==`function`&&define.amd?define([`exports`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e[`hook-fetch`]={}))})(this,function(exports){var t=function(exports){function t(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function n(e,n,r){return e.set(t(e,n),r),r}function r(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function i(e,t,n){r(e,t),t.set(e,n)}function a(e,t){r(e,t),t.add(e)}function o(e,n){return e.get(t(e,n))}return exports.assertClassBrand=t,exports.classPrivateFieldGet2=o,exports.classPrivateFieldInitSpec=i,exports.classPrivateFieldSet2=n,exports.classPrivateMethodInitSpec=a,exports}({}),n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A;Object.defineProperty(exports,`__esModule`,{value:!0});var j=Object.create,M=Object.defineProperty,N=Object.getOwnPropertyDescriptor,P=Object.getOwnPropertyNames,F=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty,L=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),R=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=P(t),a=0,o=i.length,s;a<o;a++)s=i[a],!I.call(e,s)&&s!==n&&M(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=N(t,s))||r.enumerable});return e},z=(e,t,n)=>(n=e==null?{}:j(F(e)),R(t||!e||!e.__esModule?M(n,`default`,{value:e,enumerable:!0}):n,e)),B=L((exports,t)=>{t.exports=TypeError}),V=L((exports,t)=>{t.exports={}}),H=L((exports,t)=>{var n=typeof Map==`function`&&Map.prototype,r=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,`size`):null,i=n&&r&&typeof r.get==`function`?r.get:null,a=n&&Map.prototype.forEach,o=typeof Set==`function`&&Set.prototype,s=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,`size`):null,c=o&&s&&typeof s.get==`function`?s.get:null,l=o&&Set.prototype.forEach,u=typeof WeakMap==`function`&&WeakMap.prototype,d=u?WeakMap.prototype.has:null,f=typeof WeakSet==`function`&&WeakSet.prototype,p=f?WeakSet.prototype.has:null,m=typeof WeakRef==`function`&&WeakRef.prototype,h=m?WeakRef.prototype.deref:null,g=Boolean.prototype.valueOf,_=Object.prototype.toString,v=Function.prototype.toString,y=String.prototype.match,b=String.prototype.slice,x=String.prototype.replace,S=String.prototype.toUpperCase,C=String.prototype.toLowerCase,w=RegExp.prototype.test,T=Array.prototype.concat,E=Array.prototype.join,D=Array.prototype.slice,O=Math.floor,k=typeof BigInt==`function`?BigInt.prototype.valueOf:null,A=Object.getOwnPropertySymbols,j=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?Symbol.prototype.toString:null,M=typeof Symbol==`function`&&typeof Symbol.iterator==`object`,N=typeof Symbol==`function`&&Symbol.toStringTag&&(typeof Symbol.toStringTag===M||`symbol`)?Symbol.toStringTag:null,P=Object.prototype.propertyIsEnumerable,F=(typeof Reflect==`function`?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function I(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||w.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e==`number`){var r=e<0?-O(-e):O(e);if(r!==e){var i=String(r),a=b.call(t,i.length+1);return x.call(i,n,`$&_`)+`.`+x.call(x.call(a,/([0-9]{3})/g,`$&_`),/_$/,``)}}return x.call(t,n,`$&_`)}var L=V(),R=L.custom,z=le(R)?R:null,B={__proto__:null,double:`"`,single:`'`},H={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};t.exports=function e(t,n,r,o){var s=n||{};if(W(s,`quoteStyle`)&&!W(B,s.quoteStyle))throw TypeError(`option "quoteStyle" must be "single" or "double"`);if(W(s,`maxStringLength`)&&(typeof s.maxStringLength==`number`?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=W(s,`customInspect`)?s.customInspect:!0;if(typeof u!=`boolean`&&u!==`symbol`)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(s,`indent`)&&s.indent!==null&&s.indent!==` `&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(s,`numericSeparator`)&&typeof s.numericSeparator!=`boolean`)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=s.numericSeparator;if(t===void 0)return`undefined`;if(t===null)return`null`;if(typeof t==`boolean`)return t?`true`:`false`;if(typeof t==`string`)return be(t,s);if(typeof t==`number`){if(t===0)return 1/0/t>0?`0`:`-0`;var f=String(t);return d?I(t,f):f}if(typeof t==`bigint`){var p=String(t)+`n`;return d?I(t,p):p}var m=s.depth===void 0?5:s.depth;if(r===void 0&&(r=0),r>=m&&m>0&&typeof t==`object`)return ne(t)?`[Array]`:`[Object]`;var h=we(s,r);if(o===void 0)o=[];else if(pe(o,t)>=0)return`[Circular]`;function _(t,n,i){if(n&&(o=D.call(o),o.push(n)),i){var a={depth:s.depth};return W(s,`quoteStyle`)&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,o)}return e(t,s,r+1,o)}if(typeof t==`function`&&!ie(t)){var v=fe(t),y=Ee(t,_);return`[Function`+(v?`: `+v:` (anonymous)`)+`]`+(y.length>0?` { `+E.call(y,`, `)+` }`:``)}if(le(t)){var S=M?x.call(String(t),/^(Symbol\(.*\))_[^)]*$/,`$1`):j.call(t);return typeof t==`object`&&!M?q(S):S}if(ye(t)){for(var w=`<`+C.call(String(t.nodeName)),O=t.attributes||[],A=0;A<O.length;A++)w+=` `+O[A].name+`=`+ee(te(O[A].value),`double`,s);return w+=`>`,t.childNodes&&t.childNodes.length&&(w+=`...`),w+=`</`+C.call(String(t.nodeName))+`>`,w}if(ne(t)){if(t.length===0)return`[]`;var R=Ee(t,_);return h&&!Ce(R)?`[`+Te(R,h)+`]`:`[ `+E.call(R,`, `)+` ]`}if(ae(t)){var V=Ee(t,_);return!(`cause`in Error.prototype)&&`cause`in t&&!P.call(t,`cause`)?`{ [`+String(t)+`] `+E.call(T.call(`[cause]: `+_(t.cause),V),`, `)+` }`:V.length===0?`[`+String(t)+`]`:`{ [`+String(t)+`] `+E.call(V,`, `)+` }`}if(typeof t==`object`&&u){if(z&&typeof t[z]==`function`&&L)return L(t,{depth:m-r});if(u!==`symbol`&&typeof t.inspect==`function`)return t.inspect()}if(me(t)){var H=[];return a&&a.call(t,function(e,n){H.push(_(n,t,!0)+` => `+_(e,t))}),Se(`Map`,i.call(t),H,h)}if(_e(t)){var U=[];return l&&l.call(t,function(e){U.push(_(e,t))}),Se(`Set`,c.call(t),U,h)}if(he(t))return xe(`WeakMap`);if(ve(t))return xe(`WeakSet`);if(ge(t))return xe(`WeakRef`);if(se(t))return q(_(Number(t)));if(ue(t))return q(_(k.call(t)));if(ce(t))return q(g.call(t));if(oe(t))return q(_(String(t)));if(typeof window<`u`&&t===window)return`{ [object Window] }`;if(typeof globalThis<`u`&&t===globalThis||typeof global<`u`&&t===global)return`{ [object globalThis] }`;if(!re(t)&&!ie(t)){var de=Ee(t,_),K=F?F(t)===Object.prototype:t instanceof Object||t.constructor===Object,De=t instanceof Object?``:`null prototype`,Oe=!K&&N&&Object(t)===t&&N in t?b.call(G(t),8,-1):De?`Object`:``,ke=K||typeof t.constructor!=`function`?``:t.constructor.name?t.constructor.name+` `:``,Ae=ke+(Oe||De?`[`+E.call(T.call([],Oe||[],De||[]),`: `)+`] `:``);return de.length===0?Ae+`{}`:h?Ae+`{`+Te(de,h)+`}`:Ae+`{ `+E.call(de,`, `)+` }`}return String(t)};function ee(e,t,n){var r=n.quoteStyle||t,i=B[r];return i+e+i}function te(e){return x.call(String(e),/"/g,`"`)}function U(e){return!N||!(typeof e==`object`&&(N in e||e[N]!==void 0))}function ne(e){return G(e)===`[object Array]`&&U(e)}function re(e){return G(e)===`[object Date]`&&U(e)}function ie(e){return G(e)===`[object RegExp]`&&U(e)}function ae(e){return G(e)===`[object Error]`&&U(e)}function oe(e){return G(e)===`[object String]`&&U(e)}function se(e){return G(e)===`[object Number]`&&U(e)}function ce(e){return G(e)===`[object Boolean]`&&U(e)}function le(e){if(M)return e&&typeof e==`object`&&e instanceof Symbol;if(typeof e==`symbol`)return!0;if(!e||typeof e!=`object`||!j)return!1;try{return j.call(e),!0}catch{}return!1}function ue(e){if(!e||typeof e!=`object`||!k)return!1;try{return k.call(e),!0}catch{}return!1}var de=Object.prototype.hasOwnProperty||function(e){return e in this};function W(e,t){return de.call(e,t)}function G(e){return _.call(e)}function fe(e){if(e.name)return e.name;var t=y.call(v.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function pe(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function me(e){if(!i||!e||typeof e!=`object`)return!1;try{i.call(e);try{c.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function he(e){if(!d||!e||typeof e!=`object`)return!1;try{d.call(e,d);try{p.call(e,p)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function ge(e){if(!h||!e||typeof e!=`object`)return!1;try{return h.call(e),!0}catch{}return!1}function _e(e){if(!c||!e||typeof e!=`object`)return!1;try{c.call(e);try{i.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function ve(e){if(!p||!e||typeof e!=`object`)return!1;try{p.call(e,p);try{d.call(e,d)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function ye(e){return!e||typeof e!=`object`?!1:typeof HTMLElement<`u`&&e instanceof HTMLElement?!0:typeof e.nodeName==`string`&&typeof e.getAttribute==`function`}function be(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r=`... `+n+` more character`+(n>1?`s`:``);return be(b.call(e,0,t.maxStringLength),t)+r}var i=H[t.quoteStyle||`single`];i.lastIndex=0;var a=x.call(x.call(e,i,`\\$1`),/[\x00-\x1f]/g,K);return ee(a,`single`,t)}function K(e){var t=e.charCodeAt(0),n={8:`b`,9:`t`,10:`n`,12:`f`,13:`r`}[t];return n?`\\`+n:`\\x`+(t<16?`0`:``)+S.call(t.toString(16))}function q(e){return`Object(`+e+`)`}function xe(e){return e+` { ? }`}function Se(e,t,n,r){var i=r?Te(n,r):E.call(n,`, `);return e+` (`+t+`) {`+i+`}`}function Ce(e){for(var t=0;t<e.length;t++)if(pe(e[t],`
|
|
2
|
+
`)>=0)return!1;return!0}function we(e,t){var n;if(e.indent===` `)n=` `;else if(typeof e.indent==`number`&&e.indent>0)n=E.call(Array(e.indent+1),` `);else return null;return{base:n,prev:E.call(Array(t+1),n)}}function Te(e,t){if(e.length===0)return``;var n=`
|
|
3
3
|
`+t.prev+t.base;return n+E.call(e,`,`+n)+`
|
|
4
|
-
`+t.prev}function Te(e,t){var n=ne(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=G(e,i)?t(e[i],e):``}var a=typeof A==`function`?A(e):[],o;if(M){o={};for(var s=0;s<a.length;s++)o[`$`+a[s]]=a[s]}for(var c in e){if(!G(e,c)||n&&String(Number(c))===c&&c<e.length||M&&o[`$`+c]instanceof Symbol)continue;w.call(/[^\w$]/,c)?r.push(t(c,e)+`: `+t(e[c],e)):r.push(c+`: `+t(e[c],e))}if(typeof A==`function`)for(var l=0;l<a.length;l++)P.call(e,a[l])&&r.push(`[`+t(a[l])+`]: `+t(e[a[l]],e));return r}}),ee=L((exports,t)=>{var n=H(),r=B(),i=function(e,t,n){for(var r=e,i;(i=r.next)!=null;r=i)if(i.key===t)return r.next=i.next,n||(i.next=e.next,e.next=i),i},a=function(e,t){if(e){var n=i(e,t);return n&&n.value}},o=function(e,t,n){var r=i(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},s=function(e,t){return e?!!i(e,t):!1},c=function(e,t){if(e)return i(e,t,!0)};t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r(`Side channel does not contain `+n(e))},delete:function(t){var n=e&&e.next,r=c(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return a(e,t)},has:function(t){return s(e,t)},set:function(t,n){e||={next:void 0},o(e,t,n)}};return t}}),te=L((exports,t)=>{t.exports=Object}),U=L((exports,t)=>{t.exports=Error}),ne=L((exports,t)=>{t.exports=EvalError}),re=L((exports,t)=>{t.exports=RangeError}),ie=L((exports,t)=>{t.exports=ReferenceError}),ae=L((exports,t)=>{t.exports=SyntaxError}),oe=L((exports,t)=>{t.exports=URIError}),se=L((exports,t)=>{t.exports=Math.abs}),ce=L((exports,t)=>{t.exports=Math.floor}),le=L((exports,t)=>{t.exports=Math.max}),ue=L((exports,t)=>{t.exports=Math.min}),W=L((exports,t)=>{t.exports=Math.pow}),G=L((exports,t)=>{t.exports=Math.round}),K=L((exports,t)=>{t.exports=Number.isNaN||function(e){return e!==e}}),de=L((exports,t)=>{var n=K();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}}),fe=L((exports,t)=>{t.exports=Object.getOwnPropertyDescriptor}),pe=L((exports,t)=>{var n=fe();if(n)try{n([],`length`)}catch{n=null}t.exports=n}),me=L((exports,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n}),he=L((exports,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}}),ge=L((exports,t)=>{var n=typeof Symbol<`u`&&Symbol,r=he();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}}),_e=L((exports,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null}),ve=L((exports,t)=>{var n=te();t.exports=n.getPrototypeOf||null}),ye=L((exports,t)=>{var n=`Function.prototype.bind called on incompatible `,r=Object.prototype.toString,i=Math.max,a=`[object Function]`,o=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},s=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},c=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||r.apply(t)!==a)throw TypeError(n+t);for(var l=s(arguments,1),u,d=function(){if(this instanceof u){var n=t.apply(this,o(l,arguments));return Object(n)===n?n:this}return t.apply(e,o(l,arguments))},f=i(0,t.length-l.length),p=[],m=0;m<f;m++)p[m]=`$`+m;if(u=Function(`binder`,`return function (`+c(p,`,`)+`){ return binder.apply(this,arguments); }`)(d),t.prototype){var h=function(){};h.prototype=t.prototype,u.prototype=new h,h.prototype=null}return u}}),q=L((exports,t)=>{var n=ye();t.exports=Function.prototype.bind||n}),J=L((exports,t)=>{t.exports=Function.prototype.call}),be=L((exports,t)=>{t.exports=Function.prototype.apply}),xe=L((exports,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply}),Se=L((exports,t)=>{var n=q(),r=be(),i=J(),a=xe();t.exports=a||n.call(i,r)}),Ce=L((exports,t)=>{var n=q(),r=B(),i=J(),a=Se();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}}),we=L((exports,t)=>{var n=Ce(),r=pe(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`?function(e){return s(e==null?e:o(e))}:!1}),Te=L((exports,t)=>{var n=_e(),r=ve(),i=we();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null}),Ee=L((exports,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty,i=q();t.exports=i.call(n,r)}),De=L((exports,t)=>{var n,r=te(),i=U(),a=ne(),o=re(),s=ie(),c=ae(),l=B(),u=oe(),d=se(),f=ce(),p=le(),m=ue(),h=W(),g=G(),_=de(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=pe(),x=me(),S=function(){throw new l},C=b?function(){try{return arguments.callee,S}catch{try{return b(arguments,`callee`).get}catch{return S}}}():S,w=ge()(),T=Te(),E=ve(),D=_e(),O=be(),k=J(),A={},j=typeof Uint8Array>`u`||!T?n:T(Uint8Array),M={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&T?T(T([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!w||!T?n:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!w||!T?n:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&T?T(``[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":C,"%TypedArray%":j,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":E,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(T)try{null.error}catch(e){var N=T(T(e));M[`%Error.prototype%`]=N}var P=function e(t){var n;if(t===`%AsyncFunction%`)n=y(`async function () {}`);else if(t===`%GeneratorFunction%`)n=y(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=y(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&T&&(n=T(i.prototype))}return M[t]=n,n},F={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},I=q(),L=Ee(),R=I.call(k,Array.prototype.concat),z=I.call(O,Array.prototype.splice),V=I.call(k,String.prototype.replace),H=I.call(k,String.prototype.slice),ee=I.call(k,RegExp.prototype.exec),K=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,fe=/\\(\\)?/g,he=function(e){var t=H(e,0,1),n=H(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return V(e,K,function(e,t,n,i){r[r.length]=n?V(i,fe,`$1`):t||e}),r},ye=function(e,t){var n=e,r;if(L(F,n)&&(r=F[n],n=`%`+r[0]+`%`),L(M,n)){var i=M[n];if(i===A&&(i=P(n)),i===void 0&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(ee(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=he(e),r=n.length>0?n[0]:``,i=ye(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],z(n,R([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=H(p,0,1),h=H(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,L(M,a))o=M[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(b&&d+1>=n.length){var g=b(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=L(o,p),o=o[p];f&&!s&&(M[a]=o)}}return o}}),Oe=L((exports,t)=>{var n=De(),r=Ce(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}}),ke=L((exports,t)=>{var n=De(),r=Oe(),i=H(),a=B(),o=n(`%Map%`,!0),s=r(`Map.prototype.get`,!0),c=r(`Map.prototype.set`,!0),l=r(`Map.prototype.has`,!0),u=r(`Map.prototype.delete`,!0),d=r(`Map.prototype.size`,!0);t.exports=!!o&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a(`Side channel does not contain `+i(e))},delete:function(t){if(e){var n=u(e,t);return d(e)===0&&(e=void 0),n}return!1},get:function(t){if(e)return s(e,t)},has:function(t){return e?l(e,t):!1},set:function(t,n){e||=new o,c(e,t,n)}};return t}}),Ae=L((exports,t)=>{var n=De(),r=Oe(),i=H(),a=ke(),o=B(),s=n(`%WeakMap%`,!0),c=r(`WeakMap.prototype.get`,!0),l=r(`WeakMap.prototype.set`,!0),u=r(`WeakMap.prototype.has`,!0),d=r(`WeakMap.prototype.delete`,!0);t.exports=s?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new o(`Side channel does not contain `+i(e))},delete:function(n){if(s&&n&&(typeof n==`object`||typeof n==`function`)){if(e)return d(e,n)}else if(a&&t)return t.delete(n);return!1},get:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?c(e,n):t&&t.get(n)},has:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?u(e,n):!!t&&t.has(n)},set:function(n,r){s&&n&&(typeof n==`object`||typeof n==`function`)?(e||=new s,l(e,n,r)):a&&(t||=a(),t.set(n,r))}};return n}:a}),je=L((exports,t)=>{var n=B(),r=H(),i=ee(),a=ke(),o=Ae(),s=o||a||i;t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n(`Side channel does not contain `+r(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||=s(),e.set(t,n)}};return t}}),Me=L((exports,t)=>{var n=String.prototype.replace,r=/%20/g,i={RFC1738:`RFC1738`,RFC3986:`RFC3986`};t.exports={default:i.RFC3986,formatters:{RFC1738:function(e){return n.call(e,r,`+`)},RFC3986:function(e){return String(e)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986}}),Ne=L((exports,t)=>{var n=Me(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push(`%`+((t<16?`0`:``)+t.toString(16)).toUpperCase());return e}(),o=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],a=0;a<n.length;++a)n[a]!==void 0&&r.push(n[a]);t.obj[t.prop]=r}}},s=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)e[r]!==void 0&&(n[r]=e[r]);return n},c=function e(t,n,a){if(!n)return t;if(typeof n!=`object`&&typeof n!=`function`){if(i(t))t.push(n);else if(t&&typeof t==`object`)(a&&(a.plainObjects||a.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!=`object`)return[t].concat(n);var o=t;return i(t)&&!i(n)&&(o=s(t,a)),i(t)&&i(n)?(n.forEach(function(n,i){if(r.call(t,i)){var o=t[i];o&&typeof o==`object`&&n&&typeof n==`object`?t[i]=e(o,n,a):t.push(n)}else t[i]=n}),t):Object.keys(n).reduce(function(t,i){var o=n[i];return r.call(t,i)?t[i]=e(t[i],o,a):t[i]=o,t},o)},l=function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},u=function(e,t,n){var r=e.replace(/\+/g,` `);if(n===`iso-8859-1`)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},d=1024,f=function(e,t,r,i,o){if(e.length===0)return e;var s=e;if(typeof e==`symbol`?s=Symbol.prototype.toString.call(e):typeof e!=`string`&&(s=String(e)),r===`iso-8859-1`)return escape(s).replace(/%u[0-9a-f]{4}/gi,function(e){return`%26%23`+parseInt(e.slice(2),16)+`%3B`});for(var c=``,l=0;l<s.length;l+=d){for(var u=s.length>=d?s.slice(l,l+d):s,f=[],p=0;p<u.length;++p){var m=u.charCodeAt(p);if(m===45||m===46||m===95||m===126||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||o===n.RFC1738&&(m===40||m===41)){f[f.length]=u.charAt(p);continue}if(m<128){f[f.length]=a[m];continue}if(m<2048){f[f.length]=a[192|m>>6]+a[128|m&63];continue}if(m<55296||m>=57344){f[f.length]=a[224|m>>12]+a[128|m>>6&63]+a[128|m&63];continue}p+=1,m=65536+((m&1023)<<10|u.charCodeAt(p)&1023),f[f.length]=a[240|m>>18]+a[128|m>>12&63]+a[128|m>>6&63]+a[128|m&63]}c+=f.join(``)}return c},p=function(e){for(var t=[{obj:{o:e},prop:`o`}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),c=0;c<s.length;++c){var l=s[c],u=a[l];typeof u==`object`&&u&&n.indexOf(u)===-1&&(t.push({obj:a,prop:l}),n.push(u))}return o(t),e},m=function(e){return Object.prototype.toString.call(e)===`[object RegExp]`},h=function(e){return!e||typeof e!=`object`?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},g=function(e,t){return[].concat(e,t)},_=function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)};t.exports={arrayToObject:s,assign:l,combine:g,compact:p,decode:u,encode:f,isBuffer:h,isRegExp:m,maybeMap:_,merge:c}}),Pe=L((exports,t)=>{var n=je(),r=Ne(),i=Me(),a=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+`[]`},comma:`comma`,indices:function(e,t){return e+`[`+t+`]`},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,d=i.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:`indices`,charset:`utf-8`,charsetSentinel:!1,commaRoundTrip:!1,delimiter:`&`,encode:!0,encodeDotInKeys:!1,encoder:r.encode,encodeValuesOnly:!1,filter:void 0,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`symbol`||typeof e==`bigint`},m={},h=function e(t,i,a,o,c,u,d,h,g,_,v,y,b,x,S,C,w,T){for(var E=t,D=T,O=0,k=!1;(D=D.get(m))!==void 0&&!k;){var A=D.get(t);if(O+=1,A!==void 0){if(A===O)throw RangeError(`Cyclic object value`);k=!0}D.get(m)===void 0&&(O=0)}if(typeof _==`function`?E=_(i,E):E instanceof Date?E=b(E):a===`comma`&&s(E)&&(E=r.maybeMap(E,function(e){return e instanceof Date?b(e):e})),E===null){if(u)return g&&!C?g(i,f.encoder,w,`key`,x):i;E=``}if(p(E)||r.isBuffer(E)){if(g){var j=C?i:g(i,f.encoder,w,`key`,x);return[S(j)+`=`+S(g(E,f.encoder,w,`value`,x))]}return[S(i)+`=`+S(String(E))]}var M=[];if(E===void 0)return M;var N;if(a===`comma`&&s(E))C&&g&&(E=r.maybeMap(E,g)),N=[{value:E.length>0?E.join(`,`)||null:void 0}];else if(s(_))N=_;else{var P=Object.keys(E);N=v?P.sort(v):P}var F=h?String(i).replace(/\./g,`%2E`):String(i),I=o&&s(E)&&E.length===1?F+`[]`:F;if(c&&s(E)&&E.length===0)return I+`[]`;for(var L=0;L<N.length;++L){var R=N[L],z=typeof R==`object`&&R&&R.value!==void 0?R.value:E[R];if(!(d&&z===null)){var B=y&&h?String(R).replace(/\./g,`%2E`):String(R),V=s(E)?typeof a==`function`?a(I,B):I:I+(y?`.`+B:`[`+B+`]`);T.set(t,O);var H=n();H.set(m,T),l(M,e(z,V,a,o,c,u,d,h,a===`comma`&&C&&s(E)?null:g,_,v,y,b,x,S,C,w,H))}}return M},g=function(e){if(!e)return f;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.encodeDotInKeys!==void 0&&typeof e.encodeDotInKeys!=`boolean`)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&e.encoder!==void 0&&typeof e.encoder!=`function`)throw TypeError(`Encoder has to be a function.`);var t=e.charset||f.charset;if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);var n=i.default;if(e.format!==void 0){if(!a.call(i.formatters,e.format))throw TypeError(`Unknown format option provided.`);n=e.format}var r=i.formatters[n],c=f.filter;(typeof e.filter==`function`||s(e.filter))&&(c=e.filter);var l;if(l=e.arrayFormat in o?e.arrayFormat:`indices`in e?e.indices?`indices`:`repeat`:f.arrayFormat,`commaRoundTrip`in e&&typeof e.commaRoundTrip!=`boolean`)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var u=e.allowDots===void 0?e.encodeDotInKeys===!0?!0:f.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix==`boolean`?e.addQueryPrefix:f.addQueryPrefix,allowDots:u,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:l,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:f.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:e.delimiter===void 0?f.delimiter:e.delimiter,encode:typeof e.encode==`boolean`?e.encode:f.encode,encodeDotInKeys:typeof e.encodeDotInKeys==`boolean`?e.encodeDotInKeys:f.encodeDotInKeys,encoder:typeof e.encoder==`function`?e.encoder:f.encoder,encodeValuesOnly:typeof e.encodeValuesOnly==`boolean`?e.encodeValuesOnly:f.encodeValuesOnly,filter:c,format:n,formatter:r,serializeDate:typeof e.serializeDate==`function`?e.serializeDate:f.serializeDate,skipNulls:typeof e.skipNulls==`boolean`?e.skipNulls:f.skipNulls,sort:typeof e.sort==`function`?e.sort:null,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:f.strictNullHandling}};t.exports=function(e,t){var r=e,i=g(t),a,c;typeof i.filter==`function`?(c=i.filter,r=c(``,r)):s(i.filter)&&(c=i.filter,a=c);var u=[];if(typeof r!=`object`||!r)return``;var d=o[i.arrayFormat],f=d===`comma`&&i.commaRoundTrip;a||=Object.keys(r),i.sort&&a.sort(i.sort);for(var p=n(),m=0;m<a.length;++m){var _=a[m],v=r[_];i.skipNulls&&v===null||l(u,h(v,_,d,f,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,p))}var y=u.join(i.delimiter),b=i.addQueryPrefix===!0?`?`:``;return i.charsetSentinel&&(i.charset===`iso-8859-1`?b+=`utf8=%26%2310003%3B&`:b+=`utf8=%E2%9C%93&`),y.length>0?b+y:``}}),Fe=L((exports,t)=>{var n=Ne(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:`utf-8`,charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:`&`,depth:5,duplicates:`combine`,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,n){if(e&&typeof e==`string`&&t.comma&&e.indexOf(`,`)>-1)return e.split(`,`);if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw RangeError(`Array limit exceeded. Only `+t.arrayLimit+` element`+(t.arrayLimit===1?``:`s`)+` allowed in an array.`);return e},c=`utf8=%26%2310003%3B`,l=`utf8=%E2%9C%93`,u=function(e,t){var u={__proto__:null},d=t.ignoreQueryPrefix?e.replace(/^\?/,``):e;d=d.replace(/%5B/gi,`[`).replace(/%5D/gi,`]`);var f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=d.split(t.delimiter,t.throwOnLimitExceeded?f+1:f);if(t.throwOnLimitExceeded&&p.length>f)throw RangeError(`Parameter limit exceeded. Only `+f+` parameter`+(f===1?``:`s`)+` allowed.`);var m=-1,h,g=t.charset;if(t.charsetSentinel)for(h=0;h<p.length;++h)p[h].indexOf(`utf8=`)===0&&(p[h]===l?g=`utf-8`:p[h]===c&&(g=`iso-8859-1`),m=h,h=p.length);for(h=0;h<p.length;++h)if(h!==m){var _=p[h],v=_.indexOf(`]=`),y=v===-1?_.indexOf(`=`):v+1,b,x;y===-1?(b=t.decoder(_,a.decoder,g,`key`),x=t.strictNullHandling?null:``):(b=t.decoder(_.slice(0,y),a.decoder,g,`key`),x=n.maybeMap(s(_.slice(y+1),t,i(u[b])?u[b].length:0),function(e){return t.decoder(e,a.decoder,g,`value`)})),x&&t.interpretNumericEntities&&g===`iso-8859-1`&&(x=o(String(x))),_.indexOf(`[]=`)>-1&&(x=i(x)?[x]:x);var S=r.call(u,b);S&&t.duplicates===`combine`?u[b]=n.combine(u[b],x):(!S||t.duplicates===`last`)&&(u[b]=x)}return u},d=function(e,t,r,i){var a=0;if(e.length>0&&e[e.length-1]===`[]`){var o=e.slice(0,-1).join(``);a=Array.isArray(t)&&t[o]?t[o].length:0}for(var c=i?t:s(t,r,a),l=e.length-1;l>=0;--l){var u,d=e[l];if(d===`[]`&&r.parseArrays)u=r.allowEmptyArrays&&(c===``||r.strictNullHandling&&c===null)?[]:n.combine([],c);else{u=r.plainObjects?{__proto__:null}:{};var f=d.charAt(0)===`[`&&d.charAt(d.length-1)===`]`?d.slice(1,-1):d,p=r.decodeDotInKeys?f.replace(/%2E/g,`.`):f,m=parseInt(p,10);!r.parseArrays&&p===``?u={0:c}:!isNaN(m)&&d!==p&&String(m)===p&&m>=0&&r.parseArrays&&m<=r.arrayLimit?(u=[],u[m]=c):p!==`__proto__`&&(u[p]=c)}c=u}return c},f=function(e,t,n,i){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,`[$1]`):e,o=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,c=n.depth>0&&o.exec(a),l=c?a.slice(0,c.index):a,u=[];if(l){if(!n.plainObjects&&r.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var f=0;n.depth>0&&(c=s.exec(a))!==null&&f<n.depth;){if(f+=1,!n.plainObjects&&r.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(c[1])}if(c){if(n.strictDepth===!0)throw RangeError(`Input depth exceeded depth option of `+n.depth+` and strictDepth is true`);u.push(`[`+a.slice(c.index)+`]`)}return d(u,t,n,i)}},p=function(e){if(!e)return a;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.decodeDotInKeys!==void 0&&typeof e.decodeDotInKeys!=`boolean`)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!=`function`)throw TypeError(`Decoder has to be a function.`);if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);if(e.throwOnLimitExceeded!==void 0&&typeof e.throwOnLimitExceeded!=`boolean`)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=e.charset===void 0?a.charset:e.charset,r=e.duplicates===void 0?a.duplicates:e.duplicates;if(r!==`combine`&&r!==`first`&&r!==`last`)throw TypeError(`The duplicates option must be either combine, first, or last`);var i=e.allowDots===void 0?e.decodeDotInKeys===!0?!0:a.allowDots:!!e.allowDots;return{allowDots:i,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes==`boolean`?e.allowPrototypes:a.allowPrototypes,allowSparse:typeof e.allowSparse==`boolean`?e.allowSparse:a.allowSparse,arrayLimit:typeof e.arrayLimit==`number`?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:a.charsetSentinel,comma:typeof e.comma==`boolean`?e.comma:a.comma,decodeDotInKeys:typeof e.decodeDotInKeys==`boolean`?e.decodeDotInKeys:a.decodeDotInKeys,decoder:typeof e.decoder==`function`?e.decoder:a.decoder,delimiter:typeof e.delimiter==`string`||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:typeof e.depth==`number`||e.depth===!1?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities==`boolean`?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:typeof e.parameterLimit==`number`?e.parameterLimit:a.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects==`boolean`?e.plainObjects:a.plainObjects,strictDepth:typeof e.strictDepth==`boolean`?!!e.strictDepth:a.strictDepth,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded==`boolean`?e.throwOnLimitExceeded:!1}};t.exports=function(e,t){var r=p(t);if(e===``||e==null)return r.plainObjects?{__proto__:null}:{};for(var i=typeof e==`string`?u(e,r):e,a=r.plainObjects?{__proto__:null}:{},o=Object.keys(i),s=0;s<o.length;++s){var c=o[s],l=f(c,i[c],r,typeof e==`string`);a=n.merge(a,l,r)}return r.allowSparse===!0?a:n.compact(a)}}),Ie=L((exports,t)=>{var n=Pe(),r=Fe(),i=Me();t.exports={formats:i,parse:r,stringify:n}});let Le=(e,t)=>e?!t||t.length===0?e:t.reduce((e,t)=>(delete e[t],e),{...e}):{},Re=function(e){return e.JSON=`application/json`,e.FORM_URLENCODED=`application/x-www-form-urlencoded`,e.FORM_DATA=`multipart/form-data`,e.TEXT=`text/plain`,e.HTML=`text/html`,e.XML=`text/xml`,e.CSV=`text/csv`,e.STREAM=`application/octet-stream`,e}({}),Y=function(e){return e[e.TIME_OUT=408]=`TIME_OUT`,e[e.ABORTED=499]=`ABORTED`,e[e.NETWORK_ERROR=599]=`NETWORK_ERROR`,e[e.BODY_NULL=502]=`BODY_NULL`,e[e.UNKNOWN=601]=`UNKNOWN`,e}({}),ze=function(e){return e.GET=`GET`,e.POST=`POST`,e.PUT=`PUT`,e.DELETE=`DELETE`,e.PATCH=`PATCH`,e.HEAD=`HEAD`,e.OPTIONS=`OPTIONS`,e}({});var Be=z(Ie()),X=(n=new WeakMap,r=new WeakMap,i=new WeakMap,a=new WeakMap,o=new WeakMap,s=new WeakMap,class extends Error{constructor({message:e,status:c,statusText:l,response:u,config:d,name:f}){super(e),t.classPrivateFieldInitSpec(this,n,void 0),t.classPrivateFieldInitSpec(this,r,void 0),t.classPrivateFieldInitSpec(this,i,void 0),t.classPrivateFieldInitSpec(this,a,void 0),t.classPrivateFieldInitSpec(this,o,void 0),t.classPrivateFieldInitSpec(this,s,void 0),t.classPrivateFieldSet2(n,this,e),t.classPrivateFieldSet2(i,this,c),t.classPrivateFieldSet2(a,this,l),t.classPrivateFieldSet2(o,this,u),t.classPrivateFieldSet2(s,this,d),t.classPrivateFieldSet2(r,this,f??e)}get message(){return t.classPrivateFieldGet2(n,this)}get status(){return t.classPrivateFieldGet2(i,this)}get statusText(){return t.classPrivateFieldGet2(a,this)}get response(){return t.classPrivateFieldGet2(o,this)}get config(){return t.classPrivateFieldGet2(s,this)}get name(){return t.classPrivateFieldGet2(r,this)}});let Ve=e=>{let t=new Map;e.forEach(e=>{t.set(e.name,e)});let n=Array.from(t.values()).sort((e,t)=>(e.priority??0)-(t.priority??0)),r=[],i=[],a=[],o=[],s=[],c=[];return n.forEach(e=>{e.beforeRequest&&r.push(e.beforeRequest),e.afterResponse&&i.push(e.afterResponse),e.onError&&a.push(e.onError),e.onFinally&&o.push(e.onFinally),e.transformStreamChunk&&s.push(e.transformStreamChunk),e.beforeStream&&c.push(e.beforeStream)}),{beforeRequestPlugins:r,afterResponsePlugins:i,errorPlugins:a,finallyPlugins:o,beforeStreamPlugins:c,transformStreamChunkPlugins:s}},He=(e,t,n=`repeat`)=>{if(t){let r=Be.default.stringify(t,{arrayFormat:n});r&&(e=e.includes(`?`)?`${e}&${r}`:`${e}?${r}`)}return e},Ue=(e={},t={})=>{let n=e instanceof Headers?e:new Headers(e),r=e=>{e instanceof Headers||(e=new Headers(e)),e.forEach((e,t)=>{n.set(t,e)})};return r(t),n},We=[`PATCH`,`POST`,`PUT`],Ge=[`GET`,`HEAD`,`OPTIONS`,`DELETE`],Ke=(e,t,n,r=`repeat`)=>{if(!e)return null;if(e instanceof FormData)return e;let i=null;if(We.includes(t.toUpperCase())){let t=new Headers(n||{}),a=t.get(`Content-Type`)||Re.JSON;if(a.includes(Re.JSON))i=JSON.stringify(e);else if(a.includes(Re.FORM_URLENCODED))i=Be.default.stringify(e,{arrayFormat:r});else if(a.includes(Re.FORM_DATA)){let t=new FormData;if(!(e instanceof FormData)&&typeof e==`object`){let n=e;Object.keys(n).forEach(e=>{n.prototype.hasOwnProperty.call(e)&&t.append(e,n[e])}),i=t}}}return Ge.includes(t.toUpperCase())&&(i=null),i};var qe=(c=new WeakMap,l=new WeakMap,u=new WeakMap,d=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,h=new WeakMap,g=new WeakMap,_=new WeakSet,class e{constructor(e){t.classPrivateMethodInitSpec(this,_),t.classPrivateFieldInitSpec(this,c,void 0),t.classPrivateFieldInitSpec(this,l,void 0),t.classPrivateFieldInitSpec(this,u,void 0),t.classPrivateFieldInitSpec(this,d,void 0),t.classPrivateFieldInitSpec(this,f,!1),t.classPrivateFieldInitSpec(this,p,null),t.classPrivateFieldInitSpec(this,m,[]),t.classPrivateFieldInitSpec(this,h,`json`),t.classPrivateFieldInitSpec(this,g,void 0),t.classPrivateFieldSet2(g,this,e);let{plugins:n=[],controller:r,url:i,baseURL:a=``,params:o,data:s,qsArrayFormat:v=`repeat`,withCredentials:y,extra:b,method:x=`GET`,headers:S}=e;t.classPrivateFieldSet2(l,this,r??new AbortController),t.classPrivateFieldSet2(c,this,Ve(n)),t.classPrivateFieldSet2(u,this,{url:i,baseURL:a,params:o,data:s,withCredentials:y,extra:b,method:x,headers:S,qsArrayFormat:v}),t.classPrivateFieldSet2(d,this,t.assertClassBrand(_,this,Je).call(this,e))}json(){return t.classPrivateFieldSet2(p,this,Q.call(t.assertClassBrand(_,this)).then(e=>e.json()).then(e=>(t.classPrivateFieldSet2(h,this,`json`),t.assertClassBrand(_,this,Z).call(this,e))).catch(e=>(t.classPrivateFieldSet2(h,this,`json`),t.assertClassBrand(_,this,Xe).call(this,e)))),t.classPrivateFieldGet2(p,this)}lazyFinally(e){return t.classPrivateFieldGet2(p,this)?t.classPrivateFieldGet2(p,this).finally(()=>{for(let e of t.classPrivateFieldGet2(m,this))e();t.classPrivateFieldSet2(m,this,[])}):(e&&t.classPrivateFieldGet2(m,this).push(e),null)}then(e,n){return Ze.call(t.assertClassBrand(_,this)).then(async n=>e?.call(this,await t.assertClassBrand(_,this,Z).call(this,n)),async e=>n?.call(this,await t.assertClassBrand(_,this,Xe).call(this,e)))}catch(e){return Ze.call(t.assertClassBrand(_,this)).catch(e)}finally(e){return Ze.call(t.assertClassBrand(_,this)).finally(e)}abort(){t.classPrivateFieldGet2(l,this).abort()}blob(){return t.classPrivateFieldSet2(p,this,Q.call(t.assertClassBrand(_,this)).then(e=>e.blob()).then(e=>(t.classPrivateFieldSet2(h,this,`blob`),t.assertClassBrand(_,this,Z).call(this,e)))),t.classPrivateFieldGet2(p,this)}text(){return t.classPrivateFieldSet2(p,this,Q.call(t.assertClassBrand(_,this)).then(e=>e.text()).then(e=>(t.classPrivateFieldSet2(h,this,`text`),t.assertClassBrand(_,this,Z).call(this,e)))),t.classPrivateFieldGet2(p,this).finally(this.lazyFinally.bind(this)),t.classPrivateFieldGet2(p,this)}arrayBuffer(){return t.classPrivateFieldSet2(p,this,Q.call(t.assertClassBrand(_,this)).then(e=>e.arrayBuffer()).then(e=>(t.classPrivateFieldSet2(h,this,`arrayBuffer`),t.assertClassBrand(_,this,Z).call(this,e)))),t.classPrivateFieldGet2(p,this).finally(this.lazyFinally.bind(this)),t.classPrivateFieldGet2(p,this)}formData(){return t.classPrivateFieldSet2(p,this,Q.call(t.assertClassBrand(_,this)).then(e=>e.formData()).then(e=>(t.classPrivateFieldSet2(h,this,`formData`),t.assertClassBrand(_,this,Z).call(this,e)))),t.classPrivateFieldGet2(p,this).finally(this.lazyFinally.bind(this)),t.classPrivateFieldGet2(p,this)}bytes(){return t.classPrivateFieldSet2(p,this,Q.call(t.assertClassBrand(_,this)).then(e=>e.bytes()).then(e=>(t.classPrivateFieldSet2(h,this,`bytes`),t.assertClassBrand(_,this,Z).call(this,e)))),t.classPrivateFieldGet2(p,this).finally(this.lazyFinally.bind(this)),t.classPrivateFieldGet2(p,this)}async*stream(){var e;let n=(e=await Q.call(t.assertClassBrand(_,this)))?.body;if(!n)throw Error(`Response body is null`);for(let e of t.classPrivateFieldGet2(c,this).beforeStreamPlugins)n=await e(n,t.classPrivateFieldGet2(u,this));let r=n.getReader();if(!r)throw Error(`Response body reader is null`);try{for(;;){let{done:e,value:n}=await r.read();if(e)break;let i={source:n,result:n,error:null};try{for(let e of t.classPrivateFieldGet2(c,this).transformStreamChunkPlugins)i=await e(i,t.classPrivateFieldGet2(u,this));if(i.result&&(Qe(i.result)||$e(i.result)))for await(let e of i.result){let t={source:i.source,result:e,error:null};yield t}else yield i}catch(e){i.error=e,i.result=null,yield i}}}finally{r.releaseLock()}}retry(){let{controller:n,...r}=t.classPrivateFieldGet2(g,this);return new e(r)}get response(){return Q.call(t.assertClassBrand(_,this))}});function Je({timeout:e}){return new Promise(async(n,r)=>{let i=t.classPrivateFieldGet2(u,this),{beforeRequestPlugins:a}=t.classPrivateFieldGet2(c,this);for(let e of a)i=await e(i);let o=He(i.baseURL+i.url,i.params,i.qsArrayFormat),s=Ke(i.data,i.method,i.headers,i.qsArrayFormat),d=Le(i??{},[`baseURL`,`data`,`extra`,`headers`,`method`,`params`,`url`,`withCredentials`]),p={...d,method:i.method,headers:i.headers,signal:t.classPrivateFieldGet2(l,this).signal,credentials:i.withCredentials?`include`:`omit`,body:s},m=fetch(o,p),h=[m],g=null;if(e){let n=new Promise(n=>{g=setTimeout(()=>{var e;t.classPrivateFieldSet2(f,this,!0),(e=t.classPrivateFieldGet2(l,this))?.abort()},e)});h.push(n)}try{let e=await Promise.race(h);return e?(e.ok&&n(e),r(new X({message:`Fail Request`,status:e.status,statusText:e.statusText,config:t.classPrivateFieldGet2(u,this),name:`Fail Request`}))):r(new X({message:`NETWORK_ERROR`,status:Y.NETWORK_ERROR,statusText:`Network Error`,config:t.classPrivateFieldGet2(u,this),name:`Network Error`}))}catch(e){r(await t.assertClassBrand(_,this,Xe).call(this,e))}finally{g&&clearTimeout(g)}})}async function Ye(e){return e instanceof X?e:e instanceof TypeError?e.name===`AbortError`?t.classPrivateFieldGet2(f,this)?new X({message:`Request timeout`,status:Y.TIME_OUT,statusText:`Request timeout`,config:t.classPrivateFieldGet2(u,this),name:`Request timeout`,response:await Q.call(t.assertClassBrand(_,this))}):new X({message:`Request aborted`,status:Y.ABORTED,statusText:`Request aborted`,config:t.classPrivateFieldGet2(u,this),name:`Request aborted`,response:await Q.call(t.assertClassBrand(_,this))}):new X({message:e.message,status:Y.NETWORK_ERROR,statusText:`Unknown Request Error`,config:t.classPrivateFieldGet2(u,this),name:e.name,response:await Q.call(t.assertClassBrand(_,this))}):new X({message:e?.message??`Unknown Request Error`,status:Y.UNKNOWN,statusText:`Unknown Request Error`,config:t.classPrivateFieldGet2(u,this),name:`Unknown Request Error`,response:await Q.call(t.assertClassBrand(_,this))})}async function Xe(e){let n=await t.assertClassBrand(_,this,Ye).call(this,e);for(let e of t.classPrivateFieldGet2(c,this).errorPlugins)n=await e(n,t.classPrivateFieldGet2(u,this));return n}function Ze(){return t.classPrivateFieldGet2(p,this)?t.classPrivateFieldGet2(p,this):Q.call(t.assertClassBrand(_,this))}async function Z(e){let n=t.classPrivateFieldGet2(c,this).afterResponsePlugins,r={config:t.classPrivateFieldGet2(u,this),response:await Q.call(t.assertClassBrand(_,this)).then(e=>e.clone()),responseType:t.classPrivateFieldGet2(h,this),controller:t.classPrivateFieldGet2(l,this),result:e};for(let e of n)r=await e(r,t.classPrivateFieldGet2(u,this));return r.result}function Q(){return t.classPrivateFieldGet2(d,this).then(e=>e.clone())}let Qe=e=>e[Symbol.toStringTag]===`Generator`&&typeof e.next==`function`&&typeof e.return==`function`&&typeof e.throw==`function`&&typeof e[Symbol.iterator]==`function`,$e=e=>e[Symbol.toStringTag]===`AsyncGenerator`&&typeof e.next==`function`&&typeof e.return==`function`&&typeof e.throw==`function`&&typeof e[Symbol.asyncIterator]==`function`,et=e=>new qe(e);var tt=(v=new WeakMap,y=new WeakMap,b=new WeakMap,x=new WeakMap,S=new WeakMap,C=new WeakMap,w=new WeakSet,class{constructor({timeout:e=0,baseURL:n=``,headers:r={},plugins:i=[],withCredentials:a=!1}){t.classPrivateMethodInitSpec(this,w),t.classPrivateFieldInitSpec(this,v,void 0),t.classPrivateFieldInitSpec(this,y,void 0),t.classPrivateFieldInitSpec(this,b,void 0),t.classPrivateFieldInitSpec(this,x,[]),t.classPrivateFieldInitSpec(this,S,[]),t.classPrivateFieldInitSpec(this,C,void 0),t.classPrivateFieldSet2(v,this,e),t.classPrivateFieldSet2(y,this,n),t.classPrivateFieldSet2(b,this,r),t.classPrivateFieldSet2(S,this,i),t.classPrivateFieldSet2(C,this,a),this.request=this.request.bind(this),this.get=this.get.bind(this),this.head=this.head.bind(this),this.options=this.options.bind(this),this.delete=this.delete.bind(this),this.post=this.post.bind(this),this.put=this.put.bind(this),this.patch=this.patch.bind(this),this.abortAll=this.abortAll.bind(this),this.use=this.use.bind(this)}use(e){return t.classPrivateFieldGet2(S,this).push(e),this}request(e,{timeout:n,headers:r,method:i=`GET`,params:a={},data:o,qsArrayFormat:s,withCredentials:c,extra:l}={}){let u=new AbortController;t.classPrivateFieldGet2(x,this).push(u);let d=et({url:e,baseURL:t.classPrivateFieldGet2(y,this),timeout:n??t.classPrivateFieldGet2(v,this),plugins:t.classPrivateFieldGet2(S,this),headers:Ue(t.classPrivateFieldGet2(b,this),r),controller:u,method:i,params:a,data:o,qsArrayFormat:s,withCredentials:c??t.classPrivateFieldGet2(C,this),extra:l});return d.lazyFinally(()=>{t.classPrivateFieldSet2(x,this,t.classPrivateFieldGet2(x,this).filter(e=>e!==u))}),d}get(e,n={},r){return t.assertClassBrand(w,this,nt).call(this,e,n,{...r,method:`GET`})}head(e,n={},r){return t.assertClassBrand(w,this,nt).call(this,e,n,{...r,method:`HEAD`})}options(e,n={},r){return t.assertClassBrand(w,this,nt).call(this,e,n,{...r,method:`OPTIONS`})}delete(e,t){return this.request(e,{...t,method:`DELETE`})}post(e,n,r){return t.assertClassBrand(w,this,rt).call(this,e,n,{...r,method:`POST`})}upload(e,n,r){let i=new FormData;for(let e in n)if(Object.prototype.hasOwnProperty.call(n,e)){let t=n[e];t instanceof File||t instanceof Blob?i.append(e,t):i.append(e,String(t))}return t.assertClassBrand(w,this,rt).call(this,e,i,{...r,method:`POST`})}put(e,n,r){return t.assertClassBrand(w,this,rt).call(this,e,n,{...r,method:`PUT`})}patch(e,n,r){return t.assertClassBrand(w,this,rt).call(this,e,n,{...r,method:`PATCH`})}abortAll(){t.classPrivateFieldGet2(x,this).forEach(e=>e.abort()),t.classPrivateFieldSet2(x,this,[])}});function nt(e,t={},n={}){return this.request(e,{...n,params:t})}function rt(e,t={},n={}){return this.request(e,{...n,data:t})}let it=(e,t={})=>et({url:e,baseURL:``,...t}),at=(e,t,n={})=>it(e,{...n,params:t}),ot=(e,t=null,n={})=>it(e,{...n,data:t}),st=it,ct=(e,t={},n)=>at(e,t,{...n,method:`GET`}),lt=(e,t={},n)=>at(e,t,{...n,method:`HEAD`}),ut=(e,t={},n)=>at(e,t,{...n,method:`OPTIONS`}),dt=(e,t)=>it(e,{...t,method:`DELETE`}),ft=(e,t,n)=>ot(e,t,{...n,method:`POST`}),pt=(e,t,n)=>{let r=new FormData;for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)){let n=t[e];n instanceof File||n instanceof Blob?r.append(e,n):r.append(e,String(n))}return ot(e,r,{...n,method:`POST`})},mt=(e,t,n)=>ot(e,t,{...n,method:`PUT`}),ht=(e,t,n)=>ot(e,t,{...n,method:`PATCH`}),$=it;$.create=e=>{let t=new tt(e),n=t.request.bind(void 0);return Object.assign(n,tt.prototype,t),n},$.get=ct,$.head=lt,$.options=ut,$.delete=dt,$.post=ft,$.put=mt,$.patch=ht,$.upload=pt;var gt=$,_t=(T=new WeakMap,E=new WeakMap,D=new WeakMap,O=new WeakMap,k=new WeakMap,A=new WeakMap,class extends Error{constructor({message:e,status:n,statusText:r,response:i,config:a,name:o}){super(e),t.classPrivateFieldInitSpec(this,T,void 0),t.classPrivateFieldInitSpec(this,E,void 0),t.classPrivateFieldInitSpec(this,D,void 0),t.classPrivateFieldInitSpec(this,O,void 0),t.classPrivateFieldInitSpec(this,k,void 0),t.classPrivateFieldInitSpec(this,A,void 0),t.classPrivateFieldSet2(T,this,e),t.classPrivateFieldSet2(D,this,n),t.classPrivateFieldSet2(O,this,r),t.classPrivateFieldSet2(k,this,i),t.classPrivateFieldSet2(A,this,a),t.classPrivateFieldSet2(E,this,o??e)}get message(){return t.classPrivateFieldGet2(T,this)}get status(){return t.classPrivateFieldGet2(D,this)}get statusText(){return t.classPrivateFieldGet2(O,this)}get response(){return t.classPrivateFieldGet2(k,this)}get config(){return t.classPrivateFieldGet2(A,this)}get name(){return t.classPrivateFieldGet2(E,this)}});let vt=({splitSeparator:e=`
|
|
4
|
+
`+t.prev}function Ee(e,t){var n=ne(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=W(e,i)?t(e[i],e):``}var a=typeof A==`function`?A(e):[],o;if(M){o={};for(var s=0;s<a.length;s++)o[`$`+a[s]]=a[s]}for(var c in e){if(!W(e,c)||n&&String(Number(c))===c&&c<e.length||M&&o[`$`+c]instanceof Symbol)continue;w.call(/[^\w$]/,c)?r.push(t(c,e)+`: `+t(e[c],e)):r.push(c+`: `+t(e[c],e))}if(typeof A==`function`)for(var l=0;l<a.length;l++)P.call(e,a[l])&&r.push(`[`+t(a[l])+`]: `+t(e[a[l]],e));return r}}),ee=L((exports,t)=>{var n=H(),r=B(),i=function(e,t,n){for(var r=e,i;(i=r.next)!=null;r=i)if(i.key===t)return r.next=i.next,n||(i.next=e.next,e.next=i),i},a=function(e,t){if(e){var n=i(e,t);return n&&n.value}},o=function(e,t,n){var r=i(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},s=function(e,t){return e?!!i(e,t):!1},c=function(e,t){if(e)return i(e,t,!0)};t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r(`Side channel does not contain `+n(e))},delete:function(t){var n=e&&e.next,r=c(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return a(e,t)},has:function(t){return s(e,t)},set:function(t,n){e||={next:void 0},o(e,t,n)}};return t}}),te=L((exports,t)=>{t.exports=Object}),U=L((exports,t)=>{t.exports=Error}),ne=L((exports,t)=>{t.exports=EvalError}),re=L((exports,t)=>{t.exports=RangeError}),ie=L((exports,t)=>{t.exports=ReferenceError}),ae=L((exports,t)=>{t.exports=SyntaxError}),oe=L((exports,t)=>{t.exports=URIError}),se=L((exports,t)=>{t.exports=Math.abs}),ce=L((exports,t)=>{t.exports=Math.floor}),le=L((exports,t)=>{t.exports=Math.max}),ue=L((exports,t)=>{t.exports=Math.min}),de=L((exports,t)=>{t.exports=Math.pow}),W=L((exports,t)=>{t.exports=Math.round}),G=L((exports,t)=>{t.exports=Number.isNaN||function(e){return e!==e}}),fe=L((exports,t)=>{var n=G();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}}),pe=L((exports,t)=>{t.exports=Object.getOwnPropertyDescriptor}),me=L((exports,t)=>{var n=pe();if(n)try{n([],`length`)}catch{n=null}t.exports=n}),he=L((exports,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n}),ge=L((exports,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}}),_e=L((exports,t)=>{var n=typeof Symbol<`u`&&Symbol,r=ge();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}}),ve=L((exports,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null}),ye=L((exports,t)=>{var n=te();t.exports=n.getPrototypeOf||null}),be=L((exports,t)=>{var n=`Function.prototype.bind called on incompatible `,r=Object.prototype.toString,i=Math.max,a=`[object Function]`,o=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},s=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},c=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||r.apply(t)!==a)throw TypeError(n+t);for(var l=s(arguments,1),u,d=function(){if(this instanceof u){var n=t.apply(this,o(l,arguments));return Object(n)===n?n:this}return t.apply(e,o(l,arguments))},f=i(0,t.length-l.length),p=[],m=0;m<f;m++)p[m]=`$`+m;if(u=Function(`binder`,`return function (`+c(p,`,`)+`){ return binder.apply(this,arguments); }`)(d),t.prototype){var h=function(){};h.prototype=t.prototype,u.prototype=new h,h.prototype=null}return u}}),K=L((exports,t)=>{var n=be();t.exports=Function.prototype.bind||n}),q=L((exports,t)=>{t.exports=Function.prototype.call}),xe=L((exports,t)=>{t.exports=Function.prototype.apply}),Se=L((exports,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply}),Ce=L((exports,t)=>{var n=K(),r=xe(),i=q(),a=Se();t.exports=a||n.call(i,r)}),we=L((exports,t)=>{var n=K(),r=B(),i=q(),a=Ce();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}}),Te=L((exports,t)=>{var n=we(),r=me(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`?function(e){return s(e==null?e:o(e))}:!1}),Ee=L((exports,t)=>{var n=ve(),r=ye(),i=Te();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null}),De=L((exports,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty,i=K();t.exports=i.call(n,r)}),Oe=L((exports,t)=>{var n,r=te(),i=U(),a=ne(),o=re(),s=ie(),c=ae(),l=B(),u=oe(),d=se(),f=ce(),p=le(),m=ue(),h=de(),g=W(),_=fe(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=me(),x=he(),S=function(){throw new l},C=b?function(){try{return arguments.callee,S}catch{try{return b(arguments,`callee`).get}catch{return S}}}():S,w=_e()(),T=Ee(),E=ye(),D=ve(),O=xe(),k=q(),A={},j=typeof Uint8Array>`u`||!T?n:T(Uint8Array),M={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&T?T(T([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!w||!T?n:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!w||!T?n:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&T?T(``[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":C,"%TypedArray%":j,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":E,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(T)try{null.error}catch(e){var N=T(T(e));M[`%Error.prototype%`]=N}var P=function e(t){var n;if(t===`%AsyncFunction%`)n=y(`async function () {}`);else if(t===`%GeneratorFunction%`)n=y(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=y(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&T&&(n=T(i.prototype))}return M[t]=n,n},F={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},I=K(),L=De(),R=I.call(k,Array.prototype.concat),z=I.call(O,Array.prototype.splice),V=I.call(k,String.prototype.replace),H=I.call(k,String.prototype.slice),ee=I.call(k,RegExp.prototype.exec),G=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,pe=/\\(\\)?/g,ge=function(e){var t=H(e,0,1),n=H(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return V(e,G,function(e,t,n,i){r[r.length]=n?V(i,pe,`$1`):t||e}),r},be=function(e,t){var n=e,r;if(L(F,n)&&(r=F[n],n=`%`+r[0]+`%`),L(M,n)){var i=M[n];if(i===A&&(i=P(n)),i===void 0&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(ee(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ge(e),r=n.length>0?n[0]:``,i=be(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],z(n,R([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=H(p,0,1),h=H(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,L(M,a))o=M[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(b&&d+1>=n.length){var g=b(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=L(o,p),o=o[p];f&&!s&&(M[a]=o)}}return o}}),ke=L((exports,t)=>{var n=Oe(),r=we(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}}),Ae=L((exports,t)=>{var n=Oe(),r=ke(),i=H(),a=B(),o=n(`%Map%`,!0),s=r(`Map.prototype.get`,!0),c=r(`Map.prototype.set`,!0),l=r(`Map.prototype.has`,!0),u=r(`Map.prototype.delete`,!0),d=r(`Map.prototype.size`,!0);t.exports=!!o&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a(`Side channel does not contain `+i(e))},delete:function(t){if(e){var n=u(e,t);return d(e)===0&&(e=void 0),n}return!1},get:function(t){if(e)return s(e,t)},has:function(t){return e?l(e,t):!1},set:function(t,n){e||=new o,c(e,t,n)}};return t}}),je=L((exports,t)=>{var n=Oe(),r=ke(),i=H(),a=Ae(),o=B(),s=n(`%WeakMap%`,!0),c=r(`WeakMap.prototype.get`,!0),l=r(`WeakMap.prototype.set`,!0),u=r(`WeakMap.prototype.has`,!0),d=r(`WeakMap.prototype.delete`,!0);t.exports=s?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new o(`Side channel does not contain `+i(e))},delete:function(n){if(s&&n&&(typeof n==`object`||typeof n==`function`)){if(e)return d(e,n)}else if(a&&t)return t.delete(n);return!1},get:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?c(e,n):t&&t.get(n)},has:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?u(e,n):!!t&&t.has(n)},set:function(n,r){s&&n&&(typeof n==`object`||typeof n==`function`)?(e||=new s,l(e,n,r)):a&&(t||=a(),t.set(n,r))}};return n}:a}),Me=L((exports,t)=>{var n=B(),r=H(),i=ee(),a=Ae(),o=je(),s=o||a||i;t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n(`Side channel does not contain `+r(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||=s(),e.set(t,n)}};return t}}),Ne=L((exports,t)=>{var n=String.prototype.replace,r=/%20/g,i={RFC1738:`RFC1738`,RFC3986:`RFC3986`};t.exports={default:i.RFC3986,formatters:{RFC1738:function(e){return n.call(e,r,`+`)},RFC3986:function(e){return String(e)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986}}),Pe=L((exports,t)=>{var n=Ne(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push(`%`+((t<16?`0`:``)+t.toString(16)).toUpperCase());return e}(),o=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],a=0;a<n.length;++a)n[a]!==void 0&&r.push(n[a]);t.obj[t.prop]=r}}},s=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)e[r]!==void 0&&(n[r]=e[r]);return n},c=function e(t,n,a){if(!n)return t;if(typeof n!=`object`&&typeof n!=`function`){if(i(t))t.push(n);else if(t&&typeof t==`object`)(a&&(a.plainObjects||a.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!=`object`)return[t].concat(n);var o=t;return i(t)&&!i(n)&&(o=s(t,a)),i(t)&&i(n)?(n.forEach(function(n,i){if(r.call(t,i)){var o=t[i];o&&typeof o==`object`&&n&&typeof n==`object`?t[i]=e(o,n,a):t.push(n)}else t[i]=n}),t):Object.keys(n).reduce(function(t,i){var o=n[i];return r.call(t,i)?t[i]=e(t[i],o,a):t[i]=o,t},o)},l=function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},u=function(e,t,n){var r=e.replace(/\+/g,` `);if(n===`iso-8859-1`)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},d=1024,f=function(e,t,r,i,o){if(e.length===0)return e;var s=e;if(typeof e==`symbol`?s=Symbol.prototype.toString.call(e):typeof e!=`string`&&(s=String(e)),r===`iso-8859-1`)return escape(s).replace(/%u[0-9a-f]{4}/gi,function(e){return`%26%23`+parseInt(e.slice(2),16)+`%3B`});for(var c=``,l=0;l<s.length;l+=d){for(var u=s.length>=d?s.slice(l,l+d):s,f=[],p=0;p<u.length;++p){var m=u.charCodeAt(p);if(m===45||m===46||m===95||m===126||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||o===n.RFC1738&&(m===40||m===41)){f[f.length]=u.charAt(p);continue}if(m<128){f[f.length]=a[m];continue}if(m<2048){f[f.length]=a[192|m>>6]+a[128|m&63];continue}if(m<55296||m>=57344){f[f.length]=a[224|m>>12]+a[128|m>>6&63]+a[128|m&63];continue}p+=1,m=65536+((m&1023)<<10|u.charCodeAt(p)&1023),f[f.length]=a[240|m>>18]+a[128|m>>12&63]+a[128|m>>6&63]+a[128|m&63]}c+=f.join(``)}return c},p=function(e){for(var t=[{obj:{o:e},prop:`o`}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),c=0;c<s.length;++c){var l=s[c],u=a[l];typeof u==`object`&&u&&n.indexOf(u)===-1&&(t.push({obj:a,prop:l}),n.push(u))}return o(t),e},m=function(e){return Object.prototype.toString.call(e)===`[object RegExp]`},h=function(e){return!e||typeof e!=`object`?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},g=function(e,t){return[].concat(e,t)},_=function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)};t.exports={arrayToObject:s,assign:l,combine:g,compact:p,decode:u,encode:f,isBuffer:h,isRegExp:m,maybeMap:_,merge:c}}),Fe=L((exports,t)=>{var n=Me(),r=Pe(),i=Ne(),a=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+`[]`},comma:`comma`,indices:function(e,t){return e+`[`+t+`]`},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,d=i.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:`indices`,charset:`utf-8`,charsetSentinel:!1,commaRoundTrip:!1,delimiter:`&`,encode:!0,encodeDotInKeys:!1,encoder:r.encode,encodeValuesOnly:!1,filter:void 0,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`symbol`||typeof e==`bigint`},m={},h=function e(t,i,a,o,c,u,d,h,g,_,v,y,b,x,S,C,w,T){for(var E=t,D=T,O=0,k=!1;(D=D.get(m))!==void 0&&!k;){var A=D.get(t);if(O+=1,A!==void 0){if(A===O)throw RangeError(`Cyclic object value`);k=!0}D.get(m)===void 0&&(O=0)}if(typeof _==`function`?E=_(i,E):E instanceof Date?E=b(E):a===`comma`&&s(E)&&(E=r.maybeMap(E,function(e){return e instanceof Date?b(e):e})),E===null){if(u)return g&&!C?g(i,f.encoder,w,`key`,x):i;E=``}if(p(E)||r.isBuffer(E)){if(g){var j=C?i:g(i,f.encoder,w,`key`,x);return[S(j)+`=`+S(g(E,f.encoder,w,`value`,x))]}return[S(i)+`=`+S(String(E))]}var M=[];if(E===void 0)return M;var N;if(a===`comma`&&s(E))C&&g&&(E=r.maybeMap(E,g)),N=[{value:E.length>0?E.join(`,`)||null:void 0}];else if(s(_))N=_;else{var P=Object.keys(E);N=v?P.sort(v):P}var F=h?String(i).replace(/\./g,`%2E`):String(i),I=o&&s(E)&&E.length===1?F+`[]`:F;if(c&&s(E)&&E.length===0)return I+`[]`;for(var L=0;L<N.length;++L){var R=N[L],z=typeof R==`object`&&R&&R.value!==void 0?R.value:E[R];if(!(d&&z===null)){var B=y&&h?String(R).replace(/\./g,`%2E`):String(R),V=s(E)?typeof a==`function`?a(I,B):I:I+(y?`.`+B:`[`+B+`]`);T.set(t,O);var H=n();H.set(m,T),l(M,e(z,V,a,o,c,u,d,h,a===`comma`&&C&&s(E)?null:g,_,v,y,b,x,S,C,w,H))}}return M},g=function(e){if(!e)return f;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.encodeDotInKeys!==void 0&&typeof e.encodeDotInKeys!=`boolean`)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&e.encoder!==void 0&&typeof e.encoder!=`function`)throw TypeError(`Encoder has to be a function.`);var t=e.charset||f.charset;if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);var n=i.default;if(e.format!==void 0){if(!a.call(i.formatters,e.format))throw TypeError(`Unknown format option provided.`);n=e.format}var r=i.formatters[n],c=f.filter;(typeof e.filter==`function`||s(e.filter))&&(c=e.filter);var l;if(l=e.arrayFormat in o?e.arrayFormat:`indices`in e?e.indices?`indices`:`repeat`:f.arrayFormat,`commaRoundTrip`in e&&typeof e.commaRoundTrip!=`boolean`)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var u=e.allowDots===void 0?e.encodeDotInKeys===!0?!0:f.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix==`boolean`?e.addQueryPrefix:f.addQueryPrefix,allowDots:u,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:l,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:f.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:e.delimiter===void 0?f.delimiter:e.delimiter,encode:typeof e.encode==`boolean`?e.encode:f.encode,encodeDotInKeys:typeof e.encodeDotInKeys==`boolean`?e.encodeDotInKeys:f.encodeDotInKeys,encoder:typeof e.encoder==`function`?e.encoder:f.encoder,encodeValuesOnly:typeof e.encodeValuesOnly==`boolean`?e.encodeValuesOnly:f.encodeValuesOnly,filter:c,format:n,formatter:r,serializeDate:typeof e.serializeDate==`function`?e.serializeDate:f.serializeDate,skipNulls:typeof e.skipNulls==`boolean`?e.skipNulls:f.skipNulls,sort:typeof e.sort==`function`?e.sort:null,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:f.strictNullHandling}};t.exports=function(e,t){var r=e,i=g(t),a,c;typeof i.filter==`function`?(c=i.filter,r=c(``,r)):s(i.filter)&&(c=i.filter,a=c);var u=[];if(typeof r!=`object`||!r)return``;var d=o[i.arrayFormat],f=d===`comma`&&i.commaRoundTrip;a||=Object.keys(r),i.sort&&a.sort(i.sort);for(var p=n(),m=0;m<a.length;++m){var _=a[m],v=r[_];i.skipNulls&&v===null||l(u,h(v,_,d,f,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,p))}var y=u.join(i.delimiter),b=i.addQueryPrefix===!0?`?`:``;return i.charsetSentinel&&(i.charset===`iso-8859-1`?b+=`utf8=%26%2310003%3B&`:b+=`utf8=%E2%9C%93&`),y.length>0?b+y:``}}),Ie=L((exports,t)=>{var n=Pe(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:`utf-8`,charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:`&`,depth:5,duplicates:`combine`,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,n){if(e&&typeof e==`string`&&t.comma&&e.indexOf(`,`)>-1)return e.split(`,`);if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw RangeError(`Array limit exceeded. Only `+t.arrayLimit+` element`+(t.arrayLimit===1?``:`s`)+` allowed in an array.`);return e},c=`utf8=%26%2310003%3B`,l=`utf8=%E2%9C%93`,u=function(e,t){var u={__proto__:null},d=t.ignoreQueryPrefix?e.replace(/^\?/,``):e;d=d.replace(/%5B/gi,`[`).replace(/%5D/gi,`]`);var f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=d.split(t.delimiter,t.throwOnLimitExceeded?f+1:f);if(t.throwOnLimitExceeded&&p.length>f)throw RangeError(`Parameter limit exceeded. Only `+f+` parameter`+(f===1?``:`s`)+` allowed.`);var m=-1,h,g=t.charset;if(t.charsetSentinel)for(h=0;h<p.length;++h)p[h].indexOf(`utf8=`)===0&&(p[h]===l?g=`utf-8`:p[h]===c&&(g=`iso-8859-1`),m=h,h=p.length);for(h=0;h<p.length;++h)if(h!==m){var _=p[h],v=_.indexOf(`]=`),y=v===-1?_.indexOf(`=`):v+1,b,x;y===-1?(b=t.decoder(_,a.decoder,g,`key`),x=t.strictNullHandling?null:``):(b=t.decoder(_.slice(0,y),a.decoder,g,`key`),x=n.maybeMap(s(_.slice(y+1),t,i(u[b])?u[b].length:0),function(e){return t.decoder(e,a.decoder,g,`value`)})),x&&t.interpretNumericEntities&&g===`iso-8859-1`&&(x=o(String(x))),_.indexOf(`[]=`)>-1&&(x=i(x)?[x]:x);var S=r.call(u,b);S&&t.duplicates===`combine`?u[b]=n.combine(u[b],x):(!S||t.duplicates===`last`)&&(u[b]=x)}return u},d=function(e,t,r,i){var a=0;if(e.length>0&&e[e.length-1]===`[]`){var o=e.slice(0,-1).join(``);a=Array.isArray(t)&&t[o]?t[o].length:0}for(var c=i?t:s(t,r,a),l=e.length-1;l>=0;--l){var u,d=e[l];if(d===`[]`&&r.parseArrays)u=r.allowEmptyArrays&&(c===``||r.strictNullHandling&&c===null)?[]:n.combine([],c);else{u=r.plainObjects?{__proto__:null}:{};var f=d.charAt(0)===`[`&&d.charAt(d.length-1)===`]`?d.slice(1,-1):d,p=r.decodeDotInKeys?f.replace(/%2E/g,`.`):f,m=parseInt(p,10);!r.parseArrays&&p===``?u={0:c}:!isNaN(m)&&d!==p&&String(m)===p&&m>=0&&r.parseArrays&&m<=r.arrayLimit?(u=[],u[m]=c):p!==`__proto__`&&(u[p]=c)}c=u}return c},f=function(e,t,n,i){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,`[$1]`):e,o=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,c=n.depth>0&&o.exec(a),l=c?a.slice(0,c.index):a,u=[];if(l){if(!n.plainObjects&&r.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var f=0;n.depth>0&&(c=s.exec(a))!==null&&f<n.depth;){if(f+=1,!n.plainObjects&&r.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(c[1])}if(c){if(n.strictDepth===!0)throw RangeError(`Input depth exceeded depth option of `+n.depth+` and strictDepth is true`);u.push(`[`+a.slice(c.index)+`]`)}return d(u,t,n,i)}},p=function(e){if(!e)return a;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.decodeDotInKeys!==void 0&&typeof e.decodeDotInKeys!=`boolean`)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!=`function`)throw TypeError(`Decoder has to be a function.`);if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);if(e.throwOnLimitExceeded!==void 0&&typeof e.throwOnLimitExceeded!=`boolean`)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=e.charset===void 0?a.charset:e.charset,r=e.duplicates===void 0?a.duplicates:e.duplicates;if(r!==`combine`&&r!==`first`&&r!==`last`)throw TypeError(`The duplicates option must be either combine, first, or last`);var i=e.allowDots===void 0?e.decodeDotInKeys===!0?!0:a.allowDots:!!e.allowDots;return{allowDots:i,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes==`boolean`?e.allowPrototypes:a.allowPrototypes,allowSparse:typeof e.allowSparse==`boolean`?e.allowSparse:a.allowSparse,arrayLimit:typeof e.arrayLimit==`number`?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:a.charsetSentinel,comma:typeof e.comma==`boolean`?e.comma:a.comma,decodeDotInKeys:typeof e.decodeDotInKeys==`boolean`?e.decodeDotInKeys:a.decodeDotInKeys,decoder:typeof e.decoder==`function`?e.decoder:a.decoder,delimiter:typeof e.delimiter==`string`||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:typeof e.depth==`number`||e.depth===!1?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities==`boolean`?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:typeof e.parameterLimit==`number`?e.parameterLimit:a.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects==`boolean`?e.plainObjects:a.plainObjects,strictDepth:typeof e.strictDepth==`boolean`?!!e.strictDepth:a.strictDepth,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded==`boolean`?e.throwOnLimitExceeded:!1}};t.exports=function(e,t){var r=p(t);if(e===``||e==null)return r.plainObjects?{__proto__:null}:{};for(var i=typeof e==`string`?u(e,r):e,a=r.plainObjects?{__proto__:null}:{},o=Object.keys(i),s=0;s<o.length;++s){var c=o[s],l=f(c,i[c],r,typeof e==`string`);a=n.merge(a,l,r)}return r.allowSparse===!0?a:n.compact(a)}}),Le=L((exports,t)=>{var n=Fe(),r=Ie(),i=Ne();t.exports={formats:i,parse:r,stringify:n}});let Re=(e,t)=>e?!t||t.length===0?e:t.reduce((e,t)=>(delete e[t],e),{...e}):{},ze=function(e){return e.JSON=`application/json`,e.FORM_URLENCODED=`application/x-www-form-urlencoded`,e.FORM_DATA=`multipart/form-data`,e.TEXT=`text/plain`,e.HTML=`text/html`,e.XML=`text/xml`,e.CSV=`text/csv`,e.STREAM=`application/octet-stream`,e}({}),J=function(e){return e[e.TIME_OUT=408]=`TIME_OUT`,e[e.ABORTED=499]=`ABORTED`,e[e.NETWORK_ERROR=599]=`NETWORK_ERROR`,e[e.BODY_NULL=502]=`BODY_NULL`,e[e.UNKNOWN=601]=`UNKNOWN`,e}({}),Be=function(e){return e.GET=`GET`,e.POST=`POST`,e.PUT=`PUT`,e.DELETE=`DELETE`,e.PATCH=`PATCH`,e.HEAD=`HEAD`,e.OPTIONS=`OPTIONS`,e}({});var Ve=z(Le()),Y=function(e){return e.JSON=`json`,e.BLOB=`blob`,e.TEXT=`text`,e.ARRAY_BUFFER=`arrayBuffer`,e.FORM_DATA=`formData`,e.BYTES=`bytes`,e}(Y||{}),X=(n=new WeakMap,r=new WeakMap,i=new WeakMap,a=new WeakMap,o=new WeakMap,s=new WeakMap,class extends Error{constructor({message:e,status:c,statusText:l,response:u,config:d,name:f}){super(e),t.classPrivateFieldInitSpec(this,n,void 0),t.classPrivateFieldInitSpec(this,r,void 0),t.classPrivateFieldInitSpec(this,i,void 0),t.classPrivateFieldInitSpec(this,a,void 0),t.classPrivateFieldInitSpec(this,o,void 0),t.classPrivateFieldInitSpec(this,s,void 0),t.classPrivateFieldSet2(n,this,e),t.classPrivateFieldSet2(i,this,c),t.classPrivateFieldSet2(a,this,l),t.classPrivateFieldSet2(o,this,u),t.classPrivateFieldSet2(s,this,d),t.classPrivateFieldSet2(r,this,f??e)}get message(){return t.classPrivateFieldGet2(n,this)}get status(){return t.classPrivateFieldGet2(i,this)}get statusText(){return t.classPrivateFieldGet2(a,this)}get response(){return t.classPrivateFieldGet2(o,this)}get config(){return t.classPrivateFieldGet2(s,this)}get name(){return t.classPrivateFieldGet2(r,this)}});let He=e=>{let t=new Map;e.forEach(e=>{t.set(e.name,e)});let n=Array.from(t.values()).sort((e,t)=>(e.priority??0)-(t.priority??0)),r=[],i=[],a=[],o=[],s=[],c=[];return n.forEach(e=>{e.beforeRequest&&r.push(e.beforeRequest),e.afterResponse&&i.push(e.afterResponse),e.onError&&a.push(e.onError),e.onFinally&&o.push(e.onFinally),e.transformStreamChunk&&s.push(e.transformStreamChunk),e.beforeStream&&c.push(e.beforeStream)}),{beforeRequestPlugins:r,afterResponsePlugins:i,errorPlugins:a,finallyPlugins:o,beforeStreamPlugins:c,transformStreamChunkPlugins:s}},Ue=(e,t,n=`repeat`)=>{if(t){let r=Ve.default.stringify(t,{arrayFormat:n});r&&(e=e.includes(`?`)?`${e}&${r}`:`${e}?${r}`)}return e},We=(e={},t={})=>{let n=e instanceof Headers?e:new Headers(e),r=e=>{e instanceof Headers||(e=new Headers(e)),e.forEach((e,t)=>{n.set(t,e)})};return r(t),n},Ge=[`PATCH`,`POST`,`PUT`],Ke=[`GET`,`HEAD`,`OPTIONS`,`DELETE`],qe=(e,t,n,r=`repeat`)=>{if(!e)return null;if(e instanceof FormData)return e;let i=null;if(Ge.includes(t.toUpperCase())){let t=new Headers(n||{}),a=t.get(`Content-Type`)||ze.JSON;if(a.includes(ze.JSON))i=JSON.stringify(e);else if(a.includes(ze.FORM_URLENCODED))i=Ve.default.stringify(e,{arrayFormat:r});else if(a.includes(ze.FORM_DATA)){let t=new FormData;if(!(e instanceof FormData)&&typeof e==`object`){let n=e;Object.keys(n).forEach(e=>{n.prototype.hasOwnProperty.call(e)&&t.append(e,n[e])}),i=t}}}return Ke.includes(t.toUpperCase())&&(i=null),i};var Je=(c=new WeakMap,l=new WeakMap,u=new WeakMap,d=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,h=new WeakMap,g=new WeakMap,_=new WeakSet,class e{constructor(e){t.classPrivateMethodInitSpec(this,_),t.classPrivateFieldInitSpec(this,c,void 0),t.classPrivateFieldInitSpec(this,l,void 0),t.classPrivateFieldInitSpec(this,u,void 0),t.classPrivateFieldInitSpec(this,d,void 0),t.classPrivateFieldInitSpec(this,f,!1),t.classPrivateFieldInitSpec(this,p,null),t.classPrivateFieldInitSpec(this,m,[]),t.classPrivateFieldInitSpec(this,h,`json`),t.classPrivateFieldInitSpec(this,g,void 0),t.classPrivateFieldSet2(g,this,e);let{plugins:n=[],controller:r,url:i,baseURL:a=``,params:o,data:s,qsArrayFormat:v=`repeat`,withCredentials:y,extra:b,method:x=`GET`,headers:S}=e;t.classPrivateFieldSet2(l,this,r??new AbortController),t.classPrivateFieldSet2(c,this,He(n)),t.classPrivateFieldSet2(u,this,{url:i,baseURL:a,params:o,data:s,withCredentials:y,extra:b,method:x,headers:S,qsArrayFormat:v}),t.classPrivateFieldSet2(d,this,t.assertClassBrand(_,this,Ye).call(this,e))}json(){return t.assertClassBrand(_,this,Q).call(this,Y.JSON,Z.call(t.assertClassBrand(_,this)).then(e=>e.json()))}lazyFinally(e){return t.classPrivateFieldGet2(p,this)?t.classPrivateFieldGet2(p,this).finally(()=>{for(let e of t.classPrivateFieldGet2(m,this))e();t.classPrivateFieldSet2(m,this,[])}):(e&&t.classPrivateFieldGet2(m,this).push(e),null)}then(e,n){return Qe.call(t.assertClassBrand(_,this)).then(async n=>e?.call(this,await t.assertClassBrand(_,this,$e).call(this,n)),async e=>n?.call(this,await t.assertClassBrand(_,this,Ze).call(this,e)))}catch(e){return Qe.call(t.assertClassBrand(_,this)).catch(e)}finally(e){return Qe.call(t.assertClassBrand(_,this)).finally(e)}abort(){t.classPrivateFieldGet2(l,this).abort()}blob(){return t.assertClassBrand(_,this,Q).call(this,Y.BLOB,Z.call(t.assertClassBrand(_,this)).then(e=>e.blob()))}text(){return t.assertClassBrand(_,this,Q).call(this,Y.TEXT,Z.call(t.assertClassBrand(_,this)).then(e=>e.text()))}arrayBuffer(){return t.assertClassBrand(_,this,Q).call(this,Y.ARRAY_BUFFER,Z.call(t.assertClassBrand(_,this)).then(e=>e.arrayBuffer()))}formData(){return t.assertClassBrand(_,this,Q).call(this,Y.FORM_DATA,Z.call(t.assertClassBrand(_,this)).then(e=>e.formData()))}bytes(){return t.assertClassBrand(_,this,Q).call(this,Y.BYTES,Z.call(t.assertClassBrand(_,this)).then(e=>e.bytes()))}async*stream(){var e;let n=(e=await Z.call(t.assertClassBrand(_,this)))?.body;if(!n)throw Error(`Response body is null`);for(let e of t.classPrivateFieldGet2(c,this).beforeStreamPlugins)n=await e(n,t.classPrivateFieldGet2(u,this));let r=n.getReader();if(!r)throw Error(`Response body reader is null`);try{for(;;){let{done:e,value:n}=await r.read();if(e)break;let i={source:n,result:n,error:null};try{for(let e of t.classPrivateFieldGet2(c,this).transformStreamChunkPlugins)i=await e(i,t.classPrivateFieldGet2(u,this));if(i.result&&(et(i.result)||tt(i.result)))for await(let e of i.result){let t={source:i.source,result:e,error:null};yield t}else yield i}catch(e){i.error=e,i.result=null,yield i}}}catch(e){return t.assertClassBrand(_,this,Ze).call(this,e)}finally{r.releaseLock()}}retry(){let{controller:n,...r}=t.classPrivateFieldGet2(g,this);return new e(r)}get response(){return Z.call(t.assertClassBrand(_,this))}});function Ye({timeout:e}){return new Promise(async(n,r)=>{let i=t.classPrivateFieldGet2(u,this),{beforeRequestPlugins:a}=t.classPrivateFieldGet2(c,this);for(let e of a)i=await e(i);let o=Ue(i.baseURL+i.url,i.params,i.qsArrayFormat),s=qe(i.data,i.method,i.headers,i.qsArrayFormat),d=Re(i??{},[`baseURL`,`data`,`extra`,`headers`,`method`,`params`,`url`,`withCredentials`]),p={...d,method:i.method,headers:i.headers,signal:t.classPrivateFieldGet2(l,this).signal,credentials:i.withCredentials?`include`:`omit`,body:s},m=fetch(o,p),h=[m],g=null;if(e){let n=new Promise(n=>{g=setTimeout(()=>{var e;t.classPrivateFieldSet2(f,this,!0),(e=t.classPrivateFieldGet2(l,this))?.abort()},e)});h.push(n)}let v=null;try{let e=await Promise.race(h);e?(e.ok&&n(e),v=new X({message:`Fail Request`,status:e.status,statusText:e.statusText,config:t.classPrivateFieldGet2(u,this),name:`Fail Request`})):v=new X({message:`NETWORK_ERROR`,status:J.NETWORK_ERROR,statusText:`Network Error`,config:t.classPrivateFieldGet2(u,this),name:`Network Error`})}catch(e){v=e}finally{v&&r(await t.assertClassBrand(_,this,Ze).call(this,v)),g&&clearTimeout(g)}})}async function Xe(e){return e instanceof X?e:e instanceof TypeError?e.name===`AbortError`?t.classPrivateFieldGet2(f,this)?new X({message:`Request timeout`,status:J.TIME_OUT,statusText:`Request timeout`,config:t.classPrivateFieldGet2(u,this),name:`Request timeout`,response:await Z.call(t.assertClassBrand(_,this))}):new X({message:`Request aborted`,status:J.ABORTED,statusText:`Request aborted`,config:t.classPrivateFieldGet2(u,this),name:`Request aborted`,response:await Z.call(t.assertClassBrand(_,this))}):new X({message:e.message,status:J.NETWORK_ERROR,statusText:`Unknown Request Error`,config:t.classPrivateFieldGet2(u,this),name:e.name,response:await Z.call(t.assertClassBrand(_,this))}):new X({message:e?.message??`Unknown Request Error`,status:J.UNKNOWN,statusText:`Unknown Request Error`,config:t.classPrivateFieldGet2(u,this),name:`Unknown Request Error`,response:await Z.call(t.assertClassBrand(_,this))})}async function Ze(e){let n=await t.assertClassBrand(_,this,Xe).call(this,e);for(let e of t.classPrivateFieldGet2(c,this).errorPlugins)n=await e(n,t.classPrivateFieldGet2(u,this));return n}function Qe(){return t.classPrivateFieldGet2(p,this)?t.classPrivateFieldGet2(p,this):Z.call(t.assertClassBrand(_,this))}async function $e(e){let n=t.classPrivateFieldGet2(c,this).afterResponsePlugins,r={config:t.classPrivateFieldGet2(u,this),response:await Z.call(t.assertClassBrand(_,this)).then(e=>e.clone()),responseType:t.classPrivateFieldGet2(h,this),controller:t.classPrivateFieldGet2(l,this),result:e};for(let e of n)r=await e(r,t.classPrivateFieldGet2(u,this));return r.result}function Z(){return t.classPrivateFieldGet2(d,this).then(e=>e.clone())}function Q(e,n){return t.classPrivateFieldSet2(p,this,n.then(n=>(t.classPrivateFieldSet2(h,this,e),t.assertClassBrand(_,this,$e).call(this,n))).catch(n=>(t.classPrivateFieldSet2(h,this,e),t.assertClassBrand(_,this,Ze).call(this,n)))),t.classPrivateFieldGet2(p,this).finally(this.lazyFinally.bind(this)),t.classPrivateFieldGet2(p,this)}let et=e=>e[Symbol.toStringTag]===`Generator`&&typeof e.next==`function`&&typeof e.return==`function`&&typeof e.throw==`function`&&typeof e[Symbol.iterator]==`function`,tt=e=>e[Symbol.toStringTag]===`AsyncGenerator`&&typeof e.next==`function`&&typeof e.return==`function`&&typeof e.throw==`function`&&typeof e[Symbol.asyncIterator]==`function`,nt=e=>new Je(e);var rt=(v=new WeakMap,y=new WeakMap,b=new WeakMap,x=new WeakMap,S=new WeakMap,C=new WeakMap,w=new WeakSet,class{constructor({timeout:e=0,baseURL:n=``,headers:r={},plugins:i=[],withCredentials:a=!1}){t.classPrivateMethodInitSpec(this,w),t.classPrivateFieldInitSpec(this,v,void 0),t.classPrivateFieldInitSpec(this,y,void 0),t.classPrivateFieldInitSpec(this,b,void 0),t.classPrivateFieldInitSpec(this,x,[]),t.classPrivateFieldInitSpec(this,S,[]),t.classPrivateFieldInitSpec(this,C,void 0),t.classPrivateFieldSet2(v,this,e),t.classPrivateFieldSet2(y,this,n),t.classPrivateFieldSet2(b,this,r),t.classPrivateFieldSet2(S,this,i),t.classPrivateFieldSet2(C,this,a),this.request=this.request.bind(this),this.get=this.get.bind(this),this.head=this.head.bind(this),this.options=this.options.bind(this),this.delete=this.delete.bind(this),this.post=this.post.bind(this),this.put=this.put.bind(this),this.patch=this.patch.bind(this),this.abortAll=this.abortAll.bind(this),this.use=this.use.bind(this)}use(e){return t.classPrivateFieldGet2(S,this).push(e),this}request(e,{timeout:n,headers:r,method:i=`GET`,params:a={},data:o,qsArrayFormat:s,withCredentials:c,extra:l}={}){let u=new AbortController;t.classPrivateFieldGet2(x,this).push(u);let d=nt({url:e,baseURL:t.classPrivateFieldGet2(y,this),timeout:n??t.classPrivateFieldGet2(v,this),plugins:t.classPrivateFieldGet2(S,this),headers:We(t.classPrivateFieldGet2(b,this),r),controller:u,method:i,params:a,data:o,qsArrayFormat:s,withCredentials:c??t.classPrivateFieldGet2(C,this),extra:l});return d.lazyFinally(()=>{t.classPrivateFieldSet2(x,this,t.classPrivateFieldGet2(x,this).filter(e=>e!==u))}),d}get(e,n={},r){return t.assertClassBrand(w,this,it).call(this,e,n,{...r,method:`GET`})}head(e,n={},r){return t.assertClassBrand(w,this,it).call(this,e,n,{...r,method:`HEAD`})}options(e,n={},r){return t.assertClassBrand(w,this,it).call(this,e,n,{...r,method:`OPTIONS`})}delete(e,t){return this.request(e,{...t,method:`DELETE`})}post(e,n,r){return t.assertClassBrand(w,this,at).call(this,e,n,{...r,method:`POST`})}upload(e,n,r){let i=new FormData;for(let e in n)if(Object.prototype.hasOwnProperty.call(n,e)){let t=n[e];t instanceof File||t instanceof Blob?i.append(e,t):i.append(e,String(t))}return t.assertClassBrand(w,this,at).call(this,e,i,{...r,method:`POST`})}put(e,n,r){return t.assertClassBrand(w,this,at).call(this,e,n,{...r,method:`PUT`})}patch(e,n,r){return t.assertClassBrand(w,this,at).call(this,e,n,{...r,method:`PATCH`})}abortAll(){t.classPrivateFieldGet2(x,this).forEach(e=>e.abort()),t.classPrivateFieldSet2(x,this,[])}});function it(e,t={},n={}){return this.request(e,{...n,params:t})}function at(e,t={},n={}){return this.request(e,{...n,data:t})}let ot=(e,t={})=>nt({url:e,baseURL:``,...t}),st=(e,t,n={})=>ot(e,{...n,params:t}),ct=(e,t=null,n={})=>ot(e,{...n,data:t}),lt=ot,ut=(e,t={},n)=>st(e,t,{...n,method:`GET`}),dt=(e,t={},n)=>st(e,t,{...n,method:`HEAD`}),ft=(e,t={},n)=>st(e,t,{...n,method:`OPTIONS`}),pt=(e,t)=>ot(e,{...t,method:`DELETE`}),mt=(e,t,n)=>ct(e,t,{...n,method:`POST`}),ht=(e,t,n)=>{let r=new FormData;for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)){let n=t[e];n instanceof File||n instanceof Blob?r.append(e,n):r.append(e,String(n))}return ct(e,r,{...n,method:`POST`})},gt=(e,t,n)=>ct(e,t,{...n,method:`PUT`}),_t=(e,t,n)=>ct(e,t,{...n,method:`PATCH`}),$=ot;$.create=e=>{let t=new rt(e),n=t.request.bind(void 0);return Object.assign(n,rt.prototype,t),n},$.get=ut,$.head=dt,$.options=ft,$.delete=pt,$.post=mt,$.put=gt,$.patch=_t,$.upload=ht;var vt=$,yt=(T=new WeakMap,E=new WeakMap,D=new WeakMap,O=new WeakMap,k=new WeakMap,A=new WeakMap,class extends Error{constructor({message:e,status:n,statusText:r,response:i,config:a,name:o}){super(e),t.classPrivateFieldInitSpec(this,T,void 0),t.classPrivateFieldInitSpec(this,E,void 0),t.classPrivateFieldInitSpec(this,D,void 0),t.classPrivateFieldInitSpec(this,O,void 0),t.classPrivateFieldInitSpec(this,k,void 0),t.classPrivateFieldInitSpec(this,A,void 0),t.classPrivateFieldSet2(T,this,e),t.classPrivateFieldSet2(D,this,n),t.classPrivateFieldSet2(O,this,r),t.classPrivateFieldSet2(k,this,i),t.classPrivateFieldSet2(A,this,a),t.classPrivateFieldSet2(E,this,o??e)}get message(){return t.classPrivateFieldGet2(T,this)}get status(){return t.classPrivateFieldGet2(D,this)}get statusText(){return t.classPrivateFieldGet2(O,this)}get response(){return t.classPrivateFieldGet2(k,this)}get config(){return t.classPrivateFieldGet2(A,this)}get name(){return t.classPrivateFieldGet2(E,this)}});let bt=({splitSeparator:e=`
|
|
5
5
|
|
|
6
|
-
`,lineSeparator:t=void 0,trim:n=!0,json:r=!1,prefix:i=``,doneSymbol:a=void 0}={})=>({name:`sse`,async beforeStream(o,s){var c;if(!((c=s.extra)?.sseAble??!0))return o;let l=new TextDecoderStream,u=new
|
|
6
|
+
`,lineSeparator:t=void 0,trim:n=!0,json:r=!1,prefix:i=``,doneSymbol:a=void 0}={})=>({name:`sse`,async beforeStream(o,s){var c;if(!((c=s.extra)?.sseAble??!0))return o;let l=new TextDecoderStream,u=new St({splitSeparator:e}),d=new Ct({splitSeparator:t,trim:n,json:r,prefix:i,doneSymbol:a});return o.pipeThrough(l).pipeThrough(u).pipeThrough(d)}}),xt=e=>(e??``).trim()!==``;var St=class extends TransformStream{constructor({splitSeparator:e=`
|
|
7
7
|
|
|
8
|
-
`}={}){let t=``,n={transform(n,r){t+=n;let i=t.split(e);i.slice(0,-1).forEach(e=>{
|
|
8
|
+
`}={}){let t=``,n={transform(n,r){t+=n;let i=t.split(e);i.slice(0,-1).forEach(e=>{xt(e)&&r.enqueue(e)}),t=i[i.length-1]},flush(e){xt(t)&&e.enqueue(t)}};super(n)}},Ct=class extends TransformStream{constructor({splitSeparator:e=void 0,trim:t=!0,json:n=!1,prefix:r=``,doneSymbol:i=void 0}={}){let a=(e,t)=>t?e.trim():e,o=e=>!!i&&e.slice(r.length).trim()===i,s={transform(i,s){let c=e?i.split(e):[i];for(let e of c)if(n)try{let t=JSON.parse(e.slice(r.length).trim());s.enqueue(t)}catch{o(e)?s.terminate():s.enqueue(a(e,t))}else o(e)?s.terminate():s.enqueue(a(e,t))}};super(s)}},wt=vt;globalThis&&(globalThis.hookFetch=vt),exports.ContentType=ze,exports.Method=Be,exports.ResponseError=yt,exports.StatusCode=J,exports.default=wt,exports.del=pt,exports.get=ut,exports.head=dt,exports.options=ft,exports.patch=_t,exports.post=mt,exports.put=gt,exports.request=lt,exports.sseTextDecoderPlugin=bt,exports.upload=ht});
|
package/package.json
CHANGED
package/types/react/index.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ interface UseHookFetchOptions<Q extends (...args: any[]) => any> {
|
|
|
21
21
|
*/
|
|
22
22
|
export declare const useHookFetch: <Q extends (...args: any[]) => any>({ request, onError }: UseHookFetchOptions<Q>) => {
|
|
23
23
|
request: (...args: any[]) => import('react').RefObject<HookFetchRequest<any, any> | null>;
|
|
24
|
-
stream: (...args: Parameters<Q>) => AsyncGenerator<import('..').StreamContext<unknown> | import('..').StreamContext<null>,
|
|
24
|
+
stream: (...args: Parameters<Q>) => AsyncGenerator<import('..').StreamContext<unknown> | import('..').StreamContext<null>, import('../utils').ResponseError<unknown> | undefined, unknown>;
|
|
25
25
|
text: (...args: Parameters<Q>) => Promise<any>;
|
|
26
26
|
blob: (...args: Parameters<Q>) => Promise<any>;
|
|
27
27
|
arrayBufferData: (...args: Parameters<Q>) => Promise<any>;
|
package/types/types.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ export type HookFetchPlugin<T = unknown, E = unknown, P = unknown, D = unknown>
|
|
|
55
55
|
afterResponse?: AfterResponseHandler<T, E, P, D>;
|
|
56
56
|
beforeStream?: BeforeStreamHandler<E, P, D>;
|
|
57
57
|
transformStreamChunk?: TransformStreamChunkHandler<E, P, D>;
|
|
58
|
-
onError?: (error:
|
|
58
|
+
onError?: (error: ResponseError, config: RequestConfig<P, D, E>) => Promise<Error | void | ResponseError<E>>;
|
|
59
59
|
onFinally?: OnFinallyHandler<E, P, D>;
|
|
60
60
|
};
|
|
61
61
|
export interface OptionProps {
|
package/types/utils.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export declare class HookFetchRequest<T, E> implements PromiseLike<T> {
|
|
|
31
31
|
arrayBuffer(): Promise<any>;
|
|
32
32
|
formData(): Promise<any>;
|
|
33
33
|
bytes(): Promise<any>;
|
|
34
|
-
stream<T>(): AsyncGenerator<StreamContext<T> | StreamContext<null>,
|
|
34
|
+
stream<T>(): AsyncGenerator<StreamContext<T> | StreamContext<null>, ResponseError<unknown> | undefined, unknown>;
|
|
35
35
|
retry(): HookFetchRequest<unknown, E>;
|
|
36
36
|
get response(): Promise<Response>;
|
|
37
37
|
}
|
package/types/vue/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ interface UseHookFetchOptions<Q extends (...args: any[]) => any> {
|
|
|
20
20
|
*/
|
|
21
21
|
export declare const useHookFetch: <Q extends (...args: any[]) => any>({ request, onError }: UseHookFetchOptions<Q>) => {
|
|
22
22
|
request: (...args: any[]) => HookFetchRequest<any, any> | null;
|
|
23
|
-
stream: (...args: Parameters<Q>) => AsyncGenerator<import('..').StreamContext<unknown> | import('..').StreamContext<null>,
|
|
23
|
+
stream: (...args: Parameters<Q>) => AsyncGenerator<import('..').StreamContext<unknown> | import('..').StreamContext<null>, import('../utils').ResponseError<unknown> | undefined, unknown>;
|
|
24
24
|
text: (...args: Parameters<Q>) => Promise<any>;
|
|
25
25
|
blob: (...args: Parameters<Q>) => Promise<any>;
|
|
26
26
|
arrayBufferData: (...args: Parameters<Q>) => Promise<any>;
|