@oiyo/framework 0.4.4 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-6y-CxV-U.d.cts → index-C_vPDBDX.d.cts} +2 -2
- package/dist/{index-6y-CxV-U.d.mts → index-C_vPDBDX.d.mts} +2 -2
- package/dist/index.cjs +2 -4
- package/dist/index.d.cts +4 -8
- package/dist/index.d.mts +4 -8
- package/dist/index.mjs +2 -4
- package/dist/oiyo-BhjW8nT_.cjs +7 -0
- package/dist/oiyo-rI8ibY_7.mjs +7 -0
- package/dist/oiyo.cjs +2 -2
- package/dist/oiyo.d.cts +2 -2
- package/dist/oiyo.d.mts +2 -2
- package/dist/oiyo.mjs +2 -2
- package/dist/uni.cjs +1 -2
- package/dist/uni.d.cts +1 -1
- package/dist/uni.d.mts +1 -1
- package/dist/uni.mjs +1 -2
- package/dist/vue.cjs +1 -2
- package/dist/vue.d.cts +1 -1
- package/dist/vue.d.mts +1 -1
- package/dist/vue.mjs +1 -2
- package/package.json +1 -1
- package/dist/oiyo-DF-n178E.cjs +0 -7
- package/dist/oiyo-GRTo5_GU.mjs +0 -7
- package/dist/rolldown-runtime-D5dVOuTm.mjs +0 -33
- package/dist/rolldown-runtime-DQZhkyOB.cjs +0 -44
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @oiyo/framework v0.4.
|
|
2
|
+
* @oiyo/framework v0.4.5
|
|
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
|
|
@@ -44,7 +44,7 @@ declare class HttpAbortSignal extends AbortEmitter {
|
|
|
44
44
|
}
|
|
45
45
|
//#endregion
|
|
46
46
|
//#region src/oiyo/http/types/utils.d.ts
|
|
47
|
-
type Prettify<T> = { [K in keyof T]: T[K] } & {};
|
|
47
|
+
type Prettify<T> = { [K in keyof T]: T[K]; } & {};
|
|
48
48
|
type MaybePromise<T> = T | Promise<T>;
|
|
49
49
|
//#endregion
|
|
50
50
|
//#region src/oiyo/http/types/body.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @oiyo/framework v0.4.
|
|
2
|
+
* @oiyo/framework v0.4.5
|
|
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
|
|
@@ -44,7 +44,7 @@ declare class HttpAbortSignal extends AbortEmitter {
|
|
|
44
44
|
}
|
|
45
45
|
//#endregion
|
|
46
46
|
//#region src/oiyo/http/types/utils.d.ts
|
|
47
|
-
type Prettify<T> = { [K in keyof T]: T[K] } & {};
|
|
47
|
+
type Prettify<T> = { [K in keyof T]: T[K]; } & {};
|
|
48
48
|
type MaybePromise<T> = T | Promise<T>;
|
|
49
49
|
//#endregion
|
|
50
50
|
//#region src/oiyo/http/types/body.d.ts
|
package/dist/index.cjs
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @oiyo/framework v0.4.
|
|
2
|
+
* @oiyo/framework v0.4.5
|
|
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("./
|
|
9
|
-
const require_oiyo = require("./oiyo-DF-n178E.cjs");
|
|
8
|
+
const require_oiyo = require("./oiyo-BhjW8nT_.cjs");
|
|
10
9
|
require("./uni.cjs");
|
|
11
10
|
require("./vue.cjs");
|
|
12
|
-
//#endregion
|
|
13
11
|
exports.createHttp = require_oiyo.createHttp;
|
|
14
12
|
exports.createHttpAborter = require_oiyo.createHttpAborter;
|
|
15
13
|
exports.http = require_oiyo.http;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @oiyo/framework v0.4.
|
|
2
|
+
* @oiyo/framework v0.4.5
|
|
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 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-
|
|
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-C_vPDBDX.cjs";
|
|
8
|
+
import "./uni.cjs";
|
|
9
|
+
import "./vue.cjs";
|
|
8
10
|
export * from "@dcloudio/uni-app";
|
|
9
11
|
export * from "vue";
|
|
10
|
-
|
|
11
|
-
//#region src/index.d.ts
|
|
12
|
-
declare namespace index_d_exports {
|
|
13
|
-
export { HttpCommonOptions, HttpConfig, HttpDownloadOptions, HttpDownloadResponse, HttpError, HttpOptions, HttpRequestOptions, HttpRequestResponse, HttpUploadOptions, HttpUploadResponse, ResponseBodyType, createHttp, createHttpAborter, http };
|
|
14
|
-
}
|
|
15
|
-
//#endregion
|
|
16
12
|
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,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @oiyo/framework v0.4.
|
|
2
|
+
* @oiyo/framework v0.4.5
|
|
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 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-
|
|
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-C_vPDBDX.mjs";
|
|
8
|
+
import "./uni.mjs";
|
|
9
|
+
import "./vue.mjs";
|
|
8
10
|
export * from "@dcloudio/uni-app";
|
|
9
11
|
export * from "vue";
|
|
10
|
-
|
|
11
|
-
//#region src/index.d.ts
|
|
12
|
-
declare namespace index_d_exports {
|
|
13
|
-
export { HttpCommonOptions, HttpConfig, HttpDownloadOptions, HttpDownloadResponse, HttpError, HttpOptions, HttpRequestOptions, HttpRequestResponse, HttpUploadOptions, HttpUploadResponse, ResponseBodyType, createHttp, createHttpAborter, http };
|
|
14
|
-
}
|
|
15
|
-
//#endregion
|
|
16
12
|
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,14 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @oiyo/framework v0.4.
|
|
2
|
+
* @oiyo/framework v0.4.5
|
|
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 "./
|
|
8
|
-
import { n as http, r as createHttpAborter, t as createHttp } from "./oiyo-GRTo5_GU.mjs";
|
|
7
|
+
import { n as http, r as createHttpAborter, t as createHttp } from "./oiyo-rI8ibY_7.mjs";
|
|
9
8
|
import "./uni.mjs";
|
|
10
9
|
import "./vue.mjs";
|
|
11
10
|
export * from "@dcloudio/uni-app";
|
|
12
11
|
export * from "vue";
|
|
13
|
-
//#endregion
|
|
14
12
|
export { createHttp, createHttpAborter, http };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @oiyo/framework v0.4.5
|
|
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 _0x5306b4=_0x29a8;(function(_0x398dfc,_0x2db875){const _0x17a8ed=_0x29a8,_0x13899c=_0x398dfc();while(!![]){try{const _0x3f0d5a=-parseInt(_0x17a8ed(0x16e))/0x1+-parseInt(_0x17a8ed(0x171))/0x2*(-parseInt(_0x17a8ed(0x169))/0x3)+parseInt(_0x17a8ed(0x14c))/0x4+parseInt(_0x17a8ed(0x180))/0x5+-parseInt(_0x17a8ed(0x18f))/0x6*(-parseInt(_0x17a8ed(0x14e))/0x7)+parseInt(_0x17a8ed(0x15f))/0x8+-parseInt(_0x17a8ed(0x17f))/0x9;if(_0x3f0d5a===_0x2db875)break;else _0x13899c['push'](_0x13899c['shift']());}catch(_0x4f0edb){_0x13899c['push'](_0x13899c['shift']());}}}(_0x2fb8,0x5c1bd));function createHttpAborter(){const _0x4b35e3=new HttpAbortSignal();return{'signal':_0x4b35e3,'abort':_0xc34ec9=>_0x4b35e3['_abort'](_0xc34ec9)};}const ABORT_ERROR_NAME='AbortError';function _0x2fb8(){const _0x22eb81=['assign','_abort','sslVerify','abort','262163flStHZ','replace','string','2DAwXzb','keys','onResponseError','createHttpAborter','url','headers','includes','HTTP\x20request\x20failed','slice','get','onRequestError','reason','isArray','toUpperCase','10034631iTpTPl','1888665mzqflr','method','onHeadersReceived','fail','download','query','startsWith','errMsg','createHttp','ignoreResponseError','arrayBuffer','test','enableHttpDNS','parseResponse','listeners','1653348HFINdK','push','responseType','json','GET','then','addEventListener','flatMap','file','filePath','filter','response','has','indexOf','onFail','115904YdMxDX','defineProperty','14HfUgAB','enumerable','success','data','number','timeout','name','complete','POST','text','enableCache','function','upload','request','onResponse','http','fileType','1913576EDJzwo','aborted','forceCellularNetwork','create','onabort','statusCode','removeEventListener','tempFilePath','catch','PATCH','1672131yvIVeV'];_0x2fb8=function(){return _0x22eb81;};return _0x2fb8();}var AbortEmitter=class{['listeners']=[];[_0x5306b4(0x195)](_0x4405b2,_0xf5e555){const _0x4ad423=_0x5306b4;if(_0x4405b2!==_0x4ad423(0x16d))return;this['listeners'][_0x4ad423(0x190)](_0xf5e555);}['removeEventListener'](_0x415e24,_0x4d655c){const _0x309da9=_0x5306b4;if(_0x415e24!=='abort')return;const _0x4341a9=this['listeners'][_0x309da9(0x14a)](_0x4d655c);if(_0x4341a9!==-0x1)this[_0x309da9(0x18e)]['splice'](_0x4341a9,0x1);}['emit'](_0x10d50b){const _0x32cafb=_0x5306b4;for(const _0x2087fb of this[_0x32cafb(0x18e)][_0x32cafb(0x179)]())_0x2087fb['call'](this,_0x10d50b);}},HttpAbortSignal=class extends AbortEmitter{[_0x5306b4(0x160)]=![];['reason']=void 0x0;[_0x5306b4(0x163)]=null;[_0x5306b4(0x16b)](_0x5ee89a){const _0x91a37e=_0x5306b4;if(this['aborted'])return;this[_0x91a37e(0x160)]=!![],this['reason']=_0x5ee89a===void 0x0?createAbortError():_0x5ee89a;const _0x4e4a85={};_0x4e4a85['type']='abort';const _0x34e6e6=_0x4e4a85;if(typeof this['onabort']==='function')this[_0x91a37e(0x163)](_0x34e6e6);this['emit'](_0x34e6e6);}['throwIfAborted'](){const _0x185c80=_0x5306b4;if(this[_0x185c80(0x160)])throw this['reason'];}};function createAbortError(_0x424210='The\x20operation\x20was\x20aborted'){const _0x9db38c=new Error(_0x424210);return _0x9db38c['name']=ABORT_ERROR_NAME,_0x9db38c;}function isAbortError(_0x21e16e){const _0x496712=_0x5306b4;return _0x21e16e instanceof Error&&_0x21e16e[_0x496712(0x154)]===ABORT_ERROR_NAME;}function onAbort(_0x4dec39,_0x4807ce){const _0x5c526d=_0x5306b4;if(!_0x4dec39)return()=>{};if(_0x4dec39['aborted'])return _0x4807ce(),()=>{};return _0x4dec39[_0x5c526d(0x195)](_0x5c526d(0x16d),_0x4807ce),()=>_0x4dec39[_0x5c526d(0x165)]('abort',_0x4807ce);}const HOOK_NAMES=['onRequest',_0x5306b4(0x17b),'onResponse',_0x5306b4(0x173)];function mergeOptions(..._0x22e56c){const _0x2197a4=_0x5306b4,_0x43223a={},_0x19ca54={};for(const _0x7eff63 of _0x22e56c){if(!_0x7eff63)continue;for(const _0x599c65 of HOOK_NAMES)collectHook(_0x19ca54,_0x599c65,_0x7eff63);const _0x48af62=_0x43223a[_0x2197a4(0x176)],_0x599ba0=_0x43223a['query'];Object['assign'](_0x43223a,_0x7eff63);const _0x50a889={..._0x48af62,..._0x7eff63['headers']};_0x43223a['headers']=_0x50a889;const _0x3167ef={..._0x599ba0,..._0x7eff63[_0x2197a4(0x185)]};_0x43223a['query']=_0x3167ef;}for(const [_0x26996f,_0x42a244]of Object['entries'](_0x19ca54))Object[_0x2197a4(0x16a)](_0x43223a,{[_0x26996f]:async _0xd72a95=>{for(const _0x50e0fe of _0x42a244)await _0x50e0fe(_0xd72a95);}});return _0x43223a;}function collectHook(_0x23c020,_0x1b8d19,_0x2c1a01){const _0x131a8e=_0x5306b4,_0x172794=_0x2c1a01[_0x1b8d19];if(typeof _0x172794!==_0x131a8e(0x159))return;_0x23c020[_0x1b8d19]??=[],_0x23c020[_0x1b8d19]['push'](_0x172794);}function dispatch(_0x187ece,_0x22ab5a,_0x253a75,_0x5d96ff){let _0x56afa5;if(_0x187ece==='upload')_0x56afa5=dispatchUpload(_0x22ab5a,_0x253a75,_0x5d96ff);else{if(_0x187ece==='download')_0x56afa5=dispatchDownload(_0x22ab5a,_0x253a75,_0x5d96ff);else _0x56afa5=dispatchRequest(_0x22ab5a,_0x253a75,_0x5d96ff);}bindTask(_0x56afa5,_0x253a75);}function bindTask(_0x3b4c04,_0x4a6073){const _0x4cd1f0=_0x5306b4;onAbort(_0x4a6073['signal'],()=>_0x3b4c04[_0x4cd1f0(0x16d)]());if(typeof _0x4a6073['onHeadersReceived']==='function')_0x3b4c04[_0x4cd1f0(0x182)](_0x4a6073[_0x4cd1f0(0x182)]);const _0x3cfa7f=_0x4a6073['onProgress'];if(typeof _0x3cfa7f==='function'&&'onProgressUpdate'in _0x3b4c04)_0x3b4c04['onProgressUpdate'](_0x3cfa7f);}function dispatchRequest(_0x474105,_0x11b222,_0x1e592b){const _0x2df908=_0x5306b4,_0x356474={'url':_0x474105,'method':_0x11b222[_0x2df908(0x181)],'header':_0x11b222['headers'],'data':_0x11b222['body']??{},'timeout':_0x11b222['timeout'],'dataType':_0x11b222['dataType']||'json','responseType':mappedResponseBodyType(_0x11b222[_0x2df908(0x191)]),'sslVerify':_0x11b222[_0x2df908(0x16c)],'withCredentials':_0x11b222['withCredentials'],'firstIpv4':_0x11b222['firstIpv4'],'enableHttp2':_0x11b222['enableHttp2'],'enableQuic':_0x11b222['enableQuic'],'enableCache':_0x11b222[_0x2df908(0x158)],'enableHttpDNS':_0x11b222[_0x2df908(0x18c)],'httpDNSServiceId':_0x11b222['httpDNSServiceId'],'enableChunked':_0x11b222['enableChunked'],'forceCellularNetwork':_0x11b222[_0x2df908(0x161)],'success':_0x1e592b['onSuccess'],'fail':_0x1e592b['onFail'],'complete':()=>{}};return uni[_0x2df908(0x15b)](_0x356474);}function dispatchUpload(_0xa09930,_0x2c3c73,_0x148d3d){const _0x55e8ab=_0x5306b4,_0x29dbb3={};_0x29dbb3[_0x55e8ab(0x175)]=_0xa09930,_0x29dbb3[_0x55e8ab(0x15e)]=_0x2c3c73[_0x55e8ab(0x15e)],_0x29dbb3['file']=_0x2c3c73['file'],_0x29dbb3['filePath']=_0x2c3c73[_0x55e8ab(0x146)],_0x29dbb3['name']=_0x2c3c73[_0x55e8ab(0x154)]??_0x55e8ab(0x145),_0x29dbb3['files']=_0x2c3c73['files'],_0x29dbb3['header']=_0x2c3c73['headers'],_0x29dbb3['formData']=_0x2c3c73['body']??{},_0x29dbb3[_0x55e8ab(0x153)]=_0x2c3c73[_0x55e8ab(0x153)],_0x29dbb3[_0x55e8ab(0x150)]=_0x148d3d['onSuccess'],_0x29dbb3[_0x55e8ab(0x183)]=_0x148d3d[_0x55e8ab(0x14b)],_0x29dbb3[_0x55e8ab(0x155)]=()=>{};const _0x37f7e8=_0x29dbb3;return uni['uploadFile'](_0x37f7e8);}function dispatchDownload(_0x44f887,_0x14196e,_0x1f92e7){const _0x32ec8f=_0x5306b4,_0x2fd94b={'url':_0x44f887,'header':_0x14196e['headers'],'timeout':_0x14196e[_0x32ec8f(0x153)],'success':_0x3e0fd5=>{const _0x58f47e=_0x32ec8f,_0xfe086f={..._0x3e0fd5};_0xfe086f[_0x58f47e(0x151)]={},_0xfe086f[_0x58f47e(0x151)][_0x58f47e(0x166)]=_0x3e0fd5['tempFilePath'],_0x1f92e7['onSuccess'](_0xfe086f);},'fail':_0x1f92e7[_0x32ec8f(0x14b)],'complete':()=>{}};return uni['downloadFile'](_0x2fd94b);}function mappedResponseBodyType(_0x4973cb){const _0x4cd023=_0x5306b4;if(!_0x4973cb||_0x4973cb==='json')return'text';if(_0x4973cb===_0x4cd023(0x18a))return'arraybuffer';return _0x4cd023(0x157);}var HttpError=class extends Error{constructor(_0x3fde24){const _0x5a6a78=_0x5306b4;super(_0x3fde24),this[_0x5a6a78(0x154)]='HttpError';}};function createResponseError(_0xf3624a,_0x5e6eec,_0x2d0812){const _0x51444e=_0x5306b4,_0x28bee8=_0xf3624a,_0x2f7da8='['+(_0x5e6eec?.['method']||_0x51444e(0x193))+']\x20'+_0x28bee8,_0x596d3a=_0x2d0812?_0x2d0812[_0x51444e(0x164)]+'\x20'+(_0x2d0812['errMsg']||''):'<no\x20response>',_0x18315a=_0x2d0812?JSON['stringify'](_0x2d0812[_0x51444e(0x151)]):'<no\x20response\x20body>',_0x50680f=new HttpError(_0x2f7da8+':\x20'+_0x596d3a+(_0x2d0812['data']?'\x20'+_0x18315a:''));for(const _0x15bf2c of[_0x51444e(0x15b),'options','response','data'])Object[_0x51444e(0x14d)](_0x50680f,_0x15bf2c,{'get'(){const _0xbf1f7a=_0x51444e,_0x494a20={};return _0x494a20['request']=_0xf3624a,_0x494a20['options']=_0x5e6eec,_0x494a20['response']=_0x2d0812,_0x494a20['data']=_0x2d0812[_0xbf1f7a(0x151)],_0x494a20[_0x15bf2c];}});return _0x50680f;}function normalizeError(_0x30f9d3){const _0x31348d=_0x5306b4;if(_0x30f9d3 instanceof Error)return _0x30f9d3;return Object['assign'](new Error(_0x30f9d3?.[_0x31348d(0x187)]||_0x30f9d3?.['message']||_0x31348d(0x178)),{'cause':_0x30f9d3});}async function callRequestHooks(_0x23e2ff,_0x3b2f4c){await _0x3b2f4c['onRequest']?.({'options':_0x3b2f4c,'resource':_0x23e2ff});}function _0x29a8(_0x178f17,_0x32ee7d){_0x178f17=_0x178f17-0x144;const _0x2fb841=_0x2fb8();let _0x29a88b=_0x2fb841[_0x178f17];return _0x29a88b;}async function callRequestErrorHooks(_0xf3f2e7,_0x15fdc6,_0x1c4f41){const _0x33fff8=_0x5306b4;await _0x15fdc6[_0x33fff8(0x17b)]?.({'options':_0x15fdc6,'resource':_0xf3f2e7,'error':_0x1c4f41});}async function callResponseHooks(_0x25a92e,_0x20ba2b,_0x55babe){const _0x3164f9=_0x5306b4;await _0x20ba2b[_0x3164f9(0x15c)]?.({'options':_0x20ba2b,'resource':_0x25a92e,'response':_0x55babe});}async function callResponseErrorHooks(_0x55306f,_0x25bcec,_0x6936c){await _0x25bcec['onResponseError']?.({'options':_0x25bcec,'resource':_0x55306f,'response':_0x6936c});}async function refineResponse(_0x4eac7d,_0x713a3a){const _0x4f5310=_0x5306b4;if(_0x713a3a[_0x4f5310(0x191)]===_0x4f5310(0x192)||!_0x713a3a['responseType'])return{..._0x4eac7d,'data':await parseJSONResponse(_0x4eac7d[_0x4f5310(0x151)],_0x713a3a)};return _0x4eac7d;}function parseJSONResponse(_0x4ec998,_0x4a2938){const _0x1fde60=_0x5306b4;if(typeof _0x4ec998!==_0x1fde60(0x170))return _0x4ec998;if(_0x4a2938[_0x1fde60(0x18d)])return _0x4a2938[_0x1fde60(0x18d)](_0x4ec998);return _0x4ec998?JSON['parse'](_0x4ec998):null;}function isResponseError(_0x39c2c1){const _0x5c7fe3=_0x5306b4,_0xf53e37=_0x5c7fe3(0x164)in _0x39c2c1?_0x39c2c1['statusCode']:void 0x0;return typeof _0xf53e37==='number'&&(_0xf53e37<0xc8||_0xf53e37>=0x12c);}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set([_0x5306b4(0x156),'PUT','DELETE',_0x5306b4(0x168)]);async function withRetry(_0x1c93ea,_0x2c5482){const _0x180c90=resolveRetryCount(_0x1c93ea);for(let _0x3bc440=0x0;;_0x3bc440++)try{return await _0x2c5482();}catch(_0x4b5d22){if(_0x3bc440>=_0x180c90||!shouldRetry(_0x4b5d22,_0x1c93ea))throw _0x4b5d22;await sleep(_0x1c93ea['retryDelay']??0x0,_0x1c93ea['signal']);}}function resolveRetryCount(_0x2c5353){const _0x24e44d=_0x5306b4,{retry:_0xe7785a}=_0x2c5353;if(_0xe7785a===![])return 0x0;if(typeof _0xe7785a===_0x24e44d(0x152))return _0xe7785a>0x0?_0xe7785a:0x0;return isPayloadMethod(_0x2c5353['method'])?0x0:0x1;}function shouldRetry(_0x2d91ac,_0x20f3e0){const _0x57f11e=_0x5306b4;if(_0x20f3e0['signal']?.[_0x57f11e(0x160)]||isAbortError(_0x2d91ac))return![];const _0x41384d=_0x2d91ac?.[_0x57f11e(0x148)]?.['statusCode'];if(typeof _0x41384d!=='number')return!![];return(_0x20f3e0['retryStatusCodes']??DEFAULT_RETRY_STATUS_CODES)[_0x57f11e(0x177)](_0x41384d);}function isPayloadMethod(_0x57afb6){const _0x42954c=_0x5306b4;return!!_0x57afb6&&PAYLOAD_METHODS[_0x42954c(0x149)](_0x57afb6[_0x42954c(0x17e)]());}function sleep(_0x45bfc3,_0x336d1f){return new Promise((_0x4958b3,_0x488fea)=>{if(_0x336d1f?.['aborted']){_0x488fea(_0x336d1f['reason']);return;}if(!(_0x45bfc3>0x0)){_0x4958b3();return;}let _0x22a304=()=>{};const _0x1a624b=setTimeout(()=>{_0x22a304(),_0x4958b3();},_0x45bfc3);_0x22a304=onAbort(_0x336d1f,()=>{clearTimeout(_0x1a624b),_0x488fea(_0x336d1f['reason']);});});}function buildURL(_0x272a6f,_0xcba8cd){const _0x232301=_0x5306b4,_0x750c80=joinURL(_0xcba8cd['baseURL'],_0x272a6f),_0xd69b4a=_0xcba8cd['query']??{},_0x4a81d6=Object[_0x232301(0x172)](_0xd69b4a)[_0x232301(0x147)](_0x5dda93=>_0xd69b4a[_0x5dda93]!==void 0x0)[_0x232301(0x144)](_0x5ce6c3=>{const _0x2e23ba=_0x232301,_0x505a3f=_0xd69b4a[_0x5ce6c3];return(Array[_0x2e23ba(0x17d)](_0x505a3f)?_0x505a3f:[_0x505a3f])['map'](_0x4c3e6c=>encodeURIComponent(_0x5ce6c3)+'='+encodeURIComponent(String(_0x4c3e6c)));})['join']('&');if(!_0x4a81d6)return _0x750c80;return''+_0x750c80+(_0x750c80['includes']('?')?'&':'?')+_0x4a81d6;}function joinURL(_0x2a295a,_0x3a2a5f){const _0x170abf=_0x5306b4;if(!_0x2a295a||isAbsoluteURL(_0x3a2a5f))return _0x3a2a5f;return _0x2a295a['replace'](/\/+$/,'')+'/'+_0x3a2a5f[_0x170abf(0x16f)](/^\/+/,'');}function isAbsoluteURL(_0x713e78){const _0x2ba0f9=_0x5306b4;return/^[a-z][a-z\d+\-.]*:\/\//i[_0x2ba0f9(0x18b)](_0x713e78)||_0x713e78[_0x2ba0f9(0x186)]('//');}function dispatchHttp(_0x10ebd6,_0x2b5247,_0x1f0880){const _0x5b1dc1=buildURL(_0x2b5247,_0x1f0880);return withRetry(_0x1f0880,()=>attemptRequest(_0x10ebd6,_0x2b5247,_0x5b1dc1,_0x1f0880));}function attemptRequest(_0x29eeef,_0x547d65,_0x159b38,_0x5a1062){const _0x26a76=!!_0x5a1062['raw'];return new Promise((_0x2ff6ea,_0x27c0e4)=>{const _0x435814=_0x29a8;let _0x1254e5=![];const _0x5db252=_0x11b1d3=>{if(_0x1254e5)return;_0x1254e5=!![],_0x11b1d3();},_0x343a84=onAbort(_0x5a1062['signal'],()=>{const _0x587993=_0x29a8;_0x5db252(()=>_0x27c0e4(_0x5a1062['signal'][_0x587993(0x17c)]));}),_0x148842=_0x227176=>{_0x343a84(),_0x5db252(_0x227176);};callRequestHooks(_0x547d65,_0x5a1062)[_0x435814(0x194)](()=>{if(_0x1254e5)return;dispatch(_0x29eeef,_0x159b38,_0x5a1062,{'onSuccess':_0x2141a8=>{const _0x599dcf=_0x29a8;Promise['resolve']()['then'](()=>refineResponse(_0x2141a8,_0x5a1062))[_0x599dcf(0x194)](async _0x19abb4=>{const _0x4c2fa2=_0x599dcf;if(isResponseError(_0x2141a8)){await callResponseErrorHooks(_0x547d65,_0x5a1062,_0x19abb4);if(!_0x5a1062[_0x4c2fa2(0x189)])throw createResponseError(_0x547d65,_0x5a1062,_0x19abb4);}else await callResponseHooks(_0x547d65,_0x5a1062,_0x19abb4);_0x148842(()=>_0x2ff6ea(_0x26a76?_0x19abb4:_0x19abb4[_0x4c2fa2(0x151)]));})['catch'](_0x1c50cd=>_0x148842(()=>_0x27c0e4(_0x1c50cd)));},'onFail':_0x3e91cb=>{const _0x50cc15=_0x29a8;Promise['resolve']()[_0x50cc15(0x194)](async()=>{const _0x5121ed=normalizeError(_0x3e91cb);if(!isAbortError(_0x5121ed))await callRequestErrorHooks(_0x547d65,_0x5a1062,_0x5121ed);throw _0x5121ed;})[_0x50cc15(0x167)](_0x198db6=>_0x148842(()=>_0x27c0e4(_0x198db6)));}});})['catch'](async _0x144fec=>{const _0x4cf075=normalizeError(_0x144fec);await callRequestErrorHooks(_0x547d65,_0x5a1062,_0x4cf075),_0x148842(()=>_0x27c0e4(_0x4cf075));});});}const _0x18ce3e={};_0x18ce3e['method']=_0x5306b4(0x193),_0x18ce3e[_0x5306b4(0x191)]='json';const defaultConfig=_0x18ce3e;function createHttp(_0x20b781={}){const _0x26158c=_0x5306b4,_0x5bdc4a=(_0x236c6d,_0x7f85a5)=>{const _0x20c6d8=_0x29a8;return dispatchHttp(_0x20c6d8(0x15b),_0x236c6d,mergeOptions(defaultConfig,_0x20b781,_0x7f85a5));},_0x207ee7=(_0x364dac,_0x46a7fb)=>{const _0xe42933={};return _0xe42933['method']='POST',dispatchHttp('upload',_0x364dac,mergeOptions(defaultConfig,_0x20b781,_0x46a7fb,_0xe42933));},_0x1a9f65=(_0x1cd80a,_0x301e84)=>{const _0x275a31=_0x29a8,_0x539dd1={};return _0x539dd1['method']=_0x275a31(0x193),dispatchHttp(_0x275a31(0x184),_0x1cd80a,mergeOptions(defaultConfig,_0x20b781,_0x301e84,_0x539dd1));},_0x373673=_0x495073=>createHttp(mergeOptions(_0x20b781,_0x495073)),_0x1db3cb={};return _0x1db3cb['request']=_0x5bdc4a,_0x1db3cb[_0x26158c(0x15a)]=_0x207ee7,_0x1db3cb[_0x26158c(0x184)]=_0x1a9f65,_0x1db3cb[_0x26158c(0x162)]=_0x373673,_0x1db3cb;}const http=createHttp(),_0x50a7d0={};_0x50a7d0[_0x5306b4(0x14f)]=!![],_0x50a7d0['get']=function(){return createHttp;},Object[_0x5306b4(0x14d)](exports,_0x5306b4(0x188),_0x50a7d0);const _0x493745={};_0x493745[_0x5306b4(0x14f)]=!![],_0x493745[_0x5306b4(0x17a)]=function(){return createHttpAborter;},Object[_0x5306b4(0x14d)](exports,_0x5306b4(0x174),_0x493745);const _0x950539={};_0x950539['enumerable']=!![],_0x950539['get']=function(){return http;},Object[_0x5306b4(0x14d)](exports,_0x5306b4(0x15d),_0x950539);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @oiyo/framework v0.4.5
|
|
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 _0x52519a=_0x3f93;(function(_0x273a67,_0x37756f){const _0x2ba009=_0x3f93,_0x572bbc=_0x273a67();while(!![]){try{const _0x51aece=-parseInt(_0x2ba009(0x1e6))/0x1*(-parseInt(_0x2ba009(0x1c1))/0x2)+-parseInt(_0x2ba009(0x1f3))/0x3+parseInt(_0x2ba009(0x1b8))/0x4*(parseInt(_0x2ba009(0x1bc))/0x5)+parseInt(_0x2ba009(0x209))/0x6+-parseInt(_0x2ba009(0x1c0))/0x7+parseInt(_0x2ba009(0x1ec))/0x8+parseInt(_0x2ba009(0x1f9))/0x9;if(_0x51aece===_0x37756f)break;else _0x572bbc['push'](_0x572bbc['shift']());}catch(_0xdd2501){_0x572bbc['push'](_0x572bbc['shift']());}}}(_0x333b,0x560be));function createHttpAborter(){const _0x9deb04=new HttpAbortSignal();return{'signal':_0x9deb04,'abort':_0x4cf422=>_0x9deb04['_abort'](_0x4cf422)};}const ABORT_ERROR_NAME=_0x52519a(0x201);var AbortEmitter=class{['listeners']=[];[_0x52519a(0x1fa)](_0x49dad0,_0x454721){const _0x4d9165=_0x52519a;if(_0x49dad0!=='abort')return;this[_0x4d9165(0x1f4)][_0x4d9165(0x1ea)](_0x454721);}[_0x52519a(0x1bd)](_0x490c8a,_0x5929a2){const _0x4a9f90=_0x52519a;if(_0x490c8a!==_0x4a9f90(0x205))return;const _0x56a702=this[_0x4a9f90(0x1f4)]['indexOf'](_0x5929a2);if(_0x56a702!==-0x1)this['listeners'][_0x4a9f90(0x1c5)](_0x56a702,0x1);}[_0x52519a(0x1c9)](_0x54423d){const _0x242dae=_0x52519a;for(const _0x5cea81 of this[_0x242dae(0x1f4)]['slice']())_0x5cea81['call'](this,_0x54423d);}},HttpAbortSignal=class extends AbortEmitter{[_0x52519a(0x1fb)]=![];['reason']=void 0x0;[_0x52519a(0x1c6)]=null;[_0x52519a(0x1d0)](_0x52b4b5){const _0x557cb1=_0x52519a;if(this['aborted'])return;this['aborted']=!![],this['reason']=_0x52b4b5===void 0x0?createAbortError():_0x52b4b5;const _0x15149a={};_0x15149a['type']=_0x557cb1(0x205);const _0x549747=_0x15149a;if(typeof this[_0x557cb1(0x1c6)]==='function')this['onabort'](_0x549747);this['emit'](_0x549747);}['throwIfAborted'](){const _0x4ff62c=_0x52519a;if(this[_0x4ff62c(0x1fb)])throw this[_0x4ff62c(0x1e3)];}};function createAbortError(_0x202d16='The\x20operation\x20was\x20aborted'){const _0x8389fc=_0x52519a,_0xedef34=new Error(_0x202d16);return _0xedef34[_0x8389fc(0x1ff)]=ABORT_ERROR_NAME,_0xedef34;}function _0x333b(){const _0x4ddd09=['splice','onabort','url','onSuccess','emit','downloadFile','file','response','enableQuic','function','options','_abort','raw','body','fileType','arraybuffer','withCredentials','GET','resolve','query','headers','httpDNSServiceId','toUpperCase','errMsg','flatMap','json','data','<no\x20response>','HTTP\x20request\x20failed','parseResponse','reason','tempFilePath','ignoreResponseError','10059ajXzob','test','sslVerify','replace','push','enableHttp2','1931168UMcmNa','retryDelay','text','responseType','enableCache','catch','files','490362dDzCRm','listeners','request','onFail','parse','upload','2449647PwCCTQ','addEventListener','aborted','filePath','onRequest','keys','name','enableChunked','AbortError','forceCellularNetwork','onResponse','onProgressUpdate','abort','onRequestError','HttpError','download','1313928PzGWul','onHeadersReceived','method','join','then','622948qTyYYw','onResponseError','defineProperty','includes','5oTmeyL','removeEventListener','number','arrayBuffer','3803849TKMaET','34tpTLed','POST','dataType','header'];_0x333b=function(){return _0x4ddd09;};return _0x333b();}function isAbortError(_0x2436fb){const _0xe863e1=_0x52519a;return _0x2436fb instanceof Error&&_0x2436fb[_0xe863e1(0x1ff)]===ABORT_ERROR_NAME;}function onAbort(_0x188881,_0x7c691e){const _0x3d0be0=_0x52519a;if(!_0x188881)return()=>{};if(_0x188881[_0x3d0be0(0x1fb)])return _0x7c691e(),()=>{};return _0x188881['addEventListener'](_0x3d0be0(0x205),_0x7c691e),()=>_0x188881['removeEventListener'](_0x3d0be0(0x205),_0x7c691e);}function _0x3f93(_0x420db7,_0x4b39e2){_0x420db7=_0x420db7-0x1b8;const _0x333bff=_0x333b();let _0x3f934a=_0x333bff[_0x420db7];return _0x3f934a;}const HOOK_NAMES=[_0x52519a(0x1fd),_0x52519a(0x206),_0x52519a(0x203),_0x52519a(0x1b9)];function mergeOptions(..._0x380d56){const _0x52b660=_0x52519a,_0x1b47b={},_0x563c9f={};for(const _0x38173a of _0x380d56){if(!_0x38173a)continue;for(const _0x23c42e of HOOK_NAMES)collectHook(_0x563c9f,_0x23c42e,_0x38173a);const _0x4cdffa=_0x1b47b['headers'],_0x2bd106=_0x1b47b['query'];Object['assign'](_0x1b47b,_0x38173a);const _0x231f50={..._0x4cdffa,..._0x38173a[_0x52b660(0x1d9)]};_0x1b47b[_0x52b660(0x1d9)]=_0x231f50;const _0x13d904={..._0x2bd106,..._0x38173a[_0x52b660(0x1d8)]};_0x1b47b['query']=_0x13d904;}for(const [_0x2d0001,_0x2aa14d]of Object['entries'](_0x563c9f))Object['assign'](_0x1b47b,{[_0x2d0001]:async _0x595411=>{for(const _0x5f1902 of _0x2aa14d)await _0x5f1902(_0x595411);}});return _0x1b47b;}function collectHook(_0x2d6527,_0x38ac3e,_0x434da0){const _0x4e31fb=_0x434da0[_0x38ac3e];if(typeof _0x4e31fb!=='function')return;_0x2d6527[_0x38ac3e]??=[],_0x2d6527[_0x38ac3e]['push'](_0x4e31fb);}function dispatch(_0x2f0a21,_0x552928,_0x4f51ca,_0x7ec7bf){const _0x58e55a=_0x52519a;let _0x47315b;if(_0x2f0a21==='upload')_0x47315b=dispatchUpload(_0x552928,_0x4f51ca,_0x7ec7bf);else{if(_0x2f0a21===_0x58e55a(0x208))_0x47315b=dispatchDownload(_0x552928,_0x4f51ca,_0x7ec7bf);else _0x47315b=dispatchRequest(_0x552928,_0x4f51ca,_0x7ec7bf);}bindTask(_0x47315b,_0x4f51ca);}function bindTask(_0x53ad1d,_0xbcb53b){const _0x450614=_0x52519a;onAbort(_0xbcb53b['signal'],()=>_0x53ad1d[_0x450614(0x205)]());if(typeof _0xbcb53b['onHeadersReceived']===_0x450614(0x1ce))_0x53ad1d['onHeadersReceived'](_0xbcb53b[_0x450614(0x20a)]);const _0x2a2749=_0xbcb53b['onProgress'];if(typeof _0x2a2749===_0x450614(0x1ce)&&_0x450614(0x204)in _0x53ad1d)_0x53ad1d['onProgressUpdate'](_0x2a2749);}function dispatchRequest(_0x111138,_0x52d22f,_0x545f5c){const _0x7d4cd8=_0x52519a,_0x3e10dd={'url':_0x111138,'method':_0x52d22f['method'],'header':_0x52d22f['headers'],'data':_0x52d22f['body']??{},'timeout':_0x52d22f['timeout'],'dataType':_0x52d22f[_0x7d4cd8(0x1c3)]||'json','responseType':mappedResponseBodyType(_0x52d22f[_0x7d4cd8(0x1ef)]),'sslVerify':_0x52d22f[_0x7d4cd8(0x1e8)],'withCredentials':_0x52d22f[_0x7d4cd8(0x1d5)],'firstIpv4':_0x52d22f['firstIpv4'],'enableHttp2':_0x52d22f[_0x7d4cd8(0x1eb)],'enableQuic':_0x52d22f[_0x7d4cd8(0x1cd)],'enableCache':_0x52d22f[_0x7d4cd8(0x1f0)],'enableHttpDNS':_0x52d22f['enableHttpDNS'],'httpDNSServiceId':_0x52d22f[_0x7d4cd8(0x1da)],'enableChunked':_0x52d22f[_0x7d4cd8(0x200)],'forceCellularNetwork':_0x52d22f[_0x7d4cd8(0x202)],'success':_0x545f5c['onSuccess'],'fail':_0x545f5c[_0x7d4cd8(0x1f6)],'complete':()=>{}};return uni['request'](_0x3e10dd);}function dispatchUpload(_0x3c49b3,_0x3f5011,_0x5e052b){const _0x1df825=_0x52519a,_0x3de204={};_0x3de204[_0x1df825(0x1c7)]=_0x3c49b3,_0x3de204[_0x1df825(0x1d3)]=_0x3f5011['fileType'],_0x3de204['file']=_0x3f5011[_0x1df825(0x1cb)],_0x3de204['filePath']=_0x3f5011[_0x1df825(0x1fc)],_0x3de204[_0x1df825(0x1ff)]=_0x3f5011['name']??_0x1df825(0x1cb),_0x3de204[_0x1df825(0x1f2)]=_0x3f5011[_0x1df825(0x1f2)],_0x3de204[_0x1df825(0x1c4)]=_0x3f5011[_0x1df825(0x1d9)],_0x3de204['formData']=_0x3f5011[_0x1df825(0x1d2)]??{},_0x3de204['timeout']=_0x3f5011['timeout'],_0x3de204['success']=_0x5e052b['onSuccess'],_0x3de204['fail']=_0x5e052b['onFail'],_0x3de204['complete']=()=>{};const _0x72c5f2=_0x3de204;return uni['uploadFile'](_0x72c5f2);}function dispatchDownload(_0x5601b3,_0x4eb267,_0x4cefc5){const _0x4bda17=_0x52519a,_0x309442={'url':_0x5601b3,'header':_0x4eb267['headers'],'timeout':_0x4eb267['timeout'],'success':_0x53cd19=>{const _0x7f4bf4=_0x3f93,_0x13bc38={..._0x53cd19};_0x13bc38['data']={},_0x13bc38['data'][_0x7f4bf4(0x1e4)]=_0x53cd19[_0x7f4bf4(0x1e4)],_0x4cefc5[_0x7f4bf4(0x1c8)](_0x13bc38);},'fail':_0x4cefc5['onFail'],'complete':()=>{}};return uni[_0x4bda17(0x1ca)](_0x309442);}function mappedResponseBodyType(_0x3d38fd){const _0x5a9e65=_0x52519a;if(!_0x3d38fd||_0x3d38fd===_0x5a9e65(0x1de))return'text';if(_0x3d38fd===_0x5a9e65(0x1bf))return _0x5a9e65(0x1d4);return _0x5a9e65(0x1ee);}var HttpError=class extends Error{constructor(_0x3304c7){const _0x5dfd65=_0x52519a;super(_0x3304c7),this[_0x5dfd65(0x1ff)]=_0x5dfd65(0x207);}};function createResponseError(_0xe9e676,_0x5b333d,_0x5bfd38){const _0x1d307b=_0x52519a,_0x2886b9=_0xe9e676,_0x150234='['+(_0x5b333d?.[_0x1d307b(0x20b)]||_0x1d307b(0x1d6))+']\x20'+_0x2886b9,_0xdb7a22=_0x5bfd38?_0x5bfd38['statusCode']+'\x20'+(_0x5bfd38[_0x1d307b(0x1dc)]||''):_0x1d307b(0x1e0),_0x369633=_0x5bfd38?JSON['stringify'](_0x5bfd38[_0x1d307b(0x1df)]):'<no\x20response\x20body>',_0x4eb08b=new HttpError(_0x150234+':\x20'+_0xdb7a22+(_0x5bfd38[_0x1d307b(0x1df)]?'\x20'+_0x369633:''));for(const _0x2f0a7e of['request','options','response',_0x1d307b(0x1df)])Object[_0x1d307b(0x1ba)](_0x4eb08b,_0x2f0a7e,{'get'(){const _0xd24f99=_0x1d307b,_0xc953a0={};return _0xc953a0[_0xd24f99(0x1f5)]=_0xe9e676,_0xc953a0[_0xd24f99(0x1cf)]=_0x5b333d,_0xc953a0[_0xd24f99(0x1cc)]=_0x5bfd38,_0xc953a0['data']=_0x5bfd38['data'],_0xc953a0[_0x2f0a7e];}});return _0x4eb08b;}function normalizeError(_0x34659e){const _0x3cb61c=_0x52519a;if(_0x34659e instanceof Error)return _0x34659e;return Object['assign'](new Error(_0x34659e?.['errMsg']||_0x34659e?.['message']||_0x3cb61c(0x1e1)),{'cause':_0x34659e});}async function callRequestHooks(_0x44e9a8,_0x55c199){const _0x17dc2f=_0x52519a;await _0x55c199[_0x17dc2f(0x1fd)]?.({'options':_0x55c199,'resource':_0x44e9a8});}async function callRequestErrorHooks(_0x3d2352,_0x2152ad,_0x14fdef){const _0x24539e=_0x52519a;await _0x2152ad[_0x24539e(0x206)]?.({'options':_0x2152ad,'resource':_0x3d2352,'error':_0x14fdef});}async function callResponseHooks(_0x260e7f,_0x2e4742,_0x2792cc){await _0x2e4742['onResponse']?.({'options':_0x2e4742,'resource':_0x260e7f,'response':_0x2792cc});}async function callResponseErrorHooks(_0xf66cb9,_0x15ac4a,_0x193f1d){await _0x15ac4a['onResponseError']?.({'options':_0x15ac4a,'resource':_0xf66cb9,'response':_0x193f1d});}async function refineResponse(_0x33dfc6,_0x271a12){const _0x2b5226=_0x52519a;if(_0x271a12[_0x2b5226(0x1ef)]===_0x2b5226(0x1de)||!_0x271a12[_0x2b5226(0x1ef)])return{..._0x33dfc6,'data':await parseJSONResponse(_0x33dfc6[_0x2b5226(0x1df)],_0x271a12)};return _0x33dfc6;}function parseJSONResponse(_0x87a92a,_0xafaa63){const _0x19ca54=_0x52519a;if(typeof _0x87a92a!=='string')return _0x87a92a;if(_0xafaa63['parseResponse'])return _0xafaa63[_0x19ca54(0x1e2)](_0x87a92a);return _0x87a92a?JSON[_0x19ca54(0x1f7)](_0x87a92a):null;}function isResponseError(_0x4f1ccb){const _0x455e79='statusCode'in _0x4f1ccb?_0x4f1ccb['statusCode']:void 0x0;return typeof _0x455e79==='number'&&(_0x455e79<0xc8||_0x455e79>=0x12c);}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set(['POST','PUT','DELETE','PATCH']);async function withRetry(_0x1d3d12,_0x420538){const _0x37caa4=_0x52519a,_0x270818=resolveRetryCount(_0x1d3d12);for(let _0x294179=0x0;;_0x294179++)try{return await _0x420538();}catch(_0x482b9e){if(_0x294179>=_0x270818||!shouldRetry(_0x482b9e,_0x1d3d12))throw _0x482b9e;await sleep(_0x1d3d12[_0x37caa4(0x1ed)]??0x0,_0x1d3d12['signal']);}}function resolveRetryCount(_0x236878){const _0x15dd68=_0x52519a,{retry:_0x302970}=_0x236878;if(_0x302970===![])return 0x0;if(typeof _0x302970==='number')return _0x302970>0x0?_0x302970:0x0;return isPayloadMethod(_0x236878[_0x15dd68(0x20b)])?0x0:0x1;}function shouldRetry(_0x1b29ad,_0x1e58ff){const _0x1ef9e1=_0x52519a;if(_0x1e58ff['signal']?.['aborted']||isAbortError(_0x1b29ad))return![];const _0x16c271=_0x1b29ad?.['response']?.['statusCode'];if(typeof _0x16c271!==_0x1ef9e1(0x1be))return!![];return(_0x1e58ff['retryStatusCodes']??DEFAULT_RETRY_STATUS_CODES)['includes'](_0x16c271);}function isPayloadMethod(_0x26e4b0){const _0x174d99=_0x52519a;return!!_0x26e4b0&&PAYLOAD_METHODS['has'](_0x26e4b0[_0x174d99(0x1db)]());}function sleep(_0x44225e,_0x3792a3){return new Promise((_0x15813f,_0x440154)=>{if(_0x3792a3?.['aborted']){_0x440154(_0x3792a3['reason']);return;}if(!(_0x44225e>0x0)){_0x15813f();return;}let _0x528cad=()=>{};const _0x225fce=setTimeout(()=>{_0x528cad(),_0x15813f();},_0x44225e);_0x528cad=onAbort(_0x3792a3,()=>{const _0x530153=_0x3f93;clearTimeout(_0x225fce),_0x440154(_0x3792a3[_0x530153(0x1e3)]);});});}function buildURL(_0x4196d7,_0x3ebe47){const _0x47d651=_0x52519a,_0x3a1164=joinURL(_0x3ebe47['baseURL'],_0x4196d7),_0x4e8b22=_0x3ebe47[_0x47d651(0x1d8)]??{},_0x5e3180=Object[_0x47d651(0x1fe)](_0x4e8b22)['filter'](_0x1fbcb4=>_0x4e8b22[_0x1fbcb4]!==void 0x0)[_0x47d651(0x1dd)](_0x3d8ab6=>{const _0x546544=_0x4e8b22[_0x3d8ab6];return(Array['isArray'](_0x546544)?_0x546544:[_0x546544])['map'](_0x21b641=>encodeURIComponent(_0x3d8ab6)+'='+encodeURIComponent(String(_0x21b641)));})[_0x47d651(0x20c)]('&');if(!_0x5e3180)return _0x3a1164;return''+_0x3a1164+(_0x3a1164[_0x47d651(0x1bb)]('?')?'&':'?')+_0x5e3180;}function joinURL(_0x2ec6c8,_0x2b3232){const _0x36159a=_0x52519a;if(!_0x2ec6c8||isAbsoluteURL(_0x2b3232))return _0x2b3232;return _0x2ec6c8['replace'](/\/+$/,'')+'/'+_0x2b3232[_0x36159a(0x1e9)](/^\/+/,'');}function isAbsoluteURL(_0x326550){const _0x884a25=_0x52519a;return/^[a-z][a-z\d+\-.]*:\/\//i[_0x884a25(0x1e7)](_0x326550)||_0x326550['startsWith']('//');}function dispatchHttp(_0x58e5c1,_0x4c5657,_0x491f3e){const _0x301fa5=buildURL(_0x4c5657,_0x491f3e);return withRetry(_0x491f3e,()=>attemptRequest(_0x58e5c1,_0x4c5657,_0x301fa5,_0x491f3e));}function attemptRequest(_0xdeba0,_0x46dbdc,_0x33379d,_0x7602e8){const _0x6a9f3c=_0x52519a,_0x41d200=!!_0x7602e8[_0x6a9f3c(0x1d1)];return new Promise((_0x171b4c,_0x14ec5c)=>{const _0x46710a=_0x6a9f3c;let _0x5dd8b0=![];const _0x47a75f=_0x58c03c=>{if(_0x5dd8b0)return;_0x5dd8b0=!![],_0x58c03c();},_0xc4d991=onAbort(_0x7602e8['signal'],()=>{_0x47a75f(()=>_0x14ec5c(_0x7602e8['signal']['reason']));}),_0x1b1263=_0x273321=>{_0xc4d991(),_0x47a75f(_0x273321);};callRequestHooks(_0x46dbdc,_0x7602e8)[_0x46710a(0x20d)](()=>{if(_0x5dd8b0)return;dispatch(_0xdeba0,_0x33379d,_0x7602e8,{'onSuccess':_0x4580c0=>{const _0x154387=_0x3f93;Promise[_0x154387(0x1d7)]()['then'](()=>refineResponse(_0x4580c0,_0x7602e8))['then'](async _0x141119=>{const _0x3b7264=_0x154387;if(isResponseError(_0x4580c0)){await callResponseErrorHooks(_0x46dbdc,_0x7602e8,_0x141119);if(!_0x7602e8[_0x3b7264(0x1e5)])throw createResponseError(_0x46dbdc,_0x7602e8,_0x141119);}else await callResponseHooks(_0x46dbdc,_0x7602e8,_0x141119);_0x1b1263(()=>_0x171b4c(_0x41d200?_0x141119:_0x141119['data']));})[_0x154387(0x1f1)](_0x58ffab=>_0x1b1263(()=>_0x14ec5c(_0x58ffab)));},'onFail':_0x5508ad=>{const _0x4a7166=_0x3f93;Promise[_0x4a7166(0x1d7)]()[_0x4a7166(0x20d)](async()=>{const _0x2fb192=normalizeError(_0x5508ad);if(!isAbortError(_0x2fb192))await callRequestErrorHooks(_0x46dbdc,_0x7602e8,_0x2fb192);throw _0x2fb192;})[_0x4a7166(0x1f1)](_0x4a67cb=>_0x1b1263(()=>_0x14ec5c(_0x4a67cb)));}});})['catch'](async _0x3ecba2=>{const _0x50a270=normalizeError(_0x3ecba2);await callRequestErrorHooks(_0x46dbdc,_0x7602e8,_0x50a270),_0x1b1263(()=>_0x14ec5c(_0x50a270));});});}const _0x3563c1={};_0x3563c1['method']='GET',_0x3563c1[_0x52519a(0x1ef)]=_0x52519a(0x1de);const defaultConfig=_0x3563c1;function createHttp(_0x1208a1={}){const _0x2415e4=_0x52519a,_0x30598c=(_0x419230,_0x470511)=>{return dispatchHttp('request',_0x419230,mergeOptions(defaultConfig,_0x1208a1,_0x470511));},_0x1877f7=(_0x46cae7,_0x57cd83)=>{const _0x2d3d57=_0x3f93,_0x4a7cb2={};return _0x4a7cb2[_0x2d3d57(0x20b)]=_0x2d3d57(0x1c2),dispatchHttp(_0x2d3d57(0x1f8),_0x46cae7,mergeOptions(defaultConfig,_0x1208a1,_0x57cd83,_0x4a7cb2));},_0x3dc3b3=(_0x1d9123,_0x5c0564)=>{const _0x42cc34=_0x3f93,_0x334725={};return _0x334725[_0x42cc34(0x20b)]='GET',dispatchHttp('download',_0x1d9123,mergeOptions(defaultConfig,_0x1208a1,_0x5c0564,_0x334725));},_0x47b93e=_0x5c6bf7=>createHttp(mergeOptions(_0x1208a1,_0x5c6bf7)),_0x42c25b={};return _0x42c25b[_0x2415e4(0x1f5)]=_0x30598c,_0x42c25b['upload']=_0x1877f7,_0x42c25b[_0x2415e4(0x208)]=_0x3dc3b3,_0x42c25b['create']=_0x47b93e,_0x42c25b;}const http=createHttp();export{http as n,createHttpAborter as r,createHttp as t};
|
package/dist/oiyo.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @oiyo/framework v0.4.
|
|
2
|
+
* @oiyo/framework v0.4.5
|
|
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-
|
|
8
|
+
const require_oiyo = require("./oiyo-BhjW8nT_.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.
|
|
2
|
+
* @oiyo/framework v0.4.5
|
|
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 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-
|
|
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-C_vPDBDX.cjs";
|
|
8
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.
|
|
2
|
+
* @oiyo/framework v0.4.5
|
|
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 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-
|
|
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-C_vPDBDX.mjs";
|
|
8
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.
|
|
2
|
+
* @oiyo/framework v0.4.5
|
|
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-
|
|
7
|
+
import { n as http, r as createHttpAborter, t as createHttp } from "./oiyo-rI8ibY_7.mjs";
|
|
8
8
|
export { createHttp, createHttpAborter, http };
|
package/dist/uni.cjs
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @oiyo/framework v0.4.
|
|
2
|
+
* @oiyo/framework v0.4.5
|
|
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-DQZhkyOB.cjs");
|
|
9
8
|
var _dcloudio_uni_app = require("@dcloudio/uni-app");
|
|
10
9
|
Object.keys(_dcloudio_uni_app).forEach(function(k) {
|
|
11
10
|
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
package/dist/uni.d.cts
CHANGED
package/dist/uni.d.mts
CHANGED
package/dist/uni.mjs
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @oiyo/framework v0.4.
|
|
2
|
+
* @oiyo/framework v0.4.5
|
|
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-D5dVOuTm.mjs";
|
|
8
7
|
export * from "@dcloudio/uni-app";
|
|
9
8
|
export {};
|
package/dist/vue.cjs
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @oiyo/framework v0.4.
|
|
2
|
+
* @oiyo/framework v0.4.5
|
|
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-DQZhkyOB.cjs");
|
|
9
8
|
var vue = require("vue");
|
|
10
9
|
Object.keys(vue).forEach(function(k) {
|
|
11
10
|
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
package/dist/vue.d.cts
CHANGED
package/dist/vue.d.mts
CHANGED
package/dist/vue.mjs
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @oiyo/framework v0.4.
|
|
2
|
+
* @oiyo/framework v0.4.5
|
|
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-D5dVOuTm.mjs";
|
|
8
7
|
export * from "vue";
|
|
9
8
|
export {};
|
package/package.json
CHANGED
package/dist/oiyo-DF-n178E.cjs
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @oiyo/framework v0.4.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 _0x4b27b1=_0x691c;(function(_0x55f42b,_0x139e22){const _0x3d766a=_0x691c,_0x5a8763=_0x55f42b();while(!![]){try{const _0x188de8=-parseInt(_0x3d766a(0xcf))/0x1*(-parseInt(_0x3d766a(0xc9))/0x2)+-parseInt(_0x3d766a(0xcb))/0x3*(parseInt(_0x3d766a(0xbf))/0x4)+parseInt(_0x3d766a(0xb3))/0x5+-parseInt(_0x3d766a(0xbd))/0x6+-parseInt(_0x3d766a(0xb5))/0x7+-parseInt(_0x3d766a(0xce))/0x8*(-parseInt(_0x3d766a(0xc3))/0x9)+-parseInt(_0x3d766a(0xb2))/0xa*(-parseInt(_0x3d766a(0xbe))/0xb);if(_0x188de8===_0x139e22)break;else _0x5a8763['push'](_0x5a8763['shift']());}catch(_0x750d79){_0x5a8763['push'](_0x5a8763['shift']());}}}(_0x3c4a,0xbd50a));function createHttpAborter(){const _0x4790b5=new HttpAbortSignal();return{'signal':_0x4790b5,'abort':_0x57a353=>_0x4790b5['_abort'](_0x57a353)};}const ABORT_ERROR_NAME=_0x4b27b1(0xd8);var AbortEmitter=class{['listeners']=[];['addEventListener'](_0x3428c6,_0x374414){const _0x536c9f=_0x4b27b1;if(_0x3428c6!==_0x536c9f(0xd5))return;this[_0x536c9f(0xb7)]['push'](_0x374414);}['removeEventListener'](_0x5b95f7,_0x4b4d6a){const _0x42ec62=_0x4b27b1;if(_0x5b95f7!=='abort')return;const _0x133bbf=this['listeners'][_0x42ec62(0xee)](_0x4b4d6a);if(_0x133bbf!==-0x1)this['listeners']['splice'](_0x133bbf,0x1);}['emit'](_0x22feed){for(const _0x5575e0 of this['listeners']['slice']())_0x5575e0['call'](this,_0x22feed);}},HttpAbortSignal=class extends AbortEmitter{['aborted']=![];['reason']=void 0x0;['onabort']=null;[_0x4b27b1(0xfc)](_0x21dedf){const _0x3fe6d3=_0x4b27b1;if(this[_0x3fe6d3(0xc0)])return;this['aborted']=!![],this[_0x3fe6d3(0xe4)]=_0x21dedf===void 0x0?createAbortError():_0x21dedf;const _0x255f85={};_0x255f85[_0x3fe6d3(0xed)]=_0x3fe6d3(0xd5);const _0x27afd1=_0x255f85;if(typeof this[_0x3fe6d3(0xeb)]===_0x3fe6d3(0xea))this['onabort'](_0x27afd1);this['emit'](_0x27afd1);}[_0x4b27b1(0xe3)](){const _0x41583c=_0x4b27b1;if(this[_0x41583c(0xc0)])throw this[_0x41583c(0xe4)];}};function _0x691c(_0x3ba5a0,_0x55c195){_0x3ba5a0=_0x3ba5a0-0xa8;const _0x3c4abc=_0x3c4a();let _0x691c98=_0x3c4abc[_0x3ba5a0];return _0x691c98;}function createAbortError(_0x45b692=_0x4b27b1(0xc7)){const _0x16a1c9=new Error(_0x45b692);return _0x16a1c9['name']=ABORT_ERROR_NAME,_0x16a1c9;}function isAbortError(_0x5716a3){const _0x20c3f7=_0x4b27b1;return _0x5716a3 instanceof Error&&_0x5716a3[_0x20c3f7(0xc8)]===ABORT_ERROR_NAME;}function onAbort(_0x471289,_0x2f23b2){const _0x312a05=_0x4b27b1;if(!_0x471289)return()=>{};if(_0x471289[_0x312a05(0xc0)])return _0x2f23b2(),()=>{};return _0x471289['addEventListener']('abort',_0x2f23b2),()=>_0x471289[_0x312a05(0xe8)](_0x312a05(0xd5),_0x2f23b2);}const HOOK_NAMES=[_0x4b27b1(0xcc),'onRequestError',_0x4b27b1(0xb0),'onResponseError'];function mergeOptions(..._0x617790){const _0x3b2516=_0x4b27b1,_0x5d7124={},_0x2d6987={};for(const _0x22dd21 of _0x617790){if(!_0x22dd21)continue;for(const _0x24573d of HOOK_NAMES)collectHook(_0x2d6987,_0x24573d,_0x22dd21);const _0x4dee4f=_0x5d7124['headers'],_0x41efb6=_0x5d7124['query'];Object['assign'](_0x5d7124,_0x22dd21);const _0x12e8dd={..._0x4dee4f,..._0x22dd21['headers']};_0x5d7124['headers']=_0x12e8dd;const _0x5061f9={..._0x41efb6,..._0x22dd21[_0x3b2516(0xe6)]};_0x5d7124[_0x3b2516(0xe6)]=_0x5061f9;}for(const [_0x312975,_0x1adab7]of Object[_0x3b2516(0xc6)](_0x2d6987))Object['assign'](_0x5d7124,{[_0x312975]:async _0x13329a=>{for(const _0x5d06eb of _0x1adab7)await _0x5d06eb(_0x13329a);}});return _0x5d7124;}function collectHook(_0x1cb59e,_0x5b224c,_0x123325){const _0x2cf893=_0x4b27b1,_0x5163d1=_0x123325[_0x5b224c];if(typeof _0x5163d1!==_0x2cf893(0xea))return;_0x1cb59e[_0x5b224c]??=[],_0x1cb59e[_0x5b224c]['push'](_0x5163d1);}function dispatch(_0x3c2fce,_0x567d52,_0x69005f,_0xf012d7){const _0x3a87fd=_0x4b27b1;let _0x19d16b;if(_0x3c2fce==='upload')_0x19d16b=dispatchUpload(_0x567d52,_0x69005f,_0xf012d7);else{if(_0x3c2fce===_0x3a87fd(0xde))_0x19d16b=dispatchDownload(_0x567d52,_0x69005f,_0xf012d7);else _0x19d16b=dispatchRequest(_0x567d52,_0x69005f,_0xf012d7);}bindTask(_0x19d16b,_0x69005f);}function bindTask(_0x51466b,_0x2cb57b){const _0x11b0cf=_0x4b27b1;onAbort(_0x2cb57b[_0x11b0cf(0xca)],()=>_0x51466b[_0x11b0cf(0xd5)]());if(typeof _0x2cb57b['onHeadersReceived']==='function')_0x51466b[_0x11b0cf(0xdd)](_0x2cb57b['onHeadersReceived']);const _0x14ee83=_0x2cb57b[_0x11b0cf(0xc2)];if(typeof _0x14ee83==='function'&&'onProgressUpdate'in _0x51466b)_0x51466b['onProgressUpdate'](_0x14ee83);}function dispatchRequest(_0x21756d,_0x48fd8b,_0x19f237){const _0xdbf0eb=_0x4b27b1,_0x328610={'url':_0x21756d,'method':_0x48fd8b['method'],'header':_0x48fd8b[_0xdbf0eb(0xf1)],'data':_0x48fd8b['body']??{},'timeout':_0x48fd8b['timeout'],'dataType':_0x48fd8b['dataType']||'json','responseType':mappedResponseBodyType(_0x48fd8b[_0xdbf0eb(0xa9)]),'sslVerify':_0x48fd8b['sslVerify'],'withCredentials':_0x48fd8b['withCredentials'],'firstIpv4':_0x48fd8b[_0xdbf0eb(0xe0)],'enableHttp2':_0x48fd8b[_0xdbf0eb(0xaf)],'enableQuic':_0x48fd8b['enableQuic'],'enableCache':_0x48fd8b['enableCache'],'enableHttpDNS':_0x48fd8b[_0xdbf0eb(0xf7)],'httpDNSServiceId':_0x48fd8b[_0xdbf0eb(0xb6)],'enableChunked':_0x48fd8b['enableChunked'],'forceCellularNetwork':_0x48fd8b['forceCellularNetwork'],'success':_0x19f237[_0xdbf0eb(0xd2)],'fail':_0x19f237[_0xdbf0eb(0xef)],'complete':()=>{}};return uni[_0xdbf0eb(0xae)](_0x328610);}function dispatchUpload(_0x4ba036,_0x40fc4d,_0x5a57b5){const _0x52dbd0=_0x4b27b1,_0x1c4cbf={};_0x1c4cbf[_0x52dbd0(0xf6)]=_0x4ba036,_0x1c4cbf['fileType']=_0x40fc4d[_0x52dbd0(0xbc)],_0x1c4cbf['file']=_0x40fc4d['file'],_0x1c4cbf[_0x52dbd0(0xd0)]=_0x40fc4d[_0x52dbd0(0xd0)],_0x1c4cbf['name']=_0x40fc4d[_0x52dbd0(0xc8)]??'file',_0x1c4cbf[_0x52dbd0(0xfa)]=_0x40fc4d['files'],_0x1c4cbf['header']=_0x40fc4d[_0x52dbd0(0xf1)],_0x1c4cbf[_0x52dbd0(0xf8)]=_0x40fc4d['body']??{},_0x1c4cbf[_0x52dbd0(0xc1)]=_0x40fc4d['timeout'],_0x1c4cbf[_0x52dbd0(0xe1)]=_0x5a57b5[_0x52dbd0(0xd2)],_0x1c4cbf[_0x52dbd0(0xd7)]=_0x5a57b5['onFail'],_0x1c4cbf['complete']=()=>{};const _0x307285=_0x1c4cbf;return uni[_0x52dbd0(0xbb)](_0x307285);}function dispatchDownload(_0x38f667,_0x265be3,_0x49814e){const _0x437a16=_0x4b27b1,_0x112270={'url':_0x38f667,'header':_0x265be3['headers'],'timeout':_0x265be3[_0x437a16(0xc1)],'success':_0x1a816c=>{const _0x36a3a3=_0x437a16,_0x4ccbb0={..._0x1a816c};_0x4ccbb0[_0x36a3a3(0xe7)]={},_0x4ccbb0[_0x36a3a3(0xe7)][_0x36a3a3(0xf0)]=_0x1a816c[_0x36a3a3(0xf0)],_0x49814e[_0x36a3a3(0xd2)](_0x4ccbb0);},'fail':_0x49814e[_0x437a16(0xef)],'complete':()=>{}};return uni[_0x437a16(0xc4)](_0x112270);}function mappedResponseBodyType(_0x4d82bb){const _0x188ff6=_0x4b27b1;if(!_0x4d82bb||_0x4d82bb==='json')return'text';if(_0x4d82bb===_0x188ff6(0xf5))return _0x188ff6(0xa8);return'text';}var HttpError=class extends Error{constructor(_0x175e8c){super(_0x175e8c),this['name']='HttpError';}};function createResponseError(_0x1f8535,_0x1d2141,_0x6b2d5a){const _0x5a094b=_0x4b27b1,_0x457726=_0x1f8535,_0x4caa5b='['+(_0x1d2141?.['method']||'GET')+']\x20'+_0x457726,_0x491d8e=_0x6b2d5a?_0x6b2d5a['statusCode']+'\x20'+(_0x6b2d5a['errMsg']||''):'<no\x20response>',_0x333340=_0x6b2d5a?JSON['stringify'](_0x6b2d5a['data']):_0x5a094b(0xe9),_0x56ae96=new HttpError(_0x4caa5b+':\x20'+_0x491d8e+(_0x6b2d5a['data']?'\x20'+_0x333340:''));for(const _0x32f468 of[_0x5a094b(0xae),_0x5a094b(0xc5),_0x5a094b(0xba),_0x5a094b(0xe7)])Object[_0x5a094b(0xb8)](_0x56ae96,_0x32f468,{'get'(){const _0x35f096=_0x5a094b,_0x634ae4={};return _0x634ae4['request']=_0x1f8535,_0x634ae4[_0x35f096(0xc5)]=_0x1d2141,_0x634ae4[_0x35f096(0xba)]=_0x6b2d5a,_0x634ae4[_0x35f096(0xe7)]=_0x6b2d5a['data'],_0x634ae4[_0x32f468];}});return _0x56ae96;}function normalizeError(_0x56fc01){const _0x18f76a=_0x4b27b1;if(_0x56fc01 instanceof Error)return _0x56fc01;return Object[_0x18f76a(0xcd)](new Error(_0x56fc01?.['errMsg']||_0x56fc01?.[_0x18f76a(0xec)]||'HTTP\x20request\x20failed'),{'cause':_0x56fc01});}async function callRequestHooks(_0x4e4d34,_0x110446){await _0x110446['onRequest']?.({'options':_0x110446,'resource':_0x4e4d34});}async function callRequestErrorHooks(_0x3256b3,_0xe1ca73,_0x5d67fc){await _0xe1ca73['onRequestError']?.({'options':_0xe1ca73,'resource':_0x3256b3,'error':_0x5d67fc});}async function callResponseHooks(_0x9b77b9,_0xa6d501,_0x54f5af){await _0xa6d501['onResponse']?.({'options':_0xa6d501,'resource':_0x9b77b9,'response':_0x54f5af});}async function callResponseErrorHooks(_0x370d15,_0x573148,_0xa50716){await _0x573148['onResponseError']?.({'options':_0x573148,'resource':_0x370d15,'response':_0xa50716});}async function refineResponse(_0xf3b5cc,_0x42fc6d){const _0x5b9b83=_0x4b27b1;if(_0x42fc6d[_0x5b9b83(0xa9)]==='json'||!_0x42fc6d[_0x5b9b83(0xa9)])return{..._0xf3b5cc,'data':await parseJSONResponse(_0xf3b5cc[_0x5b9b83(0xe7)],_0x42fc6d)};return _0xf3b5cc;}function parseJSONResponse(_0x90ff6a,_0x11df8c){const _0x1f42c4=_0x4b27b1;if(typeof _0x90ff6a!=='string')return _0x90ff6a;if(_0x11df8c['parseResponse'])return _0x11df8c[_0x1f42c4(0xab)](_0x90ff6a);return _0x90ff6a?JSON['parse'](_0x90ff6a):null;}function isResponseError(_0x5bc718){const _0x3c1671=_0x4b27b1,_0x4bf1eb=_0x3c1671(0xf4)in _0x5bc718?_0x5bc718['statusCode']:void 0x0;return typeof _0x4bf1eb===_0x3c1671(0xb4)&&(_0x4bf1eb<0xc8||_0x4bf1eb>=0x12c);}function _0x3c4a(){const _0x3a129d=['uploadFile','fileType','5604570OgByUr','3255835YLFaMX','4pZVFYT','aborted','timeout','onProgress','1818uyqVSn','downloadFile','options','entries','The\x20operation\x20was\x20aborted','name','16vYaLHN','signal','3408933oSHNqS','onRequest','assign','6024jNHjrk','37813UHOcqG','filePath','ignoreResponseError','onSuccess','enumerable','POST','abort','get','fail','AbortError','retryStatusCodes','raw','DELETE','GET','onHeadersReceived','download','catch','firstIpv4','success','includes','throwIfAborted','reason','http','query','data','removeEventListener','<no\x20response\x20body>','function','onabort','message','type','indexOf','onFail','tempFilePath','headers','PUT','flatMap','statusCode','arrayBuffer','url','enableHttpDNS','formData','createHttp','files','PATCH','_abort','arraybuffer','responseType','resolve','parseResponse','then','replace','request','enableHttp2','onResponse','upload','100eiAgKB','3824745OcWFgc','number','9334983qtHSxh','httpDNSServiceId','listeners','defineProperty','map','response'];_0x3c4a=function(){return _0x3a129d;};return _0x3c4a();}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set([_0x4b27b1(0xd4),_0x4b27b1(0xf2),_0x4b27b1(0xdb),_0x4b27b1(0xfb)]);async function withRetry(_0x5113c1,_0x5058d2){const _0x51425e=_0x4b27b1,_0x20a026=resolveRetryCount(_0x5113c1);for(let _0x24b172=0x0;;_0x24b172++)try{return await _0x5058d2();}catch(_0x3fa452){if(_0x24b172>=_0x20a026||!shouldRetry(_0x3fa452,_0x5113c1))throw _0x3fa452;await sleep(_0x5113c1['retryDelay']??0x0,_0x5113c1[_0x51425e(0xca)]);}}function resolveRetryCount(_0x410a35){const {retry:_0xd2a989}=_0x410a35;if(_0xd2a989===![])return 0x0;if(typeof _0xd2a989==='number')return _0xd2a989>0x0?_0xd2a989:0x0;return isPayloadMethod(_0x410a35['method'])?0x0:0x1;}function shouldRetry(_0x497acc,_0x4b18bc){const _0x2d0b26=_0x4b27b1;if(_0x4b18bc['signal']?.[_0x2d0b26(0xc0)]||isAbortError(_0x497acc))return![];const _0x33e3a8=_0x497acc?.['response']?.['statusCode'];if(typeof _0x33e3a8!=='number')return!![];return(_0x4b18bc[_0x2d0b26(0xd9)]??DEFAULT_RETRY_STATUS_CODES)['includes'](_0x33e3a8);}function isPayloadMethod(_0x2ff980){return!!_0x2ff980&&PAYLOAD_METHODS['has'](_0x2ff980['toUpperCase']());}function sleep(_0x9d1f89,_0xfe04ac){return new Promise((_0x440a16,_0x56df74)=>{const _0x5aa6d6=_0x691c;if(_0xfe04ac?.[_0x5aa6d6(0xc0)]){_0x56df74(_0xfe04ac[_0x5aa6d6(0xe4)]);return;}if(!(_0x9d1f89>0x0)){_0x440a16();return;}let _0x5f06f5=()=>{};const _0x11d278=setTimeout(()=>{_0x5f06f5(),_0x440a16();},_0x9d1f89);_0x5f06f5=onAbort(_0xfe04ac,()=>{const _0x4e9ac7=_0x5aa6d6;clearTimeout(_0x11d278),_0x56df74(_0xfe04ac[_0x4e9ac7(0xe4)]);});});}function buildURL(_0x11584a,_0x1d19f4){const _0x35380d=_0x4b27b1,_0x334315=joinURL(_0x1d19f4['baseURL'],_0x11584a),_0x64aa43=_0x1d19f4['query']??{},_0x53895c=Object['keys'](_0x64aa43)['filter'](_0x40106e=>_0x64aa43[_0x40106e]!==void 0x0)[_0x35380d(0xf3)](_0x588a7c=>{const _0x4be8e5=_0x35380d,_0x7cde4=_0x64aa43[_0x588a7c];return(Array['isArray'](_0x7cde4)?_0x7cde4:[_0x7cde4])[_0x4be8e5(0xb9)](_0x4ba5cf=>encodeURIComponent(_0x588a7c)+'='+encodeURIComponent(String(_0x4ba5cf)));})['join']('&');if(!_0x53895c)return _0x334315;return''+_0x334315+(_0x334315[_0x35380d(0xe2)]('?')?'&':'?')+_0x53895c;}function joinURL(_0x1ebead,_0x556133){const _0xc53475=_0x4b27b1;if(!_0x1ebead||isAbsoluteURL(_0x556133))return _0x556133;return _0x1ebead['replace'](/\/+$/,'')+'/'+_0x556133[_0xc53475(0xad)](/^\/+/,'');}function isAbsoluteURL(_0x48f36f){return/^[a-z][a-z\d+\-.]*:\/\//i['test'](_0x48f36f)||_0x48f36f['startsWith']('//');}function dispatchHttp(_0x45df2d,_0x21d0cd,_0x4e2470){const _0x37c580=buildURL(_0x21d0cd,_0x4e2470);return withRetry(_0x4e2470,()=>attemptRequest(_0x45df2d,_0x21d0cd,_0x37c580,_0x4e2470));}function attemptRequest(_0x3ee5d7,_0x3d69f5,_0x5bc6c7,_0x56fcff){const _0x3b47bc=_0x4b27b1,_0x360c44=!!_0x56fcff[_0x3b47bc(0xda)];return new Promise((_0x17a043,_0x124071)=>{const _0x4265bd=_0x3b47bc;let _0x19326f=![];const _0x539649=_0x47d819=>{if(_0x19326f)return;_0x19326f=!![],_0x47d819();},_0x3b4857=onAbort(_0x56fcff['signal'],()=>{_0x539649(()=>_0x124071(_0x56fcff['signal']['reason']));}),_0x581f7a=_0x351947=>{_0x3b4857(),_0x539649(_0x351947);};callRequestHooks(_0x3d69f5,_0x56fcff)['then'](()=>{if(_0x19326f)return;dispatch(_0x3ee5d7,_0x5bc6c7,_0x56fcff,{'onSuccess':_0x306c5e=>{const _0x4fa05f=_0x691c;Promise['resolve']()[_0x4fa05f(0xac)](()=>refineResponse(_0x306c5e,_0x56fcff))[_0x4fa05f(0xac)](async _0x26658b=>{const _0x20b22d=_0x4fa05f;if(isResponseError(_0x306c5e)){await callResponseErrorHooks(_0x3d69f5,_0x56fcff,_0x26658b);if(!_0x56fcff[_0x20b22d(0xd1)])throw createResponseError(_0x3d69f5,_0x56fcff,_0x26658b);}else await callResponseHooks(_0x3d69f5,_0x56fcff,_0x26658b);_0x581f7a(()=>_0x17a043(_0x360c44?_0x26658b:_0x26658b[_0x20b22d(0xe7)]));})[_0x4fa05f(0xdf)](_0x1c4998=>_0x581f7a(()=>_0x124071(_0x1c4998)));},'onFail':_0x3c053f=>{const _0x581181=_0x691c;Promise[_0x581181(0xaa)]()['then'](async()=>{const _0x4ba4bd=normalizeError(_0x3c053f);if(!isAbortError(_0x4ba4bd))await callRequestErrorHooks(_0x3d69f5,_0x56fcff,_0x4ba4bd);throw _0x4ba4bd;})[_0x581181(0xdf)](_0x1855c1=>_0x581f7a(()=>_0x124071(_0x1855c1)));}});})[_0x4265bd(0xdf)](async _0x541920=>{const _0x44f834=normalizeError(_0x541920);await callRequestErrorHooks(_0x3d69f5,_0x56fcff,_0x44f834),_0x581f7a(()=>_0x124071(_0x44f834));});});}const _0x362067={};_0x362067['method']=_0x4b27b1(0xdc),_0x362067['responseType']='json';const defaultConfig=_0x362067;function createHttp(_0x452a78={}){const _0x44dbf6=_0x4b27b1,_0x51a1ab=(_0x1e1409,_0x5c7312)=>{return dispatchHttp('request',_0x1e1409,mergeOptions(defaultConfig,_0x452a78,_0x5c7312));},_0x5c9a4f=(_0x51bc05,_0x456ccf)=>{const _0x3ea4c9=_0x691c,_0x4c1b9e={};return _0x4c1b9e['method']=_0x3ea4c9(0xd4),dispatchHttp('upload',_0x51bc05,mergeOptions(defaultConfig,_0x452a78,_0x456ccf,_0x4c1b9e));},_0x53bc73=(_0xa660f6,_0x14c12e)=>{const _0x5c3ed8=_0x691c,_0x358010={};return _0x358010['method']=_0x5c3ed8(0xdc),dispatchHttp('download',_0xa660f6,mergeOptions(defaultConfig,_0x452a78,_0x14c12e,_0x358010));},_0x4c26c3=_0x4b9722=>createHttp(mergeOptions(_0x452a78,_0x4b9722)),_0x1653bf={};return _0x1653bf['request']=_0x51a1ab,_0x1653bf[_0x44dbf6(0xb1)]=_0x5c9a4f,_0x1653bf['download']=_0x53bc73,_0x1653bf['create']=_0x4c26c3,_0x1653bf;}const http=createHttp(),_0x19dd53={};_0x19dd53['enumerable']=!![],_0x19dd53['get']=function(){return createHttp;},Object['defineProperty'](exports,_0x4b27b1(0xf9),_0x19dd53);const _0x1fdaca={};_0x1fdaca[_0x4b27b1(0xd3)]=!![],_0x1fdaca[_0x4b27b1(0xd6)]=function(){return createHttpAborter;},Object[_0x4b27b1(0xb8)](exports,'createHttpAborter',_0x1fdaca);const _0x5eae34={};_0x5eae34[_0x4b27b1(0xd3)]=!![],_0x5eae34[_0x4b27b1(0xd6)]=function(){return http;},Object[_0x4b27b1(0xb8)](exports,_0x4b27b1(0xe5),_0x5eae34);
|
package/dist/oiyo-GRTo5_GU.mjs
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @oiyo/framework v0.4.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 _0x13c5ca=_0x5589;(function(_0x5e47a1,_0x2a7e77){const _0xc4ce1e=_0x5589,_0x457533=_0x5e47a1();while(!![]){try{const _0x42b55d=parseInt(_0xc4ce1e(0xff))/0x1*(parseInt(_0xc4ce1e(0xe6))/0x2)+parseInt(_0xc4ce1e(0x12a))/0x3*(-parseInt(_0xc4ce1e(0x105))/0x4)+-parseInt(_0xc4ce1e(0xf4))/0x5+parseInt(_0xc4ce1e(0x109))/0x6*(-parseInt(_0xc4ce1e(0x10e))/0x7)+parseInt(_0xc4ce1e(0xed))/0x8*(parseInt(_0xc4ce1e(0x10f))/0x9)+parseInt(_0xc4ce1e(0xf6))/0xa+-parseInt(_0xc4ce1e(0x113))/0xb;if(_0x42b55d===_0x2a7e77)break;else _0x457533['push'](_0x457533['shift']());}catch(_0x506528){_0x457533['push'](_0x457533['shift']());}}}(_0x6b04,0x6778d));function createHttpAborter(){const _0x2250bc=_0x5589,_0x5e8d6f=new HttpAbortSignal();return{'signal':_0x5e8d6f,'abort':_0x2bf5ea=>_0x5e8d6f[_0x2250bc(0x115)](_0x2bf5ea)};}const ABORT_ERROR_NAME='AbortError';var AbortEmitter=class{['listeners']=[];[_0x13c5ca(0x11a)](_0x164d9a,_0x1d05ce){const _0x5e01da=_0x13c5ca;if(_0x164d9a!==_0x5e01da(0x114))return;this[_0x5e01da(0x11b)]['push'](_0x1d05ce);}['removeEventListener'](_0x284e04,_0x3033fc){if(_0x284e04!=='abort')return;const _0x8632a7=this['listeners']['indexOf'](_0x3033fc);if(_0x8632a7!==-0x1)this['listeners']['splice'](_0x8632a7,0x1);}[_0x13c5ca(0x122)](_0x445e3b){for(const _0x171099 of this['listeners']['slice']())_0x171099['call'](this,_0x445e3b);}},HttpAbortSignal=class extends AbortEmitter{[_0x13c5ca(0xf9)]=![];[_0x13c5ca(0x125)]=void 0x0;[_0x13c5ca(0x118)]=null;[_0x13c5ca(0x115)](_0x55fe78){const _0x347655=_0x13c5ca;if(this['aborted'])return;this['aborted']=!![],this['reason']=_0x55fe78===void 0x0?createAbortError():_0x55fe78;const _0x6df2dc={};_0x6df2dc[_0x347655(0xf7)]='abort';const _0x5e2685=_0x6df2dc;if(typeof this[_0x347655(0x118)]===_0x347655(0x102))this['onabort'](_0x5e2685);this[_0x347655(0x122)](_0x5e2685);}['throwIfAborted'](){const _0x31da0e=_0x13c5ca;if(this['aborted'])throw this[_0x31da0e(0x125)];}};function createAbortError(_0x3e65ef='The\x20operation\x20was\x20aborted'){const _0x4aabd4=_0x13c5ca,_0x311d73=new Error(_0x3e65ef);return _0x311d73[_0x4aabd4(0x119)]=ABORT_ERROR_NAME,_0x311d73;}function isAbortError(_0xbd9eed){const _0x44c86b=_0x13c5ca;return _0xbd9eed instanceof Error&&_0xbd9eed[_0x44c86b(0x119)]===ABORT_ERROR_NAME;}function onAbort(_0x534c81,_0x3cc267){const _0x46b61c=_0x13c5ca;if(!_0x534c81)return()=>{};if(_0x534c81[_0x46b61c(0xf9)])return _0x3cc267(),()=>{};return _0x534c81['addEventListener']('abort',_0x3cc267),()=>_0x534c81[_0x46b61c(0xfd)]('abort',_0x3cc267);}const HOOK_NAMES=['onRequest','onRequestError','onResponse',_0x13c5ca(0x111)];function mergeOptions(..._0x47f95d){const _0x846d01=_0x13c5ca,_0x2bfdbb={},_0x5f4e9b={};for(const _0x210e5c of _0x47f95d){if(!_0x210e5c)continue;for(const _0x2ab72a of HOOK_NAMES)collectHook(_0x5f4e9b,_0x2ab72a,_0x210e5c);const _0xc8d4c8=_0x2bfdbb['headers'],_0x352380=_0x2bfdbb['query'];Object[_0x846d01(0xf2)](_0x2bfdbb,_0x210e5c);const _0x2dae8c={..._0xc8d4c8,..._0x210e5c['headers']};_0x2bfdbb[_0x846d01(0xe1)]=_0x2dae8c;const _0xd45ea={..._0x352380,..._0x210e5c['query']};_0x2bfdbb['query']=_0xd45ea;}for(const [_0x42e382,_0x54f1e3]of Object[_0x846d01(0xfa)](_0x5f4e9b))Object[_0x846d01(0xf2)](_0x2bfdbb,{[_0x42e382]:async _0x517e64=>{for(const _0x1861f4 of _0x54f1e3)await _0x1861f4(_0x517e64);}});return _0x2bfdbb;}function collectHook(_0x579367,_0x54e18d,_0x596c35){const _0x2aaf38=_0x13c5ca,_0x1be4e3=_0x596c35[_0x54e18d];if(typeof _0x1be4e3!==_0x2aaf38(0x102))return;_0x579367[_0x54e18d]??=[],_0x579367[_0x54e18d]['push'](_0x1be4e3);}function dispatch(_0x495037,_0x34200b,_0x26afdb,_0x227677){const _0x502a3d=_0x13c5ca;let _0x561a3b;if(_0x495037==='upload')_0x561a3b=dispatchUpload(_0x34200b,_0x26afdb,_0x227677);else{if(_0x495037===_0x502a3d(0xe7))_0x561a3b=dispatchDownload(_0x34200b,_0x26afdb,_0x227677);else _0x561a3b=dispatchRequest(_0x34200b,_0x26afdb,_0x227677);}bindTask(_0x561a3b,_0x26afdb);}function bindTask(_0x2e6d7e,_0x226288){const _0x67deac=_0x13c5ca;onAbort(_0x226288[_0x67deac(0x117)],()=>_0x2e6d7e['abort']());if(typeof _0x226288[_0x67deac(0x104)]===_0x67deac(0x102))_0x2e6d7e['onHeadersReceived'](_0x226288[_0x67deac(0x104)]);const _0xc57548=_0x226288[_0x67deac(0xf3)];if(typeof _0xc57548===_0x67deac(0x102)&&_0x67deac(0xf8)in _0x2e6d7e)_0x2e6d7e[_0x67deac(0xf8)](_0xc57548);}function dispatchRequest(_0x43db67,_0x1802be,_0x18119c){const _0x103f0c=_0x13c5ca,_0x4de173={'url':_0x43db67,'method':_0x1802be[_0x103f0c(0x11f)],'header':_0x1802be[_0x103f0c(0xe1)],'data':_0x1802be[_0x103f0c(0xe3)]??{},'timeout':_0x1802be['timeout'],'dataType':_0x1802be[_0x103f0c(0x10c)]||'json','responseType':mappedResponseBodyType(_0x1802be[_0x103f0c(0xfc)]),'sslVerify':_0x1802be['sslVerify'],'withCredentials':_0x1802be['withCredentials'],'firstIpv4':_0x1802be[_0x103f0c(0x129)],'enableHttp2':_0x1802be['enableHttp2'],'enableQuic':_0x1802be[_0x103f0c(0x10a)],'enableCache':_0x1802be[_0x103f0c(0xec)],'enableHttpDNS':_0x1802be[_0x103f0c(0xea)],'httpDNSServiceId':_0x1802be['httpDNSServiceId'],'enableChunked':_0x1802be['enableChunked'],'forceCellularNetwork':_0x1802be['forceCellularNetwork'],'success':_0x18119c['onSuccess'],'fail':_0x18119c['onFail'],'complete':()=>{}};return uni['request'](_0x4de173);}function dispatchUpload(_0x2fdcff,_0x34c5c2,_0x2a6624){const _0x47e87f=_0x13c5ca,_0x4715d1={};_0x4715d1[_0x47e87f(0x108)]=_0x2fdcff,_0x4715d1['fileType']=_0x34c5c2[_0x47e87f(0x101)],_0x4715d1['file']=_0x34c5c2[_0x47e87f(0x110)],_0x4715d1['filePath']=_0x34c5c2['filePath'],_0x4715d1[_0x47e87f(0x119)]=_0x34c5c2[_0x47e87f(0x119)]??_0x47e87f(0x110),_0x4715d1['files']=_0x34c5c2['files'],_0x4715d1[_0x47e87f(0x107)]=_0x34c5c2[_0x47e87f(0xe1)],_0x4715d1['formData']=_0x34c5c2[_0x47e87f(0xe3)]??{},_0x4715d1['timeout']=_0x34c5c2[_0x47e87f(0xeb)],_0x4715d1[_0x47e87f(0x120)]=_0x2a6624['onSuccess'],_0x4715d1['fail']=_0x2a6624[_0x47e87f(0x12b)],_0x4715d1[_0x47e87f(0xfb)]=()=>{};const _0x495a14=_0x4715d1;return uni[_0x47e87f(0xf1)](_0x495a14);}function dispatchDownload(_0x4d75a3,_0x291b79,_0xfbc80b){const _0x31e4ff=_0x13c5ca,_0xbeb5f0={'url':_0x4d75a3,'header':_0x291b79['headers'],'timeout':_0x291b79[_0x31e4ff(0xeb)],'success':_0x3a4145=>{const _0x227f4e=_0x31e4ff,_0x52b332={..._0x3a4145};_0x52b332[_0x227f4e(0xe8)]={},_0x52b332[_0x227f4e(0xe8)]['tempFilePath']=_0x3a4145[_0x227f4e(0x112)],_0xfbc80b['onSuccess'](_0x52b332);},'fail':_0xfbc80b['onFail'],'complete':()=>{}};return uni['downloadFile'](_0xbeb5f0);}function mappedResponseBodyType(_0x1f1e46){const _0x5154f=_0x13c5ca;if(!_0x1f1e46||_0x1f1e46===_0x5154f(0x128))return _0x5154f(0xef);if(_0x1f1e46===_0x5154f(0x11d))return _0x5154f(0x10b);return'text';}var HttpError=class extends Error{constructor(_0x2a8af6){super(_0x2a8af6),this['name']='HttpError';}};function createResponseError(_0x36592a,_0x5ce813,_0x37a9df){const _0x2f4730=_0x13c5ca,_0xb85244=_0x36592a,_0x4a1556='['+(_0x5ce813?.['method']||_0x2f4730(0x127))+']\x20'+_0xb85244,_0x5c9d68=_0x37a9df?_0x37a9df['statusCode']+'\x20'+(_0x37a9df['errMsg']||''):'<no\x20response>',_0x13f13a=_0x37a9df?JSON[_0x2f4730(0xf0)](_0x37a9df['data']):'<no\x20response\x20body>',_0x51f235=new HttpError(_0x4a1556+':\x20'+_0x5c9d68+(_0x37a9df['data']?'\x20'+_0x13f13a:''));for(const _0x1a0796 of['request',_0x2f4730(0x116),_0x2f4730(0x121),'data'])Object[_0x2f4730(0xf5)](_0x51f235,_0x1a0796,{'get'(){const _0x3e599e=_0x2f4730,_0x10cc1c={};return _0x10cc1c['request']=_0x36592a,_0x10cc1c[_0x3e599e(0x116)]=_0x5ce813,_0x10cc1c[_0x3e599e(0x121)]=_0x37a9df,_0x10cc1c[_0x3e599e(0xe8)]=_0x37a9df[_0x3e599e(0xe8)],_0x10cc1c[_0x1a0796];}});return _0x51f235;}function normalizeError(_0x20e2b1){const _0x34c9e8=_0x13c5ca;if(_0x20e2b1 instanceof Error)return _0x20e2b1;return Object[_0x34c9e8(0xf2)](new Error(_0x20e2b1?.['errMsg']||_0x20e2b1?.['message']||'HTTP\x20request\x20failed'),{'cause':_0x20e2b1});}async function callRequestHooks(_0x5f3f7e,_0x1222aa){await _0x1222aa['onRequest']?.({'options':_0x1222aa,'resource':_0x5f3f7e});}async function callRequestErrorHooks(_0x17244f,_0x9e701d,_0x447714){await _0x9e701d['onRequestError']?.({'options':_0x9e701d,'resource':_0x17244f,'error':_0x447714});}async function callResponseHooks(_0x419b9b,_0x1b3d37,_0x589bce){await _0x1b3d37['onResponse']?.({'options':_0x1b3d37,'resource':_0x419b9b,'response':_0x589bce});}async function callResponseErrorHooks(_0x2babbc,_0x5bbf3a,_0x13ee51){await _0x5bbf3a['onResponseError']?.({'options':_0x5bbf3a,'resource':_0x2babbc,'response':_0x13ee51});}async function refineResponse(_0x1a7da6,_0x2766c9){const _0x1685e6=_0x13c5ca;if(_0x2766c9[_0x1685e6(0xfc)]===_0x1685e6(0x128)||!_0x2766c9[_0x1685e6(0xfc)])return{..._0x1a7da6,'data':await parseJSONResponse(_0x1a7da6[_0x1685e6(0xe8)],_0x2766c9)};return _0x1a7da6;}function _0x5589(_0x341ced,_0x43cef5){_0x341ced=_0x341ced-0xdf;const _0x6b0478=_0x6b04();let _0x5589c8=_0x6b0478[_0x341ced];return _0x5589c8;}function parseJSONResponse(_0x8079cd,_0x26d1a3){const _0x2c3523=_0x13c5ca;if(typeof _0x8079cd!==_0x2c3523(0xee))return _0x8079cd;if(_0x26d1a3['parseResponse'])return _0x26d1a3['parseResponse'](_0x8079cd);return _0x8079cd?JSON['parse'](_0x8079cd):null;}function isResponseError(_0x256265){const _0x6ee965=_0x13c5ca,_0x5ee0af='statusCode'in _0x256265?_0x256265[_0x6ee965(0xe5)]:void 0x0;return typeof _0x5ee0af==='number'&&(_0x5ee0af<0xc8||_0x5ee0af>=0x12c);}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set([_0x13c5ca(0xe9),'PUT',_0x13c5ca(0x10d),'PATCH']);async function withRetry(_0x2361a6,_0x201e2a){const _0x3fb015=_0x13c5ca,_0x3a6bd3=resolveRetryCount(_0x2361a6);for(let _0x1bf3d3=0x0;;_0x1bf3d3++)try{return await _0x201e2a();}catch(_0x3efac5){if(_0x1bf3d3>=_0x3a6bd3||!shouldRetry(_0x3efac5,_0x2361a6))throw _0x3efac5;await sleep(_0x2361a6[_0x3fb015(0xe0)]??0x0,_0x2361a6['signal']);}}function resolveRetryCount(_0x498eea){const _0xec103f=_0x13c5ca,{retry:_0x5887c1}=_0x498eea;if(_0x5887c1===![])return 0x0;if(typeof _0x5887c1===_0xec103f(0xe4))return _0x5887c1>0x0?_0x5887c1:0x0;return isPayloadMethod(_0x498eea[_0xec103f(0x11f)])?0x0:0x1;}function shouldRetry(_0x19d37d,_0x3c883b){const _0x24d33a=_0x13c5ca;if(_0x3c883b[_0x24d33a(0x117)]?.[_0x24d33a(0xf9)]||isAbortError(_0x19d37d))return![];const _0x2521a7=_0x19d37d?.[_0x24d33a(0x121)]?.[_0x24d33a(0xe5)];if(typeof _0x2521a7!=='number')return!![];return(_0x3c883b['retryStatusCodes']??DEFAULT_RETRY_STATUS_CODES)[_0x24d33a(0x100)](_0x2521a7);}function isPayloadMethod(_0x1dc087){const _0x3ccba5=_0x13c5ca;return!!_0x1dc087&&PAYLOAD_METHODS[_0x3ccba5(0x11e)](_0x1dc087[_0x3ccba5(0x123)]());}function sleep(_0x29db82,_0x1c7a3d){return new Promise((_0x4e0fe4,_0x48a0dc)=>{if(_0x1c7a3d?.['aborted']){_0x48a0dc(_0x1c7a3d['reason']);return;}if(!(_0x29db82>0x0)){_0x4e0fe4();return;}let _0x1503f6=()=>{};const _0x5da05b=setTimeout(()=>{_0x1503f6(),_0x4e0fe4();},_0x29db82);_0x1503f6=onAbort(_0x1c7a3d,()=>{clearTimeout(_0x5da05b),_0x48a0dc(_0x1c7a3d['reason']);});});}function buildURL(_0x2a8920,_0x16ec0d){const _0x2b4525=_0x13c5ca,_0x4858e1=joinURL(_0x16ec0d['baseURL'],_0x2a8920),_0x28caad=_0x16ec0d['query']??{},_0x4728e3=Object['keys'](_0x28caad)[_0x2b4525(0x124)](_0x5cb9a5=>_0x28caad[_0x5cb9a5]!==void 0x0)['flatMap'](_0x56593b=>{const _0x415238=_0x2b4525,_0x337761=_0x28caad[_0x56593b];return(Array['isArray'](_0x337761)?_0x337761:[_0x337761])[_0x415238(0x106)](_0x3ea0e0=>encodeURIComponent(_0x56593b)+'='+encodeURIComponent(String(_0x3ea0e0)));})[_0x2b4525(0x126)]('&');if(!_0x4728e3)return _0x4858e1;return''+_0x4858e1+(_0x4858e1['includes']('?')?'&':'?')+_0x4728e3;}function joinURL(_0x448747,_0x1a73c8){if(!_0x448747||isAbsoluteURL(_0x1a73c8))return _0x1a73c8;return _0x448747['replace'](/\/+$/,'')+'/'+_0x1a73c8['replace'](/^\/+/,'');}function _0x6b04(){const _0x46e537=['join','GET','json','firstIpv4','1627701XwJvQs','onFail','catch','retryDelay','headers','request','body','number','statusCode','564510BRhRMv','download','data','POST','enableHttpDNS','timeout','enableCache','1231480tGvvBW','string','text','stringify','uploadFile','assign','onProgress','2327725KSlECk','defineProperty','7471810FfYbgp','type','onProgressUpdate','aborted','entries','complete','responseType','removeEventListener','resolve','3cbTWhg','includes','fileType','function','raw','onHeadersReceived','4CkFdKY','map','header','url','4182PsCvGV','enableQuic','arraybuffer','dataType','DELETE','1624Dfqoql','9YxxqcO','file','onResponseError','tempFilePath','1696684FyCXrE','abort','_abort','options','signal','onabort','name','addEventListener','listeners','then','arrayBuffer','has','method','success','response','emit','toUpperCase','filter','reason'];_0x6b04=function(){return _0x46e537;};return _0x6b04();}function isAbsoluteURL(_0x300ed0){return/^[a-z][a-z\d+\-.]*:\/\//i['test'](_0x300ed0)||_0x300ed0['startsWith']('//');}function dispatchHttp(_0x12d348,_0xf3905d,_0x2bfc93){const _0x27010b=buildURL(_0xf3905d,_0x2bfc93);return withRetry(_0x2bfc93,()=>attemptRequest(_0x12d348,_0xf3905d,_0x27010b,_0x2bfc93));}function attemptRequest(_0x3dae99,_0x295d93,_0x1fd18c,_0x560950){const _0x221b7e=_0x13c5ca,_0x17fd23=!!_0x560950[_0x221b7e(0x103)];return new Promise((_0x42b8c5,_0x99aef3)=>{const _0x35a8ec=_0x221b7e;let _0x1bfd45=![];const _0x494beb=_0x3f41e4=>{if(_0x1bfd45)return;_0x1bfd45=!![],_0x3f41e4();},_0x5dc3e7=onAbort(_0x560950['signal'],()=>{const _0x1a157f=_0x5589;_0x494beb(()=>_0x99aef3(_0x560950[_0x1a157f(0x117)][_0x1a157f(0x125)]));}),_0x2cad32=_0x171e20=>{_0x5dc3e7(),_0x494beb(_0x171e20);};callRequestHooks(_0x295d93,_0x560950)[_0x35a8ec(0x11c)](()=>{if(_0x1bfd45)return;dispatch(_0x3dae99,_0x1fd18c,_0x560950,{'onSuccess':_0x158c1b=>{const _0x396e22=_0x5589;Promise['resolve']()[_0x396e22(0x11c)](()=>refineResponse(_0x158c1b,_0x560950))['then'](async _0x34297e=>{if(isResponseError(_0x158c1b)){await callResponseErrorHooks(_0x295d93,_0x560950,_0x34297e);if(!_0x560950['ignoreResponseError'])throw createResponseError(_0x295d93,_0x560950,_0x34297e);}else await callResponseHooks(_0x295d93,_0x560950,_0x34297e);_0x2cad32(()=>_0x42b8c5(_0x17fd23?_0x34297e:_0x34297e['data']));})[_0x396e22(0xdf)](_0x3a1e26=>_0x2cad32(()=>_0x99aef3(_0x3a1e26)));},'onFail':_0x4082b8=>{const _0x975bb=_0x5589;Promise[_0x975bb(0xfe)]()[_0x975bb(0x11c)](async()=>{const _0x32a5c1=normalizeError(_0x4082b8);if(!isAbortError(_0x32a5c1))await callRequestErrorHooks(_0x295d93,_0x560950,_0x32a5c1);throw _0x32a5c1;})[_0x975bb(0xdf)](_0x205ca7=>_0x2cad32(()=>_0x99aef3(_0x205ca7)));}});})['catch'](async _0x5e395d=>{const _0x5ac2fc=normalizeError(_0x5e395d);await callRequestErrorHooks(_0x295d93,_0x560950,_0x5ac2fc),_0x2cad32(()=>_0x99aef3(_0x5ac2fc));});});}const _0x521137={};_0x521137[_0x13c5ca(0x11f)]='GET',_0x521137['responseType']='json';const defaultConfig=_0x521137;function createHttp(_0x343224={}){const _0x578641=(_0xea1c7,_0x4c0018)=>{const _0x2e1a8c=_0x5589;return dispatchHttp(_0x2e1a8c(0xe2),_0xea1c7,mergeOptions(defaultConfig,_0x343224,_0x4c0018));},_0x302cd4=(_0x5ea02f,_0x866077)=>{const _0x5e2220=_0x5589,_0xdcec9a={};return _0xdcec9a['method']=_0x5e2220(0xe9),dispatchHttp('upload',_0x5ea02f,mergeOptions(defaultConfig,_0x343224,_0x866077,_0xdcec9a));},_0x4efc1f=(_0x1b4c67,_0x58786e)=>{const _0x345439=_0x5589,_0x5a0538={};return _0x5a0538['method']=_0x345439(0x127),dispatchHttp('download',_0x1b4c67,mergeOptions(defaultConfig,_0x343224,_0x58786e,_0x5a0538));},_0x493e3e=_0x3d43dc=>createHttp(mergeOptions(_0x343224,_0x3d43dc)),_0x5d6b05={};return _0x5d6b05['request']=_0x578641,_0x5d6b05['upload']=_0x302cd4,_0x5d6b05['download']=_0x4efc1f,_0x5d6b05['create']=_0x493e3e,_0x5d6b05;}const http=createHttp();export{http as n,createHttpAborter as r,createHttp as t};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @oiyo/framework v0.4.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
|
-
//#region \0rolldown/runtime.js
|
|
8
|
-
var __defProp = Object.defineProperty;
|
|
9
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
10
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
11
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
12
|
-
var __exportAll = (all, no_symbols) => {
|
|
13
|
-
let target = {};
|
|
14
|
-
for (var name in all) __defProp(target, name, {
|
|
15
|
-
get: all[name],
|
|
16
|
-
enumerable: true
|
|
17
|
-
});
|
|
18
|
-
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
19
|
-
return target;
|
|
20
|
-
};
|
|
21
|
-
var __copyProps = (to, from, except, desc) => {
|
|
22
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
23
|
-
key = keys[i];
|
|
24
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
25
|
-
get: ((k) => from[k]).bind(null, key),
|
|
26
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
return to;
|
|
30
|
-
};
|
|
31
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
32
|
-
//#endregion
|
|
33
|
-
export { __reExport as n, __exportAll as t };
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @oiyo/framework v0.4.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
|
-
//#region \0rolldown/runtime.js
|
|
8
|
-
var __defProp = Object.defineProperty;
|
|
9
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
10
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
11
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
12
|
-
var __exportAll = (all, no_symbols) => {
|
|
13
|
-
let target = {};
|
|
14
|
-
for (var name in all) __defProp(target, name, {
|
|
15
|
-
get: all[name],
|
|
16
|
-
enumerable: true
|
|
17
|
-
});
|
|
18
|
-
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
19
|
-
return target;
|
|
20
|
-
};
|
|
21
|
-
var __copyProps = (to, from, except, desc) => {
|
|
22
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
23
|
-
key = keys[i];
|
|
24
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
25
|
-
get: ((k) => from[k]).bind(null, key),
|
|
26
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
return to;
|
|
30
|
-
};
|
|
31
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
32
|
-
//#endregion
|
|
33
|
-
Object.defineProperty(exports, "__exportAll", {
|
|
34
|
-
enumerable: true,
|
|
35
|
-
get: function() {
|
|
36
|
-
return __exportAll;
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
Object.defineProperty(exports, "__reExport", {
|
|
40
|
-
enumerable: true,
|
|
41
|
-
get: function() {
|
|
42
|
-
return __reExport;
|
|
43
|
-
}
|
|
44
|
-
});
|