@oiyo/framework 0.4.8 → 0.4.9

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.8
2
+ * @oiyo/framework v0.4.9
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
@@ -84,7 +84,7 @@ interface HeadersReceived {
84
84
  header: Record<string, string>;
85
85
  }
86
86
  /**
87
- * 所有请求共享的基础选项。
87
+ * 所有传输方式共享的基础选项。
88
88
  */
89
89
  interface HttpCommonOptions<TRBType extends ResponseBodyType = ResponseBodyType> {
90
90
  baseURL?: string;
@@ -93,6 +93,7 @@ interface HttpCommonOptions<TRBType extends ResponseBodyType = ResponseBodyType>
93
93
  query?: Record<string, any>;
94
94
  body?: any;
95
95
  timeout?: number;
96
+ _action?: 'request' | 'upload' | 'download';
96
97
  /**
97
98
  * 为 true 时返回完整响应对象(statusCode / header / data ...),
98
99
  * 否则只返回精炼后的 data。
@@ -110,7 +111,7 @@ interface HttpCommonOptions<TRBType extends ResponseBodyType = ResponseBodyType>
110
111
  ignoreResponseError?: boolean;
111
112
  /**
112
113
  * 中断信号,由 `createHttpAborter()` 创建。
113
- * 信号触发后请求会被中断;已中断的信号会让请求立即中断。
114
+ * 信号触发后传输会被中断;已中断的信号会让传输立即中断。
114
115
  */
115
116
  signal?: HttpAbortSignal;
116
117
  /**
@@ -120,7 +121,13 @@ interface HttpCommonOptions<TRBType extends ResponseBodyType = ResponseBodyType>
120
121
  }
121
122
  interface HttpRequestOptions<TRBType extends ResponseBodyType = ResponseBodyType> extends HttpCommonOptions<TRBType>, UniAppRequestOptions {
122
123
  /**
123
- * 普通请求方法,强制 POST
124
+ * 传输动作
125
+ * @description 常用于钩子中
126
+ * @protected
127
+ */
128
+ _action?: 'request';
129
+ /**
130
+ * 请求方法
124
131
  * @default - 'POST'
125
132
  */
126
133
  method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'HEAD' | 'OPTIONS' | 'TRACE' | 'CONNECT';
@@ -132,7 +139,13 @@ interface HttpRequestOptions<TRBType extends ResponseBodyType = ResponseBodyType
132
139
  }
133
140
  interface HttpUploadOptions<TRBType extends ResponseBodyType = ResponseBodyType> extends HttpCommonOptions<TRBType>, UniAppUploadOptions {
134
141
  /**
135
- * 上传请求方法,强制 POST
142
+ * 传输动作
143
+ * @description 常用于钩子中
144
+ * @protected
145
+ */
146
+ _action?: 'upload';
147
+ /**
148
+ * 上传方法,强制 POST
136
149
  * @default - 'POST'
137
150
  */
138
151
  method?: 'POST';
@@ -144,7 +157,13 @@ interface HttpUploadOptions<TRBType extends ResponseBodyType = ResponseBodyType>
144
157
  }
145
158
  interface HttpDownloadOptions<TRBType extends UniAppDownloadBodyType = 'json'> extends HttpCommonOptions<TRBType>, UniAppDownloadOptions {
146
159
  /**
147
- * 下载请求方法,强制 GET
160
+ * 传输动作
161
+ * @description 常用于钩子中
162
+ * @protected
163
+ */
164
+ _action?: 'download';
165
+ /**
166
+ * 下载方法,强制 GET
148
167
  * @default - 'GET'
149
168
  */
150
169
  method?: 'GET';
@@ -154,7 +173,13 @@ interface HttpDownloadOptions<TRBType extends UniAppDownloadBodyType = 'json'> e
154
173
  */
155
174
  onProgress?: (data: UniAppDownloadProgressData) => void;
156
175
  }
176
+ /**
177
+ * 传输地址
178
+ */
157
179
  type HttpURL = string;
180
+ /**
181
+ * 传输属性
182
+ */
158
183
  interface HttpOptions extends HttpCommonOptions, UniAppRequestOptions, UniAppUploadOptions, UniAppDownloadOptions {}
159
184
  //#endregion
160
185
  //#region src/oiyo/http/types/response.d.ts
@@ -185,6 +210,13 @@ interface HttpDownload {
185
210
  }): Promise<HttpDownloadResponse<TRBody, TRBType>>;
186
211
  <TRBody extends UniAppDownloadBody = UniAppDownloadBody, TRBType extends UniAppDownloadBodyType = UniAppDownloadBodyType>(resource: HttpURL, options?: HttpDownloadOptions<TRBType>): Promise<HttpDownloadResult<TRBody, TRBType>>;
187
212
  }
213
+ type HttpHookContextOptions = HttpRequestOptions & {
214
+ _action: 'request';
215
+ } | HttpUploadOptions & {
216
+ _action: 'upload';
217
+ } | HttpDownloadOptions & {
218
+ _action: 'download';
219
+ };
188
220
  interface HttpHooks<TContextOptions, TResponse> {
189
221
  onRequest?: (context: {
190
222
  resource: HttpURL;
@@ -206,7 +238,7 @@ interface HttpHooks<TContextOptions, TResponse> {
206
238
  response: TResponse;
207
239
  }) => MaybePromise<void>;
208
240
  }
209
- interface HttpConfig extends HttpCommonOptions, HttpHooks<HttpOptions, HttpResponse> {}
241
+ interface HttpConfig extends HttpCommonOptions, HttpHooks<HttpHookContextOptions, HttpResponse> {}
210
242
  interface HttpError<T = any> extends Error {
211
243
  resource?: HttpURL;
212
244
  options?: HttpOptions;
@@ -217,23 +249,74 @@ interface HttpError<T = any> extends Error {
217
249
  //#region src/oiyo/http/core.d.ts
218
250
  interface Http {
219
251
  /**
220
- * 普通请求
252
+ * 发起请求
253
+ *
254
+ * @example
255
+ * const data = await http.request<IUserInfoRes>('/user/info')
256
+ * // data 是精炼后的数据,同 `IUserInfoRes` 结构的值
257
+ *
258
+ * const response = await http.request<IUserInfoRes>('/user/info', { raw: true })
259
+ * // response 是源响应数据,你必须通过 response.data 才能拿到同 `IUserInfoRes` 结构的值
221
260
  */
222
261
  request: HttpRequest;
223
262
  /**
224
263
  * 文件上传
264
+ *
265
+ * @example
266
+ * const data = await http.upload<IUploadRes>('/upload', { name: 'file', filePath, body: { category: 'avatar' } })
267
+ * // data 是精炼后的数据,同 `IUploadRes` 结构的值
268
+ *
269
+ * const response = await http.upload<IUploadRes>('/upload', { raw: true, name: 'file', filePath, body: { category: 'avatar' } })
270
+ * // response 是源响应数据,你必须通过 response.data 才能拿到同 `IUploadRes` 结构的值
225
271
  */
226
272
  upload: HttpUpload;
227
273
  /**
228
274
  * 文件下载
275
+ *
276
+ * @example
277
+ * const data = await http.download('/file/report.pdf')
278
+ * // data.tempFilePath 可以直接获取到临时文件路径
279
+ *
280
+ * const response = await http.download('/file/report.pdf', { raw: true })
281
+ * // response 是源响应数据,你必须通过 response.data.tempFilePath 才能拿到
229
282
  */
230
283
  download: HttpDownload;
231
284
  /**
232
285
  * 基于当前配置派生一个新实例。
286
+ *
287
+ * @example
288
+ * // 作为实例源
289
+ * const client = http.create({ ... })
290
+ *
291
+ * // 派生鉴权/订单专用实例,它们都会继承与 client 中的配置
292
+ * const authClient = client.create({...})
293
+ * const orderClient = client.create({...})
233
294
  */
234
295
  create: (config: HttpConfig) => Http;
235
296
  }
236
297
  declare function createHttp(globalConfig?: HttpConfig): Http;
298
+ /**
299
+ * 请求层
300
+ *
301
+ * @docs https://oiyo.js.org/docs/manual/data/http
302
+ * @example
303
+ * // 发起请求
304
+ * const data = await http.request<IUserInfoRes>('/user/info')
305
+ *
306
+ * // 文件上传
307
+ * const data = await http.upload<IUploadRes>('/upload', { name: 'file', filePath, body: { category: 'avatar' } })
308
+ *
309
+ * // 文件下载
310
+ * const { tempFilePath } = await http.download('/file/report.pdf')
311
+ *
312
+ * // 中断进行中的请求
313
+ * const aborter = createHttpAborter()
314
+ * http.request('/pet/1', { signal: aborter.signal })
315
+ * aborter.abort()
316
+ *
317
+ * // 派生一个新实例(覆盖超时等配置,公共实例的钩子会一并串联执行)
318
+ * const longTimeoutClient = http.create({ timeout: 120000 })
319
+ */
237
320
  declare const http: Http;
238
321
  //#endregion
239
322
  export { HttpDownloadResponse as a, HttpUploadResponse as c, HttpOptions as d, HttpRequestOptions as f, createHttpAborter as h, HttpError as i, HttpCommonOptions as l, ResponseBodyType as m, http as n, HttpRequestResponse as o, HttpUploadOptions as p, HttpConfig as r, HttpResponse as s, createHttp as t, HttpDownloadOptions as u };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.8
2
+ * @oiyo/framework v0.4.9
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
@@ -84,7 +84,7 @@ interface HeadersReceived {
84
84
  header: Record<string, string>;
85
85
  }
86
86
  /**
87
- * 所有请求共享的基础选项。
87
+ * 所有传输方式共享的基础选项。
88
88
  */
89
89
  interface HttpCommonOptions<TRBType extends ResponseBodyType = ResponseBodyType> {
90
90
  baseURL?: string;
@@ -93,6 +93,7 @@ interface HttpCommonOptions<TRBType extends ResponseBodyType = ResponseBodyType>
93
93
  query?: Record<string, any>;
94
94
  body?: any;
95
95
  timeout?: number;
96
+ _action?: 'request' | 'upload' | 'download';
96
97
  /**
97
98
  * 为 true 时返回完整响应对象(statusCode / header / data ...),
98
99
  * 否则只返回精炼后的 data。
@@ -110,7 +111,7 @@ interface HttpCommonOptions<TRBType extends ResponseBodyType = ResponseBodyType>
110
111
  ignoreResponseError?: boolean;
111
112
  /**
112
113
  * 中断信号,由 `createHttpAborter()` 创建。
113
- * 信号触发后请求会被中断;已中断的信号会让请求立即中断。
114
+ * 信号触发后传输会被中断;已中断的信号会让传输立即中断。
114
115
  */
115
116
  signal?: HttpAbortSignal;
116
117
  /**
@@ -120,7 +121,13 @@ interface HttpCommonOptions<TRBType extends ResponseBodyType = ResponseBodyType>
120
121
  }
121
122
  interface HttpRequestOptions<TRBType extends ResponseBodyType = ResponseBodyType> extends HttpCommonOptions<TRBType>, UniAppRequestOptions {
122
123
  /**
123
- * 普通请求方法,强制 POST
124
+ * 传输动作
125
+ * @description 常用于钩子中
126
+ * @protected
127
+ */
128
+ _action?: 'request';
129
+ /**
130
+ * 请求方法
124
131
  * @default - 'POST'
125
132
  */
126
133
  method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'HEAD' | 'OPTIONS' | 'TRACE' | 'CONNECT';
@@ -132,7 +139,13 @@ interface HttpRequestOptions<TRBType extends ResponseBodyType = ResponseBodyType
132
139
  }
133
140
  interface HttpUploadOptions<TRBType extends ResponseBodyType = ResponseBodyType> extends HttpCommonOptions<TRBType>, UniAppUploadOptions {
134
141
  /**
135
- * 上传请求方法,强制 POST
142
+ * 传输动作
143
+ * @description 常用于钩子中
144
+ * @protected
145
+ */
146
+ _action?: 'upload';
147
+ /**
148
+ * 上传方法,强制 POST
136
149
  * @default - 'POST'
137
150
  */
138
151
  method?: 'POST';
@@ -144,7 +157,13 @@ interface HttpUploadOptions<TRBType extends ResponseBodyType = ResponseBodyType>
144
157
  }
145
158
  interface HttpDownloadOptions<TRBType extends UniAppDownloadBodyType = 'json'> extends HttpCommonOptions<TRBType>, UniAppDownloadOptions {
146
159
  /**
147
- * 下载请求方法,强制 GET
160
+ * 传输动作
161
+ * @description 常用于钩子中
162
+ * @protected
163
+ */
164
+ _action?: 'download';
165
+ /**
166
+ * 下载方法,强制 GET
148
167
  * @default - 'GET'
149
168
  */
150
169
  method?: 'GET';
@@ -154,7 +173,13 @@ interface HttpDownloadOptions<TRBType extends UniAppDownloadBodyType = 'json'> e
154
173
  */
155
174
  onProgress?: (data: UniAppDownloadProgressData) => void;
156
175
  }
176
+ /**
177
+ * 传输地址
178
+ */
157
179
  type HttpURL = string;
180
+ /**
181
+ * 传输属性
182
+ */
158
183
  interface HttpOptions extends HttpCommonOptions, UniAppRequestOptions, UniAppUploadOptions, UniAppDownloadOptions {}
159
184
  //#endregion
160
185
  //#region src/oiyo/http/types/response.d.ts
@@ -185,6 +210,13 @@ interface HttpDownload {
185
210
  }): Promise<HttpDownloadResponse<TRBody, TRBType>>;
186
211
  <TRBody extends UniAppDownloadBody = UniAppDownloadBody, TRBType extends UniAppDownloadBodyType = UniAppDownloadBodyType>(resource: HttpURL, options?: HttpDownloadOptions<TRBType>): Promise<HttpDownloadResult<TRBody, TRBType>>;
187
212
  }
213
+ type HttpHookContextOptions = HttpRequestOptions & {
214
+ _action: 'request';
215
+ } | HttpUploadOptions & {
216
+ _action: 'upload';
217
+ } | HttpDownloadOptions & {
218
+ _action: 'download';
219
+ };
188
220
  interface HttpHooks<TContextOptions, TResponse> {
189
221
  onRequest?: (context: {
190
222
  resource: HttpURL;
@@ -206,7 +238,7 @@ interface HttpHooks<TContextOptions, TResponse> {
206
238
  response: TResponse;
207
239
  }) => MaybePromise<void>;
208
240
  }
209
- interface HttpConfig extends HttpCommonOptions, HttpHooks<HttpOptions, HttpResponse> {}
241
+ interface HttpConfig extends HttpCommonOptions, HttpHooks<HttpHookContextOptions, HttpResponse> {}
210
242
  interface HttpError<T = any> extends Error {
211
243
  resource?: HttpURL;
212
244
  options?: HttpOptions;
@@ -217,23 +249,74 @@ interface HttpError<T = any> extends Error {
217
249
  //#region src/oiyo/http/core.d.ts
218
250
  interface Http {
219
251
  /**
220
- * 普通请求
252
+ * 发起请求
253
+ *
254
+ * @example
255
+ * const data = await http.request<IUserInfoRes>('/user/info')
256
+ * // data 是精炼后的数据,同 `IUserInfoRes` 结构的值
257
+ *
258
+ * const response = await http.request<IUserInfoRes>('/user/info', { raw: true })
259
+ * // response 是源响应数据,你必须通过 response.data 才能拿到同 `IUserInfoRes` 结构的值
221
260
  */
222
261
  request: HttpRequest;
223
262
  /**
224
263
  * 文件上传
264
+ *
265
+ * @example
266
+ * const data = await http.upload<IUploadRes>('/upload', { name: 'file', filePath, body: { category: 'avatar' } })
267
+ * // data 是精炼后的数据,同 `IUploadRes` 结构的值
268
+ *
269
+ * const response = await http.upload<IUploadRes>('/upload', { raw: true, name: 'file', filePath, body: { category: 'avatar' } })
270
+ * // response 是源响应数据,你必须通过 response.data 才能拿到同 `IUploadRes` 结构的值
225
271
  */
226
272
  upload: HttpUpload;
227
273
  /**
228
274
  * 文件下载
275
+ *
276
+ * @example
277
+ * const data = await http.download('/file/report.pdf')
278
+ * // data.tempFilePath 可以直接获取到临时文件路径
279
+ *
280
+ * const response = await http.download('/file/report.pdf', { raw: true })
281
+ * // response 是源响应数据,你必须通过 response.data.tempFilePath 才能拿到
229
282
  */
230
283
  download: HttpDownload;
231
284
  /**
232
285
  * 基于当前配置派生一个新实例。
286
+ *
287
+ * @example
288
+ * // 作为实例源
289
+ * const client = http.create({ ... })
290
+ *
291
+ * // 派生鉴权/订单专用实例,它们都会继承与 client 中的配置
292
+ * const authClient = client.create({...})
293
+ * const orderClient = client.create({...})
233
294
  */
234
295
  create: (config: HttpConfig) => Http;
235
296
  }
236
297
  declare function createHttp(globalConfig?: HttpConfig): Http;
298
+ /**
299
+ * 请求层
300
+ *
301
+ * @docs https://oiyo.js.org/docs/manual/data/http
302
+ * @example
303
+ * // 发起请求
304
+ * const data = await http.request<IUserInfoRes>('/user/info')
305
+ *
306
+ * // 文件上传
307
+ * const data = await http.upload<IUploadRes>('/upload', { name: 'file', filePath, body: { category: 'avatar' } })
308
+ *
309
+ * // 文件下载
310
+ * const { tempFilePath } = await http.download('/file/report.pdf')
311
+ *
312
+ * // 中断进行中的请求
313
+ * const aborter = createHttpAborter()
314
+ * http.request('/pet/1', { signal: aborter.signal })
315
+ * aborter.abort()
316
+ *
317
+ * // 派生一个新实例(覆盖超时等配置,公共实例的钩子会一并串联执行)
318
+ * const longTimeoutClient = http.create({ timeout: 120000 })
319
+ */
237
320
  declare const http: Http;
238
321
  //#endregion
239
322
  export { HttpDownloadResponse as a, HttpUploadResponse as c, HttpOptions as d, HttpRequestOptions as f, createHttpAborter as h, HttpError as i, HttpCommonOptions as l, ResponseBodyType as m, http as n, HttpRequestResponse as o, HttpUploadOptions as p, HttpConfig as r, HttpResponse as s, createHttp as t, HttpDownloadOptions as u };
package/dist/index.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @oiyo/framework v0.4.8
2
+ * @oiyo/framework v0.4.9
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-CwQjYs6D.cjs");
8
+ const require_oiyo = require("./oiyo-CUAtDW_Y.cjs");
9
9
  require("./uni.cjs");
10
10
  require("./vue.cjs");
11
11
  exports.createHttp = require_oiyo.createHttp;
package/dist/index.d.cts CHANGED
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @oiyo/framework v0.4.8
2
+ * @oiyo/framework v0.4.9
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 HttpUploadResponse, d as HttpOptions, f as HttpRequestOptions, h as createHttpAborter, i as HttpError, l as HttpCommonOptions, m as ResponseBodyType, n as http, o as HttpRequestResponse, p as HttpUploadOptions, r as HttpConfig, s as HttpResponse, t as createHttp, u as HttpDownloadOptions } from "./index-CsfNc8p2.cjs";
7
+ import { a as HttpDownloadResponse, c as HttpUploadResponse, d as HttpOptions, f as HttpRequestOptions, h as createHttpAborter, i as HttpError, l as HttpCommonOptions, m as ResponseBodyType, n as http, o as HttpRequestResponse, p as HttpUploadOptions, r as HttpConfig, s as HttpResponse, t as createHttp, u as HttpDownloadOptions } from "./index-DpCCifZz.cjs";
8
8
  import "./uni.cjs";
9
9
  import "./vue.cjs";
10
10
  export * from "@dcloudio/uni-app";
package/dist/index.d.mts CHANGED
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @oiyo/framework v0.4.8
2
+ * @oiyo/framework v0.4.9
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 HttpUploadResponse, d as HttpOptions, f as HttpRequestOptions, h as createHttpAborter, i as HttpError, l as HttpCommonOptions, m as ResponseBodyType, n as http, o as HttpRequestResponse, p as HttpUploadOptions, r as HttpConfig, s as HttpResponse, t as createHttp, u as HttpDownloadOptions } from "./index-CsfNc8p2.mjs";
7
+ import { a as HttpDownloadResponse, c as HttpUploadResponse, d as HttpOptions, f as HttpRequestOptions, h as createHttpAborter, i as HttpError, l as HttpCommonOptions, m as ResponseBodyType, n as http, o as HttpRequestResponse, p as HttpUploadOptions, r as HttpConfig, s as HttpResponse, t as createHttp, u as HttpDownloadOptions } from "./index-DpCCifZz.mjs";
8
8
  import "./uni.mjs";
9
9
  import "./vue.mjs";
10
10
  export * from "@dcloudio/uni-app";
package/dist/index.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @oiyo/framework v0.4.8
2
+ * @oiyo/framework v0.4.9
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-CohaZv3I.mjs";
7
+ import { n as http, r as createHttpAborter, t as createHttp } from "./oiyo-BXNGL_oa.mjs";
8
8
  import "./uni.mjs";
9
9
  import "./vue.mjs";
10
10
  export * from "@dcloudio/uni-app";
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @oiyo/framework v0.4.9
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 _0x5be832=_0x234c;(function(_0x5624d2,_0x2e5e92){const _0x741efa=_0x234c,_0x78a545=_0x5624d2();while(!![]){try{const _0xfd5f3e=-parseInt(_0x741efa(0xfb))/0x1+-parseInt(_0x741efa(0xd1))/0x2*(-parseInt(_0x741efa(0xe4))/0x3)+parseInt(_0x741efa(0xcd))/0x4+parseInt(_0x741efa(0x10c))/0x5*(parseInt(_0x741efa(0x100))/0x6)+parseInt(_0x741efa(0xf2))/0x7+parseInt(_0x741efa(0x106))/0x8+parseInt(_0x741efa(0x10b))/0x9*(-parseInt(_0x741efa(0xdd))/0xa);if(_0xfd5f3e===_0x2e5e92)break;else _0x78a545['push'](_0x78a545['shift']());}catch(_0x50553a){_0x78a545['push'](_0x78a545['shift']());}}}(_0xeeec,0xd8c32));function createHttpAborter(){const _0x5693d4=new HttpAbortSignal();return{'signal':_0x5693d4,'abort':_0xfad464=>_0x5693d4['_abort'](_0xfad464)};}function _0xeeec(){const _0x199e01=['10579464PkTkTJ','assign','responseType','response','The\x20operation\x20was\x20aborted','listeners','includes','<no\x20response\x20body>','defineProperty','728005ecWJWC','onSuccess','enableHttpDNS','GET','emit','732750LYXaOO','request','has','startsWith','slice','onFail','9687624tDrYxs','AbortError','firstIpv4','then','filePath','9dArHgm','55HpWJlN','POST','map','complete','filter','files','timeout','entries','number','headers','withCredentials','abort','download','signal','<no\x20response>','PATCH','splice','name','isArray','onabort','onChunkReceived','5088776JcrNDa','flatMap','toUpperCase','onProgressUpdate','12PoHNan','query','url','fileType','data','text','dataType','success','push','create','upload','formData','51322090BmJlOn','onHeadersReceived','sslVerify','statusCode','uploadFile','aborted','tempFilePath','705099FxRMVu','removeEventListener','reason','json','_action','body','test','file','enableCache','downloadFile','method','replace','catch','onResponse'];_0xeeec=function(){return _0x199e01;};return _0xeeec();}const ABORT_ERROR_NAME=_0x5be832(0x107);var AbortEmitter=class{['listeners']=[];['addEventListener'](_0x2c0ab6,_0x321f8e){const _0x1ee579=_0x5be832;if(_0x2c0ab6!=='abort')return;this['listeners'][_0x1ee579(0xd9)](_0x321f8e);}[_0x5be832(0xe5)](_0xf15582,_0x33f400){const _0x1f3f35=_0x5be832;if(_0xf15582!==_0x1f3f35(0xc3))return;const _0x55da68=this['listeners']['indexOf'](_0x33f400);if(_0x55da68!==-0x1)this[_0x1f3f35(0xf7)][_0x1f3f35(0xc8)](_0x55da68,0x1);}[_0x5be832(0xff)](_0x59e63b){const _0xa66d1c=_0x5be832;for(const _0x29cc45 of this['listeners'][_0xa66d1c(0x104)]())_0x29cc45['call'](this,_0x59e63b);}},HttpAbortSignal=class extends AbortEmitter{[_0x5be832(0xe2)]=![];[_0x5be832(0xe6)]=void 0x0;[_0x5be832(0xcb)]=null;['_abort'](_0x4ee2bb){const _0x7120a=_0x5be832;if(this[_0x7120a(0xe2)])return;this['aborted']=!![],this['reason']=_0x4ee2bb===void 0x0?createAbortError():_0x4ee2bb;const _0x296746={};_0x296746['type']='abort';const _0x3e40c0=_0x296746;if(typeof this[_0x7120a(0xcb)]==='function')this['onabort'](_0x3e40c0);this['emit'](_0x3e40c0);}['throwIfAborted'](){if(this['aborted'])throw this['reason'];}};function createAbortError(_0x4e17da=_0x5be832(0xf6)){const _0x1759fc=new Error(_0x4e17da);return _0x1759fc['name']=ABORT_ERROR_NAME,_0x1759fc;}function isAbortError(_0x2c9aca){const _0x4286d7=_0x5be832;return _0x2c9aca instanceof Error&&_0x2c9aca[_0x4286d7(0xc9)]===ABORT_ERROR_NAME;}function _0x234c(_0x31bbe6,_0x6300e5){_0x31bbe6=_0x31bbe6-0xba;const _0xeeecb7=_0xeeec();let _0x234c4d=_0xeeecb7[_0x31bbe6];return _0x234c4d;}function onAbort(_0x30edd6,_0x4bcd9c){const _0x33cddc=_0x5be832;if(!_0x30edd6)return()=>{};if(_0x30edd6[_0x33cddc(0xe2)])return _0x4bcd9c(),()=>{};return _0x30edd6['addEventListener'](_0x33cddc(0xc3),_0x4bcd9c),()=>_0x30edd6['removeEventListener'](_0x33cddc(0xc3),_0x4bcd9c);}const HOOK_NAMES=['onRequest','onRequestError','onResponse','onResponseError'];function mergeOptions(..._0x4d64c3){const _0x24ac55=_0x5be832,_0x1b69c9={},_0x165b7d={};for(const _0x1b53a2 of _0x4d64c3){if(!_0x1b53a2)continue;for(const _0x3292f2 of HOOK_NAMES)collectHook(_0x165b7d,_0x3292f2,_0x1b53a2);const _0x3bef7b=_0x1b69c9['headers'],_0xe5c9c2=_0x1b69c9['query'];Object['assign'](_0x1b69c9,_0x1b53a2);const _0x321b56={..._0x3bef7b,..._0x1b53a2[_0x24ac55(0xc1)]};_0x1b69c9[_0x24ac55(0xc1)]=_0x321b56;const _0x2fe4c8={..._0xe5c9c2,..._0x1b53a2[_0x24ac55(0xd2)]};_0x1b69c9['query']=_0x2fe4c8;}for(const [_0x1bfe59,_0x11caac]of Object[_0x24ac55(0xbf)](_0x165b7d))Object[_0x24ac55(0xf3)](_0x1b69c9,{[_0x1bfe59]:async _0x5c1829=>{for(const _0x30eb20 of _0x11caac)await _0x30eb20(_0x5c1829);}});return _0x1b69c9;}function collectHook(_0x556ba9,_0x2afbde,_0x3b1ab4){const _0x409956=_0x5be832,_0x198001=_0x3b1ab4[_0x2afbde];if(typeof _0x198001!=='function')return;_0x556ba9[_0x2afbde]??=[],_0x556ba9[_0x2afbde][_0x409956(0xd9)](_0x198001);}function dispatch(_0x5adf9d,_0x2bed50,_0x267114,_0x584f92){let _0x1e39c0;if(_0x5adf9d==='upload')_0x1e39c0=dispatchUpload(_0x2bed50,_0x267114,_0x584f92);else{if(_0x5adf9d==='download')_0x1e39c0=dispatchDownload(_0x2bed50,_0x267114,_0x584f92);else _0x1e39c0=dispatchRequest(_0x2bed50,_0x267114,_0x584f92);}bindTask(_0x1e39c0,_0x267114);}function bindTask(_0x9b32a5,_0x6fa55a){const _0x4c10ea=_0x5be832;onAbort(_0x6fa55a[_0x4c10ea(0xc5)],()=>_0x9b32a5['abort']());if(typeof _0x6fa55a['onHeadersReceived']==='function')_0x9b32a5[_0x4c10ea(0xde)](_0x6fa55a['onHeadersReceived']);const _0x187102=_0x6fa55a['onChunk'];if(typeof _0x187102==='function'&&_0x4c10ea(0xcc)in _0x9b32a5)_0x9b32a5[_0x4c10ea(0xcc)](_0x187102);const _0x6c855b=_0x6fa55a['onProgress'];if(typeof _0x6c855b==='function'&&_0x4c10ea(0xd0)in _0x9b32a5)_0x9b32a5[_0x4c10ea(0xd0)](_0x6c855b);}function dispatchRequest(_0x1ffc0a,_0x5f3031,_0x5afe76){const _0x39e7a2=_0x5be832,_0x5a2b67={'url':_0x1ffc0a,'method':_0x5f3031[_0x39e7a2(0xee)],'header':_0x5f3031[_0x39e7a2(0xc1)],'data':_0x5f3031[_0x39e7a2(0xe9)]??{},'timeout':_0x5f3031['timeout'],'dataType':_0x5f3031[_0x39e7a2(0xd7)]||_0x39e7a2(0xe7),'responseType':mappedResponseBodyType(_0x5f3031[_0x39e7a2(0xf4)]),'sslVerify':_0x5f3031[_0x39e7a2(0xdf)],'withCredentials':_0x5f3031[_0x39e7a2(0xc2)],'firstIpv4':_0x5f3031[_0x39e7a2(0x108)],'enableHttp2':_0x5f3031['enableHttp2'],'enableQuic':_0x5f3031['enableQuic'],'enableCache':_0x5f3031[_0x39e7a2(0xec)],'enableHttpDNS':_0x5f3031[_0x39e7a2(0xfd)],'httpDNSServiceId':_0x5f3031['httpDNSServiceId'],'enableChunked':_0x5f3031['enableChunked'],'forceCellularNetwork':_0x5f3031['forceCellularNetwork'],'success':_0x5afe76[_0x39e7a2(0xfc)],'fail':_0x5afe76[_0x39e7a2(0x105)],'complete':()=>{}};return uni['request'](_0x5a2b67);}function dispatchUpload(_0x41b556,_0x25dfad,_0x6a1dfd){const _0x3304b2=_0x5be832,_0x5ccfee={};_0x5ccfee[_0x3304b2(0xd3)]=_0x41b556,_0x5ccfee['fileType']=_0x25dfad[_0x3304b2(0xd4)],_0x5ccfee['file']=_0x25dfad[_0x3304b2(0xeb)],_0x5ccfee[_0x3304b2(0x10a)]=_0x25dfad['filePath'],_0x5ccfee['name']=_0x25dfad[_0x3304b2(0xc9)]??_0x3304b2(0xeb),_0x5ccfee[_0x3304b2(0xbd)]=_0x25dfad[_0x3304b2(0xbd)],_0x5ccfee['header']=_0x25dfad['headers'],_0x5ccfee[_0x3304b2(0xdc)]=_0x25dfad[_0x3304b2(0xe9)]??{},_0x5ccfee[_0x3304b2(0xbe)]=_0x25dfad[_0x3304b2(0xbe)],_0x5ccfee[_0x3304b2(0xd8)]=_0x6a1dfd['onSuccess'],_0x5ccfee['fail']=_0x6a1dfd[_0x3304b2(0x105)],_0x5ccfee[_0x3304b2(0xbb)]=()=>{};const _0x1dee32=_0x5ccfee;return uni[_0x3304b2(0xe1)](_0x1dee32);}function dispatchDownload(_0xdea449,_0x1bde4e,_0x4be6d8){const _0x53c775=_0x5be832,_0x220d13={'url':_0xdea449,'header':_0x1bde4e['headers'],'timeout':_0x1bde4e['timeout'],'success':_0x6a239=>{const _0x545d87=_0x234c,_0x41edad={..._0x6a239};_0x41edad[_0x545d87(0xd5)]={},_0x41edad[_0x545d87(0xd5)][_0x545d87(0xe3)]=_0x6a239[_0x545d87(0xe3)],_0x4be6d8[_0x545d87(0xfc)](_0x41edad);},'fail':_0x4be6d8[_0x53c775(0x105)],'complete':()=>{}};return uni[_0x53c775(0xed)](_0x220d13);}function mappedResponseBodyType(_0x4f9bc7){const _0x3041bf=_0x5be832;if(!_0x4f9bc7||_0x4f9bc7===_0x3041bf(0xe7))return'text';if(_0x4f9bc7==='arrayBuffer')return'arraybuffer';return _0x3041bf(0xd6);}var HttpError=class extends Error{constructor(_0x28d7c6){const _0x36426e=_0x5be832;super(_0x28d7c6),this[_0x36426e(0xc9)]='HttpError';}};function createResponseError(_0x25dcd4,_0x13fbdb,_0xff3b5b){const _0x2d6239=_0x5be832,_0x55d668=_0x25dcd4,_0x54b7b6='['+(_0x13fbdb?.['method']||'GET')+']\x20'+_0x55d668,_0x1e1624=_0xff3b5b?_0xff3b5b['statusCode']+'\x20'+(_0xff3b5b['errMsg']||''):_0x2d6239(0xc6),_0x148608=_0xff3b5b?JSON['stringify'](_0xff3b5b['data']):_0x2d6239(0xf9),_0x3d0290=new HttpError(_0x54b7b6+':\x20'+_0x1e1624+(_0xff3b5b['data']?'\x20'+_0x148608:''));for(const _0xa0bc48 of[_0x2d6239(0x101),'options','response','data'])Object[_0x2d6239(0xfa)](_0x3d0290,_0xa0bc48,{'get'(){const _0x1807db=_0x2d6239,_0x3b29b8={};return _0x3b29b8[_0x1807db(0x101)]=_0x25dcd4,_0x3b29b8['options']=_0x13fbdb,_0x3b29b8['response']=_0xff3b5b,_0x3b29b8[_0x1807db(0xd5)]=_0xff3b5b[_0x1807db(0xd5)],_0x3b29b8[_0xa0bc48];}});return _0x3d0290;}function normalizeError(_0x3fca60){if(_0x3fca60 instanceof Error)return _0x3fca60;return Object['assign'](new Error(_0x3fca60?.['errMsg']||_0x3fca60?.['message']||'HTTP\x20request\x20failed'),{'cause':_0x3fca60});}async function callRequestHooks(_0x4d5d5b,_0x37936d){await _0x37936d['onRequest']?.({'options':_0x37936d,'resource':_0x4d5d5b});}async function callRequestErrorHooks(_0x38d21c,_0x5c7121,_0x5adbb8){await _0x5c7121['onRequestError']?.({'options':_0x5c7121,'resource':_0x38d21c,'error':_0x5adbb8});}async function callResponseHooks(_0x12ed06,_0x56e203,_0x36ca7c){const _0x64fe60=_0x5be832;await _0x56e203[_0x64fe60(0xf1)]?.({'options':_0x56e203,'resource':_0x12ed06,'response':_0x36ca7c});}async function callResponseErrorHooks(_0x1d50ff,_0x77b3d9,_0x3571e0){await _0x77b3d9['onResponseError']?.({'options':_0x77b3d9,'resource':_0x1d50ff,'response':_0x3571e0});}async function refineResponse(_0x328da8,_0x15a1b8){if(_0x15a1b8['responseType']==='json'||!_0x15a1b8['responseType'])return{..._0x328da8,'data':await parseJSONResponse(_0x328da8['data'],_0x15a1b8)};return _0x328da8;}function parseJSONResponse(_0x2c72d4,_0x465be2){if(typeof _0x2c72d4!=='string')return _0x2c72d4;if(_0x465be2['parseResponse'])return _0x465be2['parseResponse'](_0x2c72d4);return _0x2c72d4?JSON['parse'](_0x2c72d4):null;}function isResponseError(_0xa973b8){const _0x30d600=_0x5be832,_0x17f130='statusCode'in _0xa973b8?_0xa973b8[_0x30d600(0xe0)]:void 0x0;return typeof _0x17f130===_0x30d600(0xc0)&&(_0x17f130<0xc8||_0x17f130>=0x12c);}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set([_0x5be832(0x10d),'PUT','DELETE',_0x5be832(0xc7)]);async function withRetry(_0x5afcf4,_0x13febd){const _0xdffa61=_0x5be832,_0x41ff68=resolveRetryCount(_0x5afcf4);for(let _0x5e503e=0x0;;_0x5e503e++)try{return await _0x13febd();}catch(_0x2aefb5){if(_0x5e503e>=_0x41ff68||!shouldRetry(_0x2aefb5,_0x5afcf4))throw _0x2aefb5;await sleep(_0x5afcf4['retryDelay']??0x0,_0x5afcf4[_0xdffa61(0xc5)]);}}function resolveRetryCount(_0x5809ee){const _0x4aedd6=_0x5be832,{retry:_0x27ca97}=_0x5809ee;if(_0x27ca97===![])return 0x0;if(typeof _0x27ca97===_0x4aedd6(0xc0))return _0x27ca97>0x0?_0x27ca97:0x0;return isPayloadMethod(_0x5809ee['method'])?0x0:0x1;}function shouldRetry(_0x524f00,_0x38b58d){const _0x325c2f=_0x5be832;if(_0x38b58d['signal']?.[_0x325c2f(0xe2)]||isAbortError(_0x524f00))return![];const _0x54c746=_0x524f00?.[_0x325c2f(0xf5)]?.['statusCode'];if(typeof _0x54c746!=='number')return!![];return(_0x38b58d['retryStatusCodes']??DEFAULT_RETRY_STATUS_CODES)[_0x325c2f(0xf8)](_0x54c746);}function isPayloadMethod(_0x15a15f){const _0x557fe5=_0x5be832;return!!_0x15a15f&&PAYLOAD_METHODS[_0x557fe5(0x102)](_0x15a15f[_0x557fe5(0xcf)]());}function sleep(_0x7c99c0,_0x4a52ca){return new Promise((_0x3140ad,_0x82a108)=>{const _0x41797f=_0x234c;if(_0x4a52ca?.[_0x41797f(0xe2)]){_0x82a108(_0x4a52ca[_0x41797f(0xe6)]);return;}if(!(_0x7c99c0>0x0)){_0x3140ad();return;}let _0x2bdd42=()=>{};const _0x111724=setTimeout(()=>{_0x2bdd42(),_0x3140ad();},_0x7c99c0);_0x2bdd42=onAbort(_0x4a52ca,()=>{clearTimeout(_0x111724),_0x82a108(_0x4a52ca['reason']);});});}function buildURL(_0x41eb81,_0x28096e){const _0x2b16a6=_0x5be832,_0x5daf06=joinURL(_0x28096e['baseURL'],_0x41eb81),_0x38dc2e=_0x28096e['query']??{},_0x2c000d=Object['keys'](_0x38dc2e)[_0x2b16a6(0xbc)](_0x2add86=>_0x38dc2e[_0x2add86]!==void 0x0)[_0x2b16a6(0xce)](_0x1a8675=>{const _0x716409=_0x2b16a6,_0x44efc6=_0x38dc2e[_0x1a8675];return(Array[_0x716409(0xca)](_0x44efc6)?_0x44efc6:[_0x44efc6])[_0x716409(0xba)](_0x146632=>encodeURIComponent(_0x1a8675)+'='+encodeURIComponent(String(_0x146632)));})['join']('&');if(!_0x2c000d)return _0x5daf06;return''+_0x5daf06+(_0x5daf06[_0x2b16a6(0xf8)]('?')?'&':'?')+_0x2c000d;}function joinURL(_0x40b5b2,_0x6e8864){const _0x45459b=_0x5be832;if(!_0x40b5b2||isAbsoluteURL(_0x6e8864))return _0x6e8864;return _0x40b5b2[_0x45459b(0xef)](/\/+$/,'')+'/'+_0x6e8864[_0x45459b(0xef)](/^\/+/,'');}function isAbsoluteURL(_0x208f49){const _0x2293d3=_0x5be832;return/^[a-z][a-z\d+\-.]*:\/\//i[_0x2293d3(0xea)](_0x208f49)||_0x208f49[_0x2293d3(0x103)]('//');}function dispatchHttp(_0x579757,_0xbfd4d6,_0x483467){const _0x5a6b9a=buildURL(_0xbfd4d6,_0x483467);return withRetry(_0x483467,()=>attemptRequest(_0x579757,_0xbfd4d6,_0x5a6b9a,_0x483467));}function attemptRequest(_0x1f66f1,_0x4cae6b,_0x578ef5,_0x51b471){const _0x3d111f=!!_0x51b471['raw'];return new Promise((_0x39882d,_0x26a7b5)=>{const _0x2f7c0a=_0x234c;let _0x100207=![];const _0x4c4075=_0x594acb=>{if(_0x100207)return;_0x100207=!![],_0x594acb();},_0xab50cc=onAbort(_0x51b471['signal'],()=>{const _0x461756=_0x234c;_0x4c4075(()=>_0x26a7b5(_0x51b471[_0x461756(0xc5)][_0x461756(0xe6)]));}),_0x1099fc=_0x13ea98=>{_0xab50cc(),_0x4c4075(_0x13ea98);};callRequestHooks(_0x4cae6b,_0x51b471)['then'](()=>{if(_0x100207)return;dispatch(_0x1f66f1,_0x578ef5,_0x51b471,{'onSuccess':_0x4e4c23=>{const _0xae3892=_0x234c;Promise['resolve']()[_0xae3892(0x109)](()=>refineResponse(_0x4e4c23,_0x51b471))['then'](async _0xfa6309=>{if(isResponseError(_0x4e4c23)){await callResponseErrorHooks(_0x4cae6b,_0x51b471,_0xfa6309);if(!_0x51b471['ignoreResponseError'])throw createResponseError(_0x4cae6b,_0x51b471,_0xfa6309);}else await callResponseHooks(_0x4cae6b,_0x51b471,_0xfa6309);_0x1099fc(()=>_0x39882d(_0x3d111f?_0xfa6309:_0xfa6309['data']));})['catch'](_0x2b1f15=>_0x1099fc(()=>_0x26a7b5(_0x2b1f15)));},'onFail':_0x2e3f0e=>{const _0x356170=_0x234c;Promise['resolve']()[_0x356170(0x109)](async()=>{const _0x5189de=normalizeError(_0x2e3f0e);if(!isAbortError(_0x5189de))await callRequestErrorHooks(_0x4cae6b,_0x51b471,_0x5189de);throw _0x5189de;})['catch'](_0x5cf676=>_0x1099fc(()=>_0x26a7b5(_0x5cf676)));}});})[_0x2f7c0a(0xf0)](async _0x372187=>{const _0x464cc9=normalizeError(_0x372187);await callRequestErrorHooks(_0x4cae6b,_0x51b471,_0x464cc9),_0x1099fc(()=>_0x26a7b5(_0x464cc9));});});}const _0x35faf1={};_0x35faf1[_0x5be832(0xee)]='GET',_0x35faf1[_0x5be832(0xf4)]='json';const defaultConfig=_0x35faf1;function createHttp(_0x115a21={}){const _0x4e455a=_0x5be832,_0x5ba2c9=(_0x59c518,_0x941336)=>{const _0x1ddfe2=_0x234c,_0x4c397c={};return _0x4c397c['_action']='request',dispatchHttp(_0x1ddfe2(0x101),_0x59c518,mergeOptions(defaultConfig,_0x115a21,_0x941336,_0x4c397c));},_0x19535d=(_0x4ab800,_0x2eac96)=>{const _0x51cae2=_0x234c,_0x664bea={};return _0x664bea['method']=_0x51cae2(0x10d),_0x664bea[_0x51cae2(0xe8)]=_0x51cae2(0xdb),dispatchHttp(_0x51cae2(0xdb),_0x4ab800,mergeOptions(defaultConfig,_0x115a21,_0x2eac96,_0x664bea));},_0x29286f=(_0x553794,_0x417aa7)=>{const _0x2b5546=_0x234c,_0x40290d={};return _0x40290d['method']=_0x2b5546(0xfe),_0x40290d['_action']=_0x2b5546(0xc4),dispatchHttp(_0x2b5546(0xc4),_0x553794,mergeOptions(defaultConfig,_0x115a21,_0x417aa7,_0x40290d));},_0x5384d1=_0x5c2920=>createHttp(mergeOptions(_0x115a21,_0x5c2920)),_0x331af2={};return _0x331af2['request']=_0x5ba2c9,_0x331af2[_0x4e455a(0xdb)]=_0x19535d,_0x331af2[_0x4e455a(0xc4)]=_0x29286f,_0x331af2[_0x4e455a(0xda)]=_0x5384d1,_0x331af2;}const http=createHttp();export{http as n,createHttpAborter as r,createHttp as t};
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @oiyo/framework v0.4.9
3
+ * Copyright (c) 2026 skiyee. All rights reserved.
4
+ * Commercial software. See LICENSE for terms.
5
+ * Official site: https://oiyo.js.org
6
+ */
7
+ function _0x113e(){const _0x983e9d=['addEventListener','onSuccess','data','download','274728vUbQvW','signal','PATCH','function','timeout','filter','test','onabort','onRequest','PUT','161yuyhAS','parseResponse','options','assign','statusCode','get','firstIpv4','3DpYGYD','message','onProgress','file','onHeadersReceived','arraybuffer','json','flatMap','stringify','header','upload','splice','ignoreResponseError','parse','text','GET','onResponse','files','keys','retryStatusCodes','HttpError','POST','onRequestError','2396801JlrgZd','headers','4Xhhkyp','throwIfAborted','complete','createHttp','listeners','forceCellularNetwork','enableHttpDNS','number','map','method','defineProperty','body','enumerable','<no\x20response>','createHttpAborter','name','AbortError','response','errMsg','tempFilePath','resolve','httpDNSServiceId','formData','aborted','15887ksHKCJ','enableCache','DELETE','_action','reason','616266NLdVpv','push','abort','1542672SLQkFB','indexOf','2018920FGledO','catch','emit','87704rMPBdW','responseType','includes','request','fileType','call','5xkCRVT','onFail'];_0x113e=function(){return _0x983e9d;};return _0x113e();}const _0x1889f2=_0x153b;(function(_0x44e069,_0x4cc62d){const _0x4f9c54=_0x153b,_0x52275d=_0x44e069();while(!![]){try{const _0x142dfa=parseInt(_0x4f9c54(0x1a4))/0x1*(-parseInt(_0x4f9c54(0x18c))/0x2)+-parseInt(_0x4f9c54(0x173))/0x3*(-parseInt(_0x4f9c54(0x162))/0x4)+parseInt(_0x4f9c54(0x15c))/0x5*(parseInt(_0x4f9c54(0x1a9))/0x6)+parseInt(_0x4f9c54(0x16c))/0x7*(parseInt(_0x4f9c54(0x156))/0x8)+parseInt(_0x4f9c54(0x1ac))/0x9+-parseInt(_0x4f9c54(0x153))/0xa+-parseInt(_0x4f9c54(0x18a))/0xb;if(_0x142dfa===_0x4cc62d)break;else _0x52275d['push'](_0x52275d['shift']());}catch(_0xf522c3){_0x52275d['push'](_0x52275d['shift']());}}}(_0x113e,0x23021));function createHttpAborter(){const _0x50be6a=new HttpAbortSignal();return{'signal':_0x50be6a,'abort':_0x5b6b1d=>_0x50be6a['_abort'](_0x5b6b1d)};}const ABORT_ERROR_NAME=_0x1889f2(0x19c);var AbortEmitter=class{[_0x1889f2(0x190)]=[];[_0x1889f2(0x15e)](_0x3fd989,_0x1ea8e0){const _0xf40307=_0x1889f2;if(_0x3fd989!==_0xf40307(0x1ab))return;this[_0xf40307(0x190)][_0xf40307(0x1aa)](_0x1ea8e0);}['removeEventListener'](_0x57cc1c,_0x30f1f7){const _0x2ad128=_0x1889f2;if(_0x57cc1c!=='abort')return;const _0x14efca=this['listeners'][_0x2ad128(0x1ad)](_0x30f1f7);if(_0x14efca!==-0x1)this['listeners'][_0x2ad128(0x17e)](_0x14efca,0x1);}['emit'](_0x25fff8){const _0x4c8964=_0x1889f2;for(const _0x52b2a0 of this[_0x4c8964(0x190)]['slice']())_0x52b2a0[_0x4c8964(0x15b)](this,_0x25fff8);}},HttpAbortSignal=class extends AbortEmitter{[_0x1889f2(0x1a3)]=![];[_0x1889f2(0x1a8)]=void 0x0;[_0x1889f2(0x169)]=null;['_abort'](_0x494b57){const _0x445237=_0x1889f2;if(this['aborted'])return;this[_0x445237(0x1a3)]=!![],this['reason']=_0x494b57===void 0x0?createAbortError():_0x494b57;const _0x3c8abb={};_0x3c8abb['type']=_0x445237(0x1ab);const _0x2bf0f6=_0x3c8abb;if(typeof this[_0x445237(0x169)]===_0x445237(0x165))this['onabort'](_0x2bf0f6);this[_0x445237(0x155)](_0x2bf0f6);}[_0x1889f2(0x18d)](){const _0xeff6c5=_0x1889f2;if(this[_0xeff6c5(0x1a3)])throw this['reason'];}};function createAbortError(_0x57dfd8='The\x20operation\x20was\x20aborted'){const _0x19d58b=new Error(_0x57dfd8);return _0x19d58b['name']=ABORT_ERROR_NAME,_0x19d58b;}function isAbortError(_0x3a40e0){return _0x3a40e0 instanceof Error&&_0x3a40e0['name']===ABORT_ERROR_NAME;}function onAbort(_0x417b63,_0x3ca7ad){const _0x1b42c6=_0x1889f2;if(!_0x417b63)return()=>{};if(_0x417b63[_0x1b42c6(0x1a3)])return _0x3ca7ad(),()=>{};return _0x417b63['addEventListener'](_0x1b42c6(0x1ab),_0x3ca7ad),()=>_0x417b63['removeEventListener']('abort',_0x3ca7ad);}const HOOK_NAMES=['onRequest',_0x1889f2(0x189),'onResponse','onResponseError'];function mergeOptions(..._0x4034c9){const _0x24cc83=_0x1889f2,_0x56abea={},_0x473c0d={};for(const _0x95aac6 of _0x4034c9){if(!_0x95aac6)continue;for(const _0x442457 of HOOK_NAMES)collectHook(_0x473c0d,_0x442457,_0x95aac6);const _0x355f3f=_0x56abea['headers'],_0x449028=_0x56abea['query'];Object[_0x24cc83(0x16f)](_0x56abea,_0x95aac6);const _0x20ed85={..._0x355f3f,..._0x95aac6[_0x24cc83(0x18b)]};_0x56abea['headers']=_0x20ed85;const _0x54a190={..._0x449028,..._0x95aac6['query']};_0x56abea['query']=_0x54a190;}for(const [_0x3e130e,_0x202aea]of Object['entries'](_0x473c0d))Object[_0x24cc83(0x16f)](_0x56abea,{[_0x3e130e]:async _0x14017f=>{for(const _0x1cb16b of _0x202aea)await _0x1cb16b(_0x14017f);}});return _0x56abea;}function collectHook(_0x59f1d3,_0x107605,_0x4bdf40){const _0x24f166=_0x4bdf40[_0x107605];if(typeof _0x24f166!=='function')return;_0x59f1d3[_0x107605]??=[],_0x59f1d3[_0x107605]['push'](_0x24f166);}function dispatch(_0x3bcdae,_0x11799a,_0x17b405,_0x478591){const _0x5e10e1=_0x1889f2;let _0x5706b7;if(_0x3bcdae===_0x5e10e1(0x17d))_0x5706b7=dispatchUpload(_0x11799a,_0x17b405,_0x478591);else{if(_0x3bcdae==='download')_0x5706b7=dispatchDownload(_0x11799a,_0x17b405,_0x478591);else _0x5706b7=dispatchRequest(_0x11799a,_0x17b405,_0x478591);}bindTask(_0x5706b7,_0x17b405);}function bindTask(_0xf31368,_0x53e971){const _0x3daa56=_0x1889f2;onAbort(_0x53e971['signal'],()=>_0xf31368['abort']());if(typeof _0x53e971['onHeadersReceived']===_0x3daa56(0x165))_0xf31368['onHeadersReceived'](_0x53e971[_0x3daa56(0x177)]);const _0x19a750=_0x53e971['onChunk'];if(typeof _0x19a750===_0x3daa56(0x165)&&'onChunkReceived'in _0xf31368)_0xf31368['onChunkReceived'](_0x19a750);const _0x4feb08=_0x53e971[_0x3daa56(0x175)];if(typeof _0x4feb08==='function'&&'onProgressUpdate'in _0xf31368)_0xf31368['onProgressUpdate'](_0x4feb08);}function dispatchRequest(_0x16fd73,_0x37e054,_0x5ccd73){const _0x3541a7=_0x1889f2,_0x41c35f={'url':_0x16fd73,'method':_0x37e054['method'],'header':_0x37e054[_0x3541a7(0x18b)],'data':_0x37e054['body']??{},'timeout':_0x37e054[_0x3541a7(0x166)],'dataType':_0x37e054['dataType']||_0x3541a7(0x179),'responseType':mappedResponseBodyType(_0x37e054[_0x3541a7(0x157)]),'sslVerify':_0x37e054['sslVerify'],'withCredentials':_0x37e054['withCredentials'],'firstIpv4':_0x37e054[_0x3541a7(0x172)],'enableHttp2':_0x37e054['enableHttp2'],'enableQuic':_0x37e054['enableQuic'],'enableCache':_0x37e054[_0x3541a7(0x1a5)],'enableHttpDNS':_0x37e054[_0x3541a7(0x192)],'httpDNSServiceId':_0x37e054[_0x3541a7(0x1a1)],'enableChunked':_0x37e054['enableChunked'],'forceCellularNetwork':_0x37e054[_0x3541a7(0x191)],'success':_0x5ccd73[_0x3541a7(0x15f)],'fail':_0x5ccd73[_0x3541a7(0x15d)],'complete':()=>{}};return uni['request'](_0x41c35f);}function dispatchUpload(_0x5290d4,_0x3ff79d,_0x3d0f0e){const _0x4d75c9=_0x1889f2,_0x276add={};_0x276add['url']=_0x5290d4,_0x276add[_0x4d75c9(0x15a)]=_0x3ff79d['fileType'],_0x276add['file']=_0x3ff79d[_0x4d75c9(0x176)],_0x276add['filePath']=_0x3ff79d['filePath'],_0x276add['name']=_0x3ff79d['name']??'file',_0x276add[_0x4d75c9(0x184)]=_0x3ff79d[_0x4d75c9(0x184)],_0x276add[_0x4d75c9(0x17c)]=_0x3ff79d['headers'],_0x276add[_0x4d75c9(0x1a2)]=_0x3ff79d[_0x4d75c9(0x197)]??{},_0x276add['timeout']=_0x3ff79d['timeout'],_0x276add['success']=_0x3d0f0e['onSuccess'],_0x276add['fail']=_0x3d0f0e['onFail'],_0x276add[_0x4d75c9(0x18e)]=()=>{};const _0x2e2d34=_0x276add;return uni['uploadFile'](_0x2e2d34);}function dispatchDownload(_0x944d84,_0x3ff9ea,_0x180b97){const _0x59bf66={'url':_0x944d84,'header':_0x3ff9ea['headers'],'timeout':_0x3ff9ea['timeout'],'success':_0x21df58=>{const _0x293b9c=_0x153b,_0x2d8eed={..._0x21df58};_0x2d8eed[_0x293b9c(0x160)]={},_0x2d8eed[_0x293b9c(0x160)][_0x293b9c(0x19f)]=_0x21df58[_0x293b9c(0x19f)],_0x180b97[_0x293b9c(0x15f)](_0x2d8eed);},'fail':_0x180b97['onFail'],'complete':()=>{}};return uni['downloadFile'](_0x59bf66);}function mappedResponseBodyType(_0x3a8187){const _0x1229e0=_0x1889f2;if(!_0x3a8187||_0x3a8187===_0x1229e0(0x179))return _0x1229e0(0x181);if(_0x3a8187==='arrayBuffer')return _0x1229e0(0x178);return _0x1229e0(0x181);}var HttpError=class extends Error{constructor(_0x262d8b){const _0x2990a6=_0x1889f2;super(_0x262d8b),this[_0x2990a6(0x19b)]=_0x2990a6(0x187);}};function createResponseError(_0x1597c7,_0x2ce43c,_0x242c26){const _0x47fd06=_0x1889f2,_0x4ee9b4=_0x1597c7,_0x4e9b5e='['+(_0x2ce43c?.[_0x47fd06(0x195)]||'GET')+']\x20'+_0x4ee9b4,_0x3d000c=_0x242c26?_0x242c26[_0x47fd06(0x170)]+'\x20'+(_0x242c26[_0x47fd06(0x19e)]||''):_0x47fd06(0x199),_0x5337e4=_0x242c26?JSON[_0x47fd06(0x17b)](_0x242c26[_0x47fd06(0x160)]):'<no\x20response\x20body>',_0x763c2e=new HttpError(_0x4e9b5e+':\x20'+_0x3d000c+(_0x242c26['data']?'\x20'+_0x5337e4:''));for(const _0x5b43d0 of['request',_0x47fd06(0x16e),_0x47fd06(0x19d),_0x47fd06(0x160)])Object[_0x47fd06(0x196)](_0x763c2e,_0x5b43d0,{'get'(){const _0x388599=_0x47fd06,_0x4708c={};return _0x4708c[_0x388599(0x159)]=_0x1597c7,_0x4708c['options']=_0x2ce43c,_0x4708c[_0x388599(0x19d)]=_0x242c26,_0x4708c[_0x388599(0x160)]=_0x242c26[_0x388599(0x160)],_0x4708c[_0x5b43d0];}});return _0x763c2e;}function normalizeError(_0x56e7d3){const _0x212088=_0x1889f2;if(_0x56e7d3 instanceof Error)return _0x56e7d3;return Object['assign'](new Error(_0x56e7d3?.[_0x212088(0x19e)]||_0x56e7d3?.[_0x212088(0x174)]||'HTTP\x20request\x20failed'),{'cause':_0x56e7d3});}async function callRequestHooks(_0x502e44,_0x4b00cb){const _0x1b2eae=_0x1889f2;await _0x4b00cb[_0x1b2eae(0x16a)]?.({'options':_0x4b00cb,'resource':_0x502e44});}async function callRequestErrorHooks(_0x177434,_0x3bee86,_0x583787){await _0x3bee86['onRequestError']?.({'options':_0x3bee86,'resource':_0x177434,'error':_0x583787});}async function callResponseHooks(_0x31dd26,_0x47a2f6,_0x175459){const _0x32078a=_0x1889f2;await _0x47a2f6[_0x32078a(0x183)]?.({'options':_0x47a2f6,'resource':_0x31dd26,'response':_0x175459});}async function callResponseErrorHooks(_0x5d7492,_0x3c7b6e,_0x827b34){await _0x3c7b6e['onResponseError']?.({'options':_0x3c7b6e,'resource':_0x5d7492,'response':_0x827b34});}async function refineResponse(_0xc7049a,_0x40fbfb){const _0x301806=_0x1889f2;if(_0x40fbfb[_0x301806(0x157)]==='json'||!_0x40fbfb['responseType'])return{..._0xc7049a,'data':await parseJSONResponse(_0xc7049a['data'],_0x40fbfb)};return _0xc7049a;}function parseJSONResponse(_0x220570,_0x46a06a){const _0x110dcc=_0x1889f2;if(typeof _0x220570!=='string')return _0x220570;if(_0x46a06a['parseResponse'])return _0x46a06a[_0x110dcc(0x16d)](_0x220570);return _0x220570?JSON[_0x110dcc(0x180)](_0x220570):null;}function isResponseError(_0x1faf6d){const _0x1d0a5b=_0x1889f2,_0x2b37ed='statusCode'in _0x1faf6d?_0x1faf6d[_0x1d0a5b(0x170)]:void 0x0;return typeof _0x2b37ed===_0x1d0a5b(0x193)&&(_0x2b37ed<0xc8||_0x2b37ed>=0x12c);}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set(['POST',_0x1889f2(0x16b),_0x1889f2(0x1a6),_0x1889f2(0x164)]);async function withRetry(_0x2a3050,_0x5b6033){const _0xea3c22=resolveRetryCount(_0x2a3050);for(let _0x2bbd4a=0x0;;_0x2bbd4a++)try{return await _0x5b6033();}catch(_0x406bd9){if(_0x2bbd4a>=_0xea3c22||!shouldRetry(_0x406bd9,_0x2a3050))throw _0x406bd9;await sleep(_0x2a3050['retryDelay']??0x0,_0x2a3050['signal']);}}function resolveRetryCount(_0x159a67){const _0x44a66b=_0x1889f2,{retry:_0x2af424}=_0x159a67;if(_0x2af424===![])return 0x0;if(typeof _0x2af424===_0x44a66b(0x193))return _0x2af424>0x0?_0x2af424:0x0;return isPayloadMethod(_0x159a67['method'])?0x0:0x1;}function shouldRetry(_0x594825,_0x306fae){const _0x4996b0=_0x1889f2;if(_0x306fae['signal']?.['aborted']||isAbortError(_0x594825))return![];const _0x500a7f=_0x594825?.[_0x4996b0(0x19d)]?.['statusCode'];if(typeof _0x500a7f!==_0x4996b0(0x193))return!![];return(_0x306fae[_0x4996b0(0x186)]??DEFAULT_RETRY_STATUS_CODES)[_0x4996b0(0x158)](_0x500a7f);}function isPayloadMethod(_0x145496){return!!_0x145496&&PAYLOAD_METHODS['has'](_0x145496['toUpperCase']());}function sleep(_0x444204,_0x502f94){return new Promise((_0xda734a,_0x24a5e1)=>{const _0x3c806d=_0x153b;if(_0x502f94?.[_0x3c806d(0x1a3)]){_0x24a5e1(_0x502f94['reason']);return;}if(!(_0x444204>0x0)){_0xda734a();return;}let _0x40595f=()=>{};const _0x3cad0b=setTimeout(()=>{_0x40595f(),_0xda734a();},_0x444204);_0x40595f=onAbort(_0x502f94,()=>{clearTimeout(_0x3cad0b),_0x24a5e1(_0x502f94['reason']);});});}function _0x153b(_0x2722dd,_0x58bcc6){_0x2722dd=_0x2722dd-0x153;const _0x113e33=_0x113e();let _0x153bda=_0x113e33[_0x2722dd];return _0x153bda;}function buildURL(_0x2b6a60,_0x43e841){const _0x10fbcd=_0x1889f2,_0x1982dc=joinURL(_0x43e841['baseURL'],_0x2b6a60),_0x13fb28=_0x43e841['query']??{},_0x1393d6=Object[_0x10fbcd(0x185)](_0x13fb28)[_0x10fbcd(0x167)](_0x1568b8=>_0x13fb28[_0x1568b8]!==void 0x0)[_0x10fbcd(0x17a)](_0x430977=>{const _0x1da221=_0x10fbcd,_0x54d388=_0x13fb28[_0x430977];return(Array['isArray'](_0x54d388)?_0x54d388:[_0x54d388])[_0x1da221(0x194)](_0x3458f7=>encodeURIComponent(_0x430977)+'='+encodeURIComponent(String(_0x3458f7)));})['join']('&');if(!_0x1393d6)return _0x1982dc;return''+_0x1982dc+(_0x1982dc[_0x10fbcd(0x158)]('?')?'&':'?')+_0x1393d6;}function joinURL(_0x468db4,_0x340229){if(!_0x468db4||isAbsoluteURL(_0x340229))return _0x340229;return _0x468db4['replace'](/\/+$/,'')+'/'+_0x340229['replace'](/^\/+/,'');}function isAbsoluteURL(_0x596ebb){const _0x3e6e63=_0x1889f2;return/^[a-z][a-z\d+\-.]*:\/\//i[_0x3e6e63(0x168)](_0x596ebb)||_0x596ebb['startsWith']('//');}function dispatchHttp(_0x537e28,_0x3554f0,_0x5e9658){const _0xf37c1a=buildURL(_0x3554f0,_0x5e9658);return withRetry(_0x5e9658,()=>attemptRequest(_0x537e28,_0x3554f0,_0xf37c1a,_0x5e9658));}function attemptRequest(_0x4c39aa,_0x3fd260,_0x465ba0,_0x4cfb4b){const _0x42fcdb=!!_0x4cfb4b['raw'];return new Promise((_0x3b9452,_0x97a517)=>{const _0x94510=_0x153b;let _0x169258=![];const _0x3cf977=_0x242510=>{if(_0x169258)return;_0x169258=!![],_0x242510();},_0x46ff8a=onAbort(_0x4cfb4b[_0x94510(0x163)],()=>{const _0x58be3a=_0x94510;_0x3cf977(()=>_0x97a517(_0x4cfb4b[_0x58be3a(0x163)][_0x58be3a(0x1a8)]));}),_0x57c3fb=_0x5d5752=>{_0x46ff8a(),_0x3cf977(_0x5d5752);};callRequestHooks(_0x3fd260,_0x4cfb4b)['then'](()=>{if(_0x169258)return;dispatch(_0x4c39aa,_0x465ba0,_0x4cfb4b,{'onSuccess':_0x2bc049=>{const _0x4fb0b1=_0x153b;Promise['resolve']()['then'](()=>refineResponse(_0x2bc049,_0x4cfb4b))['then'](async _0x13b704=>{const _0x45fbdd=_0x153b;if(isResponseError(_0x2bc049)){await callResponseErrorHooks(_0x3fd260,_0x4cfb4b,_0x13b704);if(!_0x4cfb4b[_0x45fbdd(0x17f)])throw createResponseError(_0x3fd260,_0x4cfb4b,_0x13b704);}else await callResponseHooks(_0x3fd260,_0x4cfb4b,_0x13b704);_0x57c3fb(()=>_0x3b9452(_0x42fcdb?_0x13b704:_0x13b704['data']));})[_0x4fb0b1(0x154)](_0x5465e1=>_0x57c3fb(()=>_0x97a517(_0x5465e1)));},'onFail':_0x517d32=>{const _0x5c2d0c=_0x153b;Promise[_0x5c2d0c(0x1a0)]()['then'](async()=>{const _0x541004=normalizeError(_0x517d32);if(!isAbortError(_0x541004))await callRequestErrorHooks(_0x3fd260,_0x4cfb4b,_0x541004);throw _0x541004;})[_0x5c2d0c(0x154)](_0x37d87c=>_0x57c3fb(()=>_0x97a517(_0x37d87c)));}});})[_0x94510(0x154)](async _0x28f242=>{const _0x2a8c75=normalizeError(_0x28f242);await callRequestErrorHooks(_0x3fd260,_0x4cfb4b,_0x2a8c75),_0x57c3fb(()=>_0x97a517(_0x2a8c75));});});}const _0x255b02={};_0x255b02['method']='GET',_0x255b02['responseType']='json';const defaultConfig=_0x255b02;function createHttp(_0x342319={}){const _0x8f6102=_0x1889f2,_0x58bc69=(_0x39b539,_0x3b3f4a)=>{const _0x37d091=_0x153b,_0x47dcfd={};return _0x47dcfd[_0x37d091(0x1a7)]=_0x37d091(0x159),dispatchHttp(_0x37d091(0x159),_0x39b539,mergeOptions(defaultConfig,_0x342319,_0x3b3f4a,_0x47dcfd));},_0x288b1d=(_0x2fee9f,_0x67376a)=>{const _0x374667=_0x153b,_0x36fde3={};return _0x36fde3[_0x374667(0x195)]=_0x374667(0x188),_0x36fde3[_0x374667(0x1a7)]=_0x374667(0x17d),dispatchHttp(_0x374667(0x17d),_0x2fee9f,mergeOptions(defaultConfig,_0x342319,_0x67376a,_0x36fde3));},_0x23d31c=(_0x2ef1af,_0x1a0d5a)=>{const _0x4ce23d=_0x153b,_0x51b22c={};return _0x51b22c['method']=_0x4ce23d(0x182),_0x51b22c['_action']='download',dispatchHttp(_0x4ce23d(0x161),_0x2ef1af,mergeOptions(defaultConfig,_0x342319,_0x1a0d5a,_0x51b22c));},_0x5c21f6=_0x5952b1=>createHttp(mergeOptions(_0x342319,_0x5952b1)),_0x2950c7={};return _0x2950c7[_0x8f6102(0x159)]=_0x58bc69,_0x2950c7['upload']=_0x288b1d,_0x2950c7['download']=_0x23d31c,_0x2950c7['create']=_0x5c21f6,_0x2950c7;}const http=createHttp(),_0x26df23={};_0x26df23[_0x1889f2(0x198)]=!![],_0x26df23[_0x1889f2(0x171)]=function(){return createHttp;},Object['defineProperty'](exports,_0x1889f2(0x18f),_0x26df23);const _0x51a6dd={};_0x51a6dd['enumerable']=!![],_0x51a6dd['get']=function(){return createHttpAborter;},Object[_0x1889f2(0x196)](exports,_0x1889f2(0x19a),_0x51a6dd);const _0x5ee7b9={};_0x5ee7b9[_0x1889f2(0x198)]=!![],_0x5ee7b9[_0x1889f2(0x171)]=function(){return http;},Object[_0x1889f2(0x196)](exports,'http',_0x5ee7b9);
package/dist/oiyo.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @oiyo/framework v0.4.8
2
+ * @oiyo/framework v0.4.9
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-CwQjYs6D.cjs");
8
+ const require_oiyo = require("./oiyo-CUAtDW_Y.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.8
2
+ * @oiyo/framework v0.4.9
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 HttpUploadResponse, d as HttpOptions, f as HttpRequestOptions, h as createHttpAborter, i as HttpError, l as HttpCommonOptions, m as ResponseBodyType, n as http, o as HttpRequestResponse, p as HttpUploadOptions, r as HttpConfig, s as HttpResponse, t as createHttp, u as HttpDownloadOptions } from "./index-CsfNc8p2.cjs";
7
+ import { a as HttpDownloadResponse, c as HttpUploadResponse, d as HttpOptions, f as HttpRequestOptions, h as createHttpAborter, i as HttpError, l as HttpCommonOptions, m as ResponseBodyType, n as http, o as HttpRequestResponse, p as HttpUploadOptions, r as HttpConfig, s as HttpResponse, t as createHttp, u as HttpDownloadOptions } from "./index-DpCCifZz.cjs";
8
8
  export { type HttpCommonOptions, type HttpConfig, type HttpDownloadOptions, type HttpDownloadResponse, type HttpError, type HttpOptions, type HttpRequestOptions, type HttpRequestResponse, type HttpResponse, 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.8
2
+ * @oiyo/framework v0.4.9
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 HttpUploadResponse, d as HttpOptions, f as HttpRequestOptions, h as createHttpAborter, i as HttpError, l as HttpCommonOptions, m as ResponseBodyType, n as http, o as HttpRequestResponse, p as HttpUploadOptions, r as HttpConfig, s as HttpResponse, t as createHttp, u as HttpDownloadOptions } from "./index-CsfNc8p2.mjs";
7
+ import { a as HttpDownloadResponse, c as HttpUploadResponse, d as HttpOptions, f as HttpRequestOptions, h as createHttpAborter, i as HttpError, l as HttpCommonOptions, m as ResponseBodyType, n as http, o as HttpRequestResponse, p as HttpUploadOptions, r as HttpConfig, s as HttpResponse, t as createHttp, u as HttpDownloadOptions } from "./index-DpCCifZz.mjs";
8
8
  export { type HttpCommonOptions, type HttpConfig, type HttpDownloadOptions, type HttpDownloadResponse, type HttpError, type HttpOptions, type HttpRequestOptions, type HttpRequestResponse, type HttpResponse, 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.8
2
+ * @oiyo/framework v0.4.9
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-CohaZv3I.mjs";
7
+ import { n as http, r as createHttpAborter, t as createHttp } from "./oiyo-BXNGL_oa.mjs";
8
8
  export { createHttp, createHttpAborter, http };
package/dist/uni.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.8
2
+ * @oiyo/framework v0.4.9
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.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.8
2
+ * @oiyo/framework v0.4.9
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.8
2
+ * @oiyo/framework v0.4.9
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,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.8
2
+ * @oiyo/framework v0.4.9
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.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.8
2
+ * @oiyo/framework v0.4.9
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.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.8
2
+ * @oiyo/framework v0.4.9
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.8
2
+ * @oiyo/framework v0.4.9
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,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.8
2
+ * @oiyo/framework v0.4.9
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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oiyo/framework",
3
3
  "type": "module",
4
- "version": "0.4.8",
4
+ "version": "0.4.9",
5
5
  "author": {
6
6
  "name": "skiyee",
7
7
  "email": "319619193@qq.com",
@@ -1,7 +0,0 @@
1
- /**
2
- * @oiyo/framework v0.4.8
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 _0x3cad74=_0x3807;(function(_0x554f03,_0x3cb322){const _0x1ec175=_0x3807,_0x2ebf31=_0x554f03();while(!![]){try{const _0x684047=-parseInt(_0x1ec175(0x129))/0x1+-parseInt(_0x1ec175(0x121))/0x2*(-parseInt(_0x1ec175(0x107))/0x3)+parseInt(_0x1ec175(0x111))/0x4+-parseInt(_0x1ec175(0x104))/0x5*(parseInt(_0x1ec175(0x147))/0x6)+parseInt(_0x1ec175(0x100))/0x7+-parseInt(_0x1ec175(0x109))/0x8*(parseInt(_0x1ec175(0x142))/0x9)+-parseInt(_0x1ec175(0x106))/0xa;if(_0x684047===_0x3cb322)break;else _0x2ebf31['push'](_0x2ebf31['shift']());}catch(_0x140980){_0x2ebf31['push'](_0x2ebf31['shift']());}}}(_0xa07e,0xe56d2));function createHttpAborter(){const _0x3fe44b=new HttpAbortSignal();return{'signal':_0x3fe44b,'abort':_0xb22c80=>_0x3fe44b['_abort'](_0xb22c80)};}const ABORT_ERROR_NAME='AbortError';var AbortEmitter=class{['listeners']=[];[_0x3cad74(0x13a)](_0x1db25e,_0xde404a){const _0x56261d=_0x3cad74;if(_0x1db25e!==_0x56261d(0x12d))return;this['listeners'][_0x56261d(0x138)](_0xde404a);}[_0x3cad74(0x127)](_0x53d232,_0x2bfe37){const _0x22f534=_0x3cad74;if(_0x53d232!=='abort')return;const _0x322014=this['listeners']['indexOf'](_0x2bfe37);if(_0x322014!==-0x1)this['listeners'][_0x22f534(0x124)](_0x322014,0x1);}[_0x3cad74(0x126)](_0x277d23){const _0x22f917=_0x3cad74;for(const _0x2d91e2 of this[_0x22f917(0x10e)][_0x22f917(0x13d)]())_0x2d91e2['call'](this,_0x277d23);}},HttpAbortSignal=class extends AbortEmitter{['aborted']=![];[_0x3cad74(0x116)]=void 0x0;[_0x3cad74(0x125)]=null;[_0x3cad74(0x12f)](_0x3acc36){const _0x3a2eea=_0x3cad74;if(this[_0x3a2eea(0x137)])return;this['aborted']=!![],this[_0x3a2eea(0x116)]=_0x3acc36===void 0x0?createAbortError():_0x3acc36;const _0x3f4f64={};_0x3f4f64[_0x3a2eea(0x11e)]='abort';const _0x33a95d=_0x3f4f64;if(typeof this['onabort']==='function')this[_0x3a2eea(0x125)](_0x33a95d);this[_0x3a2eea(0x126)](_0x33a95d);}[_0x3cad74(0x11d)](){const _0x4e3d27=_0x3cad74;if(this[_0x4e3d27(0x137)])throw this[_0x4e3d27(0x116)];}};function createAbortError(_0x1b32d9='The\x20operation\x20was\x20aborted'){const _0x5622bf=_0x3cad74,_0x452786=new Error(_0x1b32d9);return _0x452786[_0x5622bf(0x14b)]=ABORT_ERROR_NAME,_0x452786;}function isAbortError(_0x2fa569){const _0x10eb9e=_0x3cad74;return _0x2fa569 instanceof Error&&_0x2fa569[_0x10eb9e(0x14b)]===ABORT_ERROR_NAME;}function onAbort(_0x59090b,_0x542139){const _0x31bc9c=_0x3cad74;if(!_0x59090b)return()=>{};if(_0x59090b[_0x31bc9c(0x137)])return _0x542139(),()=>{};return _0x59090b[_0x31bc9c(0x13a)](_0x31bc9c(0x12d),_0x542139),()=>_0x59090b[_0x31bc9c(0x127)]('abort',_0x542139);}const HOOK_NAMES=['onRequest','onRequestError',_0x3cad74(0x123),_0x3cad74(0x105)];function mergeOptions(..._0x54b25e){const _0x472ac2=_0x3cad74,_0x9769b={},_0x2a149a={};for(const _0x2e8b07 of _0x54b25e){if(!_0x2e8b07)continue;for(const _0x45e486 of HOOK_NAMES)collectHook(_0x2a149a,_0x45e486,_0x2e8b07);const _0x30c863=_0x9769b[_0x472ac2(0x10a)],_0xb80d48=_0x9769b[_0x472ac2(0x131)];Object['assign'](_0x9769b,_0x2e8b07);const _0x21a12d={..._0x30c863,..._0x2e8b07['headers']};_0x9769b['headers']=_0x21a12d;const _0xff2502={..._0xb80d48,..._0x2e8b07[_0x472ac2(0x131)]};_0x9769b['query']=_0xff2502;}for(const [_0x13adff,_0x69af33]of Object[_0x472ac2(0x14f)](_0x2a149a))Object['assign'](_0x9769b,{[_0x13adff]:async _0x507e22=>{for(const _0x3f53cb of _0x69af33)await _0x3f53cb(_0x507e22);}});return _0x9769b;}function collectHook(_0x19011e,_0x1a3311,_0x42dbe1){const _0x2e9602=_0x42dbe1[_0x1a3311];if(typeof _0x2e9602!=='function')return;_0x19011e[_0x1a3311]??=[],_0x19011e[_0x1a3311]['push'](_0x2e9602);}function _0x3807(_0x3d144b,_0x4e1d37){_0x3d144b=_0x3d144b-0xfc;const _0xa07e74=_0xa07e();let _0x3807dc=_0xa07e74[_0x3d144b];return _0x3807dc;}function dispatch(_0x113d9f,_0x47724f,_0x5b8cc0,_0x1e296e){const _0x3079ca=_0x3cad74;let _0x1f18a3;if(_0x113d9f===_0x3079ca(0x144))_0x1f18a3=dispatchUpload(_0x47724f,_0x5b8cc0,_0x1e296e);else{if(_0x113d9f===_0x3079ca(0x101))_0x1f18a3=dispatchDownload(_0x47724f,_0x5b8cc0,_0x1e296e);else _0x1f18a3=dispatchRequest(_0x47724f,_0x5b8cc0,_0x1e296e);}bindTask(_0x1f18a3,_0x5b8cc0);}function bindTask(_0x547103,_0x27b43e){const _0x584d21=_0x3cad74;onAbort(_0x27b43e[_0x584d21(0x118)],()=>_0x547103['abort']());if(typeof _0x27b43e[_0x584d21(0x11a)]==='function')_0x547103[_0x584d21(0x11a)](_0x27b43e['onHeadersReceived']);const _0x2fc53=_0x27b43e[_0x584d21(0x10c)];if(typeof _0x2fc53===_0x584d21(0x140)&&'onChunkReceived'in _0x547103)_0x547103[_0x584d21(0x143)](_0x2fc53);const _0x50fa47=_0x27b43e[_0x584d21(0x12e)];if(typeof _0x50fa47===_0x584d21(0x140)&&_0x584d21(0x145)in _0x547103)_0x547103['onProgressUpdate'](_0x50fa47);}function dispatchRequest(_0x2c9d38,_0x4721ce,_0xac2afb){const _0x5ba1f7=_0x3cad74,_0x334abd={'url':_0x2c9d38,'method':_0x4721ce[_0x5ba1f7(0x13e)],'header':_0x4721ce['headers'],'data':_0x4721ce['body']??{},'timeout':_0x4721ce[_0x5ba1f7(0x13f)],'dataType':_0x4721ce[_0x5ba1f7(0x10f)]||_0x5ba1f7(0x102),'responseType':mappedResponseBodyType(_0x4721ce['responseType']),'sslVerify':_0x4721ce[_0x5ba1f7(0x11c)],'withCredentials':_0x4721ce[_0x5ba1f7(0x149)],'firstIpv4':_0x4721ce[_0x5ba1f7(0xfd)],'enableHttp2':_0x4721ce['enableHttp2'],'enableQuic':_0x4721ce['enableQuic'],'enableCache':_0x4721ce[_0x5ba1f7(0x12b)],'enableHttpDNS':_0x4721ce['enableHttpDNS'],'httpDNSServiceId':_0x4721ce[_0x5ba1f7(0x14e)],'enableChunked':_0x4721ce['enableChunked'],'forceCellularNetwork':_0x4721ce['forceCellularNetwork'],'success':_0xac2afb['onSuccess'],'fail':_0xac2afb[_0x5ba1f7(0x10d)],'complete':()=>{}};return uni['request'](_0x334abd);}function dispatchUpload(_0x30c1d9,_0x105f83,_0x1b3d2f){const _0x262c53=_0x3cad74,_0x182a0b={};_0x182a0b['url']=_0x30c1d9,_0x182a0b['fileType']=_0x105f83['fileType'],_0x182a0b['file']=_0x105f83['file'],_0x182a0b['filePath']=_0x105f83['filePath'],_0x182a0b['name']=_0x105f83[_0x262c53(0x14b)]??_0x262c53(0x103),_0x182a0b[_0x262c53(0x139)]=_0x105f83[_0x262c53(0x139)],_0x182a0b['header']=_0x105f83['headers'],_0x182a0b['formData']=_0x105f83[_0x262c53(0x117)]??{},_0x182a0b['timeout']=_0x105f83['timeout'],_0x182a0b['success']=_0x1b3d2f[_0x262c53(0x11b)],_0x182a0b['fail']=_0x1b3d2f[_0x262c53(0x10d)],_0x182a0b['complete']=()=>{};const _0x39088b=_0x182a0b;return uni['uploadFile'](_0x39088b);}function dispatchDownload(_0x5b86ad,_0x593331,_0x4b4e1e){const _0x145ced=_0x3cad74,_0x4d580e={'url':_0x5b86ad,'header':_0x593331[_0x145ced(0x10a)],'timeout':_0x593331[_0x145ced(0x13f)],'success':_0x3e82ac=>{const _0x2202d9=_0x145ced,_0x229fa8={..._0x3e82ac};_0x229fa8[_0x2202d9(0x13b)]={},_0x229fa8[_0x2202d9(0x13b)]['tempFilePath']=_0x3e82ac['tempFilePath'],_0x4b4e1e['onSuccess'](_0x229fa8);},'fail':_0x4b4e1e[_0x145ced(0x10d)],'complete':()=>{}};return uni[_0x145ced(0x14c)](_0x4d580e);}function mappedResponseBodyType(_0x57ace6){const _0x109fc1=_0x3cad74;if(!_0x57ace6||_0x57ace6==='json')return'text';if(_0x57ace6===_0x109fc1(0x119))return _0x109fc1(0x130);return'text';}var HttpError=class extends Error{constructor(_0x14c8f9){const _0x28e78f=_0x3cad74;super(_0x14c8f9),this[_0x28e78f(0x14b)]=_0x28e78f(0xfc);}};function createResponseError(_0x4596da,_0x57b347,_0x2c409f){const _0xbfc039=_0x3cad74,_0x32d0c4=_0x4596da,_0x4e5652='['+(_0x57b347?.['method']||_0xbfc039(0x122))+']\x20'+_0x32d0c4,_0x2a2653=_0x2c409f?_0x2c409f['statusCode']+'\x20'+(_0x2c409f['errMsg']||''):'<no\x20response>',_0x553486=_0x2c409f?JSON[_0xbfc039(0x128)](_0x2c409f[_0xbfc039(0x13b)]):_0xbfc039(0x114),_0x227f23=new HttpError(_0x4e5652+':\x20'+_0x2a2653+(_0x2c409f['data']?'\x20'+_0x553486:''));for(const _0x3139af of[_0xbfc039(0x146),_0xbfc039(0x13c),'response',_0xbfc039(0x13b)])Object['defineProperty'](_0x227f23,_0x3139af,{'get'(){const _0x58e489=_0xbfc039,_0x225e95={};return _0x225e95[_0x58e489(0x146)]=_0x4596da,_0x225e95[_0x58e489(0x13c)]=_0x57b347,_0x225e95['response']=_0x2c409f,_0x225e95['data']=_0x2c409f['data'],_0x225e95[_0x3139af];}});return _0x227f23;}function normalizeError(_0xb75589){const _0x3d6b11=_0x3cad74;if(_0xb75589 instanceof Error)return _0xb75589;return Object[_0x3d6b11(0x12c)](new Error(_0xb75589?.[_0x3d6b11(0x112)]||_0xb75589?.['message']||_0x3d6b11(0x135)),{'cause':_0xb75589});}async function callRequestHooks(_0x310ae3,_0xd4f360){await _0xd4f360['onRequest']?.({'options':_0xd4f360,'resource':_0x310ae3});}async function callRequestErrorHooks(_0x2f93de,_0x1ca8fd,_0x2ed06a){const _0x29441d=_0x3cad74;await _0x1ca8fd[_0x29441d(0x14a)]?.({'options':_0x1ca8fd,'resource':_0x2f93de,'error':_0x2ed06a});}async function callResponseHooks(_0x337878,_0x45395f,_0x28cf44){await _0x45395f['onResponse']?.({'options':_0x45395f,'resource':_0x337878,'response':_0x28cf44});}async function callResponseErrorHooks(_0x580d2c,_0x22442f,_0x1c3198){const _0x11623a=_0x3cad74;await _0x22442f[_0x11623a(0x105)]?.({'options':_0x22442f,'resource':_0x580d2c,'response':_0x1c3198});}function _0xa07e(){const _0x53330e=['HTTP\x20request\x20failed','filter','aborted','push','files','addEventListener','data','options','slice','method','timeout','function','replace','83997hvLbsB','onChunkReceived','upload','onProgressUpdate','request','174hCkfZr','startsWith','withCredentials','onRequestError','name','downloadFile','flatMap','httpDNSServiceId','entries','isArray','HttpError','firstIpv4','catch','has','8699159BpolVq','download','json','file','26010kvEGeh','onResponseError','6480040kAxela','763452zIoatQ','toUpperCase','712gNwuRp','headers','POST','onChunk','onFail','listeners','dataType','then','3335876IKdZFG','errMsg','resolve','<no\x20response\x20body>','DELETE','reason','body','signal','arrayBuffer','onHeadersReceived','onSuccess','sslVerify','throwIfAborted','type','ignoreResponseError','baseURL','10AVQxVN','GET','onResponse','splice','onabort','emit','removeEventListener','stringify','779897mcCMrr','includes','enableCache','assign','abort','onProgress','_abort','arraybuffer','query','number','parseResponse','response'];_0xa07e=function(){return _0x53330e;};return _0xa07e();}async function refineResponse(_0x31e5f9,_0x4ed373){const _0x893d8b=_0x3cad74;if(_0x4ed373['responseType']==='json'||!_0x4ed373['responseType'])return{..._0x31e5f9,'data':await parseJSONResponse(_0x31e5f9[_0x893d8b(0x13b)],_0x4ed373)};return _0x31e5f9;}function parseJSONResponse(_0x30d514,_0x4a176c){const _0x34fdce=_0x3cad74;if(typeof _0x30d514!=='string')return _0x30d514;if(_0x4a176c[_0x34fdce(0x133)])return _0x4a176c['parseResponse'](_0x30d514);return _0x30d514?JSON['parse'](_0x30d514):null;}function isResponseError(_0x5ce195){const _0x5aeed7=_0x3cad74,_0x187fe1='statusCode'in _0x5ce195?_0x5ce195['statusCode']:void 0x0;return typeof _0x187fe1===_0x5aeed7(0x132)&&(_0x187fe1<0xc8||_0x187fe1>=0x12c);}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set([_0x3cad74(0x10b),'PUT',_0x3cad74(0x115),'PATCH']);async function withRetry(_0x19d863,_0x4097ec){const _0x2a209e=_0x3cad74,_0x515024=resolveRetryCount(_0x19d863);for(let _0x29aac5=0x0;;_0x29aac5++)try{return await _0x4097ec();}catch(_0x5cc07f){if(_0x29aac5>=_0x515024||!shouldRetry(_0x5cc07f,_0x19d863))throw _0x5cc07f;await sleep(_0x19d863['retryDelay']??0x0,_0x19d863[_0x2a209e(0x118)]);}}function resolveRetryCount(_0x5008e5){const _0xca33ce=_0x3cad74,{retry:_0x1b58b3}=_0x5008e5;if(_0x1b58b3===![])return 0x0;if(typeof _0x1b58b3==='number')return _0x1b58b3>0x0?_0x1b58b3:0x0;return isPayloadMethod(_0x5008e5[_0xca33ce(0x13e)])?0x0:0x1;}function shouldRetry(_0x18eae0,_0x51324b){const _0x582e1e=_0x3cad74;if(_0x51324b[_0x582e1e(0x118)]?.['aborted']||isAbortError(_0x18eae0))return![];const _0x25dc55=_0x18eae0?.[_0x582e1e(0x134)]?.['statusCode'];if(typeof _0x25dc55!=='number')return!![];return(_0x51324b['retryStatusCodes']??DEFAULT_RETRY_STATUS_CODES)[_0x582e1e(0x12a)](_0x25dc55);}function isPayloadMethod(_0x337958){const _0x5bd535=_0x3cad74;return!!_0x337958&&PAYLOAD_METHODS[_0x5bd535(0xff)](_0x337958[_0x5bd535(0x108)]());}function sleep(_0x2c6a35,_0x18ab4a){return new Promise((_0x3342cd,_0x8f7d40)=>{const _0x4ecb57=_0x3807;if(_0x18ab4a?.[_0x4ecb57(0x137)]){_0x8f7d40(_0x18ab4a['reason']);return;}if(!(_0x2c6a35>0x0)){_0x3342cd();return;}let _0x2005fe=()=>{};const _0x145919=setTimeout(()=>{_0x2005fe(),_0x3342cd();},_0x2c6a35);_0x2005fe=onAbort(_0x18ab4a,()=>{clearTimeout(_0x145919),_0x8f7d40(_0x18ab4a['reason']);});});}function buildURL(_0x4e292e,_0xd0f0b4){const _0x38c7a2=_0x3cad74,_0x1e4b11=joinURL(_0xd0f0b4[_0x38c7a2(0x120)],_0x4e292e),_0x324a4d=_0xd0f0b4['query']??{},_0x22c609=Object['keys'](_0x324a4d)[_0x38c7a2(0x136)](_0x52ff7a=>_0x324a4d[_0x52ff7a]!==void 0x0)[_0x38c7a2(0x14d)](_0x3c3e5f=>{const _0xbf2ed5=_0x38c7a2,_0x15ee28=_0x324a4d[_0x3c3e5f];return(Array[_0xbf2ed5(0x150)](_0x15ee28)?_0x15ee28:[_0x15ee28])['map'](_0x23d9c9=>encodeURIComponent(_0x3c3e5f)+'='+encodeURIComponent(String(_0x23d9c9)));})['join']('&');if(!_0x22c609)return _0x1e4b11;return''+_0x1e4b11+(_0x1e4b11['includes']('?')?'&':'?')+_0x22c609;}function joinURL(_0x38dad7,_0x3978d3){const _0x5e2112=_0x3cad74;if(!_0x38dad7||isAbsoluteURL(_0x3978d3))return _0x3978d3;return _0x38dad7[_0x5e2112(0x141)](/\/+$/,'')+'/'+_0x3978d3['replace'](/^\/+/,'');}function isAbsoluteURL(_0x575e38){const _0x1959b2=_0x3cad74;return/^[a-z][a-z\d+\-.]*:\/\//i['test'](_0x575e38)||_0x575e38[_0x1959b2(0x148)]('//');}function dispatchHttp(_0x267ab5,_0x340539,_0x1ce956){const _0x5911dd=buildURL(_0x340539,_0x1ce956);return withRetry(_0x1ce956,()=>attemptRequest(_0x267ab5,_0x340539,_0x5911dd,_0x1ce956));}function attemptRequest(_0x14b40f,_0x5ee5fa,_0x37b459,_0x432343){const _0xbe3ee4=!!_0x432343['raw'];return new Promise((_0x122c57,_0x3ae278)=>{const _0x5c675b=_0x3807;let _0x52990a=![];const _0x21403d=_0x58cf0e=>{if(_0x52990a)return;_0x52990a=!![],_0x58cf0e();},_0x2db451=onAbort(_0x432343[_0x5c675b(0x118)],()=>{const _0x112e26=_0x5c675b;_0x21403d(()=>_0x3ae278(_0x432343[_0x112e26(0x118)]['reason']));}),_0x5079e5=_0x17d347=>{_0x2db451(),_0x21403d(_0x17d347);};callRequestHooks(_0x5ee5fa,_0x432343)['then'](()=>{if(_0x52990a)return;dispatch(_0x14b40f,_0x37b459,_0x432343,{'onSuccess':_0x5dafbe=>{const _0x3663f3=_0x3807;Promise['resolve']()[_0x3663f3(0x110)](()=>refineResponse(_0x5dafbe,_0x432343))['then'](async _0x39b8f8=>{const _0x50619c=_0x3663f3;if(isResponseError(_0x5dafbe)){await callResponseErrorHooks(_0x5ee5fa,_0x432343,_0x39b8f8);if(!_0x432343[_0x50619c(0x11f)])throw createResponseError(_0x5ee5fa,_0x432343,_0x39b8f8);}else await callResponseHooks(_0x5ee5fa,_0x432343,_0x39b8f8);_0x5079e5(()=>_0x122c57(_0xbe3ee4?_0x39b8f8:_0x39b8f8['data']));})[_0x3663f3(0xfe)](_0x2f7be4=>_0x5079e5(()=>_0x3ae278(_0x2f7be4)));},'onFail':_0x12fb7b=>{const _0xbff2d4=_0x3807;Promise[_0xbff2d4(0x113)]()[_0xbff2d4(0x110)](async()=>{const _0x1f8ef5=normalizeError(_0x12fb7b);if(!isAbortError(_0x1f8ef5))await callRequestErrorHooks(_0x5ee5fa,_0x432343,_0x1f8ef5);throw _0x1f8ef5;})['catch'](_0x3bcbb2=>_0x5079e5(()=>_0x3ae278(_0x3bcbb2)));}});})['catch'](async _0x5a7dd7=>{const _0x27492b=normalizeError(_0x5a7dd7);await callRequestErrorHooks(_0x5ee5fa,_0x432343,_0x27492b),_0x5079e5(()=>_0x3ae278(_0x27492b));});});}const _0x5a5c1f={};_0x5a5c1f['method']=_0x3cad74(0x122),_0x5a5c1f['responseType']=_0x3cad74(0x102);const defaultConfig=_0x5a5c1f;function createHttp(_0x4d4fea={}){const _0x38780e=_0x3cad74,_0x483e73=(_0x515636,_0x57ee77)=>{return dispatchHttp('request',_0x515636,mergeOptions(defaultConfig,_0x4d4fea,_0x57ee77));},_0xc67cba=(_0x43c918,_0x4370e1)=>{const _0x96086=_0x3807,_0x253ea8={};return _0x253ea8[_0x96086(0x13e)]='POST',dispatchHttp('upload',_0x43c918,mergeOptions(defaultConfig,_0x4d4fea,_0x4370e1,_0x253ea8));},_0x1f090d=(_0x390562,_0x186447)=>{const _0x2a7a7a=_0x3807,_0x4fceed={};return _0x4fceed[_0x2a7a7a(0x13e)]=_0x2a7a7a(0x122),dispatchHttp(_0x2a7a7a(0x101),_0x390562,mergeOptions(defaultConfig,_0x4d4fea,_0x186447,_0x4fceed));},_0x2467ba=_0x2353fe=>createHttp(mergeOptions(_0x4d4fea,_0x2353fe)),_0x6ed4b1={};return _0x6ed4b1['request']=_0x483e73,_0x6ed4b1[_0x38780e(0x144)]=_0xc67cba,_0x6ed4b1[_0x38780e(0x101)]=_0x1f090d,_0x6ed4b1['create']=_0x2467ba,_0x6ed4b1;}const http=createHttp();export{http as n,createHttpAborter as r,createHttp as t};
@@ -1,7 +0,0 @@
1
- /**
2
- * @oiyo/framework v0.4.8
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 _0xf46285=_0x5943;(function(_0xe9e838,_0xd832ef){const _0xe0cd9c=_0x5943,_0x544cc5=_0xe9e838();while(!![]){try{const _0x3a95f3=-parseInt(_0xe0cd9c(0x12b))/0x1+-parseInt(_0xe0cd9c(0x158))/0x2*(-parseInt(_0xe0cd9c(0x112))/0x3)+-parseInt(_0xe0cd9c(0x15e))/0x4*(-parseInt(_0xe0cd9c(0x12a))/0x5)+-parseInt(_0xe0cd9c(0x10f))/0x6+-parseInt(_0xe0cd9c(0x14f))/0x7*(parseInt(_0xe0cd9c(0x123))/0x8)+-parseInt(_0xe0cd9c(0x136))/0x9*(-parseInt(_0xe0cd9c(0x150))/0xa)+-parseInt(_0xe0cd9c(0x156))/0xb*(-parseInt(_0xe0cd9c(0x11b))/0xc);if(_0x3a95f3===_0xd832ef)break;else _0x544cc5['push'](_0x544cc5['shift']());}catch(_0x144643){_0x544cc5['push'](_0x544cc5['shift']());}}}(_0x4756,0xd406c));function createHttpAborter(){const _0x37a0e5=_0x5943,_0x700448=new HttpAbortSignal();return{'signal':_0x700448,'abort':_0x35abb2=>_0x700448[_0x37a0e5(0x116)](_0x35abb2)};}const ABORT_ERROR_NAME=_0xf46285(0x15b);var AbortEmitter=class{[_0xf46285(0x12d)]=[];[_0xf46285(0x13a)](_0x819165,_0x2e2dd8){const _0x272bbf=_0xf46285;if(_0x819165!==_0x272bbf(0x132))return;this['listeners']['push'](_0x2e2dd8);}[_0xf46285(0x10a)](_0x2170eb,_0x185e17){const _0x10c40a=_0xf46285;if(_0x2170eb!=='abort')return;const _0x5f4087=this[_0x10c40a(0x12d)]['indexOf'](_0x185e17);if(_0x5f4087!==-0x1)this[_0x10c40a(0x12d)][_0x10c40a(0x11e)](_0x5f4087,0x1);}['emit'](_0x276198){const _0x3a72d4=_0xf46285;for(const _0x4a217f of this[_0x3a72d4(0x12d)]['slice']())_0x4a217f['call'](this,_0x276198);}},HttpAbortSignal=class extends AbortEmitter{[_0xf46285(0x139)]=![];['reason']=void 0x0;[_0xf46285(0x149)]=null;[_0xf46285(0x116)](_0x7a06d2){const _0xd7a847=_0xf46285;if(this['aborted'])return;this[_0xd7a847(0x139)]=!![],this[_0xd7a847(0x13b)]=_0x7a06d2===void 0x0?createAbortError():_0x7a06d2;const _0x199392={};_0x199392['type']='abort';const _0x4956f1=_0x199392;if(typeof this['onabort']==='function')this['onabort'](_0x4956f1);this[_0xd7a847(0x15a)](_0x4956f1);}['throwIfAborted'](){if(this['aborted'])throw this['reason'];}};function createAbortError(_0x56e488='The\x20operation\x20was\x20aborted'){const _0x1a8292=new Error(_0x56e488);return _0x1a8292['name']=ABORT_ERROR_NAME,_0x1a8292;}function isAbortError(_0x180efd){return _0x180efd instanceof Error&&_0x180efd['name']===ABORT_ERROR_NAME;}function onAbort(_0xf53d33,_0x127f5c){const _0xdc9b0f=_0xf46285;if(!_0xf53d33)return()=>{};if(_0xf53d33['aborted'])return _0x127f5c(),()=>{};return _0xf53d33[_0xdc9b0f(0x13a)](_0xdc9b0f(0x132),_0x127f5c),()=>_0xf53d33[_0xdc9b0f(0x10a)]('abort',_0x127f5c);}const HOOK_NAMES=[_0xf46285(0x14a),'onRequestError',_0xf46285(0x12c),'onResponseError'];function mergeOptions(..._0x3eac02){const _0x40660b=_0xf46285,_0x13cbc1={},_0x2a515e={};for(const _0x90549b of _0x3eac02){if(!_0x90549b)continue;for(const _0x260aac of HOOK_NAMES)collectHook(_0x2a515e,_0x260aac,_0x90549b);const _0x2d15a5=_0x13cbc1['headers'],_0x7f2928=_0x13cbc1[_0x40660b(0x129)];Object[_0x40660b(0x107)](_0x13cbc1,_0x90549b);const _0x3f3fc2={..._0x2d15a5,..._0x90549b['headers']};_0x13cbc1[_0x40660b(0x115)]=_0x3f3fc2;const _0x62061d={..._0x7f2928,..._0x90549b['query']};_0x13cbc1['query']=_0x62061d;}for(const [_0x95411a,_0x48ce91]of Object['entries'](_0x2a515e))Object[_0x40660b(0x107)](_0x13cbc1,{[_0x95411a]:async _0x13fa6a=>{for(const _0x3f8391 of _0x48ce91)await _0x3f8391(_0x13fa6a);}});return _0x13cbc1;}function collectHook(_0x4c5179,_0x3b99a6,_0x1460d5){const _0x252251=_0xf46285,_0x341f55=_0x1460d5[_0x3b99a6];if(typeof _0x341f55!==_0x252251(0x134))return;_0x4c5179[_0x3b99a6]??=[],_0x4c5179[_0x3b99a6]['push'](_0x341f55);}function dispatch(_0x23415c,_0x4768c0,_0x3110d8,_0x946909){const _0x27a05d=_0xf46285;let _0x38b9e0;if(_0x23415c===_0x27a05d(0x159))_0x38b9e0=dispatchUpload(_0x4768c0,_0x3110d8,_0x946909);else{if(_0x23415c===_0x27a05d(0x14c))_0x38b9e0=dispatchDownload(_0x4768c0,_0x3110d8,_0x946909);else _0x38b9e0=dispatchRequest(_0x4768c0,_0x3110d8,_0x946909);}bindTask(_0x38b9e0,_0x3110d8);}function bindTask(_0x1f6cc1,_0x5a4422){const _0x325c69=_0xf46285;onAbort(_0x5a4422[_0x325c69(0x127)],()=>_0x1f6cc1['abort']());if(typeof _0x5a4422['onHeadersReceived']===_0x325c69(0x134))_0x1f6cc1[_0x325c69(0x124)](_0x5a4422[_0x325c69(0x124)]);const _0x2ddcd4=_0x5a4422[_0x325c69(0x14d)];if(typeof _0x2ddcd4==='function'&&_0x325c69(0x111)in _0x1f6cc1)_0x1f6cc1['onChunkReceived'](_0x2ddcd4);const _0x260e7d=_0x5a4422[_0x325c69(0x110)];if(typeof _0x260e7d==='function'&&_0x325c69(0x11a)in _0x1f6cc1)_0x1f6cc1['onProgressUpdate'](_0x260e7d);}function dispatchRequest(_0x23d4a6,_0x1744b0,_0x4c0899){const _0x27f0ed=_0xf46285,_0x1d779d={'url':_0x23d4a6,'method':_0x1744b0['method'],'header':_0x1744b0['headers'],'data':_0x1744b0[_0x27f0ed(0x10b)]??{},'timeout':_0x1744b0[_0x27f0ed(0x11c)],'dataType':_0x1744b0['dataType']||_0x27f0ed(0x138),'responseType':mappedResponseBodyType(_0x1744b0['responseType']),'sslVerify':_0x1744b0[_0x27f0ed(0x128)],'withCredentials':_0x1744b0[_0x27f0ed(0x119)],'firstIpv4':_0x1744b0['firstIpv4'],'enableHttp2':_0x1744b0[_0x27f0ed(0x10d)],'enableQuic':_0x1744b0['enableQuic'],'enableCache':_0x1744b0['enableCache'],'enableHttpDNS':_0x1744b0[_0x27f0ed(0x140)],'httpDNSServiceId':_0x1744b0['httpDNSServiceId'],'enableChunked':_0x1744b0[_0x27f0ed(0x147)],'forceCellularNetwork':_0x1744b0['forceCellularNetwork'],'success':_0x4c0899[_0x27f0ed(0x126)],'fail':_0x4c0899['onFail'],'complete':()=>{}};return uni['request'](_0x1d779d);}function dispatchUpload(_0x486e2c,_0x493ccf,_0x42e787){const _0x370107=_0xf46285,_0xf78cf0={};_0xf78cf0['url']=_0x486e2c,_0xf78cf0[_0x370107(0x142)]=_0x493ccf[_0x370107(0x142)],_0xf78cf0[_0x370107(0x11f)]=_0x493ccf['file'],_0xf78cf0['filePath']=_0x493ccf['filePath'],_0xf78cf0['name']=_0x493ccf['name']??_0x370107(0x11f),_0xf78cf0['files']=_0x493ccf[_0x370107(0x122)],_0xf78cf0['header']=_0x493ccf['headers'],_0xf78cf0[_0x370107(0x12e)]=_0x493ccf[_0x370107(0x10b)]??{},_0xf78cf0[_0x370107(0x11c)]=_0x493ccf[_0x370107(0x11c)],_0xf78cf0[_0x370107(0x113)]=_0x42e787[_0x370107(0x126)],_0xf78cf0[_0x370107(0x157)]=_0x42e787[_0x370107(0x131)],_0xf78cf0['complete']=()=>{};const _0x36526f=_0xf78cf0;return uni['uploadFile'](_0x36526f);}function dispatchDownload(_0x35eec8,_0x37326e,_0x583eee){const _0x270a78=_0xf46285,_0x35fd56={'url':_0x35eec8,'header':_0x37326e[_0x270a78(0x115)],'timeout':_0x37326e['timeout'],'success':_0x1c23ee=>{const _0x5e0df0=_0x270a78,_0x33c535={..._0x1c23ee};_0x33c535['data']={},_0x33c535['data']['tempFilePath']=_0x1c23ee[_0x5e0df0(0x155)],_0x583eee['onSuccess'](_0x33c535);},'fail':_0x583eee[_0x270a78(0x131)],'complete':()=>{}};return uni[_0x270a78(0x145)](_0x35fd56);}function _0x5943(_0x3915a8,_0x1ff103){_0x3915a8=_0x3915a8-0x105;const _0x47563f=_0x4756();let _0x5943dc=_0x47563f[_0x3915a8];return _0x5943dc;}function mappedResponseBodyType(_0x459a00){const _0x410c1d=_0xf46285;if(!_0x459a00||_0x459a00==='json')return'text';if(_0x459a00===_0x410c1d(0x143))return _0x410c1d(0x148);return _0x410c1d(0x105);}var HttpError=class extends Error{constructor(_0x5bbcd7){const _0x16591d=_0xf46285;super(_0x5bbcd7),this[_0x16591d(0x141)]=_0x16591d(0x135);}};function createResponseError(_0x5588a1,_0x4e8f81,_0x30ea18){const _0x45d46b=_0xf46285,_0x106e88=_0x5588a1,_0x1a3659='['+(_0x4e8f81?.['method']||'GET')+']\x20'+_0x106e88,_0x28ea90=_0x30ea18?_0x30ea18[_0x45d46b(0x146)]+'\x20'+(_0x30ea18['errMsg']||''):'<no\x20response>',_0x2879c5=_0x30ea18?JSON['stringify'](_0x30ea18['data']):_0x45d46b(0x153),_0x1ddc6d=new HttpError(_0x1a3659+':\x20'+_0x28ea90+(_0x30ea18[_0x45d46b(0x14e)]?'\x20'+_0x2879c5:''));for(const _0x5713a1 of['request','options','response',_0x45d46b(0x14e)])Object['defineProperty'](_0x1ddc6d,_0x5713a1,{'get'(){const _0x2fc405=_0x45d46b,_0x11942b={};return _0x11942b[_0x2fc405(0x114)]=_0x5588a1,_0x11942b['options']=_0x4e8f81,_0x11942b[_0x2fc405(0x120)]=_0x30ea18,_0x11942b[_0x2fc405(0x14e)]=_0x30ea18[_0x2fc405(0x14e)],_0x11942b[_0x5713a1];}});return _0x1ddc6d;}function normalizeError(_0x2fb81c){const _0x1274e0=_0xf46285;if(_0x2fb81c instanceof Error)return _0x2fb81c;return Object[_0x1274e0(0x107)](new Error(_0x2fb81c?.[_0x1274e0(0x125)]||_0x2fb81c?.[_0x1274e0(0x109)]||'HTTP\x20request\x20failed'),{'cause':_0x2fb81c});}async function callRequestHooks(_0x346341,_0x578b66){await _0x578b66['onRequest']?.({'options':_0x578b66,'resource':_0x346341});}async function callRequestErrorHooks(_0x1eb41f,_0x2a08b8,_0x42d56c){const _0x1a1963=_0xf46285;await _0x2a08b8[_0x1a1963(0x13c)]?.({'options':_0x2a08b8,'resource':_0x1eb41f,'error':_0x42d56c});}async function callResponseHooks(_0x1b5f5a,_0x21ab85,_0x536e87){const _0x2c63e9=_0xf46285;await _0x21ab85[_0x2c63e9(0x12c)]?.({'options':_0x21ab85,'resource':_0x1b5f5a,'response':_0x536e87});}async function callResponseErrorHooks(_0x4f08f8,_0x40e84f,_0x27b20f){await _0x40e84f['onResponseError']?.({'options':_0x40e84f,'resource':_0x4f08f8,'response':_0x27b20f});}async function refineResponse(_0x3dcb7b,_0xed2fb4){const _0x3050e0=_0xf46285;if(_0xed2fb4['responseType']===_0x3050e0(0x138)||!_0xed2fb4[_0x3050e0(0x10c)])return{..._0x3dcb7b,'data':await parseJSONResponse(_0x3dcb7b['data'],_0xed2fb4)};return _0x3dcb7b;}function parseJSONResponse(_0x349171,_0x4b6226){const _0x34db9=_0xf46285;if(typeof _0x349171!=='string')return _0x349171;if(_0x4b6226[_0x34db9(0x13f)])return _0x4b6226['parseResponse'](_0x349171);return _0x349171?JSON['parse'](_0x349171):null;}function isResponseError(_0x421864){const _0xabed90='statusCode'in _0x421864?_0x421864['statusCode']:void 0x0;return typeof _0xabed90==='number'&&(_0xabed90<0xc8||_0xabed90>=0x12c);}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set(['POST','PUT',_0xf46285(0x12f),'PATCH']);async function withRetry(_0x45a01a,_0x561f72){const _0x54e123=resolveRetryCount(_0x45a01a);for(let _0x8bd7d3=0x0;;_0x8bd7d3++)try{return await _0x561f72();}catch(_0x2db062){if(_0x8bd7d3>=_0x54e123||!shouldRetry(_0x2db062,_0x45a01a))throw _0x2db062;await sleep(_0x45a01a['retryDelay']??0x0,_0x45a01a['signal']);}}function resolveRetryCount(_0x1fcaed){const {retry:_0x2cb525}=_0x1fcaed;if(_0x2cb525===![])return 0x0;if(typeof _0x2cb525==='number')return _0x2cb525>0x0?_0x2cb525:0x0;return isPayloadMethod(_0x1fcaed['method'])?0x0:0x1;}function shouldRetry(_0x19c7e1,_0x100d90){const _0x18b7fa=_0xf46285;if(_0x100d90['signal']?.['aborted']||isAbortError(_0x19c7e1))return![];const _0x4e2612=_0x19c7e1?.['response']?.[_0x18b7fa(0x146)];if(typeof _0x4e2612!==_0x18b7fa(0x151))return!![];return(_0x100d90['retryStatusCodes']??DEFAULT_RETRY_STATUS_CODES)[_0x18b7fa(0x133)](_0x4e2612);}function isPayloadMethod(_0x4c0788){const _0x410b8f=_0xf46285;return!!_0x4c0788&&PAYLOAD_METHODS[_0x410b8f(0x13d)](_0x4c0788[_0x410b8f(0x14b)]());}function sleep(_0x5c83f9,_0x3d8dfe){return new Promise((_0x2ed680,_0x4eedbd)=>{const _0x27ac80=_0x5943;if(_0x3d8dfe?.[_0x27ac80(0x139)]){_0x4eedbd(_0x3d8dfe[_0x27ac80(0x13b)]);return;}if(!(_0x5c83f9>0x0)){_0x2ed680();return;}let _0x512dbd=()=>{};const _0x5ca443=setTimeout(()=>{_0x512dbd(),_0x2ed680();},_0x5c83f9);_0x512dbd=onAbort(_0x3d8dfe,()=>{const _0x54f96b=_0x27ac80;clearTimeout(_0x5ca443),_0x4eedbd(_0x3d8dfe[_0x54f96b(0x13b)]);});});}function buildURL(_0x31b621,_0x1cfdad){const _0x1f7dfb=_0xf46285,_0x3b8215=joinURL(_0x1cfdad[_0x1f7dfb(0x118)],_0x31b621),_0x2bce6a=_0x1cfdad['query']??{},_0x3f9432=Object['keys'](_0x2bce6a)[_0x1f7dfb(0x11d)](_0x53eda3=>_0x2bce6a[_0x53eda3]!==void 0x0)['flatMap'](_0x57e021=>{const _0x1b6a0f=_0x1f7dfb,_0x3bdaf8=_0x2bce6a[_0x57e021];return(Array['isArray'](_0x3bdaf8)?_0x3bdaf8:[_0x3bdaf8])[_0x1b6a0f(0x154)](_0x3575f8=>encodeURIComponent(_0x57e021)+'='+encodeURIComponent(String(_0x3575f8)));})[_0x1f7dfb(0x130)]('&');if(!_0x3f9432)return _0x3b8215;return''+_0x3b8215+(_0x3b8215['includes']('?')?'&':'?')+_0x3f9432;}function _0x4756(){const _0x412776=['enumerable','parseResponse','enableHttpDNS','name','fileType','arrayBuffer','create','downloadFile','statusCode','enableChunked','arraybuffer','onabort','onRequest','toUpperCase','download','onChunk','data','735721sNEMIp','20lAGvEL','number','get','<no\x20response\x20body>','map','tempFilePath','7205nTRJsK','fail','3294274nXwjUh','upload','emit','AbortError','startsWith','then','1637564VUTzYS','text','test','assign','replace','message','removeEventListener','body','responseType','enableHttp2','resolve','4503768DVykmi','onProgress','onChunkReceived','3YZOZoy','success','request','headers','_abort','defineProperty','baseURL','withCredentials','onProgressUpdate','120vwHljH','timeout','filter','splice','file','response','catch','files','128gpDRPt','onHeadersReceived','errMsg','onSuccess','signal','sslVerify','query','20oMOrzV','666857zTYBRh','onResponse','listeners','formData','DELETE','join','onFail','abort','includes','function','HttpError','3043539AiacYy','method','json','aborted','addEventListener','reason','onRequestError','has'];_0x4756=function(){return _0x412776;};return _0x4756();}function joinURL(_0x1f745e,_0x1b3d92){const _0x5d0678=_0xf46285;if(!_0x1f745e||isAbsoluteURL(_0x1b3d92))return _0x1b3d92;return _0x1f745e[_0x5d0678(0x108)](/\/+$/,'')+'/'+_0x1b3d92[_0x5d0678(0x108)](/^\/+/,'');}function isAbsoluteURL(_0x2064ff){const _0x3e6a95=_0xf46285;return/^[a-z][a-z\d+\-.]*:\/\//i[_0x3e6a95(0x106)](_0x2064ff)||_0x2064ff[_0x3e6a95(0x15c)]('//');}function dispatchHttp(_0x403ab2,_0x406b28,_0xde4809){const _0x37a6d2=buildURL(_0x406b28,_0xde4809);return withRetry(_0xde4809,()=>attemptRequest(_0x403ab2,_0x406b28,_0x37a6d2,_0xde4809));}function attemptRequest(_0xba14a3,_0xffe39e,_0x513855,_0xe48998){const _0x7fb5d0=!!_0xe48998['raw'];return new Promise((_0x5c1b2d,_0x345116)=>{const _0x2096db=_0x5943;let _0x9e8d29=![];const _0x1ea559=_0x3f011f=>{if(_0x9e8d29)return;_0x9e8d29=!![],_0x3f011f();},_0x5de442=onAbort(_0xe48998[_0x2096db(0x127)],()=>{const _0x34b806=_0x2096db;_0x1ea559(()=>_0x345116(_0xe48998['signal'][_0x34b806(0x13b)]));}),_0x2ffc28=_0x168e3f=>{_0x5de442(),_0x1ea559(_0x168e3f);};callRequestHooks(_0xffe39e,_0xe48998)[_0x2096db(0x15d)](()=>{if(_0x9e8d29)return;dispatch(_0xba14a3,_0x513855,_0xe48998,{'onSuccess':_0x1c87ae=>{const _0x3fed16=_0x5943;Promise[_0x3fed16(0x10e)]()['then'](()=>refineResponse(_0x1c87ae,_0xe48998))[_0x3fed16(0x15d)](async _0x3bf00d=>{const _0x69b4af=_0x3fed16;if(isResponseError(_0x1c87ae)){await callResponseErrorHooks(_0xffe39e,_0xe48998,_0x3bf00d);if(!_0xe48998['ignoreResponseError'])throw createResponseError(_0xffe39e,_0xe48998,_0x3bf00d);}else await callResponseHooks(_0xffe39e,_0xe48998,_0x3bf00d);_0x2ffc28(()=>_0x5c1b2d(_0x7fb5d0?_0x3bf00d:_0x3bf00d[_0x69b4af(0x14e)]));})[_0x3fed16(0x121)](_0x1411a4=>_0x2ffc28(()=>_0x345116(_0x1411a4)));},'onFail':_0x564862=>{const _0x23360b=_0x5943;Promise[_0x23360b(0x10e)]()[_0x23360b(0x15d)](async()=>{const _0xfa46a0=normalizeError(_0x564862);if(!isAbortError(_0xfa46a0))await callRequestErrorHooks(_0xffe39e,_0xe48998,_0xfa46a0);throw _0xfa46a0;})['catch'](_0x27da0a=>_0x2ffc28(()=>_0x345116(_0x27da0a)));}});})[_0x2096db(0x121)](async _0x392a63=>{const _0x3c59aa=normalizeError(_0x392a63);await callRequestErrorHooks(_0xffe39e,_0xe48998,_0x3c59aa),_0x2ffc28(()=>_0x345116(_0x3c59aa));});});}const _0x283253={};_0x283253['method']='GET',_0x283253['responseType']='json';const defaultConfig=_0x283253;function createHttp(_0x3e7359={}){const _0x25ca62=_0xf46285,_0x3e183c=(_0x372816,_0x57db9c)=>{return dispatchHttp('request',_0x372816,mergeOptions(defaultConfig,_0x3e7359,_0x57db9c));},_0x56f7fb=(_0x47cfe9,_0xeb77b9)=>{const _0x8b6ce2=_0x5943,_0x32058a={};return _0x32058a[_0x8b6ce2(0x137)]='POST',dispatchHttp(_0x8b6ce2(0x159),_0x47cfe9,mergeOptions(defaultConfig,_0x3e7359,_0xeb77b9,_0x32058a));},_0x3556fd=(_0x4abad7,_0x13deac)=>{const _0x76ce89=_0x5943,_0x5f3609={};return _0x5f3609[_0x76ce89(0x137)]='GET',dispatchHttp(_0x76ce89(0x14c),_0x4abad7,mergeOptions(defaultConfig,_0x3e7359,_0x13deac,_0x5f3609));},_0x23b94c=_0x4dbcb2=>createHttp(mergeOptions(_0x3e7359,_0x4dbcb2)),_0x5f0e60={};return _0x5f0e60[_0x25ca62(0x114)]=_0x3e183c,_0x5f0e60['upload']=_0x56f7fb,_0x5f0e60['download']=_0x3556fd,_0x5f0e60[_0x25ca62(0x144)]=_0x23b94c,_0x5f0e60;}const http=createHttp(),_0xddf3e8={};_0xddf3e8[_0xf46285(0x13e)]=!![],_0xddf3e8[_0xf46285(0x152)]=function(){return createHttp;},Object['defineProperty'](exports,'createHttp',_0xddf3e8);const _0x4b5d86={};_0x4b5d86[_0xf46285(0x13e)]=!![],_0x4b5d86['get']=function(){return createHttpAborter;},Object[_0xf46285(0x117)](exports,'createHttpAborter',_0x4b5d86);const _0x489846={};_0x489846['enumerable']=!![],_0x489846[_0xf46285(0x152)]=function(){return http;},Object['defineProperty'](exports,'http',_0x489846);