@oiyo/framework 0.4.2 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.2
2
+ * @oiyo/framework v0.4.3
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.2
2
+ * @oiyo/framework v0.4.3
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
package/dist/index.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @oiyo/framework v0.4.2
2
+ * @oiyo/framework v0.4.3
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-CrmOzWpZ.cjs");
9
- const require_oiyo = require("./oiyo-BS1ESthW.cjs");
8
+ require("./rolldown-runtime-C9xUVgZB.cjs");
9
+ const require_oiyo = require("./oiyo-Cgos8MRo.cjs");
10
10
  require("./uni.cjs");
11
11
  require("./vue.cjs");
12
12
  //#endregion
package/dist/index.d.cts CHANGED
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @oiyo/framework v0.4.2
2
+ * @oiyo/framework v0.4.3
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-CmD0iXcE.cjs";
7
+ import { a as HttpDownloadResponse, c as HttpCommonOptions, d as HttpRequestOptions, f as HttpUploadOptions, i as HttpError, l as HttpDownloadOptions, m as createHttpAborter, n as http, o as HttpRequestResponse, p as ResponseBodyType, r as HttpConfig, s as HttpUploadResponse, t as createHttp, u as HttpOptions } from "./index-FLtcYVnl.cjs";
8
8
  export * from "@dcloudio/uni-app";
9
9
  export * from "vue";
10
10
 
package/dist/index.d.mts CHANGED
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @oiyo/framework v0.4.2
2
+ * @oiyo/framework v0.4.3
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-CmD0iXcE.mjs";
7
+ import { a as HttpDownloadResponse, c as HttpCommonOptions, d as HttpRequestOptions, f as HttpUploadOptions, i as HttpError, l as HttpDownloadOptions, m as createHttpAborter, n as http, o as HttpRequestResponse, p as ResponseBodyType, r as HttpConfig, s as HttpUploadResponse, t as createHttp, u as HttpOptions } from "./index-FLtcYVnl.mjs";
8
8
  export * from "@dcloudio/uni-app";
9
9
  export * from "vue";
10
10
 
package/dist/index.mjs CHANGED
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @oiyo/framework v0.4.2
2
+ * @oiyo/framework v0.4.3
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-D0eOKGL5.mjs";
8
- import { n as http, r as createHttpAborter, t as createHttp } from "./oiyo-CQlUPoLW.mjs";
7
+ import "./rolldown-runtime-Cd2FXjOO.mjs";
8
+ import { n as http, r as createHttpAborter, t as createHttp } from "./oiyo-DnFYTx_L.mjs";
9
9
  import "./uni.mjs";
10
10
  import "./vue.mjs";
11
11
  export * from "@dcloudio/uni-app";
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @oiyo/framework v0.4.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);
@@ -0,0 +1,7 @@
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};
package/dist/oiyo.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @oiyo/framework v0.4.2
2
+ * @oiyo/framework v0.4.3
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-BS1ESthW.cjs");
8
+ const require_oiyo = require("./oiyo-Cgos8MRo.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
2
+ * @oiyo/framework v0.4.3
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-CmD0iXcE.cjs";
7
+ import { a as HttpDownloadResponse, c as HttpCommonOptions, d as HttpRequestOptions, f as HttpUploadOptions, i as HttpError, l as HttpDownloadOptions, m as createHttpAborter, n as http, o as HttpRequestResponse, p as ResponseBodyType, r as HttpConfig, s as HttpUploadResponse, t as createHttp, u as HttpOptions } from "./index-FLtcYVnl.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
2
+ * @oiyo/framework v0.4.3
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-CmD0iXcE.mjs";
7
+ import { a as HttpDownloadResponse, c as HttpCommonOptions, d as HttpRequestOptions, f as HttpUploadOptions, i as HttpError, l as HttpDownloadOptions, m as createHttpAborter, n as http, o as HttpRequestResponse, p as ResponseBodyType, r as HttpConfig, s as HttpUploadResponse, t as createHttp, u as HttpOptions } from "./index-FLtcYVnl.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
2
+ * @oiyo/framework v0.4.3
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-CQlUPoLW.mjs";
7
+ import { n as http, r as createHttpAborter, t as createHttp } from "./oiyo-DnFYTx_L.mjs";
8
8
  export { createHttp, createHttpAborter, http };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.2
2
+ * @oiyo/framework v0.4.3
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.2
2
+ * @oiyo/framework v0.4.3
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
package/dist/uni.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @oiyo/framework v0.4.2
2
+ * @oiyo/framework v0.4.3
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-CrmOzWpZ.cjs");
8
+ require("./rolldown-runtime-C9xUVgZB.cjs");
9
9
  var _dcloudio_uni_app = require("@dcloudio/uni-app");
10
10
  Object.keys(_dcloudio_uni_app).forEach(function(k) {
11
11
  if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
package/dist/uni.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.2
2
+ * @oiyo/framework v0.4.3
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
package/dist/uni.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.2
2
+ * @oiyo/framework v0.4.3
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
package/dist/uni.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @oiyo/framework v0.4.2
2
+ * @oiyo/framework v0.4.3
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-D0eOKGL5.mjs";
7
+ import "./rolldown-runtime-Cd2FXjOO.mjs";
8
8
  export * from "@dcloudio/uni-app";
9
9
  export {};
package/dist/vue.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @oiyo/framework v0.4.2
2
+ * @oiyo/framework v0.4.3
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-CrmOzWpZ.cjs");
8
+ require("./rolldown-runtime-C9xUVgZB.cjs");
9
9
  var vue = require("vue");
10
10
  Object.keys(vue).forEach(function(k) {
11
11
  if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
package/dist/vue.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.2
2
+ * @oiyo/framework v0.4.3
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
package/dist/vue.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.2
2
+ * @oiyo/framework v0.4.3
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
package/dist/vue.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @oiyo/framework v0.4.2
2
+ * @oiyo/framework v0.4.3
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-D0eOKGL5.mjs";
7
+ import "./rolldown-runtime-Cd2FXjOO.mjs";
8
8
  export * from "vue";
9
9
  export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oiyo/framework",
3
3
  "type": "module",
4
- "version": "0.4.2",
4
+ "version": "0.4.3",
5
5
  "author": {
6
6
  "name": "skiyee",
7
7
  "email": "319619193@qq.com",
@@ -1,7 +0,0 @@
1
- /**
2
- * @oiyo/framework v0.4.2
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 _0x32ba21=_0x5dea;(function(_0x5d8ebc,_0x48473d){const _0x395a20=_0x5dea,_0x1809fa=_0x5d8ebc();while(!![]){try{const _0x32c3a2=parseInt(_0x395a20(0x1be))/0x1*(parseInt(_0x395a20(0x1c6))/0x2)+-parseInt(_0x395a20(0x1f4))/0x3+parseInt(_0x395a20(0x1b1))/0x4*(parseInt(_0x395a20(0x1f9))/0x5)+-parseInt(_0x395a20(0x1e0))/0x6+parseInt(_0x395a20(0x1db))/0x7*(parseInt(_0x395a20(0x1de))/0x8)+parseInt(_0x395a20(0x1a4))/0x9*(parseInt(_0x395a20(0x1b4))/0xa)+parseInt(_0x395a20(0x1ea))/0xb*(-parseInt(_0x395a20(0x1fb))/0xc);if(_0x32c3a2===_0x48473d)break;else _0x1809fa['push'](_0x1809fa['shift']());}catch(_0x668695){_0x1809fa['push'](_0x1809fa['shift']());}}}(_0x3ead,0x29e7c));function _0x3ead(){const _0x171246=['POST','sslVerify','arrayBuffer','onResponse','uploadFile','header','push','enableHttpDNS','has','name','indexOf','427rKkFoN','HttpError','number','20848IfaqTI','onFail','594600QRxDlM','flatMap','onHeadersReceived','tempFilePath','join','aborted','fail','addEventListener','function','withCredentials','188837HZEzOZ','PATCH','abort','enableHttp2','onSuccess','timeout','enableQuic','enumerable','onabort','options','620481LpoTIf','headers','create','includes','resolve','460555xnDNAu','baseURL','264jfmyhZ','method','dataType','63bVtFPK','call','throwIfAborted','retryStatusCodes','removeEventListener','http','reason','<no\x20response>','parseResponse','HTTP\x20request\x20failed','request','firstIpv4','responseType','4ifyTZE','retryDelay','defineProperty','411970SxWJAf','map','data','query','json','enableCache','files','listeners','statusCode','upload','105263yYVauj','complete','filePath','signal','replace','startsWith','raw','onResponseError','6LDzaOW','download','then','file','GET','text','formData','assign','body','<no\x20response\x20body>'];_0x3ead=function(){return _0x171246;};return _0x3ead();}function createHttpAborter(){const _0x30259d=new HttpAbortSignal();return{'signal':_0x30259d,'abort':_0x470b38=>_0x30259d['_abort'](_0x470b38)};}const ABORT_ERROR_NAME='AbortError';var AbortEmitter=class{['listeners']=[];[_0x32ba21(0x1e7)](_0x191fb2,_0x4ff7c1){const _0x28dcdb=_0x32ba21;if(_0x191fb2!=='abort')return;this[_0x28dcdb(0x1bb)][_0x28dcdb(0x1d6)](_0x4ff7c1);}['removeEventListener'](_0x4dbfe5,_0x467c32){const _0x424748=_0x32ba21;if(_0x4dbfe5!==_0x424748(0x1ec))return;const _0x4fd6de=this['listeners'][_0x424748(0x1da)](_0x467c32);if(_0x4fd6de!==-0x1)this['listeners']['splice'](_0x4fd6de,0x1);}['emit'](_0x3c16f8){const _0x5a998b=_0x32ba21;for(const _0x35fd06 of this['listeners']['slice']())_0x35fd06[_0x5a998b(0x1a5)](this,_0x3c16f8);}},HttpAbortSignal=class extends AbortEmitter{['aborted']=![];['reason']=void 0x0;['onabort']=null;['_abort'](_0x320487){const _0xa16068=_0x32ba21;if(this[_0xa16068(0x1e5)])return;this[_0xa16068(0x1e5)]=!![],this['reason']=_0x320487===void 0x0?createAbortError():_0x320487;const _0x20b8b6={};_0x20b8b6['type']=_0xa16068(0x1ec);const _0x4c6c16=_0x20b8b6;if(typeof this['onabort']===_0xa16068(0x1e8))this[_0xa16068(0x1f2)](_0x4c6c16);this['emit'](_0x4c6c16);}[_0x32ba21(0x1a6)](){const _0x46a402=_0x32ba21;if(this[_0x46a402(0x1e5)])throw this['reason'];}};function createAbortError(_0x45bcc6='The\x20operation\x20was\x20aborted'){const _0x557cb9=new Error(_0x45bcc6);return _0x557cb9['name']=ABORT_ERROR_NAME,_0x557cb9;}function isAbortError(_0x239ac4){const _0x10ef5b=_0x32ba21;return _0x239ac4 instanceof Error&&_0x239ac4[_0x10ef5b(0x1d9)]===ABORT_ERROR_NAME;}function onAbort(_0x4590df,_0x165002){const _0x1c7acc=_0x32ba21;if(!_0x4590df)return()=>{};if(_0x4590df[_0x1c7acc(0x1e5)])return _0x165002(),()=>{};return _0x4590df[_0x1c7acc(0x1e7)](_0x1c7acc(0x1ec),_0x165002),()=>_0x4590df[_0x1c7acc(0x1a8)]('abort',_0x165002);}const HOOK_NAMES=['onRequest','onRequestError','onResponse',_0x32ba21(0x1c5)];function mergeOptions(..._0x572725){const _0x1f030c=_0x32ba21,_0x5279b0={},_0x5389d7={};for(const _0x4b23ec of _0x572725){if(!_0x4b23ec)continue;for(const _0x5cba8d of HOOK_NAMES)collectHook(_0x5389d7,_0x5cba8d,_0x4b23ec);const _0x3cebc0=_0x5279b0['headers'],_0x4e2550=_0x5279b0['query'];Object[_0x1f030c(0x1cd)](_0x5279b0,_0x4b23ec);const _0x5283d3={..._0x3cebc0,..._0x4b23ec[_0x1f030c(0x1f5)]};_0x5279b0[_0x1f030c(0x1f5)]=_0x5283d3;const _0x235df1={..._0x4e2550,..._0x4b23ec[_0x1f030c(0x1b7)]};_0x5279b0[_0x1f030c(0x1b7)]=_0x235df1;}for(const [_0x698800,_0x8fcead]of Object['entries'](_0x5389d7))Object[_0x1f030c(0x1cd)](_0x5279b0,{[_0x698800]:async _0x19cd71=>{for(const _0x335685 of _0x8fcead)await _0x335685(_0x19cd71);}});return _0x5279b0;}function collectHook(_0x3e3715,_0x53cb9b,_0x362ce4){const _0x54f672=_0x32ba21,_0x5d3d31=_0x362ce4[_0x53cb9b];if(typeof _0x5d3d31!==_0x54f672(0x1e8))return;_0x3e3715[_0x53cb9b]??=[],_0x3e3715[_0x53cb9b]['push'](_0x5d3d31);}function _0x5dea(_0x997416,_0x6cb2c5){_0x997416=_0x997416-0x1a3;const _0x3eadd4=_0x3ead();let _0x5deac6=_0x3eadd4[_0x997416];return _0x5deac6;}function dispatch(_0x16bd8d,_0x46ad26,_0x47a39f,_0x1a1c62){const _0x55f79b=_0x32ba21;let _0xe42e31;if(_0x16bd8d===_0x55f79b(0x1bd))_0xe42e31=dispatchUpload(_0x46ad26,_0x47a39f,_0x1a1c62);else{if(_0x16bd8d===_0x55f79b(0x1c7))_0xe42e31=dispatchDownload(_0x46ad26,_0x47a39f,_0x1a1c62);else _0xe42e31=dispatchRequest(_0x46ad26,_0x47a39f,_0x1a1c62);}bindTask(_0xe42e31,_0x47a39f);}function bindTask(_0x13d54a,_0x3861b5){const _0x57e59f=_0x32ba21;onAbort(_0x3861b5[_0x57e59f(0x1c1)],()=>_0x13d54a['abort']());if(typeof _0x3861b5[_0x57e59f(0x1e2)]==='function')_0x13d54a[_0x57e59f(0x1e2)](_0x3861b5[_0x57e59f(0x1e2)]);const _0x108410=_0x3861b5['onProgress'];if(typeof _0x108410==='function'&&'onProgressUpdate'in _0x13d54a)_0x13d54a['onProgressUpdate'](_0x108410);}function dispatchRequest(_0x29f3ca,_0x39a6b6,_0x350b26){const _0x4b18d4=_0x32ba21,_0x270dda={'url':_0x29f3ca,'method':_0x39a6b6[_0x4b18d4(0x1fc)],'header':_0x39a6b6['headers'],'data':_0x39a6b6[_0x4b18d4(0x1ce)]??{},'timeout':_0x39a6b6[_0x4b18d4(0x1ef)],'dataType':_0x39a6b6[_0x4b18d4(0x1a3)]||_0x4b18d4(0x1b8),'responseType':mappedResponseBodyType(_0x39a6b6['responseType']),'sslVerify':_0x39a6b6[_0x4b18d4(0x1d1)],'withCredentials':_0x39a6b6[_0x4b18d4(0x1e9)],'firstIpv4':_0x39a6b6[_0x4b18d4(0x1af)],'enableHttp2':_0x39a6b6[_0x4b18d4(0x1ed)],'enableQuic':_0x39a6b6[_0x4b18d4(0x1f0)],'enableCache':_0x39a6b6[_0x4b18d4(0x1b9)],'enableHttpDNS':_0x39a6b6[_0x4b18d4(0x1d7)],'httpDNSServiceId':_0x39a6b6['httpDNSServiceId'],'enableChunked':_0x39a6b6['enableChunked'],'forceCellularNetwork':_0x39a6b6['forceCellularNetwork'],'success':_0x350b26[_0x4b18d4(0x1ee)],'fail':_0x350b26['onFail'],'complete':()=>{}};return uni[_0x4b18d4(0x1ae)](_0x270dda);}function dispatchUpload(_0x47865c,_0x46bbd4,_0x4c0388){const _0xd2decb=_0x32ba21,_0x5813b7={};_0x5813b7['url']=_0x47865c,_0x5813b7['fileType']=_0x46bbd4['fileType'],_0x5813b7[_0xd2decb(0x1c9)]=_0x46bbd4['file'],_0x5813b7[_0xd2decb(0x1c0)]=_0x46bbd4['filePath'],_0x5813b7['name']=_0x46bbd4[_0xd2decb(0x1d9)]??'file',_0x5813b7[_0xd2decb(0x1ba)]=_0x46bbd4['files'],_0x5813b7[_0xd2decb(0x1d5)]=_0x46bbd4['headers'],_0x5813b7[_0xd2decb(0x1cc)]=_0x46bbd4['body']??{},_0x5813b7[_0xd2decb(0x1ef)]=_0x46bbd4[_0xd2decb(0x1ef)],_0x5813b7['success']=_0x4c0388[_0xd2decb(0x1ee)],_0x5813b7[_0xd2decb(0x1e6)]=_0x4c0388['onFail'],_0x5813b7[_0xd2decb(0x1bf)]=()=>{};const _0x944e62=_0x5813b7;return uni[_0xd2decb(0x1d4)](_0x944e62);}function dispatchDownload(_0x13efa5,_0x2c67c1,_0x4bb694){const _0x197c46=_0x32ba21,_0x5f4f24={'url':_0x13efa5,'header':_0x2c67c1['headers'],'timeout':_0x2c67c1[_0x197c46(0x1ef)],'success':_0xf35d32=>{const _0x3d4e54=_0x197c46,_0xfa9b27={..._0xf35d32};_0xfa9b27[_0x3d4e54(0x1b6)]={},_0xfa9b27[_0x3d4e54(0x1b6)][_0x3d4e54(0x1e3)]=_0xf35d32['tempFilePath'],_0x4bb694['onSuccess'](_0xfa9b27);},'fail':_0x4bb694[_0x197c46(0x1df)],'complete':()=>{}};return uni['downloadFile'](_0x5f4f24);}function mappedResponseBodyType(_0x30a0a6){const _0x3ccd87=_0x32ba21;if(!_0x30a0a6||_0x30a0a6==='json')return _0x3ccd87(0x1cb);if(_0x30a0a6===_0x3ccd87(0x1d2))return'arraybuffer';return'text';}var HttpError=class extends Error{constructor(_0x4bbdc7){const _0x18d2b5=_0x32ba21;super(_0x4bbdc7),this[_0x18d2b5(0x1d9)]=_0x18d2b5(0x1dc);}};function createResponseError(_0x5164b8,_0x109905,_0x53b0b0){const _0x50e853=_0x32ba21,_0x3e7f11=_0x5164b8,_0x40a454='['+(_0x109905?.['method']||_0x50e853(0x1ca))+']\x20'+_0x3e7f11,_0x34161c=_0x53b0b0?_0x53b0b0[_0x50e853(0x1bc)]+'\x20'+(_0x53b0b0['errMsg']||''):_0x50e853(0x1ab),_0x30614c=_0x53b0b0?JSON['stringify'](_0x53b0b0['data']):_0x50e853(0x1cf),_0x40b5a6=new HttpError(_0x40a454+':\x20'+_0x34161c+(_0x53b0b0['data']?'\x20'+_0x30614c:''));for(const _0x3a90f6 of['request',_0x50e853(0x1f3),'response',_0x50e853(0x1b6)])Object[_0x50e853(0x1b3)](_0x40b5a6,_0x3a90f6,{'get'(){const _0x49814e=_0x50e853,_0x1a0582={};return _0x1a0582[_0x49814e(0x1ae)]=_0x5164b8,_0x1a0582[_0x49814e(0x1f3)]=_0x109905,_0x1a0582['response']=_0x53b0b0,_0x1a0582[_0x49814e(0x1b6)]=_0x53b0b0['data'],_0x1a0582[_0x3a90f6];}});return _0x40b5a6;}function normalizeError(_0x2efbcc){const _0x182afb=_0x32ba21;if(_0x2efbcc instanceof Error)return _0x2efbcc;return Object[_0x182afb(0x1cd)](new Error(_0x2efbcc?.['errMsg']||_0x2efbcc?.['message']||_0x182afb(0x1ad)),{'cause':_0x2efbcc});}async function callRequestHooks(_0x4aba8b,_0x54aa6e){await _0x54aa6e['onRequest']?.({'options':_0x54aa6e,'resource':_0x4aba8b});}async function callRequestErrorHooks(_0x48258b,_0x55fd87,_0x299837){await _0x55fd87['onRequestError']?.({'options':_0x55fd87,'resource':_0x48258b,'error':_0x299837});}async function callResponseHooks(_0x3a67f8,_0x494013,_0x421cd7){const _0x5dd15d=_0x32ba21;await _0x494013[_0x5dd15d(0x1d3)]?.({'options':_0x494013,'resource':_0x3a67f8,'response':_0x421cd7});}async function callResponseErrorHooks(_0x2660a5,_0x2a4315,_0x1befa9){await _0x2a4315['onResponseError']?.({'options':_0x2a4315,'resource':_0x2660a5,'response':_0x1befa9});}async function refineResponse(_0x50a5e4,_0x3df7f3){const _0x58e782=_0x32ba21;if(_0x3df7f3[_0x58e782(0x1b0)]===_0x58e782(0x1b8)||!_0x3df7f3['responseType'])return{..._0x50a5e4,'data':await parseJSONResponse(_0x50a5e4['data'],_0x3df7f3)};return _0x50a5e4;}function parseJSONResponse(_0x1739dc,_0x4c9868){const _0x1f1a05=_0x32ba21;if(typeof _0x1739dc!=='string')return _0x1739dc;if(_0x4c9868[_0x1f1a05(0x1ac)])return _0x4c9868['parseResponse'](_0x1739dc);return _0x1739dc?JSON['parse'](_0x1739dc):null;}function isResponseError(_0x2432f7){const _0x424ad4=_0x32ba21,_0x2e9795=_0x424ad4(0x1bc)in _0x2432f7?_0x2432f7[_0x424ad4(0x1bc)]:void 0x0;return typeof _0x2e9795==='number'&&(_0x2e9795<0xc8||_0x2e9795>=0x12c);}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set([_0x32ba21(0x1d0),'PUT','DELETE',_0x32ba21(0x1eb)]);async function withRetry(_0x27cb4d,_0x30ba0f){const _0x36b5ab=_0x32ba21,_0x152ee8=resolveRetryCount(_0x27cb4d);for(let _0x3c024c=0x0;;_0x3c024c++)try{return await _0x30ba0f();}catch(_0x52ba19){if(_0x3c024c>=_0x152ee8||!shouldRetry(_0x52ba19,_0x27cb4d))throw _0x52ba19;await sleep(_0x27cb4d[_0x36b5ab(0x1b2)]??0x0,_0x27cb4d[_0x36b5ab(0x1c1)]);}}function resolveRetryCount(_0x1f7190){const _0x3b9dec=_0x32ba21,{retry:_0x4b893c}=_0x1f7190;if(_0x4b893c===![])return 0x0;if(typeof _0x4b893c==='number')return _0x4b893c>0x0?_0x4b893c:0x0;return isPayloadMethod(_0x1f7190[_0x3b9dec(0x1fc)])?0x0:0x1;}function shouldRetry(_0x18f178,_0x6b14c2){const _0x2ccff6=_0x32ba21;if(_0x6b14c2['signal']?.[_0x2ccff6(0x1e5)]||isAbortError(_0x18f178))return![];const _0x426d8a=_0x18f178?.['response']?.['statusCode'];if(typeof _0x426d8a!==_0x2ccff6(0x1dd))return!![];return(_0x6b14c2[_0x2ccff6(0x1a7)]??DEFAULT_RETRY_STATUS_CODES)[_0x2ccff6(0x1f7)](_0x426d8a);}function isPayloadMethod(_0xb533a9){const _0x2a00ee=_0x32ba21;return!!_0xb533a9&&PAYLOAD_METHODS[_0x2a00ee(0x1d8)](_0xb533a9['toUpperCase']());}function sleep(_0x581205,_0x51a0e6){return new Promise((_0x185003,_0x152c57)=>{if(_0x51a0e6?.['aborted']){_0x152c57(_0x51a0e6['reason']);return;}if(!(_0x581205>0x0)){_0x185003();return;}let _0x4b6ebb=()=>{};const _0xe92792=setTimeout(()=>{_0x4b6ebb(),_0x185003();},_0x581205);_0x4b6ebb=onAbort(_0x51a0e6,()=>{const _0x4d80fc=_0x5dea;clearTimeout(_0xe92792),_0x152c57(_0x51a0e6[_0x4d80fc(0x1aa)]);});});}function buildURL(_0x272078,_0x2a9e51){const _0x34595b=_0x32ba21,_0x2b7aec=joinURL(_0x2a9e51[_0x34595b(0x1fa)],_0x272078),_0x5b88a4=_0x2a9e51['query']??{},_0x305b2b=Object['keys'](_0x5b88a4)['filter'](_0x290047=>_0x5b88a4[_0x290047]!==void 0x0)[_0x34595b(0x1e1)](_0x2bc782=>{const _0x6cff1=_0x34595b,_0x27a225=_0x5b88a4[_0x2bc782];return(Array['isArray'](_0x27a225)?_0x27a225:[_0x27a225])[_0x6cff1(0x1b5)](_0x3099cd=>encodeURIComponent(_0x2bc782)+'='+encodeURIComponent(String(_0x3099cd)));})[_0x34595b(0x1e4)]('&');if(!_0x305b2b)return _0x2b7aec;return''+_0x2b7aec+(_0x2b7aec['includes']('?')?'&':'?')+_0x305b2b;}function joinURL(_0x2591f2,_0x1a3e55){const _0x4cb4f1=_0x32ba21;if(!_0x2591f2||isAbsoluteURL(_0x1a3e55))return _0x1a3e55;return _0x2591f2[_0x4cb4f1(0x1c2)](/\/+$/,'')+'/'+_0x1a3e55[_0x4cb4f1(0x1c2)](/^\/+/,'');}function isAbsoluteURL(_0x5e93d5){const _0x556b13=_0x32ba21;return/^[a-z][a-z\d+\-.]*:\/\//i['test'](_0x5e93d5)||_0x5e93d5[_0x556b13(0x1c3)]('//');}function dispatchHttp(_0x4f9ce7,_0x5b85fb,_0x3950ca){const _0x3ad917=buildURL(_0x5b85fb,_0x3950ca);return withRetry(_0x3950ca,()=>attemptRequest(_0x4f9ce7,_0x5b85fb,_0x3ad917,_0x3950ca));}function attemptRequest(_0xc015d3,_0x1d9193,_0x2d178d,_0x4a719a){const _0x15f905=_0x32ba21,_0x33b63c=!!_0x4a719a[_0x15f905(0x1c4)];return new Promise((_0xd19824,_0x1d5945)=>{const _0x16e3fd=_0x15f905;let _0xd0896c=![];const _0x1dcd18=_0x148326=>{if(_0xd0896c)return;_0xd0896c=!![],_0x148326();},_0x47fe4a=onAbort(_0x4a719a[_0x16e3fd(0x1c1)],()=>{const _0x3b9a7a=_0x16e3fd;_0x1dcd18(()=>_0x1d5945(_0x4a719a[_0x3b9a7a(0x1c1)]['reason']));}),_0x3e6db0=_0x31ea4b=>{_0x47fe4a(),_0x1dcd18(_0x31ea4b);};callRequestHooks(_0x1d9193,_0x4a719a)[_0x16e3fd(0x1c8)](()=>{if(_0xd0896c)return;dispatch(_0xc015d3,_0x2d178d,_0x4a719a,{'onSuccess':_0x3d75b2=>{const _0x3c10c0=_0x5dea;Promise[_0x3c10c0(0x1f8)]()[_0x3c10c0(0x1c8)](()=>refineResponse(_0x3d75b2,_0x4a719a))[_0x3c10c0(0x1c8)](async _0x55781a=>{if(isResponseError(_0x3d75b2)){await callResponseErrorHooks(_0x1d9193,_0x4a719a,_0x55781a);if(!_0x4a719a['ignoreResponseError'])throw createResponseError(_0x1d9193,_0x4a719a,_0x55781a);}else await callResponseHooks(_0x1d9193,_0x4a719a,_0x55781a);_0x3e6db0(()=>_0xd19824(_0x33b63c?_0x55781a:_0x55781a['data']));})['catch'](_0x27b778=>_0x3e6db0(()=>_0x1d5945(_0x27b778)));},'onFail':_0x598061=>{const _0xf2169c=_0x5dea;Promise['resolve']()[_0xf2169c(0x1c8)](async()=>{const _0x463eb2=normalizeError(_0x598061);if(!isAbortError(_0x463eb2))await callRequestErrorHooks(_0x1d9193,_0x4a719a,_0x463eb2);throw _0x463eb2;})['catch'](_0x3c53d1=>_0x3e6db0(()=>_0x1d5945(_0x3c53d1)));}});})['catch'](async _0x435675=>{const _0x398788=normalizeError(_0x435675);await callRequestErrorHooks(_0x1d9193,_0x4a719a,_0x398788),_0x3e6db0(()=>_0x1d5945(_0x398788));});});}const _0xc47fb6={};_0xc47fb6['method']='GET',_0xc47fb6['responseType']='json';const defaultConfig=_0xc47fb6;function createHttp(_0x2c82e9={}){const _0x877b23=_0x32ba21,_0x28a5e1=(_0x4804cc,_0x11cf55)=>{return dispatchHttp('request',_0x4804cc,mergeOptions(defaultConfig,_0x2c82e9,_0x11cf55));},_0x35b9b1=(_0x540e05,_0x2febb1)=>{const _0x12ce49=_0x5dea,_0x3244a4={};return _0x3244a4[_0x12ce49(0x1fc)]=_0x12ce49(0x1d0),dispatchHttp('upload',_0x540e05,mergeOptions(defaultConfig,_0x2c82e9,_0x2febb1,_0x3244a4));},_0x1deef4=(_0x14ddc7,_0x555964)=>{const _0x7a81d5={};return _0x7a81d5['method']='GET',dispatchHttp('download',_0x14ddc7,mergeOptions(defaultConfig,_0x2c82e9,_0x555964,_0x7a81d5));},_0xf6777e=_0xaa2b1b=>createHttp(mergeOptions(_0x2c82e9,_0xaa2b1b)),_0x34f75a={};return _0x34f75a[_0x877b23(0x1ae)]=_0x28a5e1,_0x34f75a['upload']=_0x35b9b1,_0x34f75a['download']=_0x1deef4,_0x34f75a[_0x877b23(0x1f6)]=_0xf6777e,_0x34f75a;}const http=createHttp(),_0x5c37a4={};_0x5c37a4[_0x32ba21(0x1f1)]=!![],_0x5c37a4['get']=function(){return createHttp;},Object[_0x32ba21(0x1b3)](exports,'createHttp',_0x5c37a4);const _0x159b27={};_0x159b27['enumerable']=!![],_0x159b27['get']=function(){return createHttpAborter;},Object[_0x32ba21(0x1b3)](exports,'createHttpAborter',_0x159b27);const _0x2a9e96={};_0x2a9e96[_0x32ba21(0x1f1)]=!![],_0x2a9e96['get']=function(){return http;},Object['defineProperty'](exports,_0x32ba21(0x1a9),_0x2a9e96);
@@ -1,7 +0,0 @@
1
- /**
2
- * @oiyo/framework v0.4.2
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 _0x2e45e0=_0x29a8;(function(_0x18452c,_0x363571){const _0x15de72=_0x29a8,_0x32ebca=_0x18452c();while(!![]){try{const _0x3f61b8=parseInt(_0x15de72(0xc4))/0x1*(-parseInt(_0x15de72(0xd9))/0x2)+parseInt(_0x15de72(0xbb))/0x3+parseInt(_0x15de72(0xdf))/0x4+-parseInt(_0x15de72(0xad))/0x5*(-parseInt(_0x15de72(0xe3))/0x6)+parseInt(_0x15de72(0xd3))/0x7+-parseInt(_0x15de72(0xec))/0x8*(-parseInt(_0x15de72(0xac))/0x9)+-parseInt(_0x15de72(0xee))/0xa;if(_0x3f61b8===_0x363571)break;else _0x32ebca['push'](_0x32ebca['shift']());}catch(_0x5af95e){_0x32ebca['push'](_0x32ebca['shift']());}}}(_0x4f0c,0x52a72));function createHttpAborter(){const _0x1bd184=new HttpAbortSignal();return{'signal':_0x1bd184,'abort':_0x2d1da4=>_0x1bd184['_abort'](_0x2d1da4)};}const ABORT_ERROR_NAME='AbortError';var AbortEmitter=class{[_0x2e45e0(0xce)]=[];['addEventListener'](_0x29d9aa,_0x19d1eb){const _0x1ea2d0=_0x2e45e0;if(_0x29d9aa!=='abort')return;this[_0x1ea2d0(0xce)][_0x1ea2d0(0x9d)](_0x19d1eb);}[_0x2e45e0(0xb2)](_0x32b5d0,_0x5b3611){const _0x843400=_0x2e45e0;if(_0x32b5d0!=='abort')return;const _0x328ade=this['listeners'][_0x843400(0xb3)](_0x5b3611);if(_0x328ade!==-0x1)this['listeners'][_0x843400(0xba)](_0x328ade,0x1);}[_0x2e45e0(0xd1)](_0x4684e5){const _0x2f20c6=_0x2e45e0;for(const _0x52aee9 of this[_0x2f20c6(0xce)][_0x2f20c6(0xd2)]())_0x52aee9['call'](this,_0x4684e5);}},HttpAbortSignal=class extends AbortEmitter{[_0x2e45e0(0xe9)]=![];[_0x2e45e0(0xd4)]=void 0x0;[_0x2e45e0(0xe5)]=null;['_abort'](_0x333309){const _0x1a4784=_0x2e45e0;if(this['aborted'])return;this[_0x1a4784(0xe9)]=!![],this['reason']=_0x333309===void 0x0?createAbortError():_0x333309;const _0xe9819e={};_0xe9819e['type']='abort';const _0x2efcdc=_0xe9819e;if(typeof this['onabort']===_0x1a4784(0xe6))this[_0x1a4784(0xe5)](_0x2efcdc);this['emit'](_0x2efcdc);}[_0x2e45e0(0xb4)](){if(this['aborted'])throw this['reason'];}};function createAbortError(_0x1f5aae='The\x20operation\x20was\x20aborted'){const _0x5afc89=new Error(_0x1f5aae);return _0x5afc89['name']=ABORT_ERROR_NAME,_0x5afc89;}function isAbortError(_0xfb3ef8){const _0x5bc53e=_0x2e45e0;return _0xfb3ef8 instanceof Error&&_0xfb3ef8[_0x5bc53e(0xcf)]===ABORT_ERROR_NAME;}function onAbort(_0x1d874c,_0x599fa6){const _0x3fb5ad=_0x2e45e0;if(!_0x1d874c)return()=>{};if(_0x1d874c[_0x3fb5ad(0xe9)])return _0x599fa6(),()=>{};return _0x1d874c['addEventListener'](_0x3fb5ad(0xc7),_0x599fa6),()=>_0x1d874c['removeEventListener'](_0x3fb5ad(0xc7),_0x599fa6);}const HOOK_NAMES=[_0x2e45e0(0xdd),_0x2e45e0(0xeb),_0x2e45e0(0xa1),'onResponseError'];function mergeOptions(..._0x149ff3){const _0x462bd1=_0x2e45e0,_0x47d570={},_0x11313b={};for(const _0x553897 of _0x149ff3){if(!_0x553897)continue;for(const _0xf4ed00 of HOOK_NAMES)collectHook(_0x11313b,_0xf4ed00,_0x553897);const _0xbd9ca1=_0x47d570[_0x462bd1(0xea)],_0x55287c=_0x47d570[_0x462bd1(0xda)];Object['assign'](_0x47d570,_0x553897);const _0x239be0={..._0xbd9ca1,..._0x553897['headers']};_0x47d570['headers']=_0x239be0;const _0x457f22={..._0x55287c,..._0x553897['query']};_0x47d570[_0x462bd1(0xda)]=_0x457f22;}for(const [_0x44e63b,_0x2cc050]of Object['entries'](_0x11313b))Object[_0x462bd1(0x99)](_0x47d570,{[_0x44e63b]:async _0x345f97=>{for(const _0x165c32 of _0x2cc050)await _0x165c32(_0x345f97);}});return _0x47d570;}function collectHook(_0x5003f6,_0x359a1a,_0x9978d2){const _0x51b0de=_0x2e45e0,_0x1c9e81=_0x9978d2[_0x359a1a];if(typeof _0x1c9e81!=='function')return;_0x5003f6[_0x359a1a]??=[],_0x5003f6[_0x359a1a][_0x51b0de(0x9d)](_0x1c9e81);}function dispatch(_0x5a1734,_0x36d295,_0x2d4798,_0x385890){const _0x3fd76e=_0x2e45e0;let _0x5d64e9;if(_0x5a1734==='upload')_0x5d64e9=dispatchUpload(_0x36d295,_0x2d4798,_0x385890);else{if(_0x5a1734===_0x3fd76e(0x98))_0x5d64e9=dispatchDownload(_0x36d295,_0x2d4798,_0x385890);else _0x5d64e9=dispatchRequest(_0x36d295,_0x2d4798,_0x385890);}bindTask(_0x5d64e9,_0x2d4798);}function bindTask(_0x3725fd,_0x13f145){const _0x43e3cc=_0x2e45e0;onAbort(_0x13f145['signal'],()=>_0x3725fd[_0x43e3cc(0xc7)]());if(typeof _0x13f145[_0x43e3cc(0xcd)]===_0x43e3cc(0xe6))_0x3725fd['onHeadersReceived'](_0x13f145[_0x43e3cc(0xcd)]);const _0x452e73=_0x13f145['onProgress'];if(typeof _0x452e73==='function'&&'onProgressUpdate'in _0x3725fd)_0x3725fd[_0x43e3cc(0xbe)](_0x452e73);}function dispatchRequest(_0x378757,_0xedf9c0,_0x4e6a87){const _0x40702e=_0x2e45e0,_0x564047={'url':_0x378757,'method':_0xedf9c0[_0x40702e(0xd8)],'header':_0xedf9c0[_0x40702e(0xea)],'data':_0xedf9c0['body']??{},'timeout':_0xedf9c0[_0x40702e(0xae)],'dataType':_0xedf9c0['dataType']||_0x40702e(0xa3),'responseType':mappedResponseBodyType(_0xedf9c0[_0x40702e(0xf0)]),'sslVerify':_0xedf9c0['sslVerify'],'withCredentials':_0xedf9c0['withCredentials'],'firstIpv4':_0xedf9c0[_0x40702e(0xdc)],'enableHttp2':_0xedf9c0['enableHttp2'],'enableQuic':_0xedf9c0[_0x40702e(0xed)],'enableCache':_0xedf9c0['enableCache'],'enableHttpDNS':_0xedf9c0['enableHttpDNS'],'httpDNSServiceId':_0xedf9c0[_0x40702e(0xb8)],'enableChunked':_0xedf9c0['enableChunked'],'forceCellularNetwork':_0xedf9c0['forceCellularNetwork'],'success':_0x4e6a87['onSuccess'],'fail':_0x4e6a87['onFail'],'complete':()=>{}};return uni['request'](_0x564047);}function dispatchUpload(_0x53ceee,_0x4b12da,_0x6df9e8){const _0x1c80fb=_0x2e45e0,_0x2c9501={};_0x2c9501[_0x1c80fb(0xe1)]=_0x53ceee,_0x2c9501['fileType']=_0x4b12da[_0x1c80fb(0xaf)],_0x2c9501[_0x1c80fb(0xc2)]=_0x4b12da['file'],_0x2c9501['filePath']=_0x4b12da[_0x1c80fb(0xe7)],_0x2c9501[_0x1c80fb(0xcf)]=_0x4b12da['name']??_0x1c80fb(0xc2),_0x2c9501[_0x1c80fb(0xd7)]=_0x4b12da['files'],_0x2c9501['header']=_0x4b12da[_0x1c80fb(0xea)],_0x2c9501['formData']=_0x4b12da[_0x1c80fb(0xa5)]??{},_0x2c9501['timeout']=_0x4b12da[_0x1c80fb(0xae)],_0x2c9501[_0x1c80fb(0xa7)]=_0x6df9e8[_0x1c80fb(0xa0)],_0x2c9501[_0x1c80fb(0xc9)]=_0x6df9e8[_0x1c80fb(0xb9)],_0x2c9501[_0x1c80fb(0xe4)]=()=>{};const _0x5247b8=_0x2c9501;return uni['uploadFile'](_0x5247b8);}function dispatchDownload(_0x1d7e5e,_0x3fdbbf,_0x1dae30){const _0x11be2b=_0x2e45e0,_0x2e7140={'url':_0x1d7e5e,'header':_0x3fdbbf[_0x11be2b(0xea)],'timeout':_0x3fdbbf[_0x11be2b(0xae)],'success':_0x2c22a7=>{const _0x432dc3=_0x11be2b,_0x44d5ba={..._0x2c22a7};_0x44d5ba['data']={},_0x44d5ba['data'][_0x432dc3(0xef)]=_0x2c22a7[_0x432dc3(0xef)],_0x1dae30['onSuccess'](_0x44d5ba);},'fail':_0x1dae30['onFail'],'complete':()=>{}};return uni['downloadFile'](_0x2e7140);}function mappedResponseBodyType(_0x279585){const _0x3b2aa5=_0x2e45e0;if(!_0x279585||_0x279585===_0x3b2aa5(0xa3))return _0x3b2aa5(0xcb);if(_0x279585===_0x3b2aa5(0xbd))return _0x3b2aa5(0xbf);return _0x3b2aa5(0xcb);}var HttpError=class extends Error{constructor(_0x54e159){const _0x3de3f0=_0x2e45e0;super(_0x54e159),this['name']=_0x3de3f0(0x9a);}};function _0x29a8(_0x158b6a,_0x1f8b31){_0x158b6a=_0x158b6a-0x97;const _0x4f0cae=_0x4f0c();let _0x29a8c6=_0x4f0cae[_0x158b6a];return _0x29a8c6;}function createResponseError(_0x26c0dd,_0x5d9e35,_0x4474a2){const _0x3e70bb=_0x2e45e0,_0x1a5349=_0x26c0dd,_0x4772ab='['+(_0x5d9e35?.['method']||_0x3e70bb(0xd0))+']\x20'+_0x1a5349,_0x2b06b2=_0x4474a2?_0x4474a2['statusCode']+'\x20'+(_0x4474a2[_0x3e70bb(0xe0)]||''):'<no\x20response>',_0xe7ddcd=_0x4474a2?JSON[_0x3e70bb(0xa4)](_0x4474a2[_0x3e70bb(0xd5)]):_0x3e70bb(0xb1),_0x48620d=new HttpError(_0x4772ab+':\x20'+_0x2b06b2+(_0x4474a2['data']?'\x20'+_0xe7ddcd:''));for(const _0x5c2051 of[_0x3e70bb(0xbc),_0x3e70bb(0x9f),'response','data'])Object[_0x3e70bb(0xa2)](_0x48620d,_0x5c2051,{'get'(){const _0x491cb2=_0x3e70bb,_0x2d5ca3={};return _0x2d5ca3['request']=_0x26c0dd,_0x2d5ca3['options']=_0x5d9e35,_0x2d5ca3['response']=_0x4474a2,_0x2d5ca3[_0x491cb2(0xd5)]=_0x4474a2['data'],_0x2d5ca3[_0x5c2051];}});return _0x48620d;}function normalizeError(_0x1a1b68){const _0xfa13fb=_0x2e45e0;if(_0x1a1b68 instanceof Error)return _0x1a1b68;return Object['assign'](new Error(_0x1a1b68?.['errMsg']||_0x1a1b68?.['message']||_0xfa13fb(0xde)),{'cause':_0x1a1b68});}async function callRequestHooks(_0x3c49c1,_0x2dc9f3){await _0x2dc9f3['onRequest']?.({'options':_0x2dc9f3,'resource':_0x3c49c1});}async function callRequestErrorHooks(_0x402c96,_0xd6bd18,_0x24f279){const _0x5d8094=_0x2e45e0;await _0xd6bd18[_0x5d8094(0xeb)]?.({'options':_0xd6bd18,'resource':_0x402c96,'error':_0x24f279});}async function callResponseHooks(_0x4e9747,_0x33427f,_0x39d623){await _0x33427f['onResponse']?.({'options':_0x33427f,'resource':_0x4e9747,'response':_0x39d623});}async function callResponseErrorHooks(_0x486321,_0x5e5a1b,_0x3864d1){const _0x864e59=_0x2e45e0;await _0x5e5a1b[_0x864e59(0xe8)]?.({'options':_0x5e5a1b,'resource':_0x486321,'response':_0x3864d1});}async function refineResponse(_0x31318c,_0x2f2271){const _0x1cbf57=_0x2e45e0;if(_0x2f2271[_0x1cbf57(0xf0)]===_0x1cbf57(0xa3)||!_0x2f2271['responseType'])return{..._0x31318c,'data':await parseJSONResponse(_0x31318c['data'],_0x2f2271)};return _0x31318c;}function parseJSONResponse(_0x10d619,_0x4236f8){const _0x47ff2e=_0x2e45e0;if(typeof _0x10d619!=='string')return _0x10d619;if(_0x4236f8[_0x47ff2e(0xab)])return _0x4236f8['parseResponse'](_0x10d619);return _0x10d619?JSON[_0x47ff2e(0xa9)](_0x10d619):null;}function isResponseError(_0x1c734e){const _0x257da0=_0x2e45e0,_0x2973db='statusCode'in _0x1c734e?_0x1c734e[_0x257da0(0xa6)]:void 0x0;return typeof _0x2973db==='number'&&(_0x2973db<0xc8||_0x2973db>=0x12c);}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set(['POST',_0x2e45e0(0xc6),_0x2e45e0(0xaa),'PATCH']);async function withRetry(_0x29a921,_0x325564){const _0xe5db38=_0x2e45e0,_0x645070=resolveRetryCount(_0x29a921);for(let _0x5c1de0=0x0;;_0x5c1de0++)try{return await _0x325564();}catch(_0x170df8){if(_0x5c1de0>=_0x645070||!shouldRetry(_0x170df8,_0x29a921))throw _0x170df8;await sleep(_0x29a921['retryDelay']??0x0,_0x29a921[_0xe5db38(0x9e)]);}}function resolveRetryCount(_0x13786d){const {retry:_0x1a500d}=_0x13786d;if(_0x1a500d===![])return 0x0;if(typeof _0x1a500d==='number')return _0x1a500d>0x0?_0x1a500d:0x0;return isPayloadMethod(_0x13786d['method'])?0x0:0x1;}function shouldRetry(_0x169b09,_0x46425b){const _0x52ad9f=_0x2e45e0;if(_0x46425b[_0x52ad9f(0x9e)]?.[_0x52ad9f(0xe9)]||isAbortError(_0x169b09))return![];const _0x39b6d0=_0x169b09?.[_0x52ad9f(0xd6)]?.[_0x52ad9f(0xa6)];if(typeof _0x39b6d0!==_0x52ad9f(0x9b))return!![];return(_0x46425b[_0x52ad9f(0xe2)]??DEFAULT_RETRY_STATUS_CODES)['includes'](_0x39b6d0);}function isPayloadMethod(_0x174472){const _0x1f14dc=_0x2e45e0;return!!_0x174472&&PAYLOAD_METHODS[_0x1f14dc(0x97)](_0x174472['toUpperCase']());}function sleep(_0x2abaf2,_0x231113){return new Promise((_0x28fb33,_0x49eccf)=>{if(_0x231113?.['aborted']){_0x49eccf(_0x231113['reason']);return;}if(!(_0x2abaf2>0x0)){_0x28fb33();return;}let _0x5f2766=()=>{};const _0x1f2b94=setTimeout(()=>{_0x5f2766(),_0x28fb33();},_0x2abaf2);_0x5f2766=onAbort(_0x231113,()=>{const _0x115715=_0x29a8;clearTimeout(_0x1f2b94),_0x49eccf(_0x231113[_0x115715(0xd4)]);});});}function buildURL(_0x513d14,_0x44b7de){const _0x881be1=_0x2e45e0,_0x28c998=joinURL(_0x44b7de[_0x881be1(0xb0)],_0x513d14),_0x15108b=_0x44b7de['query']??{},_0x2834b6=Object[_0x881be1(0xb5)](_0x15108b)[_0x881be1(0x9c)](_0x135f2f=>_0x15108b[_0x135f2f]!==void 0x0)[_0x881be1(0xc8)](_0x143a44=>{const _0x310ba=_0x881be1,_0x3c3a51=_0x15108b[_0x143a44];return(Array[_0x310ba(0xca)](_0x3c3a51)?_0x3c3a51:[_0x3c3a51])['map'](_0x2c1ac7=>encodeURIComponent(_0x143a44)+'='+encodeURIComponent(String(_0x2c1ac7)));})['join']('&');if(!_0x2834b6)return _0x28c998;return''+_0x28c998+(_0x28c998['includes']('?')?'&':'?')+_0x2834b6;}function joinURL(_0x5e1d66,_0x2176dd){const _0x450384=_0x2e45e0;if(!_0x5e1d66||isAbsoluteURL(_0x2176dd))return _0x2176dd;return _0x5e1d66['replace'](/\/+$/,'')+'/'+_0x2176dd[_0x450384(0xdb)](/^\/+/,'');}function isAbsoluteURL(_0x571b53){const _0x389e40=_0x2e45e0;return/^[a-z][a-z\d+\-.]*:\/\//i[_0x389e40(0xb7)](_0x571b53)||_0x571b53['startsWith']('//');}function dispatchHttp(_0x24e567,_0x35600f,_0x3e1ec8){const _0x7b6092=buildURL(_0x35600f,_0x3e1ec8);return withRetry(_0x3e1ec8,()=>attemptRequest(_0x24e567,_0x35600f,_0x7b6092,_0x3e1ec8));}function attemptRequest(_0x20d137,_0x28ec94,_0x545fbf,_0x4e7ed4){const _0x28dd38=_0x2e45e0,_0xfd5554=!!_0x4e7ed4[_0x28dd38(0xc3)];return new Promise((_0x5780c3,_0x36c594)=>{const _0x476f55=_0x28dd38;let _0x4fb48d=![];const _0x38bab6=_0xe3bbff=>{if(_0x4fb48d)return;_0x4fb48d=!![],_0xe3bbff();},_0x141599=onAbort(_0x4e7ed4[_0x476f55(0x9e)],()=>{const _0x192675=_0x476f55;_0x38bab6(()=>_0x36c594(_0x4e7ed4[_0x192675(0x9e)][_0x192675(0xd4)]));}),_0x655583=_0x24f9c7=>{_0x141599(),_0x38bab6(_0x24f9c7);};callRequestHooks(_0x28ec94,_0x4e7ed4)['then'](()=>{if(_0x4fb48d)return;dispatch(_0x20d137,_0x545fbf,_0x4e7ed4,{'onSuccess':_0x1b5e2b=>{const _0x500662=_0x29a8;Promise[_0x500662(0xb6)]()['then'](()=>refineResponse(_0x1b5e2b,_0x4e7ed4))['then'](async _0x48af7d=>{const _0x545cc1=_0x500662;if(isResponseError(_0x1b5e2b)){await callResponseErrorHooks(_0x28ec94,_0x4e7ed4,_0x48af7d);if(!_0x4e7ed4[_0x545cc1(0xc5)])throw createResponseError(_0x28ec94,_0x4e7ed4,_0x48af7d);}else await callResponseHooks(_0x28ec94,_0x4e7ed4,_0x48af7d);_0x655583(()=>_0x5780c3(_0xfd5554?_0x48af7d:_0x48af7d['data']));})['catch'](_0x68a295=>_0x655583(()=>_0x36c594(_0x68a295)));},'onFail':_0x33a9a3=>{const _0xeca590=_0x29a8;Promise[_0xeca590(0xb6)]()[_0xeca590(0xc1)](async()=>{const _0x4ebbcf=normalizeError(_0x33a9a3);if(!isAbortError(_0x4ebbcf))await callRequestErrorHooks(_0x28ec94,_0x4e7ed4,_0x4ebbcf);throw _0x4ebbcf;})[_0xeca590(0xa8)](_0x177227=>_0x655583(()=>_0x36c594(_0x177227)));}});})['catch'](async _0x167b01=>{const _0x5e07fe=normalizeError(_0x167b01);await callRequestErrorHooks(_0x28ec94,_0x4e7ed4,_0x5e07fe),_0x655583(()=>_0x36c594(_0x5e07fe));});});}const _0x5bb108={};_0x5bb108['method']=_0x2e45e0(0xd0),_0x5bb108['responseType']='json';const defaultConfig=_0x5bb108;function createHttp(_0x523252={}){const _0x589989=_0x2e45e0,_0x5965fa=(_0x3add0e,_0x263fc0)=>{return dispatchHttp('request',_0x3add0e,mergeOptions(defaultConfig,_0x523252,_0x263fc0));},_0x5215e7=(_0x1026ce,_0x589a4b)=>{const _0x469974=_0x29a8,_0x4d576c={};return _0x4d576c['method']='POST',dispatchHttp(_0x469974(0xc0),_0x1026ce,mergeOptions(defaultConfig,_0x523252,_0x589a4b,_0x4d576c));},_0x211212=(_0x46767e,_0x431ff6)=>{const _0x1d91b8=_0x29a8,_0x20754d={};return _0x20754d['method']=_0x1d91b8(0xd0),dispatchHttp('download',_0x46767e,mergeOptions(defaultConfig,_0x523252,_0x431ff6,_0x20754d));},_0x39d72a=_0x36198b=>createHttp(mergeOptions(_0x523252,_0x36198b)),_0x312095={};return _0x312095['request']=_0x5965fa,_0x312095[_0x589989(0xc0)]=_0x5215e7,_0x312095[_0x589989(0x98)]=_0x211212,_0x312095[_0x589989(0xcc)]=_0x39d72a,_0x312095;}function _0x4f0c(){const _0x348fcf=['isArray','text','create','onHeadersReceived','listeners','name','GET','emit','slice','4132387NvUcOb','reason','data','response','files','method','28746xdlJMy','query','replace','firstIpv4','onRequest','HTTP\x20request\x20failed','1886820ebRowp','errMsg','url','retryStatusCodes','2936646GlKtcx','complete','onabort','function','filePath','onResponseError','aborted','headers','onRequestError','48fqrcNG','enableQuic','16230160RYWull','tempFilePath','responseType','has','download','assign','HttpError','number','filter','push','signal','options','onSuccess','onResponse','defineProperty','json','stringify','body','statusCode','success','catch','parse','DELETE','parseResponse','635571qJauxx','5ulWdcC','timeout','fileType','baseURL','<no\x20response\x20body>','removeEventListener','indexOf','throwIfAborted','keys','resolve','test','httpDNSServiceId','onFail','splice','692106byYIlK','request','arrayBuffer','onProgressUpdate','arraybuffer','upload','then','file','raw','17BImBmY','ignoreResponseError','PUT','abort','flatMap','fail'];_0x4f0c=function(){return _0x348fcf;};return _0x4f0c();}const http=createHttp();export{http as n,createHttpAborter as r,createHttp as t};