xframelib 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -10
- package/dist/assets/worker-XXTEA-BTkdAuVi.js +6 -0
- package/dist/assets/worker-webcache-JMcB6mHT.js +6 -0
- package/dist/assets/worker-xmath-DUFCrWrO.js +15 -0
- package/dist/controls/vuewindow/window/index.vue.d.ts +1 -1
- package/dist/index.css +53 -53
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -3
- package/dist/public/mitm.html +2 -2
- package/dist/utils/WebCacheTool.d.ts +72 -0
- package/dist/utils/index.d.ts +2 -1
- package/dist/workers/index.d.ts +7 -1
- package/dist/workers/worker-webcache.d.ts +13 -0
- package/dist/workerservice/frontWorker.d.ts +3 -0
- package/dist/workerservice/index.d.ts +9 -0
- package/package.json +71 -69
- package/dist/assets/worker-XXTEA-lcP6QMJU.js +0 -6
- package/dist/assets/worker-xmath-C-79xQSy.js +0 -15
package/README.md
CHANGED
|
@@ -13,8 +13,10 @@
|
|
|
13
13
|
|
|
14
14
|
> 基于 VUE3+Hprose+Typescript+Widget 的前端框架,与ElementUI、AntDesign VUE、Quasar等界面库无关,一直是来源于项目和服务于项目。
|
|
15
15
|
|
|
16
|
+
- v1.0.3 新增支持Webworker Service开发模式(取代vite-plugin-webworker-service功能,解决插件与@quasar/app-vite不兼容);增加基于lru-cache的前端缓存工具类WebCacheTool和webCacheWorker;批量使用globThis代替window全局对象,以支持node和webworker里使用本库;更新基础依赖库版本;
|
|
17
|
+
- v1.0.2 更新依赖库版本;解决XWindow图标离线化问题,修改窗体图标间距;
|
|
16
18
|
- v1.0.1 更新依赖库版本,修改复制粘贴与textarea粘贴功能冲突问题;
|
|
17
|
-
- v0.9.9 修改init方法,使用Global.Config
|
|
19
|
+
- v0.9.9 修改init方法,使用Global.Config?.ServiceURL.IconServiceURL注册自己的IconAPIProvider(解决内网时xwindow组件无按钮符号) ;
|
|
18
20
|
- v0.9.8 移除streamsaver依赖库,改为内部引用,解决弹框请求mitm.html导致无法下载文件的问题(http下的IP:端口请求会出现域安全问题);
|
|
19
21
|
- v0.9.7 解决v0.9.6使用useTemplateRef后导致LayoutManager不断报警告问题:client-entry.js:313 [Vue warn] Set operation on key "value" failed: target is readonly. RefImpl
|
|
20
22
|
- *v0.9.6 改用vite打包;解决存在的循环引用问题;引入webworker,增加xmathWorker和xxteaWorker;XWindow增加点击header栏置顶窗体;优化widgetConfig加载,提升优化LayoutContainer和LayoutManager内部处理效率(保留旧方法,兼容旧开发模板);更新依赖库版本;
|
|
@@ -126,6 +128,8 @@
|
|
|
126
128
|
|
|
127
129
|
- 与后端配合使用的加密解密算法XXTEA
|
|
128
130
|
|
|
131
|
+
- 前端缓存功能(WebCacheTool和webCacheWorker)
|
|
132
|
+
|
|
129
133
|
## 使用
|
|
130
134
|
|
|
131
135
|
`pnpm add xframelib`
|
|
@@ -163,10 +167,6 @@ import {Icon} from '@iconify/vue';
|
|
|
163
167
|
import 'ant-design-vue/dist/antd.css';
|
|
164
168
|
|
|
165
169
|
|
|
166
|
-
if(window.global===undefined)
|
|
167
|
-
{
|
|
168
|
-
window.global=globalThis;
|
|
169
|
-
}
|
|
170
170
|
message.config({
|
|
171
171
|
top: `100px`,
|
|
172
172
|
duration: 1,
|
|
@@ -207,9 +207,7 @@ import { message } from 'src/utils/MessageNotify';
|
|
|
207
207
|
import { getSystemID, getSystemPKG } from 'src/utils/sysTool';
|
|
208
208
|
import { Global, init } from 'xframelib';
|
|
209
209
|
function preInit() {
|
|
210
|
-
|
|
211
|
-
window.global = globalThis;
|
|
212
|
-
}
|
|
210
|
+
|
|
213
211
|
//系统ID,唯一标识
|
|
214
212
|
const sysID = getSystemID();
|
|
215
213
|
//分组名,工程名
|
|
@@ -218,9 +216,9 @@ function preInit() {
|
|
|
218
216
|
//挂载进度通知方法
|
|
219
217
|
Global.Loading = EmitLoadingInfo;
|
|
220
218
|
//注册自己的IconAPIProvider
|
|
221
|
-
if (Global.Config
|
|
219
|
+
if (Global.Config?.ServiceURL.IconServiceURL)
|
|
222
220
|
addAPIProvider('', {
|
|
223
|
-
resources: [Global.Config
|
|
221
|
+
resources: [Global.Config?.ServiceURL.IconServiceURL]
|
|
224
222
|
});
|
|
225
223
|
else {
|
|
226
224
|
//离线使用图标:生效,IconServiceURL配置为空
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2019 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
const e=Symbol("Comlink.proxy"),r=Symbol("Comlink.endpoint"),n=Symbol("Comlink.releaseProxy"),t=Symbol("Comlink.finalizer"),a=Symbol("Comlink.thrown"),o=e=>"object"==typeof e&&null!==e||"function"==typeof e,i={canHandle:r=>o(r)&&r[e],serialize(e){const{port1:r,port2:n}=new MessageChannel;return c(e,r),[n,[n]]},deserialize:e=>(e.start(),function(e,r){const n=new Map;return e.addEventListener("message",function(e){const{data:r}=e;if(!r||!r.id)return;const t=n.get(r.id);if(t)try{t(r)}finally{n.delete(r.id)}}),p(e,n,[],r)}(e))},s=new Map([["proxy",i],["throw",{canHandle:e=>o(e)&&a in e,serialize({value:e}){let r;return r=e instanceof Error?{isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:{isError:!1,value:e},[r,[]]},deserialize(e){if(e.isError)throw Object.assign(new Error(e.value.message),e.value);throw e.value}}]]);function c(r,n=globalThis,o=["*"]){n.addEventListener("message",function i(s){if(!s||!s.data)return;if(!function(e,r){for(const n of e){if(r===n||"*"===n)return!0;if(n instanceof RegExp&&n.test(r))return!0}return!1}(o,s.origin))return void console.warn(`Invalid origin '${s.origin}' for comlink proxy`);const{id:l,type:f,path:g}=Object.assign({path:[]},s.data),h=(s.data.argumentList||[]).map(v);let p;try{const n=g.slice(0,-1).reduce((e,r)=>e[r],r),t=g.reduce((e,r)=>e[r],r);switch(f){case"GET":p=t;break;case"SET":n[g.slice(-1)[0]]=v(s.data.value),p=!0;break;case"APPLY":p=t.apply(n,h);break;case"CONSTRUCT":p=function(r){return Object.assign(r,{[e]:!0})}(new t(...h));break;case"ENDPOINT":{const{port1:e,port2:n}=new MessageChannel;c(r,n),p=function(e,r){return d.set(e,r),e}(e,[e])}break;case"RELEASE":p=void 0;break;default:return}}catch(e){p={value:e,[a]:0}}Promise.resolve(p).catch(e=>({value:e,[a]:0})).then(e=>{const[a,o]=w(e);n.postMessage(Object.assign(Object.assign({},a),{id:l}),o),"RELEASE"===f&&(n.removeEventListener("message",i),u(n),t in r&&"function"==typeof r[t]&&r[t]())}).catch(e=>{const[r,t]=w({value:new TypeError("Unserializable return value"),[a]:0});n.postMessage(Object.assign(Object.assign({},r),{id:l}),t)})}),n.start&&n.start()}function u(e){(function(e){return"MessagePort"===e.constructor.name})(e)&&e.close()}function l(e){if(e)throw new Error("Proxy has been released and is not useable")}function f(e){return m(e,new Map,{type:"RELEASE"}).then(()=>{u(e)})}const g=new WeakMap,h="FinalizationRegistry"in globalThis&&new FinalizationRegistry(e=>{const r=(g.get(e)||0)-1;g.set(e,r),0===r&&f(e)});function p(e,t,a=[],o=function(){}){let i=!1;const s=new Proxy(o,{get(r,o){if(l(i),o===n)return()=>{!function(e){h&&h.unregister(e)}(s),f(e),t.clear(),i=!0};if("then"===o){if(0===a.length)return{then:()=>s};const r=m(e,t,{type:"GET",path:a.map(e=>e.toString())}).then(v);return r.then.bind(r)}return p(e,t,[...a,o])},set(r,n,o){l(i);const[s,c]=w(o);return m(e,t,{type:"SET",path:[...a,n].map(e=>e.toString()),value:s},c).then(v)},apply(n,o,s){l(i);const c=a[a.length-1];if(c===r)return m(e,t,{type:"ENDPOINT"}).then(v);if("bind"===c)return p(e,t,a.slice(0,-1));const[u,f]=y(s);return m(e,t,{type:"APPLY",path:a.map(e=>e.toString()),argumentList:u},f).then(v)},construct(r,n){l(i);const[o,s]=y(n);return m(e,t,{type:"CONSTRUCT",path:a.map(e=>e.toString()),argumentList:o},s).then(v)}});return function(e,r){const n=(g.get(r)||0)+1;g.set(r,n),h&&h.register(e,r,e)}(s,e),s}function y(e){const r=e.map(w);return[r.map(e=>e[0]),(n=r.map(e=>e[1]),Array.prototype.concat.apply([],n))];var n}const d=new WeakMap;function w(e){for(const[r,n]of s)if(n.canHandle(e)){const[t,a]=n.serialize(e);return[{type:"HANDLER",name:r,value:t},a]}return[{type:"RAW",value:e},d.get(e)||[]]}function v(e){switch(e.type){case"HANDLER":return s.get(e.name).deserialize(e.value);case"RAW":return e.value}}function m(e,r,n,t){return new Promise(a=>{const o=new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-");r.set(o,a),e.start&&e.start(),e.postMessage(Object.assign({id:o},n),t)})}let b=!0;try{String.fromCharCode.apply(String,[1,2])}catch(e){b=!1,Object.defineProperty(Array.prototype,"subarray",{value:Array.prototype.slice})}var E=2654435769;function S(e,r){var n=e.length,t=n<<2;if(r){var a=e[n-1];if(a<(t-=4)-3||a>t)return null;t=a}for(var o=new Uint8Array(t),i=0;i<t;++i)o[i]=e[i>>2]>>((3&i)<<3);return o}function C(e,r){var n,t=e.length,a=t>>2;3&t&&++a,r?(n=new Uint32Array(a+1))[a]=t:n=new Uint32Array(a);for(var o=0;o<t;++o)n[o>>2]|=e[o]<<((3&o)<<3);return n}function A(e){return 4294967295&e}function T(e,r,n,t,a,o){return(n>>>5^r<<2)+(r>>>3^n<<4)^(e^r)+(o[3&t^a]^n)}function U(e){if(e.length<16){var r=new Uint8Array(16);r.set(e),e=r}return e}function k(e){for(var r=e.length,n=new Uint8Array(3*r),t=0,a=0;a<r;a++){var o=e.charCodeAt(a);if(o<128)n[t++]=o;else if(o<2048)n[t++]=192|o>>6,n[t++]=128|63&o;else{if(!(o<55296||o>57343)){if(a+1<r){var i=e.charCodeAt(a+1);if(o<56320&&56320<=i&&i<=57343){var s=65536+((1023&o)<<10|1023&i);n[t++]=240|s>>18,n[t++]=128|s>>12&63,n[t++]=128|s>>6&63,n[t++]=128|63&s,a++;continue}}throw new Error("Malformed string")}n[t++]=224|o>>12,n[t++]=128|o>>6&63,n[t++]=128|63&o}}return n.subarray(0,t)}function M(e){var r=e.length;return 0===r?"":r<32767?function(e,r){for(var n=new Array(r),t=0,a=0,o=e.length;t<r&&a<o;t++){var i=e[a++];switch(i>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:n[t]=i;break;case 12:case 13:if(!(a<o))throw new Error("Unfinished UTF-8 octet sequence");n[t]=(31&i)<<6|63&e[a++];break;case 14:if(!(a+1<o))throw new Error("Unfinished UTF-8 octet sequence");n[t]=(15&i)<<12|(63&e[a++])<<6|63&e[a++];break;case 15:if(!(a+2<o))throw new Error("Unfinished UTF-8 octet sequence");var s=((7&i)<<18|(63&e[a++])<<12|(63&e[a++])<<6|63&e[a++])-65536;if(!(0<=s&&s<=1048575))throw new Error("Character outside valid Unicode range: 0x"+s.toString(16));n[t++]=s>>10&1023|55296,n[t]=1023&s|56320;break;default:throw new Error("Bad UTF-8 encoding 0x"+i.toString(16))}}return t<r&&(n.length=t),String.fromCharCode.apply(String,n)}(e,r):function(e,r){for(var n=[],t=new Array(32768),a=0,o=0,i=e.length;a<r&&o<i;a++){var s=e[o++];switch(s>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:t[a]=s;break;case 12:case 13:if(!(o<i))throw new Error("Unfinished UTF-8 octet sequence");t[a]=(31&s)<<6|63&e[o++];break;case 14:if(!(o+1<i))throw new Error("Unfinished UTF-8 octet sequence");t[a]=(15&s)<<12|(63&e[o++])<<6|63&e[o++];break;case 15:if(!(o+2<i))throw new Error("Unfinished UTF-8 octet sequence");var c=((7&s)<<18|(63&e[o++])<<12|(63&e[o++])<<6|63&e[o++])-65536;if(!(0<=c&&c<=1048575))throw new Error("Character outside valid Unicode range: 0x"+c.toString(16));t[a++]=c>>10&1023|55296,t[a]=1023&c|56320;break;default:throw new Error("Bad UTF-8 encoding 0x"+s.toString(16))}if(a>=32766){var u=a+1;t.length=u,n.push(String.fromCharCode.apply(String,t)),r-=u,a=-1}}return a>0&&(t.length=a,n.push(String.fromCharCode.apply(String,t))),n.join("")}(e,r)}function j(e){var r=e.length;if(0===r)return"";var n=b?e:function(e){for(var r=e.length,n=new Array(e.length),t=0;t<r;++t)n[t]=e[t];return n}(e);if(r<65535)return String.fromCharCode.apply(String,n);for(var t=32767&r,a=r>>15,o=new Array(t?a+1:a),i=0;i<a;++i)o[i]=String.fromCharCode.apply(String,n.subarray(i<<15,i+1<<15));return t&&(o[a]=String.fromCharCode.apply(String,n.subarray(a<<15,r))),o.join("")}function O(e,r){return"string"==typeof e&&(e=k(e)),"string"==typeof r&&(r=k(r)),null==e||0===e.length?e:S(function(e,r){var n,t,a,o,i,s,c=e.length,u=c-1;for(t=e[u],a=0,s=0|Math.floor(6+52/c);s>0;--s){for(o=(a=A(a+E))>>>2&3,i=0;i<u;++i)n=e[i+1],t=e[i]=A(e[i]+T(a,n,t,i,o,r));n=e[0],t=e[u]=A(e[u]+T(a,n,t,u,o,r))}return e}(C(e,!0),C(U(r),!1)),!1)}function L(e,r){return"string"==typeof e&&(e=function(e){for(var r=globalThis.atob(e),n=r.length,t=new Uint8Array(n),a=0;a<n;a++)t[a]=r.charCodeAt(a);return t}(e)),"string"==typeof r&&(r=k(r)),null==e||0===e.length?e:S(function(e,r){var n,t,a,o,i,s=e.length,c=s-1;for(n=e[0],a=A(Math.floor(6+52/s)*E);0!==a;a=A(a-E)){for(o=a>>>2&3,i=c;i>0;--i)t=e[i-1],n=e[i]=A(e[i]-T(a,n,t,i,o,r));t=e[c],n=e[0]=A(e[0]-T(a,n,t,0,o,r))}return e}(C(e,!1),C(U(r),!1)),!0)}c(Object.freeze({__proto__:null,decrypt:L,decryptToString:function(e,r){return M(L(e,r))},encrypt:O,encryptToString:function(e,r){return globalThis.btoa(j(O(e,r)))},toBytes:k,toString:M}));
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2019 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
const t=Symbol("Comlink.proxy"),e=Symbol("Comlink.endpoint"),i=Symbol("Comlink.releaseProxy"),s=Symbol("Comlink.finalizer"),n=Symbol("Comlink.thrown"),o=t=>"object"==typeof t&&null!==t||"function"==typeof t,a={canHandle:e=>o(e)&&e[t],serialize(t){const{port1:e,port2:i}=new MessageChannel;return h(t,e),[i,[i]]},deserialize:t=>(t.start(),function(t,e){const i=new Map;return t.addEventListener("message",function(t){const{data:e}=t;if(!e||!e.id)return;const s=i.get(e.id);if(s)try{s(e)}finally{i.delete(e.id)}}),p(t,i,[],e)}(t))},r=new Map([["proxy",a],["throw",{canHandle:t=>o(t)&&n in t,serialize({value:t}){let e;return e=t instanceof Error?{isError:!0,value:{message:t.message,name:t.name,stack:t.stack}}:{isError:!1,value:t},[e,[]]},deserialize(t){if(t.isError)throw Object.assign(new Error(t.value.message),t.value);throw t.value}}]]);function h(e,i=globalThis,o=["*"]){i.addEventListener("message",function a(r){if(!r||!r.data)return;if(!function(t,e){for(const i of t){if(e===i||"*"===i)return!0;if(i instanceof RegExp&&i.test(e))return!0}return!1}(o,r.origin))return void console.warn(`Invalid origin '${r.origin}' for comlink proxy`);const{id:c,type:u,path:d}=Object.assign({path:[]},r.data),f=(r.data.argumentList||[]).map(y);let p;try{const i=d.slice(0,-1).reduce((t,e)=>t[e],e),s=d.reduce((t,e)=>t[e],e);switch(u){case"GET":p=s;break;case"SET":i[d.slice(-1)[0]]=y(r.data.value),p=!0;break;case"APPLY":p=s.apply(i,f);break;case"CONSTRUCT":p=function(e){return Object.assign(e,{[t]:!0})}(new s(...f));break;case"ENDPOINT":{const{port1:t,port2:i}=new MessageChannel;h(e,i),p=function(t,e){return m.set(t,e),t}(t,[t])}break;case"RELEASE":p=void 0;break;default:return}}catch(t){p={value:t,[n]:0}}Promise.resolve(p).catch(t=>({value:t,[n]:0})).then(t=>{const[n,o]=v(t);i.postMessage(Object.assign(Object.assign({},n),{id:c}),o),"RELEASE"===u&&(i.removeEventListener("message",a),l(i),s in e&&"function"==typeof e[s]&&e[s]())}).catch(t=>{const[e,s]=v({value:new TypeError("Unserializable return value"),[n]:0});i.postMessage(Object.assign(Object.assign({},e),{id:c}),s)})}),i.start&&i.start()}function l(t){(function(t){return"MessagePort"===t.constructor.name})(t)&&t.close()}function c(t){if(t)throw new Error("Proxy has been released and is not useable")}function u(t){return w(t,new Map,{type:"RELEASE"}).then(()=>{l(t)})}const d=new WeakMap,f="FinalizationRegistry"in globalThis&&new FinalizationRegistry(t=>{const e=(d.get(t)||0)-1;d.set(t,e),0===e&&u(t)});function p(t,s,n=[],o=function(){}){let a=!1;const r=new Proxy(o,{get(e,o){if(c(a),o===i)return()=>{!function(t){f&&f.unregister(t)}(r),u(t),s.clear(),a=!0};if("then"===o){if(0===n.length)return{then:()=>r};const e=w(t,s,{type:"GET",path:n.map(t=>t.toString())}).then(y);return e.then.bind(e)}return p(t,s,[...n,o])},set(e,i,o){c(a);const[r,h]=v(o);return w(t,s,{type:"SET",path:[...n,i].map(t=>t.toString()),value:r},h).then(y)},apply(i,o,r){c(a);const h=n[n.length-1];if(h===e)return w(t,s,{type:"ENDPOINT"}).then(y);if("bind"===h)return p(t,s,n.slice(0,-1));const[l,u]=g(r);return w(t,s,{type:"APPLY",path:n.map(t=>t.toString()),argumentList:l},u).then(y)},construct(e,i){c(a);const[o,r]=g(i);return w(t,s,{type:"CONSTRUCT",path:n.map(t=>t.toString()),argumentList:o},r).then(y)}});return function(t,e){const i=(d.get(e)||0)+1;d.set(e,i),f&&f.register(t,e,t)}(r,t),r}function g(t){const e=t.map(v);return[e.map(t=>t[0]),(i=e.map(t=>t[1]),Array.prototype.concat.apply([],i))];var i}const m=new WeakMap;function v(t){for(const[e,i]of r)if(i.canHandle(t)){const[s,n]=i.serialize(t);return[{type:"HANDLER",name:e,value:s},n]}return[{type:"RAW",value:t},m.get(t)||[]]}function y(t){switch(t.type){case"HANDLER":return r.get(t.name).deserialize(t.value);case"RAW":return t.value}}function w(t,e,i,s){return new Promise(n=>{const o=new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-");e.set(o,n),t.start&&t.start(),t.postMessage(Object.assign({id:o},i),s)})}function S(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var z,T,L={exports:{}},b=L.exports={};function x(){throw new Error("setTimeout has not been defined")}function k(){throw new Error("clearTimeout has not been defined")}function A(t){if(z===setTimeout)return setTimeout(t,0);if((z===x||!z)&&setTimeout)return z=setTimeout,setTimeout(t,0);try{return z(t,0)}catch(e){try{return z.call(null,t,0)}catch(e){return z.call(this,t,0)}}}!function(){try{z="function"==typeof setTimeout?setTimeout:x}catch(t){z=x}try{T="function"==typeof clearTimeout?clearTimeout:k}catch(t){T=k}}();var F,_=[],E=!1,O=-1;function M(){E&&F&&(E=!1,F.length?_=F.concat(_):O=-1,_.length&&D())}function D(){if(!E){var t=A(M);E=!0;for(var e=_.length;e;){for(F=_,_=[];++O<e;)F&&F[O].run();O=-1,e=_.length}F=null,E=!1,function(t){if(T===clearTimeout)return clearTimeout(t);if((T===k||!T)&&clearTimeout)return T=clearTimeout,clearTimeout(t);try{return T(t)}catch(e){try{return T.call(null,t)}catch(e){return T.call(this,t)}}}(t)}}function C(t,e){this.fun=t,this.array=e}function R(){}b.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];_.push(new C(t,e)),1!==_.length||E||A(D)},C.prototype.run=function(){this.fun.apply(null,this.array)},b.title="browser",b.browser=!0,b.env={},b.argv=[],b.version="",b.versions={},b.on=R,b.addListener=R,b.once=R,b.off=R,b.removeListener=R,b.removeAllListeners=R,b.emit=R,b.prependListener=R,b.prependOnceListener=R,b.listeners=function(t){return[]},b.binding=function(t){throw new Error("process.binding is not supported")},b.cwd=function(){return"/"},b.chdir=function(t){throw new Error("process.chdir is not supported")},b.umask=function(){return 0};const I=S(L.exports),W="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,j=new Set,B="object"==typeof I&&I?I:{},G=(t,e,i,s)=>{"function"==typeof B.emitWarning?B.emitWarning(t,e,i,s):console.error(`[${i}] ${e}: ${t}`)};let U=globalThis.AbortController,N=globalThis.AbortSignal;if(void 0===U){N=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(t,e){this._onabort.push(e)}},U=class{constructor(){e()}signal=new N;abort(t){if(!this.signal.aborted){this.signal.reason=t,this.signal.aborted=!0;for(const e of this.signal._onabort)e(t);this.signal.onabort?.(t)}}};let t="1"!==B.env?.LRU_CACHE_IGNORE_AC_WARNING;const e=()=>{t&&(t=!1,G("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}const P=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),H=t=>P(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?q:null:null;class q extends Array{constructor(t){super(t),this.fill(0)}}class V{heap;length;static#t=!1;static create(t){const e=H(t);if(!e)return[];V.#t=!0;const i=new V(t,e);return V.#t=!1,i}constructor(t,e){if(!V.#t)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new e(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}}class ${#e;#i;#s;#n;#o;#a;#r;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#h;#l;#c;#u;#d;#f;#p;#g;#m;#v;#y;#w;#S;#z;#T;#L;#b;#x;static unsafeExposeInternals(t){return{starts:t.#S,ttls:t.#z,sizes:t.#w,keyMap:t.#c,keyList:t.#u,valList:t.#d,next:t.#f,prev:t.#p,get head(){return t.#g},get tail(){return t.#m},free:t.#v,isBackgroundFetch:e=>t.#k(e),backgroundFetch:(e,i,s,n)=>t.#A(e,i,s,n),moveToTail:e=>t.#F(e),indexes:e=>t.#_(e),rindexes:e=>t.#E(e),isStale:e=>t.#O(e)}}get max(){return this.#e}get maxSize(){return this.#i}get calculatedSize(){return this.#l}get size(){return this.#h}get fetchMethod(){return this.#a}get memoMethod(){return this.#r}get dispose(){return this.#s}get onInsert(){return this.#n}get disposeAfter(){return this.#o}constructor(t){const{max:e=0,ttl:i,ttlResolution:s=1,ttlAutopurge:n,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:r,dispose:h,onInsert:l,disposeAfter:c,noDisposeOnSet:u,noUpdateTTL:d,maxSize:f=0,maxEntrySize:p=0,sizeCalculation:g,fetchMethod:m,memoMethod:v,noDeleteOnFetchRejection:y,noDeleteOnStaleGet:w,allowStaleOnFetchRejection:S,allowStaleOnFetchAbort:z,ignoreFetchAbort:T}=t;if(0!==e&&!P(e))throw new TypeError("max option must be a nonnegative integer");const L=e?H(e):Array;if(!L)throw new Error("invalid max value: "+e);if(this.#e=e,this.#i=f,this.maxEntrySize=p||this.#i,this.sizeCalculation=g,this.sizeCalculation){if(!this.#i&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(void 0!==v&&"function"!=typeof v)throw new TypeError("memoMethod must be a function if defined");if(this.#r=v,void 0!==m&&"function"!=typeof m)throw new TypeError("fetchMethod must be a function if specified");if(this.#a=m,this.#L=!!m,this.#c=new Map,this.#u=new Array(e).fill(void 0),this.#d=new Array(e).fill(void 0),this.#f=new L(e),this.#p=new L(e),this.#g=0,this.#m=0,this.#v=V.create(e),this.#h=0,this.#l=0,"function"==typeof h&&(this.#s=h),"function"==typeof l&&(this.#n=l),"function"==typeof c?(this.#o=c,this.#y=[]):(this.#o=void 0,this.#y=void 0),this.#T=!!this.#s,this.#x=!!this.#n,this.#b=!!this.#o,this.noDisposeOnSet=!!u,this.noUpdateTTL=!!d,this.noDeleteOnFetchRejection=!!y,this.allowStaleOnFetchRejection=!!S,this.allowStaleOnFetchAbort=!!z,this.ignoreFetchAbort=!!T,0!==this.maxEntrySize){if(0!==this.#i&&!P(this.#i))throw new TypeError("maxSize must be a positive integer if specified");if(!P(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#M()}if(this.allowStale=!!r,this.noDeleteOnStaleGet=!!w,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=P(s)||0===s?s:1,this.ttlAutopurge=!!n,this.ttl=i||0,this.ttl){if(!P(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#D()}if(0===this.#e&&0===this.ttl&&0===this.#i)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#i){const t="LRU_CACHE_UNBOUNDED";if((t=>!j.has(t))(t)){j.add(t);G("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",t,$)}}}getRemainingTTL(t){return this.#c.has(t)?1/0:0}#D(){const t=new q(this.#e),e=new q(this.#e);this.#z=t,this.#S=e,this.#C=(i,s,n=W.now())=>{if(e[i]=0!==s?n:0,t[i]=s,0!==s&&this.ttlAutopurge){const t=setTimeout(()=>{this.#O(i)&&this.#R(this.#u[i],"expire")},s+1);t.unref&&t.unref()}},this.#I=i=>{e[i]=0!==t[i]?W.now():0},this.#W=(n,o)=>{if(t[o]){const a=t[o],r=e[o];if(!a||!r)return;n.ttl=a,n.start=r,n.now=i||s();const h=n.now-r;n.remainingTTL=a-h}};let i=0;const s=()=>{const t=W.now();if(this.ttlResolution>0){i=t;const e=setTimeout(()=>i=0,this.ttlResolution);e.unref&&e.unref()}return t};this.getRemainingTTL=n=>{const o=this.#c.get(n);if(void 0===o)return 0;const a=t[o],r=e[o];if(!a||!r)return 1/0;return a-((i||s())-r)},this.#O=n=>{const o=e[n],a=t[n];return!!a&&!!o&&(i||s())-o>a}}#I=()=>{};#W=()=>{};#C=()=>{};#O=()=>!1;#M(){const t=new q(this.#e);this.#l=0,this.#w=t,this.#j=e=>{this.#l-=t[e],t[e]=0},this.#B=(t,e,i,s)=>{if(this.#k(e))return 0;if(!P(i)){if(!s)throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");if("function"!=typeof s)throw new TypeError("sizeCalculation must be a function");if(i=s(e,t),!P(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return i},this.#G=(e,i,s)=>{if(t[e]=i,this.#i){const i=this.#i-t[e];for(;this.#l>i;)this.#U(!0)}this.#l+=t[e],s&&(s.entrySize=i,s.totalCalculatedSize=this.#l)}}#j=t=>{};#G=(t,e,i)=>{};#B=(t,e,i,s)=>{if(i||s)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#_({allowStale:t=this.allowStale}={}){if(this.#h)for(let e=this.#m;this.#N(e)&&(!t&&this.#O(e)||(yield e),e!==this.#g);)e=this.#p[e]}*#E({allowStale:t=this.allowStale}={}){if(this.#h)for(let e=this.#g;this.#N(e)&&(!t&&this.#O(e)||(yield e),e!==this.#m);)e=this.#f[e]}#N(t){return void 0!==t&&this.#c.get(this.#u[t])===t}*entries(){for(const t of this.#_())void 0===this.#d[t]||void 0===this.#u[t]||this.#k(this.#d[t])||(yield[this.#u[t],this.#d[t]])}*rentries(){for(const t of this.#E())void 0===this.#d[t]||void 0===this.#u[t]||this.#k(this.#d[t])||(yield[this.#u[t],this.#d[t]])}*keys(){for(const t of this.#_()){const e=this.#u[t];void 0===e||this.#k(this.#d[t])||(yield e)}}*rkeys(){for(const t of this.#E()){const e=this.#u[t];void 0===e||this.#k(this.#d[t])||(yield e)}}*values(){for(const t of this.#_()){void 0===this.#d[t]||this.#k(this.#d[t])||(yield this.#d[t])}}*rvalues(){for(const t of this.#E()){void 0===this.#d[t]||this.#k(this.#d[t])||(yield this.#d[t])}}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,e={}){for(const i of this.#_()){const s=this.#d[i],n=this.#k(s)?s.__staleWhileFetching:s;if(void 0!==n&&t(n,this.#u[i],this))return this.get(this.#u[i],e)}}forEach(t,e=this){for(const i of this.#_()){const s=this.#d[i],n=this.#k(s)?s.__staleWhileFetching:s;void 0!==n&&t.call(e,n,this.#u[i],this)}}rforEach(t,e=this){for(const i of this.#E()){const s=this.#d[i],n=this.#k(s)?s.__staleWhileFetching:s;void 0!==n&&t.call(e,n,this.#u[i],this)}}purgeStale(){let t=!1;for(const e of this.#E({allowStale:!0}))this.#O(e)&&(this.#R(this.#u[e],"expire"),t=!0);return t}info(t){const e=this.#c.get(t);if(void 0===e)return;const i=this.#d[e],s=this.#k(i)?i.__staleWhileFetching:i;if(void 0===s)return;const n={value:s};if(this.#z&&this.#S){const t=this.#z[e],i=this.#S[e];if(t&&i){const e=t-(W.now()-i);n.ttl=e,n.start=Date.now()}}return this.#w&&(n.size=this.#w[e]),n}dump(){const t=[];for(const e of this.#_({allowStale:!0})){const i=this.#u[e],s=this.#d[e],n=this.#k(s)?s.__staleWhileFetching:s;if(void 0===n||void 0===i)continue;const o={value:n};if(this.#z&&this.#S){o.ttl=this.#z[e];const t=W.now()-this.#S[e];o.start=Math.floor(Date.now()-t)}this.#w&&(o.size=this.#w[e]),t.unshift([i,o])}return t}load(t){this.clear();for(const[e,i]of t){if(i.start){const t=Date.now()-i.start;i.start=W.now()-t}this.set(e,i.value,i)}}set(t,e,i={}){if(void 0===e)return this.delete(t),this;const{ttl:s=this.ttl,start:n,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:r}=i;let{noUpdateTTL:h=this.noUpdateTTL}=i;const l=this.#B(t,e,i.size||0,a);if(this.maxEntrySize&&l>this.maxEntrySize)return r&&(r.set="miss",r.maxEntrySizeExceeded=!0),this.#R(t,"set"),this;let c=0===this.#h?void 0:this.#c.get(t);if(void 0===c)c=0===this.#h?this.#m:0!==this.#v.length?this.#v.pop():this.#h===this.#e?this.#U(!1):this.#h,this.#u[c]=t,this.#d[c]=e,this.#c.set(t,c),this.#f[this.#m]=c,this.#p[c]=this.#m,this.#m=c,this.#h++,this.#G(c,l,r),r&&(r.set="add"),h=!1,this.#x&&this.#n?.(e,t,"add");else{this.#F(c);const i=this.#d[c];if(e!==i){if(this.#L&&this.#k(i)){i.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:e}=i;void 0===e||o||(this.#T&&this.#s?.(e,t,"set"),this.#b&&this.#y?.push([e,t,"set"]))}else o||(this.#T&&this.#s?.(i,t,"set"),this.#b&&this.#y?.push([i,t,"set"]));if(this.#j(c),this.#G(c,l,r),this.#d[c]=e,r){r.set="replace";const t=i&&this.#k(i)?i.__staleWhileFetching:i;void 0!==t&&(r.oldValue=t)}}else r&&(r.set="update");this.#x&&this.onInsert?.(e,t,e===i?"update":"replace")}if(0===s||this.#z||this.#D(),this.#z&&(h||this.#C(c,s,n),r&&this.#W(r,c)),!o&&this.#b&&this.#y){const t=this.#y;let e;for(;e=t?.shift();)this.#o?.(...e)}return this}pop(){try{for(;this.#h;){const t=this.#d[this.#g];if(this.#U(!0),this.#k(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(void 0!==t)return t}}finally{if(this.#b&&this.#y){const t=this.#y;let e;for(;e=t?.shift();)this.#o?.(...e)}}}#U(t){const e=this.#g,i=this.#u[e],s=this.#d[e];return this.#L&&this.#k(s)?s.__abortController.abort(new Error("evicted")):(this.#T||this.#b)&&(this.#T&&this.#s?.(s,i,"evict"),this.#b&&this.#y?.push([s,i,"evict"])),this.#j(e),t&&(this.#u[e]=void 0,this.#d[e]=void 0,this.#v.push(e)),1===this.#h?(this.#g=this.#m=0,this.#v.length=0):this.#g=this.#f[e],this.#c.delete(i),this.#h--,e}has(t,e={}){const{updateAgeOnHas:i=this.updateAgeOnHas,status:s}=e,n=this.#c.get(t);if(void 0!==n){const t=this.#d[n];if(this.#k(t)&&void 0===t.__staleWhileFetching)return!1;if(!this.#O(n))return i&&this.#I(n),s&&(s.has="hit",this.#W(s,n)),!0;s&&(s.has="stale",this.#W(s,n))}else s&&(s.has="miss");return!1}peek(t,e={}){const{allowStale:i=this.allowStale}=e,s=this.#c.get(t);if(void 0===s||!i&&this.#O(s))return;const n=this.#d[s];return this.#k(n)?n.__staleWhileFetching:n}#A(t,e,i,s){const n=void 0===e?void 0:this.#d[e];if(this.#k(n))return n;const o=new U,{signal:a}=i;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});const r={signal:o.signal,options:i,context:s},h=(s,n=!1)=>{const{aborted:a}=o.signal,h=i.ignoreFetchAbort&&void 0!==s;if(i.status&&(a&&!n?(i.status.fetchAborted=!0,i.status.fetchError=o.signal.reason,h&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),a&&!h&&!n)return l(o.signal.reason);const u=c;return this.#d[e]===c&&(void 0===s?u.__staleWhileFetching?this.#d[e]=u.__staleWhileFetching:this.#R(t,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.set(t,s,r.options))),s},l=s=>{const{aborted:n}=o.signal,a=n&&i.allowStaleOnFetchAbort,r=a||i.allowStaleOnFetchRejection,h=r||i.noDeleteOnFetchRejection,l=c;if(this.#d[e]===c){!h||void 0===l.__staleWhileFetching?this.#R(t,"fetch"):a||(this.#d[e]=l.__staleWhileFetching)}if(r)return i.status&&void 0!==l.__staleWhileFetching&&(i.status.returnedStale=!0),l.__staleWhileFetching;if(l.__returned===l)throw s};i.status&&(i.status.fetchDispatched=!0);const c=new Promise((e,s)=>{const a=this.#a?.(t,n,r);a&&a instanceof Promise&&a.then(t=>e(void 0===t?void 0:t),s),o.signal.addEventListener("abort",()=>{i.ignoreFetchAbort&&!i.allowStaleOnFetchAbort||(e(void 0),i.allowStaleOnFetchAbort&&(e=t=>h(t,!0)))})}).then(h,t=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=t),l(t))),u=Object.assign(c,{__abortController:o,__staleWhileFetching:n,__returned:void 0});return void 0===e?(this.set(t,u,{...r.options,status:void 0}),e=this.#c.get(t)):this.#d[e]=u,u}#k(t){if(!this.#L)return!1;const e=t;return!!e&&e instanceof Promise&&e.hasOwnProperty("__staleWhileFetching")&&e.__abortController instanceof U}async fetch(t,e={}){const{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:r=0,sizeCalculation:h=this.sizeCalculation,noUpdateTTL:l=this.noUpdateTTL,noDeleteOnFetchRejection:c=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:u=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:f=this.allowStaleOnFetchAbort,context:p,forceRefresh:g=!1,status:m,signal:v}=e;if(!this.#L)return m&&(m.fetch="get"),this.get(t,{allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:n,status:m});const y={allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:n,ttl:o,noDisposeOnSet:a,size:r,sizeCalculation:h,noUpdateTTL:l,noDeleteOnFetchRejection:c,allowStaleOnFetchRejection:u,allowStaleOnFetchAbort:f,ignoreFetchAbort:d,status:m,signal:v};let w=this.#c.get(t);if(void 0===w){m&&(m.fetch="miss");const e=this.#A(t,w,y,p);return e.__returned=e}{const e=this.#d[w];if(this.#k(e)){const t=i&&void 0!==e.__staleWhileFetching;return m&&(m.fetch="inflight",t&&(m.returnedStale=!0)),t?e.__staleWhileFetching:e.__returned=e}const n=this.#O(w);if(!g&&!n)return m&&(m.fetch="hit"),this.#F(w),s&&this.#I(w),m&&this.#W(m,w),e;const o=this.#A(t,w,y,p),a=void 0!==o.__staleWhileFetching&&i;return m&&(m.fetch=n?"stale":"refresh",a&&n&&(m.returnedStale=!0)),a?o.__staleWhileFetching:o.__returned=o}}async forceFetch(t,e={}){const i=await this.fetch(t,e);if(void 0===i)throw new Error("fetch() returned undefined");return i}memo(t,e={}){const i=this.#r;if(!i)throw new Error("no memoMethod provided to constructor");const{context:s,forceRefresh:n,...o}=e,a=this.get(t,o);if(!n&&void 0!==a)return a;const r=i(t,a,{options:o,context:s});return this.set(t,r,o),r}get(t,e={}){const{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,status:o}=e,a=this.#c.get(t);if(void 0!==a){const e=this.#d[a],r=this.#k(e);return o&&this.#W(o,a),this.#O(a)?(o&&(o.get="stale"),r?(o&&i&&void 0!==e.__staleWhileFetching&&(o.returnedStale=!0),i?e.__staleWhileFetching:void 0):(n||this.#R(t,"expire"),o&&i&&(o.returnedStale=!0),i?e:void 0)):(o&&(o.get="hit"),r?e.__staleWhileFetching:(this.#F(a),s&&this.#I(a),e))}o&&(o.get="miss")}#P(t,e){this.#p[e]=t,this.#f[t]=e}#F(t){t!==this.#m&&(t===this.#g?this.#g=this.#f[t]:this.#P(this.#p[t],this.#f[t]),this.#P(this.#m,t),this.#m=t)}delete(t){return this.#R(t,"delete")}#R(t,e){let i=!1;if(0!==this.#h){const s=this.#c.get(t);if(void 0!==s)if(i=!0,1===this.#h)this.#H(e);else{this.#j(s);const i=this.#d[s];if(this.#k(i)?i.__abortController.abort(new Error("deleted")):(this.#T||this.#b)&&(this.#T&&this.#s?.(i,t,e),this.#b&&this.#y?.push([i,t,e])),this.#c.delete(t),this.#u[s]=void 0,this.#d[s]=void 0,s===this.#m)this.#m=this.#p[s];else if(s===this.#g)this.#g=this.#f[s];else{const t=this.#p[s];this.#f[t]=this.#f[s];const e=this.#f[s];this.#p[e]=this.#p[s]}this.#h--,this.#v.push(s)}}if(this.#b&&this.#y?.length){const t=this.#y;let e;for(;e=t?.shift();)this.#o?.(...e)}return i}clear(){return this.#H("delete")}#H(t){for(const e of this.#E({allowStale:!0})){const i=this.#d[e];if(this.#k(i))i.__abortController.abort(new Error("deleted"));else{const s=this.#u[e];this.#T&&this.#s?.(i,s,t),this.#b&&this.#y?.push([i,s,t])}}if(this.#c.clear(),this.#d.fill(void 0),this.#u.fill(void 0),this.#z&&this.#S&&(this.#z.fill(0),this.#S.fill(0)),this.#w&&this.#w.fill(0),this.#g=0,this.#m=0,this.#v.length=0,this.#l=0,this.#h=0,this.#b&&this.#y){const t=this.#y;let e;for(;e=t?.shift();)this.#o?.(...e)}}}class Y{static defaultOptions={max:1e3,maxAge:18e5};static cache=new $(this.defaultOptions);static createCache(t=this.defaultOptions){return new $(t)}static set(t,e,i=this.cache){let s=i;s||(s=this.cache),s.set(t,e)}static get(t,e=this.cache){let i=e;return i||(i=this.cache),i.get(t)}static remove(t,e=this.cache){let i=e;return i||(i=this.cache),i.del(t)}static has(t,e=this.cache){let i=e;return i||(i=this.cache),i.has(t)}static count(t=this.cache){let e=t;return e||(e=this.cache),e.size}static maxSize(t=this.cache){let e=t;return e||(e=this.cache),e.max}static peek(t,e=this.cache){let i=e;return i||(i=this.cache),i.peek(t)}static keys(t=this.cache){let e=t;return e||(e=this.cache),e.keys()}static clear(t=this.cache){let e=t;e||(e=this.cache),e.clear()}}const X=new Map;async function J(t,e=void 0){const i={max:1e3,maxAage:18e5};let s=i;e&&(s={...i,...e});const n=Y.createCache(s);return X.set(t,n),n}async function K(t=""){let e;return e=X.has(t)?X.get(t):await J(t),e}h(Object.freeze({__proto__:null,clear:async function(t=""){const e=await K(t);return e&&Y.clear(e),!1},count:async function(t=""){const e=await K(t);return e?Y.count(e):0},createCache:J,get:async function(t,e=""){const i=await K(e);if(i){const e=Y.get(t,i);return console.log("666000",t,e),e}},getCacheObject:K,has:async function(t,e=""){const i=await K(e);return!!i&&Y.has(t,i)},keys:async function(t=""){const e=await K(t);if(e)return Y.keys(e)},maxSize:async function(t=""){const e=await K(t);return e?Y.maxSize(e):0},peek:async function(t,e=""){const i=await K(e);return!!i&&Y.peek(t,i)},remove:async function(t,e=""){const i=await K(e);if(i)return Y.remove(t,i)},set:async function(t,e,i=""){const s=await K(i);return!!s&&(Y.set(t,e,s),!0)}}));
|