@oiyo/framework 0.4.0-beta.4 → 0.4.1

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.0-beta.4
2
+ * @oiyo/framework v0.4.1
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
@@ -60,7 +60,7 @@ type UniAppRequestOptions = Omit<UniNamespace.RequestOptions, 'url' | 'data' | '
60
60
  type UniAppRequestResponse<TRBody = any> = Prettify<Omit<UniNamespace.RequestSuccessCallbackResult, 'data'> & {
61
61
  data: TRBody;
62
62
  }>;
63
- type UniAppUploadOptions = Omit<UniNamespace.UploadFileOption, 'url' | 'name' | 'header' | 'formData' | 'timeout' | 'success' | 'fail' | 'complete'>;
63
+ type UniAppUploadOptions = Omit<UniNamespace.UploadFileOption, 'url' | 'header' | 'formData' | 'timeout' | 'success' | 'fail' | 'complete'>;
64
64
  interface UniAppOnUploadProgress extends UniNamespace.OnProgressUpdateResult {}
65
65
  type UniAppUploadResponse<TRBody = any> = Prettify<Omit<UniNamespace.UploadFileSuccessCallbackResult, 'data'> & {
66
66
  data: TRBody;
@@ -87,7 +87,7 @@ interface HeadersReceived {
87
87
  /**
88
88
  * 所有请求共享的基础选项。
89
89
  */
90
- interface HttpBaseOptions<TRBType extends ResponseBodyType = ResponseBodyType> {
90
+ interface HttpCommonOptions<TRBType extends ResponseBodyType = ResponseBodyType> {
91
91
  baseURL?: string;
92
92
  method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'HEAD' | 'OPTIONS' | 'TRACE' | 'CONNECT';
93
93
  headers?: Record<string, string>;
@@ -119,17 +119,12 @@ interface HttpBaseOptions<TRBType extends ResponseBodyType = ResponseBodyType> {
119
119
  */
120
120
  onHeadersReceived?: (result: HeadersReceived) => void;
121
121
  }
122
- interface HttpRequestOptions<TRBType extends ResponseBodyType = ResponseBodyType> extends HttpBaseOptions<TRBType>, UniAppRequestOptions {
122
+ interface HttpRequestOptions<TRBType extends ResponseBodyType = ResponseBodyType> extends HttpCommonOptions<TRBType>, UniAppRequestOptions {
123
123
  method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'HEAD' | 'OPTIONS' | 'TRACE' | 'CONNECT';
124
124
  }
125
- interface HttpUploadOptions<TRBType extends ResponseBodyType = ResponseBodyType> extends HttpBaseOptions<TRBType>, UniAppUploadOptions {
125
+ interface HttpUploadOptions<TRBType extends ResponseBodyType = ResponseBodyType> extends HttpCommonOptions<TRBType>, UniAppUploadOptions {
126
126
  /**
127
- * 文件对应的 key
128
- * @default - 'file'
129
- */
130
- name?: string;
131
- /**
132
- * 上传请求方法
127
+ * 上传请求方法,强制 POST
133
128
  * @default - 'POST'
134
129
  */
135
130
  method?: 'POST';
@@ -138,9 +133,9 @@ interface HttpUploadOptions<TRBType extends ResponseBodyType = ResponseBodyType>
138
133
  */
139
134
  onProgress?: (result: UniAppOnUploadProgress) => void;
140
135
  }
141
- interface HttpDownloadOptions<TRBType extends UniAppDownloadBodyType = 'json'> extends HttpBaseOptions<TRBType>, UniAppDownloadOptions {
136
+ interface HttpDownloadOptions<TRBType extends UniAppDownloadBodyType = 'json'> extends HttpCommonOptions<TRBType>, UniAppDownloadOptions {
142
137
  /**
143
- * 下载请求方法
138
+ * 下载请求方法,强制 GET
144
139
  * @default - 'GET'
145
140
  */
146
141
  method?: 'GET';
@@ -150,7 +145,7 @@ interface HttpDownloadOptions<TRBType extends UniAppDownloadBodyType = 'json'> e
150
145
  onProgress?: (result: UniAppDownloadProgress) => void;
151
146
  }
152
147
  type HttpURL = string;
153
- type HttpOptions = HttpRequestOptions | HttpUploadOptions | HttpDownloadOptions;
148
+ interface HttpOptions extends HttpCommonOptions, UniAppRequestOptions, UniAppUploadOptions, UniAppDownloadOptions {}
154
149
  //#endregion
155
150
  //#region src/oiyo/http/types/response.d.ts
156
151
  type HttpRequestResponse<TRBody = any, TRBType extends ResponseBodyType = ResponseBodyType> = MappedResponseBodyType<TRBType, TRBody>;
@@ -201,7 +196,7 @@ interface HttpHooks<TContextOptions, TResponse> {
201
196
  response: TResponse;
202
197
  }) => MaybePromise<void>;
203
198
  }
204
- interface HttpConfig extends HttpBaseOptions<ResponseBodyType>, HttpHooks<HttpConfig, HttpRawResponse> {}
199
+ interface HttpConfig extends HttpCommonOptions, HttpHooks<HttpOptions, HttpRawResponse> {}
205
200
  interface HttpError<T = any> extends Error {
206
201
  resource?: HttpURL;
207
202
  options?: HttpOptions;
@@ -231,4 +226,4 @@ interface Http {
231
226
  declare function createHttp(globalConfig?: HttpConfig): Http;
232
227
  declare const http: Http;
233
228
  //#endregion
234
- export { HttpDownloadResponse as a, HttpDownloadOptions as c, ResponseBodyType as d, createHttpAborter as f, HttpError as i, HttpRequestOptions as l, http as n, HttpRequestResponse as o, HttpConfig as r, HttpUploadResponse as s, createHttp as t, HttpUploadOptions as u };
229
+ export { HttpDownloadResponse as a, HttpCommonOptions as c, HttpRequestOptions as d, HttpUploadOptions as f, HttpError as i, HttpDownloadOptions as l, createHttpAborter as m, http as n, HttpRequestResponse as o, ResponseBodyType as p, HttpConfig as r, HttpUploadResponse as s, createHttp as t, HttpOptions as u };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.0-beta.4
2
+ * @oiyo/framework v0.4.1
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
@@ -60,7 +60,7 @@ type UniAppRequestOptions = Omit<UniNamespace.RequestOptions, 'url' | 'data' | '
60
60
  type UniAppRequestResponse<TRBody = any> = Prettify<Omit<UniNamespace.RequestSuccessCallbackResult, 'data'> & {
61
61
  data: TRBody;
62
62
  }>;
63
- type UniAppUploadOptions = Omit<UniNamespace.UploadFileOption, 'url' | 'name' | 'header' | 'formData' | 'timeout' | 'success' | 'fail' | 'complete'>;
63
+ type UniAppUploadOptions = Omit<UniNamespace.UploadFileOption, 'url' | 'header' | 'formData' | 'timeout' | 'success' | 'fail' | 'complete'>;
64
64
  interface UniAppOnUploadProgress extends UniNamespace.OnProgressUpdateResult {}
65
65
  type UniAppUploadResponse<TRBody = any> = Prettify<Omit<UniNamespace.UploadFileSuccessCallbackResult, 'data'> & {
66
66
  data: TRBody;
@@ -87,7 +87,7 @@ interface HeadersReceived {
87
87
  /**
88
88
  * 所有请求共享的基础选项。
89
89
  */
90
- interface HttpBaseOptions<TRBType extends ResponseBodyType = ResponseBodyType> {
90
+ interface HttpCommonOptions<TRBType extends ResponseBodyType = ResponseBodyType> {
91
91
  baseURL?: string;
92
92
  method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'HEAD' | 'OPTIONS' | 'TRACE' | 'CONNECT';
93
93
  headers?: Record<string, string>;
@@ -119,17 +119,12 @@ interface HttpBaseOptions<TRBType extends ResponseBodyType = ResponseBodyType> {
119
119
  */
120
120
  onHeadersReceived?: (result: HeadersReceived) => void;
121
121
  }
122
- interface HttpRequestOptions<TRBType extends ResponseBodyType = ResponseBodyType> extends HttpBaseOptions<TRBType>, UniAppRequestOptions {
122
+ interface HttpRequestOptions<TRBType extends ResponseBodyType = ResponseBodyType> extends HttpCommonOptions<TRBType>, UniAppRequestOptions {
123
123
  method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'HEAD' | 'OPTIONS' | 'TRACE' | 'CONNECT';
124
124
  }
125
- interface HttpUploadOptions<TRBType extends ResponseBodyType = ResponseBodyType> extends HttpBaseOptions<TRBType>, UniAppUploadOptions {
125
+ interface HttpUploadOptions<TRBType extends ResponseBodyType = ResponseBodyType> extends HttpCommonOptions<TRBType>, UniAppUploadOptions {
126
126
  /**
127
- * 文件对应的 key
128
- * @default - 'file'
129
- */
130
- name?: string;
131
- /**
132
- * 上传请求方法
127
+ * 上传请求方法,强制 POST
133
128
  * @default - 'POST'
134
129
  */
135
130
  method?: 'POST';
@@ -138,9 +133,9 @@ interface HttpUploadOptions<TRBType extends ResponseBodyType = ResponseBodyType>
138
133
  */
139
134
  onProgress?: (result: UniAppOnUploadProgress) => void;
140
135
  }
141
- interface HttpDownloadOptions<TRBType extends UniAppDownloadBodyType = 'json'> extends HttpBaseOptions<TRBType>, UniAppDownloadOptions {
136
+ interface HttpDownloadOptions<TRBType extends UniAppDownloadBodyType = 'json'> extends HttpCommonOptions<TRBType>, UniAppDownloadOptions {
142
137
  /**
143
- * 下载请求方法
138
+ * 下载请求方法,强制 GET
144
139
  * @default - 'GET'
145
140
  */
146
141
  method?: 'GET';
@@ -150,7 +145,7 @@ interface HttpDownloadOptions<TRBType extends UniAppDownloadBodyType = 'json'> e
150
145
  onProgress?: (result: UniAppDownloadProgress) => void;
151
146
  }
152
147
  type HttpURL = string;
153
- type HttpOptions = HttpRequestOptions | HttpUploadOptions | HttpDownloadOptions;
148
+ interface HttpOptions extends HttpCommonOptions, UniAppRequestOptions, UniAppUploadOptions, UniAppDownloadOptions {}
154
149
  //#endregion
155
150
  //#region src/oiyo/http/types/response.d.ts
156
151
  type HttpRequestResponse<TRBody = any, TRBType extends ResponseBodyType = ResponseBodyType> = MappedResponseBodyType<TRBType, TRBody>;
@@ -201,7 +196,7 @@ interface HttpHooks<TContextOptions, TResponse> {
201
196
  response: TResponse;
202
197
  }) => MaybePromise<void>;
203
198
  }
204
- interface HttpConfig extends HttpBaseOptions<ResponseBodyType>, HttpHooks<HttpConfig, HttpRawResponse> {}
199
+ interface HttpConfig extends HttpCommonOptions, HttpHooks<HttpOptions, HttpRawResponse> {}
205
200
  interface HttpError<T = any> extends Error {
206
201
  resource?: HttpURL;
207
202
  options?: HttpOptions;
@@ -231,4 +226,4 @@ interface Http {
231
226
  declare function createHttp(globalConfig?: HttpConfig): Http;
232
227
  declare const http: Http;
233
228
  //#endregion
234
- export { HttpDownloadResponse as a, HttpDownloadOptions as c, ResponseBodyType as d, createHttpAborter as f, HttpError as i, HttpRequestOptions as l, http as n, HttpRequestResponse as o, HttpConfig as r, HttpUploadResponse as s, createHttp as t, HttpUploadOptions as u };
229
+ export { HttpDownloadResponse as a, HttpCommonOptions as c, HttpRequestOptions as d, HttpUploadOptions as f, HttpError as i, HttpDownloadOptions as l, createHttpAborter as m, http as n, HttpRequestResponse as o, ResponseBodyType as p, HttpConfig as r, HttpUploadResponse as s, createHttp as t, HttpOptions as u };
package/dist/index.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @oiyo/framework v0.4.0-beta.4
2
+ * @oiyo/framework v0.4.1
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
6
6
  */
7
7
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
8
- require("./rolldown-runtime-BU7qlqHq.cjs");
9
- const require_oiyo = require("./oiyo-Bk99mH2t.cjs");
8
+ require("./rolldown-runtime-DXRHM9Mm.cjs");
9
+ const require_oiyo = require("./oiyo-Cf-hBSyT.cjs");
10
10
  require("./uni.cjs");
11
11
  require("./vue.cjs");
12
12
  //#endregion
package/dist/index.d.cts CHANGED
@@ -1,16 +1,16 @@
1
1
  /**
2
- * @oiyo/framework v0.4.0-beta.4
2
+ * @oiyo/framework v0.4.1
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
6
6
  */
7
- import { a as HttpDownloadResponse, c as HttpDownloadOptions, d as ResponseBodyType, f as createHttpAborter, i as HttpError, l as HttpRequestOptions, n as http, o as HttpRequestResponse, r as HttpConfig, s as HttpUploadResponse, t as createHttp, u as HttpUploadOptions } from "./index-5kdIt9Pt.cjs";
7
+ import { a as HttpDownloadResponse, c as HttpCommonOptions, d as HttpRequestOptions, f as HttpUploadOptions, i as HttpError, l as HttpDownloadOptions, m as createHttpAborter, n as http, o as HttpRequestResponse, p as ResponseBodyType, r as HttpConfig, s as HttpUploadResponse, t as createHttp, u as HttpOptions } from "./index-CR-xdBFX.cjs";
8
8
  export * from "@dcloudio/uni-app";
9
9
  export * from "vue";
10
10
 
11
11
  //#region src/index.d.ts
12
12
  declare namespace index_d_exports {
13
- export { HttpConfig, HttpDownloadOptions, HttpDownloadResponse, HttpError, HttpRequestOptions, HttpRequestResponse, HttpUploadOptions, HttpUploadResponse, ResponseBodyType, createHttp, createHttpAborter, http };
13
+ export { HttpCommonOptions, HttpConfig, HttpDownloadOptions, HttpDownloadResponse, HttpError, HttpOptions, HttpRequestOptions, HttpRequestResponse, HttpUploadOptions, HttpUploadResponse, ResponseBodyType, createHttp, createHttpAborter, http };
14
14
  }
15
15
  //#endregion
16
- export { type HttpConfig, type HttpDownloadOptions, type HttpDownloadResponse, type HttpError, type HttpRequestOptions, type HttpRequestResponse, type HttpUploadOptions, type HttpUploadResponse, type ResponseBodyType, createHttp, createHttpAborter, http };
16
+ export { type HttpCommonOptions, type HttpConfig, type HttpDownloadOptions, type HttpDownloadResponse, type HttpError, type HttpOptions, type HttpRequestOptions, type HttpRequestResponse, type HttpUploadOptions, type HttpUploadResponse, type ResponseBodyType, createHttp, createHttpAborter, http };
package/dist/index.d.mts CHANGED
@@ -1,16 +1,16 @@
1
1
  /**
2
- * @oiyo/framework v0.4.0-beta.4
2
+ * @oiyo/framework v0.4.1
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
6
6
  */
7
- import { a as HttpDownloadResponse, c as HttpDownloadOptions, d as ResponseBodyType, f as createHttpAborter, i as HttpError, l as HttpRequestOptions, n as http, o as HttpRequestResponse, r as HttpConfig, s as HttpUploadResponse, t as createHttp, u as HttpUploadOptions } from "./index-5kdIt9Pt.mjs";
7
+ import { a as HttpDownloadResponse, c as HttpCommonOptions, d as HttpRequestOptions, f as HttpUploadOptions, i as HttpError, l as HttpDownloadOptions, m as createHttpAborter, n as http, o as HttpRequestResponse, p as ResponseBodyType, r as HttpConfig, s as HttpUploadResponse, t as createHttp, u as HttpOptions } from "./index-CR-xdBFX.mjs";
8
8
  export * from "@dcloudio/uni-app";
9
9
  export * from "vue";
10
10
 
11
11
  //#region src/index.d.ts
12
12
  declare namespace index_d_exports {
13
- export { HttpConfig, HttpDownloadOptions, HttpDownloadResponse, HttpError, HttpRequestOptions, HttpRequestResponse, HttpUploadOptions, HttpUploadResponse, ResponseBodyType, createHttp, createHttpAborter, http };
13
+ export { HttpCommonOptions, HttpConfig, HttpDownloadOptions, HttpDownloadResponse, HttpError, HttpOptions, HttpRequestOptions, HttpRequestResponse, HttpUploadOptions, HttpUploadResponse, ResponseBodyType, createHttp, createHttpAborter, http };
14
14
  }
15
15
  //#endregion
16
- export { type HttpConfig, type HttpDownloadOptions, type HttpDownloadResponse, type HttpError, type HttpRequestOptions, type HttpRequestResponse, type HttpUploadOptions, type HttpUploadResponse, type ResponseBodyType, createHttp, createHttpAborter, http };
16
+ export { type HttpCommonOptions, type HttpConfig, type HttpDownloadOptions, type HttpDownloadResponse, type HttpError, type HttpOptions, type HttpRequestOptions, type HttpRequestResponse, type HttpUploadOptions, type HttpUploadResponse, type ResponseBodyType, createHttp, createHttpAborter, http };
package/dist/index.mjs CHANGED
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @oiyo/framework v0.4.0-beta.4
2
+ * @oiyo/framework v0.4.1
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
6
6
  */
7
- import "./rolldown-runtime-C4TXImMl.mjs";
8
- import { n as http, r as createHttpAborter, t as createHttp } from "./oiyo-BGCwnpnq.mjs";
7
+ import "./rolldown-runtime-BiDmVKcM.mjs";
8
+ import { n as http, r as createHttpAborter, t as createHttp } from "./oiyo-Bwn9BFbV.mjs";
9
9
  import "./uni.mjs";
10
10
  import "./vue.mjs";
11
11
  export * from "@dcloudio/uni-app";
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @oiyo/framework v0.4.1
3
+ * Copyright (c) 2026 skiyee. All rights reserved.
4
+ * Commercial software. See LICENSE for terms.
5
+ * Official site: https://oiyo.js.org
6
+ */
7
+ const _0x1e4098=_0x4d6f;(function(_0x16a83d,_0x4806f6){const _0x55b09c=_0x4d6f,_0xf02403=_0x16a83d();while(!![]){try{const _0x4989e5=parseInt(_0x55b09c(0x195))/0x1+-parseInt(_0x55b09c(0x19c))/0x2+parseInt(_0x55b09c(0x1ae))/0x3*(parseInt(_0x55b09c(0x16d))/0x4)+-parseInt(_0x55b09c(0x190))/0x5*(parseInt(_0x55b09c(0x1b1))/0x6)+parseInt(_0x55b09c(0x1a2))/0x7*(-parseInt(_0x55b09c(0x1a4))/0x8)+parseInt(_0x55b09c(0x1b7))/0x9+parseInt(_0x55b09c(0x1b9))/0xa;if(_0x4989e5===_0x4806f6)break;else _0xf02403['push'](_0xf02403['shift']());}catch(_0x91bf85){_0xf02403['push'](_0xf02403['shift']());}}}(_0x4c44,0x6e2cc));function createHttpAborter(){const _0x5a0444=_0x4d6f,_0x16a418=new HttpAbortSignal();return{'signal':_0x16a418,'abort':_0x2bf281=>_0x16a418[_0x5a0444(0x1ab)](_0x2bf281)};}const ABORT_ERROR_NAME='AbortError';var AbortEmitter=class{['listeners']=[];[_0x1e4098(0x18e)](_0x26d974,_0x5d91e9){const _0x5b3814=_0x1e4098;if(_0x26d974!==_0x5b3814(0x16c))return;this[_0x5b3814(0x1b3)]['push'](_0x5d91e9);}['removeEventListener'](_0x2c53f3,_0x2b2cc5){const _0x5378c4=_0x1e4098;if(_0x2c53f3!==_0x5378c4(0x16c))return;const _0x2b9548=this[_0x5378c4(0x1b3)]['indexOf'](_0x2b2cc5);if(_0x2b9548!==-0x1)this['listeners']['splice'](_0x2b9548,0x1);}['emit'](_0x5f2777){const _0x4834ea=_0x1e4098;for(const _0x381cab of this['listeners']['slice']())_0x381cab[_0x4834ea(0x178)](this,_0x5f2777);}},HttpAbortSignal=class extends AbortEmitter{[_0x1e4098(0x179)]=![];['reason']=void 0x0;['onabort']=null;[_0x1e4098(0x1ab)](_0x303b27){const _0x2a36cb=_0x1e4098;if(this['aborted'])return;this[_0x2a36cb(0x179)]=!![],this[_0x2a36cb(0x1a6)]=_0x303b27===void 0x0?createAbortError():_0x303b27;const _0x40f541={};_0x40f541['type']=_0x2a36cb(0x16c);const _0x2a96c0=_0x40f541;if(typeof this[_0x2a36cb(0x19a)]==='function')this['onabort'](_0x2a96c0);this['emit'](_0x2a96c0);}['throwIfAborted'](){const _0x4870a3=_0x1e4098;if(this[_0x4870a3(0x179)])throw this['reason'];}};function createAbortError(_0x3f4de4=_0x1e4098(0x177)){const _0x535bde=new Error(_0x3f4de4);return _0x535bde['name']=ABORT_ERROR_NAME,_0x535bde;}function isAbortError(_0x3b38d4){return _0x3b38d4 instanceof Error&&_0x3b38d4['name']===ABORT_ERROR_NAME;}function onAbort(_0xe2bfb,_0x2275ec){const _0x91fde3=_0x1e4098;if(!_0xe2bfb)return()=>{};if(_0xe2bfb[_0x91fde3(0x179)])return _0x2275ec(),()=>{};return _0xe2bfb[_0x91fde3(0x18e)]('abort',_0x2275ec),()=>_0xe2bfb['removeEventListener'](_0x91fde3(0x16c),_0x2275ec);}const HOOK_NAMES=['onRequest','onRequestError','onResponse',_0x1e4098(0x16e)];function mergeOptions(..._0x25e31f){const _0x333e6e=_0x1e4098,_0x2ee2b3={},_0x48e976={};for(const _0x561202 of _0x25e31f){if(!_0x561202)continue;for(const _0x3eb8e1 of HOOK_NAMES)collectHook(_0x48e976,_0x3eb8e1,_0x561202);const _0x52a092=_0x2ee2b3['headers'],_0x5b47ea=_0x2ee2b3[_0x333e6e(0x176)];Object[_0x333e6e(0x17d)](_0x2ee2b3,_0x561202);const _0x450605={..._0x52a092,..._0x561202['headers']};_0x2ee2b3[_0x333e6e(0x17e)]=_0x450605;const _0x4afeae={..._0x5b47ea,..._0x561202[_0x333e6e(0x176)]};_0x2ee2b3[_0x333e6e(0x176)]=_0x4afeae;}for(const [_0x8784da,_0x33d856]of Object['entries'](_0x48e976))Object[_0x333e6e(0x17d)](_0x2ee2b3,{[_0x8784da]:async _0x51fa88=>{for(const _0x4d6ee2 of _0x33d856)await _0x4d6ee2(_0x51fa88);}});return _0x2ee2b3;}function collectHook(_0x560e2b,_0x858f23,_0x562171){const _0x4466bc=_0x1e4098,_0x44ed20=_0x562171[_0x858f23];if(typeof _0x44ed20!==_0x4466bc(0x198))return;_0x560e2b[_0x858f23]??=[],_0x560e2b[_0x858f23]['push'](_0x44ed20);}function dispatch(_0x1c0f16,_0x118c7c,_0x4d1b9d,_0x4600b7){const _0x528250=_0x1e4098;let _0x49b49e;if(_0x1c0f16===_0x528250(0x1a8))_0x49b49e=dispatchUpload(_0x118c7c,_0x4d1b9d,_0x4600b7);else{if(_0x1c0f16===_0x528250(0x1a0))_0x49b49e=dispatchDownload(_0x118c7c,_0x4d1b9d,_0x4600b7);else _0x49b49e=dispatchRequest(_0x118c7c,_0x4d1b9d,_0x4600b7);}bindTask(_0x49b49e,_0x4d1b9d);}function bindTask(_0x3b337c,_0x3a88d7){const _0x34fd2f=_0x1e4098;onAbort(_0x3a88d7['signal'],()=>_0x3b337c['abort']());if(typeof _0x3a88d7[_0x34fd2f(0x19e)]===_0x34fd2f(0x198))_0x3b337c[_0x34fd2f(0x19e)](_0x3a88d7[_0x34fd2f(0x19e)]);const _0x15c635=_0x3a88d7['onProgress'];if(typeof _0x15c635===_0x34fd2f(0x198)&&_0x34fd2f(0x18b)in _0x3b337c)_0x3b337c['onProgressUpdate'](_0x15c635);}function _0x4c44(){const _0x68889a=['body','query','The\x20operation\x20was\x20aborted','call','aborted','PATCH','POST','PUT','assign','headers','responseType','stringify','<no\x20response\x20body>','enableHttp2','request','name','catch','errMsg','GET','join','fileType','uploadFile','onProgressUpdate','HTTP\x20request\x20failed','then','addEventListener','DELETE','40EekHRp','signal','downloadFile','isArray','timeout','169391HLwTFD','includes','tempFilePath','function','toUpperCase','onabort','dataType','986644DXswkq','onFail','onHeadersReceived','resolve','download','flatMap','434ZlQCJf','raw','62464MosNmJ','enableChunked','reason','onRequest','upload','map','success','_abort','parseResponse','HttpError','2515053chsHZh','withCredentials','number','206754SzrXWM','defineProperty','listeners','<no\x20response>','statusCode','method','6193701HwaxxI','data','84350SMMUyP','retryDelay','abort','4dXkIaR','onResponseError','onSuccess','replace','text','firstIpv4','filePath','httpDNSServiceId'];_0x4c44=function(){return _0x68889a;};return _0x4c44();}function _0x4d6f(_0x234ff8,_0x5aa7a3){_0x234ff8=_0x234ff8-0x16b;const _0x4c448f=_0x4c44();let _0x4d6fa5=_0x4c448f[_0x234ff8];return _0x4d6fa5;}function dispatchRequest(_0x579671,_0x109345,_0x3d3c8a){const _0x94d28=_0x1e4098,_0x4d108f={'url':_0x579671,'method':_0x109345['method'],'header':_0x109345[_0x94d28(0x17e)],'data':_0x109345[_0x94d28(0x175)]??{},'timeout':_0x109345[_0x94d28(0x194)],'dataType':_0x109345[_0x94d28(0x19b)]||'json','responseType':mappedResponseBodyType(_0x109345['responseType']),'sslVerify':_0x109345['sslVerify'],'withCredentials':_0x109345[_0x94d28(0x1af)],'firstIpv4':_0x109345[_0x94d28(0x172)],'enableHttp2':_0x109345[_0x94d28(0x182)],'enableQuic':_0x109345['enableQuic'],'enableCache':_0x109345['enableCache'],'enableHttpDNS':_0x109345['enableHttpDNS'],'httpDNSServiceId':_0x109345[_0x94d28(0x174)],'enableChunked':_0x109345[_0x94d28(0x1a5)],'forceCellularNetwork':_0x109345['forceCellularNetwork'],'success':_0x3d3c8a['onSuccess'],'fail':_0x3d3c8a['onFail'],'complete':()=>{}};return uni['request'](_0x4d108f);}function dispatchUpload(_0x5cc126,_0x234e29,_0x28c90c){const _0x4069da=_0x1e4098,_0x5335de={};_0x5335de['url']=_0x5cc126,_0x5335de[_0x4069da(0x189)]=_0x234e29[_0x4069da(0x189)],_0x5335de['file']=_0x234e29['file'],_0x5335de[_0x4069da(0x173)]=_0x234e29['filePath'],_0x5335de[_0x4069da(0x184)]=_0x234e29[_0x4069da(0x184)]??'file',_0x5335de['files']=_0x234e29['files'],_0x5335de['header']=_0x234e29[_0x4069da(0x17e)],_0x5335de['formData']=_0x234e29[_0x4069da(0x175)]??{},_0x5335de['timeout']=_0x234e29['timeout'],_0x5335de[_0x4069da(0x1aa)]=_0x28c90c['onSuccess'],_0x5335de['fail']=_0x28c90c['onFail'],_0x5335de['complete']=()=>{};const _0x2492aa=_0x5335de;return uni[_0x4069da(0x18a)](_0x2492aa);}function dispatchDownload(_0x1a05bc,_0x649516,_0x521d25){const _0x41445d=_0x1e4098,_0x2cc766={'url':_0x1a05bc,'header':_0x649516['headers'],'timeout':_0x649516['timeout'],'success':_0x69df5=>{const _0x1878d0=_0x4d6f,_0x286381={..._0x69df5};_0x286381[_0x1878d0(0x1b8)]={},_0x286381[_0x1878d0(0x1b8)]['tempFilePath']=_0x69df5[_0x1878d0(0x197)],_0x521d25[_0x1878d0(0x16f)](_0x286381);},'fail':_0x521d25[_0x41445d(0x19d)],'complete':()=>{}};return uni[_0x41445d(0x192)](_0x2cc766);}function mappedResponseBodyType(_0x24321a){const _0x6ba192=_0x1e4098;if(!_0x24321a||_0x24321a==='json')return _0x6ba192(0x171);if(_0x24321a==='arrayBuffer')return'arraybuffer';return _0x6ba192(0x171);}var HttpError=class extends Error{constructor(_0x482dfe){const _0x8b3ed=_0x1e4098;super(_0x482dfe),this[_0x8b3ed(0x184)]=_0x8b3ed(0x1ad);}};function createResponseError(_0x3948bf,_0xc66b62,_0x2ce1c0){const _0x2dd282=_0x1e4098,_0x3c5d04=_0x3948bf,_0x5cee56='['+(_0xc66b62?.['method']||'GET')+']\x20'+_0x3c5d04,_0x1574a1=_0x2ce1c0?_0x2ce1c0[_0x2dd282(0x1b5)]+'\x20'+(_0x2ce1c0[_0x2dd282(0x186)]||''):_0x2dd282(0x1b4),_0x1caa74=_0x2ce1c0?JSON[_0x2dd282(0x180)](_0x2ce1c0[_0x2dd282(0x1b8)]):_0x2dd282(0x181),_0x262b7e=new HttpError(_0x5cee56+':\x20'+_0x1574a1+(_0x2ce1c0['data']?'\x20'+_0x1caa74:''));for(const _0x11f142 of[_0x2dd282(0x183),'options','response',_0x2dd282(0x1b8)])Object[_0x2dd282(0x1b2)](_0x262b7e,_0x11f142,{'get'(){const _0x57ef6e=_0x2dd282,_0x40284d={};return _0x40284d[_0x57ef6e(0x183)]=_0x3948bf,_0x40284d['options']=_0xc66b62,_0x40284d['response']=_0x2ce1c0,_0x40284d['data']=_0x2ce1c0['data'],_0x40284d[_0x11f142];}});return _0x262b7e;}function normalizeError(_0x53ef91){const _0x171961=_0x1e4098;if(_0x53ef91 instanceof Error)return _0x53ef91;return Object['assign'](new Error(_0x53ef91?.['errMsg']||_0x53ef91?.['message']||_0x171961(0x18c)),{'cause':_0x53ef91});}async function callRequestHooks(_0x4da05e,_0x579bcf){const _0x53225d=_0x1e4098;await _0x579bcf[_0x53225d(0x1a7)]?.({'options':_0x579bcf,'resource':_0x4da05e});}async function callRequestErrorHooks(_0x3db1aa,_0x3d147c,_0x51d4c2){await _0x3d147c['onRequestError']?.({'options':_0x3d147c,'resource':_0x3db1aa,'error':_0x51d4c2});}async function callResponseHooks(_0x1203eb,_0x10409c,_0x5a9857){await _0x10409c['onResponse']?.({'options':_0x10409c,'resource':_0x1203eb,'response':_0x5a9857});}async function callResponseErrorHooks(_0x3659d5,_0x21df97,_0x1d2f8d){await _0x21df97['onResponseError']?.({'options':_0x21df97,'resource':_0x3659d5,'response':_0x1d2f8d});}async function refineResponse(_0x371592,_0x268e68){const _0x31b00c=_0x1e4098;if(_0x268e68[_0x31b00c(0x17f)]==='json'||!_0x268e68['responseType'])return{..._0x371592,'data':await parseJSONResponse(_0x371592['data'],_0x268e68)};return _0x371592;}function parseJSONResponse(_0x5f020d,_0xdad4a7){const _0x4a96c5=_0x1e4098;if(typeof _0x5f020d!=='string')return _0x5f020d;if(_0xdad4a7['parseResponse'])return _0xdad4a7[_0x4a96c5(0x1ac)](_0x5f020d);return _0x5f020d?JSON['parse'](_0x5f020d):null;}function isResponseError(_0x24601b){const _0x2b5c75=_0x1e4098,_0xe279d=_0x2b5c75(0x1b5)in _0x24601b?_0x24601b['statusCode']:void 0x0;return typeof _0xe279d===_0x2b5c75(0x1b0)&&(_0xe279d<0xc8||_0xe279d>=0x12c);}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set([_0x1e4098(0x17b),_0x1e4098(0x17c),_0x1e4098(0x18f),_0x1e4098(0x17a)]);async function withRetry(_0x418040,_0x393e50){const _0x5a940a=_0x1e4098,_0x43f506=resolveRetryCount(_0x418040);for(let _0x6f8c6a=0x0;;_0x6f8c6a++)try{return await _0x393e50();}catch(_0x5274bc){if(_0x6f8c6a>=_0x43f506||!shouldRetry(_0x5274bc,_0x418040))throw _0x5274bc;await sleep(_0x418040[_0x5a940a(0x16b)]??0x0,_0x418040[_0x5a940a(0x191)]);}}function resolveRetryCount(_0x46a669){const {retry:_0x4217c7}=_0x46a669;if(_0x4217c7===![])return 0x0;if(typeof _0x4217c7==='number')return _0x4217c7>0x0?_0x4217c7:0x0;return isPayloadMethod(_0x46a669['method'])?0x0:0x1;}function shouldRetry(_0x49b37a,_0x1ba45e){const _0x98209c=_0x1e4098;if(_0x1ba45e[_0x98209c(0x191)]?.['aborted']||isAbortError(_0x49b37a))return![];const _0x12f161=_0x49b37a?.['response']?.[_0x98209c(0x1b5)];if(typeof _0x12f161!=='number')return!![];return(_0x1ba45e['retryStatusCodes']??DEFAULT_RETRY_STATUS_CODES)['includes'](_0x12f161);}function isPayloadMethod(_0x2ee17b){const _0xc5f23b=_0x1e4098;return!!_0x2ee17b&&PAYLOAD_METHODS['has'](_0x2ee17b[_0xc5f23b(0x199)]());}function sleep(_0x3302e3,_0x5e387f){return new Promise((_0x1a9827,_0x2104d9)=>{if(_0x5e387f?.['aborted']){_0x2104d9(_0x5e387f['reason']);return;}if(!(_0x3302e3>0x0)){_0x1a9827();return;}let _0x209fe0=()=>{};const _0x461280=setTimeout(()=>{_0x209fe0(),_0x1a9827();},_0x3302e3);_0x209fe0=onAbort(_0x5e387f,()=>{clearTimeout(_0x461280),_0x2104d9(_0x5e387f['reason']);});});}function buildURL(_0x1e4ab2,_0x3a19df){const _0x6e2d11=_0x1e4098,_0x3789cd=joinURL(_0x3a19df['baseURL'],_0x1e4ab2),_0x16f811=_0x3a19df['query']??{},_0x552ff9=Object['keys'](_0x16f811)['filter'](_0x155489=>_0x16f811[_0x155489]!==void 0x0)[_0x6e2d11(0x1a1)](_0x1454af=>{const _0x2fc292=_0x6e2d11,_0x439d02=_0x16f811[_0x1454af];return(Array[_0x2fc292(0x193)](_0x439d02)?_0x439d02:[_0x439d02])[_0x2fc292(0x1a9)](_0x3ef5cd=>encodeURIComponent(_0x1454af)+'='+encodeURIComponent(String(_0x3ef5cd)));})[_0x6e2d11(0x188)]('&');if(!_0x552ff9)return _0x3789cd;return''+_0x3789cd+(_0x3789cd[_0x6e2d11(0x196)]('?')?'&':'?')+_0x552ff9;}function joinURL(_0x157d55,_0x3483ab){const _0x521dd9=_0x1e4098;if(!_0x157d55||isAbsoluteURL(_0x3483ab))return _0x3483ab;return _0x157d55[_0x521dd9(0x170)](/\/+$/,'')+'/'+_0x3483ab['replace'](/^\/+/,'');}function isAbsoluteURL(_0x4f75d3){return/^[a-z][a-z\d+\-.]*:\/\//i['test'](_0x4f75d3)||_0x4f75d3['startsWith']('//');}function dispatchHttp(_0x4e04b5,_0x76a134,_0x2e98ae){const _0x3df166=buildURL(_0x76a134,_0x2e98ae);return withRetry(_0x2e98ae,()=>attemptRequest(_0x4e04b5,_0x76a134,_0x3df166,_0x2e98ae));}function attemptRequest(_0x1e26d2,_0x447641,_0x2f1813,_0x3d85f4){const _0x34ab79=_0x1e4098,_0x46339f=!!_0x3d85f4[_0x34ab79(0x1a3)];return new Promise((_0x49a78f,_0x32503a)=>{const _0x39aafc=_0x34ab79;let _0x21af44=![];const _0x15021b=_0x187cd8=>{if(_0x21af44)return;_0x21af44=!![],_0x187cd8();},_0x19bd38=onAbort(_0x3d85f4['signal'],()=>{const _0xed2ec0=_0x4d6f;_0x15021b(()=>_0x32503a(_0x3d85f4[_0xed2ec0(0x191)][_0xed2ec0(0x1a6)]));}),_0x29d175=_0x4baeed=>{_0x19bd38(),_0x15021b(_0x4baeed);};callRequestHooks(_0x447641,_0x3d85f4)[_0x39aafc(0x18d)](()=>{if(_0x21af44)return;dispatch(_0x1e26d2,_0x2f1813,_0x3d85f4,{'onSuccess':_0x53f55e=>{Promise['resolve']()['then'](()=>refineResponse(_0x53f55e,_0x3d85f4))['then'](async _0x50e669=>{const _0x493ffd=_0x4d6f;if(isResponseError(_0x53f55e)){await callResponseErrorHooks(_0x447641,_0x3d85f4,_0x50e669);if(!_0x3d85f4['ignoreResponseError'])throw createResponseError(_0x447641,_0x3d85f4,_0x50e669);}else await callResponseHooks(_0x447641,_0x3d85f4,_0x50e669);_0x29d175(()=>_0x49a78f(_0x46339f?_0x50e669:_0x50e669[_0x493ffd(0x1b8)]));})['catch'](_0x3606e0=>_0x29d175(()=>_0x32503a(_0x3606e0)));},'onFail':_0x48bd0f=>{const _0x3f8cd3=_0x4d6f;Promise[_0x3f8cd3(0x19f)]()['then'](async()=>{const _0x11130a=normalizeError(_0x48bd0f);if(!isAbortError(_0x11130a))await callRequestErrorHooks(_0x447641,_0x3d85f4,_0x11130a);throw _0x11130a;})[_0x3f8cd3(0x185)](_0x5a85ec=>_0x29d175(()=>_0x32503a(_0x5a85ec)));}});})['catch'](async _0x3cb689=>{const _0xb411df=normalizeError(_0x3cb689);await callRequestErrorHooks(_0x447641,_0x3d85f4,_0xb411df),_0x29d175(()=>_0x32503a(_0xb411df));});});}const _0xb915fc={};_0xb915fc['method']=_0x1e4098(0x187),_0xb915fc['responseType']='json';const defaultConfig=_0xb915fc;function createHttp(_0x1cf91c={}){const _0x4efff1=_0x1e4098,_0x5ece0b=(_0x2fd18a,_0x2efd86)=>{return dispatchHttp('request',_0x2fd18a,mergeOptions(defaultConfig,_0x1cf91c,_0x2efd86));},_0x550a9d=(_0x3f332d,_0x22400e)=>{const _0x296eba=_0x4d6f,_0x4ec1d3={};return _0x4ec1d3['method']=_0x296eba(0x17b),dispatchHttp('upload',_0x3f332d,mergeOptions(defaultConfig,_0x1cf91c,_0x22400e,_0x4ec1d3));},_0x17c994=(_0xfeca49,_0x2a67a3)=>{const _0x3311ba=_0x4d6f,_0x267ac3={};return _0x267ac3[_0x3311ba(0x1b6)]='GET',dispatchHttp(_0x3311ba(0x1a0),_0xfeca49,mergeOptions(defaultConfig,_0x1cf91c,_0x2a67a3,_0x267ac3));},_0x53b119=_0x4857db=>createHttp(mergeOptions(_0x1cf91c,_0x4857db)),_0x4898d0={};return _0x4898d0[_0x4efff1(0x183)]=_0x5ece0b,_0x4898d0['upload']=_0x550a9d,_0x4898d0['download']=_0x17c994,_0x4898d0['create']=_0x53b119,_0x4898d0;}const http=createHttp();export{http as n,createHttpAborter as r,createHttp as t};
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @oiyo/framework v0.4.1
3
+ * Copyright (c) 2026 skiyee. All rights reserved.
4
+ * Commercial software. See LICENSE for terms.
5
+ * Official site: https://oiyo.js.org
6
+ */
7
+ const _0x3a8273=_0x4b38;(function(_0x4d8112,_0x45add5){const _0x59ce42=_0x4b38,_0x369916=_0x4d8112();while(!![]){try{const _0x5de173=-parseInt(_0x59ce42(0x12a))/0x1+parseInt(_0x59ce42(0xe3))/0x2+-parseInt(_0x59ce42(0xfb))/0x3+-parseInt(_0x59ce42(0x111))/0x4*(parseInt(_0x59ce42(0xf0))/0x5)+-parseInt(_0x59ce42(0x109))/0x6+-parseInt(_0x59ce42(0xe6))/0x7*(-parseInt(_0x59ce42(0x10d))/0x8)+-parseInt(_0x59ce42(0x102))/0x9*(-parseInt(_0x59ce42(0x103))/0xa);if(_0x5de173===_0x45add5)break;else _0x369916['push'](_0x369916['shift']());}catch(_0x1de336){_0x369916['push'](_0x369916['shift']());}}}(_0x550c,0x550cc));function createHttpAborter(){const _0x3ae7f3=new HttpAbortSignal();return{'signal':_0x3ae7f3,'abort':_0x3e29cd=>_0x3ae7f3['_abort'](_0x3e29cd)};}const ABORT_ERROR_NAME=_0x3a8273(0xfc);var AbortEmitter=class{['listeners']=[];['addEventListener'](_0x2a1135,_0x1068b0){if(_0x2a1135!=='abort')return;this['listeners']['push'](_0x1068b0);}['removeEventListener'](_0x562a49,_0xaa1beb){const _0x155c31=_0x3a8273;if(_0x562a49!=='abort')return;const _0x1ad97f=this[_0x155c31(0x12f)][_0x155c31(0x110)](_0xaa1beb);if(_0x1ad97f!==-0x1)this[_0x155c31(0x12f)]['splice'](_0x1ad97f,0x1);}['emit'](_0x8026d7){const _0x44c8e5=_0x3a8273;for(const _0x44084e of this['listeners'][_0x44c8e5(0xf3)]())_0x44084e[_0x44c8e5(0xf6)](this,_0x8026d7);}},HttpAbortSignal=class extends AbortEmitter{['aborted']=![];[_0x3a8273(0x120)]=void 0x0;['onabort']=null;[_0x3a8273(0x10e)](_0xe68db5){const _0x102760=_0x3a8273;if(this['aborted'])return;this['aborted']=!![],this['reason']=_0xe68db5===void 0x0?createAbortError():_0xe68db5;const _0x427bf5={};_0x427bf5[_0x102760(0x128)]='abort';const _0x2330e6=_0x427bf5;if(typeof this[_0x102760(0x10a)]==='function')this['onabort'](_0x2330e6);this[_0x102760(0x100)](_0x2330e6);}['throwIfAborted'](){const _0x2cd28c=_0x3a8273;if(this['aborted'])throw this[_0x2cd28c(0x120)];}};function _0x550c(){const _0x1429e6=['data','PUT','method','onProgress','onResponse','type','catch','581764zYWVzM','number','enumerable','filter','onSuccess','listeners','name','HTTP\x20request\x20failed','963314XdZbpr','onResponseError','upload','70847WKHwJD','abort','headers','json','tempFilePath','onRequestError','POST','url','entries','test','1005050EEoOEm','enableCache','files','slice','enableHttpDNS','ignoreResponseError','call','onHeadersReceived','<no\x20response\x20body>','flatMap','toUpperCase','998715zptsEE','AbortError','function','retryStatusCodes','baseURL','emit','addEventListener','9Leeeha','11522530zaaswY','uploadFile','text','aborted','then','request','2962434jGWIoC','onabort','isArray','download','256oiBlcD','_abort','query','indexOf','4DklVtx','complete','raw','fail','file','responseType','onFail','get','defineProperty','GET','join','startsWith','response','signal','timeout','reason','The\x20operation\x20was\x20aborted','statusCode'];_0x550c=function(){return _0x1429e6;};return _0x550c();}function createAbortError(_0x311ab1=_0x3a8273(0x121)){const _0x2d5b2c=_0x3a8273,_0x541141=new Error(_0x311ab1);return _0x541141[_0x2d5b2c(0x130)]=ABORT_ERROR_NAME,_0x541141;}function isAbortError(_0x4816da){return _0x4816da instanceof Error&&_0x4816da['name']===ABORT_ERROR_NAME;}function onAbort(_0x370673,_0x5c2d18){const _0x47be63=_0x3a8273;if(!_0x370673)return()=>{};if(_0x370673['aborted'])return _0x5c2d18(),()=>{};return _0x370673[_0x47be63(0x101)]('abort',_0x5c2d18),()=>_0x370673['removeEventListener'](_0x47be63(0xe7),_0x5c2d18);}const HOOK_NAMES=['onRequest',_0x3a8273(0xeb),_0x3a8273(0x127),'onResponseError'];function mergeOptions(..._0x568050){const _0x381ea7=_0x3a8273,_0x1a710c={},_0x4dfa3f={};for(const _0xa79dfc of _0x568050){if(!_0xa79dfc)continue;for(const _0x44161c of HOOK_NAMES)collectHook(_0x4dfa3f,_0x44161c,_0xa79dfc);const _0x108b7f=_0x1a710c['headers'],_0x3874e2=_0x1a710c['query'];Object['assign'](_0x1a710c,_0xa79dfc);const _0x1fbece={..._0x108b7f,..._0xa79dfc[_0x381ea7(0xe8)]};_0x1a710c['headers']=_0x1fbece;const _0x222382={..._0x3874e2,..._0xa79dfc['query']};_0x1a710c[_0x381ea7(0x10f)]=_0x222382;}for(const [_0x47cf30,_0x43f356]of Object[_0x381ea7(0xee)](_0x4dfa3f))Object['assign'](_0x1a710c,{[_0x47cf30]:async _0x46cecb=>{for(const _0xc61263 of _0x43f356)await _0xc61263(_0x46cecb);}});return _0x1a710c;}function collectHook(_0x202405,_0x112896,_0x5825d2){const _0x4e9bbe=_0x5825d2[_0x112896];if(typeof _0x4e9bbe!=='function')return;_0x202405[_0x112896]??=[],_0x202405[_0x112896]['push'](_0x4e9bbe);}function dispatch(_0x1c2237,_0x38f638,_0xe8d2f3,_0x779ec1){const _0x1ec4fa=_0x3a8273;let _0x2189fb;if(_0x1c2237==='upload')_0x2189fb=dispatchUpload(_0x38f638,_0xe8d2f3,_0x779ec1);else{if(_0x1c2237===_0x1ec4fa(0x10c))_0x2189fb=dispatchDownload(_0x38f638,_0xe8d2f3,_0x779ec1);else _0x2189fb=dispatchRequest(_0x38f638,_0xe8d2f3,_0x779ec1);}bindTask(_0x2189fb,_0xe8d2f3);}function bindTask(_0x5ed2f1,_0x33ed1d){const _0x20551a=_0x3a8273;onAbort(_0x33ed1d[_0x20551a(0x11e)],()=>_0x5ed2f1[_0x20551a(0xe7)]());if(typeof _0x33ed1d['onHeadersReceived']===_0x20551a(0xfd))_0x5ed2f1['onHeadersReceived'](_0x33ed1d[_0x20551a(0xf7)]);const _0x1cb1b3=_0x33ed1d[_0x20551a(0x126)];if(typeof _0x1cb1b3===_0x20551a(0xfd)&&'onProgressUpdate'in _0x5ed2f1)_0x5ed2f1['onProgressUpdate'](_0x1cb1b3);}function dispatchRequest(_0x4a7989,_0x404929,_0x1bcf11){const _0x17051a=_0x3a8273,_0xf065ea={'url':_0x4a7989,'method':_0x404929['method'],'header':_0x404929['headers'],'data':_0x404929['body']??{},'timeout':_0x404929[_0x17051a(0x11f)],'dataType':_0x404929['dataType']||'json','responseType':mappedResponseBodyType(_0x404929['responseType']),'sslVerify':_0x404929['sslVerify'],'withCredentials':_0x404929['withCredentials'],'firstIpv4':_0x404929['firstIpv4'],'enableHttp2':_0x404929['enableHttp2'],'enableQuic':_0x404929['enableQuic'],'enableCache':_0x404929[_0x17051a(0xf1)],'enableHttpDNS':_0x404929[_0x17051a(0xf4)],'httpDNSServiceId':_0x404929['httpDNSServiceId'],'enableChunked':_0x404929['enableChunked'],'forceCellularNetwork':_0x404929['forceCellularNetwork'],'success':_0x1bcf11['onSuccess'],'fail':_0x1bcf11[_0x17051a(0x117)],'complete':()=>{}};return uni['request'](_0xf065ea);}function dispatchUpload(_0x1399ce,_0x25a67c,_0x4cebcf){const _0x2fff42=_0x3a8273,_0x19ecf7={};_0x19ecf7[_0x2fff42(0xed)]=_0x1399ce,_0x19ecf7['fileType']=_0x25a67c['fileType'],_0x19ecf7['file']=_0x25a67c[_0x2fff42(0x115)],_0x19ecf7['filePath']=_0x25a67c['filePath'],_0x19ecf7[_0x2fff42(0x130)]=_0x25a67c[_0x2fff42(0x130)]??'file',_0x19ecf7[_0x2fff42(0xf2)]=_0x25a67c[_0x2fff42(0xf2)],_0x19ecf7['header']=_0x25a67c[_0x2fff42(0xe8)],_0x19ecf7['formData']=_0x25a67c['body']??{},_0x19ecf7[_0x2fff42(0x11f)]=_0x25a67c['timeout'],_0x19ecf7['success']=_0x4cebcf[_0x2fff42(0x12e)],_0x19ecf7[_0x2fff42(0x114)]=_0x4cebcf['onFail'],_0x19ecf7[_0x2fff42(0x112)]=()=>{};const _0x39d3d3=_0x19ecf7;return uni[_0x2fff42(0x104)](_0x39d3d3);}function dispatchDownload(_0x39cfd6,_0x2dfe88,_0x29d26f){const _0x40d53e=_0x3a8273,_0x103dc2={'url':_0x39cfd6,'header':_0x2dfe88['headers'],'timeout':_0x2dfe88[_0x40d53e(0x11f)],'success':_0x2e86ee=>{const _0x249497=_0x40d53e,_0x5173e4={..._0x2e86ee};_0x5173e4[_0x249497(0x123)]={},_0x5173e4[_0x249497(0x123)]['tempFilePath']=_0x2e86ee[_0x249497(0xea)],_0x29d26f['onSuccess'](_0x5173e4);},'fail':_0x29d26f['onFail'],'complete':()=>{}};return uni['downloadFile'](_0x103dc2);}function mappedResponseBodyType(_0x170e74){const _0x49c496=_0x3a8273;if(!_0x170e74||_0x170e74===_0x49c496(0xe9))return _0x49c496(0x105);if(_0x170e74==='arrayBuffer')return'arraybuffer';return _0x49c496(0x105);}var HttpError=class extends Error{constructor(_0x51bc57){super(_0x51bc57),this['name']='HttpError';}};function createResponseError(_0x1670d5,_0x2c2177,_0x32dab8){const _0x26ab91=_0x3a8273,_0x310174=_0x1670d5,_0x3046b7='['+(_0x2c2177?.['method']||_0x26ab91(0x11a))+']\x20'+_0x310174,_0x23b57d=_0x32dab8?_0x32dab8[_0x26ab91(0x122)]+'\x20'+(_0x32dab8['errMsg']||''):'<no\x20response>',_0x473d1c=_0x32dab8?JSON['stringify'](_0x32dab8[_0x26ab91(0x123)]):_0x26ab91(0xf8),_0x30394d=new HttpError(_0x3046b7+':\x20'+_0x23b57d+(_0x32dab8[_0x26ab91(0x123)]?'\x20'+_0x473d1c:''));for(const _0x5e6cac of['request','options',_0x26ab91(0x11d),'data'])Object['defineProperty'](_0x30394d,_0x5e6cac,{'get'(){const _0x105dce=_0x26ab91,_0x9a401={};return _0x9a401[_0x105dce(0x108)]=_0x1670d5,_0x9a401['options']=_0x2c2177,_0x9a401['response']=_0x32dab8,_0x9a401[_0x105dce(0x123)]=_0x32dab8['data'],_0x9a401[_0x5e6cac];}});return _0x30394d;}function normalizeError(_0x3238e8){const _0x3cf075=_0x3a8273;if(_0x3238e8 instanceof Error)return _0x3238e8;return Object['assign'](new Error(_0x3238e8?.['errMsg']||_0x3238e8?.['message']||_0x3cf075(0xe2)),{'cause':_0x3238e8});}async function callRequestHooks(_0x1b3592,_0x333e2d){await _0x333e2d['onRequest']?.({'options':_0x333e2d,'resource':_0x1b3592});}async function callRequestErrorHooks(_0x39be63,_0x4c7970,_0x2244e1){const _0x26cf8e=_0x3a8273;await _0x4c7970[_0x26cf8e(0xeb)]?.({'options':_0x4c7970,'resource':_0x39be63,'error':_0x2244e1});}async function callResponseHooks(_0x4db579,_0x213fdd,_0x46c56d){await _0x213fdd['onResponse']?.({'options':_0x213fdd,'resource':_0x4db579,'response':_0x46c56d});}async function callResponseErrorHooks(_0x2b6093,_0x3f532b,_0x2de6e3){const _0x36f8e6=_0x3a8273;await _0x3f532b[_0x36f8e6(0xe4)]?.({'options':_0x3f532b,'resource':_0x2b6093,'response':_0x2de6e3});}async function refineResponse(_0x258322,_0xa65912){const _0xf48110=_0x3a8273;if(_0xa65912[_0xf48110(0x116)]===_0xf48110(0xe9)||!_0xa65912[_0xf48110(0x116)])return{..._0x258322,'data':await parseJSONResponse(_0x258322[_0xf48110(0x123)],_0xa65912)};return _0x258322;}function parseJSONResponse(_0x310921,_0x119762){if(typeof _0x310921!=='string')return _0x310921;if(_0x119762['parseResponse'])return _0x119762['parseResponse'](_0x310921);return _0x310921?JSON['parse'](_0x310921):null;}function isResponseError(_0x52aa32){const _0x3f3b80=_0x3a8273,_0x970bb1=_0x3f3b80(0x122)in _0x52aa32?_0x52aa32[_0x3f3b80(0x122)]:void 0x0;return typeof _0x970bb1===_0x3f3b80(0x12b)&&(_0x970bb1<0xc8||_0x970bb1>=0x12c);}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set(['POST',_0x3a8273(0x124),'DELETE','PATCH']);async function withRetry(_0x49bf27,_0x224b69){const _0x4f42f6=_0x3a8273,_0x43b06d=resolveRetryCount(_0x49bf27);for(let _0x110ec2=0x0;;_0x110ec2++)try{return await _0x224b69();}catch(_0x3cc261){if(_0x110ec2>=_0x43b06d||!shouldRetry(_0x3cc261,_0x49bf27))throw _0x3cc261;await sleep(_0x49bf27['retryDelay']??0x0,_0x49bf27[_0x4f42f6(0x11e)]);}}function resolveRetryCount(_0x2cd52e){const {retry:_0xc5897c}=_0x2cd52e;if(_0xc5897c===![])return 0x0;if(typeof _0xc5897c==='number')return _0xc5897c>0x0?_0xc5897c:0x0;return isPayloadMethod(_0x2cd52e['method'])?0x0:0x1;}function shouldRetry(_0x31f17d,_0x2b4cbf){const _0x2ffa33=_0x3a8273;if(_0x2b4cbf['signal']?.['aborted']||isAbortError(_0x31f17d))return![];const _0x1afdba=_0x31f17d?.['response']?.[_0x2ffa33(0x122)];if(typeof _0x1afdba!=='number')return!![];return(_0x2b4cbf[_0x2ffa33(0xfe)]??DEFAULT_RETRY_STATUS_CODES)['includes'](_0x1afdba);}function isPayloadMethod(_0x24ba68){const _0x52b83a=_0x3a8273;return!!_0x24ba68&&PAYLOAD_METHODS['has'](_0x24ba68[_0x52b83a(0xfa)]());}function sleep(_0x1598e6,_0x45d1b8){return new Promise((_0x3bc18b,_0x5b9a3e)=>{const _0x137a75=_0x4b38;if(_0x45d1b8?.[_0x137a75(0x106)]){_0x5b9a3e(_0x45d1b8[_0x137a75(0x120)]);return;}if(!(_0x1598e6>0x0)){_0x3bc18b();return;}let _0x4f27b0=()=>{};const _0x464f4c=setTimeout(()=>{_0x4f27b0(),_0x3bc18b();},_0x1598e6);_0x4f27b0=onAbort(_0x45d1b8,()=>{const _0x1cbc3c=_0x137a75;clearTimeout(_0x464f4c),_0x5b9a3e(_0x45d1b8[_0x1cbc3c(0x120)]);});});}function buildURL(_0x502c64,_0x95457b){const _0xdfc5df=_0x3a8273,_0x2ca800=joinURL(_0x95457b[_0xdfc5df(0xff)],_0x502c64),_0x52e894=_0x95457b['query']??{},_0x503737=Object['keys'](_0x52e894)[_0xdfc5df(0x12d)](_0x485e4d=>_0x52e894[_0x485e4d]!==void 0x0)[_0xdfc5df(0xf9)](_0x1e4426=>{const _0x5160e3=_0xdfc5df,_0xa47e5c=_0x52e894[_0x1e4426];return(Array[_0x5160e3(0x10b)](_0xa47e5c)?_0xa47e5c:[_0xa47e5c])['map'](_0x54be7e=>encodeURIComponent(_0x1e4426)+'='+encodeURIComponent(String(_0x54be7e)));})[_0xdfc5df(0x11b)]('&');if(!_0x503737)return _0x2ca800;return''+_0x2ca800+(_0x2ca800['includes']('?')?'&':'?')+_0x503737;}function joinURL(_0x13dcaa,_0x288f29){if(!_0x13dcaa||isAbsoluteURL(_0x288f29))return _0x288f29;return _0x13dcaa['replace'](/\/+$/,'')+'/'+_0x288f29['replace'](/^\/+/,'');}function isAbsoluteURL(_0x1e40dd){const _0x480f37=_0x3a8273;return/^[a-z][a-z\d+\-.]*:\/\//i[_0x480f37(0xef)](_0x1e40dd)||_0x1e40dd[_0x480f37(0x11c)]('//');}function dispatchHttp(_0x57a022,_0x53ce4c,_0x46be27){const _0x128c8b=buildURL(_0x53ce4c,_0x46be27);return withRetry(_0x46be27,()=>attemptRequest(_0x57a022,_0x53ce4c,_0x128c8b,_0x46be27));}function attemptRequest(_0x1ebd96,_0x31976e,_0x4c62c7,_0x3767ae){const _0x43a19b=_0x3a8273,_0x1d21ba=!!_0x3767ae[_0x43a19b(0x113)];return new Promise((_0x53f489,_0x41ff83)=>{const _0x7d3696=_0x43a19b;let _0x2fe52e=![];const _0x5d5795=_0xf96174=>{if(_0x2fe52e)return;_0x2fe52e=!![],_0xf96174();},_0x40ff19=onAbort(_0x3767ae[_0x7d3696(0x11e)],()=>{const _0x68d215=_0x7d3696;_0x5d5795(()=>_0x41ff83(_0x3767ae[_0x68d215(0x11e)][_0x68d215(0x120)]));}),_0x3f1947=_0x20c938=>{_0x40ff19(),_0x5d5795(_0x20c938);};callRequestHooks(_0x31976e,_0x3767ae)[_0x7d3696(0x107)](()=>{if(_0x2fe52e)return;dispatch(_0x1ebd96,_0x4c62c7,_0x3767ae,{'onSuccess':_0x580bc3=>{const _0x40c89e=_0x4b38;Promise['resolve']()[_0x40c89e(0x107)](()=>refineResponse(_0x580bc3,_0x3767ae))[_0x40c89e(0x107)](async _0x27121d=>{const _0x23ee1d=_0x40c89e;if(isResponseError(_0x580bc3)){await callResponseErrorHooks(_0x31976e,_0x3767ae,_0x27121d);if(!_0x3767ae[_0x23ee1d(0xf5)])throw createResponseError(_0x31976e,_0x3767ae,_0x27121d);}else await callResponseHooks(_0x31976e,_0x3767ae,_0x27121d);_0x3f1947(()=>_0x53f489(_0x1d21ba?_0x27121d:_0x27121d['data']));})[_0x40c89e(0x129)](_0x423666=>_0x3f1947(()=>_0x41ff83(_0x423666)));},'onFail':_0x250c3d=>{const _0x407984=_0x4b38;Promise['resolve']()[_0x407984(0x107)](async()=>{const _0x14a337=normalizeError(_0x250c3d);if(!isAbortError(_0x14a337))await callRequestErrorHooks(_0x31976e,_0x3767ae,_0x14a337);throw _0x14a337;})[_0x407984(0x129)](_0x22a42a=>_0x3f1947(()=>_0x41ff83(_0x22a42a)));}});})['catch'](async _0x2cf937=>{const _0x4e866f=normalizeError(_0x2cf937);await callRequestErrorHooks(_0x31976e,_0x3767ae,_0x4e866f),_0x3f1947(()=>_0x41ff83(_0x4e866f));});});}const _0x11db80={};function _0x4b38(_0x17fdae,_0xf4253c){_0x17fdae=_0x17fdae-0xe2;const _0x550c6e=_0x550c();let _0x4b385a=_0x550c6e[_0x17fdae];return _0x4b385a;}_0x11db80['method']=_0x3a8273(0x11a),_0x11db80['responseType']='json';const defaultConfig=_0x11db80;function createHttp(_0x55f3ba={}){const _0x375e1d=_0x3a8273,_0x33b3d8=(_0x5ab700,_0x434519)=>{return dispatchHttp('request',_0x5ab700,mergeOptions(defaultConfig,_0x55f3ba,_0x434519));},_0x2a7918=(_0x39c5ff,_0x16e751)=>{const _0x11a966=_0x4b38,_0x4abdf8={};return _0x4abdf8[_0x11a966(0x125)]=_0x11a966(0xec),dispatchHttp(_0x11a966(0xe5),_0x39c5ff,mergeOptions(defaultConfig,_0x55f3ba,_0x16e751,_0x4abdf8));},_0x1fe462=(_0x33880e,_0x3e76f0)=>{const _0x3edcb4=_0x4b38,_0x330c9e={};return _0x330c9e[_0x3edcb4(0x125)]='GET',dispatchHttp(_0x3edcb4(0x10c),_0x33880e,mergeOptions(defaultConfig,_0x55f3ba,_0x3e76f0,_0x330c9e));},_0x5cb9da=_0x2f53dd=>createHttp(mergeOptions(_0x55f3ba,_0x2f53dd)),_0x5d6380={};return _0x5d6380[_0x375e1d(0x108)]=_0x33b3d8,_0x5d6380[_0x375e1d(0xe5)]=_0x2a7918,_0x5d6380['download']=_0x1fe462,_0x5d6380['create']=_0x5cb9da,_0x5d6380;}const http=createHttp(),_0x12fb38={};_0x12fb38['enumerable']=!![],_0x12fb38[_0x3a8273(0x118)]=function(){return createHttp;},Object[_0x3a8273(0x119)](exports,'createHttp',_0x12fb38);const _0x4bb373={};_0x4bb373['enumerable']=!![],_0x4bb373[_0x3a8273(0x118)]=function(){return createHttpAborter;},Object['defineProperty'](exports,'createHttpAborter',_0x4bb373);const _0x529675={};_0x529675[_0x3a8273(0x12c)]=!![],_0x529675['get']=function(){return http;},Object['defineProperty'](exports,'http',_0x529675);
package/dist/oiyo.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @oiyo/framework v0.4.0-beta.4
2
+ * @oiyo/framework v0.4.1
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
6
6
  */
7
7
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
8
- const require_oiyo = require("./oiyo-Bk99mH2t.cjs");
8
+ const require_oiyo = require("./oiyo-Cf-hBSyT.cjs");
9
9
  exports.createHttp = require_oiyo.createHttp;
10
10
  exports.createHttpAborter = require_oiyo.createHttpAborter;
11
11
  exports.http = require_oiyo.http;
package/dist/oiyo.d.cts CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @oiyo/framework v0.4.0-beta.4
2
+ * @oiyo/framework v0.4.1
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
6
6
  */
7
- import { a as HttpDownloadResponse, c as HttpDownloadOptions, d as ResponseBodyType, f as createHttpAborter, i as HttpError, l as HttpRequestOptions, n as http, o as HttpRequestResponse, r as HttpConfig, s as HttpUploadResponse, t as createHttp, u as HttpUploadOptions } from "./index-5kdIt9Pt.cjs";
8
- export { type HttpConfig, type HttpDownloadOptions, type HttpDownloadResponse, type HttpError, type HttpRequestOptions, type HttpRequestResponse, type HttpUploadOptions, type HttpUploadResponse, type ResponseBodyType, createHttp, createHttpAborter, http };
7
+ import { a as HttpDownloadResponse, c as HttpCommonOptions, d as HttpRequestOptions, f as HttpUploadOptions, i as HttpError, l as HttpDownloadOptions, m as createHttpAborter, n as http, o as HttpRequestResponse, p as ResponseBodyType, r as HttpConfig, s as HttpUploadResponse, t as createHttp, u as HttpOptions } from "./index-CR-xdBFX.cjs";
8
+ export { type HttpCommonOptions, type HttpConfig, type HttpDownloadOptions, type HttpDownloadResponse, type HttpError, type HttpOptions, type HttpRequestOptions, type HttpRequestResponse, type HttpUploadOptions, type HttpUploadResponse, type ResponseBodyType, createHttp, createHttpAborter, http };
package/dist/oiyo.d.mts CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @oiyo/framework v0.4.0-beta.4
2
+ * @oiyo/framework v0.4.1
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
6
6
  */
7
- import { a as HttpDownloadResponse, c as HttpDownloadOptions, d as ResponseBodyType, f as createHttpAborter, i as HttpError, l as HttpRequestOptions, n as http, o as HttpRequestResponse, r as HttpConfig, s as HttpUploadResponse, t as createHttp, u as HttpUploadOptions } from "./index-5kdIt9Pt.mjs";
8
- export { type HttpConfig, type HttpDownloadOptions, type HttpDownloadResponse, type HttpError, type HttpRequestOptions, type HttpRequestResponse, type HttpUploadOptions, type HttpUploadResponse, type ResponseBodyType, createHttp, createHttpAborter, http };
7
+ import { a as HttpDownloadResponse, c as HttpCommonOptions, d as HttpRequestOptions, f as HttpUploadOptions, i as HttpError, l as HttpDownloadOptions, m as createHttpAborter, n as http, o as HttpRequestResponse, p as ResponseBodyType, r as HttpConfig, s as HttpUploadResponse, t as createHttp, u as HttpOptions } from "./index-CR-xdBFX.mjs";
8
+ export { type HttpCommonOptions, type HttpConfig, type HttpDownloadOptions, type HttpDownloadResponse, type HttpError, type HttpOptions, type HttpRequestOptions, type HttpRequestResponse, type HttpUploadOptions, type HttpUploadResponse, type ResponseBodyType, createHttp, createHttpAborter, http };
package/dist/oiyo.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @oiyo/framework v0.4.0-beta.4
2
+ * @oiyo/framework v0.4.1
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
6
6
  */
7
- import { n as http, r as createHttpAborter, t as createHttp } from "./oiyo-BGCwnpnq.mjs";
7
+ import { n as http, r as createHttpAborter, t as createHttp } from "./oiyo-Bwn9BFbV.mjs";
8
8
  export { createHttp, createHttpAborter, http };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.0-beta.4
2
+ * @oiyo/framework v0.4.1
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.0-beta.4
2
+ * @oiyo/framework v0.4.1
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
package/dist/uni.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @oiyo/framework v0.4.0-beta.4
2
+ * @oiyo/framework v0.4.1
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
6
6
  */
7
7
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
8
- require("./rolldown-runtime-BU7qlqHq.cjs");
8
+ require("./rolldown-runtime-DXRHM9Mm.cjs");
9
9
  var _dcloudio_uni_app = require("@dcloudio/uni-app");
10
10
  Object.keys(_dcloudio_uni_app).forEach(function(k) {
11
11
  if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
package/dist/uni.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.0-beta.4
2
+ * @oiyo/framework v0.4.1
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
package/dist/uni.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.0-beta.4
2
+ * @oiyo/framework v0.4.1
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
package/dist/uni.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @oiyo/framework v0.4.0-beta.4
2
+ * @oiyo/framework v0.4.1
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
6
6
  */
7
- import "./rolldown-runtime-C4TXImMl.mjs";
7
+ import "./rolldown-runtime-BiDmVKcM.mjs";
8
8
  export * from "@dcloudio/uni-app";
9
9
  export {};
package/dist/vue.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @oiyo/framework v0.4.0-beta.4
2
+ * @oiyo/framework v0.4.1
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
6
6
  */
7
7
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
8
- require("./rolldown-runtime-BU7qlqHq.cjs");
8
+ require("./rolldown-runtime-DXRHM9Mm.cjs");
9
9
  var vue = require("vue");
10
10
  Object.keys(vue).forEach(function(k) {
11
11
  if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
package/dist/vue.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.0-beta.4
2
+ * @oiyo/framework v0.4.1
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
package/dist/vue.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.0-beta.4
2
+ * @oiyo/framework v0.4.1
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
package/dist/vue.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @oiyo/framework v0.4.0-beta.4
2
+ * @oiyo/framework v0.4.1
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
6
6
  */
7
- import "./rolldown-runtime-C4TXImMl.mjs";
7
+ import "./rolldown-runtime-BiDmVKcM.mjs";
8
8
  export * from "vue";
9
9
  export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oiyo/framework",
3
3
  "type": "module",
4
- "version": "0.4.0-beta.4",
4
+ "version": "0.4.1",
5
5
  "author": {
6
6
  "name": "skiyee",
7
7
  "email": "319619193@qq.com",
@@ -1,7 +0,0 @@
1
- /**
2
- * @oiyo/framework v0.4.0-beta.4
3
- * Copyright (c) 2026 skiyee. All rights reserved.
4
- * Commercial software. See LICENSE for terms.
5
- * Official site: https://oiyo.js.org
6
- */
7
- const _0x5f16bb=_0x58fd;(function(_0x432d1b,_0x354ba7){const _0x4f5b5c=_0x58fd,_0x5a3f5c=_0x432d1b();while(!![]){try{const _0x45abc3=parseInt(_0x4f5b5c(0xf2))/0x1+parseInt(_0x4f5b5c(0xed))/0x2*(parseInt(_0x4f5b5c(0x104))/0x3)+parseInt(_0x4f5b5c(0xd4))/0x4+parseInt(_0x4f5b5c(0xbd))/0x5*(-parseInt(_0x4f5b5c(0xcb))/0x6)+-parseInt(_0x4f5b5c(0xde))/0x7+parseInt(_0x4f5b5c(0xd5))/0x8*(parseInt(_0x4f5b5c(0xfa))/0x9)+-parseInt(_0x4f5b5c(0xd8))/0xa*(-parseInt(_0x4f5b5c(0xec))/0xb);if(_0x45abc3===_0x354ba7)break;else _0x5a3f5c['push'](_0x5a3f5c['shift']());}catch(_0x317011){_0x5a3f5c['push'](_0x5a3f5c['shift']());}}}(_0x2ec7,0xc0f33));function createHttpAborter(){const _0x421071=new HttpAbortSignal();return{'signal':_0x421071,'abort':_0x589e1c=>_0x421071['_abort'](_0x589e1c)};}const ABORT_ERROR_NAME='AbortError';var AbortEmitter=class{[_0x5f16bb(0xd3)]=[];[_0x5f16bb(0xc5)](_0x1ba258,_0x5d7614){const _0x11d90b=_0x5f16bb;if(_0x1ba258!=='abort')return;this[_0x11d90b(0xd3)]['push'](_0x5d7614);}['removeEventListener'](_0x52489c,_0x573816){const _0x2ddd5e=_0x5f16bb;if(_0x52489c!==_0x2ddd5e(0xc6))return;const _0x2f0795=this['listeners']['indexOf'](_0x573816);if(_0x2f0795!==-0x1)this[_0x2ddd5e(0xd3)]['splice'](_0x2f0795,0x1);}[_0x5f16bb(0xfc)](_0x522b38){for(const _0x2dcf2f of this['listeners']['slice']())_0x2dcf2f['call'](this,_0x522b38);}},HttpAbortSignal=class extends AbortEmitter{[_0x5f16bb(0xd1)]=![];['reason']=void 0x0;['onabort']=null;[_0x5f16bb(0xc9)](_0x283a0){const _0xfe0b8=_0x5f16bb;if(this['aborted'])return;this[_0xfe0b8(0xd1)]=!![],this['reason']=_0x283a0===void 0x0?createAbortError():_0x283a0;const _0x244c78={};_0x244c78['type']='abort';const _0x36b9a9=_0x244c78;if(typeof this[_0xfe0b8(0xea)]==='function')this['onabort'](_0x36b9a9);this['emit'](_0x36b9a9);}[_0x5f16bb(0xf7)](){if(this['aborted'])throw this['reason'];}};function createAbortError(_0x368035='The\x20operation\x20was\x20aborted'){const _0x2d70da=new Error(_0x368035);return _0x2d70da['name']=ABORT_ERROR_NAME,_0x2d70da;}function isAbortError(_0x52ebea){const _0xb51ec0=_0x5f16bb;return _0x52ebea instanceof Error&&_0x52ebea[_0xb51ec0(0xf0)]===ABORT_ERROR_NAME;}function onAbort(_0x22ef8b,_0x26bd1c){const _0x248d4b=_0x5f16bb;if(!_0x22ef8b)return()=>{};if(_0x22ef8b[_0x248d4b(0xd1)])return _0x26bd1c(),()=>{};return _0x22ef8b['addEventListener']('abort',_0x26bd1c),()=>_0x22ef8b['removeEventListener'](_0x248d4b(0xc6),_0x26bd1c);}const HOOK_NAMES=['onRequest','onRequestError','onResponse','onResponseError'];function mergeOptions(..._0x5d7f77){const _0x337b1a=_0x5f16bb,_0x46ca81={},_0x1d8841={};for(const _0x488233 of _0x5d7f77){if(!_0x488233)continue;for(const _0x47a241 of HOOK_NAMES)collectHook(_0x1d8841,_0x47a241,_0x488233);const _0x4af1ec=_0x46ca81[_0x337b1a(0xe9)],_0x1157c8=_0x46ca81[_0x337b1a(0xee)];Object[_0x337b1a(0xe6)](_0x46ca81,_0x488233);const _0x587413={..._0x4af1ec,..._0x488233['headers']};_0x46ca81[_0x337b1a(0xe9)]=_0x587413;const _0x50bc32={..._0x1157c8,..._0x488233[_0x337b1a(0xee)]};_0x46ca81['query']=_0x50bc32;}for(const [_0x105ec8,_0x483624]of Object['entries'](_0x1d8841))Object[_0x337b1a(0xe6)](_0x46ca81,{[_0x105ec8]:async _0x3ec4ad=>{for(const _0x4579a8 of _0x483624)await _0x4579a8(_0x3ec4ad);}});return _0x46ca81;}function collectHook(_0x5d2d02,_0x2faf9f,_0x33d233){const _0x1e83bf=_0x33d233[_0x2faf9f];if(typeof _0x1e83bf!=='function')return;_0x5d2d02[_0x2faf9f]??=[],_0x5d2d02[_0x2faf9f]['push'](_0x1e83bf);}function dispatch(_0x4ebd4d,_0x22016e,_0x5f5c99,_0x4a3eba){const _0x6dcc9a=_0x5f16bb;let _0x492775;if(_0x4ebd4d===_0x6dcc9a(0xc7))_0x492775=dispatchUpload(_0x22016e,_0x5f5c99,_0x4a3eba);else{if(_0x4ebd4d==='download')_0x492775=dispatchDownload(_0x22016e,_0x5f5c99,_0x4a3eba);else _0x492775=dispatchRequest(_0x22016e,_0x5f5c99,_0x4a3eba);}bindTask(_0x492775,_0x5f5c99);}function bindTask(_0x249ea6,_0x2ab371){const _0x56caa9=_0x5f16bb;onAbort(_0x2ab371[_0x56caa9(0xe1)],()=>_0x249ea6['abort']());if(typeof _0x2ab371[_0x56caa9(0xcd)]==='function')_0x249ea6['onHeadersReceived'](_0x2ab371['onHeadersReceived']);const _0x1497e6=_0x2ab371['onProgress'];if(typeof _0x1497e6===_0x56caa9(0xe7)&&_0x56caa9(0xdd)in _0x249ea6)_0x249ea6['onProgressUpdate'](_0x1497e6);}function dispatchRequest(_0x13a22f,_0x500499,_0x19b825){const _0x149872=_0x5f16bb,_0x56dd7c={'url':_0x13a22f,'method':_0x500499['method'],'header':_0x500499[_0x149872(0xe9)],'data':_0x500499[_0x149872(0xda)]??{},'timeout':_0x500499[_0x149872(0xe4)],'dataType':_0x500499[_0x149872(0xc3)]||_0x149872(0xcc),'responseType':mappedResponseBodyType(_0x500499['responseType']),'sslVerify':_0x500499['sslVerify'],'withCredentials':_0x500499[_0x149872(0xc2)],'firstIpv4':_0x500499['firstIpv4'],'enableHttp2':_0x500499['enableHttp2'],'enableQuic':_0x500499['enableQuic'],'enableCache':_0x500499['enableCache'],'enableHttpDNS':_0x500499['enableHttpDNS'],'httpDNSServiceId':_0x500499['httpDNSServiceId'],'enableChunked':_0x500499['enableChunked'],'forceCellularNetwork':_0x500499['forceCellularNetwork'],'success':_0x19b825['onSuccess'],'fail':_0x19b825[_0x149872(0xf4)],'complete':()=>{}};return uni['request'](_0x56dd7c);}function dispatchUpload(_0x59b7d6,_0x22ef0f,_0x59a574){const _0x95adce=_0x5f16bb,_0x45a804={};_0x45a804[_0x95adce(0xf3)]=_0x59b7d6,_0x45a804['fileType']=_0x22ef0f['fileType'],_0x45a804[_0x95adce(0xf9)]=_0x22ef0f[_0x95adce(0xf9)],_0x45a804[_0x95adce(0xd7)]=_0x22ef0f['filePath'],_0x45a804['name']=_0x22ef0f[_0x95adce(0xf0)]??'file',_0x45a804['files']=_0x22ef0f[_0x95adce(0xc0)],_0x45a804[_0x95adce(0xd6)]=_0x22ef0f[_0x95adce(0xe9)],_0x45a804['formData']=_0x22ef0f[_0x95adce(0xda)]??{},_0x45a804['timeout']=_0x22ef0f[_0x95adce(0xe4)],_0x45a804[_0x95adce(0xd0)]=_0x59a574[_0x95adce(0xfe)],_0x45a804['fail']=_0x59a574['onFail'],_0x45a804['complete']=()=>{};const _0x5735d0=_0x45a804;return uni[_0x95adce(0xf8)](_0x5735d0);}function dispatchDownload(_0x728de1,_0x51c910,_0x4c89ec){const _0x118f3c=_0x5f16bb,_0x9cbb39={'url':_0x728de1,'header':_0x51c910['headers'],'timeout':_0x51c910[_0x118f3c(0xe4)],'success':_0x1081c6=>{const _0x91db83=_0x118f3c,_0x4138f2={..._0x1081c6};_0x4138f2[_0x91db83(0xff)]={},_0x4138f2[_0x91db83(0xff)][_0x91db83(0x102)]=_0x1081c6[_0x91db83(0x102)],_0x4c89ec[_0x91db83(0xfe)](_0x4138f2);},'fail':_0x4c89ec['onFail'],'complete':()=>{}};return uni[_0x118f3c(0xcf)](_0x9cbb39);}function mappedResponseBodyType(_0x4eca7b){const _0x354f05=_0x5f16bb;if(!_0x4eca7b||_0x4eca7b===_0x354f05(0xcc))return _0x354f05(0xba);if(_0x4eca7b==='arrayBuffer')return'arraybuffer';return _0x354f05(0xba);}var HttpError=class extends Error{constructor(_0x1b3d94){const _0x35fee9=_0x5f16bb;super(_0x1b3d94),this[_0x35fee9(0xf0)]=_0x35fee9(0xbb);}};function createResponseError(_0x296c38,_0x13b10f,_0x5cf258){const _0x5a1877=_0x5f16bb,_0x214086=_0x296c38,_0x4dc265='['+(_0x13b10f?.[_0x5a1877(0xc1)]||_0x5a1877(0xbe))+']\x20'+_0x214086,_0x33c23c=_0x5cf258?_0x5cf258['statusCode']+'\x20'+(_0x5cf258['errMsg']||''):_0x5a1877(0xe0),_0x5d6f19=_0x5cf258?JSON['stringify'](_0x5cf258['data']):_0x5a1877(0xef),_0x1a491c=new HttpError(_0x4dc265+':\x20'+_0x33c23c+(_0x5cf258[_0x5a1877(0xff)]?'\x20'+_0x5d6f19:''));for(const _0x5b1948 of['request','options',_0x5a1877(0xdc),'data'])Object['defineProperty'](_0x1a491c,_0x5b1948,{'get'(){const _0x57c2ef=_0x5a1877,_0x1603a6={};return _0x1603a6['request']=_0x296c38,_0x1603a6['options']=_0x13b10f,_0x1603a6['response']=_0x5cf258,_0x1603a6[_0x57c2ef(0xff)]=_0x5cf258['data'],_0x1603a6[_0x5b1948];}});return _0x1a491c;}function normalizeError(_0x5a15b3){const _0x554bab=_0x5f16bb;if(_0x5a15b3 instanceof Error)return _0x5a15b3;return Object['assign'](new Error(_0x5a15b3?.['errMsg']||_0x5a15b3?.[_0x554bab(0xfd)]||'HTTP\x20request\x20failed'),{'cause':_0x5a15b3});}async function callRequestHooks(_0x2ce964,_0x203ef1){const _0x24cb24=_0x5f16bb;await _0x203ef1[_0x24cb24(0x100)]?.({'options':_0x203ef1,'resource':_0x2ce964});}async function callRequestErrorHooks(_0x4ed394,_0x37ae9e,_0x74ca3f){const _0x3a2bbd=_0x5f16bb;await _0x37ae9e[_0x3a2bbd(0xbf)]?.({'options':_0x37ae9e,'resource':_0x4ed394,'error':_0x74ca3f});}async function callResponseHooks(_0x5b1ee8,_0x3e7890,_0x24ad29){const _0x31db9d=_0x5f16bb;await _0x3e7890[_0x31db9d(0xdb)]?.({'options':_0x3e7890,'resource':_0x5b1ee8,'response':_0x24ad29});}async function callResponseErrorHooks(_0x530ba1,_0x495402,_0x5de876){const _0x3339f2=_0x5f16bb;await _0x495402[_0x3339f2(0xeb)]?.({'options':_0x495402,'resource':_0x530ba1,'response':_0x5de876});}async function refineResponse(_0x2a15a8,_0x37e684){const _0x117c39=_0x5f16bb;if(_0x37e684[_0x117c39(0xd9)]==='json'||!_0x37e684['responseType'])return{..._0x2a15a8,'data':await parseJSONResponse(_0x2a15a8[_0x117c39(0xff)],_0x37e684)};return _0x2a15a8;}function parseJSONResponse(_0x4a53ab,_0x4f5fac){const _0x34164c=_0x5f16bb;if(typeof _0x4a53ab!==_0x34164c(0xe5))return _0x4a53ab;if(_0x4f5fac[_0x34164c(0xe2)])return _0x4f5fac[_0x34164c(0xe2)](_0x4a53ab);return _0x4a53ab?JSON['parse'](_0x4a53ab):null;}function isResponseError(_0x2e9e6a){const _0x262f81=_0x5f16bb,_0x32d37c=_0x262f81(0x103)in _0x2e9e6a?_0x2e9e6a['statusCode']:void 0x0;return typeof _0x32d37c==='number'&&(_0x32d37c<0xc8||_0x32d37c>=0x12c);}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set(['POST',_0x5f16bb(0xd2),_0x5f16bb(0xf1),_0x5f16bb(0xce)]);async function withRetry(_0x25fe52,_0xb401ee){const _0x3b686e=_0x5f16bb,_0x1d28c9=resolveRetryCount(_0x25fe52);for(let _0x496e09=0x0;;_0x496e09++)try{return await _0xb401ee();}catch(_0x3f0091){if(_0x496e09>=_0x1d28c9||!shouldRetry(_0x3f0091,_0x25fe52))throw _0x3f0091;await sleep(_0x25fe52['retryDelay']??0x0,_0x25fe52[_0x3b686e(0xe1)]);}}function resolveRetryCount(_0x5561a0){const _0x2281d5=_0x5f16bb,{retry:_0x49bc72}=_0x5561a0;if(_0x49bc72===![])return 0x0;if(typeof _0x49bc72===_0x2281d5(0xc4))return _0x49bc72>0x0?_0x49bc72:0x0;return isPayloadMethod(_0x5561a0[_0x2281d5(0xc1)])?0x0:0x1;}function shouldRetry(_0x10534a,_0x357d78){const _0xeed176=_0x5f16bb;if(_0x357d78[_0xeed176(0xe1)]?.[_0xeed176(0xd1)]||isAbortError(_0x10534a))return![];const _0x49ce1d=_0x10534a?.[_0xeed176(0xdc)]?.['statusCode'];if(typeof _0x49ce1d!=='number')return!![];return(_0x357d78['retryStatusCodes']??DEFAULT_RETRY_STATUS_CODES)['includes'](_0x49ce1d);}function isPayloadMethod(_0x39fed3){return!!_0x39fed3&&PAYLOAD_METHODS['has'](_0x39fed3['toUpperCase']());}function sleep(_0x2d4996,_0x45054e){return new Promise((_0x363d0f,_0x2bc051)=>{if(_0x45054e?.['aborted']){_0x2bc051(_0x45054e['reason']);return;}if(!(_0x2d4996>0x0)){_0x363d0f();return;}let _0x49f35a=()=>{};const _0x3703b1=setTimeout(()=>{_0x49f35a(),_0x363d0f();},_0x2d4996);_0x49f35a=onAbort(_0x45054e,()=>{const _0x1d12b1=_0x58fd;clearTimeout(_0x3703b1),_0x2bc051(_0x45054e[_0x1d12b1(0xf5)]);});});}function buildURL(_0x454d7c,_0x407a44){const _0x52be54=_0x5f16bb,_0x111d3f=joinURL(_0x407a44['baseURL'],_0x454d7c),_0x366e57=_0x407a44[_0x52be54(0xee)]??{},_0x4714ff=Object['keys'](_0x366e57)['filter'](_0x49cb4d=>_0x366e57[_0x49cb4d]!==void 0x0)['flatMap'](_0x358e60=>{const _0x77a42a=_0x52be54,_0x39f0b6=_0x366e57[_0x358e60];return(Array['isArray'](_0x39f0b6)?_0x39f0b6:[_0x39f0b6])[_0x77a42a(0x101)](_0x190321=>encodeURIComponent(_0x358e60)+'='+encodeURIComponent(String(_0x190321)));})[_0x52be54(0xbc)]('&');if(!_0x4714ff)return _0x111d3f;return''+_0x111d3f+(_0x111d3f['includes']('?')?'&':'?')+_0x4714ff;}function joinURL(_0x4bd75f,_0x3d2bb3){const _0x165134=_0x5f16bb;if(!_0x4bd75f||isAbsoluteURL(_0x3d2bb3))return _0x3d2bb3;return _0x4bd75f[_0x165134(0x105)](/\/+$/,'')+'/'+_0x3d2bb3[_0x165134(0x105)](/^\/+/,'');}function isAbsoluteURL(_0x2fd3e9){const _0x53ccaa=_0x5f16bb;return/^[a-z][a-z\d+\-.]*:\/\//i[_0x53ccaa(0xfb)](_0x2fd3e9)||_0x2fd3e9['startsWith']('//');}function dispatchHttp(_0x839ebc,_0x101cdf,_0x575256){const _0x987592=buildURL(_0x101cdf,_0x575256);return withRetry(_0x575256,()=>attemptRequest(_0x839ebc,_0x101cdf,_0x987592,_0x575256));}function attemptRequest(_0x3936a8,_0x441b44,_0x3ab946,_0x5aa87e){const _0xb450bc=_0x5f16bb,_0x4437ac=!!_0x5aa87e[_0xb450bc(0xca)];return new Promise((_0xa98d40,_0x31aa57)=>{const _0x36140a=_0xb450bc;let _0x44729a=![];const _0x50ea0e=_0x1b76d3=>{if(_0x44729a)return;_0x44729a=!![],_0x1b76d3();},_0x3f2d85=onAbort(_0x5aa87e[_0x36140a(0xe1)],()=>{const _0x5cbb54=_0x36140a;_0x50ea0e(()=>_0x31aa57(_0x5aa87e[_0x5cbb54(0xe1)]['reason']));}),_0xb04ca7=_0x341a38=>{_0x3f2d85(),_0x50ea0e(_0x341a38);};callRequestHooks(_0x441b44,_0x5aa87e)['then'](()=>{if(_0x44729a)return;dispatch(_0x3936a8,_0x3ab946,_0x5aa87e,{'onSuccess':_0x1923a3=>{Promise['resolve']()['then'](()=>refineResponse(_0x1923a3,_0x5aa87e))['then'](async _0x19b989=>{if(isResponseError(_0x1923a3)){await callResponseErrorHooks(_0x441b44,_0x5aa87e,_0x19b989);if(!_0x5aa87e['ignoreResponseError'])throw createResponseError(_0x441b44,_0x5aa87e,_0x19b989);}else await callResponseHooks(_0x441b44,_0x5aa87e,_0x19b989);_0xb04ca7(()=>_0xa98d40(_0x4437ac?_0x19b989:_0x19b989['data']));})['catch'](_0x2dfe35=>_0xb04ca7(()=>_0x31aa57(_0x2dfe35)));},'onFail':_0x2eb8b0=>{const _0x8cbe00=_0x58fd;Promise[_0x8cbe00(0xe3)]()['then'](async()=>{const _0x1c039f=normalizeError(_0x2eb8b0);if(!isAbortError(_0x1c039f))await callRequestErrorHooks(_0x441b44,_0x5aa87e,_0x1c039f);throw _0x1c039f;})['catch'](_0x2668d2=>_0xb04ca7(()=>_0x31aa57(_0x2668d2)));}});})['catch'](async _0x32dc60=>{const _0x30bc3b=normalizeError(_0x32dc60);await callRequestErrorHooks(_0x441b44,_0x5aa87e,_0x30bc3b),_0xb04ca7(()=>_0x31aa57(_0x30bc3b));});});}const _0x16428d={};_0x16428d['method']=_0x5f16bb(0xbe),_0x16428d['responseType']=_0x5f16bb(0xcc);function _0x58fd(_0x580f99,_0x2c01a5){_0x580f99=_0x580f99-0xba;const _0x2ec763=_0x2ec7();let _0x58fdf7=_0x2ec763[_0x580f99];return _0x58fdf7;}function _0x2ec7(){const _0x2f2c76=['uploadFile','file','207ruWaqb','test','emit','message','onSuccess','data','onRequest','map','tempFilePath','statusCode','36sKcFva','replace','text','HttpError','join','6556255edxHwG','GET','onRequestError','files','method','withCredentials','dataType','number','addEventListener','abort','upload','POST','_abort','raw','6lxXGwL','json','onHeadersReceived','PATCH','downloadFile','success','aborted','PUT','listeners','5302396PFsLnZ','2712ddlwUY','header','filePath','220kLtISE','responseType','body','onResponse','response','onProgressUpdate','5802328InleCZ','request','<no\x20response>','signal','parseResponse','resolve','timeout','string','assign','function','create','headers','onabort','onResponseError','267278XbIjjG','69382HGpvRP','query','<no\x20response\x20body>','name','DELETE','646234oCiZlX','url','onFail','reason','download','throwIfAborted'];_0x2ec7=function(){return _0x2f2c76;};return _0x2ec7();}const defaultConfig=_0x16428d;function createHttp(_0x535440={}){const _0x34fe15=_0x5f16bb,_0x1d30a4=(_0x2f95f1,_0x3f7b8c)=>{const _0xd28ba4=_0x58fd;return dispatchHttp(_0xd28ba4(0xdf),_0x2f95f1,mergeOptions(defaultConfig,_0x535440,_0x3f7b8c));},_0x2a9de5=(_0x289158,_0x2a9994)=>{const _0x3ea28b=_0x58fd,_0x11dbff={};return _0x11dbff[_0x3ea28b(0xc1)]=_0x3ea28b(0xc8),dispatchHttp(_0x3ea28b(0xc7),_0x289158,mergeOptions(defaultConfig,_0x535440,_0x2a9994,_0x11dbff));},_0x8fc065=(_0x356233,_0x388108)=>{const _0x3d9cf5=_0x58fd,_0x454f16={};return _0x454f16['method']=_0x3d9cf5(0xbe),dispatchHttp(_0x3d9cf5(0xf6),_0x356233,mergeOptions(defaultConfig,_0x535440,_0x388108,_0x454f16));},_0x5b286=_0x183b0a=>createHttp(mergeOptions(_0x535440,_0x183b0a)),_0xe73817={};return _0xe73817['request']=_0x1d30a4,_0xe73817['upload']=_0x2a9de5,_0xe73817['download']=_0x8fc065,_0xe73817[_0x34fe15(0xe8)]=_0x5b286,_0xe73817;}const http=createHttp();export{http as n,createHttpAborter as r,createHttp as t};
@@ -1,7 +0,0 @@
1
- /**
2
- * @oiyo/framework v0.4.0-beta.4
3
- * Copyright (c) 2026 skiyee. All rights reserved.
4
- * Commercial software. See LICENSE for terms.
5
- * Official site: https://oiyo.js.org
6
- */
7
- const _0x4fba51=_0x13fd;(function(_0x121627,_0x5c4e87){const _0x1bad9e=_0x13fd,_0x3cbb18=_0x121627();while(!![]){try{const _0x3300f7=parseInt(_0x1bad9e(0x1f6))/0x1+-parseInt(_0x1bad9e(0x23c))/0x2*(parseInt(_0x1bad9e(0x210))/0x3)+-parseInt(_0x1bad9e(0x23e))/0x4+-parseInt(_0x1bad9e(0x232))/0x5*(parseInt(_0x1bad9e(0x20a))/0x6)+-parseInt(_0x1bad9e(0x21e))/0x7+-parseInt(_0x1bad9e(0x23d))/0x8+parseInt(_0x1bad9e(0x213))/0x9;if(_0x3300f7===_0x5c4e87)break;else _0x3cbb18['push'](_0x3cbb18['shift']());}catch(_0x3d4709){_0x3cbb18['push'](_0x3cbb18['shift']());}}}(_0x2230,0xec852));function createHttpAborter(){const _0x2adf00=new HttpAbortSignal();return{'signal':_0x2adf00,'abort':_0x131b6b=>_0x2adf00['_abort'](_0x131b6b)};}const ABORT_ERROR_NAME='AbortError';var AbortEmitter=class{['listeners']=[];['addEventListener'](_0x2f0680,_0x5c853e){if(_0x2f0680!=='abort')return;this['listeners']['push'](_0x5c853e);}[_0x4fba51(0x219)](_0x41508e,_0xfaffe3){const _0x4a4e76=_0x4fba51;if(_0x41508e!==_0x4a4e76(0x22f))return;const _0x26e7cf=this[_0x4a4e76(0x202)][_0x4a4e76(0x205)](_0xfaffe3);if(_0x26e7cf!==-0x1)this[_0x4a4e76(0x202)]['splice'](_0x26e7cf,0x1);}[_0x4fba51(0x242)](_0x1db2f5){const _0x515fb1=_0x4fba51;for(const _0x320119 of this[_0x515fb1(0x202)][_0x515fb1(0x225)]())_0x320119[_0x515fb1(0x222)](this,_0x1db2f5);}},HttpAbortSignal=class extends AbortEmitter{[_0x4fba51(0x226)]=![];['reason']=void 0x0;[_0x4fba51(0x20b)]=null;['_abort'](_0x1da01c){const _0x4dc615=_0x4fba51;if(this[_0x4dc615(0x226)])return;this['aborted']=!![],this[_0x4dc615(0x236)]=_0x1da01c===void 0x0?createAbortError():_0x1da01c;const _0x58bdb0={};_0x58bdb0['type']=_0x4dc615(0x22f);const _0x147217=_0x58bdb0;if(typeof this[_0x4dc615(0x20b)]===_0x4dc615(0x20c))this[_0x4dc615(0x20b)](_0x147217);this[_0x4dc615(0x242)](_0x147217);}['throwIfAborted'](){const _0xb757f2=_0x4fba51;if(this[_0xb757f2(0x226)])throw this['reason'];}};function createAbortError(_0x14df8d='The\x20operation\x20was\x20aborted'){const _0x4080c6=_0x4fba51,_0xfdcacf=new Error(_0x14df8d);return _0xfdcacf[_0x4080c6(0x233)]=ABORT_ERROR_NAME,_0xfdcacf;}function isAbortError(_0x4444f4){const _0x256ed0=_0x4fba51;return _0x4444f4 instanceof Error&&_0x4444f4[_0x256ed0(0x233)]===ABORT_ERROR_NAME;}function onAbort(_0x52b469,_0x21aa11){const _0x45bced=_0x4fba51;if(!_0x52b469)return()=>{};if(_0x52b469[_0x45bced(0x226)])return _0x21aa11(),()=>{};return _0x52b469['addEventListener'](_0x45bced(0x22f),_0x21aa11),()=>_0x52b469[_0x45bced(0x219)]('abort',_0x21aa11);}const HOOK_NAMES=['onRequest',_0x4fba51(0x1ef),'onResponse',_0x4fba51(0x22b)];function mergeOptions(..._0x2918e7){const _0xaa7149=_0x4fba51,_0x472caa={},_0x1f6497={};for(const _0x18b625 of _0x2918e7){if(!_0x18b625)continue;for(const _0x18ac57 of HOOK_NAMES)collectHook(_0x1f6497,_0x18ac57,_0x18b625);const _0x2d214b=_0x472caa[_0xaa7149(0x240)],_0x200f47=_0x472caa['query'];Object['assign'](_0x472caa,_0x18b625);const _0x1e7f17={..._0x2d214b,..._0x18b625['headers']};_0x472caa['headers']=_0x1e7f17;const _0x3a3b80={..._0x200f47,..._0x18b625[_0xaa7149(0x214)]};_0x472caa['query']=_0x3a3b80;}for(const [_0x3b8282,_0x5bd359]of Object[_0xaa7149(0x1f8)](_0x1f6497))Object['assign'](_0x472caa,{[_0x3b8282]:async _0x462fc2=>{for(const _0x4033e6 of _0x5bd359)await _0x4033e6(_0x462fc2);}});return _0x472caa;}function collectHook(_0x326173,_0x4c65db,_0x4ee633){const _0x41fddf=_0x4fba51,_0x4ee0b0=_0x4ee633[_0x4c65db];if(typeof _0x4ee0b0!==_0x41fddf(0x20c))return;_0x326173[_0x4c65db]??=[],_0x326173[_0x4c65db]['push'](_0x4ee0b0);}function dispatch(_0x5f44ff,_0x50e0b9,_0x20f28a,_0x4283fa){const _0x278e4b=_0x4fba51;let _0x46b6a5;if(_0x5f44ff==='upload')_0x46b6a5=dispatchUpload(_0x50e0b9,_0x20f28a,_0x4283fa);else{if(_0x5f44ff===_0x278e4b(0x243))_0x46b6a5=dispatchDownload(_0x50e0b9,_0x20f28a,_0x4283fa);else _0x46b6a5=dispatchRequest(_0x50e0b9,_0x20f28a,_0x4283fa);}bindTask(_0x46b6a5,_0x20f28a);}function bindTask(_0x4d0e68,_0x4143fb){const _0x6a93c7=_0x4fba51;onAbort(_0x4143fb[_0x6a93c7(0x208)],()=>_0x4d0e68['abort']());if(typeof _0x4143fb['onHeadersReceived']===_0x6a93c7(0x20c))_0x4d0e68['onHeadersReceived'](_0x4143fb[_0x6a93c7(0x20e)]);const _0x5352dd=_0x4143fb[_0x6a93c7(0x1f2)];if(typeof _0x5352dd==='function'&&_0x6a93c7(0x1fa)in _0x4d0e68)_0x4d0e68['onProgressUpdate'](_0x5352dd);}function dispatchRequest(_0x3dacc1,_0x30ea27,_0x57e27f){const _0x1502bb=_0x4fba51,_0x5213f1={'url':_0x3dacc1,'method':_0x30ea27['method'],'header':_0x30ea27[_0x1502bb(0x240)],'data':_0x30ea27[_0x1502bb(0x212)]??{},'timeout':_0x30ea27[_0x1502bb(0x238)],'dataType':_0x30ea27['dataType']||'json','responseType':mappedResponseBodyType(_0x30ea27[_0x1502bb(0x206)]),'sslVerify':_0x30ea27[_0x1502bb(0x244)],'withCredentials':_0x30ea27[_0x1502bb(0x1fe)],'firstIpv4':_0x30ea27[_0x1502bb(0x1f7)],'enableHttp2':_0x30ea27[_0x1502bb(0x1ee)],'enableQuic':_0x30ea27['enableQuic'],'enableCache':_0x30ea27[_0x1502bb(0x1f3)],'enableHttpDNS':_0x30ea27[_0x1502bb(0x1f9)],'httpDNSServiceId':_0x30ea27[_0x1502bb(0x230)],'enableChunked':_0x30ea27['enableChunked'],'forceCellularNetwork':_0x30ea27['forceCellularNetwork'],'success':_0x57e27f['onSuccess'],'fail':_0x57e27f['onFail'],'complete':()=>{}};return uni[_0x1502bb(0x1fb)](_0x5213f1);}function dispatchUpload(_0x2af804,_0x245f22,_0x11725f){const _0x416d8f=_0x4fba51,_0x4fd5a6={};_0x4fd5a6[_0x416d8f(0x201)]=_0x2af804,_0x4fd5a6['fileType']=_0x245f22[_0x416d8f(0x227)],_0x4fd5a6['file']=_0x245f22[_0x416d8f(0x203)],_0x4fd5a6[_0x416d8f(0x21b)]=_0x245f22[_0x416d8f(0x21b)],_0x4fd5a6[_0x416d8f(0x233)]=_0x245f22[_0x416d8f(0x233)]??'file',_0x4fd5a6['files']=_0x245f22['files'],_0x4fd5a6[_0x416d8f(0x22d)]=_0x245f22[_0x416d8f(0x240)],_0x4fd5a6['formData']=_0x245f22[_0x416d8f(0x212)]??{},_0x4fd5a6['timeout']=_0x245f22[_0x416d8f(0x238)],_0x4fd5a6['success']=_0x11725f['onSuccess'],_0x4fd5a6['fail']=_0x11725f[_0x416d8f(0x204)],_0x4fd5a6['complete']=()=>{};const _0x3bf949=_0x4fd5a6;return uni[_0x416d8f(0x221)](_0x3bf949);}function dispatchDownload(_0xdc869,_0x57e5a1,_0x3e9c3a){const _0x36e81f=_0x4fba51,_0x3c24d7={'url':_0xdc869,'header':_0x57e5a1[_0x36e81f(0x240)],'timeout':_0x57e5a1[_0x36e81f(0x238)],'success':_0x3c0dd5=>{const _0x2fabfc=_0x36e81f,_0x30d3b7={..._0x3c0dd5};_0x30d3b7[_0x2fabfc(0x22c)]={},_0x30d3b7[_0x2fabfc(0x22c)][_0x2fabfc(0x239)]=_0x3c0dd5[_0x2fabfc(0x239)],_0x3e9c3a[_0x2fabfc(0x20d)](_0x30d3b7);},'fail':_0x3e9c3a[_0x36e81f(0x204)],'complete':()=>{}};return uni[_0x36e81f(0x200)](_0x3c24d7);}function mappedResponseBodyType(_0x5698bd){const _0x3f5a61=_0x4fba51;if(!_0x5698bd||_0x5698bd===_0x3f5a61(0x23f))return _0x3f5a61(0x211);if(_0x5698bd==='arrayBuffer')return'arraybuffer';return _0x3f5a61(0x211);}var HttpError=class extends Error{constructor(_0x2ad565){const _0x13036b=_0x4fba51;super(_0x2ad565),this[_0x13036b(0x233)]='HttpError';}};function createResponseError(_0x524bd4,_0x3bc9ba,_0x44bc35){const _0x55da7e=_0x4fba51,_0x18dca1=_0x524bd4,_0x24d529='['+(_0x3bc9ba?.[_0x55da7e(0x21c)]||'GET')+']\x20'+_0x18dca1,_0x591176=_0x44bc35?_0x44bc35['statusCode']+'\x20'+(_0x44bc35[_0x55da7e(0x231)]||''):'<no\x20response>',_0x9368a7=_0x44bc35?JSON['stringify'](_0x44bc35['data']):'<no\x20response\x20body>',_0x149565=new HttpError(_0x24d529+':\x20'+_0x591176+(_0x44bc35['data']?'\x20'+_0x9368a7:''));for(const _0x39acd0 of[_0x55da7e(0x1fb),_0x55da7e(0x220),'response','data'])Object['defineProperty'](_0x149565,_0x39acd0,{'get'(){const _0x263d8a=_0x55da7e,_0x3a31c2={};return _0x3a31c2['request']=_0x524bd4,_0x3a31c2[_0x263d8a(0x220)]=_0x3bc9ba,_0x3a31c2[_0x263d8a(0x245)]=_0x44bc35,_0x3a31c2['data']=_0x44bc35[_0x263d8a(0x22c)],_0x3a31c2[_0x39acd0];}});return _0x149565;}function normalizeError(_0x149089){const _0x164914=_0x4fba51;if(_0x149089 instanceof Error)return _0x149089;return Object['assign'](new Error(_0x149089?.['errMsg']||_0x149089?.[_0x164914(0x1fc)]||_0x164914(0x207)),{'cause':_0x149089});}async function callRequestHooks(_0x58361e,_0x35241b){await _0x35241b['onRequest']?.({'options':_0x35241b,'resource':_0x58361e});}async function callRequestErrorHooks(_0x46b2b3,_0x3727ed,_0x4ecdcc){const _0xa11a68=_0x4fba51;await _0x3727ed[_0xa11a68(0x1ef)]?.({'options':_0x3727ed,'resource':_0x46b2b3,'error':_0x4ecdcc});}async function callResponseHooks(_0x581d92,_0x50607c,_0x27581a){await _0x50607c['onResponse']?.({'options':_0x50607c,'resource':_0x581d92,'response':_0x27581a});}async function callResponseErrorHooks(_0x557ee4,_0x1b1d8c,_0x2df16f){const _0x51d5de=_0x4fba51;await _0x1b1d8c[_0x51d5de(0x22b)]?.({'options':_0x1b1d8c,'resource':_0x557ee4,'response':_0x2df16f});}async function refineResponse(_0x4b2b9e,_0x5f4a9d){const _0x33cdeb=_0x4fba51;if(_0x5f4a9d['responseType']===_0x33cdeb(0x23f)||!_0x5f4a9d[_0x33cdeb(0x206)])return{..._0x4b2b9e,'data':await parseJSONResponse(_0x4b2b9e[_0x33cdeb(0x22c)],_0x5f4a9d)};return _0x4b2b9e;}function parseJSONResponse(_0x46e458,_0x430caa){const _0x2bcf86=_0x4fba51;if(typeof _0x46e458!==_0x2bcf86(0x235))return _0x46e458;if(_0x430caa['parseResponse'])return _0x430caa['parseResponse'](_0x46e458);return _0x46e458?JSON['parse'](_0x46e458):null;}function isResponseError(_0x198df6){const _0x339244='statusCode'in _0x198df6?_0x198df6['statusCode']:void 0x0;return typeof _0x339244==='number'&&(_0x339244<0xc8||_0x339244>=0x12c);}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set([_0x4fba51(0x234),_0x4fba51(0x1f1),_0x4fba51(0x23a),_0x4fba51(0x22e)]);async function withRetry(_0x462d19,_0x10eac8){const _0x4a302b=_0x4fba51,_0x3b618b=resolveRetryCount(_0x462d19);for(let _0x71db86=0x0;;_0x71db86++)try{return await _0x10eac8();}catch(_0x2af24c){if(_0x71db86>=_0x3b618b||!shouldRetry(_0x2af24c,_0x462d19))throw _0x2af24c;await sleep(_0x462d19[_0x4a302b(0x218)]??0x0,_0x462d19[_0x4a302b(0x208)]);}}function resolveRetryCount(_0xcdd1fb){const _0x317f20=_0x4fba51,{retry:_0x24000c}=_0xcdd1fb;if(_0x24000c===![])return 0x0;if(typeof _0x24000c===_0x317f20(0x229))return _0x24000c>0x0?_0x24000c:0x0;return isPayloadMethod(_0xcdd1fb[_0x317f20(0x21c)])?0x0:0x1;}function _0x13fd(_0x18275c,_0x44762a){_0x18275c=_0x18275c-0x1ee;const _0x223014=_0x2230();let _0x13fd4f=_0x223014[_0x18275c];return _0x13fd4f;}function shouldRetry(_0x2a639e,_0x1b4293){const _0x35556a=_0x4fba51;if(_0x1b4293[_0x35556a(0x208)]?.[_0x35556a(0x226)]||isAbortError(_0x2a639e))return![];const _0x21d53a=_0x2a639e?.[_0x35556a(0x245)]?.[_0x35556a(0x22a)];if(typeof _0x21d53a!==_0x35556a(0x229))return!![];return(_0x1b4293[_0x35556a(0x215)]??DEFAULT_RETRY_STATUS_CODES)['includes'](_0x21d53a);}function isPayloadMethod(_0xa386ce){const _0x3a021b=_0x4fba51;return!!_0xa386ce&&PAYLOAD_METHODS[_0x3a021b(0x216)](_0xa386ce[_0x3a021b(0x217)]());}function sleep(_0x56b2a5,_0x349583){return new Promise((_0xae12b4,_0x7db377)=>{if(_0x349583?.['aborted']){_0x7db377(_0x349583['reason']);return;}if(!(_0x56b2a5>0x0)){_0xae12b4();return;}let _0x4688b0=()=>{};const _0x379b16=setTimeout(()=>{_0x4688b0(),_0xae12b4();},_0x56b2a5);_0x4688b0=onAbort(_0x349583,()=>{const _0x49dc9a=_0x13fd;clearTimeout(_0x379b16),_0x7db377(_0x349583[_0x49dc9a(0x236)]);});});}function buildURL(_0x376fdf,_0x396097){const _0x15552e=_0x4fba51,_0x3062f3=joinURL(_0x396097[_0x15552e(0x1ff)],_0x376fdf),_0x266462=_0x396097['query']??{},_0x178826=Object['keys'](_0x266462)[_0x15552e(0x1fd)](_0xcf386b=>_0x266462[_0xcf386b]!==void 0x0)[_0x15552e(0x224)](_0x4377f0=>{const _0x2ed398=_0x15552e,_0x11f3e5=_0x266462[_0x4377f0];return(Array[_0x2ed398(0x209)](_0x11f3e5)?_0x11f3e5:[_0x11f3e5])['map'](_0x8e1834=>encodeURIComponent(_0x4377f0)+'='+encodeURIComponent(String(_0x8e1834)));})['join']('&');if(!_0x178826)return _0x3062f3;return''+_0x3062f3+(_0x3062f3['includes']('?')?'&':'?')+_0x178826;}function joinURL(_0x4ddcaa,_0x1a43fd){const _0x2cefac=_0x4fba51;if(!_0x4ddcaa||isAbsoluteURL(_0x1a43fd))return _0x1a43fd;return _0x4ddcaa[_0x2cefac(0x1f4)](/\/+$/,'')+'/'+_0x1a43fd['replace'](/^\/+/,'');}function isAbsoluteURL(_0x142287){const _0x3f307b=_0x4fba51;return/^[a-z][a-z\d+\-.]*:\/\//i[_0x3f307b(0x223)](_0x142287)||_0x142287['startsWith']('//');}function dispatchHttp(_0x410cdb,_0x54f997,_0x3a4864){const _0x222f35=buildURL(_0x54f997,_0x3a4864);return withRetry(_0x3a4864,()=>attemptRequest(_0x410cdb,_0x54f997,_0x222f35,_0x3a4864));}function attemptRequest(_0x449e55,_0x40101c,_0x50968f,_0x1f80dc){const _0x1a2a6a=!!_0x1f80dc['raw'];return new Promise((_0xa8de34,_0x1bf077)=>{const _0x21b8d1=_0x13fd;let _0x413685=![];const _0x2610c2=_0x60d159=>{if(_0x413685)return;_0x413685=!![],_0x60d159();},_0x3289e4=onAbort(_0x1f80dc[_0x21b8d1(0x208)],()=>{const _0x4aa346=_0x21b8d1;_0x2610c2(()=>_0x1bf077(_0x1f80dc[_0x4aa346(0x208)][_0x4aa346(0x236)]));}),_0x42aa53=_0x5b3691=>{_0x3289e4(),_0x2610c2(_0x5b3691);};callRequestHooks(_0x40101c,_0x1f80dc)[_0x21b8d1(0x241)](()=>{if(_0x413685)return;dispatch(_0x449e55,_0x50968f,_0x1f80dc,{'onSuccess':_0x2ce980=>{const _0x2da601=_0x13fd;Promise[_0x2da601(0x23b)]()[_0x2da601(0x241)](()=>refineResponse(_0x2ce980,_0x1f80dc))[_0x2da601(0x241)](async _0x167a76=>{const _0x1bb346=_0x2da601;if(isResponseError(_0x2ce980)){await callResponseErrorHooks(_0x40101c,_0x1f80dc,_0x167a76);if(!_0x1f80dc[_0x1bb346(0x21d)])throw createResponseError(_0x40101c,_0x1f80dc,_0x167a76);}else await callResponseHooks(_0x40101c,_0x1f80dc,_0x167a76);_0x42aa53(()=>_0xa8de34(_0x1a2a6a?_0x167a76:_0x167a76[_0x1bb346(0x22c)]));})['catch'](_0x59f817=>_0x42aa53(()=>_0x1bf077(_0x59f817)));},'onFail':_0x6684c2=>{const _0x4f2567=_0x13fd;Promise[_0x4f2567(0x23b)]()['then'](async()=>{const _0x546c26=normalizeError(_0x6684c2);if(!isAbortError(_0x546c26))await callRequestErrorHooks(_0x40101c,_0x1f80dc,_0x546c26);throw _0x546c26;})[_0x4f2567(0x21f)](_0x5d0b13=>_0x42aa53(()=>_0x1bf077(_0x5d0b13)));}});})['catch'](async _0x454fff=>{const _0x5b17b2=normalizeError(_0x454fff);await callRequestErrorHooks(_0x40101c,_0x1f80dc,_0x5b17b2),_0x42aa53(()=>_0x1bf077(_0x5b17b2));});});}const _0x25331f={};_0x25331f[_0x4fba51(0x21c)]=_0x4fba51(0x228),_0x25331f['responseType']='json';function _0x2230(){const _0x12c5c9=['indexOf','responseType','HTTP\x20request\x20failed','signal','isArray','6942TmatzC','onabort','function','onSuccess','onHeadersReceived','enumerable','93sgLfcf','text','body','28436589WQaqnA','query','retryStatusCodes','has','toUpperCase','retryDelay','removeEventListener','defineProperty','filePath','method','ignoreResponseError','6444977QyhzhP','catch','options','uploadFile','call','test','flatMap','slice','aborted','fileType','GET','number','statusCode','onResponseError','data','header','PATCH','abort','httpDNSServiceId','errMsg','285CsAwYJ','name','POST','string','reason','upload','timeout','tempFilePath','DELETE','resolve','16194dHfsFu','1410312EhhWdQ','7254244DQRiOm','json','headers','then','emit','download','sslVerify','response','enableHttp2','onRequestError','createHttp','PUT','onProgress','enableCache','replace','get','1036682lHugaG','firstIpv4','entries','enableHttpDNS','onProgressUpdate','request','message','filter','withCredentials','baseURL','downloadFile','url','listeners','file','onFail'];_0x2230=function(){return _0x12c5c9;};return _0x2230();}const defaultConfig=_0x25331f;function createHttp(_0x31a7b4={}){const _0x2667ea=_0x4fba51,_0xb6a4bb=(_0x14bba9,_0x46f349)=>{const _0x215842=_0x13fd;return dispatchHttp(_0x215842(0x1fb),_0x14bba9,mergeOptions(defaultConfig,_0x31a7b4,_0x46f349));},_0x328e75=(_0x4c5366,_0x358b78)=>{const _0x2fc11b=_0x13fd,_0x216718={};return _0x216718['method']=_0x2fc11b(0x234),dispatchHttp('upload',_0x4c5366,mergeOptions(defaultConfig,_0x31a7b4,_0x358b78,_0x216718));},_0x5c456a=(_0x4d4b29,_0x355eb7)=>{const _0x1a32cc=_0x13fd,_0x5b8ab8={};return _0x5b8ab8[_0x1a32cc(0x21c)]=_0x1a32cc(0x228),dispatchHttp(_0x1a32cc(0x243),_0x4d4b29,mergeOptions(defaultConfig,_0x31a7b4,_0x355eb7,_0x5b8ab8));},_0x22558a=_0x399de5=>createHttp(mergeOptions(_0x31a7b4,_0x399de5)),_0xfeafa3={};return _0xfeafa3[_0x2667ea(0x1fb)]=_0xb6a4bb,_0xfeafa3[_0x2667ea(0x237)]=_0x328e75,_0xfeafa3[_0x2667ea(0x243)]=_0x5c456a,_0xfeafa3['create']=_0x22558a,_0xfeafa3;}const http=createHttp(),_0xb321e1={};_0xb321e1['enumerable']=!![],_0xb321e1[_0x4fba51(0x1f5)]=function(){return createHttp;},Object['defineProperty'](exports,_0x4fba51(0x1f0),_0xb321e1);const _0x208945={};_0x208945['enumerable']=!![],_0x208945['get']=function(){return createHttpAborter;},Object['defineProperty'](exports,'createHttpAborter',_0x208945);const _0x137483={};_0x137483[_0x4fba51(0x20f)]=!![],_0x137483[_0x4fba51(0x1f5)]=function(){return http;},Object[_0x4fba51(0x21a)](exports,'http',_0x137483);