@oiyo/framework 0.4.0-beta.3 → 0.4.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.0-beta.3
2
+ * @oiyo/framework v0.4.0-beta.4
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.0-beta.3
2
+ * @oiyo/framework v0.4.0-beta.4
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.0-beta.3
2
+ * @oiyo/framework v0.4.0-beta.4
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("./chunk-BGy3oB1q.cjs");
9
- const require_oiyo = require("./oiyo-BOfXIUcB.cjs");
8
+ require("./rolldown-runtime-BU7qlqHq.cjs");
9
+ const require_oiyo = require("./oiyo-Bk99mH2t.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.0-beta.3
2
+ * @oiyo/framework v0.4.0-beta.4
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
6
6
  */
7
- import { a as HttpDownloadResponse, c as HttpDownloadOptions, d as ResponseBodyType, f as createHttpAborter, i as HttpError, l as HttpRequestOptions, n as http, o as HttpRequestResponse, r as HttpConfig, s as HttpUploadResponse, t as createHttp, u as HttpUploadOptions } from "./index-B4NECdKj.cjs";
7
+ import { a as HttpDownloadResponse, c as HttpDownloadOptions, d as ResponseBodyType, f as createHttpAborter, i as HttpError, l as HttpRequestOptions, n as http, o as HttpRequestResponse, r as HttpConfig, s as HttpUploadResponse, t as createHttp, u as HttpUploadOptions } from "./index-5kdIt9Pt.cjs";
8
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.0-beta.3
2
+ * @oiyo/framework v0.4.0-beta.4
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
6
6
  */
7
- import { a as HttpDownloadResponse, c as HttpDownloadOptions, d as ResponseBodyType, f as createHttpAborter, i as HttpError, l as HttpRequestOptions, n as http, o as HttpRequestResponse, r as HttpConfig, s as HttpUploadResponse, t as createHttp, u as HttpUploadOptions } from "./index-B4NECdKj.mjs";
7
+ import { a as HttpDownloadResponse, c as HttpDownloadOptions, d as ResponseBodyType, f as createHttpAborter, i as HttpError, l as HttpRequestOptions, n as http, o as HttpRequestResponse, r as HttpConfig, s as HttpUploadResponse, t as createHttp, u as HttpUploadOptions } from "./index-5kdIt9Pt.mjs";
8
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.0-beta.3
2
+ * @oiyo/framework v0.4.0-beta.4
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 "./chunk-BIMTDWTb.mjs";
8
- import { n as http, r as createHttpAborter, t as createHttp } from "./oiyo-BOeGyXdP.mjs";
7
+ import "./rolldown-runtime-C4TXImMl.mjs";
8
+ import { n as http, r as createHttpAborter, t as createHttp } from "./oiyo-BGCwnpnq.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.0-beta.4
3
+ * Copyright (c) 2026 skiyee. All rights reserved.
4
+ * Commercial software. See LICENSE for terms.
5
+ * Official site: https://oiyo.js.org
6
+ */
7
+ const _0x5f16bb=_0x58fd;(function(_0x432d1b,_0x354ba7){const _0x4f5b5c=_0x58fd,_0x5a3f5c=_0x432d1b();while(!![]){try{const _0x45abc3=parseInt(_0x4f5b5c(0xf2))/0x1+parseInt(_0x4f5b5c(0xed))/0x2*(parseInt(_0x4f5b5c(0x104))/0x3)+parseInt(_0x4f5b5c(0xd4))/0x4+parseInt(_0x4f5b5c(0xbd))/0x5*(-parseInt(_0x4f5b5c(0xcb))/0x6)+-parseInt(_0x4f5b5c(0xde))/0x7+parseInt(_0x4f5b5c(0xd5))/0x8*(parseInt(_0x4f5b5c(0xfa))/0x9)+-parseInt(_0x4f5b5c(0xd8))/0xa*(-parseInt(_0x4f5b5c(0xec))/0xb);if(_0x45abc3===_0x354ba7)break;else _0x5a3f5c['push'](_0x5a3f5c['shift']());}catch(_0x317011){_0x5a3f5c['push'](_0x5a3f5c['shift']());}}}(_0x2ec7,0xc0f33));function createHttpAborter(){const _0x421071=new HttpAbortSignal();return{'signal':_0x421071,'abort':_0x589e1c=>_0x421071['_abort'](_0x589e1c)};}const ABORT_ERROR_NAME='AbortError';var AbortEmitter=class{[_0x5f16bb(0xd3)]=[];[_0x5f16bb(0xc5)](_0x1ba258,_0x5d7614){const _0x11d90b=_0x5f16bb;if(_0x1ba258!=='abort')return;this[_0x11d90b(0xd3)]['push'](_0x5d7614);}['removeEventListener'](_0x52489c,_0x573816){const _0x2ddd5e=_0x5f16bb;if(_0x52489c!==_0x2ddd5e(0xc6))return;const _0x2f0795=this['listeners']['indexOf'](_0x573816);if(_0x2f0795!==-0x1)this[_0x2ddd5e(0xd3)]['splice'](_0x2f0795,0x1);}[_0x5f16bb(0xfc)](_0x522b38){for(const _0x2dcf2f of this['listeners']['slice']())_0x2dcf2f['call'](this,_0x522b38);}},HttpAbortSignal=class extends AbortEmitter{[_0x5f16bb(0xd1)]=![];['reason']=void 0x0;['onabort']=null;[_0x5f16bb(0xc9)](_0x283a0){const _0xfe0b8=_0x5f16bb;if(this['aborted'])return;this[_0xfe0b8(0xd1)]=!![],this['reason']=_0x283a0===void 0x0?createAbortError():_0x283a0;const _0x244c78={};_0x244c78['type']='abort';const _0x36b9a9=_0x244c78;if(typeof this[_0xfe0b8(0xea)]==='function')this['onabort'](_0x36b9a9);this['emit'](_0x36b9a9);}[_0x5f16bb(0xf7)](){if(this['aborted'])throw this['reason'];}};function createAbortError(_0x368035='The\x20operation\x20was\x20aborted'){const _0x2d70da=new Error(_0x368035);return _0x2d70da['name']=ABORT_ERROR_NAME,_0x2d70da;}function isAbortError(_0x52ebea){const _0xb51ec0=_0x5f16bb;return _0x52ebea instanceof Error&&_0x52ebea[_0xb51ec0(0xf0)]===ABORT_ERROR_NAME;}function onAbort(_0x22ef8b,_0x26bd1c){const _0x248d4b=_0x5f16bb;if(!_0x22ef8b)return()=>{};if(_0x22ef8b[_0x248d4b(0xd1)])return _0x26bd1c(),()=>{};return _0x22ef8b['addEventListener']('abort',_0x26bd1c),()=>_0x22ef8b['removeEventListener'](_0x248d4b(0xc6),_0x26bd1c);}const HOOK_NAMES=['onRequest','onRequestError','onResponse','onResponseError'];function mergeOptions(..._0x5d7f77){const _0x337b1a=_0x5f16bb,_0x46ca81={},_0x1d8841={};for(const _0x488233 of _0x5d7f77){if(!_0x488233)continue;for(const _0x47a241 of HOOK_NAMES)collectHook(_0x1d8841,_0x47a241,_0x488233);const _0x4af1ec=_0x46ca81[_0x337b1a(0xe9)],_0x1157c8=_0x46ca81[_0x337b1a(0xee)];Object[_0x337b1a(0xe6)](_0x46ca81,_0x488233);const _0x587413={..._0x4af1ec,..._0x488233['headers']};_0x46ca81[_0x337b1a(0xe9)]=_0x587413;const _0x50bc32={..._0x1157c8,..._0x488233[_0x337b1a(0xee)]};_0x46ca81['query']=_0x50bc32;}for(const [_0x105ec8,_0x483624]of Object['entries'](_0x1d8841))Object[_0x337b1a(0xe6)](_0x46ca81,{[_0x105ec8]:async _0x3ec4ad=>{for(const _0x4579a8 of _0x483624)await _0x4579a8(_0x3ec4ad);}});return _0x46ca81;}function collectHook(_0x5d2d02,_0x2faf9f,_0x33d233){const _0x1e83bf=_0x33d233[_0x2faf9f];if(typeof _0x1e83bf!=='function')return;_0x5d2d02[_0x2faf9f]??=[],_0x5d2d02[_0x2faf9f]['push'](_0x1e83bf);}function dispatch(_0x4ebd4d,_0x22016e,_0x5f5c99,_0x4a3eba){const _0x6dcc9a=_0x5f16bb;let _0x492775;if(_0x4ebd4d===_0x6dcc9a(0xc7))_0x492775=dispatchUpload(_0x22016e,_0x5f5c99,_0x4a3eba);else{if(_0x4ebd4d==='download')_0x492775=dispatchDownload(_0x22016e,_0x5f5c99,_0x4a3eba);else _0x492775=dispatchRequest(_0x22016e,_0x5f5c99,_0x4a3eba);}bindTask(_0x492775,_0x5f5c99);}function bindTask(_0x249ea6,_0x2ab371){const _0x56caa9=_0x5f16bb;onAbort(_0x2ab371[_0x56caa9(0xe1)],()=>_0x249ea6['abort']());if(typeof _0x2ab371[_0x56caa9(0xcd)]==='function')_0x249ea6['onHeadersReceived'](_0x2ab371['onHeadersReceived']);const _0x1497e6=_0x2ab371['onProgress'];if(typeof _0x1497e6===_0x56caa9(0xe7)&&_0x56caa9(0xdd)in _0x249ea6)_0x249ea6['onProgressUpdate'](_0x1497e6);}function dispatchRequest(_0x13a22f,_0x500499,_0x19b825){const _0x149872=_0x5f16bb,_0x56dd7c={'url':_0x13a22f,'method':_0x500499['method'],'header':_0x500499[_0x149872(0xe9)],'data':_0x500499[_0x149872(0xda)]??{},'timeout':_0x500499[_0x149872(0xe4)],'dataType':_0x500499[_0x149872(0xc3)]||_0x149872(0xcc),'responseType':mappedResponseBodyType(_0x500499['responseType']),'sslVerify':_0x500499['sslVerify'],'withCredentials':_0x500499[_0x149872(0xc2)],'firstIpv4':_0x500499['firstIpv4'],'enableHttp2':_0x500499['enableHttp2'],'enableQuic':_0x500499['enableQuic'],'enableCache':_0x500499['enableCache'],'enableHttpDNS':_0x500499['enableHttpDNS'],'httpDNSServiceId':_0x500499['httpDNSServiceId'],'enableChunked':_0x500499['enableChunked'],'forceCellularNetwork':_0x500499['forceCellularNetwork'],'success':_0x19b825['onSuccess'],'fail':_0x19b825[_0x149872(0xf4)],'complete':()=>{}};return uni['request'](_0x56dd7c);}function dispatchUpload(_0x59b7d6,_0x22ef0f,_0x59a574){const _0x95adce=_0x5f16bb,_0x45a804={};_0x45a804[_0x95adce(0xf3)]=_0x59b7d6,_0x45a804['fileType']=_0x22ef0f['fileType'],_0x45a804[_0x95adce(0xf9)]=_0x22ef0f[_0x95adce(0xf9)],_0x45a804[_0x95adce(0xd7)]=_0x22ef0f['filePath'],_0x45a804['name']=_0x22ef0f[_0x95adce(0xf0)]??'file',_0x45a804['files']=_0x22ef0f[_0x95adce(0xc0)],_0x45a804[_0x95adce(0xd6)]=_0x22ef0f[_0x95adce(0xe9)],_0x45a804['formData']=_0x22ef0f[_0x95adce(0xda)]??{},_0x45a804['timeout']=_0x22ef0f[_0x95adce(0xe4)],_0x45a804[_0x95adce(0xd0)]=_0x59a574[_0x95adce(0xfe)],_0x45a804['fail']=_0x59a574['onFail'],_0x45a804['complete']=()=>{};const _0x5735d0=_0x45a804;return uni[_0x95adce(0xf8)](_0x5735d0);}function dispatchDownload(_0x728de1,_0x51c910,_0x4c89ec){const _0x118f3c=_0x5f16bb,_0x9cbb39={'url':_0x728de1,'header':_0x51c910['headers'],'timeout':_0x51c910[_0x118f3c(0xe4)],'success':_0x1081c6=>{const _0x91db83=_0x118f3c,_0x4138f2={..._0x1081c6};_0x4138f2[_0x91db83(0xff)]={},_0x4138f2[_0x91db83(0xff)][_0x91db83(0x102)]=_0x1081c6[_0x91db83(0x102)],_0x4c89ec[_0x91db83(0xfe)](_0x4138f2);},'fail':_0x4c89ec['onFail'],'complete':()=>{}};return uni[_0x118f3c(0xcf)](_0x9cbb39);}function mappedResponseBodyType(_0x4eca7b){const _0x354f05=_0x5f16bb;if(!_0x4eca7b||_0x4eca7b===_0x354f05(0xcc))return _0x354f05(0xba);if(_0x4eca7b==='arrayBuffer')return'arraybuffer';return _0x354f05(0xba);}var HttpError=class extends Error{constructor(_0x1b3d94){const _0x35fee9=_0x5f16bb;super(_0x1b3d94),this[_0x35fee9(0xf0)]=_0x35fee9(0xbb);}};function createResponseError(_0x296c38,_0x13b10f,_0x5cf258){const _0x5a1877=_0x5f16bb,_0x214086=_0x296c38,_0x4dc265='['+(_0x13b10f?.[_0x5a1877(0xc1)]||_0x5a1877(0xbe))+']\x20'+_0x214086,_0x33c23c=_0x5cf258?_0x5cf258['statusCode']+'\x20'+(_0x5cf258['errMsg']||''):_0x5a1877(0xe0),_0x5d6f19=_0x5cf258?JSON['stringify'](_0x5cf258['data']):_0x5a1877(0xef),_0x1a491c=new HttpError(_0x4dc265+':\x20'+_0x33c23c+(_0x5cf258[_0x5a1877(0xff)]?'\x20'+_0x5d6f19:''));for(const _0x5b1948 of['request','options',_0x5a1877(0xdc),'data'])Object['defineProperty'](_0x1a491c,_0x5b1948,{'get'(){const _0x57c2ef=_0x5a1877,_0x1603a6={};return _0x1603a6['request']=_0x296c38,_0x1603a6['options']=_0x13b10f,_0x1603a6['response']=_0x5cf258,_0x1603a6[_0x57c2ef(0xff)]=_0x5cf258['data'],_0x1603a6[_0x5b1948];}});return _0x1a491c;}function normalizeError(_0x5a15b3){const _0x554bab=_0x5f16bb;if(_0x5a15b3 instanceof Error)return _0x5a15b3;return Object['assign'](new Error(_0x5a15b3?.['errMsg']||_0x5a15b3?.[_0x554bab(0xfd)]||'HTTP\x20request\x20failed'),{'cause':_0x5a15b3});}async function callRequestHooks(_0x2ce964,_0x203ef1){const _0x24cb24=_0x5f16bb;await _0x203ef1[_0x24cb24(0x100)]?.({'options':_0x203ef1,'resource':_0x2ce964});}async function callRequestErrorHooks(_0x4ed394,_0x37ae9e,_0x74ca3f){const _0x3a2bbd=_0x5f16bb;await _0x37ae9e[_0x3a2bbd(0xbf)]?.({'options':_0x37ae9e,'resource':_0x4ed394,'error':_0x74ca3f});}async function callResponseHooks(_0x5b1ee8,_0x3e7890,_0x24ad29){const _0x31db9d=_0x5f16bb;await _0x3e7890[_0x31db9d(0xdb)]?.({'options':_0x3e7890,'resource':_0x5b1ee8,'response':_0x24ad29});}async function callResponseErrorHooks(_0x530ba1,_0x495402,_0x5de876){const _0x3339f2=_0x5f16bb;await _0x495402[_0x3339f2(0xeb)]?.({'options':_0x495402,'resource':_0x530ba1,'response':_0x5de876});}async function refineResponse(_0x2a15a8,_0x37e684){const _0x117c39=_0x5f16bb;if(_0x37e684[_0x117c39(0xd9)]==='json'||!_0x37e684['responseType'])return{..._0x2a15a8,'data':await parseJSONResponse(_0x2a15a8[_0x117c39(0xff)],_0x37e684)};return _0x2a15a8;}function parseJSONResponse(_0x4a53ab,_0x4f5fac){const _0x34164c=_0x5f16bb;if(typeof _0x4a53ab!==_0x34164c(0xe5))return _0x4a53ab;if(_0x4f5fac[_0x34164c(0xe2)])return _0x4f5fac[_0x34164c(0xe2)](_0x4a53ab);return _0x4a53ab?JSON['parse'](_0x4a53ab):null;}function isResponseError(_0x2e9e6a){const _0x262f81=_0x5f16bb,_0x32d37c=_0x262f81(0x103)in _0x2e9e6a?_0x2e9e6a['statusCode']:void 0x0;return typeof _0x32d37c==='number'&&(_0x32d37c<0xc8||_0x32d37c>=0x12c);}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set(['POST',_0x5f16bb(0xd2),_0x5f16bb(0xf1),_0x5f16bb(0xce)]);async function withRetry(_0x25fe52,_0xb401ee){const _0x3b686e=_0x5f16bb,_0x1d28c9=resolveRetryCount(_0x25fe52);for(let _0x496e09=0x0;;_0x496e09++)try{return await _0xb401ee();}catch(_0x3f0091){if(_0x496e09>=_0x1d28c9||!shouldRetry(_0x3f0091,_0x25fe52))throw _0x3f0091;await sleep(_0x25fe52['retryDelay']??0x0,_0x25fe52[_0x3b686e(0xe1)]);}}function resolveRetryCount(_0x5561a0){const _0x2281d5=_0x5f16bb,{retry:_0x49bc72}=_0x5561a0;if(_0x49bc72===![])return 0x0;if(typeof _0x49bc72===_0x2281d5(0xc4))return _0x49bc72>0x0?_0x49bc72:0x0;return isPayloadMethod(_0x5561a0[_0x2281d5(0xc1)])?0x0:0x1;}function shouldRetry(_0x10534a,_0x357d78){const _0xeed176=_0x5f16bb;if(_0x357d78[_0xeed176(0xe1)]?.[_0xeed176(0xd1)]||isAbortError(_0x10534a))return![];const _0x49ce1d=_0x10534a?.[_0xeed176(0xdc)]?.['statusCode'];if(typeof _0x49ce1d!=='number')return!![];return(_0x357d78['retryStatusCodes']??DEFAULT_RETRY_STATUS_CODES)['includes'](_0x49ce1d);}function isPayloadMethod(_0x39fed3){return!!_0x39fed3&&PAYLOAD_METHODS['has'](_0x39fed3['toUpperCase']());}function sleep(_0x2d4996,_0x45054e){return new Promise((_0x363d0f,_0x2bc051)=>{if(_0x45054e?.['aborted']){_0x2bc051(_0x45054e['reason']);return;}if(!(_0x2d4996>0x0)){_0x363d0f();return;}let _0x49f35a=()=>{};const _0x3703b1=setTimeout(()=>{_0x49f35a(),_0x363d0f();},_0x2d4996);_0x49f35a=onAbort(_0x45054e,()=>{const _0x1d12b1=_0x58fd;clearTimeout(_0x3703b1),_0x2bc051(_0x45054e[_0x1d12b1(0xf5)]);});});}function buildURL(_0x454d7c,_0x407a44){const _0x52be54=_0x5f16bb,_0x111d3f=joinURL(_0x407a44['baseURL'],_0x454d7c),_0x366e57=_0x407a44[_0x52be54(0xee)]??{},_0x4714ff=Object['keys'](_0x366e57)['filter'](_0x49cb4d=>_0x366e57[_0x49cb4d]!==void 0x0)['flatMap'](_0x358e60=>{const _0x77a42a=_0x52be54,_0x39f0b6=_0x366e57[_0x358e60];return(Array['isArray'](_0x39f0b6)?_0x39f0b6:[_0x39f0b6])[_0x77a42a(0x101)](_0x190321=>encodeURIComponent(_0x358e60)+'='+encodeURIComponent(String(_0x190321)));})[_0x52be54(0xbc)]('&');if(!_0x4714ff)return _0x111d3f;return''+_0x111d3f+(_0x111d3f['includes']('?')?'&':'?')+_0x4714ff;}function joinURL(_0x4bd75f,_0x3d2bb3){const _0x165134=_0x5f16bb;if(!_0x4bd75f||isAbsoluteURL(_0x3d2bb3))return _0x3d2bb3;return _0x4bd75f[_0x165134(0x105)](/\/+$/,'')+'/'+_0x3d2bb3[_0x165134(0x105)](/^\/+/,'');}function isAbsoluteURL(_0x2fd3e9){const _0x53ccaa=_0x5f16bb;return/^[a-z][a-z\d+\-.]*:\/\//i[_0x53ccaa(0xfb)](_0x2fd3e9)||_0x2fd3e9['startsWith']('//');}function dispatchHttp(_0x839ebc,_0x101cdf,_0x575256){const _0x987592=buildURL(_0x101cdf,_0x575256);return withRetry(_0x575256,()=>attemptRequest(_0x839ebc,_0x101cdf,_0x987592,_0x575256));}function attemptRequest(_0x3936a8,_0x441b44,_0x3ab946,_0x5aa87e){const _0xb450bc=_0x5f16bb,_0x4437ac=!!_0x5aa87e[_0xb450bc(0xca)];return new Promise((_0xa98d40,_0x31aa57)=>{const _0x36140a=_0xb450bc;let _0x44729a=![];const _0x50ea0e=_0x1b76d3=>{if(_0x44729a)return;_0x44729a=!![],_0x1b76d3();},_0x3f2d85=onAbort(_0x5aa87e[_0x36140a(0xe1)],()=>{const _0x5cbb54=_0x36140a;_0x50ea0e(()=>_0x31aa57(_0x5aa87e[_0x5cbb54(0xe1)]['reason']));}),_0xb04ca7=_0x341a38=>{_0x3f2d85(),_0x50ea0e(_0x341a38);};callRequestHooks(_0x441b44,_0x5aa87e)['then'](()=>{if(_0x44729a)return;dispatch(_0x3936a8,_0x3ab946,_0x5aa87e,{'onSuccess':_0x1923a3=>{Promise['resolve']()['then'](()=>refineResponse(_0x1923a3,_0x5aa87e))['then'](async _0x19b989=>{if(isResponseError(_0x1923a3)){await callResponseErrorHooks(_0x441b44,_0x5aa87e,_0x19b989);if(!_0x5aa87e['ignoreResponseError'])throw createResponseError(_0x441b44,_0x5aa87e,_0x19b989);}else await callResponseHooks(_0x441b44,_0x5aa87e,_0x19b989);_0xb04ca7(()=>_0xa98d40(_0x4437ac?_0x19b989:_0x19b989['data']));})['catch'](_0x2dfe35=>_0xb04ca7(()=>_0x31aa57(_0x2dfe35)));},'onFail':_0x2eb8b0=>{const _0x8cbe00=_0x58fd;Promise[_0x8cbe00(0xe3)]()['then'](async()=>{const _0x1c039f=normalizeError(_0x2eb8b0);if(!isAbortError(_0x1c039f))await callRequestErrorHooks(_0x441b44,_0x5aa87e,_0x1c039f);throw _0x1c039f;})['catch'](_0x2668d2=>_0xb04ca7(()=>_0x31aa57(_0x2668d2)));}});})['catch'](async _0x32dc60=>{const _0x30bc3b=normalizeError(_0x32dc60);await callRequestErrorHooks(_0x441b44,_0x5aa87e,_0x30bc3b),_0xb04ca7(()=>_0x31aa57(_0x30bc3b));});});}const _0x16428d={};_0x16428d['method']=_0x5f16bb(0xbe),_0x16428d['responseType']=_0x5f16bb(0xcc);function _0x58fd(_0x580f99,_0x2c01a5){_0x580f99=_0x580f99-0xba;const _0x2ec763=_0x2ec7();let _0x58fdf7=_0x2ec763[_0x580f99];return _0x58fdf7;}function _0x2ec7(){const _0x2f2c76=['uploadFile','file','207ruWaqb','test','emit','message','onSuccess','data','onRequest','map','tempFilePath','statusCode','36sKcFva','replace','text','HttpError','join','6556255edxHwG','GET','onRequestError','files','method','withCredentials','dataType','number','addEventListener','abort','upload','POST','_abort','raw','6lxXGwL','json','onHeadersReceived','PATCH','downloadFile','success','aborted','PUT','listeners','5302396PFsLnZ','2712ddlwUY','header','filePath','220kLtISE','responseType','body','onResponse','response','onProgressUpdate','5802328InleCZ','request','<no\x20response>','signal','parseResponse','resolve','timeout','string','assign','function','create','headers','onabort','onResponseError','267278XbIjjG','69382HGpvRP','query','<no\x20response\x20body>','name','DELETE','646234oCiZlX','url','onFail','reason','download','throwIfAborted'];_0x2ec7=function(){return _0x2f2c76;};return _0x2ec7();}const defaultConfig=_0x16428d;function createHttp(_0x535440={}){const _0x34fe15=_0x5f16bb,_0x1d30a4=(_0x2f95f1,_0x3f7b8c)=>{const _0xd28ba4=_0x58fd;return dispatchHttp(_0xd28ba4(0xdf),_0x2f95f1,mergeOptions(defaultConfig,_0x535440,_0x3f7b8c));},_0x2a9de5=(_0x289158,_0x2a9994)=>{const _0x3ea28b=_0x58fd,_0x11dbff={};return _0x11dbff[_0x3ea28b(0xc1)]=_0x3ea28b(0xc8),dispatchHttp(_0x3ea28b(0xc7),_0x289158,mergeOptions(defaultConfig,_0x535440,_0x2a9994,_0x11dbff));},_0x8fc065=(_0x356233,_0x388108)=>{const _0x3d9cf5=_0x58fd,_0x454f16={};return _0x454f16['method']=_0x3d9cf5(0xbe),dispatchHttp(_0x3d9cf5(0xf6),_0x356233,mergeOptions(defaultConfig,_0x535440,_0x388108,_0x454f16));},_0x5b286=_0x183b0a=>createHttp(mergeOptions(_0x535440,_0x183b0a)),_0xe73817={};return _0xe73817['request']=_0x1d30a4,_0xe73817['upload']=_0x2a9de5,_0xe73817['download']=_0x8fc065,_0xe73817[_0x34fe15(0xe8)]=_0x5b286,_0xe73817;}const http=createHttp();export{http as n,createHttpAborter as r,createHttp as t};
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @oiyo/framework v0.4.0-beta.4
3
+ * Copyright (c) 2026 skiyee. All rights reserved.
4
+ * Commercial software. See LICENSE for terms.
5
+ * Official site: https://oiyo.js.org
6
+ */
7
+ const _0x4fba51=_0x13fd;(function(_0x121627,_0x5c4e87){const _0x1bad9e=_0x13fd,_0x3cbb18=_0x121627();while(!![]){try{const _0x3300f7=parseInt(_0x1bad9e(0x1f6))/0x1+-parseInt(_0x1bad9e(0x23c))/0x2*(parseInt(_0x1bad9e(0x210))/0x3)+-parseInt(_0x1bad9e(0x23e))/0x4+-parseInt(_0x1bad9e(0x232))/0x5*(parseInt(_0x1bad9e(0x20a))/0x6)+-parseInt(_0x1bad9e(0x21e))/0x7+-parseInt(_0x1bad9e(0x23d))/0x8+parseInt(_0x1bad9e(0x213))/0x9;if(_0x3300f7===_0x5c4e87)break;else _0x3cbb18['push'](_0x3cbb18['shift']());}catch(_0x3d4709){_0x3cbb18['push'](_0x3cbb18['shift']());}}}(_0x2230,0xec852));function createHttpAborter(){const _0x2adf00=new HttpAbortSignal();return{'signal':_0x2adf00,'abort':_0x131b6b=>_0x2adf00['_abort'](_0x131b6b)};}const ABORT_ERROR_NAME='AbortError';var AbortEmitter=class{['listeners']=[];['addEventListener'](_0x2f0680,_0x5c853e){if(_0x2f0680!=='abort')return;this['listeners']['push'](_0x5c853e);}[_0x4fba51(0x219)](_0x41508e,_0xfaffe3){const _0x4a4e76=_0x4fba51;if(_0x41508e!==_0x4a4e76(0x22f))return;const _0x26e7cf=this[_0x4a4e76(0x202)][_0x4a4e76(0x205)](_0xfaffe3);if(_0x26e7cf!==-0x1)this[_0x4a4e76(0x202)]['splice'](_0x26e7cf,0x1);}[_0x4fba51(0x242)](_0x1db2f5){const _0x515fb1=_0x4fba51;for(const _0x320119 of this[_0x515fb1(0x202)][_0x515fb1(0x225)]())_0x320119[_0x515fb1(0x222)](this,_0x1db2f5);}},HttpAbortSignal=class extends AbortEmitter{[_0x4fba51(0x226)]=![];['reason']=void 0x0;[_0x4fba51(0x20b)]=null;['_abort'](_0x1da01c){const _0x4dc615=_0x4fba51;if(this[_0x4dc615(0x226)])return;this['aborted']=!![],this[_0x4dc615(0x236)]=_0x1da01c===void 0x0?createAbortError():_0x1da01c;const _0x58bdb0={};_0x58bdb0['type']=_0x4dc615(0x22f);const _0x147217=_0x58bdb0;if(typeof this[_0x4dc615(0x20b)]===_0x4dc615(0x20c))this[_0x4dc615(0x20b)](_0x147217);this[_0x4dc615(0x242)](_0x147217);}['throwIfAborted'](){const _0xb757f2=_0x4fba51;if(this[_0xb757f2(0x226)])throw this['reason'];}};function createAbortError(_0x14df8d='The\x20operation\x20was\x20aborted'){const _0x4080c6=_0x4fba51,_0xfdcacf=new Error(_0x14df8d);return _0xfdcacf[_0x4080c6(0x233)]=ABORT_ERROR_NAME,_0xfdcacf;}function isAbortError(_0x4444f4){const _0x256ed0=_0x4fba51;return _0x4444f4 instanceof Error&&_0x4444f4[_0x256ed0(0x233)]===ABORT_ERROR_NAME;}function onAbort(_0x52b469,_0x21aa11){const _0x45bced=_0x4fba51;if(!_0x52b469)return()=>{};if(_0x52b469[_0x45bced(0x226)])return _0x21aa11(),()=>{};return _0x52b469['addEventListener'](_0x45bced(0x22f),_0x21aa11),()=>_0x52b469[_0x45bced(0x219)]('abort',_0x21aa11);}const HOOK_NAMES=['onRequest',_0x4fba51(0x1ef),'onResponse',_0x4fba51(0x22b)];function mergeOptions(..._0x2918e7){const _0xaa7149=_0x4fba51,_0x472caa={},_0x1f6497={};for(const _0x18b625 of _0x2918e7){if(!_0x18b625)continue;for(const _0x18ac57 of HOOK_NAMES)collectHook(_0x1f6497,_0x18ac57,_0x18b625);const _0x2d214b=_0x472caa[_0xaa7149(0x240)],_0x200f47=_0x472caa['query'];Object['assign'](_0x472caa,_0x18b625);const _0x1e7f17={..._0x2d214b,..._0x18b625['headers']};_0x472caa['headers']=_0x1e7f17;const _0x3a3b80={..._0x200f47,..._0x18b625[_0xaa7149(0x214)]};_0x472caa['query']=_0x3a3b80;}for(const [_0x3b8282,_0x5bd359]of Object[_0xaa7149(0x1f8)](_0x1f6497))Object['assign'](_0x472caa,{[_0x3b8282]:async _0x462fc2=>{for(const _0x4033e6 of _0x5bd359)await _0x4033e6(_0x462fc2);}});return _0x472caa;}function collectHook(_0x326173,_0x4c65db,_0x4ee633){const _0x41fddf=_0x4fba51,_0x4ee0b0=_0x4ee633[_0x4c65db];if(typeof _0x4ee0b0!==_0x41fddf(0x20c))return;_0x326173[_0x4c65db]??=[],_0x326173[_0x4c65db]['push'](_0x4ee0b0);}function dispatch(_0x5f44ff,_0x50e0b9,_0x20f28a,_0x4283fa){const _0x278e4b=_0x4fba51;let _0x46b6a5;if(_0x5f44ff==='upload')_0x46b6a5=dispatchUpload(_0x50e0b9,_0x20f28a,_0x4283fa);else{if(_0x5f44ff===_0x278e4b(0x243))_0x46b6a5=dispatchDownload(_0x50e0b9,_0x20f28a,_0x4283fa);else _0x46b6a5=dispatchRequest(_0x50e0b9,_0x20f28a,_0x4283fa);}bindTask(_0x46b6a5,_0x20f28a);}function bindTask(_0x4d0e68,_0x4143fb){const _0x6a93c7=_0x4fba51;onAbort(_0x4143fb[_0x6a93c7(0x208)],()=>_0x4d0e68['abort']());if(typeof _0x4143fb['onHeadersReceived']===_0x6a93c7(0x20c))_0x4d0e68['onHeadersReceived'](_0x4143fb[_0x6a93c7(0x20e)]);const _0x5352dd=_0x4143fb[_0x6a93c7(0x1f2)];if(typeof _0x5352dd==='function'&&_0x6a93c7(0x1fa)in _0x4d0e68)_0x4d0e68['onProgressUpdate'](_0x5352dd);}function dispatchRequest(_0x3dacc1,_0x30ea27,_0x57e27f){const _0x1502bb=_0x4fba51,_0x5213f1={'url':_0x3dacc1,'method':_0x30ea27['method'],'header':_0x30ea27[_0x1502bb(0x240)],'data':_0x30ea27[_0x1502bb(0x212)]??{},'timeout':_0x30ea27[_0x1502bb(0x238)],'dataType':_0x30ea27['dataType']||'json','responseType':mappedResponseBodyType(_0x30ea27[_0x1502bb(0x206)]),'sslVerify':_0x30ea27[_0x1502bb(0x244)],'withCredentials':_0x30ea27[_0x1502bb(0x1fe)],'firstIpv4':_0x30ea27[_0x1502bb(0x1f7)],'enableHttp2':_0x30ea27[_0x1502bb(0x1ee)],'enableQuic':_0x30ea27['enableQuic'],'enableCache':_0x30ea27[_0x1502bb(0x1f3)],'enableHttpDNS':_0x30ea27[_0x1502bb(0x1f9)],'httpDNSServiceId':_0x30ea27[_0x1502bb(0x230)],'enableChunked':_0x30ea27['enableChunked'],'forceCellularNetwork':_0x30ea27['forceCellularNetwork'],'success':_0x57e27f['onSuccess'],'fail':_0x57e27f['onFail'],'complete':()=>{}};return uni[_0x1502bb(0x1fb)](_0x5213f1);}function dispatchUpload(_0x2af804,_0x245f22,_0x11725f){const _0x416d8f=_0x4fba51,_0x4fd5a6={};_0x4fd5a6[_0x416d8f(0x201)]=_0x2af804,_0x4fd5a6['fileType']=_0x245f22[_0x416d8f(0x227)],_0x4fd5a6['file']=_0x245f22[_0x416d8f(0x203)],_0x4fd5a6[_0x416d8f(0x21b)]=_0x245f22[_0x416d8f(0x21b)],_0x4fd5a6[_0x416d8f(0x233)]=_0x245f22[_0x416d8f(0x233)]??'file',_0x4fd5a6['files']=_0x245f22['files'],_0x4fd5a6[_0x416d8f(0x22d)]=_0x245f22[_0x416d8f(0x240)],_0x4fd5a6['formData']=_0x245f22[_0x416d8f(0x212)]??{},_0x4fd5a6['timeout']=_0x245f22[_0x416d8f(0x238)],_0x4fd5a6['success']=_0x11725f['onSuccess'],_0x4fd5a6['fail']=_0x11725f[_0x416d8f(0x204)],_0x4fd5a6['complete']=()=>{};const _0x3bf949=_0x4fd5a6;return uni[_0x416d8f(0x221)](_0x3bf949);}function dispatchDownload(_0xdc869,_0x57e5a1,_0x3e9c3a){const _0x36e81f=_0x4fba51,_0x3c24d7={'url':_0xdc869,'header':_0x57e5a1[_0x36e81f(0x240)],'timeout':_0x57e5a1[_0x36e81f(0x238)],'success':_0x3c0dd5=>{const _0x2fabfc=_0x36e81f,_0x30d3b7={..._0x3c0dd5};_0x30d3b7[_0x2fabfc(0x22c)]={},_0x30d3b7[_0x2fabfc(0x22c)][_0x2fabfc(0x239)]=_0x3c0dd5[_0x2fabfc(0x239)],_0x3e9c3a[_0x2fabfc(0x20d)](_0x30d3b7);},'fail':_0x3e9c3a[_0x36e81f(0x204)],'complete':()=>{}};return uni[_0x36e81f(0x200)](_0x3c24d7);}function mappedResponseBodyType(_0x5698bd){const _0x3f5a61=_0x4fba51;if(!_0x5698bd||_0x5698bd===_0x3f5a61(0x23f))return _0x3f5a61(0x211);if(_0x5698bd==='arrayBuffer')return'arraybuffer';return _0x3f5a61(0x211);}var HttpError=class extends Error{constructor(_0x2ad565){const _0x13036b=_0x4fba51;super(_0x2ad565),this[_0x13036b(0x233)]='HttpError';}};function createResponseError(_0x524bd4,_0x3bc9ba,_0x44bc35){const _0x55da7e=_0x4fba51,_0x18dca1=_0x524bd4,_0x24d529='['+(_0x3bc9ba?.[_0x55da7e(0x21c)]||'GET')+']\x20'+_0x18dca1,_0x591176=_0x44bc35?_0x44bc35['statusCode']+'\x20'+(_0x44bc35[_0x55da7e(0x231)]||''):'<no\x20response>',_0x9368a7=_0x44bc35?JSON['stringify'](_0x44bc35['data']):'<no\x20response\x20body>',_0x149565=new HttpError(_0x24d529+':\x20'+_0x591176+(_0x44bc35['data']?'\x20'+_0x9368a7:''));for(const _0x39acd0 of[_0x55da7e(0x1fb),_0x55da7e(0x220),'response','data'])Object['defineProperty'](_0x149565,_0x39acd0,{'get'(){const _0x263d8a=_0x55da7e,_0x3a31c2={};return _0x3a31c2['request']=_0x524bd4,_0x3a31c2[_0x263d8a(0x220)]=_0x3bc9ba,_0x3a31c2[_0x263d8a(0x245)]=_0x44bc35,_0x3a31c2['data']=_0x44bc35[_0x263d8a(0x22c)],_0x3a31c2[_0x39acd0];}});return _0x149565;}function normalizeError(_0x149089){const _0x164914=_0x4fba51;if(_0x149089 instanceof Error)return _0x149089;return Object['assign'](new Error(_0x149089?.['errMsg']||_0x149089?.[_0x164914(0x1fc)]||_0x164914(0x207)),{'cause':_0x149089});}async function callRequestHooks(_0x58361e,_0x35241b){await _0x35241b['onRequest']?.({'options':_0x35241b,'resource':_0x58361e});}async function callRequestErrorHooks(_0x46b2b3,_0x3727ed,_0x4ecdcc){const _0xa11a68=_0x4fba51;await _0x3727ed[_0xa11a68(0x1ef)]?.({'options':_0x3727ed,'resource':_0x46b2b3,'error':_0x4ecdcc});}async function callResponseHooks(_0x581d92,_0x50607c,_0x27581a){await _0x50607c['onResponse']?.({'options':_0x50607c,'resource':_0x581d92,'response':_0x27581a});}async function callResponseErrorHooks(_0x557ee4,_0x1b1d8c,_0x2df16f){const _0x51d5de=_0x4fba51;await _0x1b1d8c[_0x51d5de(0x22b)]?.({'options':_0x1b1d8c,'resource':_0x557ee4,'response':_0x2df16f});}async function refineResponse(_0x4b2b9e,_0x5f4a9d){const _0x33cdeb=_0x4fba51;if(_0x5f4a9d['responseType']===_0x33cdeb(0x23f)||!_0x5f4a9d[_0x33cdeb(0x206)])return{..._0x4b2b9e,'data':await parseJSONResponse(_0x4b2b9e[_0x33cdeb(0x22c)],_0x5f4a9d)};return _0x4b2b9e;}function parseJSONResponse(_0x46e458,_0x430caa){const _0x2bcf86=_0x4fba51;if(typeof _0x46e458!==_0x2bcf86(0x235))return _0x46e458;if(_0x430caa['parseResponse'])return _0x430caa['parseResponse'](_0x46e458);return _0x46e458?JSON['parse'](_0x46e458):null;}function isResponseError(_0x198df6){const _0x339244='statusCode'in _0x198df6?_0x198df6['statusCode']:void 0x0;return typeof _0x339244==='number'&&(_0x339244<0xc8||_0x339244>=0x12c);}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set([_0x4fba51(0x234),_0x4fba51(0x1f1),_0x4fba51(0x23a),_0x4fba51(0x22e)]);async function withRetry(_0x462d19,_0x10eac8){const _0x4a302b=_0x4fba51,_0x3b618b=resolveRetryCount(_0x462d19);for(let _0x71db86=0x0;;_0x71db86++)try{return await _0x10eac8();}catch(_0x2af24c){if(_0x71db86>=_0x3b618b||!shouldRetry(_0x2af24c,_0x462d19))throw _0x2af24c;await sleep(_0x462d19[_0x4a302b(0x218)]??0x0,_0x462d19[_0x4a302b(0x208)]);}}function resolveRetryCount(_0xcdd1fb){const _0x317f20=_0x4fba51,{retry:_0x24000c}=_0xcdd1fb;if(_0x24000c===![])return 0x0;if(typeof _0x24000c===_0x317f20(0x229))return _0x24000c>0x0?_0x24000c:0x0;return isPayloadMethod(_0xcdd1fb[_0x317f20(0x21c)])?0x0:0x1;}function _0x13fd(_0x18275c,_0x44762a){_0x18275c=_0x18275c-0x1ee;const _0x223014=_0x2230();let _0x13fd4f=_0x223014[_0x18275c];return _0x13fd4f;}function shouldRetry(_0x2a639e,_0x1b4293){const _0x35556a=_0x4fba51;if(_0x1b4293[_0x35556a(0x208)]?.[_0x35556a(0x226)]||isAbortError(_0x2a639e))return![];const _0x21d53a=_0x2a639e?.[_0x35556a(0x245)]?.[_0x35556a(0x22a)];if(typeof _0x21d53a!==_0x35556a(0x229))return!![];return(_0x1b4293[_0x35556a(0x215)]??DEFAULT_RETRY_STATUS_CODES)['includes'](_0x21d53a);}function isPayloadMethod(_0xa386ce){const _0x3a021b=_0x4fba51;return!!_0xa386ce&&PAYLOAD_METHODS[_0x3a021b(0x216)](_0xa386ce[_0x3a021b(0x217)]());}function sleep(_0x56b2a5,_0x349583){return new Promise((_0xae12b4,_0x7db377)=>{if(_0x349583?.['aborted']){_0x7db377(_0x349583['reason']);return;}if(!(_0x56b2a5>0x0)){_0xae12b4();return;}let _0x4688b0=()=>{};const _0x379b16=setTimeout(()=>{_0x4688b0(),_0xae12b4();},_0x56b2a5);_0x4688b0=onAbort(_0x349583,()=>{const _0x49dc9a=_0x13fd;clearTimeout(_0x379b16),_0x7db377(_0x349583[_0x49dc9a(0x236)]);});});}function buildURL(_0x376fdf,_0x396097){const _0x15552e=_0x4fba51,_0x3062f3=joinURL(_0x396097[_0x15552e(0x1ff)],_0x376fdf),_0x266462=_0x396097['query']??{},_0x178826=Object['keys'](_0x266462)[_0x15552e(0x1fd)](_0xcf386b=>_0x266462[_0xcf386b]!==void 0x0)[_0x15552e(0x224)](_0x4377f0=>{const _0x2ed398=_0x15552e,_0x11f3e5=_0x266462[_0x4377f0];return(Array[_0x2ed398(0x209)](_0x11f3e5)?_0x11f3e5:[_0x11f3e5])['map'](_0x8e1834=>encodeURIComponent(_0x4377f0)+'='+encodeURIComponent(String(_0x8e1834)));})['join']('&');if(!_0x178826)return _0x3062f3;return''+_0x3062f3+(_0x3062f3['includes']('?')?'&':'?')+_0x178826;}function joinURL(_0x4ddcaa,_0x1a43fd){const _0x2cefac=_0x4fba51;if(!_0x4ddcaa||isAbsoluteURL(_0x1a43fd))return _0x1a43fd;return _0x4ddcaa[_0x2cefac(0x1f4)](/\/+$/,'')+'/'+_0x1a43fd['replace'](/^\/+/,'');}function isAbsoluteURL(_0x142287){const _0x3f307b=_0x4fba51;return/^[a-z][a-z\d+\-.]*:\/\//i[_0x3f307b(0x223)](_0x142287)||_0x142287['startsWith']('//');}function dispatchHttp(_0x410cdb,_0x54f997,_0x3a4864){const _0x222f35=buildURL(_0x54f997,_0x3a4864);return withRetry(_0x3a4864,()=>attemptRequest(_0x410cdb,_0x54f997,_0x222f35,_0x3a4864));}function attemptRequest(_0x449e55,_0x40101c,_0x50968f,_0x1f80dc){const _0x1a2a6a=!!_0x1f80dc['raw'];return new Promise((_0xa8de34,_0x1bf077)=>{const _0x21b8d1=_0x13fd;let _0x413685=![];const _0x2610c2=_0x60d159=>{if(_0x413685)return;_0x413685=!![],_0x60d159();},_0x3289e4=onAbort(_0x1f80dc[_0x21b8d1(0x208)],()=>{const _0x4aa346=_0x21b8d1;_0x2610c2(()=>_0x1bf077(_0x1f80dc[_0x4aa346(0x208)][_0x4aa346(0x236)]));}),_0x42aa53=_0x5b3691=>{_0x3289e4(),_0x2610c2(_0x5b3691);};callRequestHooks(_0x40101c,_0x1f80dc)[_0x21b8d1(0x241)](()=>{if(_0x413685)return;dispatch(_0x449e55,_0x50968f,_0x1f80dc,{'onSuccess':_0x2ce980=>{const _0x2da601=_0x13fd;Promise[_0x2da601(0x23b)]()[_0x2da601(0x241)](()=>refineResponse(_0x2ce980,_0x1f80dc))[_0x2da601(0x241)](async _0x167a76=>{const _0x1bb346=_0x2da601;if(isResponseError(_0x2ce980)){await callResponseErrorHooks(_0x40101c,_0x1f80dc,_0x167a76);if(!_0x1f80dc[_0x1bb346(0x21d)])throw createResponseError(_0x40101c,_0x1f80dc,_0x167a76);}else await callResponseHooks(_0x40101c,_0x1f80dc,_0x167a76);_0x42aa53(()=>_0xa8de34(_0x1a2a6a?_0x167a76:_0x167a76[_0x1bb346(0x22c)]));})['catch'](_0x59f817=>_0x42aa53(()=>_0x1bf077(_0x59f817)));},'onFail':_0x6684c2=>{const _0x4f2567=_0x13fd;Promise[_0x4f2567(0x23b)]()['then'](async()=>{const _0x546c26=normalizeError(_0x6684c2);if(!isAbortError(_0x546c26))await callRequestErrorHooks(_0x40101c,_0x1f80dc,_0x546c26);throw _0x546c26;})[_0x4f2567(0x21f)](_0x5d0b13=>_0x42aa53(()=>_0x1bf077(_0x5d0b13)));}});})['catch'](async _0x454fff=>{const _0x5b17b2=normalizeError(_0x454fff);await callRequestErrorHooks(_0x40101c,_0x1f80dc,_0x5b17b2),_0x42aa53(()=>_0x1bf077(_0x5b17b2));});});}const _0x25331f={};_0x25331f[_0x4fba51(0x21c)]=_0x4fba51(0x228),_0x25331f['responseType']='json';function _0x2230(){const _0x12c5c9=['indexOf','responseType','HTTP\x20request\x20failed','signal','isArray','6942TmatzC','onabort','function','onSuccess','onHeadersReceived','enumerable','93sgLfcf','text','body','28436589WQaqnA','query','retryStatusCodes','has','toUpperCase','retryDelay','removeEventListener','defineProperty','filePath','method','ignoreResponseError','6444977QyhzhP','catch','options','uploadFile','call','test','flatMap','slice','aborted','fileType','GET','number','statusCode','onResponseError','data','header','PATCH','abort','httpDNSServiceId','errMsg','285CsAwYJ','name','POST','string','reason','upload','timeout','tempFilePath','DELETE','resolve','16194dHfsFu','1410312EhhWdQ','7254244DQRiOm','json','headers','then','emit','download','sslVerify','response','enableHttp2','onRequestError','createHttp','PUT','onProgress','enableCache','replace','get','1036682lHugaG','firstIpv4','entries','enableHttpDNS','onProgressUpdate','request','message','filter','withCredentials','baseURL','downloadFile','url','listeners','file','onFail'];_0x2230=function(){return _0x12c5c9;};return _0x2230();}const defaultConfig=_0x25331f;function createHttp(_0x31a7b4={}){const _0x2667ea=_0x4fba51,_0xb6a4bb=(_0x14bba9,_0x46f349)=>{const _0x215842=_0x13fd;return dispatchHttp(_0x215842(0x1fb),_0x14bba9,mergeOptions(defaultConfig,_0x31a7b4,_0x46f349));},_0x328e75=(_0x4c5366,_0x358b78)=>{const _0x2fc11b=_0x13fd,_0x216718={};return _0x216718['method']=_0x2fc11b(0x234),dispatchHttp('upload',_0x4c5366,mergeOptions(defaultConfig,_0x31a7b4,_0x358b78,_0x216718));},_0x5c456a=(_0x4d4b29,_0x355eb7)=>{const _0x1a32cc=_0x13fd,_0x5b8ab8={};return _0x5b8ab8[_0x1a32cc(0x21c)]=_0x1a32cc(0x228),dispatchHttp(_0x1a32cc(0x243),_0x4d4b29,mergeOptions(defaultConfig,_0x31a7b4,_0x355eb7,_0x5b8ab8));},_0x22558a=_0x399de5=>createHttp(mergeOptions(_0x31a7b4,_0x399de5)),_0xfeafa3={};return _0xfeafa3[_0x2667ea(0x1fb)]=_0xb6a4bb,_0xfeafa3[_0x2667ea(0x237)]=_0x328e75,_0xfeafa3[_0x2667ea(0x243)]=_0x5c456a,_0xfeafa3['create']=_0x22558a,_0xfeafa3;}const http=createHttp(),_0xb321e1={};_0xb321e1['enumerable']=!![],_0xb321e1[_0x4fba51(0x1f5)]=function(){return createHttp;},Object['defineProperty'](exports,_0x4fba51(0x1f0),_0xb321e1);const _0x208945={};_0x208945['enumerable']=!![],_0x208945['get']=function(){return createHttpAborter;},Object['defineProperty'](exports,'createHttpAborter',_0x208945);const _0x137483={};_0x137483[_0x4fba51(0x20f)]=!![],_0x137483[_0x4fba51(0x1f5)]=function(){return http;},Object[_0x4fba51(0x21a)](exports,'http',_0x137483);
package/dist/oiyo.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @oiyo/framework v0.4.0-beta.3
2
+ * @oiyo/framework v0.4.0-beta.4
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-BOfXIUcB.cjs");
8
+ const require_oiyo = require("./oiyo-Bk99mH2t.cjs");
9
9
  exports.createHttp = require_oiyo.createHttp;
10
10
  exports.createHttpAborter = require_oiyo.createHttpAborter;
11
11
  exports.http = require_oiyo.http;
package/dist/oiyo.d.cts CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @oiyo/framework v0.4.0-beta.3
2
+ * @oiyo/framework v0.4.0-beta.4
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
6
6
  */
7
- import { a as HttpDownloadResponse, c as HttpDownloadOptions, d as ResponseBodyType, f as createHttpAborter, i as HttpError, l as HttpRequestOptions, n as http, o as HttpRequestResponse, r as HttpConfig, s as HttpUploadResponse, t as createHttp, u as HttpUploadOptions } from "./index-B4NECdKj.cjs";
7
+ import { a as HttpDownloadResponse, c as HttpDownloadOptions, d as ResponseBodyType, f as createHttpAborter, i as HttpError, l as HttpRequestOptions, n as http, o as HttpRequestResponse, r as HttpConfig, s as HttpUploadResponse, t as createHttp, u as HttpUploadOptions } from "./index-5kdIt9Pt.cjs";
8
8
  export { type HttpConfig, type HttpDownloadOptions, type HttpDownloadResponse, type HttpError, type HttpRequestOptions, type HttpRequestResponse, type HttpUploadOptions, type HttpUploadResponse, type ResponseBodyType, createHttp, createHttpAborter, http };
package/dist/oiyo.d.mts CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @oiyo/framework v0.4.0-beta.3
2
+ * @oiyo/framework v0.4.0-beta.4
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
6
6
  */
7
- import { a as HttpDownloadResponse, c as HttpDownloadOptions, d as ResponseBodyType, f as createHttpAborter, i as HttpError, l as HttpRequestOptions, n as http, o as HttpRequestResponse, r as HttpConfig, s as HttpUploadResponse, t as createHttp, u as HttpUploadOptions } from "./index-B4NECdKj.mjs";
7
+ import { a as HttpDownloadResponse, c as HttpDownloadOptions, d as ResponseBodyType, f as createHttpAborter, i as HttpError, l as HttpRequestOptions, n as http, o as HttpRequestResponse, r as HttpConfig, s as HttpUploadResponse, t as createHttp, u as HttpUploadOptions } from "./index-5kdIt9Pt.mjs";
8
8
  export { type HttpConfig, type HttpDownloadOptions, type HttpDownloadResponse, type HttpError, type HttpRequestOptions, type HttpRequestResponse, type HttpUploadOptions, type HttpUploadResponse, type ResponseBodyType, createHttp, createHttpAborter, http };
package/dist/oiyo.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @oiyo/framework v0.4.0-beta.3
2
+ * @oiyo/framework v0.4.0-beta.4
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-BOeGyXdP.mjs";
7
+ import { n as http, r as createHttpAborter, t as createHttp } from "./oiyo-BGCwnpnq.mjs";
8
8
  export { createHttp, createHttpAborter, http };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.0-beta.3
2
+ * @oiyo/framework v0.4.0-beta.4
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.0-beta.3
2
+ * @oiyo/framework v0.4.0-beta.4
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
package/dist/uni.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @oiyo/framework v0.4.0-beta.3
2
+ * @oiyo/framework v0.4.0-beta.4
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("./chunk-BGy3oB1q.cjs");
8
+ require("./rolldown-runtime-BU7qlqHq.cjs");
9
9
  var _dcloudio_uni_app = require("@dcloudio/uni-app");
10
10
  Object.keys(_dcloudio_uni_app).forEach(function(k) {
11
11
  if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
package/dist/uni.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.0-beta.3
2
+ * @oiyo/framework v0.4.0-beta.4
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
package/dist/uni.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.0-beta.3
2
+ * @oiyo/framework v0.4.0-beta.4
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
package/dist/uni.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @oiyo/framework v0.4.0-beta.3
2
+ * @oiyo/framework v0.4.0-beta.4
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 "./chunk-BIMTDWTb.mjs";
7
+ import "./rolldown-runtime-C4TXImMl.mjs";
8
8
  export * from "@dcloudio/uni-app";
9
9
  export {};
package/dist/vue.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @oiyo/framework v0.4.0-beta.3
2
+ * @oiyo/framework v0.4.0-beta.4
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("./chunk-BGy3oB1q.cjs");
8
+ require("./rolldown-runtime-BU7qlqHq.cjs");
9
9
  var vue = require("vue");
10
10
  Object.keys(vue).forEach(function(k) {
11
11
  if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
package/dist/vue.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.0-beta.3
2
+ * @oiyo/framework v0.4.0-beta.4
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
package/dist/vue.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.0-beta.3
2
+ * @oiyo/framework v0.4.0-beta.4
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
package/dist/vue.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @oiyo/framework v0.4.0-beta.3
2
+ * @oiyo/framework v0.4.0-beta.4
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 "./chunk-BIMTDWTb.mjs";
7
+ import "./rolldown-runtime-C4TXImMl.mjs";
8
8
  export * from "vue";
9
9
  export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oiyo/framework",
3
3
  "type": "module",
4
- "version": "0.4.0-beta.3",
4
+ "version": "0.4.0-beta.4",
5
5
  "author": {
6
6
  "name": "skiyee",
7
7
  "email": "319619193@qq.com",
@@ -1,7 +0,0 @@
1
- /**
2
- * @oiyo/framework v0.4.0-beta.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 _0x7f66db=_0xbd60;(function(_0x5329f5,_0x2e49f1){const _0x3d95dd=_0xbd60,_0x5c89f7=_0x5329f5();while(!![]){try{const _0x2d6984=-parseInt(_0x3d95dd(0x1a2))/0x1+-parseInt(_0x3d95dd(0x192))/0x2+parseInt(_0x3d95dd(0x1ac))/0x3+-parseInt(_0x3d95dd(0x196))/0x4+-parseInt(_0x3d95dd(0x17e))/0x5*(-parseInt(_0x3d95dd(0x1ad))/0x6)+parseInt(_0x3d95dd(0x1b5))/0x7*(-parseInt(_0x3d95dd(0x19d))/0x8)+parseInt(_0x3d95dd(0x184))/0x9;if(_0x2d6984===_0x2e49f1)break;else _0x5c89f7['push'](_0x5c89f7['shift']());}catch(_0x1dc112){_0x5c89f7['push'](_0x5c89f7['shift']());}}}(_0x5285,0xe55e8));function createHttpAborter(){const _0x44e027=new HttpAbortSignal();return{'signal':_0x44e027,'abort':_0x2f3f62=>_0x44e027['_abort'](_0x2f3f62)};}const ABORT_ERROR_NAME='AbortError';var AbortEmitter=class{[_0x7f66db(0x186)]=[];[_0x7f66db(0x180)](_0x2cabe1,_0x11dc68){const _0x52debf=_0x7f66db;if(_0x2cabe1!==_0x52debf(0x165))return;this['listeners'][_0x52debf(0x1a7)](_0x11dc68);}[_0x7f66db(0x1b1)](_0x52c5cf,_0xd11530){const _0x1cd231=_0x7f66db;if(_0x52c5cf!==_0x1cd231(0x165))return;const _0x2890fa=this[_0x1cd231(0x186)]['indexOf'](_0xd11530);if(_0x2890fa!==-0x1)this[_0x1cd231(0x186)][_0x1cd231(0x18a)](_0x2890fa,0x1);}['emit'](_0x5e69ac){const _0x5b89ad=_0x7f66db;for(const _0x54cbbd of this[_0x5b89ad(0x186)][_0x5b89ad(0x16b)]())_0x54cbbd[_0x5b89ad(0x161)](this,_0x5e69ac);}},HttpAbortSignal=class extends AbortEmitter{[_0x7f66db(0x17d)]=![];[_0x7f66db(0x1b2)]=void 0x0;['onabort']=null;['_abort'](_0x480e56){const _0x4907f5=_0x7f66db;if(this['aborted'])return;this[_0x4907f5(0x17d)]=!![],this[_0x4907f5(0x1b2)]=_0x480e56===void 0x0?createAbortError():_0x480e56;const _0xe545b3={};_0xe545b3['type']='abort';const _0x240b87=_0xe545b3;if(typeof this['onabort']===_0x4907f5(0x19c))this[_0x4907f5(0x1b6)](_0x240b87);this['emit'](_0x240b87);}['throwIfAborted'](){if(this['aborted'])throw this['reason'];}};function _0x5285(){const _0x209e57=['GET','657160qdONeS','onabort','fail','body','call','has','tempFilePath','text','abort','resolve','entries','catch','create','assign','slice','query','enableCache','onFail','enableHttpDNS','baseURL','parseResponse','options','DELETE','file','upload','url','uploadFile','HttpError','json','The\x20operation\x20was\x20aborted','errMsg','headers','aborted','7627825ZhMlWe','enableQuic','addEventListener','timeout','request','response','34158357xiokoG','name','listeners','filePath','stringify','<no\x20response\x20body>','splice','method','statusCode','fileType','sslVerify','onResponseError','onProgressUpdate','raw','2085444mMreSe','download','data','ignoreResponseError','3053560iciMNU','onSuccess','dataType','number','success','responseType','function','152gbpMgy','enableChunked','onResponse','retryDelay','POST','1605742uALFOI','httpDNSServiceId','header','flatMap','onHeadersReceived','push','signal','formData','then','map','2442396alwqWg','6MyXsDm','arrayBuffer','test','files','removeEventListener','reason','complete'];_0x5285=function(){return _0x209e57;};return _0x5285();}function createAbortError(_0x2aba9c=_0x7f66db(0x17a)){const _0x2765a3=new Error(_0x2aba9c);return _0x2765a3['name']=ABORT_ERROR_NAME,_0x2765a3;}function isAbortError(_0x3dc750){return _0x3dc750 instanceof Error&&_0x3dc750['name']===ABORT_ERROR_NAME;}function onAbort(_0x3550d1,_0xbcf30f){const _0x2f9a53=_0x7f66db;if(!_0x3550d1)return()=>{};if(_0x3550d1['aborted'])return _0xbcf30f(),()=>{};return _0x3550d1['addEventListener'](_0x2f9a53(0x165),_0xbcf30f),()=>_0x3550d1[_0x2f9a53(0x1b1)]('abort',_0xbcf30f);}const HOOK_NAMES=['onRequest','onRequestError',_0x7f66db(0x19f),_0x7f66db(0x18f)];function mergeOptions(..._0x599e4f){const _0x200528=_0x7f66db,_0x28a101={},_0x239b26={};for(const _0xa90c35 of _0x599e4f){if(!_0xa90c35)continue;for(const _0x16aa49 of HOOK_NAMES)collectHook(_0x239b26,_0x16aa49,_0xa90c35);const _0xbba6d1=_0x28a101['headers'],_0x3bbb47=_0x28a101[_0x200528(0x16c)];Object[_0x200528(0x16a)](_0x28a101,_0xa90c35);const _0x1401b5={..._0xbba6d1,..._0xa90c35['headers']};_0x28a101['headers']=_0x1401b5;const _0x45cd5f={..._0x3bbb47,..._0xa90c35['query']};_0x28a101['query']=_0x45cd5f;}for(const [_0x443a84,_0x1585c4]of Object[_0x200528(0x167)](_0x239b26))Object[_0x200528(0x16a)](_0x28a101,{[_0x443a84]:async _0x426c44=>{for(const _0x50630a of _0x1585c4)await _0x50630a(_0x426c44);}});return _0x28a101;}function collectHook(_0x4054bd,_0x5fc684,_0x520f7c){const _0x1ef9cd=_0x7f66db,_0x29e474=_0x520f7c[_0x5fc684];if(typeof _0x29e474!==_0x1ef9cd(0x19c))return;_0x4054bd[_0x5fc684]??=[],_0x4054bd[_0x5fc684]['push'](_0x29e474);}function dispatch(_0x46d616,_0x350c2d,_0x41586a,_0x57b52a){const _0x3cd526=_0x7f66db;let _0x58fc23;if(_0x46d616===_0x3cd526(0x175))_0x58fc23=dispatchUpload(_0x350c2d,_0x41586a,_0x57b52a);else{if(_0x46d616===_0x3cd526(0x193))_0x58fc23=dispatchDownload(_0x350c2d,_0x41586a,_0x57b52a);else _0x58fc23=dispatchRequest(_0x350c2d,_0x41586a,_0x57b52a);}bindTask(_0x58fc23,_0x41586a);}function bindTask(_0xf903c2,_0x2e7095){const _0x4d051e=_0x7f66db;onAbort(_0x2e7095[_0x4d051e(0x1a8)],()=>_0xf903c2[_0x4d051e(0x165)]());if(typeof _0x2e7095[_0x4d051e(0x1a6)]===_0x4d051e(0x19c))_0xf903c2[_0x4d051e(0x1a6)](_0x2e7095[_0x4d051e(0x1a6)]);const _0x9c58a6=_0x2e7095['onProgress'];if(typeof _0x9c58a6===_0x4d051e(0x19c)&&_0x4d051e(0x190)in _0xf903c2)_0xf903c2['onProgressUpdate'](_0x9c58a6);}function dispatchRequest(_0x388141,_0x215477,_0x3ffa61){const _0x4e1c5b=_0x7f66db,_0x44f40e={'url':_0x388141,'method':_0x215477[_0x4e1c5b(0x18b)],'header':_0x215477[_0x4e1c5b(0x17c)],'data':_0x215477['body']??{},'timeout':_0x215477['timeout'],'dataType':_0x215477[_0x4e1c5b(0x198)]||'json','responseType':mappedResponseBodyType(_0x215477['responseType']),'sslVerify':_0x215477[_0x4e1c5b(0x18e)],'withCredentials':_0x215477['withCredentials'],'firstIpv4':_0x215477['firstIpv4'],'enableHttp2':_0x215477['enableHttp2'],'enableQuic':_0x215477[_0x4e1c5b(0x17f)],'enableCache':_0x215477[_0x4e1c5b(0x16d)],'enableHttpDNS':_0x215477[_0x4e1c5b(0x16f)],'httpDNSServiceId':_0x215477[_0x4e1c5b(0x1a3)],'enableChunked':_0x215477[_0x4e1c5b(0x19e)],'forceCellularNetwork':_0x215477['forceCellularNetwork'],'success':_0x3ffa61['onSuccess'],'fail':_0x3ffa61[_0x4e1c5b(0x16e)],'complete':()=>{}};return uni['request'](_0x44f40e);}function dispatchUpload(_0x1d6944,_0x4b9116,_0x2bf192){const _0x48cc7a=_0x7f66db,_0x192b94={};_0x192b94[_0x48cc7a(0x176)]=_0x1d6944,_0x192b94['fileType']=_0x4b9116[_0x48cc7a(0x18d)],_0x192b94['file']=_0x4b9116['file'],_0x192b94[_0x48cc7a(0x187)]=_0x4b9116[_0x48cc7a(0x187)],_0x192b94[_0x48cc7a(0x185)]=_0x4b9116['name']??_0x48cc7a(0x174),_0x192b94[_0x48cc7a(0x1b0)]=_0x4b9116['files'],_0x192b94[_0x48cc7a(0x1a4)]=_0x4b9116['headers'],_0x192b94[_0x48cc7a(0x1a9)]=_0x4b9116[_0x48cc7a(0x160)]??{},_0x192b94['timeout']=_0x4b9116[_0x48cc7a(0x181)],_0x192b94[_0x48cc7a(0x19a)]=_0x2bf192['onSuccess'],_0x192b94[_0x48cc7a(0x1b7)]=_0x2bf192[_0x48cc7a(0x16e)],_0x192b94[_0x48cc7a(0x1b3)]=()=>{};const _0x538c8a=_0x192b94;return uni[_0x48cc7a(0x177)](_0x538c8a);}function dispatchDownload(_0x36ca09,_0x132551,_0x20d202){const _0x5bfd65={'url':_0x36ca09,'header':_0x132551['headers'],'timeout':_0x132551['timeout'],'success':_0x1c2c65=>{const _0x2febf4=_0xbd60,_0x1b88cd={..._0x1c2c65};_0x1b88cd[_0x2febf4(0x194)]={},_0x1b88cd[_0x2febf4(0x194)]['tempFilePath']=_0x1c2c65[_0x2febf4(0x163)],_0x20d202[_0x2febf4(0x197)](_0x1b88cd);},'fail':_0x20d202['onFail'],'complete':()=>{}};return uni['downloadFile'](_0x5bfd65);}function mappedResponseBodyType(_0x28a251){const _0x50da86=_0x7f66db;if(!_0x28a251||_0x28a251===_0x50da86(0x179))return'text';if(_0x28a251===_0x50da86(0x1ae))return'arraybuffer';return _0x50da86(0x164);}function _0xbd60(_0x5acaf0,_0x406d7e){_0x5acaf0=_0x5acaf0-0x160;const _0x5285a2=_0x5285();let _0xbd60a0=_0x5285a2[_0x5acaf0];return _0xbd60a0;}var HttpError=class extends Error{constructor(_0x408d09){const _0x302b70=_0x7f66db;super(_0x408d09),this['name']=_0x302b70(0x178);}};function createResponseError(_0x36462b,_0x470398,_0x49cfe6){const _0x5574d9=_0x7f66db,_0x2e236a=_0x36462b,_0x5a935f='['+(_0x470398?.['method']||_0x5574d9(0x1b4))+']\x20'+_0x2e236a,_0x53e8b8=_0x49cfe6?_0x49cfe6[_0x5574d9(0x18c)]+'\x20'+(_0x49cfe6[_0x5574d9(0x17b)]||''):'<no\x20response>',_0x180ea=_0x49cfe6?JSON[_0x5574d9(0x188)](_0x49cfe6['data']):_0x5574d9(0x189),_0x33b266=new HttpError(_0x5a935f+':\x20'+_0x53e8b8+(_0x49cfe6['data']?'\x20'+_0x180ea:''));for(const _0xf2c3ce of[_0x5574d9(0x182),_0x5574d9(0x172),'response','data'])Object['defineProperty'](_0x33b266,_0xf2c3ce,{'get'(){const _0x372432=_0x5574d9,_0x2a7f1c={};return _0x2a7f1c['request']=_0x36462b,_0x2a7f1c['options']=_0x470398,_0x2a7f1c[_0x372432(0x183)]=_0x49cfe6,_0x2a7f1c['data']=_0x49cfe6[_0x372432(0x194)],_0x2a7f1c[_0xf2c3ce];}});return _0x33b266;}function normalizeError(_0x45d1a3){if(_0x45d1a3 instanceof Error)return _0x45d1a3;return Object['assign'](new Error(_0x45d1a3?.['errMsg']||_0x45d1a3?.['message']||'HTTP\x20request\x20failed'),{'cause':_0x45d1a3});}async function callRequestHooks(_0x110750,_0x456e15){await _0x456e15['onRequest']?.({'options':_0x456e15,'resource':_0x110750});}async function callRequestErrorHooks(_0x6269d8,_0x27bc6f,_0x3660e7){await _0x27bc6f['onRequestError']?.({'options':_0x27bc6f,'resource':_0x6269d8,'error':_0x3660e7});}async function callResponseHooks(_0x4bc4d4,_0x3f0330,_0x1d86af){const _0x16b730=_0x7f66db;await _0x3f0330[_0x16b730(0x19f)]?.({'options':_0x3f0330,'resource':_0x4bc4d4,'response':_0x1d86af});}async function callResponseErrorHooks(_0x313f4a,_0x54edda,_0x1a479e){const _0x3101c3=_0x7f66db;await _0x54edda[_0x3101c3(0x18f)]?.({'options':_0x54edda,'resource':_0x313f4a,'response':_0x1a479e});}async function refineResponse(_0x1a5c9b,_0x3e2509){const _0x38e023=_0x7f66db;if(_0x3e2509[_0x38e023(0x19b)]==='json'||!_0x3e2509['responseType'])return{..._0x1a5c9b,'data':await parseJSONResponse(_0x1a5c9b['data'],_0x3e2509)};return _0x1a5c9b;}function parseJSONResponse(_0x2d279e,_0x3a2879){const _0x208319=_0x7f66db;if(typeof _0x2d279e!=='string')return _0x2d279e;if(_0x3a2879[_0x208319(0x171)])return _0x3a2879[_0x208319(0x171)](_0x2d279e);return _0x2d279e?JSON['parse'](_0x2d279e):null;}function isResponseError(_0x4f8261){const _0x42721f=_0x7f66db,_0x229350='statusCode'in _0x4f8261?_0x4f8261['statusCode']:void 0x0;return typeof _0x229350===_0x42721f(0x199)&&(_0x229350<0xc8||_0x229350>=0x12c);}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set([_0x7f66db(0x1a1),'PUT',_0x7f66db(0x173),'PATCH']);async function withRetry(_0x364372,_0x2554e2){const _0xd3cf43=_0x7f66db,_0x2c9105=resolveRetryCount(_0x364372);for(let _0x191809=0x0;;_0x191809++)try{return await _0x2554e2();}catch(_0x511f2e){if(_0x191809>=_0x2c9105||!shouldRetry(_0x511f2e,_0x364372))throw _0x511f2e;await sleep(_0x364372[_0xd3cf43(0x1a0)]??0x0,_0x364372['signal']);}}function resolveRetryCount(_0x5592fe){const _0x265279=_0x7f66db,{retry:_0x3fed04}=_0x5592fe;if(_0x3fed04===![])return 0x0;if(typeof _0x3fed04==='number')return _0x3fed04>0x0?_0x3fed04:0x0;return isPayloadMethod(_0x5592fe[_0x265279(0x18b)])?0x0:0x1;}function shouldRetry(_0x1efb62,_0x4c4c7a){const _0x2e2334=_0x7f66db;if(_0x4c4c7a[_0x2e2334(0x1a8)]?.['aborted']||isAbortError(_0x1efb62))return![];const _0x1e46b6=_0x1efb62?.[_0x2e2334(0x183)]?.['statusCode'];if(typeof _0x1e46b6!=='number')return!![];return(_0x4c4c7a['retryStatusCodes']??DEFAULT_RETRY_STATUS_CODES)['includes'](_0x1e46b6);}function isPayloadMethod(_0x50bfc2){const _0x132a4a=_0x7f66db;return!!_0x50bfc2&&PAYLOAD_METHODS[_0x132a4a(0x162)](_0x50bfc2['toUpperCase']());}function sleep(_0x54602f,_0x6c2f99){return new Promise((_0xa7da23,_0x761457)=>{if(_0x6c2f99?.['aborted']){_0x761457(_0x6c2f99['reason']);return;}if(!(_0x54602f>0x0)){_0xa7da23();return;}let _0x219729=()=>{};const _0x104842=setTimeout(()=>{_0x219729(),_0xa7da23();},_0x54602f);_0x219729=onAbort(_0x6c2f99,()=>{clearTimeout(_0x104842),_0x761457(_0x6c2f99['reason']);});});}function buildURL(_0x3e43ae,_0x16d5c4){const _0x5aeb9a=_0x7f66db,_0x2f7128=joinURL(_0x16d5c4[_0x5aeb9a(0x170)],_0x3e43ae),_0x52c30d=_0x16d5c4['query']??{},_0xf4c521=Object['keys'](_0x52c30d)['filter'](_0xa38c9c=>_0x52c30d[_0xa38c9c]!==void 0x0)[_0x5aeb9a(0x1a5)](_0x4c47e0=>{const _0x1ac10c=_0x5aeb9a,_0x4da312=_0x52c30d[_0x4c47e0];return(Array['isArray'](_0x4da312)?_0x4da312:[_0x4da312])[_0x1ac10c(0x1ab)](_0x8ecbb3=>encodeURIComponent(_0x4c47e0)+'='+encodeURIComponent(String(_0x8ecbb3)));})['join']('&');if(!_0xf4c521)return _0x2f7128;return''+_0x2f7128+(_0x2f7128['includes']('?')?'&':'?')+_0xf4c521;}function joinURL(_0x1cecf2,_0x931937){if(!_0x1cecf2||isAbsoluteURL(_0x931937))return _0x931937;return _0x1cecf2['replace'](/\/+$/,'')+'/'+_0x931937['replace'](/^\/+/,'');}function isAbsoluteURL(_0x37b105){const _0x1d735d=_0x7f66db;return/^[a-z][a-z\d+\-.]*:\/\//i[_0x1d735d(0x1af)](_0x37b105)||_0x37b105['startsWith']('//');}function dispatchHttp(_0x2bf126,_0x4297ba,_0x1ca056){const _0x53f25b=buildURL(_0x4297ba,_0x1ca056);return withRetry(_0x1ca056,()=>attemptRequest(_0x2bf126,_0x4297ba,_0x53f25b,_0x1ca056));}function attemptRequest(_0x45941f,_0x27c0df,_0x516ecf,_0x386a6a){const _0x5c0edc=_0x7f66db,_0x3b6656=!!_0x386a6a[_0x5c0edc(0x191)];return new Promise((_0x2c00d7,_0x1e5850)=>{const _0x3871e4=_0x5c0edc;let _0x521053=![];const _0x3b91c8=_0x1e12c7=>{if(_0x521053)return;_0x521053=!![],_0x1e12c7();},_0x1a912c=onAbort(_0x386a6a[_0x3871e4(0x1a8)],()=>{_0x3b91c8(()=>_0x1e5850(_0x386a6a['signal']['reason']));}),_0x29e1f9=_0x5342e0=>{_0x1a912c(),_0x3b91c8(_0x5342e0);};callRequestHooks(_0x27c0df,_0x386a6a)[_0x3871e4(0x1aa)](()=>{if(_0x521053)return;dispatch(_0x45941f,_0x516ecf,_0x386a6a,{'onSuccess':_0x39d652=>{const _0x5b586a=_0xbd60;Promise[_0x5b586a(0x166)]()[_0x5b586a(0x1aa)](()=>refineResponse(_0x39d652,_0x386a6a))[_0x5b586a(0x1aa)](async _0x27f138=>{const _0x6aec80=_0x5b586a;if(isResponseError(_0x39d652)){await callResponseErrorHooks(_0x27c0df,_0x386a6a,_0x27f138);if(!_0x386a6a[_0x6aec80(0x195)])throw createResponseError(_0x27c0df,_0x386a6a,_0x27f138);}else await callResponseHooks(_0x27c0df,_0x386a6a,_0x27f138);_0x29e1f9(()=>_0x2c00d7(_0x3b6656?_0x27f138:_0x27f138['data']));})['catch'](_0x3a216a=>_0x29e1f9(()=>_0x1e5850(_0x3a216a)));},'onFail':_0x4eb09b=>{const _0x3a5398=_0xbd60;Promise[_0x3a5398(0x166)]()['then'](async()=>{const _0x326fd2=normalizeError(_0x4eb09b);if(!isAbortError(_0x326fd2))await callRequestErrorHooks(_0x27c0df,_0x386a6a,_0x326fd2);throw _0x326fd2;})[_0x3a5398(0x168)](_0x4037e0=>_0x29e1f9(()=>_0x1e5850(_0x4037e0)));}});})[_0x3871e4(0x168)](async _0xb46300=>{const _0x33c69e=normalizeError(_0xb46300);await callRequestErrorHooks(_0x27c0df,_0x386a6a,_0x33c69e),_0x29e1f9(()=>_0x1e5850(_0x33c69e));});});}const _0x424161={};_0x424161['method']='GET',_0x424161['responseType']='json';const defaultConfig=_0x424161;function createHttp(_0x19868={}){const _0x33ec67=_0x7f66db,_0x26f4fe=(_0x57f853,_0x3ab5d1)=>{const _0x4c7ae7=_0xbd60;return dispatchHttp(_0x4c7ae7(0x182),_0x57f853,mergeOptions(defaultConfig,_0x19868,_0x3ab5d1));},_0xc433c5=(_0x2797e3,_0x11ea28)=>{const _0x4e1036={};return _0x4e1036['method']='POST',dispatchHttp('upload',_0x2797e3,mergeOptions(defaultConfig,_0x19868,_0x11ea28,_0x4e1036));},_0x3b8ec0=(_0x3ca3d3,_0x14aac5)=>{const _0x177efb=_0xbd60,_0x43f2cf={};return _0x43f2cf[_0x177efb(0x18b)]=_0x177efb(0x1b4),dispatchHttp(_0x177efb(0x193),_0x3ca3d3,mergeOptions(defaultConfig,_0x19868,_0x14aac5,_0x43f2cf));},_0x5399c4=_0x2908e0=>createHttp(mergeOptions(_0x19868,_0x2908e0)),_0x239775={};return _0x239775[_0x33ec67(0x182)]=_0x26f4fe,_0x239775['upload']=_0xc433c5,_0x239775['download']=_0x3b8ec0,_0x239775[_0x33ec67(0x169)]=_0x5399c4,_0x239775;}const http=createHttp();export{http as n,createHttpAborter as r,createHttp as t};
@@ -1,7 +0,0 @@
1
- /**
2
- * @oiyo/framework v0.4.0-beta.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 _0x27439e=_0x5c48;(function(_0x46122b,_0x12be92){const _0x90f373=_0x5c48,_0x2cd1e9=_0x46122b();while(!![]){try{const _0xf3be82=-parseInt(_0x90f373(0x1b1))/0x1*(-parseInt(_0x90f373(0x1f5))/0x2)+parseInt(_0x90f373(0x1fb))/0x3*(parseInt(_0x90f373(0x1d8))/0x4)+-parseInt(_0x90f373(0x1f0))/0x5*(parseInt(_0x90f373(0x1db))/0x6)+parseInt(_0x90f373(0x1d6))/0x7+parseInt(_0x90f373(0x1f6))/0x8*(-parseInt(_0x90f373(0x1b6))/0x9)+parseInt(_0x90f373(0x1cd))/0xa*(parseInt(_0x90f373(0x1e7))/0xb)+-parseInt(_0x90f373(0x1e1))/0xc;if(_0xf3be82===_0x12be92)break;else _0x2cd1e9['push'](_0x2cd1e9['shift']());}catch(_0x1444ae){_0x2cd1e9['push'](_0x2cd1e9['shift']());}}}(_0x591a,0x26f8d));function createHttpAborter(){const _0xef7a19=_0x5c48,_0x91841d=new HttpAbortSignal();return{'signal':_0x91841d,'abort':_0x425c57=>_0x91841d[_0xef7a19(0x1b8)](_0x425c57)};}const ABORT_ERROR_NAME=_0x27439e(0x1c4);var AbortEmitter=class{[_0x27439e(0x1c5)]=[];[_0x27439e(0x1b5)](_0x150af6,_0x6de233){const _0x100d4b=_0x27439e;if(_0x150af6!==_0x100d4b(0x1eb))return;this[_0x100d4b(0x1c5)]['push'](_0x6de233);}['removeEventListener'](_0x5e85d4,_0x929758){const _0x1909b7=_0x27439e;if(_0x5e85d4!=='abort')return;const _0x1e9507=this['listeners'][_0x1909b7(0x1d9)](_0x929758);if(_0x1e9507!==-0x1)this[_0x1909b7(0x1c5)][_0x1909b7(0x1b3)](_0x1e9507,0x1);}['emit'](_0x3c1115){const _0x235c9f=_0x27439e;for(const _0x21231b of this['listeners']['slice']())_0x21231b[_0x235c9f(0x1b4)](this,_0x3c1115);}},HttpAbortSignal=class extends AbortEmitter{[_0x27439e(0x1be)]=![];[_0x27439e(0x1f4)]=void 0x0;['onabort']=null;[_0x27439e(0x1b8)](_0x1e85b1){const _0x171574=_0x27439e;if(this[_0x171574(0x1be)])return;this['aborted']=!![],this['reason']=_0x1e85b1===void 0x0?createAbortError():_0x1e85b1;const _0x1b8d17={};_0x1b8d17[_0x171574(0x1ed)]='abort';const _0x218691=_0x1b8d17;if(typeof this[_0x171574(0x1e4)]==='function')this[_0x171574(0x1e4)](_0x218691);this['emit'](_0x218691);}['throwIfAborted'](){if(this['aborted'])throw this['reason'];}};function createAbortError(_0x2e78a3=_0x27439e(0x1ff)){const _0x4d66a1=new Error(_0x2e78a3);return _0x4d66a1['name']=ABORT_ERROR_NAME,_0x4d66a1;}function isAbortError(_0x34acf2){const _0x47cab1=_0x27439e;return _0x34acf2 instanceof Error&&_0x34acf2[_0x47cab1(0x1cb)]===ABORT_ERROR_NAME;}function onAbort(_0x1f6497,_0x460e95){const _0x3bb818=_0x27439e;if(!_0x1f6497)return()=>{};if(_0x1f6497[_0x3bb818(0x1be)])return _0x460e95(),()=>{};return _0x1f6497[_0x3bb818(0x1b5)]('abort',_0x460e95),()=>_0x1f6497[_0x3bb818(0x1e8)](_0x3bb818(0x1eb),_0x460e95);}const HOOK_NAMES=['onRequest','onRequestError',_0x27439e(0x1cf),'onResponseError'];function mergeOptions(..._0x135b25){const _0x23e9f7=_0x27439e,_0x37a340={},_0x1cd0c7={};for(const _0x22e340 of _0x135b25){if(!_0x22e340)continue;for(const _0x5b1dd5 of HOOK_NAMES)collectHook(_0x1cd0c7,_0x5b1dd5,_0x22e340);const _0x479b0c=_0x37a340[_0x23e9f7(0x1c0)],_0x957607=_0x37a340['query'];Object['assign'](_0x37a340,_0x22e340);const _0x2e6bc4={..._0x479b0c,..._0x22e340['headers']};_0x37a340['headers']=_0x2e6bc4;const _0x2e66ba={..._0x957607,..._0x22e340[_0x23e9f7(0x1cc)]};_0x37a340['query']=_0x2e66ba;}for(const [_0x3cdbb7,_0x9d11de]of Object[_0x23e9f7(0x1c1)](_0x1cd0c7))Object['assign'](_0x37a340,{[_0x3cdbb7]:async _0x340900=>{for(const _0x17e08a of _0x9d11de)await _0x17e08a(_0x340900);}});return _0x37a340;}function collectHook(_0x108f14,_0x41e4d7,_0x4c3057){const _0x3bb108=_0x27439e,_0x3a78ef=_0x4c3057[_0x41e4d7];if(typeof _0x3a78ef!==_0x3bb108(0x1d7))return;_0x108f14[_0x41e4d7]??=[],_0x108f14[_0x41e4d7]['push'](_0x3a78ef);}function dispatch(_0x1cfbb1,_0x11daa9,_0x3a162a,_0x35f7eb){let _0x2df81b;if(_0x1cfbb1==='upload')_0x2df81b=dispatchUpload(_0x11daa9,_0x3a162a,_0x35f7eb);else{if(_0x1cfbb1==='download')_0x2df81b=dispatchDownload(_0x11daa9,_0x3a162a,_0x35f7eb);else _0x2df81b=dispatchRequest(_0x11daa9,_0x3a162a,_0x35f7eb);}bindTask(_0x2df81b,_0x3a162a);}function bindTask(_0x3b2f15,_0x47d22f){const _0x59d3c1=_0x27439e;onAbort(_0x47d22f[_0x59d3c1(0x1ba)],()=>_0x3b2f15['abort']());if(typeof _0x47d22f[_0x59d3c1(0x1f1)]==='function')_0x3b2f15['onHeadersReceived'](_0x47d22f[_0x59d3c1(0x1f1)]);const _0x4f56f3=_0x47d22f[_0x59d3c1(0x1ee)];if(typeof _0x4f56f3===_0x59d3c1(0x1d7)&&_0x59d3c1(0x1d4)in _0x3b2f15)_0x3b2f15['onProgressUpdate'](_0x4f56f3);}function dispatchRequest(_0x2d8afa,_0x2f2e8c,_0x500306){const _0x5525ef=_0x27439e,_0x3db3ae={'url':_0x2d8afa,'method':_0x2f2e8c[_0x5525ef(0x1da)],'header':_0x2f2e8c['headers'],'data':_0x2f2e8c['body']??{},'timeout':_0x2f2e8c['timeout'],'dataType':_0x2f2e8c['dataType']||_0x5525ef(0x200),'responseType':mappedResponseBodyType(_0x2f2e8c['responseType']),'sslVerify':_0x2f2e8c[_0x5525ef(0x1bd)],'withCredentials':_0x2f2e8c[_0x5525ef(0x1e5)],'firstIpv4':_0x2f2e8c[_0x5525ef(0x1ce)],'enableHttp2':_0x2f2e8c['enableHttp2'],'enableQuic':_0x2f2e8c[_0x5525ef(0x1dd)],'enableCache':_0x2f2e8c[_0x5525ef(0x1c9)],'enableHttpDNS':_0x2f2e8c[_0x5525ef(0x1fc)],'httpDNSServiceId':_0x2f2e8c['httpDNSServiceId'],'enableChunked':_0x2f2e8c['enableChunked'],'forceCellularNetwork':_0x2f2e8c['forceCellularNetwork'],'success':_0x500306['onSuccess'],'fail':_0x500306['onFail'],'complete':()=>{}};return uni['request'](_0x3db3ae);}function dispatchUpload(_0xcf9cbe,_0x39c2ed,_0x38de42){const _0x5c64a2=_0x27439e,_0x1ba71a={};_0x1ba71a['url']=_0xcf9cbe,_0x1ba71a[_0x5c64a2(0x1c6)]=_0x39c2ed['fileType'],_0x1ba71a['file']=_0x39c2ed['file'],_0x1ba71a[_0x5c64a2(0x1d3)]=_0x39c2ed[_0x5c64a2(0x1d3)],_0x1ba71a['name']=_0x39c2ed[_0x5c64a2(0x1cb)]??'file',_0x1ba71a[_0x5c64a2(0x1b2)]=_0x39c2ed['files'],_0x1ba71a['header']=_0x39c2ed[_0x5c64a2(0x1c0)],_0x1ba71a['formData']=_0x39c2ed['body']??{},_0x1ba71a['timeout']=_0x39c2ed['timeout'],_0x1ba71a['success']=_0x38de42['onSuccess'],_0x1ba71a['fail']=_0x38de42['onFail'],_0x1ba71a['complete']=()=>{};const _0x26cc23=_0x1ba71a;return uni[_0x5c64a2(0x1e6)](_0x26cc23);}function dispatchDownload(_0xe49056,_0x52f55b,_0x5c819f){const _0x39a2db=_0x27439e,_0x315535={'url':_0xe49056,'header':_0x52f55b[_0x39a2db(0x1c0)],'timeout':_0x52f55b[_0x39a2db(0x1f3)],'success':_0x11f595=>{const _0x2a9e2d=_0x39a2db,_0x1abd68={..._0x11f595};_0x1abd68[_0x2a9e2d(0x1c7)]={},_0x1abd68[_0x2a9e2d(0x1c7)]['tempFilePath']=_0x11f595['tempFilePath'],_0x5c819f[_0x2a9e2d(0x1ae)](_0x1abd68);},'fail':_0x5c819f['onFail'],'complete':()=>{}};return uni['downloadFile'](_0x315535);}function mappedResponseBodyType(_0x2f74d8){const _0xc57996=_0x27439e;if(!_0x2f74d8||_0x2f74d8===_0xc57996(0x200))return'text';if(_0x2f74d8===_0xc57996(0x1dc))return'arraybuffer';return _0xc57996(0x1bb);}var HttpError=class extends Error{constructor(_0x832f28){const _0x357e21=_0x27439e;super(_0x832f28),this[_0x357e21(0x1cb)]=_0x357e21(0x1b7);}};function createResponseError(_0xa016b0,_0x54d1ff,_0x2ff9ca){const _0x47a1d7=_0x27439e,_0x413150=_0xa016b0,_0x1462fe='['+(_0x54d1ff?.['method']||'GET')+']\x20'+_0x413150,_0x7f892e=_0x2ff9ca?_0x2ff9ca['statusCode']+'\x20'+(_0x2ff9ca[_0x47a1d7(0x1d5)]||''):'<no\x20response>',_0x4245ff=_0x2ff9ca?JSON['stringify'](_0x2ff9ca[_0x47a1d7(0x1c7)]):'<no\x20response\x20body>',_0x2cb7c2=new HttpError(_0x1462fe+':\x20'+_0x7f892e+(_0x2ff9ca['data']?'\x20'+_0x4245ff:''));for(const _0x35c2ce of['request',_0x47a1d7(0x1e0),'response','data'])Object[_0x47a1d7(0x1e2)](_0x2cb7c2,_0x35c2ce,{'get'(){const _0x33144d=_0x47a1d7,_0x20ba7e={};return _0x20ba7e['request']=_0xa016b0,_0x20ba7e[_0x33144d(0x1e0)]=_0x54d1ff,_0x20ba7e['response']=_0x2ff9ca,_0x20ba7e[_0x33144d(0x1c7)]=_0x2ff9ca[_0x33144d(0x1c7)],_0x20ba7e[_0x35c2ce];}});return _0x2cb7c2;}function normalizeError(_0x27010d){const _0xea4657=_0x27439e;if(_0x27010d instanceof Error)return _0x27010d;return Object[_0xea4657(0x1df)](new Error(_0x27010d?.[_0xea4657(0x1d5)]||_0x27010d?.[_0xea4657(0x1fa)]||'HTTP\x20request\x20failed'),{'cause':_0x27010d});}async function callRequestHooks(_0x50ef0e,_0x51288d){await _0x51288d['onRequest']?.({'options':_0x51288d,'resource':_0x50ef0e});}async function callRequestErrorHooks(_0x2008b2,_0x47cb44,_0x1e6721){const _0x1aaac2=_0x27439e;await _0x47cb44[_0x1aaac2(0x1ec)]?.({'options':_0x47cb44,'resource':_0x2008b2,'error':_0x1e6721});}async function callResponseHooks(_0x5b4fa2,_0x501571,_0x4c681c){await _0x501571['onResponse']?.({'options':_0x501571,'resource':_0x5b4fa2,'response':_0x4c681c});}function _0x5c48(_0x5533ad,_0x5892c1){_0x5533ad=_0x5533ad-0x1ae;const _0x591ae9=_0x591a();let _0x5c48db=_0x591ae9[_0x5533ad];return _0x5c48db;}async function callResponseErrorHooks(_0x3a1445,_0x41fc11,_0x23c5be){const _0x5afa11=_0x27439e;await _0x41fc11[_0x5afa11(0x1af)]?.({'options':_0x41fc11,'resource':_0x3a1445,'response':_0x23c5be});}async function refineResponse(_0x3ef305,_0x56b8d5){const _0x4b4206=_0x27439e;if(_0x56b8d5['responseType']===_0x4b4206(0x200)||!_0x56b8d5[_0x4b4206(0x201)])return{..._0x3ef305,'data':await parseJSONResponse(_0x3ef305['data'],_0x56b8d5)};return _0x3ef305;}function _0x591a(){const _0x5c22f9=['abort','onRequestError','type','onProgress','retryDelay','159025lUBvaE','onHeadersReceived','download','timeout','reason','22BTOjkd','104janMIP','flatMap','parse','catch','message','6pXqzgc','enableHttpDNS','POST','upload','The\x20operation\x20was\x20aborted','json','responseType','keys','onSuccess','onResponseError','string','3933ZmfLtk','files','splice','call','addEventListener','38259JjYDDO','HttpError','_abort','createHttpAborter','signal','text','includes','sslVerify','aborted','ignoreResponseError','headers','entries','then','get','AbortError','listeners','fileType','data','createHttp','enableCache','parseResponse','name','query','964190bFZpZg','firstIpv4','onResponse','http','statusCode','number','filePath','onProgressUpdate','errMsg','1391334RmHQRR','function','193588rVBIOv','indexOf','method','30pAUEdZ','arrayBuffer','enableQuic','enumerable','assign','options','3049908mEiomr','defineProperty','startsWith','onabort','withCredentials','uploadFile','33CNJhIP','removeEventListener','resolve','request'];_0x591a=function(){return _0x5c22f9;};return _0x591a();}function parseJSONResponse(_0x29a19c,_0x52875f){const _0x5ce6db=_0x27439e;if(typeof _0x29a19c!==_0x5ce6db(0x1b0))return _0x29a19c;if(_0x52875f[_0x5ce6db(0x1ca)])return _0x52875f['parseResponse'](_0x29a19c);return _0x29a19c?JSON[_0x5ce6db(0x1f8)](_0x29a19c):null;}function isResponseError(_0x3a5dc3){const _0x58099b=_0x27439e,_0x4b8171=_0x58099b(0x1d1)in _0x3a5dc3?_0x3a5dc3[_0x58099b(0x1d1)]:void 0x0;return typeof _0x4b8171==='number'&&(_0x4b8171<0xc8||_0x4b8171>=0x12c);}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set([_0x27439e(0x1fd),'PUT','DELETE','PATCH']);async function withRetry(_0x30d3b1,_0x32cc3c){const _0x59be42=_0x27439e,_0x26008d=resolveRetryCount(_0x30d3b1);for(let _0x2d557e=0x0;;_0x2d557e++)try{return await _0x32cc3c();}catch(_0x27a266){if(_0x2d557e>=_0x26008d||!shouldRetry(_0x27a266,_0x30d3b1))throw _0x27a266;await sleep(_0x30d3b1[_0x59be42(0x1ef)]??0x0,_0x30d3b1[_0x59be42(0x1ba)]);}}function resolveRetryCount(_0xc41c1){const _0x242cc5=_0x27439e,{retry:_0x18a88f}=_0xc41c1;if(_0x18a88f===![])return 0x0;if(typeof _0x18a88f===_0x242cc5(0x1d2))return _0x18a88f>0x0?_0x18a88f:0x0;return isPayloadMethod(_0xc41c1[_0x242cc5(0x1da)])?0x0:0x1;}function shouldRetry(_0x32d0b0,_0x52a539){const _0x505766=_0x27439e;if(_0x52a539['signal']?.[_0x505766(0x1be)]||isAbortError(_0x32d0b0))return![];const _0x45983f=_0x32d0b0?.['response']?.[_0x505766(0x1d1)];if(typeof _0x45983f!=='number')return!![];return(_0x52a539['retryStatusCodes']??DEFAULT_RETRY_STATUS_CODES)['includes'](_0x45983f);}function isPayloadMethod(_0x325ff6){return!!_0x325ff6&&PAYLOAD_METHODS['has'](_0x325ff6['toUpperCase']());}function sleep(_0x2aa080,_0x3d7eb8){return new Promise((_0x2b1946,_0x3c1f62)=>{const _0x389bce=_0x5c48;if(_0x3d7eb8?.[_0x389bce(0x1be)]){_0x3c1f62(_0x3d7eb8['reason']);return;}if(!(_0x2aa080>0x0)){_0x2b1946();return;}let _0x474e95=()=>{};const _0x57ab08=setTimeout(()=>{_0x474e95(),_0x2b1946();},_0x2aa080);_0x474e95=onAbort(_0x3d7eb8,()=>{clearTimeout(_0x57ab08),_0x3c1f62(_0x3d7eb8['reason']);});});}function buildURL(_0x36e38a,_0x322a94){const _0x3ddabd=_0x27439e,_0x2b3723=joinURL(_0x322a94['baseURL'],_0x36e38a),_0x5e7968=_0x322a94['query']??{},_0x45e74d=Object[_0x3ddabd(0x202)](_0x5e7968)['filter'](_0x4c3d45=>_0x5e7968[_0x4c3d45]!==void 0x0)[_0x3ddabd(0x1f7)](_0x4d9cb3=>{const _0x157c85=_0x5e7968[_0x4d9cb3];return(Array['isArray'](_0x157c85)?_0x157c85:[_0x157c85])['map'](_0x1edb1e=>encodeURIComponent(_0x4d9cb3)+'='+encodeURIComponent(String(_0x1edb1e)));})['join']('&');if(!_0x45e74d)return _0x2b3723;return''+_0x2b3723+(_0x2b3723[_0x3ddabd(0x1bc)]('?')?'&':'?')+_0x45e74d;}function joinURL(_0x1f832e,_0xb3d2a7){if(!_0x1f832e||isAbsoluteURL(_0xb3d2a7))return _0xb3d2a7;return _0x1f832e['replace'](/\/+$/,'')+'/'+_0xb3d2a7['replace'](/^\/+/,'');}function isAbsoluteURL(_0x16b87e){const _0x2456c6=_0x27439e;return/^[a-z][a-z\d+\-.]*:\/\//i['test'](_0x16b87e)||_0x16b87e[_0x2456c6(0x1e3)]('//');}function dispatchHttp(_0x763689,_0x5af7fb,_0x53802e){const _0x2f5dd5=buildURL(_0x5af7fb,_0x53802e);return withRetry(_0x53802e,()=>attemptRequest(_0x763689,_0x5af7fb,_0x2f5dd5,_0x53802e));}function attemptRequest(_0x55faf4,_0x5e3e1d,_0x507d5e,_0x42994c){const _0x19d71f=!!_0x42994c['raw'];return new Promise((_0x524c6b,_0x20c696)=>{const _0x338e8d=_0x5c48;let _0x417b9a=![];const _0x529ab1=_0x536f8c=>{if(_0x417b9a)return;_0x417b9a=!![],_0x536f8c();},_0x337fcc=onAbort(_0x42994c[_0x338e8d(0x1ba)],()=>{_0x529ab1(()=>_0x20c696(_0x42994c['signal']['reason']));}),_0x2cac19=_0xd1ded6=>{_0x337fcc(),_0x529ab1(_0xd1ded6);};callRequestHooks(_0x5e3e1d,_0x42994c)['then'](()=>{if(_0x417b9a)return;dispatch(_0x55faf4,_0x507d5e,_0x42994c,{'onSuccess':_0x5e3c98=>{const _0x426bb3=_0x5c48;Promise[_0x426bb3(0x1e9)]()[_0x426bb3(0x1c2)](()=>refineResponse(_0x5e3c98,_0x42994c))['then'](async _0x43ae8d=>{const _0x180096=_0x426bb3;if(isResponseError(_0x5e3c98)){await callResponseErrorHooks(_0x5e3e1d,_0x42994c,_0x43ae8d);if(!_0x42994c[_0x180096(0x1bf)])throw createResponseError(_0x5e3e1d,_0x42994c,_0x43ae8d);}else await callResponseHooks(_0x5e3e1d,_0x42994c,_0x43ae8d);_0x2cac19(()=>_0x524c6b(_0x19d71f?_0x43ae8d:_0x43ae8d['data']));})[_0x426bb3(0x1f9)](_0x2d6043=>_0x2cac19(()=>_0x20c696(_0x2d6043)));},'onFail':_0xd0969=>{const _0x4996b8=_0x5c48;Promise['resolve']()[_0x4996b8(0x1c2)](async()=>{const _0x476d71=normalizeError(_0xd0969);if(!isAbortError(_0x476d71))await callRequestErrorHooks(_0x5e3e1d,_0x42994c,_0x476d71);throw _0x476d71;})[_0x4996b8(0x1f9)](_0x1407a6=>_0x2cac19(()=>_0x20c696(_0x1407a6)));}});})['catch'](async _0x38727f=>{const _0x1d5ea5=normalizeError(_0x38727f);await callRequestErrorHooks(_0x5e3e1d,_0x42994c,_0x1d5ea5),_0x2cac19(()=>_0x20c696(_0x1d5ea5));});});}const _0x33cb46={};_0x33cb46['method']='GET',_0x33cb46[_0x27439e(0x201)]=_0x27439e(0x200);const defaultConfig=_0x33cb46;function createHttp(_0x251a0f={}){const _0x1233f7=_0x27439e,_0x4dcd2c=(_0x4a40ac,_0x16d2b8)=>{const _0xa74036=_0x5c48;return dispatchHttp(_0xa74036(0x1ea),_0x4a40ac,mergeOptions(defaultConfig,_0x251a0f,_0x16d2b8));},_0x15d24c=(_0x58e398,_0x561b91)=>{const _0xc9a705=_0x5c48,_0xa0da09={};return _0xa0da09[_0xc9a705(0x1da)]=_0xc9a705(0x1fd),dispatchHttp('upload',_0x58e398,mergeOptions(defaultConfig,_0x251a0f,_0x561b91,_0xa0da09));},_0x3fa44e=(_0x313930,_0x48e36c)=>{const _0x1e2d6f=_0x5c48,_0x46d899={};return _0x46d899[_0x1e2d6f(0x1da)]='GET',dispatchHttp(_0x1e2d6f(0x1f2),_0x313930,mergeOptions(defaultConfig,_0x251a0f,_0x48e36c,_0x46d899));},_0xc0b832=_0x57c430=>createHttp(mergeOptions(_0x251a0f,_0x57c430)),_0x2224ae={};return _0x2224ae[_0x1233f7(0x1ea)]=_0x4dcd2c,_0x2224ae[_0x1233f7(0x1fe)]=_0x15d24c,_0x2224ae[_0x1233f7(0x1f2)]=_0x3fa44e,_0x2224ae['create']=_0xc0b832,_0x2224ae;}const http=createHttp(),_0x50cca6={};_0x50cca6['enumerable']=!![],_0x50cca6[_0x27439e(0x1c3)]=function(){return createHttp;},Object[_0x27439e(0x1e2)](exports,_0x27439e(0x1c8),_0x50cca6);const _0x236b91={};_0x236b91['enumerable']=!![],_0x236b91[_0x27439e(0x1c3)]=function(){return createHttpAborter;},Object['defineProperty'](exports,_0x27439e(0x1b9),_0x236b91);const _0x5d6668={};_0x5d6668[_0x27439e(0x1de)]=!![],_0x5d6668['get']=function(){return http;},Object[_0x27439e(0x1e2)](exports,_0x27439e(0x1d0),_0x5d6668);