@oiyo/framework 0.4.3 → 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-FLtcYVnl.d.cts → index-C_vPDBDX.d.cts} +2 -2
- package/dist/{index-FLtcYVnl.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-Cgos8MRo.cjs +0 -7
- package/dist/oiyo-DnFYTx_L.mjs +0 -7
- package/dist/rolldown-runtime-C9xUVgZB.cjs +0 -44
- package/dist/rolldown-runtime-Cd2FXjOO.mjs +0 -33
|
@@ -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-Cgos8MRo.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-DnFYTx_L.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-C9xUVgZB.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-Cd2FXjOO.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-C9xUVgZB.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-Cd2FXjOO.mjs";
|
|
8
7
|
export * from "vue";
|
|
9
8
|
export {};
|
package/package.json
CHANGED
package/dist/oiyo-Cgos8MRo.cjs
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @oiyo/framework v0.4.3
|
|
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 _0x340281=_0x45b8;(function(_0x8ee86b,_0x3f4b2a){const _0x2386b4=_0x45b8,_0xc231df=_0x8ee86b();while(!![]){try{const _0x275f50=parseInt(_0x2386b4(0x179))/0x1*(-parseInt(_0x2386b4(0x1d4))/0x2)+-parseInt(_0x2386b4(0x1be))/0x3+parseInt(_0x2386b4(0x1af))/0x4*(-parseInt(_0x2386b4(0x17b))/0x5)+parseInt(_0x2386b4(0x1cb))/0x6+parseInt(_0x2386b4(0x17a))/0x7+-parseInt(_0x2386b4(0x1a0))/0x8*(-parseInt(_0x2386b4(0x186))/0x9)+-parseInt(_0x2386b4(0x199))/0xa*(-parseInt(_0x2386b4(0x1ba))/0xb);if(_0x275f50===_0x3f4b2a)break;else _0xc231df['push'](_0xc231df['shift']());}catch(_0x151b6a){_0xc231df['push'](_0xc231df['shift']());}}}(_0x4d1b,0x9ee2e));function _0x45b8(_0x451055,_0x191aac){_0x451055=_0x451055-0x178;const _0x4d1b96=_0x4d1b();let _0x45b81e=_0x4d1b96[_0x451055];return _0x45b81e;}function createHttpAborter(){const _0x451193=new HttpAbortSignal();return{'signal':_0x451193,'abort':_0x54bbd8=>_0x451193['_abort'](_0x54bbd8)};}const ABORT_ERROR_NAME='AbortError';var AbortEmitter=class{[_0x340281(0x18b)]=[];[_0x340281(0x183)](_0x319830,_0x24d386){if(_0x319830!=='abort')return;this['listeners']['push'](_0x24d386);}[_0x340281(0x19b)](_0x2729f5,_0x3af127){const _0x40e553=_0x340281;if(_0x2729f5!==_0x40e553(0x17d))return;const _0x37e59=this[_0x40e553(0x18b)][_0x40e553(0x191)](_0x3af127);if(_0x37e59!==-0x1)this['listeners'][_0x40e553(0x1b2)](_0x37e59,0x1);}[_0x340281(0x182)](_0x498706){const _0xdf00cd=_0x340281;for(const _0x204975 of this['listeners'][_0xdf00cd(0x1d1)]())_0x204975[_0xdf00cd(0x17f)](this,_0x498706);}},HttpAbortSignal=class extends AbortEmitter{[_0x340281(0x1bc)]=![];['reason']=void 0x0;['onabort']=null;['_abort'](_0x28479d){const _0x244d2b=_0x340281;if(this['aborted'])return;this[_0x244d2b(0x1bc)]=!![],this['reason']=_0x28479d===void 0x0?createAbortError():_0x28479d;const _0x9b4095={};_0x9b4095['type']='abort';const _0x3916d8=_0x9b4095;if(typeof this[_0x244d2b(0x1cc)]==='function')this[_0x244d2b(0x1cc)](_0x3916d8);this['emit'](_0x3916d8);}[_0x340281(0x180)](){const _0x535027=_0x340281;if(this[_0x535027(0x1bc)])throw this[_0x535027(0x1cf)];}};function createAbortError(_0x87a926='The\x20operation\x20was\x20aborted'){const _0x1ce90f=_0x340281,_0x56d99b=new Error(_0x87a926);return _0x56d99b[_0x1ce90f(0x197)]=ABORT_ERROR_NAME,_0x56d99b;}function isAbortError(_0xf6f50d){return _0xf6f50d instanceof Error&&_0xf6f50d['name']===ABORT_ERROR_NAME;}function onAbort(_0xfac279,_0x21e0ba){const _0x51a65c=_0x340281;if(!_0xfac279)return()=>{};if(_0xfac279['aborted'])return _0x21e0ba(),()=>{};return _0xfac279['addEventListener'](_0x51a65c(0x17d),_0x21e0ba),()=>_0xfac279['removeEventListener'](_0x51a65c(0x17d),_0x21e0ba);}const HOOK_NAMES=[_0x340281(0x178),_0x340281(0x1c1),'onResponse',_0x340281(0x1b8)];function _0x4d1b(){const _0x444b85=['9rPRuVI','HttpError','httpDNSServiceId','baseURL','fileType','listeners','parse','assign','upload','enableHttp2','onHeadersReceived','indexOf','string','DELETE','request','dataType','has','name','statusCode','1380430NvhfJM','tempFilePath','removeEventListener','get','url','retryStatusCodes','raw','2243280lTGzJm','complete','test','includes','then','number','success','responseType','method','create','push','options','HTTP\x20request\x20failed','query','fail','36KVbZjj','POST','ignoreResponseError','splice','onFail','body','map','arraybuffer','defineProperty','onResponseError','enumerable','55jcUedc','<no\x20response>','aborted','function','267705IbYBNz','signal','resolve','onRequestError','json','entries','enableHttpDNS','GET','errMsg','flatMap','formData','forceCellularNetwork','retryDelay','108054umkhpO','onabort','PATCH','text','reason','filePath','slice','data','downloadFile','3938PhjTRM','headers','files','onRequest','583epPbBj','8740060sVzNWu','194030dLdGLM','timeout','abort','file','call','throwIfAborted','catch','emit','addEventListener','onProgressUpdate','onSuccess'];_0x4d1b=function(){return _0x444b85;};return _0x4d1b();}function mergeOptions(..._0x57b7f9){const _0x20b68a=_0x340281,_0x443286={},_0x53226f={};for(const _0x2c7f3c of _0x57b7f9){if(!_0x2c7f3c)continue;for(const _0x566416 of HOOK_NAMES)collectHook(_0x53226f,_0x566416,_0x2c7f3c);const _0xf80fd9=_0x443286['headers'],_0x3f2544=_0x443286['query'];Object['assign'](_0x443286,_0x2c7f3c);const _0x441197={..._0xf80fd9,..._0x2c7f3c[_0x20b68a(0x1d5)]};_0x443286['headers']=_0x441197;const _0x1202fe={..._0x3f2544,..._0x2c7f3c['query']};_0x443286[_0x20b68a(0x1ad)]=_0x1202fe;}for(const [_0x379bd7,_0x45a92b]of Object[_0x20b68a(0x1c3)](_0x53226f))Object[_0x20b68a(0x18d)](_0x443286,{[_0x379bd7]:async _0x414928=>{for(const _0x353862 of _0x45a92b)await _0x353862(_0x414928);}});return _0x443286;}function collectHook(_0x5e380c,_0x26bab3,_0x14aa1b){const _0x1d70be=_0x340281,_0x54f91e=_0x14aa1b[_0x26bab3];if(typeof _0x54f91e!==_0x1d70be(0x1bd))return;_0x5e380c[_0x26bab3]??=[],_0x5e380c[_0x26bab3][_0x1d70be(0x1aa)](_0x54f91e);}function dispatch(_0x497502,_0x22ef25,_0x58b299,_0x52be83){const _0x5412f8=_0x340281;let _0x4d30db;if(_0x497502===_0x5412f8(0x18e))_0x4d30db=dispatchUpload(_0x22ef25,_0x58b299,_0x52be83);else{if(_0x497502==='download')_0x4d30db=dispatchDownload(_0x22ef25,_0x58b299,_0x52be83);else _0x4d30db=dispatchRequest(_0x22ef25,_0x58b299,_0x52be83);}bindTask(_0x4d30db,_0x58b299);}function bindTask(_0x3844dd,_0x3d2556){const _0x531ea2=_0x340281;onAbort(_0x3d2556['signal'],()=>_0x3844dd[_0x531ea2(0x17d)]());if(typeof _0x3d2556[_0x531ea2(0x190)]==='function')_0x3844dd[_0x531ea2(0x190)](_0x3d2556['onHeadersReceived']);const _0x3cd3e5=_0x3d2556['onProgress'];if(typeof _0x3cd3e5==='function'&&'onProgressUpdate'in _0x3844dd)_0x3844dd[_0x531ea2(0x184)](_0x3cd3e5);}function dispatchRequest(_0x19ad2f,_0x1f03fb,_0x5b9930){const _0x4f6359=_0x340281,_0x4de125={'url':_0x19ad2f,'method':_0x1f03fb['method'],'header':_0x1f03fb[_0x4f6359(0x1d5)],'data':_0x1f03fb['body']??{},'timeout':_0x1f03fb['timeout'],'dataType':_0x1f03fb[_0x4f6359(0x195)]||_0x4f6359(0x1c2),'responseType':mappedResponseBodyType(_0x1f03fb[_0x4f6359(0x1a7)]),'sslVerify':_0x1f03fb['sslVerify'],'withCredentials':_0x1f03fb['withCredentials'],'firstIpv4':_0x1f03fb['firstIpv4'],'enableHttp2':_0x1f03fb[_0x4f6359(0x18f)],'enableQuic':_0x1f03fb['enableQuic'],'enableCache':_0x1f03fb['enableCache'],'enableHttpDNS':_0x1f03fb[_0x4f6359(0x1c4)],'httpDNSServiceId':_0x1f03fb[_0x4f6359(0x188)],'enableChunked':_0x1f03fb['enableChunked'],'forceCellularNetwork':_0x1f03fb[_0x4f6359(0x1c9)],'success':_0x5b9930[_0x4f6359(0x185)],'fail':_0x5b9930['onFail'],'complete':()=>{}};return uni['request'](_0x4de125);}function dispatchUpload(_0x5a6c72,_0x2f69b0,_0x52e38a){const _0x1fcc0b=_0x340281,_0x33437f={};_0x33437f[_0x1fcc0b(0x19d)]=_0x5a6c72,_0x33437f[_0x1fcc0b(0x18a)]=_0x2f69b0[_0x1fcc0b(0x18a)],_0x33437f[_0x1fcc0b(0x17e)]=_0x2f69b0['file'],_0x33437f[_0x1fcc0b(0x1d0)]=_0x2f69b0['filePath'],_0x33437f[_0x1fcc0b(0x197)]=_0x2f69b0[_0x1fcc0b(0x197)]??_0x1fcc0b(0x17e),_0x33437f['files']=_0x2f69b0[_0x1fcc0b(0x1d6)],_0x33437f['header']=_0x2f69b0[_0x1fcc0b(0x1d5)],_0x33437f[_0x1fcc0b(0x1c8)]=_0x2f69b0[_0x1fcc0b(0x1b4)]??{},_0x33437f[_0x1fcc0b(0x17c)]=_0x2f69b0['timeout'],_0x33437f[_0x1fcc0b(0x1a6)]=_0x52e38a[_0x1fcc0b(0x185)],_0x33437f[_0x1fcc0b(0x1ae)]=_0x52e38a[_0x1fcc0b(0x1b3)],_0x33437f[_0x1fcc0b(0x1a1)]=()=>{};const _0x5bd5a0=_0x33437f;return uni['uploadFile'](_0x5bd5a0);}function dispatchDownload(_0x20c1ba,_0x15ee01,_0x48430c){const _0x467e6e=_0x340281,_0x1baf4f={'url':_0x20c1ba,'header':_0x15ee01[_0x467e6e(0x1d5)],'timeout':_0x15ee01[_0x467e6e(0x17c)],'success':_0x3eee05=>{const _0x22fd0b=_0x467e6e,_0xe0c8a={..._0x3eee05};_0xe0c8a[_0x22fd0b(0x1d2)]={},_0xe0c8a[_0x22fd0b(0x1d2)][_0x22fd0b(0x19a)]=_0x3eee05['tempFilePath'],_0x48430c[_0x22fd0b(0x185)](_0xe0c8a);},'fail':_0x48430c['onFail'],'complete':()=>{}};return uni[_0x467e6e(0x1d3)](_0x1baf4f);}function mappedResponseBodyType(_0x3aabb8){const _0xf2b992=_0x340281;if(!_0x3aabb8||_0x3aabb8===_0xf2b992(0x1c2))return _0xf2b992(0x1ce);if(_0x3aabb8==='arrayBuffer')return _0xf2b992(0x1b6);return'text';}var HttpError=class extends Error{constructor(_0x519886){const _0x78c47c=_0x340281;super(_0x519886),this['name']=_0x78c47c(0x187);}};function createResponseError(_0x1fc367,_0x2c63f9,_0x1f428c){const _0x3df35b=_0x340281,_0x546b9c=_0x1fc367,_0x1adc83='['+(_0x2c63f9?.[_0x3df35b(0x1a8)]||_0x3df35b(0x1c5))+']\x20'+_0x546b9c,_0x3f8f83=_0x1f428c?_0x1f428c[_0x3df35b(0x198)]+'\x20'+(_0x1f428c[_0x3df35b(0x1c6)]||''):_0x3df35b(0x1bb),_0xfb7eb8=_0x1f428c?JSON['stringify'](_0x1f428c['data']):'<no\x20response\x20body>',_0x13d6ab=new HttpError(_0x1adc83+':\x20'+_0x3f8f83+(_0x1f428c['data']?'\x20'+_0xfb7eb8:''));for(const _0x1df431 of['request',_0x3df35b(0x1ab),'response',_0x3df35b(0x1d2)])Object['defineProperty'](_0x13d6ab,_0x1df431,{'get'(){const _0x58b27e=_0x3df35b,_0x3ee215={};return _0x3ee215[_0x58b27e(0x194)]=_0x1fc367,_0x3ee215[_0x58b27e(0x1ab)]=_0x2c63f9,_0x3ee215['response']=_0x1f428c,_0x3ee215['data']=_0x1f428c['data'],_0x3ee215[_0x1df431];}});return _0x13d6ab;}function normalizeError(_0x457c38){const _0x72609a=_0x340281;if(_0x457c38 instanceof Error)return _0x457c38;return Object['assign'](new Error(_0x457c38?.[_0x72609a(0x1c6)]||_0x457c38?.['message']||_0x72609a(0x1ac)),{'cause':_0x457c38});}async function callRequestHooks(_0x3f005a,_0x36988a){await _0x36988a['onRequest']?.({'options':_0x36988a,'resource':_0x3f005a});}async function callRequestErrorHooks(_0x53d24a,_0x277a48,_0x41b381){await _0x277a48['onRequestError']?.({'options':_0x277a48,'resource':_0x53d24a,'error':_0x41b381});}async function callResponseHooks(_0x555e72,_0x2b7435,_0x261ff1){await _0x2b7435['onResponse']?.({'options':_0x2b7435,'resource':_0x555e72,'response':_0x261ff1});}async function callResponseErrorHooks(_0x3df3f7,_0x5c568d,_0x19b926){const _0x49d55b=_0x340281;await _0x5c568d[_0x49d55b(0x1b8)]?.({'options':_0x5c568d,'resource':_0x3df3f7,'response':_0x19b926});}async function refineResponse(_0x57440f,_0x511563){const _0x4e3787=_0x340281;if(_0x511563[_0x4e3787(0x1a7)]==='json'||!_0x511563['responseType'])return{..._0x57440f,'data':await parseJSONResponse(_0x57440f[_0x4e3787(0x1d2)],_0x511563)};return _0x57440f;}function parseJSONResponse(_0x33b5a8,_0x211024){const _0x21a0c2=_0x340281;if(typeof _0x33b5a8!==_0x21a0c2(0x192))return _0x33b5a8;if(_0x211024['parseResponse'])return _0x211024['parseResponse'](_0x33b5a8);return _0x33b5a8?JSON[_0x21a0c2(0x18c)](_0x33b5a8):null;}function isResponseError(_0x5883b3){const _0x593ef1=_0x340281,_0x356047='statusCode'in _0x5883b3?_0x5883b3[_0x593ef1(0x198)]:void 0x0;return typeof _0x356047==='number'&&(_0x356047<0xc8||_0x356047>=0x12c);}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set([_0x340281(0x1b0),'PUT',_0x340281(0x193),_0x340281(0x1cd)]);async function withRetry(_0x407edd,_0x266b33){const _0x2072a3=_0x340281,_0x449980=resolveRetryCount(_0x407edd);for(let _0x50761b=0x0;;_0x50761b++)try{return await _0x266b33();}catch(_0x31f3d4){if(_0x50761b>=_0x449980||!shouldRetry(_0x31f3d4,_0x407edd))throw _0x31f3d4;await sleep(_0x407edd[_0x2072a3(0x1ca)]??0x0,_0x407edd[_0x2072a3(0x1bf)]);}}function resolveRetryCount(_0x1b8e30){const _0x578082=_0x340281,{retry:_0x145b29}=_0x1b8e30;if(_0x145b29===![])return 0x0;if(typeof _0x145b29===_0x578082(0x1a5))return _0x145b29>0x0?_0x145b29:0x0;return isPayloadMethod(_0x1b8e30['method'])?0x0:0x1;}function shouldRetry(_0xdffd97,_0x5a2f0d){const _0xfd3f80=_0x340281;if(_0x5a2f0d['signal']?.['aborted']||isAbortError(_0xdffd97))return![];const _0x55f4fd=_0xdffd97?.['response']?.[_0xfd3f80(0x198)];if(typeof _0x55f4fd!=='number')return!![];return(_0x5a2f0d[_0xfd3f80(0x19e)]??DEFAULT_RETRY_STATUS_CODES)['includes'](_0x55f4fd);}function isPayloadMethod(_0x1c2948){const _0x1568b7=_0x340281;return!!_0x1c2948&&PAYLOAD_METHODS[_0x1568b7(0x196)](_0x1c2948['toUpperCase']());}function sleep(_0x5a946c,_0x43c351){return new Promise((_0x2c6364,_0x12bf3d)=>{const _0x52fdbe=_0x45b8;if(_0x43c351?.['aborted']){_0x12bf3d(_0x43c351[_0x52fdbe(0x1cf)]);return;}if(!(_0x5a946c>0x0)){_0x2c6364();return;}let _0x5790c0=()=>{};const _0x309446=setTimeout(()=>{_0x5790c0(),_0x2c6364();},_0x5a946c);_0x5790c0=onAbort(_0x43c351,()=>{clearTimeout(_0x309446),_0x12bf3d(_0x43c351['reason']);});});}function buildURL(_0x126b4e,_0x1de7f4){const _0x23b528=_0x340281,_0x4c2726=joinURL(_0x1de7f4[_0x23b528(0x189)],_0x126b4e),_0x464666=_0x1de7f4[_0x23b528(0x1ad)]??{},_0x23f534=Object['keys'](_0x464666)['filter'](_0x41bd2a=>_0x464666[_0x41bd2a]!==void 0x0)[_0x23b528(0x1c7)](_0xf8f14d=>{const _0x353c1e=_0x23b528,_0x8e0f6b=_0x464666[_0xf8f14d];return(Array['isArray'](_0x8e0f6b)?_0x8e0f6b:[_0x8e0f6b])[_0x353c1e(0x1b5)](_0x3b3572=>encodeURIComponent(_0xf8f14d)+'='+encodeURIComponent(String(_0x3b3572)));})['join']('&');if(!_0x23f534)return _0x4c2726;return''+_0x4c2726+(_0x4c2726[_0x23b528(0x1a3)]('?')?'&':'?')+_0x23f534;}function joinURL(_0x5b88a8,_0x21e67c){if(!_0x5b88a8||isAbsoluteURL(_0x21e67c))return _0x21e67c;return _0x5b88a8['replace'](/\/+$/,'')+'/'+_0x21e67c['replace'](/^\/+/,'');}function isAbsoluteURL(_0xaab675){const _0x3e6ee3=_0x340281;return/^[a-z][a-z\d+\-.]*:\/\//i[_0x3e6ee3(0x1a2)](_0xaab675)||_0xaab675['startsWith']('//');}function dispatchHttp(_0x3b4c5c,_0x180b24,_0x4b6d89){const _0x406cc1=buildURL(_0x180b24,_0x4b6d89);return withRetry(_0x4b6d89,()=>attemptRequest(_0x3b4c5c,_0x180b24,_0x406cc1,_0x4b6d89));}function attemptRequest(_0x21a329,_0x436a13,_0x560305,_0x29dfba){const _0x400498=_0x340281,_0x2f1abb=!!_0x29dfba[_0x400498(0x19f)];return new Promise((_0x34c0d9,_0x4afa6e)=>{const _0x1cada3=_0x400498;let _0x5e525=![];const _0x1117dc=_0x5c565f=>{if(_0x5e525)return;_0x5e525=!![],_0x5c565f();},_0x1f9885=onAbort(_0x29dfba[_0x1cada3(0x1bf)],()=>{const _0x31ea30=_0x1cada3;_0x1117dc(()=>_0x4afa6e(_0x29dfba[_0x31ea30(0x1bf)][_0x31ea30(0x1cf)]));}),_0x1913ca=_0x596420=>{_0x1f9885(),_0x1117dc(_0x596420);};callRequestHooks(_0x436a13,_0x29dfba)['then'](()=>{if(_0x5e525)return;dispatch(_0x21a329,_0x560305,_0x29dfba,{'onSuccess':_0xc56ef6=>{const _0x1f8689=_0x45b8;Promise[_0x1f8689(0x1c0)]()['then'](()=>refineResponse(_0xc56ef6,_0x29dfba))[_0x1f8689(0x1a4)](async _0x2f8a99=>{const _0x92e762=_0x1f8689;if(isResponseError(_0xc56ef6)){await callResponseErrorHooks(_0x436a13,_0x29dfba,_0x2f8a99);if(!_0x29dfba[_0x92e762(0x1b1)])throw createResponseError(_0x436a13,_0x29dfba,_0x2f8a99);}else await callResponseHooks(_0x436a13,_0x29dfba,_0x2f8a99);_0x1913ca(()=>_0x34c0d9(_0x2f1abb?_0x2f8a99:_0x2f8a99['data']));})['catch'](_0x1af57c=>_0x1913ca(()=>_0x4afa6e(_0x1af57c)));},'onFail':_0x532a81=>{Promise['resolve']()['then'](async()=>{const _0x57eda3=normalizeError(_0x532a81);if(!isAbortError(_0x57eda3))await callRequestErrorHooks(_0x436a13,_0x29dfba,_0x57eda3);throw _0x57eda3;})['catch'](_0x2a7173=>_0x1913ca(()=>_0x4afa6e(_0x2a7173)));}});})[_0x1cada3(0x181)](async _0x2bf3db=>{const _0x1e580a=normalizeError(_0x2bf3db);await callRequestErrorHooks(_0x436a13,_0x29dfba,_0x1e580a),_0x1913ca(()=>_0x4afa6e(_0x1e580a));});});}const _0x59ee5e={};_0x59ee5e['method']=_0x340281(0x1c5),_0x59ee5e[_0x340281(0x1a7)]=_0x340281(0x1c2);const defaultConfig=_0x59ee5e;function createHttp(_0x19f0b4={}){const _0x10d132=_0x340281,_0x283ddc=(_0x12bdc9,_0x3612cf)=>{return dispatchHttp('request',_0x12bdc9,mergeOptions(defaultConfig,_0x19f0b4,_0x3612cf));},_0x523720=(_0x5f54f8,_0x1a4840)=>{const _0xee22a4=_0x45b8,_0x443086={};return _0x443086[_0xee22a4(0x1a8)]='POST',dispatchHttp(_0xee22a4(0x18e),_0x5f54f8,mergeOptions(defaultConfig,_0x19f0b4,_0x1a4840,_0x443086));},_0x5cb28d=(_0x213f83,_0x3eb989)=>{const _0x3fdb96=_0x45b8,_0x465727={};return _0x465727['method']=_0x3fdb96(0x1c5),dispatchHttp('download',_0x213f83,mergeOptions(defaultConfig,_0x19f0b4,_0x3eb989,_0x465727));},_0x5ed4a1=_0x3c4193=>createHttp(mergeOptions(_0x19f0b4,_0x3c4193)),_0x4bb04f={};return _0x4bb04f['request']=_0x283ddc,_0x4bb04f[_0x10d132(0x18e)]=_0x523720,_0x4bb04f['download']=_0x5cb28d,_0x4bb04f[_0x10d132(0x1a9)]=_0x5ed4a1,_0x4bb04f;}const http=createHttp(),_0x1707e3={};_0x1707e3['enumerable']=!![],_0x1707e3[_0x340281(0x19c)]=function(){return createHttp;},Object['defineProperty'](exports,'createHttp',_0x1707e3);const _0x453154={};_0x453154[_0x340281(0x1b9)]=!![],_0x453154['get']=function(){return createHttpAborter;},Object['defineProperty'](exports,'createHttpAborter',_0x453154);const _0x9ed7e8={};_0x9ed7e8[_0x340281(0x1b9)]=!![],_0x9ed7e8['get']=function(){return http;},Object[_0x340281(0x1b7)](exports,'http',_0x9ed7e8);
|
package/dist/oiyo-DnFYTx_L.mjs
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @oiyo/framework v0.4.3
|
|
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 _0x1c890d=_0x5302;(function(_0x5a3057,_0x59e7b5){const _0x445192=_0x5302,_0x4ce97c=_0x5a3057();while(!![]){try{const _0x4162d9=parseInt(_0x445192(0x172))/0x1*(parseInt(_0x445192(0x161))/0x2)+-parseInt(_0x445192(0x14c))/0x3+-parseInt(_0x445192(0x171))/0x4+parseInt(_0x445192(0x16b))/0x5*(parseInt(_0x445192(0x191))/0x6)+parseInt(_0x445192(0x198))/0x7*(-parseInt(_0x445192(0x186))/0x8)+parseInt(_0x445192(0x179))/0x9+parseInt(_0x445192(0x189))/0xa;if(_0x4162d9===_0x59e7b5)break;else _0x4ce97c['push'](_0x4ce97c['shift']());}catch(_0x5ca243){_0x4ce97c['push'](_0x4ce97c['shift']());}}}(_0xb4ac,0xd4d24));function createHttpAborter(){const _0x10fd51=_0x5302,_0xcd3370=new HttpAbortSignal();return{'signal':_0xcd3370,'abort':_0x297a84=>_0xcd3370[_0x10fd51(0x183)](_0x297a84)};}const ABORT_ERROR_NAME='AbortError';var AbortEmitter=class{[_0x1c890d(0x15f)]=[];[_0x1c890d(0x18d)](_0x295dcd,_0x40772d){const _0x292f2b=_0x1c890d;if(_0x295dcd!=='abort')return;this[_0x292f2b(0x15f)][_0x292f2b(0x14a)](_0x40772d);}['removeEventListener'](_0x219c01,_0x43ff70){const _0x3a40ce=_0x1c890d;if(_0x219c01!==_0x3a40ce(0x167))return;const _0x25238e=this[_0x3a40ce(0x15f)][_0x3a40ce(0x166)](_0x43ff70);if(_0x25238e!==-0x1)this[_0x3a40ce(0x15f)]['splice'](_0x25238e,0x1);}['emit'](_0xd7b4a4){const _0x3e6902=_0x1c890d;for(const _0x1216b9 of this[_0x3e6902(0x15f)]['slice']())_0x1216b9[_0x3e6902(0x19a)](this,_0xd7b4a4);}},HttpAbortSignal=class extends AbortEmitter{['aborted']=![];['reason']=void 0x0;[_0x1c890d(0x152)]=null;[_0x1c890d(0x183)](_0x14012e){const _0x48cfb4=_0x1c890d;if(this['aborted'])return;this[_0x48cfb4(0x160)]=!![],this['reason']=_0x14012e===void 0x0?createAbortError():_0x14012e;const _0x2eeae6={};_0x2eeae6[_0x48cfb4(0x15c)]='abort';const _0x59c3f3=_0x2eeae6;if(typeof this['onabort']===_0x48cfb4(0x157))this[_0x48cfb4(0x152)](_0x59c3f3);this[_0x48cfb4(0x15e)](_0x59c3f3);}[_0x1c890d(0x16c)](){if(this['aborted'])throw this['reason'];}};function createAbortError(_0x22ee47=_0x1c890d(0x19d)){const _0x24e977=_0x1c890d,_0x421f26=new Error(_0x22ee47);return _0x421f26[_0x24e977(0x159)]=ABORT_ERROR_NAME,_0x421f26;}function isAbortError(_0x2d4c3f){const _0x5bd903=_0x1c890d;return _0x2d4c3f instanceof Error&&_0x2d4c3f[_0x5bd903(0x159)]===ABORT_ERROR_NAME;}function onAbort(_0x311535,_0x16088d){const _0x5b8bda=_0x1c890d;if(!_0x311535)return()=>{};if(_0x311535['aborted'])return _0x16088d(),()=>{};return _0x311535['addEventListener']('abort',_0x16088d),()=>_0x311535['removeEventListener'](_0x5b8bda(0x167),_0x16088d);}const HOOK_NAMES=['onRequest',_0x1c890d(0x156),_0x1c890d(0x158),'onResponseError'];function mergeOptions(..._0x64aa5e){const _0x2db16a=_0x1c890d,_0x55e2ea={},_0x1a2987={};for(const _0x31cd81 of _0x64aa5e){if(!_0x31cd81)continue;for(const _0x4530bd of HOOK_NAMES)collectHook(_0x1a2987,_0x4530bd,_0x31cd81);const _0x31dc50=_0x55e2ea['headers'],_0x128cc8=_0x55e2ea['query'];Object['assign'](_0x55e2ea,_0x31cd81);const _0x29efb4={..._0x31dc50,..._0x31cd81['headers']};_0x55e2ea[_0x2db16a(0x14d)]=_0x29efb4;const _0x27b963={..._0x128cc8,..._0x31cd81['query']};_0x55e2ea['query']=_0x27b963;}for(const [_0x5e460b,_0x2b4f39]of Object['entries'](_0x1a2987))Object['assign'](_0x55e2ea,{[_0x5e460b]:async _0x44327d=>{for(const _0x40233b of _0x2b4f39)await _0x40233b(_0x44327d);}});return _0x55e2ea;}function collectHook(_0xefc954,_0x3dc1d0,_0x297099){const _0x41df56=_0x1c890d,_0x3b93ad=_0x297099[_0x3dc1d0];if(typeof _0x3b93ad!=='function')return;_0xefc954[_0x3dc1d0]??=[],_0xefc954[_0x3dc1d0][_0x41df56(0x14a)](_0x3b93ad);}function dispatch(_0x1114fb,_0x27b2c8,_0x434576,_0x393ebb){const _0x124862=_0x1c890d;let _0x15fe26;if(_0x1114fb==='upload')_0x15fe26=dispatchUpload(_0x27b2c8,_0x434576,_0x393ebb);else{if(_0x1114fb===_0x124862(0x197))_0x15fe26=dispatchDownload(_0x27b2c8,_0x434576,_0x393ebb);else _0x15fe26=dispatchRequest(_0x27b2c8,_0x434576,_0x393ebb);}bindTask(_0x15fe26,_0x434576);}function bindTask(_0x547f82,_0x4a535a){const _0x4a8668=_0x1c890d;onAbort(_0x4a535a[_0x4a8668(0x19c)],()=>_0x547f82[_0x4a8668(0x167)]());if(typeof _0x4a535a['onHeadersReceived']==='function')_0x547f82[_0x4a8668(0x163)](_0x4a535a[_0x4a8668(0x163)]);const _0x3db5c8=_0x4a535a[_0x4a8668(0x16d)];if(typeof _0x3db5c8==='function'&&_0x4a8668(0x169)in _0x547f82)_0x547f82[_0x4a8668(0x169)](_0x3db5c8);}function dispatchRequest(_0x44ed76,_0x2cfc5d,_0x2e7b80){const _0x27ea79=_0x1c890d,_0x4ddc7e={'url':_0x44ed76,'method':_0x2cfc5d[_0x27ea79(0x14f)],'header':_0x2cfc5d['headers'],'data':_0x2cfc5d['body']??{},'timeout':_0x2cfc5d['timeout'],'dataType':_0x2cfc5d['dataType']||_0x27ea79(0x195),'responseType':mappedResponseBodyType(_0x2cfc5d['responseType']),'sslVerify':_0x2cfc5d['sslVerify'],'withCredentials':_0x2cfc5d[_0x27ea79(0x148)],'firstIpv4':_0x2cfc5d[_0x27ea79(0x188)],'enableHttp2':_0x2cfc5d['enableHttp2'],'enableQuic':_0x2cfc5d['enableQuic'],'enableCache':_0x2cfc5d[_0x27ea79(0x17a)],'enableHttpDNS':_0x2cfc5d['enableHttpDNS'],'httpDNSServiceId':_0x2cfc5d[_0x27ea79(0x165)],'enableChunked':_0x2cfc5d[_0x27ea79(0x17b)],'forceCellularNetwork':_0x2cfc5d['forceCellularNetwork'],'success':_0x2e7b80['onSuccess'],'fail':_0x2e7b80[_0x27ea79(0x16a)],'complete':()=>{}};return uni['request'](_0x4ddc7e);}function dispatchUpload(_0x4cbeec,_0x329033,_0x5f23e2){const _0x573546=_0x1c890d,_0x191e9f={};_0x191e9f[_0x573546(0x17c)]=_0x4cbeec,_0x191e9f[_0x573546(0x19b)]=_0x329033[_0x573546(0x19b)],_0x191e9f[_0x573546(0x162)]=_0x329033[_0x573546(0x162)],_0x191e9f[_0x573546(0x154)]=_0x329033['filePath'],_0x191e9f['name']=_0x329033['name']??'file',_0x191e9f['files']=_0x329033[_0x573546(0x150)],_0x191e9f['header']=_0x329033['headers'],_0x191e9f[_0x573546(0x16f)]=_0x329033[_0x573546(0x181)]??{},_0x191e9f['timeout']=_0x329033[_0x573546(0x180)],_0x191e9f[_0x573546(0x146)]=_0x5f23e2['onSuccess'],_0x191e9f['fail']=_0x5f23e2['onFail'],_0x191e9f['complete']=()=>{};const _0x2a8300=_0x191e9f;return uni['uploadFile'](_0x2a8300);}function dispatchDownload(_0x3bae41,_0x42af7f,_0x596175){const _0x50b141=_0x1c890d,_0x26737d={'url':_0x3bae41,'header':_0x42af7f[_0x50b141(0x14d)],'timeout':_0x42af7f['timeout'],'success':_0x3e7a9d=>{const _0x4cca60=_0x50b141,_0x1fbd56={..._0x3e7a9d};_0x1fbd56[_0x4cca60(0x176)]={},_0x1fbd56[_0x4cca60(0x176)]['tempFilePath']=_0x3e7a9d[_0x4cca60(0x15b)],_0x596175['onSuccess'](_0x1fbd56);},'fail':_0x596175['onFail'],'complete':()=>{}};return uni[_0x50b141(0x14b)](_0x26737d);}function mappedResponseBodyType(_0x3e26ec){const _0x3ba734=_0x1c890d;if(!_0x3e26ec||_0x3e26ec==='json')return'text';if(_0x3e26ec==='arrayBuffer')return'arraybuffer';return _0x3ba734(0x168);}var HttpError=class extends Error{constructor(_0x52a8e3){const _0x250dcc=_0x1c890d;super(_0x52a8e3),this[_0x250dcc(0x159)]=_0x250dcc(0x149);}};function createResponseError(_0x2b0f38,_0x1788f9,_0xb24ebd){const _0x17fafb=_0x1c890d,_0x29ab3c=_0x2b0f38,_0x2921ff='['+(_0x1788f9?.['method']||'GET')+']\x20'+_0x29ab3c,_0x301dee=_0xb24ebd?_0xb24ebd['statusCode']+'\x20'+(_0xb24ebd[_0x17fafb(0x17f)]||''):'<no\x20response>',_0x22c04c=_0xb24ebd?JSON[_0x17fafb(0x184)](_0xb24ebd[_0x17fafb(0x176)]):_0x17fafb(0x18a),_0x440cc2=new HttpError(_0x2921ff+':\x20'+_0x301dee+(_0xb24ebd[_0x17fafb(0x176)]?'\x20'+_0x22c04c:''));for(const _0x3dbfe4 of['request',_0x17fafb(0x193),_0x17fafb(0x151),'data'])Object['defineProperty'](_0x440cc2,_0x3dbfe4,{'get'(){const _0x1a11b0=_0x17fafb,_0x14f24b={};return _0x14f24b['request']=_0x2b0f38,_0x14f24b[_0x1a11b0(0x193)]=_0x1788f9,_0x14f24b['response']=_0xb24ebd,_0x14f24b[_0x1a11b0(0x176)]=_0xb24ebd['data'],_0x14f24b[_0x3dbfe4];}});return _0x440cc2;}function normalizeError(_0x314efa){const _0x178268=_0x1c890d;if(_0x314efa instanceof Error)return _0x314efa;return Object[_0x178268(0x14e)](new Error(_0x314efa?.['errMsg']||_0x314efa?.['message']||_0x178268(0x18e)),{'cause':_0x314efa});}async function callRequestHooks(_0xe7dc5a,_0x127c10){await _0x127c10['onRequest']?.({'options':_0x127c10,'resource':_0xe7dc5a});}async function callRequestErrorHooks(_0x2dc51f,_0x5c6495,_0x2c2a71){await _0x5c6495['onRequestError']?.({'options':_0x5c6495,'resource':_0x2dc51f,'error':_0x2c2a71});}async function callResponseHooks(_0x5af5a0,_0x25733a,_0x523bee){await _0x25733a['onResponse']?.({'options':_0x25733a,'resource':_0x5af5a0,'response':_0x523bee});}async function callResponseErrorHooks(_0x5bea6e,_0x7cf89a,_0x1a42c0){const _0x5a9a8b=_0x1c890d;await _0x7cf89a[_0x5a9a8b(0x18f)]?.({'options':_0x7cf89a,'resource':_0x5bea6e,'response':_0x1a42c0});}async function refineResponse(_0x197748,_0x4a2aa0){const _0x3e75b4=_0x1c890d;if(_0x4a2aa0['responseType']==='json'||!_0x4a2aa0[_0x3e75b4(0x17d)])return{..._0x197748,'data':await parseJSONResponse(_0x197748[_0x3e75b4(0x176)],_0x4a2aa0)};return _0x197748;}function parseJSONResponse(_0xcb6fea,_0x3f8219){const _0x45cb67=_0x1c890d;if(typeof _0xcb6fea!==_0x45cb67(0x17e))return _0xcb6fea;if(_0x3f8219[_0x45cb67(0x187)])return _0x3f8219[_0x45cb67(0x187)](_0xcb6fea);return _0xcb6fea?JSON[_0x45cb67(0x153)](_0xcb6fea):null;}function isResponseError(_0x2d9638){const _0x268a64='statusCode'in _0x2d9638?_0x2d9638['statusCode']:void 0x0;return typeof _0x268a64==='number'&&(_0x268a64<0xc8||_0x268a64>=0x12c);}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set([_0x1c890d(0x170),'PUT','DELETE','PATCH']);async function withRetry(_0x133c05,_0x4c9375){const _0x29d6b8=_0x1c890d,_0x5ccc77=resolveRetryCount(_0x133c05);for(let _0xe9c92b=0x0;;_0xe9c92b++)try{return await _0x4c9375();}catch(_0x8a4fd7){if(_0xe9c92b>=_0x5ccc77||!shouldRetry(_0x8a4fd7,_0x133c05))throw _0x8a4fd7;await sleep(_0x133c05['retryDelay']??0x0,_0x133c05[_0x29d6b8(0x19c)]);}}function resolveRetryCount(_0x42e03f){const _0x3a937c=_0x1c890d,{retry:_0x346ff3}=_0x42e03f;if(_0x346ff3===![])return 0x0;if(typeof _0x346ff3===_0x3a937c(0x173))return _0x346ff3>0x0?_0x346ff3:0x0;return isPayloadMethod(_0x42e03f[_0x3a937c(0x14f)])?0x0:0x1;}function shouldRetry(_0x2bd43e,_0x1ef539){const _0x2c3174=_0x1c890d;if(_0x1ef539['signal']?.['aborted']||isAbortError(_0x2bd43e))return![];const _0x263181=_0x2bd43e?.[_0x2c3174(0x151)]?.[_0x2c3174(0x190)];if(typeof _0x263181!==_0x2c3174(0x173))return!![];return(_0x1ef539[_0x2c3174(0x175)]??DEFAULT_RETRY_STATUS_CODES)[_0x2c3174(0x196)](_0x263181);}function _0x5302(_0x3b83a0,_0x3bd293){_0x3b83a0=_0x3b83a0-0x146;const _0xb4ac9a=_0xb4ac();let _0x53026c=_0xb4ac9a[_0x3b83a0];return _0x53026c;}function isPayloadMethod(_0x3f26cd){const _0x24793d=_0x1c890d;return!!_0x3f26cd&&PAYLOAD_METHODS[_0x24793d(0x18b)](_0x3f26cd[_0x24793d(0x194)]());}function sleep(_0x2c0777,_0x13fa3a){return new Promise((_0x41864a,_0x5b10aa)=>{const _0x16cead=_0x5302;if(_0x13fa3a?.['aborted']){_0x5b10aa(_0x13fa3a[_0x16cead(0x182)]);return;}if(!(_0x2c0777>0x0)){_0x41864a();return;}let _0x30b3e7=()=>{};const _0x549276=setTimeout(()=>{_0x30b3e7(),_0x41864a();},_0x2c0777);_0x30b3e7=onAbort(_0x13fa3a,()=>{clearTimeout(_0x549276),_0x5b10aa(_0x13fa3a['reason']);});});}function _0xb4ac(){const _0x40eedd=['text','onProgressUpdate','onFail','4833385pwxgyi','throwIfAborted','onProgress','GET','formData','POST','4890204MqJCng','1896ruZiyn','number','catch','retryStatusCodes','data','join','resolve','6161004tpwtMm','enableCache','enableChunked','url','responseType','string','errMsg','timeout','body','reason','_abort','stringify','create','128zytajU','parseResponse','firstIpv4','10164000RQMxLu','<no\x20response\x20body>','has','ignoreResponseError','addEventListener','HTTP\x20request\x20failed','onResponseError','statusCode','6OYCMXp','replace','options','toUpperCase','json','includes','download','448308mEkZgZ','test','call','fileType','signal','The\x20operation\x20was\x20aborted','success','isArray','withCredentials','HttpError','push','downloadFile','602658Viuxzi','headers','assign','method','files','response','onabort','parse','filePath','flatMap','onRequestError','function','onResponse','name','then','tempFilePath','type','raw','emit','listeners','aborted','688oqHbtH','file','onHeadersReceived','request','httpDNSServiceId','indexOf','abort'];_0xb4ac=function(){return _0x40eedd;};return _0xb4ac();}function buildURL(_0x3490f3,_0x361b39){const _0x21064b=_0x1c890d,_0x3028fa=joinURL(_0x361b39['baseURL'],_0x3490f3),_0x59fe06=_0x361b39['query']??{},_0x56f490=Object['keys'](_0x59fe06)['filter'](_0x284f61=>_0x59fe06[_0x284f61]!==void 0x0)[_0x21064b(0x155)](_0x58373f=>{const _0x111237=_0x21064b,_0x1d6a87=_0x59fe06[_0x58373f];return(Array[_0x111237(0x147)](_0x1d6a87)?_0x1d6a87:[_0x1d6a87])['map'](_0x17b8da=>encodeURIComponent(_0x58373f)+'='+encodeURIComponent(String(_0x17b8da)));})[_0x21064b(0x177)]('&');if(!_0x56f490)return _0x3028fa;return''+_0x3028fa+(_0x3028fa['includes']('?')?'&':'?')+_0x56f490;}function joinURL(_0x4319f6,_0x4f86a8){const _0x4b10f0=_0x1c890d;if(!_0x4319f6||isAbsoluteURL(_0x4f86a8))return _0x4f86a8;return _0x4319f6['replace'](/\/+$/,'')+'/'+_0x4f86a8[_0x4b10f0(0x192)](/^\/+/,'');}function isAbsoluteURL(_0x147ba7){const _0x106364=_0x1c890d;return/^[a-z][a-z\d+\-.]*:\/\//i[_0x106364(0x199)](_0x147ba7)||_0x147ba7['startsWith']('//');}function dispatchHttp(_0x4b9fa7,_0x1eb423,_0x2b1f8b){const _0x5b2510=buildURL(_0x1eb423,_0x2b1f8b);return withRetry(_0x2b1f8b,()=>attemptRequest(_0x4b9fa7,_0x1eb423,_0x5b2510,_0x2b1f8b));}function attemptRequest(_0x12a51e,_0x504910,_0x11869c,_0x2577a9){const _0x4df9de=_0x1c890d,_0x5d4916=!!_0x2577a9[_0x4df9de(0x15d)];return new Promise((_0x432e95,_0x60c66c)=>{const _0x5e1744=_0x4df9de;let _0x4dfd73=![];const _0x1b38ce=_0x4b22b2=>{if(_0x4dfd73)return;_0x4dfd73=!![],_0x4b22b2();},_0x40d732=onAbort(_0x2577a9[_0x5e1744(0x19c)],()=>{const _0xa7e851=_0x5e1744;_0x1b38ce(()=>_0x60c66c(_0x2577a9[_0xa7e851(0x19c)]['reason']));}),_0x5c0832=_0x291680=>{_0x40d732(),_0x1b38ce(_0x291680);};callRequestHooks(_0x504910,_0x2577a9)['then'](()=>{if(_0x4dfd73)return;dispatch(_0x12a51e,_0x11869c,_0x2577a9,{'onSuccess':_0x5df624=>{Promise['resolve']()['then'](()=>refineResponse(_0x5df624,_0x2577a9))['then'](async _0x2e19c3=>{const _0x56ebc7=_0x5302;if(isResponseError(_0x5df624)){await callResponseErrorHooks(_0x504910,_0x2577a9,_0x2e19c3);if(!_0x2577a9[_0x56ebc7(0x18c)])throw createResponseError(_0x504910,_0x2577a9,_0x2e19c3);}else await callResponseHooks(_0x504910,_0x2577a9,_0x2e19c3);_0x5c0832(()=>_0x432e95(_0x5d4916?_0x2e19c3:_0x2e19c3[_0x56ebc7(0x176)]));})['catch'](_0x5bb099=>_0x5c0832(()=>_0x60c66c(_0x5bb099)));},'onFail':_0x5c3efb=>{const _0x1f3cef=_0x5302;Promise[_0x1f3cef(0x178)]()[_0x1f3cef(0x15a)](async()=>{const _0x3d159e=normalizeError(_0x5c3efb);if(!isAbortError(_0x3d159e))await callRequestErrorHooks(_0x504910,_0x2577a9,_0x3d159e);throw _0x3d159e;})[_0x1f3cef(0x174)](_0x9f21e8=>_0x5c0832(()=>_0x60c66c(_0x9f21e8)));}});})[_0x5e1744(0x174)](async _0x386558=>{const _0x2de6cf=normalizeError(_0x386558);await callRequestErrorHooks(_0x504910,_0x2577a9,_0x2de6cf),_0x5c0832(()=>_0x60c66c(_0x2de6cf));});});}const _0x5ebd44={};_0x5ebd44[_0x1c890d(0x14f)]=_0x1c890d(0x16e),_0x5ebd44[_0x1c890d(0x17d)]='json';const defaultConfig=_0x5ebd44;function createHttp(_0x11c715={}){const _0x273785=_0x1c890d,_0x115456=(_0x223ab1,_0x2e24c5)=>{const _0x542c42=_0x5302;return dispatchHttp(_0x542c42(0x164),_0x223ab1,mergeOptions(defaultConfig,_0x11c715,_0x2e24c5));},_0x542003=(_0x56b3a3,_0x34f316)=>{const _0x4e1792=_0x5302,_0x203ac2={};return _0x203ac2['method']=_0x4e1792(0x170),dispatchHttp('upload',_0x56b3a3,mergeOptions(defaultConfig,_0x11c715,_0x34f316,_0x203ac2));},_0x4e71c0=(_0x3d16b1,_0x4e1827)=>{const _0xe118c0={};return _0xe118c0['method']='GET',dispatchHttp('download',_0x3d16b1,mergeOptions(defaultConfig,_0x11c715,_0x4e1827,_0xe118c0));},_0x5291f0=_0x59aa0c=>createHttp(mergeOptions(_0x11c715,_0x59aa0c)),_0x50685c={};return _0x50685c['request']=_0x115456,_0x50685c['upload']=_0x542003,_0x50685c[_0x273785(0x197)]=_0x4e71c0,_0x50685c[_0x273785(0x185)]=_0x5291f0,_0x50685c;}const http=createHttp();export{http as n,createHttpAborter as r,createHttp as t};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @oiyo/framework v0.4.3
|
|
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
|
-
});
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @oiyo/framework v0.4.3
|
|
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 };
|