vue-stack-tabs 0.1.19 → 0.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- (function(M,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):(M=typeof globalThis<"u"?globalThis:M||self,r(M["vue-stack-tabs"]={},M.Vue,M.vueRouter))})(this,function(M,r,j){"use strict";var qr=Object.defineProperty;var Xr=(M,r,j)=>r in M?qr(M,r,{enumerable:!0,configurable:!0,writable:!0,value:j}):M[r]=j;var jt=(M,r,j)=>(Xr(M,typeof r!="symbol"?r+"":r,j),j);const Dt=Object.freeze(Object.defineProperty({__proto__:null,default:{VueStackTab:{close:"close",closeLefts:"close lefts",closeRights:"close rights",closeOthers:"close others",closeAll:"close all",reload:"reload",reloadAll:"reload all",maximum:"maximum",restore:"restore",undefined:"undefined",loading:"loading"}}},Symbol.toStringTag,{value:"Module"})),Pt=Object.freeze(Object.defineProperty({__proto__:null,default:{VueStackTab:{close:"关闭",closeLefts:"关闭左侧",closeRights:"关闭右侧",closeOthers:"关闭其他",closeAll:"关闭所有",reload:"刷新",reloadAll:"刷新所有",maximum:"最大化",restore:"还原",undefined:"未命名",loading:"加载中"}}},Symbol.toStringTag,{value:"Module"}));/*!
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,F){"use strict";var no=Object.defineProperty;var ro=(N,r,F)=>r in N?no(N,r,{enumerable:!0,configurable:!0,writable:!0,value:F}):N[r]=F;var Ht=(N,r,F)=>(ro(N,typeof r!="symbol"?r+"":r,F),F);const Zt=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"})),Xt=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 Ut=["__proto__","prototype","constructor"];function Wt(e){const t=typeof e;return e!==null&&(t==="object"||t==="function")}function Ft(e){return!(Array.isArray(e)?e.length:Object.keys(e).length)}function Ht(e){return!e.some(t=>Ut.indexOf(t)!==-1)}function Zt(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 Ht(n)?n:[]}function We(e,t){if(!Wt(e))return"";const n=Zt(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 Gt(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 qt(e,t){for(const n in t)e=e.replace(`{${n}}`,String(t[n]));return e}function Fe(e,t){return Object.keys(t).forEach(n=>{t[n]instanceof Object&&n in e&&(t[n]={...t[n],...Fe(e[n],t[n])})}),{...e||{},...t}}const Xt=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",He=(e=>Xt?Symbol(e):"_vt_"+e)("i18n");function Se(){return r.inject(He)}function Yt(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 d=We(o[a],s)||We(o[t.fallbackLocale],s);if(i&&typeof i!="string"){const l=Gt(d,i);Ft(l)||(d=qt(d,l))}return d||s},current:r.readonly(n),options:r.readonly(e||{}),install(s){const i=this;s.config.globalProperties.$t=i.t,s.provide(He,i)},changeLocale(s){n.value=s},setLocaleMessage(s,i){o[s]=Fe(r.toRaw(o[s]||{}),i)},getLocaleMessage(s){return o[s]||{}}}}const Jt=()=>{const e=Object.assign({"./lang/en.ts":Dt,"./lang/zh-CN.ts":Pt});function t(s,i){for(const a in s)if(s[a].default){const d=a.substring(a.lastIndexOf("/")+1,a.lastIndexOf("."));i[d]?i[d]={...s[d],...s[a].default}:i[d]=s[a].default}}const n=()=>{const s={};return t(e,s),s};return{getI18n:s=>{let i={...n()};return s||(i={...n(),...s.messages}),Yt({locale:s.locale,fallbackLocale:"en",messages:i})}}},Ze=({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 Kt({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,d;n==="center"?d=i+(e.clientHeight-t.clientHeight)/2:d=i,o==="center"?a=s+(e.clientWidth-t.clientWidth)/2:a=s,Ze({wrap:t,left:a,top:d})}}const Ge=(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 F=(e=>(e.WHEEL="wheel",e.BUTTON="button",e.BOTH="both",e))(F||{});class de{constructor(t){jt(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 Oe(e){if(!Be(e))throw new Error("Parameter was not an error")}function Be(e){return Qt(e)==="[object Error]"||e instanceof Error}function Qt(e){return Object.prototype.toString.call(e)}function en(e){let t,n="";if(e.length===0)t={};else if(Be(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 V extends Error{constructor(t,n){const o=[...arguments],{options:s,shortMessage:i}=en(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 d=s.constructorOpt||this.constructor;Error.captureStackTrace(this,d)}}static cause(t){return Oe(t),t._cause&&Be(t._cause)?t._cause:null}static fullStack(t){Oe(t);const n=V.cause(t);return n?`${t.stack}
6
- caused by: ${V.fullStack(n)}`:t.stack}static info(t){Oe(t);const n={},o=V.cause(t);return o&&Object.assign(n,V.info(o)),t._info&&Object.assign(n,t._info),n}cause(){return V.cause(this)}toString(){let t=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t=`${t}: ${this.message}`),t}}const qe="0123456789ABCDEFGHJKMNPQRSTVWXYZ",ne=32,Xe=0xffffffffffff,tn=10,nn=16,re=Object.freeze({source:"ulid"});function rn(e){const t=e||on(),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 V({info:{code:"PRNG_DETECT",...re}},"Failed to find a reliable PRNG")}function on(){return cn()?self:typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:null}function sn(e,t){let n="";for(;e>0;e--)n=ln(t)+n;return n}function an(e,t){if(isNaN(e))throw new V({info:{code:"ENC_TIME_NAN",...re}},`Time must be a number: ${e}`);if(e>Xe)throw new V({info:{code:"ENC_TIME_SIZE_EXCEED",...re}},`Cannot encode a time larger than ${Xe}: ${e}`);if(e<0)throw new V({info:{code:"ENC_TIME_NEG",...re}},`Time must be positive: ${e}`);if(Number.isInteger(e)===!1)throw new V({info:{code:"ENC_TIME_TYPE",...re}},`Time must be an integer: ${e}`);let n,o="";for(let s=t;s>0;s--)n=e%ne,o=qe.charAt(n)+o,e=(e-n)/ne;return o}function cn(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function ln(e){let t=Math.floor(e()*ne);return t===ne&&(t=ne-1),qe.charAt(t)}function Ye(e,t){const n=t||rn(),o=isNaN(e)?Date.now():e;return an(o,tn)+sn(nn,n)}var Ae={exports:{}};Ae.exports,function(e){var t=function(){var n=String.fromCharCode,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",i={};function a(l,c){if(!i[l]){i[l]={};for(var m=0;m<l.length;m++)i[l][l.charAt(m)]=m}return i[l][c]}var d={compressToBase64:function(l){if(l==null)return"";var c=d._compress(l,6,function(m){return o.charAt(m)});switch(c.length%4){default:case 0:return c;case 1:return c+"===";case 2:return c+"==";case 3:return c+"="}},decompressFromBase64:function(l){return l==null?"":l==""?null:d._decompress(l.length,32,function(c){return a(o,l.charAt(c))})},compressToUTF16:function(l){return l==null?"":d._compress(l,15,function(c){return n(c+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:d._decompress(l.length,16384,function(c){return l.charCodeAt(c)-32})},compressToUint8Array:function(l){for(var c=d.compress(l),m=new Uint8Array(c.length*2),p=0,f=c.length;p<f;p++){var T=c.charCodeAt(p);m[p*2]=T>>>8,m[p*2+1]=T%256}return m},decompressFromUint8Array:function(l){if(l==null)return d.decompress(l);for(var c=new Array(l.length/2),m=0,p=c.length;m<p;m++)c[m]=l[m*2]*256+l[m*2+1];var f=[];return c.forEach(function(T){f.push(n(T))}),d.decompress(f.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":d._compress(l,6,function(c){return s.charAt(c)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),d._decompress(l.length,32,function(c){return a(s,l.charAt(c))}))},compress:function(l){return d._compress(l,16,function(c){return n(c)})},_compress:function(l,c,m){if(l==null)return"";var p,f,T={},E={},x="",B="",S="",k=2,w=3,g=2,A=[],h=0,_=0,v;for(v=0;v<l.length;v+=1)if(x=l.charAt(v),Object.prototype.hasOwnProperty.call(T,x)||(T[x]=w++,E[x]=!0),B=S+x,Object.prototype.hasOwnProperty.call(T,B))S=B;else{if(Object.prototype.hasOwnProperty.call(E,S)){if(S.charCodeAt(0)<256){for(p=0;p<g;p++)h=h<<1,_==c-1?(_=0,A.push(m(h)),h=0):_++;for(f=S.charCodeAt(0),p=0;p<8;p++)h=h<<1|f&1,_==c-1?(_=0,A.push(m(h)),h=0):_++,f=f>>1}else{for(f=1,p=0;p<g;p++)h=h<<1|f,_==c-1?(_=0,A.push(m(h)),h=0):_++,f=0;for(f=S.charCodeAt(0),p=0;p<16;p++)h=h<<1|f&1,_==c-1?(_=0,A.push(m(h)),h=0):_++,f=f>>1}k--,k==0&&(k=Math.pow(2,g),g++),delete E[S]}else for(f=T[S],p=0;p<g;p++)h=h<<1|f&1,_==c-1?(_=0,A.push(m(h)),h=0):_++,f=f>>1;k--,k==0&&(k=Math.pow(2,g),g++),T[B]=w++,S=String(x)}if(S!==""){if(Object.prototype.hasOwnProperty.call(E,S)){if(S.charCodeAt(0)<256){for(p=0;p<g;p++)h=h<<1,_==c-1?(_=0,A.push(m(h)),h=0):_++;for(f=S.charCodeAt(0),p=0;p<8;p++)h=h<<1|f&1,_==c-1?(_=0,A.push(m(h)),h=0):_++,f=f>>1}else{for(f=1,p=0;p<g;p++)h=h<<1|f,_==c-1?(_=0,A.push(m(h)),h=0):_++,f=0;for(f=S.charCodeAt(0),p=0;p<16;p++)h=h<<1|f&1,_==c-1?(_=0,A.push(m(h)),h=0):_++,f=f>>1}k--,k==0&&(k=Math.pow(2,g),g++),delete E[S]}else for(f=T[S],p=0;p<g;p++)h=h<<1|f&1,_==c-1?(_=0,A.push(m(h)),h=0):_++,f=f>>1;k--,k==0&&(k=Math.pow(2,g),g++)}for(f=2,p=0;p<g;p++)h=h<<1|f&1,_==c-1?(_=0,A.push(m(h)),h=0):_++,f=f>>1;for(;;)if(h=h<<1,_==c-1){A.push(m(h));break}else _++;return A.join("")},decompress:function(l){return l==null?"":l==""?null:d._decompress(l.length,32768,function(c){return l.charCodeAt(c)})},_decompress:function(l,c,m){var p=[],f=4,T=4,E=3,x="",B=[],S,k,w,g,A,h,_,v={val:m(0),position:c,index:1};for(S=0;S<3;S+=1)p[S]=S;for(w=0,A=Math.pow(2,2),h=1;h!=A;)g=v.val&v.position,v.position>>=1,v.position==0&&(v.position=c,v.val=m(v.index++)),w|=(g>0?1:0)*h,h<<=1;switch(w){case 0:for(w=0,A=Math.pow(2,8),h=1;h!=A;)g=v.val&v.position,v.position>>=1,v.position==0&&(v.position=c,v.val=m(v.index++)),w|=(g>0?1:0)*h,h<<=1;_=n(w);break;case 1:for(w=0,A=Math.pow(2,16),h=1;h!=A;)g=v.val&v.position,v.position>>=1,v.position==0&&(v.position=c,v.val=m(v.index++)),w|=(g>0?1:0)*h,h<<=1;_=n(w);break;case 2:return""}for(p[3]=_,k=_,B.push(_);;){if(v.index>l)return"";for(w=0,A=Math.pow(2,E),h=1;h!=A;)g=v.val&v.position,v.position>>=1,v.position==0&&(v.position=c,v.val=m(v.index++)),w|=(g>0?1:0)*h,h<<=1;switch(_=w){case 0:for(w=0,A=Math.pow(2,8),h=1;h!=A;)g=v.val&v.position,v.position>>=1,v.position==0&&(v.position=c,v.val=m(v.index++)),w|=(g>0?1:0)*h,h<<=1;p[T++]=n(w),_=T-1,f--;break;case 1:for(w=0,A=Math.pow(2,16),h=1;h!=A;)g=v.val&v.position,v.position>>=1,v.position==0&&(v.position=c,v.val=m(v.index++)),w|=(g>0?1:0)*h,h<<=1;p[T++]=n(w),_=T-1,f--;break;case 2:return B.join("")}if(f==0&&(f=Math.pow(2,E),E++),p[_])x=p[_];else if(_===T)x=k+k.charAt(0);else return null;B.push(x),p[T++]=k+x.charAt(0),f--,k=x,f==0&&(f=Math.pow(2,E),E++)}}};return d}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})}(Ae);var Je=Ae.exports;const fn=new TextEncoder,un=new TextDecoder("utf-8",{ignoreBOM:!0}),Ke={encode:e=>fn.encode(e),decode:e=>un.decode(e)},Qe=(()=>{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})(),dn=(()=>{const e={};for(let t=0;t<256;t++){const n=Qe[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})(),Ce={encode:e=>{let t="";for(let n=0,o=e.length;n<o;n++)t+=Qe[e[n]];return t},encodeStr:e=>Ce.encode(Ke.encode(e)),decode:e=>{const t=e.length/2,n=new Uint8Array(t);for(let o=0;o<t;o++)n[o]=dn[e.slice(o*2,o*2+2)];return n},decodeStr:e=>Ke.decode(Ce.decode(e)),is:e=>!(e.length%2||!/^[a-fA-F0-9]*$/.test(e))};function oe(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function hn(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}function et(e,...t){if(!hn(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 Ie(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 tt(e,t){et(e);const n=t.outputLen;if(e.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}const he=BigInt(2**32-1),nt=BigInt(32);function rt(e,t=!1){return t?{h:Number(e&he),l:Number(e>>nt&he)}:{h:Number(e>>nt&he)|0,l:Number(e&he)|0}}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const pn=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),pe=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));function bn(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}const be=(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 mn(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function Me(e){if(typeof e=="string"&&(e=mn(e)),!bn(e))throw new Error(`expected Uint8Array, got ${typeof e}`);return e}class gn{clone(){return this._cloneInto()}}function yn(e){const t=(o,s)=>e(s).update(Me(o)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=o=>e(o),t}class kn extends gn{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,oe(t),oe(n),oe(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=pe(this.buffer=new Uint8Array(t))}update(t){Ie(this);const{blockLen:n,buffer:o,buffer32:s}=this;t=Me(t);const i=t.length,a=t.byteOffset,d=t.buffer;for(let l=0;l<i;){this.pos===n&&(this.compress(s,0,!1),this.pos=0);const c=Math.min(n-this.pos,i-l),m=a+l;if(c===n&&!(m%4)&&l+c<i){const p=new Uint32Array(d,m,Math.floor((i-l)/4));for(let f=0;l+n<i;f+=s.length,l+=n)this.length+=n,this.compress(p,f,!1);continue}o.set(t.subarray(l,l+c),this.pos),this.pos+=c,this.length+=c,l+=c}return this}digestInto(t){Ie(this),tt(t,this);const{pos:n,buffer32:o}=this;this.finished=!0,this.buffer.subarray(n).fill(0),this.compress(o,0,!0);const s=pe(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:d}=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=d,t}}const U=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);function H(e,t,n,o,s){return e=e+t+s|0,o=be(o^e,16),n=n+o|0,t=be(t^n,12),{a:e,b:t,c:n,d:o}}function Z(e,t,n,o,s){return e=e+t+s|0,o=be(o^e,8),n=n+o|0,t=be(t^n,7),{a:e,b:t,c:n,d:o}}function ot(e,t,n,o,s,i,a,d,l,c,m,p,f,T,E,x,B,S,k,w){let g=0;for(let A=0;A<o;A++)({a:s,b:l,c:f,d:B}=H(s,l,f,B,n[t+e[g++]])),{a:s,b:l,c:f,d:B}=Z(s,l,f,B,n[t+e[g++]]),{a:i,b:c,c:T,d:S}=H(i,c,T,S,n[t+e[g++]]),{a:i,b:c,c:T,d:S}=Z(i,c,T,S,n[t+e[g++]]),{a,b:m,c:E,d:k}=H(a,m,E,k,n[t+e[g++]]),{a,b:m,c:E,d:k}=Z(a,m,E,k,n[t+e[g++]]),{a:d,b:p,c:x,d:w}=H(d,p,x,w,n[t+e[g++]]),{a:d,b:p,c:x,d:w}=Z(d,p,x,w,n[t+e[g++]]),{a:s,b:c,c:E,d:w}=H(s,c,E,w,n[t+e[g++]]),{a:s,b:c,c:E,d:w}=Z(s,c,E,w,n[t+e[g++]]),{a:i,b:m,c:x,d:B}=H(i,m,x,B,n[t+e[g++]]),{a:i,b:m,c:x,d:B}=Z(i,m,x,B,n[t+e[g++]]),{a,b:p,c:f,d:S}=H(a,p,f,S,n[t+e[g++]]),{a,b:p,c:f,d:S}=Z(a,p,f,S,n[t+e[g++]]),{a:d,b:l,c:T,d:k}=H(d,l,T,k,n[t+e[g++]]),{a:d,b:l,c:T,d:k}=Z(d,l,T,k,n[t+e[g++]]);return{v0:s,v1:i,v2:a,v3:d,v4:l,v5:c,v6:m,v7:p,v8:f,v9:T,v10:E,v11:x,v12:B,v13:S,v14:k,v15:w}}const st=(()=>{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 Ne extends kn{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,oe(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=Me(t.key).slice();if(o.length!==32)throw new Error("Blake3: key should be 32 byte");this.IV=pe(o),this.flags=n|16}else if(t.context!==void 0){const o=new Ne({dkLen:32},32).update(t.context).digest();this.IV=pe(o),this.flags=n|64}else this.IV=U.slice(),this.flags=n;this.state=this.IV.slice(),this.bufferOut=pn(this.bufferOut32)}get(){return[]}set(){}b2Compress(t,n,o,s=0){const{state:i,pos:a}=this,{h:d,l}=rt(BigInt(t),!0),{v0:c,v1:m,v2:p,v3:f,v4:T,v5:E,v6:x,v7:B,v8:S,v9:k,v10:w,v11:g,v12:A,v13:h,v14:_,v15:v}=ot(st,s,o,7,i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],U[0],U[1],U[2],U[3],d,l,a,n);i[0]=c^S,i[1]=m^k,i[2]=p^w,i[3]=f^g,i[4]=T^A,i[5]=E^h,i[6]=x^_,i[7]=B^v}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,d=this.chunksDone+1;(o||!(d&1))&&(a=this.stack.pop());d>>=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:d,stack:l,chunksDone:c}=this;return t.state.set(s.slice()),t.stack=l.map(m=>Uint32Array.from(m)),t.IV.set(n),t.flags=o,t.chunkPos=i,t.chunksDone=c,t.posOut=a,t.chunkOut=d,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:d}=rt(BigInt(this.chunkOut++)),{v0:l,v1:c,v2:m,v3:p,v4:f,v5:T,v6:E,v7:x,v8:B,v9:S,v10:k,v11:w,v12:g,v13:A,v14:h,v15:_}=ot(st,0,s,7,t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],U[0],U[1],U[2],U[3],d,a,n,o);i[0]=l^B,i[1]=c^S,i[2]=m^k,i[3]=p^w,i[4]=f^g,i[5]=T^A,i[6]=E^h,i[7]=x^_,i[8]=t[0]^B,i[9]=t[1]^S,i[10]=t[2]^k,i[11]=t[3]^w,i[12]=t[4]^g,i[13]=t[5]^A,i[14]=t[6]^h,i[15]=t[7]^_,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){Ie(this,!1),et(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 oe(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(tt(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 wn=yn(e=>new Ne(e)),it=e=>{const t=`${e.id}|${e.title}|${e.iframe?"Y":"N"}|${e.closable?"Y":"N"}|${e.refreshable?"Y":"N"}`;return Je.compressToEncodedURIComponent(t)},_n=e=>{const n=Je.decompressFromEncodedURIComponent(e).split("|");return{id:n[0],title:n[1],iframe:n[2]==="Y",closable:n[3]==="Y",refreshable:n[4]==="Y"}},at=(e,t,n)=>{const o=[];for(const i in n)i.startsWith("__")||o.push({key:i,value:n[i]});o.sort((i,a)=>{let d=0;return i.key>a.key?d=1:i.key<a.key&&(d=-1),d});const s=wn(`${e}|${t}|${JSON.stringify(o)}`);return Ce.encode(s)};function ze(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 Le(e,t,n=".",o){if(!ze(t))return Le(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]]:ze(a)&&ze(s[i])?s[i]=Le(a,s[i],(n?`${n}.`:"")+i.toString(),o):s[i]=a))}return s}function Tn(e){return(...t)=>t.reduce((n,o)=>Le(n,o,"",e),{})}const W=Tn(),$e=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 xn(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 vn=xn(),En={install(e){e.provide("tabEmitter",vn)}},se=()=>r.inject("tabEmitter");var L=(e=>(e.PAGE_LOADING="PAGE_LOADING",e.TAB_ACTIVE="TAB_ACTIVE",e))(L||{});const Sn={key:0,class:"stack-tab-loading-mask"},On=[r.createElementVNode("div",{class:"stack-tab-loading--spin turn"},null,-1)],Bn=r.defineComponent({__name:"PageLoading",props:{tId:{}},setup(e){const t=e,n=se(),o=r.ref(!1);return n.on(L.PAGE_LOADING,({tId:s,value:i})=>{s===t.tId&&(o.value=i)}),(s,i)=>o.value?(r.openBlock(),r.createElementBlock("div",Sn,On)):r.createCommentVNode("",!0)}}),C=r.ref([]),me=[],N=r.ref([]),Y=new Map,ge=new Set,ie=r.ref(!0),ct="stacktab-active-tab";let ye=0;const ae=()=>{const e=j.useRouter(),t=se(),n=()=>C.value.length,o=u=>{me.splice(0);for(const O of u){const y=W(O,{id:Ye()}),I=it(y),$=$e(y.path),z=W(y,{closable:!0,refreshable:!0,iframe:!1}),te=at(y.id,$.path,$.query),X={id:te,tabId:y.id,path:$.path,query:W($.query,{__tab:I})},Rt=new de;Rt.push(X);const Vt={id:y.id,title:z.title,closable:z.closable,refreshable:z.refreshable,iframe:z.iframe,active:!1,pages:Rt};me.push(Vt),C.value.push(Vt),N.value.push(te)}const b=window.sessionStorage.getItem(ct);if(b!=null){const O=JSON.parse(b,(I,$)=>I==="pages"?new de($):$);let y=!1;for(const I of C.value)if(I.id===O.id){y=!0;break}y||C.value.push(O)}},s=u=>{for(const b of C.value)if(b.id===u)return!0;return!1},i=()=>ye<=0||ye>0&&ye>C.value.length,a=u=>new Promise(b=>{C.value.push(u),b(!0)}),d=u=>{for(const b of C.value)if(b.id===u)return b;return null},l=(u,b)=>{let O;const y=_n(u.query.__tab),I=at(y.id,u.path,u.query.valueOf()),$=u.query.__src;let z=null;for(const X of r.unref(C))X.active=!1,X.id===y.id&&(z=X);const te={id:I,tabId:y.id,path:u.path,query:u.query};if(z===null){const X=new de;X.push(te),z={id:y.id,title:y.title,closable:y.closable,refreshable:y.refreshable,iframe:y.iframe,url:decodeURIComponent($),active:!0,pages:X},a(z).then(()=>{t.emit(L.TAB_ACTIVE,{id:y.id,isRoute:!1})})}else z.active=!0,(z.pages.isEmpty()||z.pages.peek().id!==te.id)&&z.pages.push(te);return v(z),Y.has(I)?O=Y.get(I):(O=r.defineComponent({name:I,components:{DynamicComponent:b},setup(){return r.onActivated(()=>{g(),b.props=null}),r.onUnmounted(()=>{}),()=>r.createVNode("div",{class:"cache-page-wrapper",id:"W-"+y.id},[r.createVNode(r.resolveComponent("dynamic-component"),{tId:y.id,pId:I},null),r.createVNode(Bn,{tId:y.id},null)])}}),Y.set(I,O)),h(I),O},c=u=>{let b="";for(let O=C.value.length-1;O>=0;O--)if(u===r.unref(C)[O].id){if(!r.unref(C)[O].closable)return u;for(const y of r.unref(C)[O].pages.list())k(y.id),w(y.id);r.unref(C)[O].pages.clear(),C.value.length>1&&r.unref(C)[O].active&&(O===0?b=r.unref(C)[O+1].id:b=r.unref(C)[O-1].id),r.unref(C).splice(O,1);break}return b!==""&&t.emit(L.TAB_ACTIVE,{id:b}),g(),b},m=()=>{const u=r.unref(C);for(let b=u.length-1;b>=0;b--)if(u[b].closable){for(const O of u[b].pages.list())k(O.id),w(O.id);r.unref(C)[b].pages.clear(),r.unref(C).splice(b,1)}for(const b of u)if(b.active){g();return}t.emit(L.TAB_ACTIVE,{id:u[u.length-1].id})},p=u=>{const b=r.unref(C);let O;for(let y=b.length-1;y>=0;y--)if(b[y].id===u)O=b[y];else if(b[y].closable&&b[y].id!==u){for(const I of b[y].pages.list())k(I.id),w(I.id);r.unref(C)[y].pages.clear(),r.unref(C).splice(y,1)}O.active?g():t.emit(L.TAB_ACTIVE,{id:u})},f=u=>{let b=-1;const O=r.unref(C);for(let y=0;y<O.length;y++)if(O[y].id===u){b=y-1;break}for(let y=b;y>=0;y--)if(O[y].closable){for(const I of O[y].pages.list())k(I.id),w(I.id);r.unref(C)[y].pages.clear(),r.unref(C).splice(y,1)}for(const y of O)if(y.active){g();return}t.emit(L.TAB_ACTIVE,{id:O[0].id})},T=u=>{const b=r.unref(C);let O=b.length;for(let y=0;y<b.length;y++)if(b[y].id===u){O=y+1;break}for(let y=b.length-1;y>=O;y--)if(b[y].closable){for(const I of b[y].pages.list())k(I.id),w(I.id);r.unref(C)[y].pages.clear(),r.unref(C).splice(y,1)}for(const y of b)if(y.active){g();return}t.emit(L.TAB_ACTIVE,{id:b[b.length-1].id})},E=u=>{var b;for(const O of r.unref(C))if(O.id===u){const y=(b=O.pages.peek())==null?void 0:b.id;for(let I=N.value.length-1;I>=0;I--)if(N.value[I]===y){N.value.splice(I,1),O.active&&(ie.value=!1);break}break}},x=()=>{const u=new Set;C.value.forEach(b=>{u.add(b.pages.peek().id)});for(let b=N.value.length-1;b>=0;b--){const O=N.value[b];u.has(O)&&N.value.splice(b,1)}ie.value=!1},B=(u,b)=>{Y.set(u,b)},S=u=>Y.get(u),k=u=>{Y.delete(u)},w=u=>{ge.add(u)},g=()=>{for(let u=N.value.length-1;u>=0;u--)ge.has(N.value[u])&&r.unref(N).splice(u,1);ge.clear()},A=u=>{for(let b=N.value.length-1;b>=0;b--)u===N.value[b]&&r.unref(N).splice(b,1)},h=u=>{new Set(N.value).has(u)||N.value.push(u)},_=(u,b=!0)=>new Promise(O=>{for(let y=C.value.length-1;y>=0;y--){const I=C.value[y];if(I.id===u){if(I.active)break;if(I.active=!0,ie.value=!1,v(I),b){const $=I.pages.peek();e.push({path:$.path,query:$.query})}}else C.value[y].active=!1}O(!0)}),v=u=>{window.sessionStorage.setItem(ct,JSON.stringify(u))},R=()=>{q(),r.unref(C).push(...me),t.emit(L.TAB_ACTIVE,{id:me[0].id})},q=()=>{r.unref(C).splice(0),Y.clear(),ge.clear(),r.unref(N).splice(0),ie.value=!0};return{tabs:C,caches:N,pageShown:ie,setMaxSize:u=>{ye=u},canAddTab:i,initial:o,size:n,active:_,destroy:q,reset:R,addCache:h,removeCache:A,getTab:d,addTab:a,removeTab:c,removeAllTabs:m,removeLeftTabs:f,removeRightTabs:T,removeOtherTabs:p,hasTab:s,addPage:l,addComponent:B,getComponent:S,removeComponent:k,markDeletableCache:w,removeDeletableCache:g,refreshTab:E,refreshAllTabs:x}},An={class:"stack-tab__contextmenu-item"},G=r.defineComponent({__name:"ContextMenuItem",props:{icon:{},title:{}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("div",An,[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)]))}}),Cn={key:0,class:"divider div-transparent"},In=((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}=Se(),o=r.ref(),s=r.reactive({left:t.left,top:t.top}),{removeTab:i,removeAllTabs:a,removeLeftTabs:d,removeRightTabs:l,refreshTab:c,refreshAllTabs:m,removeOtherTabs:p}=ae();return r.onMounted(()=>{const f=o.value?o.value.clientWidth:0,T=window.innerWidth;s.left+f>T&&(s.left=T-f-5)}),(f,T)=>(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(Ge)(".stack-tab,.stack-tab *")})},[r.createVNode(G,{icon:"stack-tab__icon-reload svg-mask",title:r.unref(n)("VueStackTab.reload"),onClick:T[0]||(T[0]=E=>r.unref(c)(f.tabItem.id))},null,8,["title"]),r.createVNode(G,{icon:"stack-tab__icon-reload-all svg-mask",title:r.unref(n)("VueStackTab.reloadAll"),onClick:r.unref(m)},null,8,["title","onClick"]),r.createVNode(G,{icon:"stack-tab__icon-close svg-mask",title:r.unref(n)("VueStackTab.close"),disabled:f.tabItem.closable?null:"disabled",onClick:T[1]||(T[1]=E=>r.unref(i)(f.tabItem.id))},null,8,["title","disabled"]),r.createVNode(G,{icon:"stack-tab__icon-close-lefts svg-mask",title:r.unref(n)("VueStackTab.closeLefts"),disabled:f.index<=0?"disabled":null,onClick:T[2]||(T[2]=E=>r.unref(d)(f.tabItem.id))},null,8,["title","disabled"]),r.createVNode(G,{icon:"stack-tab__icon-close-rights svg-mask",title:r.unref(n)("VueStackTab.closeRights"),disabled:f.index>=f.max-1?"disabled":null,onClick:T[3]||(T[3]=E=>r.unref(l)(f.tabItem.id))},null,8,["title","disabled"]),r.createVNode(G,{icon:"stack-tab__icon-close-others svg-mask",title:r.unref(n)("VueStackTab.closeOthers"),onClick:T[4]||(T[4]=E=>r.unref(p)(f.tabItem.id))},null,8,["title"]),r.createVNode(G,{icon:"stack-tab__icon-close-all svg-mask",title:r.unref(n)("VueStackTab.closeAll"),onClick:r.unref(a)},null,8,["title","onClick"]),f.contextMenu!==void 0&&f.contextMenu.length>0?(r.openBlock(),r.createElementBlock("div",Cn)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(f.contextMenu,(E,x)=>(r.openBlock(),r.createBlock(G,{key:x,icon:E.icon,title:E.title,disabled:E.disabled(f.tabItem)?"disabled":null,onClick:B=>!E.disabled&&E.callback(f.tabItem.id)},null,8,["icon","title","disabled","onClick"]))),128))],4))}}),[["__scopeId","data-v-40e99b5b"]]),Mn=()=>{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,d)=>{t.value=!1,await r.nextTick(()=>{const{clientY:l,clientX:c}=s;t.value=!0,Object.assign(e,{item:i,index:a,top:l,left:c,max:d})})},o=s=>{s.target.classList.contains("stack-tab__contextmenu")||(t.value=!1)};return{shown:t,contextMenuData:e,showContextMenu:n}},Nn={class:"stack-tab__item-title"},zn=["title"],Ln=["title"],$n=r.defineComponent({__name:"TabHeaderItem",props:{item:{}},emits:["close","active"],setup(e,{emit:t}){const n=t,o=se(),{t:s}=Se(),i=r.ref(),a=e;o.on(L.TAB_ACTIVE,({id:m,isRoute:p})=>{a.item.id===m&&c(p)});const d=r.computed(()=>a.item.title||s("undefined")),l=()=>{n("close",a.item)},c=(m=!0)=>{n("active",a.item,i,m)};return(m,p)=>(r.openBlock(),r.createElementBlock("li",{ref_key:"curtab",ref:i,class:r.normalizeClass(["stack-tab__item",{"is-active":m.item.active,"is-icon":m.item.closable}]),onClick:p[0]||(p[0]=f=>c(!0))},[r.createElementVNode("div",Nn,[r.createElementVNode("div",{class:"stack-tab__item-title-content",title:d.value},r.toDisplayString(d.value),9,zn)]),m.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,Ln)):r.createCommentVNode("",!0)],2))}});var J=[],Rn=function(){return J.some(function(e){return e.activeTargets.length>0})},Vn=function(){return J.some(function(e){return e.skippedTargets.length>0})},lt="ResizeObserver loop completed with undelivered notifications.",jn=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:lt}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=lt),window.dispatchEvent(e)},ce;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(ce||(ce={}));var K=function(e){return Object.freeze(e)},Dn=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,K(this)}return e}(),ft=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,K(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,o=t.y,s=t.top,i=t.right,a=t.bottom,d=t.left,l=t.width,c=t.height;return{x:n,y:o,top:s,right:i,bottom:a,left:d,width:l,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Re=function(e){return e instanceof SVGElement&&"getBBox"in e},ut=function(e){if(Re(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)},dt=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)},Pn=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},le=typeof window<"u"?window:{},ke=new WeakMap,ht=/auto|scroll/,Un=/^tb|vertical/,Wn=/msie|trident/i.test(le.navigator&&le.navigator.userAgent),D=function(e){return parseFloat(e||"0")},Q=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new Dn((n?t:e)||0,(n?e:t)||0)},pt=K({devicePixelContentBoxSize:Q(),borderBoxSize:Q(),contentBoxSize:Q(),contentRect:new ft(0,0,0,0)}),bt=function(e,t){if(t===void 0&&(t=!1),ke.has(e)&&!t)return ke.get(e);if(ut(e))return ke.set(e,pt),pt;var n=getComputedStyle(e),o=Re(e)&&e.ownerSVGElement&&e.getBBox(),s=!Wn&&n.boxSizing==="border-box",i=Un.test(n.writingMode||""),a=!o&&ht.test(n.overflowY||""),d=!o&&ht.test(n.overflowX||""),l=o?0:D(n.paddingTop),c=o?0:D(n.paddingRight),m=o?0:D(n.paddingBottom),p=o?0:D(n.paddingLeft),f=o?0:D(n.borderTopWidth),T=o?0:D(n.borderRightWidth),E=o?0:D(n.borderBottomWidth),x=o?0:D(n.borderLeftWidth),B=p+c,S=l+m,k=x+T,w=f+E,g=d?e.offsetHeight-w-e.clientHeight:0,A=a?e.offsetWidth-k-e.clientWidth:0,h=s?B+k:0,_=s?S+w:0,v=o?o.width:D(n.width)-h-A,R=o?o.height:D(n.height)-_-g,q=v+B+A+k,ee=R+S+g+w,u=K({devicePixelContentBoxSize:Q(Math.round(v*devicePixelRatio),Math.round(R*devicePixelRatio),i),borderBoxSize:Q(q,ee,i),contentBoxSize:Q(v,R,i),contentRect:new ft(p,l,v,R)});return ke.set(e,u),u},mt=function(e,t,n){var o=bt(e,n),s=o.borderBoxSize,i=o.contentBoxSize,a=o.devicePixelContentBoxSize;switch(t){case ce.DEVICE_PIXEL_CONTENT_BOX:return a;case ce.BORDER_BOX:return s;default:return i}},Fn=function(){function e(t){var n=bt(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=K([n.borderBoxSize]),this.contentBoxSize=K([n.contentBoxSize]),this.devicePixelContentBoxSize=K([n.devicePixelContentBoxSize])}return e}(),gt=function(e){if(ut(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Hn=function(){var e=1/0,t=[];J.forEach(function(a){if(a.activeTargets.length!==0){var d=[];a.activeTargets.forEach(function(c){var m=new Fn(c.target),p=gt(c.target);d.push(m),c.lastReportedSize=mt(c.target,c.observedBox),p<e&&(e=p)}),t.push(function(){a.callback.call(a.observer,d,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},yt=function(e){J.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(s){s.isActive()&&(gt(s.target)>e?n.activeTargets.push(s):n.skippedTargets.push(s))})})},Zn=function(){var e=0;for(yt(e);Rn();)e=Hn(),yt(e);return Vn()&&jn(),e>0},Ve,kt=[],Gn=function(){return kt.splice(0).forEach(function(e){return e()})},qn=function(e){if(!Ve){var t=0,n=document.createTextNode(""),o={characterData:!0};new MutationObserver(function(){return Gn()}).observe(n,o),Ve=function(){n.textContent="".concat(t?t--:t++)}}kt.push(e),Ve()},Xn=function(e){qn(function(){requestAnimationFrame(e)})},we=0,Yn=function(){return!!we},Jn=250,Kn={attributes:!0,characterData:!0,childList:!0,subtree:!0},wt=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],_t=function(e){return e===void 0&&(e=0),Date.now()+e},je=!1,Qn=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=Jn),!je){je=!0;var o=_t(t);Xn(function(){var s=!1;try{s=Zn()}finally{if(je=!1,t=o-_t(),!Yn())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,Kn)};document.body?n():le.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),wt.forEach(function(n){return le.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),wt.forEach(function(n){return le.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),De=new Qn,Tt=function(e){!we&&e>0&&De.start(),we+=e,!we&&De.stop()},er=function(e){return!Re(e)&&!Pn(e)&&getComputedStyle(e).display==="inline"},tr=function(){function e(t,n){this.target=t,this.observedBox=n||ce.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=mt(this.target,this.observedBox,!0);return er(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),nr=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),_e=new WeakMap,xt=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Te=function(){function e(){}return e.connect=function(t,n){var o=new nr(t,n);_e.set(t,o)},e.observe=function(t,n,o){var s=_e.get(t),i=s.observationTargets.length===0;xt(s.observationTargets,n)<0&&(i&&J.push(s),s.observationTargets.push(new tr(n,o&&o.box)),Tt(1),De.schedule())},e.unobserve=function(t,n){var o=_e.get(t),s=xt(o.observationTargets,n),i=o.observationTargets.length===1;s>=0&&(i&&J.splice(J.indexOf(o),1),o.observationTargets.splice(s,1),Tt(-1))},e.disconnect=function(t){var n=this,o=_e.get(t);o.observationTargets.slice().forEach(function(s){return n.unobserve(t,s.target)}),o.activeTargets.splice(0,o.activeTargets.length)},e}(),vt=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.");Te.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(!dt(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Te.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(!dt(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Te.unobserve(this,t)},e.prototype.disconnect=function(){Te.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const rr=["disabled","title"],or={key:1,class:"stack-tab__button"},xe=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",or,[r.renderSlot(t.$slots,"icon")])):r.createCommentVNode("",!0)],10,rr))}}),sr=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),d=r.ref(!1),l=r.ref(!0),c=r.ref(),m=e,p=r.reactive({clientWidth:0,scrollWidth:0,scrollLeft:0}),f=r.reactive({thumbLeft:0,startScrollLeft:0,startThumbLeft:0,startPageX:0});r.watch(p,u=>{T(u)});const T=u=>{a.value=u.scrollLeft<=10,d.value=u.clientWidth+u.scrollLeft-u.scrollWidth>=-10,l.value=u.scrollWidth!==u.clientWidth},E=r.computed(()=>p.scrollWidth>p.clientWidth),x=r.computed(()=>{if(!E.value)return 0;const{clientWidth:u,scrollWidth:b}=p;return u/b*u}),B=r.computed(()=>{if(!E.value)return 0;const{clientWidth:u,scrollWidth:b,scrollLeft:O}=p;return(u-x.value)*(O/(b-u))}),S=()=>{if(n.value===null||n.value===void 0)return;const{clientWidth:u,scrollWidth:b,scrollLeft:O}=n.value;Object.assign(p,{clientWidth:u,scrollWidth:b,scrollLeft:O})},k=new vt(()=>{var b;S();const u=(b=n.value)==null?void 0:b.querySelector(".stack-tab__item.is-active");u&&(ee(u)||q(u))}),w=new vt(()=>{var u;if(!E.value){const b=(u=n.value)==null?void 0:u.querySelector(".stack-tab__item.is-active");b&&(ee(b)||q(b))}S()}),g=(u,b=!0)=>{Ze({wrap:n.value,left:u,smooth:b})},A=u=>{g(n.value.scrollLeft+u)},h=u=>{const b=u.deltaY<0;g(n.value.scrollLeft+(b?-m.space:m.space))},_=u=>{var b;Object.assign(f,{startPageX:u.pageX,startScrollLeft:(b=n.value)==null?void 0:b.scrollLeft,startThumbLeft:B.value,thumbLeft:B.value}),i.value=!0,document.addEventListener("mousemove",v),document.addEventListener("mouseup",R)},v=u=>{const{clientWidth:b,scrollWidth:O}=p;let y=f.startThumbLeft+u.pageX-f.startPageX;const I=b-x.value;y<0?y=0:y>I&&(y=I),f.thumbLeft=y,g(y*(O-b)/(b-x.value),!1),u.preventDefault()},R=u=>{i.value=!1,document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",R),u.preventDefault()};r.onMounted(()=>{var b;k.observe(c.value);const u=(b=n.value)==null?void 0:b.querySelector(".stack-tab__nav");w.observe(u)}),r.onUnmounted(()=>{k.disconnect(),w.disconnect()});const q=u=>{Kt({el:u,wrap:n,block:"end",inline:"center"})},ee=u=>{if(!E.value)return!0;const b=u.offsetLeft,O=n.value.scrollLeft;return!(b<O||b+u.clientWidth>O+n.value.clientWidth)};return t({scrollIntoView:q,isInView:ee}),(u,b)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[l.value?(r.openBlock(),r.createBlock(xe,{key:0,"icon-class":"stack-tab__icon-left-arrow",disabled:a.value,onClick:b[0]||(b[0]=O=>!a.value&&A(-1*u.space))},null,8,["disabled"])):r.createCommentVNode("",!0),r.createElementVNode("div",{ref_key:"headerScroll",ref:c,class:"stack-tab__scroll",onWheel:r.withModifiers(h,["prevent"])},[r.createElementVNode("div",{ref_key:"container",ref:n,class:r.normalizeClass(["stack-tab__scroll-container",{"stack-tab__shadow-inset-left":!a.value&&d.value,"stack-tab__shadow-inset-right":!d.value&&a.value,"stack-tab__shadow-inset-all":!a.value&&!d.value}]),onScrollPassive:S},[r.renderSlot(u.$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:`${x.value}px`,transform:`translateX(${B.value}px)`}),onMousedown:r.withModifiers(_,["prevent"])},null,38)],2),[[r.vShow,E.value]])],544),l.value?(r.openBlock(),r.createBlock(xe,{key:1,"icon-class":"stack-tab__icon-right-arrow",disabled:d.value,onClick:b[1]||(b[1]=O=>!d.value&&A(u.space))},null,8,["disabled"])):r.createCommentVNode("",!0)],64))}}),ir={class:"stack-tab__header"},ar=r.defineComponent({__name:"index",props:{space:{},tabScrollMode:{default:F.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}=Se(),o=r.inject("maximum"),s=t,i=r.ref(),{shown:a,contextMenuData:d,showContextMenu:l}=Mn(),c=e,{removeTab:m,active:p,tabs:f}=ae(),T=r.computed(()=>typeof c.tabTransition=="string"?{name:c.tabTransition}:c.tabTransition),E=r.computed(()=>c.tabScrollMode===F.BOTH||c.tabScrollMode===F.BUTTON),x=c.tabScrollMode===F.BOTH||c.tabScrollMode===F.WHEEL,B=k=>{if(k.closable){const w=m(k.id);s("active",w)}a.value=!1},S=(k,w,g)=>{i.value&&(r.nextTick(()=>{i.value.isInView(w.value)||i.value.scrollIntoView(w.value)}),p(k.id,g),s("active",k.id))};return(k,w)=>(r.openBlock(),r.createElementBlock("div",ir,[r.renderSlot(k.$slots,"leftButton"),r.createVNode(sr,{ref_key:"scroll",ref:i,space:k.space,"is-scroll-wheel":r.unref(x),"is-scroll-button":E.value},{default:r.withCtx(()=>[r.createVNode(r.TransitionGroup,r.mergeProps({key:"tabItemTrans",tag:"ul",class:"stack-tab__nav"},T.value,{appear:""}),{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(f),(g,A)=>(r.openBlock(),r.createBlock($n,{key:g.id,contextmenu:k.contextmenu,item:g,onContextmenu:r.withModifiers(h=>r.unref(l)(h,g,A,r.unref(f).length),["prevent"]),onMouseup:r.withModifiers(h=>B(g),["middle","prevent"]),onClose:B,onActive:S},null,8,["contextmenu","item","onContextmenu","onMouseup"]))),128))]),_:1},16)]),_:1},8,["space","is-scroll-wheel","is-scroll-button"]),r.renderSlot(k.$slots,"rightButton"),r.createVNode(xe,{"icon-class":r.unref(o)?"stack-tab__icon-restore":"stack-tab__icon-fullscreen",title:r.unref(n)("VueStackTab.maximum"),onClick:w[0]||(w[0]=g=>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(In,{key:"tabMenuTrans",left:r.unref(d).left,top:r.unref(d).top,"tab-item":r.unref(d).item,max:r.unref(d).max,index:r.unref(d).index},null,8,["left","top","tab-item","max","index"])):r.createCommentVNode("",!0)]),_:1})]))}});var cr=typeof global=="object"&&global&&global.Object===Object&&global,lr=typeof self=="object"&&self&&self.Object===Object&&self,Et=cr||lr||Function("return this")(),ve=Et.Symbol,St=Object.prototype,fr=St.hasOwnProperty,ur=St.toString,fe=ve?ve.toStringTag:void 0;function dr(e){var t=fr.call(e,fe),n=e[fe];try{e[fe]=void 0;var o=!0}catch{}var s=ur.call(e);return o&&(t?e[fe]=n:delete e[fe]),s}var hr=Object.prototype,pr=hr.toString;function br(e){return pr.call(e)}var mr="[object Null]",gr="[object Undefined]",Ot=ve?ve.toStringTag:void 0;function yr(e){return e==null?e===void 0?gr:mr:Ot&&Ot in Object(e)?dr(e):br(e)}function kr(e){return e!=null&&typeof e=="object"}var wr="[object Symbol]";function _r(e){return typeof e=="symbol"||kr(e)&&yr(e)==wr}var Tr=/\s/;function xr(e){for(var t=e.length;t--&&Tr.test(e.charAt(t)););return t}var vr=/^\s+/;function Er(e){return e&&e.slice(0,xr(e)+1).replace(vr,"")}function Ee(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Bt=NaN,Sr=/^[-+]0x[0-9a-f]+$/i,Or=/^0b[01]+$/i,Br=/^0o[0-7]+$/i,Ar=parseInt;function At(e){if(typeof e=="number")return e;if(_r(e))return Bt;if(Ee(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ee(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Er(e);var n=Or.test(e);return n||Br.test(e)?Ar(e.slice(2),n?2:8):Sr.test(e)?Bt:+e}var Pe=function(){return Et.Date.now()},Cr="Expected a function",Ir=Math.max,Mr=Math.min;function Nr(e,t,n){var o,s,i,a,d,l,c=0,m=!1,p=!1,f=!0;if(typeof e!="function")throw new TypeError(Cr);t=At(t)||0,Ee(n)&&(m=!!n.leading,p="maxWait"in n,i=p?Ir(At(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f);function T(h){var _=o,v=s;return o=s=void 0,c=h,a=e.apply(v,_),a}function E(h){return c=h,d=setTimeout(S,t),m?T(h):a}function x(h){var _=h-l,v=h-c,R=t-_;return p?Mr(R,i-v):R}function B(h){var _=h-l,v=h-c;return l===void 0||_>=t||_<0||p&&v>=i}function S(){var h=Pe();if(B(h))return k(h);d=setTimeout(S,x(h))}function k(h){return d=void 0,f&&o?T(h):(o=s=void 0,a)}function w(){d!==void 0&&clearTimeout(d),c=0,o=l=s=d=void 0}function g(){return d===void 0?a:k(Pe())}function A(){var h=Pe(),_=B(h);if(o=arguments,s=this,l=h,_){if(d===void 0)return E(l);if(p)return clearTimeout(d),d=setTimeout(S,t),T(l)}return d===void 0&&(d=setTimeout(S,t)),a}return A.cancel=w,A.flush=g,A}var zr="Expected a function";function Lr(e,t,n){var o=!0,s=!0;if(typeof e!="function")throw new TypeError(zr);return Ee(n)&&(o="leading"in n?!!n.leading:o,s="trailing"in n?!!n.trailing:s),Nr(e,t,{leading:o,maxWait:t,trailing:s})}let Ct;const It=()=>{const e=j.useRouter(),{active:t,hasTab:n,pageShown:o,reset:s,canAddTab:i}=ae(),a=se();return{openNewTab:Lr(c=>new Promise((m,p)=>{if(!o.value){p();return}const f=W(c,{refreshable:!0,closable:!0,iframe:!1});if(n(f.id)){a.emit(L.TAB_ACTIVE,{id:f.id}),m(f.id);return}if(f.id||(f.id=Ye()),!i()){p("Max Size");return}const T=it(f);let E=W({__tab:T},c.query),x;if(c.iframe){const B=encodeURIComponent(c.path);x=Ct,E.__src=B}else{const B=$e(c.path);x=B.path,E=W(B.query,E)}e.push({path:x,query:E}),m(f.id)}),500),setIFramePath:c=>{Ct=c},active:t,reset:s}},$r={class:"stack-tab__container"},Rr=["src"],Mt=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:F.BOTH},width:{default:"100%"},height:{default:"100%"},i18n:{default:()=>({locale:"zh-CN",messages:{}})},messages:{},reloadable:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},space:{default:300},iframePath:{}},emits:["onActive"],setup(e,{emit:t}){const{tabs:n,pageShown:o,caches:s,addPage:i,destroy:a,initial:d,setMaxSize:l}=ae(),c=t,m=e,p=r.ref(!1);r.provide("maximum",p);const{setIFramePath:f}=It();f(m.iframePath),r.onBeforeMount(()=>{d(m.defaultTabs)});const T=(x,B)=>i(x,B),E=x=>{c("onActive",x)};return l(m.max),r.onUnmounted(()=>{a()}),(x,B)=>{const S=r.resolveComponent("router-view");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["stack-tab",{"stack-tab__maximum":p.value}]),style:r.normalizeStyle({width:x.width,height:x.height,"z-index":p.value?r.unref(Ge)("body *:not(.stack-tab,.stack-tab *)"):void 0})},[r.createVNode(ar,{space:x.space,onActive:E,"tab-transition":x.tabTransition,max:x.max},{leftButton:r.withCtx(()=>[r.renderSlot(x.$slots,"leftButton")]),rightButton:r.withCtx(()=>[r.renderSlot(x.$slots,"rightButton")]),_:3},8,["space","tab-transition","max"]),r.createElementVNode("div",$r,[r.createVNode(S,null,{default:r.withCtx(({Component:k,route:w})=>[r.createVNode(r.Transition,{name:x.pageTransition,onAfterLeave:B[0]||(B[0]=g=>o.value=!0),mode:"out-in"},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.KeepAlive,{include:r.unref(s)},[(r.openBlock(),r.createBlock(r.Suspense,null,{default:r.withCtx(()=>[r.unref(o)?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(T(w,k)),{key:w.fullPath})):r.createCommentVNode("",!0)]),fallback:r.withCtx(()=>[r.createTextVNode(" Loading.... ")]),_:2},1024))],1032,["include"]))]),_:2},1032,["name"])]),_:1}),r.createVNode(r.TransitionGroup,{name:x.pageTransition,appear:""},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(n).filter(k=>k.iframe),k=>r.withDirectives((r.openBlock(),r.createElementBlock("iframe",{key:k.id,class:"stack-tab__iframe",src:/^(javascript|data):/i.test(k.url??"")?"about:blank":k.url,frameborder:"0"},null,8,Rr)),[[r.vShow,k.active&&r.unref(o)]])),128))]),_:1},8,["name"])])],6)}}}),Ue=typeof Buffer=="function";typeof TextDecoder=="function"&&new TextDecoder;const Nt=typeof TextEncoder=="function"?new TextEncoder:void 0,ue=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");(e=>{let t={};return e.forEach((n,o)=>t[n]=o),t})(ue);const P=String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);const Vr=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),zt=typeof btoa=="function"?e=>btoa(e):Ue?e=>Buffer.from(e,"binary").toString("base64"):e=>{let t,n,o,s,i="";const a=e.length%3;for(let d=0;d<e.length;){if((n=e.charCodeAt(d++))>255||(o=e.charCodeAt(d++))>255||(s=e.charCodeAt(d++))>255)throw new TypeError("invalid character found");t=n<<16|o<<8|s,i+=ue[t>>18&63]+ue[t>>12&63]+ue[t>>6&63]+ue[t&63]}return a?i.slice(0,a-3)+"===".substring(a):i},jr=Ue?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let o=0,s=e.length;o<s;o+=4096)n.push(P.apply(null,e.subarray(o,o+4096)));return zt(n.join(""))},Dr=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?P(192|t>>>6)+P(128|t&63):P(224|t>>>12&15)+P(128|t>>>6&63)+P(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return P(240|t>>>18&7)+P(128|t>>>12&63)+P(128|t>>>6&63)+P(128|t&63)}},Pr=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Ur=e=>e.replace(Pr,Dr),Lt=Ue?e=>Buffer.from(e,"utf8").toString("base64"):Nt?e=>jr(Nt.encode(e)):e=>zt(Ur(e)),Wr=(e,t=!1)=>t?Vr(Lt(e)):Lt(e),Fr=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,"+Wr(o),d="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+",d+`background-image: url(${a});background-size: 580px 100px;background-repeat: norepeat; color: transparent;`)},$t=()=>{const{attrs:e}=r.getCurrentInstance(),{pageShown:t,getTab:n,markDeletableCache:o,removeComponent:s,getComponent:i}=ae(),a=j.useRoute(),d=j.useRouter();let l="",c="";return l=e.tId,c=a.query.__tab,{forward:f=>{t.value=!1;const T=W({__tab:c},f.query);d.push({path:f.path,query:T})},backward:(f,T)=>{t.value=!1;const E=n(l);if(!E)return;const x=E.pages;let B=0;if(typeof f=="number")B=Math.abs(f);else{let w=1,g=!1;const A=x.list(),h=$e(f);T=W(h.query,T);for(let _=x.size()-2;_>=0;_--){if(A[_].path===h.path){g=!0;break}w+=1}g&&(B=w)}if(B===0||x.size()<=B)return;for(let w=0;w<B;w++){const g=x.pop();s(g.id),o(g.id)}const S=x==null?void 0:x.peek(),k=i(S.id);if(k!=null){const w=k.components.DynamicComponent;w.props=W(T,w.props)}d.push({path:S.path,query:S.query})}}},Hr=r.defineComponent({__name:"iframe",setup(e){return $t(),(t,n)=>(r.openBlock(),r.createElementBlock("div"))}}),Zr=()=>{const e=se(),{attrs:t}=r.getCurrentInstance();r.onUnmounted(()=>{o()});const n=()=>{e.emit(L.PAGE_LOADING,{tId:t.tId,value:!0})},o=()=>{e.emit(L.PAGE_LOADING,{tId:t.tId,value:!1})};return{openTabLoading:n,closeTabLoading:o}},Gr={install(e,t={locale:"zh-CN",messages:{}}){Fr("0.1.19"),e.component("VueStackTabs",Mt).use(En).use(Jt().getI18n(t))}};M.IFrame=Hr,M.Stack=de,M.StackTab=Mt,M.TabHeaderButton=xe,M.TabScrollMode=F,M.default=Gr,M.useStackTab=It,M.useTabLoading=Zr,M.useTabRouter=$t,Object.defineProperties(M,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
5
+ */const Yt=["__proto__","prototype","constructor"];function Jt(e){const t=typeof e;return e!==null&&(t==="object"||t==="function")}function Kt(e){return!(Array.isArray(e)?e.length:Object.keys(e).length)}function Qt(e){return!e.some(t=>Yt.indexOf(t)!==-1)}function en(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 Qt(n)?n:[]}function Ye(e,t){if(!Jt(e))return"";const n=en(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 tn(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 nn(e,t){for(const n in t)e=e.replace(`{${n}}`,String(t[n]));return e}function Je(e,t){return Object.keys(t).forEach(n=>{t[n]instanceof Object&&n in e&&(t[n]={...t[n],...Je(e[n],t[n])})}),{...e||{},...t}}const rn=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Ke=(e=>rn?Symbol(e):"_vt_"+e)("i18n");function ye(){return r.inject(Ke)}function on(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=Ye(o[a],s)||Ye(o[t.fallbackLocale],s);if(i&&typeof i!="string"){const c=tn(u,i);Kt(c)||(u=nn(u,c))}return u||s},current:r.readonly(n),options:r.readonly(e||{}),install(s){const i=this;s.config.globalProperties.$t=i.t,s.provide(Ke,i)},changeLocale(s){n.value=s},setLocaleMessage(s,i){o[s]=Je(r.toRaw(o[s]||{}),i)},getLocaleMessage(s){return o[s]||{}}}}const sn=()=>{const e=Object.assign({"./lang/en.ts":Zt,"./lang/zh-CN.ts":Xt});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 on({locale:"zh-CN",fallbackLocale:"en",messages:i})}}},Qe=({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 an({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,Qe({wrap:t,left:a,top:u})}}const et=(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 Y=(e=>(e.WHEEL="wheel",e.BUTTON="button",e.BOTH="both",e))(Y||{});class ae{constructor(t){Ht(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 Le(e){if(!Ne(e))throw new Error("Parameter was not an error")}function Ne(e){return cn(e)==="[object Error]"||e instanceof Error}function cn(e){return Object.prototype.toString.call(e)}function ln(e){let t,n="";if(e.length===0)t={};else if(Ne(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}=ln(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 Le(t),t._cause&&Ne(t._cause)?t._cause:null}static fullStack(t){Le(t);const n=D.cause(t);return n?`${t.stack}
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",ce=32,nt=0xffffffffffff,fn=10,un=16,le=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",...le}},"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",...le}},`Time must be a number: ${e}`);if(e>nt)throw new D({info:{code:"ENC_TIME_SIZE_EXCEED",...le}},`Cannot encode a time larger than ${nt}: ${e}`);if(e<0)throw new D({info:{code:"ENC_TIME_NEG",...le}},`Time must be positive: ${e}`);if(Number.isInteger(e)===!1)throw new D({info:{code:"ENC_TIME_TYPE",...le}},`Time must be an integer: ${e}`);let n,o="";for(let s=t;s>0;s--)n=e%ce,o=tt.charAt(n)+o,e=(e-n)/ce;return o}function mn(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function gn(e){let t=Math.floor(e()*ce);return t===ce&&(t=ce-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 _=f.charCodeAt(d);p[d*2]=_>>>8,p[d*2+1]=_%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(_){h.push(n(_))}),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,_={},O={},A="",v="",x="",g=2,S=3,w=2,E=[],l=0,b=0,y;for(y=0;y<c.length;y+=1)if(A=c.charAt(y),Object.prototype.hasOwnProperty.call(_,A)||(_[A]=S++,O[A]=!0),v=x+A,Object.prototype.hasOwnProperty.call(_,v))x=v;else{if(Object.prototype.hasOwnProperty.call(O,x)){if(x.charCodeAt(0)<256){for(d=0;d<w;d++)l=l<<1,b==f-1?(b=0,E.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,E.push(p(l)),l=0):b++,h=h>>1}else{for(h=1,d=0;d<w;d++)l=l<<1|h,b==f-1?(b=0,E.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,E.push(p(l)),l=0):b++,h=h>>1}g--,g==0&&(g=Math.pow(2,w),w++),delete O[x]}else for(h=_[x],d=0;d<w;d++)l=l<<1|h&1,b==f-1?(b=0,E.push(p(l)),l=0):b++,h=h>>1;g--,g==0&&(g=Math.pow(2,w),w++),_[v]=S++,x=String(A)}if(x!==""){if(Object.prototype.hasOwnProperty.call(O,x)){if(x.charCodeAt(0)<256){for(d=0;d<w;d++)l=l<<1,b==f-1?(b=0,E.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,E.push(p(l)),l=0):b++,h=h>>1}else{for(h=1,d=0;d<w;d++)l=l<<1|h,b==f-1?(b=0,E.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,E.push(p(l)),l=0):b++,h=h>>1}g--,g==0&&(g=Math.pow(2,w),w++),delete O[x]}else for(h=_[x],d=0;d<w;d++)l=l<<1|h&1,b==f-1?(b=0,E.push(p(l)),l=0):b++,h=h>>1;g--,g==0&&(g=Math.pow(2,w),w++)}for(h=2,d=0;d<w;d++)l=l<<1|h&1,b==f-1?(b=0,E.push(p(l)),l=0):b++,h=h>>1;for(;;)if(l=l<<1,b==f-1){E.push(p(l));break}else b++;return E.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,_=4,O=3,A="",v=[],x,g,S,w,E,l,b,y={val:p(0),position:f,index:1};for(x=0;x<3;x+=1)d[x]=x;for(S=0,E=Math.pow(2,2),l=1;l!=E;)w=y.val&y.position,y.position>>=1,y.position==0&&(y.position=f,y.val=p(y.index++)),S|=(w>0?1:0)*l,l<<=1;switch(S){case 0:for(S=0,E=Math.pow(2,8),l=1;l!=E;)w=y.val&y.position,y.position>>=1,y.position==0&&(y.position=f,y.val=p(y.index++)),S|=(w>0?1:0)*l,l<<=1;b=n(S);break;case 1:for(S=0,E=Math.pow(2,16),l=1;l!=E;)w=y.val&y.position,y.position>>=1,y.position==0&&(y.position=f,y.val=p(y.index++)),S|=(w>0?1:0)*l,l<<=1;b=n(S);break;case 2:return""}for(d[3]=b,g=b,v.push(b);;){if(y.index>c)return"";for(S=0,E=Math.pow(2,O),l=1;l!=E;)w=y.val&y.position,y.position>>=1,y.position==0&&(y.position=f,y.val=p(y.index++)),S|=(w>0?1:0)*l,l<<=1;switch(b=S){case 0:for(S=0,E=Math.pow(2,8),l=1;l!=E;)w=y.val&y.position,y.position>>=1,y.position==0&&(y.position=f,y.val=p(y.index++)),S|=(w>0?1:0)*l,l<<=1;d[_++]=n(S),b=_-1,h--;break;case 1:for(S=0,E=Math.pow(2,16),l=1;l!=E;)w=y.val&y.position,y.position>>=1,y.position==0&&(y.position=f,y.val=p(y.index++)),S|=(w>0?1:0)*l,l<<=1;d[_++]=n(S),b=_-1,h--;break;case 2:return v.join("")}if(h==0&&(h=Math.pow(2,O),O++),d[b])A=d[b];else if(b===_)A=g+g.charAt(0);else return null;v.push(A),d[_++]=g+A.charAt(0),h--,g=A,h==0&&(h=Math.pow(2,O),O++)}}};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 fe(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 ke=BigInt(2**32-1),lt=BigInt(32);function ft(e,t=!1){return t?{h:Number(e&ke),l:Number(e>>lt&ke)}:{h:Number(e>>lt&ke)|0,l:Number(e&ke)|0}}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Tn=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),we=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 _e=(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,fe(t),fe(n),fe(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=we(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=we(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=_e(o^e,16),n=n+o|0,t=_e(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=_e(o^e,8),n=n+o|0,t=_e(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,_,O,A,v,x,g,S){let w=0;for(let E=0;E<o;E++)({a:s,b:c,c:h,d:v}=J(s,c,h,v,n[t+e[w++]])),{a:s,b:c,c:h,d:v}=K(s,c,h,v,n[t+e[w++]]),{a:i,b:f,c:_,d:x}=J(i,f,_,x,n[t+e[w++]]),{a:i,b:f,c:_,d:x}=K(i,f,_,x,n[t+e[w++]]),{a,b:p,c:O,d:g}=J(a,p,O,g,n[t+e[w++]]),{a,b:p,c:O,d:g}=K(a,p,O,g,n[t+e[w++]]),{a:u,b:d,c:A,d:S}=J(u,d,A,S,n[t+e[w++]]),{a:u,b:d,c:A,d:S}=K(u,d,A,S,n[t+e[w++]]),{a:s,b:f,c:O,d:S}=J(s,f,O,S,n[t+e[w++]]),{a:s,b:f,c:O,d:S}=K(s,f,O,S,n[t+e[w++]]),{a:i,b:p,c:A,d:v}=J(i,p,A,v,n[t+e[w++]]),{a:i,b:p,c:A,d:v}=K(i,p,A,v,n[t+e[w++]]),{a,b:d,c:h,d:x}=J(a,d,h,x,n[t+e[w++]]),{a,b:d,c:h,d:x}=K(a,d,h,x,n[t+e[w++]]),{a:u,b:c,c:_,d:g}=J(u,c,_,g,n[t+e[w++]]),{a:u,b:c,c:_,d:g}=K(u,c,_,g,n[t+e[w++]]);return{v0:s,v1:i,v2:a,v3:u,v4:c,v5:f,v6:p,v7:d,v8:h,v9:_,v10:O,v11:A,v12:v,v13:x,v14:g,v15:S}}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,fe(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=we(o),this.flags=n|16}else if(t.context!==void 0){const o=new Pe({dkLen:32},32).update(t.context).digest();this.IV=we(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:_,v5:O,v6:A,v7:v,v8:x,v9:g,v10:S,v11:w,v12:E,v13:l,v14:b,v15:y}=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^g,i[2]=d^S,i[3]=h^w,i[4]=_^E,i[5]=O^l,i[6]=A^b,i[7]=v^y}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:_,v6:O,v7:A,v8:v,v9:x,v10:g,v11:S,v12:w,v13:E,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^v,i[1]=f^x,i[2]=p^g,i[3]=d^S,i[4]=h^w,i[5]=_^E,i[6]=O^l,i[7]=A^b,i[8]=t[0]^v,i[9]=t[1]^x,i[10]=t[2]^g,i[11]=t[3]^S,i[12]=t[4]^w,i[13]=t[5]^E,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 fe(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)},Cn=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 An(e){return(...t)=>t.reduce((n,o)=>De(n,o,"",e),{})}const Z=An(),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)}},ue=()=>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=ue(),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([]),Te=[],z=r.ref([]),ee=new Map,ve=new Set,de=r.ref(!0),bt="stacktab-active-tab",te=new Map;let mt=!1,xe=0,gt=!1;const he=()=>{const e=F.useRouter(),t=ue(),n=()=>M.value.length,o=T=>{Te.splice(0);for(const B of T){const k=Z(B,{id:rt()}),I=ht(k),$=Ue(k.path),V=Z(k,{closable:!0,refreshable:!0,iframe:!1}),ie=pt(k.id,$.path,$.query),X={id:ie,tabId:k.id,path:$.path,query:Z($.query,{__tab:I})},Me=new ae;Me.push(X);const Gt={id:k.id,title:V.title,closable:V.closable,refreshable:V.refreshable,iframe:V.iframe,active:!1,pages:Me};Te.push(Gt),M.value.push(Gt),z.value.push(ie)}const m=window.sessionStorage.getItem(bt);if(m!=null){const B=JSON.parse(m,(I,$)=>I==="pages"?new ae($):$);let k=!1;for(const I of M.value)if(I.id===B.id){k=!0;break}k||M.value.push(B)}mt=!0},s=T=>{for(const m of M.value)if(m.id===T)return!0;return!1},i=()=>xe<=0||xe>0&&xe>M.value.length,a=T=>new Promise(m=>{M.value.push(T),m(!0)}),u=T=>{for(const m of M.value)if(m.id===T)return m;return null},c=(T,m)=>{let B;const k=Cn(T.query.__tab),I=pt(k.id,T.path,T.query.valueOf()),$=T.query.__src;let V=null;for(const X of r.unref(M))X.active=!1,X.id===k.id&&(V=X);const ie={id:I,tabId:k.id,path:T.path,query:T.query};if(V===null){const X=new ae;X.push(ie),V={id:k.id,title:k.title,closable:k.closable,refreshable:k.refreshable,iframe:k.iframe,url:decodeURIComponent($),active:!0,pages:X},a(V).then(()=>{t.emit(P.TAB_ACTIVE,{id:k.id,isRoute:!1})})}else V.active=!0,(V.pages.isEmpty()||V.pages.peek().id!==ie.id)&&V.pages.push(ie);return C(V),ee.has(I)?B=ee.get(I):(B=r.defineComponent({name:I,components:{DynamicComponent:m},emits:{onLoaded:null},setup(X,Me){return r.onMounted(()=>{Me.emit("onLoaded"),h(I,".cache-page-wrapper")}),r.onDeactivated(()=>{p(I)}),r.onActivated(()=>{f(I),y(),m.props=null}),r.onUnmounted(()=>{d(I)}),()=>r.createVNode("div",{class:"cache-page-wrapper",id:"W-"+k.id,style:[gt?"overflow:auto":"overflow:hidden"]},[r.createVNode(r.resolveComponent("dynamic-component"),{tId:k.id,pId:I},null),r.createVNode($n,{tId:k.id},null)])}}),ee.set(I,B)),U(I),B},f=T=>{const m=te.get(T);if(m){for(const B of m.keys())if(document.querySelector(B)){const k=m.get(B);document.querySelector(B).scrollTop=k.top,document.querySelector(B).scrollLeft=k.left}}},p=T=>{var B,k;const m=te.get(T);if(m)for(const I of m.keys()){const $={top:((B=document.querySelector(I))==null?void 0:B.scrollTop)??0,left:((k=document.querySelector(I))==null?void 0:k.scrollLeft)??0};m.set(I,$)}},d=T=>{const m=te.get(T);m&&(m.clear(),te.delete(T))},h=(T,...m)=>{te.has(T)||te.set(T,new Map);const B=te.get(T);for(const k of m)B.set(k,{top:0,left:0})},_=T=>{let m="";for(let B=M.value.length-1;B>=0;B--)if(T===r.unref(M)[B].id){if(!r.unref(M)[B].closable)return T;for(const k of r.unref(M)[B].pages.list())l(k.id),b(k.id);r.unref(M)[B].pages.clear(),M.value.length>1&&r.unref(M)[B].active&&(B===0?m=r.unref(M)[B+1].id:m=r.unref(M)[B-1].id),r.unref(M).splice(B,1);break}return m!==""&&t.emit(P.TAB_ACTIVE,{id:m}),y(),m},O=()=>{const T=r.unref(M);for(let m=T.length-1;m>=0;m--)if(T[m].closable){for(const B of T[m].pages.list())l(B.id),b(B.id);r.unref(M)[m].pages.clear(),r.unref(M).splice(m,1)}for(const m of T)if(m.active){y();return}t.emit(P.TAB_ACTIVE,{id:T[T.length-1].id})},A=T=>{const m=r.unref(M);let B;for(let k=m.length-1;k>=0;k--)if(m[k].id===T)B=m[k];else if(m[k].closable&&m[k].id!==T){for(const I of m[k].pages.list())l(I.id),b(I.id);r.unref(M)[k].pages.clear(),r.unref(M).splice(k,1)}B.active?y():t.emit(P.TAB_ACTIVE,{id:T})},v=T=>{let m=-1;const B=r.unref(M);for(let k=0;k<B.length;k++)if(B[k].id===T){m=k-1;break}for(let k=m;k>=0;k--)if(B[k].closable){for(const I of B[k].pages.list())l(I.id),b(I.id);r.unref(M)[k].pages.clear(),r.unref(M).splice(k,1)}for(const k of B)if(k.active){y();return}t.emit(P.TAB_ACTIVE,{id:B[0].id})},x=T=>{const m=r.unref(M);let B=m.length;for(let k=0;k<m.length;k++)if(m[k].id===T){B=k+1;break}for(let k=m.length-1;k>=B;k--)if(m[k].closable){for(const I of m[k].pages.list())l(I.id),b(I.id);r.unref(M)[k].pages.clear(),r.unref(M).splice(k,1)}for(const k of m)if(k.active){y();return}t.emit(P.TAB_ACTIVE,{id:m[m.length-1].id})},g=T=>{var m;for(const B of r.unref(M))if(B.id===T){const k=(m=B.pages.peek())==null?void 0:m.id;for(let I=z.value.length-1;I>=0;I--)if(z.value[I]===k){z.value.splice(I,1),B.active&&(de.value=!1);break}break}},S=()=>{const T=new Set;M.value.forEach(m=>{T.add(m.pages.peek().id)});for(let m=z.value.length-1;m>=0;m--){const B=z.value[m];T.has(B)&&z.value.splice(m,1)}de.value=!1},w=(T,m)=>{ee.set(T,m)},E=T=>ee.get(T),l=T=>{ee.delete(T)},b=T=>{ve.add(T)},y=()=>{for(let T=z.value.length-1;T>=0;T--)ve.has(z.value[T])&&r.unref(z).splice(T,1);ve.clear()},R=T=>{for(let m=z.value.length-1;m>=0;m--)T===z.value[m]&&r.unref(z).splice(m,1)},U=T=>{new Set(z.value).has(T)||z.value.push(T)},W=(T,m=!0)=>new Promise(B=>{for(let k=M.value.length-1;k>=0;k--){const I=M.value[k];if(I.id===T){if(I.active)break;if(I.active=!0,de.value=!1,C(I),m){const $=I.pages.peek();e.push({path:$.path,query:$.query})}}else M.value[k].active=!1}B(!0)}),C=T=>{window.sessionStorage.setItem(bt,JSON.stringify(T))},L=()=>{j(),r.unref(M).push(...Te),t.emit(P.TAB_ACTIVE,{id:Te[0].id})},j=()=>{r.unref(M).splice(0),ee.clear(),ve.clear(),r.unref(z).splice(0),de.value=!0};return{tabs:M,caches:z,pageShown:de,initialed:mt,setMaxSize:T=>{xe=T},canAddTab:i,initial:o,size:n,active:W,destroy:j,reset:L,addCache:U,removeCache:R,getTab:u,addTab:a,removeTab:_,removeAllTabs:O,removeLeftTabs:v,removeRightTabs:x,removeOtherTabs:A,hasTab:s,addPage:c,addComponent:w,getComponent:E,removeComponent:l,markDeletableCache:b,removeDeletableCache:y,refreshTab:g,refreshAllTabs:S,addPageScroller:h,setGlobalScroll:T=>{gt=T}}},Rn={class:"stack-tab__contextmenu-item"},Q=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}=he();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(et)(".stack-tab,.stack-tab *")})},[r.createVNode(Q,{icon:"stack-tab__icon-reload svg-mask",title:r.unref(n)("VueStackTab.reload"),onClick:_[0]||(_[0]=O=>r.unref(f)(h.tabItem.id))},null,8,["title"]),r.createVNode(Q,{icon:"stack-tab__icon-reload-all svg-mask",title:r.unref(n)("VueStackTab.reloadAll"),onClick:r.unref(p)},null,8,["title","onClick"]),r.createVNode(Q,{icon:"stack-tab__icon-close svg-mask",title:r.unref(n)("VueStackTab.close"),disabled:h.tabItem.closable?null:"disabled",onClick:_[1]||(_[1]=O=>r.unref(i)(h.tabItem.id))},null,8,["title","disabled"]),r.createVNode(Q,{icon:"stack-tab__icon-close-lefts svg-mask",title:r.unref(n)("VueStackTab.closeLeft"),disabled:h.index<=0?"disabled":null,onClick:_[2]||(_[2]=O=>r.unref(u)(h.tabItem.id))},null,8,["title","disabled"]),r.createVNode(Q,{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]=O=>r.unref(c)(h.tabItem.id))},null,8,["title","disabled"]),r.createVNode(Q,{icon:"stack-tab__icon-close-others svg-mask",title:r.unref(n)("VueStackTab.closeOthers"),onClick:_[4]||(_[4]=O=>r.unref(d)(h.tabItem.id))},null,8,["title"]),r.createVNode(Q,{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,(O,A)=>(r.openBlock(),r.createBlock(Q,{key:A,icon:O.icon,title:O.title,disabled:O.disabled(h.tabItem)?"disabled":null,onClick:v=>!O.disabled&&O.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=ue(),{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)},pe;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(pe||(pe={}));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},be=typeof window<"u"?window:{},Se=new WeakMap,Tt=/auto|scroll/,Yn=/^tb|vertical/,Jn=/msie|trident/i.test(be.navigator&&be.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),Se.has(e)&&!t)return Se.get(e);if(wt(e))return Se.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),_=o?0:q(n.borderRightWidth),O=o?0:q(n.borderBottomWidth),A=o?0:q(n.borderLeftWidth),v=d+f,x=c+p,g=A+_,S=h+O,w=u?e.offsetHeight-S-e.clientHeight:0,E=a?e.offsetWidth-g-e.clientWidth:0,l=s?v+g:0,b=s?x+S:0,y=o?o.width:q(n.width)-l-E,R=o?o.height:q(n.height)-b-w,U=y+v+E+g,W=R+x+w+S,C=re({devicePixelContentBoxSize:se(Math.round(y*devicePixelRatio),Math.round(R*devicePixelRatio),i),borderBoxSize:se(U,W,i),contentBoxSize:se(y,R,i),contentRect:new kt(d,c,y,R)});return Se.set(e,C),C},St=function(e,t,n){var o=xt(e,n),s=o.borderBoxSize,i=o.contentBoxSize,a=o.devicePixelContentBoxSize;switch(t){case pe.DEVICE_PIXEL_CONTENT_BOX:return a;case pe.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)})},Ee=0,or=function(){return!!Ee},sr=250,ir={attributes:!0,characterData:!0,childList:!0,subtree:!0},Ct=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],At=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=At(t);rr(function(){var s=!1;try{s=er()}finally{if(qe=!1,t=o-At(),!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():be.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Ct.forEach(function(n){return be.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Ct.forEach(function(n){return be.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Ge=new ar,It=function(e){!Ee&&e>0&&Ge.start(),Ee+=e,!Ee&&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||pe.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}(),Oe=new WeakMap,Mt=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Be=function(){function e(){}return e.connect=function(t,n){var o=new fr(t,n);Oe.set(t,o)},e.observe=function(t,n,o){var s=Oe.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=Oe.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=Oe.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.");Be.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");Be.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");Be.unobserve(this,t)},e.prototype.disconnect=function(){Be.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,C=>{_(C)});const _=C=>{a.value=C.scrollLeft<=10,u.value=C.clientWidth+C.scrollLeft-C.scrollWidth>=-10,c.value=C.scrollWidth!==C.clientWidth},O=r.computed(()=>d.scrollWidth>d.clientWidth),A=r.computed(()=>{if(!O.value)return 0;const{clientWidth:C,scrollWidth:L}=d;return C/L*C}),v=r.computed(()=>{if(!O.value)return 0;const{clientWidth:C,scrollWidth:L,scrollLeft:j}=d;return(C-A.value)*(j/(L-C))}),x=()=>{if(n.value===null||n.value===void 0)return;const{clientWidth:C,scrollWidth:L,scrollLeft:j}=n.value;Object.assign(d,{clientWidth:C,scrollWidth:L,scrollLeft:j})},g=new Lt(()=>{var L;x();const C=(L=n.value)==null?void 0:L.querySelector(".stack-tab__item.is-active");C&&(W(C)||U(C))}),S=new Lt(()=>{var C;if(!O.value){const L=(C=n.value)==null?void 0:C.querySelector(".stack-tab__item.is-active");L&&(W(L)||U(L))}x()}),w=(C,L=!0)=>{Qe({wrap:n.value,left:C,smooth:L})},E=C=>{w(n.value.scrollLeft+C)},l=C=>{const L=C.deltaY<0;w(n.value.scrollLeft+(L?-p.space:p.space))},b=C=>{var L;Object.assign(h,{startPageX:C.pageX,startScrollLeft:(L=n.value)==null?void 0:L.scrollLeft,startThumbLeft:v.value,thumbLeft:v.value}),i.value=!0,document.addEventListener("mousemove",y),document.addEventListener("mouseup",R)},y=C=>{const{clientWidth:L,scrollWidth:j}=d;let oe=h.startThumbLeft+C.pageX-h.startPageX;const Xe=L-A.value;oe<0?oe=0:oe>Xe&&(oe=Xe),h.thumbLeft=oe,w(oe*(j-L)/(L-A.value),!1),C.preventDefault()},R=C=>{i.value=!1,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",R),C.preventDefault()};r.onMounted(()=>{var L;g.observe(f.value);const C=(L=n.value)==null?void 0:L.querySelector(".stack-tab__nav");S.observe(C)}),r.onUnmounted(()=>{g.disconnect(),S.disconnect()});const U=C=>{an({el:C,wrap:n,block:"end",inline:"center"})},W=C=>{if(!O.value)return!0;const L=C.offsetLeft,j=n.value.scrollLeft;return!(L<j||L+C.clientWidth>j+n.value.clientWidth)};return t({scrollIntoView:U,isInView:W}),(C,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&&E(-1*C.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(C.$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:`${A.value}px`,transform:`translateX(${v.value}px)`}),onMousedown:r.withModifiers(b,["prevent"])},null,38)],2),[[r.vShow,O.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&&E(C.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}=he(),_=r.computed(()=>typeof f.tabTransition=="string"?{name:f.tabTransition}:f.tabTransition),O=r.computed(()=>f.tabScrollMode===Y.BOTH||f.tabScrollMode===Y.BUTTON),A=f.tabScrollMode===Y.BOTH||f.tabScrollMode===Y.WHEEL,v=g=>{if(g.closable){const S=p(g.id);s("active",S)}a.value=!1},x=(g,S,w)=>{i.value&&(r.nextTick(()=>{i.value.isInView(S.value)||i.value.scrollIntoView(S.value)}),d(g.id,w),s("active",g.id))};return(g,S)=>(r.openBlock(),r.createElementBlock("div",pr,[r.renderSlot(g.$slots,"leftButton"),r.createVNode(hr,{ref_key:"scroll",ref:i,space:g.space,"is-scroll-wheel":r.unref(A),"is-scroll-button":O.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),(w,E)=>(r.openBlock(),r.createBlock(Fn,{key:w.id,contextmenu:g.contextmenu,item:w,onContextmenu:r.withModifiers(l=>r.unref(c)(l,w,E,r.unref(h).length),["prevent"]),onMouseup:r.withModifiers(l=>v(w),["middle","prevent"]),onClose:v,onActive:x},null,8,["contextmenu","item","onContextmenu","onMouseup"]))),128))]),_:1},16)]),_:1},8,["space","is-scroll-wheel","is-scroll-button"]),r.renderSlot(g.$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:S[0]||(S[0]=w=>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")(),Ae=Nt.Symbol,zt=Object.prototype,yr=zt.hasOwnProperty,kr=zt.toString,me=Ae?Ae.toStringTag:void 0;function wr(e){var t=yr.call(e,me),n=e[me];try{e[me]=void 0;var o=!0}catch{}var s=kr.call(e);return o&&(t?e[me]=n:delete e[me]),s}var _r=Object.prototype,Tr=_r.toString;function vr(e){return Tr.call(e)}var xr="[object Null]",Sr="[object Undefined]",$t=Ae?Ae.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 Cr(e){return typeof e=="symbol"||Or(e)&&Er(e)==Br}var Ar=/\s/;function Ir(e){for(var t=e.length;t--&&Ar.test(e.charAt(t)););return t}var Mr=/^\s+/;function Lr(e){return e&&e.slice(0,Ir(e)+1).replace(Mr,"")}function Ie(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(Cr(e))return Rt;if(Ie(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ie(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,Ie(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 _(l){var b=o,y=s;return o=s=void 0,f=l,a=e.apply(y,b),a}function O(l){return f=l,u=setTimeout(x,t),p?_(l):a}function A(l){var b=l-c,y=l-f,R=t-b;return d?jr(R,i-y):R}function v(l){var b=l-c,y=l-f;return c===void 0||b>=t||b<0||d&&y>=i}function x(){var l=He();if(v(l))return g(l);u=setTimeout(x,A(l))}function g(l){return u=void 0,h&&o?_(l):(o=s=void 0,a)}function S(){u!==void 0&&clearTimeout(u),f=0,o=c=s=u=void 0}function w(){return u===void 0?a:g(He())}function E(){var l=He(),b=v(l);if(o=arguments,s=this,c=l,b){if(u===void 0)return O(c);if(d)return clearTimeout(u),u=setTimeout(x,t),_(c)}return u===void 0&&(u=setTimeout(x,t)),a}return E.cancel=S,E.flush=w,E}var Ur="Expected a function";function Wr(e,t,n){var o=!0,s=!0;if(typeof e!="function")throw new TypeError(Ur);return Ie(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,tabs:a,addTab:u,initialed:c}=he(),f=ue(),p=Wr(_=>new Promise((O,A)=>{if(!o.value){A();return}const v=Z(_,{refreshable:!0,closable:!0,iframe:!1});if(n(v.id)){f.emit(P.TAB_ACTIVE,{id:v.id}),O(v.id);return}if(v.id||(v.id=rt()),!i()){A("Max Size");return}if(c){let x=null;for(const g of r.unref(a))g.active=!1;x={id:v.id,title:v.title,closable:v.closable,refreshable:v.refreshable,iframe:v.iframe,url:v.iframe?_.path:null,active:!0,pages:new ae},u(x).finally(()=>{d(_,v),O(v.id)})}else d(_,v),O(v.id)}),500),d=(_,O)=>{const A=ht(O);let v=Z({__tab:A},_.query),x;if(_.iframe){const g=encodeURIComponent(_.path);x=Pt,v.__src=g}else{const g=Ue(_.path);x=g.path,v=Z(g.query,v)}e.push({path:x,query:v})};return{openNewTab:p,setIFramePath:_=>{Pt=_},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,addPage:i,destroy:a,initial:u,setMaxSize:c,setGlobalScroll:f}=he(),p=t,d=e,{changeLocale:h}=ye(),_=r.ref(!1);r.provide("maximum",_);const{setIFramePath:O}=jt();O(d.iframePath),f(d.globalScroll),h(d.i18n),r.onBeforeMount(()=>{u(d.defaultTabs)});const A=(g,S)=>i(g,S),v=g=>{p("onActive",g)};c(d.max),r.onUnmounted(()=>{a()});const x=()=>{p("onPageLoaded")};return(g,S)=>{const w=r.resolveComponent("router-view");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["stack-tab",{"stack-tab__maximum":_.value}]),style:r.normalizeStyle({width:g.width,height:g.height,"z-index":_.value?r.unref(et)("body *:not(.stack-tab,.stack-tab *)"):void 0})},[r.createVNode(br,{space:g.space,onActive:v,"tab-transition":g.tabTransition,max:g.max},{leftButton:r.withCtx(()=>[r.renderSlot(g.$slots,"leftButton")]),rightButton:r.withCtx(()=>[r.renderSlot(g.$slots,"rightButton")]),_:3},8,["space","tab-transition","max"]),r.createElementVNode("div",Fr,[r.createVNode(w,null,{default:r.withCtx(({Component:E,route:l})=>[r.createVNode(r.Transition,{name:g.pageTransition,onAfterLeave:S[0]||(S[0]=b=>o.value=!0),mode:"out-in"},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.KeepAlive,{include:r.unref(s)},[(r.openBlock(),r.createBlock(r.Suspense,null,{default:r.withCtx(()=>[r.unref(o)?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(A(l,E)),{key:l.fullPath,onOnLoaded:x},null,32)):r.createCommentVNode("",!0)]),fallback:r.withCtx(()=>[r.createTextVNode(" Loading.... ")]),_:2},1024))],1032,["include"]))]),_:2},1032,["name"])]),_:1}),r.createVNode(r.TransitionGroup,{name:g.pageTransition,appear:""},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(n).filter(E=>E.iframe),E=>r.withDirectives((r.openBlock(),r.createElementBlock("iframe",{key:E.id,class:"stack-tab__iframe",src:/^(javascript|data):/i.test(E.url??"")?"about:blank":E.url,frameborder:"0"},null,8,qr)),[[r.vShow,E.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,ge=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");(e=>{let t={};return e.forEach((n,o)=>t[n]=o),t})(ge);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+=ge[t>>18&63]+ge[t>>12&63]+ge[t>>6&63]+ge[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}=he(),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:v=>{n.value=!1;const x=Z({__tab:d},v.query);f.push({path:v.path,query:x})},backward:(v,x)=>{n.value=!1;const g=o(p);if(!g)return;const S=g.pages;let w=0;if(typeof v=="number")w=Math.abs(v);else{let b=1,y=!1;const R=S.list(),U=Ue(v);x=Z(U.query,x);for(let W=S.size()-2;W>=0;W--){if(R[W].path===U.path){y=!0;break}b+=1}y&&(w=b)}if(w===0||S.size()<=w)return;for(let b=0;b<w;b++){const y=S.pop();i(y.id),s(y.id)}const E=S==null?void 0:S.peek(),l=a(E.id);if(l!=null){const b=l.components.DynamicComponent;b.props=Z(x,b.props)}f.push({path:E.path,query:E.query})},addScroller:(...v)=>{u(h,...v)}}},Qr=r.defineComponent({__name:"iframe",setup(e){return qt(),(t,n)=>(r.openBlock(),r.createElementBlock("div"))}}),eo=()=>{const e=ue(),{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.21"),e.component("VueStackTabs",Dt).use(Ln).use(sn().getI18n(t))}};N.IFrame=Qr,N.Stack=ae,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"}})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-stack-tabs",
3
- "version": "0.1.19",
3
+ "version": "0.1.21",
4
4
  "description": "Vue.js component for router tab.",
5
5
  "private": false,
6
6
  "type": "module",