@oiyo/framework 0.4.2 → 0.4.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.2
2
+ * @oiyo/framework v0.4.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.2
2
+ * @oiyo/framework v0.4.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.2
2
+ * @oiyo/framework v0.4.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("./rolldown-runtime-CrmOzWpZ.cjs");
9
- const require_oiyo = require("./oiyo-BS1ESthW.cjs");
8
+ require("./rolldown-runtime-DQZhkyOB.cjs");
9
+ const require_oiyo = require("./oiyo-DF-n178E.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.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 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-6y-CxV-U.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.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 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-6y-CxV-U.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.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 "./rolldown-runtime-D0eOKGL5.mjs";
8
- import { n as http, r as createHttpAborter, t as createHttp } from "./oiyo-CQlUPoLW.mjs";
7
+ import "./rolldown-runtime-D5dVOuTm.mjs";
8
+ import { n as http, r as createHttpAborter, t as createHttp } from "./oiyo-GRTo5_GU.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.4
3
+ * Copyright (c) 2026 skiyee. All rights reserved.
4
+ * Commercial software. See LICENSE for terms.
5
+ * Official site: https://oiyo.js.org
6
+ */
7
+ const _0x4b27b1=_0x691c;(function(_0x55f42b,_0x139e22){const _0x3d766a=_0x691c,_0x5a8763=_0x55f42b();while(!![]){try{const _0x188de8=-parseInt(_0x3d766a(0xcf))/0x1*(-parseInt(_0x3d766a(0xc9))/0x2)+-parseInt(_0x3d766a(0xcb))/0x3*(parseInt(_0x3d766a(0xbf))/0x4)+parseInt(_0x3d766a(0xb3))/0x5+-parseInt(_0x3d766a(0xbd))/0x6+-parseInt(_0x3d766a(0xb5))/0x7+-parseInt(_0x3d766a(0xce))/0x8*(-parseInt(_0x3d766a(0xc3))/0x9)+-parseInt(_0x3d766a(0xb2))/0xa*(-parseInt(_0x3d766a(0xbe))/0xb);if(_0x188de8===_0x139e22)break;else _0x5a8763['push'](_0x5a8763['shift']());}catch(_0x750d79){_0x5a8763['push'](_0x5a8763['shift']());}}}(_0x3c4a,0xbd50a));function createHttpAborter(){const _0x4790b5=new HttpAbortSignal();return{'signal':_0x4790b5,'abort':_0x57a353=>_0x4790b5['_abort'](_0x57a353)};}const ABORT_ERROR_NAME=_0x4b27b1(0xd8);var AbortEmitter=class{['listeners']=[];['addEventListener'](_0x3428c6,_0x374414){const _0x536c9f=_0x4b27b1;if(_0x3428c6!==_0x536c9f(0xd5))return;this[_0x536c9f(0xb7)]['push'](_0x374414);}['removeEventListener'](_0x5b95f7,_0x4b4d6a){const _0x42ec62=_0x4b27b1;if(_0x5b95f7!=='abort')return;const _0x133bbf=this['listeners'][_0x42ec62(0xee)](_0x4b4d6a);if(_0x133bbf!==-0x1)this['listeners']['splice'](_0x133bbf,0x1);}['emit'](_0x22feed){for(const _0x5575e0 of this['listeners']['slice']())_0x5575e0['call'](this,_0x22feed);}},HttpAbortSignal=class extends AbortEmitter{['aborted']=![];['reason']=void 0x0;['onabort']=null;[_0x4b27b1(0xfc)](_0x21dedf){const _0x3fe6d3=_0x4b27b1;if(this[_0x3fe6d3(0xc0)])return;this['aborted']=!![],this[_0x3fe6d3(0xe4)]=_0x21dedf===void 0x0?createAbortError():_0x21dedf;const _0x255f85={};_0x255f85[_0x3fe6d3(0xed)]=_0x3fe6d3(0xd5);const _0x27afd1=_0x255f85;if(typeof this[_0x3fe6d3(0xeb)]===_0x3fe6d3(0xea))this['onabort'](_0x27afd1);this['emit'](_0x27afd1);}[_0x4b27b1(0xe3)](){const _0x41583c=_0x4b27b1;if(this[_0x41583c(0xc0)])throw this[_0x41583c(0xe4)];}};function _0x691c(_0x3ba5a0,_0x55c195){_0x3ba5a0=_0x3ba5a0-0xa8;const _0x3c4abc=_0x3c4a();let _0x691c98=_0x3c4abc[_0x3ba5a0];return _0x691c98;}function createAbortError(_0x45b692=_0x4b27b1(0xc7)){const _0x16a1c9=new Error(_0x45b692);return _0x16a1c9['name']=ABORT_ERROR_NAME,_0x16a1c9;}function isAbortError(_0x5716a3){const _0x20c3f7=_0x4b27b1;return _0x5716a3 instanceof Error&&_0x5716a3[_0x20c3f7(0xc8)]===ABORT_ERROR_NAME;}function onAbort(_0x471289,_0x2f23b2){const _0x312a05=_0x4b27b1;if(!_0x471289)return()=>{};if(_0x471289[_0x312a05(0xc0)])return _0x2f23b2(),()=>{};return _0x471289['addEventListener']('abort',_0x2f23b2),()=>_0x471289[_0x312a05(0xe8)](_0x312a05(0xd5),_0x2f23b2);}const HOOK_NAMES=[_0x4b27b1(0xcc),'onRequestError',_0x4b27b1(0xb0),'onResponseError'];function mergeOptions(..._0x617790){const _0x3b2516=_0x4b27b1,_0x5d7124={},_0x2d6987={};for(const _0x22dd21 of _0x617790){if(!_0x22dd21)continue;for(const _0x24573d of HOOK_NAMES)collectHook(_0x2d6987,_0x24573d,_0x22dd21);const _0x4dee4f=_0x5d7124['headers'],_0x41efb6=_0x5d7124['query'];Object['assign'](_0x5d7124,_0x22dd21);const _0x12e8dd={..._0x4dee4f,..._0x22dd21['headers']};_0x5d7124['headers']=_0x12e8dd;const _0x5061f9={..._0x41efb6,..._0x22dd21[_0x3b2516(0xe6)]};_0x5d7124[_0x3b2516(0xe6)]=_0x5061f9;}for(const [_0x312975,_0x1adab7]of Object[_0x3b2516(0xc6)](_0x2d6987))Object['assign'](_0x5d7124,{[_0x312975]:async _0x13329a=>{for(const _0x5d06eb of _0x1adab7)await _0x5d06eb(_0x13329a);}});return _0x5d7124;}function collectHook(_0x1cb59e,_0x5b224c,_0x123325){const _0x2cf893=_0x4b27b1,_0x5163d1=_0x123325[_0x5b224c];if(typeof _0x5163d1!==_0x2cf893(0xea))return;_0x1cb59e[_0x5b224c]??=[],_0x1cb59e[_0x5b224c]['push'](_0x5163d1);}function dispatch(_0x3c2fce,_0x567d52,_0x69005f,_0xf012d7){const _0x3a87fd=_0x4b27b1;let _0x19d16b;if(_0x3c2fce==='upload')_0x19d16b=dispatchUpload(_0x567d52,_0x69005f,_0xf012d7);else{if(_0x3c2fce===_0x3a87fd(0xde))_0x19d16b=dispatchDownload(_0x567d52,_0x69005f,_0xf012d7);else _0x19d16b=dispatchRequest(_0x567d52,_0x69005f,_0xf012d7);}bindTask(_0x19d16b,_0x69005f);}function bindTask(_0x51466b,_0x2cb57b){const _0x11b0cf=_0x4b27b1;onAbort(_0x2cb57b[_0x11b0cf(0xca)],()=>_0x51466b[_0x11b0cf(0xd5)]());if(typeof _0x2cb57b['onHeadersReceived']==='function')_0x51466b[_0x11b0cf(0xdd)](_0x2cb57b['onHeadersReceived']);const _0x14ee83=_0x2cb57b[_0x11b0cf(0xc2)];if(typeof _0x14ee83==='function'&&'onProgressUpdate'in _0x51466b)_0x51466b['onProgressUpdate'](_0x14ee83);}function dispatchRequest(_0x21756d,_0x48fd8b,_0x19f237){const _0xdbf0eb=_0x4b27b1,_0x328610={'url':_0x21756d,'method':_0x48fd8b['method'],'header':_0x48fd8b[_0xdbf0eb(0xf1)],'data':_0x48fd8b['body']??{},'timeout':_0x48fd8b['timeout'],'dataType':_0x48fd8b['dataType']||'json','responseType':mappedResponseBodyType(_0x48fd8b[_0xdbf0eb(0xa9)]),'sslVerify':_0x48fd8b['sslVerify'],'withCredentials':_0x48fd8b['withCredentials'],'firstIpv4':_0x48fd8b[_0xdbf0eb(0xe0)],'enableHttp2':_0x48fd8b[_0xdbf0eb(0xaf)],'enableQuic':_0x48fd8b['enableQuic'],'enableCache':_0x48fd8b['enableCache'],'enableHttpDNS':_0x48fd8b[_0xdbf0eb(0xf7)],'httpDNSServiceId':_0x48fd8b[_0xdbf0eb(0xb6)],'enableChunked':_0x48fd8b['enableChunked'],'forceCellularNetwork':_0x48fd8b['forceCellularNetwork'],'success':_0x19f237[_0xdbf0eb(0xd2)],'fail':_0x19f237[_0xdbf0eb(0xef)],'complete':()=>{}};return uni[_0xdbf0eb(0xae)](_0x328610);}function dispatchUpload(_0x4ba036,_0x40fc4d,_0x5a57b5){const _0x52dbd0=_0x4b27b1,_0x1c4cbf={};_0x1c4cbf[_0x52dbd0(0xf6)]=_0x4ba036,_0x1c4cbf['fileType']=_0x40fc4d[_0x52dbd0(0xbc)],_0x1c4cbf['file']=_0x40fc4d['file'],_0x1c4cbf[_0x52dbd0(0xd0)]=_0x40fc4d[_0x52dbd0(0xd0)],_0x1c4cbf['name']=_0x40fc4d[_0x52dbd0(0xc8)]??'file',_0x1c4cbf[_0x52dbd0(0xfa)]=_0x40fc4d['files'],_0x1c4cbf['header']=_0x40fc4d[_0x52dbd0(0xf1)],_0x1c4cbf[_0x52dbd0(0xf8)]=_0x40fc4d['body']??{},_0x1c4cbf[_0x52dbd0(0xc1)]=_0x40fc4d['timeout'],_0x1c4cbf[_0x52dbd0(0xe1)]=_0x5a57b5[_0x52dbd0(0xd2)],_0x1c4cbf[_0x52dbd0(0xd7)]=_0x5a57b5['onFail'],_0x1c4cbf['complete']=()=>{};const _0x307285=_0x1c4cbf;return uni[_0x52dbd0(0xbb)](_0x307285);}function dispatchDownload(_0x38f667,_0x265be3,_0x49814e){const _0x437a16=_0x4b27b1,_0x112270={'url':_0x38f667,'header':_0x265be3['headers'],'timeout':_0x265be3[_0x437a16(0xc1)],'success':_0x1a816c=>{const _0x36a3a3=_0x437a16,_0x4ccbb0={..._0x1a816c};_0x4ccbb0[_0x36a3a3(0xe7)]={},_0x4ccbb0[_0x36a3a3(0xe7)][_0x36a3a3(0xf0)]=_0x1a816c[_0x36a3a3(0xf0)],_0x49814e[_0x36a3a3(0xd2)](_0x4ccbb0);},'fail':_0x49814e[_0x437a16(0xef)],'complete':()=>{}};return uni[_0x437a16(0xc4)](_0x112270);}function mappedResponseBodyType(_0x4d82bb){const _0x188ff6=_0x4b27b1;if(!_0x4d82bb||_0x4d82bb==='json')return'text';if(_0x4d82bb===_0x188ff6(0xf5))return _0x188ff6(0xa8);return'text';}var HttpError=class extends Error{constructor(_0x175e8c){super(_0x175e8c),this['name']='HttpError';}};function createResponseError(_0x1f8535,_0x1d2141,_0x6b2d5a){const _0x5a094b=_0x4b27b1,_0x457726=_0x1f8535,_0x4caa5b='['+(_0x1d2141?.['method']||'GET')+']\x20'+_0x457726,_0x491d8e=_0x6b2d5a?_0x6b2d5a['statusCode']+'\x20'+(_0x6b2d5a['errMsg']||''):'<no\x20response>',_0x333340=_0x6b2d5a?JSON['stringify'](_0x6b2d5a['data']):_0x5a094b(0xe9),_0x56ae96=new HttpError(_0x4caa5b+':\x20'+_0x491d8e+(_0x6b2d5a['data']?'\x20'+_0x333340:''));for(const _0x32f468 of[_0x5a094b(0xae),_0x5a094b(0xc5),_0x5a094b(0xba),_0x5a094b(0xe7)])Object[_0x5a094b(0xb8)](_0x56ae96,_0x32f468,{'get'(){const _0x35f096=_0x5a094b,_0x634ae4={};return _0x634ae4['request']=_0x1f8535,_0x634ae4[_0x35f096(0xc5)]=_0x1d2141,_0x634ae4[_0x35f096(0xba)]=_0x6b2d5a,_0x634ae4[_0x35f096(0xe7)]=_0x6b2d5a['data'],_0x634ae4[_0x32f468];}});return _0x56ae96;}function normalizeError(_0x56fc01){const _0x18f76a=_0x4b27b1;if(_0x56fc01 instanceof Error)return _0x56fc01;return Object[_0x18f76a(0xcd)](new Error(_0x56fc01?.['errMsg']||_0x56fc01?.[_0x18f76a(0xec)]||'HTTP\x20request\x20failed'),{'cause':_0x56fc01});}async function callRequestHooks(_0x4e4d34,_0x110446){await _0x110446['onRequest']?.({'options':_0x110446,'resource':_0x4e4d34});}async function callRequestErrorHooks(_0x3256b3,_0xe1ca73,_0x5d67fc){await _0xe1ca73['onRequestError']?.({'options':_0xe1ca73,'resource':_0x3256b3,'error':_0x5d67fc});}async function callResponseHooks(_0x9b77b9,_0xa6d501,_0x54f5af){await _0xa6d501['onResponse']?.({'options':_0xa6d501,'resource':_0x9b77b9,'response':_0x54f5af});}async function callResponseErrorHooks(_0x370d15,_0x573148,_0xa50716){await _0x573148['onResponseError']?.({'options':_0x573148,'resource':_0x370d15,'response':_0xa50716});}async function refineResponse(_0xf3b5cc,_0x42fc6d){const _0x5b9b83=_0x4b27b1;if(_0x42fc6d[_0x5b9b83(0xa9)]==='json'||!_0x42fc6d[_0x5b9b83(0xa9)])return{..._0xf3b5cc,'data':await parseJSONResponse(_0xf3b5cc[_0x5b9b83(0xe7)],_0x42fc6d)};return _0xf3b5cc;}function parseJSONResponse(_0x90ff6a,_0x11df8c){const _0x1f42c4=_0x4b27b1;if(typeof _0x90ff6a!=='string')return _0x90ff6a;if(_0x11df8c['parseResponse'])return _0x11df8c[_0x1f42c4(0xab)](_0x90ff6a);return _0x90ff6a?JSON['parse'](_0x90ff6a):null;}function isResponseError(_0x5bc718){const _0x3c1671=_0x4b27b1,_0x4bf1eb=_0x3c1671(0xf4)in _0x5bc718?_0x5bc718['statusCode']:void 0x0;return typeof _0x4bf1eb===_0x3c1671(0xb4)&&(_0x4bf1eb<0xc8||_0x4bf1eb>=0x12c);}function _0x3c4a(){const _0x3a129d=['uploadFile','fileType','5604570OgByUr','3255835YLFaMX','4pZVFYT','aborted','timeout','onProgress','1818uyqVSn','downloadFile','options','entries','The\x20operation\x20was\x20aborted','name','16vYaLHN','signal','3408933oSHNqS','onRequest','assign','6024jNHjrk','37813UHOcqG','filePath','ignoreResponseError','onSuccess','enumerable','POST','abort','get','fail','AbortError','retryStatusCodes','raw','DELETE','GET','onHeadersReceived','download','catch','firstIpv4','success','includes','throwIfAborted','reason','http','query','data','removeEventListener','<no\x20response\x20body>','function','onabort','message','type','indexOf','onFail','tempFilePath','headers','PUT','flatMap','statusCode','arrayBuffer','url','enableHttpDNS','formData','createHttp','files','PATCH','_abort','arraybuffer','responseType','resolve','parseResponse','then','replace','request','enableHttp2','onResponse','upload','100eiAgKB','3824745OcWFgc','number','9334983qtHSxh','httpDNSServiceId','listeners','defineProperty','map','response'];_0x3c4a=function(){return _0x3a129d;};return _0x3c4a();}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set([_0x4b27b1(0xd4),_0x4b27b1(0xf2),_0x4b27b1(0xdb),_0x4b27b1(0xfb)]);async function withRetry(_0x5113c1,_0x5058d2){const _0x51425e=_0x4b27b1,_0x20a026=resolveRetryCount(_0x5113c1);for(let _0x24b172=0x0;;_0x24b172++)try{return await _0x5058d2();}catch(_0x3fa452){if(_0x24b172>=_0x20a026||!shouldRetry(_0x3fa452,_0x5113c1))throw _0x3fa452;await sleep(_0x5113c1['retryDelay']??0x0,_0x5113c1[_0x51425e(0xca)]);}}function resolveRetryCount(_0x410a35){const {retry:_0xd2a989}=_0x410a35;if(_0xd2a989===![])return 0x0;if(typeof _0xd2a989==='number')return _0xd2a989>0x0?_0xd2a989:0x0;return isPayloadMethod(_0x410a35['method'])?0x0:0x1;}function shouldRetry(_0x497acc,_0x4b18bc){const _0x2d0b26=_0x4b27b1;if(_0x4b18bc['signal']?.[_0x2d0b26(0xc0)]||isAbortError(_0x497acc))return![];const _0x33e3a8=_0x497acc?.['response']?.['statusCode'];if(typeof _0x33e3a8!=='number')return!![];return(_0x4b18bc[_0x2d0b26(0xd9)]??DEFAULT_RETRY_STATUS_CODES)['includes'](_0x33e3a8);}function isPayloadMethod(_0x2ff980){return!!_0x2ff980&&PAYLOAD_METHODS['has'](_0x2ff980['toUpperCase']());}function sleep(_0x9d1f89,_0xfe04ac){return new Promise((_0x440a16,_0x56df74)=>{const _0x5aa6d6=_0x691c;if(_0xfe04ac?.[_0x5aa6d6(0xc0)]){_0x56df74(_0xfe04ac[_0x5aa6d6(0xe4)]);return;}if(!(_0x9d1f89>0x0)){_0x440a16();return;}let _0x5f06f5=()=>{};const _0x11d278=setTimeout(()=>{_0x5f06f5(),_0x440a16();},_0x9d1f89);_0x5f06f5=onAbort(_0xfe04ac,()=>{const _0x4e9ac7=_0x5aa6d6;clearTimeout(_0x11d278),_0x56df74(_0xfe04ac[_0x4e9ac7(0xe4)]);});});}function buildURL(_0x11584a,_0x1d19f4){const _0x35380d=_0x4b27b1,_0x334315=joinURL(_0x1d19f4['baseURL'],_0x11584a),_0x64aa43=_0x1d19f4['query']??{},_0x53895c=Object['keys'](_0x64aa43)['filter'](_0x40106e=>_0x64aa43[_0x40106e]!==void 0x0)[_0x35380d(0xf3)](_0x588a7c=>{const _0x4be8e5=_0x35380d,_0x7cde4=_0x64aa43[_0x588a7c];return(Array['isArray'](_0x7cde4)?_0x7cde4:[_0x7cde4])[_0x4be8e5(0xb9)](_0x4ba5cf=>encodeURIComponent(_0x588a7c)+'='+encodeURIComponent(String(_0x4ba5cf)));})['join']('&');if(!_0x53895c)return _0x334315;return''+_0x334315+(_0x334315[_0x35380d(0xe2)]('?')?'&':'?')+_0x53895c;}function joinURL(_0x1ebead,_0x556133){const _0xc53475=_0x4b27b1;if(!_0x1ebead||isAbsoluteURL(_0x556133))return _0x556133;return _0x1ebead['replace'](/\/+$/,'')+'/'+_0x556133[_0xc53475(0xad)](/^\/+/,'');}function isAbsoluteURL(_0x48f36f){return/^[a-z][a-z\d+\-.]*:\/\//i['test'](_0x48f36f)||_0x48f36f['startsWith']('//');}function dispatchHttp(_0x45df2d,_0x21d0cd,_0x4e2470){const _0x37c580=buildURL(_0x21d0cd,_0x4e2470);return withRetry(_0x4e2470,()=>attemptRequest(_0x45df2d,_0x21d0cd,_0x37c580,_0x4e2470));}function attemptRequest(_0x3ee5d7,_0x3d69f5,_0x5bc6c7,_0x56fcff){const _0x3b47bc=_0x4b27b1,_0x360c44=!!_0x56fcff[_0x3b47bc(0xda)];return new Promise((_0x17a043,_0x124071)=>{const _0x4265bd=_0x3b47bc;let _0x19326f=![];const _0x539649=_0x47d819=>{if(_0x19326f)return;_0x19326f=!![],_0x47d819();},_0x3b4857=onAbort(_0x56fcff['signal'],()=>{_0x539649(()=>_0x124071(_0x56fcff['signal']['reason']));}),_0x581f7a=_0x351947=>{_0x3b4857(),_0x539649(_0x351947);};callRequestHooks(_0x3d69f5,_0x56fcff)['then'](()=>{if(_0x19326f)return;dispatch(_0x3ee5d7,_0x5bc6c7,_0x56fcff,{'onSuccess':_0x306c5e=>{const _0x4fa05f=_0x691c;Promise['resolve']()[_0x4fa05f(0xac)](()=>refineResponse(_0x306c5e,_0x56fcff))[_0x4fa05f(0xac)](async _0x26658b=>{const _0x20b22d=_0x4fa05f;if(isResponseError(_0x306c5e)){await callResponseErrorHooks(_0x3d69f5,_0x56fcff,_0x26658b);if(!_0x56fcff[_0x20b22d(0xd1)])throw createResponseError(_0x3d69f5,_0x56fcff,_0x26658b);}else await callResponseHooks(_0x3d69f5,_0x56fcff,_0x26658b);_0x581f7a(()=>_0x17a043(_0x360c44?_0x26658b:_0x26658b[_0x20b22d(0xe7)]));})[_0x4fa05f(0xdf)](_0x1c4998=>_0x581f7a(()=>_0x124071(_0x1c4998)));},'onFail':_0x3c053f=>{const _0x581181=_0x691c;Promise[_0x581181(0xaa)]()['then'](async()=>{const _0x4ba4bd=normalizeError(_0x3c053f);if(!isAbortError(_0x4ba4bd))await callRequestErrorHooks(_0x3d69f5,_0x56fcff,_0x4ba4bd);throw _0x4ba4bd;})[_0x581181(0xdf)](_0x1855c1=>_0x581f7a(()=>_0x124071(_0x1855c1)));}});})[_0x4265bd(0xdf)](async _0x541920=>{const _0x44f834=normalizeError(_0x541920);await callRequestErrorHooks(_0x3d69f5,_0x56fcff,_0x44f834),_0x581f7a(()=>_0x124071(_0x44f834));});});}const _0x362067={};_0x362067['method']=_0x4b27b1(0xdc),_0x362067['responseType']='json';const defaultConfig=_0x362067;function createHttp(_0x452a78={}){const _0x44dbf6=_0x4b27b1,_0x51a1ab=(_0x1e1409,_0x5c7312)=>{return dispatchHttp('request',_0x1e1409,mergeOptions(defaultConfig,_0x452a78,_0x5c7312));},_0x5c9a4f=(_0x51bc05,_0x456ccf)=>{const _0x3ea4c9=_0x691c,_0x4c1b9e={};return _0x4c1b9e['method']=_0x3ea4c9(0xd4),dispatchHttp('upload',_0x51bc05,mergeOptions(defaultConfig,_0x452a78,_0x456ccf,_0x4c1b9e));},_0x53bc73=(_0xa660f6,_0x14c12e)=>{const _0x5c3ed8=_0x691c,_0x358010={};return _0x358010['method']=_0x5c3ed8(0xdc),dispatchHttp('download',_0xa660f6,mergeOptions(defaultConfig,_0x452a78,_0x14c12e,_0x358010));},_0x4c26c3=_0x4b9722=>createHttp(mergeOptions(_0x452a78,_0x4b9722)),_0x1653bf={};return _0x1653bf['request']=_0x51a1ab,_0x1653bf[_0x44dbf6(0xb1)]=_0x5c9a4f,_0x1653bf['download']=_0x53bc73,_0x1653bf['create']=_0x4c26c3,_0x1653bf;}const http=createHttp(),_0x19dd53={};_0x19dd53['enumerable']=!![],_0x19dd53['get']=function(){return createHttp;},Object['defineProperty'](exports,_0x4b27b1(0xf9),_0x19dd53);const _0x1fdaca={};_0x1fdaca[_0x4b27b1(0xd3)]=!![],_0x1fdaca[_0x4b27b1(0xd6)]=function(){return createHttpAborter;},Object[_0x4b27b1(0xb8)](exports,'createHttpAborter',_0x1fdaca);const _0x5eae34={};_0x5eae34[_0x4b27b1(0xd3)]=!![],_0x5eae34[_0x4b27b1(0xd6)]=function(){return http;},Object[_0x4b27b1(0xb8)](exports,_0x4b27b1(0xe5),_0x5eae34);
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @oiyo/framework v0.4.4
3
+ * Copyright (c) 2026 skiyee. All rights reserved.
4
+ * Commercial software. See LICENSE for terms.
5
+ * Official site: https://oiyo.js.org
6
+ */
7
+ const _0x13c5ca=_0x5589;(function(_0x5e47a1,_0x2a7e77){const _0xc4ce1e=_0x5589,_0x457533=_0x5e47a1();while(!![]){try{const _0x42b55d=parseInt(_0xc4ce1e(0xff))/0x1*(parseInt(_0xc4ce1e(0xe6))/0x2)+parseInt(_0xc4ce1e(0x12a))/0x3*(-parseInt(_0xc4ce1e(0x105))/0x4)+-parseInt(_0xc4ce1e(0xf4))/0x5+parseInt(_0xc4ce1e(0x109))/0x6*(-parseInt(_0xc4ce1e(0x10e))/0x7)+parseInt(_0xc4ce1e(0xed))/0x8*(parseInt(_0xc4ce1e(0x10f))/0x9)+parseInt(_0xc4ce1e(0xf6))/0xa+-parseInt(_0xc4ce1e(0x113))/0xb;if(_0x42b55d===_0x2a7e77)break;else _0x457533['push'](_0x457533['shift']());}catch(_0x506528){_0x457533['push'](_0x457533['shift']());}}}(_0x6b04,0x6778d));function createHttpAborter(){const _0x2250bc=_0x5589,_0x5e8d6f=new HttpAbortSignal();return{'signal':_0x5e8d6f,'abort':_0x2bf5ea=>_0x5e8d6f[_0x2250bc(0x115)](_0x2bf5ea)};}const ABORT_ERROR_NAME='AbortError';var AbortEmitter=class{['listeners']=[];[_0x13c5ca(0x11a)](_0x164d9a,_0x1d05ce){const _0x5e01da=_0x13c5ca;if(_0x164d9a!==_0x5e01da(0x114))return;this[_0x5e01da(0x11b)]['push'](_0x1d05ce);}['removeEventListener'](_0x284e04,_0x3033fc){if(_0x284e04!=='abort')return;const _0x8632a7=this['listeners']['indexOf'](_0x3033fc);if(_0x8632a7!==-0x1)this['listeners']['splice'](_0x8632a7,0x1);}[_0x13c5ca(0x122)](_0x445e3b){for(const _0x171099 of this['listeners']['slice']())_0x171099['call'](this,_0x445e3b);}},HttpAbortSignal=class extends AbortEmitter{[_0x13c5ca(0xf9)]=![];[_0x13c5ca(0x125)]=void 0x0;[_0x13c5ca(0x118)]=null;[_0x13c5ca(0x115)](_0x55fe78){const _0x347655=_0x13c5ca;if(this['aborted'])return;this['aborted']=!![],this['reason']=_0x55fe78===void 0x0?createAbortError():_0x55fe78;const _0x6df2dc={};_0x6df2dc[_0x347655(0xf7)]='abort';const _0x5e2685=_0x6df2dc;if(typeof this[_0x347655(0x118)]===_0x347655(0x102))this['onabort'](_0x5e2685);this[_0x347655(0x122)](_0x5e2685);}['throwIfAborted'](){const _0x31da0e=_0x13c5ca;if(this['aborted'])throw this[_0x31da0e(0x125)];}};function createAbortError(_0x3e65ef='The\x20operation\x20was\x20aborted'){const _0x4aabd4=_0x13c5ca,_0x311d73=new Error(_0x3e65ef);return _0x311d73[_0x4aabd4(0x119)]=ABORT_ERROR_NAME,_0x311d73;}function isAbortError(_0xbd9eed){const _0x44c86b=_0x13c5ca;return _0xbd9eed instanceof Error&&_0xbd9eed[_0x44c86b(0x119)]===ABORT_ERROR_NAME;}function onAbort(_0x534c81,_0x3cc267){const _0x46b61c=_0x13c5ca;if(!_0x534c81)return()=>{};if(_0x534c81[_0x46b61c(0xf9)])return _0x3cc267(),()=>{};return _0x534c81['addEventListener']('abort',_0x3cc267),()=>_0x534c81[_0x46b61c(0xfd)]('abort',_0x3cc267);}const HOOK_NAMES=['onRequest','onRequestError','onResponse',_0x13c5ca(0x111)];function mergeOptions(..._0x47f95d){const _0x846d01=_0x13c5ca,_0x2bfdbb={},_0x5f4e9b={};for(const _0x210e5c of _0x47f95d){if(!_0x210e5c)continue;for(const _0x2ab72a of HOOK_NAMES)collectHook(_0x5f4e9b,_0x2ab72a,_0x210e5c);const _0xc8d4c8=_0x2bfdbb['headers'],_0x352380=_0x2bfdbb['query'];Object[_0x846d01(0xf2)](_0x2bfdbb,_0x210e5c);const _0x2dae8c={..._0xc8d4c8,..._0x210e5c['headers']};_0x2bfdbb[_0x846d01(0xe1)]=_0x2dae8c;const _0xd45ea={..._0x352380,..._0x210e5c['query']};_0x2bfdbb['query']=_0xd45ea;}for(const [_0x42e382,_0x54f1e3]of Object[_0x846d01(0xfa)](_0x5f4e9b))Object[_0x846d01(0xf2)](_0x2bfdbb,{[_0x42e382]:async _0x517e64=>{for(const _0x1861f4 of _0x54f1e3)await _0x1861f4(_0x517e64);}});return _0x2bfdbb;}function collectHook(_0x579367,_0x54e18d,_0x596c35){const _0x2aaf38=_0x13c5ca,_0x1be4e3=_0x596c35[_0x54e18d];if(typeof _0x1be4e3!==_0x2aaf38(0x102))return;_0x579367[_0x54e18d]??=[],_0x579367[_0x54e18d]['push'](_0x1be4e3);}function dispatch(_0x495037,_0x34200b,_0x26afdb,_0x227677){const _0x502a3d=_0x13c5ca;let _0x561a3b;if(_0x495037==='upload')_0x561a3b=dispatchUpload(_0x34200b,_0x26afdb,_0x227677);else{if(_0x495037===_0x502a3d(0xe7))_0x561a3b=dispatchDownload(_0x34200b,_0x26afdb,_0x227677);else _0x561a3b=dispatchRequest(_0x34200b,_0x26afdb,_0x227677);}bindTask(_0x561a3b,_0x26afdb);}function bindTask(_0x2e6d7e,_0x226288){const _0x67deac=_0x13c5ca;onAbort(_0x226288[_0x67deac(0x117)],()=>_0x2e6d7e['abort']());if(typeof _0x226288[_0x67deac(0x104)]===_0x67deac(0x102))_0x2e6d7e['onHeadersReceived'](_0x226288[_0x67deac(0x104)]);const _0xc57548=_0x226288[_0x67deac(0xf3)];if(typeof _0xc57548===_0x67deac(0x102)&&_0x67deac(0xf8)in _0x2e6d7e)_0x2e6d7e[_0x67deac(0xf8)](_0xc57548);}function dispatchRequest(_0x43db67,_0x1802be,_0x18119c){const _0x103f0c=_0x13c5ca,_0x4de173={'url':_0x43db67,'method':_0x1802be[_0x103f0c(0x11f)],'header':_0x1802be[_0x103f0c(0xe1)],'data':_0x1802be[_0x103f0c(0xe3)]??{},'timeout':_0x1802be['timeout'],'dataType':_0x1802be[_0x103f0c(0x10c)]||'json','responseType':mappedResponseBodyType(_0x1802be[_0x103f0c(0xfc)]),'sslVerify':_0x1802be['sslVerify'],'withCredentials':_0x1802be['withCredentials'],'firstIpv4':_0x1802be[_0x103f0c(0x129)],'enableHttp2':_0x1802be['enableHttp2'],'enableQuic':_0x1802be[_0x103f0c(0x10a)],'enableCache':_0x1802be[_0x103f0c(0xec)],'enableHttpDNS':_0x1802be[_0x103f0c(0xea)],'httpDNSServiceId':_0x1802be['httpDNSServiceId'],'enableChunked':_0x1802be['enableChunked'],'forceCellularNetwork':_0x1802be['forceCellularNetwork'],'success':_0x18119c['onSuccess'],'fail':_0x18119c['onFail'],'complete':()=>{}};return uni['request'](_0x4de173);}function dispatchUpload(_0x2fdcff,_0x34c5c2,_0x2a6624){const _0x47e87f=_0x13c5ca,_0x4715d1={};_0x4715d1[_0x47e87f(0x108)]=_0x2fdcff,_0x4715d1['fileType']=_0x34c5c2[_0x47e87f(0x101)],_0x4715d1['file']=_0x34c5c2[_0x47e87f(0x110)],_0x4715d1['filePath']=_0x34c5c2['filePath'],_0x4715d1[_0x47e87f(0x119)]=_0x34c5c2[_0x47e87f(0x119)]??_0x47e87f(0x110),_0x4715d1['files']=_0x34c5c2['files'],_0x4715d1[_0x47e87f(0x107)]=_0x34c5c2[_0x47e87f(0xe1)],_0x4715d1['formData']=_0x34c5c2[_0x47e87f(0xe3)]??{},_0x4715d1['timeout']=_0x34c5c2[_0x47e87f(0xeb)],_0x4715d1[_0x47e87f(0x120)]=_0x2a6624['onSuccess'],_0x4715d1['fail']=_0x2a6624[_0x47e87f(0x12b)],_0x4715d1[_0x47e87f(0xfb)]=()=>{};const _0x495a14=_0x4715d1;return uni[_0x47e87f(0xf1)](_0x495a14);}function dispatchDownload(_0x4d75a3,_0x291b79,_0xfbc80b){const _0x31e4ff=_0x13c5ca,_0xbeb5f0={'url':_0x4d75a3,'header':_0x291b79['headers'],'timeout':_0x291b79[_0x31e4ff(0xeb)],'success':_0x3a4145=>{const _0x227f4e=_0x31e4ff,_0x52b332={..._0x3a4145};_0x52b332[_0x227f4e(0xe8)]={},_0x52b332[_0x227f4e(0xe8)]['tempFilePath']=_0x3a4145[_0x227f4e(0x112)],_0xfbc80b['onSuccess'](_0x52b332);},'fail':_0xfbc80b['onFail'],'complete':()=>{}};return uni['downloadFile'](_0xbeb5f0);}function mappedResponseBodyType(_0x1f1e46){const _0x5154f=_0x13c5ca;if(!_0x1f1e46||_0x1f1e46===_0x5154f(0x128))return _0x5154f(0xef);if(_0x1f1e46===_0x5154f(0x11d))return _0x5154f(0x10b);return'text';}var HttpError=class extends Error{constructor(_0x2a8af6){super(_0x2a8af6),this['name']='HttpError';}};function createResponseError(_0x36592a,_0x5ce813,_0x37a9df){const _0x2f4730=_0x13c5ca,_0xb85244=_0x36592a,_0x4a1556='['+(_0x5ce813?.['method']||_0x2f4730(0x127))+']\x20'+_0xb85244,_0x5c9d68=_0x37a9df?_0x37a9df['statusCode']+'\x20'+(_0x37a9df['errMsg']||''):'<no\x20response>',_0x13f13a=_0x37a9df?JSON[_0x2f4730(0xf0)](_0x37a9df['data']):'<no\x20response\x20body>',_0x51f235=new HttpError(_0x4a1556+':\x20'+_0x5c9d68+(_0x37a9df['data']?'\x20'+_0x13f13a:''));for(const _0x1a0796 of['request',_0x2f4730(0x116),_0x2f4730(0x121),'data'])Object[_0x2f4730(0xf5)](_0x51f235,_0x1a0796,{'get'(){const _0x3e599e=_0x2f4730,_0x10cc1c={};return _0x10cc1c['request']=_0x36592a,_0x10cc1c[_0x3e599e(0x116)]=_0x5ce813,_0x10cc1c[_0x3e599e(0x121)]=_0x37a9df,_0x10cc1c[_0x3e599e(0xe8)]=_0x37a9df[_0x3e599e(0xe8)],_0x10cc1c[_0x1a0796];}});return _0x51f235;}function normalizeError(_0x20e2b1){const _0x34c9e8=_0x13c5ca;if(_0x20e2b1 instanceof Error)return _0x20e2b1;return Object[_0x34c9e8(0xf2)](new Error(_0x20e2b1?.['errMsg']||_0x20e2b1?.['message']||'HTTP\x20request\x20failed'),{'cause':_0x20e2b1});}async function callRequestHooks(_0x5f3f7e,_0x1222aa){await _0x1222aa['onRequest']?.({'options':_0x1222aa,'resource':_0x5f3f7e});}async function callRequestErrorHooks(_0x17244f,_0x9e701d,_0x447714){await _0x9e701d['onRequestError']?.({'options':_0x9e701d,'resource':_0x17244f,'error':_0x447714});}async function callResponseHooks(_0x419b9b,_0x1b3d37,_0x589bce){await _0x1b3d37['onResponse']?.({'options':_0x1b3d37,'resource':_0x419b9b,'response':_0x589bce});}async function callResponseErrorHooks(_0x2babbc,_0x5bbf3a,_0x13ee51){await _0x5bbf3a['onResponseError']?.({'options':_0x5bbf3a,'resource':_0x2babbc,'response':_0x13ee51});}async function refineResponse(_0x1a7da6,_0x2766c9){const _0x1685e6=_0x13c5ca;if(_0x2766c9[_0x1685e6(0xfc)]===_0x1685e6(0x128)||!_0x2766c9[_0x1685e6(0xfc)])return{..._0x1a7da6,'data':await parseJSONResponse(_0x1a7da6[_0x1685e6(0xe8)],_0x2766c9)};return _0x1a7da6;}function _0x5589(_0x341ced,_0x43cef5){_0x341ced=_0x341ced-0xdf;const _0x6b0478=_0x6b04();let _0x5589c8=_0x6b0478[_0x341ced];return _0x5589c8;}function parseJSONResponse(_0x8079cd,_0x26d1a3){const _0x2c3523=_0x13c5ca;if(typeof _0x8079cd!==_0x2c3523(0xee))return _0x8079cd;if(_0x26d1a3['parseResponse'])return _0x26d1a3['parseResponse'](_0x8079cd);return _0x8079cd?JSON['parse'](_0x8079cd):null;}function isResponseError(_0x256265){const _0x6ee965=_0x13c5ca,_0x5ee0af='statusCode'in _0x256265?_0x256265[_0x6ee965(0xe5)]:void 0x0;return typeof _0x5ee0af==='number'&&(_0x5ee0af<0xc8||_0x5ee0af>=0x12c);}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set([_0x13c5ca(0xe9),'PUT',_0x13c5ca(0x10d),'PATCH']);async function withRetry(_0x2361a6,_0x201e2a){const _0x3fb015=_0x13c5ca,_0x3a6bd3=resolveRetryCount(_0x2361a6);for(let _0x1bf3d3=0x0;;_0x1bf3d3++)try{return await _0x201e2a();}catch(_0x3efac5){if(_0x1bf3d3>=_0x3a6bd3||!shouldRetry(_0x3efac5,_0x2361a6))throw _0x3efac5;await sleep(_0x2361a6[_0x3fb015(0xe0)]??0x0,_0x2361a6['signal']);}}function resolveRetryCount(_0x498eea){const _0xec103f=_0x13c5ca,{retry:_0x5887c1}=_0x498eea;if(_0x5887c1===![])return 0x0;if(typeof _0x5887c1===_0xec103f(0xe4))return _0x5887c1>0x0?_0x5887c1:0x0;return isPayloadMethod(_0x498eea[_0xec103f(0x11f)])?0x0:0x1;}function shouldRetry(_0x19d37d,_0x3c883b){const _0x24d33a=_0x13c5ca;if(_0x3c883b[_0x24d33a(0x117)]?.[_0x24d33a(0xf9)]||isAbortError(_0x19d37d))return![];const _0x2521a7=_0x19d37d?.[_0x24d33a(0x121)]?.[_0x24d33a(0xe5)];if(typeof _0x2521a7!=='number')return!![];return(_0x3c883b['retryStatusCodes']??DEFAULT_RETRY_STATUS_CODES)[_0x24d33a(0x100)](_0x2521a7);}function isPayloadMethod(_0x1dc087){const _0x3ccba5=_0x13c5ca;return!!_0x1dc087&&PAYLOAD_METHODS[_0x3ccba5(0x11e)](_0x1dc087[_0x3ccba5(0x123)]());}function sleep(_0x29db82,_0x1c7a3d){return new Promise((_0x4e0fe4,_0x48a0dc)=>{if(_0x1c7a3d?.['aborted']){_0x48a0dc(_0x1c7a3d['reason']);return;}if(!(_0x29db82>0x0)){_0x4e0fe4();return;}let _0x1503f6=()=>{};const _0x5da05b=setTimeout(()=>{_0x1503f6(),_0x4e0fe4();},_0x29db82);_0x1503f6=onAbort(_0x1c7a3d,()=>{clearTimeout(_0x5da05b),_0x48a0dc(_0x1c7a3d['reason']);});});}function buildURL(_0x2a8920,_0x16ec0d){const _0x2b4525=_0x13c5ca,_0x4858e1=joinURL(_0x16ec0d['baseURL'],_0x2a8920),_0x28caad=_0x16ec0d['query']??{},_0x4728e3=Object['keys'](_0x28caad)[_0x2b4525(0x124)](_0x5cb9a5=>_0x28caad[_0x5cb9a5]!==void 0x0)['flatMap'](_0x56593b=>{const _0x415238=_0x2b4525,_0x337761=_0x28caad[_0x56593b];return(Array['isArray'](_0x337761)?_0x337761:[_0x337761])[_0x415238(0x106)](_0x3ea0e0=>encodeURIComponent(_0x56593b)+'='+encodeURIComponent(String(_0x3ea0e0)));})[_0x2b4525(0x126)]('&');if(!_0x4728e3)return _0x4858e1;return''+_0x4858e1+(_0x4858e1['includes']('?')?'&':'?')+_0x4728e3;}function joinURL(_0x448747,_0x1a73c8){if(!_0x448747||isAbsoluteURL(_0x1a73c8))return _0x1a73c8;return _0x448747['replace'](/\/+$/,'')+'/'+_0x1a73c8['replace'](/^\/+/,'');}function _0x6b04(){const _0x46e537=['join','GET','json','firstIpv4','1627701XwJvQs','onFail','catch','retryDelay','headers','request','body','number','statusCode','564510BRhRMv','download','data','POST','enableHttpDNS','timeout','enableCache','1231480tGvvBW','string','text','stringify','uploadFile','assign','onProgress','2327725KSlECk','defineProperty','7471810FfYbgp','type','onProgressUpdate','aborted','entries','complete','responseType','removeEventListener','resolve','3cbTWhg','includes','fileType','function','raw','onHeadersReceived','4CkFdKY','map','header','url','4182PsCvGV','enableQuic','arraybuffer','dataType','DELETE','1624Dfqoql','9YxxqcO','file','onResponseError','tempFilePath','1696684FyCXrE','abort','_abort','options','signal','onabort','name','addEventListener','listeners','then','arrayBuffer','has','method','success','response','emit','toUpperCase','filter','reason'];_0x6b04=function(){return _0x46e537;};return _0x6b04();}function isAbsoluteURL(_0x300ed0){return/^[a-z][a-z\d+\-.]*:\/\//i['test'](_0x300ed0)||_0x300ed0['startsWith']('//');}function dispatchHttp(_0x12d348,_0xf3905d,_0x2bfc93){const _0x27010b=buildURL(_0xf3905d,_0x2bfc93);return withRetry(_0x2bfc93,()=>attemptRequest(_0x12d348,_0xf3905d,_0x27010b,_0x2bfc93));}function attemptRequest(_0x3dae99,_0x295d93,_0x1fd18c,_0x560950){const _0x221b7e=_0x13c5ca,_0x17fd23=!!_0x560950[_0x221b7e(0x103)];return new Promise((_0x42b8c5,_0x99aef3)=>{const _0x35a8ec=_0x221b7e;let _0x1bfd45=![];const _0x494beb=_0x3f41e4=>{if(_0x1bfd45)return;_0x1bfd45=!![],_0x3f41e4();},_0x5dc3e7=onAbort(_0x560950['signal'],()=>{const _0x1a157f=_0x5589;_0x494beb(()=>_0x99aef3(_0x560950[_0x1a157f(0x117)][_0x1a157f(0x125)]));}),_0x2cad32=_0x171e20=>{_0x5dc3e7(),_0x494beb(_0x171e20);};callRequestHooks(_0x295d93,_0x560950)[_0x35a8ec(0x11c)](()=>{if(_0x1bfd45)return;dispatch(_0x3dae99,_0x1fd18c,_0x560950,{'onSuccess':_0x158c1b=>{const _0x396e22=_0x5589;Promise['resolve']()[_0x396e22(0x11c)](()=>refineResponse(_0x158c1b,_0x560950))['then'](async _0x34297e=>{if(isResponseError(_0x158c1b)){await callResponseErrorHooks(_0x295d93,_0x560950,_0x34297e);if(!_0x560950['ignoreResponseError'])throw createResponseError(_0x295d93,_0x560950,_0x34297e);}else await callResponseHooks(_0x295d93,_0x560950,_0x34297e);_0x2cad32(()=>_0x42b8c5(_0x17fd23?_0x34297e:_0x34297e['data']));})[_0x396e22(0xdf)](_0x3a1e26=>_0x2cad32(()=>_0x99aef3(_0x3a1e26)));},'onFail':_0x4082b8=>{const _0x975bb=_0x5589;Promise[_0x975bb(0xfe)]()[_0x975bb(0x11c)](async()=>{const _0x32a5c1=normalizeError(_0x4082b8);if(!isAbortError(_0x32a5c1))await callRequestErrorHooks(_0x295d93,_0x560950,_0x32a5c1);throw _0x32a5c1;})[_0x975bb(0xdf)](_0x205ca7=>_0x2cad32(()=>_0x99aef3(_0x205ca7)));}});})['catch'](async _0x5e395d=>{const _0x5ac2fc=normalizeError(_0x5e395d);await callRequestErrorHooks(_0x295d93,_0x560950,_0x5ac2fc),_0x2cad32(()=>_0x99aef3(_0x5ac2fc));});});}const _0x521137={};_0x521137[_0x13c5ca(0x11f)]='GET',_0x521137['responseType']='json';const defaultConfig=_0x521137;function createHttp(_0x343224={}){const _0x578641=(_0xea1c7,_0x4c0018)=>{const _0x2e1a8c=_0x5589;return dispatchHttp(_0x2e1a8c(0xe2),_0xea1c7,mergeOptions(defaultConfig,_0x343224,_0x4c0018));},_0x302cd4=(_0x5ea02f,_0x866077)=>{const _0x5e2220=_0x5589,_0xdcec9a={};return _0xdcec9a['method']=_0x5e2220(0xe9),dispatchHttp('upload',_0x5ea02f,mergeOptions(defaultConfig,_0x343224,_0x866077,_0xdcec9a));},_0x4efc1f=(_0x1b4c67,_0x58786e)=>{const _0x345439=_0x5589,_0x5a0538={};return _0x5a0538['method']=_0x345439(0x127),dispatchHttp('download',_0x1b4c67,mergeOptions(defaultConfig,_0x343224,_0x58786e,_0x5a0538));},_0x493e3e=_0x3d43dc=>createHttp(mergeOptions(_0x343224,_0x3d43dc)),_0x5d6b05={};return _0x5d6b05['request']=_0x578641,_0x5d6b05['upload']=_0x302cd4,_0x5d6b05['download']=_0x4efc1f,_0x5d6b05['create']=_0x493e3e,_0x5d6b05;}const http=createHttp();export{http as n,createHttpAborter as r,createHttp as t};
package/dist/oiyo.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @oiyo/framework v0.4.2
2
+ * @oiyo/framework v0.4.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-BS1ESthW.cjs");
8
+ const require_oiyo = require("./oiyo-DF-n178E.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.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 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-6y-CxV-U.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.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 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-6y-CxV-U.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.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-CQlUPoLW.mjs";
7
+ import { n as http, r as createHttpAborter, t as createHttp } from "./oiyo-GRTo5_GU.mjs";
8
8
  export { createHttp, createHttpAborter, http };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.2
2
+ * @oiyo/framework v0.4.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.2
2
+ * @oiyo/framework v0.4.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.2
2
+ * @oiyo/framework v0.4.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("./rolldown-runtime-CrmOzWpZ.cjs");
8
+ require("./rolldown-runtime-DQZhkyOB.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.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.2
2
+ * @oiyo/framework v0.4.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.2
2
+ * @oiyo/framework v0.4.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 "./rolldown-runtime-D0eOKGL5.mjs";
7
+ import "./rolldown-runtime-D5dVOuTm.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.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("./rolldown-runtime-CrmOzWpZ.cjs");
8
+ require("./rolldown-runtime-DQZhkyOB.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.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.2
2
+ * @oiyo/framework v0.4.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.2
2
+ * @oiyo/framework v0.4.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 "./rolldown-runtime-D0eOKGL5.mjs";
7
+ import "./rolldown-runtime-D5dVOuTm.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.4",
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};