vue-stack-tabs 0.1.27 → 0.1.30
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 +2 -2
- package/dist/favicon.svg +9 -9
- package/dist/src/lib/hooks/useStackTab.d.ts +1 -1
- package/dist/src/lib/hooks/useTabpanel.d.ts +1 -1
- package/dist/vue-stack-tabs.es.js +1045 -1034
- package/dist/vue-stack-tabs.umd.js +3 -3
- package/package.json +1 -1
- package/src/lib/StackTabs.vue +12 -5
- package/src/lib/components/TabHeader/index.vue +1 -1
- package/src/lib/hooks/useTabRouter.ts +2 -2
- package/src/lib/hooks/useTabpanel.tsx +67 -26
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
(function(N,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router"],r):(N=typeof globalThis<"u"?globalThis:N||self,r(N["vue-stack-tabs"]={},N.Vue,N.vueRouter))})(this,function(N,r,
|
|
1
|
+
(function(N,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router"],r):(N=typeof globalThis<"u"?globalThis:N||self,r(N["vue-stack-tabs"]={},N.Vue,N.vueRouter))})(this,function(N,r,q){"use strict";var oo=Object.defineProperty;var so=(N,r,q)=>r in N?oo(N,r,{enumerable:!0,configurable:!0,writable:!0,value:q}):N[r]=q;var Xt=(N,r,q)=>(so(N,typeof r!="symbol"?r+"":r,q),q);const Yt=Object.freeze(Object.defineProperty({__proto__:null,default:{VueStackTab:{close:"close",closeLeft:"close left",closeRight:"close right",closeOthers:"close others",closeAll:"close all",reload:"reload",reloadAll:"reload all",maximum:"maximum",restore:"restore",undefined:"undefined",loading:"loading"}}},Symbol.toStringTag,{value:"Module"})),Jt=Object.freeze(Object.defineProperty({__proto__:null,default:{VueStackTab:{close:"关闭",closeLeft:"关闭左侧",closeRight:"关闭右侧",closeOthers:"关闭其他",closeAll:"关闭所有",reload:"刷新",reloadAll:"刷新所有",maximum:"最大化",restore:"还原",undefined:"未命名",loading:"加载中"}}},Symbol.toStringTag,{value:"Module"}));/*!
|
|
2
2
|
* vue-i18n-lite v1.0.2
|
|
3
3
|
* (c) 2021 Erik Pham
|
|
4
4
|
* @license MIT
|
|
5
|
-
*/const
|
|
6
|
-
caused by: ${D.fullStack(n)}`:t.stack}static info(t){Le(t);const n={},o=D.cause(t);return o&&Object.assign(n,D.info(o)),t._info&&Object.assign(n,t._info),n}cause(){return D.cause(this)}toString(){let t=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t=`${t}: ${this.message}`),t}}const tt="0123456789ABCDEFGHJKMNPQRSTVWXYZ",ae=32,nt=0xffffffffffff,fn=10,un=16,ce=Object.freeze({source:"ulid"});function dn(e){const t=e||hn(),n=t&&(t.crypto||t.msCrypto)||null;if(typeof(n==null?void 0:n.getRandomValues)=="function")return()=>{const o=new Uint8Array(1);return n.getRandomValues(o),o[0]/255};if(typeof(n==null?void 0:n.randomBytes)=="function")return()=>n.randomBytes(1).readUInt8()/255;throw new D({info:{code:"PRNG_DETECT",...ce}},"Failed to find a reliable PRNG")}function hn(){return mn()?self:typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:null}function pn(e,t){let n="";for(;e>0;e--)n=gn(t)+n;return n}function bn(e,t){if(isNaN(e))throw new D({info:{code:"ENC_TIME_NAN",...ce}},`Time must be a number: ${e}`);if(e>nt)throw new D({info:{code:"ENC_TIME_SIZE_EXCEED",...ce}},`Cannot encode a time larger than ${nt}: ${e}`);if(e<0)throw new D({info:{code:"ENC_TIME_NEG",...ce}},`Time must be positive: ${e}`);if(Number.isInteger(e)===!1)throw new D({info:{code:"ENC_TIME_TYPE",...ce}},`Time must be an integer: ${e}`);let n,o="";for(let s=t;s>0;s--)n=e%ae,o=tt.charAt(n)+o,e=(e-n)/ae;return o}function mn(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function gn(e){let t=Math.floor(e()*ae);return t===ae&&(t=ae-1),tt.charAt(t)}function rt(e,t){const n=t||dn(),o=isNaN(e)?Date.now():e;return bn(o,fn)+pn(un,n)}var ze={exports:{}};ze.exports,function(e){var t=function(){var n=String.fromCharCode,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",i={};function a(c,f){if(!i[c]){i[c]={};for(var p=0;p<c.length;p++)i[c][c.charAt(p)]=p}return i[c][f]}var u={compressToBase64:function(c){if(c==null)return"";var f=u._compress(c,6,function(p){return o.charAt(p)});switch(f.length%4){default:case 0:return f;case 1:return f+"===";case 2:return f+"==";case 3:return f+"="}},decompressFromBase64:function(c){return c==null?"":c==""?null:u._decompress(c.length,32,function(f){return a(o,c.charAt(f))})},compressToUTF16:function(c){return c==null?"":u._compress(c,15,function(f){return n(f+32)})+" "},decompressFromUTF16:function(c){return c==null?"":c==""?null:u._decompress(c.length,16384,function(f){return c.charCodeAt(f)-32})},compressToUint8Array:function(c){for(var f=u.compress(c),p=new Uint8Array(f.length*2),d=0,h=f.length;d<h;d++){var w=f.charCodeAt(d);p[d*2]=w>>>8,p[d*2+1]=w%256}return p},decompressFromUint8Array:function(c){if(c==null)return u.decompress(c);for(var f=new Array(c.length/2),p=0,d=f.length;p<d;p++)f[p]=c[p*2]*256+c[p*2+1];var h=[];return f.forEach(function(w){h.push(n(w))}),u.decompress(h.join(""))},compressToEncodedURIComponent:function(c){return c==null?"":u._compress(c,6,function(f){return s.charAt(f)})},decompressFromEncodedURIComponent:function(c){return c==null?"":c==""?null:(c=c.replace(/ /g,"+"),u._decompress(c.length,32,function(f){return a(s,c.charAt(f))}))},compress:function(c){return u._compress(c,16,function(f){return n(f)})},_compress:function(c,f,p){if(c==null)return"";var d,h,w={},E={},C="",A="",x="",T=2,v=3,k=2,S=[],l=0,b=0,g;for(g=0;g<c.length;g+=1)if(C=c.charAt(g),Object.prototype.hasOwnProperty.call(w,C)||(w[C]=v++,E[C]=!0),A=x+C,Object.prototype.hasOwnProperty.call(w,A))x=A;else{if(Object.prototype.hasOwnProperty.call(E,x)){if(x.charCodeAt(0)<256){for(d=0;d<k;d++)l=l<<1,b==f-1?(b=0,S.push(p(l)),l=0):b++;for(h=x.charCodeAt(0),d=0;d<8;d++)l=l<<1|h&1,b==f-1?(b=0,S.push(p(l)),l=0):b++,h=h>>1}else{for(h=1,d=0;d<k;d++)l=l<<1|h,b==f-1?(b=0,S.push(p(l)),l=0):b++,h=0;for(h=x.charCodeAt(0),d=0;d<16;d++)l=l<<1|h&1,b==f-1?(b=0,S.push(p(l)),l=0):b++,h=h>>1}T--,T==0&&(T=Math.pow(2,k),k++),delete E[x]}else for(h=w[x],d=0;d<k;d++)l=l<<1|h&1,b==f-1?(b=0,S.push(p(l)),l=0):b++,h=h>>1;T--,T==0&&(T=Math.pow(2,k),k++),w[A]=v++,x=String(C)}if(x!==""){if(Object.prototype.hasOwnProperty.call(E,x)){if(x.charCodeAt(0)<256){for(d=0;d<k;d++)l=l<<1,b==f-1?(b=0,S.push(p(l)),l=0):b++;for(h=x.charCodeAt(0),d=0;d<8;d++)l=l<<1|h&1,b==f-1?(b=0,S.push(p(l)),l=0):b++,h=h>>1}else{for(h=1,d=0;d<k;d++)l=l<<1|h,b==f-1?(b=0,S.push(p(l)),l=0):b++,h=0;for(h=x.charCodeAt(0),d=0;d<16;d++)l=l<<1|h&1,b==f-1?(b=0,S.push(p(l)),l=0):b++,h=h>>1}T--,T==0&&(T=Math.pow(2,k),k++),delete E[x]}else for(h=w[x],d=0;d<k;d++)l=l<<1|h&1,b==f-1?(b=0,S.push(p(l)),l=0):b++,h=h>>1;T--,T==0&&(T=Math.pow(2,k),k++)}for(h=2,d=0;d<k;d++)l=l<<1|h&1,b==f-1?(b=0,S.push(p(l)),l=0):b++,h=h>>1;for(;;)if(l=l<<1,b==f-1){S.push(p(l));break}else b++;return S.join("")},decompress:function(c){return c==null?"":c==""?null:u._decompress(c.length,32768,function(f){return c.charCodeAt(f)})},_decompress:function(c,f,p){var d=[],h=4,w=4,E=3,C="",A=[],x,T,v,k,S,l,b,g={val:p(0),position:f,index:1};for(x=0;x<3;x+=1)d[x]=x;for(v=0,S=Math.pow(2,2),l=1;l!=S;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=f,g.val=p(g.index++)),v|=(k>0?1:0)*l,l<<=1;switch(v){case 0:for(v=0,S=Math.pow(2,8),l=1;l!=S;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=f,g.val=p(g.index++)),v|=(k>0?1:0)*l,l<<=1;b=n(v);break;case 1:for(v=0,S=Math.pow(2,16),l=1;l!=S;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=f,g.val=p(g.index++)),v|=(k>0?1:0)*l,l<<=1;b=n(v);break;case 2:return""}for(d[3]=b,T=b,A.push(b);;){if(g.index>c)return"";for(v=0,S=Math.pow(2,E),l=1;l!=S;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=f,g.val=p(g.index++)),v|=(k>0?1:0)*l,l<<=1;switch(b=v){case 0:for(v=0,S=Math.pow(2,8),l=1;l!=S;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=f,g.val=p(g.index++)),v|=(k>0?1:0)*l,l<<=1;d[w++]=n(v),b=w-1,h--;break;case 1:for(v=0,S=Math.pow(2,16),l=1;l!=S;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=f,g.val=p(g.index++)),v|=(k>0?1:0)*l,l<<=1;d[w++]=n(v),b=w-1,h--;break;case 2:return A.join("")}if(h==0&&(h=Math.pow(2,E),E++),d[b])C=d[b];else if(b===w)C=T+T.charAt(0);else return null;A.push(C),d[w++]=T+C.charAt(0),h--,T=C,h==0&&(h=Math.pow(2,E),E++)}}};return u}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})}(ze);var ot=ze.exports;const yn=new TextEncoder,kn=new TextDecoder("utf-8",{ignoreBOM:!0}),st={encode:e=>yn.encode(e),decode:e=>kn.decode(e)},it=(()=>{const t=[..."0123456789abcdef"],n=new Array(256);for(let o=0;o<256;o++)n[o]=`${t[o>>>4&15]}${t[o&15]}`;return n})(),wn=(()=>{const e={};for(let t=0;t<256;t++){const n=it[t],o=n[0],s=o.toUpperCase(),i=n[1],a=i.toUpperCase();e[n]=t,e[`${o}${a}`]=t,e[`${s}${i}`]=t,e[`${s}${a}`]=t}return e})(),$e={encode:e=>{let t="";for(let n=0,o=e.length;n<o;n++)t+=it[e[n]];return t},encodeStr:e=>$e.encode(st.encode(e)),decode:e=>{const t=e.length/2,n=new Uint8Array(t);for(let o=0;o<t;o++)n[o]=wn[e.slice(o*2,o*2+2)];return n},decodeStr:e=>st.decode($e.decode(e)),is:e=>!(e.length%2||!/^[a-fA-F0-9]*$/.test(e))};function le(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function _n(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}function at(e,...t){if(!_n(e))throw new Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function Re(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function ct(e,t){at(e);const n=t.outputLen;if(e.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}const we=BigInt(2**32-1),lt=BigInt(32);function ft(e,t=!1){return t?{h:Number(e&we),l:Number(e>>lt&we)}:{h:Number(e>>lt&we)|0,l:Number(e&we)|0}}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Tn=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),_e=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));function vn(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}const Te=(e,t)=>e<<32-t|e>>>t;if(!(new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68))throw new Error("Non little-endian hardware is not supported");function xn(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function Ve(e){if(typeof e=="string"&&(e=xn(e)),!vn(e))throw new Error(`expected Uint8Array, got ${typeof e}`);return e}class Sn{clone(){return this._cloneInto()}}function En(e){const t=(o,s)=>e(s).update(Ve(o)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=o=>e(o),t}class On extends Sn{constructor(t,n,o={},s,i,a){if(super(),this.blockLen=t,this.outputLen=n,this.length=0,this.pos=0,this.finished=!1,this.destroyed=!1,le(t),le(n),le(s),n<0||n>s)throw new Error("outputLen bigger than keyLen");if(o.key!==void 0&&(o.key.length<1||o.key.length>s))throw new Error(`key must be up 1..${s} byte long or undefined`);if(o.salt!==void 0&&o.salt.length!==i)throw new Error(`salt must be ${i} byte long or undefined`);if(o.personalization!==void 0&&o.personalization.length!==a)throw new Error(`personalization must be ${a} byte long or undefined`);this.buffer32=_e(this.buffer=new Uint8Array(t))}update(t){Re(this);const{blockLen:n,buffer:o,buffer32:s}=this;t=Ve(t);const i=t.length,a=t.byteOffset,u=t.buffer;for(let c=0;c<i;){this.pos===n&&(this.compress(s,0,!1),this.pos=0);const f=Math.min(n-this.pos,i-c),p=a+c;if(f===n&&!(p%4)&&c+f<i){const d=new Uint32Array(u,p,Math.floor((i-c)/4));for(let h=0;c+n<i;h+=s.length,c+=n)this.length+=n,this.compress(d,h,!1);continue}o.set(t.subarray(c,c+f),this.pos),this.pos+=f,this.length+=f,c+=f}return this}digestInto(t){Re(this),ct(t,this);const{pos:n,buffer32:o}=this;this.finished=!0,this.buffer.subarray(n).fill(0),this.compress(o,0,!0);const s=_e(t);this.get().forEach((i,a)=>s[a]=i)}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const o=t.slice(0,n);return this.destroy(),o}_cloneInto(t){const{buffer:n,length:o,finished:s,destroyed:i,outputLen:a,pos:u}=this;return t||(t=new this.constructor({dkLen:a})),t.set(...this.get()),t.length=o,t.finished=s,t.destroyed=i,t.outputLen=a,t.buffer.set(n),t.pos=u,t}}const H=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);function J(e,t,n,o,s){return e=e+t+s|0,o=Te(o^e,16),n=n+o|0,t=Te(t^n,12),{a:e,b:t,c:n,d:o}}function K(e,t,n,o,s){return e=e+t+s|0,o=Te(o^e,8),n=n+o|0,t=Te(t^n,7),{a:e,b:t,c:n,d:o}}function ut(e,t,n,o,s,i,a,u,c,f,p,d,h,w,E,C,A,x,T,v){let k=0;for(let S=0;S<o;S++)({a:s,b:c,c:h,d:A}=J(s,c,h,A,n[t+e[k++]])),{a:s,b:c,c:h,d:A}=K(s,c,h,A,n[t+e[k++]]),{a:i,b:f,c:w,d:x}=J(i,f,w,x,n[t+e[k++]]),{a:i,b:f,c:w,d:x}=K(i,f,w,x,n[t+e[k++]]),{a,b:p,c:E,d:T}=J(a,p,E,T,n[t+e[k++]]),{a,b:p,c:E,d:T}=K(a,p,E,T,n[t+e[k++]]),{a:u,b:d,c:C,d:v}=J(u,d,C,v,n[t+e[k++]]),{a:u,b:d,c:C,d:v}=K(u,d,C,v,n[t+e[k++]]),{a:s,b:f,c:E,d:v}=J(s,f,E,v,n[t+e[k++]]),{a:s,b:f,c:E,d:v}=K(s,f,E,v,n[t+e[k++]]),{a:i,b:p,c:C,d:A}=J(i,p,C,A,n[t+e[k++]]),{a:i,b:p,c:C,d:A}=K(i,p,C,A,n[t+e[k++]]),{a,b:d,c:h,d:x}=J(a,d,h,x,n[t+e[k++]]),{a,b:d,c:h,d:x}=K(a,d,h,x,n[t+e[k++]]),{a:u,b:c,c:w,d:T}=J(u,c,w,T,n[t+e[k++]]),{a:u,b:c,c:w,d:T}=K(u,c,w,T,n[t+e[k++]]);return{v0:s,v1:i,v2:a,v3:u,v4:c,v5:f,v6:p,v7:d,v8:h,v9:w,v10:E,v11:C,v12:A,v13:x,v14:T,v15:v}}const dt=(()=>{const e=Array.from({length:16},(o,s)=>s),t=o=>[2,6,3,10,7,0,4,13,1,11,12,5,9,14,15,8].map(s=>o[s]),n=[];for(let o=0,s=e;o<7;o++,s=t(s))n.push(...s);return Uint8Array.from(n)})();class Pe extends On{constructor(t={},n=0){if(super(64,t.dkLen===void 0?32:t.dkLen,{},Number.MAX_SAFE_INTEGER,0,0),this.flags=0,this.chunkPos=0,this.chunksDone=0,this.stack=[],this.posOut=0,this.bufferOut32=new Uint32Array(16),this.chunkOut=0,this.enableXOF=!0,this.outputLen=t.dkLen===void 0?32:t.dkLen,le(this.outputLen),t.key!==void 0&&t.context!==void 0)throw new Error("Blake3: only key or context can be specified at same time");if(t.key!==void 0){const o=Ve(t.key).slice();if(o.length!==32)throw new Error("Blake3: key should be 32 byte");this.IV=_e(o),this.flags=n|16}else if(t.context!==void 0){const o=new Pe({dkLen:32},32).update(t.context).digest();this.IV=_e(o),this.flags=n|64}else this.IV=H.slice(),this.flags=n;this.state=this.IV.slice(),this.bufferOut=Tn(this.bufferOut32)}get(){return[]}set(){}b2Compress(t,n,o,s=0){const{state:i,pos:a}=this,{h:u,l:c}=ft(BigInt(t),!0),{v0:f,v1:p,v2:d,v3:h,v4:w,v5:E,v6:C,v7:A,v8:x,v9:T,v10:v,v11:k,v12:S,v13:l,v14:b,v15:g}=ut(dt,s,o,7,i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],H[0],H[1],H[2],H[3],u,c,a,n);i[0]=f^x,i[1]=p^T,i[2]=d^v,i[3]=h^k,i[4]=w^S,i[5]=E^l,i[6]=C^b,i[7]=A^g}compress(t,n=0,o=!1){let s=this.flags;if(this.chunkPos||(s|=1),(this.chunkPos===15||o)&&(s|=2),o||(this.pos=this.blockLen),this.b2Compress(this.chunksDone,s,t,n),this.chunkPos+=1,this.chunkPos===16||o){let i=this.state;this.state=this.IV.slice();for(let a,u=this.chunksDone+1;(o||!(u&1))&&(a=this.stack.pop());u>>=1)this.buffer32.set(a,0),this.buffer32.set(i,8),this.pos=this.blockLen,this.b2Compress(0,this.flags|4,this.buffer32,0),i=this.state,this.state=this.IV.slice();this.chunksDone++,this.chunkPos=0,this.stack.push(i)}this.pos=0}_cloneInto(t){t=super._cloneInto(t);const{IV:n,flags:o,state:s,chunkPos:i,posOut:a,chunkOut:u,stack:c,chunksDone:f}=this;return t.state.set(s.slice()),t.stack=c.map(p=>Uint32Array.from(p)),t.IV.set(n),t.flags=o,t.chunkPos=i,t.chunksDone=f,t.posOut=a,t.chunkOut=u,t.enableXOF=this.enableXOF,t.bufferOut32.set(this.bufferOut32),t}destroy(){this.destroyed=!0,this.state.fill(0),this.buffer32.fill(0),this.IV.fill(0),this.bufferOut32.fill(0);for(let t of this.stack)t.fill(0)}b2CompressOut(){const{state:t,pos:n,flags:o,buffer32:s,bufferOut32:i}=this,{h:a,l:u}=ft(BigInt(this.chunkOut++)),{v0:c,v1:f,v2:p,v3:d,v4:h,v5:w,v6:E,v7:C,v8:A,v9:x,v10:T,v11:v,v12:k,v13:S,v14:l,v15:b}=ut(dt,0,s,7,t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],H[0],H[1],H[2],H[3],u,a,n,o);i[0]=c^A,i[1]=f^x,i[2]=p^T,i[3]=d^v,i[4]=h^k,i[5]=w^S,i[6]=E^l,i[7]=C^b,i[8]=t[0]^A,i[9]=t[1]^x,i[10]=t[2]^T,i[11]=t[3]^v,i[12]=t[4]^k,i[13]=t[5]^S,i[14]=t[6]^l,i[15]=t[7]^b,this.posOut=0}finish(){if(this.finished)return;this.finished=!0,this.buffer.fill(0,this.pos);let t=this.flags|8;this.stack.length?(t|=4,this.compress(this.buffer32,0,!0),this.chunksDone=0,this.pos=this.blockLen):t|=(this.chunkPos?0:1)|2,this.flags=t,this.b2CompressOut()}writeInto(t){Re(this,!1),at(t),this.finish();const{blockLen:n,bufferOut:o}=this;for(let s=0,i=t.length;s<i;){this.posOut>=n&&this.b2CompressOut();const a=Math.min(n-this.posOut,i-s);t.set(o.subarray(this.posOut,this.posOut+a),s),this.posOut+=a,s+=a}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible after digest call");return this.writeInto(t)}xof(t){return le(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(ct(t,this),this.finished)throw new Error("digest() was already called");return this.enableXOF=!1,this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}}const Bn=En(e=>new Pe(e)),ht=e=>{const t=`${e.id}|${e.title}|${e.iframe?"Y":"N"}|${e.closable?"Y":"N"}|${e.refreshable?"Y":"N"}`;return ot.compressToEncodedURIComponent(t)},An=e=>{const n=ot.decompressFromEncodedURIComponent(e).split("|");return{id:n[0],title:n[1],iframe:n[2]==="Y",closable:n[3]==="Y",refreshable:n[4]==="Y"}},pt=(e,t,n)=>{const o=[];for(const i in n)i.startsWith("__")||o.push({key:i,value:n[i]});o.sort((i,a)=>{let u=0;return i.key>a.key?u=1:i.key<a.key&&(u=-1),u});const s=Bn(`${e}|${t}|${JSON.stringify(o)}`);return $e.encode(s)};function je(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function De(e,t,n=".",o){if(!je(t))return De(e,{},n,o);const s=Object.assign({},t);for(const i in e){if(i==="__proto__"||i==="constructor")continue;const a=e[i];a!=null&&(o&&o(s,i,a,n)||(Array.isArray(a)&&Array.isArray(s[i])?s[i]=[...a,...s[i]]:je(a)&&je(s[i])?s[i]=De(a,s[i],(n?`${n}.`:"")+i.toString(),o):s[i]=a))}return s}function Cn(e){return(...t)=>t.reduce((n,o)=>De(n,o,"",e),{})}const Z=Cn(),Ue=e=>{const t=e.split("?");if(t.length<=1)return{path:t[0],query:{}};{const n=t[1].split("&"),o={};for(const s of n){const i=s.split("=");i[1]!==null&&i[1]!==void 0&&i[1]!==""&&(o[i[0]]=i[1])}return{path:t[0],query:o}}};function In(e){return{all:e=e||new Map,on:function(t,n){var o=e.get(t);o?o.push(n):e.set(t,[n])},off:function(t,n){var o=e.get(t);o&&(n?o.splice(o.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var o=e.get(t);o&&o.slice().map(function(s){s(n)}),(o=e.get("*"))&&o.slice().map(function(s){s(t,n)})}}}const Mn=In(),Ln={install(e){e.provide("tabEmitter",Mn)}},fe=()=>r.inject("tabEmitter");var P=(e=>(e.PAGE_LOADING="PAGE_LOADING",e.TAB_ACTIVE="TAB_ACTIVE",e))(P||{});const Nn={key:0,class:"stack-tab-loading-mask"},zn=[r.createElementVNode("div",{class:"stack-tab-loading--spin turn"},null,-1)],$n=r.defineComponent({__name:"PageLoading",props:{tId:{}},setup(e){const t=e,n=fe(),o=r.ref(!1);return n.on(P.PAGE_LOADING,({tId:s,value:i})=>{s===t.tId&&(o.value=i)}),(s,i)=>o.value?(r.openBlock(),r.createElementBlock("div",Nn,zn)):r.createCommentVNode("",!0)}}),M=r.ref([]),ve=[],z=r.ref([]),Q=new Map,ue=new Set,xe=r.ref(!0),bt="stacktab-active-tab",te=new Map;let mt=!1,Se=0,gt=!1;const de=()=>{const e=F.useRouter(),t=fe(),n=()=>M.value.length,o=_=>{ve.splice(0),z.value.splice(0),ue.clear(),Q.clear();for(const O of _){const y=Z(O,{id:rt()}),I=ht(y),$=Ue(y.path),V=Z(y,{closable:!0,refreshable:!0,iframe:!1}),ie=pt(y.id,$.path,$.query),X={id:ie,tabId:y.id,path:$.path,query:Z($.query,{__tab:I})},ge=new ke;ge.push(X);const Gt={id:y.id,title:V.title,closable:V.closable,refreshable:V.refreshable,iframe:V.iframe,active:!1,pages:ge};ve.push(Gt),M.value.push(Gt),z.value.push(ie)}const m=window.sessionStorage.getItem(bt);if(m!=null){const O=JSON.parse(m,(I,$)=>I==="pages"?new ke($):$);let y=!1;for(const I of M.value)if(I.id===O.id){y=!0;break}y||M.value.push(O)}mt=!0},s=_=>{for(const m of M.value)if(m.id===_)return!0;return!1},i=()=>Se<=0||Se>0&&Se>M.value.length,a=_=>new Promise(m=>{M.value.push(_),m(!0)}),u=_=>{for(const m of M.value)if(m.id===_)return m;return null},c=(_,m)=>{let O;const y=An(_.query.__tab),I=pt(y.id,_.path,_.query.valueOf()),$=_.query.__src;let V=null;for(const X of r.unref(M))X.active=!1,X.id===y.id&&(V=X);const ie={id:I,tabId:y.id,path:_.path,query:_.query};if(V===null){const X=new ke;X.push(ie),V={id:y.id,title:y.title,closable:y.closable,refreshable:y.refreshable,iframe:y.iframe,url:decodeURIComponent($),active:!0,pages:X},a(V).then(()=>{t.emit(P.TAB_ACTIVE,{id:y.id,isRoute:!1})})}else V.active=!0,(V.pages.isEmpty()||V.pages.peek().id!==ie.id)&&V.pages.push(ie);return B(V),Q.has(I)?O=Q.get(I):(O=r.defineComponent({name:I,components:{DynamicComponent:m},emits:{onLoaded:null},setup(X,ge){return r.onMounted(()=>{ge.emit("onLoaded"),h(I,".cache-page-wrapper")}),r.onDeactivated(()=>{p(I)}),r.onActivated(()=>{ge.emit("onLoaded"),f(I),g(),m.props=null}),r.onUnmounted(()=>{d(I)}),()=>r.createVNode("div",{class:"cache-page-wrapper",id:"W-"+y.id,style:[gt?"overflow:auto":"overflow:hidden"]},[r.createVNode(r.resolveComponent("dynamic-component"),{tId:y.id,pId:I},null),r.createVNode($n,{tId:y.id},null)])}}),Q.set(I,O)),U(I),O},f=_=>{const m=te.get(_);if(m){for(const O of m.keys())if(document.querySelector(O)){const y=m.get(O);document.querySelector(O).scrollTop=y.top,document.querySelector(O).scrollLeft=y.left}}},p=_=>{var O,y;const m=te.get(_);if(m)for(const I of m.keys()){const $={top:((O=document.querySelector(I))==null?void 0:O.scrollTop)??0,left:((y=document.querySelector(I))==null?void 0:y.scrollLeft)??0};m.set(I,$)}},d=_=>{const m=te.get(_);m&&(m.clear(),te.delete(_))},h=(_,...m)=>{te.has(_)||te.set(_,new Map);const O=te.get(_);for(const y of m)O.set(y,{top:0,left:0})},w=_=>{let m="";for(let O=M.value.length-1;O>=0;O--)if(_===r.unref(M)[O].id){if(!r.unref(M)[O].closable)return _;for(const y of r.unref(M)[O].pages.list())l(y.id),b(y.id);r.unref(M)[O].pages.clear(),M.value.length>1&&r.unref(M)[O].active&&(O===0?m=r.unref(M)[O+1].id:m=r.unref(M)[O-1].id),r.unref(M).splice(O,1);break}return m!==""&&t.emit(P.TAB_ACTIVE,{id:m}),g(),m},E=()=>{const _=r.unref(M);for(let m=_.length-1;m>=0;m--)if(_[m].closable){for(const O of _[m].pages.list())l(O.id),b(O.id);r.unref(M)[m].pages.clear(),r.unref(M).splice(m,1)}for(const m of _)if(m.active){g();return}t.emit(P.TAB_ACTIVE,{id:_[_.length-1].id})},C=_=>{const m=r.unref(M);let O;for(let y=m.length-1;y>=0;y--)if(m[y].id===_)O=m[y];else if(m[y].closable&&m[y].id!==_){for(const I of m[y].pages.list())l(I.id),b(I.id);r.unref(M)[y].pages.clear(),r.unref(M).splice(y,1)}O.active?g():t.emit(P.TAB_ACTIVE,{id:_})},A=_=>{let m=-1;const O=r.unref(M);for(let y=0;y<O.length;y++)if(O[y].id===_){m=y-1;break}for(let y=m;y>=0;y--)if(O[y].closable){for(const I of O[y].pages.list())l(I.id),b(I.id);r.unref(M)[y].pages.clear(),r.unref(M).splice(y,1)}for(const y of O)if(y.active){g();return}t.emit(P.TAB_ACTIVE,{id:O[0].id})},x=_=>{const m=r.unref(M);let O=m.length;for(let y=0;y<m.length;y++)if(m[y].id===_){O=y+1;break}for(let y=m.length-1;y>=O;y--)if(m[y].closable){for(const I of m[y].pages.list())l(I.id),b(I.id);r.unref(M)[y].pages.clear(),r.unref(M).splice(y,1)}for(const y of m)if(y.active){g();return}t.emit(P.TAB_ACTIVE,{id:m[m.length-1].id})},T=_=>{var m;for(const O of r.unref(M))if(O.id===_){const y=(m=O.pages.peek())==null?void 0:m.id;for(let I=z.value.length-1;I>=0;I--)if(z.value[I]===y){z.value.splice(I,1),O.active&&(xe.value=!1);break}break}},v=()=>{const _=new Set;M.value.forEach(m=>{_.add(m.pages.peek().id)});for(let m=z.value.length-1;m>=0;m--){const O=z.value[m];_.has(O)&&z.value.splice(m,1)}xe.value=!1},k=(_,m)=>{Q.set(_,m)},S=_=>Q.get(_),l=_=>{Q.delete(_)},b=_=>{ue.add(_)},g=()=>{for(let _=z.value.length-1;_>=0;_--)ue.has(z.value[_])&&r.unref(z).splice(_,1);ue.clear()},R=_=>{for(let m=z.value.length-1;m>=0;m--)_===z.value[m]&&r.unref(z).splice(m,1)},U=_=>{new Set(z.value).has(_)||z.value.push(_)},W=(_,m=!0)=>new Promise(O=>{for(let y=M.value.length-1;y>=0;y--){const I=M.value[y];if(I.id===_){if(I.active)break;if(I.active=!0,xe.value=!1,B(I),m){const $=I.pages.peek();e.push({path:$.path,query:$.query})}}else M.value[y].active=!1}O(!0)}),B=_=>{window.sessionStorage.setItem(bt,JSON.stringify(_))},L=()=>{j(),r.unref(M).push(...ve),t.emit(P.TAB_ACTIVE,{id:ve[0].id})},j=()=>{r.unref(M).splice(0),Q.clear(),ue.clear(),r.unref(z).splice(0)};return{tabs:M,caches:z,pageShown:xe,initialed:mt,setMaxSize:_=>{Se=_},canAddTab:i,initial:o,size:n,active:W,destroy:j,reset:L,addCache:U,removeCache:R,getTab:u,addTab:a,removeTab:w,removeAllTabs:E,removeLeftTabs:A,removeRightTabs:x,removeOtherTabs:C,hasTab:s,addPage:c,addComponent:k,getComponent:S,removeComponent:l,markDeletableCache:b,removeDeletableCache:g,refreshTab:T,refreshAllTabs:v,addPageScroller:h,setGlobalScroll:_=>{gt=_}}},Rn={class:"stack-tab__contextmenu-item"},ee=r.defineComponent({__name:"ContextMenuItem",props:{icon:{},title:{}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("div",Rn,[r.createElementVNode("div",{class:r.normalizeClass(["stack-tab__contextmenu-icon",t.icon])},null,2),r.createElementVNode("div",{style:{"margin-left":"8px"},onContextmenu:n[0]||(n[0]=r.withModifiers(()=>{},["prevent"]))},r.toDisplayString(t.title),33)]))}}),Vn={key:0,class:"divider div-transparent"},Pn=((e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n})(r.defineComponent({__name:"index",props:{index:{},left:{default:0},top:{default:0},contextMenu:{},tabItem:{},max:{}},setup(e){const t=e,{t:n}=ye(),o=r.ref(),s=r.reactive({left:t.left,top:t.top}),{removeTab:i,removeAllTabs:a,removeLeftTabs:u,removeRightTabs:c,refreshTab:f,refreshAllTabs:p,removeOtherTabs:d}=de();return r.onMounted(()=>{const h=o.value?o.value.clientWidth:0,w=window.innerWidth;s.left+h>w&&(s.left=w-h-5)}),(h,w)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"contextmenu",ref:o,class:"stack-tab__contextmenu",style:r.normalizeStyle({left:`${s.left}px`,top:`${s.top}px`,"z-index":r.unref(et)(".stack-tab,.stack-tab *")})},[r.createVNode(ee,{icon:"stack-tab__icon-reload svg-mask",title:r.unref(n)("VueStackTab.reload"),onClick:w[0]||(w[0]=E=>r.unref(f)(h.tabItem.id))},null,8,["title"]),r.createVNode(ee,{icon:"stack-tab__icon-reload-all svg-mask",title:r.unref(n)("VueStackTab.reloadAll"),onClick:r.unref(p)},null,8,["title","onClick"]),r.createVNode(ee,{icon:"stack-tab__icon-close svg-mask",title:r.unref(n)("VueStackTab.close"),disabled:h.tabItem.closable?null:"disabled",onClick:w[1]||(w[1]=E=>r.unref(i)(h.tabItem.id))},null,8,["title","disabled"]),r.createVNode(ee,{icon:"stack-tab__icon-close-lefts svg-mask",title:r.unref(n)("VueStackTab.closeLeft"),disabled:h.index<=0?"disabled":null,onClick:w[2]||(w[2]=E=>r.unref(u)(h.tabItem.id))},null,8,["title","disabled"]),r.createVNode(ee,{icon:"stack-tab__icon-close-rights svg-mask",title:r.unref(n)("VueStackTab.closeRight"),disabled:h.index>=h.max-1?"disabled":null,onClick:w[3]||(w[3]=E=>r.unref(c)(h.tabItem.id))},null,8,["title","disabled"]),r.createVNode(ee,{icon:"stack-tab__icon-close-others svg-mask",title:r.unref(n)("VueStackTab.closeOthers"),onClick:w[4]||(w[4]=E=>r.unref(d)(h.tabItem.id))},null,8,["title"]),r.createVNode(ee,{icon:"stack-tab__icon-close-all svg-mask",title:r.unref(n)("VueStackTab.closeAll"),onClick:r.unref(a)},null,8,["title","onClick"]),h.contextMenu!==void 0&&h.contextMenu.length>0?(r.openBlock(),r.createElementBlock("div",Vn)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(h.contextMenu,(E,C)=>(r.openBlock(),r.createBlock(ee,{key:C,icon:E.icon,title:E.title,disabled:E.disabled(h.tabItem)?"disabled":null,onClick:A=>!E.disabled&&E.callback(h.tabItem.id)},null,8,["icon","title","disabled","onClick"]))),128))],4))}}),[["__scopeId","data-v-d598be6e"]]),jn=()=>{const e=r.reactive({item:{},index:-1,left:0,top:0,max:0}),t=r.ref(!1);r.onMounted(()=>{document.addEventListener("click",o)}),r.onUnmounted(()=>{document.removeEventListener("click",o)});const n=async(s,i,a,u)=>{t.value=!1,await r.nextTick(()=>{const{clientY:c,clientX:f}=s;t.value=!0,Object.assign(e,{item:i,index:a,top:c,left:f,max:u})})},o=s=>{s.target.classList.contains("stack-tab__contextmenu")||(t.value=!1)};return{shown:t,contextMenuData:e,showContextMenu:n}},Dn={class:"stack-tab__item-title"},Un=["title"],Wn=["title"],Fn=r.defineComponent({__name:"TabHeaderItem",props:{item:{}},emits:["close","active"],setup(e,{emit:t}){const n=t,o=fe(),{t:s}=ye(),i=r.ref(),a=e;o.on(P.TAB_ACTIVE,({id:p,isRoute:d})=>{a.item.id===p&&f(d)});const u=r.computed(()=>a.item.title||s("undefined")),c=()=>{n("close",a.item)},f=(p=!0)=>{n("active",a.item,i,p)};return(p,d)=>(r.openBlock(),r.createElementBlock("li",{ref_key:"curtab",ref:i,class:r.normalizeClass(["stack-tab__item",{"is-active":p.item.active,"is-icon":p.item.closable}]),onClick:d[0]||(d[0]=h=>f(!0))},[r.createElementVNode("div",Dn,[r.createElementVNode("div",{class:"stack-tab__item-title-content",title:u.value},r.toDisplayString(u.value),9,Un)]),p.item.closable?(r.openBlock(),r.createElementBlock("div",{key:0,class:"stack-tab__icon-close-fill stack-tab__item-button",title:r.unref(s)("VueStackTab.close"),onClick:r.withModifiers(c,["stop"])},null,8,Wn)):r.createCommentVNode("",!0)],2))}});var ne=[],qn=function(){return ne.some(function(e){return e.activeTargets.length>0})},Gn=function(){return ne.some(function(e){return e.skippedTargets.length>0})},yt="ResizeObserver loop completed with undelivered notifications.",Hn=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:yt}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=yt),window.dispatchEvent(e)},he;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(he||(he={}));var re=function(e){return Object.freeze(e)},Zn=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,re(this)}return e}(),kt=function(){function e(t,n,o,s){return this.x=t,this.y=n,this.width=o,this.height=s,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,re(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,o=t.y,s=t.top,i=t.right,a=t.bottom,u=t.left,c=t.width,f=t.height;return{x:n,y:o,top:s,right:i,bottom:a,left:u,width:c,height:f}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),We=function(e){return e instanceof SVGElement&&"getBBox"in e},wt=function(e){if(We(e)){var t=e.getBBox(),n=t.width,o=t.height;return!n&&!o}var s=e,i=s.offsetWidth,a=s.offsetHeight;return!(i||a||e.getClientRects().length)},_t=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},Xn=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},pe=typeof window<"u"?window:{},Ee=new WeakMap,Tt=/auto|scroll/,Yn=/^tb|vertical/,Jn=/msie|trident/i.test(pe.navigator&&pe.navigator.userAgent),q=function(e){return parseFloat(e||"0")},se=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new Zn((n?t:e)||0,(n?e:t)||0)},vt=re({devicePixelContentBoxSize:se(),borderBoxSize:se(),contentBoxSize:se(),contentRect:new kt(0,0,0,0)}),xt=function(e,t){if(t===void 0&&(t=!1),Ee.has(e)&&!t)return Ee.get(e);if(wt(e))return Ee.set(e,vt),vt;var n=getComputedStyle(e),o=We(e)&&e.ownerSVGElement&&e.getBBox(),s=!Jn&&n.boxSizing==="border-box",i=Yn.test(n.writingMode||""),a=!o&&Tt.test(n.overflowY||""),u=!o&&Tt.test(n.overflowX||""),c=o?0:q(n.paddingTop),f=o?0:q(n.paddingRight),p=o?0:q(n.paddingBottom),d=o?0:q(n.paddingLeft),h=o?0:q(n.borderTopWidth),w=o?0:q(n.borderRightWidth),E=o?0:q(n.borderBottomWidth),C=o?0:q(n.borderLeftWidth),A=d+f,x=c+p,T=C+w,v=h+E,k=u?e.offsetHeight-v-e.clientHeight:0,S=a?e.offsetWidth-T-e.clientWidth:0,l=s?A+T:0,b=s?x+v:0,g=o?o.width:q(n.width)-l-S,R=o?o.height:q(n.height)-b-k,U=g+A+S+T,W=R+x+k+v,B=re({devicePixelContentBoxSize:se(Math.round(g*devicePixelRatio),Math.round(R*devicePixelRatio),i),borderBoxSize:se(U,W,i),contentBoxSize:se(g,R,i),contentRect:new kt(d,c,g,R)});return Ee.set(e,B),B},St=function(e,t,n){var o=xt(e,n),s=o.borderBoxSize,i=o.contentBoxSize,a=o.devicePixelContentBoxSize;switch(t){case he.DEVICE_PIXEL_CONTENT_BOX:return a;case he.BORDER_BOX:return s;default:return i}},Kn=function(){function e(t){var n=xt(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=re([n.borderBoxSize]),this.contentBoxSize=re([n.contentBoxSize]),this.devicePixelContentBoxSize=re([n.devicePixelContentBoxSize])}return e}(),Et=function(e){if(wt(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Qn=function(){var e=1/0,t=[];ne.forEach(function(a){if(a.activeTargets.length!==0){var u=[];a.activeTargets.forEach(function(f){var p=new Kn(f.target),d=Et(f.target);u.push(p),f.lastReportedSize=St(f.target,f.observedBox),d<e&&(e=d)}),t.push(function(){a.callback.call(a.observer,u,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,o=t;n<o.length;n++){var s=o[n];s()}return e},Ot=function(e){ne.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(s){s.isActive()&&(Et(s.target)>e?n.activeTargets.push(s):n.skippedTargets.push(s))})})},er=function(){var e=0;for(Ot(e);qn();)e=Qn(),Ot(e);return Gn()&&Hn(),e>0},Fe,Bt=[],tr=function(){return Bt.splice(0).forEach(function(e){return e()})},nr=function(e){if(!Fe){var t=0,n=document.createTextNode(""),o={characterData:!0};new MutationObserver(function(){return tr()}).observe(n,o),Fe=function(){n.textContent="".concat(t?t--:t++)}}Bt.push(e),Fe()},rr=function(e){nr(function(){requestAnimationFrame(e)})},Oe=0,or=function(){return!!Oe},sr=250,ir={attributes:!0,characterData:!0,childList:!0,subtree:!0},At=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Ct=function(e){return e===void 0&&(e=0),Date.now()+e},qe=!1,ar=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=sr),!qe){qe=!0;var o=Ct(t);rr(function(){var s=!1;try{s=er()}finally{if(qe=!1,t=o-Ct(),!or())return;s?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,ir)};document.body?n():pe.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),At.forEach(function(n){return pe.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),At.forEach(function(n){return pe.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Ge=new ar,It=function(e){!Oe&&e>0&&Ge.start(),Oe+=e,!Oe&&Ge.stop()},cr=function(e){return!We(e)&&!Xn(e)&&getComputedStyle(e).display==="inline"},lr=function(){function e(t,n){this.target=t,this.observedBox=n||he.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=St(this.target,this.observedBox,!0);return cr(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),fr=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Be=new WeakMap,Mt=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Ae=function(){function e(){}return e.connect=function(t,n){var o=new fr(t,n);Be.set(t,o)},e.observe=function(t,n,o){var s=Be.get(t),i=s.observationTargets.length===0;Mt(s.observationTargets,n)<0&&(i&&ne.push(s),s.observationTargets.push(new lr(n,o&&o.box)),It(1),Ge.schedule())},e.unobserve=function(t,n){var o=Be.get(t),s=Mt(o.observationTargets,n),i=o.observationTargets.length===1;s>=0&&(i&&ne.splice(ne.indexOf(o),1),o.observationTargets.splice(s,1),It(-1))},e.disconnect=function(t){var n=this,o=Be.get(t);o.observationTargets.slice().forEach(function(s){return n.unobserve(t,s.target)}),o.activeTargets.splice(0,o.activeTargets.length)},e}(),Lt=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Ae.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!_t(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Ae.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!_t(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Ae.unobserve(this,t)},e.prototype.disconnect=function(){Ae.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const ur=["disabled","title"],dr={key:1,class:"stack-tab__button"},Ce=r.defineComponent({__name:"TabHeaderButton",props:{disabled:{type:Boolean,default:!1},shadow:{default:null},iconClass:{default:""},title:{}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["stack-tab__header-button",{"stack-tab__shadow-right":t.shadow==="right","stack-tab__shadow-left":t.shadow==="left"}]),disabled:t.disabled?"disabled":null,title:t.title},["icon"in t.$slots?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["stack-tab__mask-button",t.iconClass])},null,2)),"icon"in t.$slots?(r.openBlock(),r.createElementBlock("div",dr,[r.renderSlot(t.$slots,"icon")])):r.createCommentVNode("",!0)],10,ur))}}),hr=r.defineComponent({__name:"TabHeaderScroll",props:{space:{default:300},isScrollWheel:{type:Boolean,default:!0},isScrollButton:{type:Boolean,default:!0}},setup(e,{expose:t}){const n=r.ref(null),o=r.ref(null),s=r.ref(null),i=r.ref(!1),a=r.ref(!1),u=r.ref(!1),c=r.ref(!0),f=r.ref(),p=e,d=r.reactive({clientWidth:0,scrollWidth:0,scrollLeft:0}),h=r.reactive({thumbLeft:0,startScrollLeft:0,startThumbLeft:0,startPageX:0});r.watch(d,B=>{w(B)});const w=B=>{a.value=B.scrollLeft<=10,u.value=B.clientWidth+B.scrollLeft-B.scrollWidth>=-10,c.value=B.scrollWidth!==B.clientWidth},E=r.computed(()=>d.scrollWidth>d.clientWidth),C=r.computed(()=>{if(!E.value)return 0;const{clientWidth:B,scrollWidth:L}=d;return B/L*B}),A=r.computed(()=>{if(!E.value)return 0;const{clientWidth:B,scrollWidth:L,scrollLeft:j}=d;return(B-C.value)*(j/(L-B))}),x=()=>{if(n.value===null||n.value===void 0)return;const{clientWidth:B,scrollWidth:L,scrollLeft:j}=n.value;Object.assign(d,{clientWidth:B,scrollWidth:L,scrollLeft:j})},T=new Lt(()=>{var L;x();const B=(L=n.value)==null?void 0:L.querySelector(".stack-tab__item.is-active");B&&(W(B)||U(B))}),v=new Lt(()=>{var B;if(!E.value){const L=(B=n.value)==null?void 0:B.querySelector(".stack-tab__item.is-active");L&&(W(L)||U(L))}x()}),k=(B,L=!0)=>{Qe({wrap:n.value,left:B,smooth:L})},S=B=>{k(n.value.scrollLeft+B)},l=B=>{const L=B.deltaY<0;k(n.value.scrollLeft+(L?-p.space:p.space))},b=B=>{var L;Object.assign(h,{startPageX:B.pageX,startScrollLeft:(L=n.value)==null?void 0:L.scrollLeft,startThumbLeft:A.value,thumbLeft:A.value}),i.value=!0,document.addEventListener("mousemove",g),document.addEventListener("mouseup",R)},g=B=>{const{clientWidth:L,scrollWidth:j}=d;let oe=h.startThumbLeft+B.pageX-h.startPageX;const Xe=L-C.value;oe<0?oe=0:oe>Xe&&(oe=Xe),h.thumbLeft=oe,k(oe*(j-L)/(L-C.value),!1),B.preventDefault()},R=B=>{i.value=!1,document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",R),B.preventDefault()};r.onMounted(()=>{var L;T.observe(f.value);const B=(L=n.value)==null?void 0:L.querySelector(".stack-tab__nav");v.observe(B)}),r.onUnmounted(()=>{T.disconnect(),v.disconnect()});const U=B=>{an({el:B,wrap:n,block:"end",inline:"center"})},W=B=>{if(!E.value)return!0;const L=B.offsetLeft,j=n.value.scrollLeft;return!(L<j||L+B.clientWidth>j+n.value.clientWidth)};return t({scrollIntoView:U,isInView:W}),(B,L)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[c.value?(r.openBlock(),r.createBlock(Ce,{key:0,"icon-class":"stack-tab__icon-left-arrow",disabled:a.value,onClick:L[0]||(L[0]=j=>!a.value&&S(-1*B.space))},null,8,["disabled"])):r.createCommentVNode("",!0),r.createElementVNode("div",{ref_key:"headerScroll",ref:f,class:"stack-tab__scroll",onWheel:r.withModifiers(l,["prevent"])},[r.createElementVNode("div",{ref_key:"container",ref:n,class:r.normalizeClass(["stack-tab__scroll-container",{"stack-tab__shadow-inset-left":!a.value&&u.value,"stack-tab__shadow-inset-right":!u.value&&a.value,"stack-tab__shadow-inset-all":!a.value&&!u.value}]),onScrollPassive:x},[r.renderSlot(B.$slots,"default")],34),r.withDirectives(r.createElementVNode("div",{ref_key:"bar",ref:o,class:r.normalizeClass(["stack-tab__scrollbar",{"is-dragging":i.value}])},[r.createElementVNode("div",{ref_key:"thumb",ref:s,class:r.normalizeClass(["stack-tab__scrollbar-thumb",{"is-dragging":i.value}]),style:r.normalizeStyle({width:`${C.value}px`,transform:`translateX(${A.value}px)`}),onMousedown:r.withModifiers(b,["prevent"])},null,38)],2),[[r.vShow,E.value]])],544),c.value?(r.openBlock(),r.createBlock(Ce,{key:1,"icon-class":"stack-tab__icon-right-arrow",disabled:u.value,onClick:L[1]||(L[1]=j=>!u.value&&S(B.space))},null,8,["disabled"])):r.createCommentVNode("",!0)],64))}}),pr={class:"stack-tab__header"},br=r.defineComponent({__name:"index",props:{space:{},tabScrollMode:{default:Y.BOTH},tabTransition:{default:()=>({name:"stack-tab-zoom"})},contextmenu:{type:[Boolean,Object],default:!0},max:{default:20}},emits:["active"],setup(e,{emit:t}){const{t:n}=ye(),o=r.inject("maximum"),s=t,i=r.ref(),{shown:a,contextMenuData:u,showContextMenu:c}=jn(),f=e,{removeTab:p,active:d,tabs:h}=de(),w=r.computed(()=>typeof f.tabTransition=="string"?{name:f.tabTransition}:f.tabTransition),E=r.computed(()=>f.tabScrollMode===Y.BOTH||f.tabScrollMode===Y.BUTTON),C=f.tabScrollMode===Y.BOTH||f.tabScrollMode===Y.WHEEL,A=T=>{if(T.closable){const v=p(T.id);s("active",v)}a.value=!1},x=(T,v,k)=>{i.value&&(r.nextTick(()=>{i.value.isInView(v.value)||i.value.scrollIntoView(v.value)}),d(T.id,k),s("active",T.id))};return(T,v)=>(r.openBlock(),r.createElementBlock("div",pr,[r.renderSlot(T.$slots,"leftButton"),r.createVNode(hr,{ref_key:"scroll",ref:i,space:T.space,"is-scroll-wheel":r.unref(C),"is-scroll-button":E.value},{default:r.withCtx(()=>[r.createVNode(r.TransitionGroup,r.mergeProps({key:"tabItemTrans",tag:"ul",class:"stack-tab__nav"},w.value,{appear:""}),{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(h),(k,S)=>(r.openBlock(),r.createBlock(Fn,{key:k.id,contextmenu:T.contextmenu,item:k,onContextmenu:r.withModifiers(l=>r.unref(c)(l,k,S,r.unref(h).length),["prevent"]),onMouseup:r.withModifiers(l=>A(k),["middle","prevent"]),onClose:A,onActive:x},null,8,["contextmenu","item","onContextmenu","onMouseup"]))),128))]),_:1},16)]),_:1},8,["space","is-scroll-wheel","is-scroll-button"]),r.renderSlot(T.$slots,"rightButton"),r.createVNode(Ce,{"icon-class":r.unref(o)?"stack-tab__icon-restore":"stack-tab__icon-fullscreen",title:r.unref(n)("VueStackTab.maximum"),onClick:v[0]||(v[0]=k=>o.value=!r.unref(o))},null,8,["icon-class","title"]),r.createVNode(r.Transition,{name:"stack-tab-zoom",appear:""},{default:r.withCtx(()=>[r.unref(a)?(r.openBlock(),r.createBlock(Pn,{key:"tabMenuTrans",left:r.unref(u).left,top:r.unref(u).top,"tab-item":r.unref(u).item,max:r.unref(u).max,index:r.unref(u).index},null,8,["left","top","tab-item","max","index"])):r.createCommentVNode("",!0)]),_:1})]))}});var mr=typeof global=="object"&&global&&global.Object===Object&&global,gr=typeof self=="object"&&self&&self.Object===Object&&self,Nt=mr||gr||Function("return this")(),Ie=Nt.Symbol,zt=Object.prototype,yr=zt.hasOwnProperty,kr=zt.toString,be=Ie?Ie.toStringTag:void 0;function wr(e){var t=yr.call(e,be),n=e[be];try{e[be]=void 0;var o=!0}catch{}var s=kr.call(e);return o&&(t?e[be]=n:delete e[be]),s}var _r=Object.prototype,Tr=_r.toString;function vr(e){return Tr.call(e)}var xr="[object Null]",Sr="[object Undefined]",$t=Ie?Ie.toStringTag:void 0;function Er(e){return e==null?e===void 0?Sr:xr:$t&&$t in Object(e)?wr(e):vr(e)}function Or(e){return e!=null&&typeof e=="object"}var Br="[object Symbol]";function Ar(e){return typeof e=="symbol"||Or(e)&&Er(e)==Br}var Cr=/\s/;function Ir(e){for(var t=e.length;t--&&Cr.test(e.charAt(t)););return t}var Mr=/^\s+/;function Lr(e){return e&&e.slice(0,Ir(e)+1).replace(Mr,"")}function Me(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Rt=NaN,Nr=/^[-+]0x[0-9a-f]+$/i,zr=/^0b[01]+$/i,$r=/^0o[0-7]+$/i,Rr=parseInt;function Vt(e){if(typeof e=="number")return e;if(Ar(e))return Rt;if(Me(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Me(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Lr(e);var n=zr.test(e);return n||$r.test(e)?Rr(e.slice(2),n?2:8):Nr.test(e)?Rt:+e}var He=function(){return Nt.Date.now()},Vr="Expected a function",Pr=Math.max,jr=Math.min;function Dr(e,t,n){var o,s,i,a,u,c,f=0,p=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(Vr);t=Vt(t)||0,Me(n)&&(p=!!n.leading,d="maxWait"in n,i=d?Pr(Vt(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function w(l){var b=o,g=s;return o=s=void 0,f=l,a=e.apply(g,b),a}function E(l){return f=l,u=setTimeout(x,t),p?w(l):a}function C(l){var b=l-c,g=l-f,R=t-b;return d?jr(R,i-g):R}function A(l){var b=l-c,g=l-f;return c===void 0||b>=t||b<0||d&&g>=i}function x(){var l=He();if(A(l))return T(l);u=setTimeout(x,C(l))}function T(l){return u=void 0,h&&o?w(l):(o=s=void 0,a)}function v(){u!==void 0&&clearTimeout(u),f=0,o=c=s=u=void 0}function k(){return u===void 0?a:T(He())}function S(){var l=He(),b=A(l);if(o=arguments,s=this,c=l,b){if(u===void 0)return E(c);if(d)return clearTimeout(u),u=setTimeout(x,t),w(c)}return u===void 0&&(u=setTimeout(x,t)),a}return S.cancel=v,S.flush=k,S}var Ur="Expected a function";function Wr(e,t,n){var o=!0,s=!0;if(typeof e!="function")throw new TypeError(Ur);return Me(n)&&(o="leading"in n?!!n.leading:o,s="trailing"in n?!!n.trailing:s),Dr(e,t,{leading:o,maxWait:t,trailing:s})}let Pt;const jt=()=>{const e=F.useRouter(),{active:t,hasTab:n,pageShown:o,reset:s,canAddTab:i}=de(),a=fe(),u=Wr(p=>new Promise((d,h)=>{if(!o.value){h();return}const w=Z(p,{refreshable:!0,closable:!0,iframe:!1});if(n(w.id)){a.emit(P.TAB_ACTIVE,{id:w.id}),d(w.id);return}if(w.id||(w.id=rt()),!i()){h("Max Size");return}c(p,w),d(w.id)}),500),c=(p,d)=>{const h=ht(d);let w=Z({__tab:h},p.query),E;if(p.iframe){const C=encodeURIComponent(p.path);E=Pt,w.__src=C}else{const C=Ue(p.path);E=C.path,w=Z(C.query,w)}e.push({path:E,query:w})};return{openNewTab:u,setIFramePath:p=>{Pt=p},active:t,reset:s}},Fr={class:"stack-tab__container"},qr=["src"],Dt=r.defineComponent({__name:"StackTabs",props:{defaultTabs:{default:()=>[]},max:{default:20},append:{default:"last"},contextmenu:{type:[Boolean,Object],default:!0},pageTransition:{default:"stack-tab-swap"},tabTransition:{default:"stack-tab-zoom"},tabScrollMode:{default:Y.BOTH},width:{default:"100%"},height:{default:"100%"},i18n:{default:"zh-CN"},space:{default:300},globalScroll:{type:Boolean,default:!1},iframePath:{}},emits:["onActive","onPageLoaded"],setup(e,{emit:t}){const{tabs:n,pageShown:o,caches:s,destroy:i,addPage:a,initial:u,setMaxSize:c,setGlobalScroll:f}=de(),p=t,d=e,{changeLocale:h}=ye(),w=r.ref(!1);r.provide("maximum",w);const{setIFramePath:E}=jt();E(d.iframePath),f(d.globalScroll),h(d.i18n),r.onBeforeMount(()=>{u(d.defaultTabs)});const C=(T,v)=>a(T,v),A=T=>{p("onActive",T)};c(d.max),r.onBeforeUnmount(()=>{i()});const x=()=>{p("onPageLoaded")};return(T,v)=>{const k=r.resolveComponent("router-view");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["stack-tab",{"stack-tab__maximum":w.value}]),style:r.normalizeStyle({width:T.width,height:T.height,"z-index":w.value?r.unref(et)("body *:not(.stack-tab,.stack-tab *)"):void 0})},[r.createVNode(br,{space:T.space,onActive:A,"tab-transition":T.tabTransition,max:T.max},{leftButton:r.withCtx(()=>[r.renderSlot(T.$slots,"leftButton")]),rightButton:r.withCtx(()=>[r.renderSlot(T.$slots,"rightButton")]),_:3},8,["space","tab-transition","max"]),r.createElementVNode("div",Fr,[r.createVNode(k,null,{default:r.withCtx(({Component:S,route:l})=>[r.createVNode(r.Transition,{name:T.pageTransition,onAfterLeave:v[0]||(v[0]=b=>o.value=!0),mode:"out-in"},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.KeepAlive,{include:r.unref(s)},[r.unref(o)?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(C(l,S)),{key:l.fullPath,onOnLoaded:x},null,32)):r.createCommentVNode("",!0)],1032,["include"]))]),_:2},1032,["name"])]),_:1}),r.createVNode(r.TransitionGroup,{name:T.pageTransition,appear:""},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(n).filter(S=>S.iframe),S=>r.withDirectives((r.openBlock(),r.createElementBlock("iframe",{key:S.id,class:"stack-tab__iframe",src:/^(javascript|data):/i.test(S.url??"")?"about:blank":S.url,frameborder:"0"},null,8,qr)),[[r.vShow,S.active&&r.unref(o)]])),128))]),_:1},8,["name"])])],6)}}}),Ze=typeof Buffer=="function";typeof TextDecoder=="function"&&new TextDecoder;const Ut=typeof TextEncoder=="function"?new TextEncoder:void 0,me=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");(e=>{let t={};return e.forEach((n,o)=>t[n]=o),t})(me);const G=String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);const Gr=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),Wt=typeof btoa=="function"?e=>btoa(e):Ze?e=>Buffer.from(e,"binary").toString("base64"):e=>{let t,n,o,s,i="";const a=e.length%3;for(let u=0;u<e.length;){if((n=e.charCodeAt(u++))>255||(o=e.charCodeAt(u++))>255||(s=e.charCodeAt(u++))>255)throw new TypeError("invalid character found");t=n<<16|o<<8|s,i+=me[t>>18&63]+me[t>>12&63]+me[t>>6&63]+me[t&63]}return a?i.slice(0,a-3)+"===".substring(a):i},Hr=Ze?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let o=0,s=e.length;o<s;o+=4096)n.push(G.apply(null,e.subarray(o,o+4096)));return Wt(n.join(""))},Zr=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?G(192|t>>>6)+G(128|t&63):G(224|t>>>12&15)+G(128|t>>>6&63)+G(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return G(240|t>>>18&7)+G(128|t>>>12&63)+G(128|t>>>6&63)+G(128|t&63)}},Xr=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Yr=e=>e.replace(Xr,Zr),Ft=Ze?e=>Buffer.from(e,"utf8").toString("base64"):Ut?e=>Hr(Ut.encode(e)):e=>Wt(Yr(e)),Jr=(e,t=!1)=>t?Gr(Ft(e)):Ft(e),Kr=e=>{const o=`<?xml version="1.0" encoding="UTF-8"?><svg id="a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1167.06 237.75"><path d="M79.24,19.73h108.91v29.7h-108.91v-29.7Z" style="fill:#79a7ff; stroke-width:0px;"/><path d="M179.24,199.67H20.26c-11.21-.07-20.26-9.17-20.26-20.38V20.39C0,9.18,9.05.07,20.26,0h59.49c3.51.07,6.34,2.9,6.41,6.42v44.36c0,3.54-2.87,6.41-6.41,6.41s-6.41-2.86-6.42-6.4V12.36H20.25c-4.13.07-7.44,3.44-7.44,7.56v159.41c0,4.13,3.31,7.49,7.44,7.56h158.98c4.13-.07,7.44-3.44,7.44-7.56V51.84c0-3.54,2.87-6.41,6.41-6.42,3.55,0,6.42,2.87,6.42,6.42v127.45c0,11.21-9.05,20.32-20.26,20.39h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M192.8,60.77c-3.66-.07-6.61-3.02-6.68-6.68v-18.23c.09-4.29-3.32-7.83-7.6-7.92h-96.43c-3.69,0-6.69-2.99-6.69-6.69s2.99-6.69,6.69-6.69h96.27c11.69.08,21.13,9.58,21.13,21.27v18.25c0,3.69-2.99,6.68-6.68,6.68h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M193.08,58.67H10.15c-3.61-.08-6.48-3.07-6.41-6.68-.08-3.62,2.79-6.61,6.4-6.69,0,0,0,0,0,0h182.93c3.62.08,6.48,3.08,6.41,6.69.07,3.61-2.79,6.6-6.41,6.68h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M137.2,58.67c-3.42.24-6.4-2.32-6.68-5.74v-28.15c.55-3.69,4-6.24,7.69-5.69,2.94.44,5.24,2.75,5.69,5.69v28.15c-.28,3.42-3.26,5.98-6.68,5.74h-.02Z" style="fill:#377dff; stroke-width:0px;"/><path d="M99.78,100.48l-12.83-22.22h-18.39l31.22,54.05,31.22-54.05h-18.39l-12.83,22.22Z" style="fill:#00d797; stroke-width:0px;"/><path d="M135.28,78.26l-35.49,61.43-35.44-61.43h-20.11l55.55,96.2,55.55-96.2s-20.06,0-20.06,0ZM313.33,59.95c0,.52-.67,1.84-2,3.95s-3.3,5.2-5.9,9.28-5.75,9.28-9.46,15.61c-3.7,6.33-7.52,13.34-11.45,21.04-4.51,8.85-7.76,15.8-9.76,20.86s-2.99,9.41-2.99,13.05c0,2.89,1.53,5.44,4.6,7.63,3.7-2.89,7.34-6.33,10.93-10.32,3.58-3.99,7.13-8.44,10.63-13.36s7.55-11.13,12.14-18.65c4.6-7.52,8.69-14.43,12.27-20.73-.17-.52-.36-1.04-.56-1.56s-.3-.95-.3-1.3c0-2.72.55-5.26,1.65-7.63,1.1-2.37,2.47-4.68,4.12-6.94s4.12-5.44,7.42-9.54c.87-1.1,1.94-1.65,3.21-1.65,2.08,0,3.12,1.33,3.12,3.99s-1.08,6.84-3.25,12.53c-2.17,5.7-5.37,12.39-9.59,20.08s-9.47,16.29-15.74,25.81c-6.28,9.51-13.37,19.45-21.3,29.8-8.04,10.47-13.79,15.7-17.26,15.7-1.97,0-4.19-1.08-6.68-3.25s-4.63-5.13-6.42-8.89-2.69-7.78-2.69-12.06c0-2.54.53-5.81,1.6-9.8s2.75-8.78,5.03-14.36,4.87-11.09,7.76-16.53c3.01-5.72,5.65-10.47,7.94-14.23,2.28-3.76,4.87-7.94,7.76-12.53,2.89-4.6,4.34-7.1,4.34-7.5,0-.87-.58-1.3-1.73-1.3-3.35,0-7.82,1.71-13.4,5.12s-12.85,8.59-21.82,15.53c-3.41,2.66-5.57,4.38-6.46,5.16s-1.34,1.43-1.34,1.95c0,.69.55,1.04,1.65,1.04.46,0,2.02-.17,4.68-.52s4.77-.52,6.33-.52c2.6,0,3.9.46,3.9,1.39,0,.81-.54,1.45-1.61,1.91-1.07.46-2.54.93-4.42,1.39s-4.44,1.1-7.68,1.91c-3.47.93-7.16,2.25-11.06,3.99-3.9,1.73-6.14,2.6-6.72,2.6-1.1,0-1.78-.4-2.04-1.21s-.39-2.14-.39-3.99c0-8.21,1.36-14.56,4.08-19.04s7.58-9.15,14.57-14.01c7.98-5.55,15.61-10.16,22.9-13.84,7.29-3.67,13.58-6.36,18.87-8.07s9.18-2.56,11.67-2.56,4.84,1.56,7.24,4.68,3.6,6.42,3.6,9.89h0ZM366.34,124.75c-8.39,11.1-14.76,19-19.13,23.68s-7.94,7.03-10.71,7.03c-2.2,0-4.22-.91-6.07-2.73-1.85-1.82-3.28-4.28-4.29-7.37s-1.52-6.4-1.52-9.93c0-2.31.22-4.39.65-6.25.43-1.85,1.26-3.89,2.47-6.12s2.82-4.64,4.81-7.24c2-2.6,4.44-5.55,7.33-8.85,1.73-2.02,3.19-3.73,4.38-5.12,1.18-1.39,2.34-2.33,3.47-2.82s2.96-.74,5.51-.74c1.85,0,3.61.25,5.29.74,1.68.49,2.52,1,2.52,1.52,0,1.04-.85,2.92-2.56,5.64s-4.45,6.03-8.24,9.93c-3.79,3.9-8.17,7.74-13.14,11.49-1.1,3.41-1.65,6.01-1.65,7.81,0,2.49.95,3.73,2.86,3.73.69,0,1.85-.59,3.47-1.78,1.62-1.18,4.35-3.47,8.2-6.85,3.84-3.38,7.3-6.38,10.37-8.98,2.25-1.97,4.87-4.9,7.85-8.8s5.39-6.84,7.24-8.8c4.28-4.51,7.2-7.44,8.76-8.8s3.06-2.04,4.51-2.04,2.33.43,2.82,1.3c.49.87.74,2.63.74,5.29,0,1.21-.12,2.2-.35,2.95s-.71,1.72-1.43,2.91-2.18,3.37-4.38,6.55-4.8,6.94-7.81,11.28c-1.66,2.38-3.09,4.93-4.25,7.59-1.21,2.75-1.82,4.81-1.82,6.2,0,3.01,1.18,4.51,3.56,4.51,1.96,0,4.25-.81,6.85-2.43s6.59-4.54,11.97-8.76v5.81c-6.77,6.25-11.77,10.79-15.01,13.62s-6.04,4.97-8.41,6.42-4.63,2.17-6.77,2.17c-4.86,0-7.29-2.89-7.29-8.67,0-2.2.72-5.16,2.17-8.89,1.44-3.73,3.79-9.12,7.03-16.18v-.02Z" style="fill:#306fff; stroke-width:0px;"/><path d="M407.71,133.77v2.17c0,3.41.84,6.07,2.52,7.98,1.68,1.91,3.87,2.86,6.59,2.86s5.77-.66,8.8-2c3.04-1.33,6.06-3.09,9.07-5.29s6.68-5.15,11.02-8.85v5.29c-6.54,7.87-12.67,13.89-18.39,18.09-5.72,4.19-11.54,6.29-17.44,6.29-5.15,0-9.22-2-12.23-5.99s-4.51-9.46-4.51-16.39c0-6.07,1.42-11.58,4.25-16.52s7.46-10.16,13.88-15.66c4.39-3.76,8.76-6.59,13.1-8.5s8.21-2.86,11.62-2.86c2.72,0,4.87.62,6.46,1.86s2.39,3.11,2.39,5.59c0,3.64-1.36,7.27-4.08,10.89s-6.87,7.2-12.45,10.76c-5.58,3.56-12.45,6.98-20.6,10.28h0ZM408.58,128.13c5.2-2.02,9.66-4.54,13.36-7.55,3.7-3.01,6.43-5.88,8.2-8.63,1.76-2.75,2.65-4.76,2.65-6.03s-.61-2-1.82-2c-1.04,0-2.73.67-5.07,2s-4.71,3.07-7.11,5.21-4.55,4.66-6.46,7.55c-1.9,2.86-3.17,6.08-3.73,9.46h-.02ZM585.37,132.9c-1.45-2.66-3.61-5.06-6.51-7.2-2.89-2.14-6.15-3.86-9.76-5.16s-7.39-2.27-11.32-2.91c-11.68-1.74-22.58-5.52-32.7-11.36-.87-.46-1.79-1.44-2.78-2.95-.98-1.5-1.47-2.95-1.47-4.34,0-5.09.85-10.19,2.56-15.31,1.71-5.12,3.89-9.12,6.55-12.01,4.28-4.8,11.98-8.99,23.12-12.58,11.13-3.58,23.67-5.38,37.6-5.38,8.33,0,14.76.64,19.3,1.91s6.81,3.24,6.81,5.9c0,4.34-.59,7.69-1.78,10.06s-2.46,3.95-3.82,4.73c-1.36.78-3.75,1.84-7.16,3.17-3.64,1.27-6.81,2.6-9.5,3.99s-4.99,2.72-6.9,3.99c-1.91,1.27-3.09,1.91-3.56,1.91-.58,0-.87-.23-.87-.69,0-.98,1.03-2.47,3.08-4.47s4.58-3.74,7.59-5.25c3.18-1.68,4.77-2.75,4.77-3.21,0-.75-1.76-1.13-5.29-1.13-10.7,0-20.59.95-29.67,2.86s-16.24,4.42-21.47,7.55c-5.23,3.12-7.85,6.3-7.85,9.54,0,2.02,1.08,3.46,3.25,4.29,2.17.84,6.95,2.24,14.36,4.21,7.4,1.97,14.02,4.22,19.86,6.77,8.38,3.59,14.6,7.32,18.65,11.19,4.05,3.88,6.07,8.21,6.07,13.01,0,3.3-.8,6.61-2.39,9.93-1.59,3.33-3.92,6.38-6.98,9.15-3.07,2.78-6.59,5.06-10.58,6.85-3.41,1.45-7.71,2.8-12.88,4.08-5.18,1.27-10.79,2.27-16.83,2.99-6.04.72-11.81,1.08-17.31,1.08-10.12,0-18.26-.95-24.42-2.86s-9.24-4.8-9.24-8.67c0-1.74,1.04-4.44,3.12-8.11s4.54-6.14,7.37-7.42c2.49-.98,4.89-1.55,7.2-1.69,2.31-.14,3.47.13,3.47.82,0,.17-.09.35-.26.52s-.38.32-.61.43c-.23.12-.46.23-.69.35-1.16.46-2.1.82-2.82,1.08-.72.26-1.3.52-1.74.78-.43.26-.65.62-.65,1.08,0,1.21,5.99,1.82,17.96,1.82,10.41,0,18.94-.38,25.59-1.13s12.52-2.11,17.61-4.08c5.09-1.97,9.71-4.68,13.88-8.15l.04.02ZM640.8,85.63h3.73c3.06-5.49,5.84-9.38,8.33-11.67,2.49-2.28,5.32-3.43,8.5-3.43s4.77.72,4.77,2.17c0,.69-1.24,2.57-3.73,5.64s-4.37,5.64-5.64,7.72c1.96.23,3.71.43,5.25.61,1.53.17,2.73.32,3.6.43-3.3,6.13-7.43,12.4-12.4,18.82l-4.08-.3c-1.1-.09-2.21-.17-3.34-.26s-2.5-.19-4.12-.3c-3.12,5.03-5.74,9.53-7.85,13.49s-3.73,7.59-4.86,10.89-1.69,6.42-1.69,9.37c0,3.99,1.59,5.99,4.77,5.99,2.2,0,5.07-1.17,8.63-3.51s8.31-5.94,14.27-10.8v5.81c-15.61,16.95-27.15,25.42-34.61,25.42-2.6,0-4.7-1.01-6.29-3.04-1.59-2.02-2.38-4.63-2.38-7.81,0-2.14.45-4.68,1.34-7.63.9-2.95,2.5-7.4,4.81-13.36-.81.69-1.58,1.37-2.3,2.04s-1.39,1.27-2,1.82-1.26,1.13-1.95,1.73c-.69.61-1.39,1.23-2.08,1.87v-5.99c6.07-5.09,13.42-14.02,22.03-26.8-.87-.06-1.68-.1-2.43-.13s-1.65-.04-2.69-.04c-3.41,0-5.96.23-7.63.69-.69.17-1.34.36-1.95.56s-1.03.3-1.26.3-.35-.17-.35-.52c0-1.91,1.18-4.77,3.56-8.59,1.91-3.24,3.72-5.64,5.42-7.2,1.71-1.56,3.79-2.62,6.25-3.17,2.46-.55,5.91-.82,10.37-.82h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M664.91,115.12c8.79-7.98,17.32-13.91,25.59-17.78s14.66-5.81,19.17-5.81c1.21,0,2.34.51,3.38,1.52,1.04,1,1.88,2.19,2.47,3.51.61,1.33.91,2.31.91,2.95,0,1.04-.41,1.81-1.21,2.3-.81.49-2.23,1.08-4.25,1.78.4.93.92,2.11,1.56,3.56s1.13,2.62,1.47,3.51c.35.9.52,1.69.52,2.39,0,1.39-1.4,3.98-4.21,7.76-2.81,3.79-4.77,6.58-5.9,8.37-1.13,1.79-1.69,3.99-1.69,6.59,0,4.28,1.96,6.42,5.9,6.42s10.38-3.79,19-11.36v5.29c-14.63,16.25-25.1,24.38-31.4,24.38-2.26,0-3.86-.74-4.81-2.21s-1.43-3.66-1.43-6.55c0-4.57,1.65-11.19,4.94-19.86-8.44,9.37-14.72,16.03-18.82,20-4.11,3.96-7.49,5.94-10.15,5.94-1.27,0-2.86-1.1-4.77-3.3-1.91-2.2-3.6-5.04-5.07-8.54-1.47-3.5-2.21-7.13-2.21-10.89,0-2.72.26-4.99.78-6.81s1.53-3.69,3.04-5.59c1.5-1.91,3.9-4.42,7.2-7.55v-.02ZM706.46,105.58c-15.04,6.88-25.75,12.72-32.14,17.52s-9.59,9.75-9.59,14.83c0,1.85.32,3.37.95,4.55.64,1.19,1.5,1.78,2.6,1.78.64,0,1.76-.4,3.38-1.21,6.07-3.58,11.62-8.25,16.66-14.01,5.03-5.75,11.07-13.58,18.13-23.46h.01Z" style="fill:#306fff; stroke-width:0px;"/><path d="M779.07,130.82v5.81c-6.19,6.07-11.23,10.79-15.14,14.14-3.9,3.35-7.55,5.96-10.93,7.81-3.38,1.85-6.69,2.78-9.93,2.78s-6.1-1.26-8.76-3.77c-2.66-2.52-4.74-5.81-6.25-9.89-1.5-4.08-2.26-8.4-2.26-12.97,0-3.93.87-7.43,2.6-10.5,1.74-3.07,5.09-7.03,10.06-11.88,5.9-5.78,11.38-10.25,16.44-13.4s9.04-4.73,11.93-4.73c2.08,0,3.85.72,5.29,2.17s2.17,3.27,2.17,5.46c0,1.85-.95,4.48-2.86,7.89-1.91,3.41-4.05,6.38-6.42,8.89-2.37,2.52-4.25,3.77-5.64,3.77-1.5,0-2.25-.81-2.25-2.43.06-.46.1-.9.13-1.3s.04-.81.04-1.21c0-.69-.25-1.08-.74-1.17s-1.08.13-1.78.65c-5.78,4.05-9.75,6.9-11.88,8.54-2.14,1.65-3.83,3.31-5.07,4.99s-1.87,3.44-1.87,5.29c0,3.41,1.1,6.19,3.3,8.33s5.06,3.21,8.59,3.21,8.02-1.4,13.14-4.21c5.12-2.8,11.15-6.9,18.09-12.27h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M844.13,130.65v5.81c-6.48,7.58-11.91,13.32-16.31,17.22s-8.07,5.86-11.02,5.86-5.39-.84-7.68-2.52c-2.29-1.68-4.34-3.99-6.16-6.94-1.82-2.95-3.98-7.05-6.46-12.32-2.95,3.64-5.61,7.04-7.98,10.19-2.37,3.15-4.02,5.25-4.94,6.29-.93,1.04-1.77,1.56-2.52,1.56-1.56,0-2.69-1-3.38-2.99-.69-2-1.04-4.9-1.04-8.72,0-5.21.62-10.22,1.87-15.05,1.24-4.83,3.04-9.53,5.38-14.1s5.35-9.5,9.02-14.79c3.67-5.29,7.79-10.83,12.36-16.61,6.3-7.98,11.74-14.5,16.31-19.56,4.57-5.06,8.54-8.88,11.93-11.45,3.38-2.57,6.2-3.86,8.46-3.86,2.78,0,4.16,1.24,4.16,3.73,0,2.14-5.12,9.85-15.35,23.12-10.24,13.27-25.16,31.39-44.76,54.35v7.46c13.13-14.05,23.69-24.49,31.71-31.31,8.01-6.82,14.21-10.24,18.61-10.24,1.79,0,3.18,1.06,4.16,3.17s1.47,4.55,1.47,7.33c0,5.67-2.43,10.92-7.29,15.74-4.86,4.83-12.32,10.37-22.38,16.61,1.74,2.6,3.27,4.5,4.6,5.68,1.33,1.19,3.01,1.78,5.03,1.78,1.79,0,3.73-.61,5.81-1.82s4.21-2.75,6.38-4.6,5.51-4.86,10.02-9.02h-.01ZM809.86,135.07c2.2-1.45,4.93-3.69,8.2-6.72,3.27-3.04,6.06-6.19,8.37-9.46s3.47-6,3.47-8.2c0-.92-.41-1.39-1.21-1.39-2.2,0-5.97,2.11-11.32,6.33-5.35,4.22-10.57,9.63-15.66,16.22,2.2,0,4.92,1.07,8.15,3.21h0ZM951.78,140.71l2.86,2.17c-.75,1.62-1.47,3.04-2.17,4.25-.69,1.21-1.53,2.69-2.52,4.42-.98,1.73-1.73,3.04-2.25,3.9-4.34,7.58-8.41,11.36-12.23,11.36-1.62,0-3.01-.64-4.16-1.91-1.16-1.27-1.73-3.01-1.73-5.2,0-3.12,1.11-7.4,3.34-12.84,2.23-5.43,5.67-12.13,10.32-20.08s10.51-16.96,17.57-27.02c7.05-10.06,15.01-20.67,23.85-31.84-5.09-.75-11.13-1.13-18.13-1.13-8.04,0-16.99.9-26.85,2.69s-18.45,3.86-25.76,6.2c-7.32,2.34-10.97,4.06-10.97,5.16,0,.41.14.68.43.82.29.15.77.26,1.43.35s1.52.19,2.56.3c6.77.93,10.15,1.97,10.15,3.12,0,.58-1.47.85-4.42.82s-6.51-.04-10.67-.04c-3.3,0-5.68-.13-7.16-.39s-2.46-.75-2.95-1.47-.74-1.84-.74-3.34c0-.98.29-3.12.87-6.42,1.1-6.13,2.79-11.04,5.07-14.75,2.28-3.7,5.78-6.72,10.5-9.06,4.71-2.34,11.2-4.21,19.47-5.59,13.88-2.37,25.36-3.56,34.44-3.56,6.71,0,12,.27,15.88.82,3.87.55,6.72,1.34,8.54,2.39,1.82,1.04,2.98,2.07,3.47,3.08s1.14,2.76,1.95,5.25l2.69,7.98c.17.52.32.94.43,1.26.12.32.22.65.3,1,.09.35.13.67.13.95,0,2.26-.51,4.28-1.52,6.07s-2.86,4.48-5.55,8.07-4.67,6.39-5.94,8.41c-14.92,24.23-25.1,42.16-30.53,53.78v.02ZM991.94,115.12c8.79-7.98,17.32-13.91,25.59-17.78s14.66-5.81,19.17-5.81c1.21,0,2.34.51,3.38,1.52,1.04,1,1.88,2.19,2.47,3.51.61,1.33.91,2.31.91,2.95,0,1.04-.41,1.81-1.21,2.3-.81.49-2.23,1.08-4.25,1.78.4.93.92,2.11,1.56,3.56s1.13,2.62,1.47,3.51c.35.9.52,1.69.52,2.39,0,1.39-1.4,3.98-4.21,7.76-2.81,3.79-4.77,6.58-5.9,8.37-1.13,1.79-1.69,3.99-1.69,6.59,0,4.28,1.96,6.42,5.9,6.42s10.38-3.79,19-11.36v5.29c-14.63,16.25-25.1,24.38-31.4,24.38-2.26,0-3.86-.74-4.81-2.21s-1.43-3.66-1.43-6.55c0-4.57,1.65-11.19,4.94-19.86-8.44,9.37-14.72,16.03-18.82,20-4.11,3.96-7.49,5.94-10.15,5.94-1.27,0-2.86-1.1-4.77-3.3-1.91-2.2-3.6-5.04-5.07-8.54-1.47-3.5-2.21-7.13-2.21-10.89,0-2.72.26-4.99.78-6.81s1.53-3.69,3.04-5.59c1.5-1.91,3.9-4.42,7.2-7.55v-.02ZM1033.49,105.58c-15.04,6.88-25.75,12.72-32.14,17.52s-9.59,9.75-9.59,14.83c0,1.85.32,3.37.95,4.55.64,1.19,1.5,1.78,2.6,1.78.64,0,1.76-.4,3.38-1.21,6.07-3.58,11.62-8.25,16.66-14.01,5.03-5.75,11.07-13.58,18.13-23.46h.01Z" style="fill:#306fff; stroke-width:0px;"/><path d="M1111.3,130.82v5.64c-6.02,3.82-10.76,5.72-14.23,5.72-1.91,0-3.93-.32-6.07-.95-5.2,6.59-9.67,11.42-13.4,14.49s-7.47,4.6-11.23,4.6c-4.34,0-7.68-2.29-10.02-6.85-2.34-4.57-3.51-10.24-3.51-17,0-9.2,2.78-19.21,8.33-30.06,5.56-10.85,12.29-21.07,20.08-30.45,7.84-9.46,15.43-17.28,22.77-23.46,7.34-6.19,12.32-9.28,14.92-9.28s3.73,1.71,3.73,5.12c0,15.15-19.43,41.58-58.29,79.29-.12,1.04-.17,3.09-.17,6.16,0,7.98,2.14,11.97,6.42,11.97,1.68,0,3.37-.68,5.07-2.04,1.71-1.36,4.32-3.95,7.85-7.76-1.39-3.12-2.08-5.44-2.08-6.94,0-3.18,1.3-6.62,3.9-10.32s5.57-6.9,8.89-9.59c3.33-2.69,5.74-4.03,7.24-4.03,2.37,0,3.56,1.71,3.56,5.12,0,2.6-.68,5.72-2.04,9.37-1.36,3.64-3.34,7.81-5.94,12.49.98.81,1.76,1.4,2.34,1.78s1.45.56,2.6.56c2.66,0,5.75-1.18,9.28-3.56v-.02ZM1067.24,117.81c3.01-2.6,6.03-5.68,9.06-9.24s7.47-9.01,13.32-16.35c5.61-7.05,10.02-12.94,13.23-17.65s5.62-8.63,7.24-11.75c1.62-3.12,2.43-5.26,2.43-6.42,0-.87-.23-1.3-.69-1.3-1.27,0-3.92,2.1-7.94,6.29-4.02,4.19-8.6,9.93-13.75,17.22-7.11,10.06-12.26,17.64-15.44,22.73-3.18,5.09-5.67,10.58-7.46,16.48h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M1110.96,133.08v-2.08c14.92-15.73,25.18-26.75,30.79-33.05,1.27-7.11,4.34-10.67,9.19-10.67,1.21,0,2.52.35,3.9,1.04l.52,1.65c-.23.69-.35,1.68-.35,2.95,0,1.1.42,3.14,1.26,6.12s1.49,5.48,1.95,7.5.69,4.31.69,6.85c0,3.82-.87,7.48-2.6,10.97-1.73,3.5-4.25,6.85-7.55,10.06-3.3,3.21-7.55,6.49-12.75,9.85,2.08.35,3.73.52,4.94.52,2.37,0,4.93-.59,7.68-1.78,2.75-1.18,5.55-2.78,8.41-4.77,2.86-2,6.2-4.58,10.02-7.76v5.81c-7.4,7.23-14.02,12.71-19.86,16.44s-10.87,5.59-15.09,5.59c-5.44,0-10.47-2.31-15.09-6.94-2.72-2.78-4.41-5.43-5.08-7.98-.67-2.54-1-5.99-1-10.32h.02ZM1143.31,119.8l-1.56-12.66c-3.59,4.05-11.25,11.83-22.99,23.33,3.47.75,5.84,1.76,7.11,3.04,1.27,1.27,3.06,3.73,5.38,7.37,3.93-1.62,6.95-3.83,9.07-6.64,2.11-2.8,3.17-6.64,3.17-11.49,0-.58-.01-1.1-.04-1.56s-.07-.92-.13-1.39h0Z" style="fill:#306fff; stroke-width:0px;"/><g style="isolation:isolate;"><text transform="translate(943.45 229.96)" style="fill:#00d797; font-family:ArialMT, Arial; font-size:24px; isolation:isolate;"><tspan x="0" y="0">version: ${e}</tspan></text></g></svg>`,a="data:image/svg+xml;base64,"+Jr(o),u="font-size: 1px; padding: "+Math.floor(100/4)+"px "+Math.floor(580/2)+"px; line-height: "+Math.floor(100/2)+"px;";window.console.log("%c+",u+`background-image: url(${a});background-size: 580px 100px;background-repeat: norepeat; color: transparent;`)},qt=()=>{const{attrs:e,props:t}=r.getCurrentInstance(),{pageShown:n,getTab:o,markDeletableCache:s,removeComponent:i,getComponent:a,addPageScroller:u}=de(),c=F.useRoute(),f=F.useRouter();let p="",d="";p=e.tId||t.tId;const h=e.pId||t.pId;return d=c.query.__tab,{forward:A=>{n.value=!1;const x=Z({__tab:d},A.query);f.push({path:A.path,query:x})},backward:(A,x)=>{n.value=!1;const T=o(p);if(!T)return;const v=T.pages;let k=0;if(typeof A=="number")k=Math.abs(A);else{let b=1,g=!1;const R=v.list(),U=Ue(A);x=Z(U.query,x);for(let W=v.size()-2;W>=0;W--){if(R[W].path===U.path){g=!0;break}b+=1}g&&(k=b)}if(k===0||v.size()<=k)return;for(let b=0;b<k;b++){const g=v.pop();i(g.id),s(g.id)}const S=v==null?void 0:v.peek(),l=a(S.id);if(l!=null){const b=l.components.DynamicComponent;b.props=Z(x,b.props)}f.push({path:S.path,query:S.query})},addScroller:(...A)=>{u(h,...A)}}},Qr=r.defineComponent({__name:"iframe",setup(e){return qt(),(t,n)=>(r.openBlock(),r.createElementBlock("div"))}}),eo=()=>{const e=fe(),{attrs:t}=r.getCurrentInstance();r.onUnmounted(()=>{o()});const n=()=>{e.emit(P.PAGE_LOADING,{tId:t.tId,value:!0})},o=()=>{e.emit(P.PAGE_LOADING,{tId:t.tId,value:!1})};return{openTabLoading:n,closeTabLoading:o}},to={install(e,t){Kr("0.1.27"),e.component("VueStackTabs",Dt).use(Ln).use(sn().getI18n(t))}};N.IFrame=Qr,N.Stack=ke,N.StackTab=Dt,N.TabHeaderButton=Ce,N.TabScrollMode=Y,N.default=to,N.useStackTab=jt,N.useTabLoading=eo,N.useTabRouter=qt,Object.defineProperties(N,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
5
|
+
*/const Kt=["__proto__","prototype","constructor"];function Qt(e){const t=typeof e;return e!==null&&(t==="object"||t==="function")}function en(e){return!(Array.isArray(e)?e.length:Object.keys(e).length)}function tn(e){return!e.some(t=>Kt.indexOf(t)!==-1)}function nn(e){const t=e.split("."),n=[];for(let o=0;o<t.length;o++){let s=t[o];for(;s[s.length-1]==="\\"&&t[o+1]!==void 0;)s=s.slice(0,-1)+".",s+=t[++o];n.push(s)}return tn(n)?n:[]}function Ke(e,t){if(!Qt(e))return"";const n=nn(t);if(n.length===0)return"";let o=Object.assign({},e);for(let s=0;s<n.length;s++){if(typeof o[n[s]]=="string")return o[n[s]];if(o=o[n[s]],o==null){if(s!==n.length-1)return"";break}}return""}function rn(e,t){if(Array.isArray(t)){const n={},o=[...e.matchAll(/{(.+?)}/g)];return o&&o.forEach((s,i)=>{t[i]&&(n[s[1]]=t[i])}),n}return t}function on(e,t){for(const n in t)e=e.replace(`{${n}}`,String(t[n]));return e}function Qe(e,t){return Object.keys(t).forEach(n=>{t[n]instanceof Object&&n in e&&(t[n]={...t[n],...Qe(e[n],t[n])})}),{...e||{},...t}}const sn=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",et=(e=>sn?Symbol(e):"_vt_"+e)("i18n");function we(){return r.inject(et)}function an(e){const t=Object.assign({locale:"en",fallbackLocale:"en",messages:{}},e),n=r.ref(t.locale),o=r.reactive({});return Object.entries(t.messages).forEach(([s,i])=>{o[s]=i}),{t(s,i){if(!s)return"";const a=typeof i=="string"&&i?i:n.value;let u=Ke(o[a],s)||Ke(o[t.fallbackLocale],s);if(i&&typeof i!="string"){const l=rn(u,i);en(l)||(u=on(u,l))}return u||s},current:r.readonly(n),options:r.readonly(e||{}),install(s){const i=this;s.config.globalProperties.$t=i.t,s.provide(et,i)},changeLocale(s){n.value=s},setLocaleMessage(s,i){o[s]=Qe(r.toRaw(o[s]||{}),i)},getLocaleMessage(s){return o[s]||{}}}}const cn=()=>{const e=Object.assign({"./lang/en.ts":Yt,"./lang/zh-CN.ts":Jt});function t(s,i){for(const a in s)if(s[a].default){const u=a.substring(a.lastIndexOf("/")+1,a.lastIndexOf("."));i[u]?i[u]={...s[u],...s[a].default}:i[u]=s[a].default}}const n=()=>{const s={};return t(e,s),s};return{getI18n:s=>{const i={...n()};if(s)for(const a of s)i[a.locale]=a.messages;return an({locale:"zh-CN",fallbackLocale:"en",messages:i})}}},tt=({wrap:e,left:t=0,top:n=0,smooth:o=!0})=>{e&&(e.scrollTo?e.scrollTo({left:t,top:n,behavior:o?"smooth":"auto"}):(e.scrollLeft=t,e.scrollTop=n))};function ln({el:e,wrap:t,block:n="start",inline:o="nearest"}){if(!(!e||!t))if(e.scrollIntoView)e.scrollIntoView({behavior:"smooth",block:n,inline:o});else{const{offsetLeft:s,offsetTop:i}=e;let a,u;n==="center"?u=i+(e.clientHeight-t.clientHeight)/2:u=i,o==="center"?a=s+(e.clientWidth-t.clientWidth)/2:a=s,tt({wrap:t,left:a,top:u})}}const nt=(e=".stack-tab__container *")=>{const t=Array.from(document.querySelectorAll(e)).map(n=>+window.getComputedStyle(n).zIndex||0);return t.length?Math.max(...t.filter(n=>n<9e4))+1:1};var K=(e=>(e.WHEEL="wheel",e.BUTTON="button",e.BOTH="both",e))(K||{});class _e{constructor(t){Xt(this,"items");if(this.items=new Map,t)for(const n of t)this.push(n)}push(t){this.items.set(this.items.size,t)}pop(){if(this.isEmpty())return;const t=this.items.get(this.items.size-1);return this.items.delete(this.items.size-1),t}peek(){if(!this.isEmpty())return this.items.get(this.items.size-1)}isEmpty(){return this.items.size===0}size(){return this.items.size}clear(){this.items.clear()}list(){return Array.from(this.items.values())}toString(){if(this.isEmpty())return"";let t="";return this.items.forEach((n,o)=>{t=`${t}${o===0?"":", "}${n}`}),t}toJSON(){return Array.from(this.items.values())}}function ze(e){if(!$e(e))throw new Error("Parameter was not an error")}function $e(e){return fn(e)==="[object Error]"||e instanceof Error}function fn(e){return Object.prototype.toString.call(e)}function un(e){let t,n="";if(e.length===0)t={};else if($e(e[0]))t={cause:e[0]},n=e.slice(1).join(" ")||"";else if(e[0]&&typeof e[0]=="object")t=Object.assign({},e[0]),n=e.slice(1).join(" ")||"";else if(typeof e[0]=="string")t={},n=n=e.join(" ")||"";else throw new Error("Invalid arguments passed to Layerr");return{options:t,shortMessage:n}}class D extends Error{constructor(t,n){const o=[...arguments],{options:s,shortMessage:i}=un(o);let a=i;if(s.cause&&(a=`${a}: ${s.cause.message}`),super(a),this.message=a,s.name&&typeof s.name=="string"?this.name=s.name:this.name="Layerr",s.cause&&Object.defineProperty(this,"_cause",{value:s.cause}),Object.defineProperty(this,"_info",{value:{}}),s.info&&typeof s.info=="object"&&Object.assign(this._info,s.info),Error.captureStackTrace){const u=s.constructorOpt||this.constructor;Error.captureStackTrace(this,u)}}static cause(t){return ze(t),t._cause&&$e(t._cause)?t._cause:null}static fullStack(t){ze(t);const n=D.cause(t);return n?`${t.stack}
|
|
6
|
+
caused by: ${D.fullStack(n)}`:t.stack}static info(t){ze(t);const n={},o=D.cause(t);return o&&Object.assign(n,D.info(o)),t._info&&Object.assign(n,t._info),n}cause(){return D.cause(this)}toString(){let t=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t=`${t}: ${this.message}`),t}}const rt="0123456789ABCDEFGHJKMNPQRSTVWXYZ",fe=32,ot=0xffffffffffff,dn=10,hn=16,ue=Object.freeze({source:"ulid"});function pn(e){const t=e||bn(),n=t&&(t.crypto||t.msCrypto)||null;if(typeof(n==null?void 0:n.getRandomValues)=="function")return()=>{const o=new Uint8Array(1);return n.getRandomValues(o),o[0]/255};if(typeof(n==null?void 0:n.randomBytes)=="function")return()=>n.randomBytes(1).readUInt8()/255;throw new D({info:{code:"PRNG_DETECT",...ue}},"Failed to find a reliable PRNG")}function bn(){return yn()?self:typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:null}function mn(e,t){let n="";for(;e>0;e--)n=kn(t)+n;return n}function gn(e,t){if(isNaN(e))throw new D({info:{code:"ENC_TIME_NAN",...ue}},`Time must be a number: ${e}`);if(e>ot)throw new D({info:{code:"ENC_TIME_SIZE_EXCEED",...ue}},`Cannot encode a time larger than ${ot}: ${e}`);if(e<0)throw new D({info:{code:"ENC_TIME_NEG",...ue}},`Time must be positive: ${e}`);if(Number.isInteger(e)===!1)throw new D({info:{code:"ENC_TIME_TYPE",...ue}},`Time must be an integer: ${e}`);let n,o="";for(let s=t;s>0;s--)n=e%fe,o=rt.charAt(n)+o,e=(e-n)/fe;return o}function yn(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function kn(e){let t=Math.floor(e()*fe);return t===fe&&(t=fe-1),rt.charAt(t)}function st(e,t){const n=t||pn(),o=isNaN(e)?Date.now():e;return gn(o,dn)+mn(hn,n)}var Re={exports:{}};Re.exports,function(e){var t=function(){var n=String.fromCharCode,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",i={};function a(l,f){if(!i[l]){i[l]={};for(var p=0;p<l.length;p++)i[l][l.charAt(p)]=p}return i[l][f]}var u={compressToBase64:function(l){if(l==null)return"";var f=u._compress(l,6,function(p){return o.charAt(p)});switch(f.length%4){default:case 0:return f;case 1:return f+"===";case 2:return f+"==";case 3:return f+"="}},decompressFromBase64:function(l){return l==null?"":l==""?null:u._decompress(l.length,32,function(f){return a(o,l.charAt(f))})},compressToUTF16:function(l){return l==null?"":u._compress(l,15,function(f){return n(f+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:u._decompress(l.length,16384,function(f){return l.charCodeAt(f)-32})},compressToUint8Array:function(l){for(var f=u.compress(l),p=new Uint8Array(f.length*2),d=0,h=f.length;d<h;d++){var _=f.charCodeAt(d);p[d*2]=_>>>8,p[d*2+1]=_%256}return p},decompressFromUint8Array:function(l){if(l==null)return u.decompress(l);for(var f=new Array(l.length/2),p=0,d=f.length;p<d;p++)f[p]=l[p*2]*256+l[p*2+1];var h=[];return f.forEach(function(_){h.push(n(_))}),u.decompress(h.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":u._compress(l,6,function(f){return s.charAt(f)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),u._decompress(l.length,32,function(f){return a(s,l.charAt(f))}))},compress:function(l){return u._compress(l,16,function(f){return n(f)})},_compress:function(l,f,p){if(l==null)return"";var d,h,_={},S={},C="",A="",x="",v=2,T=3,y=2,E=[],c=0,m=0,w;for(w=0;w<l.length;w+=1)if(C=l.charAt(w),Object.prototype.hasOwnProperty.call(_,C)||(_[C]=T++,S[C]=!0),A=x+C,Object.prototype.hasOwnProperty.call(_,A))x=A;else{if(Object.prototype.hasOwnProperty.call(S,x)){if(x.charCodeAt(0)<256){for(d=0;d<y;d++)c=c<<1,m==f-1?(m=0,E.push(p(c)),c=0):m++;for(h=x.charCodeAt(0),d=0;d<8;d++)c=c<<1|h&1,m==f-1?(m=0,E.push(p(c)),c=0):m++,h=h>>1}else{for(h=1,d=0;d<y;d++)c=c<<1|h,m==f-1?(m=0,E.push(p(c)),c=0):m++,h=0;for(h=x.charCodeAt(0),d=0;d<16;d++)c=c<<1|h&1,m==f-1?(m=0,E.push(p(c)),c=0):m++,h=h>>1}v--,v==0&&(v=Math.pow(2,y),y++),delete S[x]}else for(h=_[x],d=0;d<y;d++)c=c<<1|h&1,m==f-1?(m=0,E.push(p(c)),c=0):m++,h=h>>1;v--,v==0&&(v=Math.pow(2,y),y++),_[A]=T++,x=String(C)}if(x!==""){if(Object.prototype.hasOwnProperty.call(S,x)){if(x.charCodeAt(0)<256){for(d=0;d<y;d++)c=c<<1,m==f-1?(m=0,E.push(p(c)),c=0):m++;for(h=x.charCodeAt(0),d=0;d<8;d++)c=c<<1|h&1,m==f-1?(m=0,E.push(p(c)),c=0):m++,h=h>>1}else{for(h=1,d=0;d<y;d++)c=c<<1|h,m==f-1?(m=0,E.push(p(c)),c=0):m++,h=0;for(h=x.charCodeAt(0),d=0;d<16;d++)c=c<<1|h&1,m==f-1?(m=0,E.push(p(c)),c=0):m++,h=h>>1}v--,v==0&&(v=Math.pow(2,y),y++),delete S[x]}else for(h=_[x],d=0;d<y;d++)c=c<<1|h&1,m==f-1?(m=0,E.push(p(c)),c=0):m++,h=h>>1;v--,v==0&&(v=Math.pow(2,y),y++)}for(h=2,d=0;d<y;d++)c=c<<1|h&1,m==f-1?(m=0,E.push(p(c)),c=0):m++,h=h>>1;for(;;)if(c=c<<1,m==f-1){E.push(p(c));break}else m++;return E.join("")},decompress:function(l){return l==null?"":l==""?null:u._decompress(l.length,32768,function(f){return l.charCodeAt(f)})},_decompress:function(l,f,p){var d=[],h=4,_=4,S=3,C="",A=[],x,v,T,y,E,c,m,w={val:p(0),position:f,index:1};for(x=0;x<3;x+=1)d[x]=x;for(T=0,E=Math.pow(2,2),c=1;c!=E;)y=w.val&w.position,w.position>>=1,w.position==0&&(w.position=f,w.val=p(w.index++)),T|=(y>0?1:0)*c,c<<=1;switch(T){case 0:for(T=0,E=Math.pow(2,8),c=1;c!=E;)y=w.val&w.position,w.position>>=1,w.position==0&&(w.position=f,w.val=p(w.index++)),T|=(y>0?1:0)*c,c<<=1;m=n(T);break;case 1:for(T=0,E=Math.pow(2,16),c=1;c!=E;)y=w.val&w.position,w.position>>=1,w.position==0&&(w.position=f,w.val=p(w.index++)),T|=(y>0?1:0)*c,c<<=1;m=n(T);break;case 2:return""}for(d[3]=m,v=m,A.push(m);;){if(w.index>l)return"";for(T=0,E=Math.pow(2,S),c=1;c!=E;)y=w.val&w.position,w.position>>=1,w.position==0&&(w.position=f,w.val=p(w.index++)),T|=(y>0?1:0)*c,c<<=1;switch(m=T){case 0:for(T=0,E=Math.pow(2,8),c=1;c!=E;)y=w.val&w.position,w.position>>=1,w.position==0&&(w.position=f,w.val=p(w.index++)),T|=(y>0?1:0)*c,c<<=1;d[_++]=n(T),m=_-1,h--;break;case 1:for(T=0,E=Math.pow(2,16),c=1;c!=E;)y=w.val&w.position,w.position>>=1,w.position==0&&(w.position=f,w.val=p(w.index++)),T|=(y>0?1:0)*c,c<<=1;d[_++]=n(T),m=_-1,h--;break;case 2:return A.join("")}if(h==0&&(h=Math.pow(2,S),S++),d[m])C=d[m];else if(m===_)C=v+v.charAt(0);else return null;A.push(C),d[_++]=v+C.charAt(0),h--,v=C,h==0&&(h=Math.pow(2,S),S++)}}};return u}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})}(Re);var it=Re.exports;const wn=new TextEncoder,_n=new TextDecoder("utf-8",{ignoreBOM:!0}),at={encode:e=>wn.encode(e),decode:e=>_n.decode(e)},ct=(()=>{const t=[..."0123456789abcdef"],n=new Array(256);for(let o=0;o<256;o++)n[o]=`${t[o>>>4&15]}${t[o&15]}`;return n})(),Tn=(()=>{const e={};for(let t=0;t<256;t++){const n=ct[t],o=n[0],s=o.toUpperCase(),i=n[1],a=i.toUpperCase();e[n]=t,e[`${o}${a}`]=t,e[`${s}${i}`]=t,e[`${s}${a}`]=t}return e})(),Ve={encode:e=>{let t="";for(let n=0,o=e.length;n<o;n++)t+=ct[e[n]];return t},encodeStr:e=>Ve.encode(at.encode(e)),decode:e=>{const t=e.length/2,n=new Uint8Array(t);for(let o=0;o<t;o++)n[o]=Tn[e.slice(o*2,o*2+2)];return n},decodeStr:e=>at.decode(Ve.decode(e)),is:e=>!(e.length%2||!/^[a-fA-F0-9]*$/.test(e))};function de(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function vn(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}function lt(e,...t){if(!vn(e))throw new Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function Pe(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function ft(e,t){lt(e);const n=t.outputLen;if(e.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}const Te=BigInt(2**32-1),ut=BigInt(32);function dt(e,t=!1){return t?{h:Number(e&Te),l:Number(e>>ut&Te)}:{h:Number(e>>ut&Te)|0,l:Number(e&Te)|0}}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const xn=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),ve=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));function Sn(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}const xe=(e,t)=>e<<32-t|e>>>t;if(!(new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68))throw new Error("Non little-endian hardware is not supported");function En(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function je(e){if(typeof e=="string"&&(e=En(e)),!Sn(e))throw new Error(`expected Uint8Array, got ${typeof e}`);return e}class On{clone(){return this._cloneInto()}}function Bn(e){const t=(o,s)=>e(s).update(je(o)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=o=>e(o),t}class An extends On{constructor(t,n,o={},s,i,a){if(super(),this.blockLen=t,this.outputLen=n,this.length=0,this.pos=0,this.finished=!1,this.destroyed=!1,de(t),de(n),de(s),n<0||n>s)throw new Error("outputLen bigger than keyLen");if(o.key!==void 0&&(o.key.length<1||o.key.length>s))throw new Error(`key must be up 1..${s} byte long or undefined`);if(o.salt!==void 0&&o.salt.length!==i)throw new Error(`salt must be ${i} byte long or undefined`);if(o.personalization!==void 0&&o.personalization.length!==a)throw new Error(`personalization must be ${a} byte long or undefined`);this.buffer32=ve(this.buffer=new Uint8Array(t))}update(t){Pe(this);const{blockLen:n,buffer:o,buffer32:s}=this;t=je(t);const i=t.length,a=t.byteOffset,u=t.buffer;for(let l=0;l<i;){this.pos===n&&(this.compress(s,0,!1),this.pos=0);const f=Math.min(n-this.pos,i-l),p=a+l;if(f===n&&!(p%4)&&l+f<i){const d=new Uint32Array(u,p,Math.floor((i-l)/4));for(let h=0;l+n<i;h+=s.length,l+=n)this.length+=n,this.compress(d,h,!1);continue}o.set(t.subarray(l,l+f),this.pos),this.pos+=f,this.length+=f,l+=f}return this}digestInto(t){Pe(this),ft(t,this);const{pos:n,buffer32:o}=this;this.finished=!0,this.buffer.subarray(n).fill(0),this.compress(o,0,!0);const s=ve(t);this.get().forEach((i,a)=>s[a]=i)}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const o=t.slice(0,n);return this.destroy(),o}_cloneInto(t){const{buffer:n,length:o,finished:s,destroyed:i,outputLen:a,pos:u}=this;return t||(t=new this.constructor({dkLen:a})),t.set(...this.get()),t.length=o,t.finished=s,t.destroyed=i,t.outputLen=a,t.buffer.set(n),t.pos=u,t}}const X=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);function Q(e,t,n,o,s){return e=e+t+s|0,o=xe(o^e,16),n=n+o|0,t=xe(t^n,12),{a:e,b:t,c:n,d:o}}function ee(e,t,n,o,s){return e=e+t+s|0,o=xe(o^e,8),n=n+o|0,t=xe(t^n,7),{a:e,b:t,c:n,d:o}}function ht(e,t,n,o,s,i,a,u,l,f,p,d,h,_,S,C,A,x,v,T){let y=0;for(let E=0;E<o;E++)({a:s,b:l,c:h,d:A}=Q(s,l,h,A,n[t+e[y++]])),{a:s,b:l,c:h,d:A}=ee(s,l,h,A,n[t+e[y++]]),{a:i,b:f,c:_,d:x}=Q(i,f,_,x,n[t+e[y++]]),{a:i,b:f,c:_,d:x}=ee(i,f,_,x,n[t+e[y++]]),{a,b:p,c:S,d:v}=Q(a,p,S,v,n[t+e[y++]]),{a,b:p,c:S,d:v}=ee(a,p,S,v,n[t+e[y++]]),{a:u,b:d,c:C,d:T}=Q(u,d,C,T,n[t+e[y++]]),{a:u,b:d,c:C,d:T}=ee(u,d,C,T,n[t+e[y++]]),{a:s,b:f,c:S,d:T}=Q(s,f,S,T,n[t+e[y++]]),{a:s,b:f,c:S,d:T}=ee(s,f,S,T,n[t+e[y++]]),{a:i,b:p,c:C,d:A}=Q(i,p,C,A,n[t+e[y++]]),{a:i,b:p,c:C,d:A}=ee(i,p,C,A,n[t+e[y++]]),{a,b:d,c:h,d:x}=Q(a,d,h,x,n[t+e[y++]]),{a,b:d,c:h,d:x}=ee(a,d,h,x,n[t+e[y++]]),{a:u,b:l,c:_,d:v}=Q(u,l,_,v,n[t+e[y++]]),{a:u,b:l,c:_,d:v}=ee(u,l,_,v,n[t+e[y++]]);return{v0:s,v1:i,v2:a,v3:u,v4:l,v5:f,v6:p,v7:d,v8:h,v9:_,v10:S,v11:C,v12:A,v13:x,v14:v,v15:T}}const pt=(()=>{const e=Array.from({length:16},(o,s)=>s),t=o=>[2,6,3,10,7,0,4,13,1,11,12,5,9,14,15,8].map(s=>o[s]),n=[];for(let o=0,s=e;o<7;o++,s=t(s))n.push(...s);return Uint8Array.from(n)})();class De extends An{constructor(t={},n=0){if(super(64,t.dkLen===void 0?32:t.dkLen,{},Number.MAX_SAFE_INTEGER,0,0),this.flags=0,this.chunkPos=0,this.chunksDone=0,this.stack=[],this.posOut=0,this.bufferOut32=new Uint32Array(16),this.chunkOut=0,this.enableXOF=!0,this.outputLen=t.dkLen===void 0?32:t.dkLen,de(this.outputLen),t.key!==void 0&&t.context!==void 0)throw new Error("Blake3: only key or context can be specified at same time");if(t.key!==void 0){const o=je(t.key).slice();if(o.length!==32)throw new Error("Blake3: key should be 32 byte");this.IV=ve(o),this.flags=n|16}else if(t.context!==void 0){const o=new De({dkLen:32},32).update(t.context).digest();this.IV=ve(o),this.flags=n|64}else this.IV=X.slice(),this.flags=n;this.state=this.IV.slice(),this.bufferOut=xn(this.bufferOut32)}get(){return[]}set(){}b2Compress(t,n,o,s=0){const{state:i,pos:a}=this,{h:u,l}=dt(BigInt(t),!0),{v0:f,v1:p,v2:d,v3:h,v4:_,v5:S,v6:C,v7:A,v8:x,v9:v,v10:T,v11:y,v12:E,v13:c,v14:m,v15:w}=ht(pt,s,o,7,i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],X[0],X[1],X[2],X[3],u,l,a,n);i[0]=f^x,i[1]=p^v,i[2]=d^T,i[3]=h^y,i[4]=_^E,i[5]=S^c,i[6]=C^m,i[7]=A^w}compress(t,n=0,o=!1){let s=this.flags;if(this.chunkPos||(s|=1),(this.chunkPos===15||o)&&(s|=2),o||(this.pos=this.blockLen),this.b2Compress(this.chunksDone,s,t,n),this.chunkPos+=1,this.chunkPos===16||o){let i=this.state;this.state=this.IV.slice();for(let a,u=this.chunksDone+1;(o||!(u&1))&&(a=this.stack.pop());u>>=1)this.buffer32.set(a,0),this.buffer32.set(i,8),this.pos=this.blockLen,this.b2Compress(0,this.flags|4,this.buffer32,0),i=this.state,this.state=this.IV.slice();this.chunksDone++,this.chunkPos=0,this.stack.push(i)}this.pos=0}_cloneInto(t){t=super._cloneInto(t);const{IV:n,flags:o,state:s,chunkPos:i,posOut:a,chunkOut:u,stack:l,chunksDone:f}=this;return t.state.set(s.slice()),t.stack=l.map(p=>Uint32Array.from(p)),t.IV.set(n),t.flags=o,t.chunkPos=i,t.chunksDone=f,t.posOut=a,t.chunkOut=u,t.enableXOF=this.enableXOF,t.bufferOut32.set(this.bufferOut32),t}destroy(){this.destroyed=!0,this.state.fill(0),this.buffer32.fill(0),this.IV.fill(0),this.bufferOut32.fill(0);for(let t of this.stack)t.fill(0)}b2CompressOut(){const{state:t,pos:n,flags:o,buffer32:s,bufferOut32:i}=this,{h:a,l:u}=dt(BigInt(this.chunkOut++)),{v0:l,v1:f,v2:p,v3:d,v4:h,v5:_,v6:S,v7:C,v8:A,v9:x,v10:v,v11:T,v12:y,v13:E,v14:c,v15:m}=ht(pt,0,s,7,t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],X[0],X[1],X[2],X[3],u,a,n,o);i[0]=l^A,i[1]=f^x,i[2]=p^v,i[3]=d^T,i[4]=h^y,i[5]=_^E,i[6]=S^c,i[7]=C^m,i[8]=t[0]^A,i[9]=t[1]^x,i[10]=t[2]^v,i[11]=t[3]^T,i[12]=t[4]^y,i[13]=t[5]^E,i[14]=t[6]^c,i[15]=t[7]^m,this.posOut=0}finish(){if(this.finished)return;this.finished=!0,this.buffer.fill(0,this.pos);let t=this.flags|8;this.stack.length?(t|=4,this.compress(this.buffer32,0,!0),this.chunksDone=0,this.pos=this.blockLen):t|=(this.chunkPos?0:1)|2,this.flags=t,this.b2CompressOut()}writeInto(t){Pe(this,!1),lt(t),this.finish();const{blockLen:n,bufferOut:o}=this;for(let s=0,i=t.length;s<i;){this.posOut>=n&&this.b2CompressOut();const a=Math.min(n-this.posOut,i-s);t.set(o.subarray(this.posOut,this.posOut+a),s),this.posOut+=a,s+=a}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible after digest call");return this.writeInto(t)}xof(t){return de(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(ft(t,this),this.finished)throw new Error("digest() was already called");return this.enableXOF=!1,this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}}const Cn=Bn(e=>new De(e)),bt=e=>{const t=`${e.id}|${e.title}|${e.iframe?"Y":"N"}|${e.closable?"Y":"N"}|${e.refreshable?"Y":"N"}`;return it.compressToEncodedURIComponent(t)},In=e=>{const n=it.decompressFromEncodedURIComponent(e).split("|");return{id:n[0],title:n[1],iframe:n[2]==="Y",closable:n[3]==="Y",refreshable:n[4]==="Y"}},mt=(e,t,n)=>{const o=[];for(const i in n)i.startsWith("__")||o.push({key:i,value:n[i]});o.sort((i,a)=>{let u=0;return i.key>a.key?u=1:i.key<a.key&&(u=-1),u});const s=Cn(`${e}|${t}|${JSON.stringify(o)}`);return Ve.encode(s)};function Ue(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function We(e,t,n=".",o){if(!Ue(t))return We(e,{},n,o);const s=Object.assign({},t);for(const i in e){if(i==="__proto__"||i==="constructor")continue;const a=e[i];a!=null&&(o&&o(s,i,a,n)||(Array.isArray(a)&&Array.isArray(s[i])?s[i]=[...a,...s[i]]:Ue(a)&&Ue(s[i])?s[i]=We(a,s[i],(n?`${n}.`:"")+i.toString(),o):s[i]=a))}return s}function Mn(e){return(...t)=>t.reduce((n,o)=>We(n,o,"",e),{})}const Y=Mn(),Fe=e=>{const t=e.split("?");if(t.length<=1)return{path:t[0],query:{}};{const n=t[1].split("&"),o={};for(const s of n){const i=s.split("=");i[1]!==null&&i[1]!==void 0&&i[1]!==""&&(o[i[0]]=i[1])}return{path:t[0],query:o}}};function Ln(e){return{all:e=e||new Map,on:function(t,n){var o=e.get(t);o?o.push(n):e.set(t,[n])},off:function(t,n){var o=e.get(t);o&&(n?o.splice(o.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var o=e.get(t);o&&o.slice().map(function(s){s(n)}),(o=e.get("*"))&&o.slice().map(function(s){s(t,n)})}}}const Nn=Ln(),zn={install(e){e.provide("tabEmitter",Nn)}},he=()=>r.inject("tabEmitter");var V=(e=>(e.PAGE_LOADING="PAGE_LOADING",e.TAB_ACTIVE="TAB_ACTIVE",e))(V||{});const $n={key:0,class:"stack-tab-loading-mask"},Rn=[r.createElementVNode("div",{class:"stack-tab-loading--spin turn"},null,-1)],Vn=r.defineComponent({__name:"PageLoading",props:{tId:{}},setup(e){const t=e,n=he(),o=r.ref(!1);return n.on(V.PAGE_LOADING,({tId:s,value:i})=>{s===t.tId&&(o.value=i)}),(s,i)=>o.value?(r.openBlock(),r.createElementBlock("div",$n,Rn)):r.createCommentVNode("",!0)}}),I=r.ref([]),Se=[],z=r.ref([]),te=new Map,pe=new Set,J=new Set,re=r.ref(!0),gt="stacktab-active-tab",oe=new Map;let yt=!1,Ee=0,kt=!1;const be=()=>{const e=q.useRouter(),t=he(),n=()=>I.value.length,o=k=>{Se.splice(0),z.value.splice(0),pe.clear(),J.clear(),te.clear();for(const B of k){const b=Y(B,{id:st()}),L=bt(b),j=Fe(b.path),$=Y(b,{closable:!0,refreshable:!0,iframe:!1}),Ne=mt(b.id,j.path,j.query),F={id:Ne,tabId:b.id,path:j.path,query:Y(j.query,{__tab:L})},le=new _e;le.push(F);const Z={id:b.id,title:$.title,closable:$.closable,refreshable:$.refreshable,iframe:$.iframe,active:!1,pages:le};Se.push(Z),I.value.push({...Z}),z.value.push(Ne)}const g=window.sessionStorage.getItem(gt);if(g!=null){const B=JSON.parse(g,(L,j)=>L==="pages"?new _e(j):j);let b=!1;for(const L of I.value)if(L.id===B.id){b=!0;break}b||I.value.push(B)}yt=!0},s=k=>{for(const g of I.value)if(g.id===k)return!0;return!1},i=()=>Ee<=0||Ee>0&&Ee>I.value.length,a=k=>new Promise(g=>{I.value.push(k),g(!0)}),u=k=>{for(const g of I.value)if(g.id===k)return g;return null},l=(k,g)=>{let B;const b=In(k.query.__tab);if(J.has(b.id))return;const L=k.matched[k.matched.length-1].path,j=k.path.endsWith("/")?k.path.substring(0,k.path.length-1):k.path,$=mt(b.id,L===j?j:k.path,k.query.valueOf()),Ne=k.query.__src;let F=null;for(const Z of r.unref(I))Z.active=!1,Z.id===b.id&&(F=Z);const le={id:$,tabId:b.id,path:k.path,query:k.query};if(F===null){const Z=new _e;Z.push(le),F={id:b.id,title:b.title,closable:b.closable,refreshable:b.refreshable,iframe:b.iframe,url:decodeURIComponent(Ne),active:!0,pages:Z},a(F).then(()=>{t.emit(V.TAB_ACTIVE,{id:b.id,isRoute:!1})})}else F.active=!0,(F.pages.isEmpty()||F.pages.peek().id!==le.id)&&F.pages.push(le);return O(F),te.has($)?B=te.get($):(B=r.defineComponent({name:$,components:{DynamicComponent:g},emits:{onLoaded:null},setup(Z,Zt){return r.onMounted(()=>{Zt.emit("onLoaded"),h($,".cache-page-wrapper")}),r.onDeactivated(()=>{p($)}),r.onActivated(()=>{Zt.emit("onLoaded"),f($),w(),J.clear(),g.props=null}),r.onUnmounted(()=>{d($)}),()=>r.createVNode("div",{class:"cache-page-wrapper",id:"W-"+b.id,style:[kt?"overflow:auto":"overflow:hidden"]},[r.createVNode(r.resolveComponent("dynamic-component"),{tId:b.id,pId:$},null),r.createVNode(Vn,{tId:b.id},null)])}}),te.set($,B)),U($),B},f=k=>{const g=oe.get(k);if(g){for(const B of g.keys())if(document.querySelector(B)){const b=g.get(B);document.querySelector(B).scrollTop=b.top,document.querySelector(B).scrollLeft=b.left}}},p=k=>{var B,b;const g=oe.get(k);if(g)for(const L of g.keys()){const j={top:((B=document.querySelector(L))==null?void 0:B.scrollTop)??0,left:((b=document.querySelector(L))==null?void 0:b.scrollLeft)??0};g.set(L,j)}},d=k=>{const g=oe.get(k);g&&(g.clear(),oe.delete(k))},h=(k,...g)=>{oe.has(k)||oe.set(k,new Map);const B=oe.get(k);for(const b of g)B.set(b,{top:0,left:0})},_=k=>{let g="";for(let b=I.value.length-1;b>=0;b--)if(k===r.unref(I)[b].id){if(!r.unref(I)[b].closable)return k;for(const L of r.unref(I)[b].pages.list())c(L.id),m(L.id),J.add(r.unref(I)[b].id);r.unref(I)[b].pages.clear(),I.value.length>1&&r.unref(I)[b].active&&(b===0?g=r.unref(I)[b+1].id:g=r.unref(I)[b-1].id),r.unref(I).splice(b,1);break}g!==""&&t.emit(V.TAB_ACTIVE,{id:g});const B=u(k);return B!=null&&B.active||w(),g},S=()=>{const k=r.unref(I);for(let g=k.length-1;g>=0;g--)if(k[g].closable){for(const B of k[g].pages.list())c(B.id),m(B.id),J.add(k[g].id);r.unref(I)[g].pages.clear(),r.unref(I).splice(g,1)}for(const g of k)if(g.active){w();return}t.emit(V.TAB_ACTIVE,{id:k[k.length-1].id})},C=k=>{const g=r.unref(I);let B;for(let b=g.length-1;b>=0;b--)if(g[b].id===k)B=g[b];else if(g[b].closable&&g[b].id!==k){for(const L of g[b].pages.list())c(L.id),m(L.id),J.add(g[b].id);r.unref(I)[b].pages.clear(),r.unref(I).splice(b,1)}B.active?w():t.emit(V.TAB_ACTIVE,{id:k})},A=k=>{let g=-1;const B=r.unref(I);for(let b=0;b<B.length;b++)if(B[b].id===k){g=b-1;break}for(let b=g;b>=0;b--)if(B[b].closable){for(const L of B[b].pages.list())c(L.id),m(L.id),J.add(B[b].id);r.unref(I)[b].pages.clear(),r.unref(I).splice(b,1)}for(const b of B)if(b.active){w();return}t.emit(V.TAB_ACTIVE,{id:B[0].id})},x=k=>{const g=r.unref(I);let B=g.length;for(let b=0;b<g.length;b++)if(g[b].id===k){B=b+1;break}for(let b=g.length-1;b>=B;b--)if(g[b].closable){for(const L of g[b].pages.list())c(L.id),m(L.id),J.add(g[b].id);r.unref(I)[b].pages.clear(),r.unref(I).splice(b,1)}for(const b of g)if(b.active){w();return}t.emit(V.TAB_ACTIVE,{id:g[g.length-1].id})},v=k=>{var g;for(const B of r.unref(I))if(B.id===k){const b=(g=B.pages.peek())==null?void 0:g.id;for(let L=z.value.length-1;L>=0;L--)if(z.value[L]===b){z.value.splice(L,1),B.active&&(re.value=!1,r.nextTick(()=>{re.value=!0}));break}break}},T=()=>{const k=new Set;I.value.forEach(g=>{k.add(g.pages.peek().id)});for(let g=z.value.length-1;g>=0;g--){const B=z.value[g];k.has(B)&&z.value.splice(g,1)}re.value=!1,r.nextTick(()=>{re.value=!0})},y=(k,g)=>{te.set(k,g)},E=k=>te.get(k),c=k=>{te.delete(k)},m=k=>{pe.add(k)},w=()=>{for(let k=z.value.length-1;k>=0;k--)pe.has(z.value[k])&&r.unref(z).splice(k,1);pe.clear()},R=k=>{for(let g=z.value.length-1;g>=0;g--)k===z.value[g]&&r.unref(z).splice(g,1)},U=k=>{new Set(z.value).has(k)||z.value.push(k)},W=(k,g=!0)=>{for(let B=I.value.length-1;B>=0;B--){const b=I.value[B];if(b.id===k){if(b.active)break;if(b.active=!0,O(b),g){const L=b.pages.peek();e.push({path:L.path,query:L.query})}}else I.value[B].active=!1}},O=k=>{window.sessionStorage.setItem(gt,JSON.stringify(k))},M=()=>{re.value=!1,P(),r.nextTick(()=>{r.unref(I).push(...Se),t.emit(V.TAB_ACTIVE,{id:Se[0].id}),r.nextTick(()=>{re.value=!0})})},P=()=>{r.unref(I).splice(0),te.clear(),pe.clear(),J.clear(),r.unref(z).splice(0)};return{tabs:I,caches:z,pageShown:re,initialed:yt,setMaxSize:k=>{Ee=k},canAddTab:i,initial:o,size:n,active:W,destroy:P,reset:M,addCache:U,removeCache:R,getTab:u,addTab:a,removeTab:_,removeAllTabs:S,removeLeftTabs:A,removeRightTabs:x,removeOtherTabs:C,hasTab:s,addPage:l,addComponent:y,getComponent:E,removeComponent:c,markDeletableCache:m,removeDeletableCache:w,refreshTab:v,refreshAllTabs:T,addPageScroller:h,setGlobalScroll:k=>{kt=k}}},Pn={class:"stack-tab__contextmenu-item"},ne=r.defineComponent({__name:"ContextMenuItem",props:{icon:{},title:{}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("div",Pn,[r.createElementVNode("div",{class:r.normalizeClass(["stack-tab__contextmenu-icon",t.icon])},null,2),r.createElementVNode("div",{style:{"margin-left":"8px"},onContextmenu:n[0]||(n[0]=r.withModifiers(()=>{},["prevent"]))},r.toDisplayString(t.title),33)]))}}),jn={key:0,class:"divider div-transparent"},Dn=((e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n})(r.defineComponent({__name:"index",props:{index:{},left:{default:0},top:{default:0},contextMenu:{},tabItem:{},max:{}},setup(e){const t=e,{t:n}=we(),o=r.ref(),s=r.reactive({left:t.left,top:t.top}),{removeTab:i,removeAllTabs:a,removeLeftTabs:u,removeRightTabs:l,refreshTab:f,refreshAllTabs:p,removeOtherTabs:d}=be();return r.onMounted(()=>{const h=o.value?o.value.clientWidth:0,_=window.innerWidth;s.left+h>_&&(s.left=_-h-5)}),(h,_)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"contextmenu",ref:o,class:"stack-tab__contextmenu",style:r.normalizeStyle({left:`${s.left}px`,top:`${s.top}px`,"z-index":r.unref(nt)(".stack-tab,.stack-tab *")})},[r.createVNode(ne,{icon:"stack-tab__icon-reload svg-mask",title:r.unref(n)("VueStackTab.reload"),onClick:_[0]||(_[0]=S=>r.unref(f)(h.tabItem.id))},null,8,["title"]),r.createVNode(ne,{icon:"stack-tab__icon-reload-all svg-mask",title:r.unref(n)("VueStackTab.reloadAll"),onClick:r.unref(p)},null,8,["title","onClick"]),r.createVNode(ne,{icon:"stack-tab__icon-close svg-mask",title:r.unref(n)("VueStackTab.close"),disabled:h.tabItem.closable?null:"disabled",onClick:_[1]||(_[1]=S=>r.unref(i)(h.tabItem.id))},null,8,["title","disabled"]),r.createVNode(ne,{icon:"stack-tab__icon-close-lefts svg-mask",title:r.unref(n)("VueStackTab.closeLeft"),disabled:h.index<=0?"disabled":null,onClick:_[2]||(_[2]=S=>r.unref(u)(h.tabItem.id))},null,8,["title","disabled"]),r.createVNode(ne,{icon:"stack-tab__icon-close-rights svg-mask",title:r.unref(n)("VueStackTab.closeRight"),disabled:h.index>=h.max-1?"disabled":null,onClick:_[3]||(_[3]=S=>r.unref(l)(h.tabItem.id))},null,8,["title","disabled"]),r.createVNode(ne,{icon:"stack-tab__icon-close-others svg-mask",title:r.unref(n)("VueStackTab.closeOthers"),onClick:_[4]||(_[4]=S=>r.unref(d)(h.tabItem.id))},null,8,["title"]),r.createVNode(ne,{icon:"stack-tab__icon-close-all svg-mask",title:r.unref(n)("VueStackTab.closeAll"),onClick:r.unref(a)},null,8,["title","onClick"]),h.contextMenu!==void 0&&h.contextMenu.length>0?(r.openBlock(),r.createElementBlock("div",jn)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(h.contextMenu,(S,C)=>(r.openBlock(),r.createBlock(ne,{key:C,icon:S.icon,title:S.title,disabled:S.disabled(h.tabItem)?"disabled":null,onClick:A=>!S.disabled&&S.callback(h.tabItem.id)},null,8,["icon","title","disabled","onClick"]))),128))],4))}}),[["__scopeId","data-v-d598be6e"]]),Un=()=>{const e=r.reactive({item:{},index:-1,left:0,top:0,max:0}),t=r.ref(!1);r.onMounted(()=>{document.addEventListener("click",o)}),r.onUnmounted(()=>{document.removeEventListener("click",o)});const n=async(s,i,a,u)=>{t.value=!1,await r.nextTick(()=>{const{clientY:l,clientX:f}=s;t.value=!0,Object.assign(e,{item:i,index:a,top:l,left:f,max:u})})},o=s=>{s.target.classList.contains("stack-tab__contextmenu")||(t.value=!1)};return{shown:t,contextMenuData:e,showContextMenu:n}},Wn={class:"stack-tab__item-title"},Fn=["title"],qn=["title"],Gn=r.defineComponent({__name:"TabHeaderItem",props:{item:{}},emits:["close","active"],setup(e,{emit:t}){const n=t,o=he(),{t:s}=we(),i=r.ref(),a=e;o.on(V.TAB_ACTIVE,({id:p,isRoute:d})=>{a.item.id===p&&f(d)});const u=r.computed(()=>a.item.title||s("undefined")),l=()=>{n("close",a.item)},f=(p=!0)=>{n("active",a.item,i,p)};return(p,d)=>(r.openBlock(),r.createElementBlock("li",{ref_key:"curtab",ref:i,class:r.normalizeClass(["stack-tab__item",{"is-active":p.item.active,"is-icon":p.item.closable}]),onClick:d[0]||(d[0]=h=>f(!0))},[r.createElementVNode("div",Wn,[r.createElementVNode("div",{class:"stack-tab__item-title-content",title:u.value},r.toDisplayString(u.value),9,Fn)]),p.item.closable?(r.openBlock(),r.createElementBlock("div",{key:0,class:"stack-tab__icon-close-fill stack-tab__item-button",title:r.unref(s)("VueStackTab.close"),onClick:r.withModifiers(l,["stop"])},null,8,qn)):r.createCommentVNode("",!0)],2))}});var se=[],Hn=function(){return se.some(function(e){return e.activeTargets.length>0})},Zn=function(){return se.some(function(e){return e.skippedTargets.length>0})},wt="ResizeObserver loop completed with undelivered notifications.",Xn=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:wt}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=wt),window.dispatchEvent(e)},me;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(me||(me={}));var ie=function(e){return Object.freeze(e)},Yn=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,ie(this)}return e}(),_t=function(){function e(t,n,o,s){return this.x=t,this.y=n,this.width=o,this.height=s,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,ie(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,o=t.y,s=t.top,i=t.right,a=t.bottom,u=t.left,l=t.width,f=t.height;return{x:n,y:o,top:s,right:i,bottom:a,left:u,width:l,height:f}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),qe=function(e){return e instanceof SVGElement&&"getBBox"in e},Tt=function(e){if(qe(e)){var t=e.getBBox(),n=t.width,o=t.height;return!n&&!o}var s=e,i=s.offsetWidth,a=s.offsetHeight;return!(i||a||e.getClientRects().length)},vt=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},Jn=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},ge=typeof window<"u"?window:{},Oe=new WeakMap,xt=/auto|scroll/,Kn=/^tb|vertical/,Qn=/msie|trident/i.test(ge.navigator&&ge.navigator.userAgent),G=function(e){return parseFloat(e||"0")},ce=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new Yn((n?t:e)||0,(n?e:t)||0)},St=ie({devicePixelContentBoxSize:ce(),borderBoxSize:ce(),contentBoxSize:ce(),contentRect:new _t(0,0,0,0)}),Et=function(e,t){if(t===void 0&&(t=!1),Oe.has(e)&&!t)return Oe.get(e);if(Tt(e))return Oe.set(e,St),St;var n=getComputedStyle(e),o=qe(e)&&e.ownerSVGElement&&e.getBBox(),s=!Qn&&n.boxSizing==="border-box",i=Kn.test(n.writingMode||""),a=!o&&xt.test(n.overflowY||""),u=!o&&xt.test(n.overflowX||""),l=o?0:G(n.paddingTop),f=o?0:G(n.paddingRight),p=o?0:G(n.paddingBottom),d=o?0:G(n.paddingLeft),h=o?0:G(n.borderTopWidth),_=o?0:G(n.borderRightWidth),S=o?0:G(n.borderBottomWidth),C=o?0:G(n.borderLeftWidth),A=d+f,x=l+p,v=C+_,T=h+S,y=u?e.offsetHeight-T-e.clientHeight:0,E=a?e.offsetWidth-v-e.clientWidth:0,c=s?A+v:0,m=s?x+T:0,w=o?o.width:G(n.width)-c-E,R=o?o.height:G(n.height)-m-y,U=w+A+E+v,W=R+x+y+T,O=ie({devicePixelContentBoxSize:ce(Math.round(w*devicePixelRatio),Math.round(R*devicePixelRatio),i),borderBoxSize:ce(U,W,i),contentBoxSize:ce(w,R,i),contentRect:new _t(d,l,w,R)});return Oe.set(e,O),O},Ot=function(e,t,n){var o=Et(e,n),s=o.borderBoxSize,i=o.contentBoxSize,a=o.devicePixelContentBoxSize;switch(t){case me.DEVICE_PIXEL_CONTENT_BOX:return a;case me.BORDER_BOX:return s;default:return i}},er=function(){function e(t){var n=Et(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=ie([n.borderBoxSize]),this.contentBoxSize=ie([n.contentBoxSize]),this.devicePixelContentBoxSize=ie([n.devicePixelContentBoxSize])}return e}(),Bt=function(e){if(Tt(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},tr=function(){var e=1/0,t=[];se.forEach(function(a){if(a.activeTargets.length!==0){var u=[];a.activeTargets.forEach(function(f){var p=new er(f.target),d=Bt(f.target);u.push(p),f.lastReportedSize=Ot(f.target,f.observedBox),d<e&&(e=d)}),t.push(function(){a.callback.call(a.observer,u,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,o=t;n<o.length;n++){var s=o[n];s()}return e},At=function(e){se.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(s){s.isActive()&&(Bt(s.target)>e?n.activeTargets.push(s):n.skippedTargets.push(s))})})},nr=function(){var e=0;for(At(e);Hn();)e=tr(),At(e);return Zn()&&Xn(),e>0},Ge,Ct=[],rr=function(){return Ct.splice(0).forEach(function(e){return e()})},or=function(e){if(!Ge){var t=0,n=document.createTextNode(""),o={characterData:!0};new MutationObserver(function(){return rr()}).observe(n,o),Ge=function(){n.textContent="".concat(t?t--:t++)}}Ct.push(e),Ge()},sr=function(e){or(function(){requestAnimationFrame(e)})},Be=0,ir=function(){return!!Be},ar=250,cr={attributes:!0,characterData:!0,childList:!0,subtree:!0},It=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Mt=function(e){return e===void 0&&(e=0),Date.now()+e},He=!1,lr=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=ar),!He){He=!0;var o=Mt(t);sr(function(){var s=!1;try{s=nr()}finally{if(He=!1,t=o-Mt(),!ir())return;s?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,cr)};document.body?n():ge.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),It.forEach(function(n){return ge.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),It.forEach(function(n){return ge.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Ze=new lr,Lt=function(e){!Be&&e>0&&Ze.start(),Be+=e,!Be&&Ze.stop()},fr=function(e){return!qe(e)&&!Jn(e)&&getComputedStyle(e).display==="inline"},ur=function(){function e(t,n){this.target=t,this.observedBox=n||me.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Ot(this.target,this.observedBox,!0);return fr(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),dr=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Ae=new WeakMap,Nt=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Ce=function(){function e(){}return e.connect=function(t,n){var o=new dr(t,n);Ae.set(t,o)},e.observe=function(t,n,o){var s=Ae.get(t),i=s.observationTargets.length===0;Nt(s.observationTargets,n)<0&&(i&&se.push(s),s.observationTargets.push(new ur(n,o&&o.box)),Lt(1),Ze.schedule())},e.unobserve=function(t,n){var o=Ae.get(t),s=Nt(o.observationTargets,n),i=o.observationTargets.length===1;s>=0&&(i&&se.splice(se.indexOf(o),1),o.observationTargets.splice(s,1),Lt(-1))},e.disconnect=function(t){var n=this,o=Ae.get(t);o.observationTargets.slice().forEach(function(s){return n.unobserve(t,s.target)}),o.activeTargets.splice(0,o.activeTargets.length)},e}(),zt=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Ce.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!vt(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Ce.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!vt(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Ce.unobserve(this,t)},e.prototype.disconnect=function(){Ce.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const hr=["disabled","title"],pr={key:1,class:"stack-tab__button"},Ie=r.defineComponent({__name:"TabHeaderButton",props:{disabled:{type:Boolean,default:!1},shadow:{default:null},iconClass:{default:""},title:{}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["stack-tab__header-button",{"stack-tab__shadow-right":t.shadow==="right","stack-tab__shadow-left":t.shadow==="left"}]),disabled:t.disabled?"disabled":null,title:t.title},["icon"in t.$slots?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["stack-tab__mask-button",t.iconClass])},null,2)),"icon"in t.$slots?(r.openBlock(),r.createElementBlock("div",pr,[r.renderSlot(t.$slots,"icon")])):r.createCommentVNode("",!0)],10,hr))}}),br=r.defineComponent({__name:"TabHeaderScroll",props:{space:{default:300},isScrollWheel:{type:Boolean,default:!0},isScrollButton:{type:Boolean,default:!0}},setup(e,{expose:t}){const n=r.ref(null),o=r.ref(null),s=r.ref(null),i=r.ref(!1),a=r.ref(!1),u=r.ref(!1),l=r.ref(!0),f=r.ref(),p=e,d=r.reactive({clientWidth:0,scrollWidth:0,scrollLeft:0}),h=r.reactive({thumbLeft:0,startScrollLeft:0,startThumbLeft:0,startPageX:0});r.watch(d,O=>{_(O)});const _=O=>{a.value=O.scrollLeft<=10,u.value=O.clientWidth+O.scrollLeft-O.scrollWidth>=-10,l.value=O.scrollWidth!==O.clientWidth},S=r.computed(()=>d.scrollWidth>d.clientWidth),C=r.computed(()=>{if(!S.value)return 0;const{clientWidth:O,scrollWidth:M}=d;return O/M*O}),A=r.computed(()=>{if(!S.value)return 0;const{clientWidth:O,scrollWidth:M,scrollLeft:P}=d;return(O-C.value)*(P/(M-O))}),x=()=>{if(n.value===null||n.value===void 0)return;const{clientWidth:O,scrollWidth:M,scrollLeft:P}=n.value;Object.assign(d,{clientWidth:O,scrollWidth:M,scrollLeft:P})},v=new zt(()=>{var M;x();const O=(M=n.value)==null?void 0:M.querySelector(".stack-tab__item.is-active");O&&(W(O)||U(O))}),T=new zt(()=>{var O;if(!S.value){const M=(O=n.value)==null?void 0:O.querySelector(".stack-tab__item.is-active");M&&(W(M)||U(M))}x()}),y=(O,M=!0)=>{tt({wrap:n.value,left:O,smooth:M})},E=O=>{y(n.value.scrollLeft+O)},c=O=>{const M=O.deltaY<0;y(n.value.scrollLeft+(M?-p.space:p.space))},m=O=>{var M;Object.assign(h,{startPageX:O.pageX,startScrollLeft:(M=n.value)==null?void 0:M.scrollLeft,startThumbLeft:A.value,thumbLeft:A.value}),i.value=!0,document.addEventListener("mousemove",w),document.addEventListener("mouseup",R)},w=O=>{const{clientWidth:M,scrollWidth:P}=d;let ae=h.startThumbLeft+O.pageX-h.startPageX;const Je=M-C.value;ae<0?ae=0:ae>Je&&(ae=Je),h.thumbLeft=ae,y(ae*(P-M)/(M-C.value),!1),O.preventDefault()},R=O=>{i.value=!1,document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",R),O.preventDefault()};r.onMounted(()=>{var M;v.observe(f.value);const O=(M=n.value)==null?void 0:M.querySelector(".stack-tab__nav");T.observe(O)}),r.onUnmounted(()=>{v.disconnect(),T.disconnect()});const U=O=>{ln({el:O,wrap:n,block:"end",inline:"center"})},W=O=>{if(!S.value)return!0;const M=O.offsetLeft,P=n.value.scrollLeft;return!(M<P||M+O.clientWidth>P+n.value.clientWidth)};return t({scrollIntoView:U,isInView:W}),(O,M)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[l.value?(r.openBlock(),r.createBlock(Ie,{key:0,"icon-class":"stack-tab__icon-left-arrow",disabled:a.value,onClick:M[0]||(M[0]=P=>!a.value&&E(-1*O.space))},null,8,["disabled"])):r.createCommentVNode("",!0),r.createElementVNode("div",{ref_key:"headerScroll",ref:f,class:"stack-tab__scroll",onWheel:r.withModifiers(c,["prevent"])},[r.createElementVNode("div",{ref_key:"container",ref:n,class:r.normalizeClass(["stack-tab__scroll-container",{"stack-tab__shadow-inset-left":!a.value&&u.value,"stack-tab__shadow-inset-right":!u.value&&a.value,"stack-tab__shadow-inset-all":!a.value&&!u.value}]),onScrollPassive:x},[r.renderSlot(O.$slots,"default")],34),r.withDirectives(r.createElementVNode("div",{ref_key:"bar",ref:o,class:r.normalizeClass(["stack-tab__scrollbar",{"is-dragging":i.value}])},[r.createElementVNode("div",{ref_key:"thumb",ref:s,class:r.normalizeClass(["stack-tab__scrollbar-thumb",{"is-dragging":i.value}]),style:r.normalizeStyle({width:`${C.value}px`,transform:`translateX(${A.value}px)`}),onMousedown:r.withModifiers(m,["prevent"])},null,38)],2),[[r.vShow,S.value]])],544),l.value?(r.openBlock(),r.createBlock(Ie,{key:1,"icon-class":"stack-tab__icon-right-arrow",disabled:u.value,onClick:M[1]||(M[1]=P=>!u.value&&E(O.space))},null,8,["disabled"])):r.createCommentVNode("",!0)],64))}}),mr={class:"stack-tab__header"},gr=r.defineComponent({__name:"index",props:{space:{},tabScrollMode:{default:K.BOTH},tabTransition:{default:()=>({name:"stack-tab-zoom"})},contextmenu:{type:[Boolean,Object],default:!0},max:{default:20}},emits:["active"],setup(e,{emit:t}){const{t:n}=we(),o=r.inject("maximum"),s=t,i=r.ref(),{shown:a,contextMenuData:u,showContextMenu:l}=Un(),f=e,{removeTab:p,active:d,tabs:h}=be(),_=r.computed(()=>typeof f.tabTransition=="string"?{name:f.tabTransition}:f.tabTransition),S=r.computed(()=>f.tabScrollMode===K.BOTH||f.tabScrollMode===K.BUTTON),C=f.tabScrollMode===K.BOTH||f.tabScrollMode===K.WHEEL,A=v=>{v.closable&&p(v.id),a.value=!1},x=(v,T,y)=>{i.value&&(r.nextTick(()=>{i.value.isInView(T.value)||i.value.scrollIntoView(T.value)}),d(v.id,y),s("active",v.id))};return(v,T)=>(r.openBlock(),r.createElementBlock("div",mr,[r.renderSlot(v.$slots,"leftButton"),r.createVNode(br,{ref_key:"scroll",ref:i,space:v.space,"is-scroll-wheel":r.unref(C),"is-scroll-button":S.value},{default:r.withCtx(()=>[r.createVNode(r.TransitionGroup,r.mergeProps({key:"tabItemTrans",tag:"ul",class:"stack-tab__nav"},_.value,{appear:""}),{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(h),(y,E)=>(r.openBlock(),r.createBlock(Gn,{key:y.id,contextmenu:v.contextmenu,item:y,onContextmenu:r.withModifiers(c=>r.unref(l)(c,y,E,r.unref(h).length),["prevent"]),onMouseup:r.withModifiers(c=>A(y),["middle","prevent"]),onClose:A,onActive:x},null,8,["contextmenu","item","onContextmenu","onMouseup"]))),128))]),_:1},16)]),_:1},8,["space","is-scroll-wheel","is-scroll-button"]),r.renderSlot(v.$slots,"rightButton"),r.createVNode(Ie,{"icon-class":r.unref(o)?"stack-tab__icon-restore":"stack-tab__icon-fullscreen",title:r.unref(n)("VueStackTab.maximum"),onClick:T[0]||(T[0]=y=>o.value=!r.unref(o))},null,8,["icon-class","title"]),r.createVNode(r.Transition,{name:"stack-tab-zoom",appear:""},{default:r.withCtx(()=>[r.unref(a)?(r.openBlock(),r.createBlock(Dn,{key:"tabMenuTrans",left:r.unref(u).left,top:r.unref(u).top,"tab-item":r.unref(u).item,max:r.unref(u).max,index:r.unref(u).index},null,8,["left","top","tab-item","max","index"])):r.createCommentVNode("",!0)]),_:1})]))}});var yr=typeof global=="object"&&global&&global.Object===Object&&global,kr=typeof self=="object"&&self&&self.Object===Object&&self,$t=yr||kr||Function("return this")(),Me=$t.Symbol,Rt=Object.prototype,wr=Rt.hasOwnProperty,_r=Rt.toString,ye=Me?Me.toStringTag:void 0;function Tr(e){var t=wr.call(e,ye),n=e[ye];try{e[ye]=void 0;var o=!0}catch{}var s=_r.call(e);return o&&(t?e[ye]=n:delete e[ye]),s}var vr=Object.prototype,xr=vr.toString;function Sr(e){return xr.call(e)}var Er="[object Null]",Or="[object Undefined]",Vt=Me?Me.toStringTag:void 0;function Br(e){return e==null?e===void 0?Or:Er:Vt&&Vt in Object(e)?Tr(e):Sr(e)}function Ar(e){return e!=null&&typeof e=="object"}var Cr="[object Symbol]";function Ir(e){return typeof e=="symbol"||Ar(e)&&Br(e)==Cr}var Mr=/\s/;function Lr(e){for(var t=e.length;t--&&Mr.test(e.charAt(t)););return t}var Nr=/^\s+/;function zr(e){return e&&e.slice(0,Lr(e)+1).replace(Nr,"")}function Le(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Pt=NaN,$r=/^[-+]0x[0-9a-f]+$/i,Rr=/^0b[01]+$/i,Vr=/^0o[0-7]+$/i,Pr=parseInt;function jt(e){if(typeof e=="number")return e;if(Ir(e))return Pt;if(Le(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Le(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=zr(e);var n=Rr.test(e);return n||Vr.test(e)?Pr(e.slice(2),n?2:8):$r.test(e)?Pt:+e}var Xe=function(){return $t.Date.now()},jr="Expected a function",Dr=Math.max,Ur=Math.min;function Wr(e,t,n){var o,s,i,a,u,l,f=0,p=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(jr);t=jt(t)||0,Le(n)&&(p=!!n.leading,d="maxWait"in n,i=d?Dr(jt(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function _(c){var m=o,w=s;return o=s=void 0,f=c,a=e.apply(w,m),a}function S(c){return f=c,u=setTimeout(x,t),p?_(c):a}function C(c){var m=c-l,w=c-f,R=t-m;return d?Ur(R,i-w):R}function A(c){var m=c-l,w=c-f;return l===void 0||m>=t||m<0||d&&w>=i}function x(){var c=Xe();if(A(c))return v(c);u=setTimeout(x,C(c))}function v(c){return u=void 0,h&&o?_(c):(o=s=void 0,a)}function T(){u!==void 0&&clearTimeout(u),f=0,o=l=s=u=void 0}function y(){return u===void 0?a:v(Xe())}function E(){var c=Xe(),m=A(c);if(o=arguments,s=this,l=c,m){if(u===void 0)return S(l);if(d)return clearTimeout(u),u=setTimeout(x,t),_(l)}return u===void 0&&(u=setTimeout(x,t)),a}return E.cancel=T,E.flush=y,E}var Fr="Expected a function";function qr(e,t,n){var o=!0,s=!0;if(typeof e!="function")throw new TypeError(Fr);return Le(n)&&(o="leading"in n?!!n.leading:o,s="trailing"in n?!!n.trailing:s),Wr(e,t,{leading:o,maxWait:t,trailing:s})}let Dt;const Ut=()=>{const e=q.useRouter(),{active:t,hasTab:n,pageShown:o,reset:s,canAddTab:i}=be(),a=he(),u=qr(p=>new Promise((d,h)=>{if(!o.value){h();return}const _=Y(p,{refreshable:!0,closable:!0,iframe:!1});if(n(_.id)){a.emit(V.TAB_ACTIVE,{id:_.id}),d(_.id);return}if(_.id||(_.id=st()),!i()){h("Max Size");return}l(p,_),d(_.id)}),500),l=(p,d)=>{const h=bt(d);let _=Y({__tab:h},p.query),S;if(p.iframe){const C=encodeURIComponent(p.path);S=Dt,_.__src=C}else{const C=Fe(p.path);S=C.path,_=Y(C.query,_)}e.push({path:S,query:_})};return{openNewTab:u,setIFramePath:p=>{Dt=p},active:t,reset:s}},Gr={class:"stack-tab__container"},Hr=["src"],Wt=r.defineComponent({__name:"StackTabs",props:{defaultTabs:{default:()=>[]},max:{default:20},append:{default:"last"},contextmenu:{type:[Boolean,Object],default:!0},pageTransition:{default:"stack-tab-swap"},tabTransition:{default:"stack-tab-zoom"},tabScrollMode:{default:K.BOTH},width:{default:"100%"},height:{default:"100%"},i18n:{default:"zh-CN"},space:{default:300},globalScroll:{type:Boolean,default:!1},iframePath:{}},emits:["onActive","onPageLoaded"],setup(e,{emit:t}){const{tabs:n,pageShown:o,caches:s,destroy:i,addPage:a,initial:u,setMaxSize:l,setGlobalScroll:f}=be(),p=t,d=e,{changeLocale:h}=we(),_=r.ref(!1);r.provide("maximum",_);const{setIFramePath:S}=Ut();S(d.iframePath),f(d.globalScroll),h(d.i18n),r.onBeforeMount(()=>{u(d.defaultTabs)});const C=(T,y)=>a(T,y),A=T=>{p("onActive",T)};l(d.max),r.onBeforeUnmount(()=>{i()});const x=()=>{p("onPageLoaded")},v=r.ref(!0);return(T,y)=>{const E=r.resolveComponent("router-view");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["stack-tab",{"stack-tab__maximum":_.value}]),style:r.normalizeStyle({width:T.width,height:T.height,"z-index":_.value?r.unref(nt)("body *:not(.stack-tab,.stack-tab *)"):void 0})},[r.createVNode(gr,{space:T.space,onActive:A,"tab-transition":T.tabTransition,max:T.max},{leftButton:r.withCtx(()=>[r.renderSlot(T.$slots,"leftButton")]),rightButton:r.withCtx(()=>[r.renderSlot(T.$slots,"rightButton")]),_:3},8,["space","tab-transition","max"]),r.createElementVNode("div",Gr,[r.createVNode(E,null,{default:r.withCtx(({Component:c,route:m})=>[r.createVNode(r.Transition,{name:T.pageTransition,onBeforeLeave:y[0]||(y[0]=w=>v.value=!1),onAfterLeave:y[1]||(y[1]=w=>v.value=!0),appear:"",mode:"out-in"},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.KeepAlive,{include:r.unref(s)},[r.unref(o)?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(C(m,c)),{key:m.fullPath,onOnLoaded:x},null,32)):r.createCommentVNode("",!0)],1032,["include"]))]),_:2},1032,["name"])]),_:1}),r.createVNode(r.TransitionGroup,{name:T.pageTransition,appear:"",mode:"in-out"},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(n).filter(c=>c.iframe),c=>r.withDirectives((r.openBlock(),r.createElementBlock("iframe",{key:c.id,class:"stack-tab__iframe",src:/^(javascript|data):/i.test(c.url??"")?"about:blank":c.url,frameborder:"0"},null,8,Hr)),[[r.vShow,c.active&&v.value]])),128))]),_:1},8,["name"])])],6)}}}),Ye=typeof Buffer=="function";typeof TextDecoder=="function"&&new TextDecoder;const Ft=typeof TextEncoder=="function"?new TextEncoder:void 0,ke=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");(e=>{let t={};return e.forEach((n,o)=>t[n]=o),t})(ke);const H=String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);const Zr=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),qt=typeof btoa=="function"?e=>btoa(e):Ye?e=>Buffer.from(e,"binary").toString("base64"):e=>{let t,n,o,s,i="";const a=e.length%3;for(let u=0;u<e.length;){if((n=e.charCodeAt(u++))>255||(o=e.charCodeAt(u++))>255||(s=e.charCodeAt(u++))>255)throw new TypeError("invalid character found");t=n<<16|o<<8|s,i+=ke[t>>18&63]+ke[t>>12&63]+ke[t>>6&63]+ke[t&63]}return a?i.slice(0,a-3)+"===".substring(a):i},Xr=Ye?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let o=0,s=e.length;o<s;o+=4096)n.push(H.apply(null,e.subarray(o,o+4096)));return qt(n.join(""))},Yr=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?H(192|t>>>6)+H(128|t&63):H(224|t>>>12&15)+H(128|t>>>6&63)+H(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return H(240|t>>>18&7)+H(128|t>>>12&63)+H(128|t>>>6&63)+H(128|t&63)}},Jr=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Kr=e=>e.replace(Jr,Yr),Gt=Ye?e=>Buffer.from(e,"utf8").toString("base64"):Ft?e=>Xr(Ft.encode(e)):e=>qt(Kr(e)),Qr=(e,t=!1)=>t?Zr(Gt(e)):Gt(e),eo=e=>{const o=`<?xml version="1.0" encoding="UTF-8"?><svg id="a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1167.06 237.75"><path d="M79.24,19.73h108.91v29.7h-108.91v-29.7Z" style="fill:#79a7ff; stroke-width:0px;"/><path d="M179.24,199.67H20.26c-11.21-.07-20.26-9.17-20.26-20.38V20.39C0,9.18,9.05.07,20.26,0h59.49c3.51.07,6.34,2.9,6.41,6.42v44.36c0,3.54-2.87,6.41-6.41,6.41s-6.41-2.86-6.42-6.4V12.36H20.25c-4.13.07-7.44,3.44-7.44,7.56v159.41c0,4.13,3.31,7.49,7.44,7.56h158.98c4.13-.07,7.44-3.44,7.44-7.56V51.84c0-3.54,2.87-6.41,6.41-6.42,3.55,0,6.42,2.87,6.42,6.42v127.45c0,11.21-9.05,20.32-20.26,20.39h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M192.8,60.77c-3.66-.07-6.61-3.02-6.68-6.68v-18.23c.09-4.29-3.32-7.83-7.6-7.92h-96.43c-3.69,0-6.69-2.99-6.69-6.69s2.99-6.69,6.69-6.69h96.27c11.69.08,21.13,9.58,21.13,21.27v18.25c0,3.69-2.99,6.68-6.68,6.68h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M193.08,58.67H10.15c-3.61-.08-6.48-3.07-6.41-6.68-.08-3.62,2.79-6.61,6.4-6.69,0,0,0,0,0,0h182.93c3.62.08,6.48,3.08,6.41,6.69.07,3.61-2.79,6.6-6.41,6.68h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M137.2,58.67c-3.42.24-6.4-2.32-6.68-5.74v-28.15c.55-3.69,4-6.24,7.69-5.69,2.94.44,5.24,2.75,5.69,5.69v28.15c-.28,3.42-3.26,5.98-6.68,5.74h-.02Z" style="fill:#377dff; stroke-width:0px;"/><path d="M99.78,100.48l-12.83-22.22h-18.39l31.22,54.05,31.22-54.05h-18.39l-12.83,22.22Z" style="fill:#00d797; stroke-width:0px;"/><path d="M135.28,78.26l-35.49,61.43-35.44-61.43h-20.11l55.55,96.2,55.55-96.2s-20.06,0-20.06,0ZM313.33,59.95c0,.52-.67,1.84-2,3.95s-3.3,5.2-5.9,9.28-5.75,9.28-9.46,15.61c-3.7,6.33-7.52,13.34-11.45,21.04-4.51,8.85-7.76,15.8-9.76,20.86s-2.99,9.41-2.99,13.05c0,2.89,1.53,5.44,4.6,7.63,3.7-2.89,7.34-6.33,10.93-10.32,3.58-3.99,7.13-8.44,10.63-13.36s7.55-11.13,12.14-18.65c4.6-7.52,8.69-14.43,12.27-20.73-.17-.52-.36-1.04-.56-1.56s-.3-.95-.3-1.3c0-2.72.55-5.26,1.65-7.63,1.1-2.37,2.47-4.68,4.12-6.94s4.12-5.44,7.42-9.54c.87-1.1,1.94-1.65,3.21-1.65,2.08,0,3.12,1.33,3.12,3.99s-1.08,6.84-3.25,12.53c-2.17,5.7-5.37,12.39-9.59,20.08s-9.47,16.29-15.74,25.81c-6.28,9.51-13.37,19.45-21.3,29.8-8.04,10.47-13.79,15.7-17.26,15.7-1.97,0-4.19-1.08-6.68-3.25s-4.63-5.13-6.42-8.89-2.69-7.78-2.69-12.06c0-2.54.53-5.81,1.6-9.8s2.75-8.78,5.03-14.36,4.87-11.09,7.76-16.53c3.01-5.72,5.65-10.47,7.94-14.23,2.28-3.76,4.87-7.94,7.76-12.53,2.89-4.6,4.34-7.1,4.34-7.5,0-.87-.58-1.3-1.73-1.3-3.35,0-7.82,1.71-13.4,5.12s-12.85,8.59-21.82,15.53c-3.41,2.66-5.57,4.38-6.46,5.16s-1.34,1.43-1.34,1.95c0,.69.55,1.04,1.65,1.04.46,0,2.02-.17,4.68-.52s4.77-.52,6.33-.52c2.6,0,3.9.46,3.9,1.39,0,.81-.54,1.45-1.61,1.91-1.07.46-2.54.93-4.42,1.39s-4.44,1.1-7.68,1.91c-3.47.93-7.16,2.25-11.06,3.99-3.9,1.73-6.14,2.6-6.72,2.6-1.1,0-1.78-.4-2.04-1.21s-.39-2.14-.39-3.99c0-8.21,1.36-14.56,4.08-19.04s7.58-9.15,14.57-14.01c7.98-5.55,15.61-10.16,22.9-13.84,7.29-3.67,13.58-6.36,18.87-8.07s9.18-2.56,11.67-2.56,4.84,1.56,7.24,4.68,3.6,6.42,3.6,9.89h0ZM366.34,124.75c-8.39,11.1-14.76,19-19.13,23.68s-7.94,7.03-10.71,7.03c-2.2,0-4.22-.91-6.07-2.73-1.85-1.82-3.28-4.28-4.29-7.37s-1.52-6.4-1.52-9.93c0-2.31.22-4.39.65-6.25.43-1.85,1.26-3.89,2.47-6.12s2.82-4.64,4.81-7.24c2-2.6,4.44-5.55,7.33-8.85,1.73-2.02,3.19-3.73,4.38-5.12,1.18-1.39,2.34-2.33,3.47-2.82s2.96-.74,5.51-.74c1.85,0,3.61.25,5.29.74,1.68.49,2.52,1,2.52,1.52,0,1.04-.85,2.92-2.56,5.64s-4.45,6.03-8.24,9.93c-3.79,3.9-8.17,7.74-13.14,11.49-1.1,3.41-1.65,6.01-1.65,7.81,0,2.49.95,3.73,2.86,3.73.69,0,1.85-.59,3.47-1.78,1.62-1.18,4.35-3.47,8.2-6.85,3.84-3.38,7.3-6.38,10.37-8.98,2.25-1.97,4.87-4.9,7.85-8.8s5.39-6.84,7.24-8.8c4.28-4.51,7.2-7.44,8.76-8.8s3.06-2.04,4.51-2.04,2.33.43,2.82,1.3c.49.87.74,2.63.74,5.29,0,1.21-.12,2.2-.35,2.95s-.71,1.72-1.43,2.91-2.18,3.37-4.38,6.55-4.8,6.94-7.81,11.28c-1.66,2.38-3.09,4.93-4.25,7.59-1.21,2.75-1.82,4.81-1.82,6.2,0,3.01,1.18,4.51,3.56,4.51,1.96,0,4.25-.81,6.85-2.43s6.59-4.54,11.97-8.76v5.81c-6.77,6.25-11.77,10.79-15.01,13.62s-6.04,4.97-8.41,6.42-4.63,2.17-6.77,2.17c-4.86,0-7.29-2.89-7.29-8.67,0-2.2.72-5.16,2.17-8.89,1.44-3.73,3.79-9.12,7.03-16.18v-.02Z" style="fill:#306fff; stroke-width:0px;"/><path d="M407.71,133.77v2.17c0,3.41.84,6.07,2.52,7.98,1.68,1.91,3.87,2.86,6.59,2.86s5.77-.66,8.8-2c3.04-1.33,6.06-3.09,9.07-5.29s6.68-5.15,11.02-8.85v5.29c-6.54,7.87-12.67,13.89-18.39,18.09-5.72,4.19-11.54,6.29-17.44,6.29-5.15,0-9.22-2-12.23-5.99s-4.51-9.46-4.51-16.39c0-6.07,1.42-11.58,4.25-16.52s7.46-10.16,13.88-15.66c4.39-3.76,8.76-6.59,13.1-8.5s8.21-2.86,11.62-2.86c2.72,0,4.87.62,6.46,1.86s2.39,3.11,2.39,5.59c0,3.64-1.36,7.27-4.08,10.89s-6.87,7.2-12.45,10.76c-5.58,3.56-12.45,6.98-20.6,10.28h0ZM408.58,128.13c5.2-2.02,9.66-4.54,13.36-7.55,3.7-3.01,6.43-5.88,8.2-8.63,1.76-2.75,2.65-4.76,2.65-6.03s-.61-2-1.82-2c-1.04,0-2.73.67-5.07,2s-4.71,3.07-7.11,5.21-4.55,4.66-6.46,7.55c-1.9,2.86-3.17,6.08-3.73,9.46h-.02ZM585.37,132.9c-1.45-2.66-3.61-5.06-6.51-7.2-2.89-2.14-6.15-3.86-9.76-5.16s-7.39-2.27-11.32-2.91c-11.68-1.74-22.58-5.52-32.7-11.36-.87-.46-1.79-1.44-2.78-2.95-.98-1.5-1.47-2.95-1.47-4.34,0-5.09.85-10.19,2.56-15.31,1.71-5.12,3.89-9.12,6.55-12.01,4.28-4.8,11.98-8.99,23.12-12.58,11.13-3.58,23.67-5.38,37.6-5.38,8.33,0,14.76.64,19.3,1.91s6.81,3.24,6.81,5.9c0,4.34-.59,7.69-1.78,10.06s-2.46,3.95-3.82,4.73c-1.36.78-3.75,1.84-7.16,3.17-3.64,1.27-6.81,2.6-9.5,3.99s-4.99,2.72-6.9,3.99c-1.91,1.27-3.09,1.91-3.56,1.91-.58,0-.87-.23-.87-.69,0-.98,1.03-2.47,3.08-4.47s4.58-3.74,7.59-5.25c3.18-1.68,4.77-2.75,4.77-3.21,0-.75-1.76-1.13-5.29-1.13-10.7,0-20.59.95-29.67,2.86s-16.24,4.42-21.47,7.55c-5.23,3.12-7.85,6.3-7.85,9.54,0,2.02,1.08,3.46,3.25,4.29,2.17.84,6.95,2.24,14.36,4.21,7.4,1.97,14.02,4.22,19.86,6.77,8.38,3.59,14.6,7.32,18.65,11.19,4.05,3.88,6.07,8.21,6.07,13.01,0,3.3-.8,6.61-2.39,9.93-1.59,3.33-3.92,6.38-6.98,9.15-3.07,2.78-6.59,5.06-10.58,6.85-3.41,1.45-7.71,2.8-12.88,4.08-5.18,1.27-10.79,2.27-16.83,2.99-6.04.72-11.81,1.08-17.31,1.08-10.12,0-18.26-.95-24.42-2.86s-9.24-4.8-9.24-8.67c0-1.74,1.04-4.44,3.12-8.11s4.54-6.14,7.37-7.42c2.49-.98,4.89-1.55,7.2-1.69,2.31-.14,3.47.13,3.47.82,0,.17-.09.35-.26.52s-.38.32-.61.43c-.23.12-.46.23-.69.35-1.16.46-2.1.82-2.82,1.08-.72.26-1.3.52-1.74.78-.43.26-.65.62-.65,1.08,0,1.21,5.99,1.82,17.96,1.82,10.41,0,18.94-.38,25.59-1.13s12.52-2.11,17.61-4.08c5.09-1.97,9.71-4.68,13.88-8.15l.04.02ZM640.8,85.63h3.73c3.06-5.49,5.84-9.38,8.33-11.67,2.49-2.28,5.32-3.43,8.5-3.43s4.77.72,4.77,2.17c0,.69-1.24,2.57-3.73,5.64s-4.37,5.64-5.64,7.72c1.96.23,3.71.43,5.25.61,1.53.17,2.73.32,3.6.43-3.3,6.13-7.43,12.4-12.4,18.82l-4.08-.3c-1.1-.09-2.21-.17-3.34-.26s-2.5-.19-4.12-.3c-3.12,5.03-5.74,9.53-7.85,13.49s-3.73,7.59-4.86,10.89-1.69,6.42-1.69,9.37c0,3.99,1.59,5.99,4.77,5.99,2.2,0,5.07-1.17,8.63-3.51s8.31-5.94,14.27-10.8v5.81c-15.61,16.95-27.15,25.42-34.61,25.42-2.6,0-4.7-1.01-6.29-3.04-1.59-2.02-2.38-4.63-2.38-7.81,0-2.14.45-4.68,1.34-7.63.9-2.95,2.5-7.4,4.81-13.36-.81.69-1.58,1.37-2.3,2.04s-1.39,1.27-2,1.82-1.26,1.13-1.95,1.73c-.69.61-1.39,1.23-2.08,1.87v-5.99c6.07-5.09,13.42-14.02,22.03-26.8-.87-.06-1.68-.1-2.43-.13s-1.65-.04-2.69-.04c-3.41,0-5.96.23-7.63.69-.69.17-1.34.36-1.95.56s-1.03.3-1.26.3-.35-.17-.35-.52c0-1.91,1.18-4.77,3.56-8.59,1.91-3.24,3.72-5.64,5.42-7.2,1.71-1.56,3.79-2.62,6.25-3.17,2.46-.55,5.91-.82,10.37-.82h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M664.91,115.12c8.79-7.98,17.32-13.91,25.59-17.78s14.66-5.81,19.17-5.81c1.21,0,2.34.51,3.38,1.52,1.04,1,1.88,2.19,2.47,3.51.61,1.33.91,2.31.91,2.95,0,1.04-.41,1.81-1.21,2.3-.81.49-2.23,1.08-4.25,1.78.4.93.92,2.11,1.56,3.56s1.13,2.62,1.47,3.51c.35.9.52,1.69.52,2.39,0,1.39-1.4,3.98-4.21,7.76-2.81,3.79-4.77,6.58-5.9,8.37-1.13,1.79-1.69,3.99-1.69,6.59,0,4.28,1.96,6.42,5.9,6.42s10.38-3.79,19-11.36v5.29c-14.63,16.25-25.1,24.38-31.4,24.38-2.26,0-3.86-.74-4.81-2.21s-1.43-3.66-1.43-6.55c0-4.57,1.65-11.19,4.94-19.86-8.44,9.37-14.72,16.03-18.82,20-4.11,3.96-7.49,5.94-10.15,5.94-1.27,0-2.86-1.1-4.77-3.3-1.91-2.2-3.6-5.04-5.07-8.54-1.47-3.5-2.21-7.13-2.21-10.89,0-2.72.26-4.99.78-6.81s1.53-3.69,3.04-5.59c1.5-1.91,3.9-4.42,7.2-7.55v-.02ZM706.46,105.58c-15.04,6.88-25.75,12.72-32.14,17.52s-9.59,9.75-9.59,14.83c0,1.85.32,3.37.95,4.55.64,1.19,1.5,1.78,2.6,1.78.64,0,1.76-.4,3.38-1.21,6.07-3.58,11.62-8.25,16.66-14.01,5.03-5.75,11.07-13.58,18.13-23.46h.01Z" style="fill:#306fff; stroke-width:0px;"/><path d="M779.07,130.82v5.81c-6.19,6.07-11.23,10.79-15.14,14.14-3.9,3.35-7.55,5.96-10.93,7.81-3.38,1.85-6.69,2.78-9.93,2.78s-6.1-1.26-8.76-3.77c-2.66-2.52-4.74-5.81-6.25-9.89-1.5-4.08-2.26-8.4-2.26-12.97,0-3.93.87-7.43,2.6-10.5,1.74-3.07,5.09-7.03,10.06-11.88,5.9-5.78,11.38-10.25,16.44-13.4s9.04-4.73,11.93-4.73c2.08,0,3.85.72,5.29,2.17s2.17,3.27,2.17,5.46c0,1.85-.95,4.48-2.86,7.89-1.91,3.41-4.05,6.38-6.42,8.89-2.37,2.52-4.25,3.77-5.64,3.77-1.5,0-2.25-.81-2.25-2.43.06-.46.1-.9.13-1.3s.04-.81.04-1.21c0-.69-.25-1.08-.74-1.17s-1.08.13-1.78.65c-5.78,4.05-9.75,6.9-11.88,8.54-2.14,1.65-3.83,3.31-5.07,4.99s-1.87,3.44-1.87,5.29c0,3.41,1.1,6.19,3.3,8.33s5.06,3.21,8.59,3.21,8.02-1.4,13.14-4.21c5.12-2.8,11.15-6.9,18.09-12.27h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M844.13,130.65v5.81c-6.48,7.58-11.91,13.32-16.31,17.22s-8.07,5.86-11.02,5.86-5.39-.84-7.68-2.52c-2.29-1.68-4.34-3.99-6.16-6.94-1.82-2.95-3.98-7.05-6.46-12.32-2.95,3.64-5.61,7.04-7.98,10.19-2.37,3.15-4.02,5.25-4.94,6.29-.93,1.04-1.77,1.56-2.52,1.56-1.56,0-2.69-1-3.38-2.99-.69-2-1.04-4.9-1.04-8.72,0-5.21.62-10.22,1.87-15.05,1.24-4.83,3.04-9.53,5.38-14.1s5.35-9.5,9.02-14.79c3.67-5.29,7.79-10.83,12.36-16.61,6.3-7.98,11.74-14.5,16.31-19.56,4.57-5.06,8.54-8.88,11.93-11.45,3.38-2.57,6.2-3.86,8.46-3.86,2.78,0,4.16,1.24,4.16,3.73,0,2.14-5.12,9.85-15.35,23.12-10.24,13.27-25.16,31.39-44.76,54.35v7.46c13.13-14.05,23.69-24.49,31.71-31.31,8.01-6.82,14.21-10.24,18.61-10.24,1.79,0,3.18,1.06,4.16,3.17s1.47,4.55,1.47,7.33c0,5.67-2.43,10.92-7.29,15.74-4.86,4.83-12.32,10.37-22.38,16.61,1.74,2.6,3.27,4.5,4.6,5.68,1.33,1.19,3.01,1.78,5.03,1.78,1.79,0,3.73-.61,5.81-1.82s4.21-2.75,6.38-4.6,5.51-4.86,10.02-9.02h-.01ZM809.86,135.07c2.2-1.45,4.93-3.69,8.2-6.72,3.27-3.04,6.06-6.19,8.37-9.46s3.47-6,3.47-8.2c0-.92-.41-1.39-1.21-1.39-2.2,0-5.97,2.11-11.32,6.33-5.35,4.22-10.57,9.63-15.66,16.22,2.2,0,4.92,1.07,8.15,3.21h0ZM951.78,140.71l2.86,2.17c-.75,1.62-1.47,3.04-2.17,4.25-.69,1.21-1.53,2.69-2.52,4.42-.98,1.73-1.73,3.04-2.25,3.9-4.34,7.58-8.41,11.36-12.23,11.36-1.62,0-3.01-.64-4.16-1.91-1.16-1.27-1.73-3.01-1.73-5.2,0-3.12,1.11-7.4,3.34-12.84,2.23-5.43,5.67-12.13,10.32-20.08s10.51-16.96,17.57-27.02c7.05-10.06,15.01-20.67,23.85-31.84-5.09-.75-11.13-1.13-18.13-1.13-8.04,0-16.99.9-26.85,2.69s-18.45,3.86-25.76,6.2c-7.32,2.34-10.97,4.06-10.97,5.16,0,.41.14.68.43.82.29.15.77.26,1.43.35s1.52.19,2.56.3c6.77.93,10.15,1.97,10.15,3.12,0,.58-1.47.85-4.42.82s-6.51-.04-10.67-.04c-3.3,0-5.68-.13-7.16-.39s-2.46-.75-2.95-1.47-.74-1.84-.74-3.34c0-.98.29-3.12.87-6.42,1.1-6.13,2.79-11.04,5.07-14.75,2.28-3.7,5.78-6.72,10.5-9.06,4.71-2.34,11.2-4.21,19.47-5.59,13.88-2.37,25.36-3.56,34.44-3.56,6.71,0,12,.27,15.88.82,3.87.55,6.72,1.34,8.54,2.39,1.82,1.04,2.98,2.07,3.47,3.08s1.14,2.76,1.95,5.25l2.69,7.98c.17.52.32.94.43,1.26.12.32.22.65.3,1,.09.35.13.67.13.95,0,2.26-.51,4.28-1.52,6.07s-2.86,4.48-5.55,8.07-4.67,6.39-5.94,8.41c-14.92,24.23-25.1,42.16-30.53,53.78v.02ZM991.94,115.12c8.79-7.98,17.32-13.91,25.59-17.78s14.66-5.81,19.17-5.81c1.21,0,2.34.51,3.38,1.52,1.04,1,1.88,2.19,2.47,3.51.61,1.33.91,2.31.91,2.95,0,1.04-.41,1.81-1.21,2.3-.81.49-2.23,1.08-4.25,1.78.4.93.92,2.11,1.56,3.56s1.13,2.62,1.47,3.51c.35.9.52,1.69.52,2.39,0,1.39-1.4,3.98-4.21,7.76-2.81,3.79-4.77,6.58-5.9,8.37-1.13,1.79-1.69,3.99-1.69,6.59,0,4.28,1.96,6.42,5.9,6.42s10.38-3.79,19-11.36v5.29c-14.63,16.25-25.1,24.38-31.4,24.38-2.26,0-3.86-.74-4.81-2.21s-1.43-3.66-1.43-6.55c0-4.57,1.65-11.19,4.94-19.86-8.44,9.37-14.72,16.03-18.82,20-4.11,3.96-7.49,5.94-10.15,5.94-1.27,0-2.86-1.1-4.77-3.3-1.91-2.2-3.6-5.04-5.07-8.54-1.47-3.5-2.21-7.13-2.21-10.89,0-2.72.26-4.99.78-6.81s1.53-3.69,3.04-5.59c1.5-1.91,3.9-4.42,7.2-7.55v-.02ZM1033.49,105.58c-15.04,6.88-25.75,12.72-32.14,17.52s-9.59,9.75-9.59,14.83c0,1.85.32,3.37.95,4.55.64,1.19,1.5,1.78,2.6,1.78.64,0,1.76-.4,3.38-1.21,6.07-3.58,11.62-8.25,16.66-14.01,5.03-5.75,11.07-13.58,18.13-23.46h.01Z" style="fill:#306fff; stroke-width:0px;"/><path d="M1111.3,130.82v5.64c-6.02,3.82-10.76,5.72-14.23,5.72-1.91,0-3.93-.32-6.07-.95-5.2,6.59-9.67,11.42-13.4,14.49s-7.47,4.6-11.23,4.6c-4.34,0-7.68-2.29-10.02-6.85-2.34-4.57-3.51-10.24-3.51-17,0-9.2,2.78-19.21,8.33-30.06,5.56-10.85,12.29-21.07,20.08-30.45,7.84-9.46,15.43-17.28,22.77-23.46,7.34-6.19,12.32-9.28,14.92-9.28s3.73,1.71,3.73,5.12c0,15.15-19.43,41.58-58.29,79.29-.12,1.04-.17,3.09-.17,6.16,0,7.98,2.14,11.97,6.42,11.97,1.68,0,3.37-.68,5.07-2.04,1.71-1.36,4.32-3.95,7.85-7.76-1.39-3.12-2.08-5.44-2.08-6.94,0-3.18,1.3-6.62,3.9-10.32s5.57-6.9,8.89-9.59c3.33-2.69,5.74-4.03,7.24-4.03,2.37,0,3.56,1.71,3.56,5.12,0,2.6-.68,5.72-2.04,9.37-1.36,3.64-3.34,7.81-5.94,12.49.98.81,1.76,1.4,2.34,1.78s1.45.56,2.6.56c2.66,0,5.75-1.18,9.28-3.56v-.02ZM1067.24,117.81c3.01-2.6,6.03-5.68,9.06-9.24s7.47-9.01,13.32-16.35c5.61-7.05,10.02-12.94,13.23-17.65s5.62-8.63,7.24-11.75c1.62-3.12,2.43-5.26,2.43-6.42,0-.87-.23-1.3-.69-1.3-1.27,0-3.92,2.1-7.94,6.29-4.02,4.19-8.6,9.93-13.75,17.22-7.11,10.06-12.26,17.64-15.44,22.73-3.18,5.09-5.67,10.58-7.46,16.48h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M1110.96,133.08v-2.08c14.92-15.73,25.18-26.75,30.79-33.05,1.27-7.11,4.34-10.67,9.19-10.67,1.21,0,2.52.35,3.9,1.04l.52,1.65c-.23.69-.35,1.68-.35,2.95,0,1.1.42,3.14,1.26,6.12s1.49,5.48,1.95,7.5.69,4.31.69,6.85c0,3.82-.87,7.48-2.6,10.97-1.73,3.5-4.25,6.85-7.55,10.06-3.3,3.21-7.55,6.49-12.75,9.85,2.08.35,3.73.52,4.94.52,2.37,0,4.93-.59,7.68-1.78,2.75-1.18,5.55-2.78,8.41-4.77,2.86-2,6.2-4.58,10.02-7.76v5.81c-7.4,7.23-14.02,12.71-19.86,16.44s-10.87,5.59-15.09,5.59c-5.44,0-10.47-2.31-15.09-6.94-2.72-2.78-4.41-5.43-5.08-7.98-.67-2.54-1-5.99-1-10.32h.02ZM1143.31,119.8l-1.56-12.66c-3.59,4.05-11.25,11.83-22.99,23.33,3.47.75,5.84,1.76,7.11,3.04,1.27,1.27,3.06,3.73,5.38,7.37,3.93-1.62,6.95-3.83,9.07-6.64,2.11-2.8,3.17-6.64,3.17-11.49,0-.58-.01-1.1-.04-1.56s-.07-.92-.13-1.39h0Z" style="fill:#306fff; stroke-width:0px;"/><g style="isolation:isolate;"><text transform="translate(943.45 229.96)" style="fill:#00d797; font-family:ArialMT, Arial; font-size:24px; isolation:isolate;"><tspan x="0" y="0">version: ${e}</tspan></text></g></svg>`,a="data:image/svg+xml;base64,"+Qr(o),u="font-size: 1px; padding: "+Math.floor(100/4)+"px "+Math.floor(580/2)+"px; line-height: "+Math.floor(100/2)+"px;";window.console.log("%c+",u+`background-image: url(${a});background-size: 580px 100px;background-repeat: norepeat; color: transparent;`)},Ht=()=>{const{attrs:e,props:t}=r.getCurrentInstance(),{pageShown:n,getTab:o,markDeletableCache:s,removeComponent:i,getComponent:a,addPageScroller:u}=be(),l=q.useRoute(),f=q.useRouter();let p="",d="";p=e.tId||t.tId;const h=e.pId||t.pId;return d=l.query.__tab,{forward:A=>{const x=Y({__tab:d},A.query);f.push({path:A.path,query:x})},backward:(A,x)=>{const v=o(p);if(!v)return;const T=v.pages;let y=0;if(typeof A=="number")y=Math.abs(A);else{let m=1,w=!1;const R=T.list(),U=Fe(A);x=Y(U.query,x);for(let W=T.size()-2;W>=0;W--){if(R[W].path===U.path){w=!0;break}m+=1}w&&(y=m)}if(y===0||T.size()<=y)return;for(let m=0;m<y;m++){const w=T.pop();i(w.id),s(w.id)}const E=T==null?void 0:T.peek(),c=a(E.id);if(c!=null){const m=c.components.DynamicComponent;m.props=Y(x,m.props)}f.push({path:E.path,query:E.query})},addScroller:(...A)=>{u(h,...A)}}},to=r.defineComponent({__name:"iframe",setup(e){return Ht(),(t,n)=>(r.openBlock(),r.createElementBlock("div"))}}),no=()=>{const e=he(),{attrs:t}=r.getCurrentInstance();r.onUnmounted(()=>{o()});const n=()=>{e.emit(V.PAGE_LOADING,{tId:t.tId,value:!0})},o=()=>{e.emit(V.PAGE_LOADING,{tId:t.tId,value:!1})};return{openTabLoading:n,closeTabLoading:o}},ro={install(e,t){eo("0.1.29"),e.component("VueStackTabs",Wt).use(zn).use(cn().getI18n(t))}};N.IFrame=to,N.Stack=_e,N.StackTab=Wt,N.TabHeaderButton=Ie,N.TabScrollMode=K,N.default=ro,N.useStackTab=Ut,N.useTabLoading=no,N.useTabRouter=Ht,Object.defineProperties(N,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/package.json
CHANGED
package/src/lib/StackTabs.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
import { onBeforeMount, onBeforeUnmount,
|
|
2
|
+
import { onBeforeMount, onBeforeUnmount, provide, ref, watch } from 'vue'
|
|
3
3
|
import type { TransitionProps, DefineComponent, VNode } from 'vue'
|
|
4
|
-
import { type RouteLocationNormalizedLoaded } from 'vue-router'
|
|
4
|
+
import { type RouteLocationNormalizedLoaded, useRoute } from 'vue-router'
|
|
5
5
|
import { getMaxZIndex } from './utils/TabScrollHelper'
|
|
6
6
|
import { type ITabData, TabScrollMode } from './model/TabModel'
|
|
7
7
|
import TabHeader from './components/TabHeader/index.vue'
|
|
@@ -76,6 +76,7 @@ onBeforeUnmount(() => {
|
|
|
76
76
|
const onComponentLoaded = () => {
|
|
77
77
|
emit('onPageLoaded')
|
|
78
78
|
}
|
|
79
|
+
const iframeShown = ref<boolean>(true)
|
|
79
80
|
</script>
|
|
80
81
|
<template>
|
|
81
82
|
<div
|
|
@@ -97,7 +98,13 @@ const onComponentLoaded = () => {
|
|
|
97
98
|
</tab-header>
|
|
98
99
|
<div class="stack-tab__container">
|
|
99
100
|
<router-view v-slot="{ Component, route }">
|
|
100
|
-
<transition
|
|
101
|
+
<transition
|
|
102
|
+
:name="pageTransition"
|
|
103
|
+
@before-leave="iframeShown = false"
|
|
104
|
+
@after-leave="iframeShown = true"
|
|
105
|
+
appear
|
|
106
|
+
mode="out-in"
|
|
107
|
+
>
|
|
101
108
|
<keep-alive :include="caches">
|
|
102
109
|
<component
|
|
103
110
|
:is="tabWrapper(route, Component)"
|
|
@@ -108,10 +115,10 @@ const onComponentLoaded = () => {
|
|
|
108
115
|
</keep-alive>
|
|
109
116
|
</transition>
|
|
110
117
|
</router-view>
|
|
111
|
-
<transition-group :name="pageTransition" appear>
|
|
118
|
+
<transition-group :name="pageTransition" appear mode="in-out">
|
|
112
119
|
<iframe
|
|
113
120
|
v-for="frame of tabs.filter((item) => item.iframe)"
|
|
114
|
-
v-show="frame.active &&
|
|
121
|
+
v-show="frame.active && iframeShown"
|
|
115
122
|
:key="frame.id"
|
|
116
123
|
class="stack-tab__iframe"
|
|
117
124
|
:src="/^(javascript|data):/i.test(frame.url ?? '') ? 'about:blank' : frame.url"
|
|
@@ -24,7 +24,7 @@ export default () => {
|
|
|
24
24
|
addPageScroller(currentPageId, ...scroller)
|
|
25
25
|
}
|
|
26
26
|
const forward = (to: RouteLocationPathRaw) => {
|
|
27
|
-
pageShown.value = false
|
|
27
|
+
// pageShown.value = false
|
|
28
28
|
const query = defu(
|
|
29
29
|
{
|
|
30
30
|
__tab: currentTab
|
|
@@ -42,7 +42,7 @@ export default () => {
|
|
|
42
42
|
* @param query 返回时要加截的数据
|
|
43
43
|
*/
|
|
44
44
|
const backward = (to: number | string, query?: Object) => {
|
|
45
|
-
pageShown.value = false
|
|
45
|
+
// pageShown.value = false
|
|
46
46
|
|
|
47
47
|
const tab = getTab(currentId)
|
|
48
48
|
if (!tab) {
|