gear-second 1.8.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +16 -16
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
(function(Ne,
|
|
1
|
+
(function(Ne,se){typeof exports=="object"&&typeof module<"u"?module.exports=se():typeof define=="function"&&define.amd?define(se):(Ne=typeof globalThis<"u"?globalThis:Ne||self,Ne._gearSecond_=se())})(this,function(){"use strict";var Vp=Object.defineProperty;var Fp=(Ne,se,Ye)=>se in Ne?Vp(Ne,se,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):Ne[se]=Ye;var ve=(Ne,se,Ye)=>(Fp(Ne,typeof se!="symbol"?se+"":se,Ye),Ye);/**
|
|
2
2
|
* @vue/shared v3.4.15
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
|
-
**/function Ne(e,t){const n=new Set(e.split(","));return t?o=>n.has(o.toLowerCase()):o=>n.has(o)}const
|
|
5
|
+
**/function Ne(e,t){const n=new Set(e.split(","));return t?o=>n.has(o.toLowerCase()):o=>n.has(o)}const se={},Ye=[],Ve=()=>{},vl=()=>!1,Pn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),vo=e=>e.startsWith("onUpdate:"),_e=Object.assign,bo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},bl=Object.prototype.hasOwnProperty,ce=(e,t)=>bl.call(e,t),ee=Array.isArray,Xt=e=>On(e)==="[object Map]",Sr=e=>On(e)==="[object Set]",oe=e=>typeof e=="function",we=e=>typeof e=="string",Zt=e=>typeof e=="symbol",ge=e=>e!==null&&typeof e=="object",kr=e=>(ge(e)||oe(e))&&oe(e.then)&&oe(e.catch),Ir=Object.prototype.toString,On=e=>Ir.call(e),yl=e=>On(e).slice(8,-1),Cr=e=>On(e)==="[object Object]",yo=e=>we(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ln=Ne(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),An=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},_l=/-(\w)/g,je=An(e=>e.replace(_l,(t,n)=>n?n.toUpperCase():"")),wl=/\B([A-Z])/g,Fe=An(e=>e.replace(wl,"-$1").toLowerCase()),zn=An(e=>e.charAt(0).toUpperCase()+e.slice(1)),_o=An(e=>e?`on${zn(e)}`:""),lt=(e,t)=>!Object.is(e,t),jn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Dn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},wo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},xo=e=>{const t=we(e)?Number(e):NaN;return isNaN(t)?e:t};let Tr;const So=()=>Tr||(Tr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Oe(e){if(ee(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=we(o)?Il(o):Oe(o);if(r)for(const i in r)t[i]=r[i]}return t}else if(we(e)||ge(e))return e}const xl=/;(?![^(]*\))/g,Sl=/:([^]+)/,kl=/\/\*[^]*?\*\//g;function Il(e){const t={};return e.replace(kl,"").split(xl).forEach(n=>{if(n){const o=n.split(Sl);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Ie(e){let t="";if(we(e))t=e;else if(ee(e))for(let n=0;n<e.length;n++){const o=Ie(e[n]);o&&(t+=o+" ")}else if(ge(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Cl=Ne("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Er(e){return!!e||e===""}const Xe=e=>we(e)?e:e==null?"":ee(e)||ge(e)&&(e.toString===Ir||!oe(e.toString))?JSON.stringify(e,$r,2):String(e),$r=(e,t)=>t&&t.__v_isRef?$r(e,t.value):Xt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r],i)=>(n[ko(o,i)+" =>"]=r,n),{})}:Sr(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ko(n))}:Zt(t)?ko(t):ge(t)&&!ee(t)&&!Cr(t)?String(t):t,ko=(e,t="")=>{var n;return Zt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
6
6
|
* @vue/reactivity v3.4.15
|
|
7
7
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
8
|
* @license MIT
|
|
9
|
-
**/let He;class Sl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=He,!t&&He&&(this.index=(He.scopes||(He.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=He;try{return He=this,t()}finally{He=n}}}on(){He=this}off(){He=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function kl(e,t=He){t&&t.active&&t.effects.push(e)}function Mr(){return He}function Il(e){He&&He.cleanups.push(e)}let zt;class ko{constructor(t,n,o,r){this.fn=t,this.trigger=n,this.scheduler=o,this.active=!0,this.deps=[],this._dirtyLevel=2,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,kl(this,r)}get dirty(){if(this._dirtyLevel===1){_t();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Cl(n.computed),this._dirtyLevel>=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),wt()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=yt,n=zt;try{return yt=!0,zt=this,this._runnings++,Or(this),this.fn()}finally{Lr(this),this._runnings--,zt=n,yt=t}}stop(){var t;this.active&&(Or(this),Lr(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Cl(e){return e.value}function Or(e){e._trackId++,e._depsLength=0}function Lr(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Ar(e.deps[t],e);e.deps.length=e._depsLength}}function Ar(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let yt=!0,Io=0;const zr=[];function _t(){zr.push(yt),yt=!1}function wt(){const e=zr.pop();yt=e===void 0?!0:e}function Co(){Io++}function To(){for(Io--;!Io&&Eo.length;)Eo.shift()()}function jr(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const o=e.deps[e._depsLength];o!==t?(o&&Ar(o,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Eo=[];function Rr(e,t,n){Co();for(const o of e.keys())if(o._dirtyLevel<t&&e.get(o)===o._trackId){const r=o._dirtyLevel;o._dirtyLevel=t,r===0&&(o._shouldSchedule=!0,o.trigger())}Dr(e),To()}function Dr(e){for(const t of e.keys())t.scheduler&&t._shouldSchedule&&(!t._runnings||t.allowRecurse)&&e.get(t)===t._trackId&&(t._shouldSchedule=!1,Eo.push(t.scheduler))}const Br=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},$o=new WeakMap,jt=Symbol(""),Po=Symbol("");function Re(e,t,n){if(yt&&zt){let o=$o.get(e);o||$o.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=Br(()=>o.delete(n))),jr(zt,r)}}function pt(e,t,n,o,r,i){const s=$o.get(e);if(!s)return;let l=[];if(t==="clear")l=[...s.values()];else if(n==="length"&&te(e)){const a=Number(o);s.forEach((c,u)=>{(u==="length"||!Gt(u)&&u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":te(e)?bo(n)&&l.push(s.get("length")):(l.push(s.get(jt)),Zt(e)&&l.push(s.get(Po)));break;case"delete":te(e)||(l.push(s.get(jt)),Zt(e)&&l.push(s.get(Po)));break;case"set":Zt(e)&&l.push(s.get(jt));break}Co();for(const a of l)a&&Rr(a,2);To()}const Tl=Ne("__proto__,__v_isRef,__isVue"),Nr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Gt)),Vr=El();function El(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=ae(this);for(let i=0,s=this.length;i<s;i++)Re(o,"get",i+"");const r=o[t](...n);return r===-1||r===!1?o[t](...n.map(ae)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){_t(),Co();const o=ae(this)[t].apply(this,n);return To(),wt(),o}}),e}function $l(e){const t=ae(this);return Re(t,"has",e),t.hasOwnProperty(e)}class Fr{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,o){const r=this._isReadonly,i=this._shallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return o===(r?i?Fl:Zr:i?Xr:Yr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const s=te(t);if(!r){if(s&&ue(Vr,n))return Reflect.get(Vr,n,o);if(n==="hasOwnProperty")return $l}const l=Reflect.get(t,n,o);return(Gt(n)?Nr.has(n):Tl(n))||(r||Re(t,"get",n),i)?l:Ce(l)?s&&bo(n)?l:l.value:ge(l)?r?Gr(l):cn(l):l}}class Hr extends Fr{constructor(t=!1){super(!1,t)}set(t,n,o,r){let i=t[n];if(!this._shallow){const a=Jt(i);if(!Wn(o)&&!Jt(o)&&(i=ae(i),o=ae(o)),!te(t)&&Ce(i)&&!Ce(o))return a?!1:(i.value=o,!0)}const s=te(t)&&bo(n)?Number(n)<t.length:ue(t,n),l=Reflect.set(t,n,o,r);return t===ae(r)&&(s?st(o,i)&&pt(t,"set",n,o):pt(t,"add",n,o)),l}deleteProperty(t,n){const o=ue(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&o&&pt(t,"delete",n,void 0),r}has(t,n){const o=Reflect.has(t,n);return(!Gt(n)||!Nr.has(n))&&Re(t,"has",n),o}ownKeys(t){return Re(t,"iterate",te(t)?"length":jt),Reflect.ownKeys(t)}}class Pl extends Fr{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Ml=new Hr,Ol=new Pl,Ll=new Hr(!0),Mo=e=>e,Dn=e=>Reflect.getPrototypeOf(e);function Bn(e,t,n=!1,o=!1){e=e.__v_raw;const r=ae(e),i=ae(t);n||(st(t,i)&&Re(r,"get",t),Re(r,"get",i));const{has:s}=Dn(r),l=o?Mo:n?Ao:un;if(s.call(r,t))return l(e.get(t));if(s.call(r,i))return l(e.get(i));e!==r&&e.get(t)}function Nn(e,t=!1){const n=this.__v_raw,o=ae(n),r=ae(e);return t||(st(e,r)&&Re(o,"has",e),Re(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Vn(e,t=!1){return e=e.__v_raw,!t&&Re(ae(e),"iterate",jt),Reflect.get(e,"size",e)}function Wr(e){e=ae(e);const t=ae(this);return Dn(t).has.call(t,e)||(t.add(e),pt(t,"add",e,e)),this}function Kr(e,t){t=ae(t);const n=ae(this),{has:o,get:r}=Dn(n);let i=o.call(n,e);i||(e=ae(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?st(t,s)&&pt(n,"set",e,t):pt(n,"add",e,t),this}function qr(e){const t=ae(this),{has:n,get:o}=Dn(t);let r=n.call(t,e);r||(e=ae(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&pt(t,"delete",e,void 0),i}function Ur(){const e=ae(this),t=e.size!==0,n=e.clear();return t&&pt(e,"clear",void 0,void 0),n}function Fn(e,t){return function(o,r){const i=this,s=i.__v_raw,l=ae(s),a=t?Mo:e?Ao:un;return!e&&Re(l,"iterate",jt),s.forEach((c,u)=>o.call(r,a(c),a(u),i))}}function Hn(e,t,n){return function(...o){const r=this.__v_raw,i=ae(r),s=Zt(i),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=r[e](...o),u=n?Mo:t?Ao:un;return!t&&Re(i,"iterate",a?Po:jt),{next(){const{value:f,done:h}=c.next();return h?{value:f,done:h}:{value:l?[u(f[0]),u(f[1])]:u(f),done:h}},[Symbol.iterator](){return this}}}}function xt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Al(){const e={get(i){return Bn(this,i)},get size(){return Vn(this)},has:Nn,add:Wr,set:Kr,delete:qr,clear:Ur,forEach:Fn(!1,!1)},t={get(i){return Bn(this,i,!1,!0)},get size(){return Vn(this)},has:Nn,add:Wr,set:Kr,delete:qr,clear:Ur,forEach:Fn(!1,!0)},n={get(i){return Bn(this,i,!0)},get size(){return Vn(this,!0)},has(i){return Nn.call(this,i,!0)},add:xt("add"),set:xt("set"),delete:xt("delete"),clear:xt("clear"),forEach:Fn(!0,!1)},o={get(i){return Bn(this,i,!0,!0)},get size(){return Vn(this,!0)},has(i){return Nn.call(this,i,!0)},add:xt("add"),set:xt("set"),delete:xt("delete"),clear:xt("clear"),forEach:Fn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Hn(i,!1,!1),n[i]=Hn(i,!0,!1),t[i]=Hn(i,!1,!0),o[i]=Hn(i,!0,!0)}),[e,n,t,o]}const[zl,jl,Rl,Dl]=Al();function Oo(e,t){const n=t?e?Dl:Rl:e?jl:zl;return(o,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(ue(n,r)&&r in o?n:o,r,i)}const Bl={get:Oo(!1,!1)},Nl={get:Oo(!1,!0)},Vl={get:Oo(!0,!1)},Yr=new WeakMap,Xr=new WeakMap,Zr=new WeakMap,Fl=new WeakMap;function Hl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Wl(e){return e.__v_skip||!Object.isExtensible(e)?0:Hl(gl(e))}function cn(e){return Jt(e)?e:Lo(e,!1,Ml,Bl,Yr)}function Kl(e){return Lo(e,!1,Ll,Nl,Xr)}function Gr(e){return Lo(e,!0,Ol,Vl,Zr)}function Lo(e,t,n,o,r){if(!ge(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=Wl(e);if(s===0)return e;const l=new Proxy(e,s===2?o:n);return r.set(e,l),l}function Qt(e){return Jt(e)?Qt(e.__v_raw):!!(e&&e.__v_isReactive)}function Jt(e){return!!(e&&e.__v_isReadonly)}function Wn(e){return!!(e&&e.__v_isShallow)}function Qr(e){return Qt(e)||Jt(e)}function ae(e){const t=e&&e.__v_raw;return t?ae(t):e}function Jr(e){return Rn(e,"__v_skip",!0),e}const un=e=>ge(e)?cn(e):e,Ao=e=>ge(e)?Gr(e):e;class ei{constructor(t,n,o,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ko(()=>t(this._value),()=>dn(this,1),()=>this.dep&&Dr(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=ae(this);return(!t._cacheable||t.effect.dirty)&&st(t._value,t._value=t.effect.run())&&dn(t,2),zo(t),t.effect._dirtyLevel>=1&&dn(t,1),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function ql(e,t,n=!1){let o,r;const i=re(e);return i?(o=e,r=Ve):(o=e.get,r=e.set),new ei(o,r,i||!r,n)}function zo(e){yt&&zt&&(e=ae(e),jr(zt,e.dep||(e.dep=Br(()=>e.dep=void 0,e instanceof ei?e:void 0))))}function dn(e,t=2,n){e=ae(e);const o=e.dep;o&&Rr(o,t)}function Ce(e){return!!(e&&e.__v_isRef===!0)}function Z(e){return Ul(e,!1)}function Ul(e,t){return Ce(e)?e:new Yl(e,t)}class Yl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ae(t),this._value=n?t:un(t)}get value(){return zo(this),this._value}set value(t){const n=this.__v_isShallow||Wn(t)||Jt(t);t=n?t:ae(t),st(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:un(t),dn(this,2))}}function G(e){return Ce(e)?e.value:e}const Xl={get:(e,t,n)=>G(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Ce(r)&&!Ce(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function ti(e){return Qt(e)?e:new Proxy(e,Xl)}class Zl{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:o}=t(()=>zo(this),()=>dn(this));this._get=n,this._set=o}get value(){return this._get()}set value(t){this._set(t)}}function Gl(e){return new Zl(e)}/**
|
|
9
|
+
**/let He;class Tl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=He,!t&&He&&(this.index=(He.scopes||(He.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=He;try{return He=this,t()}finally{He=n}}}on(){He=this}off(){He=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function El(e,t=He){t&&t.active&&t.effects.push(e)}function Mr(){return He}function $l(e){He&&He.cleanups.push(e)}let At;class Io{constructor(t,n,o,r){this.fn=t,this.trigger=n,this.scheduler=o,this.active=!0,this.deps=[],this._dirtyLevel=2,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,El(this,r)}get dirty(){if(this._dirtyLevel===1){_t();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Ml(n.computed),this._dirtyLevel>=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),wt()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=yt,n=At;try{return yt=!0,At=this,this._runnings++,Pr(this),this.fn()}finally{Or(this),this._runnings--,At=n,yt=t}}stop(){var t;this.active&&(Pr(this),Or(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Ml(e){return e.value}function Pr(e){e._trackId++,e._depsLength=0}function Or(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Lr(e.deps[t],e);e.deps.length=e._depsLength}}function Lr(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let yt=!0,Co=0;const Ar=[];function _t(){Ar.push(yt),yt=!1}function wt(){const e=Ar.pop();yt=e===void 0?!0:e}function To(){Co++}function Eo(){for(Co--;!Co&&$o.length;)$o.shift()()}function zr(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const o=e.deps[e._depsLength];o!==t?(o&&Lr(o,e),e.deps[e._depsLength++]=t):e._depsLength++}}const $o=[];function jr(e,t,n){To();for(const o of e.keys())if(o._dirtyLevel<t&&e.get(o)===o._trackId){const r=o._dirtyLevel;o._dirtyLevel=t,r===0&&(o._shouldSchedule=!0,o.trigger())}Dr(e),Eo()}function Dr(e){for(const t of e.keys())t.scheduler&&t._shouldSchedule&&(!t._runnings||t.allowRecurse)&&e.get(t)===t._trackId&&(t._shouldSchedule=!1,$o.push(t.scheduler))}const Rr=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Mo=new WeakMap,zt=Symbol(""),Po=Symbol("");function De(e,t,n){if(yt&&At){let o=Mo.get(e);o||Mo.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=Rr(()=>o.delete(n))),zr(At,r)}}function ht(e,t,n,o,r,i){const s=Mo.get(e);if(!s)return;let l=[];if(t==="clear")l=[...s.values()];else if(n==="length"&&ee(e)){const a=Number(o);s.forEach((c,u)=>{(u==="length"||!Zt(u)&&u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":ee(e)?yo(n)&&l.push(s.get("length")):(l.push(s.get(zt)),Xt(e)&&l.push(s.get(Po)));break;case"delete":ee(e)||(l.push(s.get(zt)),Xt(e)&&l.push(s.get(Po)));break;case"set":Xt(e)&&l.push(s.get(zt));break}To();for(const a of l)a&&jr(a,2);Eo()}const Pl=Ne("__proto__,__v_isRef,__isVue"),Br=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Zt)),Nr=Ol();function Ol(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=le(this);for(let i=0,s=this.length;i<s;i++)De(o,"get",i+"");const r=o[t](...n);return r===-1||r===!1?o[t](...n.map(le)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){_t(),To();const o=le(this)[t].apply(this,n);return Eo(),wt(),o}}),e}function Ll(e){const t=le(this);return De(t,"has",e),t.hasOwnProperty(e)}class Vr{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,o){const r=this._isReadonly,i=this._shallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return o===(r?i?ql:Xr:i?Yr:Ur).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const s=ee(t);if(!r){if(s&&ce(Nr,n))return Reflect.get(Nr,n,o);if(n==="hasOwnProperty")return Ll}const l=Reflect.get(t,n,o);return(Zt(n)?Br.has(n):Pl(n))||(r||De(t,"get",n),i)?l:Ce(l)?s&&yo(n)?l:l.value:ge(l)?r?Zr(l):cn(l):l}}class Fr extends Vr{constructor(t=!1){super(!1,t)}set(t,n,o,r){let i=t[n];if(!this._shallow){const a=Qt(i);if(!Wn(o)&&!Qt(o)&&(i=le(i),o=le(o)),!ee(t)&&Ce(i)&&!Ce(o))return a?!1:(i.value=o,!0)}const s=ee(t)&&yo(n)?Number(n)<t.length:ce(t,n),l=Reflect.set(t,n,o,r);return t===le(r)&&(s?lt(o,i)&&ht(t,"set",n,o):ht(t,"add",n,o)),l}deleteProperty(t,n){const o=ce(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&o&&ht(t,"delete",n,void 0),r}has(t,n){const o=Reflect.has(t,n);return(!Zt(n)||!Br.has(n))&&De(t,"has",n),o}ownKeys(t){return De(t,"iterate",ee(t)?"length":zt),Reflect.ownKeys(t)}}class Al extends Vr{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const zl=new Fr,jl=new Al,Dl=new Fr(!0),Oo=e=>e,Rn=e=>Reflect.getPrototypeOf(e);function Bn(e,t,n=!1,o=!1){e=e.__v_raw;const r=le(e),i=le(t);n||(lt(t,i)&&De(r,"get",t),De(r,"get",i));const{has:s}=Rn(r),l=o?Oo:n?zo:un;if(s.call(r,t))return l(e.get(t));if(s.call(r,i))return l(e.get(i));e!==r&&e.get(t)}function Nn(e,t=!1){const n=this.__v_raw,o=le(n),r=le(e);return t||(lt(e,r)&&De(o,"has",e),De(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Vn(e,t=!1){return e=e.__v_raw,!t&&De(le(e),"iterate",zt),Reflect.get(e,"size",e)}function Hr(e){e=le(e);const t=le(this);return Rn(t).has.call(t,e)||(t.add(e),ht(t,"add",e,e)),this}function Wr(e,t){t=le(t);const n=le(this),{has:o,get:r}=Rn(n);let i=o.call(n,e);i||(e=le(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?lt(t,s)&&ht(n,"set",e,t):ht(n,"add",e,t),this}function Kr(e){const t=le(this),{has:n,get:o}=Rn(t);let r=n.call(t,e);r||(e=le(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&ht(t,"delete",e,void 0),i}function qr(){const e=le(this),t=e.size!==0,n=e.clear();return t&&ht(e,"clear",void 0,void 0),n}function Fn(e,t){return function(o,r){const i=this,s=i.__v_raw,l=le(s),a=t?Oo:e?zo:un;return!e&&De(l,"iterate",zt),s.forEach((c,u)=>o.call(r,a(c),a(u),i))}}function Hn(e,t,n){return function(...o){const r=this.__v_raw,i=le(r),s=Xt(i),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=r[e](...o),u=n?Oo:t?zo:un;return!t&&De(i,"iterate",a?Po:zt),{next(){const{value:p,done:f}=c.next();return f?{value:p,done:f}:{value:l?[u(p[0]),u(p[1])]:u(p),done:f}},[Symbol.iterator](){return this}}}}function xt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Rl(){const e={get(i){return Bn(this,i)},get size(){return Vn(this)},has:Nn,add:Hr,set:Wr,delete:Kr,clear:qr,forEach:Fn(!1,!1)},t={get(i){return Bn(this,i,!1,!0)},get size(){return Vn(this)},has:Nn,add:Hr,set:Wr,delete:Kr,clear:qr,forEach:Fn(!1,!0)},n={get(i){return Bn(this,i,!0)},get size(){return Vn(this,!0)},has(i){return Nn.call(this,i,!0)},add:xt("add"),set:xt("set"),delete:xt("delete"),clear:xt("clear"),forEach:Fn(!0,!1)},o={get(i){return Bn(this,i,!0,!0)},get size(){return Vn(this,!0)},has(i){return Nn.call(this,i,!0)},add:xt("add"),set:xt("set"),delete:xt("delete"),clear:xt("clear"),forEach:Fn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Hn(i,!1,!1),n[i]=Hn(i,!0,!1),t[i]=Hn(i,!1,!0),o[i]=Hn(i,!0,!0)}),[e,n,t,o]}const[Bl,Nl,Vl,Fl]=Rl();function Lo(e,t){const n=t?e?Fl:Vl:e?Nl:Bl;return(o,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(ce(n,r)&&r in o?n:o,r,i)}const Hl={get:Lo(!1,!1)},Wl={get:Lo(!1,!0)},Kl={get:Lo(!0,!1)},Ur=new WeakMap,Yr=new WeakMap,Xr=new WeakMap,ql=new WeakMap;function Ul(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Yl(e){return e.__v_skip||!Object.isExtensible(e)?0:Ul(yl(e))}function cn(e){return Qt(e)?e:Ao(e,!1,zl,Hl,Ur)}function Xl(e){return Ao(e,!1,Dl,Wl,Yr)}function Zr(e){return Ao(e,!0,jl,Kl,Xr)}function Ao(e,t,n,o,r){if(!ge(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=Yl(e);if(s===0)return e;const l=new Proxy(e,s===2?o:n);return r.set(e,l),l}function Gt(e){return Qt(e)?Gt(e.__v_raw):!!(e&&e.__v_isReactive)}function Qt(e){return!!(e&&e.__v_isReadonly)}function Wn(e){return!!(e&&e.__v_isShallow)}function Gr(e){return Gt(e)||Qt(e)}function le(e){const t=e&&e.__v_raw;return t?le(t):e}function Qr(e){return Dn(e,"__v_skip",!0),e}const un=e=>ge(e)?cn(e):e,zo=e=>ge(e)?Zr(e):e;class Jr{constructor(t,n,o,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Io(()=>t(this._value),()=>dn(this,1),()=>this.dep&&Dr(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=le(this);return(!t._cacheable||t.effect.dirty)&<(t._value,t._value=t.effect.run())&&dn(t,2),jo(t),t.effect._dirtyLevel>=1&&dn(t,1),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Zl(e,t,n=!1){let o,r;const i=oe(e);return i?(o=e,r=Ve):(o=e.get,r=e.set),new Jr(o,r,i||!r,n)}function jo(e){yt&&At&&(e=le(e),zr(At,e.dep||(e.dep=Rr(()=>e.dep=void 0,e instanceof Jr?e:void 0))))}function dn(e,t=2,n){e=le(e);const o=e.dep;o&&jr(o,t)}function Ce(e){return!!(e&&e.__v_isRef===!0)}function G(e){return Gl(e,!1)}function Gl(e,t){return Ce(e)?e:new Ql(e,t)}class Ql{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:le(t),this._value=n?t:un(t)}get value(){return jo(this),this._value}set value(t){const n=this.__v_isShallow||Wn(t)||Qt(t);t=n?t:le(t),lt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:un(t),dn(this,2))}}function Q(e){return Ce(e)?e.value:e}const Jl={get:(e,t,n)=>Q(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Ce(r)&&!Ce(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function ei(e){return Gt(e)?e:new Proxy(e,Jl)}class ea{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:o}=t(()=>jo(this),()=>dn(this));this._get=n,this._set=o}get value(){return this._get()}set value(t){this._set(t)}}function ta(e){return new ea(e)}/**
|
|
10
10
|
* @vue/runtime-core v3.4.15
|
|
11
11
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
12
|
* @license MIT
|
|
13
|
-
**/const fn=[];function
|
|
13
|
+
**/const fn=[];function Wp(e,...t){_t();const n=fn.length?fn[fn.length-1].component:null,o=n&&n.appContext.config.warnHandler,r=na();if(o)gt(o,n,11,[e+t.join(""),n&&n.proxy,r.map(({vnode:i})=>`at <${qi(n,i.type)}>`).join(`
|
|
14
14
|
`),r]);else{const i=[`[Vue warn]: ${e}`,...t];r.length&&i.push(`
|
|
15
|
-
`,...
|
|
16
|
-
`],...ea(n))}),t}function ea({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,r=` at <${Ui(e.component,e.type,o)}`,i=">"+n;return e.props?[r,...ta(e.props),i]:[r+i]}function ta(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...ni(o,e[o]))}),n.length>3&&t.push(" ..."),t}function ni(e,t,n){return we(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Ce(t)?(t=ni(e,ae(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):re(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ae(t),n?t:[`${e}=`,t])}function ht(e,t,n,o){let r;try{r=o?e(...o):e()}catch(i){Kn(i,t,n)}return r}function Ze(e,t,n,o){if(re(e)){const i=ht(e,t,n,o);return i&&Ir(i)&&i.catch(s=>{Kn(s,t,n)}),i}const r=[];for(let i=0;i<e.length;i++)r.push(Ze(e[i],t,n,o));return r}function Kn(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let i=t.parent;const s=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const c=i.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,s,l)===!1)return}i=i.parent}const a=t.appContext.config.errorHandler;if(a){ht(a,null,10,[e,s,l]);return}}na(e,n,r,o)}function na(e,t,n,o=!0){console.error(e)}let pn=!1,jo=!1;const Me=[];let lt=0;const en=[];let St=null,Rt=0;const oi=Promise.resolve();let Ro=null;function gt(e){const t=Ro||oi;return e?t.then(this?e.bind(this):e):t}function oa(e){let t=lt+1,n=Me.length;for(;t<n;){const o=t+n>>>1,r=Me[o],i=hn(r);i<e||i===e&&r.pre?t=o+1:n=o}return t}function Do(e){(!Me.length||!Me.includes(e,pn&&e.allowRecurse?lt+1:lt))&&(e.id==null?Me.push(e):Me.splice(oa(e.id),0,e),ri())}function ri(){!pn&&!jo&&(jo=!0,Ro=oi.then(li))}function ra(e){const t=Me.indexOf(e);t>lt&&Me.splice(t,1)}function ia(e){te(e)?en.push(...e):(!St||!St.includes(e,e.allowRecurse?Rt+1:Rt))&&en.push(e),ri()}function ii(e,t,n=pn?lt+1:0){for(;n<Me.length;n++){const o=Me[n];if(o&&o.pre){if(e&&o.id!==e.uid)continue;Me.splice(n,1),n--,o()}}}function si(e){if(en.length){const t=[...new Set(en)].sort((n,o)=>hn(n)-hn(o));if(en.length=0,St){St.push(...t);return}for(St=t,Rt=0;Rt<St.length;Rt++)St[Rt]();St=null,Rt=0}}const hn=e=>e.id==null?1/0:e.id,sa=(e,t)=>{const n=hn(e)-hn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function li(e){jo=!1,pn=!0,Me.sort(sa);const t=Ve;try{for(lt=0;lt<Me.length;lt++){const n=Me[lt];n&&n.active!==!1&&ht(n,null,14)}}finally{lt=0,Me.length=0,si(),pn=!1,Ro=null,(Me.length||en.length)&&li()}}function la(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||le;let r=n;const i=t.startsWith("update:"),s=i&&t.slice(7);if(s&&s in o){const u=`${s==="modelValue"?"model":s}Modifiers`,{number:f,trim:h}=o[u]||le;h&&(r=n.map(S=>we(S)?S.trim():S)),f&&(r=n.map(_o))}let l,a=o[l=yo(t)]||o[l=yo(je(t))];!a&&i&&(a=o[l=yo(Fe(t))]),a&&Ze(a,e,6,r);const c=o[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ze(c,e,6,r)}}function ai(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const i=e.emits;let s={},l=!1;if(!re(e)){const a=c=>{const u=ai(c,t,!0);u&&(l=!0,_e(s,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(ge(e)&&o.set(e,null),null):(te(i)?i.forEach(a=>s[a]=null):_e(s,i),ge(e)&&o.set(e,s),s)}function qn(e,t){return!e||!Mn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ue(e,t[0].toLowerCase()+t.slice(1))||ue(e,Fe(t))||ue(e,t))}let Te=null,ci=null;function Un(e){const t=Te;return Te=e,ci=e&&e.type.__scopeId||null,t}function ie(e,t=Te,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Di(-1);const i=Un(t);let s;try{s=e(...r)}finally{Un(i),o._d&&Di(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function jp(){}function Bo(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:i,propsOptions:[s],slots:l,attrs:a,emit:c,render:u,renderCache:f,data:h,setupState:S,ctx:_,inheritAttrs:w}=e;let $,L;const K=Un(e);try{if(n.shapeFlag&4){const N=r||o,x=N;$=at(u.call(x,N,f,i,S,h,_)),L=a}else{const N=t;$=at(N.length>1?N(i,{attrs:a,slots:l,emit:c}):N(i,null)),L=t.props?a:aa(a)}}catch(N){yn.length=0,Kn(N,e,1),$=Q(Je)}let C=$;if(L&&w!==!1){const N=Object.keys(L),{shapeFlag:x}=C;N.length&&x&7&&(s&&N.some(mo)&&(L=ca(L,s)),C=It(C,L))}return n.dirs&&(C=It(C),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&(C.transition=n.transition),$=C,Un(K),$}const aa=e=>{let t;for(const n in e)(n==="class"||n==="style"||Mn(n))&&((t||(t={}))[n]=e[n]);return t},ca=(e,t)=>{const n={};for(const o in e)(!mo(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function ua(e,t,n){const{props:o,children:r,component:i}=e,{props:s,children:l,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return o?ui(o,s,c):!!s;if(a&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const h=u[f];if(s[h]!==o[h]&&!qn(c,h))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:o===s?!1:o?s?ui(o,s,c):!0:!!s;return!1}function ui(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const i=o[r];if(t[i]!==e[i]&&!qn(n,i))return!0}return!1}function da({vnode:e,parent:t},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o===e)(e=t.vnode).el=n,t=t.parent;else break}}const di="components",fi=Symbol.for("v-ndc");function fa(e){return we(e)?pa(di,e,!1)||e:e||fi}function pa(e,t,n=!0,o=!1){const r=Te||Pe;if(r){const i=r.type;if(e===di){const l=qi(i,!1);if(l&&(l===t||l===je(t)||l===zn(je(t))))return i}const s=pi(r[e]||i[e],t)||pi(r.appContext[e],t);return!s&&o?i:s}}function pi(e,t){return e&&(e[t]||e[je(t)]||e[zn(je(t))])}const ha=e=>e.__isSuspense;function ga(e,t){t&&t.pendingBranch?te(e)?t.effects.push(...e):t.effects.push(e):ia(e)}const ma=Symbol.for("v-scx"),va=()=>Vt(ma);function ba(e,t){return No(e,null,{flush:"sync"})}const Yn={};function pe(e,t,n){return No(e,t,n)}function No(e,t,{immediate:n,deep:o,flush:r,once:i,onTrack:s,onTrigger:l}=le){if(t&&i){const m=t;t=(...z)=>{m(...z),x()}}const a=Pe,c=m=>o===!0?m:Dt(m,o===!1?1:void 0);let u,f=!1,h=!1;if(Ce(e)?(u=()=>e.value,f=Wn(e)):Qt(e)?(u=()=>c(e),f=!0):te(e)?(h=!0,f=e.some(m=>Qt(m)||Wn(m)),u=()=>e.map(m=>{if(Ce(m))return m.value;if(Qt(m))return c(m);if(re(m))return ht(m,a,2)})):re(e)?t?u=()=>ht(e,a,2):u=()=>(S&&S(),Ze(e,a,3,[_])):u=Ve,t&&o){const m=u;u=()=>Dt(m())}let S,_=m=>{S=C.onStop=()=>{ht(m,a,4),S=C.onStop=void 0}},w;if(ao)if(_=Ve,t?n&&Ze(t,a,3,[u(),h?[]:void 0,_]):u(),r==="sync"){const m=va();w=m.__watcherHandles||(m.__watcherHandles=[])}else return Ve;let $=h?new Array(e.length).fill(Yn):Yn;const L=()=>{if(!(!C.active||!C.dirty))if(t){const m=C.run();(o||f||(h?m.some((z,b)=>st(z,$[b])):st(m,$)))&&(S&&S(),Ze(t,a,3,[m,$===Yn?void 0:h&&$[0]===Yn?[]:$,_]),$=m)}else C.run()};L.allowRecurse=!!t;let K;r==="sync"?K=L:r==="post"?K=()=>De(L,a&&a.suspense):(L.pre=!0,a&&(L.id=a.uid),K=()=>Do(L));const C=new ko(u,Ve,K),N=Mr(),x=()=>{C.stop(),N&&vo(N.effects,C)};return t?n?L():$=C.run():r==="post"?De(C.run.bind(C),a&&a.suspense):C.run(),w&&w.push(x),x}function ya(e,t,n){const o=this.proxy,r=we(e)?e.includes(".")?hi(o,e):()=>o[e]:e.bind(o,o);let i;re(t)?i=t:(i=t.handler,n=t);const s=wn(this),l=No(r,i.bind(o),n);return s(),l}function hi(e,t){const n=t.split(".");return()=>{let o=e;for(let r=0;r<n.length&&o;r++)o=o[n[r]];return o}}function Dt(e,t,n=0,o){if(!ge(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(o=o||new Set,o.has(e))return e;if(o.add(e),Ce(e))Dt(e.value,t,n,o);else if(te(e))for(let r=0;r<e.length;r++)Dt(e[r],t,n,o);else if(kr(e)||Zt(e))e.forEach(r=>{Dt(r,t,n,o)});else if(Tr(e))for(const r in e)Dt(e[r],t,n,o);return e}function mt(e,t){if(Te===null)return e;const n=co(Te)||Te.proxy,o=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,s,l,a=le]=t[r];i&&(re(i)&&(i={mounted:i,updated:i}),i.deep&&Dt(s),o.push({dir:i,instance:n,value:s,oldValue:void 0,arg:l,modifiers:a}))}return e}function Bt(e,t,n,o){const r=e.dirs,i=t&&t.dirs;for(let s=0;s<r.length;s++){const l=r[s];i&&(l.oldValue=i[s].value);let a=l.dir[o];a&&(_t(),Ze(a,n,8,[e.el,l,e,t]),wt())}}const kt=Symbol("_leaveCb"),Xn=Symbol("_enterCb");function _a(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Qe(()=>{e.isMounted=!0}),Wo(()=>{e.isUnmounting=!0}),e}const Ge=[Function,Array],gi={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ge,onEnter:Ge,onAfterEnter:Ge,onEnterCancelled:Ge,onBeforeLeave:Ge,onLeave:Ge,onAfterLeave:Ge,onLeaveCancelled:Ge,onBeforeAppear:Ge,onAppear:Ge,onAfterAppear:Ge,onAppearCancelled:Ge},wa={name:"BaseTransition",props:gi,setup(e,{slots:t}){const n=nr(),o=_a();let r;return()=>{const i=t.default&&bi(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){for(const w of i)if(w.type!==Je){s=w;break}}const l=ae(e),{mode:a}=l;if(o.isLeaving)return Fo(s);const c=vi(s);if(!c)return Fo(s);const u=Vo(c,l,o,n);Ho(c,u);const f=n.subTree,h=f&&vi(f);let S=!1;const{getTransitionKey:_}=c.type;if(_){const w=_();r===void 0?r=w:w!==r&&(r=w,S=!0)}if(h&&h.type!==Je&&(!Ht(c,h)||S)){const w=Vo(h,l,o,n);if(Ho(h,w),a==="out-in")return o.isLeaving=!0,w.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Fo(s);a==="in-out"&&c.type!==Je&&(w.delayLeave=($,L,K)=>{const C=mi(o,h);C[String(h.key)]=h,$[kt]=()=>{L(),$[kt]=void 0,delete u.delayedLeave},u.delayedLeave=K})}return s}}};function mi(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Vo(e,t,n,o){const{appear:r,mode:i,persisted:s=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:f,onLeave:h,onAfterLeave:S,onLeaveCancelled:_,onBeforeAppear:w,onAppear:$,onAfterAppear:L,onAppearCancelled:K}=t,C=String(e.key),N=mi(n,e),x=(b,v)=>{b&&Ze(b,o,9,v)},m=(b,v)=>{const T=v[1];x(b,v),te(b)?b.every(U=>U.length<=1)&&T():b.length<=1&&T()},z={mode:i,persisted:s,beforeEnter(b){let v=l;if(!n.isMounted)if(r)v=w||l;else return;b[kt]&&b[kt](!0);const T=N[C];T&&Ht(e,T)&&T.el[kt]&&T.el[kt](),x(v,[b])},enter(b){let v=a,T=c,U=u;if(!n.isMounted)if(r)v=$||a,T=L||c,U=K||u;else return;let V=!1;const oe=b[Xn]=P=>{V||(V=!0,P?x(U,[b]):x(T,[b]),z.delayedLeave&&z.delayedLeave(),b[Xn]=void 0)};v?m(v,[b,oe]):oe()},leave(b,v){const T=String(e.key);if(b[Xn]&&b[Xn](!0),n.isUnmounting)return v();x(f,[b]);let U=!1;const V=b[kt]=oe=>{U||(U=!0,v(),oe?x(_,[b]):x(S,[b]),b[kt]=void 0,N[T]===e&&delete N[T])};N[T]=e,h?m(h,[b,V]):V()},clone(b){return Vo(b,t,n,o)}};return z}function Fo(e){if(Zn(e))return e=It(e),e.children=null,e}function vi(e){return Zn(e)?e.children?e.children[0]:void 0:e}function Ho(e,t){e.shapeFlag&6&&e.component?Ho(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function bi(e,t=!1,n){let o=[],r=0;for(let i=0;i<e.length;i++){let s=e[i];const l=n==null?s.key:String(n)+String(s.key!=null?s.key:i);s.type===Se?(s.patchFlag&128&&r++,o=o.concat(bi(s.children,t,l))):(t||s.type!==Je)&&o.push(l!=null?It(s,{key:l}):s)}if(r>1)for(let i=0;i<o.length;i++)o[i].patchFlag=-2;return o}/*! #__NO_SIDE_EFFECTS__ */function ke(e,t){return re(e)?(()=>_e({name:e.name},t,{setup:e}))():e}const gn=e=>!!e.type.__asyncLoader,Zn=e=>e.type.__isKeepAlive;function xa(e,t){yi(e,"a",t)}function Sa(e,t){yi(e,"da",t)}function yi(e,t,n=Pe){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Gn(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Zn(r.parent.vnode)&&ka(o,t,n,r),r=r.parent}}function ka(e,t,n,o){const r=Gn(t,e,o,!0);Nt(()=>{vo(o[t],r)},n)}function Gn(e,t,n=Pe,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;_t();const l=wn(n),a=Ze(t,n,e,s);return l(),wt(),a});return o?r.unshift(i):r.push(i),i}}const vt=e=>(t,n=Pe)=>(!ao||e==="sp")&&Gn(e,(...o)=>t(...o),n),Ia=vt("bm"),Qe=vt("m"),Ca=vt("bu"),Ta=vt("u"),Wo=vt("bum"),Nt=vt("um"),Ea=vt("sp"),$a=vt("rtg"),Pa=vt("rtc");function Ma(e,t=Pe){Gn("ec",e,t)}function mn(e,t,n,o){let r;const i=n&&n[o];if(te(e)||we(e)){r=new Array(e.length);for(let s=0,l=e.length;s<l;s++)r[s]=t(e[s],s,void 0,i&&i[s])}else if(typeof e=="number"){r=new Array(e);for(let s=0;s<e;s++)r[s]=t(s+1,s,void 0,i&&i[s])}else if(ge(e))if(e[Symbol.iterator])r=Array.from(e,(s,l)=>t(s,l,void 0,i&&i[l]));else{const s=Object.keys(e);r=new Array(s.length);for(let l=0,a=s.length;l<a;l++){const c=s[l];r[l]=t(e[c],c,l,i&&i[l])}}else r=[];return n&&(n[o]=r),r}function _i(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(te(o))for(let r=0;r<o.length;r++)e[o[r].name]=o[r].fn;else o&&(e[o.name]=o.key?(...r)=>{const i=o.fn(...r);return i&&(i.key=o.key),i}:o.fn)}return e}function xe(e,t,n={},o,r){if(Te.isCE||Te.parent&&gn(Te.parent)&&Te.parent.isCE)return t!=="default"&&(n.name=t),Q("slot",n,o&&o());let i=e[t];i&&i._c&&(i._d=!1),R();const s=i&&wi(i(n)),l=me(Se,{key:n.key||s&&s.key||`_${t}`},s||(o?o():[]),s&&e._===1?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function wi(e){return e.some(t=>oo(t)?!(t.type===Je||t.type===Se&&!wi(t.children)):!0)?e:null}const Ko=e=>e?Fi(e)?co(e)||e.proxy:Ko(e.parent):null,vn=_e(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ko(e.parent),$root:e=>Ko(e.root),$emit:e=>e.emit,$options:e=>Yo(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Do(e.update)}),$nextTick:e=>e.n||(e.n=gt.bind(e.proxy)),$watch:e=>ya.bind(e)}),qo=(e,t)=>e!==le&&!e.__isScriptSetup&&ue(e,t),Oa={get({_:e},t){const{ctx:n,setupState:o,data:r,props:i,accessCache:s,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const S=s[t];if(S!==void 0)switch(S){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(qo(o,t))return s[t]=1,o[t];if(r!==le&&ue(r,t))return s[t]=2,r[t];if((c=e.propsOptions[0])&&ue(c,t))return s[t]=3,i[t];if(n!==le&&ue(n,t))return s[t]=4,n[t];Uo&&(s[t]=0)}}const u=vn[t];let f,h;if(u)return t==="$attrs"&&Re(e,"get",t),u(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==le&&ue(n,t))return s[t]=4,n[t];if(h=a.config.globalProperties,ue(h,t))return h[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return qo(r,t)?(r[t]=n,!0):o!==le&&ue(o,t)?(o[t]=n,!0):ue(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:i}},s){let l;return!!n[s]||e!==le&&ue(e,s)||qo(t,s)||(l=i[0])&&ue(l,s)||ue(o,s)||ue(vn,s)||ue(r.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ue(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Qn(e){return te(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function tn(e,t){return!e||!t?e||t:te(e)&&te(t)?e.concat(t):_e({},Qn(e),Qn(t))}let Uo=!0;function La(e){const t=Yo(e),n=e.proxy,o=e.ctx;Uo=!1,t.beforeCreate&&xi(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:s,watch:l,provide:a,inject:c,created:u,beforeMount:f,mounted:h,beforeUpdate:S,updated:_,activated:w,deactivated:$,beforeDestroy:L,beforeUnmount:K,destroyed:C,unmounted:N,render:x,renderTracked:m,renderTriggered:z,errorCaptured:b,serverPrefetch:v,expose:T,inheritAttrs:U,components:V,directives:oe,filters:P}=t;if(c&&Aa(c,o,null),s)for(const O in s){const F=s[O];re(F)&&(o[O]=F.bind(n))}if(r){const O=r.call(n,n);ge(O)&&(e.data=cn(O))}if(Uo=!0,i)for(const O in i){const F=i[O],ce=re(F)?F.bind(n,n):re(F.get)?F.get.bind(n,n):Ve,fe=!re(F)&&re(F.set)?F.set.bind(n):Ve,be=se({get:ce,set:fe});Object.defineProperty(o,O,{enumerable:!0,configurable:!0,get:()=>be.value,set:ye=>be.value=ye})}if(l)for(const O in l)Si(l[O],o,n,O);if(a){const O=re(a)?a.call(n):a;Reflect.ownKeys(O).forEach(F=>{to(F,O[F])})}u&&xi(u,e,"c");function q(O,F){te(F)?F.forEach(ce=>O(ce.bind(n))):F&&O(F.bind(n))}if(q(Ia,f),q(Qe,h),q(Ca,S),q(Ta,_),q(xa,w),q(Sa,$),q(Ma,b),q(Pa,m),q($a,z),q(Wo,K),q(Nt,N),q(Ea,v),te(T))if(T.length){const O=e.exposed||(e.exposed={});T.forEach(F=>{Object.defineProperty(O,F,{get:()=>n[F],set:ce=>n[F]=ce})})}else e.exposed||(e.exposed={});x&&e.render===Ve&&(e.render=x),U!=null&&(e.inheritAttrs=U),V&&(e.components=V),oe&&(e.directives=oe)}function Aa(e,t,n=Ve){te(e)&&(e=Xo(e));for(const o in e){const r=e[o];let i;ge(r)?"default"in r?i=Vt(r.from||o,r.default,!0):i=Vt(r.from||o):i=Vt(r),Ce(i)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[o]=i}}function xi(e,t,n){Ze(te(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function Si(e,t,n,o){const r=o.includes(".")?hi(n,o):()=>n[o];if(we(e)){const i=t[e];re(i)&&pe(r,i)}else if(re(e))pe(r,e.bind(n));else if(ge(e))if(te(e))e.forEach(i=>Si(i,t,n,o));else{const i=re(e.handler)?e.handler.bind(n):t[e.handler];re(i)&&pe(r,i,e)}}function Yo(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,l=i.get(t);let a;return l?a=l:!r.length&&!n&&!o?a=t:(a={},r.length&&r.forEach(c=>Jn(a,c,s,!0)),Jn(a,t,s)),ge(t)&&i.set(t,a),a}function Jn(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&Jn(e,i,n,!0),r&&r.forEach(s=>Jn(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const l=za[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const za={data:ki,props:Ii,emits:Ii,methods:bn,computed:bn,beforeCreate:Le,created:Le,beforeMount:Le,mounted:Le,beforeUpdate:Le,updated:Le,beforeDestroy:Le,beforeUnmount:Le,destroyed:Le,unmounted:Le,activated:Le,deactivated:Le,errorCaptured:Le,serverPrefetch:Le,components:bn,directives:bn,watch:Ra,provide:ki,inject:ja};function ki(e,t){return t?e?function(){return _e(re(e)?e.call(this,this):e,re(t)?t.call(this,this):t)}:t:e}function ja(e,t){return bn(Xo(e),Xo(t))}function Xo(e){if(te(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Le(e,t){return e?[...new Set([].concat(e,t))]:t}function bn(e,t){return e?_e(Object.create(null),e,t):t}function Ii(e,t){return e?te(e)&&te(t)?[...new Set([...e,...t])]:_e(Object.create(null),Qn(e),Qn(t??{})):t}function Ra(e,t){if(!e)return t;if(!t)return e;const n=_e(Object.create(null),e);for(const o in t)n[o]=Le(e[o],t[o]);return n}function Ci(){return{app:null,config:{isNativeTag:pl,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Da=0;function Ba(e,t){return function(o,r=null){re(o)||(o=_e({},o)),r!=null&&!ge(r)&&(r=null);const i=Ci(),s=new WeakSet;let l=!1;const a=i.app={_uid:Da++,_component:o,_props:r,_container:null,_context:i,_instance:null,version:uc,get config(){return i.config},set config(c){},use(c,...u){return s.has(c)||(c&&re(c.install)?(s.add(c),c.install(a,...u)):re(c)&&(s.add(c),c(a,...u))),a},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),a},component(c,u){return u?(i.components[c]=u,a):i.components[c]},directive(c,u){return u?(i.directives[c]=u,a):i.directives[c]},mount(c,u,f){if(!l){const h=Q(o,r);return h.appContext=i,f===!0?f="svg":f===!1&&(f=void 0),u&&t?t(h,c):e(h,c,f),l=!0,a._container=c,c.__vue_app__=a,co(h.component)||h.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,u){return i.provides[c]=u,a},runWithContext(c){eo=a;try{return c()}finally{eo=null}}};return a}}let eo=null;function to(e,t){if(Pe){let n=Pe.provides;const o=Pe.parent&&Pe.parent.provides;o===n&&(n=Pe.provides=Object.create(o)),n[e]=t}}function Vt(e,t,n=!1){const o=Pe||Te;if(o||eo){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:eo._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&re(t)?t.call(o&&o.proxy):t}}function Na(e,t,n,o=!1){const r={},i={};Rn(i,ro,1),e.propsDefaults=Object.create(null),Ti(e,t,r,i);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);n?e.props=o?r:Kl(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function Va(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,l=ae(r),[a]=e.propsOptions;let c=!1;if((o||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let h=u[f];if(qn(e.emitsOptions,h))continue;const S=t[h];if(a)if(ue(i,h))S!==i[h]&&(i[h]=S,c=!0);else{const _=je(h);r[_]=Zo(a,l,_,S,e,!1)}else S!==i[h]&&(i[h]=S,c=!0)}}}else{Ti(e,t,r,i)&&(c=!0);let u;for(const f in l)(!t||!ue(t,f)&&((u=Fe(f))===f||!ue(t,u)))&&(a?n&&(n[f]!==void 0||n[u]!==void 0)&&(r[f]=Zo(a,l,f,void 0,e,!0)):delete r[f]);if(i!==l)for(const f in i)(!t||!ue(t,f))&&(delete i[f],c=!0)}c&&pt(e,"set","$attrs")}function Ti(e,t,n,o){const[r,i]=e.propsOptions;let s=!1,l;if(t)for(let a in t){if(Ln(a))continue;const c=t[a];let u;r&&ue(r,u=je(a))?!i||!i.includes(u)?n[u]=c:(l||(l={}))[u]=c:qn(e.emitsOptions,a)||(!(a in o)||c!==o[a])&&(o[a]=c,s=!0)}if(i){const a=ae(n),c=l||le;for(let u=0;u<i.length;u++){const f=i[u];n[f]=Zo(r,a,f,c[f],e,!ue(c,f))}}return s}function Zo(e,t,n,o,r,i){const s=e[n];if(s!=null){const l=ue(s,"default");if(l&&o===void 0){const a=s.default;if(s.type!==Function&&!s.skipFactory&&re(a)){const{propsDefaults:c}=r;if(n in c)o=c[n];else{const u=wn(r);o=c[n]=a.call(null,t),u()}}else o=a}s[0]&&(i&&!l?o=!1:s[1]&&(o===""||o===Fe(n))&&(o=!0))}return o}function Ei(e,t,n=!1){const o=t.propsCache,r=o.get(e);if(r)return r;const i=e.props,s={},l=[];let a=!1;if(!re(e)){const u=f=>{a=!0;const[h,S]=Ei(f,t,!0);_e(s,h),S&&l.push(...S)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!a)return ge(e)&&o.set(e,Ye),Ye;if(te(i))for(let u=0;u<i.length;u++){const f=je(i[u]);$i(f)&&(s[f]=le)}else if(i)for(const u in i){const f=je(u);if($i(f)){const h=i[u],S=s[f]=te(h)||re(h)?{type:h}:_e({},h);if(S){const _=Oi(Boolean,S.type),w=Oi(String,S.type);S[0]=_>-1,S[1]=w<0||_<w,(_>-1||ue(S,"default"))&&l.push(f)}}}const c=[s,l];return ge(e)&&o.set(e,c),c}function $i(e){return e[0]!=="$"}function Pi(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Mi(e,t){return Pi(e)===Pi(t)}function Oi(e,t){return te(t)?t.findIndex(n=>Mi(n,e)):re(t)&&Mi(t,e)?0:-1}const Li=e=>e[0]==="_"||e==="$stable",Go=e=>te(e)?e.map(at):[at(e)],Fa=(e,t,n)=>{if(t._n)return t;const o=ie((...r)=>Go(t(...r)),n);return o._c=!1,o},Ai=(e,t,n)=>{const o=e._ctx;for(const r in e){if(Li(r))continue;const i=e[r];if(re(i))t[r]=Fa(r,i,o);else if(i!=null){const s=Go(i);t[r]=()=>s}}},zi=(e,t)=>{const n=Go(t);e.slots.default=()=>n},Ha=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ae(t),Rn(t,"_",n)):Ai(t,e.slots={})}else e.slots={},t&&zi(e,t);Rn(e.slots,ro,1)},Wa=(e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,s=le;if(o.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(_e(r,t),!n&&l===1&&delete r._):(i=!t.$stable,Ai(t,r)),s=t}else t&&(zi(e,t),s={default:1});if(i)for(const l in r)!Li(l)&&s[l]==null&&delete r[l]};function Qo(e,t,n,o,r=!1){if(te(e)){e.forEach((h,S)=>Qo(h,t&&(te(t)?t[S]:t),n,o,r));return}if(gn(o)&&!r)return;const i=o.shapeFlag&4?co(o.component)||o.component.proxy:o.el,s=r?null:i,{i:l,r:a}=e,c=t&&t.r,u=l.refs===le?l.refs={}:l.refs,f=l.setupState;if(c!=null&&c!==a&&(we(c)?(u[c]=null,ue(f,c)&&(f[c]=null)):Ce(c)&&(c.value=null)),re(a))ht(a,l,12,[s,u]);else{const h=we(a),S=Ce(a),_=e.f;if(h||S){const w=()=>{if(_){const $=h?ue(f,a)?f[a]:u[a]:a.value;r?te($)&&vo($,i):te($)?$.includes(i)||$.push(i):h?(u[a]=[i],ue(f,a)&&(f[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else h?(u[a]=s,ue(f,a)&&(f[a]=s)):S&&(a.value=s,e.k&&(u[e.k]=s))};r||_?w():(w.id=-1,De(w,n))}}}function Ka(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(xo().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const De=ga;function qa(e){return Ua(e)}function Ua(e,t){Ka();const n=xo();n.__VUE__=!0;const{insert:o,remove:r,patchProp:i,createElement:s,createText:l,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:h,setScopeId:S=Ve,insertStaticContent:_}=e,w=(d,p,y,k=null,E=null,j=null,D=void 0,A=null,B=!!p.dynamicChildren)=>{if(d===p)return;d&&!Ht(d,p)&&(k=qe(d),ye(d,E,j,!0),d=null),p.patchFlag===-2&&(B=!1,p.dynamicChildren=null);const{type:M,ref:H,shapeFlag:J}=p;switch(M){case no:$(d,p,y,k);break;case Je:L(d,p,y,k);break;case er:d==null&&K(p,y,k,D);break;case Se:V(d,p,y,k,E,j,D,A,B);break;default:J&1?x(d,p,y,k,E,j,D,A,B):J&6?oe(d,p,y,k,E,j,D,A,B):(J&64||J&128)&&M.process(d,p,y,k,E,j,D,A,B,dt)}H!=null&&E&&Qo(H,d&&d.ref,j,p||d,!p)},$=(d,p,y,k)=>{if(d==null)o(p.el=l(p.children),y,k);else{const E=p.el=d.el;p.children!==d.children&&c(E,p.children)}},L=(d,p,y,k)=>{d==null?o(p.el=a(p.children||""),y,k):p.el=d.el},K=(d,p,y,k)=>{[d.el,d.anchor]=_(d.children,p,y,k,d.el,d.anchor)},C=({el:d,anchor:p},y,k)=>{let E;for(;d&&d!==p;)E=h(d),o(d,y,k),d=E;o(p,y,k)},N=({el:d,anchor:p})=>{let y;for(;d&&d!==p;)y=h(d),r(d),d=y;r(p)},x=(d,p,y,k,E,j,D,A,B)=>{p.type==="svg"?D="svg":p.type==="math"&&(D="mathml"),d==null?m(p,y,k,E,j,D,A,B):v(d,p,E,j,D,A,B)},m=(d,p,y,k,E,j,D,A)=>{let B,M;const{props:H,shapeFlag:J,transition:g,dirs:I}=d;if(B=d.el=s(d.type,j,H&&H.is,H),J&8?u(B,d.children):J&16&&b(d.children,B,null,k,E,Jo(d,j),D,A),I&&Bt(d,null,k,"created"),z(B,d,d.scopeId,D,k),H){for(const ee in H)ee!=="value"&&!Ln(ee)&&i(B,ee,null,H[ee],j,d.children,k,E,Ke);"value"in H&&i(B,"value",null,H.value,j),(M=H.onVnodeBeforeMount)&&ct(M,k,d)}I&&Bt(d,null,k,"beforeMount");const W=Ya(E,g);W&&g.beforeEnter(B),o(B,p,y),((M=H&&H.onVnodeMounted)||W||I)&&De(()=>{M&&ct(M,k,d),W&&g.enter(B),I&&Bt(d,null,k,"mounted")},E)},z=(d,p,y,k,E)=>{if(y&&S(d,y),k)for(let j=0;j<k.length;j++)S(d,k[j]);if(E){let j=E.subTree;if(p===j){const D=E.vnode;z(d,D,D.scopeId,D.slotScopeIds,E.parent)}}},b=(d,p,y,k,E,j,D,A,B=0)=>{for(let M=B;M<d.length;M++){const H=d[M]=A?Tt(d[M]):at(d[M]);w(null,H,p,y,k,E,j,D,A)}},v=(d,p,y,k,E,j,D)=>{const A=p.el=d.el;let{patchFlag:B,dynamicChildren:M,dirs:H}=p;B|=d.patchFlag&16;const J=d.props||le,g=p.props||le;let I;if(y&&Ft(y,!1),(I=g.onVnodeBeforeUpdate)&&ct(I,y,p,d),H&&Bt(p,d,y,"beforeUpdate"),y&&Ft(y,!0),M?T(d.dynamicChildren,M,A,y,k,Jo(p,E),j):D||F(d,p,A,null,y,k,Jo(p,E),j,!1),B>0){if(B&16)U(A,p,J,g,y,k,E);else if(B&2&&J.class!==g.class&&i(A,"class",null,g.class,E),B&4&&i(A,"style",J.style,g.style,E),B&8){const W=p.dynamicProps;for(let ee=0;ee<W.length;ee++){const de=W[ee],$e=J[de],it=g[de];(it!==$e||de==="value")&&i(A,de,$e,it,E,d.children,y,k,Ke)}}B&1&&d.children!==p.children&&u(A,p.children)}else!D&&M==null&&U(A,p,J,g,y,k,E);((I=g.onVnodeUpdated)||H)&&De(()=>{I&&ct(I,y,p,d),H&&Bt(p,d,y,"updated")},k)},T=(d,p,y,k,E,j,D)=>{for(let A=0;A<p.length;A++){const B=d[A],M=p[A],H=B.el&&(B.type===Se||!Ht(B,M)||B.shapeFlag&70)?f(B.el):y;w(B,M,H,null,k,E,j,D,!0)}},U=(d,p,y,k,E,j,D)=>{if(y!==k){if(y!==le)for(const A in y)!Ln(A)&&!(A in k)&&i(d,A,y[A],null,D,p.children,E,j,Ke);for(const A in k){if(Ln(A))continue;const B=k[A],M=y[A];B!==M&&A!=="value"&&i(d,A,M,B,D,p.children,E,j,Ke)}"value"in k&&i(d,"value",y.value,k.value,D)}},V=(d,p,y,k,E,j,D,A,B)=>{const M=p.el=d?d.el:l(""),H=p.anchor=d?d.anchor:l("");let{patchFlag:J,dynamicChildren:g,slotScopeIds:I}=p;I&&(A=A?A.concat(I):I),d==null?(o(M,y,k),o(H,y,k),b(p.children||[],y,H,E,j,D,A,B)):J>0&&J&64&&g&&d.dynamicChildren?(T(d.dynamicChildren,g,y,E,j,D,A),(p.key!=null||E&&p===E.subTree)&&ji(d,p,!0)):F(d,p,y,H,E,j,D,A,B)},oe=(d,p,y,k,E,j,D,A,B)=>{p.slotScopeIds=A,d==null?p.shapeFlag&512?E.ctx.activate(p,y,k,D,B):P(p,y,k,E,j,D,B):ne(d,p,B)},P=(d,p,y,k,E,j,D)=>{const A=d.component=nc(d,k,E);if(Zn(d)&&(A.ctx.renderer=dt),oc(A),A.asyncDep){if(E&&E.registerDep(A,q),!d.el){const B=A.subTree=Q(Je);L(null,B,p,y)}}else q(A,d,p,y,E,j,D)},ne=(d,p,y)=>{const k=p.component=d.component;if(ua(d,p,y))if(k.asyncDep&&!k.asyncResolved){O(k,p,y);return}else k.next=p,ra(k.update),k.effect.dirty=!0,k.update();else p.el=d.el,k.vnode=p},q=(d,p,y,k,E,j,D)=>{const A=()=>{if(d.isMounted){let{next:H,bu:J,u:g,parent:I,vnode:W}=d;{const an=Ri(d);if(an){H&&(H.el=W.el,O(d,H,D)),an.asyncDep.then(()=>{d.isUnmounted||A()});return}}let ee=H,de;Ft(d,!1),H?(H.el=W.el,O(d,H,D)):H=W,J&&jn(J),(de=H.props&&H.props.onVnodeBeforeUpdate)&&ct(de,I,H,W),Ft(d,!0);const $e=Bo(d),it=d.subTree;d.subTree=$e,w(it,$e,f(it.el),qe(it),d,E,j),H.el=$e.el,ee===null&&da(d,$e.el),g&&De(g,E),(de=H.props&&H.props.onVnodeUpdated)&&De(()=>ct(de,I,H,W),E)}else{let H;const{el:J,props:g}=p,{bm:I,m:W,parent:ee}=d,de=gn(p);if(Ft(d,!1),I&&jn(I),!de&&(H=g&&g.onVnodeBeforeMount)&&ct(H,ee,p),Ft(d,!0),J&&bt){const $e=()=>{d.subTree=Bo(d),bt(J,d.subTree,d,E,null)};de?p.type.__asyncLoader().then(()=>!d.isUnmounted&&$e()):$e()}else{const $e=d.subTree=Bo(d);w(null,$e,y,k,d,E,j),p.el=$e.el}if(W&&De(W,E),!de&&(H=g&&g.onVnodeMounted)){const $e=p;De(()=>ct(H,ee,$e),E)}(p.shapeFlag&256||ee&&gn(ee.vnode)&&ee.vnode.shapeFlag&256)&&d.a&&De(d.a,E),d.isMounted=!0,p=y=k=null}},B=d.effect=new ko(A,Ve,()=>Do(M),d.scope),M=d.update=()=>{B.dirty&&B.run()};M.id=d.uid,Ft(d,!0),M()},O=(d,p,y)=>{p.component=d;const k=d.vnode.props;d.vnode=p,d.next=null,Va(d,p.props,k,y),Wa(d,p.children,y),_t(),ii(d),wt()},F=(d,p,y,k,E,j,D,A,B=!1)=>{const M=d&&d.children,H=d?d.shapeFlag:0,J=p.children,{patchFlag:g,shapeFlag:I}=p;if(g>0){if(g&128){fe(M,J,y,k,E,j,D,A,B);return}else if(g&256){ce(M,J,y,k,E,j,D,A,B);return}}I&8?(H&16&&Ke(M,E,j),J!==M&&u(y,J)):H&16?I&16?fe(M,J,y,k,E,j,D,A,B):Ke(M,E,j,!0):(H&8&&u(y,""),I&16&&b(J,y,k,E,j,D,A,B))},ce=(d,p,y,k,E,j,D,A,B)=>{d=d||Ye,p=p||Ye;const M=d.length,H=p.length,J=Math.min(M,H);let g;for(g=0;g<J;g++){const I=p[g]=B?Tt(p[g]):at(p[g]);w(d[g],I,y,null,E,j,D,A,B)}M>H?Ke(d,E,j,!0,!1,J):b(p,y,k,E,j,D,A,B,J)},fe=(d,p,y,k,E,j,D,A,B)=>{let M=0;const H=p.length;let J=d.length-1,g=H-1;for(;M<=J&&M<=g;){const I=d[M],W=p[M]=B?Tt(p[M]):at(p[M]);if(Ht(I,W))w(I,W,y,null,E,j,D,A,B);else break;M++}for(;M<=J&&M<=g;){const I=d[J],W=p[g]=B?Tt(p[g]):at(p[g]);if(Ht(I,W))w(I,W,y,null,E,j,D,A,B);else break;J--,g--}if(M>J){if(M<=g){const I=g+1,W=I<H?p[I].el:k;for(;M<=g;)w(null,p[M]=B?Tt(p[M]):at(p[M]),y,W,E,j,D,A,B),M++}}else if(M>g)for(;M<=J;)ye(d[M],E,j,!0),M++;else{const I=M,W=M,ee=new Map;for(M=W;M<=g;M++){const Ue=p[M]=B?Tt(p[M]):at(p[M]);Ue.key!=null&&ee.set(Ue.key,M)}let de,$e=0;const it=g-W+1;let an=!1,ul=0;const Pn=new Array(it);for(M=0;M<it;M++)Pn[M]=0;for(M=I;M<=J;M++){const Ue=d[M];if($e>=it){ye(Ue,E,j,!0);continue}let ft;if(Ue.key!=null)ft=ee.get(Ue.key);else for(de=W;de<=g;de++)if(Pn[de-W]===0&&Ht(Ue,p[de])){ft=de;break}ft===void 0?ye(Ue,E,j,!0):(Pn[ft-W]=M+1,ft>=ul?ul=ft:an=!0,w(Ue,p[ft],y,null,E,j,D,A,B),$e++)}const dl=an?Xa(Pn):Ye;for(de=dl.length-1,M=it-1;M>=0;M--){const Ue=W+M,ft=p[Ue],fl=Ue+1<H?p[Ue+1].el:k;Pn[M]===0?w(null,ft,y,fl,E,j,D,A,B):an&&(de<0||M!==dl[de]?be(ft,y,fl,2):de--)}}},be=(d,p,y,k,E=null)=>{const{el:j,type:D,transition:A,children:B,shapeFlag:M}=d;if(M&6){be(d.component.subTree,p,y,k);return}if(M&128){d.suspense.move(p,y,k);return}if(M&64){D.move(d,p,y,dt);return}if(D===Se){o(j,p,y);for(let J=0;J<B.length;J++)be(B[J],p,y,k);o(d.anchor,p,y);return}if(D===er){C(d,p,y);return}if(k!==2&&M&1&&A)if(k===0)A.beforeEnter(j),o(j,p,y),De(()=>A.enter(j),E);else{const{leave:J,delayLeave:g,afterLeave:I}=A,W=()=>o(j,p,y),ee=()=>{J(j,()=>{W(),I&&I()})};g?g(j,W,ee):ee()}else o(j,p,y)},ye=(d,p,y,k=!1,E=!1)=>{const{type:j,props:D,ref:A,children:B,dynamicChildren:M,shapeFlag:H,patchFlag:J,dirs:g}=d;if(A!=null&&Qo(A,null,y,d,!0),H&256){p.ctx.deactivate(d);return}const I=H&1&&g,W=!gn(d);let ee;if(W&&(ee=D&&D.onVnodeBeforeUnmount)&&ct(ee,p,d),H&6)Xt(d.component,y,k);else{if(H&128){d.suspense.unmount(y,k);return}I&&Bt(d,null,p,"beforeUnmount"),H&64?d.type.remove(d,p,y,E,dt,k):M&&(j!==Se||J>0&&J&64)?Ke(M,p,y,!1,!0):(j===Se&&J&384||!E&&H&16)&&Ke(B,p,y),k&&ze(d)}(W&&(ee=D&&D.onVnodeUnmounted)||I)&&De(()=>{ee&&ct(ee,p,d),I&&Bt(d,null,p,"unmounted")},y)},ze=d=>{const{type:p,el:y,anchor:k,transition:E}=d;if(p===Se){nt(y,k);return}if(p===er){N(d);return}const j=()=>{r(y),E&&!E.persisted&&E.afterLeave&&E.afterLeave()};if(d.shapeFlag&1&&E&&!E.persisted){const{leave:D,delayLeave:A}=E,B=()=>D(y,j);A?A(d.el,j,B):B()}else j()},nt=(d,p)=>{let y;for(;d!==p;)y=h(d),r(d),d=y;r(p)},Xt=(d,p,y)=>{const{bum:k,scope:E,update:j,subTree:D,um:A}=d;k&&jn(k),E.stop(),j&&(j.active=!1,ye(D,d,p,y)),A&&De(A,p),De(()=>{d.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&d.asyncDep&&!d.asyncResolved&&d.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},Ke=(d,p,y,k=!1,E=!1,j=0)=>{for(let D=j;D<d.length;D++)ye(d[D],p,y,k,E)},qe=d=>d.shapeFlag&6?qe(d.component.subTree):d.shapeFlag&128?d.suspense.next():h(d.anchor||d.el);let ot=!1;const Be=(d,p,y)=>{d==null?p._vnode&&ye(p._vnode,null,null,!0):w(p._vnode||null,d,p,null,null,null,y),ot||(ot=!0,ii(),si(),ot=!1),p._vnode=d},dt={p:w,um:ye,m:be,r:ze,mt:P,mc:b,pc:F,pbc:T,n:qe,o:e};let At,bt;return t&&([At,bt]=t(dt)),{render:Be,hydrate:At,createApp:Ba(Be,At)}}function Jo({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Ft({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ya(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ji(e,t,n=!1){const o=e.children,r=t.children;if(te(o)&&te(r))for(let i=0;i<o.length;i++){const s=o[i];let l=r[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[i]=Tt(r[i]),l.el=s.el),n||ji(s,l)),l.type===no&&(l.el=s.el)}}function Xa(e){const t=e.slice(),n=[0];let o,r,i,s,l;const a=e.length;for(o=0;o<a;o++){const c=e[o];if(c!==0){if(r=n[n.length-1],e[r]<c){t[o]=r,n.push(o);continue}for(i=0,s=n.length-1;i<s;)l=i+s>>1,e[n[l]]<c?i=l+1:s=l;c<e[n[i]]&&(i>0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}function Ri(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ri(t)}const Za=e=>e.__isTeleport,Se=Symbol.for("v-fgt"),no=Symbol.for("v-txt"),Je=Symbol.for("v-cmt"),er=Symbol.for("v-stc"),yn=[];let rt=null;function R(e=!1){yn.push(rt=e?null:[])}function Ga(){yn.pop(),rt=yn[yn.length-1]||null}let _n=1;function Di(e){_n+=e}function Bi(e){return e.dynamicChildren=_n>0?rt||Ye:null,Ga(),_n>0&&rt&&rt.push(e),e}function Y(e,t,n,o,r,i){return Bi(X(e,t,n,o,r,i,!0))}function me(e,t,n,o,r){return Bi(Q(e,t,n,o,r,!0))}function oo(e){return e?e.__v_isVNode===!0:!1}function Ht(e,t){return e.type===t.type&&e.key===t.key}const ro="__vInternal",Ni=({key:e})=>e??null,io=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?we(e)||Ce(e)||re(e)?{i:Te,r:e,k:t,f:!!n}:e:null);function X(e,t=null,n=null,o=0,r=null,i=e===Se?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ni(t),ref:t&&io(t),scopeId:ci,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Te};return l?(tr(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=we(n)?8:16),_n>0&&!s&&rt&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&rt.push(a),a}const Q=Qa;function Qa(e,t=null,n=null,o=0,r=null,i=!1){if((!e||e===fi)&&(e=Je),oo(e)){const l=It(e,t,!0);return n&&tr(l,n),_n>0&&!i&&rt&&(l.shapeFlag&6?rt[rt.indexOf(e)]=l:rt.push(l)),l.patchFlag|=-2,l}if(cc(e)&&(e=e.__vccOpts),t){t=Ja(t);let{class:l,style:a}=t;l&&!we(l)&&(t.class=Ie(l)),ge(a)&&(Qr(a)&&!te(a)&&(a=_e({},a)),t.style=Oe(a))}const s=we(e)?1:ha(e)?128:Za(e)?64:ge(e)?4:re(e)?2:0;return X(e,t,n,o,r,s,i,!0)}function Ja(e){return e?Qr(e)||ro in e?_e({},e):e:null}function It(e,t,n=!1){const{props:o,ref:r,patchFlag:i,children:s}=e,l=t?so(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Ni(l),ref:t&&t.ref?n&&r?te(r)?r.concat(io(t)):[r,io(t)]:io(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Se?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&It(e.ssContent),ssFallback:e.ssFallback&&It(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ct(e=" ",t=0){return Q(no,null,e,t)}function Ee(e="",t=!1){return t?(R(),me(Je,null,e)):Q(Je,null,e)}function at(e){return e==null||typeof e=="boolean"?Q(Je):te(e)?Q(Se,null,e.slice()):typeof e=="object"?Tt(e):Q(no,null,String(e))}function Tt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:It(e)}function tr(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(te(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),tr(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(ro in t)?t._ctx=Te:r===3&&Te&&(Te.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else re(t)?(t={default:t,_ctx:Te},n=32):(t=String(t),o&64?(n=16,t=[Ct(t)]):n=8);e.children=t,e.shapeFlag|=n}function so(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const r in o)if(r==="class")t.class!==o.class&&(t.class=Ie([t.class,o.class]));else if(r==="style")t.style=Oe([t.style,o.style]);else if(Mn(r)){const i=t[r],s=o[r];s&&i!==s&&!(te(i)&&i.includes(s))&&(t[r]=i?[].concat(i,s):s)}else r!==""&&(t[r]=o[r])}return t}function ct(e,t,n,o=null){Ze(e,t,7,[n,o])}const ec=Ci();let tc=0;function nc(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||ec,i={uid:tc++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new Sl(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ei(o,r),emitsOptions:ai(o,r),emit:null,emitted:null,propsDefaults:le,inheritAttrs:o.inheritAttrs,ctx:le,data:le,props:le,attrs:le,slots:le,refs:le,setupState:le,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=la.bind(null,i),e.ce&&e.ce(i),i}let Pe=null;const nr=()=>Pe||Te;let lo,or;{const e=xo(),t=(n,o)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(o),i=>{r.length>1?r.forEach(s=>s(i)):r[0](i)}};lo=t("__VUE_INSTANCE_SETTERS__",n=>Pe=n),or=t("__VUE_SSR_SETTERS__",n=>ao=n)}const wn=e=>{const t=Pe;return lo(e),e.scope.on(),()=>{e.scope.off(),lo(t)}},Vi=()=>{Pe&&Pe.scope.off(),lo(null)};function Fi(e){return e.vnode.shapeFlag&4}let ao=!1;function oc(e,t=!1){t&&or(t);const{props:n,children:o}=e.vnode,r=Fi(e);Na(e,n,r,t),Ha(e,o);const i=r?rc(e,t):void 0;return t&&or(!1),i}function rc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Jr(new Proxy(e.ctx,Oa));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?sc(e):null,i=wn(e);_t();const s=ht(o,e,0,[e.props,r]);if(wt(),i(),Ir(s)){if(s.then(Vi,Vi),t)return s.then(l=>{Hi(e,l,t)}).catch(l=>{Kn(l,e,0)});e.asyncDep=s}else Hi(e,s,t)}else Ki(e,t)}function Hi(e,t,n){re(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=ti(t)),Ki(e,n)}let Wi;function Ki(e,t,n){const o=e.type;if(!e.render){if(!t&&Wi&&!o.render){const r=o.template||Yo(e).template;if(r){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,c=_e(_e({isCustomElement:i,delimiters:l},s),a);o.render=Wi(r,c)}}e.render=o.render||Ve}{const r=wn(e);_t();try{La(e)}finally{wt(),r()}}}function ic(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Re(e,"get","$attrs"),t[n]}}))}function sc(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return ic(e)},slots:e.slots,emit:e.emit,expose:t}}function co(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ti(Jr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in vn)return vn[n](e)},has(t,n){return n in t||n in vn}}))}const lc=/(?:^|[-_])(\w)/g,ac=e=>e.replace(lc,t=>t.toUpperCase()).replace(/[-_]/g,"");function qi(e,t=!0){return re(e)?e.displayName||e.name:e.name||t&&e.__name}function Ui(e,t,n=!1){let o=qi(t);if(!o&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(o=r[1])}if(!o&&e&&e.parent){const r=i=>{for(const s in i)if(i[s]===t)return s};o=r(e.components||e.parent.type.components)||r(e.appContext.components)}return o?ac(o):n?"App":"Anonymous"}function cc(e){return re(e)&&"__vccOpts"in e}const se=(e,t)=>ql(e,t,ao);function xn(e,t,n=le){const o=nr(),r=je(t),i=Fe(t),s=Gl((a,c)=>{let u;return ba(()=>{const f=e[t];st(u,f)&&(u=f,c())}),{get(){return a(),n.get?n.get(u):u},set(f){const h=o.vnode.props;!(h&&(t in h||r in h||i in h)&&(`onUpdate:${t}`in h||`onUpdate:${r}`in h||`onUpdate:${i}`in h))&&st(f,u)&&(u=f,c()),o.emit(`update:${t}`,n.set?n.set(f):f)}}}),l=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return s[Symbol.iterator]=()=>{let a=0;return{next(){return a<2?{value:a++?e[l]||{}:s,done:!1}:{done:!0}}}},s}function Yi(e,t,n){const o=arguments.length;return o===2?ge(t)&&!te(t)?oo(t)?Q(e,null,[t]):Q(e,t):Q(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&oo(n)&&(n=[n]),Q(e,t,n))}const uc="3.4.15";/**
|
|
15
|
+
`,...oa(r)),console.warn(...i)}wt()}function na(){let e=fn[fn.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}function oa(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[`
|
|
16
|
+
`],...ra(n))}),t}function ra({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,r=` at <${qi(e.component,e.type,o)}`,i=">"+n;return e.props?[r,...ia(e.props),i]:[r+i]}function ia(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...ti(o,e[o]))}),n.length>3&&t.push(" ..."),t}function ti(e,t,n){return we(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Ce(t)?(t=ti(e,le(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):oe(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=le(t),n?t:[`${e}=`,t])}function gt(e,t,n,o){let r;try{r=o?e(...o):e()}catch(i){Kn(i,t,n)}return r}function Ze(e,t,n,o){if(oe(e)){const i=gt(e,t,n,o);return i&&kr(i)&&i.catch(s=>{Kn(s,t,n)}),i}const r=[];for(let i=0;i<e.length;i++)r.push(Ze(e[i],t,n,o));return r}function Kn(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let i=t.parent;const s=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const c=i.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,s,l)===!1)return}i=i.parent}const a=t.appContext.config.errorHandler;if(a){gt(a,null,10,[e,s,l]);return}}sa(e,n,r,o)}function sa(e,t,n,o=!0){console.error(e)}let pn=!1,Do=!1;const Pe=[];let at=0;const Jt=[];let St=null,jt=0;const ni=Promise.resolve();let Ro=null;function mt(e){const t=Ro||ni;return e?t.then(this?e.bind(this):e):t}function la(e){let t=at+1,n=Pe.length;for(;t<n;){const o=t+n>>>1,r=Pe[o],i=hn(r);i<e||i===e&&r.pre?t=o+1:n=o}return t}function Bo(e){(!Pe.length||!Pe.includes(e,pn&&e.allowRecurse?at+1:at))&&(e.id==null?Pe.push(e):Pe.splice(la(e.id),0,e),oi())}function oi(){!pn&&!Do&&(Do=!0,Ro=ni.then(si))}function aa(e){const t=Pe.indexOf(e);t>at&&Pe.splice(t,1)}function ca(e){ee(e)?Jt.push(...e):(!St||!St.includes(e,e.allowRecurse?jt+1:jt))&&Jt.push(e),oi()}function ri(e,t,n=pn?at+1:0){for(;n<Pe.length;n++){const o=Pe[n];if(o&&o.pre){if(e&&o.id!==e.uid)continue;Pe.splice(n,1),n--,o()}}}function ii(e){if(Jt.length){const t=[...new Set(Jt)].sort((n,o)=>hn(n)-hn(o));if(Jt.length=0,St){St.push(...t);return}for(St=t,jt=0;jt<St.length;jt++)St[jt]();St=null,jt=0}}const hn=e=>e.id==null?1/0:e.id,ua=(e,t)=>{const n=hn(e)-hn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function si(e){Do=!1,pn=!0,Pe.sort(ua);const t=Ve;try{for(at=0;at<Pe.length;at++){const n=Pe[at];n&&n.active!==!1&>(n,null,14)}}finally{at=0,Pe.length=0,ii(),pn=!1,Ro=null,(Pe.length||Jt.length)&&si()}}function da(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||se;let r=n;const i=t.startsWith("update:"),s=i&&t.slice(7);if(s&&s in o){const u=`${s==="modelValue"?"model":s}Modifiers`,{number:p,trim:f}=o[u]||se;f&&(r=n.map(b=>we(b)?b.trim():b)),p&&(r=n.map(wo))}let l,a=o[l=_o(t)]||o[l=_o(je(t))];!a&&i&&(a=o[l=_o(Fe(t))]),a&&Ze(a,e,6,r);const c=o[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ze(c,e,6,r)}}function li(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const i=e.emits;let s={},l=!1;if(!oe(e)){const a=c=>{const u=li(c,t,!0);u&&(l=!0,_e(s,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(ge(e)&&o.set(e,null),null):(ee(i)?i.forEach(a=>s[a]=null):_e(s,i),ge(e)&&o.set(e,s),s)}function qn(e,t){return!e||!Pn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ce(e,t[0].toLowerCase()+t.slice(1))||ce(e,Fe(t))||ce(e,t))}let Te=null,ai=null;function Un(e){const t=Te;return Te=e,ai=e&&e.type.__scopeId||null,t}function re(e,t=Te,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Di(-1);const i=Un(t);let s;try{s=e(...r)}finally{Un(i),o._d&&Di(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function Kp(){}function No(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:i,propsOptions:[s],slots:l,attrs:a,emit:c,render:u,renderCache:p,data:f,setupState:b,ctx:k,inheritAttrs:S}=e;let D,P;const K=Un(e);try{if(n.shapeFlag&4){const N=r||o,_=N;D=ct(u.call(_,N,p,i,b,f,k)),P=a}else{const N=t;D=ct(N.length>1?N(i,{attrs:a,slots:l,emit:c}):N(i,null)),P=t.props?a:fa(a)}}catch(N){yn.length=0,Kn(N,e,1),D=J(Je)}let L=D;if(P&&S!==!1){const N=Object.keys(P),{shapeFlag:_}=L;N.length&&_&7&&(s&&N.some(vo)&&(P=pa(P,s)),L=It(L,P))}return n.dirs&&(L=It(L),L.dirs=L.dirs?L.dirs.concat(n.dirs):n.dirs),n.transition&&(L.transition=n.transition),D=L,Un(K),D}const fa=e=>{let t;for(const n in e)(n==="class"||n==="style"||Pn(n))&&((t||(t={}))[n]=e[n]);return t},pa=(e,t)=>{const n={};for(const o in e)(!vo(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function ha(e,t,n){const{props:o,children:r,component:i}=e,{props:s,children:l,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return o?ci(o,s,c):!!s;if(a&8){const u=t.dynamicProps;for(let p=0;p<u.length;p++){const f=u[p];if(s[f]!==o[f]&&!qn(c,f))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:o===s?!1:o?s?ci(o,s,c):!0:!!s;return!1}function ci(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const i=o[r];if(t[i]!==e[i]&&!qn(n,i))return!0}return!1}function ga({vnode:e,parent:t},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o===e)(e=t.vnode).el=n,t=t.parent;else break}}const ui="components",di=Symbol.for("v-ndc");function ma(e){return we(e)?va(ui,e,!1)||e:e||di}function va(e,t,n=!0,o=!1){const r=Te||Me;if(r){const i=r.type;if(e===ui){const l=Ki(i,!1);if(l&&(l===t||l===je(t)||l===zn(je(t))))return i}const s=fi(r[e]||i[e],t)||fi(r.appContext[e],t);return!s&&o?i:s}}function fi(e,t){return e&&(e[t]||e[je(t)]||e[zn(je(t))])}const ba=e=>e.__isSuspense;function ya(e,t){t&&t.pendingBranch?ee(e)?t.effects.push(...e):t.effects.push(e):ca(e)}const _a=Symbol.for("v-scx"),wa=()=>Nt(_a);function xa(e,t){return Vo(e,null,{flush:"sync"})}const Yn={};function fe(e,t,n){return Vo(e,t,n)}function Vo(e,t,{immediate:n,deep:o,flush:r,once:i,onTrack:s,onTrigger:l}=se){if(t&&i){const x=t;t=(...F)=>{x(...F),_()}}const a=Me,c=x=>o===!0?x:Dt(x,o===!1?1:void 0);let u,p=!1,f=!1;if(Ce(e)?(u=()=>e.value,p=Wn(e)):Gt(e)?(u=()=>c(e),p=!0):ee(e)?(f=!0,p=e.some(x=>Gt(x)||Wn(x)),u=()=>e.map(x=>{if(Ce(x))return x.value;if(Gt(x))return c(x);if(oe(x))return gt(x,a,2)})):oe(e)?t?u=()=>gt(e,a,2):u=()=>(b&&b(),Ze(e,a,3,[k])):u=Ve,t&&o){const x=u;u=()=>Dt(x())}let b,k=x=>{b=L.onStop=()=>{gt(x,a,4),b=L.onStop=void 0}},S;if(co)if(k=Ve,t?n&&Ze(t,a,3,[u(),f?[]:void 0,k]):u(),r==="sync"){const x=wa();S=x.__watcherHandles||(x.__watcherHandles=[])}else return Ve;let D=f?new Array(e.length).fill(Yn):Yn;const P=()=>{if(!(!L.active||!L.dirty))if(t){const x=L.run();(o||p||(f?x.some((F,g)=>lt(F,D[g])):lt(x,D)))&&(b&&b(),Ze(t,a,3,[x,D===Yn?void 0:f&&D[0]===Yn?[]:D,k]),D=x)}else L.run()};P.allowRecurse=!!t;let K;r==="sync"?K=P:r==="post"?K=()=>Re(P,a&&a.suspense):(P.pre=!0,a&&(P.id=a.uid),K=()=>Bo(P));const L=new Io(u,Ve,K),N=Mr(),_=()=>{L.stop(),N&&bo(N.effects,L)};return t?n?P():D=L.run():r==="post"?Re(L.run.bind(L),a&&a.suspense):L.run(),S&&S.push(_),_}function Sa(e,t,n){const o=this.proxy,r=we(e)?e.includes(".")?pi(o,e):()=>o[e]:e.bind(o,o);let i;oe(t)?i=t:(i=t.handler,n=t);const s=wn(this),l=Vo(r,i.bind(o),n);return s(),l}function pi(e,t){const n=t.split(".");return()=>{let o=e;for(let r=0;r<n.length&&o;r++)o=o[n[r]];return o}}function Dt(e,t,n=0,o){if(!ge(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(o=o||new Set,o.has(e))return e;if(o.add(e),Ce(e))Dt(e.value,t,n,o);else if(ee(e))for(let r=0;r<e.length;r++)Dt(e[r],t,n,o);else if(Sr(e)||Xt(e))e.forEach(r=>{Dt(r,t,n,o)});else if(Cr(e))for(const r in e)Dt(e[r],t,n,o);return e}function vt(e,t){if(Te===null)return e;const n=uo(Te)||Te.proxy,o=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,s,l,a=se]=t[r];i&&(oe(i)&&(i={mounted:i,updated:i}),i.deep&&Dt(s),o.push({dir:i,instance:n,value:s,oldValue:void 0,arg:l,modifiers:a}))}return e}function Rt(e,t,n,o){const r=e.dirs,i=t&&t.dirs;for(let s=0;s<r.length;s++){const l=r[s];i&&(l.oldValue=i[s].value);let a=l.dir[o];a&&(_t(),Ze(a,n,8,[e.el,l,e,t]),wt())}}const kt=Symbol("_leaveCb"),Xn=Symbol("_enterCb");function ka(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Qe(()=>{e.isMounted=!0}),Ko(()=>{e.isUnmounting=!0}),e}const Ge=[Function,Array],hi={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ge,onEnter:Ge,onAfterEnter:Ge,onEnterCancelled:Ge,onBeforeLeave:Ge,onLeave:Ge,onAfterLeave:Ge,onLeaveCancelled:Ge,onBeforeAppear:Ge,onAppear:Ge,onAfterAppear:Ge,onAppearCancelled:Ge},Ia={name:"BaseTransition",props:hi,setup(e,{slots:t}){const n=nr(),o=ka();let r;return()=>{const i=t.default&&vi(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){for(const S of i)if(S.type!==Je){s=S;break}}const l=le(e),{mode:a}=l;if(o.isLeaving)return Ho(s);const c=mi(s);if(!c)return Ho(s);const u=Fo(c,l,o,n);Wo(c,u);const p=n.subTree,f=p&&mi(p);let b=!1;const{getTransitionKey:k}=c.type;if(k){const S=k();r===void 0?r=S:S!==r&&(r=S,b=!0)}if(f&&f.type!==Je&&(!Ft(c,f)||b)){const S=Fo(f,l,o,n);if(Wo(f,S),a==="out-in")return o.isLeaving=!0,S.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Ho(s);a==="in-out"&&c.type!==Je&&(S.delayLeave=(D,P,K)=>{const L=gi(o,f);L[String(f.key)]=f,D[kt]=()=>{P(),D[kt]=void 0,delete u.delayedLeave},u.delayedLeave=K})}return s}}};function gi(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Fo(e,t,n,o){const{appear:r,mode:i,persisted:s=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:p,onLeave:f,onAfterLeave:b,onLeaveCancelled:k,onBeforeAppear:S,onAppear:D,onAfterAppear:P,onAppearCancelled:K}=t,L=String(e.key),N=gi(n,e),_=(g,m)=>{g&&Ze(g,o,9,m)},x=(g,m)=>{const T=m[1];_(g,m),ee(g)?g.every(U=>U.length<=1)&&T():g.length<=1&&T()},F={mode:i,persisted:s,beforeEnter(g){let m=l;if(!n.isMounted)if(r)m=S||l;else return;g[kt]&&g[kt](!0);const T=N[L];T&&Ft(e,T)&&T.el[kt]&&T.el[kt](),_(m,[g])},enter(g){let m=a,T=c,U=u;if(!n.isMounted)if(r)m=D||a,T=P||c,U=K||u;else return;let R=!1;const ne=g[Xn]=E=>{R||(R=!0,E?_(U,[g]):_(T,[g]),F.delayedLeave&&F.delayedLeave(),g[Xn]=void 0)};m?x(m,[g,ne]):ne()},leave(g,m){const T=String(e.key);if(g[Xn]&&g[Xn](!0),n.isUnmounting)return m();_(p,[g]);let U=!1;const R=g[kt]=ne=>{U||(U=!0,m(),ne?_(k,[g]):_(b,[g]),g[kt]=void 0,N[T]===e&&delete N[T])};N[T]=e,f?x(f,[g,R]):R()},clone(g){return Fo(g,t,n,o)}};return F}function Ho(e){if(Zn(e))return e=It(e),e.children=null,e}function mi(e){return Zn(e)?e.children?e.children[0]:void 0:e}function Wo(e,t){e.shapeFlag&6&&e.component?Wo(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function vi(e,t=!1,n){let o=[],r=0;for(let i=0;i<e.length;i++){let s=e[i];const l=n==null?s.key:String(n)+String(s.key!=null?s.key:i);s.type===ke?(s.patchFlag&128&&r++,o=o.concat(vi(s.children,t,l))):(t||s.type!==Je)&&o.push(l!=null?It(s,{key:l}):s)}if(r>1)for(let i=0;i<o.length;i++)o[i].patchFlag=-2;return o}/*! #__NO_SIDE_EFFECTS__ */function xe(e,t){return oe(e)?(()=>_e({name:e.name},t,{setup:e}))():e}const gn=e=>!!e.type.__asyncLoader,Zn=e=>e.type.__isKeepAlive;function Ca(e,t){bi(e,"a",t)}function Ta(e,t){bi(e,"da",t)}function bi(e,t,n=Me){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Gn(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Zn(r.parent.vnode)&&Ea(o,t,n,r),r=r.parent}}function Ea(e,t,n,o){const r=Gn(t,e,o,!0);Bt(()=>{bo(o[t],r)},n)}function Gn(e,t,n=Me,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;_t();const l=wn(n),a=Ze(t,n,e,s);return l(),wt(),a});return o?r.unshift(i):r.push(i),i}}const bt=e=>(t,n=Me)=>(!co||e==="sp")&&Gn(e,(...o)=>t(...o),n),$a=bt("bm"),Qe=bt("m"),Ma=bt("bu"),Pa=bt("u"),Ko=bt("bum"),Bt=bt("um"),Oa=bt("sp"),La=bt("rtg"),Aa=bt("rtc");function za(e,t=Me){Gn("ec",e,t)}function mn(e,t,n,o){let r;const i=n&&n[o];if(ee(e)||we(e)){r=new Array(e.length);for(let s=0,l=e.length;s<l;s++)r[s]=t(e[s],s,void 0,i&&i[s])}else if(typeof e=="number"){r=new Array(e);for(let s=0;s<e;s++)r[s]=t(s+1,s,void 0,i&&i[s])}else if(ge(e))if(e[Symbol.iterator])r=Array.from(e,(s,l)=>t(s,l,void 0,i&&i[l]));else{const s=Object.keys(e);r=new Array(s.length);for(let l=0,a=s.length;l<a;l++){const c=s[l];r[l]=t(e[c],c,l,i&&i[l])}}else r=[];return n&&(n[o]=r),r}function yi(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(ee(o))for(let r=0;r<o.length;r++)e[o[r].name]=o[r].fn;else o&&(e[o.name]=o.key?(...r)=>{const i=o.fn(...r);return i&&(i.key=o.key),i}:o.fn)}return e}function Se(e,t,n={},o,r){if(Te.isCE||Te.parent&&gn(Te.parent)&&Te.parent.isCE)return t!=="default"&&(n.name=t),J("slot",n,o&&o());let i=e[t];i&&i._c&&(i._d=!1),A();const s=i&&_i(i(n)),l=he(ke,{key:n.key||s&&s.key||`_${t}`},s||(o?o():[]),s&&e._===1?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function _i(e){return e.some(t=>ro(t)?!(t.type===Je||t.type===ke&&!_i(t.children)):!0)?e:null}const qo=e=>e?Vi(e)?uo(e)||e.proxy:qo(e.parent):null,vn=_e(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>qo(e.parent),$root:e=>qo(e.root),$emit:e=>e.emit,$options:e=>Xo(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Bo(e.update)}),$nextTick:e=>e.n||(e.n=mt.bind(e.proxy)),$watch:e=>Sa.bind(e)}),Uo=(e,t)=>e!==se&&!e.__isScriptSetup&&ce(e,t),ja={get({_:e},t){const{ctx:n,setupState:o,data:r,props:i,accessCache:s,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const b=s[t];if(b!==void 0)switch(b){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(Uo(o,t))return s[t]=1,o[t];if(r!==se&&ce(r,t))return s[t]=2,r[t];if((c=e.propsOptions[0])&&ce(c,t))return s[t]=3,i[t];if(n!==se&&ce(n,t))return s[t]=4,n[t];Yo&&(s[t]=0)}}const u=vn[t];let p,f;if(u)return t==="$attrs"&&De(e,"get",t),u(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(n!==se&&ce(n,t))return s[t]=4,n[t];if(f=a.config.globalProperties,ce(f,t))return f[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return Uo(r,t)?(r[t]=n,!0):o!==se&&ce(o,t)?(o[t]=n,!0):ce(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:i}},s){let l;return!!n[s]||e!==se&&ce(e,s)||Uo(t,s)||(l=i[0])&&ce(l,s)||ce(o,s)||ce(vn,s)||ce(r.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ce(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Qn(e){return ee(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function en(e,t){return!e||!t?e||t:ee(e)&&ee(t)?e.concat(t):_e({},Qn(e),Qn(t))}let Yo=!0;function Da(e){const t=Xo(e),n=e.proxy,o=e.ctx;Yo=!1,t.beforeCreate&&wi(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:s,watch:l,provide:a,inject:c,created:u,beforeMount:p,mounted:f,beforeUpdate:b,updated:k,activated:S,deactivated:D,beforeDestroy:P,beforeUnmount:K,destroyed:L,unmounted:N,render:_,renderTracked:x,renderTriggered:F,errorCaptured:g,serverPrefetch:m,expose:T,inheritAttrs:U,components:R,directives:ne,filters:E}=t;if(c&&Ra(c,o,null),s)for(const O in s){const V=s[O];oe(V)&&(o[O]=V.bind(n))}if(r){const O=r.call(n,n);ge(O)&&(e.data=cn(O))}if(Yo=!0,i)for(const O in i){const V=i[O],ae=oe(V)?V.bind(n,n):oe(V.get)?V.get.bind(n,n):Ve,de=!oe(V)&&oe(V.set)?V.set.bind(n):Ve,be=ie({get:ae,set:de});Object.defineProperty(o,O,{enumerable:!0,configurable:!0,get:()=>be.value,set:ye=>be.value=ye})}if(l)for(const O in l)xi(l[O],o,n,O);if(a){const O=oe(a)?a.call(n):a;Reflect.ownKeys(O).forEach(V=>{to(V,O[V])})}u&&wi(u,e,"c");function q(O,V){ee(V)?V.forEach(ae=>O(ae.bind(n))):V&&O(V.bind(n))}if(q($a,p),q(Qe,f),q(Ma,b),q(Pa,k),q(Ca,S),q(Ta,D),q(za,g),q(Aa,x),q(La,F),q(Ko,K),q(Bt,N),q(Oa,m),ee(T))if(T.length){const O=e.exposed||(e.exposed={});T.forEach(V=>{Object.defineProperty(O,V,{get:()=>n[V],set:ae=>n[V]=ae})})}else e.exposed||(e.exposed={});_&&e.render===Ve&&(e.render=_),U!=null&&(e.inheritAttrs=U),R&&(e.components=R),ne&&(e.directives=ne)}function Ra(e,t,n=Ve){ee(e)&&(e=Zo(e));for(const o in e){const r=e[o];let i;ge(r)?"default"in r?i=Nt(r.from||o,r.default,!0):i=Nt(r.from||o):i=Nt(r),Ce(i)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[o]=i}}function wi(e,t,n){Ze(ee(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function xi(e,t,n,o){const r=o.includes(".")?pi(n,o):()=>n[o];if(we(e)){const i=t[e];oe(i)&&fe(r,i)}else if(oe(e))fe(r,e.bind(n));else if(ge(e))if(ee(e))e.forEach(i=>xi(i,t,n,o));else{const i=oe(e.handler)?e.handler.bind(n):t[e.handler];oe(i)&&fe(r,i,e)}}function Xo(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,l=i.get(t);let a;return l?a=l:!r.length&&!n&&!o?a=t:(a={},r.length&&r.forEach(c=>Jn(a,c,s,!0)),Jn(a,t,s)),ge(t)&&i.set(t,a),a}function Jn(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&Jn(e,i,n,!0),r&&r.forEach(s=>Jn(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const l=Ba[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const Ba={data:Si,props:ki,emits:ki,methods:bn,computed:bn,beforeCreate:Le,created:Le,beforeMount:Le,mounted:Le,beforeUpdate:Le,updated:Le,beforeDestroy:Le,beforeUnmount:Le,destroyed:Le,unmounted:Le,activated:Le,deactivated:Le,errorCaptured:Le,serverPrefetch:Le,components:bn,directives:bn,watch:Va,provide:Si,inject:Na};function Si(e,t){return t?e?function(){return _e(oe(e)?e.call(this,this):e,oe(t)?t.call(this,this):t)}:t:e}function Na(e,t){return bn(Zo(e),Zo(t))}function Zo(e){if(ee(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Le(e,t){return e?[...new Set([].concat(e,t))]:t}function bn(e,t){return e?_e(Object.create(null),e,t):t}function ki(e,t){return e?ee(e)&&ee(t)?[...new Set([...e,...t])]:_e(Object.create(null),Qn(e),Qn(t??{})):t}function Va(e,t){if(!e)return t;if(!t)return e;const n=_e(Object.create(null),e);for(const o in t)n[o]=Le(e[o],t[o]);return n}function Ii(){return{app:null,config:{isNativeTag:vl,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Fa=0;function Ha(e,t){return function(o,r=null){oe(o)||(o=_e({},o)),r!=null&&!ge(r)&&(r=null);const i=Ii(),s=new WeakSet;let l=!1;const a=i.app={_uid:Fa++,_component:o,_props:r,_container:null,_context:i,_instance:null,version:gc,get config(){return i.config},set config(c){},use(c,...u){return s.has(c)||(c&&oe(c.install)?(s.add(c),c.install(a,...u)):oe(c)&&(s.add(c),c(a,...u))),a},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),a},component(c,u){return u?(i.components[c]=u,a):i.components[c]},directive(c,u){return u?(i.directives[c]=u,a):i.directives[c]},mount(c,u,p){if(!l){const f=J(o,r);return f.appContext=i,p===!0?p="svg":p===!1&&(p=void 0),u&&t?t(f,c):e(f,c,p),l=!0,a._container=c,c.__vue_app__=a,uo(f.component)||f.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,u){return i.provides[c]=u,a},runWithContext(c){eo=a;try{return c()}finally{eo=null}}};return a}}let eo=null;function to(e,t){if(Me){let n=Me.provides;const o=Me.parent&&Me.parent.provides;o===n&&(n=Me.provides=Object.create(o)),n[e]=t}}function Nt(e,t,n=!1){const o=Me||Te;if(o||eo){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:eo._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&oe(t)?t.call(o&&o.proxy):t}}function Wa(e,t,n,o=!1){const r={},i={};Dn(i,io,1),e.propsDefaults=Object.create(null),Ci(e,t,r,i);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);n?e.props=o?r:Xl(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function Ka(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,l=le(r),[a]=e.propsOptions;let c=!1;if((o||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let p=0;p<u.length;p++){let f=u[p];if(qn(e.emitsOptions,f))continue;const b=t[f];if(a)if(ce(i,f))b!==i[f]&&(i[f]=b,c=!0);else{const k=je(f);r[k]=Go(a,l,k,b,e,!1)}else b!==i[f]&&(i[f]=b,c=!0)}}}else{Ci(e,t,r,i)&&(c=!0);let u;for(const p in l)(!t||!ce(t,p)&&((u=Fe(p))===p||!ce(t,u)))&&(a?n&&(n[p]!==void 0||n[u]!==void 0)&&(r[p]=Go(a,l,p,void 0,e,!0)):delete r[p]);if(i!==l)for(const p in i)(!t||!ce(t,p))&&(delete i[p],c=!0)}c&&ht(e,"set","$attrs")}function Ci(e,t,n,o){const[r,i]=e.propsOptions;let s=!1,l;if(t)for(let a in t){if(Ln(a))continue;const c=t[a];let u;r&&ce(r,u=je(a))?!i||!i.includes(u)?n[u]=c:(l||(l={}))[u]=c:qn(e.emitsOptions,a)||(!(a in o)||c!==o[a])&&(o[a]=c,s=!0)}if(i){const a=le(n),c=l||se;for(let u=0;u<i.length;u++){const p=i[u];n[p]=Go(r,a,p,c[p],e,!ce(c,p))}}return s}function Go(e,t,n,o,r,i){const s=e[n];if(s!=null){const l=ce(s,"default");if(l&&o===void 0){const a=s.default;if(s.type!==Function&&!s.skipFactory&&oe(a)){const{propsDefaults:c}=r;if(n in c)o=c[n];else{const u=wn(r);o=c[n]=a.call(null,t),u()}}else o=a}s[0]&&(i&&!l?o=!1:s[1]&&(o===""||o===Fe(n))&&(o=!0))}return o}function Ti(e,t,n=!1){const o=t.propsCache,r=o.get(e);if(r)return r;const i=e.props,s={},l=[];let a=!1;if(!oe(e)){const u=p=>{a=!0;const[f,b]=Ti(p,t,!0);_e(s,f),b&&l.push(...b)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!a)return ge(e)&&o.set(e,Ye),Ye;if(ee(i))for(let u=0;u<i.length;u++){const p=je(i[u]);Ei(p)&&(s[p]=se)}else if(i)for(const u in i){const p=je(u);if(Ei(p)){const f=i[u],b=s[p]=ee(f)||oe(f)?{type:f}:_e({},f);if(b){const k=Pi(Boolean,b.type),S=Pi(String,b.type);b[0]=k>-1,b[1]=S<0||k<S,(k>-1||ce(b,"default"))&&l.push(p)}}}const c=[s,l];return ge(e)&&o.set(e,c),c}function Ei(e){return e[0]!=="$"}function $i(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Mi(e,t){return $i(e)===$i(t)}function Pi(e,t){return ee(t)?t.findIndex(n=>Mi(n,e)):oe(t)&&Mi(t,e)?0:-1}const Oi=e=>e[0]==="_"||e==="$stable",Qo=e=>ee(e)?e.map(ct):[ct(e)],qa=(e,t,n)=>{if(t._n)return t;const o=re((...r)=>Qo(t(...r)),n);return o._c=!1,o},Li=(e,t,n)=>{const o=e._ctx;for(const r in e){if(Oi(r))continue;const i=e[r];if(oe(i))t[r]=qa(r,i,o);else if(i!=null){const s=Qo(i);t[r]=()=>s}}},Ai=(e,t)=>{const n=Qo(t);e.slots.default=()=>n},Ua=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=le(t),Dn(t,"_",n)):Li(t,e.slots={})}else e.slots={},t&&Ai(e,t);Dn(e.slots,io,1)},Ya=(e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,s=se;if(o.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(_e(r,t),!n&&l===1&&delete r._):(i=!t.$stable,Li(t,r)),s=t}else t&&(Ai(e,t),s={default:1});if(i)for(const l in r)!Oi(l)&&s[l]==null&&delete r[l]};function Jo(e,t,n,o,r=!1){if(ee(e)){e.forEach((f,b)=>Jo(f,t&&(ee(t)?t[b]:t),n,o,r));return}if(gn(o)&&!r)return;const i=o.shapeFlag&4?uo(o.component)||o.component.proxy:o.el,s=r?null:i,{i:l,r:a}=e,c=t&&t.r,u=l.refs===se?l.refs={}:l.refs,p=l.setupState;if(c!=null&&c!==a&&(we(c)?(u[c]=null,ce(p,c)&&(p[c]=null)):Ce(c)&&(c.value=null)),oe(a))gt(a,l,12,[s,u]);else{const f=we(a),b=Ce(a),k=e.f;if(f||b){const S=()=>{if(k){const D=f?ce(p,a)?p[a]:u[a]:a.value;r?ee(D)&&bo(D,i):ee(D)?D.includes(i)||D.push(i):f?(u[a]=[i],ce(p,a)&&(p[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else f?(u[a]=s,ce(p,a)&&(p[a]=s)):b&&(a.value=s,e.k&&(u[e.k]=s))};r||k?S():(S.id=-1,Re(S,n))}}}function Xa(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(So().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Re=ya;function Za(e){return Ga(e)}function Ga(e,t){Xa();const n=So();n.__VUE__=!0;const{insert:o,remove:r,patchProp:i,createElement:s,createText:l,createComment:a,setText:c,setElementText:u,parentNode:p,nextSibling:f,setScopeId:b=Ve,insertStaticContent:k}=e,S=(d,h,y,I=null,C=null,M=null,B=void 0,z=null,j=!!h.dynamicChildren)=>{if(d===h)return;d&&!Ft(d,h)&&(I=qe(d),ye(d,C,M,!0),d=null),h.patchFlag===-2&&(j=!1,h.dynamicChildren=null);const{type:$,ref:H,shapeFlag:v}=h;switch($){case no:D(d,h,y,I);break;case Je:P(d,h,y,I);break;case oo:d==null&&K(h,y,I,B);break;case ke:R(d,h,y,I,C,M,B,z,j);break;default:v&1?_(d,h,y,I,C,M,B,z,j):v&6?ne(d,h,y,I,C,M,B,z,j):(v&64||v&128)&&$.process(d,h,y,I,C,M,B,z,j,ft)}H!=null&&C&&Jo(H,d&&d.ref,M,h||d,!h)},D=(d,h,y,I)=>{if(d==null)o(h.el=l(h.children),y,I);else{const C=h.el=d.el;h.children!==d.children&&c(C,h.children)}},P=(d,h,y,I)=>{d==null?o(h.el=a(h.children||""),y,I):h.el=d.el},K=(d,h,y,I)=>{[d.el,d.anchor]=k(d.children,h,y,I,d.el,d.anchor)},L=({el:d,anchor:h},y,I)=>{let C;for(;d&&d!==h;)C=f(d),o(d,y,I),d=C;o(h,y,I)},N=({el:d,anchor:h})=>{let y;for(;d&&d!==h;)y=f(d),r(d),d=y;r(h)},_=(d,h,y,I,C,M,B,z,j)=>{h.type==="svg"?B="svg":h.type==="math"&&(B="mathml"),d==null?x(h,y,I,C,M,B,z,j):m(d,h,C,M,B,z,j)},x=(d,h,y,I,C,M,B,z)=>{let j,$;const{props:H,shapeFlag:v,transition:w,dirs:W}=d;if(j=d.el=s(d.type,M,H&&H.is,H),v&8?u(j,d.children):v&16&&g(d.children,j,null,I,C,er(d,M),B,z),W&&Rt(d,null,I,"created"),F(j,d,d.scopeId,B,I),H){for(const ue in H)ue!=="value"&&!Ln(ue)&&i(j,ue,null,H[ue],M,d.children,I,C,Ke);"value"in H&&i(j,"value",null,H.value,M),($=H.onVnodeBeforeMount)&&ut($,I,d)}W&&Rt(d,null,I,"beforeMount");const X=Qa(C,w);X&&w.beforeEnter(j),o(j,h,y),(($=H&&H.onVnodeMounted)||X||W)&&Re(()=>{$&&ut($,I,d),X&&w.enter(j),W&&Rt(d,null,I,"mounted")},C)},F=(d,h,y,I,C)=>{if(y&&b(d,y),I)for(let M=0;M<I.length;M++)b(d,I[M]);if(C){let M=C.subTree;if(h===M){const B=C.vnode;F(d,B,B.scopeId,B.slotScopeIds,C.parent)}}},g=(d,h,y,I,C,M,B,z,j=0)=>{for(let $=j;$<d.length;$++){const H=d[$]=z?Tt(d[$]):ct(d[$]);S(null,H,h,y,I,C,M,B,z)}},m=(d,h,y,I,C,M,B)=>{const z=h.el=d.el;let{patchFlag:j,dynamicChildren:$,dirs:H}=h;j|=d.patchFlag&16;const v=d.props||se,w=h.props||se;let W;if(y&&Vt(y,!1),(W=w.onVnodeBeforeUpdate)&&ut(W,y,h,d),H&&Rt(h,d,y,"beforeUpdate"),y&&Vt(y,!0),$?T(d.dynamicChildren,$,z,y,I,er(h,C),M):B||V(d,h,z,null,y,I,er(h,C),M,!1),j>0){if(j&16)U(z,h,v,w,y,I,C);else if(j&2&&v.class!==w.class&&i(z,"class",null,w.class,C),j&4&&i(z,"style",v.style,w.style,C),j&8){const X=h.dynamicProps;for(let ue=0;ue<X.length;ue++){const me=X[ue],$e=v[me],st=w[me];(st!==$e||me==="value")&&i(z,me,$e,st,C,d.children,y,I,Ke)}}j&1&&d.children!==h.children&&u(z,h.children)}else!B&&$==null&&U(z,h,v,w,y,I,C);((W=w.onVnodeUpdated)||H)&&Re(()=>{W&&ut(W,y,h,d),H&&Rt(h,d,y,"updated")},I)},T=(d,h,y,I,C,M,B)=>{for(let z=0;z<h.length;z++){const j=d[z],$=h[z],H=j.el&&(j.type===ke||!Ft(j,$)||j.shapeFlag&70)?p(j.el):y;S(j,$,H,null,I,C,M,B,!0)}},U=(d,h,y,I,C,M,B)=>{if(y!==I){if(y!==se)for(const z in y)!Ln(z)&&!(z in I)&&i(d,z,y[z],null,B,h.children,C,M,Ke);for(const z in I){if(Ln(z))continue;const j=I[z],$=y[z];j!==$&&z!=="value"&&i(d,z,$,j,B,h.children,C,M,Ke)}"value"in I&&i(d,"value",y.value,I.value,B)}},R=(d,h,y,I,C,M,B,z,j)=>{const $=h.el=d?d.el:l(""),H=h.anchor=d?d.anchor:l("");let{patchFlag:v,dynamicChildren:w,slotScopeIds:W}=h;W&&(z=z?z.concat(W):W),d==null?(o($,y,I),o(H,y,I),g(h.children||[],y,H,C,M,B,z,j)):v>0&&v&64&&w&&d.dynamicChildren?(T(d.dynamicChildren,w,y,C,M,B,z),(h.key!=null||C&&h===C.subTree)&&zi(d,h,!0)):V(d,h,y,H,C,M,B,z,j)},ne=(d,h,y,I,C,M,B,z,j)=>{h.slotScopeIds=z,d==null?h.shapeFlag&512?C.ctx.activate(h,y,I,B,j):E(h,y,I,C,M,B,j):te(d,h,j)},E=(d,h,y,I,C,M,B)=>{const z=d.component=lc(d,I,C);if(Zn(d)&&(z.ctx.renderer=ft),ac(z),z.asyncDep){if(C&&C.registerDep(z,q),!d.el){const j=z.subTree=J(Je);P(null,j,h,y)}}else q(z,d,h,y,C,M,B)},te=(d,h,y)=>{const I=h.component=d.component;if(ha(d,h,y))if(I.asyncDep&&!I.asyncResolved){O(I,h,y);return}else I.next=h,aa(I.update),I.effect.dirty=!0,I.update();else h.el=d.el,I.vnode=h},q=(d,h,y,I,C,M,B)=>{const z=()=>{if(d.isMounted){let{next:H,bu:v,u:w,parent:W,vnode:X}=d;{const an=ji(d);if(an){H&&(H.el=X.el,O(d,H,B)),an.asyncDep.then(()=>{d.isUnmounted||z()});return}}let ue=H,me;Vt(d,!1),H?(H.el=X.el,O(d,H,B)):H=X,v&&jn(v),(me=H.props&&H.props.onVnodeBeforeUpdate)&&ut(me,W,H,X),Vt(d,!0);const $e=No(d),st=d.subTree;d.subTree=$e,S(st,$e,p(st.el),qe(st),d,C,M),H.el=$e.el,ue===null&&ga(d,$e.el),w&&Re(w,C),(me=H.props&&H.props.onVnodeUpdated)&&Re(()=>ut(me,W,H,X),C)}else{let H;const{el:v,props:w}=h,{bm:W,m:X,parent:ue}=d,me=gn(h);if(Vt(d,!1),W&&jn(W),!me&&(H=w&&w.onVnodeBeforeMount)&&ut(H,ue,h),Vt(d,!0),v&&$n){const $e=()=>{d.subTree=No(d),$n(v,d.subTree,d,C,null)};me?h.type.__asyncLoader().then(()=>!d.isUnmounted&&$e()):$e()}else{const $e=d.subTree=No(d);S(null,$e,y,I,d,C,M),h.el=$e.el}if(X&&Re(X,C),!me&&(H=w&&w.onVnodeMounted)){const $e=h;Re(()=>ut(H,ue,$e),C)}(h.shapeFlag&256||ue&&gn(ue.vnode)&&ue.vnode.shapeFlag&256)&&d.a&&Re(d.a,C),d.isMounted=!0,h=y=I=null}},j=d.effect=new Io(z,Ve,()=>Bo($),d.scope),$=d.update=()=>{j.dirty&&j.run()};$.id=d.uid,Vt(d,!0),$()},O=(d,h,y)=>{h.component=d;const I=d.vnode.props;d.vnode=h,d.next=null,Ka(d,h.props,I,y),Ya(d,h.children,y),_t(),ri(d),wt()},V=(d,h,y,I,C,M,B,z,j=!1)=>{const $=d&&d.children,H=d?d.shapeFlag:0,v=h.children,{patchFlag:w,shapeFlag:W}=h;if(w>0){if(w&128){de($,v,y,I,C,M,B,z,j);return}else if(w&256){ae($,v,y,I,C,M,B,z,j);return}}W&8?(H&16&&Ke($,C,M),v!==$&&u(y,v)):H&16?W&16?de($,v,y,I,C,M,B,z,j):Ke($,C,M,!0):(H&8&&u(y,""),W&16&&g(v,y,I,C,M,B,z,j))},ae=(d,h,y,I,C,M,B,z,j)=>{d=d||Ye,h=h||Ye;const $=d.length,H=h.length,v=Math.min($,H);let w;for(w=0;w<v;w++){const W=h[w]=j?Tt(h[w]):ct(h[w]);S(d[w],W,y,null,C,M,B,z,j)}$>H?Ke(d,C,M,!0,!1,v):g(h,y,I,C,M,B,z,j,v)},de=(d,h,y,I,C,M,B,z,j)=>{let $=0;const H=h.length;let v=d.length-1,w=H-1;for(;$<=v&&$<=w;){const W=d[$],X=h[$]=j?Tt(h[$]):ct(h[$]);if(Ft(W,X))S(W,X,y,null,C,M,B,z,j);else break;$++}for(;$<=v&&$<=w;){const W=d[v],X=h[w]=j?Tt(h[w]):ct(h[w]);if(Ft(W,X))S(W,X,y,null,C,M,B,z,j);else break;v--,w--}if($>v){if($<=w){const W=w+1,X=W<H?h[W].el:I;for(;$<=w;)S(null,h[$]=j?Tt(h[$]):ct(h[$]),y,X,C,M,B,z,j),$++}}else if($>w)for(;$<=v;)ye(d[$],C,M,!0),$++;else{const W=$,X=$,ue=new Map;for($=X;$<=w;$++){const Ue=h[$]=j?Tt(h[$]):ct(h[$]);Ue.key!=null&&ue.set(Ue.key,$)}let me,$e=0;const st=w-X+1;let an=!1,hl=0;const Mn=new Array(st);for($=0;$<st;$++)Mn[$]=0;for($=W;$<=v;$++){const Ue=d[$];if($e>=st){ye(Ue,C,M,!0);continue}let pt;if(Ue.key!=null)pt=ue.get(Ue.key);else for(me=X;me<=w;me++)if(Mn[me-X]===0&&Ft(Ue,h[me])){pt=me;break}pt===void 0?ye(Ue,C,M,!0):(Mn[pt-X]=$+1,pt>=hl?hl=pt:an=!0,S(Ue,h[pt],y,null,C,M,B,z,j),$e++)}const gl=an?Ja(Mn):Ye;for(me=gl.length-1,$=st-1;$>=0;$--){const Ue=X+$,pt=h[Ue],ml=Ue+1<H?h[Ue+1].el:I;Mn[$]===0?S(null,pt,y,ml,C,M,B,z,j):an&&(me<0||$!==gl[me]?be(pt,y,ml,2):me--)}}},be=(d,h,y,I,C=null)=>{const{el:M,type:B,transition:z,children:j,shapeFlag:$}=d;if($&6){be(d.component.subTree,h,y,I);return}if($&128){d.suspense.move(h,y,I);return}if($&64){B.move(d,h,y,ft);return}if(B===ke){o(M,h,y);for(let v=0;v<j.length;v++)be(j[v],h,y,I);o(d.anchor,h,y);return}if(B===oo){L(d,h,y);return}if(I!==2&&$&1&&z)if(I===0)z.beforeEnter(M),o(M,h,y),Re(()=>z.enter(M),C);else{const{leave:v,delayLeave:w,afterLeave:W}=z,X=()=>o(M,h,y),ue=()=>{v(M,()=>{X(),W&&W()})};w?w(M,X,ue):ue()}else o(M,h,y)},ye=(d,h,y,I=!1,C=!1)=>{const{type:M,props:B,ref:z,children:j,dynamicChildren:$,shapeFlag:H,patchFlag:v,dirs:w}=d;if(z!=null&&Jo(z,null,y,d,!0),H&256){h.ctx.deactivate(d);return}const W=H&1&&w,X=!gn(d);let ue;if(X&&(ue=B&&B.onVnodeBeforeUnmount)&&ut(ue,h,d),H&6)Yt(d.component,y,I);else{if(H&128){d.suspense.unmount(y,I);return}W&&Rt(d,null,h,"beforeUnmount"),H&64?d.type.remove(d,h,y,C,ft,I):$&&(M!==ke||v>0&&v&64)?Ke($,h,y,!1,!0):(M===ke&&v&384||!C&&H&16)&&Ke(j,h,y),I&&ze(d)}(X&&(ue=B&&B.onVnodeUnmounted)||W)&&Re(()=>{ue&&ut(ue,h,d),W&&Rt(d,null,h,"unmounted")},y)},ze=d=>{const{type:h,el:y,anchor:I,transition:C}=d;if(h===ke){nt(y,I);return}if(h===oo){N(d);return}const M=()=>{r(y),C&&!C.persisted&&C.afterLeave&&C.afterLeave()};if(d.shapeFlag&1&&C&&!C.persisted){const{leave:B,delayLeave:z}=C,j=()=>B(y,M);z?z(d.el,M,j):j()}else M()},nt=(d,h)=>{let y;for(;d!==h;)y=f(d),r(d),d=y;r(h)},Yt=(d,h,y)=>{const{bum:I,scope:C,update:M,subTree:B,um:z}=d;I&&jn(I),C.stop(),M&&(M.active=!1,ye(B,d,h,y)),z&&Re(z,h),Re(()=>{d.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&d.asyncDep&&!d.asyncResolved&&d.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve())},Ke=(d,h,y,I=!1,C=!1,M=0)=>{for(let B=M;B<d.length;B++)ye(d[B],h,y,I,C)},qe=d=>d.shapeFlag&6?qe(d.component.subTree):d.shapeFlag&128?d.suspense.next():f(d.anchor||d.el);let ot=!1;const Be=(d,h,y)=>{d==null?h._vnode&&ye(h._vnode,null,null,!0):S(h._vnode||null,d,h,null,null,null,y),ot||(ot=!0,ri(),ii(),ot=!1),h._vnode=d},ft={p:S,um:ye,m:be,r:ze,mt:E,mc:g,pc:V,pbc:T,n:qe,o:e};let it,$n;return t&&([it,$n]=t(ft)),{render:Be,hydrate:it,createApp:Ha(Be,it)}}function er({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Vt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Qa(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function zi(e,t,n=!1){const o=e.children,r=t.children;if(ee(o)&&ee(r))for(let i=0;i<o.length;i++){const s=o[i];let l=r[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[i]=Tt(r[i]),l.el=s.el),n||zi(s,l)),l.type===no&&(l.el=s.el)}}function Ja(e){const t=e.slice(),n=[0];let o,r,i,s,l;const a=e.length;for(o=0;o<a;o++){const c=e[o];if(c!==0){if(r=n[n.length-1],e[r]<c){t[o]=r,n.push(o);continue}for(i=0,s=n.length-1;i<s;)l=i+s>>1,e[n[l]]<c?i=l+1:s=l;c<e[n[i]]&&(i>0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}function ji(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ji(t)}const ec=e=>e.__isTeleport,ke=Symbol.for("v-fgt"),no=Symbol.for("v-txt"),Je=Symbol.for("v-cmt"),oo=Symbol.for("v-stc"),yn=[];let rt=null;function A(e=!1){yn.push(rt=e?null:[])}function tc(){yn.pop(),rt=yn[yn.length-1]||null}let _n=1;function Di(e){_n+=e}function Ri(e){return e.dynamicChildren=_n>0?rt||Ye:null,tc(),_n>0&&rt&&rt.push(e),e}function Y(e,t,n,o,r,i){return Ri(Z(e,t,n,o,r,i,!0))}function he(e,t,n,o,r){return Ri(J(e,t,n,o,r,!0))}function ro(e){return e?e.__v_isVNode===!0:!1}function Ft(e,t){return e.type===t.type&&e.key===t.key}const io="__vInternal",Bi=({key:e})=>e??null,so=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?we(e)||Ce(e)||oe(e)?{i:Te,r:e,k:t,f:!!n}:e:null);function Z(e,t=null,n=null,o=0,r=null,i=e===ke?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Bi(t),ref:t&&so(t),scopeId:ai,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Te};return l?(tr(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=we(n)?8:16),_n>0&&!s&&rt&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&rt.push(a),a}const J=nc;function nc(e,t=null,n=null,o=0,r=null,i=!1){if((!e||e===di)&&(e=Je),ro(e)){const l=It(e,t,!0);return n&&tr(l,n),_n>0&&!i&&rt&&(l.shapeFlag&6?rt[rt.indexOf(e)]=l:rt.push(l)),l.patchFlag|=-2,l}if(hc(e)&&(e=e.__vccOpts),t){t=oc(t);let{class:l,style:a}=t;l&&!we(l)&&(t.class=Ie(l)),ge(a)&&(Gr(a)&&!ee(a)&&(a=_e({},a)),t.style=Oe(a))}const s=we(e)?1:ba(e)?128:ec(e)?64:ge(e)?4:oe(e)?2:0;return Z(e,t,n,o,r,s,i,!0)}function oc(e){return e?Gr(e)||io in e?_e({},e):e:null}function It(e,t,n=!1){const{props:o,ref:r,patchFlag:i,children:s}=e,l=t?lo(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Bi(l),ref:t&&t.ref?n&&r?ee(r)?r.concat(so(t)):[r,so(t)]:so(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ke?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&It(e.ssContent),ssFallback:e.ssFallback&&It(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ct(e=" ",t=0){return J(no,null,e,t)}function rc(e,t){const n=J(oo,null,e);return n.staticCount=t,n}function Ee(e="",t=!1){return t?(A(),he(Je,null,e)):J(Je,null,e)}function ct(e){return e==null||typeof e=="boolean"?J(Je):ee(e)?J(ke,null,e.slice()):typeof e=="object"?Tt(e):J(no,null,String(e))}function Tt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:It(e)}function tr(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(ee(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),tr(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(io in t)?t._ctx=Te:r===3&&Te&&(Te.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else oe(t)?(t={default:t,_ctx:Te},n=32):(t=String(t),o&64?(n=16,t=[Ct(t)]):n=8);e.children=t,e.shapeFlag|=n}function lo(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const r in o)if(r==="class")t.class!==o.class&&(t.class=Ie([t.class,o.class]));else if(r==="style")t.style=Oe([t.style,o.style]);else if(Pn(r)){const i=t[r],s=o[r];s&&i!==s&&!(ee(i)&&i.includes(s))&&(t[r]=i?[].concat(i,s):s)}else r!==""&&(t[r]=o[r])}return t}function ut(e,t,n,o=null){Ze(e,t,7,[n,o])}const ic=Ii();let sc=0;function lc(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||ic,i={uid:sc++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new Tl(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ti(o,r),emitsOptions:li(o,r),emit:null,emitted:null,propsDefaults:se,inheritAttrs:o.inheritAttrs,ctx:se,data:se,props:se,attrs:se,slots:se,refs:se,setupState:se,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=da.bind(null,i),e.ce&&e.ce(i),i}let Me=null;const nr=()=>Me||Te;let ao,or;{const e=So(),t=(n,o)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(o),i=>{r.length>1?r.forEach(s=>s(i)):r[0](i)}};ao=t("__VUE_INSTANCE_SETTERS__",n=>Me=n),or=t("__VUE_SSR_SETTERS__",n=>co=n)}const wn=e=>{const t=Me;return ao(e),e.scope.on(),()=>{e.scope.off(),ao(t)}},Ni=()=>{Me&&Me.scope.off(),ao(null)};function Vi(e){return e.vnode.shapeFlag&4}let co=!1;function ac(e,t=!1){t&&or(t);const{props:n,children:o}=e.vnode,r=Vi(e);Wa(e,n,r,t),Ua(e,o);const i=r?cc(e,t):void 0;return t&&or(!1),i}function cc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Qr(new Proxy(e.ctx,ja));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?dc(e):null,i=wn(e);_t();const s=gt(o,e,0,[e.props,r]);if(wt(),i(),kr(s)){if(s.then(Ni,Ni),t)return s.then(l=>{Fi(e,l,t)}).catch(l=>{Kn(l,e,0)});e.asyncDep=s}else Fi(e,s,t)}else Wi(e,t)}function Fi(e,t,n){oe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=ei(t)),Wi(e,n)}let Hi;function Wi(e,t,n){const o=e.type;if(!e.render){if(!t&&Hi&&!o.render){const r=o.template||Xo(e).template;if(r){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,c=_e(_e({isCustomElement:i,delimiters:l},s),a);o.render=Hi(r,c)}}e.render=o.render||Ve}{const r=wn(e);_t();try{Da(e)}finally{wt(),r()}}}function uc(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return De(e,"get","$attrs"),t[n]}}))}function dc(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return uc(e)},slots:e.slots,emit:e.emit,expose:t}}function uo(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ei(Qr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in vn)return vn[n](e)},has(t,n){return n in t||n in vn}}))}const fc=/(?:^|[-_])(\w)/g,pc=e=>e.replace(fc,t=>t.toUpperCase()).replace(/[-_]/g,"");function Ki(e,t=!0){return oe(e)?e.displayName||e.name:e.name||t&&e.__name}function qi(e,t,n=!1){let o=Ki(t);if(!o&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(o=r[1])}if(!o&&e&&e.parent){const r=i=>{for(const s in i)if(i[s]===t)return s};o=r(e.components||e.parent.type.components)||r(e.appContext.components)}return o?pc(o):n?"App":"Anonymous"}function hc(e){return oe(e)&&"__vccOpts"in e}const ie=(e,t)=>Zl(e,t,co);function xn(e,t,n=se){const o=nr(),r=je(t),i=Fe(t),s=ta((a,c)=>{let u;return xa(()=>{const p=e[t];lt(u,p)&&(u=p,c())}),{get(){return a(),n.get?n.get(u):u},set(p){const f=o.vnode.props;!(f&&(t in f||r in f||i in f)&&(`onUpdate:${t}`in f||`onUpdate:${r}`in f||`onUpdate:${i}`in f))&<(p,u)&&(u=p,c()),o.emit(`update:${t}`,n.set?n.set(p):p)}}}),l=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return s[Symbol.iterator]=()=>{let a=0;return{next(){return a<2?{value:a++?e[l]||{}:s,done:!1}:{done:!0}}}},s}function Ui(e,t,n){const o=arguments.length;return o===2?ge(t)&&!ee(t)?ro(t)?J(e,null,[t]):J(e,t):J(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&ro(n)&&(n=[n]),J(e,t,n))}const gc="3.4.15";/**
|
|
17
17
|
* @vue/runtime-dom v3.4.15
|
|
18
18
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
19
19
|
* @license MIT
|
|
20
|
-
**/const dc="http://www.w3.org/2000/svg",fc="http://www.w3.org/1998/Math/MathML",Et=typeof document<"u"?document:null,Xi=Et&&Et.createElement("template"),pc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t==="svg"?Et.createElementNS(dc,e):t==="mathml"?Et.createElementNS(fc,e):Et.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>Et.createTextNode(e),createComment:e=>Et.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Et.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const s=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Xi.innerHTML=o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e;const l=Xi.content;if(o==="svg"||o==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},$t="transition",Sn="animation",kn=Symbol("_vtc"),nn=(e,{slots:t})=>Yi(wa,hc(e),t);nn.displayName="Transition";const Zi={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};nn.props=_e({},gi,Zi);const Wt=(e,t=[])=>{te(e)?e.forEach(n=>n(...t)):e&&e(...t)},Gi=e=>e?te(e)?e.some(t=>t.length>1):e.length>1:!1;function hc(e){const t={};for(const V in e)V in Zi||(t[V]=e[V]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=i,appearActiveClass:c=s,appearToClass:u=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:S=`${n}-leave-to`}=e,_=gc(r),w=_&&_[0],$=_&&_[1],{onBeforeEnter:L,onEnter:K,onEnterCancelled:C,onLeave:N,onLeaveCancelled:x,onBeforeAppear:m=L,onAppear:z=K,onAppearCancelled:b=C}=t,v=(V,oe,P)=>{Kt(V,oe?u:l),Kt(V,oe?c:s),P&&P()},T=(V,oe)=>{V._isLeaving=!1,Kt(V,f),Kt(V,S),Kt(V,h),oe&&oe()},U=V=>(oe,P)=>{const ne=V?z:K,q=()=>v(oe,V,P);Wt(ne,[oe,q]),Qi(()=>{Kt(oe,V?a:i),Pt(oe,V?u:l),Gi(ne)||Ji(oe,o,w,q)})};return _e(t,{onBeforeEnter(V){Wt(L,[V]),Pt(V,i),Pt(V,s)},onBeforeAppear(V){Wt(m,[V]),Pt(V,a),Pt(V,c)},onEnter:U(!1),onAppear:U(!0),onLeave(V,oe){V._isLeaving=!0;const P=()=>T(V,oe);Pt(V,f),bc(),Pt(V,h),Qi(()=>{V._isLeaving&&(Kt(V,f),Pt(V,S),Gi(N)||Ji(V,o,$,P))}),Wt(N,[V,P])},onEnterCancelled(V){v(V,!1),Wt(C,[V])},onAppearCancelled(V){v(V,!0),Wt(b,[V])},onLeaveCancelled(V){T(V),Wt(x,[V])}})}function gc(e){if(e==null)return null;if(ge(e))return[rr(e.enter),rr(e.leave)];{const t=rr(e);return[t,t]}}function rr(e){return wo(e)}function Pt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[kn]||(e[kn]=new Set)).add(t)}function Kt(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[kn];n&&(n.delete(t),n.size||(e[kn]=void 0))}function Qi(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let mc=0;function Ji(e,t,n,o){const r=e._endId=++mc,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:l,propCount:a}=vc(e,t);if(!s)return o();const c=s+"end";let u=0;const f=()=>{e.removeEventListener(c,h),i()},h=S=>{S.target===e&&++u>=a&&f()};setTimeout(()=>{u<a&&f()},l+1),e.addEventListener(c,h)}function vc(e,t){const n=window.getComputedStyle(e),o=_=>(n[_]||"").split(", "),r=o(`${$t}Delay`),i=o(`${$t}Duration`),s=es(r,i),l=o(`${Sn}Delay`),a=o(`${Sn}Duration`),c=es(l,a);let u=null,f=0,h=0;t===$t?s>0&&(u=$t,f=s,h=i.length):t===Sn?c>0&&(u=Sn,f=c,h=a.length):(f=Math.max(s,c),u=f>0?s>c?$t:Sn:null,h=u?u===$t?i.length:a.length:0);const S=u===$t&&/\b(transform|all)(,|$)/.test(o(`${$t}Property`).toString());return{type:u,timeout:f,propCount:h,hasTransform:S}}function es(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>ts(n)+ts(e[o])))}function ts(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function bc(){return document.body.offsetHeight}function yc(e,t,n){const o=e[kn];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ir=Symbol("_vod"),ns={beforeMount(e,{value:t},{transition:n}){e[ir]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):In(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),In(e,!0),o.enter(e)):o.leave(e,()=>{In(e,!1)}):In(e,t))},beforeUnmount(e,{value:t}){In(e,t)}};function In(e,t){e.style.display=t?e[ir]:"none"}const _c=Symbol("");function wc(e,t,n){const o=e.style,r=o.display,i=we(n);if(n&&!i){if(t&&!we(t))for(const s in t)n[s]==null&&sr(o,s,"");for(const s in n)sr(o,s,n[s])}else if(i){if(t!==n){const s=o[_c];s&&(n+=";"+s),o.cssText=n}}else t&&e.removeAttribute("style");ir in e&&(o.display=r)}const os=/\s*!important$/;function sr(e,t,n){if(te(n))n.forEach(o=>sr(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=xc(e,t);os.test(n)?e.setProperty(Fe(o),n.replace(os,""),"important"):e[o]=n}}const rs=["Webkit","Moz","ms"],lr={};function xc(e,t){const n=lr[t];if(n)return n;let o=je(t);if(o!=="filter"&&o in e)return lr[t]=o;o=zn(o);for(let r=0;r<rs.length;r++){const i=rs[r]+o;if(i in e)return lr[t]=i}return t}const is="http://www.w3.org/1999/xlink";function Sc(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(is,t.slice(6,t.length)):e.setAttributeNS(is,t,n);else{const i=xl(t);n==null||i&&!$r(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function kc(e,t,n,o,r,i,s){if(t==="innerHTML"||t==="textContent"){o&&s(o,r,i),e[t]=n??"";return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){e._value=n;const c=l==="OPTION"?e.getAttribute("value"):e.value,u=n??"";c!==u&&(e.value=u),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=$r(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function on(e,t,n,o){e.addEventListener(t,n,o)}function Ic(e,t,n,o){e.removeEventListener(t,n,o)}const ss=Symbol("_vei");function Cc(e,t,n,o,r=null){const i=e[ss]||(e[ss]={}),s=i[t];if(o&&s)s.value=o;else{const[l,a]=Tc(t);if(o){const c=i[t]=Pc(o,r);on(e,l,c,a)}else s&&(Ic(e,l,s,a),i[t]=void 0)}}const ls=/(?:Once|Passive|Capture)$/;function Tc(e){let t;if(ls.test(e)){t={};let o;for(;o=e.match(ls);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Fe(e.slice(2)),t]}let ar=0;const Ec=Promise.resolve(),$c=()=>ar||(Ec.then(()=>ar=0),ar=Date.now());function Pc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Ze(Mc(o,n.value),t,5,[o])};return n.value=e,n.attached=$c(),n}function Mc(e,t){if(te(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const as=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Oc=(e,t,n,o,r,i,s,l,a)=>{const c=r==="svg";t==="class"?yc(e,o,c):t==="style"?wc(e,n,o):Mn(t)?mo(t)||Cc(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Lc(e,t,o,c))?kc(e,t,o,i,s,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Sc(e,t,o,c))};function Lc(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&as(t)&&re(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return as(t)&&we(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function Ac(e,t){const n=ke(e);class o extends cr{constructor(i){super(n,i,t)}}return o.def=n,o}const zc=typeof HTMLElement<"u"?HTMLElement:class{};class cr extends zc{constructor(t,n={},o){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&o?o(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),gt(()=>{this._connected||(ps(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let o=0;o<this.attributes.length;o++)this._setAttr(this.attributes[o].name);this._ob=new MutationObserver(o=>{for(const r of o)this._setAttr(r.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(o,r=!1)=>{const{props:i,styles:s}=o;let l;if(i&&!te(i))for(const a in i){const c=i[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=wo(this._props[a])),(l||(l=Object.create(null)))[je(a)]=!0)}this._numberProps=l,r&&this._resolveProps(o),this._applyStyles(s),this._update()},n=this._def.__asyncLoader;n?n().then(o=>t(o,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,o=te(n)?n:Object.keys(n||{});for(const r of Object.keys(this))r[0]!=="_"&&o.includes(r)&&this._setProp(r,this[r],!0,!1);for(const r of o.map(je))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(i){this._setProp(r,i)}})}_setAttr(t){let n=this.getAttribute(t);const o=je(t);this._numberProps&&this._numberProps[o]&&(n=wo(n)),this._setProp(o,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,o=!0,r=!0){n!==this._props[t]&&(this._props[t]=n,r&&this._instance&&this._update(),o&&(n===!0?this.setAttribute(Fe(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Fe(t),n+""):n||this.removeAttribute(Fe(t))))}_update(){ps(this._createVNode(),this.shadowRoot)}_createVNode(){const t=Q(this._def,_e({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const o=(i,s)=>{this.dispatchEvent(new CustomEvent(i,{detail:s}))};n.emit=(i,...s)=>{o(i,s),Fe(i)!==i&&o(Fe(i),s)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof cr){n.parent=r._instance,n.provides=r._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const o=document.createElement("style");o.textContent=n,this.shadowRoot.appendChild(o)})}}const cs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return te(t)?n=>jn(t,n):t};function jc(e){e.target.composing=!0}function us(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ur=Symbol("_assign"),Rc={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[ur]=cs(r);const i=o||r.props&&r.props.type==="number";on(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=_o(l)),e[ur](l)}),n&&on(e,"change",()=>{e.value=e.value.trim()}),t||(on(e,"compositionstart",jc),on(e,"compositionend",us),on(e,"change",us))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},i){if(e[ur]=cs(i),e.composing)return;const s=r||e.type==="number"?_o(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===l)||(e.value=l))}},Dc=["ctrl","shift","alt","meta"],Bc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Dc.some(n=>e[`${n}Key`]&&!t.includes(n))},et=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(r,...i)=>{for(let s=0;s<t.length;s++){const l=Bc[t[s]];if(l&&l(r,t))return}return e(r,...i)})},Nc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ds=(e,t)=>{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=r=>{if(!("key"in r))return;const i=Fe(r.key);if(t.some(s=>s===i||Nc[s]===i))return e(r)})},Vc=_e({patchProp:Oc},pc);let fs;function Fc(){return fs||(fs=qa(Vc))}const ps=(...e)=>{Fc().render(...e)};var hs;const dr=typeof window<"u",Hc=e=>typeof e=="string",Mt=()=>{};dr&&((hs=window==null?void 0:window.navigator)!=null&&hs.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function uo(e){return typeof e=="function"?e():G(e)}function gs(e,t){function n(...o){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(i)})}return n}function Wc(e,t={}){let n,o,r=Mt;const i=l=>{clearTimeout(l),r(),r=Mt};return l=>{const a=uo(e),c=uo(t.maxWait);return n&&i(n),a<=0||c!==void 0&&c<=0?(o&&(i(o),o=null),Promise.resolve(l())):new Promise((u,f)=>{r=t.rejectOnCancel?f:u,c&&!o&&(o=setTimeout(()=>{n&&i(n),o=null,u(l())},c)),n=setTimeout(()=>{o&&i(o),o=null,u(l())},a)})}}function Kc(e,t=!0,n=!0,o=!1){let r=0,i,s=!0,l=Mt,a;const c=()=>{i&&(clearTimeout(i),i=void 0,l(),l=Mt)};return f=>{const h=uo(e),S=Date.now()-r,_=()=>a=f();if(c(),h<=0)return r=Date.now(),_();if(S>h&&(n||!s))r=Date.now(),_();else if(t)return new Promise((w,$)=>{l=o?$:w,i=setTimeout(()=>{r=Date.now(),s=!0,w(_()),c()},h-S)});return!n&&!i&&(i=setTimeout(()=>s=!0,h)),s=!1,a}}function qc(e){return e}function fr(e){return Mr()?(Il(e),!0):!1}function Ae(e,t=200,n={}){return gs(Wc(t,n),e)}function ms(e,t=200,n=!1,o=!0,r=!1){return gs(Kc(t,n,o,r),e)}function vs(e,t=!0){nr()?Qe(e):t?e():gt(e)}function qt(e){var t;const n=uo(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Cn=dr?window:void 0,Uc=dr?window.document:void 0;function Ot(...e){let t,n,o,r;if(Hc(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=Cn):[t,n,o,r]=e,!t)return Mt;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const i=[],s=()=>{i.forEach(u=>u()),i.length=0},l=(u,f,h)=>(u.addEventListener(f,h,r),()=>u.removeEventListener(f,h,r)),a=pe(()=>qt(t),u=>{s(),u&&i.push(...n.flatMap(f=>o.map(h=>l(u,f,h))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return fr(c),c}function bs(e,t=!1){const n=Z(),o=()=>n.value=!!e();return o(),vs(o,t),n}const ys=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},_s="__vueuse_ssr_handlers__";ys[_s]=ys[_s]||{};function ws({document:e=Uc}={}){if(!e)return Z("visible");const t=Z(e.visibilityState);return Ot(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var xs=Object.getOwnPropertySymbols,Yc=Object.prototype.hasOwnProperty,Xc=Object.prototype.propertyIsEnumerable,Zc=(e,t)=>{var n={};for(var o in e)Yc.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&xs)for(var o of xs(e))t.indexOf(o)<0&&Xc.call(e,o)&&(n[o]=e[o]);return n};function Gc(e,t,n={}){const o=n,{window:r=Cn}=o,i=Zc(o,["window"]);let s;const l=bs(()=>r&&"ResizeObserver"in r),a=()=>{s&&(s.disconnect(),s=void 0)},c=pe(()=>qt(e),f=>{a(),l.value&&r&&f&&(s=new ResizeObserver(t),s.observe(f,i))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return fr(u),{isSupported:l,stop:u}}function pr(e,t={width:0,height:0},n={}){const{window:o=Cn,box:r="content-box"}=n,i=se(()=>{var a,c;return(c=(a=qt(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),s=Z(t.width),l=Z(t.height);return Gc(e,([a])=>{const c=r==="border-box"?a.borderBoxSize:r==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&i.value){const u=qt(e);if(u){const f=o.getComputedStyle(u);s.value=parseFloat(f.width),l.value=parseFloat(f.height)}}else if(c){const u=Array.isArray(c)?c:[c];s.value=u.reduce((f,{inlineSize:h})=>f+h,0),l.value=u.reduce((f,{blockSize:h})=>f+h,0)}else s.value=a.contentRect.width,l.value=a.contentRect.height},n),pe(()=>qt(e),a=>{s.value=a?t.width:0,l.value=a?t.height:0}),{width:s,height:l}}function hr(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:i=.1,window:s=Cn}=n,l=bs(()=>s&&"IntersectionObserver"in s);let a=Mt;const c=l.value?pe(()=>({el:qt(e),root:qt(o)}),({el:f,root:h})=>{if(a(),!f)return;const S=new IntersectionObserver(t,{root:h,rootMargin:r,threshold:i});S.observe(f),a=()=>{S.disconnect(),a=Mt}},{immediate:!0,flush:"post"}):Mt,u=()=>{a(),c()};return fr(u),{isSupported:l,stop:u}}var Ss;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Ss||(Ss={}));var Qc=Object.defineProperty,ks=Object.getOwnPropertySymbols,Jc=Object.prototype.hasOwnProperty,eu=Object.prototype.propertyIsEnumerable,Is=(e,t,n)=>t in e?Qc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tu=(e,t)=>{for(var n in t||(t={}))Jc.call(t,n)&&Is(e,n,t[n]);if(ks)for(var n of ks(t))eu.call(t,n)&&Is(e,n,t[n]);return e};tu({linear:qc},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function nu(e={}){const{window:t=Cn,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:r=!0,includeScrollbar:i=!0}=e,s=Z(n),l=Z(o),a=()=>{t&&(i?(s.value=t.innerWidth,l.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};return a(),vs(a),Ot("resize",a,{passive:!0}),r&&Ot("orientationchange",a,{passive:!0}),{width:s,height:l}}const ou=(e,t)=>{const n=+(e.getAttribute("data-ripple")??0);if(!n)return;const o=document.createElement("span");let r=1,i=.65;const s=setInterval(a,20);l();function l(){o.style.position="absolute",o.style.height="5px",o.style.width="5px",o.style.borderRadius="100%",o.style.backgroundColor="#f2f2f2",o.style.left=`${t.currentTarget.clientWidth/2}px`,o.style.top=`${t.currentTarget.clientHeight/2}px`,t.currentTarget.appendChild(o)}function a(){const c=+n||50;r<=c?(r++,i-=.65/c,o.style.transform=`scale(${r})`,o.style.opacity=`${i}`):(o.remove(),clearInterval(s))}},rn={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>ou(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},ru={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},iu={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},su={key:0,class:"animate-auto-next absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50 animate-auto-next"},lu=ke({__name:"AutoNext",props:{hasNext:{type:Boolean}},emits:["next","hide"],setup(e,{emit:t}){const n=t,o=Z(null),r=Z(null),i=Z(!1),s=Z(!1),l=Z(3);return Qe(()=>{let a;hr(r,c=>{s.value=c.some(u=>u.isIntersecting),l.value=5,a&&(clearInterval(a),a=void 0),s.value&&(a=setInterval(()=>{l.value-=1,l.value<=0&&(clearInterval(a),a=void 0,n("next"))},1e3))}),hr(o,c=>{i.value=c.some(u=>u.isIntersecting)}),Nt(()=>a&&clearInterval(a))}),(a,c)=>(R(),Y("div",{ref_key:"root",ref:o,class:"h-full w-full flex justify-center items-center"},[mt(X("div",ru,[a.hasNext?(R(),Y("div",iu,[s.value?(R(),Y("div",su)):Ee("",!0),mt((R(),Y("button",{ref_key:"nextButton",ref:r,class:"bg-transparent rounded-full h-full w-full border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:c[0]||(c[0]=et(()=>n("next"),["stop"]))},[Ct(" Next in "+Xe(l.value),1)])),[[G(rn)]])])):Ee("",!0),mt((R(),Y("button",{class:"rounded-full px-6 h-12 bg-transparent border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:c[1]||(c[1]=et(()=>n("hide"),["stop"]))},[Ct(" Hide ")])),[[G(rn)]])],512),[[ns,i.value||!a.hasNext]])],512))}}),au=`.animate-auto-next{animation:auto-next 5s linear forwards}@keyframes auto-next{0%{width:0}to{width:100%}}
|
|
21
|
-
`,
|
|
22
|
-
`]]]),ju=Object.freeze(Object.defineProperty({__proto__:null,default:vr},Symbol.toStringTag,{value:"Module"})),Ru=["onClick","onKeyup"],po=ke({__name:"InputSelect",props:tn({items:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=xn(e,"modelValue"),o=Z(null),r=Z({width:"",left:""});Qe(()=>{let s=!1;pe(n,l=>{var c;const a=(c=o.value)==null?void 0:c.children[l+1];a&&(r.value={width:a.offsetWidth+"px",left:a.offsetLeft+"px"},a.scrollIntoView({behavior:s?"smooth":"auto",block:"center",inline:"center"}),s=!0)},{immediate:!0})});function i(s){n.value=s}return(s,l)=>(R(),Y("div",{ref_key:"root",ref:o,class:"relative h-8 rounded-[2.5rem] inline-flex bg-black bg-opacity-90 p-1 text-sm overflow-auto max-w-full scrollbar-none leading-none",style:{}},[X("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Oe(r.value)},null,4),(R(!0),Y(Se,null,mn(t.items,(a,c)=>mt((R(),Y("div",{key:c,tabindex:"0",class:Ie(["inline-flex justify-center items-center h-6 rounded-2xl px-3 cursor-pointer relative z-10 whitespace-nowrap flex-shrink-0 focus:outline-primary hover:bg-stone-50 hover:bg-opacity-10 duration-200",{"text-stone-900":c==n.value,"text-stone-400":c!=n.value}]),onClick:()=>i(c),onKeyup:[ds(()=>i(c),["enter"]),ds(()=>i(c),["space"])]},[Ct(Xe(a),1)],42,Ru)),[[G(rn),30]])),128))],512))}}),Du=Object.freeze(Object.defineProperty({__proto__:null,default:po},Symbol.toStringTag,{value:"Module"})),Bu={class:"flex items-center mb-8 last:mb-0"},Nu={class:"flex-grow overflow-hidden"},sn=ke({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(R(),Y("div",Bu,[X("div",{class:Ie(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},Xe(t.label),3),X("div",Nu,[xe(t.$slots,"default")])]))}}),Vu=Object.freeze(Object.defineProperty({__proto__:null,default:sn},Symbol.toStringTag,{value:"Module"})),Fu={},Hu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Wu=[X("path",{fill:"currentColor",d:"M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5c0-2.21-1.79-4-4-4z"},null,-1)];function Ku(e,t){return R(),Y("svg",Hu,Wu)}const Ps=he(Fu,[["render",Ku]]),qu=Object.freeze(Object.defineProperty({__proto__:null,default:Ps},Symbol.toStringTag,{value:"Module"})),Uu={},Yu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},Xu=[X("path",{fill:"currentColor",d:"m32.57 15.72l-3.35-1a11.65 11.65 0 0 0-.95-2.33l1.64-3.07a.61.61 0 0 0-.11-.72l-2.39-2.4a.61.61 0 0 0-.72-.11l-3.05 1.63a11.62 11.62 0 0 0-2.36-1l-1-3.31a.61.61 0 0 0-.59-.41h-3.38a.61.61 0 0 0-.58.43l-1 3.3a11.63 11.63 0 0 0-2.38 1l-3-1.62a.61.61 0 0 0-.72.11L6.2 8.59a.61.61 0 0 0-.11.72l1.62 3a11.63 11.63 0 0 0-1 2.37l-3.31 1a.61.61 0 0 0-.43.58v3.38a.61.61 0 0 0 .43.58l3.33 1a11.62 11.62 0 0 0 1 2.33l-1.64 3.14a.61.61 0 0 0 .11.72l2.39 2.39a.61.61 0 0 0 .72.11l3.09-1.65a11.65 11.65 0 0 0 2.3.94l1 3.37a.61.61 0 0 0 .58.43h3.38a.61.61 0 0 0 .58-.43l1-3.38a11.63 11.63 0 0 0 2.28-.94l3.11 1.66a.61.61 0 0 0 .72-.11l2.39-2.39a.61.61 0 0 0 .11-.72l-1.66-3.1a11.63 11.63 0 0 0 .95-2.29l3.37-1a.61.61 0 0 0 .43-.58v-3.41a.61.61 0 0 0-.37-.59ZM18 23.5a5.5 5.5 0 1 1 5.5-5.5a5.5 5.5 0 0 1-5.5 5.5Z",class:"clr-i-solid clr-i-solid-path-1"},null,-1),X("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function Zu(e,t){return R(),Y("svg",Yu,Xu)}const Ms=he(Uu,[["render",Zu]]),Gu=Object.freeze(Object.defineProperty({__proto__:null,default:Ms},Symbol.toStringTag,{value:"Module"}));function Qu(e){if(e)try{return JSON.parse(e)}catch{return}}function Ju(e){return String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var ut=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(ut||{}),Lt=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(Lt||{});const ed=.25,td=5,nd=.25,Tn=.25,En=5,od=.05,rd=0,id=4;function sd(e){var C,N,x,m,z,b;const{titleName:t,isWebtoon:n}=e,o=se(()=>t.value?Ju(t.value):location.hostname),r=Z(ld(`tkr:${o.value}`)),i=v=>{r.value=v;const T=`tkr:${o.value}`;!v||!Object.keys(v).length?localStorage.removeItem(T):localStorage.setItem(T,JSON.stringify(v))},s=v=>{if(!r.value){i(v);return}const T={...r.value};Object.entries(v).forEach(([U,V])=>{V===void 0?delete T[U]:T[U]=V}),i(T)},l=Z(((C=r.value)==null?void 0:C.style)??e.defaultStyle??Lt.longStrip),a=Z(((N=r.value)==null?void 0:N.direction)??e.defaultDirection??ut.vertical),c=Z((x=r.value)==null?void 0:x.gap),u=Z(((m=r.value)==null?void 0:m.speed)??1),f=Z(((z=r.value)==null?void 0:z.zoom)??1),h=Z(((b=r.value)==null?void 0:b.breakFirst)??!1),S=se({get(){return n.value?Lt.longStrip:l.value},set:v=>{l.value=v,s({style:v}),v!==Lt.longStrip&&a.value===ut.vertical&&(_.value=ut.rtl)}}),_=se({get:()=>n.value?ut.vertical:a.value,set:v=>{a.value=v,s({direction:v})}}),w=se({get:()=>c.value!==void 0?c.value:e.maybeWebtoon.value||S.value!==Lt.longStrip?0:1,set(v){c.value=v,s({gap:v})}}),$=se({get:()=>u.value,set(v){u.value=v,s({speed:v===1?void 0:v})}}),L=se({get:()=>f.value,set(v){f.value=v,s({zoom:v===1?void 0:v})}}),K=se({get:()=>h.value,set(v){h.value=v,s({breakFirst:v?!0:void 0})}});return{direction:_,style:S,gap:w,speed:$,zoom:L,isLongStrip:se(()=>S.value===Lt.longStrip),isDouble:se(()=>S.value===Lt.double),isRTL:se(()=>_.value===ut.rtl),isVertical:se(()=>_.value===ut.vertical),breakFirst:K}}function ld(e){const t=localStorage.getItem(e),n=Qu(t),o={};return n?(n.style!==void 0&&Object.values(Lt).includes(n.style)&&(o.style=n.style),n.direction!==void 0&&Object.values(ut).includes(n.direction)&&(o.direction=n.direction),n.gap!==void 0&&n.gap>=rd&&n.gap<=id&&(o.gap=n.gap),n.speed!==void 0&&n.speed>=Tn&&n.speed<=En&&(o.speed=n.speed),n.zoom!==void 0&&n.zoom>=Tn&&n.zoom<=En&&(o.zoom=n.zoom),n.breakFirst===!0&&(o.breakFirst=!0),Object.keys(o).length?o:void 0):o}const Os=ke({__name:"ButtonReaderSettings",props:{name:{},direction:{},readerStyle:{},gap:{},speed:{},zoom:{},webtoon:{type:Boolean},disabled:{type:Boolean}},emits:["update:reader-style","update:direction","update:gap","update:speed","update:zoom","help"],setup(e,{emit:t}){const n=e,o=t,r=Z(!1),i=se(()=>n.name??location.hostname);fo({onKeyUp:a=>{a.key==="s"&&!a.metaKey&&!a.ctrlKey&&(r.value=!r.value)}});function s(a){o("update:zoom",Math.round(a)/100)}function l(){r.value=!1,o("help")}return(a,c)=>(R(),Y(Se,null,[Q(tt,{title:"Reader settings (S)",disabled:a.disabled,onClick:c[0]||(c[0]=()=>r.value=!0)},{default:ie(()=>[Q(Ms)]),_:1},8,["disabled"]),Q($s,{modelValue:r.value,"onUpdate:modelValue":c[5]||(c[5]=u=>r.value=u),name:i.value},{actions:ie(()=>[Q(tt,{transparent:"",onClick:l},{default:ie(()=>[Q(Ps)]),_:1})]),default:ie(()=>[Q(sn,{label:"Style"},{default:ie(()=>[Q(po,{"model-value":a.readerStyle,items:a.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":c[1]||(c[1]=u=>o("update:reader-style",u))},null,8,["model-value","items"])]),_:1}),Q(sn,{label:"Direction"},{default:ie(()=>[Q(po,{"model-value":a.direction,items:a.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":c[2]||(c[2]=u=>o("update:direction",u))},null,8,["model-value","items"])]),_:1}),Q(sn,{label:"Gap"},{default:ie(()=>[Q(po,{"model-value":a.gap,items:["None","XS","SM","M","L","XL"],"onUpdate:modelValue":c[3]||(c[3]=u=>o("update:gap",u))},null,8,["model-value"])]),_:1}),Q(sn,{label:"Speed"},{default:ie(()=>[Q(vr,{"model-value":a.speed,min:G(ed),max:G(td),step:G(nd),suffix:"x","onUpdate:modelValue":c[4]||(c[4]=u=>o("update:speed",u))},{suffix:ie(()=>[Ct(Xe(a.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),Q(sn,{label:"Zoom"},{default:ie(()=>[Q(vr,{"model-value":Math.ceil(a.zoom*100),min:G(Tn)*100,max:G(En)*100,step:G(od)*100,"onUpdate:modelValue":s},{suffix:ie(()=>[Ct(Xe(Math.ceil(a.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64))}}),ad=Object.freeze(Object.defineProperty({__proto__:null,default:Os},Symbol.toStringTag,{value:"Module"})),cd={},ud={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},dd=[X("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[X("circle",{cx:"14",cy:"14",r:"12"}),X("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function fd(e,t){return R(),Y("svg",ud,dd)}const Ls=he(cd,[["render",fd]]),pd=Object.freeze(Object.defineProperty({__proto__:null,default:Ls},Symbol.toStringTag,{value:"Module"})),hd={key:0,class:"h-9 rounded-full inline-flex justify-between items-center bg-black bg-opacity-50 gap-1 py-2 px-3 pointer-events-auto hover:bg-stone-900 hover:bg-opacity-50 duration-200",title:"Reset zoom"},gd={class:"block w-4 h-4"},md={class:"w-12"},As=ke({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>t.zoom!==1?(R(),Y("button",hd,[X("div",gd,[Q(Ls)]),X("div",md,Xe(Math.ceil(t.zoom*100))+"%",1)])):Ee("",!0)}}),vd=Object.freeze(Object.defineProperty({__proto__:null,default:As},Symbol.toStringTag,{value:"Module"})),bd={},yd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},_d=[X("path",{fill:"currentColor",d:"M11.3 19.3q-.275-.275-.288-.7t.263-.7l4.9-4.9H5q-.425 0-.713-.288T4 12q0-.425.288-.713T5 11h11.175l-4.9-4.9q-.275-.275-.263-.7t.288-.7q.275-.275.7-.275t.7.275l6.6 6.6q.15.125.213.313t.062.387q0 .2-.062.375t-.213.325l-6.6 6.6q-.275.275-.7.275t-.7-.275Z"},null,-1)];function wd(e,t){return R(),Y("svg",yd,_d)}const zs=he(bd,[["render",wd]]),xd=Object.freeze(Object.defineProperty({__proto__:null,default:zs},Symbol.toStringTag,{value:"Module"})),js=ke({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=sessionStorage.getItem("tk:dir"),o=Z(typeof n!="string"||+n!==t.direction),r=Ae(()=>o.value=!1,1250);pe(()=>t.direction,()=>{i(),o.value=!0,r()}),Qe(()=>{i(),r();let s;const l=ws();pe(l,a=>{a!=="visible"?s=Date.now():Date.now()-s>3e4&&(o.value=!0,r())})});function i(){sessionStorage.setItem("tk:dir",t.direction+"")}return(s,l)=>(R(),me(nn,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ie(()=>[o.value?(R(),Y("div",{key:0,class:Ie(["fixed z-50 left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 pointer-events-none w-28 h-24 p-4 bg-black bg-opacity-40 rounded-2xl duration-500",{"rotate-90":s.direction===G(ut).vertical,"rotate-180":s.direction===G(ut).rtl}])},[Q(zs)],2)):Ee("",!0)]),_:1}))}}),Sd=Object.freeze(Object.defineProperty({__proto__:null,default:js},Symbol.toStringTag,{value:"Module"})),kd=X("div",{class:"fixed-screen bg-black bg-opacity-90"},null,-1),Rs=ke({__name:"HelpScreen",props:{touchDevice:{type:Boolean}},emits:["hide"],setup(e,{emit:t}){const n=e,o=t,r=Z(null),i=Z([]);Qe(async()=>{const c=pr(r),u=Ae(()=>{s({width:c.width.value,height:c.height.value})},50);u(),pe(c.width,u),pe(c.height,u)});function s(c){var h;const u=(h=r.value)==null?void 0:h.parentElement;if(!u)return;const f=Array.from(u.querySelectorAll("#controls [title]"));f.length&&(i.value=l(f,c))}function l(c,u){const f=[],h=[];let S=0,_=0;const w=50,$=25;c.forEach(x=>{var T;const m=(T=x.getAttribute("title"))==null?void 0:T.trim(),z=x.getBoundingClientRect();if(!m||!z.height||!z.width)return;const b=Math.ceil((z.top-10)/w),v=Math.ceil((z.left-10)/w);h.push({isTour:!1,title:m,rect:z,fromX:v,toX:Math.max(v+1,Math.ceil((z.right+10)/w)),fromY:b,toY:Math.max(b+1,Math.ceil((z.bottom+10)/w))})}),h.forEach(x=>{for(let m=x.fromY;m<x.toY;m++){f[m]??(f[m]=[]);for(let z=x.fromX;z<x.toX;z++)f[m][z]=x;x.toY>S+1&&(S=x.toY-1),x.toX>_+1&&(_=x.toX-1)}});let L=_/2;h.forEach(x=>{x.isAlignRight=x.fromX>L});const K=(x,m)=>{f[m]??(f[m]=[]);const z=m>=x.toY;if(x.isTour)for(let b=x.fromX;b<x.toX;b++)delete f[x.fromY][b],x.fromY=m,x.toY=m+(z?1:-1),f[m][b]=x;else{const b=x.isAlignRight?x.fromX-3:x.fromX,v=b+3;x.helpItem={fromX:b,toX:v,fromY:m,toY:m+1,isTour:!0,isAlignRight:x.isAlignRight};for(let T=b;T<v;T++)f[m][T]=x.helpItem}},C=(x,m)=>{if(m>S||m<0)return!1;const z=m>=x.toY,b=f[m];if(!b)return K(x,m),!0;const v=b[x.fromX];if(v&&!v.isTour)return!1;if(v&&v.isTour)return C(v,z?m+1:m-1)?(K(x,m),!0):!1;if(!v){const T=x.isAlignRight?-1:1;return b[x.fromX+T]||b[x.fromX+T*2]?C(x,z?m+1:m-1):(K(x,m),!0)}return!1};h.forEach(x=>{if(!C(x,x.toY)){if(x.isAlignRight){const m=f[x.fromY]??[];if(!m.slice(x.fromX-3,x.fromX).filter(Boolean).length){const b=x.fromX-3,v=x.fromX;x.helpItem={isTour:!0,isAlignRight:!0,fromX:b,toX:v,fromY:x.fromY,toY:x.toY};for(let T=x.fromX-3;T<x.fromX;T++)m[T]=x.helpItem;return}}C(x,x.fromY-1)}});const N=[];return h.forEach(x=>{const{title:m,helpItem:z,rect:b,isAlignRight:v,fromX:T,fromY:U,toY:V}=x;if(!m||!z||!b)return;const oe=z.fromY>=V,P=z.toY<=U;N.push({title:a(m),style:{top:oe?`${b.bottom+(z.fromY-V)*w+$}px`:P?void 0:`${b.top+8}px`,bottom:P?`${u.height-b.top+(z.toY-U)*w+$}px`:void 0,left:v?void 0:`${b.left}px`,right:v?oe?`${u.width-b.right}px`:`${u.width-b.right+b.width+$}px`:void 0},arrowStyle:{width:P||oe?"2px":`${Math.abs(z.toX-T)*w+$-5}px`,height:P||oe?`${(oe?z.fromY-V:U-z.toY)*w+$}px`:"2px",top:oe?`${b.bottom}px`:P?void 0:`${b.top+20}px`,bottom:P?`${u.height-b.top}px`:void 0,left:v?void 0:`${b.left+b.width/2}px`,right:v?oe?`${u.width-b.right+b.width/2}px`:`${u.width-b.right+b.width}px`:void 0}})}),N}function a(c){return n.touchDevice?c.split("(")[0].trim():c}return(c,u)=>(R(),Y(Se,null,[kd,X("div",{ref_key:"root",ref:r,class:"fixed-screen z-20 overscroll-contain select-none",onClick:u[0]||(u[0]=et(f=>o("hide"),["stop"]))},[(R(!0),Y(Se,null,mn(i.value,f=>(R(),Y(Se,{key:f.title},[X("div",{class:"absolute",style:Oe(f.style)},Xe(f.title),5),X("div",{class:"absolute bg-stone-300 rounded-lg",style:Oe(f.arrowStyle)},null,4)],64))),128))],512)],64))}}),Id=Object.freeze(Object.defineProperty({__proto__:null,default:Rs},Symbol.toStringTag,{value:"Module"})),Ds=ke({__name:"PageNav",props:tn({disabled:{type:Boolean},pages:{},totalImgs:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=xn(e,"modelValue"),o=se(()=>t.pages.map(a=>a.map(({index:c})=>`${c+1}`).join("-"))),r=se(()=>{const a=n.value,c=t.pages.findIndex(u=>u.some(({index:f})=>f===a));return c===-1?t.pages.length-1:c}),i=se(()=>t.pages.length?`${o.value[r.value]}/${t.totalImgs}`:"--");function s(a){const c=t.pages[a][0].index;l(c)}function l(a){n.value=a}return(a,c)=>(R(),me(mr,{"model-value":r.value,label:i.value,title:"Current page",items:o.value,disabled:a.disabled,"onUpdate:modelValue":s},null,8,["model-value","label","items","disabled"]))}}),Cd=Object.freeze(Object.defineProperty({__proto__:null,default:Ds},Symbol.toStringTag,{value:"Module"})),Td={},Ed={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},$d=[X("path",{d:"M199.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1),X("path",{d:"M375.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1)];function Pd(e,t){return R(),Y("svg",Ed,$d)}const br=he(Td,[["render",Pd]]),Md=Object.freeze(Object.defineProperty({__proto__:null,default:br},Symbol.toStringTag,{value:"Module"})),Od={},Ld={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Ad=[X("path",{d:"M128 104.3v303.4c0 6.4 6.5 10.4 11.7 7.2l240.5-151.7c5.1-3.2 5.1-11.1 0-14.3L139.7 97.2c-5.2-3.3-11.7.7-11.7 7.1z",fill:"currentColor"},null,-1)];function zd(e,t){return R(),Y("svg",Ld,Ad)}const yr=he(Od,[["render",zd]]),jd=Object.freeze(Object.defineProperty({__proto__:null,default:yr},Symbol.toStringTag,{value:"Module"})),Bs=he(ke({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=Z(0);return pe(()=>t.playing,()=>{n.value=Date.now()}),(o,r)=>n.value?(R(),Y("div",{key:n.value,class:"animate-pause-fade fixed left-1/2 top-1/2 -mx-12 -my-12 pointer-events-none w-24 h-24 p-4 bg-black bg-opacity-40 rounded-full duration-500"},[o.playing?(R(),me(yr,{key:0})):(R(),me(br,{key:1}))])):Ee("",!0)}}),[["styles",[`.animate-pause-fade{animation:pause-fade .4s linear forwards;transform-origin:center}@keyframes pause-fade{0%{opacity:0;transform:scale(.3)}10%{opacity:1;transform:scale(.35)}55%{opacity:1;transform:scale(.65)}to{opacity:0;transform:scale(1)}}
|
|
23
|
-
`]]]),
|
|
24
|
-
`,
|
|
25
|
-
`]]]),
|
|
26
|
-
`]]]),
|
|
27
|
-
`]]]),rf=Object.freeze(Object.defineProperty({__proto__:null,default:Ws},Symbol.toStringTag,{value:"Module"})),sf={},lf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},af=[X("path",{fill:"currentColor",d:"m10.875 19.3l-6.6-6.6q-.15-.15-.213-.325T4 12q0-.2.063-.375t.212-.325l6.6-6.6q.275-.275.688-.287t.712.287q.3.275.313.688T12.3 6.1L7.4 11h11.175q.425 0 .713.288t.287.712q0 .425-.287.713t-.713.287H7.4l4.9 4.9q.275.275.288.7t-.288.7q-.275.3-.7.3t-.725-.3Z"},null,-1)];function cf(e,t){return R(),Y("svg",lf,af)}const Ks=he(sf,[["render",cf]]),uf=Object.freeze(Object.defineProperty({__proto__:null,default:Ks},Symbol.toStringTag,{value:"Module"})),df={},ff={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},pf=[X("path",{fill:"currentColor",d:"M6.4 20.4q-.5.2-.95-.087T5 19.475V5q0-.825.588-1.413T7 3h6v2H7v12.95l5-2.15l5 2.15V11h2v8.475q0 .55-.45.838t-.95.087L12 18l-5.6 2.4ZM7 5h6h-6Zm11 4q-.425 0-.713-.287T17 8V7h-1q-.425 0-.713-.288T15 6q0-.425.288-.713T16 5h1V4q0-.425.288-.713T18 3q.425 0 .713.288T19 4v1h1q.425 0 .713.288T21 6q0 .425-.288.713T20 7h-1v1q0 .425-.288.713T18 9Z"},null,-1)];function hf(e,t){return R(),Y("svg",ff,pf)}const qs=he(df,[["render",hf]]),gf=Object.freeze(Object.defineProperty({__proto__:null,default:qs},Symbol.toStringTag,{value:"Module"})),mf={},vf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},bf=[X("path",{fill:"currentColor",d:"M17.825 8.575q-.2 0-.375-.062t-.325-.213L15.7 6.875q-.3-.3-.3-.712t.3-.688q.275-.3.7-.3t.7.275l.725.725l2.825-2.85q.3-.3.7-.3t.725.3q.275.3.275.725t-.275.7l-3.55 3.55q-.15.15-.325.213t-.375.062ZM6.4 20.4q-.5.2-.95-.087T5 19.475V5q0-.825.588-1.413T7 3h7q-.5.75-.75 1.438T13 6q0 1.8 1.137 3.175T17 10.9q.575.075 1 .075t1-.075v8.575q0 .55-.45.838t-.95.087L12 18l-5.6 2.4Z"},null,-1)];function yf(e,t){return R(),Y("svg",vf,bf)}const Us=he(mf,[["render",yf]]),_f=Object.freeze(Object.defineProperty({__proto__:null,default:Us},Symbol.toStringTag,{value:"Module"})),wf={},xf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Sf=[X("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function kf(e,t){return R(),Y("svg",xf,Sf)}const Ys=he(wf,[["render",kf]]),If=Object.freeze(Object.defineProperty({__proto__:null,default:Ys},Symbol.toStringTag,{value:"Module"})),Cf={},Tf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Ef=[X("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function $f(e,t){return R(),Y("svg",Tf,Ef)}const Xs=he(Cf,[["render",$f]]),Pf=Object.freeze(Object.defineProperty({__proto__:null,default:Xs},Symbol.toStringTag,{value:"Module"})),Mf={},Of={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 56 56"},Lf=[X("path",{fill:"currentColor",d:"M29.84 49.574h12.398c4.899 0 7.336-2.437 7.336-7.265V13.69c0-4.828-2.437-7.265-7.336-7.265H29.84Zm-16.055 0h12.398V6.426H13.785c-4.875 0-7.36 2.414-7.36 7.265V42.31c0 4.851 2.485 7.265 7.36 7.265"},null,-1)];function Af(e,t){return R(),Y("svg",Of,Lf)}const Zs=he(Mf,[["render",Af]]),zf=Object.freeze(Object.defineProperty({__proto__:null,default:Zs},Symbol.toStringTag,{value:"Module"})),jf={},Rf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Df=[X("g",{fill:"none"},[X("path",{d:"M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z"}),X("path",{fill:"currentColor",d:"M8 3v18H5a2 2 0 0 1-1.995-1.85L3 19V5a2 2 0 0 1 1.85-1.995L5 3zm11 0a2 2 0 0 1 1.995 1.85L21 5v14a2 2 0 0 1-1.85 1.995L19 21h-9V3z"})],-1)];function Bf(e,t){return R(),Y("svg",Rf,Df)}const Gs=he(jf,[["render",Bf]]),Nf=Object.freeze(Object.defineProperty({__proto__:null,default:Gs},Symbol.toStringTag,{value:"Module"})),Vf={},Ff={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Hf=[X("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function Wf(e,t){return R(),Y("svg",Ff,Hf)}const Qs=he(Vf,[["render",Wf]]),Kf=Object.freeze(Object.defineProperty({__proto__:null,default:Qs},Symbol.toStringTag,{value:"Module"})),qf={},Uf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Yf=[X("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function Xf(e,t){return R(),Y("svg",Uf,Yf)}const Js=he(qf,[["render",Xf]]),Zf=Object.freeze(Object.defineProperty({__proto__:null,default:Js},Symbol.toStringTag,{value:"Module"})),Gf={},Qf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Jf=[X("path",{fill:"currentColor",d:"M16.5 16V8l-4 4l4 4ZM5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.588 1.413T19 21H5Zm3-2V5H5v14h3Zm2 0h9V5h-9v14Zm-2 0H5h3Z"},null,-1)];function ep(e,t){return R(),Y("svg",Qf,Jf)}const el=he(Gf,[["render",ep]]),tp=Object.freeze(Object.defineProperty({__proto__:null,default:el},Symbol.toStringTag,{value:"Module"}));function ln(e=0){return new Promise(t=>setTimeout(t,e))}function tl(e){return new Promise(t=>{const n=o=>{if(!o)return t(void 0);const r=URL.createObjectURL(o);t(r)};e.toBlob(n,"image/jpeg",1)})}async function np(e,t){if(!t.startsWith("blob:"))return t;if(!e.naturalWidth||!e.naturalHeight)return;const o=document.createElement("canvas"),r=o.getContext("2d"),i=e.naturalWidth,s=e.naturalHeight;return o.width=i,o.height=s,r==null||r.drawImage(e,0,0,i,s),await tl(o)}function ho(e){const t=e.getAttributeNames(),n=t.indexOf("src");n!==-1&&(t.splice(n,1),t.push("src"));for(const o of t){if(o==="srcset"||o!=="data-url"&&o!=="data-original"&&!o.includes("src"))continue;const r=e.getAttribute(o);if(r)return o==="src"&&e.naturalWidth&&e.naturalWidth<200?void 0:r.replace(/(\n|\t)/g," ").trim()}}async function op(e,t){return(t==null?void 0:t.src)===e&&t.naturalWidth&&t.naturalHeight?{width:t.naturalWidth,height:t.naturalHeight}:await new Promise(n=>{const o=new Image,r=setInterval(()=>{const{naturalWidth:i,naturalHeight:s}=o;s&&i&&(n({width:i,height:s}),clearInterval(r))},20);o.onerror=()=>{n(void 0),clearInterval(r)},o.src=e})}class rp{constructor({isIOS:t,onDownloaded:n}){ve(this,"reactiveResults",cn({}));ve(this,"isIOS");ve(this,"tkLoadId",Date.now());ve(this,"isMounted",!0);ve(this,"onDisposeCallbacks",[]);ve(this,"onDownloaded");this.isIOS=t,this.onDownloaded=n}dispose(){this.isMounted=!1,this.onDisposeCallbacks.forEach(t=>t()),this.onDisposeCallbacks=[],this.onDownloaded=()=>{}}async download(t){var l;if(!this.isMounted)return;const n=t.el;let o=t.computedSrc;if(!n&&!o)return;const r=n instanceof HTMLImageElement,i=n instanceof HTMLCanvasElement;if(n){if(n._tkLoadId===this.tkLoadId)return;if(n._tkLoadId=this.tkLoadId,r){const a=()=>this.onImgElLoaded(t,n);n.addEventListener("load",a),this.onDisposeCallbacks.push(()=>{n.removeEventListener("load",a)})}}if(r&&!o){if(o=ho(n),!o)return;n._tkSrc=o}else if(i&&!o){if(o=await tl(n),!o)return;n._tkSrc=o}if(!o||!this.isMounted)return;const s=r&&o.startsWith("blob");s&&!n.complete||((l=this.reactiveResults)[o]??(l[o]={src:o,isLoading:!0,hasError:!1}),s&&this.isIOS&&await ln(300),await this.downloadSrc(t))}async onImgElLoaded(t,n){var r;if(!this.isMounted)return;const o=ho(n);o&&(!o.startsWith("blob")&&t.computedSrc===o||(n._tkSrc=o,(r=this.reactiveResults)[o]??(r[o]={src:o,isLoading:!0,hasError:!1}),this.downloadSrc(t)))}async downloadSrc(t){const n=t.computedSrc;if(!n)return;const o=t.el instanceof HTMLImageElement?t.el:void 0,r=o?await np(o,n):n;if(!r)return;const i=await op(r,o);if(!this.isMounted)return;const s=!!i&&(i.width<200||i.height<200);this.reactiveResults[n]={src:r,size:i,isLoading:!1,hasError:!i,invalid:s},i&&this.onDownloaded(t,i)}}const ip=3;class sp{constructor({getItems:t,getActiveIndex:n,isCompleted:o,callback:r}){ve(this,"isQueueStarted",!1);ve(this,"debouncedEnqueue");ve(this,"concurrentCount",0);ve(this,"getItems");ve(this,"getActiveIndex");ve(this,"isCompleted");ve(this,"callback");ve(this,"activeIndex",0);ve(this,"completedItems");ve(this,"isMounted",!0);this.getItems=t,this.getActiveIndex=n,this.isCompleted=o,this.callback=r,this.debouncedEnqueue=Ae(this.enqueue.bind(this),50)}dispose(){this.isMounted=!1}run(){this.isQueueStarted?this.debouncedEnqueue():(this.isQueueStarted=!0,this.enqueue())}get canEnqueue(){return this.concurrentCount<ip&&this.isMounted}async enqueue(){if(!this.canEnqueue)return;const t=this.getItems();if(t===this.completedItems)return;this.completedItems=void 0;const n=this.resetActiveIndex(),o=Math.max(0,Math.min(t.length-1,n-1)),r=[];for(let i=o;i<t.length;i++){if(!this.canEnqueue)return;r.push(await this.invokeItemCallback(i,i==t.length-1))}for(let i=o-1;i>=0;i--){if(!this.canEnqueue)return;r.push(await this.invokeItemCallback(i,i==0))}this.getItems()===t&&r.filter(Boolean).length==t.length&&(this.completedItems=t)}async invokeItemCallback(t,n){const o=this.getItems()[t];return o?this.isCompleted(o)?!0:(this.concurrentCount++,this.callback(o).then(()=>{this.concurrentCount=Math.max(0,this.concurrentCount-1),n||this.debouncedEnqueue()}),await ln(),!1):!1}resetActiveIndex(){const t=this.getActiveIndex();return t<this.activeIndex&&(this.concurrentCount=Math.max(0,this.concurrentCount-Math.abs(t-this.activeIndex))),this.activeIndex=t,t}}class Ut{constructor(t,n,o){this.src=t,this.el=n,this.parentEl=o}get computedSrc(){var t;return this.src??((t=this.el)==null?void 0:t._tkSrc)}}async function $n(e,t,n){const o=await n(()=>{e=0});if(o!==void 0)return o;if(!(e<=0))return await new Promise(r=>{setTimeout(async()=>{const i=await $n(e-1,t,n);r(i)},t)})}function wr(e,t){if(!e||e===document.body)return!0;const n=t.get(e);if(n!==void 0)return n;const o=getComputedStyle(e);if(!(o.display!=="none"&&+(o.opacity??"1")>.1))return t.set(e,!1),!1;const i=wr(e.parentElement,t);return t.set(e,i),i}function nl(e){const t=e.tagName.toLowerCase();if(t==="option"){const n=e.parentElement;if(n.tagName.toLowerCase()!=="select")return;n.value=e.getAttribute("value")||"",n.dispatchEvent(new Event("change"));return}return t==="a"&&e.addEventListener("click",n=>n.preventDefault(),{once:!0}),e.click()}async function lp(e){const{lstrip:t,lstripBtn:n}=e||{};if(!t||!n||!!document.querySelector(t))return!1;const r=await $n(50,30,()=>document.querySelector(n));return r?(nl(r),await ln(),!0):!1}class ap{constructor({spec:t,onChanged:n}){ve(this,"spec");ve(this,"onChanged");ve(this,"rawImages",[]);ve(this,"isMounted",!0);ve(this,"loadRawImagesTs");ve(this,"disconnectObservers");this.spec=t,this.onChanged=n,this.init()}dispose(){var t;this.isMounted=!1,(t=this.disconnectObservers)==null||t.call(this),this.disconnectObservers=void 0,this.onChanged=()=>{}}init(){var s;let t;const n=Ae(()=>{t&&this.loadRawImages(t)},100),o=new MutationObserver(n),r=(s=this.spec)!=null&&s.imgDivs?void 0:(()=>{let l=window.innerWidth;return new ResizeObserver(Ae(()=>{const a=window.innerWidth;if(a!==l){l=a;return}n()},50))})();this.disconnectObservers=async()=>{o.disconnect(),r==null||r.disconnect()};let i=!1;this.loadContentEl(l=>{t!==l&&(t=l,o.disconnect(),r==null||r.disconnect(),o.observe(t,{childList:!0,subtree:!0}),r==null||r.observe(t),i?n():(i=!0,this.loadRawImages(t)))})}setRawImages(t){let n=!1;const o=t.map((r,i)=>{const s=this.rawImages[i];return s&&s.el===r.el&&s.parentEl===r.parentEl&&s.src===r.src?s:(n=!0,r)});(n||!o.length)&&(this.rawImages=o,this.onChanged(t))}async loadContentEl(t){var l;const n=(l=this.spec)==null?void 0:l.content;if(!n){t(document.body);return}const o=await lp(this.spec);let r=await $n(o?100:1,10,()=>document.querySelector(n));if(!r)return;t(r);let i=0;const s=async()=>{if(this.isMounted&&!(r!=null&&r.isConnected)){if(i=0,r=await $n(50,20,()=>{const a=document.querySelector(n);return a!=null&&a.isConnected&&a!==r?a:void 0}),!r)return;t(r)}!this.isMounted||++i>=10||setTimeout(s,200)};setTimeout(s,200)}async loadRawImages(t){var i;if(!this.isMounted||!t.isConnected)return;const n=Date.now();this.loadRawImagesTs=n;const o=(i=this.spec)==null?void 0:i.imgDivs,r=o?await cp(t,o):up(t);this.loadRawImagesTs!==n||!t.isConnected||!this.isMounted||this.setRawImages(r)}}async function cp(e,t){const n=Array.from(e.querySelectorAll(t)),o=new Map;return n.map(i=>{const s=Array.from(i.querySelectorAll("img,canvas"));for(const l of s)if(wr(l,o)){if(l instanceof HTMLCanvasElement){if(ol(l))return new Ut(void 0,l,i)}else if(l instanceof HTMLImageElement&&rl(l)){const a=ho(l);return new Ut(a,l,i)}}return new Ut(void 0,void 0,i)})}function up(e){const t=[],n={},o=new Map;return Array.from(e.querySelectorAll("img,canvas")).forEach(i=>{if(wr(i,o)){if(i instanceof HTMLCanvasElement)ol(i)&&t.push(new Ut(void 0,i));else if(i instanceof HTMLImageElement&&rl(i)){const s=ho(i);if(s){const l=n[s];if(l!==void 0&&l!==-1){t.splice(l,1);return}n[s]=t.length}t.push(new Ut(s,i))}}}),t}function ol(e){return e.isConnected&&e.width>=200&&e.height>=200}function rl(e){if(!e.isConnected)return!1;const t=e.getBoundingClientRect();return!t.width||!t.height||t.width>=200&&t.height>=200}function il(e){var t,n;for(let o=0;o<e.length;o++){const r=((t=e[o])==null?void 0:t.el)??((n=e[o])==null?void 0:n.parentEl),i=r==null?void 0:r.getBoundingClientRect();if(!i||i.bottom<=0)continue;const s=i.top;return o+(s>=0?0:-s/i.height)}return 0}function dp(e){if(document.documentElement.scrollTop<700)return 0;const n=Array.from(document.querySelectorAll("img[src]")).filter(o=>e.includes(o.src)).map(o=>new Ut(void 0,o));return il(n)}function go({rawImages:e,page:t,smooth:n,skipIfVisible:o,isScrollDown:r}){const i=Math.floor(t),s=e[Math.min(e.length-1,i)];if(!s)return;const l=s.el??s.parentEl??document.querySelector(`img[src^="${s.computedSrc}"]`);if(!l)return;const a=l.getBoundingClientRect();if(o&&a.top<=0&&a.top+a.height>0)return;const c=sl(l);if(!c)return;const u=t>=e.length?a.height:r?Math.max(0,a.height-window.innerHeight+100):t%1*a.height;c.el.scrollTo({top:c.top+u,behavior:n?"smooth":"instant"})}function sl(e,t=new Map){if(!e)return;const{offsetTop:n,offsetParent:o}=e;if(o&&n&&t.set(o,Math.max(t.get(o)??0,n)),!(e.scrollHeight-e.clientHeight>=10&&(e===document.documentElement||window.getComputedStyle(e).overflow!=="visible")))return sl(e.parentElement,t);let i=0;return t.forEach((s,l)=>{i+=l===o?s-n:s}),{el:e,top:i}}function fp(e){var S,_,w,$;const t=Z((S=e.raw.value)==null?void 0:S.isWebtoon),n=Z((_=e.raw.value)==null?void 0:_.isWebtoon);let o=!1;const r=e.touchDevice&&!navigator.userAgent.toLowerCase().includes("android"),i=(($=(w=e.raw.value)==null?void 0:w.imgs)==null?void 0:$.filter(Boolean))??[];let s=e.isAutoShow!==!1?e.page.value:i.length?dp(i):void 0,l=i.map(L=>new Ut(L)),a;const c=new rp({isIOS:r,onDownloaded(L,K){let C=l.indexOf(L);if(C===-1){const N=L.computedSrc;C=l.findIndex(x=>x.computedSrc===N)}if(C!==-1){if(K&&!t.value&&C>Math.min(1,l.length-3)&&C<Math.max(l.length-2,3)){const N=K.height/K.width,x=N>2||N<.5,m=N>1.6||N<.6;t.value!==x&&(t.value=x),n.value!==m&&(n.value=m)}f()}}}),u=new sp({getItems:()=>l,getActiveIndex:()=>Math.floor(e.page.value),isCompleted:L=>{const K=L.computedSrc;return!!(K&&c.reactiveResults[K])},callback:L=>c.download(L)});if(i.length)u.run();else{let L=!1;a=new ap({spec:e.spec,async onChanged(K){var C;if(l=K,!e.raw.value&&!K.length){e.onError("no_img");return}(C=e.spec)!=null&&C.imgDivs&&!L&&e.isAutoShow!==!1&&e.page.value&&(L=!0,go({rawImages:K,page:e.page.value,skipIfVisible:!0}),await ln(1)),s===void 0&&e.isAutoShow===!1&&(s=il(K)),u.run()}})}Wo(()=>{c.dispose(),u.dispose(),a==null||a.dispose(),o&&go({rawImages:l,page:e.page.value})});function f(){var x,m,z,b;if(o||t.value===void 0||s===void 0)return;const L=Math.max(0,Math.min(s,l.length)),K=l.length-1,C=Math.min(Math.floor(L),K);if(C>=1){const v=(x=l[C])==null?void 0:x.computedSrc;if(!v){e.isAutoShow&&go({rawImages:l,page:C});return}const T=(m=l[C-1])==null?void 0:m.computedSrc;if(T&&!((z=c.reactiveResults[T])!=null&&z.size)||!((b=c.reactiveResults[v])!=null&&b.size))return}if(o)return;o=!0,e.onReady(L);let N=!0;pe(()=>Math.floor(e.page.value),(v,T)=>{go({rawImages:l,page:v,smooth:r,isScrollDown:T===void 0||v>T||l.length===1,skipIfVisible:N&&l.length>1}),N=!1,T??(T=-1),u.run()},{immediate:!0})}return{asyncImgs:se(()=>{Object.values(c.reactiveResults);const L=[];return l.forEach(K=>{const C=K.computedSrc,N=C?c.reactiveResults[C]:void 0;(C&&!(N!=null&&N.invalid)||K.parentEl)&&L.push(N)}),L}),isWebtoon:se(()=>t.value??!1),maybeWebtoon:se(()=>n.value??!1)}}function pp(e,t,n){return se(()=>t.value?ll(e.value,n.value):e.value.map((o,r)=>[{img:o,index:r}]))}function ll(e,t,n=0){if(e.length===0)return[];const o=e.slice(0,2),r=o.some(s=>(s==null?void 0:s.size)&&s.size.width>s.size.height),i=r||t?[o[0]]:o;return[i.map((s,l)=>({img:s,index:n+l})),...ll(e.slice(i.length),t&&r,n+i.length)]}function hp(e,t){const n=sessionStorage.getItem("tk:page:path");n!==location.pathname&&(sessionStorage.setItem("tk:page:path",location.pathname),n&&sessionStorage.removeItem("tk:page"));const o=Z(t&&e>0?Math.max(0,e):+(sessionStorage.getItem("tk:page")??"0")||e);return se({get:()=>o.value,set:r=>{o.value=r,sessionStorage.setItem("tk:page",r+"")}})}function gp(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const xr=40;function mp({page:e,direction:t,style:n,isLongStrip:o,isVertical:r,isRTL:i,spaceTop:s,scrollEl:l,isWebtoon:a,interferePlayer:c,onChangedPage:u,onInitialized:f,onFinished:h}){let S=!1,_=!1,w=!1,$;const L=Ae(v,300),K=ms(()=>{v(),L()},300),C=Ae(m,50);async function N(){z(e.value,{smooth:!1,ensureLastImgVisibility:!0})}function x(){var O;_=!0,f(),T(),(O=l.value)==null||O.addEventListener("scroll",K),setTimeout(()=>{const{width:F,height:ce}=nu();pe(F,()=>{r.value&&C()}),pe(ce,()=>{r.value||C()}),pe(n,m),pe(t,m)},300)}async function m(){if(!_||S)return;S=!0,await gt();const O=e.value;if(V()===O){S=!1;return}z(O)}function z(O,{smooth:F,ensureLastImgVisibility:ce=!1}={smooth:!1}){const fe=l.value;if(!fe)return;S=!0;const be=async()=>{await gt(),S=!1,_||x()},ye=Math.floor(O),ze=fe.querySelector(`[data-index="${ye}"],[data-index2="${ye}"]`);if(!ze){be();return}c(async()=>{await b(fe,!o.value&&F,async()=>{await q(fe,ze,{smooth:F,page:O,ensureLastImgVisibility:ce})}),await be()})}async function b(O,F,ce){F&&O.style.setProperty("scroll-snap-type","none"),await ce(),F&&O.style.removeProperty("scroll-snap-type")}function v(){if(S)return;const O=V();O!==void 0&&O!==e.value&&u(O),T()}function T(){w||!w&&U()&&(w=!0,h())}function U(){const O=l.value;if(!O)return!1;const F=o.value?a.value?3:!r.value&&O.clientWidth>O.clientHeight?2.25:2.5:2;return r.value?O.scrollHeight-O.scrollTop<O.clientHeight*F:O.scrollWidth-(i.value?-O.scrollLeft:O.scrollLeft)<O.clientWidth*F}function V(){const O=oe();return O?(+O.getAttribute("data-index")||0)+(o.value?P(O):0):void 0}function oe(){var F;if($??($=l.value.getRootNode()),!$)return;const O=(F=$.elementsFromPoint)==null?void 0:F.call($,r.value||!o.value?window.innerWidth/2:i.value?window.innerWidth-xr:xr,r.value&&o.value?s.value||xr:window.innerHeight/2);if(O)for(let ce=0;ce<O.length;ce++){const fe=O[ce];if(fe.hasAttribute("data-index"))return fe;if(fe===l.value)break}}function P(O){const F=O.getBoundingClientRect();return r.value?Math.abs(F.top-s.value)/F.height:i.value?Math.max(0,F.right-l.value.clientWidth)/F.width:Math.abs(F.left)/F.width}let ne=!1;async function q(O,F,ce){if(ne)return;const fe=F.getBoundingClientRect();if(!o.value){if(r.value){if(fe.top<=0&&fe.bottom>=O.clientHeight)return}else if(fe.left<=0&&fe.right>=O.clientWidth)return}ne=!0;const be=r.value?O.scrollTop:O.scrollLeft,ye=ce.page,ze=o.value?ye%1:0,nt=await $n(30,10,async()=>{await ln();let Be;if(!(F.offsetHeight<10))return o.value?r.value?Be=F.offsetTop+ze*F.offsetHeight-s.value:i.value?Be=F.offsetLeft-O.clientWidth+F.offsetWidth-ze*F.offsetWidth:Be=F.offsetLeft+ze*F.offsetWidth:r.value?Be=F.offsetTop+(fe.top>0?0:fe.height-O.clientHeight):Be=F.offsetLeft+(fe.left>0?0:fe.width-O.clientWidth),ye>.5&&Math.abs(Be)<100?void 0:Be})??0,Xt=ce.ensureLastImgVisibility?r.value?Math.min(nt,O.scrollHeight-O.clientHeight*2):i.value?Math.max(nt,-(O.scrollWidth-O.clientWidth*2)):Math.min(nt,O.scrollWidth-O.clientWidth*2):nt;if(!ce.smooth){r.value?O.scrollTop=Xt:O.scrollLeft=Xt,ne=!1;return}const Ke=Xt-be,qe=30;let ot=0;return new Promise(Be=>{(function dt(){const At=vp(ot,be,Ke,qe);r.value?O.scrollTop=At:O.scrollLeft=At,ot++,ot<=qe?requestAnimationFrame(dt):(Be(),ne=!1)})()})}return{init:N,goToPage:z}}function vp(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function bp({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,isLongStrip:i,speed:s}){const l=sessionStorage.getItem("tk:playing"),a=Z(typeof l=="string"?l==="true":e),c=se({get:()=>a.value,set:b=>{a.value=b,sessionStorage.setItem("tk:playing",b?"true":"false")}}),u=Z(!1);let f,h;const S=Ae(m,100),_=Ae(()=>{u.value=!0},t?2e3:1e3),w=()=>setTimeout(()=>{u.value=!1,_()},30);w(),t||Ot(window,"mousemove",w);const $=ws();Qe(()=>{pe($,b=>{c.value&&(b==="visible"?m():h==null||h())}),pe(s,()=>L()),pe(i,b=>{b||C()})}),Nt(C);async function L(b){c.value&&(h==null||h()),b&&(await gt(),await b()),c.value&&S()}function K(){c.value?C():N()}function C(){c.value&&(c.value=!1,h==null||h(),w())}function N(){!c.value&&i.value&&(c.value=!0,m(),w())}function x(){h==null||h()}function m(){const b=n.value;if(!c.value||!b)return;const v=o.value?b.scrollHeight-b.clientHeight:b.scrollWidth-b.clientWidth,T=z();if(v<=T){C();return}h=()=>{f=Date.now(),h=void 0};const U=Date.now();f=U;const V=.05*s.value,oe=o.value?"scrollTop":"scrollLeft";let P=Date.now(),ne=0;const q=()=>{if(f!==U)return;const O=Date.now(),F=O-P;P=O;const ce=V*F+ne;ce>=1?(ne=ce%1,b[oe]+=(ce-ne)*(r.value?-1:1)):ne=ce,setTimeout(q,1)};q()}function z(){const b=n.value;return o.value?b.scrollTop:r.value?-b.scrollLeft:b.scrollLeft}return{isPlaying:c,isIdle:u,toggle:K,play:N,pause:x,resume:m,stop:C,interfere:L,awake:w}}function yp({raw:e,chapterSpec:t,siteMeta:n}){var m,z,b;const{vol:o,inferVol:r,chap:i,title:s,slug:l,basePath:a}=e;let c=-1;const u=t&&!t.url?document.querySelectorAll(t.sel):void 0;function f(v,T){v.slug?h(v.slug,T):v.elIndex!==void 0&&u&&u[v.elIndex]&&nl(u[v.elIndex])}function h(v,T){const U=_p(a,v,(n==null?void 0:n.trailing)??!0);T?window.open(U,"_blank","noopener"):location.href=U}function S(v){const T=x[v];return T?U=>f(T,U):void 0}const _=(m=e.prev)==null?void 0:m.slug,w=(z=e.next)==null?void 0:z.slug;let $=_?v=>h(_,v):void 0,L=w?v=>h(w,v):void 0;const K=o??r,C=t==null?void 0:t.url,N=((b=s.chapters)==null?void 0:b.filter(v=>v.slug||!C&&v.elIndex!==void 0))??[],x=N.length>1?N:[];if(x.length){if(C&&(c=x.findIndex(v=>v.slug===e.slug)),c===-1&&(c=x.findIndex(v=>(v.vol??v.inferVol)===K&&v.chap===i)),C&&c===-1&&(c=x.findIndex(v=>v.slug&&l.startsWith(`${v.slug}-`)&&l.length-v.slug.length>3)),c!==-1)$??($=S(c+1)),L??(L=S(c-1));else if(!_&&!w){const v=x.findIndex(T=>{const U=T.vol??T.inferVol;return K===void 0||U===void 0||K===U?T.chap<i:U<K});v!==-1?($=S(v),L=S(v-1)):L=S(x.length-1)}}return{activeIndex:c,activeLabel:al({vol:o,chap:i}),prev:$,next:L,chapters:x.map(v=>({label:al(v),select:T=>f(v,T)}))}}function al({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}function _p(e,t,n){const o=!t||t.includes("//")||t.startsWith("/")?t:"/"+[...e.split("/"),...t.split("/")].filter(Boolean).join("/"),[r,i]=(o.includes("//")?o:location.origin+o).split("?");return[r.endsWith("/")===n?r:n?r+"/":r.substring(0,-1),i].filter(Boolean).join("?")}const wp={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},cl=he(ke({inheritAttrs:!1,__name:"App",props:{immediate:{type:Boolean},raw:{},spec:{},siteMeta:{},page:{},spaceTop:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{},autoPlay:{type:Boolean},readerStyle:{},direction:{},isAutoShow:{type:Boolean},tourEnabled:{type:Boolean}},emits:["error","ready","pageChanged","fullScreenChanged","playingChanged","tourEnabledChanged","dispose","openEntry","addEntry","finished"],setup(e,{emit:t}){const n=e,o=t;let r=!1,i,s=-1;const l=Z(!1),a=Z(!1),c=gu({touchDevice:n.touchDevice}),u=hp(n.page,n.isAutoShow),f=se(()=>n.spaceTop??0),{asyncImgs:h,isWebtoon:S,maybeWebtoon:_}=fp({raw:se(()=>n.raw),spec:n.spec,page:u,touchDevice:n.touchDevice,isAutoShow:n.isAutoShow,spaceTop:f,async onReady(g){ze(g),l.value=!0},onError:()=>{o("error"),j()}}),{direction:w,style:$,isRTL:L,isDouble:K,isVertical:C,isLongStrip:N,gap:x,speed:m,zoom:z,breakFirst:b}=sd({titleName:se(()=>{var g;return(g=n.raw)==null?void 0:g.title.name}),isWebtoon:S,maybeWebtoon:_,defaultStyle:n.readerStyle,defaultDirection:n.direction}),v=pp(h,K,b),T=se(()=>u.value>=h.value.length),U=se(()=>{var g;return n.raw?yp({raw:n.raw,chapterSpec:(g=n.spec)==null?void 0:g.chapter,siteMeta:n.siteMeta}):void 0}),V=Z(null),oe=Z(null),P=Z(!1),ne=Z(!1),q=bp({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:se(()=>{var g;return(g=V.value)==null?void 0:g.$el}),speed:m,isRTL:L,isVertical:C,isLongStrip:N}),O=se(()=>!n.touchDevice&&q.isIdle.value&&!c.value),F=se({get(){return z.value},set(g){q.interfere(()=>{z.value=g})}}),ce=mp({page:u,style:$,direction:w,isLongStrip:N,isVertical:C,isRTL:L,spaceTop:f,isWebtoon:S,scrollEl:se(()=>{var g;return(g=V.value)==null?void 0:g.$el}),interferePlayer:g=>q.interfere(g),onChangedPage:ze,onInitialized(){o("ready"),a.value=!0,i=nt()},onFinished:()=>o("finished")}),fe=se(()=>Math.floor(u.value)),be=()=>q.interfere(()=>ln(100));vu().addListener({onKeyDown:g=>{if(n.tourEnabled)return;const I=N.value&&C.value,W=N.value&&!C.value,ee=!N.value&&C.value,de=!N.value&&!C.value;switch(g.key){case" ":g.preventDefault(),N.value?(J(!1),q.toggle()):D();break;case"ArrowUp":case"PageUp":I?be():ee&&fe.value!==0&&(g.preventDefault(),y());break;case"ArrowDown":case"PageDown":I?be():ee&&!T.value&&(g.preventDefault(),k());break;case"ArrowLeft":W?be():de?(g.preventDefault(),d()):C.value&&ot();break;case"ArrowRight":W?be():de?(g.preventDefault(),p()):C.value&&qe();break}},onKeyUp:g=>{switch(g.key){case"f":B();break;case"t":A();break;case"h":J();break}}}),Ot("fullscreenchange",()=>{P.value=!!document.fullscreenElement}),pe(q.isPlaying,g=>{g||D(!1),o("playingChanged",g)}),pe(q.isIdle,g=>{q.isPlaying.value&&D(g)}),pe(c,g=>{!g&&q.isIdle.value?q.awake():g&&n.fullScreen&&D()});function ze(g){if(u.value===g)return;const I=h.value.length;if(g<0||g>=I+1)return;const W=u.value;u.value=g;const ee=Math.floor(g*100)/100;ee!==s&&(s=ee,o("pageChanged",ee)),g>=I?(D(!1),q.stop()):g<.01&&W>g?(D(!1),q.awake()):r||(N.value?i!==void 0&&nt()-i>300&&D(!0):Math.abs(W-g)===1&&D(!0))}function nt(){var I;const g=(I=V.value)==null?void 0:I.$el;return g?C.value?g.scrollTop:L.value?-g.scrollLeft:g.scrollLeft:0}function Xt(){!n.touchDevice&&!N.value&&ce.goToPage(fe.value,{smooth:!0})}function Ke(){if(q.isPlaying.value){!n.fullScreen||!n.touchDevice?q.stop():q.awake();return}D()}function qe(g=!1){var I,W;(W=(I=U.value)==null?void 0:I.next)==null||W.call(I,g)}function ot(g=!1){var I,W;(W=(I=U.value)==null?void 0:I.prev)==null||W.call(I,g)}function Be(g,I){var W,ee,de;(de=(ee=(W=U.value)==null?void 0:W.chapters)==null?void 0:ee[g])==null||de.select(bt(I))}function dt(g){L.value?qe(bt(g)):ot(bt(g))}function At(g){L.value?ot(bt(g)):qe(bt(g))}function bt(g){return!n.touchDevice&&(g.ctrlKey||g.metaKey)}function d(){L.value?k():y()}function p(){L.value?y():k()}function y(){var W;const g=v.value,I=T.value?g[g.length-1][0].index:(W=g[E()-1])==null?void 0:W[0].index;I!==void 0?ce.goToPage(I):ot()}function k(){var g,I;if(T.value)qe();else{const W=((I=(g=v.value[E()+1])==null?void 0:g[0])==null?void 0:I.index)??h.value.length;ce.goToPage(W)}}function E(){const g=fe.value,I=v.value.findIndex(W=>W.some(({index:ee})=>ee===g));return I===-1?v.value.length-1:I}function j(){gp(),o("dispose")}async function D(g){if(c.value&&!n.fullScreen)return;const I=typeof g=="boolean"?g:!n.fullScreen;I!==n.fullScreen&&(r=!0,o("fullScreenChanged",I),I&&setTimeout(()=>{n.fullScreen&&c.value&&o("fullScreenChanged",!1)},100))}function A(){n.entryId?H():M()}function B(){var g,I;document.fullscreenElement?document.exitFullscreen():(I=(g=oe.value)==null?void 0:g.$el)==null||I.requestFullscreen()}function M(){q.stop(),o("addEntry")}function H(){q.stop(),o("openEntry",n.entryId)}function J(g){ne.value!==g&&(ne.value=!ne.value,ne.value&&q.isPlaying.value&&q.stop())}return(g,I)=>g.immediate||l.value?(R(),me(Hs,{key:0,ref_key:"root",ref:oe,loading:!a.value,immediate:!!g.immediate,"full-screen":!!g.fullScreen,idle:O.value,"space-top":f.value,rtl:G(L),onClick:I[11]||(I[11]=et(()=>{},["stop"]))},_i({settings:ie(()=>{var W;return[Q(Os,{"reader-style":G($),"onUpdate:readerStyle":I[3]||(I[3]=ee=>Ce($)?$.value=ee:null),direction:G(w),"onUpdate:direction":I[4]||(I[4]=ee=>Ce(w)?w.value=ee:null),gap:G(x),"onUpdate:gap":I[5]||(I[5]=ee=>Ce(x)?x.value=ee:null),speed:G(m),"onUpdate:speed":I[6]||(I[6]=ee=>Ce(m)?m.value=ee:null),zoom:F.value,"onUpdate:zoom":I[7]||(I[7]=ee=>F.value=ee),name:(W=g.raw)==null?void 0:W.title.name,webtoon:G(S),disabled:!l.value,onHelp:J},null,8,["reader-style","direction","gap","speed","zoom","name","webtoon","disabled"])]}),"reset-zoom":ie(()=>[Q(nn,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ie(()=>[Q(As,{zoom:F.value,onClick:I[10]||(I[10]=et(()=>F.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:ie(()=>[X("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:Oe({width:`${G(u)/(G(h).length-1)*100}%`})},null,4)]),default:ie(()=>{var W;return[l.value?(R(),me(Fs,{key:0,ref_key:"body",ref:V,zoom:F.value,"onUpdate:zoom":I[0]||(I[0]=ee=>F.value=ee),"page-index":fe.value,pages:G(v),"total-imgs":G(h).length,direction:G(w),gap:G(x),"is-long-strip":G(N),isRTL:G(L),"is-vertical":G(C),"space-top":f.value,busy:G(c),idle:O.value,"play-controller":G(q),"touch-device":g.touchDevice,"has-next":!!((W=U.value)!=null&&W.next),onVnodeMounted:G(ce).init,onPrev:y,onNext:k,onClick:Ke,onDragEnd:Xt,onWheelPassive:I[1]||(I[1]=()=>G(q).interfere())},_i({_:2},[l.value&&G(h).length?{name:"end",fn:ie(()=>{var ee;return[Q(Cs,{"has-next":!!((ee=U.value)!=null&&ee.next),onNext:qe,onHide:j},null,8,["has-next"])]}),key:"0"}:void 0]),1032,["zoom","page-index","pages","total-imgs","direction","gap","is-long-strip","isRTL","is-vertical","space-top","busy","idle","play-controller","touch-device","has-next","onVnodeMounted"])):Ee("",!0),a.value&&!T.value&&!g.tourEnabled?(R(),me(js,{key:1,direction:G(w)},null,8,["direction"])):Ee("",!0),a.value&&!T.value?(R(),me(Bs,{key:2,playing:!!G(q).isPlaying.value},null,8,["playing"])):Ee("",!0),ne.value?(R(),me(Rs,{key:3,"touch-device":g.touchDevice,onHide:J},null,8,["touch-device"])):Ee("",!0),g.tourEnabled?(R(),me(Ws,{key:4,onHide:I[2]||(I[2]=()=>o("tourEnabledChanged",!1))})):Ee("",!0)]}),_:2},[g.raw?{name:"back",fn:ie(()=>[Q(tt,{href:g.raw.title.url,title:"Back to manga"},{default:ie(()=>[Q(Ks)]),_:1},8,["href"])]),key:"0"}:void 0,g.touchDevice?void 0:{name:"exit",fn:ie(()=>[Q(tt,{title:"Hide reader","data-tour":"You have entered reader mode, press here to return to the original page",onClick:j},{default:ie(()=>[Q(el)]),_:1})]),key:"1"},U.value?{name:"chapter-nav",fn:ie(()=>[Q(mr,{modelValue:U.value.activeIndex,label:U.value.activeLabel,title:"Select chapter",items:U.value.chapters,onSelect:Be},{item:ie(({item:W})=>[Ct(Xe(W.label),1)]),_:1},8,["modelValue","label","items"]),U.value.next||U.value.prev?(R(),Y("div",wp,[Q(tt,{title:`${G(L)?"Next":"Prev"} chapter (←)`,disabled:G(L)?!U.value.next:!U.value.prev,class:"!rounded-r-none",onClick:dt},{default:ie(()=>[Q(Ys)]),_:1},8,["title","disabled"]),Q(tt,{title:`${G(L)?"Prev":"Next"} chapter (→)`,disabled:G(L)?!U.value.prev:!U.value.next,class:"!rounded-l-none",onClick:At},{default:ie(()=>[Q(Xs)]),_:1},8,["title","disabled"])])):Ee("",!0)]),key:"2"}:void 0,G(v).length?{name:"page-nav",fn:ie(()=>[Q(Ds,{"model-value":fe.value,disabled:!a.value,pages:G(v),"total-imgs":G(h).length,"onUpdate:modelValue":G(ce).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),key:"3"}:void 0,g.raw?{name:"entry",fn:ie(()=>[Q(tt,{title:g.entryId?"View entry (T)":"Add to library (T)","data-tour":"Prress here to add to your collection",onClick:A},{default:ie(()=>[g.entryId?(R(),me(Us,{key:0})):(R(),me(qs,{key:1}))]),_:1},8,["title"])]),key:"4"}:void 0,g.touchDevice?void 0:{name:"full-screen",fn:ie(()=>[Q(tt,{title:`${P.value?"Exit":"Enter"} fullscreen (F)`,onClick:B},{default:ie(()=>[P.value?(R(),me(Js,{key:0})):(R(),me(Qs,{key:1}))]),_:1},8,["title"])]),key:"5"},G(N)?{name:"play",fn:ie(()=>[Q(tt,{"data-tour":"Press here to play like a video",title:`${G(q).isPlaying.value?"Pause":"Play"} (Space)`,disabled:!a.value,onClick:I[8]||(I[8]=()=>G(q).toggle())},{default:ie(()=>[G(q).isPlaying.value?(R(),me(br,{key:0})):(R(),me(yr,{key:1}))]),_:1},8,["title","disabled"])]),key:"6"}:void 0,G(K)?{name:"break-first",fn:ie(()=>[Q(tt,{title:"Separate 1st page","data-tour":"Press here to separate the first page from double-page mode",disabled:!a.value,onClick:I[9]||(I[9]=()=>b.value=!G(b))},{default:ie(()=>[G(b)?(R(),me(Gs,{key:0})):(R(),me(Zs,{key:1}))]),_:1},8,["disabled"])]),key:"7"}:void 0]),1032,["loading","immediate","full-screen","idle","space-top","rtl"])):Ee("",!0)}}),[["styles",[`/*! tailwindcss v3.4.0 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Helvetica,sans-serif;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*{-webkit-tap-highlight-color:rgba(0,0,0,0)!important}button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:none;border-style:none;cursor:pointer;outline:2px solid transparent;outline-offset:2px;white-space:nowrap}button[disabled]{cursor:default!important}svg{height:100%;width:100%}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:300px){.container{max-width:300px}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.fixed-screen{height:100vh;left:0;position:fixed;top:0;width:100vw}.scrollbar-none{scrollbar-width:none}.scrollbar-none::-webkit-scrollbar{display:none}.scrollbar-sm{scrollbar-color:#777 transparent;scrollbar-width:thin}.scrollbar-sm::-webkit-scrollbar{background-color:transparent;height:4px;width:4px}.scrollbar-sm::-webkit-scrollbar-track{background:transparent}.scrollbar-sm::-webkit-scrollbar-thumb{background-color:#777;border-radius:2px}.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.left-0{left:0}.left-1\\/2{left:50%}.right-0{right:0}.top-0{top:0}.top-1{top:4px}.top-1\\/2{top:50%}.top-full{top:100%}.-z-10{z-index:-10}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-50{z-index:50}.m-auto{margin:auto}.-mx-12{margin-left:-48px;margin-right:-48px}.-my-12{margin-bottom:-48px;margin-top:-48px}.-ml-20{margin-left:-80px}.-mr-3{margin-right:-12px}.mb-8{margin-bottom:32px}.ml-1{margin-left:4px}.ml-auto{margin-left:auto}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-0{height:0}.h-0\\.5{height:2px}.h-1{height:4px}.h-1\\.5{height:6px}.h-10{height:40px}.h-12{height:48px}.h-16{height:64px}.h-20{height:80px}.h-24{height:96px}.h-4{height:16px}.h-6{height:24px}.h-7{height:28px}.h-8{height:32px}.h-9{height:36px}.h-\\[101\\%\\]{height:101%}.h-\\[27rem\\]{height:432px}.h-full{height:100%}.h-screen{height:100vh}.max-h-\\[70vh\\]{max-height:70vh}.max-h-\\[80vh\\]{max-height:80vh}.max-h-full{max-height:100%}.w-1{width:4px}.w-1\\/3{width:33.333333%}.w-10{width:40px}.w-12{width:48px}.w-20{width:80px}.w-24{width:96px}.w-28{width:112px}.w-4{width:16px}.w-40{width:160px}.w-\\[4\\.5rem\\]{width:72px}.w-full{width:100%}.w-screen{width:100vw}.max-w-full{max-width:100%}.max-w-xs{max-width:320px}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-bottom{transform-origin:bottom}.origin-right{transform-origin:right}.origin-top{transform-origin:top}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-x-1\\/2,.-translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1{--tw-translate-y:-4px}.-translate-y-1\\.5{--tw-translate-y:-6px}.-translate-y-1\\.5,.-translate-y-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%}.translate-y-0{--tw-translate-y:0px}.translate-y-0,.translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1{--tw-translate-y:4px}.translate-y-1\\.5{--tw-translate-y:6px}.translate-y-1\\.5,.translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y:100%}.rotate-180{--tw-rotate:180deg}.rotate-180,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.scale-95,.scale-y-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-y-90{--tw-scale-y:.9}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-auto{cursor:auto}.cursor-default{cursor:default}.cursor-grabbing{cursor:grabbing}.cursor-none{cursor:none}.cursor-pointer{cursor:pointer}.touch-pan-x{--tw-pan-x:pan-x}.touch-pan-x,.touch-pan-y{touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-y{--tw-pan-y:pan-y}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.\\!snap-none{scroll-snap-type:none!important}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-y{scroll-snap-type:y var(--tw-scroll-snap-strictness)}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:4px}.gap-3{gap:12px}.gap-4{gap:16px}.gap-6{gap:24px}.gap-\\[1px\\]{gap:1px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overscroll-contain{overscroll-behavior:contain}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:4px}.rounded-2xl{border-radius:16px}.rounded-\\[2\\.5rem\\]{border-radius:40px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:8px}.rounded-sm{border-radius:2px}.\\!rounded-l-none{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.\\!rounded-r-none{border-bottom-right-radius:0!important;border-top-right-radius:0!important}.rounded-t-sm{border-top-left-radius:2px;border-top-right-radius:2px}.rounded-t-xl{border-top-left-radius:12px;border-top-right-radius:12px}.border{border-width:1px}.border-2{border-width:2px}.border-t-\\[1px\\]{border-top-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-stone-300{--tw-border-opacity:1;border-color:rgb(214 211 209/var(--tw-border-opacity))}.border-stone-400{--tw-border-opacity:1;border-color:rgb(168 162 158/var(--tw-border-opacity))}.border-stone-600{--tw-border-opacity:1;border-color:rgb(87 83 78/var(--tw-border-opacity))}.border-opacity-30{--tw-border-opacity:.3}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity))}.bg-stone-300{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.bg-stone-400{--tw-bg-opacity:1;background-color:rgb(168 162 158/var(--tw-bg-opacity))}.bg-stone-600{--tw-bg-opacity:1;background-color:rgb(87 83 78/var(--tw-bg-opacity))}.bg-stone-800{--tw-bg-opacity:1;background-color:rgb(41 37 36/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-opacity-40{--tw-bg-opacity:.4}.bg-opacity-50{--tw-bg-opacity:.5}.bg-opacity-80{--tw-bg-opacity:.8}.bg-opacity-90{--tw-bg-opacity:.9}.bg-none{background-image:none}.object-contain{-o-object-fit:contain;object-fit:contain}.p-1{padding:4px}.p-2{padding:8px}.p-4{padding:16px}.p-6{padding:24px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.px-6{padding-left:24px;padding-right:24px}.py-1{padding-bottom:4px;padding-top:4px}.py-2{padding-bottom:8px;padding-top:8px}.pb-12{padding-bottom:48px}.pb-6{padding-bottom:24px}.pl-1{padding-left:4px}.pt-3{padding-top:12px}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-sans{font-family:Helvetica,sans-serif}.text-base{font-size:16px;line-height:24px}.text-sm{font-size:14px;line-height:20px}.font-medium{font-weight:500}.lowercase{text-transform:lowercase}.leading-none{line-height:1}.text-primary{--tw-text-opacity:1;color:rgb(184 92 56/var(--tw-text-opacity))}.text-stone-100{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.text-stone-300{--tw-text-opacity:1;color:rgb(214 211 209/var(--tw-text-opacity))}.text-stone-400{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.text-stone-900{--tw-text-opacity:1;color:rgb(28 25 23/var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-90{opacity:.9}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.children-pointer-events-auto>*{pointer-events:auto}.last\\:mb-0:last-child{margin-bottom:0}.last\\:border-b-transparent:last-child{border-bottom-color:transparent}@media (hover:hover) and (pointer:fine){.hover\\:bg-stone-100:hover{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.hover\\:bg-stone-300:hover{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.hover\\:bg-stone-50:hover{--tw-bg-opacity:1;background-color:rgb(250 250 249/var(--tw-bg-opacity))}.hover\\:bg-stone-900:hover{--tw-bg-opacity:1;background-color:rgb(28 25 23/var(--tw-bg-opacity))}.hover\\:bg-opacity-10:hover{--tw-bg-opacity:.1}.hover\\:bg-opacity-50:hover{--tw-bg-opacity:.5}.hover\\:text-stone-100:hover{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.hover\\:text-stone-400:hover{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-primary:focus{outline-color:#b85c38}@media (hover:hover) and (pointer:fine){.group:hover .group-hover\\:bg-stone-100{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-opacity-20{--tw-bg-opacity:.2}}@media (min-width:300px){.\\32xs\\:gap-3{gap:12px}}@media (min-width:640px){.sm\\:w-\\[32rem\\]{width:512px}.sm\\:p-3{padding:12px}}@media (min-width:768px){.md\\:px-8{padding-left:32px;padding-right:32px}.md\\:pb-5{padding-bottom:20px}.md\\:text-lg{font-size:18px;line-height:28px}}@media (min-width:1024px){.lg\\:px-10{padding-left:40px;padding-right:40px}.lg\\:pb-3{padding-bottom:12px}}@media (min-width:1280px){.xl\\:px-12{padding-left:48px;padding-right:48px}}
|
|
28
|
-
`]]]),
|
|
29
|
-
`,
|
|
20
|
+
**/const mc="http://www.w3.org/2000/svg",vc="http://www.w3.org/1998/Math/MathML",Et=typeof document<"u"?document:null,Yi=Et&&Et.createElement("template"),bc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t==="svg"?Et.createElementNS(mc,e):t==="mathml"?Et.createElementNS(vc,e):Et.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>Et.createTextNode(e),createComment:e=>Et.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Et.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const s=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Yi.innerHTML=o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e;const l=Yi.content;if(o==="svg"||o==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},$t="transition",Sn="animation",kn=Symbol("_vtc"),tn=(e,{slots:t})=>Ui(Ia,yc(e),t);tn.displayName="Transition";const Xi={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};tn.props=_e({},hi,Xi);const Ht=(e,t=[])=>{ee(e)?e.forEach(n=>n(...t)):e&&e(...t)},Zi=e=>e?ee(e)?e.some(t=>t.length>1):e.length>1:!1;function yc(e){const t={};for(const R in e)R in Xi||(t[R]=e[R]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=i,appearActiveClass:c=s,appearToClass:u=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:b=`${n}-leave-to`}=e,k=_c(r),S=k&&k[0],D=k&&k[1],{onBeforeEnter:P,onEnter:K,onEnterCancelled:L,onLeave:N,onLeaveCancelled:_,onBeforeAppear:x=P,onAppear:F=K,onAppearCancelled:g=L}=t,m=(R,ne,E)=>{Wt(R,ne?u:l),Wt(R,ne?c:s),E&&E()},T=(R,ne)=>{R._isLeaving=!1,Wt(R,p),Wt(R,b),Wt(R,f),ne&&ne()},U=R=>(ne,E)=>{const te=R?F:K,q=()=>m(ne,R,E);Ht(te,[ne,q]),Gi(()=>{Wt(ne,R?a:i),Mt(ne,R?u:l),Zi(te)||Qi(ne,o,S,q)})};return _e(t,{onBeforeEnter(R){Ht(P,[R]),Mt(R,i),Mt(R,s)},onBeforeAppear(R){Ht(x,[R]),Mt(R,a),Mt(R,c)},onEnter:U(!1),onAppear:U(!0),onLeave(R,ne){R._isLeaving=!0;const E=()=>T(R,ne);Mt(R,p),Sc(),Mt(R,f),Gi(()=>{R._isLeaving&&(Wt(R,p),Mt(R,b),Zi(N)||Qi(R,o,D,E))}),Ht(N,[R,E])},onEnterCancelled(R){m(R,!1),Ht(L,[R])},onAppearCancelled(R){m(R,!0),Ht(g,[R])},onLeaveCancelled(R){T(R),Ht(_,[R])}})}function _c(e){if(e==null)return null;if(ge(e))return[rr(e.enter),rr(e.leave)];{const t=rr(e);return[t,t]}}function rr(e){return xo(e)}function Mt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[kn]||(e[kn]=new Set)).add(t)}function Wt(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[kn];n&&(n.delete(t),n.size||(e[kn]=void 0))}function Gi(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let wc=0;function Qi(e,t,n,o){const r=e._endId=++wc,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:l,propCount:a}=xc(e,t);if(!s)return o();const c=s+"end";let u=0;const p=()=>{e.removeEventListener(c,f),i()},f=b=>{b.target===e&&++u>=a&&p()};setTimeout(()=>{u<a&&p()},l+1),e.addEventListener(c,f)}function xc(e,t){const n=window.getComputedStyle(e),o=k=>(n[k]||"").split(", "),r=o(`${$t}Delay`),i=o(`${$t}Duration`),s=Ji(r,i),l=o(`${Sn}Delay`),a=o(`${Sn}Duration`),c=Ji(l,a);let u=null,p=0,f=0;t===$t?s>0&&(u=$t,p=s,f=i.length):t===Sn?c>0&&(u=Sn,p=c,f=a.length):(p=Math.max(s,c),u=p>0?s>c?$t:Sn:null,f=u?u===$t?i.length:a.length:0);const b=u===$t&&/\b(transform|all)(,|$)/.test(o(`${$t}Property`).toString());return{type:u,timeout:p,propCount:f,hasTransform:b}}function Ji(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>es(n)+es(e[o])))}function es(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Sc(){return document.body.offsetHeight}function kc(e,t,n){const o=e[kn];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ir=Symbol("_vod"),ts={beforeMount(e,{value:t},{transition:n}){e[ir]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):In(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),In(e,!0),o.enter(e)):o.leave(e,()=>{In(e,!1)}):In(e,t))},beforeUnmount(e,{value:t}){In(e,t)}};function In(e,t){e.style.display=t?e[ir]:"none"}const Ic=Symbol("");function Cc(e,t,n){const o=e.style,r=o.display,i=we(n);if(n&&!i){if(t&&!we(t))for(const s in t)n[s]==null&&sr(o,s,"");for(const s in n)sr(o,s,n[s])}else if(i){if(t!==n){const s=o[Ic];s&&(n+=";"+s),o.cssText=n}}else t&&e.removeAttribute("style");ir in e&&(o.display=r)}const ns=/\s*!important$/;function sr(e,t,n){if(ee(n))n.forEach(o=>sr(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Tc(e,t);ns.test(n)?e.setProperty(Fe(o),n.replace(ns,""),"important"):e[o]=n}}const os=["Webkit","Moz","ms"],lr={};function Tc(e,t){const n=lr[t];if(n)return n;let o=je(t);if(o!=="filter"&&o in e)return lr[t]=o;o=zn(o);for(let r=0;r<os.length;r++){const i=os[r]+o;if(i in e)return lr[t]=i}return t}const rs="http://www.w3.org/1999/xlink";function Ec(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(rs,t.slice(6,t.length)):e.setAttributeNS(rs,t,n);else{const i=Cl(t);n==null||i&&!Er(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function $c(e,t,n,o,r,i,s){if(t==="innerHTML"||t==="textContent"){o&&s(o,r,i),e[t]=n??"";return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){e._value=n;const c=l==="OPTION"?e.getAttribute("value"):e.value,u=n??"";c!==u&&(e.value=u),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=Er(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function nn(e,t,n,o){e.addEventListener(t,n,o)}function Mc(e,t,n,o){e.removeEventListener(t,n,o)}const is=Symbol("_vei");function Pc(e,t,n,o,r=null){const i=e[is]||(e[is]={}),s=i[t];if(o&&s)s.value=o;else{const[l,a]=Oc(t);if(o){const c=i[t]=zc(o,r);nn(e,l,c,a)}else s&&(Mc(e,l,s,a),i[t]=void 0)}}const ss=/(?:Once|Passive|Capture)$/;function Oc(e){let t;if(ss.test(e)){t={};let o;for(;o=e.match(ss);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Fe(e.slice(2)),t]}let ar=0;const Lc=Promise.resolve(),Ac=()=>ar||(Lc.then(()=>ar=0),ar=Date.now());function zc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Ze(jc(o,n.value),t,5,[o])};return n.value=e,n.attached=Ac(),n}function jc(e,t){if(ee(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const ls=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Dc=(e,t,n,o,r,i,s,l,a)=>{const c=r==="svg";t==="class"?kc(e,o,c):t==="style"?Cc(e,n,o):Pn(t)?vo(t)||Pc(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Rc(e,t,o,c))?$c(e,t,o,i,s,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Ec(e,t,o,c))};function Rc(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&ls(t)&&oe(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return ls(t)&&we(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function Bc(e,t){const n=xe(e);class o extends cr{constructor(i){super(n,i,t)}}return o.def=n,o}const Nc=typeof HTMLElement<"u"?HTMLElement:class{};class cr extends Nc{constructor(t,n={},o){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&o?o(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),mt(()=>{this._connected||(fs(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let o=0;o<this.attributes.length;o++)this._setAttr(this.attributes[o].name);this._ob=new MutationObserver(o=>{for(const r of o)this._setAttr(r.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(o,r=!1)=>{const{props:i,styles:s}=o;let l;if(i&&!ee(i))for(const a in i){const c=i[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=xo(this._props[a])),(l||(l=Object.create(null)))[je(a)]=!0)}this._numberProps=l,r&&this._resolveProps(o),this._applyStyles(s),this._update()},n=this._def.__asyncLoader;n?n().then(o=>t(o,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,o=ee(n)?n:Object.keys(n||{});for(const r of Object.keys(this))r[0]!=="_"&&o.includes(r)&&this._setProp(r,this[r],!0,!1);for(const r of o.map(je))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(i){this._setProp(r,i)}})}_setAttr(t){let n=this.getAttribute(t);const o=je(t);this._numberProps&&this._numberProps[o]&&(n=xo(n)),this._setProp(o,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,o=!0,r=!0){n!==this._props[t]&&(this._props[t]=n,r&&this._instance&&this._update(),o&&(n===!0?this.setAttribute(Fe(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Fe(t),n+""):n||this.removeAttribute(Fe(t))))}_update(){fs(this._createVNode(),this.shadowRoot)}_createVNode(){const t=J(this._def,_e({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const o=(i,s)=>{this.dispatchEvent(new CustomEvent(i,{detail:s}))};n.emit=(i,...s)=>{o(i,s),Fe(i)!==i&&o(Fe(i),s)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof cr){n.parent=r._instance,n.provides=r._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const o=document.createElement("style");o.textContent=n,this.shadowRoot.appendChild(o)})}}const as=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ee(t)?n=>jn(t,n):t};function Vc(e){e.target.composing=!0}function cs(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ur=Symbol("_assign"),Fc={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[ur]=as(r);const i=o||r.props&&r.props.type==="number";nn(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=wo(l)),e[ur](l)}),n&&nn(e,"change",()=>{e.value=e.value.trim()}),t||(nn(e,"compositionstart",Vc),nn(e,"compositionend",cs),nn(e,"change",cs))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},i){if(e[ur]=as(i),e.composing)return;const s=r||e.type==="number"?wo(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===l)||(e.value=l))}},Hc=["ctrl","shift","alt","meta"],Wc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Hc.some(n=>e[`${n}Key`]&&!t.includes(n))},et=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(r,...i)=>{for(let s=0;s<t.length;s++){const l=Wc[t[s]];if(l&&l(r,t))return}return e(r,...i)})},Kc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},us=(e,t)=>{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=r=>{if(!("key"in r))return;const i=Fe(r.key);if(t.some(s=>s===i||Kc[s]===i))return e(r)})},qc=_e({patchProp:Dc},bc);let ds;function Uc(){return ds||(ds=Za(qc))}const fs=(...e)=>{Uc().render(...e)};var ps;const dr=typeof window<"u",Yc=e=>typeof e=="string",Pt=()=>{};dr&&((ps=window==null?void 0:window.navigator)!=null&&ps.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function fo(e){return typeof e=="function"?e():Q(e)}function hs(e,t){function n(...o){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(i)})}return n}function Xc(e,t={}){let n,o,r=Pt;const i=l=>{clearTimeout(l),r(),r=Pt};return l=>{const a=fo(e),c=fo(t.maxWait);return n&&i(n),a<=0||c!==void 0&&c<=0?(o&&(i(o),o=null),Promise.resolve(l())):new Promise((u,p)=>{r=t.rejectOnCancel?p:u,c&&!o&&(o=setTimeout(()=>{n&&i(n),o=null,u(l())},c)),n=setTimeout(()=>{o&&i(o),o=null,u(l())},a)})}}function Zc(e,t=!0,n=!0,o=!1){let r=0,i,s=!0,l=Pt,a;const c=()=>{i&&(clearTimeout(i),i=void 0,l(),l=Pt)};return p=>{const f=fo(e),b=Date.now()-r,k=()=>a=p();if(c(),f<=0)return r=Date.now(),k();if(b>f&&(n||!s))r=Date.now(),k();else if(t)return new Promise((S,D)=>{l=o?D:S,i=setTimeout(()=>{r=Date.now(),s=!0,S(k()),c()},f-b)});return!n&&!i&&(i=setTimeout(()=>s=!0,f)),s=!1,a}}function Gc(e){return e}function fr(e){return Mr()?($l(e),!0):!1}function Ae(e,t=200,n={}){return hs(Xc(t,n),e)}function gs(e,t=200,n=!1,o=!0,r=!1){return hs(Zc(t,n,o,r),e)}function ms(e,t=!0){nr()?Qe(e):t?e():mt(e)}function Kt(e){var t;const n=fo(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Cn=dr?window:void 0,Qc=dr?window.document:void 0;function Ot(...e){let t,n,o,r;if(Yc(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=Cn):[t,n,o,r]=e,!t)return Pt;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const i=[],s=()=>{i.forEach(u=>u()),i.length=0},l=(u,p,f)=>(u.addEventListener(p,f,r),()=>u.removeEventListener(p,f,r)),a=fe(()=>Kt(t),u=>{s(),u&&i.push(...n.flatMap(p=>o.map(f=>l(u,p,f))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return fr(c),c}function vs(e,t=!1){const n=G(),o=()=>n.value=!!e();return o(),ms(o,t),n}const bs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ys="__vueuse_ssr_handlers__";bs[ys]=bs[ys]||{};function _s({document:e=Qc}={}){if(!e)return G("visible");const t=G(e.visibilityState);return Ot(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var ws=Object.getOwnPropertySymbols,Jc=Object.prototype.hasOwnProperty,eu=Object.prototype.propertyIsEnumerable,tu=(e,t)=>{var n={};for(var o in e)Jc.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&ws)for(var o of ws(e))t.indexOf(o)<0&&eu.call(e,o)&&(n[o]=e[o]);return n};function nu(e,t,n={}){const o=n,{window:r=Cn}=o,i=tu(o,["window"]);let s;const l=vs(()=>r&&"ResizeObserver"in r),a=()=>{s&&(s.disconnect(),s=void 0)},c=fe(()=>Kt(e),p=>{a(),l.value&&r&&p&&(s=new ResizeObserver(t),s.observe(p,i))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return fr(u),{isSupported:l,stop:u}}function xs(e,t={width:0,height:0},n={}){const{window:o=Cn,box:r="content-box"}=n,i=ie(()=>{var a,c;return(c=(a=Kt(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),s=G(t.width),l=G(t.height);return nu(e,([a])=>{const c=r==="border-box"?a.borderBoxSize:r==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&i.value){const u=Kt(e);if(u){const p=o.getComputedStyle(u);s.value=parseFloat(p.width),l.value=parseFloat(p.height)}}else if(c){const u=Array.isArray(c)?c:[c];s.value=u.reduce((p,{inlineSize:f})=>p+f,0),l.value=u.reduce((p,{blockSize:f})=>p+f,0)}else s.value=a.contentRect.width,l.value=a.contentRect.height},n),fe(()=>Kt(e),a=>{s.value=a?t.width:0,l.value=a?t.height:0}),{width:s,height:l}}function pr(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:i=.1,window:s=Cn}=n,l=vs(()=>s&&"IntersectionObserver"in s);let a=Pt;const c=l.value?fe(()=>({el:Kt(e),root:Kt(o)}),({el:p,root:f})=>{if(a(),!p)return;const b=new IntersectionObserver(t,{root:f,rootMargin:r,threshold:i});b.observe(p),a=()=>{b.disconnect(),a=Pt}},{immediate:!0,flush:"post"}):Pt,u=()=>{a(),c()};return fr(u),{isSupported:l,stop:u}}var Ss;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Ss||(Ss={}));var ou=Object.defineProperty,ks=Object.getOwnPropertySymbols,ru=Object.prototype.hasOwnProperty,iu=Object.prototype.propertyIsEnumerable,Is=(e,t,n)=>t in e?ou(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,su=(e,t)=>{for(var n in t||(t={}))ru.call(t,n)&&Is(e,n,t[n]);if(ks)for(var n of ks(t))iu.call(t,n)&&Is(e,n,t[n]);return e};su({linear:Gc},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function Cs(e={}){const{window:t=Cn,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:r=!0,includeScrollbar:i=!0}=e,s=G(n),l=G(o),a=()=>{t&&(i?(s.value=t.innerWidth,l.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};return a(),ms(a),Ot("resize",a,{passive:!0}),r&&Ot("orientationchange",a,{passive:!0}),{width:s,height:l}}const lu=(e,t)=>{const n=+(e.getAttribute("data-ripple")??0);if(!n)return;const o=document.createElement("span");let r=1,i=.65;const s=setInterval(a,20);l();function l(){o.style.position="absolute",o.style.height="5px",o.style.width="5px",o.style.borderRadius="100%",o.style.backgroundColor="#f2f2f2",o.style.left=`${t.currentTarget.clientWidth/2}px`,o.style.top=`${t.currentTarget.clientHeight/2}px`,t.currentTarget.appendChild(o)}function a(){const c=+n||50;r<=c?(r++,i-=.65/c,o.style.transform=`scale(${r})`,o.style.opacity=`${i}`):(o.remove(),clearInterval(s))}},on={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>lu(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},au={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},cu={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},uu={key:0,class:"animate-auto-next absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50 animate-auto-next"},du=xe({__name:"AutoNext",props:{hasNext:{type:Boolean}},emits:["next","hide"],setup(e,{emit:t}){const n=t,o=G(null),r=G(null),i=G(!1),s=G(!1),l=G(3);return Qe(()=>{let a;pr(r,c=>{s.value=c.some(u=>u.isIntersecting),l.value=5,a&&(clearInterval(a),a=void 0),s.value&&(a=setInterval(()=>{l.value-=1,l.value<=0&&(clearInterval(a),a=void 0,n("next"))},1e3))}),pr(o,c=>{i.value=c.some(u=>u.isIntersecting)}),Bt(()=>a&&clearInterval(a))}),(a,c)=>(A(),Y("div",{ref_key:"root",ref:o,class:"h-full w-full flex justify-center items-center"},[vt(Z("div",au,[a.hasNext?(A(),Y("div",cu,[s.value?(A(),Y("div",uu)):Ee("",!0),vt((A(),Y("button",{ref_key:"nextButton",ref:r,class:"bg-transparent rounded-full h-full w-full border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:c[0]||(c[0]=et(()=>n("next"),["stop"]))},[Ct(" Next in "+Xe(l.value),1)])),[[Q(on)]])])):Ee("",!0),vt((A(),Y("button",{class:"rounded-full px-6 h-12 bg-transparent border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:c[1]||(c[1]=et(()=>n("hide"),["stop"]))},[Ct(" Hide ")])),[[Q(on)]])],512),[[ts,i.value||!a.hasNext]])],512))}}),fu=`.animate-auto-next{animation:auto-next 5s linear forwards}@keyframes auto-next{0%{width:0}to{width:100%}}
|
|
21
|
+
`,pe=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Ts=pe(du,[["styles",[fu]]]),pu=Object.freeze(Object.defineProperty({__proto__:null,default:Ts},Symbol.toStringTag,{value:"Module"}));function hu({touchDevice:e}){const t=G(!1);let n=0;return to("busy:touchDevice",e),to("setBusyState",o=>{n+=o?1:-1;const r=n>0;t.value!=r&&(t.value=r)}),t}function hr(){const e=Nt("busy:touchDevice"),t=Nt("setBusyState");let n=!1;return Bt(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:r=!1}={})=>{r&&e||(n=o,t==null||t(o))}}const gu={class:"group-hover:bg-stone-100 group-hover:bg-opacity-20 duration-200 rounđe-full p-2 w-full h-full inline-flex justify-center items-center"},tt=xe({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,o=t,r=hr();let i=!1;function s(){i||(i=!0,r(!0,{desktopOnly:!0}))}function l(){i&&(i=!1,r(!1,{desktopOnly:!0}))}function a(c){n.disabled?c.preventDefault():o("click",c)}return(c,u)=>vt((A(),he(ma(c.href?"a":"button"),lo(c.href?{href:c.href}:{},{class:["w-10 h-10 max-w-full max-h-full rounded-full flex-shrink-0",{"cursor-default text-stone-400 hover:text-stone-400":c.disabled,"text-stone-100 hover:text-stone-100 group duration-200":!c.disabled,"bg-black bg-opacity-50":!c.transparent}],onClick:et(a,["stop"]),onMouseenter:s,onMouseleave:l}),{default:re(()=>[Z("div",gu,[Se(c.$slots,"default")])]),_:3},16,["class"])),[[Q(on),c.disabled?0:15]])}}),mu=Object.freeze(Object.defineProperty({__proto__:null,default:tt},Symbol.toStringTag,{value:"Module"})),vu={},bu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},yu=[Z("path",{fill:"currentColor",d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z"},null,-1)];function _u(e,t){return A(),Y("svg",bu,yu)}const Es=pe(vu,[["render",_u]]),wu=Object.freeze(Object.defineProperty({__proto__:null,default:Es},Symbol.toStringTag,{value:"Module"}));class xu{constructor(){ve(this,"listeners");this.listeners=[],this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.init()}init(){window.addEventListener("keydown",this.onKeyDown,{capture:!0}),window.addEventListener("keyup",this.onKeyUp,{capture:!0}),window.addEventListener("keypress",this.onKeyPress,{capture:!0})}dispose(){window.removeEventListener("keydown",this.onKeyDown,{capture:!0}),window.removeEventListener("keyup",this.onKeyUp,{capture:!0}),window.removeEventListener("keypress",this.onKeyPress,{capture:!0})}onKeyPress(t){t.stopImmediatePropagation(),t.stopPropagation()}onKeyDown(t){t.stopImmediatePropagation(),t.stopPropagation(),this.listeners.forEach(n=>{var o;return(o=n.onKeyDown)==null?void 0:o.call(n,t)})}onKeyUp(t){t.stopImmediatePropagation(),t.stopPropagation(),this.listeners.forEach(n=>{var o;return(o=n.onKeyUp)==null?void 0:o.call(n,t)})}addListener(t){this.listeners.push(t)}removeListener(t){const n=this.listeners.indexOf(t);n!==-1&&this.listeners.splice(n,1)}}function Su(){const e=new xu;return Bt(()=>e.dispose()),to("keyController",e),e}function po(e){const t=Nt("keyController");Qe(()=>t.addListener(e)),Bt(()=>t.removeListener(e))}const ku={class:"flex w-full flex-shrink-0 justify-between items-center h-16 px-3"},Iu={class:"font-medium md:text-lg text-ellipsis overflow-hidden whitespace-nowrap px-3"},Cu={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},$s=xe({__name:"BottomSheet",props:en({name:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=xn(e,"modelValue");po({onKeyDown:o});const n=hr();fe(t,r=>n(r));function o(r){t.value&&r.key==="Escape"&&(t.value=!1,r.preventDefault())}return(r,i)=>(A(),Y("div",{class:Ie(["fixed-screen flex flex-col items-center justify-end select-none",{"!pointer-events-none":!t.value}]),onClick:i[3]||(i[3]=()=>t.value=!1)},[J(tn,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:re(()=>[t.value?(A(),Y("div",{key:0,class:"inline-flex flex-col h-[27rem] w-full sm:w-[32rem] max-h-[80vh] bg-stone-800 bg-opacity-90 backdrop-blur-md rounded-t-xl max-w-full overflow-hidden duration-200",onClick:i[1]||(i[1]=et(()=>{},["stop"])),onWheelPassive:i[2]||(i[2]=et(()=>{},["stop"]))},[Z("div",ku,[J(tt,{transparent:"",onClick:i[0]||(i[0]=()=>t.value=!1)},{default:re(()=>[J(Es)]),_:1}),Z("div",Iu,Xe(r.name),1),Se(r.$slots,"actions")]),Z("div",Cu,[Se(r.$slots,"default")])],32)):Ee("",!0)]),_:3})],2))}}),Tu=Object.freeze(Object.defineProperty({__proto__:null,default:$s},Symbol.toStringTag,{value:"Module"})),Eu=["min","max","step"],$u={class:"flex-shrink-0"},gr=pe(xe({__name:"InputPercentage",props:en({min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=xn(e,"modelValue"),n=ie({get(){return t.value},set(o){t.value=+o}});return(o,r)=>(A(),Y("div",{class:Ie(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":o.disabled}]),style:Oe({"--percentage":`${(n.value-o.min)/(o.max-o.min)*100}%`})},[vt(Z("input",{"onUpdate:modelValue":r[0]||(r[0]=i=>n.value=i),type:"range",min:o.min,max:o.max,step:o.step??1,class:"flex-grow"},null,8,Eu),[[Fc,n.value]]),Z("p",$u,[Se(o.$slots,"suffix")])],6))}}),[["styles",[`input[type=range]{--tw-bg-opacity:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:linear-gradient(to right,#d6d3d1 var(--percentage),#78716c var(--percentage));background-color:rgb(120 113 108/var(--tw-bg-opacity));border-radius:2px;border-style:none;cursor:pointer;height:6px;opacity:.9;outline:2px solid transparent;outline-offset:2px}input[type=range]::-webkit-slider-thumb{--tw-border-opacity:1;--tw-bg-opacity:1;-webkit-appearance:none!important;background-color:rgb(214 211 209/var(--tw-bg-opacity));border-color:rgb(214 211 209/var(--tw-border-opacity));border-radius:2px;border-style:solid;border-width:2px;cursor:pointer;height:28px;transition-duration:.2s;width:16px}input[type=range]:hover{opacity:1}
|
|
22
|
+
`]]]),Mu=Object.freeze(Object.defineProperty({__proto__:null,default:gr},Symbol.toStringTag,{value:"Module"})),Pu=["onClick","onKeyup"],ho=xe({__name:"InputSelect",props:en({items:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=xn(e,"modelValue"),o=G(null),r=G({width:"",left:""});Qe(()=>{let s=!1;fe(n,l=>{var c;const a=(c=o.value)==null?void 0:c.children[l+1];a&&(r.value={width:a.offsetWidth+"px",left:a.offsetLeft+"px"},a.scrollIntoView({behavior:s?"smooth":"auto",block:"center",inline:"center"}),s=!0)},{immediate:!0})});function i(s){n.value=s}return(s,l)=>(A(),Y("div",{ref_key:"root",ref:o,class:"relative h-8 rounded-[2.5rem] inline-flex bg-black bg-opacity-90 p-1 text-sm overflow-auto max-w-full scrollbar-none leading-none",style:{}},[Z("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Oe(r.value)},null,4),(A(!0),Y(ke,null,mn(t.items,(a,c)=>vt((A(),Y("div",{key:c,tabindex:"0",class:Ie(["inline-flex justify-center items-center h-6 rounded-2xl px-3 cursor-pointer relative z-10 whitespace-nowrap flex-shrink-0 focus:outline-primary hover:bg-stone-50 hover:bg-opacity-10 duration-200",{"text-stone-900":c==n.value,"text-stone-400":c!=n.value}]),onClick:()=>i(c),onKeyup:[us(()=>i(c),["enter"]),us(()=>i(c),["space"])]},[Ct(Xe(a),1)],42,Pu)),[[Q(on),30]])),128))],512))}}),Ou=Object.freeze(Object.defineProperty({__proto__:null,default:ho},Symbol.toStringTag,{value:"Module"})),Lu={class:"flex items-center mb-8 last:mb-0"},Au={class:"flex-grow overflow-hidden"},rn=xe({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(A(),Y("div",Lu,[Z("div",{class:Ie(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},Xe(t.label),3),Z("div",Au,[Se(t.$slots,"default")])]))}}),zu=Object.freeze(Object.defineProperty({__proto__:null,default:rn},Symbol.toStringTag,{value:"Module"})),ju={},Du={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Ru=[Z("path",{fill:"currentColor",d:"M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5c0-2.21-1.79-4-4-4z"},null,-1)];function Bu(e,t){return A(),Y("svg",Du,Ru)}const Ms=pe(ju,[["render",Bu]]),Nu=Object.freeze(Object.defineProperty({__proto__:null,default:Ms},Symbol.toStringTag,{value:"Module"})),Vu={},Fu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},Hu=[Z("path",{fill:"currentColor",d:"m32.57 15.72l-3.35-1a11.65 11.65 0 0 0-.95-2.33l1.64-3.07a.61.61 0 0 0-.11-.72l-2.39-2.4a.61.61 0 0 0-.72-.11l-3.05 1.63a11.62 11.62 0 0 0-2.36-1l-1-3.31a.61.61 0 0 0-.59-.41h-3.38a.61.61 0 0 0-.58.43l-1 3.3a11.63 11.63 0 0 0-2.38 1l-3-1.62a.61.61 0 0 0-.72.11L6.2 8.59a.61.61 0 0 0-.11.72l1.62 3a11.63 11.63 0 0 0-1 2.37l-3.31 1a.61.61 0 0 0-.43.58v3.38a.61.61 0 0 0 .43.58l3.33 1a11.62 11.62 0 0 0 1 2.33l-1.64 3.14a.61.61 0 0 0 .11.72l2.39 2.39a.61.61 0 0 0 .72.11l3.09-1.65a11.65 11.65 0 0 0 2.3.94l1 3.37a.61.61 0 0 0 .58.43h3.38a.61.61 0 0 0 .58-.43l1-3.38a11.63 11.63 0 0 0 2.28-.94l3.11 1.66a.61.61 0 0 0 .72-.11l2.39-2.39a.61.61 0 0 0 .11-.72l-1.66-3.1a11.63 11.63 0 0 0 .95-2.29l3.37-1a.61.61 0 0 0 .43-.58v-3.41a.61.61 0 0 0-.37-.59ZM18 23.5a5.5 5.5 0 1 1 5.5-5.5a5.5 5.5 0 0 1-5.5 5.5Z",class:"clr-i-solid clr-i-solid-path-1"},null,-1),Z("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function Wu(e,t){return A(),Y("svg",Fu,Hu)}const Ps=pe(Vu,[["render",Wu]]),Ku=Object.freeze(Object.defineProperty({__proto__:null,default:Ps},Symbol.toStringTag,{value:"Module"}));function qu(e){if(e)try{return JSON.parse(e)}catch{return}}function Uu(e){return String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var dt=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(dt||{}),Lt=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(Lt||{});const Yu=.25,Xu=5,Zu=.25,Tn=.25,En=5,Gu=.05,Qu=0,Ju=4;function ed(e){var L,N,_,x,F,g;const{titleName:t,isWebtoon:n}=e,o=ie(()=>t.value?Uu(t.value):location.hostname),r=G(td(`tkr:${o.value}`)),i=m=>{r.value=m;const T=`tkr:${o.value}`;!m||!Object.keys(m).length?localStorage.removeItem(T):localStorage.setItem(T,JSON.stringify(m))},s=m=>{if(!r.value){i(m);return}const T={...r.value};Object.entries(m).forEach(([U,R])=>{R===void 0?delete T[U]:T[U]=R}),i(T)},l=G(((L=r.value)==null?void 0:L.style)??e.defaultStyle??Lt.longStrip),a=G(((N=r.value)==null?void 0:N.direction)??e.defaultDirection??dt.vertical),c=G((_=r.value)==null?void 0:_.gap),u=G(((x=r.value)==null?void 0:x.speed)??1),p=G(((F=r.value)==null?void 0:F.zoom)??1),f=G(((g=r.value)==null?void 0:g.breakFirst)??!1),b=ie({get(){return n.value?Lt.longStrip:l.value},set:m=>{l.value=m,s({style:m}),m!==Lt.longStrip&&a.value===dt.vertical&&(k.value=dt.rtl)}}),k=ie({get:()=>n.value?dt.vertical:a.value,set:m=>{a.value=m,s({direction:m})}}),S=ie({get:()=>c.value!==void 0?c.value:e.maybeWebtoon.value||b.value!==Lt.longStrip?0:1,set(m){c.value=m,s({gap:m})}}),D=ie({get:()=>u.value,set(m){u.value=m,s({speed:m===1?void 0:m})}}),P=ie({get:()=>p.value,set(m){p.value=m,s({zoom:m===1?void 0:m})}}),K=ie({get:()=>f.value,set(m){f.value=m,s({breakFirst:m?!0:void 0})}});return{direction:k,style:b,gap:S,speed:D,zoom:P,isLongStrip:ie(()=>b.value===Lt.longStrip),isDouble:ie(()=>b.value===Lt.double),isRTL:ie(()=>k.value===dt.rtl),isVertical:ie(()=>k.value===dt.vertical),breakFirst:K}}function td(e){const t=localStorage.getItem(e),n=qu(t),o={};return n?(n.style!==void 0&&Object.values(Lt).includes(n.style)&&(o.style=n.style),n.direction!==void 0&&Object.values(dt).includes(n.direction)&&(o.direction=n.direction),n.gap!==void 0&&n.gap>=Qu&&n.gap<=Ju&&(o.gap=n.gap),n.speed!==void 0&&n.speed>=Tn&&n.speed<=En&&(o.speed=n.speed),n.zoom!==void 0&&n.zoom>=Tn&&n.zoom<=En&&(o.zoom=n.zoom),n.breakFirst===!0&&(o.breakFirst=!0),Object.keys(o).length?o:void 0):o}const Os=xe({__name:"ButtonReaderSettings",props:{name:{},direction:{},readerStyle:{},gap:{},speed:{},zoom:{},webtoon:{type:Boolean},disabled:{type:Boolean}},emits:["update:reader-style","update:direction","update:gap","update:speed","update:zoom","help"],setup(e,{emit:t}){const n=e,o=t,r=G(!1),i=ie(()=>n.name??location.hostname);po({onKeyUp:a=>{a.key==="s"&&!a.metaKey&&!a.ctrlKey&&(r.value=!r.value)}});function s(a){o("update:zoom",Math.round(a)/100)}function l(){r.value=!1,o("help")}return(a,c)=>(A(),Y(ke,null,[J(tt,{title:"Reader settings (S)",disabled:a.disabled,onClick:c[0]||(c[0]=()=>r.value=!0)},{default:re(()=>[J(Ps)]),_:1},8,["disabled"]),J($s,{modelValue:r.value,"onUpdate:modelValue":c[5]||(c[5]=u=>r.value=u),name:i.value},{actions:re(()=>[J(tt,{transparent:"",onClick:l},{default:re(()=>[J(Ms)]),_:1})]),default:re(()=>[J(rn,{label:"Style"},{default:re(()=>[J(ho,{"model-value":a.readerStyle,items:a.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":c[1]||(c[1]=u=>o("update:reader-style",u))},null,8,["model-value","items"])]),_:1}),J(rn,{label:"Direction"},{default:re(()=>[J(ho,{"model-value":a.direction,items:a.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":c[2]||(c[2]=u=>o("update:direction",u))},null,8,["model-value","items"])]),_:1}),J(rn,{label:"Gap"},{default:re(()=>[J(ho,{"model-value":a.gap,items:["None","XS","SM","M","L","XL"],"onUpdate:modelValue":c[3]||(c[3]=u=>o("update:gap",u))},null,8,["model-value"])]),_:1}),J(rn,{label:"Speed"},{default:re(()=>[J(gr,{"model-value":a.speed,min:Q(Yu),max:Q(Xu),step:Q(Zu),suffix:"x","onUpdate:modelValue":c[4]||(c[4]=u=>o("update:speed",u))},{suffix:re(()=>[Ct(Xe(a.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),J(rn,{label:"Zoom"},{default:re(()=>[J(gr,{"model-value":Math.ceil(a.zoom*100),min:Q(Tn)*100,max:Q(En)*100,step:Q(Gu)*100,"onUpdate:modelValue":s},{suffix:re(()=>[Ct(Xe(Math.ceil(a.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64))}}),nd=Object.freeze(Object.defineProperty({__proto__:null,default:Os},Symbol.toStringTag,{value:"Module"})),od={},rd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},id=[Z("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[Z("circle",{cx:"14",cy:"14",r:"12"}),Z("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function sd(e,t){return A(),Y("svg",rd,id)}const Ls=pe(od,[["render",sd]]),ld=Object.freeze(Object.defineProperty({__proto__:null,default:Ls},Symbol.toStringTag,{value:"Module"})),ad={key:0,class:"h-9 rounded-full inline-flex justify-between items-center bg-black bg-opacity-50 gap-1 py-2 px-3 pointer-events-auto hover:bg-stone-900 hover:bg-opacity-50 duration-200",title:"Reset zoom"},cd={class:"block w-4 h-4"},ud={class:"w-12"},As=xe({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>t.zoom!==1?(A(),Y("button",ad,[Z("div",cd,[J(Ls)]),Z("div",ud,Xe(Math.ceil(t.zoom*100))+"%",1)])):Ee("",!0)}}),dd=Object.freeze(Object.defineProperty({__proto__:null,default:As},Symbol.toStringTag,{value:"Module"}));async function sn(e,t,n){const o=await n(()=>{e=0});if(o!==void 0)return o;if(!(e<=0))return await new Promise(r=>{setTimeout(async()=>{const i=await sn(e-1,t,n);r(i)},t)})}const fd={},pd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},hd=[rc('<circle cx="18" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".67" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle><circle cx="12" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".33" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle><circle cx="6" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin="0" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle>',3)];function gd(e,t){return A(),Y("svg",pd,hd)}const zs=pe(fd,[["render",gd]]),md=Object.freeze(Object.defineProperty({__proto__:null,default:zs},Symbol.toStringTag,{value:"Module"})),vd={},bd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},yd=[Z("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function _d(e,t){return A(),Y("svg",bd,yd)}const js=pe(vd,[["render",_d]]),wd=Object.freeze(Object.defineProperty({__proto__:null,default:js},Symbol.toStringTag,{value:"Module"})),xd=["aria-hidden"],Sd=["onClick"],kd={class:"inline-flex items-center justify-center w-full h-full px-4 rounded-full group-hover:bg-stone-100 group-hover:bg-opacity-20 duration-200"},Id={class:"whitespace-nowrap"},mr=xe({__name:"ButtonDropdown",props:en({label:{},title:{},items:{},disabled:{type:Boolean},loadItems:{type:Function}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:en(["select"],["update:modelValue"]),setup(e,{emit:t}){const n=e,o=t,r=xn(e,"modelValue"),i=G(null),s=G(!1),l=G(!1),a=G(null),c=G(!1),u=G(!1),p=G(!1);po({onKeyDown:P});const f=hr();async function b(){if(!n.items.length&&(s.value||await k(),!n.items.length)){s.value=!1;return}s.value=!s.value,f(s.value),s.value?(S(),mt(()=>setTimeout(()=>{var g,m;(m=(g=a.value)==null?void 0:g.children[r.value])==null||m.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),L(i.value)):setTimeout(N,250)}async function k(){l.value||n.items.length||!n.loadItems||(l.value=!0,await n.loadItems(),l.value=!1)}function S(){const g=i.value;if(g){const m=g.getBoundingClientRect(),T=m.x+m.width/2;c.value=m.y>window.innerHeight/2,u.value=T<window.innerWidth/3,p.value=T>window.innerWidth/3*2}}function D(g,m){g!=r.value&&(r.value=g,o("select",g,m)),b()}function P(g){s.value&&g.key==="Escape"&&(b(),g.preventDefault())}let K=[];function L(g){const m=window.getComputedStyle(g).zIndex,T=g.style.zIndex;(!m||!(+m>0))&&((!g.parentElement||g.parentElement.childElementCount>1)&&(g.style.zIndex="1",K.push({el:g,zIndex:T})),g.parentElement&&L(g.parentElement))}function N(){K.forEach(({el:g,zIndex:m})=>{g.style.zIndex=m??""}),K=[]}let _=!1;function x(){_||(_=!0,f(!0,{desktopOnly:!0}))}function F(){_&&(_=!1,f(!1,{desktopOnly:!0}))}return(g,m)=>(A(),Y("div",{ref_key:"root",ref:i,class:"select-none relative inline-flex"},[s.value?(A(),Y("div",{key:0,class:"fixed-screen bg-transparent",onClick:b})):Ee("",!0),g.items.length?(A(),he(tn,{key:1,name:"slide-fade","enter-from-class":"scale-y-90 opacity-0 pointer-events-none","leave-to-class":"scale-y-90 opacity-0 pointer-events-none"},{default:re(()=>[s.value?(A(),Y("ul",{key:0,ref_key:"list",ref:a,"aria-hidden":!s.value,class:Ie(["scrollbar-sm duration-150 delay-50 absolute w-40 max-h-[70vh] list-none bg-stone-800 bg-opacity-80 backdrop-blur-md rounded-lg overflow-auto",{"origin-bottom bottom-full -translate-y-1.5":c.value,"origin-top top-full translate-y-1.5":!c.value,"left-1/2 -ml-20 text-center":!u.value&&!p.value,"right-0 text-right":p.value}]),onWheelPassive:m[0]||(m[0]=et(()=>{},["stop"]))},[(A(!0),Y(ke,null,mn(g.items,(T,U)=>vt((A(),Y("li",{key:U,tabindex:"-1",class:Ie(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":U===r.value}]),onClick:R=>D(U,R)},[Z("div",{class:Ie(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":U>0}])},[Se(g.$slots,"item",{item:T},()=>[Ct(Xe(T),1)])],2)],10,Sd)),[[Q(on),30]])),128))],42,xd)):Ee("",!0)]),_:3})):Ee("",!0),vt((A(),Y("button",lo({type:"button",tabindex:"-1",class:["w-full h-10 max-h-full rounded-full bg-black bg-opacity-50 group duration-100",{"pointer-events-none text-stone-400":g.disabled||l.value}]},g.title?{title:g.title}:{},{onClick:et(b,["stop"]),onMouseenter:x,onMouseleave:F}),[Z("div",kd,[Z("span",Id,Xe(g.label),1),g.items.length||g.loadItems?(A(),Y("span",{key:0,class:Ie(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":c.value}]),"aria-hidden":"true"},[l.value?(A(),he(zs,{key:0})):(A(),he(js,{key:1}))],2)):Ee("",!0)])],16)),[[Q(on),30]])],512))}}),Cd=Object.freeze(Object.defineProperty({__proto__:null,default:mr},Symbol.toStringTag,{value:"Module"})),Ds=xe({__name:"ChapterNav",props:{data:{},touchDevice:{type:Boolean}},emits:["getHiddenChapters"],setup(e,{emit:t}){const n=e,o=t;async function r(){o("getHiddenChapters"),await sn(50,50,()=>n.data.chapters.length?!0:void 0)}function i(l,a){var c,u,p;(p=(u=(c=n.data)==null?void 0:c.chapters)==null?void 0:u[l])==null||p.select(s(a))}function s(l){return!n.touchDevice&&(l.ctrlKey||l.metaKey)}return(l,a)=>(A(),he(mr,{modelValue:l.data.activeIndex,label:l.data.activeLabel,title:"Select chapter",items:l.data.chapters,"load-items":r,onSelect:i},{item:re(({item:c})=>[Ct(Xe(c.label),1)]),_:1},8,["modelValue","label","items"]))}}),Td=Object.freeze(Object.defineProperty({__proto__:null,default:Ds},Symbol.toStringTag,{value:"Module"})),Ed={},$d={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Md=[Z("path",{fill:"currentColor",d:"M11.3 19.3q-.275-.275-.288-.7t.263-.7l4.9-4.9H5q-.425 0-.713-.288T4 12q0-.425.288-.713T5 11h11.175l-4.9-4.9q-.275-.275-.263-.7t.288-.7q.275-.275.7-.275t.7.275l6.6 6.6q.15.125.213.313t.062.387q0 .2-.062.375t-.213.325l-6.6 6.6q-.275.275-.7.275t-.7-.275Z"},null,-1)];function Pd(e,t){return A(),Y("svg",$d,Md)}const Rs=pe(Ed,[["render",Pd]]),Od=Object.freeze(Object.defineProperty({__proto__:null,default:Rs},Symbol.toStringTag,{value:"Module"})),Bs=xe({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=sessionStorage.getItem("tk:dir"),o=G(typeof n!="string"||+n!==t.direction),r=Ae(()=>o.value=!1,1250);fe(()=>t.direction,()=>{i(),o.value=!0,r()}),Qe(()=>{i(),r();let s;const l=_s();fe(l,a=>{a!=="visible"?s=Date.now():Date.now()-s>3e4&&(o.value=!0,r())})});function i(){sessionStorage.setItem("tk:dir",t.direction+"")}return(s,l)=>(A(),he(tn,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:re(()=>[o.value?(A(),Y("div",{key:0,class:Ie(["fixed z-50 left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 pointer-events-none w-28 h-24 p-4 bg-black bg-opacity-40 rounded-2xl duration-500",{"rotate-90":s.direction===Q(dt).vertical,"rotate-180":s.direction===Q(dt).rtl}])},[J(Rs)],2)):Ee("",!0)]),_:1}))}}),Ld=Object.freeze(Object.defineProperty({__proto__:null,default:Bs},Symbol.toStringTag,{value:"Module"})),Ad=Z("div",{class:"fixed-screen bg-black bg-opacity-90"},null,-1),Ns=xe({__name:"HelpScreen",props:{touchDevice:{type:Boolean}},emits:["hide"],setup(e,{emit:t}){const n=e,o=t,r=G(null),i=G([]);Qe(async()=>{const c=xs(r),u=Ae(()=>{s({width:c.width.value,height:c.height.value})},50);u(),fe(c.width,u),fe(c.height,u)});function s(c){var f;const u=(f=r.value)==null?void 0:f.parentElement;if(!u)return;const p=Array.from(u.querySelectorAll("#controls [title]"));p.length&&(i.value=l(p,c))}function l(c,u){const p=[],f=[];let b=0,k=0;const S=50,D=25;c.forEach(_=>{var T;const x=(T=_.getAttribute("title"))==null?void 0:T.trim(),F=_.getBoundingClientRect();if(!x||!F.height||!F.width)return;const g=Math.ceil((F.top-10)/S),m=Math.ceil((F.left-10)/S);f.push({isTour:!1,title:x,rect:F,fromX:m,toX:Math.max(m+1,Math.ceil((F.right+10)/S)),fromY:g,toY:Math.max(g+1,Math.ceil((F.bottom+10)/S))})}),f.forEach(_=>{for(let x=_.fromY;x<_.toY;x++){p[x]??(p[x]=[]);for(let F=_.fromX;F<_.toX;F++)p[x][F]=_;_.toY>b+1&&(b=_.toY-1),_.toX>k+1&&(k=_.toX-1)}});let P=k/2;f.forEach(_=>{_.isAlignRight=_.fromX>P});const K=(_,x)=>{p[x]??(p[x]=[]);const F=x>=_.toY;if(_.isTour)for(let g=_.fromX;g<_.toX;g++)delete p[_.fromY][g],_.fromY=x,_.toY=x+(F?1:-1),p[x][g]=_;else{const g=_.isAlignRight?_.fromX-3:_.fromX,m=g+3;_.helpItem={fromX:g,toX:m,fromY:x,toY:x+1,isTour:!0,isAlignRight:_.isAlignRight};for(let T=g;T<m;T++)p[x][T]=_.helpItem}},L=(_,x)=>{if(x>b||x<0)return!1;const F=x>=_.toY,g=p[x];if(!g)return K(_,x),!0;const m=g[_.fromX];if(m&&!m.isTour)return!1;if(m&&m.isTour)return L(m,F?x+1:x-1)?(K(_,x),!0):!1;if(!m){const T=_.isAlignRight?-1:1;return g[_.fromX+T]||g[_.fromX+T*2]?L(_,F?x+1:x-1):(K(_,x),!0)}return!1};f.forEach(_=>{if(!L(_,_.toY)){if(_.isAlignRight){const x=p[_.fromY]??[];if(!x.slice(_.fromX-3,_.fromX).filter(Boolean).length){const g=_.fromX-3,m=_.fromX;_.helpItem={isTour:!0,isAlignRight:!0,fromX:g,toX:m,fromY:_.fromY,toY:_.toY};for(let T=_.fromX-3;T<_.fromX;T++)x[T]=_.helpItem;return}}L(_,_.fromY-1)}});const N=[];return f.forEach(_=>{const{title:x,helpItem:F,rect:g,isAlignRight:m,fromX:T,fromY:U,toY:R}=_;if(!x||!F||!g)return;const ne=F.fromY>=R,E=F.toY<=U;N.push({title:a(x),style:{top:ne?`${g.bottom+(F.fromY-R)*S+D}px`:E?void 0:`${g.top+8}px`,bottom:E?`${u.height-g.top+(F.toY-U)*S+D}px`:void 0,left:m?void 0:`${g.left}px`,right:m?ne?`${u.width-g.right}px`:`${u.width-g.right+g.width+D}px`:void 0},arrowStyle:{width:E||ne?"2px":`${Math.abs(F.toX-T)*S+D-5}px`,height:E||ne?`${(ne?F.fromY-R:U-F.toY)*S+D}px`:"2px",top:ne?`${g.bottom}px`:E?void 0:`${g.top+20}px`,bottom:E?`${u.height-g.top}px`:void 0,left:m?void 0:`${g.left+g.width/2}px`,right:m?ne?`${u.width-g.right+g.width/2}px`:`${u.width-g.right+g.width}px`:void 0}})}),N}function a(c){return n.touchDevice?c.split("(")[0].trim():c}return(c,u)=>(A(),Y(ke,null,[Ad,Z("div",{ref_key:"root",ref:r,class:"fixed-screen z-20 overscroll-contain select-none",onClick:u[0]||(u[0]=et(p=>o("hide"),["stop"]))},[(A(!0),Y(ke,null,mn(i.value,p=>(A(),Y(ke,{key:p.title},[Z("div",{class:"absolute",style:Oe(p.style)},Xe(p.title),5),Z("div",{class:"absolute bg-stone-300 rounded-lg",style:Oe(p.arrowStyle)},null,4)],64))),128))],512)],64))}}),zd=Object.freeze(Object.defineProperty({__proto__:null,default:Ns},Symbol.toStringTag,{value:"Module"})),Vs=xe({__name:"PageNav",props:en({disabled:{type:Boolean},pages:{},totalImgs:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=xn(e,"modelValue"),o=ie(()=>t.pages.map(a=>a.map(({index:c})=>`${c+1}`).join("-"))),r=ie(()=>{const a=n.value,c=t.pages.findIndex(u=>u.some(({index:p})=>p===a));return c===-1?t.pages.length-1:c}),i=ie(()=>t.pages.length?`${o.value[r.value]}/${t.totalImgs}`:"--");function s(a){const c=t.pages[a][0].index;l(c)}function l(a){n.value=a}return(a,c)=>(A(),he(mr,{"model-value":r.value,label:i.value,title:"Current page",items:o.value,disabled:a.disabled,"onUpdate:modelValue":s},null,8,["model-value","label","items","disabled"]))}}),jd=Object.freeze(Object.defineProperty({__proto__:null,default:Vs},Symbol.toStringTag,{value:"Module"})),Dd={},Rd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Bd=[Z("path",{d:"M199.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1),Z("path",{d:"M375.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1)];function Nd(e,t){return A(),Y("svg",Rd,Bd)}const vr=pe(Dd,[["render",Nd]]),Vd=Object.freeze(Object.defineProperty({__proto__:null,default:vr},Symbol.toStringTag,{value:"Module"})),Fd={},Hd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Wd=[Z("path",{d:"M128 104.3v303.4c0 6.4 6.5 10.4 11.7 7.2l240.5-151.7c5.1-3.2 5.1-11.1 0-14.3L139.7 97.2c-5.2-3.3-11.7.7-11.7 7.1z",fill:"currentColor"},null,-1)];function Kd(e,t){return A(),Y("svg",Hd,Wd)}const br=pe(Fd,[["render",Kd]]),qd=Object.freeze(Object.defineProperty({__proto__:null,default:br},Symbol.toStringTag,{value:"Module"})),Fs=pe(xe({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=G(0);return fe(()=>t.playing,()=>{n.value=Date.now()}),(o,r)=>n.value?(A(),Y("div",{key:n.value,class:"animate-pause-fade fixed left-1/2 top-1/2 -mx-12 -my-12 pointer-events-none w-24 h-24 p-4 bg-black bg-opacity-40 rounded-full duration-500"},[o.playing?(A(),he(br,{key:0})):(A(),he(vr,{key:1}))])):Ee("",!0)}}),[["styles",[`.animate-pause-fade{animation:pause-fade .4s linear forwards;transform-origin:center}@keyframes pause-fade{0%{opacity:0;transform:scale(.3)}10%{opacity:1;transform:scale(.35)}55%{opacity:1;transform:scale(.65)}to{opacity:0;transform:scale(1)}}
|
|
23
|
+
`]]]),Ud=Object.freeze(Object.defineProperty({__proto__:null,default:Fs},Symbol.toStringTag,{value:"Module"})),Hs=xe({__name:"GesturesContainer",props:{zoom:{},pageIndex:{},playController:{},rtl:{type:Boolean},horizontal:{type:Boolean},longStrip:{type:Boolean},touchDevice:{type:Boolean},busy:{type:Boolean}},emits:["update:zoom","dragEnd","click"],setup(e,{emit:t}){const n=e,o=t,r=G(null),i=G(Math.min(En,Math.max(Tn,n.zoom))),s=G(!1),l=G(!1),a=G(!1);fe(()=>n.zoom,E=>ne(E)),Qe(()=>{n.touchDevice?Ot(r,"touchstart",D):(Ot(r,"mousedown",f),Ot(window,"wheel",N))}),po({onKeyDown:E=>{var te;if(!n.busy&&((te=r.value)==null||te.focus(),!(E.key==="Meta"||E.key==="Control")&&(E.ctrlKey||E.metaKey)))switch(E.key){case"0":ne(1);break;case"-":ne(i.value-.2),E.preventDefault();break;case"=":case"+":ne(i.value+.2),E.preventDefault();break}}});function c(E){l.value!==E&&(l.value=E,E?n.playController.pause():(o("dragEnd"),n.playController.resume()))}let u={x:0,y:0},p={x:0,y:0};function f(E){E.button===0&&(u={x:E.clientX,y:E.clientY},p={x:r.value.scrollLeft,y:r.value.scrollTop},window.addEventListener("mousemove",b),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",b),setTimeout(()=>c(!1))},{once:!0}),E.preventDefault(),E.stopPropagation())}function b(E){c(!0);const te=E.clientX-u.x,q=E.clientY-u.y,O=r.value;O.scrollLeft=p.x-te,O.scrollTop=p.y-q}let k=!1,S={distance:0,zoom:i.value,x:0,y:0};function D(E){n.busy||(k=E.touches.length===2,k&&(c(!0),E.stopPropagation(),E.preventDefault(),S={distance:_(E),zoom:i.value,x:(E.touches[0].clientX+E.touches[1].clientX)/2,y:(E.touches[0].clientY+E.touches[1].clientY)/2}),(k||n.playController.isPlaying.value&&n.longStrip)&&(window.addEventListener("touchmove",K),window.addEventListener("touchend",P,{once:!0})))}function P(){if(window.removeEventListener("touchmove",K),k){c(!1),k=!1;return}if(!l.value)return;const E=Ae(()=>{c(!1),r.value.removeEventListener("scroll",q)},200),te=setTimeout(E,200);r.value.addEventListener("scroll",q);function q(){clearTimeout(te),E()}}function K(E){if(c(!0),k){E.stopPropagation(),E.preventDefault();const q=_(E)/S.distance;ne(Math.ceil(q*S.zoom*100)/100,S)}}const L=Ae(()=>s.value=!1,100);function N(E){if(!n.busy){if(E.ctrlKey||E.metaKey){E.stopPropagation(),E.preventDefault();const te=Math.ceil((i.value+E.deltaY*-.01)*100)/100;ne(te,{x:E.clientX,y:E.clientY});return}n.horizontal&&(s.value||(s.value=!0),L(),E.deltaY&&(r.value&&(r.value.scrollLeft+=E.deltaY*(n.rtl?-1:1)),E.stopPropagation()))}}function _(E){return Math.hypot(E.touches[0].clientX-E.touches[1].clientX,E.touches[0].clientY-E.touches[1].clientY)}let x,F;function g(E){if(l.value||a.value)return;if(!n.touchDevice){o("click",E);return}const te={x:E.clientX,y:E.clientY},q=x&&Math.abs(te.x-x.x)<30&&Math.abs(te.y-x.y)<30;x??(x=te),q&&(x=void 0,m(te)),F&&(clearTimeout(F),F=void 0),!q&&(F=setTimeout(()=>{!l.value&&!a.value&&o("click",E),F=void 0,x=void 0},250))}function m(E){const te=i.value===1?2:1;ne(te,E)}let T;const U=Ae(()=>{a.value=!1,T=void 0},150);function R(){if(!a.value){const E=r.value;if(!E)return;const te=E.querySelector(`[data-index="${n.pageIndex}"],[data-index2="${n.pageIndex}"]`)??void 0;te&&(T={el:te,rect:te.getBoundingClientRect()},a.value=!0)}if(T)return U(),T}async function ne(E,te){const q=r.value,O=Math.min(En,Math.max(Tn,E));if(!q||i.value===O)return;const V=R();if(!V)return;const ae=(te==null?void 0:te.x)??q.clientWidth/2,de=(te==null?void 0:te.y)??q.clientHeight/2;i.value=O,o("update:zoom",O),await mt();const{el:be,rect:ye}=V,ze=be.offsetWidth/ye.width,nt=be.offsetHeight/ye.height;q.scrollLeft=be.offsetLeft-ye.left*ze+ae*(ze-1),q.scrollTop=be.offsetTop-ye.top*nt+de*(nt-1)}return(E,te)=>(A(),Y("div",{ref_key:"root",ref:r,tabindex:"0",class:Ie(["w-full h-full overflow-auto scrollbar-none overscroll-contain scrollbar-none focus:outline-none touch-pan-x touch-pan-y",{"!snap-none":!E.longStrip&&(l.value||s.value||a.value),"cursor-grabbing":l.value,"overflow-hidden":a.value}]),style:Oe({"font-size":`${i.value}px`}),onClick:et(g,["stop"])},[Se(E.$slots,"default")],6))}}),Yd=Object.freeze(Object.defineProperty({__proto__:null,default:Hs},Symbol.toStringTag,{value:"Module"})),Ws=xe({__name:"IntersectionWrapper",emits:["visible"],setup(e,{emit:t}){const n=t,o=G(null),r=G(!1);return Qe(async()=>{await mt();let i=!1;pr(o,s=>{r.value=s.some(l=>l.isIntersecting),r.value&&!i&&n("visible")})}),(i,s)=>(A(),Y("div",{ref_key:"root",ref:o},[Se(i.$slots,"default",{visible:r.value})],512))}}),Xd=Object.freeze(Object.defineProperty({__proto__:null,default:Ws},Symbol.toStringTag,{value:"Module"})),Zd=`.loading-indicator{display:inline-block;height:80px;position:relative;width:80px}.loading-indicator:after,.loading-indicator:before{animation:lds-ripple 1s cubic-bezier(0,.2,.8,1) infinite;border:4px solid #b85c38;border-radius:9999px;content:"";display:block;opacity:1;position:absolute}.loading-indicator:after{animation-delay:-.5s}@keyframes lds-ripple{0%{height:0;left:36px;opacity:0;top:36px;width:0}4.9%{height:0;left:36px;opacity:0;top:36px;width:0}5%{height:0;left:36px;opacity:1;top:36px;width:0}to{height:72px;left:0;opacity:0;top:0;width:72px}}
|
|
24
|
+
`,Gd={},Qd={class:"loading-indicator"};function Jd(e,t){return A(),Y("div",Qd)}const yr=pe(Gd,[["render",Jd],["styles",[Zd]]]),ef=Object.freeze(Object.defineProperty({__proto__:null,default:yr},Symbol.toStringTag,{value:"Module"}));function tf({pageIndex:e,isLongStrip:t}){let n=e.value,o=e.value+3;const r=G(n),i=G(o),s=Ae(l,50);fe(e,a=>{n>a&&(n=a)});function l(){r.value!==n&&(r.value=n),i.value!==o&&(i.value=o)}return{min:r,max:i,onPageVisible(a){o<a&&(o=a),s()},onScroll(){t.value?l():s()}}}const nf={key:0,class:"page--loading"},of=["src"],rf=["src"],sf=["data-index"],Ks=pe(xe({__name:"ReaderBody",props:{pageIndex:{},direction:{},isLongStrip:{type:Boolean},isVertical:{type:Boolean},isRTL:{type:Boolean},pages:{},totalImgs:{},gap:{},zoom:{},spaceTop:{},touchDevice:{type:Boolean},playController:{},busy:{type:Boolean},idle:{type:Boolean},hasNext:{type:Boolean}},emits:["update:zoom","update:playing","dragEnd","click","end","prev","next"],setup(e,{emit:t}){const n=e,o=t,r=G(null),i=Cs(),s=ie(()=>{const{width:f,height:b}=i,k=n.isLongStrip?n.isVertical?f.value:b.value:Math.min(f.value,b.value);return Math.min(4,Math.max(1,Math.ceil(k/400-1)))*n.gap}),l=tf({pageIndex:ie(()=>n.pageIndex),isLongStrip:ie(()=>n.isLongStrip)}),a=ie(()=>{const{width:{value:f},height:{value:b}}=i;return n.pages.map(k=>{var F;const S=k.some(g=>{var m;return(m=g.img)==null?void 0:m.isLoading}),D=k.map(g=>g.index),P={isLoading:S,indexes:D};if(S||D[D.length-1]<l.min.value-1||D[0]>l.max.value+2)return P;const K=k.map(({img:g})=>g).filter(Boolean);if(!K.length||(P.srcs=K.map(({src:g})=>g),K.every(g=>g.hasError)))return P;const N=(F=K.find(g=>!g.hasError))==null?void 0:F.size,_=K.reduce((g,m)=>{var T;return g+(((T=m.size)==null?void 0:T.width)??N.width)},0),x=K.reduce((g,m)=>{var T;return g+(((T=m.size)==null?void 0:T.height)??N.height)},0)/K.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&f/_<b/x?(P.width=Math.min(f,_),P.height=x*P.width/_):P.height=Math.min(b,x),P})}),c=ie(()=>{const f=n.isVertical?"width":"height";return a.value.map(b=>b[f]).filter(Boolean).sort((b,k)=>k-b)[0]});function u({indexes:f}){const b=f[f.length-1];b!==void 0&&l.onPageVisible(b)}function p(f){if(!n.isLongStrip){const b=n.isVertical?i.height.value:i.width.value,S=(n.isVertical?f.clientY:n.isRTL?b-f.clientX:f.clientX)/b;if(S<=.2&&n.pageIndex>0){o("prev");return}else if(S>=.8){o("next");return}}o("click")}return(f,b)=>(A(),he(Hs,{zoom:f.zoom,"page-index":f.pageIndex,class:Ie(["reader-body",{"reader-body--long-strip":f.isLongStrip,"reader-body--pages":!f.isLongStrip,"reader-body--vertical":f.isVertical,"reader-body--rtl":f.isRTL,"reader-body--idle":f.idle,"reader-body--first":!f.isLongStrip&&f.pageIndex===0,"reader-body--last":!f.isLongStrip&&f.pageIndex===f.totalImgs&&!f.hasNext,"reader-body--1page":a.value.length===1}]),"play-controller":f.playController,horizontal:!f.isVertical,rtl:f.isRTL,"touch-device":f.touchDevice,busy:f.busy,"long-strip":f.isLongStrip,style:Oe({"--gap":`${s.value}em`,"--space-top":(f.spaceTop||0)+"px","--screen-width-em":Q(i).width.value+"em","--screen-height-em":Q(i).height.value+"em",...f.isLongStrip?{"--max-size-em":c.value+"em"}:{}}),"onUpdate:zoom":b[0]||(b[0]=k=>o("update:zoom",k)),onDragEnd:b[1]||(b[1]=()=>o("dragEnd")),onClick:p,onScroll:Q(l).onScroll},{default:re(()=>[(A(!0),Y(ke,null,mn(a.value,k=>(A(),he(Ws,lo({key:f.direction+"_"+k.indexes[0],"data-index":k.indexes[0]},k.indexes.length>1?{"data-index2":k.indexes[1]}:{},{onVisible:()=>u(k)}),{default:re(({visible:S})=>{var D;return[!((D=k.srcs)!=null&&D.length)||k.isLoading?(A(),Y("div",nf,[vt(J(yr,null,null,512),[[ts,S]])])):k.srcs.length==1?(A(),Y("img",{key:1,src:k.srcs[0],style:Oe({height:k.height!==void 0?k.height+"em":""})},null,12,of)):(A(),Y("div",{key:2,class:Ie(["page--double",{"flex-row-reverse":f.isRTL}]),style:Oe({width:k.width!==void 0?k.width+"em":"",height:k.height!==void 0?k.height+"em":""})},[(A(!0),Y(ke,null,mn(k.srcs,P=>(A(),Y("div",{key:P},[Z("img",{src:P},null,8,rf)]))),128))],6))]}),_:2},1040,["data-index","onVisible"]))),128)),Z("div",{ref_key:"autoNextEl",ref:r,class:"last","data-index":f.totalImgs},[Se(f.$slots,"end")],8,sf)]),_:3},8,["zoom","page-index","play-controller","horizontal","rtl","touch-device","busy","long-strip","class","style","onScroll"]))}}),[["styles",[`.reader-body{--tw-translate-y:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (min-width:1024px){.reader-body{transform:none}}.reader-body--rtl{flex-direction:row-reverse}.reader-body.reader-body--vertical>div{padding:calc(var(--gap)/2) 0}.reader-body:not(.reader-body--vertical){align-items:center;display:flex;height:100%;justify-content:flex-start}.reader-body:not(.reader-body--vertical)>div{padding:0 calc(var(--gap)/2)}.reader-body--long-strip.reader-body--vertical.reader-body--1page>div:first-child{min-height:100vh}.reader-body--long-strip.reader-body--vertical>div:first-child{margin-top:var(--space-top);padding-top:0}.reader-body--long-strip.reader-body--vertical>div:last-child{padding-bottom:0}.reader-body--long-strip.reader-body--vertical>div{width:var(--max-size-em)}.reader-body--long-strip.reader-body--vertical .page--loading{height:75vh;max-width:100%;width:100vw}.reader-body--long-strip.reader-body--vertical .last{height:100vh}.reader-body--long-strip:not(.reader-body--vertical).reader-body--1page>div:first-child{min-width:100vw}.reader-body--long-strip:not(.reader-body--vertical)>div{align-items:center;display:flex;height:var(--max-size-em)}.reader-body--long-strip:not(.reader-body--vertical) .page--loading{height:100vh;max-height:100%;max-width:100vw;width:680px}.reader-body--long-strip:not(.reader-body--vertical) .last{width:100vw}.reader-body--long-strip>div>img{flex-shrink:0;margin:auto}.reader-body--pages:after,.reader-body--pages:before{content:"";cursor:pointer;display:block;position:fixed;z-index:10}.reader-body--pages.reader-body--first:before,.reader-body--pages.reader-body--last:after{cursor:default}.reader-body--pages.reader-body--idle:after,.reader-body--pages.reader-body--idle:before{cursor:none}.reader-body--pages>div{align-items:center;display:grid;justify-content:center;min-height:100vh;min-width:100vw;scroll-snap-align:center}.reader-body--pages.reader-body--vertical{--tw-scroll-snap-strictness:mandatory;scroll-snap-type:y var(--tw-scroll-snap-strictness)}.reader-body--pages.reader-body--vertical:after,.reader-body--pages.reader-body--vertical:before{height:20vw;left:0;right:0}.reader-body--pages.reader-body--vertical:before{top:0}.reader-body--pages.reader-body--vertical:after{bottom:0}.reader-body--pages.reader-body--vertical>div{width:var(--screen-width-em)}.reader-body--pages:not(.reader-body--vertical){--tw-scroll-snap-strictness:mandatory;scroll-snap-type:x var(--tw-scroll-snap-strictness)}.reader-body--pages:not(.reader-body--vertical).reader-body--rtl:before{right:0}.reader-body--pages:not(.reader-body--vertical).reader-body--rtl:after,.reader-body--pages:not(.reader-body--vertical):not(.reader-body--rtl):before{left:0}.reader-body--pages:not(.reader-body--vertical):not(.reader-body--rtl):after{right:0}.reader-body--pages:not(.reader-body--vertical):after,.reader-body--pages:not(.reader-body--vertical):before{bottom:0;top:0;width:20vw}.reader-body--pages:not(.reader-body--vertical)>div{height:var(--screen-height-em)}.reader-body--pages .page--loading{height:100vh;width:100vw}.reader-body--pages .page--double{align-items:center;display:flex;gap:var(--gap);justify-content:center}.reader-body--pages .page--double div{display:flex;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none}.reader-body--pages .page--double div img{flex-shrink:0;max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}.reader-body>div{flex-shrink:0;margin:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none}.reader-body .page--loading{align-items:center;display:flex;justify-content:center}.reader-body img{--tw-bg-opacity:1!important;background-color:rgb(41 37 36/var(--tw-bg-opacity))!important;-o-object-fit:contain!important;object-fit:contain!important;-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}
|
|
25
|
+
`]]]),lf=Object.freeze(Object.defineProperty({__proto__:null,default:Ks},Symbol.toStringTag,{value:"Module"})),af={key:0,class:"fixed inset-0 h-[101%] flex justify-center items-center z-10 bg-black"},cf={class:"flex justify-between items-end"},uf={class:"inline-block children-pointer-events-auto w-1/3"},df={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},ff={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},pf={class:"inline-block z-20 relative"},qs=pe(xe({__name:"ReaderLayout",props:{loading:{type:Boolean},immediate:{type:Boolean},idle:{type:Boolean},fullScreen:{type:Boolean},rtl:{type:Boolean},spaceTop:{}},setup(e){return(t,n)=>(A(),Y("div",{class:Ie(["reader-layout",{"cursor-none":t.idle,"cursor-default":!t.idle,"bg-black":t.immediate||!t.loading,"opacity-0":!t.immediate&&t.loading,"duration-200 transition-colors":!t.immediate}])},[t.loading&&t.immediate?(A(),Y("div",af,[J(yr)])):Ee("",!0),Se(t.$slots,"default"),Z("div",{id:"controls",class:Ie(["fixed pointer-events-none cursor-auto transition-opacity duration-100 ease-linear left-0 top-0 w-screen h-screen flex flex-col justify-between p-2 sm:p-3 pb-6 md:pb-5 lg:pb-3",{"opacity-100 z-20":!t.fullScreen,"opacity-0 -z-10":t.fullScreen}])},[Z("div",{class:"flex gap-1 items-center children-pointer-events-auto relative z-30 flex-shrink-0 2xs:gap-3",style:Oe({paddingTop:`${t.spaceTop||0}px`})},[Se(t.$slots,"back"),Se(t.$slots,"exit"),Se(t.$slots,"chapter-nav")],4),Z("div",cf,[Z("div",uf,[Se(t.$slots,"page-nav")]),Z("div",df,[Se(t.$slots,"reset-zoom")]),Z("div",ff,[Se(t.$slots,"entry"),Z("div",pf,[Se(t.$slots,"settings")]),Se(t.$slots,"full-screen"),Se(t.$slots,"play"),Se(t.$slots,"break-first")])]),Z("div",{class:Ie(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":t.rtl}])},[Se(t.$slots,"progress")],2)],2)],2))}}),[["styles",[`.reader-layout{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity));direction:ltr;font-family:Helvetica,sans-serif;font-size:16px;height:100vh;left:0;line-height:24px;overflow:hidden;overscroll-behavior:contain;position:fixed;text-align:left;top:0;width:100vw}
|
|
26
|
+
`]]]),hf=Object.freeze(Object.defineProperty({__proto__:null,default:qs},Symbol.toStringTag,{value:"Module"})),Us=pe(xe({__name:"ReaderTour",emits:["hide"],setup(e,{emit:t}){const n=t,o=G(null),r=G(0),i=G([]),s=ie(()=>i.value[r.value]),l=gs(a,500);Qe(()=>{const p=xs(o),f=Ae(()=>c({width:p.width.value,height:p.height.value}),50);f(),fe(p.width,f),fe(p.height,f)});function a(){r.value>=i.value.length-1?n("hide"):r.value++}function c(p){const f=u();i.value=f.map(({rect:b,text:k})=>{const S=b.top<p.height-b.bottom,D=b.left<p.width-b.right;return{text:k,style:{left:`${b.left}px`,top:`${b.top}px`,width:`${b.width}px`,height:`${b.height}px`},textStyle:{left:D?`${b.left-12}px`:void 0,right:D?void 0:`${p.width-b.left}px`,top:S?`${b.bottom+12}px`:`${b.top+20}px`,textAlign:S?void 0:"right",transform:S?void 0:"translateY(-50%)"}}}),r.value>=i.value.length&&(r.value=i.value.length-1)}function u(){var b;const p=(b=o.value)==null?void 0:b.parentElement;if(!p)return[];const f=[];return p.querySelectorAll("[data-tour]").forEach(k=>{var P;const S=(P=k.getAttribute("data-tour"))==null?void 0:P.trim();if(!(S!=null&&S.length))return;const D=k.getBoundingClientRect();f.push({rect:D,text:S})}),f}return(p,f)=>{var b,k;return A(),Y(ke,null,[Z("div",{class:Ie(["fixed-screen bg-black bg-opacity-50 duration-500",{"opacity-0":!s.value,"opacity-100":!!s.value}])},null,2),Z("div",{ref_key:"root",ref:o,class:"tour",onClick:f[0]||(f[0]=et((...S)=>Q(l)&&Q(l)(...S),["stop"]))},[s.value?(A(),Y("div",{key:r.value,class:"tour__target",style:Oe(s.value.style)},null,4)):Ee("",!0),(A(),Y("div",{key:r.value,class:"tour__text",style:Oe((b=s.value)==null?void 0:b.textStyle)},Xe(((k=s.value)==null?void 0:k.text)??""),5))],512)],64)}}}),[["styles",[`.tour{height:100vh;left:0;overflow:hidden;position:fixed;top:0;width:100vw;z-index:20}.tour__target{--tw-border-opacity:1;animation:tour-target-anim .5s forwards;border-color:rgb(120 113 108/var(--tw-border-opacity));border-radius:9999px;border-width:2px;box-shadow:0 0 0 99999px #000000e6}.tour__target,.tour__text{position:absolute}.tour__text{animation:tour-text-anim 1s forwards,tour-text-bounce .75s ease-in-out infinite alternate;max-width:320px;padding-left:12px;padding-right:12px;transition-duration:1s}@keyframes tour-target-anim{0%{--tw-border-opacity:0;opacity:0;transform:scale(3)}to{--tw-border-opacity:1;opacity:.9;transform:scale(1)}}@keyframes tour-text-anim{0%{opacity:0}to{opacity:1}}@keyframes tour-text-bounce{0%{margin-top:0}to{margin-top:10px}}
|
|
27
|
+
`]]]),gf=Object.freeze(Object.defineProperty({__proto__:null,default:Us},Symbol.toStringTag,{value:"Module"})),mf={},vf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},bf=[Z("path",{fill:"currentColor",d:"m10.875 19.3l-6.6-6.6q-.15-.15-.213-.325T4 12q0-.2.063-.375t.212-.325l6.6-6.6q.275-.275.688-.287t.712.287q.3.275.313.688T12.3 6.1L7.4 11h11.175q.425 0 .713.288t.287.712q0 .425-.287.713t-.713.287H7.4l4.9 4.9q.275.275.288.7t-.288.7q-.275.3-.7.3t-.725-.3Z"},null,-1)];function yf(e,t){return A(),Y("svg",vf,bf)}const Ys=pe(mf,[["render",yf]]),_f=Object.freeze(Object.defineProperty({__proto__:null,default:Ys},Symbol.toStringTag,{value:"Module"})),wf={},xf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Sf=[Z("path",{fill:"currentColor",d:"M6.4 20.4q-.5.2-.95-.087T5 19.475V5q0-.825.588-1.413T7 3h6v2H7v12.95l5-2.15l5 2.15V11h2v8.475q0 .55-.45.838t-.95.087L12 18l-5.6 2.4ZM7 5h6h-6Zm11 4q-.425 0-.713-.287T17 8V7h-1q-.425 0-.713-.288T15 6q0-.425.288-.713T16 5h1V4q0-.425.288-.713T18 3q.425 0 .713.288T19 4v1h1q.425 0 .713.288T21 6q0 .425-.288.713T20 7h-1v1q0 .425-.288.713T18 9Z"},null,-1)];function kf(e,t){return A(),Y("svg",xf,Sf)}const Xs=pe(wf,[["render",kf]]),If=Object.freeze(Object.defineProperty({__proto__:null,default:Xs},Symbol.toStringTag,{value:"Module"})),Cf={},Tf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Ef=[Z("path",{fill:"currentColor",d:"M17.825 8.575q-.2 0-.375-.062t-.325-.213L15.7 6.875q-.3-.3-.3-.712t.3-.688q.275-.3.7-.3t.7.275l.725.725l2.825-2.85q.3-.3.7-.3t.725.3q.275.3.275.725t-.275.7l-3.55 3.55q-.15.15-.325.213t-.375.062ZM6.4 20.4q-.5.2-.95-.087T5 19.475V5q0-.825.588-1.413T7 3h7q-.5.75-.75 1.438T13 6q0 1.8 1.137 3.175T17 10.9q.575.075 1 .075t1-.075v8.575q0 .55-.45.838t-.95.087L12 18l-5.6 2.4Z"},null,-1)];function $f(e,t){return A(),Y("svg",Tf,Ef)}const Zs=pe(Cf,[["render",$f]]),Mf=Object.freeze(Object.defineProperty({__proto__:null,default:Zs},Symbol.toStringTag,{value:"Module"})),Pf={},Of={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Lf=[Z("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function Af(e,t){return A(),Y("svg",Of,Lf)}const Gs=pe(Pf,[["render",Af]]),zf=Object.freeze(Object.defineProperty({__proto__:null,default:Gs},Symbol.toStringTag,{value:"Module"})),jf={},Df={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Rf=[Z("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function Bf(e,t){return A(),Y("svg",Df,Rf)}const Qs=pe(jf,[["render",Bf]]),Nf=Object.freeze(Object.defineProperty({__proto__:null,default:Qs},Symbol.toStringTag,{value:"Module"})),Vf={},Ff={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 56 56"},Hf=[Z("path",{fill:"currentColor",d:"M29.84 49.574h12.398c4.899 0 7.336-2.437 7.336-7.265V13.69c0-4.828-2.437-7.265-7.336-7.265H29.84Zm-16.055 0h12.398V6.426H13.785c-4.875 0-7.36 2.414-7.36 7.265V42.31c0 4.851 2.485 7.265 7.36 7.265"},null,-1)];function Wf(e,t){return A(),Y("svg",Ff,Hf)}const Js=pe(Vf,[["render",Wf]]),Kf=Object.freeze(Object.defineProperty({__proto__:null,default:Js},Symbol.toStringTag,{value:"Module"})),qf={},Uf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Yf=[Z("g",{fill:"none"},[Z("path",{d:"M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z"}),Z("path",{fill:"currentColor",d:"M8 3v18H5a2 2 0 0 1-1.995-1.85L3 19V5a2 2 0 0 1 1.85-1.995L5 3zm11 0a2 2 0 0 1 1.995 1.85L21 5v14a2 2 0 0 1-1.85 1.995L19 21h-9V3z"})],-1)];function Xf(e,t){return A(),Y("svg",Uf,Yf)}const el=pe(qf,[["render",Xf]]),Zf=Object.freeze(Object.defineProperty({__proto__:null,default:el},Symbol.toStringTag,{value:"Module"})),Gf={},Qf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Jf=[Z("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function ep(e,t){return A(),Y("svg",Qf,Jf)}const tl=pe(Gf,[["render",ep]]),tp=Object.freeze(Object.defineProperty({__proto__:null,default:tl},Symbol.toStringTag,{value:"Module"})),np={},op={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},rp=[Z("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function ip(e,t){return A(),Y("svg",op,rp)}const nl=pe(np,[["render",ip]]),sp=Object.freeze(Object.defineProperty({__proto__:null,default:nl},Symbol.toStringTag,{value:"Module"})),lp={},ap={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},cp=[Z("path",{fill:"currentColor",d:"M16.5 16V8l-4 4l4 4ZM5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.588 1.413T19 21H5Zm3-2V5H5v14h3Zm2 0h9V5h-9v14Zm-2 0H5h3Z"},null,-1)];function up(e,t){return A(),Y("svg",ap,cp)}const ol=pe(lp,[["render",up]]),dp=Object.freeze(Object.defineProperty({__proto__:null,default:ol},Symbol.toStringTag,{value:"Module"}));function ln(e=0){return new Promise(t=>setTimeout(t,e))}function rl(e){return new Promise(t=>{const n=o=>{if(!o)return t(void 0);const r=URL.createObjectURL(o);t(r)};e.toBlob(n,"image/jpeg",1)})}async function fp(e,t){if(!t.startsWith("blob:"))return t;if(!e.naturalWidth||!e.naturalHeight)return;const o=document.createElement("canvas"),r=o.getContext("2d"),i=e.naturalWidth,s=e.naturalHeight;return o.width=i,o.height=s,r==null||r.drawImage(e,0,0,i,s),await rl(o)}function go(e){const t=e.getAttributeNames(),n=t.indexOf("src");n!==-1&&(t.splice(n,1),t.push("src"));for(const o of t){if(o==="srcset"||o!=="data-url"&&o!=="data-original"&&!o.includes("src"))continue;const r=e.getAttribute(o);if(r)return o==="src"&&e.naturalWidth&&e.naturalWidth<200?void 0:r.replace(/(\n|\t)/g," ").trim()}}async function pp(e,t){return(t==null?void 0:t.src)===e&&t.naturalWidth&&t.naturalHeight?{width:t.naturalWidth,height:t.naturalHeight}:await new Promise(n=>{const o=new Image,r=setInterval(()=>{const{naturalWidth:i,naturalHeight:s}=o;s&&i&&(n({width:i,height:s}),clearInterval(r))},20);o.onerror=()=>{n(void 0),clearInterval(r)},o.src=e})}class hp{constructor({isIOS:t,onDownloaded:n}){ve(this,"reactiveResults",cn({}));ve(this,"isIOS");ve(this,"tkLoadId",Date.now());ve(this,"isMounted",!0);ve(this,"onDisposeCallbacks",[]);ve(this,"onDownloaded");this.isIOS=t,this.onDownloaded=n}dispose(){this.isMounted=!1,this.onDisposeCallbacks.forEach(t=>t()),this.onDisposeCallbacks=[],this.onDownloaded=()=>{}}async download(t){var l;if(!this.isMounted)return;const n=t.el;let o=t.computedSrc;if(!n&&!o)return;const r=n instanceof HTMLImageElement,i=n instanceof HTMLCanvasElement;if(n){if(n._tkLoadId===this.tkLoadId)return;if(n._tkLoadId=this.tkLoadId,r){const a=()=>this.onImgElLoaded(t,n);n.addEventListener("load",a),this.onDisposeCallbacks.push(()=>{n.removeEventListener("load",a)})}}if(r&&!o){if(o=go(n),!o)return;n._tkSrc=o}else if(i&&!o){if(o=await rl(n),!o)return;n._tkSrc=o}if(!o||!this.isMounted)return;const s=r&&o.startsWith("blob");s&&!n.complete||((l=this.reactiveResults)[o]??(l[o]={src:o,isLoading:!0,hasError:!1}),s&&this.isIOS&&await ln(300),await this.downloadSrc(t))}async onImgElLoaded(t,n){var r;if(!this.isMounted)return;const o=go(n);o&&(!o.startsWith("blob")&&t.computedSrc===o||(n._tkSrc=o,(r=this.reactiveResults)[o]??(r[o]={src:o,isLoading:!0,hasError:!1}),this.downloadSrc(t)))}async downloadSrc(t){const n=t.computedSrc;if(!n)return;const o=t.el instanceof HTMLImageElement?t.el:void 0,r=o?await fp(o,n):n;if(!r)return;const i=await pp(r,o);if(!this.isMounted)return;const s=!!i&&(i.width<200||i.height<200);this.reactiveResults[n]={src:r,size:i,isLoading:!1,hasError:!i,invalid:s},i&&this.onDownloaded(t,i)}}const gp=3;class mp{constructor({getItems:t,getActiveIndex:n,isCompleted:o,callback:r}){ve(this,"isQueueStarted",!1);ve(this,"debouncedEnqueue");ve(this,"concurrentCount",0);ve(this,"getItems");ve(this,"getActiveIndex");ve(this,"isCompleted");ve(this,"callback");ve(this,"activeIndex",0);ve(this,"completedItems");ve(this,"isMounted",!0);this.getItems=t,this.getActiveIndex=n,this.isCompleted=o,this.callback=r,this.debouncedEnqueue=Ae(this.enqueue.bind(this),50)}dispose(){this.isMounted=!1}run(){this.isQueueStarted?this.debouncedEnqueue():(this.isQueueStarted=!0,this.enqueue())}get canEnqueue(){return this.concurrentCount<gp&&this.isMounted}async enqueue(){if(!this.canEnqueue)return;const t=this.getItems();if(t===this.completedItems)return;this.completedItems=void 0;const n=this.resetActiveIndex(),o=Math.max(0,Math.min(t.length-1,n-1)),r=[];for(let i=o;i<t.length;i++){if(!this.canEnqueue)return;r.push(await this.invokeItemCallback(i,i==t.length-1))}for(let i=o-1;i>=0;i--){if(!this.canEnqueue)return;r.push(await this.invokeItemCallback(i,i==0))}this.getItems()===t&&r.filter(Boolean).length==t.length&&(this.completedItems=t)}async invokeItemCallback(t,n){const o=this.getItems()[t];return o?this.isCompleted(o)?!0:(this.concurrentCount++,this.callback(o).then(()=>{this.concurrentCount=Math.max(0,this.concurrentCount-1),n||this.debouncedEnqueue()}),await ln(),!1):!1}resetActiveIndex(){const t=this.getActiveIndex();return t<this.activeIndex&&(this.concurrentCount=Math.max(0,this.concurrentCount-Math.abs(t-this.activeIndex))),this.activeIndex=t,t}}class qt{constructor(t,n,o){this.src=t,this.el=n,this.parentEl=o}get computedSrc(){var t;return this.src??((t=this.el)==null?void 0:t._tkSrc)}}function _r(e,t){if(!e||e===document.body)return!0;const n=t.get(e);if(n!==void 0)return n;const o=getComputedStyle(e);if(!(o.display!=="none"&&+(o.opacity??"1")>.1))return t.set(e,!1),!1;const i=_r(e.parentElement,t);return t.set(e,i),i}function il(e){const t=e.tagName.toLowerCase();if(t==="option"){const n=e.parentElement;if(n.tagName.toLowerCase()!=="select")return;n.value=e.getAttribute("value")||"",n.dispatchEvent(new Event("change"));return}return t==="a"&&e.addEventListener("click",n=>n.preventDefault(),{once:!0}),e.click()}async function vp(e){const{lstrip:t,lstripBtn:n}=e||{};if(!t||!n||!!document.querySelector(t))return!1;const r=await sn(50,30,()=>document.querySelector(n));return r?(il(r),await ln(),!0):!1}class bp{constructor({spec:t,onChanged:n}){ve(this,"spec");ve(this,"onChanged");ve(this,"rawImages",[]);ve(this,"isMounted",!0);ve(this,"loadRawImagesTs");ve(this,"disconnectObservers");this.spec=t,this.onChanged=n,this.init()}dispose(){var t;this.isMounted=!1,(t=this.disconnectObservers)==null||t.call(this),this.disconnectObservers=void 0,this.onChanged=()=>{}}init(){var s;let t;const n=Ae(()=>{t&&this.loadRawImages(t)},100),o=new MutationObserver(n),r=(s=this.spec)!=null&&s.imgDivs?void 0:(()=>{let l=window.innerWidth;return new ResizeObserver(Ae(()=>{const a=window.innerWidth;if(a!==l){l=a;return}n()},50))})();this.disconnectObservers=async()=>{o.disconnect(),r==null||r.disconnect()};let i=!1;this.loadContentEl(l=>{t!==l&&(t=l,o.disconnect(),r==null||r.disconnect(),o.observe(t,{childList:!0,subtree:!0}),r==null||r.observe(t),i?n():(i=!0,this.loadRawImages(t)))})}setRawImages(t){let n=!1;const o=t.map((r,i)=>{const s=this.rawImages[i];return s&&s.el===r.el&&s.parentEl===r.parentEl&&s.src===r.src?s:(n=!0,r)});(n||!o.length)&&(this.rawImages=o,this.onChanged(t))}async loadContentEl(t){var l;const n=(l=this.spec)==null?void 0:l.content;if(!n){t(document.body);return}const o=await vp(this.spec);let r=await sn(o?100:1,10,()=>document.querySelector(n));if(!r)return;t(r);let i=0;const s=async()=>{if(this.isMounted&&!(r!=null&&r.isConnected)){if(i=0,r=await sn(50,20,()=>{const a=document.querySelector(n);return a!=null&&a.isConnected&&a!==r?a:void 0}),!r)return;t(r)}!this.isMounted||++i>=10||setTimeout(s,200)};setTimeout(s,200)}async loadRawImages(t){var i;if(!this.isMounted||!t.isConnected)return;const n=Date.now();this.loadRawImagesTs=n;const o=(i=this.spec)==null?void 0:i.imgDivs,r=o?await yp(t,o):sl(t);this.loadRawImagesTs!==n||!t.isConnected||!this.isMounted||this.setRawImages(r)}}async function yp(e,t){const n=Array.from(e.querySelectorAll(t));if(!n.length)return sl(e);const o=new Map;return n.map(i=>{const s=Array.from(i.querySelectorAll("img,canvas"));for(const l of s)if(_r(l,o)){if(l instanceof HTMLCanvasElement){if(ll(l))return new qt(void 0,l,i)}else if(l instanceof HTMLImageElement&&al(l)){const a=go(l);return new qt(a,l,i)}}return new qt(void 0,void 0,i)})}function sl(e){const t=[],n={},o=new Map;return Array.from(e.querySelectorAll("img,canvas")).forEach(i=>{if(_r(i,o)){if(i instanceof HTMLCanvasElement)ll(i)&&t.push(new qt(void 0,i));else if(i instanceof HTMLImageElement&&al(i)){const s=go(i);if(s){const l=n[s];if(l!==void 0&&l!==-1){t.splice(l,1);return}n[s]=t.length}t.push(new qt(s,i))}}}),t}function ll(e){return e.isConnected&&e.width>=200&&e.height>=200}function al(e){if(!e.isConnected)return!1;const t=e.getBoundingClientRect();return!t.width||!t.height||t.width>=200&&t.height>=200}function cl(e){var t,n;for(let o=0;o<e.length;o++){const r=((t=e[o])==null?void 0:t.el)??((n=e[o])==null?void 0:n.parentEl),i=r==null?void 0:r.getBoundingClientRect();if(!i||i.bottom<=0)continue;const s=i.top;return o+(s>=0?0:-s/i.height)}return 0}function _p(e){if(document.documentElement.scrollTop<700)return 0;const n=Array.from(document.querySelectorAll("img[src]")).filter(o=>e.includes(o.src)).map(o=>new qt(void 0,o));return cl(n)}function mo({rawImages:e,page:t,smooth:n,skipIfVisible:o,isScrollDown:r}){const i=Math.floor(t),s=e[Math.min(e.length-1,i)];if(!s)return;const l=s.el??s.parentEl??document.querySelector(`img[src^="${s.computedSrc}"]`);if(!l)return;const a=l.getBoundingClientRect();if(o&&a.top<=0&&a.top+a.height>0)return;const c=ul(l);if(!c)return;const u=t>=e.length?a.height:r?Math.max(0,a.height-window.innerHeight+100):t%1*a.height;c.el.scrollTo({top:c.top+u,behavior:n?"smooth":"instant"})}function ul(e,t=new Map){if(!e)return;const{offsetTop:n,offsetParent:o}=e;if(o&&n&&t.set(o,Math.max(t.get(o)??0,n)),!(e.scrollHeight-e.clientHeight>=10&&(e===document.documentElement||window.getComputedStyle(e).overflow!=="visible")))return ul(e.parentElement,t);let i=0;return t.forEach((s,l)=>{i+=l===o?s-n:s}),{el:e,top:i}}function wp(e){var b,k,S,D;const t=G((b=e.raw.value)==null?void 0:b.isWebtoon),n=G((k=e.raw.value)==null?void 0:k.isWebtoon);let o=!1;const r=e.touchDevice&&!navigator.userAgent.toLowerCase().includes("android"),i=((D=(S=e.raw.value)==null?void 0:S.imgs)==null?void 0:D.filter(Boolean))??[];let s=e.isAutoShow!==!1?e.page.value:i.length?_p(i):void 0,l=i.map(P=>new qt(P)),a;const c=new hp({isIOS:r,onDownloaded(P,K){let L=l.indexOf(P);if(L===-1){const N=P.computedSrc;L=l.findIndex(_=>_.computedSrc===N)}if(L!==-1){if(K&&!t.value&&L>Math.min(1,l.length-3)&&L<Math.max(l.length-2,3)){const N=K.height/K.width,_=N>2||N<.5,x=N>1.6||N<.6;t.value!==_&&(t.value=_),n.value!==x&&(n.value=x)}p()}}}),u=new mp({getItems:()=>l,getActiveIndex:()=>Math.floor(e.page.value),isCompleted:P=>{const K=P.computedSrc;return!!(K&&c.reactiveResults[K])},callback:P=>c.download(P)});if(i.length)u.run();else{let P=!1;a=new bp({spec:e.spec,async onChanged(K){var L;if(l=K,!e.raw.value&&!K.length){e.onError("no_img");return}(L=e.spec)!=null&&L.imgDivs&&!P&&e.isAutoShow!==!1&&e.page.value&&(P=!0,mo({rawImages:K,page:e.page.value,skipIfVisible:!0}),await ln(1)),s===void 0&&e.isAutoShow===!1&&(s=cl(K)),u.run()}})}Ko(()=>{c.dispose(),u.dispose(),a==null||a.dispose(),o&&mo({rawImages:l,page:e.page.value})});function p(){var _,x,F,g;if(o||t.value===void 0||s===void 0)return;const P=Math.max(0,Math.min(s,l.length)),K=l.length-1,L=Math.min(Math.floor(P),K);if(L>=1){const m=(_=l[L])==null?void 0:_.computedSrc;if(!m){e.isAutoShow&&mo({rawImages:l,page:L});return}const T=(x=l[L-1])==null?void 0:x.computedSrc;if(T&&!((F=c.reactiveResults[T])!=null&&F.size)||!((g=c.reactiveResults[m])!=null&&g.size))return}if(o)return;o=!0,e.onReady(P);let N=!0;fe(()=>Math.floor(e.page.value),(m,T)=>{mo({rawImages:l,page:m,smooth:r,isScrollDown:T===void 0||m>T||l.length===1,skipIfVisible:N&&l.length>1}),N=!1,T??(T=-1),u.run()},{immediate:!0})}return{asyncImgs:ie(()=>{Object.values(c.reactiveResults);const P=[];return l.forEach(K=>{const L=K.computedSrc,N=L?c.reactiveResults[L]:void 0;(L&&!(N!=null&&N.invalid)||K.parentEl)&&P.push(N)}),P}),isWebtoon:ie(()=>t.value??!1),maybeWebtoon:ie(()=>n.value??!1)}}function xp(e,t,n){return ie(()=>t.value?dl(e.value,n.value):e.value.map((o,r)=>[{img:o,index:r}]))}function dl(e,t,n=0){if(e.length===0)return[];const o=e.slice(0,2),r=o.some(s=>(s==null?void 0:s.size)&&s.size.width>s.size.height),i=r||t?[o[0]]:o;return[i.map((s,l)=>({img:s,index:n+l})),...dl(e.slice(i.length),t&&r,n+i.length)]}function Sp(e,t){const n=sessionStorage.getItem("tk:page:path");n!==location.pathname&&(sessionStorage.setItem("tk:page:path",location.pathname),n&&sessionStorage.removeItem("tk:page"));const o=G(t&&e>0?Math.max(0,e):+(sessionStorage.getItem("tk:page")??"0")||e);return ie({get:()=>o.value,set:r=>{o.value=r,sessionStorage.setItem("tk:page",r+"")}})}function kp(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const wr=40;function Ip({page:e,direction:t,style:n,isLongStrip:o,isVertical:r,isRTL:i,spaceTop:s,scrollEl:l,isWebtoon:a,interferePlayer:c,onChangedPage:u,onInitialized:p,onFinished:f}){let b=!1,k=!1,S=!1,D;const P=Ae(m,300),K=gs(()=>{m(),P()},300),L=Ae(x,50);async function N(){F(e.value,{smooth:!1,ensureLastImgVisibility:!0})}function _(){var O;k=!0,p(),T(),(O=l.value)==null||O.addEventListener("scroll",K),setTimeout(()=>{const{width:V,height:ae}=Cs();fe(V,()=>{r.value&&L()}),fe(ae,()=>{r.value||L()}),fe(n,x),fe(t,x)},300)}async function x(){if(!k||b)return;b=!0,await mt();const O=e.value;if(R()===O){b=!1;return}F(O)}function F(O,{smooth:V,ensureLastImgVisibility:ae=!1}={smooth:!1}){const de=l.value;if(!de)return;b=!0;const be=async()=>{await mt(),b=!1,k||_()},ye=Math.floor(O),ze=de.querySelector(`[data-index="${ye}"],[data-index2="${ye}"]`);if(!ze){be();return}c(async()=>{await g(de,!o.value&&V,async()=>{await q(de,ze,{smooth:V,page:O,ensureLastImgVisibility:ae})}),await be()})}async function g(O,V,ae){V&&O.style.setProperty("scroll-snap-type","none"),await ae(),V&&O.style.removeProperty("scroll-snap-type")}function m(){if(b)return;const O=R();O!==void 0&&O!==e.value&&u(O),T()}function T(){S||!S&&U()&&(S=!0,f())}function U(){const O=l.value;if(!O)return!1;const V=o.value?a.value?3:!r.value&&O.clientWidth>O.clientHeight?2.25:2.5:2;return r.value?O.scrollHeight-O.scrollTop<O.clientHeight*V:O.scrollWidth-(i.value?-O.scrollLeft:O.scrollLeft)<O.clientWidth*V}function R(){const O=ne();return O?(+O.getAttribute("data-index")||0)+(o.value?E(O):0):void 0}function ne(){var V;if(D??(D=l.value.getRootNode()),!D)return;const O=(V=D.elementsFromPoint)==null?void 0:V.call(D,r.value||!o.value?window.innerWidth/2:i.value?window.innerWidth-wr:wr,r.value&&o.value?s.value||wr:window.innerHeight/2);if(O)for(let ae=0;ae<O.length;ae++){const de=O[ae];if(de.hasAttribute("data-index"))return de;if(de===l.value)break}}function E(O){const V=O.getBoundingClientRect();return r.value?Math.abs(V.top-s.value)/V.height:i.value?Math.max(0,V.right-l.value.clientWidth)/V.width:Math.abs(V.left)/V.width}let te=!1;async function q(O,V,ae){if(te)return;const de=V.getBoundingClientRect();if(!o.value){if(r.value){if(de.top<=0&&de.bottom>=O.clientHeight)return}else if(de.left<=0&&de.right>=O.clientWidth)return}te=!0;const be=r.value?O.scrollTop:O.scrollLeft,ye=ae.page,ze=o.value?ye%1:0,nt=await sn(30,10,async()=>{await ln();let Be;if(!(V.offsetHeight<10))return o.value?r.value?Be=V.offsetTop+ze*V.offsetHeight-s.value:i.value?Be=V.offsetLeft-O.clientWidth+V.offsetWidth-ze*V.offsetWidth:Be=V.offsetLeft+ze*V.offsetWidth:r.value?Be=V.offsetTop+(de.top>0?0:de.height-O.clientHeight):Be=V.offsetLeft+(de.left>0?0:de.width-O.clientWidth),ye>.5&&Math.abs(Be)<100?void 0:Be})??0,Yt=ae.ensureLastImgVisibility?r.value?Math.min(nt,O.scrollHeight-O.clientHeight*2):i.value?Math.max(nt,-(O.scrollWidth-O.clientWidth*2)):Math.min(nt,O.scrollWidth-O.clientWidth*2):nt;if(!ae.smooth){r.value?O.scrollTop=Yt:O.scrollLeft=Yt,te=!1;return}const Ke=Yt-be,qe=30;let ot=0;return new Promise(Be=>{(function ft(){const it=Cp(ot,be,Ke,qe);r.value?O.scrollTop=it:O.scrollLeft=it,ot++,ot<=qe?requestAnimationFrame(ft):(Be(),te=!1)})()})}return{init:N,goToPage:F}}function Cp(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function Tp({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,isLongStrip:i,speed:s}){const l=sessionStorage.getItem("tk:playing"),a=G(typeof l=="string"?l==="true":e),c=ie({get:()=>a.value,set:g=>{a.value=g,sessionStorage.setItem("tk:playing",g?"true":"false")}}),u=G(!1);let p,f;const b=Ae(x,100),k=Ae(()=>{u.value=!0},t?2e3:1e3),S=()=>setTimeout(()=>{u.value=!1,k()},30);S(),t||Ot(window,"mousemove",S);const D=_s();Qe(()=>{fe(D,g=>{c.value&&(g==="visible"?x():f==null||f())}),fe(s,()=>P()),fe(i,g=>{g||L()})}),Bt(L);async function P(g){c.value&&(f==null||f()),g&&(await mt(),await g()),c.value&&b()}function K(){c.value?L():N()}function L(){c.value&&(c.value=!1,f==null||f(),S())}function N(){!c.value&&i.value&&(c.value=!0,x(),S())}function _(){f==null||f()}function x(){const g=n.value;if(!c.value||!g)return;const m=o.value?g.scrollHeight-g.clientHeight:g.scrollWidth-g.clientWidth,T=F();if(m<=T){L();return}f=()=>{p=Date.now(),f=void 0};const U=Date.now();p=U;const R=.05*s.value,ne=o.value?"scrollTop":"scrollLeft";let E=Date.now(),te=0;const q=()=>{if(p!==U)return;const O=Date.now(),V=O-E;E=O;const ae=R*V+te;ae>=1?(te=ae%1,g[ne]+=(ae-te)*(r.value?-1:1)):te=ae,setTimeout(q,1)};q()}function F(){const g=n.value;return o.value?g.scrollTop:r.value?-g.scrollLeft:g.scrollLeft}return{isPlaying:c,isIdle:u,toggle:K,play:N,pause:_,resume:x,stop:L,interfere:P,awake:S}}function Ep({raw:e,chapterSpec:t,siteMeta:n}){var x,F,g;const{vol:o,inferVol:r,chap:i,title:s,slug:l,basePath:a}=e;let c=-1;const u=t&&!t.url?document.querySelectorAll(t.sel):void 0;async function p(m,T){if(m.slug)f(m.slug,T);else if(m.elIndex!==void 0&&u&&u[m.elIndex]){let U=null;t!=null&&t.trigger&&(U=document.querySelector(t.trigger)),U&&(U.click(),await new Promise(R=>setTimeout(()=>R(),50))),il(u[m.elIndex]),U&&U.click()}}function f(m,T){const U=$p(a,m,(n==null?void 0:n.trailing)??!0);T?window.open(U,"_blank","noopener"):location.href=U}function b(m){const T=_[m];return T?U=>p(T,U):void 0}const k=(x=e.prev)==null?void 0:x.slug,S=(F=e.next)==null?void 0:F.slug;let D=k?m=>f(k,m):void 0,P=S?m=>f(S,m):void 0;const K=o??r,L=t==null?void 0:t.url,N=((g=s.chapters)==null?void 0:g.filter(m=>m.slug||!L&&m.elIndex!==void 0))??[],_=N.length>1?N:[];if(_.length){if(L&&(c=_.findIndex(m=>m.slug===e.slug)),c===-1&&(c=_.findIndex(m=>(m.vol??m.inferVol)===K&&m.chap===i)),L&&c===-1&&(c=_.findIndex(m=>m.slug&&l.startsWith(`${m.slug}-`)&&l.length-m.slug.length>3)),c!==-1)D??(D=b(c+1)),P??(P=b(c-1));else if(!k&&!S){const m=_.findIndex(T=>{const U=T.vol??T.inferVol;return K===void 0||U===void 0||K===U?T.chap<i:U<K});m!==-1?(D=b(m),P=b(m-1)):P=b(_.length-1)}}return{activeIndex:c,activeLabel:fl({vol:o,chap:i}),prev:D,next:P,chapters:_.map(m=>({label:fl(m),select:T=>p(m,T)}))}}function fl({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}function $p(e,t,n){const o=!t||t.includes("//")||t.startsWith("/")?t:"/"+[...e.split("/"),...t.split("/")].filter(Boolean).join("/"),[r,i]=(o.includes("//")?o:location.origin+o).split("?");return[r.endsWith("/")===n?r:n?r+"/":r.substring(0,-1),i].filter(Boolean).join("?")}const Mp={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},pl=pe(xe({inheritAttrs:!1,__name:"App",props:{immediate:{type:Boolean},raw:{},spec:{},siteMeta:{},page:{},spaceTop:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{},autoPlay:{type:Boolean},readerStyle:{},direction:{},isAutoShow:{type:Boolean},tourEnabled:{type:Boolean}},emits:["error","ready","pageChanged","fullScreenChanged","playingChanged","tourEnabledChanged","dispose","openEntry","addEntry","finished","getHiddenChapters"],setup(e,{emit:t}){const n=e,o=t;let r=!1,i,s=-1;const l=G(!1),a=G(!1),c=hu({touchDevice:n.touchDevice}),u=Sp(n.page,n.isAutoShow),p=ie(()=>n.spaceTop??0),{asyncImgs:f,isWebtoon:b,maybeWebtoon:k}=wp({raw:ie(()=>n.raw),spec:n.spec,page:u,touchDevice:n.touchDevice,isAutoShow:n.isAutoShow,spaceTop:p,async onReady(v){ze(v),l.value=!0},onError:()=>{o("error"),C()}}),{direction:S,style:D,isRTL:P,isDouble:K,isVertical:L,isLongStrip:N,gap:_,speed:x,zoom:F,breakFirst:g}=ed({titleName:ie(()=>{var v;return(v=n.raw)==null?void 0:v.title.name}),isWebtoon:b,maybeWebtoon:k,defaultStyle:n.readerStyle,defaultDirection:n.direction}),m=xp(f,K,g),T=ie(()=>u.value>=f.value.length),U=ie(()=>{var v;return n.raw?Ep({raw:n.raw,chapterSpec:(v=n.spec)==null?void 0:v.chapter,siteMeta:n.siteMeta}):void 0}),R=G(null),ne=G(null),E=G(!1),te=G(!1),q=Tp({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:ie(()=>{var v;return(v=R.value)==null?void 0:v.$el}),speed:x,isRTL:P,isVertical:L,isLongStrip:N}),O=ie(()=>!n.touchDevice&&q.isIdle.value&&!c.value),V=ie({get(){return F.value},set(v){q.interfere(()=>{F.value=v})}}),ae=Ip({page:u,style:D,direction:S,isLongStrip:N,isVertical:L,isRTL:P,spaceTop:p,isWebtoon:b,scrollEl:ie(()=>{var v;return(v=R.value)==null?void 0:v.$el}),interferePlayer:v=>q.interfere(v),onChangedPage:ze,onInitialized(){o("ready"),a.value=!0,i=nt()},onFinished:()=>o("finished")}),de=ie(()=>Math.floor(u.value)),be=()=>q.interfere(()=>ln(100));Su().addListener({onKeyDown:v=>{if(n.tourEnabled)return;const w=N.value&&L.value,W=N.value&&!L.value,X=!N.value&&L.value,ue=!N.value&&!L.value;switch(v.key){case" ":v.preventDefault(),N.value?(H(!1),q.toggle()):M();break;case"ArrowUp":case"PageUp":w?be():X&&de.value!==0&&(v.preventDefault(),h());break;case"ArrowDown":case"PageDown":w?be():X&&!T.value&&(v.preventDefault(),y());break;case"ArrowLeft":W?be():ue?(v.preventDefault(),$n()):L.value&&ot();break;case"ArrowRight":W?be():ue?(v.preventDefault(),d()):L.value&&qe();break}},onKeyUp:v=>{switch(v.key){case"f":z();break;case"t":B();break;case"h":H();break}}}),Ot("fullscreenchange",()=>{E.value=!!document.fullscreenElement}),fe(q.isPlaying,v=>{v||M(!1),o("playingChanged",v)}),fe(q.isIdle,v=>{q.isPlaying.value&&M(v)}),fe(c,v=>{!v&&q.isIdle.value?q.awake():v&&n.fullScreen&&M()});function ze(v){if(u.value===v)return;const w=f.value.length;if(v<0||v>=w+1)return;const W=u.value;u.value=v;const X=Math.floor(v*100)/100;X!==s&&(s=X,o("pageChanged",X)),v>=w?(M(!1),q.stop()):v<.01&&W>v?(M(!1),q.awake()):r||(N.value?i!==void 0&&nt()-i>300&&M(!0):Math.abs(W-v)===1&&M(!0))}function nt(){var w;const v=(w=R.value)==null?void 0:w.$el;return v?L.value?v.scrollTop:P.value?-v.scrollLeft:v.scrollLeft:0}function Yt(){!n.touchDevice&&!N.value&&ae.goToPage(de.value,{smooth:!0})}function Ke(){if(q.isPlaying.value){!n.fullScreen||!n.touchDevice?q.stop():q.awake();return}M()}function qe(v=!1){var w,W;(W=(w=U.value)==null?void 0:w.next)==null||W.call(w,v)}function ot(v=!1){var w,W;(W=(w=U.value)==null?void 0:w.prev)==null||W.call(w,v)}function Be(v){P.value?qe(it(v)):ot(it(v))}function ft(v){P.value?ot(it(v)):qe(it(v))}function it(v){return!n.touchDevice&&(v.ctrlKey||v.metaKey)}function $n(){P.value?y():h()}function d(){P.value?h():y()}function h(){var W;const v=m.value,w=T.value?v[v.length-1][0].index:(W=v[I()-1])==null?void 0:W[0].index;w!==void 0?ae.goToPage(w):ot()}function y(){var v,w;if(T.value)qe();else{const W=((w=(v=m.value[I()+1])==null?void 0:v[0])==null?void 0:w.index)??f.value.length;ae.goToPage(W)}}function I(){const v=de.value,w=m.value.findIndex(W=>W.some(({index:X})=>X===v));return w===-1?m.value.length-1:w}function C(){kp(),o("dispose")}async function M(v){if(c.value&&!n.fullScreen)return;const w=typeof v=="boolean"?v:!n.fullScreen;w!==n.fullScreen&&(r=!0,o("fullScreenChanged",w),w&&setTimeout(()=>{n.fullScreen&&c.value&&o("fullScreenChanged",!1)},100))}function B(){n.entryId?$():j()}function z(){var v,w;document.fullscreenElement?document.exitFullscreen():(w=(v=ne.value)==null?void 0:v.$el)==null||w.requestFullscreen()}function j(){q.stop(),o("addEntry")}function $(){q.stop(),o("openEntry",n.entryId)}function H(v){te.value!==v&&(te.value=!te.value,te.value&&q.isPlaying.value&&q.stop())}return(v,w)=>v.immediate||l.value?(A(),he(qs,{key:0,ref_key:"root",ref:ne,loading:!a.value,immediate:!!v.immediate,"full-screen":!!v.fullScreen,idle:O.value,"space-top":p.value,rtl:Q(P),onClick:w[12]||(w[12]=et(()=>{},["stop"]))},yi({settings:re(()=>{var W;return[J(Os,{"reader-style":Q(D),"onUpdate:readerStyle":w[4]||(w[4]=X=>Ce(D)?D.value=X:null),direction:Q(S),"onUpdate:direction":w[5]||(w[5]=X=>Ce(S)?S.value=X:null),gap:Q(_),"onUpdate:gap":w[6]||(w[6]=X=>Ce(_)?_.value=X:null),speed:Q(x),"onUpdate:speed":w[7]||(w[7]=X=>Ce(x)?x.value=X:null),zoom:V.value,"onUpdate:zoom":w[8]||(w[8]=X=>V.value=X),name:(W=v.raw)==null?void 0:W.title.name,webtoon:Q(b),disabled:!l.value,onHelp:H},null,8,["reader-style","direction","gap","speed","zoom","name","webtoon","disabled"])]}),"reset-zoom":re(()=>[J(tn,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:re(()=>[J(As,{zoom:V.value,onClick:w[11]||(w[11]=et(()=>V.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:re(()=>[Z("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:Oe({width:`${Q(u)/(Q(f).length-1)*100}%`})},null,4)]),default:re(()=>{var W;return[l.value?(A(),he(Ks,{key:0,ref_key:"body",ref:R,zoom:V.value,"onUpdate:zoom":w[0]||(w[0]=X=>V.value=X),"page-index":de.value,pages:Q(m),"total-imgs":Q(f).length,direction:Q(S),gap:Q(_),"is-long-strip":Q(N),isRTL:Q(P),"is-vertical":Q(L),"space-top":p.value,busy:Q(c),idle:O.value,"play-controller":Q(q),"touch-device":v.touchDevice,"has-next":!!((W=U.value)!=null&&W.next),onVnodeMounted:Q(ae).init,onPrev:h,onNext:y,onClick:Ke,onDragEnd:Yt,onWheelPassive:w[1]||(w[1]=()=>Q(q).interfere())},yi({_:2},[l.value&&Q(f).length?{name:"end",fn:re(()=>{var X;return[J(Ts,{"has-next":!!((X=U.value)!=null&&X.next),onNext:qe,onHide:C},null,8,["has-next"])]}),key:"0"}:void 0]),1032,["zoom","page-index","pages","total-imgs","direction","gap","is-long-strip","isRTL","is-vertical","space-top","busy","idle","play-controller","touch-device","has-next","onVnodeMounted"])):Ee("",!0),a.value&&!T.value&&!v.tourEnabled?(A(),he(Bs,{key:1,direction:Q(S)},null,8,["direction"])):Ee("",!0),a.value&&!T.value?(A(),he(Fs,{key:2,playing:!!Q(q).isPlaying.value},null,8,["playing"])):Ee("",!0),te.value?(A(),he(Ns,{key:3,"touch-device":v.touchDevice,onHide:H},null,8,["touch-device"])):Ee("",!0),v.tourEnabled?(A(),he(Us,{key:4,onHide:w[2]||(w[2]=()=>o("tourEnabledChanged",!1))})):Ee("",!0)]}),_:2},[v.raw?{name:"back",fn:re(()=>[J(tt,{href:v.raw.title.url,title:"Back to manga"},{default:re(()=>[J(Ys)]),_:1},8,["href"])]),key:"0"}:void 0,v.touchDevice?void 0:{name:"exit",fn:re(()=>[J(tt,{title:"Hide reader","data-tour":"You have entered reader mode, press here to return to the original page",onClick:C},{default:re(()=>[J(ol)]),_:1})]),key:"1"},U.value?{name:"chapter-nav",fn:re(()=>[J(Ds,{"touch-device":v.touchDevice,data:U.value,onGetHiddenChapters:w[3]||(w[3]=()=>o("getHiddenChapters"))},null,8,["touch-device","data"]),U.value.next||U.value.prev?(A(),Y("div",Mp,[J(tt,{title:`${Q(P)?"Next":"Prev"} chapter (←)`,disabled:Q(P)?!U.value.next:!U.value.prev,class:"!rounded-r-none",onClick:Be},{default:re(()=>[J(Gs)]),_:1},8,["title","disabled"]),J(tt,{title:`${Q(P)?"Prev":"Next"} chapter (→)`,disabled:Q(P)?!U.value.prev:!U.value.next,class:"!rounded-l-none",onClick:ft},{default:re(()=>[J(Qs)]),_:1},8,["title","disabled"])])):Ee("",!0)]),key:"2"}:void 0,Q(m).length?{name:"page-nav",fn:re(()=>[J(Vs,{"model-value":de.value,disabled:!a.value,pages:Q(m),"total-imgs":Q(f).length,"onUpdate:modelValue":Q(ae).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),key:"3"}:void 0,v.raw?{name:"entry",fn:re(()=>[J(tt,{title:v.entryId?"View entry (T)":"Add to library (T)","data-tour":"Prress here to add to your collection",onClick:B},{default:re(()=>[v.entryId?(A(),he(Zs,{key:0})):(A(),he(Xs,{key:1}))]),_:1},8,["title"])]),key:"4"}:void 0,v.touchDevice?void 0:{name:"full-screen",fn:re(()=>[J(tt,{title:`${E.value?"Exit":"Enter"} fullscreen (F)`,onClick:z},{default:re(()=>[E.value?(A(),he(nl,{key:0})):(A(),he(tl,{key:1}))]),_:1},8,["title"])]),key:"5"},Q(N)?{name:"play",fn:re(()=>[J(tt,{"data-tour":"Press here to play like a video",title:`${Q(q).isPlaying.value?"Pause":"Play"} (Space)`,disabled:!a.value,onClick:w[9]||(w[9]=()=>Q(q).toggle())},{default:re(()=>[Q(q).isPlaying.value?(A(),he(vr,{key:0})):(A(),he(br,{key:1}))]),_:1},8,["title","disabled"])]),key:"6"}:void 0,Q(K)?{name:"break-first",fn:re(()=>[J(tt,{title:"Separate 1st page","data-tour":"Press here to separate the first page from double-page mode",disabled:!a.value,onClick:w[10]||(w[10]=()=>g.value=!Q(g))},{default:re(()=>[Q(g)?(A(),he(el,{key:0})):(A(),he(Js,{key:1}))]),_:1},8,["disabled"])]),key:"7"}:void 0]),1032,["loading","immediate","full-screen","idle","space-top","rtl"])):Ee("",!0)}}),[["styles",[`/*! tailwindcss v3.4.0 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Helvetica,sans-serif;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*{-webkit-tap-highlight-color:rgba(0,0,0,0)!important}button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:none;border-style:none;cursor:pointer;outline:2px solid transparent;outline-offset:2px;white-space:nowrap}button[disabled]{cursor:default!important}svg{height:100%;width:100%}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:300px){.container{max-width:300px}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.fixed-screen{height:100vh;left:0;position:fixed;top:0;width:100vw}.scrollbar-none{scrollbar-width:none}.scrollbar-none::-webkit-scrollbar{display:none}.scrollbar-sm{scrollbar-color:#777 transparent;scrollbar-width:thin}.scrollbar-sm::-webkit-scrollbar{background-color:transparent;height:4px;width:4px}.scrollbar-sm::-webkit-scrollbar-track{background:transparent}.scrollbar-sm::-webkit-scrollbar-thumb{background-color:#777;border-radius:2px}.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.left-0{left:0}.left-1\\/2{left:50%}.right-0{right:0}.top-0{top:0}.top-1{top:4px}.top-1\\/2{top:50%}.top-full{top:100%}.-z-10{z-index:-10}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-50{z-index:50}.m-auto{margin:auto}.-mx-12{margin-left:-48px;margin-right:-48px}.-my-12{margin-bottom:-48px;margin-top:-48px}.-ml-20{margin-left:-80px}.-mr-3{margin-right:-12px}.mb-8{margin-bottom:32px}.ml-1{margin-left:4px}.ml-auto{margin-left:auto}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-0{height:0}.h-0\\.5{height:2px}.h-1{height:4px}.h-1\\.5{height:6px}.h-10{height:40px}.h-12{height:48px}.h-16{height:64px}.h-20{height:80px}.h-24{height:96px}.h-4{height:16px}.h-6{height:24px}.h-7{height:28px}.h-8{height:32px}.h-9{height:36px}.h-\\[101\\%\\]{height:101%}.h-\\[27rem\\]{height:432px}.h-full{height:100%}.h-screen{height:100vh}.max-h-\\[70vh\\]{max-height:70vh}.max-h-\\[80vh\\]{max-height:80vh}.max-h-full{max-height:100%}.w-1{width:4px}.w-1\\/3{width:33.333333%}.w-10{width:40px}.w-12{width:48px}.w-20{width:80px}.w-24{width:96px}.w-28{width:112px}.w-4{width:16px}.w-40{width:160px}.w-\\[4\\.5rem\\]{width:72px}.w-full{width:100%}.w-screen{width:100vw}.max-w-full{max-width:100%}.max-w-xs{max-width:320px}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-bottom{transform-origin:bottom}.origin-right{transform-origin:right}.origin-top{transform-origin:top}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-x-1\\/2,.-translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1{--tw-translate-y:-4px}.-translate-y-1\\.5{--tw-translate-y:-6px}.-translate-y-1\\.5,.-translate-y-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%}.translate-y-0{--tw-translate-y:0px}.translate-y-0,.translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1{--tw-translate-y:4px}.translate-y-1\\.5{--tw-translate-y:6px}.translate-y-1\\.5,.translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y:100%}.rotate-180{--tw-rotate:180deg}.rotate-180,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.scale-95,.scale-y-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-y-90{--tw-scale-y:.9}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-auto{cursor:auto}.cursor-default{cursor:default}.cursor-grabbing{cursor:grabbing}.cursor-none{cursor:none}.cursor-pointer{cursor:pointer}.touch-pan-x{--tw-pan-x:pan-x}.touch-pan-x,.touch-pan-y{touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-y{--tw-pan-y:pan-y}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.\\!snap-none{scroll-snap-type:none!important}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-y{scroll-snap-type:y var(--tw-scroll-snap-strictness)}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:4px}.gap-3{gap:12px}.gap-4{gap:16px}.gap-6{gap:24px}.gap-\\[1px\\]{gap:1px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overscroll-contain{overscroll-behavior:contain}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:4px}.rounded-2xl{border-radius:16px}.rounded-\\[2\\.5rem\\]{border-radius:40px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:8px}.rounded-sm{border-radius:2px}.\\!rounded-l-none{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.\\!rounded-r-none{border-bottom-right-radius:0!important;border-top-right-radius:0!important}.rounded-t-sm{border-top-left-radius:2px;border-top-right-radius:2px}.rounded-t-xl{border-top-left-radius:12px;border-top-right-radius:12px}.border{border-width:1px}.border-2{border-width:2px}.border-t-\\[1px\\]{border-top-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-stone-300{--tw-border-opacity:1;border-color:rgb(214 211 209/var(--tw-border-opacity))}.border-stone-400{--tw-border-opacity:1;border-color:rgb(168 162 158/var(--tw-border-opacity))}.border-stone-600{--tw-border-opacity:1;border-color:rgb(87 83 78/var(--tw-border-opacity))}.border-opacity-30{--tw-border-opacity:.3}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity))}.bg-stone-300{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.bg-stone-400{--tw-bg-opacity:1;background-color:rgb(168 162 158/var(--tw-bg-opacity))}.bg-stone-600{--tw-bg-opacity:1;background-color:rgb(87 83 78/var(--tw-bg-opacity))}.bg-stone-800{--tw-bg-opacity:1;background-color:rgb(41 37 36/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-opacity-40{--tw-bg-opacity:.4}.bg-opacity-50{--tw-bg-opacity:.5}.bg-opacity-80{--tw-bg-opacity:.8}.bg-opacity-90{--tw-bg-opacity:.9}.bg-none{background-image:none}.object-contain{-o-object-fit:contain;object-fit:contain}.p-1{padding:4px}.p-2{padding:8px}.p-4{padding:16px}.p-6{padding:24px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.px-6{padding-left:24px;padding-right:24px}.py-1{padding-bottom:4px;padding-top:4px}.py-2{padding-bottom:8px;padding-top:8px}.pb-12{padding-bottom:48px}.pb-6{padding-bottom:24px}.pl-1{padding-left:4px}.pt-3{padding-top:12px}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-sans{font-family:Helvetica,sans-serif}.text-base{font-size:16px;line-height:24px}.text-sm{font-size:14px;line-height:20px}.font-medium{font-weight:500}.lowercase{text-transform:lowercase}.leading-none{line-height:1}.text-primary{--tw-text-opacity:1;color:rgb(184 92 56/var(--tw-text-opacity))}.text-stone-100{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.text-stone-300{--tw-text-opacity:1;color:rgb(214 211 209/var(--tw-text-opacity))}.text-stone-400{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.text-stone-900{--tw-text-opacity:1;color:rgb(28 25 23/var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-90{opacity:.9}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.children-pointer-events-auto>*{pointer-events:auto}.last\\:mb-0:last-child{margin-bottom:0}.last\\:border-b-transparent:last-child{border-bottom-color:transparent}@media (hover:hover) and (pointer:fine){.hover\\:bg-stone-100:hover{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.hover\\:bg-stone-300:hover{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.hover\\:bg-stone-50:hover{--tw-bg-opacity:1;background-color:rgb(250 250 249/var(--tw-bg-opacity))}.hover\\:bg-stone-900:hover{--tw-bg-opacity:1;background-color:rgb(28 25 23/var(--tw-bg-opacity))}.hover\\:bg-opacity-10:hover{--tw-bg-opacity:.1}.hover\\:bg-opacity-50:hover{--tw-bg-opacity:.5}.hover\\:text-stone-100:hover{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.hover\\:text-stone-400:hover{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-primary:focus{outline-color:#b85c38}@media (hover:hover) and (pointer:fine){.group:hover .group-hover\\:bg-stone-100{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-opacity-20{--tw-bg-opacity:.2}}@media (min-width:300px){.\\32xs\\:gap-3{gap:12px}}@media (min-width:640px){.sm\\:w-\\[32rem\\]{width:512px}.sm\\:p-3{padding:12px}}@media (min-width:768px){.md\\:px-8{padding-left:32px;padding-right:32px}.md\\:pb-5{padding-bottom:20px}.md\\:text-lg{font-size:18px;line-height:28px}}@media (min-width:1024px){.lg\\:px-10{padding-left:40px;padding-right:40px}.lg\\:pb-3{padding-bottom:12px}}@media (min-width:1280px){.xl\\:px-12{padding-left:48px;padding-right:48px}}
|
|
28
|
+
`]]]),Pp=Object.freeze(Object.defineProperty({__proto__:null,default:pl},Symbol.toStringTag,{value:"Module"})),Op={},Lp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Ap=[Z("path",{fill:"currentColor",d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46s46-20.595 46-46s-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1)];function zp(e,t){return A(),Y("svg",Lp,Ap)}const jp=Object.freeze(Object.defineProperty({__proto__:null,default:pe(Op,[["render",zp]])},Symbol.toStringTag,{value:"Module"})),Dp=`gear-second{display:block!important;inset:0!important;opacity:0!important;pointer-events:none!important;position:fixed!important;z-index:-10!important}html.gear-second,html.gear-second *{pointer-events:none!important;scroll-behavior:auto!important;scrollbar-width:none!important}html.gear-second ::-webkit-scrollbar,html.gear-second::-webkit-scrollbar{display:none!important}html.gear-second body gear-second~*,html.gear-second>:not(body):not(head){--tw-translate-x:100%!important;--tw-translate-y:-100%!important;display:none!important;height:0!important;min-height:0!important;min-width:0!important;opacity:0!important;pointer-events:none!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important;visibility:hidden!important;width:0!important}html.gear-second body{touch-action:pan-x pan-y!important}html.gear-second body gear-second{--tw-bg-opacity:1!important;background-color:rgb(0 0 0/var(--tw-bg-opacity))!important;filter:none!important;opacity:1!important;pointer-events:auto!important;transform:none!important;visibility:visible!important;z-index:10000000000000000!important}html.gear-second body .m-content #progress-bar{display:none!important}html.gear-second body>:not(gear-second){visibility:hidden!important}
|
|
29
|
+
`,Ut="gear-second",xr={immediate:void 0,raw:void 0,spec:void 0,page:0,spaceTop:void 0,fullScreen:void 0,touchDevice:void 0,entryId:void 0,autoPlay:void 0,readerStyle:void 0,direction:void 0,isAutoShow:void 0,tourEnabled:void 0,onError:void 0,onDispose:void 0,onFullScreenChanged:void 0,onPageChanged:void 0,onOpenEntry:void 0,onAddEntry:void 0,onFinished:void 0},We={promise:void 0,data:cn({...xr})};async function Rp(e){return We.promise?(We.data.raw=e.raw,await We.promise):(We.promise=new Promise(t=>{let n=!1,o=!1,r,i;const s=!!e.spaceTop||!!e.isAutoShow&&!!e.page,l=()=>{n||(n=!0,clearInterval(r),r=void 0,i!=null&&i.isConnected&&document.body.removeChild(i),document.documentElement.classList.remove(Ut),Object.assign(We.data,xr),We.promise=void 0)},a=Ae(p=>{var f;return!n&&((f=e.onPageChanged)==null?void 0:f.call(e,p))},300);Object.assign(We.data,xr,e,{immediate:s,onReady(){s||(c(),document.documentElement.classList.add(Ut))},onError(){var p,f;l(),o?((p=e.onDispose)==null||p.call(e),(f=e.onError)==null||f.call(e)):u()},onDispose:()=>{var p;l(),(p=e==null?void 0:e.onDispose)==null||p.call(e)},onFullScreenChanged:p=>{var f;We.data.fullScreen=p,(f=e.onFullScreenChanged)==null||f.call(e,p)},onPageChanged:p=>{We.data.page=p,a(p)},onTourEnabledChanged:p=>{We.data.tourEnabled=p}}),Bp().then(()=>{if(n){u();return}i=document.createElement(Ut),s?(document.documentElement.classList.add(Ut),document.body.appendChild(i),setTimeout(c)):document.body.appendChild(i);let p=0;r=setInterval(()=>{if(++p===30||n){clearInterval(r),r=void 0;return}i.isConnected||(document.documentElement.classList.add(Ut),document.body.appendChild(i))},100)});function c(){o||(o=!0,t({triggerDoubleTap(){},triggerTouchStart(){},updateArgs(p){Object.assign(We.data,p)},dispose:l}))}function u(){o||t(void 0)}}),await We.promise)}async function Bp(){if(window.customElements.get(Ut))return;const e=document.createElement("style");e.appendChild(document.createTextNode(Dp)),document.head.appendChild(e);const t=Bc({styles:[await Np()],data:()=>({readerData:We.data}),render(){return Ui(pl,this.readerData)}});window.customElements.define(Ut,t)}async function Np(){const e=Object.assign({"./App.vue":Pp,"./components/AutoNext.vue":pu,"./components/BottomSheet.vue":Tu,"./components/ButtonDropdown.vue":Cd,"./components/ButtonIcon.vue":mu,"./components/ButtonReaderSettings.vue":nd,"./components/ButtonResetZoom.vue":dd,"./components/ChapterNav.vue":Td,"./components/DirectionToast.vue":Ld,"./components/GesturesContainer.vue":Yd,"./components/HelpScreen.vue":zd,"./components/InputPercentage.vue":Mu,"./components/InputSelect.vue":Ou,"./components/IntersectionWrapper.vue":Xd,"./components/LoadingIndicator.vue":ef,"./components/PageNav.vue":jd,"./components/PauseToast.vue":Ud,"./components/ReaderBody.vue":lf,"./components/ReaderLayout.vue":hf,"./components/ReaderTour.vue":gf,"./components/TableField.vue":zu,"./components/icons/IconBack.vue":_f,"./components/icons/IconBookmarkNew.vue":If,"./components/icons/IconBookmarked.vue":Mf,"./components/icons/IconChevronLeft.vue":zf,"./components/icons/IconChevronRight.vue":Nf,"./components/icons/IconClose.vue":wu,"./components/icons/IconDouble.vue":Kf,"./components/icons/IconDoubleSkip.vue":Zf,"./components/icons/IconExclamationCircle.vue":jp,"./components/icons/IconFullscreen.vue":tp,"./components/icons/IconFullscreenExit.vue":sp,"./components/icons/IconHelp.vue":Nu,"./components/icons/IconLoading.vue":md,"./components/icons/IconNext.vue":Od,"./components/icons/IconPause.vue":Vd,"./components/icons/IconPlay.vue":qd,"./components/icons/IconReaderExit.vue":dp,"./components/icons/IconSettings.vue":Ku,"./components/icons/IconTriangle.vue":wd,"./components/icons/IconZoom.vue":ld}),t=[];for(const n in e){const o=e[n];t.push(o.default.styles)}return t.join("")}return Rp});
|