gear-second 1.6.0 → 1.6.2

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.
Files changed (2) hide show
  1. package/index.js +16 -16
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,29 +1,29 @@
1
- (function(He,se){typeof exports=="object"&&typeof module<"u"?module.exports=se():typeof define=="function"&&define.amd?define(se):(He=typeof globalThis<"u"?globalThis:He||self,He._gearSecond_=se())})(this,function(){"use strict";var Op=Object.defineProperty;var Lp=(He,se,qe)=>se in He?Op(He,se,{enumerable:!0,configurable:!0,writable:!0,value:qe}):He[se]=qe;var ve=(He,se,qe)=>(Lp(He,typeof se!="symbol"?se+"":se,qe),qe);/**
1
+ (function(Fe,se){typeof exports=="object"&&typeof module<"u"?module.exports=se():typeof define=="function"&&define.amd?define(se):(Fe=typeof globalThis<"u"?globalThis:Fe||self,Fe._gearSecond_=se())})(this,function(){"use strict";var Up=Object.defineProperty;var Yp=(Fe,se,Ze)=>se in Fe?Up(Fe,se,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):Fe[se]=Ze;var ve=(Fe,se,Ze)=>(Yp(Fe,typeof se!="symbol"?se+"":se,Ze),Ze);/**
2
2
  * @vue/shared v3.4.15
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
- **/function He(e,t){const n=new Set(e.split(","));return t?o=>n.has(o.toLowerCase()):o=>n.has(o)}const se={},qe=[],Fe=()=>{},gl=()=>!1,On=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),yo=e=>e.startsWith("onUpdate:"),_e=Object.assign,wo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ml=Object.prototype.hasOwnProperty,ue=(e,t)=>ml.call(e,t),G=Array.isArray,Jt=e=>Ln(e)==="[object Map]",Tr=e=>Ln(e)==="[object Set]",te=e=>typeof e=="function",ye=e=>typeof e=="string",en=e=>typeof e=="symbol",he=e=>e!==null&&typeof e=="object",$r=e=>(he(e)||te(e))&&te(e.then)&&te(e.catch),Pr=Object.prototype.toString,Ln=e=>Pr.call(e),vl=e=>Ln(e).slice(8,-1),Mr=e=>Ln(e)==="[object Object]",xo=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,An=He(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),zn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},bl=/-(\w)/g,Re=zn(e=>e.replace(bl,(t,n)=>n?n.toUpperCase():"")),_l=/\B([A-Z])/g,We=zn(e=>e.replace(_l,"-$1").toLowerCase()),jn=zn(e=>e.charAt(0).toUpperCase()+e.slice(1)),So=zn(e=>e?`on${jn(e)}`:""),st=(e,t)=>!Object.is(e,t),Rn=(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})},Co=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ko=e=>{const t=ye(e)?Number(e):NaN;return isNaN(t)?e:t};let Or;const Io=()=>Or||(Or=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ae(e){if(G(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=ye(o)?Sl(o):Ae(o);if(r)for(const i in r)t[i]=r[i]}return t}else if(ye(e)||he(e))return e}const yl=/;(?![^(]*\))/g,wl=/:([^]+)/,xl=/\/\*[^]*?\*\//g;function Sl(e){const t={};return e.replace(xl,"").split(yl).forEach(n=>{if(n){const o=n.split(wl);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function ke(e){let t="";if(ye(e))t=e;else if(G(e))for(let n=0;n<e.length;n++){const o=ke(e[n]);o&&(t+=o+" ")}else if(he(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Cl=He("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Lr(e){return!!e||e===""}const Xe=e=>ye(e)?e:e==null?"":G(e)||he(e)&&(e.toString===Pr||!te(e.toString))?JSON.stringify(e,Ar,2):String(e),Ar=(e,t)=>t&&t.__v_isRef?Ar(e,t.value):Jt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r],i)=>(n[Eo(o,i)+" =>"]=r,n),{})}:Tr(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Eo(n))}:en(t)?Eo(t):he(t)&&!G(t)&&!Mr(t)?String(t):t,Eo=(e,t="")=>{var n;return en(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
5
+ **/function Fe(e,t){const n=new Set(e.split(","));return t?o=>n.has(o.toLowerCase()):o=>n.has(o)}const se={},Ze=[],He=()=>{},vl=()=>!1,Mn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),yo=e=>e.startsWith("onUpdate:"),be=Object.assign,wo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},_l=Object.prototype.hasOwnProperty,ue=(e,t)=>_l.call(e,t),ee=Array.isArray,Jt=e=>On(e)==="[object Map]",Er=e=>On(e)==="[object Set]",te=e=>typeof e=="function",ye=e=>typeof e=="string",en=e=>typeof e=="symbol",ge=e=>e!==null&&typeof e=="object",$r=e=>(ge(e)||te(e))&&te(e.then)&&te(e.catch),Pr=Object.prototype.toString,On=e=>Pr.call(e),bl=e=>On(e).slice(8,-1),Mr=e=>On(e)==="[object Object]",xo=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ln=Fe(",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))},yl=/-(\w)/g,je=An(e=>e.replace(yl,(t,n)=>n?n.toUpperCase():"")),wl=/\B([A-Z])/g,We=An(e=>e.replace(wl,"-$1").toLowerCase()),zn=An(e=>e.charAt(0).toUpperCase()+e.slice(1)),So=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})},ko=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Io=e=>{const t=ye(e)?Number(e):NaN;return isNaN(t)?e:t};let Or;const Co=()=>Or||(Or=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Le(e){if(ee(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=ye(o)?Il(o):Le(o);if(r)for(const i in r)t[i]=r[i]}return t}else if(ye(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 Ce(e){let t="";if(ye(e))t=e;else if(ee(e))for(let n=0;n<e.length;n++){const o=Ce(e[n]);o&&(t+=o+" ")}else if(ge(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Cl=Fe("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Lr(e){return!!e||e===""}const Ge=e=>ye(e)?e:e==null?"":ee(e)||ge(e)&&(e.toString===Pr||!te(e.toString))?JSON.stringify(e,Ar,2):String(e),Ar=(e,t)=>t&&t.__v_isRef?Ar(e,t.value):Jt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r],i)=>(n[To(o,i)+" =>"]=r,n),{})}:Er(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>To(n))}:en(t)?To(t):ge(t)&&!ee(t)&&!Mr(t)?String(t):t,To=(e,t="")=>{var n;return en(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 Ke;class kl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ke,!t&&Ke&&(this.index=(Ke.scopes||(Ke.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ke;try{return Ke=this,t()}finally{Ke=n}}}on(){Ke=this}off(){Ke=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 Il(e,t=Ke){t&&t.active&&t.effects.push(e)}function zr(){return Ke}function El(e){Ke&&Ke.cleanups.push(e)}let Bt;class To{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,Il(this,r)}get dirty(){if(this._dirtyLevel===1){St();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Tl(n.computed),this._dirtyLevel>=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),Ct()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=xt,n=Bt;try{return xt=!0,Bt=this,this._runnings++,jr(this),this.fn()}finally{Rr(this),this._runnings--,Bt=n,xt=t}}stop(){var t;this.active&&(jr(this),Rr(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Tl(e){return e.value}function jr(e){e._trackId++,e._depsLength=0}function Rr(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Dr(e.deps[t],e);e.deps.length=e._depsLength}}function Dr(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let xt=!0,$o=0;const Br=[];function St(){Br.push(xt),xt=!1}function Ct(){const e=Br.pop();xt=e===void 0?!0:e}function Po(){$o++}function Mo(){for($o--;!$o&&Oo.length;)Oo.shift()()}function Vr(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const o=e.deps[e._depsLength];o!==t?(o&&Dr(o,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Oo=[];function Nr(e,t,n){Po();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())}Hr(e),Mo()}function Hr(e){for(const t of e.keys())t.scheduler&&t._shouldSchedule&&(!t._runnings||t.allowRecurse)&&e.get(t)===t._trackId&&(t._shouldSchedule=!1,Oo.push(t.scheduler))}const Fr=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Lo=new WeakMap,Vt=Symbol(""),Ao=Symbol("");function De(e,t,n){if(xt&&Bt){let o=Lo.get(e);o||Lo.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=Fr(()=>o.delete(n))),Vr(Bt,r)}}function ht(e,t,n,o,r,i){const s=Lo.get(e);if(!s)return;let l=[];if(t==="clear")l=[...s.values()];else if(n==="length"&&G(e)){const a=Number(o);s.forEach((c,u)=>{(u==="length"||!en(u)&&u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":G(e)?xo(n)&&l.push(s.get("length")):(l.push(s.get(Vt)),Jt(e)&&l.push(s.get(Ao)));break;case"delete":G(e)||(l.push(s.get(Vt)),Jt(e)&&l.push(s.get(Ao)));break;case"set":Jt(e)&&l.push(s.get(Vt));break}Po();for(const a of l)a&&Nr(a,2);Mo()}const $l=He("__proto__,__v_isRef,__isVue"),Wr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(en)),Kr=Pl();function Pl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=ce(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(ce)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){St(),Po();const o=ce(this)[t].apply(this,n);return Mo(),Ct(),o}}),e}function Ml(e){const t=ce(this);return De(t,"has",e),t.hasOwnProperty(e)}class Ur{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?Wl:ei:i?Jr:Qr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const s=G(t);if(!r){if(s&&ue(Kr,n))return Reflect.get(Kr,n,o);if(n==="hasOwnProperty")return Ml}const l=Reflect.get(t,n,o);return(en(n)?Wr.has(n):$l(n))||(r||De(t,"get",n),i)?l:Ie(l)?s&&xo(n)?l:l.value:he(l)?r?ti(l):un(l):l}}class Yr extends Ur{constructor(t=!1){super(!1,t)}set(t,n,o,r){let i=t[n];if(!this._shallow){const a=nn(i);if(!Kn(o)&&!nn(o)&&(i=ce(i),o=ce(o)),!G(t)&&Ie(i)&&!Ie(o))return a?!1:(i.value=o,!0)}const s=G(t)&&xo(n)?Number(n)<t.length:ue(t,n),l=Reflect.set(t,n,o,r);return t===ce(r)&&(s?st(o,i)&&ht(t,"set",n,o):ht(t,"add",n,o)),l}deleteProperty(t,n){const o=ue(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(!en(n)||!Wr.has(n))&&De(t,"has",n),o}ownKeys(t){return De(t,"iterate",G(t)?"length":Vt),Reflect.ownKeys(t)}}class Ol extends Ur{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Ll=new Yr,Al=new Ol,zl=new Yr(!0),zo=e=>e,Bn=e=>Reflect.getPrototypeOf(e);function Vn(e,t,n=!1,o=!1){e=e.__v_raw;const r=ce(e),i=ce(t);n||(st(t,i)&&De(r,"get",t),De(r,"get",i));const{has:s}=Bn(r),l=o?zo:n?Do:dn;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=ce(n),r=ce(e);return t||(st(e,r)&&De(o,"has",e),De(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Hn(e,t=!1){return e=e.__v_raw,!t&&De(ce(e),"iterate",Vt),Reflect.get(e,"size",e)}function qr(e){e=ce(e);const t=ce(this);return Bn(t).has.call(t,e)||(t.add(e),ht(t,"add",e,e)),this}function Xr(e,t){t=ce(t);const n=ce(this),{has:o,get:r}=Bn(n);let i=o.call(n,e);i||(e=ce(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?st(t,s)&&ht(n,"set",e,t):ht(n,"add",e,t),this}function Zr(e){const t=ce(this),{has:n,get:o}=Bn(t);let r=n.call(t,e);r||(e=ce(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 Gr(){const e=ce(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=ce(s),a=t?zo:e?Do:dn;return!e&&De(l,"iterate",Vt),s.forEach((c,u)=>o.call(r,a(c),a(u),i))}}function Wn(e,t,n){return function(...o){const r=this.__v_raw,i=ce(r),s=Jt(i),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=r[e](...o),u=n?zo:t?Do:dn;return!t&&De(i,"iterate",a?Ao:Vt),{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 kt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function jl(){const e={get(i){return Vn(this,i)},get size(){return Hn(this)},has:Nn,add:qr,set:Xr,delete:Zr,clear:Gr,forEach:Fn(!1,!1)},t={get(i){return Vn(this,i,!1,!0)},get size(){return Hn(this)},has:Nn,add:qr,set:Xr,delete:Zr,clear:Gr,forEach:Fn(!1,!0)},n={get(i){return Vn(this,i,!0)},get size(){return Hn(this,!0)},has(i){return Nn.call(this,i,!0)},add:kt("add"),set:kt("set"),delete:kt("delete"),clear:kt("clear"),forEach:Fn(!0,!1)},o={get(i){return Vn(this,i,!0,!0)},get size(){return Hn(this,!0)},has(i){return Nn.call(this,i,!0)},add:kt("add"),set:kt("set"),delete:kt("delete"),clear:kt("clear"),forEach:Fn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Wn(i,!1,!1),n[i]=Wn(i,!0,!1),t[i]=Wn(i,!1,!0),o[i]=Wn(i,!0,!0)}),[e,n,t,o]}const[Rl,Dl,Bl,Vl]=jl();function jo(e,t){const n=t?e?Vl:Bl:e?Dl:Rl;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 Nl={get:jo(!1,!1)},Hl={get:jo(!1,!0)},Fl={get:jo(!0,!1)},Qr=new WeakMap,Jr=new WeakMap,ei=new WeakMap,Wl=new WeakMap;function Kl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ul(e){return e.__v_skip||!Object.isExtensible(e)?0:Kl(vl(e))}function un(e){return nn(e)?e:Ro(e,!1,Ll,Nl,Qr)}function Yl(e){return Ro(e,!1,zl,Hl,Jr)}function ti(e){return Ro(e,!0,Al,Fl,ei)}function Ro(e,t,n,o,r){if(!he(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=Ul(e);if(s===0)return e;const l=new Proxy(e,s===2?o:n);return r.set(e,l),l}function tn(e){return nn(e)?tn(e.__v_raw):!!(e&&e.__v_isReactive)}function nn(e){return!!(e&&e.__v_isReadonly)}function Kn(e){return!!(e&&e.__v_isShallow)}function ni(e){return tn(e)||nn(e)}function ce(e){const t=e&&e.__v_raw;return t?ce(t):e}function oi(e){return Dn(e,"__v_skip",!0),e}const dn=e=>he(e)?un(e):e,Do=e=>he(e)?ti(e):e;class ri{constructor(t,n,o,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new To(()=>t(this._value),()=>fn(this,1),()=>this.dep&&Hr(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=ce(this);return(!t._cacheable||t.effect.dirty)&&st(t._value,t._value=t.effect.run())&&fn(t,2),Bo(t),t.effect._dirtyLevel>=1&&fn(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=te(e);return i?(o=e,r=Fe):(o=e.get,r=e.set),new ri(o,r,i||!r,n)}function Bo(e){xt&&Bt&&(e=ce(e),Vr(Bt,e.dep||(e.dep=Fr(()=>e.dep=void 0,e instanceof ri?e:void 0))))}function fn(e,t=2,n){e=ce(e);const o=e.dep;o&&Nr(o,t)}function Ie(e){return!!(e&&e.__v_isRef===!0)}function q(e){return Xl(e,!1)}function Xl(e,t){return Ie(e)?e:new Zl(e,t)}class Zl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ce(t),this._value=n?t:dn(t)}get value(){return Bo(this),this._value}set value(t){const n=this.__v_isShallow||Kn(t)||nn(t);t=n?t:ce(t),st(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:dn(t),fn(this,2))}}function X(e){return Ie(e)?e.value:e}const Gl={get:(e,t,n)=>X(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Ie(r)&&!Ie(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function ii(e){return tn(e)?e:new Proxy(e,Gl)}class Ql{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:o}=t(()=>Bo(this),()=>fn(this));this._get=n,this._set=o}get value(){return this._get()}set value(t){this._set(t)}}function Jl(e){return new Ql(e)}/**
9
+ **/let Ke;class Tl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ke,!t&&Ke&&(this.index=(Ke.scopes||(Ke.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ke;try{return Ke=this,t()}finally{Ke=n}}}on(){Ke=this}off(){Ke=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=Ke){t&&t.active&&t.effects.push(e)}function zr(){return Ke}function $l(e){Ke&&Ke.cleanups.push(e)}let Vt;class Eo{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){St();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Pl(n.computed),this._dirtyLevel>=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),kt()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=xt,n=Vt;try{return xt=!0,Vt=this,this._runnings++,jr(this),this.fn()}finally{Dr(this),this._runnings--,Vt=n,xt=t}}stop(){var t;this.active&&(jr(this),Dr(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Pl(e){return e.value}function jr(e){e._trackId++,e._depsLength=0}function Dr(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Rr(e.deps[t],e);e.deps.length=e._depsLength}}function Rr(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let xt=!0,$o=0;const Br=[];function St(){Br.push(xt),xt=!1}function kt(){const e=Br.pop();xt=e===void 0?!0:e}function Po(){$o++}function Mo(){for($o--;!$o&&Oo.length;)Oo.shift()()}function Vr(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const o=e.deps[e._depsLength];o!==t?(o&&Rr(o,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Oo=[];function Nr(e,t,n){Po();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())}Fr(e),Mo()}function Fr(e){for(const t of e.keys())t.scheduler&&t._shouldSchedule&&(!t._runnings||t.allowRecurse)&&e.get(t)===t._trackId&&(t._shouldSchedule=!1,Oo.push(t.scheduler))}const Hr=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Lo=new WeakMap,Nt=Symbol(""),Ao=Symbol("");function De(e,t,n){if(xt&&Vt){let o=Lo.get(e);o||Lo.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=Hr(()=>o.delete(n))),Vr(Vt,r)}}function ht(e,t,n,o,r,i){const s=Lo.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"||!en(u)&&u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":ee(e)?xo(n)&&l.push(s.get("length")):(l.push(s.get(Nt)),Jt(e)&&l.push(s.get(Ao)));break;case"delete":ee(e)||(l.push(s.get(Nt)),Jt(e)&&l.push(s.get(Ao)));break;case"set":Jt(e)&&l.push(s.get(Nt));break}Po();for(const a of l)a&&Nr(a,2);Mo()}const Ml=Fe("__proto__,__v_isRef,__isVue"),Wr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(en)),Kr=Ol();function Ol(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=ce(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(ce)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){St(),Po();const o=ce(this)[t].apply(this,n);return Mo(),kt(),o}}),e}function Ll(e){const t=ce(this);return De(t,"has",e),t.hasOwnProperty(e)}class qr{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:ei:i?Jr:Qr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const s=ee(t);if(!r){if(s&&ue(Kr,n))return Reflect.get(Kr,n,o);if(n==="hasOwnProperty")return Ll}const l=Reflect.get(t,n,o);return(en(n)?Wr.has(n):Ml(n))||(r||De(t,"get",n),i)?l:Te(l)?s&&xo(n)?l:l.value:ge(l)?r?ti(l):un(l):l}}class Ur extends qr{constructor(t=!1){super(!1,t)}set(t,n,o,r){let i=t[n];if(!this._shallow){const a=nn(i);if(!Wn(o)&&!nn(o)&&(i=ce(i),o=ce(o)),!ee(t)&&Te(i)&&!Te(o))return a?!1:(i.value=o,!0)}const s=ee(t)&&xo(n)?Number(n)<t.length:ue(t,n),l=Reflect.set(t,n,o,r);return t===ce(r)&&(s?lt(o,i)&&ht(t,"set",n,o):ht(t,"add",n,o)),l}deleteProperty(t,n){const o=ue(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(!en(n)||!Wr.has(n))&&De(t,"has",n),o}ownKeys(t){return De(t,"iterate",ee(t)?"length":Nt),Reflect.ownKeys(t)}}class Al extends qr{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const zl=new Ur,jl=new Al,Dl=new Ur(!0),zo=e=>e,Rn=e=>Reflect.getPrototypeOf(e);function Bn(e,t,n=!1,o=!1){e=e.__v_raw;const r=ce(e),i=ce(t);n||(lt(t,i)&&De(r,"get",t),De(r,"get",i));const{has:s}=Rn(r),l=o?zo:n?Ro:dn;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 Vn(e,t=!1){const n=this.__v_raw,o=ce(n),r=ce(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 Nn(e,t=!1){return e=e.__v_raw,!t&&De(ce(e),"iterate",Nt),Reflect.get(e,"size",e)}function Yr(e){e=ce(e);const t=ce(this);return Rn(t).has.call(t,e)||(t.add(e),ht(t,"add",e,e)),this}function Xr(e,t){t=ce(t);const n=ce(this),{has:o,get:r}=Rn(n);let i=o.call(n,e);i||(e=ce(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 Zr(e){const t=ce(this),{has:n,get:o}=Rn(t);let r=n.call(t,e);r||(e=ce(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 Gr(){const e=ce(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=ce(s),a=t?zo:e?Ro:dn;return!e&&De(l,"iterate",Nt),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=ce(r),s=Jt(i),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=r[e](...o),u=n?zo:t?Ro:dn;return!t&&De(i,"iterate",a?Ao:Nt),{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 It(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 Nn(this)},has:Vn,add:Yr,set:Xr,delete:Zr,clear:Gr,forEach:Fn(!1,!1)},t={get(i){return Bn(this,i,!1,!0)},get size(){return Nn(this)},has:Vn,add:Yr,set:Xr,delete:Zr,clear:Gr,forEach:Fn(!1,!0)},n={get(i){return Bn(this,i,!0)},get size(){return Nn(this,!0)},has(i){return Vn.call(this,i,!0)},add:It("add"),set:It("set"),delete:It("delete"),clear:It("clear"),forEach:Fn(!0,!1)},o={get(i){return Bn(this,i,!0,!0)},get size(){return Nn(this,!0)},has(i){return Vn.call(this,i,!0)},add:It("add"),set:It("set"),delete:It("delete"),clear:It("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,Vl,Nl,Fl]=Rl();function jo(e,t){const n=t?e?Fl:Nl:e?Vl:Bl;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 Hl={get:jo(!1,!1)},Wl={get:jo(!1,!0)},Kl={get:jo(!0,!1)},Qr=new WeakMap,Jr=new WeakMap,ei=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(bl(e))}function un(e){return nn(e)?e:Do(e,!1,zl,Hl,Qr)}function Xl(e){return Do(e,!1,Dl,Wl,Jr)}function ti(e){return Do(e,!0,jl,Kl,ei)}function Do(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 tn(e){return nn(e)?tn(e.__v_raw):!!(e&&e.__v_isReactive)}function nn(e){return!!(e&&e.__v_isReadonly)}function Wn(e){return!!(e&&e.__v_isShallow)}function ni(e){return tn(e)||nn(e)}function ce(e){const t=e&&e.__v_raw;return t?ce(t):e}function oi(e){return Dn(e,"__v_skip",!0),e}const dn=e=>ge(e)?un(e):e,Ro=e=>ge(e)?ti(e):e;class ri{constructor(t,n,o,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Eo(()=>t(this._value),()=>fn(this,1),()=>this.dep&&Fr(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=ce(this);return(!t._cacheable||t.effect.dirty)&&lt(t._value,t._value=t.effect.run())&&fn(t,2),Bo(t),t.effect._dirtyLevel>=1&&fn(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=te(e);return i?(o=e,r=He):(o=e.get,r=e.set),new ri(o,r,i||!r,n)}function Bo(e){xt&&Vt&&(e=ce(e),Vr(Vt,e.dep||(e.dep=Hr(()=>e.dep=void 0,e instanceof ri?e:void 0))))}function fn(e,t=2,n){e=ce(e);const o=e.dep;o&&Nr(o,t)}function Te(e){return!!(e&&e.__v_isRef===!0)}function X(e){return Gl(e,!1)}function Gl(e,t){return Te(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:ce(t),this._value=n?t:dn(t)}get value(){return Bo(this),this._value}set value(t){const n=this.__v_isShallow||Wn(t)||nn(t);t=n?t:ce(t),lt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:dn(t),fn(this,2))}}function Z(e){return Te(e)?e.value:e}const Jl={get:(e,t,n)=>Z(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Te(r)&&!Te(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function ii(e){return tn(e)?e:new Proxy(e,Jl)}class ea{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:o}=t(()=>Bo(this),()=>fn(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 pn=[];function zp(e,...t){St();const n=pn.length?pn[pn.length-1].component:null,o=n&&n.appContext.config.warnHandler,r=ea();if(o)gt(o,n,11,[e+t.join(""),n&&n.proxy,r.map(({vnode:i})=>`at <${Gi(n,i.type)}>`).join(`
13
+ **/const pn=[];function Zp(e,...t){St();const n=pn.length?pn[pn.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 <${Gi(n,i.type)}>`).join(`
14
14
  `),r]);else{const i=[`[Vue warn]: ${e}`,...t];r.length&&i.push(`
15
- `,...ta(r)),console.warn(...i)}Ct()}function ea(){let e=pn[pn.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 ta(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[`
16
- `],...na(n))}),t}function na({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,r=` at <${Gi(e.component,e.type,o)}`,i=">"+n;return e.props?[r,...oa(e.props),i]:[r+i]}function oa(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...si(o,e[o]))}),n.length>3&&t.push(" ..."),t}function si(e,t,n){return ye(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Ie(t)?(t=si(e,ce(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):te(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ce(t),n?t:[`${e}=`,t])}function gt(e,t,n,o){let r;try{r=o?e(...o):e()}catch(i){Un(i,t,n)}return r}function Ze(e,t,n,o){if(te(e)){const i=gt(e,t,n,o);return i&&$r(i)&&i.catch(s=>{Un(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 Un(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}}ra(e,n,r,o)}function ra(e,t,n,o=!0){console.error(e)}let hn=!1,Vo=!1;const Oe=[];let lt=0;const on=[];let It=null,Nt=0;const li=Promise.resolve();let No=null;function mt(e){const t=No||li;return e?t.then(this?e.bind(this):e):t}function ia(e){let t=lt+1,n=Oe.length;for(;t<n;){const o=t+n>>>1,r=Oe[o],i=gn(r);i<e||i===e&&r.pre?t=o+1:n=o}return t}function Ho(e){(!Oe.length||!Oe.includes(e,hn&&e.allowRecurse?lt+1:lt))&&(e.id==null?Oe.push(e):Oe.splice(ia(e.id),0,e),ai())}function ai(){!hn&&!Vo&&(Vo=!0,No=li.then(di))}function sa(e){const t=Oe.indexOf(e);t>lt&&Oe.splice(t,1)}function la(e){G(e)?on.push(...e):(!It||!It.includes(e,e.allowRecurse?Nt+1:Nt))&&on.push(e),ai()}function ci(e,t,n=hn?lt+1:0){for(;n<Oe.length;n++){const o=Oe[n];if(o&&o.pre){if(e&&o.id!==e.uid)continue;Oe.splice(n,1),n--,o()}}}function ui(e){if(on.length){const t=[...new Set(on)].sort((n,o)=>gn(n)-gn(o));if(on.length=0,It){It.push(...t);return}for(It=t,Nt=0;Nt<It.length;Nt++)It[Nt]();It=null,Nt=0}}const gn=e=>e.id==null?1/0:e.id,aa=(e,t)=>{const n=gn(e)-gn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function di(e){Vo=!1,hn=!0,Oe.sort(aa);const t=Fe;try{for(lt=0;lt<Oe.length;lt++){const n=Oe[lt];n&&n.active!==!1&&gt(n,null,14)}}finally{lt=0,Oe.length=0,ui(),hn=!1,No=null,(Oe.length||on.length)&&di()}}function ca(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:f,trim:h}=o[u]||se;h&&(r=n.map(S=>ye(S)?S.trim():S)),f&&(r=n.map(Co))}let l,a=o[l=So(t)]||o[l=So(Re(t))];!a&&i&&(a=o[l=So(We(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 fi(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(!te(e)){const a=c=>{const u=fi(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?(he(e)&&o.set(e,null),null):(G(i)?i.forEach(a=>s[a]=null):_e(s,i),he(e)&&o.set(e,s),s)}function Yn(e,t){return!e||!On(t)?!1:(t=t.slice(2).replace(/Once$/,""),ue(e,t[0].toLowerCase()+t.slice(1))||ue(e,We(t))||ue(e,t))}let Ee=null,pi=null;function qn(e){const t=Ee;return Ee=e,pi=e&&e.type.__scopeId||null,t}function oe(e,t=Ee,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Hi(-1);const i=qn(t);let s;try{s=e(...r)}finally{qn(i),o._d&&Hi(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function jp(){}function Fo(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:x,inheritAttrs:_}=e;let A,P;const K=qn(e);try{if(n.shapeFlag&4){const j=r||o,C=j;A=at(u.call(C,j,f,i,S,h,x)),P=a}else{const j=t;A=at(j.length>1?j(i,{attrs:a,slots:l,emit:c}):j(i,null)),P=t.props?a:ua(a)}}catch(j){yn.length=0,Un(j,e,1),A=Z(Je)}let y=A;if(P&&_!==!1){const j=Object.keys(P),{shapeFlag:C}=y;j.length&&C&7&&(s&&j.some(yo)&&(P=da(P,s)),y=Pt(y,P))}return n.dirs&&(y=Pt(y),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&(y.transition=n.transition),A=y,qn(K),A}const ua=e=>{let t;for(const n in e)(n==="class"||n==="style"||On(n))&&((t||(t={}))[n]=e[n]);return t},da=(e,t)=>{const n={};for(const o in e)(!yo(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function fa(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?hi(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]&&!Yn(c,h))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:o===s?!1:o?s?hi(o,s,c):!0:!!s;return!1}function hi(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]&&!Yn(n,i))return!0}return!1}function pa({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 gi="components",mi=Symbol.for("v-ndc");function ha(e){return ye(e)?ga(gi,e,!1)||e:e||mi}function ga(e,t,n=!0,o=!1){const r=Ee||$e;if(r){const i=r.type;if(e===gi){const l=Zi(i,!1);if(l&&(l===t||l===Re(t)||l===jn(Re(t))))return i}const s=vi(r[e]||i[e],t)||vi(r.appContext[e],t);return!s&&o?i:s}}function vi(e,t){return e&&(e[t]||e[Re(t)]||e[jn(Re(t))])}const ma=e=>e.__isSuspense;function va(e,t){t&&t.pendingBranch?G(e)?t.effects.push(...e):t.effects.push(e):la(e)}const ba=Symbol.for("v-scx"),_a=()=>Wt(ba);function ya(e,t){return Wo(e,null,{flush:"sync"})}const Xn={};function de(e,t,n){return Wo(e,t,n)}function Wo(e,t,{immediate:n,deep:o,flush:r,once:i,onTrack:s,onTrigger:l}=se){if(t&&i){const g=t;t=(...w)=>{g(...w),C()}}const a=$e,c=g=>o===!0?g:Ht(g,o===!1?1:void 0);let u,f=!1,h=!1;if(Ie(e)?(u=()=>e.value,f=Kn(e)):tn(e)?(u=()=>c(e),f=!0):G(e)?(h=!0,f=e.some(g=>tn(g)||Kn(g)),u=()=>e.map(g=>{if(Ie(g))return g.value;if(tn(g))return c(g);if(te(g))return gt(g,a,2)})):te(e)?t?u=()=>gt(e,a,2):u=()=>(S&&S(),Ze(e,a,3,[x])):u=Fe,t&&o){const g=u;u=()=>Ht(g())}let S,x=g=>{S=y.onStop=()=>{gt(g,a,4),S=y.onStop=void 0}},_;if(co)if(x=Fe,t?n&&Ze(t,a,3,[u(),h?[]:void 0,x]):u(),r==="sync"){const g=_a();_=g.__watcherHandles||(g.__watcherHandles=[])}else return Fe;let A=h?new Array(e.length).fill(Xn):Xn;const P=()=>{if(!(!y.active||!y.dirty))if(t){const g=y.run();(o||f||(h?g.some((w,v)=>st(w,A[v])):st(g,A)))&&(S&&S(),Ze(t,a,3,[g,A===Xn?void 0:h&&A[0]===Xn?[]:A,x]),A=g)}else y.run()};P.allowRecurse=!!t;let K;r==="sync"?K=P:r==="post"?K=()=>Be(P,a&&a.suspense):(P.pre=!0,a&&(P.id=a.uid),K=()=>Ho(P));const y=new To(u,Fe,K),j=zr(),C=()=>{y.stop(),j&&wo(j.effects,y)};return t?n?P():A=y.run():r==="post"?Be(y.run.bind(y),a&&a.suspense):y.run(),_&&_.push(C),C}function wa(e,t,n){const o=this.proxy,r=ye(e)?e.includes(".")?bi(o,e):()=>o[e]:e.bind(o,o);let i;te(t)?i=t:(i=t.handler,n=t);const s=xn(this),l=Wo(r,i.bind(o),n);return s(),l}function bi(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 Ht(e,t,n=0,o){if(!he(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),Ie(e))Ht(e.value,t,n,o);else if(G(e))for(let r=0;r<e.length;r++)Ht(e[r],t,n,o);else if(Tr(e)||Jt(e))e.forEach(r=>{Ht(r,t,n,o)});else if(Mr(e))for(const r in e)Ht(e[r],t,n,o);return e}function vt(e,t){if(Ee===null)return e;const n=uo(Ee)||Ee.proxy,o=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,s,l,a=se]=t[r];i&&(te(i)&&(i={mounted:i,updated:i}),i.deep&&Ht(s),o.push({dir:i,instance:n,value:s,oldValue:void 0,arg:l,modifiers:a}))}return e}function Ft(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&&(St(),Ze(a,n,8,[e.el,l,e,t]),Ct())}}const Et=Symbol("_leaveCb"),Zn=Symbol("_enterCb");function xa(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Qe(()=>{e.isMounted=!0}),qo(()=>{e.isUnmounting=!0}),e}const Ge=[Function,Array],_i={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},Sa={name:"BaseTransition",props:_i,setup(e,{slots:t}){const n=sr(),o=xa();let r;return()=>{const i=t.default&&xi(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){for(const _ of i)if(_.type!==Je){s=_;break}}const l=ce(e),{mode:a}=l;if(o.isLeaving)return Uo(s);const c=wi(s);if(!c)return Uo(s);const u=Ko(c,l,o,n);Yo(c,u);const f=n.subTree,h=f&&wi(f);let S=!1;const{getTransitionKey:x}=c.type;if(x){const _=x();r===void 0?r=_:_!==r&&(r=_,S=!0)}if(h&&h.type!==Je&&(!Ut(c,h)||S)){const _=Ko(h,l,o,n);if(Yo(h,_),a==="out-in")return o.isLeaving=!0,_.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Uo(s);a==="in-out"&&c.type!==Je&&(_.delayLeave=(A,P,K)=>{const y=yi(o,h);y[String(h.key)]=h,A[Et]=()=>{P(),A[Et]=void 0,delete u.delayedLeave},u.delayedLeave=K})}return s}}};function yi(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 Ko(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:x,onBeforeAppear:_,onAppear:A,onAfterAppear:P,onAppearCancelled:K}=t,y=String(e.key),j=yi(n,e),C=(v,B)=>{v&&Ze(v,o,9,B)},g=(v,B)=>{const O=B[1];C(v,B),G(v)?v.every(ee=>ee.length<=1)&&O():v.length<=1&&O()},w={mode:i,persisted:s,beforeEnter(v){let B=l;if(!n.isMounted)if(r)B=_||l;else return;v[Et]&&v[Et](!0);const O=j[y];O&&Ut(e,O)&&O.el[Et]&&O.el[Et](),C(B,[v])},enter(v){let B=a,O=c,ee=u;if(!n.isMounted)if(r)B=A||a,O=P||c,ee=K||u;else return;let H=!1;const ne=v[Zn]=ie=>{H||(H=!0,ie?C(ee,[v]):C(O,[v]),w.delayedLeave&&w.delayedLeave(),v[Zn]=void 0)};B?g(B,[v,ne]):ne()},leave(v,B){const O=String(e.key);if(v[Zn]&&v[Zn](!0),n.isUnmounting)return B();C(f,[v]);let ee=!1;const H=v[Et]=ne=>{ee||(ee=!0,B(),ne?C(x,[v]):C(S,[v]),v[Et]=void 0,j[O]===e&&delete j[O])};j[O]=e,h?g(h,[v,H]):H()},clone(v){return Ko(v,t,n,o)}};return w}function Uo(e){if(Gn(e))return e=Pt(e),e.children=null,e}function wi(e){return Gn(e)?e.children?e.children[0]:void 0:e}function Yo(e,t){e.shapeFlag&6&&e.component?Yo(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 xi(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===we?(s.patchFlag&128&&r++,o=o.concat(xi(s.children,t,l))):(t||s.type!==Je)&&o.push(l!=null?Pt(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 te(e)?(()=>_e({name:e.name},t,{setup:e}))():e}const mn=e=>!!e.type.__asyncLoader,Gn=e=>e.type.__isKeepAlive;function Ca(e,t){Si(e,"a",t)}function ka(e,t){Si(e,"da",t)}function Si(e,t,n=$e){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Qn(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Gn(r.parent.vnode)&&Ia(o,t,n,r),r=r.parent}}function Ia(e,t,n,o){const r=Qn(t,e,o,!0);Tt(()=>{wo(o[t],r)},n)}function Qn(e,t,n=$e,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;St();const l=xn(n),a=Ze(t,n,e,s);return l(),Ct(),a});return o?r.unshift(i):r.push(i),i}}const bt=e=>(t,n=$e)=>(!co||e==="sp")&&Qn(e,(...o)=>t(...o),n),Ea=bt("bm"),Qe=bt("m"),Ta=bt("bu"),$a=bt("u"),qo=bt("bum"),Tt=bt("um"),Pa=bt("sp"),Ma=bt("rtg"),Oa=bt("rtc");function La(e,t=$e){Qn("ec",e,t)}function vn(e,t,n,o){let r;const i=n&&n[o];if(G(e)||ye(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(he(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 Ci(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(G(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(Ee.isCE||Ee.parent&&mn(Ee.parent)&&Ee.parent.isCE)return t!=="default"&&(n.name=t),Z("slot",n,o&&o());let i=e[t];i&&i._c&&(i._d=!1),R();const s=i&&ki(i(n)),l=be(we,{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 ki(e){return e.some(t=>ro(t)?!(t.type===Je||t.type===we&&!ki(t.children)):!0)?e:null}const Xo=e=>e?Ui(e)?uo(e)||e.proxy:Xo(e.parent):null,bn=_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=>Xo(e.parent),$root:e=>Xo(e.root),$emit:e=>e.emit,$options:e=>Qo(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Ho(e.update)}),$nextTick:e=>e.n||(e.n=mt.bind(e.proxy)),$watch:e=>wa.bind(e)}),Zo=(e,t)=>e!==se&&!e.__isScriptSetup&&ue(e,t),Aa={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(Zo(o,t))return s[t]=1,o[t];if(r!==se&&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!==se&&ue(n,t))return s[t]=4,n[t];Go&&(s[t]=0)}}const u=bn[t];let f,h;if(u)return t==="$attrs"&&De(e,"get",t),u(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==se&&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 Zo(r,t)?(r[t]=n,!0):o!==se&&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!==se&&ue(e,s)||Zo(t,s)||(l=i[0])&&ue(l,s)||ue(o,s)||ue(bn,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 Jn(e){return G(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function $t(e,t){return!e||!t?e||t:G(e)&&G(t)?e.concat(t):_e({},Jn(e),Jn(t))}let Go=!0;function za(e){const t=Qo(e),n=e.proxy,o=e.ctx;Go=!1,t.beforeCreate&&Ii(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:x,activated:_,deactivated:A,beforeDestroy:P,beforeUnmount:K,destroyed:y,unmounted:j,render:C,renderTracked:g,renderTriggered:w,errorCaptured:v,serverPrefetch:B,expose:O,inheritAttrs:ee,components:H,directives:ne,filters:ie}=t;if(c&&ja(c,o,null),s)for(const $ in s){const V=s[$];te(V)&&(o[$]=V.bind(n))}if(r){const $=r.call(n,n);he($)&&(e.data=un($))}if(Go=!0,i)for(const $ in i){const V=i[$],ae=te(V)?V.bind(n,n):te(V.get)?V.get.bind(n,n):Fe,fe=!te(V)&&te(V.set)?V.set.bind(n):Fe,Le=re({get:ae,set:fe});Object.defineProperty(o,$,{enumerable:!0,configurable:!0,get:()=>Le.value,set:me=>Le.value=me})}if(l)for(const $ in l)Ei(l[$],o,n,$);if(a){const $=te(a)?a.call(n):a;Reflect.ownKeys($).forEach(V=>{no(V,$[V])})}u&&Ii(u,e,"c");function Q($,V){G(V)?V.forEach(ae=>$(ae.bind(n))):V&&$(V.bind(n))}if(Q(Ea,f),Q(Qe,h),Q(Ta,S),Q($a,x),Q(Ca,_),Q(ka,A),Q(La,v),Q(Oa,g),Q(Ma,w),Q(qo,K),Q(Tt,j),Q(Pa,B),G(O))if(O.length){const $=e.exposed||(e.exposed={});O.forEach(V=>{Object.defineProperty($,V,{get:()=>n[V],set:ae=>n[V]=ae})})}else e.exposed||(e.exposed={});C&&e.render===Fe&&(e.render=C),ee!=null&&(e.inheritAttrs=ee),H&&(e.components=H),ne&&(e.directives=ne)}function ja(e,t,n=Fe){G(e)&&(e=Jo(e));for(const o in e){const r=e[o];let i;he(r)?"default"in r?i=Wt(r.from||o,r.default,!0):i=Wt(r.from||o):i=Wt(r),Ie(i)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[o]=i}}function Ii(e,t,n){Ze(G(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ei(e,t,n,o){const r=o.includes(".")?bi(n,o):()=>n[o];if(ye(e)){const i=t[e];te(i)&&de(r,i)}else if(te(e))de(r,e.bind(n));else if(he(e))if(G(e))e.forEach(i=>Ei(i,t,n,o));else{const i=te(e.handler)?e.handler.bind(n):t[e.handler];te(i)&&de(r,i,e)}}function Qo(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=>eo(a,c,s,!0)),eo(a,t,s)),he(t)&&i.set(t,a),a}function eo(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&eo(e,i,n,!0),r&&r.forEach(s=>eo(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const l=Ra[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const Ra={data:Ti,props:$i,emits:$i,methods:_n,computed:_n,beforeCreate:ze,created:ze,beforeMount:ze,mounted:ze,beforeUpdate:ze,updated:ze,beforeDestroy:ze,beforeUnmount:ze,destroyed:ze,unmounted:ze,activated:ze,deactivated:ze,errorCaptured:ze,serverPrefetch:ze,components:_n,directives:_n,watch:Ba,provide:Ti,inject:Da};function Ti(e,t){return t?e?function(){return _e(te(e)?e.call(this,this):e,te(t)?t.call(this,this):t)}:t:e}function Da(e,t){return _n(Jo(e),Jo(t))}function Jo(e){if(G(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ze(e,t){return e?[...new Set([].concat(e,t))]:t}function _n(e,t){return e?_e(Object.create(null),e,t):t}function $i(e,t){return e?G(e)&&G(t)?[...new Set([...e,...t])]:_e(Object.create(null),Jn(e),Jn(t??{})):t}function Ba(e,t){if(!e)return t;if(!t)return e;const n=_e(Object.create(null),e);for(const o in t)n[o]=ze(e[o],t[o]);return n}function Pi(){return{app:null,config:{isNativeTag:gl,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 Va=0;function Na(e,t){return function(o,r=null){te(o)||(o=_e({},o)),r!=null&&!he(r)&&(r=null);const i=Pi(),s=new WeakSet;let l=!1;const a=i.app={_uid:Va++,_component:o,_props:r,_container:null,_context:i,_instance:null,version:fc,get config(){return i.config},set config(c){},use(c,...u){return s.has(c)||(c&&te(c.install)?(s.add(c),c.install(a,...u)):te(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=Z(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,uo(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){to=a;try{return c()}finally{to=null}}};return a}}let to=null;function no(e,t){if($e){let n=$e.provides;const o=$e.parent&&$e.parent.provides;o===n&&(n=$e.provides=Object.create(o)),n[e]=t}}function Wt(e,t,n=!1){const o=$e||Ee;if(o||to){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:to._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&te(t)?t.call(o&&o.proxy):t}}function Ha(e,t,n,o=!1){const r={},i={};Dn(i,io,1),e.propsDefaults=Object.create(null),Mi(e,t,r,i);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);n?e.props=o?r:Yl(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function Fa(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,l=ce(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(Yn(e.emitsOptions,h))continue;const S=t[h];if(a)if(ue(i,h))S!==i[h]&&(i[h]=S,c=!0);else{const x=Re(h);r[x]=er(a,l,x,S,e,!1)}else S!==i[h]&&(i[h]=S,c=!0)}}}else{Mi(e,t,r,i)&&(c=!0);let u;for(const f in l)(!t||!ue(t,f)&&((u=We(f))===f||!ue(t,u)))&&(a?n&&(n[f]!==void 0||n[u]!==void 0)&&(r[f]=er(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&&ht(e,"set","$attrs")}function Mi(e,t,n,o){const[r,i]=e.propsOptions;let s=!1,l;if(t)for(let a in t){if(An(a))continue;const c=t[a];let u;r&&ue(r,u=Re(a))?!i||!i.includes(u)?n[u]=c:(l||(l={}))[u]=c:Yn(e.emitsOptions,a)||(!(a in o)||c!==o[a])&&(o[a]=c,s=!0)}if(i){const a=ce(n),c=l||se;for(let u=0;u<i.length;u++){const f=i[u];n[f]=er(r,a,f,c[f],e,!ue(c,f))}}return s}function er(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&&te(a)){const{propsDefaults:c}=r;if(n in c)o=c[n];else{const u=xn(r);o=c[n]=a.call(null,t),u()}}else o=a}s[0]&&(i&&!l?o=!1:s[1]&&(o===""||o===We(n))&&(o=!0))}return o}function Oi(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(!te(e)){const u=f=>{a=!0;const[h,S]=Oi(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 he(e)&&o.set(e,qe),qe;if(G(i))for(let u=0;u<i.length;u++){const f=Re(i[u]);Li(f)&&(s[f]=se)}else if(i)for(const u in i){const f=Re(u);if(Li(f)){const h=i[u],S=s[f]=G(h)||te(h)?{type:h}:_e({},h);if(S){const x=ji(Boolean,S.type),_=ji(String,S.type);S[0]=x>-1,S[1]=_<0||x<_,(x>-1||ue(S,"default"))&&l.push(f)}}}const c=[s,l];return he(e)&&o.set(e,c),c}function Li(e){return e[0]!=="$"}function Ai(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function zi(e,t){return Ai(e)===Ai(t)}function ji(e,t){return G(t)?t.findIndex(n=>zi(n,e)):te(t)&&zi(t,e)?0:-1}const Ri=e=>e[0]==="_"||e==="$stable",tr=e=>G(e)?e.map(at):[at(e)],Wa=(e,t,n)=>{if(t._n)return t;const o=oe((...r)=>tr(t(...r)),n);return o._c=!1,o},Di=(e,t,n)=>{const o=e._ctx;for(const r in e){if(Ri(r))continue;const i=e[r];if(te(i))t[r]=Wa(r,i,o);else if(i!=null){const s=tr(i);t[r]=()=>s}}},Bi=(e,t)=>{const n=tr(t);e.slots.default=()=>n},Ka=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ce(t),Dn(t,"_",n)):Di(t,e.slots={})}else e.slots={},t&&Bi(e,t);Dn(e.slots,io,1)},Ua=(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,Di(t,r)),s=t}else t&&(Bi(e,t),s={default:1});if(i)for(const l in r)!Ri(l)&&s[l]==null&&delete r[l]};function nr(e,t,n,o,r=!1){if(G(e)){e.forEach((h,S)=>nr(h,t&&(G(t)?t[S]:t),n,o,r));return}if(mn(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,f=l.setupState;if(c!=null&&c!==a&&(ye(c)?(u[c]=null,ue(f,c)&&(f[c]=null)):Ie(c)&&(c.value=null)),te(a))gt(a,l,12,[s,u]);else{const h=ye(a),S=Ie(a),x=e.f;if(h||S){const _=()=>{if(x){const A=h?ue(f,a)?f[a]:u[a]:a.value;r?G(A)&&wo(A,i):G(A)?A.includes(i)||A.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||x?_():(_.id=-1,Be(_,n))}}}function Ya(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(Io().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Be=va;function qa(e){return Xa(e)}function Xa(e,t){Ya();const n=Io();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=Fe,insertStaticContent:x}=e,_=(d,p,b,E=null,T=null,L=null,N=void 0,z=null,D=!!p.dynamicChildren)=>{if(d===p)return;d&&!Ut(d,p)&&(E=tt(d),me(d,T,L,!0),d=null),p.patchFlag===-2&&(D=!1,p.dynamicChildren=null);const{type:M,ref:F,shapeFlag:m}=p;switch(M){case oo:A(d,p,b,E);break;case Je:P(d,p,b,E);break;case rr:d==null&&K(p,b,E,N);break;case we:H(d,p,b,E,T,L,N,z,D);break;default:m&1?C(d,p,b,E,T,L,N,z,D):m&6?ne(d,p,b,E,T,L,N,z,D):(m&64||m&128)&&M.process(d,p,b,E,T,L,N,z,D,ft)}F!=null&&T&&nr(F,d&&d.ref,L,p||d,!p)},A=(d,p,b,E)=>{if(d==null)o(p.el=l(p.children),b,E);else{const T=p.el=d.el;p.children!==d.children&&c(T,p.children)}},P=(d,p,b,E)=>{d==null?o(p.el=a(p.children||""),b,E):p.el=d.el},K=(d,p,b,E)=>{[d.el,d.anchor]=x(d.children,p,b,E,d.el,d.anchor)},y=({el:d,anchor:p},b,E)=>{let T;for(;d&&d!==p;)T=h(d),o(d,b,E),d=T;o(p,b,E)},j=({el:d,anchor:p})=>{let b;for(;d&&d!==p;)b=h(d),r(d),d=b;r(p)},C=(d,p,b,E,T,L,N,z,D)=>{p.type==="svg"?N="svg":p.type==="math"&&(N="mathml"),d==null?g(p,b,E,T,L,N,z,D):B(d,p,T,L,N,z,D)},g=(d,p,b,E,T,L,N,z)=>{let D,M;const{props:F,shapeFlag:m,transition:I,dirs:W}=d;if(D=d.el=s(d.type,L,F&&F.is,F),m&8?u(D,d.children):m&16&&v(d.children,D,null,E,T,or(d,L),N,z),W&&Ft(d,null,E,"created"),w(D,d,d.scopeId,N,E),F){for(const le in F)le!=="value"&&!An(le)&&i(D,le,null,F[le],L,d.children,E,T,Me);"value"in F&&i(D,"value",null,F.value,L),(M=F.onVnodeBeforeMount)&&ct(M,E,d)}W&&Ft(d,null,E,"beforeMount");const J=Za(T,I);J&&I.beforeEnter(D),o(D,p,b),((M=F&&F.onVnodeMounted)||J||W)&&Be(()=>{M&&ct(M,E,d),J&&I.enter(D),W&&Ft(d,null,E,"mounted")},T)},w=(d,p,b,E,T)=>{if(b&&S(d,b),E)for(let L=0;L<E.length;L++)S(d,E[L]);if(T){let L=T.subTree;if(p===L){const N=T.vnode;w(d,N,N.scopeId,N.slotScopeIds,T.parent)}}},v=(d,p,b,E,T,L,N,z,D=0)=>{for(let M=D;M<d.length;M++){const F=d[M]=z?Ot(d[M]):at(d[M]);_(null,F,p,b,E,T,L,N,z)}},B=(d,p,b,E,T,L,N)=>{const z=p.el=d.el;let{patchFlag:D,dynamicChildren:M,dirs:F}=p;D|=d.patchFlag&16;const m=d.props||se,I=p.props||se;let W;if(b&&Kt(b,!1),(W=I.onVnodeBeforeUpdate)&&ct(W,b,p,d),F&&Ft(p,d,b,"beforeUpdate"),b&&Kt(b,!0),M?O(d.dynamicChildren,M,z,b,E,or(p,T),L):N||V(d,p,z,null,b,E,or(p,T),L,!1),D>0){if(D&16)ee(z,p,m,I,b,E,T);else if(D&2&&m.class!==I.class&&i(z,"class",null,I.class,T),D&4&&i(z,"style",m.style,I.style,T),D&8){const J=p.dynamicProps;for(let le=0;le<J.length;le++){const pe=J[le],Ce=m[pe],Ye=I[pe];(Ye!==Ce||pe==="value")&&i(z,pe,Ce,Ye,T,d.children,b,E,Me)}}D&1&&d.children!==p.children&&u(z,p.children)}else!N&&M==null&&ee(z,p,m,I,b,E,T);((W=I.onVnodeUpdated)||F)&&Be(()=>{W&&ct(W,b,p,d),F&&Ft(p,d,b,"updated")},E)},O=(d,p,b,E,T,L,N)=>{for(let z=0;z<p.length;z++){const D=d[z],M=p[z],F=D.el&&(D.type===we||!Ut(D,M)||D.shapeFlag&70)?f(D.el):b;_(D,M,F,null,E,T,L,N,!0)}},ee=(d,p,b,E,T,L,N)=>{if(b!==E){if(b!==se)for(const z in b)!An(z)&&!(z in E)&&i(d,z,b[z],null,N,p.children,T,L,Me);for(const z in E){if(An(z))continue;const D=E[z],M=b[z];D!==M&&z!=="value"&&i(d,z,M,D,N,p.children,T,L,Me)}"value"in E&&i(d,"value",b.value,E.value,N)}},H=(d,p,b,E,T,L,N,z,D)=>{const M=p.el=d?d.el:l(""),F=p.anchor=d?d.anchor:l("");let{patchFlag:m,dynamicChildren:I,slotScopeIds:W}=p;W&&(z=z?z.concat(W):W),d==null?(o(M,b,E),o(F,b,E),v(p.children||[],b,F,T,L,N,z,D)):m>0&&m&64&&I&&d.dynamicChildren?(O(d.dynamicChildren,I,b,T,L,N,z),(p.key!=null||T&&p===T.subTree)&&Vi(d,p,!0)):V(d,p,b,F,T,L,N,z,D)},ne=(d,p,b,E,T,L,N,z,D)=>{p.slotScopeIds=z,d==null?p.shapeFlag&512?T.ctx.activate(p,b,E,N,D):ie(p,b,E,T,L,N,D):k(d,p,D)},ie=(d,p,b,E,T,L,N)=>{const z=d.component=rc(d,E,T);if(Gn(d)&&(z.ctx.renderer=ft),ic(z),z.asyncDep){if(T&&T.registerDep(z,Q),!d.el){const D=z.subTree=Z(Je);P(null,D,p,b)}}else Q(z,d,p,b,T,L,N)},k=(d,p,b)=>{const E=p.component=d.component;if(fa(d,p,b))if(E.asyncDep&&!E.asyncResolved){$(E,p,b);return}else E.next=p,sa(E.update),E.effect.dirty=!0,E.update();else p.el=d.el,E.vnode=p},Q=(d,p,b,E,T,L,N)=>{const z=()=>{if(d.isMounted){let{next:F,bu:m,u:I,parent:W,vnode:J}=d;{const Dt=Ni(d);if(Dt){F&&(F.el=J.el,$(d,F,N)),Dt.asyncDep.then(()=>{d.isUnmounted||z()});return}}let le=F,pe;Kt(d,!1),F?(F.el=J.el,$(d,F,N)):F=J,m&&Rn(m),(pe=F.props&&F.props.onVnodeBeforeUpdate)&&ct(pe,W,F,J),Kt(d,!0);const Ce=Fo(d),Ye=d.subTree;d.subTree=Ce,_(Ye,Ce,f(Ye.el),tt(Ye),d,T,L),F.el=Ce.el,le===null&&pa(d,Ce.el),I&&Be(I,T),(pe=F.props&&F.props.onVnodeUpdated)&&Be(()=>ct(pe,W,F,J),T)}else{let F;const{el:m,props:I}=p,{bm:W,m:J,parent:le}=d,pe=mn(p);if(Kt(d,!1),W&&Rn(W),!pe&&(F=I&&I.onVnodeBeforeMount)&&ct(F,le,p),Kt(d,!0),m&&Mn){const Ce=()=>{d.subTree=Fo(d),Mn(m,d.subTree,d,T,null)};pe?p.type.__asyncLoader().then(()=>!d.isUnmounted&&Ce()):Ce()}else{const Ce=d.subTree=Fo(d);_(null,Ce,b,E,d,T,L),p.el=Ce.el}if(J&&Be(J,T),!pe&&(F=I&&I.onVnodeMounted)){const Ce=p;Be(()=>ct(F,le,Ce),T)}(p.shapeFlag&256||le&&mn(le.vnode)&&le.vnode.shapeFlag&256)&&d.a&&Be(d.a,T),d.isMounted=!0,p=b=E=null}},D=d.effect=new To(z,Fe,()=>Ho(M),d.scope),M=d.update=()=>{D.dirty&&D.run()};M.id=d.uid,Kt(d,!0),M()},$=(d,p,b)=>{p.component=d;const E=d.vnode.props;d.vnode=p,d.next=null,Fa(d,p.props,E,b),Ua(d,p.children,b),St(),ci(d),Ct()},V=(d,p,b,E,T,L,N,z,D=!1)=>{const M=d&&d.children,F=d?d.shapeFlag:0,m=p.children,{patchFlag:I,shapeFlag:W}=p;if(I>0){if(I&128){fe(M,m,b,E,T,L,N,z,D);return}else if(I&256){ae(M,m,b,E,T,L,N,z,D);return}}W&8?(F&16&&Me(M,T,L),m!==M&&u(b,m)):F&16?W&16?fe(M,m,b,E,T,L,N,z,D):Me(M,T,L,!0):(F&8&&u(b,""),W&16&&v(m,b,E,T,L,N,z,D))},ae=(d,p,b,E,T,L,N,z,D)=>{d=d||qe,p=p||qe;const M=d.length,F=p.length,m=Math.min(M,F);let I;for(I=0;I<m;I++){const W=p[I]=D?Ot(p[I]):at(p[I]);_(d[I],W,b,null,T,L,N,z,D)}M>F?Me(d,T,L,!0,!1,m):v(p,b,E,T,L,N,z,D,m)},fe=(d,p,b,E,T,L,N,z,D)=>{let M=0;const F=p.length;let m=d.length-1,I=F-1;for(;M<=m&&M<=I;){const W=d[M],J=p[M]=D?Ot(p[M]):at(p[M]);if(Ut(W,J))_(W,J,b,null,T,L,N,z,D);else break;M++}for(;M<=m&&M<=I;){const W=d[m],J=p[I]=D?Ot(p[I]):at(p[I]);if(Ut(W,J))_(W,J,b,null,T,L,N,z,D);else break;m--,I--}if(M>m){if(M<=I){const W=I+1,J=W<F?p[W].el:E;for(;M<=I;)_(null,p[M]=D?Ot(p[M]):at(p[M]),b,J,T,L,N,z,D),M++}}else if(M>I)for(;M<=m;)me(d[M],T,L,!0),M++;else{const W=M,J=M,le=new Map;for(M=J;M<=I;M++){const je=p[M]=D?Ot(p[M]):at(p[M]);je.key!=null&&le.set(je.key,M)}let pe,Ce=0;const Ye=I-J+1;let Dt=!1,pt=0;const Qt=new Array(Ye);for(M=0;M<Ye;M++)Qt[M]=0;for(M=W;M<=m;M++){const je=d[M];if(Ce>=Ye){me(je,T,L,!0);continue}let ot;if(je.key!=null)ot=le.get(je.key);else for(pe=J;pe<=I;pe++)if(Qt[pe-J]===0&&Ut(je,p[pe])){ot=pe;break}ot===void 0?me(je,T,L,!0):(Qt[ot-J]=M+1,ot>=pt?pt=ot:Dt=!0,_(je,p[ot],b,null,T,L,N,z,D),Ce++)}const bo=Dt?Ga(Qt):qe;for(pe=bo.length-1,M=Ye-1;M>=0;M--){const je=J+M,ot=p[je],_o=je+1<F?p[je+1].el:E;Qt[M]===0?_(null,ot,b,_o,T,L,N,z,D):Dt&&(pe<0||M!==bo[pe]?Le(ot,b,_o,2):pe--)}}},Le=(d,p,b,E,T=null)=>{const{el:L,type:N,transition:z,children:D,shapeFlag:M}=d;if(M&6){Le(d.component.subTree,p,b,E);return}if(M&128){d.suspense.move(p,b,E);return}if(M&64){N.move(d,p,b,ft);return}if(N===we){o(L,p,b);for(let m=0;m<D.length;m++)Le(D[m],p,b,E);o(d.anchor,p,b);return}if(N===rr){y(d,p,b);return}if(E!==2&&M&1&&z)if(E===0)z.beforeEnter(L),o(L,p,b),Be(()=>z.enter(L),T);else{const{leave:m,delayLeave:I,afterLeave:W}=z,J=()=>o(L,p,b),le=()=>{m(L,()=>{J(),W&&W()})};I?I(L,J,le):le()}else o(L,p,b)},me=(d,p,b,E=!1,T=!1)=>{const{type:L,props:N,ref:z,children:D,dynamicChildren:M,shapeFlag:F,patchFlag:m,dirs:I}=d;if(z!=null&&nr(z,null,b,d,!0),F&256){p.ctx.deactivate(d);return}const W=F&1&&I,J=!mn(d);let le;if(J&&(le=N&&N.onVnodeBeforeUnmount)&&ct(le,p,d),F&6)dt(d.component,b,E);else{if(F&128){d.suspense.unmount(b,E);return}W&&Ft(d,null,p,"beforeUnmount"),F&64?d.type.remove(d,p,b,T,ft,E):M&&(L!==we||m>0&&m&64)?Me(M,p,b,!1,!0):(L===we&&m&384||!T&&F&16)&&Me(D,p,b),E&&Pe(d)}(J&&(le=N&&N.onVnodeUnmounted)||W)&&Be(()=>{le&&ct(le,p,d),W&&Ft(d,null,p,"unmounted")},b)},Pe=d=>{const{type:p,el:b,anchor:E,transition:T}=d;if(p===we){it(b,E);return}if(p===rr){j(d);return}const L=()=>{r(b),T&&!T.persisted&&T.afterLeave&&T.afterLeave()};if(d.shapeFlag&1&&T&&!T.persisted){const{leave:N,delayLeave:z}=T,D=()=>N(b,L);z?z(d.el,L,D):D()}else L()},it=(d,p)=>{let b;for(;d!==p;)b=h(d),r(d),d=b;r(p)},dt=(d,p,b)=>{const{bum:E,scope:T,update:L,subTree:N,um:z}=d;E&&Rn(E),T.stop(),L&&(L.active=!1,me(N,d,p,b)),z&&Be(z,p),Be(()=>{d.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&d.asyncDep&&!d.asyncResolved&&d.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},Me=(d,p,b,E=!1,T=!1,L=0)=>{for(let N=L;N<d.length;N++)me(d[N],p,b,E,T)},tt=d=>d.shapeFlag&6?tt(d.component.subTree):d.shapeFlag&128?d.suspense.next():h(d.anchor||d.el);let _t=!1;const Ne=(d,p,b)=>{d==null?p._vnode&&me(p._vnode,null,null,!0):_(p._vnode||null,d,p,null,null,null,b),_t||(_t=!0,ci(),ui(),_t=!1),p._vnode=d},ft={p:_,um:me,m:Le,r:Pe,mt:ie,mc:v,pc:V,pbc:O,n:tt,o:e};let nt,Mn;return t&&([nt,Mn]=t(ft)),{render:Ne,hydrate:nt,createApp:Na(Ne,nt)}}function or({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 Kt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Za(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Vi(e,t,n=!1){const o=e.children,r=t.children;if(G(o)&&G(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]=Ot(r[i]),l.el=s.el),n||Vi(s,l)),l.type===oo&&(l.el=s.el)}}function Ga(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 Ni(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ni(t)}const Qa=e=>e.__isTeleport,we=Symbol.for("v-fgt"),oo=Symbol.for("v-txt"),Je=Symbol.for("v-cmt"),rr=Symbol.for("v-stc"),yn=[];let rt=null;function R(e=!1){yn.push(rt=e?null:[])}function Ja(){yn.pop(),rt=yn[yn.length-1]||null}let wn=1;function Hi(e){wn+=e}function Fi(e){return e.dynamicChildren=wn>0?rt||qe:null,Ja(),wn>0&&rt&&rt.push(e),e}function Y(e,t,n,o,r,i){return Fi(U(e,t,n,o,r,i,!0))}function be(e,t,n,o,r){return Fi(Z(e,t,n,o,r,!0))}function ro(e){return e?e.__v_isVNode===!0:!1}function Ut(e,t){return e.type===t.type&&e.key===t.key}const io="__vInternal",Wi=({key:e})=>e??null,so=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||Ie(e)||te(e)?{i:Ee,r:e,k:t,f:!!n}:e:null);function U(e,t=null,n=null,o=0,r=null,i=e===we?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Wi(t),ref:t&&so(t),scopeId:pi,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:Ee};return l?(ir(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=ye(n)?8:16),wn>0&&!s&&rt&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&rt.push(a),a}const Z=ec;function ec(e,t=null,n=null,o=0,r=null,i=!1){if((!e||e===mi)&&(e=Je),ro(e)){const l=Pt(e,t,!0);return n&&ir(l,n),wn>0&&!i&&rt&&(l.shapeFlag&6?rt[rt.indexOf(e)]=l:rt.push(l)),l.patchFlag|=-2,l}if(dc(e)&&(e=e.__vccOpts),t){t=tc(t);let{class:l,style:a}=t;l&&!ye(l)&&(t.class=ke(l)),he(a)&&(ni(a)&&!G(a)&&(a=_e({},a)),t.style=Ae(a))}const s=ye(e)?1:ma(e)?128:Qa(e)?64:he(e)?4:te(e)?2:0;return U(e,t,n,o,r,s,i,!0)}function tc(e){return e?ni(e)||io in e?_e({},e):e:null}function Pt(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&&Wi(l),ref:t&&t.ref?n&&r?G(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!==we?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&&Pt(e.ssContent),ssFallback:e.ssFallback&&Pt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Mt(e=" ",t=0){return Z(oo,null,e,t)}function Te(e="",t=!1){return t?(R(),be(Je,null,e)):Z(Je,null,e)}function at(e){return e==null||typeof e=="boolean"?Z(Je):G(e)?Z(we,null,e.slice()):typeof e=="object"?Ot(e):Z(oo,null,String(e))}function Ot(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Pt(e)}function ir(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(G(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),ir(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(io in t)?t._ctx=Ee:r===3&&Ee&&(Ee.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else te(t)?(t={default:t,_ctx:Ee},n=32):(t=String(t),o&64?(n=16,t=[Mt(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=ke([t.class,o.class]));else if(r==="style")t.style=Ae([t.style,o.style]);else if(On(r)){const i=t[r],s=o[r];s&&i!==s&&!(G(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 nc=Pi();let oc=0;function rc(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||nc,i={uid:oc++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new kl(!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:Oi(o,r),emitsOptions:fi(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=ca.bind(null,i),e.ce&&e.ce(i),i}let $e=null;const sr=()=>$e||Ee;let ao,lr;{const e=Io(),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=>$e=n),lr=t("__VUE_SSR_SETTERS__",n=>co=n)}const xn=e=>{const t=$e;return ao(e),e.scope.on(),()=>{e.scope.off(),ao(t)}},Ki=()=>{$e&&$e.scope.off(),ao(null)};function Ui(e){return e.vnode.shapeFlag&4}let co=!1;function ic(e,t=!1){t&&lr(t);const{props:n,children:o}=e.vnode,r=Ui(e);Ha(e,n,r,t),Ka(e,o);const i=r?sc(e,t):void 0;return t&&lr(!1),i}function sc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=oi(new Proxy(e.ctx,Aa));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?ac(e):null,i=xn(e);St();const s=gt(o,e,0,[e.props,r]);if(Ct(),i(),$r(s)){if(s.then(Ki,Ki),t)return s.then(l=>{Yi(e,l,t)}).catch(l=>{Un(l,e,0)});e.asyncDep=s}else Yi(e,s,t)}else Xi(e,t)}function Yi(e,t,n){te(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:he(t)&&(e.setupState=ii(t)),Xi(e,n)}let qi;function Xi(e,t,n){const o=e.type;if(!e.render){if(!t&&qi&&!o.render){const r=o.template||Qo(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=qi(r,c)}}e.render=o.render||Fe}{const r=xn(e);St();try{za(e)}finally{Ct(),r()}}}function lc(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return De(e,"get","$attrs"),t[n]}}))}function ac(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return lc(e)},slots:e.slots,emit:e.emit,expose:t}}function uo(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ii(oi(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in bn)return bn[n](e)},has(t,n){return n in t||n in bn}}))}const cc=/(?:^|[-_])(\w)/g,uc=e=>e.replace(cc,t=>t.toUpperCase()).replace(/[-_]/g,"");function Zi(e,t=!0){return te(e)?e.displayName||e.name:e.name||t&&e.__name}function Gi(e,t,n=!1){let o=Zi(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?uc(o):n?"App":"Anonymous"}function dc(e){return te(e)&&"__vccOpts"in e}const re=(e,t)=>ql(e,t,co);function rn(e,t,n=se){const o=sr(),r=Re(t),i=We(t),s=Jl((a,c)=>{let u;return ya(()=>{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 Qi(e,t,n){const o=arguments.length;return o===2?he(t)&&!G(t)?ro(t)?Z(e,null,[t]):Z(e,t):Z(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&ro(n)&&(n=[n]),Z(e,t,n))}const fc="3.4.15";/**
15
+ `,...oa(r)),console.warn(...i)}kt()}function na(){let e=pn[pn.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 <${Gi(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(...si(o,e[o]))}),n.length>3&&t.push(" ..."),t}function si(e,t,n){return ye(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Te(t)?(t=si(e,ce(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):te(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ce(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 Qe(e,t,n,o){if(te(e)){const i=gt(e,t,n,o);return i&&$r(i)&&i.catch(s=>{Kn(s,t,n)}),i}const r=[];for(let i=0;i<e.length;i++)r.push(Qe(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 hn=!1,Vo=!1;const Oe=[];let at=0;const on=[];let Ct=null,Ft=0;const li=Promise.resolve();let No=null;function mt(e){const t=No||li;return e?t.then(this?e.bind(this):e):t}function la(e){let t=at+1,n=Oe.length;for(;t<n;){const o=t+n>>>1,r=Oe[o],i=gn(r);i<e||i===e&&r.pre?t=o+1:n=o}return t}function Fo(e){(!Oe.length||!Oe.includes(e,hn&&e.allowRecurse?at+1:at))&&(e.id==null?Oe.push(e):Oe.splice(la(e.id),0,e),ai())}function ai(){!hn&&!Vo&&(Vo=!0,No=li.then(di))}function aa(e){const t=Oe.indexOf(e);t>at&&Oe.splice(t,1)}function ca(e){ee(e)?on.push(...e):(!Ct||!Ct.includes(e,e.allowRecurse?Ft+1:Ft))&&on.push(e),ai()}function ci(e,t,n=hn?at+1:0){for(;n<Oe.length;n++){const o=Oe[n];if(o&&o.pre){if(e&&o.id!==e.uid)continue;Oe.splice(n,1),n--,o()}}}function ui(e){if(on.length){const t=[...new Set(on)].sort((n,o)=>gn(n)-gn(o));if(on.length=0,Ct){Ct.push(...t);return}for(Ct=t,Ft=0;Ft<Ct.length;Ft++)Ct[Ft]();Ct=null,Ft=0}}const gn=e=>e.id==null?1/0:e.id,ua=(e,t)=>{const n=gn(e)-gn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function di(e){Vo=!1,hn=!0,Oe.sort(ua);const t=He;try{for(at=0;at<Oe.length;at++){const n=Oe[at];n&&n.active!==!1&&gt(n,null,14)}}finally{at=0,Oe.length=0,ui(),hn=!1,No=null,(Oe.length||on.length)&&di()}}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:f,trim:h}=o[u]||se;h&&(r=n.map(S=>ye(S)?S.trim():S)),f&&(r=n.map(ko))}let l,a=o[l=So(t)]||o[l=So(je(t))];!a&&i&&(a=o[l=So(We(t))]),a&&Qe(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,Qe(c,e,6,r)}}function fi(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(!te(e)){const a=c=>{const u=fi(c,t,!0);u&&(l=!0,be(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):be(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,We(t))||ue(e,t))}let Ee=null,pi=null;function Un(e){const t=Ee;return Ee=e,pi=e&&e.type.__scopeId||null,t}function ne(e,t=Ee,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Fi(-1);const i=Un(t);let s;try{s=e(...r)}finally{Un(i),o._d&&Fi(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function Gp(){}function Ho(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:w,inheritAttrs:b}=e;let A,P;const K=Un(e);try{if(n.shapeFlag&4){const R=r||o,k=R;A=ct(u.call(k,R,f,i,S,h,w)),P=a}else{const R=t;A=ct(R.length>1?R(i,{attrs:a,slots:l,emit:c}):R(i,null)),P=t.props?a:fa(a)}}catch(R){yn.length=0,Kn(R,e,1),A=Q(tt)}let y=A;if(P&&b!==!1){const R=Object.keys(P),{shapeFlag:k}=y;R.length&&k&7&&(s&&R.some(yo)&&(P=pa(P,s)),y=Pt(y,P))}return n.dirs&&(y=Pt(y),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&(y.transition=n.transition),A=y,Un(K),A}const fa=e=>{let t;for(const n in e)(n==="class"||n==="style"||Mn(n))&&((t||(t={}))[n]=e[n]);return t},pa=(e,t)=>{const n={};for(const o in e)(!yo(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?hi(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?hi(o,s,c):!0:!!s;return!1}function hi(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 gi="components",mi=Symbol.for("v-ndc");function ma(e){return ye(e)?va(gi,e,!1)||e:e||mi}function va(e,t,n=!0,o=!1){const r=Ee||Pe;if(r){const i=r.type;if(e===gi){const l=Zi(i,!1);if(l&&(l===t||l===je(t)||l===zn(je(t))))return i}const s=vi(r[e]||i[e],t)||vi(r.appContext[e],t);return!s&&o?i:s}}function vi(e,t){return e&&(e[t]||e[je(t)]||e[zn(je(t))])}const _a=e=>e.__isSuspense;function ba(e,t){t&&t.pendingBranch?ee(e)?t.effects.push(...e):t.effects.push(e):ca(e)}const ya=Symbol.for("v-scx"),wa=()=>Kt(ya);function xa(e,t){return Wo(e,null,{flush:"sync"})}const Yn={};function pe(e,t,n){return Wo(e,t,n)}function Wo(e,t,{immediate:n,deep:o,flush:r,once:i,onTrack:s,onTrigger:l}=se){if(t&&i){const m=t;t=(...x)=>{m(...x),k()}}const a=Pe,c=m=>o===!0?m:Ht(m,o===!1?1:void 0);let u,f=!1,h=!1;if(Te(e)?(u=()=>e.value,f=Wn(e)):tn(e)?(u=()=>c(e),f=!0):ee(e)?(h=!0,f=e.some(m=>tn(m)||Wn(m)),u=()=>e.map(m=>{if(Te(m))return m.value;if(tn(m))return c(m);if(te(m))return gt(m,a,2)})):te(e)?t?u=()=>gt(e,a,2):u=()=>(S&&S(),Qe(e,a,3,[w])):u=He,t&&o){const m=u;u=()=>Ht(m())}let S,w=m=>{S=y.onStop=()=>{gt(m,a,4),S=y.onStop=void 0}},b;if(ao)if(w=He,t?n&&Qe(t,a,3,[u(),h?[]:void 0,w]):u(),r==="sync"){const m=wa();b=m.__watcherHandles||(m.__watcherHandles=[])}else return He;let A=h?new Array(e.length).fill(Yn):Yn;const P=()=>{if(!(!y.active||!y.dirty))if(t){const m=y.run();(o||f||(h?m.some((x,v)=>lt(x,A[v])):lt(m,A)))&&(S&&S(),Qe(t,a,3,[m,A===Yn?void 0:h&&A[0]===Yn?[]:A,w]),A=m)}else y.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=()=>Fo(P));const y=new Eo(u,He,K),R=zr(),k=()=>{y.stop(),R&&wo(R.effects,y)};return t?n?P():A=y.run():r==="post"?Re(y.run.bind(y),a&&a.suspense):y.run(),b&&b.push(k),k}function Sa(e,t,n){const o=this.proxy,r=ye(e)?e.includes(".")?_i(o,e):()=>o[e]:e.bind(o,o);let i;te(t)?i=t:(i=t.handler,n=t);const s=xn(this),l=Wo(r,i.bind(o),n);return s(),l}function _i(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 Ht(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),Te(e))Ht(e.value,t,n,o);else if(ee(e))for(let r=0;r<e.length;r++)Ht(e[r],t,n,o);else if(Er(e)||Jt(e))e.forEach(r=>{Ht(r,t,n,o)});else if(Mr(e))for(const r in e)Ht(e[r],t,n,o);return e}function vt(e,t){if(Ee===null)return e;const n=co(Ee)||Ee.proxy,o=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,s,l,a=se]=t[r];i&&(te(i)&&(i={mounted:i,updated:i}),i.deep&&Ht(s),o.push({dir:i,instance:n,value:s,oldValue:void 0,arg:l,modifiers:a}))}return e}function Wt(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&&(St(),Qe(a,n,8,[e.el,l,e,t]),kt())}}const Tt=Symbol("_leaveCb"),Xn=Symbol("_enterCb");function ka(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return et(()=>{e.isMounted=!0}),Yo(()=>{e.isUnmounting=!0}),e}const Je=[Function,Array],bi={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Je,onEnter:Je,onAfterEnter:Je,onEnterCancelled:Je,onBeforeLeave:Je,onLeave:Je,onAfterLeave:Je,onLeaveCancelled:Je,onBeforeAppear:Je,onAppear:Je,onAfterAppear:Je,onAppearCancelled:Je},Ia={name:"BaseTransition",props:bi,setup(e,{slots:t}){const n=sr(),o=ka();let r;return()=>{const i=t.default&&xi(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){for(const b of i)if(b.type!==tt){s=b;break}}const l=ce(e),{mode:a}=l;if(o.isLeaving)return qo(s);const c=wi(s);if(!c)return qo(s);const u=Ko(c,l,o,n);Uo(c,u);const f=n.subTree,h=f&&wi(f);let S=!1;const{getTransitionKey:w}=c.type;if(w){const b=w();r===void 0?r=b:b!==r&&(r=b,S=!0)}if(h&&h.type!==tt&&(!Ut(c,h)||S)){const b=Ko(h,l,o,n);if(Uo(h,b),a==="out-in")return o.isLeaving=!0,b.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},qo(s);a==="in-out"&&c.type!==tt&&(b.delayLeave=(A,P,K)=>{const y=yi(o,h);y[String(h.key)]=h,A[Tt]=()=>{P(),A[Tt]=void 0,delete u.delayedLeave},u.delayedLeave=K})}return s}}};function yi(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 Ko(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:w,onBeforeAppear:b,onAppear:A,onAfterAppear:P,onAppearCancelled:K}=t,y=String(e.key),R=yi(n,e),k=(v,T)=>{v&&Qe(v,o,9,T)},m=(v,T)=>{const L=T[1];k(v,T),ee(v)?v.every(G=>G.length<=1)&&L():v.length<=1&&L()},x={mode:i,persisted:s,beforeEnter(v){let T=l;if(!n.isMounted)if(r)T=b||l;else return;v[Tt]&&v[Tt](!0);const L=R[y];L&&Ut(e,L)&&L.el[Tt]&&L.el[Tt](),k(T,[v])},enter(v){let T=a,L=c,G=u;if(!n.isMounted)if(r)T=A||a,L=P||c,G=K||u;else return;let N=!1;const ie=v[Xn]=le=>{N||(N=!0,le?k(G,[v]):k(L,[v]),x.delayedLeave&&x.delayedLeave(),v[Xn]=void 0)};T?m(T,[v,ie]):ie()},leave(v,T){const L=String(e.key);if(v[Xn]&&v[Xn](!0),n.isUnmounting)return T();k(f,[v]);let G=!1;const N=v[Tt]=ie=>{G||(G=!0,T(),ie?k(w,[v]):k(S,[v]),v[Tt]=void 0,R[L]===e&&delete R[L])};R[L]=e,h?m(h,[v,N]):N()},clone(v){return Ko(v,t,n,o)}};return x}function qo(e){if(Zn(e))return e=Pt(e),e.children=null,e}function wi(e){return Zn(e)?e.children?e.children[0]:void 0:e}function Uo(e,t){e.shapeFlag&6&&e.component?Uo(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 xi(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===xe?(s.patchFlag&128&&r++,o=o.concat(xi(s.children,t,l))):(t||s.type!==tt)&&o.push(l!=null?Pt(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 Se(e,t){return te(e)?(()=>be({name:e.name},t,{setup:e}))():e}const mn=e=>!!e.type.__asyncLoader,Zn=e=>e.type.__isKeepAlive;function Ca(e,t){Si(e,"a",t)}function Ta(e,t){Si(e,"da",t)}function Si(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)&&Ea(o,t,n,r),r=r.parent}}function Ea(e,t,n,o){const r=Gn(t,e,o,!0);Et(()=>{wo(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;St();const l=xn(n),a=Qe(t,n,e,s);return l(),kt(),a});return o?r.unshift(i):r.push(i),i}}const _t=e=>(t,n=Pe)=>(!ao||e==="sp")&&Gn(e,(...o)=>t(...o),n),$a=_t("bm"),et=_t("m"),Pa=_t("bu"),Ma=_t("u"),Yo=_t("bum"),Et=_t("um"),Oa=_t("sp"),La=_t("rtg"),Aa=_t("rtc");function za(e,t=Pe){Gn("ec",e,t)}function vn(e,t,n,o){let r;const i=n&&n[o];if(ee(e)||ye(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 ki(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 we(e,t,n={},o,r){if(Ee.isCE||Ee.parent&&mn(Ee.parent)&&Ee.parent.isCE)return t!=="default"&&(n.name=t),Q("slot",n,o&&o());let i=e[t];i&&i._c&&(i._d=!1),D();const s=i&&Ii(i(n)),l=me(xe,{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 Ii(e){return e.some(t=>oo(t)?!(t.type===tt||t.type===xe&&!Ii(t.children)):!0)?e:null}const Xo=e=>e?qi(e)?co(e)||e.proxy:Xo(e.parent):null,_n=be(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=>Xo(e.parent),$root:e=>Xo(e.root),$emit:e=>e.emit,$options:e=>Qo(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Fo(e.update)}),$nextTick:e=>e.n||(e.n=mt.bind(e.proxy)),$watch:e=>Sa.bind(e)}),Zo=(e,t)=>e!==se&&!e.__isScriptSetup&&ue(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 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(Zo(o,t))return s[t]=1,o[t];if(r!==se&&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!==se&&ue(n,t))return s[t]=4,n[t];Go&&(s[t]=0)}}const u=_n[t];let f,h;if(u)return t==="$attrs"&&De(e,"get",t),u(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==se&&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 Zo(r,t)?(r[t]=n,!0):o!==se&&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!==se&&ue(e,s)||Zo(t,s)||(l=i[0])&&ue(l,s)||ue(o,s)||ue(_n,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 ee(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function $t(e,t){return!e||!t?e||t:ee(e)&&ee(t)?e.concat(t):be({},Qn(e),Qn(t))}let Go=!0;function Da(e){const t=Qo(e),n=e.proxy,o=e.ctx;Go=!1,t.beforeCreate&&Ci(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:w,activated:b,deactivated:A,beforeDestroy:P,beforeUnmount:K,destroyed:y,unmounted:R,render:k,renderTracked:m,renderTriggered:x,errorCaptured:v,serverPrefetch:T,expose:L,inheritAttrs:G,components:N,directives:ie,filters:le}=t;if(c&&Ra(c,o,null),s)for(const $ in s){const F=s[$];te(F)&&(o[$]=F.bind(n))}if(r){const $=r.call(n,n);ge($)&&(e.data=un($))}if(Go=!0,i)for(const $ in i){const F=i[$],ae=te(F)?F.bind(n,n):te(F.get)?F.get.bind(n,n):He,fe=!te(F)&&te(F.set)?F.set.bind(n):He,ke=re({get:ae,set:fe});Object.defineProperty(o,$,{enumerable:!0,configurable:!0,get:()=>ke.value,set:_e=>ke.value=_e})}if(l)for(const $ in l)Ti(l[$],o,n,$);if(a){const $=te(a)?a.call(n):a;Reflect.ownKeys($).forEach(F=>{to(F,$[F])})}u&&Ci(u,e,"c");function H($,F){ee(F)?F.forEach(ae=>$(ae.bind(n))):F&&$(F.bind(n))}if(H($a,f),H(et,h),H(Pa,S),H(Ma,w),H(Ca,b),H(Ta,A),H(za,v),H(Aa,m),H(La,x),H(Yo,K),H(Et,R),H(Oa,T),ee(L))if(L.length){const $=e.exposed||(e.exposed={});L.forEach(F=>{Object.defineProperty($,F,{get:()=>n[F],set:ae=>n[F]=ae})})}else e.exposed||(e.exposed={});k&&e.render===He&&(e.render=k),G!=null&&(e.inheritAttrs=G),N&&(e.components=N),ie&&(e.directives=ie)}function Ra(e,t,n=He){ee(e)&&(e=Jo(e));for(const o in e){const r=e[o];let i;ge(r)?"default"in r?i=Kt(r.from||o,r.default,!0):i=Kt(r.from||o):i=Kt(r),Te(i)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[o]=i}}function Ci(e,t,n){Qe(ee(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ti(e,t,n,o){const r=o.includes(".")?_i(n,o):()=>n[o];if(ye(e)){const i=t[e];te(i)&&pe(r,i)}else if(te(e))pe(r,e.bind(n));else if(ge(e))if(ee(e))e.forEach(i=>Ti(i,t,n,o));else{const i=te(e.handler)?e.handler.bind(n):t[e.handler];te(i)&&pe(r,i,e)}}function Qo(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:Ei,props:$i,emits:$i,methods:bn,computed:bn,beforeCreate:Ae,created:Ae,beforeMount:Ae,mounted:Ae,beforeUpdate:Ae,updated:Ae,beforeDestroy:Ae,beforeUnmount:Ae,destroyed:Ae,unmounted:Ae,activated:Ae,deactivated:Ae,errorCaptured:Ae,serverPrefetch:Ae,components:bn,directives:bn,watch:Na,provide:Ei,inject:Va};function Ei(e,t){return t?e?function(){return be(te(e)?e.call(this,this):e,te(t)?t.call(this,this):t)}:t:e}function Va(e,t){return bn(Jo(e),Jo(t))}function Jo(e){if(ee(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ae(e,t){return e?[...new Set([].concat(e,t))]:t}function bn(e,t){return e?be(Object.create(null),e,t):t}function $i(e,t){return e?ee(e)&&ee(t)?[...new Set([...e,...t])]:be(Object.create(null),Qn(e),Qn(t??{})):t}function Na(e,t){if(!e)return t;if(!t)return e;const n=be(Object.create(null),e);for(const o in t)n[o]=Ae(e[o],t[o]);return n}function Pi(){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){te(o)||(o=be({},o)),r!=null&&!ge(r)&&(r=null);const i=Pi(),s=new WeakSet;let l=!1;const a=i.app={_uid:Fa++,_component:o,_props:r,_container:null,_context:i,_instance:null,version:hc,get config(){return i.config},set config(c){},use(c,...u){return s.has(c)||(c&&te(c.install)?(s.add(c),c.install(a,...u)):te(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 Kt(e,t,n=!1){const o=Pe||Ee;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&&te(t)?t.call(o&&o.proxy):t}}function Wa(e,t,n,o=!1){const r={},i={};Dn(i,ro,1),e.propsDefaults=Object.create(null),Mi(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=ce(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 w=je(h);r[w]=er(a,l,w,S,e,!1)}else S!==i[h]&&(i[h]=S,c=!0)}}}else{Mi(e,t,r,i)&&(c=!0);let u;for(const f in l)(!t||!ue(t,f)&&((u=We(f))===f||!ue(t,u)))&&(a?n&&(n[f]!==void 0||n[u]!==void 0)&&(r[f]=er(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&&ht(e,"set","$attrs")}function Mi(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=ce(n),c=l||se;for(let u=0;u<i.length;u++){const f=i[u];n[f]=er(r,a,f,c[f],e,!ue(c,f))}}return s}function er(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&&te(a)){const{propsDefaults:c}=r;if(n in c)o=c[n];else{const u=xn(r);o=c[n]=a.call(null,t),u()}}else o=a}s[0]&&(i&&!l?o=!1:s[1]&&(o===""||o===We(n))&&(o=!0))}return o}function Oi(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(!te(e)){const u=f=>{a=!0;const[h,S]=Oi(f,t,!0);be(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,Ze),Ze;if(ee(i))for(let u=0;u<i.length;u++){const f=je(i[u]);Li(f)&&(s[f]=se)}else if(i)for(const u in i){const f=je(u);if(Li(f)){const h=i[u],S=s[f]=ee(h)||te(h)?{type:h}:be({},h);if(S){const w=ji(Boolean,S.type),b=ji(String,S.type);S[0]=w>-1,S[1]=b<0||w<b,(w>-1||ue(S,"default"))&&l.push(f)}}}const c=[s,l];return ge(e)&&o.set(e,c),c}function Li(e){return e[0]!=="$"}function Ai(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function zi(e,t){return Ai(e)===Ai(t)}function ji(e,t){return ee(t)?t.findIndex(n=>zi(n,e)):te(t)&&zi(t,e)?0:-1}const Di=e=>e[0]==="_"||e==="$stable",tr=e=>ee(e)?e.map(ct):[ct(e)],qa=(e,t,n)=>{if(t._n)return t;const o=ne((...r)=>tr(t(...r)),n);return o._c=!1,o},Ri=(e,t,n)=>{const o=e._ctx;for(const r in e){if(Di(r))continue;const i=e[r];if(te(i))t[r]=qa(r,i,o);else if(i!=null){const s=tr(i);t[r]=()=>s}}},Bi=(e,t)=>{const n=tr(t);e.slots.default=()=>n},Ua=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ce(t),Dn(t,"_",n)):Ri(t,e.slots={})}else e.slots={},t&&Bi(e,t);Dn(e.slots,ro,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:(be(r,t),!n&&l===1&&delete r._):(i=!t.$stable,Ri(t,r)),s=t}else t&&(Bi(e,t),s={default:1});if(i)for(const l in r)!Di(l)&&s[l]==null&&delete r[l]};function nr(e,t,n,o,r=!1){if(ee(e)){e.forEach((h,S)=>nr(h,t&&(ee(t)?t[S]:t),n,o,r));return}if(mn(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===se?l.refs={}:l.refs,f=l.setupState;if(c!=null&&c!==a&&(ye(c)?(u[c]=null,ue(f,c)&&(f[c]=null)):Te(c)&&(c.value=null)),te(a))gt(a,l,12,[s,u]);else{const h=ye(a),S=Te(a),w=e.f;if(h||S){const b=()=>{if(w){const A=h?ue(f,a)?f[a]:u[a]:a.value;r?ee(A)&&wo(A,i):ee(A)?A.includes(i)||A.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?b():(b.id=-1,Re(b,n))}}}function Xa(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(Co().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Re=ba;function Za(e){return Ga(e)}function Ga(e,t){Xa();const n=Co();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=He,insertStaticContent:w}=e,b=(d,p,_,I=null,E=null,j=null,B=void 0,z=null,V=!!p.dynamicChildren)=>{if(d===p)return;d&&!Ut(d,p)&&(I=Ye(d),_e(d,E,j,!0),d=null),p.patchFlag===-2&&(V=!1,p.dynamicChildren=null);const{type:M,ref:W,shapeFlag:J}=p;switch(M){case no:A(d,p,_,I);break;case tt:P(d,p,_,I);break;case rr:d==null&&K(p,_,I,B);break;case xe:N(d,p,_,I,E,j,B,z,V);break;default:J&1?k(d,p,_,I,E,j,B,z,V):J&6?ie(d,p,_,I,E,j,B,z,V):(J&64||J&128)&&M.process(d,p,_,I,E,j,B,z,V,pt)}W!=null&&E&&nr(W,d&&d.ref,j,p||d,!p)},A=(d,p,_,I)=>{if(d==null)o(p.el=l(p.children),_,I);else{const E=p.el=d.el;p.children!==d.children&&c(E,p.children)}},P=(d,p,_,I)=>{d==null?o(p.el=a(p.children||""),_,I):p.el=d.el},K=(d,p,_,I)=>{[d.el,d.anchor]=w(d.children,p,_,I,d.el,d.anchor)},y=({el:d,anchor:p},_,I)=>{let E;for(;d&&d!==p;)E=h(d),o(d,_,I),d=E;o(p,_,I)},R=({el:d,anchor:p})=>{let _;for(;d&&d!==p;)_=h(d),r(d),d=_;r(p)},k=(d,p,_,I,E,j,B,z,V)=>{p.type==="svg"?B="svg":p.type==="math"&&(B="mathml"),d==null?m(p,_,I,E,j,B,z,V):T(d,p,E,j,B,z,V)},m=(d,p,_,I,E,j,B,z)=>{let V,M;const{props:W,shapeFlag:J,transition:g,dirs:C}=d;if(V=d.el=s(d.type,j,W&&W.is,W),J&8?u(V,d.children):J&16&&v(d.children,V,null,I,E,or(d,j),B,z),C&&Wt(d,null,I,"created"),x(V,d,d.scopeId,B,I),W){for(const oe in W)oe!=="value"&&!Ln(oe)&&i(V,oe,null,W[oe],j,d.children,I,E,Ue);"value"in W&&i(V,"value",null,W.value,j),(M=W.onVnodeBeforeMount)&&ut(M,I,d)}C&&Wt(d,null,I,"beforeMount");const Y=Qa(E,g);Y&&g.beforeEnter(V),o(V,p,_),((M=W&&W.onVnodeMounted)||Y||C)&&Re(()=>{M&&ut(M,I,d),Y&&g.enter(V),C&&Wt(d,null,I,"mounted")},E)},x=(d,p,_,I,E)=>{if(_&&S(d,_),I)for(let j=0;j<I.length;j++)S(d,I[j]);if(E){let j=E.subTree;if(p===j){const B=E.vnode;x(d,B,B.scopeId,B.slotScopeIds,E.parent)}}},v=(d,p,_,I,E,j,B,z,V=0)=>{for(let M=V;M<d.length;M++){const W=d[M]=z?Ot(d[M]):ct(d[M]);b(null,W,p,_,I,E,j,B,z)}},T=(d,p,_,I,E,j,B)=>{const z=p.el=d.el;let{patchFlag:V,dynamicChildren:M,dirs:W}=p;V|=d.patchFlag&16;const J=d.props||se,g=p.props||se;let C;if(_&&qt(_,!1),(C=g.onVnodeBeforeUpdate)&&ut(C,_,p,d),W&&Wt(p,d,_,"beforeUpdate"),_&&qt(_,!0),M?L(d.dynamicChildren,M,z,_,I,or(p,E),j):B||F(d,p,z,null,_,I,or(p,E),j,!1),V>0){if(V&16)G(z,p,J,g,_,I,E);else if(V&2&&J.class!==g.class&&i(z,"class",null,g.class,E),V&4&&i(z,"style",J.style,g.style,E),V&8){const Y=p.dynamicProps;for(let oe=0;oe<Y.length;oe++){const de=Y[oe],Ie=J[de],Xe=g[de];(Xe!==Ie||de==="value")&&i(z,de,Ie,Xe,E,d.children,_,I,Ue)}}V&1&&d.children!==p.children&&u(z,p.children)}else!B&&M==null&&G(z,p,J,g,_,I,E);((C=g.onVnodeUpdated)||W)&&Re(()=>{C&&ut(C,_,p,d),W&&Wt(p,d,_,"updated")},I)},L=(d,p,_,I,E,j,B)=>{for(let z=0;z<p.length;z++){const V=d[z],M=p[z],W=V.el&&(V.type===xe||!Ut(V,M)||V.shapeFlag&70)?f(V.el):_;b(V,M,W,null,I,E,j,B,!0)}},G=(d,p,_,I,E,j,B)=>{if(_!==I){if(_!==se)for(const z in _)!Ln(z)&&!(z in I)&&i(d,z,_[z],null,B,p.children,E,j,Ue);for(const z in I){if(Ln(z))continue;const V=I[z],M=_[z];V!==M&&z!=="value"&&i(d,z,M,V,B,p.children,E,j,Ue)}"value"in I&&i(d,"value",_.value,I.value,B)}},N=(d,p,_,I,E,j,B,z,V)=>{const M=p.el=d?d.el:l(""),W=p.anchor=d?d.anchor:l("");let{patchFlag:J,dynamicChildren:g,slotScopeIds:C}=p;C&&(z=z?z.concat(C):C),d==null?(o(M,_,I),o(W,_,I),v(p.children||[],_,W,E,j,B,z,V)):J>0&&J&64&&g&&d.dynamicChildren?(L(d.dynamicChildren,g,_,E,j,B,z),(p.key!=null||E&&p===E.subTree)&&Vi(d,p,!0)):F(d,p,_,W,E,j,B,z,V)},ie=(d,p,_,I,E,j,B,z,V)=>{p.slotScopeIds=z,d==null?p.shapeFlag&512?E.ctx.activate(p,_,I,B,V):le(p,_,I,E,j,B,V):O(d,p,V)},le=(d,p,_,I,E,j,B)=>{const z=d.component=sc(d,I,E);if(Zn(d)&&(z.ctx.renderer=pt),lc(z),z.asyncDep){if(E&&E.registerDep(z,H),!d.el){const V=z.subTree=Q(tt);P(null,V,p,_)}}else H(z,d,p,_,E,j,B)},O=(d,p,_)=>{const I=p.component=d.component;if(ha(d,p,_))if(I.asyncDep&&!I.asyncResolved){$(I,p,_);return}else I.next=p,aa(I.update),I.effect.dirty=!0,I.update();else p.el=d.el,I.vnode=p},H=(d,p,_,I,E,j,B)=>{const z=()=>{if(d.isMounted){let{next:W,bu:J,u:g,parent:C,vnode:Y}=d;{const Bt=Ni(d);if(Bt){W&&(W.el=Y.el,$(d,W,B)),Bt.asyncDep.then(()=>{d.isUnmounted||z()});return}}let oe=W,de;qt(d,!1),W?(W.el=Y.el,$(d,W,B)):W=Y,J&&jn(J),(de=W.props&&W.props.onVnodeBeforeUpdate)&&ut(de,C,W,Y),qt(d,!0);const Ie=Ho(d),Xe=d.subTree;d.subTree=Ie,b(Xe,Ie,f(Xe.el),Ye(Xe),d,E,j),W.el=Ie.el,oe===null&&ga(d,Ie.el),g&&Re(g,E),(de=W.props&&W.props.onVnodeUpdated)&&Re(()=>ut(de,C,W,Y),E)}else{let W;const{el:J,props:g}=p,{bm:C,m:Y,parent:oe}=d,de=mn(p);if(qt(d,!1),C&&jn(C),!de&&(W=g&&g.onVnodeBeforeMount)&&ut(W,oe,p),qt(d,!0),J&&bt){const Ie=()=>{d.subTree=Ho(d),bt(J,d.subTree,d,E,null)};de?p.type.__asyncLoader().then(()=>!d.isUnmounted&&Ie()):Ie()}else{const Ie=d.subTree=Ho(d);b(null,Ie,_,I,d,E,j),p.el=Ie.el}if(Y&&Re(Y,E),!de&&(W=g&&g.onVnodeMounted)){const Ie=p;Re(()=>ut(W,oe,Ie),E)}(p.shapeFlag&256||oe&&mn(oe.vnode)&&oe.vnode.shapeFlag&256)&&d.a&&Re(d.a,E),d.isMounted=!0,p=_=I=null}},V=d.effect=new Eo(z,He,()=>Fo(M),d.scope),M=d.update=()=>{V.dirty&&V.run()};M.id=d.uid,qt(d,!0),M()},$=(d,p,_)=>{p.component=d;const I=d.vnode.props;d.vnode=p,d.next=null,Ka(d,p.props,I,_),Ya(d,p.children,_),St(),ci(d),kt()},F=(d,p,_,I,E,j,B,z,V=!1)=>{const M=d&&d.children,W=d?d.shapeFlag:0,J=p.children,{patchFlag:g,shapeFlag:C}=p;if(g>0){if(g&128){fe(M,J,_,I,E,j,B,z,V);return}else if(g&256){ae(M,J,_,I,E,j,B,z,V);return}}C&8?(W&16&&Ue(M,E,j),J!==M&&u(_,J)):W&16?C&16?fe(M,J,_,I,E,j,B,z,V):Ue(M,E,j,!0):(W&8&&u(_,""),C&16&&v(J,_,I,E,j,B,z,V))},ae=(d,p,_,I,E,j,B,z,V)=>{d=d||Ze,p=p||Ze;const M=d.length,W=p.length,J=Math.min(M,W);let g;for(g=0;g<J;g++){const C=p[g]=V?Ot(p[g]):ct(p[g]);b(d[g],C,_,null,E,j,B,z,V)}M>W?Ue(d,E,j,!0,!1,J):v(p,_,I,E,j,B,z,V,J)},fe=(d,p,_,I,E,j,B,z,V)=>{let M=0;const W=p.length;let J=d.length-1,g=W-1;for(;M<=J&&M<=g;){const C=d[M],Y=p[M]=V?Ot(p[M]):ct(p[M]);if(Ut(C,Y))b(C,Y,_,null,E,j,B,z,V);else break;M++}for(;M<=J&&M<=g;){const C=d[J],Y=p[g]=V?Ot(p[g]):ct(p[g]);if(Ut(C,Y))b(C,Y,_,null,E,j,B,z,V);else break;J--,g--}if(M>J){if(M<=g){const C=g+1,Y=C<W?p[C].el:I;for(;M<=g;)b(null,p[M]=V?Ot(p[M]):ct(p[M]),_,Y,E,j,B,z,V),M++}}else if(M>g)for(;M<=J;)_e(d[M],E,j,!0),M++;else{const C=M,Y=M,oe=new Map;for(M=Y;M<=g;M++){const ze=p[M]=V?Ot(p[M]):ct(p[M]);ze.key!=null&&oe.set(ze.key,M)}let de,Ie=0;const Xe=g-Y+1;let Bt=!1,vo=0;const Ne=new Array(Xe);for(M=0;M<Xe;M++)Ne[M]=0;for(M=C;M<=J;M++){const ze=d[M];if(Ie>=Xe){_e(ze,E,j,!0);continue}let it;if(ze.key!=null)it=oe.get(ze.key);else for(de=Y;de<=g;de++)if(Ne[de-Y]===0&&Ut(ze,p[de])){it=de;break}it===void 0?_e(ze,E,j,!0):(Ne[it-Y]=M+1,it>=vo?vo=it:Bt=!0,b(ze,p[it],_,null,E,j,B,z,V),Ie++)}const _o=Bt?Ja(Ne):Ze;for(de=_o.length-1,M=Xe-1;M>=0;M--){const ze=Y+M,it=p[ze],bo=ze+1<W?p[ze+1].el:I;Ne[M]===0?b(null,it,_,bo,E,j,B,z,V):Bt&&(de<0||M!==_o[de]?ke(it,_,bo,2):de--)}}},ke=(d,p,_,I,E=null)=>{const{el:j,type:B,transition:z,children:V,shapeFlag:M}=d;if(M&6){ke(d.component.subTree,p,_,I);return}if(M&128){d.suspense.move(p,_,I);return}if(M&64){B.move(d,p,_,pt);return}if(B===xe){o(j,p,_);for(let J=0;J<V.length;J++)ke(V[J],p,_,I);o(d.anchor,p,_);return}if(B===rr){y(d,p,_);return}if(I!==2&&M&1&&z)if(I===0)z.beforeEnter(j),o(j,p,_),Re(()=>z.enter(j),E);else{const{leave:J,delayLeave:g,afterLeave:C}=z,Y=()=>o(j,p,_),oe=()=>{J(j,()=>{Y(),C&&C()})};g?g(j,Y,oe):oe()}else o(j,p,_)},_e=(d,p,_,I=!1,E=!1)=>{const{type:j,props:B,ref:z,children:V,dynamicChildren:M,shapeFlag:W,patchFlag:J,dirs:g}=d;if(z!=null&&nr(z,null,_,d,!0),W&256){p.ctx.deactivate(d);return}const C=W&1&&g,Y=!mn(d);let oe;if(Y&&(oe=B&&B.onVnodeBeforeUnmount)&&ut(oe,p,d),W&6)ft(d.component,_,I);else{if(W&128){d.suspense.unmount(_,I);return}C&&Wt(d,null,p,"beforeUnmount"),W&64?d.type.remove(d,p,_,E,pt,I):M&&(j!==xe||J>0&&J&64)?Ue(M,p,_,!1,!0):(j===xe&&J&384||!E&&W&16)&&Ue(V,p,_),I&&Me(d)}(Y&&(oe=B&&B.onVnodeUnmounted)||C)&&Re(()=>{oe&&ut(oe,p,d),C&&Wt(d,null,p,"unmounted")},_)},Me=d=>{const{type:p,el:_,anchor:I,transition:E}=d;if(p===xe){ot(_,I);return}if(p===rr){R(d);return}const j=()=>{r(_),E&&!E.persisted&&E.afterLeave&&E.afterLeave()};if(d.shapeFlag&1&&E&&!E.persisted){const{leave:B,delayLeave:z}=E,V=()=>B(_,j);z?z(d.el,j,V):V()}else j()},ot=(d,p)=>{let _;for(;d!==p;)_=h(d),r(d),d=_;r(p)},ft=(d,p,_)=>{const{bum:I,scope:E,update:j,subTree:B,um:z}=d;I&&jn(I),E.stop(),j&&(j.active=!1,_e(B,d,p,_)),z&&Re(z,p),Re(()=>{d.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&d.asyncDep&&!d.asyncResolved&&d.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},Ue=(d,p,_,I=!1,E=!1,j=0)=>{for(let B=j;B<d.length;B++)_e(d[B],p,_,I,E)},Ye=d=>d.shapeFlag&6?Ye(d.component.subTree):d.shapeFlag&128?d.suspense.next():h(d.anchor||d.el);let rt=!1;const Ve=(d,p,_)=>{d==null?p._vnode&&_e(p._vnode,null,null,!0):b(p._vnode||null,d,p,null,null,null,_),rt||(rt=!0,ci(),ui(),rt=!1),p._vnode=d},pt={p:b,um:_e,m:ke,r:Me,mt:le,mc:v,pc:F,pbc:L,n:Ye,o:e};let Rt,bt;return t&&([Rt,bt]=t(pt)),{render:Ve,hydrate:Rt,createApp:Ha(Ve,Rt)}}function or({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 qt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Qa(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Vi(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]=Ot(r[i]),l.el=s.el),n||Vi(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 Ni(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ni(t)}const ec=e=>e.__isTeleport,xe=Symbol.for("v-fgt"),no=Symbol.for("v-txt"),tt=Symbol.for("v-cmt"),rr=Symbol.for("v-stc"),yn=[];let st=null;function D(e=!1){yn.push(st=e?null:[])}function tc(){yn.pop(),st=yn[yn.length-1]||null}let wn=1;function Fi(e){wn+=e}function Hi(e){return e.dynamicChildren=wn>0?st||Ze:null,tc(),wn>0&&st&&st.push(e),e}function q(e,t,n,o,r,i){return Hi(U(e,t,n,o,r,i,!0))}function me(e,t,n,o,r){return Hi(Q(e,t,n,o,r,!0))}function oo(e){return e?e.__v_isVNode===!0:!1}function Ut(e,t){return e.type===t.type&&e.key===t.key}const ro="__vInternal",Wi=({key:e})=>e??null,io=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||Te(e)||te(e)?{i:Ee,r:e,k:t,f:!!n}:e:null);function U(e,t=null,n=null,o=0,r=null,i=e===xe?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Wi(t),ref:t&&io(t),scopeId:pi,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:Ee};return l?(ir(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=ye(n)?8:16),wn>0&&!s&&st&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&st.push(a),a}const Q=nc;function nc(e,t=null,n=null,o=0,r=null,i=!1){if((!e||e===mi)&&(e=tt),oo(e)){const l=Pt(e,t,!0);return n&&ir(l,n),wn>0&&!i&&st&&(l.shapeFlag&6?st[st.indexOf(e)]=l:st.push(l)),l.patchFlag|=-2,l}if(pc(e)&&(e=e.__vccOpts),t){t=oc(t);let{class:l,style:a}=t;l&&!ye(l)&&(t.class=Ce(l)),ge(a)&&(ni(a)&&!ee(a)&&(a=be({},a)),t.style=Le(a))}const s=ye(e)?1:_a(e)?128:ec(e)?64:ge(e)?4:te(e)?2:0;return U(e,t,n,o,r,s,i,!0)}function oc(e){return e?ni(e)||ro in e?be({},e):e:null}function Pt(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&&Wi(l),ref:t&&t.ref?n&&r?ee(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!==xe?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&&Pt(e.ssContent),ssFallback:e.ssFallback&&Pt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Mt(e=" ",t=0){return Q(no,null,e,t)}function $e(e="",t=!1){return t?(D(),me(tt,null,e)):Q(tt,null,e)}function ct(e){return e==null||typeof e=="boolean"?Q(tt):ee(e)?Q(xe,null,e.slice()):typeof e=="object"?Ot(e):Q(no,null,String(e))}function Ot(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Pt(e)}function ir(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),ir(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(ro in t)?t._ctx=Ee:r===3&&Ee&&(Ee.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else te(t)?(t={default:t,_ctx:Ee},n=32):(t=String(t),o&64?(n=16,t=[Mt(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=Ce([t.class,o.class]));else if(r==="style")t.style=Le([t.style,o.style]);else if(Mn(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){Qe(e,t,7,[n,o])}const rc=Pi();let ic=0;function sc(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||rc,i={uid:ic++,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:Oi(o,r),emitsOptions:fi(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 Pe=null;const sr=()=>Pe||Ee;let lo,lr;{const e=Co(),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),lr=t("__VUE_SSR_SETTERS__",n=>ao=n)}const xn=e=>{const t=Pe;return lo(e),e.scope.on(),()=>{e.scope.off(),lo(t)}},Ki=()=>{Pe&&Pe.scope.off(),lo(null)};function qi(e){return e.vnode.shapeFlag&4}let ao=!1;function lc(e,t=!1){t&&lr(t);const{props:n,children:o}=e.vnode,r=qi(e);Wa(e,n,r,t),Ua(e,o);const i=r?ac(e,t):void 0;return t&&lr(!1),i}function ac(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=oi(new Proxy(e.ctx,ja));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?uc(e):null,i=xn(e);St();const s=gt(o,e,0,[e.props,r]);if(kt(),i(),$r(s)){if(s.then(Ki,Ki),t)return s.then(l=>{Ui(e,l,t)}).catch(l=>{Kn(l,e,0)});e.asyncDep=s}else Ui(e,s,t)}else Xi(e,t)}function Ui(e,t,n){te(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=ii(t)),Xi(e,n)}let Yi;function Xi(e,t,n){const o=e.type;if(!e.render){if(!t&&Yi&&!o.render){const r=o.template||Qo(e).template;if(r){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,c=be(be({isCustomElement:i,delimiters:l},s),a);o.render=Yi(r,c)}}e.render=o.render||He}{const r=xn(e);St();try{Da(e)}finally{kt(),r()}}}function cc(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return De(e,"get","$attrs"),t[n]}}))}function uc(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return cc(e)},slots:e.slots,emit:e.emit,expose:t}}function co(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ii(oi(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in _n)return _n[n](e)},has(t,n){return n in t||n in _n}}))}const dc=/(?:^|[-_])(\w)/g,fc=e=>e.replace(dc,t=>t.toUpperCase()).replace(/[-_]/g,"");function Zi(e,t=!0){return te(e)?e.displayName||e.name:e.name||t&&e.__name}function Gi(e,t,n=!1){let o=Zi(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?fc(o):n?"App":"Anonymous"}function pc(e){return te(e)&&"__vccOpts"in e}const re=(e,t)=>Zl(e,t,ao);function rn(e,t,n=se){const o=sr(),r=je(t),i=We(t),s=ta((a,c)=>{let u;return xa(()=>{const f=e[t];lt(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))&&lt(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 Qi(e,t,n){const o=arguments.length;return o===2?ge(t)&&!ee(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 hc="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 pc="http://www.w3.org/2000/svg",hc="http://www.w3.org/1998/Math/MathML",Lt=typeof document<"u"?document:null,Ji=Lt&&Lt.createElement("template"),gc={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"?Lt.createElementNS(pc,e):t==="mathml"?Lt.createElementNS(hc,e):Lt.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>Lt.createTextNode(e),createComment:e=>Lt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Lt.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{Ji.innerHTML=o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e;const l=Ji.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]}},At="transition",Sn="animation",Cn=Symbol("_vtc"),sn=(e,{slots:t})=>Qi(Sa,mc(e),t);sn.displayName="Transition";const es={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};sn.props=_e({},_i,es);const Yt=(e,t=[])=>{G(e)?e.forEach(n=>n(...t)):e&&e(...t)},ts=e=>e?G(e)?e.some(t=>t.length>1):e.length>1:!1;function mc(e){const t={};for(const H in e)H in es||(t[H]=e[H]);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,x=vc(r),_=x&&x[0],A=x&&x[1],{onBeforeEnter:P,onEnter:K,onEnterCancelled:y,onLeave:j,onLeaveCancelled:C,onBeforeAppear:g=P,onAppear:w=K,onAppearCancelled:v=y}=t,B=(H,ne,ie)=>{qt(H,ne?u:l),qt(H,ne?c:s),ie&&ie()},O=(H,ne)=>{H._isLeaving=!1,qt(H,f),qt(H,S),qt(H,h),ne&&ne()},ee=H=>(ne,ie)=>{const k=H?w:K,Q=()=>B(ne,H,ie);Yt(k,[ne,Q]),ns(()=>{qt(ne,H?a:i),zt(ne,H?u:l),ts(k)||os(ne,o,_,Q)})};return _e(t,{onBeforeEnter(H){Yt(P,[H]),zt(H,i),zt(H,s)},onBeforeAppear(H){Yt(g,[H]),zt(H,a),zt(H,c)},onEnter:ee(!1),onAppear:ee(!0),onLeave(H,ne){H._isLeaving=!0;const ie=()=>O(H,ne);zt(H,f),yc(),zt(H,h),ns(()=>{H._isLeaving&&(qt(H,f),zt(H,S),ts(j)||os(H,o,A,ie))}),Yt(j,[H,ie])},onEnterCancelled(H){B(H,!1),Yt(y,[H])},onAppearCancelled(H){B(H,!0),Yt(v,[H])},onLeaveCancelled(H){O(H),Yt(C,[H])}})}function vc(e){if(e==null)return null;if(he(e))return[ar(e.enter),ar(e.leave)];{const t=ar(e);return[t,t]}}function ar(e){return ko(e)}function zt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Cn]||(e[Cn]=new Set)).add(t)}function qt(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[Cn];n&&(n.delete(t),n.size||(e[Cn]=void 0))}function ns(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let bc=0;function os(e,t,n,o){const r=e._endId=++bc,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:l,propCount:a}=_c(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 _c(e,t){const n=window.getComputedStyle(e),o=x=>(n[x]||"").split(", "),r=o(`${At}Delay`),i=o(`${At}Duration`),s=rs(r,i),l=o(`${Sn}Delay`),a=o(`${Sn}Duration`),c=rs(l,a);let u=null,f=0,h=0;t===At?s>0&&(u=At,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?At:Sn:null,h=u?u===At?i.length:a.length:0);const S=u===At&&/\b(transform|all)(,|$)/.test(o(`${At}Property`).toString());return{type:u,timeout:f,propCount:h,hasTransform:S}}function rs(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>is(n)+is(e[o])))}function is(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function yc(){return document.body.offsetHeight}function wc(e,t,n){const o=e[Cn];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const cr=Symbol("_vod"),ss={beforeMount(e,{value:t},{transition:n}){e[cr]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):kn(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),kn(e,!0),o.enter(e)):o.leave(e,()=>{kn(e,!1)}):kn(e,t))},beforeUnmount(e,{value:t}){kn(e,t)}};function kn(e,t){e.style.display=t?e[cr]:"none"}const xc=Symbol("");function Sc(e,t,n){const o=e.style,r=o.display,i=ye(n);if(n&&!i){if(t&&!ye(t))for(const s in t)n[s]==null&&ur(o,s,"");for(const s in n)ur(o,s,n[s])}else if(i){if(t!==n){const s=o[xc];s&&(n+=";"+s),o.cssText=n}}else t&&e.removeAttribute("style");cr in e&&(o.display=r)}const ls=/\s*!important$/;function ur(e,t,n){if(G(n))n.forEach(o=>ur(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Cc(e,t);ls.test(n)?e.setProperty(We(o),n.replace(ls,""),"important"):e[o]=n}}const as=["Webkit","Moz","ms"],dr={};function Cc(e,t){const n=dr[t];if(n)return n;let o=Re(t);if(o!=="filter"&&o in e)return dr[t]=o;o=jn(o);for(let r=0;r<as.length;r++){const i=as[r]+o;if(i in e)return dr[t]=i}return t}const cs="http://www.w3.org/1999/xlink";function kc(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(cs,t.slice(6,t.length)):e.setAttributeNS(cs,t,n);else{const i=Cl(t);n==null||i&&!Lr(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function Ic(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=Lr(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function ln(e,t,n,o){e.addEventListener(t,n,o)}function Ec(e,t,n,o){e.removeEventListener(t,n,o)}const us=Symbol("_vei");function Tc(e,t,n,o,r=null){const i=e[us]||(e[us]={}),s=i[t];if(o&&s)s.value=o;else{const[l,a]=$c(t);if(o){const c=i[t]=Oc(o,r);ln(e,l,c,a)}else s&&(Ec(e,l,s,a),i[t]=void 0)}}const ds=/(?:Once|Passive|Capture)$/;function $c(e){let t;if(ds.test(e)){t={};let o;for(;o=e.match(ds);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):We(e.slice(2)),t]}let fr=0;const Pc=Promise.resolve(),Mc=()=>fr||(Pc.then(()=>fr=0),fr=Date.now());function Oc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Ze(Lc(o,n.value),t,5,[o])};return n.value=e,n.attached=Mc(),n}function Lc(e,t){if(G(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 fs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ac=(e,t,n,o,r,i,s,l,a)=>{const c=r==="svg";t==="class"?wc(e,o,c):t==="style"?Sc(e,n,o):On(t)?yo(t)||Tc(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):zc(e,t,o,c))?Ic(e,t,o,i,s,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),kc(e,t,o,c))};function zc(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&fs(t)&&te(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 fs(t)&&ye(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function jc(e,t){const n=xe(e);class o extends pr{constructor(i){super(n,i,t)}}return o.def=n,o}const Rc=typeof HTMLElement<"u"?HTMLElement:class{};class pr extends Rc{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||(vs(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&&!G(i))for(const a in i){const c=i[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=ko(this._props[a])),(l||(l=Object.create(null)))[Re(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=G(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(Re))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(i){this._setProp(r,i)}})}_setAttr(t){let n=this.getAttribute(t);const o=Re(t);this._numberProps&&this._numberProps[o]&&(n=ko(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(We(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(We(t),n+""):n||this.removeAttribute(We(t))))}_update(){vs(this._createVNode(),this.shadowRoot)}_createVNode(){const t=Z(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),We(i)!==i&&o(We(i),s)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof pr){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 ps=e=>{const t=e.props["onUpdate:modelValue"]||!1;return G(t)?n=>Rn(t,n):t};function Dc(e){e.target.composing=!0}function hs(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const hr=Symbol("_assign"),Bc={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[hr]=ps(r);const i=o||r.props&&r.props.type==="number";ln(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=Co(l)),e[hr](l)}),n&&ln(e,"change",()=>{e.value=e.value.trim()}),t||(ln(e,"compositionstart",Dc),ln(e,"compositionend",hs),ln(e,"change",hs))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},i){if(e[hr]=ps(i),e.composing)return;const s=r||e.type==="number"?Co(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===l)||(e.value=l))}},Vc=["ctrl","shift","alt","meta"],Nc={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)=>Vc.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=Nc[t[s]];if(l&&l(r,t))return}return e(r,...i)})},Hc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},gs=(e,t)=>{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=r=>{if(!("key"in r))return;const i=We(r.key);if(t.some(s=>s===i||Hc[s]===i))return e(r)})},Fc=_e({patchProp:Ac},gc);let ms;function Wc(){return ms||(ms=qa(Fc))}const vs=(...e)=>{Wc().render(...e)},Kc=`.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}}
21
- `,ge=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Uc={},Yc={class:"loading-indicator"};function qc(e,t){return R(),Y("div",Yc)}const gr=ge(Uc,[["render",qc],["styles",[Kc]]]),Xc=Object.freeze(Object.defineProperty({__proto__:null,default:gr},Symbol.toStringTag,{value:"Module"})),Zc={key:0,class:"fixed inset-0 h-[101%] overflow-auto scrollbar-none flex justify-center items-center z-10 bg-black"},Gc={class:"flex justify-between items-end"},Qc={class:"inline-block children-pointer-events-auto w-1/3"},Jc={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},eu={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},tu={class:"inline-block z-20 relative"},bs=ge(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)=>{const o=gr;return R(),Y("div",{class:ke(["reader-layout",{"cursor-none":t.idle,"bg-black":t.immediate||!t.loading,"opacity-0":!t.immediate&&t.loading,"duration-200 transition-colors":!t.immediate}])},[t.loading&&t.immediate?(R(),Y("div",Zc,[Z(o)])):Te("",!0),Se(t.$slots,"default"),U("div",{id:"controls",class:ke(["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}])},[U("div",{class:"flex gap-1 items-center children-pointer-events-auto relative z-30 flex-shrink-0 2xs:gap-3",style:Ae({paddingTop:`${t.spaceTop||0}px`})},[Se(t.$slots,"back"),Se(t.$slots,"exit"),Se(t.$slots,"chapter-nav")],4),U("div",Gc,[U("div",Qc,[Se(t.$slots,"page-nav")]),U("div",Jc,[Se(t.$slots,"reset-zoom")]),U("div",eu,[Se(t.$slots,"entry"),U("div",tu,[Se(t.$slots,"settings")]),Se(t.$slots,"full-screen"),Se(t.$slots,"play")])]),U("div",{class:ke(["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:auto;overscroll-behavior:contain;position:fixed;scrollbar-width:none;top:0;width:100vw}.reader-layout::-webkit-scrollbar{display:none}
22
- `]]]),nu=Object.freeze(Object.defineProperty({__proto__:null,default:bs},Symbol.toStringTag,{value:"Module"})),ou={},ru={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},iu=[U("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[U("circle",{cx:"14",cy:"14",r:"12"}),U("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function su(e,t){return R(),Y("svg",ru,iu)}const _s=ge(ou,[["render",su]]),lu=Object.freeze(Object.defineProperty({__proto__:null,default:_s},Symbol.toStringTag,{value:"Module"})),au={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"},cu={class:"block w-4 h-4"},uu={class:"w-12"},ys=xe({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>{const o=_s;return t.zoom!==1?(R(),Y("button",au,[U("div",cu,[Z(o)]),U("div",uu,Xe(Math.ceil(t.zoom*100))+"%",1)])):Te("",!0)}}}),du=Object.freeze(Object.defineProperty({__proto__:null,default:ys},Symbol.toStringTag,{value:"Module"})),fu={},pu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},hu=[U("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 gu(e,t){return R(),Y("svg",pu,hu)}const mr=ge(fu,[["render",gu]]),mu=Object.freeze(Object.defineProperty({__proto__:null,default:mr},Symbol.toStringTag,{value:"Module"})),vu={},bu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},_u=[U("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),U("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 yu(e,t){return R(),Y("svg",bu,_u)}const vr=ge(vu,[["render",yu]]),wu=Object.freeze(Object.defineProperty({__proto__:null,default:vr},Symbol.toStringTag,{value:"Module"}));function xu({touchDevice:e}){const t=q(!1);let n=0;return no("busy:touchDevice",e),no("setBusyState",o=>{n+=o?1:-1;const r=n>0;t.value!=r&&(t.value=r)}),t}function br(){const e=Wt("busy:touchDevice"),t=Wt("setBusyState");let n=!1;return Tt(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:r=!1}={})=>{r&&e||(n=o,t==null||t(o))}}const Su=(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))}},an={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>Su(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},Cu={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"},fo=xe({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,o=t,r=br();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((R(),be(ha(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:oe(()=>[U("div",Cu,[Se(c.$slots,"default")])]),_:3},16,["class"])),[[X(an),c.disabled?0:15]])}}),ku=Object.freeze(Object.defineProperty({__proto__:null,default:fo},Symbol.toStringTag,{value:"Module"})),Iu={},Eu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Tu=[U("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 R(),Y("svg",Eu,Tu)}const ws=ge(Iu,[["render",$u]]),Pu=Object.freeze(Object.defineProperty({__proto__:null,default:ws},Symbol.toStringTag,{value:"Module"}));class Mu{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 Ou(){const e=new Mu;return Tt(()=>e.dispose()),no("keyController",e),e}function po(e){const t=Wt("keyController");Qe(()=>t.addListener(e)),Tt(()=>t.removeListener(e))}const Lu={class:"flex w-full flex-shrink-0 justify-between items-center h-16 px-3"},Au={class:"font-medium md:text-lg text-ellipsis overflow-hidden whitespace-nowrap px-3"},zu={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},xs=xe({__name:"BottomSheet",props:$t({name:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=rn(e,"modelValue");po({onKeyDown:o});const n=br();de(t,r=>n(r));function o(r){t.value&&r.key==="Escape"&&(t.value=!1,r.preventDefault())}return(r,i)=>{const s=ws,l=fo;return R(),Y("div",{class:ke(["fixed-screen flex flex-col items-center justify-end select-none",{"!pointer-events-none":!t.value}]),onClick:i[3]||(i[3]=()=>t.value=!1)},[Z(sn,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:oe(()=>[t.value?(R(),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"]))},[U("div",Lu,[Z(l,{transparent:"",onClick:i[0]||(i[0]=()=>t.value=!1)},{default:oe(()=>[Z(s)]),_:1}),U("div",Au,Xe(r.name),1),Se(r.$slots,"actions")]),U("div",zu,[Se(r.$slots,"default")])],32)):Te("",!0)]),_:3})],2)}}}),ju=Object.freeze(Object.defineProperty({__proto__:null,default:xs},Symbol.toStringTag,{value:"Module"})),Ru=["min","max","step"],Du={class:"flex-shrink-0"},Ss=ge(xe({__name:"InputPercentage",props:$t({min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=rn(e,"modelValue"),n=re({get(){return t.value},set(o){t.value=+o}});return(o,r)=>(R(),Y("div",{class:ke(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":o.disabled}]),style:Ae({"--percentage":`${(n.value-o.min)/(o.max-o.min)*100}%`})},[vt(U("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,Ru),[[Bc,n.value]]),U("p",Du,[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}
23
- `]]]),Bu=Object.freeze(Object.defineProperty({__proto__:null,default:Ss},Symbol.toStringTag,{value:"Module"})),Vu={class:"flex items-center mb-8 last:mb-0"},Nu={class:"flex-grow overflow-hidden"},Cs=xe({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(R(),Y("div",Vu,[U("div",{class:ke(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},Xe(t.label),3),U("div",Nu,[Se(t.$slots,"default")])]))}}),Hu=Object.freeze(Object.defineProperty({__proto__:null,default:Cs},Symbol.toStringTag,{value:"Module"})),Fu=["onClick","onKeyup"],ks=xe({__name:"InputSelect",props:$t({items:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=rn(e,"modelValue"),o=q(null),r=q({width:"",left:""});Qe(()=>{let s=!1;de(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:{}},[U("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Ae(r.value)},null,4),(R(!0),Y(we,null,vn(t.items,(a,c)=>vt((R(),Y("div",{key:c,tabindex:"0",class:ke(["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:[gs(()=>i(c),["enter"]),gs(()=>i(c),["space"])]},[Mt(Xe(a),1)],42,Fu)),[[X(an),30]])),128))],512))}}),Wu=Object.freeze(Object.defineProperty({__proto__:null,default:ks},Symbol.toStringTag,{value:"Module"})),Ku={},Uu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Yu=[U("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 qu(e,t){return R(),Y("svg",Uu,Yu)}const Is=ge(Ku,[["render",qu]]),Xu=Object.freeze(Object.defineProperty({__proto__:null,default:Is},Symbol.toStringTag,{value:"Module"})),Zu={},Gu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},Qu=[U("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),U("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function Ju(e,t){return R(),Y("svg",Gu,Qu)}const Es=ge(Zu,[["render",Ju]]),ed=Object.freeze(Object.defineProperty({__proto__:null,default:Es},Symbol.toStringTag,{value:"Module"}));function td(e){if(e)try{return JSON.parse(e)}catch{return}}function nd(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||{}),Xt=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(Xt||{});const od=.25,rd=5,id=.25,In=.25,En=5,sd=.05,ld=0,ad=4;function cd(e){var P,K,y,j,C;const{titleName:t,isWebtoon:n}=e,o=re(()=>t.value?nd(t.value):location.hostname),r=q(ud(`tkr:${o.value}`)),i=g=>{r.value=g;const w=`tkr:${o.value}`;!g||!Object.keys(g).length?localStorage.removeItem(w):localStorage.setItem(w,JSON.stringify(g))},s=g=>{if(!r.value){i(g);return}const w={...r.value};Object.entries(g).forEach(([v,B])=>{B===void 0?delete w[v]:w[v]=B}),i(w)},l=q(((P=r.value)==null?void 0:P.style)??e.defaultStyle??Xt.longStrip),a=q(((K=r.value)==null?void 0:K.direction)??e.defaultDirection??ut.vertical),c=q((y=r.value)==null?void 0:y.gap),u=q(((j=r.value)==null?void 0:j.speed)??1),f=q(((C=r.value)==null?void 0:C.zoom)??1),h=re({get(){return n.value?Xt.longStrip:l.value},set:g=>{l.value=g,s({style:g}),g!==Xt.longStrip&&a.value===ut.vertical&&(S.value=ut.rtl)}}),S=re({get:()=>n.value?ut.vertical:a.value,set:g=>{a.value=g,s({direction:g})}}),x=re({get:()=>c.value??(e.maybeWebtoon.value?0:1),set(g){c.value=g,s({gap:g})}}),_=re({get:()=>u.value,set(g){u.value=g,s({speed:g===1?void 0:g})}}),A=re({get:()=>f.value,set(g){f.value=g,s({zoom:g===1?void 0:g})}});return{direction:S,style:h,gap:x,speed:_,zoom:A,isLongStrip:re(()=>h.value===Xt.longStrip),isDouble:re(()=>h.value===Xt.double),isRTL:re(()=>S.value===ut.rtl),isVertical:re(()=>S.value===ut.vertical)}}function ud(e){const t=localStorage.getItem(e),n=td(t),o={};return n?(n.style!==void 0&&Object.values(Xt).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>=ld&&n.gap<=ad&&(o.gap=n.gap),n.speed!==void 0&&n.speed>=In&&n.speed<=En&&(o.speed=n.speed),n.zoom!==void 0&&n.zoom>=In&&n.zoom<=En&&(o.zoom=n.zoom),Object.keys(o).length?o:void 0):o}const Ts=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=q(!1),i=re(()=>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)=>{const u=Es,f=fo,h=Is,S=ks,x=Cs,_=Ss,A=xs;return R(),Y(we,null,[Z(f,{title:"Reader settings (S)",disabled:a.disabled,onClick:c[0]||(c[0]=()=>r.value=!0)},{default:oe(()=>[Z(u)]),_:1},8,["disabled"]),Z(A,{modelValue:r.value,"onUpdate:modelValue":c[5]||(c[5]=P=>r.value=P),name:i.value},{actions:oe(()=>[Z(f,{transparent:"",onClick:l},{default:oe(()=>[Z(h)]),_:1})]),default:oe(()=>[Z(x,{label:"Style"},{default:oe(()=>[Z(S,{"model-value":a.readerStyle,items:a.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":c[1]||(c[1]=P=>o("update:reader-style",P))},null,8,["model-value","items"])]),_:1}),Z(x,{label:"Direction"},{default:oe(()=>[Z(S,{"model-value":a.direction,items:a.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":c[2]||(c[2]=P=>o("update:direction",P))},null,8,["model-value","items"])]),_:1}),Z(x,{label:"Gap"},{default:oe(()=>[Z(S,{"model-value":a.gap,items:["None","XS","SM","M","L","XL"],"onUpdate:modelValue":c[3]||(c[3]=P=>o("update:gap",P))},null,8,["model-value"])]),_:1}),Z(x,{label:"Speed"},{default:oe(()=>[Z(_,{"model-value":a.speed,min:X(od),max:X(rd),step:X(id),suffix:"x","onUpdate:modelValue":c[4]||(c[4]=P=>o("update:speed",P))},{suffix:oe(()=>[Mt(Xe(a.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),Z(x,{label:"Zoom"},{default:oe(()=>[Z(_,{"model-value":Math.ceil(a.zoom*100),min:X(In)*100,max:X(En)*100,step:X(sd)*100,"onUpdate:modelValue":s},{suffix:oe(()=>[Mt(Xe(Math.ceil(a.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64)}}}),dd=Object.freeze(Object.defineProperty({__proto__:null,default:Ts},Symbol.toStringTag,{value:"Module"})),fd={},pd={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},hd=[U("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function gd(e,t){return R(),Y("svg",pd,hd)}const $s=ge(fd,[["render",gd]]),md=Object.freeze(Object.defineProperty({__proto__:null,default:$s},Symbol.toStringTag,{value:"Module"})),vd={},bd={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},_d=[U("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function yd(e,t){return R(),Y("svg",bd,_d)}const Ps=ge(vd,[["render",yd]]),wd=Object.freeze(Object.defineProperty({__proto__:null,default:Ps},Symbol.toStringTag,{value:"Module"})),xd={},Sd={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Cd=[U("path",{d:"M18.652 3C18.0277 3 17.5216 3.5061 17.5216 4.13042V5.26083H16.3912C15.7669 5.26083 15.2608 5.76693 15.2608 6.39125C15.2608 7.01556 15.7669 7.52166 16.3912 7.52166H17.5216V8.65208C17.5216 9.27639 18.0277 9.78249 18.652 9.78249C19.2764 9.78249 19.7825 9.27639 19.7825 8.65208V7.52166H20.9129C21.5372 7.52166 22.0433 7.01556 22.0433 6.39125C22.0433 5.76693 21.5372 5.26083 20.9129 5.26083H19.7825V4.13042C19.7825 3.5061 19.2764 3 18.652 3Z",fill:"currentColor"},null,-1),U("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.0183 5.92413L8.24658 7.18954C7.65717 7.34584 7.24677 7.87926 7.24677 8.48905V18.0483C7.24677 18.4887 7.72075 18.7663 8.10482 18.5509L11.4937 16.65C11.7272 16.519 12.012 16.519 12.2454 16.65L18.6384 20.2363C19.1505 20.5235 19.7825 20.1534 19.7825 19.5663L19.7825 12.0433H18.6521C15.5305 12.0433 13 9.5128 13 6.39125C13 6.23454 13.0067 6.07783 13.0183 5.92413Z",fill:"currentColor"},null,-1),U("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.49315 4.13042C4.64457 4.13042 3.95667 4.81833 3.95667 5.6669V19.5663C3.95667 20.1535 4.58867 20.5236 5.10077 20.2363L11.4937 16.6501C11.7272 16.5191 12.012 16.5191 12.2454 16.6501L18.6384 20.2363C19.1505 20.5236 19.7825 20.1535 19.7825 19.5663V12.0433H18.6521C15.5305 12.0433 13 9.5128 13 6.39125C13 5.26083 13.3507 4.13042 13.3507 4.13042H5.49315Z",fill:"currentColor","fill-opacity":"0.5"},null,-1)];function kd(e,t){return R(),Y("svg",Sd,Cd)}const Ms=ge(xd,[["render",kd]]),Id=Object.freeze(Object.defineProperty({__proto__:null,default:Ms},Symbol.toStringTag,{value:"Module"})),Ed={},Td={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$d=[U("path",{d:"M17.1026 8.89862C17.1114 8.90798 17.1203 8.91723 17.1295 8.92636C17.5709 9.36781 18.2866 9.36781 18.7281 8.92636L22.7247 4.92974C23.1662 4.48828 23.1662 3.77255 22.7247 3.33109C22.2833 2.88964 21.5675 2.88964 21.1261 3.33109L17.9292 6.52793L17.1286 5.72729C16.6871 5.28583 15.9714 5.28583 15.5299 5.72729C15.0885 6.16874 15.0885 6.88448 15.5299 7.32593L17.1026 8.89862Z",fill:"currentColor"},null,-1),U("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.9564 5.92413L8.18463 7.18954C7.59522 7.34584 7.18481 7.87926 7.18481 8.48905V18.0483C7.18481 18.4887 7.65879 18.7663 8.04287 18.5509L11.4318 16.65C11.6652 16.519 11.95 16.519 12.1835 16.65L18.5764 20.2363C19.0885 20.5235 19.7205 20.1534 19.7205 19.5663L19.7205 12.0433H18.5901C15.4686 12.0433 12.938 9.5128 12.938 6.39125C12.938 6.23454 12.9448 6.07783 12.9564 5.92413Z",fill:"currentColor"},null,-1),U("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.4312 4.13042C4.58262 4.13042 3.89471 4.81833 3.89471 5.6669V19.5663C3.89471 20.1535 4.52672 20.5236 5.03882 20.2363L11.4318 16.6501C11.6652 16.5191 11.95 16.5191 12.1835 16.6501L18.5764 20.2363C19.0885 20.5236 19.7205 20.1535 19.7205 19.5663V5.6669C19.7205 5.6646 19.7205 5.66229 19.7205 5.65998V12.0433H18.5901C15.4685 12.0433 12.938 9.5128 12.938 6.39125C12.938 5.26083 13.2887 4.13042 13.2887 4.13042H5.4312Z",fill:"currentColor","fill-opacity":"0.5"},null,-1)];function Pd(e,t){return R(),Y("svg",Td,$d)}const Os=ge(Ed,[["render",Pd]]),Md=Object.freeze(Object.defineProperty({__proto__:null,default:Os},Symbol.toStringTag,{value:"Module"})),Od={},Ld={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Ad=[U("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function zd(e,t){return R(),Y("svg",Ld,Ad)}const Ls=ge(Od,[["render",zd]]),jd=Object.freeze(Object.defineProperty({__proto__:null,default:Ls},Symbol.toStringTag,{value:"Module"})),Rd=["aria-hidden"],Dd=["onClick"],Bd={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"},Vd={class:"whitespace-nowrap"},_r=xe({__name:"ButtonDropdown",props:$t({label:{},title:{},items:{},disabled:{type:Boolean}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:$t(["select"],["update:modelValue"]),setup(e,{emit:t}){const n=e,o=t,r=rn(e,"modelValue"),i=q(null),s=q(!1),l=q(null),a=q(!1),c=q(!1),u=q(!1);po({onKeyDown:_});const f=br();function h(){if(!n.items.length){s.value=!1;return}s.value=!s.value,f(s.value),s.value?(S(),mt(()=>setTimeout(()=>{var g,w;(w=(g=l.value)==null?void 0:g.children[r.value])==null||w.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),P(i.value)):setTimeout(K,250)}function S(){const g=i.value;if(g){const w=g.getBoundingClientRect(),v=w.x+w.width/2;a.value=w.y>window.innerHeight/2,c.value=v<window.innerWidth/3,u.value=v>window.innerWidth/3*2}}function x(g,w){g!=r.value&&(r.value=g,o("select",g,w)),h()}function _(g){s.value&&g.key==="Escape"&&(h(),g.preventDefault())}let A=[];function P(g){const w=window.getComputedStyle(g).zIndex,v=g.style.zIndex;(!w||!(+w>0))&&((!g.parentElement||g.parentElement.childElementCount>1)&&(g.style.zIndex="1",A.push({el:g,zIndex:v})),g.parentElement&&P(g.parentElement))}function K(){A.forEach(({el:g,zIndex:w})=>{g.style.zIndex=w??""}),A=[]}let y=!1;function j(){y||(y=!0,f(!0,{desktopOnly:!0}))}function C(){y&&(y=!1,f(!1,{desktopOnly:!0}))}return(g,w)=>{const v=Ls;return R(),Y("div",{ref_key:"root",ref:i,class:"select-none relative inline-flex"},[s.value?(R(),Y("div",{key:0,class:"fixed-screen bg-transparent",onClick:h})):Te("",!0),g.items.length?(R(),be(sn,{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:oe(()=>[s.value?(R(),Y("ul",{key:0,ref_key:"list",ref:l,"aria-hidden":!s.value,class:ke(["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":a.value,"origin-top top-full translate-y-1.5":!a.value,"left-1/2 -ml-20 text-center":!c.value&&!u.value,"right-0 text-right":u.value}]),onWheelPassive:w[0]||(w[0]=et(()=>{},["stop"]))},[(R(!0),Y(we,null,vn(g.items,(B,O)=>vt((R(),Y("li",{key:O,tabindex:"-1",class:ke(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":O===r.value}]),onClick:ee=>x(O,ee)},[U("div",{class:ke(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":O>0}])},[Se(g.$slots,"item",{item:B},()=>[Mt(Xe(B),1)])],2)],10,Dd)),[[X(an),30]])),128))],42,Rd)):Te("",!0)]),_:3})):Te("",!0),vt((R(),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}]},g.title?{title:g.title}:{},{onClick:et(h,["stop"]),onMouseenter:j,onMouseleave:C}),[U("div",Bd,[U("span",Vd,Xe(g.label),1),g.items.length?(R(),Y("span",{key:0,class:ke(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":a.value}]),"aria-hidden":"true"},[Z(v)],2)):Te("",!0)])],16)),[[X(an),30]])],512)}}}),Nd=Object.freeze(Object.defineProperty({__proto__:null,default:_r},Symbol.toStringTag,{value:"Module"})),As=xe({__name:"PageNav",props:$t({disabled:{type:Boolean},pages:{},totalImgs:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=rn(e,"modelValue"),o=re(()=>t.pages.map(a=>a.map(({index:c})=>`${c+1}`).join("-"))),r=re(()=>{const a=n.value,c=t.pages.findIndex(u=>u.some(({index:f})=>f===a));return c===-1?t.pages.length-1:c}),i=re(()=>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)=>{const u=_r;return R(),be(u,{"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"])}}}),Hd=Object.freeze(Object.defineProperty({__proto__:null,default:As},Symbol.toStringTag,{value:"Module"})),Fd={},Wd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Kd=[U("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function Ud(e,t){return R(),Y("svg",Wd,Kd)}const zs=ge(Fd,[["render",Ud]]),Yd=Object.freeze(Object.defineProperty({__proto__:null,default:zs},Symbol.toStringTag,{value:"Module"})),qd={},Xd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Zd=[U("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function Gd(e,t){return R(),Y("svg",Xd,Zd)}const js=ge(qd,[["render",Gd]]),Qd=Object.freeze(Object.defineProperty({__proto__:null,default:js},Symbol.toStringTag,{value:"Module"})),Jd={},ef={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},tf=[U("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 nf(e,t){return R(),Y("svg",ef,tf)}const Rs=ge(Jd,[["render",nf]]),of=Object.freeze(Object.defineProperty({__proto__:null,default:Rs},Symbol.toStringTag,{value:"Module"})),rf={},sf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},lf=[U("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 af(e,t){return R(),Y("svg",sf,lf)}const Ds=ge(rf,[["render",af]]),cf=Object.freeze(Object.defineProperty({__proto__:null,default:Ds},Symbol.toStringTag,{value:"Module"}));var Bs;const yr=typeof window<"u",uf=e=>typeof e=="string",jt=()=>{};yr&&((Bs=window==null?void 0:window.navigator)!=null&&Bs.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function ho(e){return typeof e=="function"?e():X(e)}function Vs(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 df(e,t={}){let n,o,r=jt;const i=l=>{clearTimeout(l),r(),r=jt};return l=>{const a=ho(e),c=ho(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 ff(e,t=!0,n=!0,o=!1){let r=0,i,s=!0,l=jt,a;const c=()=>{i&&(clearTimeout(i),i=void 0,l(),l=jt)};return f=>{const h=ho(e),S=Date.now()-r,x=()=>a=f();if(c(),h<=0)return r=Date.now(),x();if(S>h&&(n||!s))r=Date.now(),x();else if(t)return new Promise((_,A)=>{l=o?A:_,i=setTimeout(()=>{r=Date.now(),s=!0,_(x()),c()},h-S)});return!n&&!i&&(i=setTimeout(()=>s=!0,h)),s=!1,a}}function pf(e){return e}function wr(e){return zr()?(El(e),!0):!1}function Ve(e,t=200,n={}){return Vs(df(t,n),e)}function Ns(e,t=200,n=!1,o=!0,r=!1){return Vs(ff(t,n,o,r),e)}function Hs(e,t=!0){sr()?Qe(e):t?e():mt(e)}function Zt(e){var t;const n=ho(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Tn=yr?window:void 0,hf=yr?window.document:void 0;function Rt(...e){let t,n,o,r;if(uf(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=Tn):[t,n,o,r]=e,!t)return jt;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=de(()=>Zt(t),u=>{s(),u&&i.push(...n.flatMap(f=>o.map(h=>l(u,f,h))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return wr(c),c}function Fs(e,t=!1){const n=q(),o=()=>n.value=!!e();return o(),Hs(o,t),n}const Ws=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ks="__vueuse_ssr_handlers__";Ws[Ks]=Ws[Ks]||{};function Us({document:e=hf}={}){if(!e)return q("visible");const t=q(e.visibilityState);return Rt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var Ys=Object.getOwnPropertySymbols,gf=Object.prototype.hasOwnProperty,mf=Object.prototype.propertyIsEnumerable,vf=(e,t)=>{var n={};for(var o in e)gf.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Ys)for(var o of Ys(e))t.indexOf(o)<0&&mf.call(e,o)&&(n[o]=e[o]);return n};function bf(e,t,n={}){const o=n,{window:r=Tn}=o,i=vf(o,["window"]);let s;const l=Fs(()=>r&&"ResizeObserver"in r),a=()=>{s&&(s.disconnect(),s=void 0)},c=de(()=>Zt(e),f=>{a(),l.value&&r&&f&&(s=new ResizeObserver(t),s.observe(f,i))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return wr(u),{isSupported:l,stop:u}}function xr(e,t={width:0,height:0},n={}){const{window:o=Tn,box:r="content-box"}=n,i=re(()=>{var a,c;return(c=(a=Zt(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),s=q(t.width),l=q(t.height);return bf(e,([a])=>{const c=r==="border-box"?a.borderBoxSize:r==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&i.value){const u=Zt(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),de(()=>Zt(e),a=>{s.value=a?t.width:0,l.value=a?t.height:0}),{width:s,height:l}}function Sr(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:i=.1,window:s=Tn}=n,l=Fs(()=>s&&"IntersectionObserver"in s);let a=jt;const c=l.value?de(()=>({el:Zt(e),root:Zt(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=jt}},{immediate:!0,flush:"post"}):jt,u=()=>{a(),c()};return wr(u),{isSupported:l,stop:u}}var qs;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(qs||(qs={}));var _f=Object.defineProperty,Xs=Object.getOwnPropertySymbols,yf=Object.prototype.hasOwnProperty,wf=Object.prototype.propertyIsEnumerable,Zs=(e,t,n)=>t in e?_f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xf=(e,t)=>{for(var n in t||(t={}))yf.call(t,n)&&Zs(e,n,t[n]);if(Xs)for(var n of Xs(t))wf.call(t,n)&&Zs(e,n,t[n]);return e};xf({linear:pf},{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 Sf(e={}){const{window:t=Tn,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:r=!0,includeScrollbar:i=!0}=e,s=q(n),l=q(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(),Hs(a),Rt("resize",a,{passive:!0}),r&&Rt("orientationchange",a,{passive:!0}),{width:s,height:l}}const Gs=ge(xe({__name:"ReaderTour",emits:["hide"],setup(e,{emit:t}){const n=t,o=q(null),r=q(0),i=q([]),s=re(()=>i.value[r.value]),l=Ns(a,500);Qe(()=>{const f=xr(o),h=Ve(()=>c({width:f.width.value,height:f.height.value}),50);h(),de(f.width,h),de(f.height,h)});function a(){r.value>=i.value.length-1?n("hide"):r.value++}function c(f){const h=u();i.value=h.map(({rect:S,text:x})=>{const _=S.top<f.height-S.bottom,A=S.left<f.width-S.right;return{text:x,style:{left:`${S.left}px`,top:`${S.top}px`,width:`${S.width}px`,height:`${S.height}px`},textStyle:{left:A?`${S.left-12}px`:void 0,right:A?void 0:`${f.width-S.left}px`,top:_?`${S.bottom+12}px`:`${S.top+20}px`,textAlign:_?void 0:"right",transform:_?void 0:"translateY(-50%)"}}}),r.value>=i.value.length&&(r.value=i.value.length-1)}function u(){var S;const f=(S=o.value)==null?void 0:S.parentElement;if(!f)return[];const h=[];return f.querySelectorAll("[data-tour]").forEach(x=>{var P;const _=(P=x.getAttribute("data-tour"))==null?void 0:P.trim();if(!(_!=null&&_.length))return;const A=x.getBoundingClientRect();h.push({rect:A,text:_})}),h}return(f,h)=>{var S,x;return R(),Y(we,null,[U("div",{class:ke(["fixed-screen bg-black bg-opacity-50 duration-500",{"opacity-0":!s.value,"opacity-100":!!s.value}])},null,2),U("div",{ref_key:"root",ref:o,class:"tour",onClick:h[0]||(h[0]=et((..._)=>X(l)&&X(l)(..._),["stop"]))},[s.value?(R(),Y("div",{key:r.value,class:"tour__target",style:Ae(s.value.style)},null,4)):Te("",!0),(R(),Y("div",{key:r.value,class:"tour__text",style:Ae((S=s.value)==null?void 0:S.textStyle)},Xe(((x=s.value)==null?void 0:x.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}}
24
- `]]]),Cf=Object.freeze(Object.defineProperty({__proto__:null,default:Gs},Symbol.toStringTag,{value:"Module"})),kf=U("div",{class:"fixed-screen bg-black bg-opacity-90"},null,-1),Qs=xe({__name:"HelpScreen",props:{touchDevice:{type:Boolean}},emits:["hide"],setup(e,{emit:t}){const n=e,o=t,r=q(null),i=q([]);Qe(async()=>{const c=xr(r),u=Ve(()=>{s({width:c.width.value,height:c.height.value})},50);u(),de(c.width,u),de(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,x=0;const _=50,A=25;c.forEach(C=>{var O;const g=(O=C.getAttribute("title"))==null?void 0:O.trim(),w=C.getBoundingClientRect();if(!g||!w.height||!w.width)return;const v=Math.ceil((w.top-10)/_),B=Math.ceil((w.left-10)/_);h.push({isTour:!1,title:g,rect:w,fromX:B,toX:Math.max(B+1,Math.ceil((w.right+10)/_)),fromY:v,toY:Math.max(v+1,Math.ceil((w.bottom+10)/_))})}),h.forEach(C=>{for(let g=C.fromY;g<C.toY;g++){f[g]??(f[g]=[]);for(let w=C.fromX;w<C.toX;w++)f[g][w]=C;C.toY>S+1&&(S=C.toY-1),C.toX>x+1&&(x=C.toX-1)}});let P=x/2;h.forEach(C=>{C.isAlignRight=C.fromX>P});const K=(C,g)=>{f[g]??(f[g]=[]);const w=g>=C.toY;if(C.isTour)for(let v=C.fromX;v<C.toX;v++)delete f[C.fromY][v],C.fromY=g,C.toY=g+(w?1:-1),f[g][v]=C;else{const v=C.isAlignRight?C.fromX-3:C.fromX,B=v+3;C.helpItem={fromX:v,toX:B,fromY:g,toY:g+1,isTour:!0,isAlignRight:C.isAlignRight};for(let O=v;O<B;O++)f[g][O]=C.helpItem}},y=(C,g)=>{if(g>S||g<0)return!1;const w=g>=C.toY,v=f[g];if(!v)return K(C,g),!0;const B=v[C.fromX];if(B&&!B.isTour)return!1;if(B&&B.isTour)return y(B,w?g+1:g-1)?(K(C,g),!0):!1;if(!B){const O=C.isAlignRight?-1:1;return v[C.fromX+O]||v[C.fromX+O*2]?y(C,w?g+1:g-1):(K(C,g),!0)}return!1};h.forEach(C=>{if(!y(C,C.toY)){if(C.isAlignRight){const g=f[C.fromY]??[];if(!g.slice(C.fromX-3,C.fromX).filter(Boolean).length){const v=C.fromX-3,B=C.fromX;C.helpItem={isTour:!0,isAlignRight:!0,fromX:v,toX:B,fromY:C.fromY,toY:C.toY};for(let O=C.fromX-3;O<C.fromX;O++)g[O]=C.helpItem;return}}y(C,C.fromY-1)}});const j=[];return h.forEach(C=>{const{title:g,helpItem:w,rect:v,isAlignRight:B,fromX:O,fromY:ee,toY:H}=C;if(!g||!w||!v)return;const ne=w.fromY>=H,ie=w.toY<=ee;j.push({title:a(g),style:{top:ne?`${v.bottom+(w.fromY-H)*_+A}px`:ie?void 0:`${v.top+8}px`,bottom:ie?`${u.height-v.top+(w.toY-ee)*_+A}px`:void 0,left:B?void 0:`${v.left}px`,right:B?ne?`${u.width-v.right}px`:`${u.width-v.right+v.width+A}px`:void 0},arrowStyle:{width:ie||ne?"2px":`${Math.abs(w.toX-O)*_+A-5}px`,height:ie||ne?`${(ne?w.fromY-H:ee-w.toY)*_+A}px`:"2px",top:ne?`${v.bottom}px`:ie?void 0:`${v.top+20}px`,bottom:ie?`${u.height-v.top}px`:void 0,left:B?void 0:`${v.left+v.width/2}px`,right:B?ne?`${u.width-v.right+v.width/2}px`:`${u.width-v.right+v.width}px`:void 0}})}),j}function a(c){return n.touchDevice?c.split("(")[0].trim():c}return(c,u)=>(R(),Y(we,null,[kf,U("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(we,null,vn(i.value,f=>(R(),Y(we,{key:f.title},[U("div",{class:"absolute",style:Ae(f.style)},Xe(f.title),5),U("div",{class:"absolute bg-stone-300 rounded-lg",style:Ae(f.arrowStyle)},null,4)],64))),128))],512)],64))}}),If=Object.freeze(Object.defineProperty({__proto__:null,default:Qs},Symbol.toStringTag,{value:"Module"})),Js=ge(xe({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=q(0);return de(()=>t.playing,()=>{n.value=Date.now()}),(o,r)=>{const i=mr,s=vr;return 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(),be(i,{key:0})):(R(),be(s,{key:1}))])):Te("",!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)}}
25
- `]]]),Ef=Object.freeze(Object.defineProperty({__proto__:null,default:Js},Symbol.toStringTag,{value:"Module"})),Tf={},$f={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Pf=[U("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 Mf(e,t){return R(),Y("svg",$f,Pf)}const el=ge(Tf,[["render",Mf]]),Of=Object.freeze(Object.defineProperty({__proto__:null,default:el},Symbol.toStringTag,{value:"Module"})),tl=xe({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=sessionStorage.getItem("tk:dir"),o=q(typeof n!="string"||+n!==t.direction),r=Ve(()=>o.value=!1,1250);de(()=>t.direction,()=>{i(),o.value=!0,r()}),Qe(()=>{i(),r();let s;const l=Us();de(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)=>{const a=el;return R(),be(sn,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:oe(()=>[o.value?(R(),Y("div",{key:0,class:ke(["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===X(ut).vertical,"rotate-180":s.direction===X(ut).rtl}])},[Z(a)],2)):Te("",!0)]),_:1})}}}),Lf=Object.freeze(Object.defineProperty({__proto__:null,default:tl},Symbol.toStringTag,{value:"Module"})),go=[];function Af(e){go.push(e),Tt(()=>{const t=go.indexOf(e);t!==-1&&go.splice(t,1)})}function zf(e,t){const{innerWidth:n,innerHeight:o}=window,r=e*n,i=t*o;go.forEach(s=>s(r,i))}const nl=xe({__name:"ZoomWrapper",props:$t({pageIndex:{},playController:{},rtl:{type:Boolean},horizontal:{type:Boolean},longStrip:{type:Boolean},touchDevice:{type:Boolean},busy:{type:Boolean}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:$t(["dragEnd","click"],["update:modelValue"]),setup(e,{emit:t}){const n=e,o=t,r=rn(e,"modelValue"),i=q(null),s=q(Math.min(En,Math.max(In,r.value))),l=q(!1),a=q(!1),c=q(!1);de(r,k=>ie(k)),Qe(()=>{n.touchDevice?(Rt(i,"touchstart",P),!navigator.userAgent.toLowerCase().includes("android")&&Af(O)):(Rt(i,"mousedown",S),Rt(window,"wheel",C))}),po({onKeyDown:k=>{var Q;if(!n.busy&&((Q=i.value)==null||Q.focus(),!(k.key==="Meta"||k.key==="Control")&&(k.ctrlKey||k.metaKey)))switch(k.key){case"0":ie(1);break;case"-":ie(s.value-.2),k.preventDefault();break;case"=":case"+":ie(s.value+.2),k.preventDefault();break}}});function u(k){a.value!==k&&(a.value=k,k?n.playController.pause():(o("dragEnd"),n.playController.resume()))}let f={x:0,y:0},h={x:0,y:0};function S(k){k.button===0&&(f={x:k.clientX,y:k.clientY},h={x:i.value.scrollLeft,y:i.value.scrollTop},window.addEventListener("mousemove",x),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",x),setTimeout(()=>u(!1))},{once:!0}),k.preventDefault(),k.stopPropagation())}function x(k){u(!0);const Q=k.clientX-f.x,$=k.clientY-f.y,V=i.value;V.scrollLeft=h.x-Q,V.scrollTop=h.y-$}let _=!1,A={distance:0,zoom:s.value,x:0,y:0};function P(k){n.busy||(_=k.touches.length===2,_&&(u(!0),k.stopPropagation(),k.preventDefault(),A={distance:g(k),zoom:s.value,x:(k.touches[0].clientX+k.touches[1].clientX)/2,y:(k.touches[0].clientY+k.touches[1].clientY)/2}),(_||n.playController.isPlaying.value&&n.longStrip)&&(window.addEventListener("touchmove",y),window.addEventListener("touchend",K,{once:!0})))}function K(){if(window.removeEventListener("touchmove",y),_){u(!1),_=!1;return}if(!a.value)return;const k=Ve(()=>{u(!1),i.value.removeEventListener("scroll",$)},200),Q=setTimeout(k,200);i.value.addEventListener("scroll",$);function $(){clearTimeout(Q),k()}}function y(k){if(u(!0),_){k.stopPropagation(),k.preventDefault();const $=g(k)/A.distance;ie(Math.ceil($*A.zoom*100)/100,A)}}const j=Ve(()=>l.value=!1,100);function C(k){if(!n.busy){if(k.ctrlKey||k.metaKey){k.stopPropagation(),k.preventDefault();const Q=Math.ceil((s.value+k.deltaY*-.01)*100)/100;ie(Q,{x:k.clientX,y:k.clientY});return}n.horizontal&&(l.value||(l.value=!0),j(),k.deltaY&&(i.value&&(i.value.scrollLeft+=k.deltaY*(n.rtl?-1:1)),k.stopPropagation(),k.preventDefault()))}}function g(k){return Math.hypot(k.touches[0].clientX-k.touches[1].clientX,k.touches[0].clientY-k.touches[1].clientY)}let w=0,v;function B(k){if(!a.value){if(!n.touchDevice){o("click",k);return}w++,v&&clearTimeout(v),w===2&&O(k.clientX,k.clientY),v=setTimeout(()=>{!a.value&&w===1&&o("click",k),v=void 0,w=0},300)}}function O(k,Q){if(!w)return;w=0;const $=s.value===1?2:1;ie($,{x:k,y:Q})}let ee;const H=Ve(()=>{c.value=!1,ee=void 0},150);function ne(){if(!c.value){const k=i.value;if(!k)return;const Q=k.querySelector(`[data-index="${n.pageIndex}"],[data-index2="${n.pageIndex}"]`)??void 0;Q&&(ee={el:Q,rect:Q.getBoundingClientRect()},c.value=!0)}if(ee)return H(),ee}async function ie(k,Q){const $=i.value,V=Math.min(En,Math.max(In,k));if(!$||s.value===V)return;const ae=ne();if(!ae)return;const fe=(Q==null?void 0:Q.x)??$.clientWidth/2,Le=(Q==null?void 0:Q.y)??$.clientHeight/2;s.value=V,r.value=V,await mt();const{el:me,rect:Pe}=ae,it=me.offsetWidth/Pe.width,dt=me.offsetHeight/Pe.height;$.scrollLeft=me.offsetLeft-Pe.left*it+fe*(it-1),$.scrollTop=me.offsetTop-Pe.top*dt+Le*(dt-1)}return(k,Q)=>(R(),Y("div",{ref_key:"root",ref:i,tabindex:"0",class:ke(["w-full h-full overflow-auto overscroll-contain scrollbar-none focus:outline-none touch-pan-x touch-pan-y",{"!snap-none":!k.longStrip&&(a.value||l.value||c.value),"cursor-grabbing":a.value,"overflow-hidden":c.value}]),style:Ae({"font-size":`${s.value}px`}),onClick:et(B,["stop"])},[Se(k.$slots,"default")],6))}}),jf=Object.freeze(Object.defineProperty({__proto__:null,default:nl},Symbol.toStringTag,{value:"Module"})),ol=xe({__name:"IntersectionWrapper",emits:["visible"],setup(e,{emit:t}){const n=t,o=q(null),r=q(!1);return Qe(async()=>{await mt();let i=!1;Sr(o,s=>{r.value=s.some(l=>l.isIntersecting),r.value&&!i&&n("visible")})}),(i,s)=>(R(),Y("div",{ref_key:"root",ref:o},[Se(i.$slots,"default",{visible:r.value})],512))}}),Rf=Object.freeze(Object.defineProperty({__proto__:null,default:ol},Symbol.toStringTag,{value:"Module"}));function Df({pageIndex:e,isLongStrip:t}){let n=e.value,o=e.value+3;const r=q(n),i=q(o),s=Ve(l,50);de(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 Bf={key:0,class:"page--loading"},Vf=["src"],Nf=["src"],Hf=["data-index"],rl=ge(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}},emits:["update:zoom","update:playing","dragEnd","click","end","prev","next"],setup(e,{emit:t}){const n=e,o=t,r=q(null),i=re(()=>{var x;return(x=r.value)==null?void 0:x.$el}),s=q(null),l=xr(i),a=re(()=>{const{width:x,height:_}=l,A=n.isLongStrip?n.isVertical?x.value:_.value:Math.min(x.value,_.value);return Math.min(4,Math.max(1,Math.ceil(A/400-1)))*n.gap}),c=Df({pageIndex:re(()=>n.pageIndex),isLongStrip:re(()=>n.isLongStrip)}),u=re(()=>{const{width:{value:x},height:{value:_}}=l;return n.pages.map(A=>{var B;const P=A.some(O=>{var ee;return(ee=O.img)==null?void 0:ee.isLoading}),K=A.map(O=>O.index),y={isLoading:P,indexes:K};if(P||K[K.length-1]<c.min.value-1||K[0]>c.max.value+2)return y;const j=A.map(({img:O})=>O).filter(Boolean);if(!j.length||(y.srcs=j.map(({src:O})=>O),j.every(O=>O.hasError)))return y;const g=(B=j.find(O=>!O.hasError))==null?void 0:B.size,w=j.reduce((O,ee)=>{var H;return O+(((H=ee.size)==null?void 0:H.width)??g.width)},0),v=j.reduce((O,ee)=>{var H;return O+(((H=ee.size)==null?void 0:H.height)??g.height)},0)/j.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&x/w<_/v?(y.width=Math.min(x,w),y.height=v*y.width/w):y.height=Math.min(_,v),y})}),f=re(()=>{const x=n.isVertical?"width":"height";return u.value.map(_=>_[x]).filter(Boolean).sort((_,A)=>A-_)[0]});function h({indexes:x}){const _=x[x.length-1];_!==void 0&&c.onPageVisible(_)}function S(x){if(!n.isLongStrip){const _=n.isVertical?l.height.value:l.width.value,P=(n.isVertical?x.clientY:n.isRTL?_-x.clientX:x.clientX)/_;if(P<=.2&&n.pageIndex>0){o("prev");return}else if(P>=.8&&n.pageIndex<n.totalImgs){o("next");return}}o("click")}return(x,_)=>{const A=gr,P=ol,K=nl;return R(),be(K,{ref_key:"root",ref:r,"model-value":x.zoom,"page-index":x.pageIndex,class:ke(["reader-body",{"reader-body--long-strip":x.isLongStrip,"reader-body--pages":!x.isLongStrip,"reader-body--vertical":x.isVertical,"reader-body--rtl":x.isRTL,"reader-body--idle":x.idle,"reader-body--first":!x.isLongStrip&&x.pageIndex==0,"reader-body--last":!x.isLongStrip&&x.pageIndex==x.totalImgs}]),"play-controller":x.playController,horizontal:!x.isVertical,rtl:x.isRTL,"touch-device":x.touchDevice,busy:x.busy,"long-strip":x.isLongStrip,style:Ae({"--gap":`${a.value}em`,"--space-top":(x.spaceTop||0)+"px","--screen-width-em":X(l).width.value+"em","--screen-height-em":X(l).height.value+"em",...x.isLongStrip?{"--max-size-em":f.value+"em"}:{}}),"onUpdate:modelValue":_[0]||(_[0]=y=>o("update:zoom",y)),onDragEnd:_[1]||(_[1]=()=>o("dragEnd")),onClick:S,onScroll:X(c).onScroll},{default:oe(()=>[(R(!0),Y(we,null,vn(u.value,y=>(R(),be(P,lo({key:x.direction+"_"+y.indexes[0],"data-index":y.indexes[0]},y.indexes.length>1?{"data-index2":y.indexes[1]}:{},{onVisible:()=>h(y)}),{default:oe(({visible:j})=>{var C;return[!((C=y.srcs)!=null&&C.length)||y.isLoading?(R(),Y("div",Bf,[vt(Z(A,null,null,512),[[ss,j]])])):y.srcs.length==1?(R(),Y("img",{key:1,src:y.srcs[0],style:Ae({height:y.height!==void 0?y.height+"em":""})},null,12,Vf)):(R(),Y("div",{key:2,class:ke(["page--double",{"flex-row-reverse":x.isRTL}]),style:Ae({width:y.width!==void 0?y.width+"em":"",height:y.height!==void 0?y.height+"em":""})},[(R(!0),Y(we,null,vn(y.srcs,g=>(R(),Y("div",{key:g},[U("img",{src:g},null,8,Nf)]))),128))],6))]}),_:2},1040,["data-index","onVisible"]))),128)),U("div",{ref_key:"autoNextEl",ref:s,class:"last","data-index":x.totalImgs},[Se(x.$slots,"end")],8,Hf)]),_:3},8,["model-value","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>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)>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}
26
- `]]]),Ff=Object.freeze(Object.defineProperty({__proto__:null,default:rl},Symbol.toStringTag,{value:"Module"})),Wf={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},Kf={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},Uf={key:0,class:"animate-auto-next absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50 animate-auto-next"},il=ge(xe({__name:"AutoNext",props:{hasNext:{type:Boolean}},emits:["next","hide"],setup(e,{emit:t}){const n=t,o=q(null),r=q(null),i=q(!1),s=q(!1),l=q(3);return Qe(()=>{let a;Sr(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))}),Sr(o,c=>{i.value=c.some(u=>u.isIntersecting)}),Tt(()=>a&&clearInterval(a))}),(a,c)=>(R(),Y("div",{ref_key:"root",ref:o,class:"h-full w-full flex justify-center items-center"},[vt(U("div",Wf,[a.hasNext?(R(),Y("div",Kf,[s.value?(R(),Y("div",Uf)):Te("",!0),vt((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"]))},[Mt(" Next in "+Xe(l.value),1)])),[[X(an)]])])):Te("",!0),vt((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"]))},[Mt(" Hide ")])),[[X(an)]])],512),[[ss,i.value||!a.hasNext]])],512))}}),[["styles",[`.animate-auto-next{animation:auto-next 5s linear forwards}@keyframes auto-next{0%{width:0}to{width:100%}}
27
- `]]]),Yf=Object.freeze(Object.defineProperty({__proto__:null,default:il},Symbol.toStringTag,{value:"Module"}));function cn(e=0){return new Promise(t=>setTimeout(t,e))}function sl(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 qf(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 sl(o)}function mo(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 Xf(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 Zf{constructor({isIOS:t,onDownloaded:n}){ve(this,"reactiveResults",un({}));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=mo(n),!o)return;n._tkSrc=o}else if(i&&!o){if(o=await sl(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 cn(300),this.downloadSrc(t))}async onImgElLoaded(t,n){var r;if(!this.isMounted)return;const o=mo(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 qf(o,n):n;if(!r)return;const i=await Xf(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 Gf=3;class Qf{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=Ve(this.enqueue.bind(this),50)}dispose(){this.isMounted=!1}run(){this.isQueueStarted?this.debouncedEnqueue():(this.isQueueStarted=!0,this.enqueue())}get canEnqueue(){return this.concurrentCount<Gf&&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 cn(),!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 Gt{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 Cr(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.visibility!=="hidden"&&+(o.opacity??"1")>.1))return t.set(e,!1),!1;const i=Cr(e.parentElement,t);return t.set(e,i),i}function ll(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 Jf(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?(ll(r),await cn(),!0):!1}class ep{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=Ve(()=>{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(Ve(()=>{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 Jf(this.spec);let r=n?await $n(o?100:1,10,()=>document.querySelector(n)):void 0;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 tp(t,o):np(t);this.loadRawImagesTs!==n||!t.isConnected||!this.isMounted||this.setRawImages(r)}}async function tp(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(Cr(l,o)){if(l instanceof HTMLCanvasElement){if(al(l))return new Gt(void 0,l,i)}else if(l instanceof HTMLImageElement&&cl(l)){const a=mo(l);return new Gt(a,l,i)}}return new Gt(void 0,void 0,i)})}function np(e){const t=[],n={},o=new Map;return Array.from(e.querySelectorAll("img,canvas")).forEach(i=>{if(Cr(i,o)){if(i instanceof HTMLCanvasElement)al(i)&&t.push(new Gt(void 0,i));else if(i instanceof HTMLImageElement&&cl(i)){const s=mo(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 Gt(s,i))}}}),t}function al(e){return e.isConnected&&e.width>=200&&e.height>=200}function cl(e){if(!e.isConnected)return!1;const t=e.getBoundingClientRect();return!t.width||!t.height||t.width>=200&&t.height>=200}function ul(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 op(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 Gt(void 0,o));return ul(n)}function vo({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=dl(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 dl(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 dl(e.parentElement,t);let i=0;return t.forEach((s,l)=>{i+=l===o?s-n:s}),{el:e,top:i}}function rp(e){var S,x,_,A;const t=q((S=e.raw.value)==null?void 0:S.isWebtoon),n=q((x=e.raw.value)==null?void 0:x.isWebtoon);let o=!1;const r=e.touchDevice&&!navigator.userAgent.toLowerCase().includes("android"),i=((A=(_=e.raw.value)==null?void 0:_.imgs)==null?void 0:A.filter(Boolean))??[];let s=e.isAutoShow!==!1?e.page.value:i.length?op(i):void 0,l=i.map(P=>new Gt(P)),a;const c=new Zf({isIOS:r,onDownloaded(P,K){let y=l.indexOf(P);if(y===-1){const j=P.computedSrc;y=l.findIndex(C=>C.computedSrc===j)}if(y!==-1){if(K&&!t.value&&y>Math.min(1,l.length-3)&&y<Math.max(l.length-2,3)){const j=K.height/K.width,C=j>2||j<.5,g=j>1.6||j<.6;t.value!==C&&(t.value=C),n.value!==g&&(n.value=g)}f()}}}),u=new Qf({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 ep({spec:e.spec,async onChanged(K){var y;if(l=K,!e.raw.value&&!K.length){e.onError("no_img");return}(y=e.spec)!=null&&y.imgDivs&&!P&&e.isAutoShow!==!1&&e.page.value&&(P=!0,vo({rawImages:K,page:e.page.value,skipIfVisible:!0}),await cn(1)),s===void 0&&e.isAutoShow===!1&&(s=ul(K)),u.run()}})}qo(()=>{c.dispose(),u.dispose(),a==null||a.dispose(),o&&vo({rawImages:l,page:e.page.value})});function f(){var C,g,w,v;if(o||t.value===void 0||s===void 0)return;const P=Math.max(0,Math.min(s,l.length)),K=l.length-1,y=Math.min(Math.floor(P),K);if(y>=1){const B=(C=l[y])==null?void 0:C.computedSrc;if(!B){e.isAutoShow&&vo({rawImages:l,page:y});return}const O=(g=l[y-1])==null?void 0:g.computedSrc;if(O&&!((w=c.reactiveResults[O])!=null&&w.size)||!((v=c.reactiveResults[B])!=null&&v.size))return}if(o)return;o=!0,e.onReady(P);let j=!0;de(()=>Math.floor(e.page.value),(B,O)=>{vo({rawImages:l,page:B,smooth:r,isScrollDown:O===void 0||B>O||l.length===1,skipIfVisible:j&&l.length>1}),j=!1,O??(O=-1),u.run()},{immediate:!0})}return{asyncImgs:re(()=>{Object.values(c.reactiveResults);const P=[];return l.forEach(K=>{const y=K.computedSrc,j=y?c.reactiveResults[y]:void 0;(y&&!(j!=null&&j.invalid)||K.parentEl)&&P.push(j)}),P}),isWebtoon:re(()=>t.value??!1),maybeWebtoon:re(()=>n.value??!1)}}function ip(e,t){return re(()=>t.value?fl(e.value):e.value.map((n,o)=>[{img:n,index:o}]))}function fl(e,t=0){if(e.length===0)return[];const n=e.slice(0,2),r=n.some(i=>(i==null?void 0:i.size)&&i.size.width>i.size.height)?[n[0]]:n;return[r.map((i,s)=>({img:i,index:t+s})),...fl(e.slice(r.length),t+r.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=q(t&&e>0?Math.max(0,e):+(sessionStorage.getItem("tk:page")??"0")||e);return re({get:()=>o.value,set:r=>{o.value=r,sessionStorage.setItem("tk:page",r+"")}})}function lp(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const kr=40;function ap({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,x=!1,_=!1,A;const P=Ve(B,300),K=Ns(()=>{B(),P()},300),y=Ve(g,50);async function j(){w(e.value,{smooth:!1,ensureLastImgVisibility:!0})}function C(){var $;x=!0,f(),O(),($=l.value)==null||$.addEventListener("scroll",K),setTimeout(()=>{const{width:V,height:ae}=Sf();de(V,()=>{r.value&&y()}),de(ae,()=>{r.value||y()}),de(n,g),de(t,g)},300)}async function g(){if(!x||S)return;S=!0,await mt();const $=e.value;if(H()===$){S=!1;return}w($)}function w($,{smooth:V,ensureLastImgVisibility:ae=!1}={smooth:!1}){const fe=l.value;if(!fe)return;S=!0;const Le=async()=>{await mt(),S=!1,x||C()},me=Math.floor($),Pe=fe.querySelector(`[data-index="${me}"],[data-index2="${me}"]`);if(!Pe){Le();return}c(async()=>{await v(fe,!o.value&&V,async()=>{await Q(fe,Pe,{smooth:V,page:$,ensureLastImgVisibility:ae})}),await Le()})}async function v($,V,ae){V&&$.style.setProperty("scroll-snap-type","none"),await ae(),V&&$.style.removeProperty("scroll-snap-type")}function B(){if(S)return;const $=H();$!==void 0&&$!==e.value&&u($),O()}function O(){_||!_&&ee()&&(_=!0,h())}function ee(){const $=l.value;if(!$)return!1;const V=o.value?a.value?3:!r.value&&$.clientWidth>$.clientHeight?2.25:2.5:2;return r.value?$.scrollHeight-$.scrollTop<$.clientHeight*V:$.scrollWidth-(i.value?-$.scrollLeft:$.scrollLeft)<$.clientWidth*V}function H(){const $=ne();return $?(+$.getAttribute("data-index")||0)+(o.value?ie($):0):void 0}function ne(){var V;if(A??(A=l.value.getRootNode()),!A)return;const $=(V=A.elementsFromPoint)==null?void 0:V.call(A,r.value||!o.value?window.innerWidth/2:i.value?window.innerWidth-kr:kr,r.value&&o.value?s.value||kr:window.innerHeight/2);if($)for(let ae=0;ae<$.length;ae++){const fe=$[ae];if(fe.hasAttribute("data-index"))return fe;if(fe===l.value)break}}function ie($){const V=$.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 k=!1;async function Q($,V,ae){if(k)return;const fe=V.getBoundingClientRect();if(!o.value){if(r.value){if(fe.top<=0&&fe.bottom>=$.clientHeight)return}else if(fe.left<=0&&fe.right>=$.clientWidth)return}k=!0;const Le=r.value?$.scrollTop:$.scrollLeft,me=ae.page,Pe=o.value?me%1:0,it=await $n(30,10,async()=>{await cn();let Ne;if(!(V.offsetHeight<10))return o.value?r.value?Ne=V.offsetTop+Pe*V.offsetHeight-s.value:i.value?Ne=V.offsetLeft-$.clientWidth+V.offsetWidth-Pe*V.offsetWidth:Ne=V.offsetLeft+Pe*V.offsetWidth:r.value?Ne=V.offsetTop+(fe.top>0?0:fe.height-$.clientHeight):Ne=V.offsetLeft+(fe.left>0?0:fe.width-$.clientWidth),me>.5&&Math.abs(Ne)<100?void 0:Ne})??0,dt=ae.ensureLastImgVisibility?r.value?Math.min(it,$.scrollHeight-$.clientHeight*2):i.value?Math.max(it,-($.scrollWidth-$.clientWidth*2)):Math.min(it,$.scrollWidth-$.clientWidth*2):it;if(!ae.smooth){r.value?$.scrollTop=dt:$.scrollLeft=dt,k=!1;return}const Me=dt-Le,tt=30;let _t=0;return new Promise(Ne=>{(function ft(){const nt=cp(_t,Le,Me,tt);r.value?$.scrollTop=nt:$.scrollLeft=nt,_t++,_t<=tt?requestAnimationFrame(ft):(Ne(),k=!1)})()})}return{init:j,goToPage:w}}function cp(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function up({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,isLongStrip:i,speed:s}){const l=sessionStorage.getItem("tk:playing"),a=q(typeof l=="string"?l==="true":e),c=re({get:()=>a.value,set:v=>{a.value=v,sessionStorage.setItem("tk:playing",v?"true":"false")}}),u=q(!1);let f,h;const S=Ve(g,100),x=Ve(()=>{u.value=!0},t?2e3:1e3),_=()=>setTimeout(()=>{u.value=!1,x()},30);_(),t||Rt(window,"mousemove",_);const A=Us();Qe(()=>{de(A,v=>{c.value&&(v==="visible"?g():h==null||h())}),de(s,()=>P()),de(i,v=>{v||y()})}),Tt(y);async function P(v){c.value&&(h==null||h()),v&&(await mt(),await v()),c.value&&S()}function K(){c.value?y():j()}function y(){c.value&&(c.value=!1,h==null||h(),_())}function j(){!c.value&&i.value&&(c.value=!0,g(),_())}function C(){h==null||h()}function g(){const v=n.value;if(!c.value||!v)return;const B=o.value?v.scrollHeight-v.clientHeight:v.scrollWidth-v.clientWidth,O=w();if(B<=O){y();return}h=()=>{f=Date.now(),h=void 0};const ee=Date.now();f=ee;const H=.05*s.value,ne=o.value?"scrollTop":"scrollLeft";let ie=Date.now(),k=0;const Q=()=>{if(f!==ee)return;const $=Date.now(),V=$-ie;ie=$;const ae=H*V+k;ae>=1?(k=ae%1,v[ne]+=(ae-k)*(r.value?-1:1)):k=ae,setTimeout(Q,1)};Q()}function w(){const v=n.value;return o.value?v.scrollTop:r.value?-v.scrollLeft:v.scrollLeft}return{isPlaying:c,isIdle:u,toggle:K,play:j,pause:C,resume:g,stop:y,interfere:P,awake:_}}function dp(e,t){var j,C,g;const{vol:n,inferVol:o,chap:r,title:i,slug:s,basePath:l}=e;let a=-1;const c=t&&!t.url?document.querySelectorAll(t.sel):void 0;function u(w,v){w.slug?Ir(l,w.slug,v):w.elIndex!==void 0&&c&&c[w.elIndex]&&ll(c[w.elIndex])}function f(w){const v=y[w];return v?B=>u(v,B):void 0}const h=(j=e.prev)==null?void 0:j.slug,S=(C=e.next)==null?void 0:C.slug;let x=h?w=>Ir(l,h,w):void 0,_=S?w=>Ir(l,S,w):void 0;const A=n??o,P=t==null?void 0:t.url,K=((g=i.chapters)==null?void 0:g.filter(w=>w.slug||!P&&w.elIndex!==void 0))??[],y=K.length>1?K:[];if(y.length){if(P&&(a=y.findIndex(w=>w.slug===e.slug)),a===-1&&(a=y.findIndex(w=>(w.vol??w.inferVol)===A&&w.chap===r)),P&&a===-1&&(a=y.findIndex(w=>w.slug&&s.startsWith(`${w.slug}-`)&&s.length-w.slug.length>3)),a!==-1)x??(x=f(a+1)),_??(_=f(a-1));else if(!h&&!S){const w=y.findIndex(v=>{const B=v.vol??v.inferVol;return A===void 0||B===void 0||A===B?v.chap<r:B<A});w!==-1?(x=f(w),_=f(w-1)):_=f(y.length-1)}}return{activeIndex:a,activeLabel:pl({vol:n,chap:r}),prev:x,next:_,chapters:y.map(w=>({label:pl(w),select:v=>u(w,v)}))}}function pl({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}function Ir(e,t,n){const o=!t||t.includes("//")||t.startsWith("/")?t:"/"+[...e.split("/"),...t.split("/")].filter(Boolean).join("/"),r=o.includes("//")?o:location.origin+o;n?window.open(r,"_blank","noopener"):location.href=r}const fp={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},hl=ge(xe({inheritAttrs:!1,__name:"App",props:{immediate:{type:Boolean},raw:{},spec:{},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=q(!1),a=q(!1),c=xu({touchDevice:n.touchDevice}),u=sp(n.page,n.isAutoShow),f=re(()=>n.spaceTop??0),{asyncImgs:h,isWebtoon:S,maybeWebtoon:x}=rp({raw:re(()=>n.raw),spec:n.spec,page:u,touchDevice:n.touchDevice,isAutoShow:n.isAutoShow,spaceTop:f,async onReady(m){me(m),l.value=!0},onError:()=>{o("error"),T()}}),{direction:_,style:A,isRTL:P,isDouble:K,isVertical:y,isLongStrip:j,gap:C,speed:g,zoom:w}=cd({titleName:re(()=>{var m;return(m=n.raw)==null?void 0:m.title.name}),isWebtoon:S,maybeWebtoon:x,defaultStyle:n.readerStyle,defaultDirection:n.direction}),v=ip(h,K),B=re(()=>u.value>=h.value.length),O=re(()=>{var m;return n.raw?dp(n.raw,(m=n.spec)==null?void 0:m.chapter):void 0}),ee=q(null),H=q(null),ne=q(!1),ie=q(!1),k=up({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:re(()=>{var m;return(m=ee.value)==null?void 0:m.$el}),speed:g,isRTL:P,isVertical:y,isLongStrip:j}),Q=re(()=>!n.touchDevice&&k.isIdle.value&&!c.value),$=re({get(){return w.value},set(m){k.interfere(()=>{w.value=m})}}),V=ap({page:u,style:A,direction:_,isLongStrip:j,isVertical:y,isRTL:P,spaceTop:f,isWebtoon:S,scrollEl:re(()=>{var m;return(m=ee.value)==null?void 0:m.$el}),interferePlayer:m=>k.interfere(m),onChangedPage:me,onInitialized(){o("ready"),a.value=!0,n.touchDevice&&(i=Pe())},onFinished:()=>o("finished")}),ae=re(()=>Math.floor(u.value)),fe=()=>k.interfere(()=>cn(100));Ou().addListener({onKeyDown:m=>{if(n.tourEnabled)return;const I=j.value&&y.value,W=j.value&&!y.value,J=!j.value&&y.value,le=!j.value&&!y.value;switch(m.key){case" ":m.preventDefault(),j.value?(F(!1),k.toggle()):b();break;case"ArrowUp":case"PageUp":I?fe():J&&ae.value!==0&&(m.preventDefault(),p());break;case"ArrowDown":case"PageDown":I?fe():J&&!B.value&&(m.preventDefault(),b());break;case"ArrowLeft":W?fe():le?(m.preventDefault(),Mn()):y.value&&tt();break;case"ArrowRight":W?fe():le?(m.preventDefault(),d()):y.value&&Me();break}},onKeyUp:m=>{switch(m.key){case"f":z();break;case"t":N();break;case"h":F();break}}}),Rt("fullscreenchange",()=>{ne.value=!!document.fullscreenElement}),de(k.isPlaying,m=>{m||L(!1),o("playingChanged",m)}),de(k.isIdle,m=>{k.isPlaying.value&&L(m)}),de(c,m=>{!m&&k.isIdle.value?k.awake():m&&n.fullScreen&&L()});function me(m){if(u.value===m)return;const I=h.value.length;if(m<0||m>=I+1)return;const W=u.value;u.value=m;const J=Math.floor(m*100)/100;J!==s&&(s=J,o("pageChanged",J)),m>=I?(L(!1),k.stop()):m<.01?(L(!1),k.awake()):n.touchDevice&&!r&&(j.value?i!==void 0&&Pe()-i>300&&L(!0):Math.abs(W-m)===1&&L(!0))}function Pe(){var I;const m=(I=ee.value)==null?void 0:I.$el;return m?y.value?m.scrollTop:P.value?-m.scrollLeft:m.scrollLeft:0}function it(){!n.touchDevice&&!j.value&&V.goToPage(ae.value,{smooth:!0})}function dt(){if(k.isPlaying.value){!n.fullScreen||!n.touchDevice?k.stop():k.awake();return}L()}function Me(m=!1){var I,W;(W=(I=O.value)==null?void 0:I.next)==null||W.call(I,m)}function tt(m=!1){var I,W;(W=(I=O.value)==null?void 0:I.prev)==null||W.call(I,m)}function _t(m,I){var W,J,le;(le=(J=(W=O.value)==null?void 0:W.chapters)==null?void 0:J[m])==null||le.select(nt(I))}function Ne(m){P.value?Me(nt(m)):tt(nt(m))}function ft(m){P.value?tt(nt(m)):Me(nt(m))}function nt(m){return!n.touchDevice&&(m.ctrlKey||m.metaKey)}function Mn(){P.value?b():p()}function d(){P.value?p():b()}function p(){var W;const m=v.value,I=B.value?m[m.length-1][0].index:(W=m[E()-1])==null?void 0:W[0].index;I!==void 0?V.goToPage(I):tt()}function b(){var m,I;if(B.value)Me();else{const W=((I=(m=v.value[E()+1])==null?void 0:m[0])==null?void 0:I.index)??h.value.length;V.goToPage(W)}}function E(){const m=ae.value,I=v.value.findIndex(W=>W.some(({index:J})=>J===m));return I===-1?v.value.length-1:I}function T(){lp(),o("dispose")}async function L(m){if(c.value&&!n.fullScreen)return;r=!0;const I=typeof m=="boolean"?m:!n.fullScreen;o("fullScreenChanged",I),I&&setTimeout(()=>{n.fullScreen&&c.value&&o("fullScreenChanged",!1)},100)}function N(){n.entryId?M():D()}function z(){var m,I;document.fullscreenElement?document.exitFullscreen():(I=(m=H.value)==null?void 0:m.$el)==null||I.requestFullscreen()}function D(){k.stop(),o("addEntry")}function M(){k.stop(),o("openEntry",n.entryId)}function F(m){ie.value!==m&&(ie.value=!ie.value,ie.value&&k.isPlaying.value&&k.stop())}return(m,I)=>{const W=il,J=rl,le=tl,pe=Js,Ce=Qs,Ye=Gs,Dt=Ds,pt=fo,Qt=Rs,bo=_r,je=js,ot=zs,_o=As,Sp=Os,Cp=Ms,kp=Ps,Ip=$s,Ep=Ts,Tp=vr,$p=mr,Pp=ys,Mp=bs;return m.immediate||l.value?(R(),be(Mp,{key:0,ref_key:"root",ref:H,loading:!a.value,immediate:!!m.immediate,"full-screen":!!m.fullScreen,idle:Q.value,"space-top":f.value,rtl:X(P),onClick:I[10]||(I[10]=et(()=>{},["stop"]))},Ci({settings:oe(()=>{var yt;return[Z(Ep,{"reader-style":X(A),"onUpdate:readerStyle":I[3]||(I[3]=wt=>Ie(A)?A.value=wt:null),direction:X(_),"onUpdate:direction":I[4]||(I[4]=wt=>Ie(_)?_.value=wt:null),gap:X(C),"onUpdate:gap":I[5]||(I[5]=wt=>Ie(C)?C.value=wt:null),speed:X(g),"onUpdate:speed":I[6]||(I[6]=wt=>Ie(g)?g.value=wt:null),zoom:$.value,"onUpdate:zoom":I[7]||(I[7]=wt=>$.value=wt),name:(yt=m.raw)==null?void 0:yt.title.name,webtoon:X(S),disabled:!l.value,onHelp:F},null,8,["reader-style","direction","gap","speed","zoom","name","webtoon","disabled"])]}),"reset-zoom":oe(()=>[Z(sn,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:oe(()=>[Z(Pp,{zoom:$.value,onClick:I[9]||(I[9]=et(()=>$.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:oe(()=>[U("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:Ae({width:`${X(u)/(X(h).length-1)*100}%`})},null,4)]),default:oe(()=>[l.value?(R(),be(J,{key:0,ref_key:"body",ref:ee,zoom:$.value,"onUpdate:zoom":I[0]||(I[0]=yt=>$.value=yt),"page-index":ae.value,pages:X(v),"total-imgs":X(h).length,direction:X(_),gap:X(C),"is-long-strip":X(j),isRTL:X(P),"is-vertical":X(y),"space-top":f.value,busy:X(c),idle:Q.value,"play-controller":X(k),"touch-device":m.touchDevice,onVnodeMounted:X(V).init,onPrev:p,onNext:b,onClick:dt,onDragEnd:it,onWheelPassive:I[1]||(I[1]=()=>X(k).interfere())},Ci({_:2},[l.value&&X(h).length?{name:"end",fn:oe(()=>{var yt;return[Z(W,{"has-next":!!((yt=O.value)!=null&&yt.next),onNext:Me,onHide:T},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","onVnodeMounted"])):Te("",!0),a.value&&!B.value&&!m.tourEnabled?(R(),be(le,{key:1,direction:X(_)},null,8,["direction"])):Te("",!0),a.value&&!B.value?(R(),be(pe,{key:2,playing:!!X(k).isPlaying.value},null,8,["playing"])):Te("",!0),ie.value?(R(),be(Ce,{key:3,"touch-device":m.touchDevice,onHide:F},null,8,["touch-device"])):Te("",!0),m.tourEnabled?(R(),be(Ye,{key:4,onHide:I[2]||(I[2]=()=>o("tourEnabledChanged",!1))})):Te("",!0)]),_:2},[m.raw?{name:"back",fn:oe(()=>[Z(pt,{href:m.raw.title.url,title:"Back to manga"},{default:oe(()=>[Z(Dt)]),_:1},8,["href"])]),key:"0"}:void 0,m.touchDevice?void 0:{name:"exit",fn:oe(()=>[Z(pt,{title:"Hide reader","data-tour":"You have entered reader mode, press here to return to the original page",onClick:T},{default:oe(()=>[Z(Qt)]),_:1})]),key:"1"},O.value?{name:"chapter-nav",fn:oe(()=>[Z(bo,{modelValue:O.value.activeIndex,label:O.value.activeLabel,title:"Select chapter",items:O.value.chapters,onSelect:_t},{item:oe(({item:yt})=>[Mt(Xe(yt.label),1)]),_:1},8,["modelValue","label","items"]),O.value.next||O.value.prev?(R(),Y("div",fp,[Z(pt,{title:`${X(P)?"Next":"Prev"} chapter (←)`,disabled:X(P)?!O.value.next:!O.value.prev,class:"!rounded-r-none",onClick:Ne},{default:oe(()=>[Z(je)]),_:1},8,["title","disabled"]),Z(pt,{title:`${X(P)?"Prev":"Next"} chapter (→)`,disabled:X(P)?!O.value.prev:!O.value.next,class:"!rounded-l-none",onClick:ft},{default:oe(()=>[Z(ot)]),_:1},8,["title","disabled"])])):Te("",!0)]),key:"2"}:void 0,X(v).length?{name:"page-nav",fn:oe(()=>[Z(_o,{"model-value":ae.value,disabled:!a.value,pages:X(v),"total-imgs":X(h).length,"onUpdate:modelValue":X(V).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),key:"3"}:void 0,m.raw?{name:"entry",fn:oe(()=>[Z(pt,{title:m.entryId?"View entry (T)":"Add to library (T)","data-tour":"Prress here to add to your collection",onClick:N},{default:oe(()=>[m.entryId?(R(),be(Sp,{key:0})):(R(),be(Cp,{key:1}))]),_:1},8,["title"])]),key:"4"}:void 0,m.touchDevice?void 0:{name:"full-screen",fn:oe(()=>[Z(pt,{title:`${ne.value?"Exit":"Enter"} fullscreen (F)`,onClick:z},{default:oe(()=>[ne.value?(R(),be(kp,{key:0})):(R(),be(Ip,{key:1}))]),_:1},8,["title"])]),key:"5"},X(j)?{name:"play",fn:oe(()=>[Z(pt,{"data-tour":"Press here to play like a video",title:`${X(k).isPlaying.value?"Pause":"Play"} (Space)`,disabled:!a.value,onClick:I[8]||(I[8]=()=>X(k).toggle())},{default:oe(()=>[X(k).isPlaying.value?(R(),be(Tp,{key:0})):(R(),be($p,{key:1}))]),_:1},8,["title","disabled"])]),key:"6"}:void 0]),1032,["loading","immediate","full-screen","idle","space-top","rtl"])):Te("",!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}}.\\!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-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}.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}.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:hl},Symbol.toStringTag,{value:"Module"})),hp={},gp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},mp=[U("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 vp(e,t){return R(),Y("svg",gp,mp)}const bp=Object.freeze(Object.defineProperty({__proto__:null,default:ge(hp,[["render",vp]])},Symbol.toStringTag,{value:"Module"})),_p=`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}
29
- `,Pn="gear-second",Er={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,onPlayingChanged:void 0,onPageChanged:void 0,onOpenEntry:void 0,onAddEntry:void 0,onFinished:void 0},Ue={promise:void 0,data:un({...Er})};async function yp(e){return Ue.promise?(Ue.data.raw=e.raw,await Ue.promise):(Ue.promise=new Promise(t=>{let n=!1,o=!1,r;const i=!!e.spaceTop||!!e.isAutoShow&&!!e.page,s=()=>{n||(n=!0,r&&document.body.removeChild(r),document.documentElement.classList.remove(Pn),Object.assign(Ue.data,Er),Ue.promise=void 0)};Object.assign(Ue.data,Er,e,{immediate:i,onReady(){i||(l(),setTimeout(()=>r.setAttribute("style","")))},onError(){var c,u;s(),o?((c=e.onDispose)==null||c.call(e),(u=e.onError)==null||u.call(e)):a()},onDispose:()=>{var c;s(),(c=e==null?void 0:e.onDispose)==null||c.call(e)},onFullScreenChanged:c=>{var u;Ue.data.fullScreen=c,(u=e.onFullScreenChanged)==null||u.call(e,c)},onPageChanged:c=>{var u;Ue.data.page=c,(u=e.onPageChanged)==null||u.call(e,c)},onTourEnabledChanged:c=>{Ue.data.tourEnabled=c}}),wp().then(()=>{if(n){a();return}r=document.createElement(Pn),document.documentElement.classList.add(Pn),i?(document.body.appendChild(r),setTimeout(l)):(r.setAttribute("style","background-color: transparent !important"),document.body.appendChild(r))});function l(){o||(o=!0,t({triggerDoubleTap:(c,u)=>zf(c,u),updateArgs(c){Object.assign(Ue.data,c)},dispose:s}))}function a(){o||t(void 0)}}),await Ue.promise)}async function wp(){if(window.customElements.get(Pn))return;const e=document.createElement("style");e.appendChild(document.createTextNode(_p)),document.head.appendChild(e);const t=jc({styles:[await xp()],data:()=>({readerData:Ue.data}),render(){return Qi(hl,this.readerData)}});window.customElements.define(Pn,t)}async function xp(){const e=Object.assign({"./App.vue":pp,"./components/AutoNext.vue":Yf,"./components/BottomSheet.vue":ju,"./components/ButtonDropdown.vue":Nd,"./components/ButtonIcon.vue":ku,"./components/ButtonReaderSettings.vue":dd,"./components/ButtonResetZoom.vue":du,"./components/DirectionToast.vue":Lf,"./components/HelpScreen.vue":If,"./components/InputPercentage.vue":Bu,"./components/InputSelect.vue":Wu,"./components/IntersectionWrapper.vue":Rf,"./components/LoadingIndicator.vue":Xc,"./components/PageNav.vue":Hd,"./components/PauseToast.vue":Ef,"./components/ReaderBody.vue":Ff,"./components/ReaderLayout.vue":nu,"./components/ReaderTour.vue":Cf,"./components/TableField.vue":Hu,"./components/ZoomWrapper.vue":jf,"./components/icons/IconBack.vue":cf,"./components/icons/IconBookmarkNew.vue":Id,"./components/icons/IconBookmarked.vue":Md,"./components/icons/IconChevronLeft.vue":Qd,"./components/icons/IconChevronRight.vue":Yd,"./components/icons/IconClose.vue":Pu,"./components/icons/IconExclamationCircle.vue":bp,"./components/icons/IconFullscreen.vue":md,"./components/icons/IconFullscreenExit.vue":wd,"./components/icons/IconHelp.vue":Xu,"./components/icons/IconNext.vue":Of,"./components/icons/IconPause.vue":wu,"./components/icons/IconPlay.vue":mu,"./components/icons/IconReaderExit.vue":of,"./components/icons/IconSettings.vue":ed,"./components/icons/IconTriangle.vue":jd,"./components/icons/IconZoom.vue":lu}),t=[];for(const n in e){const o=e[n];t.push(o.default.styles)}return t.join("")}return yp});
20
+ **/const gc="http://www.w3.org/2000/svg",mc="http://www.w3.org/1998/Math/MathML",Lt=typeof document<"u"?document:null,Ji=Lt&&Lt.createElement("template"),vc={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"?Lt.createElementNS(gc,e):t==="mathml"?Lt.createElementNS(mc,e):Lt.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>Lt.createTextNode(e),createComment:e=>Lt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Lt.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{Ji.innerHTML=o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e;const l=Ji.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]}},At="transition",Sn="animation",kn=Symbol("_vtc"),sn=(e,{slots:t})=>Qi(Ia,_c(e),t);sn.displayName="Transition";const es={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};sn.props=be({},bi,es);const Yt=(e,t=[])=>{ee(e)?e.forEach(n=>n(...t)):e&&e(...t)},ts=e=>e?ee(e)?e.some(t=>t.length>1):e.length>1:!1;function _c(e){const t={};for(const N in e)N in es||(t[N]=e[N]);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,w=bc(r),b=w&&w[0],A=w&&w[1],{onBeforeEnter:P,onEnter:K,onEnterCancelled:y,onLeave:R,onLeaveCancelled:k,onBeforeAppear:m=P,onAppear:x=K,onAppearCancelled:v=y}=t,T=(N,ie,le)=>{Xt(N,ie?u:l),Xt(N,ie?c:s),le&&le()},L=(N,ie)=>{N._isLeaving=!1,Xt(N,f),Xt(N,S),Xt(N,h),ie&&ie()},G=N=>(ie,le)=>{const O=N?x:K,H=()=>T(ie,N,le);Yt(O,[ie,H]),ns(()=>{Xt(ie,N?a:i),zt(ie,N?u:l),ts(O)||os(ie,o,b,H)})};return be(t,{onBeforeEnter(N){Yt(P,[N]),zt(N,i),zt(N,s)},onBeforeAppear(N){Yt(m,[N]),zt(N,a),zt(N,c)},onEnter:G(!1),onAppear:G(!0),onLeave(N,ie){N._isLeaving=!0;const le=()=>L(N,ie);zt(N,f),xc(),zt(N,h),ns(()=>{N._isLeaving&&(Xt(N,f),zt(N,S),ts(R)||os(N,o,A,le))}),Yt(R,[N,le])},onEnterCancelled(N){T(N,!1),Yt(y,[N])},onAppearCancelled(N){T(N,!0),Yt(v,[N])},onLeaveCancelled(N){L(N),Yt(k,[N])}})}function bc(e){if(e==null)return null;if(ge(e))return[ar(e.enter),ar(e.leave)];{const t=ar(e);return[t,t]}}function ar(e){return Io(e)}function zt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[kn]||(e[kn]=new Set)).add(t)}function Xt(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 ns(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let yc=0;function os(e,t,n,o){const r=e._endId=++yc,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:l,propCount:a}=wc(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 wc(e,t){const n=window.getComputedStyle(e),o=w=>(n[w]||"").split(", "),r=o(`${At}Delay`),i=o(`${At}Duration`),s=rs(r,i),l=o(`${Sn}Delay`),a=o(`${Sn}Duration`),c=rs(l,a);let u=null,f=0,h=0;t===At?s>0&&(u=At,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?At:Sn:null,h=u?u===At?i.length:a.length:0);const S=u===At&&/\b(transform|all)(,|$)/.test(o(`${At}Property`).toString());return{type:u,timeout:f,propCount:h,hasTransform:S}}function rs(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>is(n)+is(e[o])))}function is(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function xc(){return document.body.offsetHeight}function Sc(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 cr=Symbol("_vod"),ss={beforeMount(e,{value:t},{transition:n}){e[cr]=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[cr]:"none"}const kc=Symbol("");function Ic(e,t,n){const o=e.style,r=o.display,i=ye(n);if(n&&!i){if(t&&!ye(t))for(const s in t)n[s]==null&&ur(o,s,"");for(const s in n)ur(o,s,n[s])}else if(i){if(t!==n){const s=o[kc];s&&(n+=";"+s),o.cssText=n}}else t&&e.removeAttribute("style");cr in e&&(o.display=r)}const ls=/\s*!important$/;function ur(e,t,n){if(ee(n))n.forEach(o=>ur(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Cc(e,t);ls.test(n)?e.setProperty(We(o),n.replace(ls,""),"important"):e[o]=n}}const as=["Webkit","Moz","ms"],dr={};function Cc(e,t){const n=dr[t];if(n)return n;let o=je(t);if(o!=="filter"&&o in e)return dr[t]=o;o=zn(o);for(let r=0;r<as.length;r++){const i=as[r]+o;if(i in e)return dr[t]=i}return t}const cs="http://www.w3.org/1999/xlink";function Tc(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(cs,t.slice(6,t.length)):e.setAttributeNS(cs,t,n);else{const i=Cl(t);n==null||i&&!Lr(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function Ec(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=Lr(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function ln(e,t,n,o){e.addEventListener(t,n,o)}function $c(e,t,n,o){e.removeEventListener(t,n,o)}const us=Symbol("_vei");function Pc(e,t,n,o,r=null){const i=e[us]||(e[us]={}),s=i[t];if(o&&s)s.value=o;else{const[l,a]=Mc(t);if(o){const c=i[t]=Ac(o,r);ln(e,l,c,a)}else s&&($c(e,l,s,a),i[t]=void 0)}}const ds=/(?:Once|Passive|Capture)$/;function Mc(e){let t;if(ds.test(e)){t={};let o;for(;o=e.match(ds);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):We(e.slice(2)),t]}let fr=0;const Oc=Promise.resolve(),Lc=()=>fr||(Oc.then(()=>fr=0),fr=Date.now());function Ac(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Qe(zc(o,n.value),t,5,[o])};return n.value=e,n.attached=Lc(),n}function zc(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 fs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,jc=(e,t,n,o,r,i,s,l,a)=>{const c=r==="svg";t==="class"?Sc(e,o,c):t==="style"?Ic(e,n,o):Mn(t)?yo(t)||Pc(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Dc(e,t,o,c))?Ec(e,t,o,i,s,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Tc(e,t,o,c))};function Dc(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&fs(t)&&te(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 fs(t)&&ye(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function Rc(e,t){const n=Se(e);class o extends pr{constructor(i){super(n,i,t)}}return o.def=n,o}const Bc=typeof HTMLElement<"u"?HTMLElement:class{};class pr extends Bc{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||(vs(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]=Io(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=Io(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(We(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(We(t),n+""):n||this.removeAttribute(We(t))))}_update(){vs(this._createVNode(),this.shadowRoot)}_createVNode(){const t=Q(this._def,be({},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),We(i)!==i&&o(We(i),s)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof pr){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 ps=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ee(t)?n=>jn(t,n):t};function Vc(e){e.target.composing=!0}function hs(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const hr=Symbol("_assign"),Nc={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[hr]=ps(r);const i=o||r.props&&r.props.type==="number";ln(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=ko(l)),e[hr](l)}),n&&ln(e,"change",()=>{e.value=e.value.trim()}),t||(ln(e,"compositionstart",Vc),ln(e,"compositionend",hs),ln(e,"change",hs))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},i){if(e[hr]=ps(i),e.composing)return;const s=r||e.type==="number"?ko(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===l)||(e.value=l))}},Fc=["ctrl","shift","alt","meta"],Hc={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)=>Fc.some(n=>e[`${n}Key`]&&!t.includes(n))},nt=(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=Hc[t[s]];if(l&&l(r,t))return}return e(r,...i)})},Wc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},gs=(e,t)=>{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=r=>{if(!("key"in r))return;const i=We(r.key);if(t.some(s=>s===i||Wc[s]===i))return e(r)})},Kc=be({patchProp:jc},vc);let ms;function qc(){return ms||(ms=Za(Kc))}const vs=(...e)=>{qc().render(...e)},Uc=`.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}}
21
+ `,he=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Yc={},Xc={class:"loading-indicator"};function Zc(e,t){return D(),q("div",Xc)}const gr=he(Yc,[["render",Zc],["styles",[Uc]]]),Gc=Object.freeze(Object.defineProperty({__proto__:null,default:gr},Symbol.toStringTag,{value:"Module"})),Qc={key:0,class:"fixed inset-0 h-[101%] overflow-auto scrollbar-none flex justify-center items-center z-10 bg-black"},Jc={class:"flex justify-between items-end"},eu={class:"inline-block children-pointer-events-auto w-1/3"},tu={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},nu={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},ou={class:"inline-block z-20 relative"},_s=he(Se({__name:"ReaderLayout",props:{loading:{type:Boolean},immediate:{type:Boolean},idle:{type:Boolean},fullScreen:{type:Boolean},rtl:{type:Boolean},spaceTop:{}},setup(e){return(t,n)=>{const o=gr;return D(),q("div",{class:Ce(["reader-layout",{"cursor-none":t.idle,"bg-black":t.immediate||!t.loading,"opacity-0":!t.immediate&&t.loading,"duration-200 transition-colors":!t.immediate}])},[t.loading&&t.immediate?(D(),q("div",Qc,[Q(o)])):$e("",!0),we(t.$slots,"default"),U("div",{id:"controls",class:Ce(["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}])},[U("div",{class:"flex gap-1 items-center children-pointer-events-auto relative z-30 flex-shrink-0 2xs:gap-3",style:Le({paddingTop:`${t.spaceTop||0}px`})},[we(t.$slots,"back"),we(t.$slots,"exit"),we(t.$slots,"chapter-nav")],4),U("div",Jc,[U("div",eu,[we(t.$slots,"page-nav")]),U("div",tu,[we(t.$slots,"reset-zoom")]),U("div",nu,[we(t.$slots,"entry"),U("div",ou,[we(t.$slots,"settings")]),we(t.$slots,"full-screen"),we(t.$slots,"play"),we(t.$slots,"break-first")])]),U("div",{class:Ce(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":t.rtl}])},[we(t.$slots,"progress")],2)],2)],2)}}}),[["styles",[`.reader-layout{direction:ltr;height:100vh;left:0;position:fixed;scrollbar-width:none;top:0;width:100vw}.reader-layout::-webkit-scrollbar{display:none}.reader-layout{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity));cursor:default;font-family:Helvetica,sans-serif;font-size:16px;line-height:24px;overflow:auto;overscroll-behavior:contain}
22
+ `]]]),ru=Object.freeze(Object.defineProperty({__proto__:null,default:_s},Symbol.toStringTag,{value:"Module"})),iu={},su={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},lu=[U("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[U("circle",{cx:"14",cy:"14",r:"12"}),U("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function au(e,t){return D(),q("svg",su,lu)}const bs=he(iu,[["render",au]]),cu=Object.freeze(Object.defineProperty({__proto__:null,default:bs},Symbol.toStringTag,{value:"Module"})),uu={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"},du={class:"block w-4 h-4"},fu={class:"w-12"},ys=Se({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>{const o=bs;return t.zoom!==1?(D(),q("button",uu,[U("div",du,[Q(o)]),U("div",fu,Ge(Math.ceil(t.zoom*100))+"%",1)])):$e("",!0)}}}),pu=Object.freeze(Object.defineProperty({__proto__:null,default:ys},Symbol.toStringTag,{value:"Module"})),hu={},gu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 56 56"},mu=[U("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 vu(e,t){return D(),q("svg",gu,mu)}const ws=he(hu,[["render",vu]]),_u=Object.freeze(Object.defineProperty({__proto__:null,default:ws},Symbol.toStringTag,{value:"Module"})),bu={},yu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wu=[U("g",{fill:"none"},[U("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"}),U("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 xu(e,t){return D(),q("svg",yu,wu)}const xs=he(bu,[["render",xu]]),Su=Object.freeze(Object.defineProperty({__proto__:null,default:xs},Symbol.toStringTag,{value:"Module"})),ku={},Iu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Cu=[U("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 Tu(e,t){return D(),q("svg",Iu,Cu)}const mr=he(ku,[["render",Tu]]),Eu=Object.freeze(Object.defineProperty({__proto__:null,default:mr},Symbol.toStringTag,{value:"Module"})),$u={},Pu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Mu=[U("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),U("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 Ou(e,t){return D(),q("svg",Pu,Mu)}const vr=he($u,[["render",Ou]]),Lu=Object.freeze(Object.defineProperty({__proto__:null,default:vr},Symbol.toStringTag,{value:"Module"}));function Au({touchDevice:e}){const t=X(!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 _r(){const e=Kt("busy:touchDevice"),t=Kt("setBusyState");let n=!1;return Et(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:r=!1}={})=>{r&&e||(n=o,t==null||t(o))}}const zu=(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))}},an={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>zu(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},ju={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"},uo=Se({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,o=t,r=_r();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((D(),me(ma(c.href?"a":"button"),so(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:nt(a,["stop"]),onMouseenter:s,onMouseleave:l}),{default:ne(()=>[U("div",ju,[we(c.$slots,"default")])]),_:3},16,["class"])),[[Z(an),c.disabled?0:15]])}}),Du=Object.freeze(Object.defineProperty({__proto__:null,default:uo},Symbol.toStringTag,{value:"Module"})),Ru={},Bu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Vu=[U("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 Nu(e,t){return D(),q("svg",Bu,Vu)}const Ss=he(Ru,[["render",Nu]]),Fu=Object.freeze(Object.defineProperty({__proto__:null,default:Ss},Symbol.toStringTag,{value:"Module"}));class Hu{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 Wu(){const e=new Hu;return Et(()=>e.dispose()),to("keyController",e),e}function fo(e){const t=Kt("keyController");et(()=>t.addListener(e)),Et(()=>t.removeListener(e))}const Ku={class:"flex w-full flex-shrink-0 justify-between items-center h-16 px-3"},qu={class:"font-medium md:text-lg text-ellipsis overflow-hidden whitespace-nowrap px-3"},Uu={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},ks=Se({__name:"BottomSheet",props:$t({name:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=rn(e,"modelValue");fo({onKeyDown:o});const n=_r();pe(t,r=>n(r));function o(r){t.value&&r.key==="Escape"&&(t.value=!1,r.preventDefault())}return(r,i)=>{const s=Ss,l=uo;return D(),q("div",{class:Ce(["fixed-screen flex flex-col items-center justify-end select-none",{"!pointer-events-none":!t.value}]),onClick:i[3]||(i[3]=()=>t.value=!1)},[Q(sn,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:ne(()=>[t.value?(D(),q("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]=nt(()=>{},["stop"])),onWheelPassive:i[2]||(i[2]=nt(()=>{},["stop"]))},[U("div",Ku,[Q(l,{transparent:"",onClick:i[0]||(i[0]=()=>t.value=!1)},{default:ne(()=>[Q(s)]),_:1}),U("div",qu,Ge(r.name),1),we(r.$slots,"actions")]),U("div",Uu,[we(r.$slots,"default")])],32)):$e("",!0)]),_:3})],2)}}}),Yu=Object.freeze(Object.defineProperty({__proto__:null,default:ks},Symbol.toStringTag,{value:"Module"})),Xu=["min","max","step"],Zu={class:"flex-shrink-0"},Is=he(Se({__name:"InputPercentage",props:$t({min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=rn(e,"modelValue"),n=re({get(){return t.value},set(o){t.value=+o}});return(o,r)=>(D(),q("div",{class:Ce(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":o.disabled}]),style:Le({"--percentage":`${(n.value-o.min)/(o.max-o.min)*100}%`})},[vt(U("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,Xu),[[Nc,n.value]]),U("p",Zu,[we(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}
23
+ `]]]),Gu=Object.freeze(Object.defineProperty({__proto__:null,default:Is},Symbol.toStringTag,{value:"Module"})),Qu={class:"flex items-center mb-8 last:mb-0"},Ju={class:"flex-grow overflow-hidden"},Cs=Se({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(D(),q("div",Qu,[U("div",{class:Ce(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},Ge(t.label),3),U("div",Ju,[we(t.$slots,"default")])]))}}),ed=Object.freeze(Object.defineProperty({__proto__:null,default:Cs},Symbol.toStringTag,{value:"Module"})),td=["onClick","onKeyup"],Ts=Se({__name:"InputSelect",props:$t({items:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=rn(e,"modelValue"),o=X(null),r=X({width:"",left:""});et(()=>{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)=>(D(),q("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:{}},[U("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Le(r.value)},null,4),(D(!0),q(xe,null,vn(t.items,(a,c)=>vt((D(),q("div",{key:c,tabindex:"0",class:Ce(["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:[gs(()=>i(c),["enter"]),gs(()=>i(c),["space"])]},[Mt(Ge(a),1)],42,td)),[[Z(an),30]])),128))],512))}}),nd=Object.freeze(Object.defineProperty({__proto__:null,default:Ts},Symbol.toStringTag,{value:"Module"})),od={},rd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},id=[U("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 sd(e,t){return D(),q("svg",rd,id)}const Es=he(od,[["render",sd]]),ld=Object.freeze(Object.defineProperty({__proto__:null,default:Es},Symbol.toStringTag,{value:"Module"})),ad={},cd={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},ud=[U("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),U("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function dd(e,t){return D(),q("svg",cd,ud)}const $s=he(ad,[["render",dd]]),fd=Object.freeze(Object.defineProperty({__proto__:null,default:$s},Symbol.toStringTag,{value:"Module"}));function pd(e){if(e)try{return JSON.parse(e)}catch{return}}function hd(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||{}),Zt=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(Zt||{});const gd=.25,md=5,vd=.25,Cn=.25,Tn=5,_d=.05,bd=0,yd=4;function wd(e){var y,R,k,m,x,v;const{titleName:t,isWebtoon:n}=e,o=re(()=>t.value?hd(t.value):location.hostname),r=X(xd(`tkr:${o.value}`)),i=T=>{r.value=T;const L=`tkr:${o.value}`;!T||!Object.keys(T).length?localStorage.removeItem(L):localStorage.setItem(L,JSON.stringify(T))},s=T=>{if(!r.value){i(T);return}const L={...r.value};Object.entries(T).forEach(([G,N])=>{N===void 0?delete L[G]:L[G]=N}),i(L)},l=X(((y=r.value)==null?void 0:y.style)??e.defaultStyle??Zt.longStrip),a=X(((R=r.value)==null?void 0:R.direction)??e.defaultDirection??dt.vertical),c=X((k=r.value)==null?void 0:k.gap),u=X(((m=r.value)==null?void 0:m.speed)??1),f=X(((x=r.value)==null?void 0:x.zoom)??1),h=X(((v=r.value)==null?void 0:v.breakFirst)??!1),S=re({get(){return n.value?Zt.longStrip:l.value},set:T=>{l.value=T,s({style:T}),T!==Zt.longStrip&&a.value===dt.vertical&&(w.value=dt.rtl)}}),w=re({get:()=>n.value?dt.vertical:a.value,set:T=>{a.value=T,s({direction:T})}}),b=re({get:()=>c.value??(e.maybeWebtoon.value?0:1),set(T){c.value=T,s({gap:T})}}),A=re({get:()=>u.value,set(T){u.value=T,s({speed:T===1?void 0:T})}}),P=re({get:()=>f.value,set(T){f.value=T,s({zoom:T===1?void 0:T})}}),K=re({get:()=>h.value,set(T){h.value=T,s({breakFirst:T?!0:void 0})}});return{direction:w,style:S,gap:b,speed:A,zoom:P,isLongStrip:re(()=>S.value===Zt.longStrip),isDouble:re(()=>S.value===Zt.double),isRTL:re(()=>w.value===dt.rtl),isVertical:re(()=>w.value===dt.vertical),breakFirst:K}}function xd(e){const t=localStorage.getItem(e),n=pd(t),o={};return n?(n.style!==void 0&&Object.values(Zt).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>=bd&&n.gap<=yd&&(o.gap=n.gap),n.speed!==void 0&&n.speed>=Cn&&n.speed<=Tn&&(o.speed=n.speed),n.zoom!==void 0&&n.zoom>=Cn&&n.zoom<=Tn&&(o.zoom=n.zoom),n.breakFirst===!0&&(o.breakFirst=!0),Object.keys(o).length?o:void 0):o}const Ps=Se({__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=X(!1),i=re(()=>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)=>{const u=$s,f=uo,h=Es,S=Ts,w=Cs,b=Is,A=ks;return D(),q(xe,null,[Q(f,{title:"Reader settings (S)",disabled:a.disabled,onClick:c[0]||(c[0]=()=>r.value=!0)},{default:ne(()=>[Q(u)]),_:1},8,["disabled"]),Q(A,{modelValue:r.value,"onUpdate:modelValue":c[5]||(c[5]=P=>r.value=P),name:i.value},{actions:ne(()=>[Q(f,{transparent:"",onClick:l},{default:ne(()=>[Q(h)]),_:1})]),default:ne(()=>[Q(w,{label:"Style"},{default:ne(()=>[Q(S,{"model-value":a.readerStyle,items:a.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":c[1]||(c[1]=P=>o("update:reader-style",P))},null,8,["model-value","items"])]),_:1}),Q(w,{label:"Direction"},{default:ne(()=>[Q(S,{"model-value":a.direction,items:a.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":c[2]||(c[2]=P=>o("update:direction",P))},null,8,["model-value","items"])]),_:1}),Q(w,{label:"Gap"},{default:ne(()=>[Q(S,{"model-value":a.gap,items:["None","XS","SM","M","L","XL"],"onUpdate:modelValue":c[3]||(c[3]=P=>o("update:gap",P))},null,8,["model-value"])]),_:1}),Q(w,{label:"Speed"},{default:ne(()=>[Q(b,{"model-value":a.speed,min:Z(gd),max:Z(md),step:Z(vd),suffix:"x","onUpdate:modelValue":c[4]||(c[4]=P=>o("update:speed",P))},{suffix:ne(()=>[Mt(Ge(a.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),Q(w,{label:"Zoom"},{default:ne(()=>[Q(b,{"model-value":Math.ceil(a.zoom*100),min:Z(Cn)*100,max:Z(Tn)*100,step:Z(_d)*100,"onUpdate:modelValue":s},{suffix:ne(()=>[Mt(Ge(Math.ceil(a.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64)}}}),Sd=Object.freeze(Object.defineProperty({__proto__:null,default:Ps},Symbol.toStringTag,{value:"Module"})),kd={},Id={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Cd=[U("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function Td(e,t){return D(),q("svg",Id,Cd)}const Ms=he(kd,[["render",Td]]),Ed=Object.freeze(Object.defineProperty({__proto__:null,default:Ms},Symbol.toStringTag,{value:"Module"})),$d={},Pd={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Md=[U("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function Od(e,t){return D(),q("svg",Pd,Md)}const Os=he($d,[["render",Od]]),Ld=Object.freeze(Object.defineProperty({__proto__:null,default:Os},Symbol.toStringTag,{value:"Module"})),Ad={},zd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},jd=[U("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 Dd(e,t){return D(),q("svg",zd,jd)}const Ls=he(Ad,[["render",Dd]]),Rd=Object.freeze(Object.defineProperty({__proto__:null,default:Ls},Symbol.toStringTag,{value:"Module"})),Bd={},Vd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Nd=[U("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 Fd(e,t){return D(),q("svg",Vd,Nd)}const As=he(Bd,[["render",Fd]]),Hd=Object.freeze(Object.defineProperty({__proto__:null,default:As},Symbol.toStringTag,{value:"Module"})),Wd={},Kd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},qd=[U("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function Ud(e,t){return D(),q("svg",Kd,qd)}const zs=he(Wd,[["render",Ud]]),Yd=Object.freeze(Object.defineProperty({__proto__:null,default:zs},Symbol.toStringTag,{value:"Module"})),Xd=["aria-hidden"],Zd=["onClick"],Gd={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"},Qd={class:"whitespace-nowrap"},br=Se({__name:"ButtonDropdown",props:$t({label:{},title:{},items:{},disabled:{type:Boolean}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:$t(["select"],["update:modelValue"]),setup(e,{emit:t}){const n=e,o=t,r=rn(e,"modelValue"),i=X(null),s=X(!1),l=X(null),a=X(!1),c=X(!1),u=X(!1);fo({onKeyDown:b});const f=_r();function h(){if(!n.items.length){s.value=!1;return}s.value=!s.value,f(s.value),s.value?(S(),mt(()=>setTimeout(()=>{var m,x;(x=(m=l.value)==null?void 0:m.children[r.value])==null||x.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),P(i.value)):setTimeout(K,250)}function S(){const m=i.value;if(m){const x=m.getBoundingClientRect(),v=x.x+x.width/2;a.value=x.y>window.innerHeight/2,c.value=v<window.innerWidth/3,u.value=v>window.innerWidth/3*2}}function w(m,x){m!=r.value&&(r.value=m,o("select",m,x)),h()}function b(m){s.value&&m.key==="Escape"&&(h(),m.preventDefault())}let A=[];function P(m){const x=window.getComputedStyle(m).zIndex,v=m.style.zIndex;(!x||!(+x>0))&&((!m.parentElement||m.parentElement.childElementCount>1)&&(m.style.zIndex="1",A.push({el:m,zIndex:v})),m.parentElement&&P(m.parentElement))}function K(){A.forEach(({el:m,zIndex:x})=>{m.style.zIndex=x??""}),A=[]}let y=!1;function R(){y||(y=!0,f(!0,{desktopOnly:!0}))}function k(){y&&(y=!1,f(!1,{desktopOnly:!0}))}return(m,x)=>{const v=zs;return D(),q("div",{ref_key:"root",ref:i,class:"select-none relative inline-flex"},[s.value?(D(),q("div",{key:0,class:"fixed-screen bg-transparent",onClick:h})):$e("",!0),m.items.length?(D(),me(sn,{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:ne(()=>[s.value?(D(),q("ul",{key:0,ref_key:"list",ref:l,"aria-hidden":!s.value,class:Ce(["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":a.value,"origin-top top-full translate-y-1.5":!a.value,"left-1/2 -ml-20 text-center":!c.value&&!u.value,"right-0 text-right":u.value}]),onWheelPassive:x[0]||(x[0]=nt(()=>{},["stop"]))},[(D(!0),q(xe,null,vn(m.items,(T,L)=>vt((D(),q("li",{key:L,tabindex:"-1",class:Ce(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":L===r.value}]),onClick:G=>w(L,G)},[U("div",{class:Ce(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":L>0}])},[we(m.$slots,"item",{item:T},()=>[Mt(Ge(T),1)])],2)],10,Zd)),[[Z(an),30]])),128))],42,Xd)):$e("",!0)]),_:3})):$e("",!0),vt((D(),q("button",so({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":m.disabled}]},m.title?{title:m.title}:{},{onClick:nt(h,["stop"]),onMouseenter:R,onMouseleave:k}),[U("div",Gd,[U("span",Qd,Ge(m.label),1),m.items.length?(D(),q("span",{key:0,class:Ce(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":a.value}]),"aria-hidden":"true"},[Q(v)],2)):$e("",!0)])],16)),[[Z(an),30]])],512)}}}),Jd=Object.freeze(Object.defineProperty({__proto__:null,default:br},Symbol.toStringTag,{value:"Module"})),js=Se({__name:"PageNav",props:$t({disabled:{type:Boolean},pages:{},totalImgs:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=rn(e,"modelValue"),o=re(()=>t.pages.map(a=>a.map(({index:c})=>`${c+1}`).join("-"))),r=re(()=>{const a=n.value,c=t.pages.findIndex(u=>u.some(({index:f})=>f===a));return c===-1?t.pages.length-1:c}),i=re(()=>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)=>{const u=br;return D(),me(u,{"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"])}}}),ef=Object.freeze(Object.defineProperty({__proto__:null,default:js},Symbol.toStringTag,{value:"Module"})),tf={},nf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},of=[U("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function rf(e,t){return D(),q("svg",nf,of)}const Ds=he(tf,[["render",rf]]),sf=Object.freeze(Object.defineProperty({__proto__:null,default:Ds},Symbol.toStringTag,{value:"Module"})),lf={},af={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},cf=[U("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function uf(e,t){return D(),q("svg",af,cf)}const Rs=he(lf,[["render",uf]]),df=Object.freeze(Object.defineProperty({__proto__:null,default:Rs},Symbol.toStringTag,{value:"Module"})),ff={},pf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},hf=[U("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 gf(e,t){return D(),q("svg",pf,hf)}const Bs=he(ff,[["render",gf]]),mf=Object.freeze(Object.defineProperty({__proto__:null,default:Bs},Symbol.toStringTag,{value:"Module"})),vf={},_f={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},bf=[U("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 D(),q("svg",_f,bf)}const Vs=he(vf,[["render",yf]]),wf=Object.freeze(Object.defineProperty({__proto__:null,default:Vs},Symbol.toStringTag,{value:"Module"}));var Ns;const yr=typeof window<"u",xf=e=>typeof e=="string",jt=()=>{};yr&&((Ns=window==null?void 0:window.navigator)!=null&&Ns.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function po(e){return typeof e=="function"?e():Z(e)}function Fs(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 Sf(e,t={}){let n,o,r=jt;const i=l=>{clearTimeout(l),r(),r=jt};return l=>{const a=po(e),c=po(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 kf(e,t=!0,n=!0,o=!1){let r=0,i,s=!0,l=jt,a;const c=()=>{i&&(clearTimeout(i),i=void 0,l(),l=jt)};return f=>{const h=po(e),S=Date.now()-r,w=()=>a=f();if(c(),h<=0)return r=Date.now(),w();if(S>h&&(n||!s))r=Date.now(),w();else if(t)return new Promise((b,A)=>{l=o?A:b,i=setTimeout(()=>{r=Date.now(),s=!0,b(w()),c()},h-S)});return!n&&!i&&(i=setTimeout(()=>s=!0,h)),s=!1,a}}function If(e){return e}function wr(e){return zr()?($l(e),!0):!1}function Be(e,t=200,n={}){return Fs(Sf(t,n),e)}function Hs(e,t=200,n=!1,o=!0,r=!1){return Fs(kf(t,n,o,r),e)}function Ws(e,t=!0){sr()?et(e):t?e():mt(e)}function Gt(e){var t;const n=po(e);return(t=n==null?void 0:n.$el)!=null?t:n}const En=yr?window:void 0,Cf=yr?window.document:void 0;function Dt(...e){let t,n,o,r;if(xf(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=En):[t,n,o,r]=e,!t)return jt;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(()=>Gt(t),u=>{s(),u&&i.push(...n.flatMap(f=>o.map(h=>l(u,f,h))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return wr(c),c}function Ks(e,t=!1){const n=X(),o=()=>n.value=!!e();return o(),Ws(o,t),n}const qs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Us="__vueuse_ssr_handlers__";qs[Us]=qs[Us]||{};function Ys({document:e=Cf}={}){if(!e)return X("visible");const t=X(e.visibilityState);return Dt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var Xs=Object.getOwnPropertySymbols,Tf=Object.prototype.hasOwnProperty,Ef=Object.prototype.propertyIsEnumerable,$f=(e,t)=>{var n={};for(var o in e)Tf.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&&Ef.call(e,o)&&(n[o]=e[o]);return n};function Pf(e,t,n={}){const o=n,{window:r=En}=o,i=$f(o,["window"]);let s;const l=Ks(()=>r&&"ResizeObserver"in r),a=()=>{s&&(s.disconnect(),s=void 0)},c=pe(()=>Gt(e),f=>{a(),l.value&&r&&f&&(s=new ResizeObserver(t),s.observe(f,i))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return wr(u),{isSupported:l,stop:u}}function xr(e,t={width:0,height:0},n={}){const{window:o=En,box:r="content-box"}=n,i=re(()=>{var a,c;return(c=(a=Gt(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),s=X(t.width),l=X(t.height);return Pf(e,([a])=>{const c=r==="border-box"?a.borderBoxSize:r==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&i.value){const u=Gt(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(()=>Gt(e),a=>{s.value=a?t.width:0,l.value=a?t.height:0}),{width:s,height:l}}function Sr(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:i=.1,window:s=En}=n,l=Ks(()=>s&&"IntersectionObserver"in s);let a=jt;const c=l.value?pe(()=>({el:Gt(e),root:Gt(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=jt}},{immediate:!0,flush:"post"}):jt,u=()=>{a(),c()};return wr(u),{isSupported:l,stop:u}}var Zs;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Zs||(Zs={}));var Mf=Object.defineProperty,Gs=Object.getOwnPropertySymbols,Of=Object.prototype.hasOwnProperty,Lf=Object.prototype.propertyIsEnumerable,Qs=(e,t,n)=>t in e?Mf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Af=(e,t)=>{for(var n in t||(t={}))Of.call(t,n)&&Qs(e,n,t[n]);if(Gs)for(var n of Gs(t))Lf.call(t,n)&&Qs(e,n,t[n]);return e};Af({linear:If},{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 zf(e={}){const{window:t=En,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:r=!0,includeScrollbar:i=!0}=e,s=X(n),l=X(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(),Ws(a),Dt("resize",a,{passive:!0}),r&&Dt("orientationchange",a,{passive:!0}),{width:s,height:l}}const Js=he(Se({__name:"ReaderTour",emits:["hide"],setup(e,{emit:t}){const n=t,o=X(null),r=X(0),i=X([]),s=re(()=>i.value[r.value]),l=Hs(a,500);et(()=>{const f=xr(o),h=Be(()=>c({width:f.width.value,height:f.height.value}),50);h(),pe(f.width,h),pe(f.height,h)});function a(){r.value>=i.value.length-1?n("hide"):r.value++}function c(f){const h=u();i.value=h.map(({rect:S,text:w})=>{const b=S.top<f.height-S.bottom,A=S.left<f.width-S.right;return{text:w,style:{left:`${S.left}px`,top:`${S.top}px`,width:`${S.width}px`,height:`${S.height}px`},textStyle:{left:A?`${S.left-12}px`:void 0,right:A?void 0:`${f.width-S.left}px`,top:b?`${S.bottom+12}px`:`${S.top+20}px`,textAlign:b?void 0:"right",transform:b?void 0:"translateY(-50%)"}}}),r.value>=i.value.length&&(r.value=i.value.length-1)}function u(){var S;const f=(S=o.value)==null?void 0:S.parentElement;if(!f)return[];const h=[];return f.querySelectorAll("[data-tour]").forEach(w=>{var P;const b=(P=w.getAttribute("data-tour"))==null?void 0:P.trim();if(!(b!=null&&b.length))return;const A=w.getBoundingClientRect();h.push({rect:A,text:b})}),h}return(f,h)=>{var S,w;return D(),q(xe,null,[U("div",{class:Ce(["fixed-screen bg-black bg-opacity-50 duration-500",{"opacity-0":!s.value,"opacity-100":!!s.value}])},null,2),U("div",{ref_key:"root",ref:o,class:"tour",onClick:h[0]||(h[0]=nt((...b)=>Z(l)&&Z(l)(...b),["stop"]))},[s.value?(D(),q("div",{key:r.value,class:"tour__target",style:Le(s.value.style)},null,4)):$e("",!0),(D(),q("div",{key:r.value,class:"tour__text",style:Le((S=s.value)==null?void 0:S.textStyle)},Ge(((w=s.value)==null?void 0:w.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}}
24
+ `]]]),jf=Object.freeze(Object.defineProperty({__proto__:null,default:Js},Symbol.toStringTag,{value:"Module"})),Df=U("div",{class:"fixed-screen bg-black bg-opacity-90"},null,-1),el=Se({__name:"HelpScreen",props:{touchDevice:{type:Boolean}},emits:["hide"],setup(e,{emit:t}){const n=e,o=t,r=X(null),i=X([]);et(async()=>{const c=xr(r),u=Be(()=>{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,w=0;const b=50,A=25;c.forEach(k=>{var L;const m=(L=k.getAttribute("title"))==null?void 0:L.trim(),x=k.getBoundingClientRect();if(!m||!x.height||!x.width)return;const v=Math.ceil((x.top-10)/b),T=Math.ceil((x.left-10)/b);h.push({isTour:!1,title:m,rect:x,fromX:T,toX:Math.max(T+1,Math.ceil((x.right+10)/b)),fromY:v,toY:Math.max(v+1,Math.ceil((x.bottom+10)/b))})}),h.forEach(k=>{for(let m=k.fromY;m<k.toY;m++){f[m]??(f[m]=[]);for(let x=k.fromX;x<k.toX;x++)f[m][x]=k;k.toY>S+1&&(S=k.toY-1),k.toX>w+1&&(w=k.toX-1)}});let P=w/2;h.forEach(k=>{k.isAlignRight=k.fromX>P});const K=(k,m)=>{f[m]??(f[m]=[]);const x=m>=k.toY;if(k.isTour)for(let v=k.fromX;v<k.toX;v++)delete f[k.fromY][v],k.fromY=m,k.toY=m+(x?1:-1),f[m][v]=k;else{const v=k.isAlignRight?k.fromX-3:k.fromX,T=v+3;k.helpItem={fromX:v,toX:T,fromY:m,toY:m+1,isTour:!0,isAlignRight:k.isAlignRight};for(let L=v;L<T;L++)f[m][L]=k.helpItem}},y=(k,m)=>{if(m>S||m<0)return!1;const x=m>=k.toY,v=f[m];if(!v)return K(k,m),!0;const T=v[k.fromX];if(T&&!T.isTour)return!1;if(T&&T.isTour)return y(T,x?m+1:m-1)?(K(k,m),!0):!1;if(!T){const L=k.isAlignRight?-1:1;return v[k.fromX+L]||v[k.fromX+L*2]?y(k,x?m+1:m-1):(K(k,m),!0)}return!1};h.forEach(k=>{if(!y(k,k.toY)){if(k.isAlignRight){const m=f[k.fromY]??[];if(!m.slice(k.fromX-3,k.fromX).filter(Boolean).length){const v=k.fromX-3,T=k.fromX;k.helpItem={isTour:!0,isAlignRight:!0,fromX:v,toX:T,fromY:k.fromY,toY:k.toY};for(let L=k.fromX-3;L<k.fromX;L++)m[L]=k.helpItem;return}}y(k,k.fromY-1)}});const R=[];return h.forEach(k=>{const{title:m,helpItem:x,rect:v,isAlignRight:T,fromX:L,fromY:G,toY:N}=k;if(!m||!x||!v)return;const ie=x.fromY>=N,le=x.toY<=G;R.push({title:a(m),style:{top:ie?`${v.bottom+(x.fromY-N)*b+A}px`:le?void 0:`${v.top+8}px`,bottom:le?`${u.height-v.top+(x.toY-G)*b+A}px`:void 0,left:T?void 0:`${v.left}px`,right:T?ie?`${u.width-v.right}px`:`${u.width-v.right+v.width+A}px`:void 0},arrowStyle:{width:le||ie?"2px":`${Math.abs(x.toX-L)*b+A-5}px`,height:le||ie?`${(ie?x.fromY-N:G-x.toY)*b+A}px`:"2px",top:ie?`${v.bottom}px`:le?void 0:`${v.top+20}px`,bottom:le?`${u.height-v.top}px`:void 0,left:T?void 0:`${v.left+v.width/2}px`,right:T?ie?`${u.width-v.right+v.width/2}px`:`${u.width-v.right+v.width}px`:void 0}})}),R}function a(c){return n.touchDevice?c.split("(")[0].trim():c}return(c,u)=>(D(),q(xe,null,[Df,U("div",{ref_key:"root",ref:r,class:"fixed-screen z-20 overscroll-contain select-none",onClick:u[0]||(u[0]=nt(f=>o("hide"),["stop"]))},[(D(!0),q(xe,null,vn(i.value,f=>(D(),q(xe,{key:f.title},[U("div",{class:"absolute",style:Le(f.style)},Ge(f.title),5),U("div",{class:"absolute bg-stone-300 rounded-lg",style:Le(f.arrowStyle)},null,4)],64))),128))],512)],64))}}),Rf=Object.freeze(Object.defineProperty({__proto__:null,default:el},Symbol.toStringTag,{value:"Module"})),tl=he(Se({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=X(0);return pe(()=>t.playing,()=>{n.value=Date.now()}),(o,r)=>{const i=mr,s=vr;return n.value?(D(),q("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?(D(),me(i,{key:0})):(D(),me(s,{key:1}))])):$e("",!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)}}
25
+ `]]]),Bf=Object.freeze(Object.defineProperty({__proto__:null,default:tl},Symbol.toStringTag,{value:"Module"})),Vf={},Nf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Ff=[U("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 Hf(e,t){return D(),q("svg",Nf,Ff)}const nl=he(Vf,[["render",Hf]]),Wf=Object.freeze(Object.defineProperty({__proto__:null,default:nl},Symbol.toStringTag,{value:"Module"})),ol=Se({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=sessionStorage.getItem("tk:dir"),o=X(typeof n!="string"||+n!==t.direction),r=Be(()=>o.value=!1,1250);pe(()=>t.direction,()=>{i(),o.value=!0,r()}),et(()=>{i(),r();let s;const l=Ys();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)=>{const a=nl;return D(),me(sn,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ne(()=>[o.value?(D(),q("div",{key:0,class:Ce(["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===Z(dt).vertical,"rotate-180":s.direction===Z(dt).rtl}])},[Q(a)],2)):$e("",!0)]),_:1})}}}),Kf=Object.freeze(Object.defineProperty({__proto__:null,default:ol},Symbol.toStringTag,{value:"Module"})),ho=[];function qf(e){ho.push(e),Et(()=>{const t=ho.indexOf(e);t!==-1&&ho.splice(t,1)})}function Uf(e,t){const{innerWidth:n,innerHeight:o}=window,r=e*n,i=t*o;ho.forEach(s=>s(r,i))}const rl=Se({__name:"ZoomWrapper",props:$t({pageIndex:{},playController:{},rtl:{type:Boolean},horizontal:{type:Boolean},longStrip:{type:Boolean},touchDevice:{type:Boolean},busy:{type:Boolean}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:$t(["dragEnd","click"],["update:modelValue"]),setup(e,{emit:t}){const n=e,o=t,r=rn(e,"modelValue"),i=X(null),s=X(Math.min(Tn,Math.max(Cn,r.value))),l=X(!1),a=X(!1),c=X(!1);pe(r,O=>le(O)),et(()=>{n.touchDevice?(Dt(i,"touchstart",P),!navigator.userAgent.toLowerCase().includes("android")&&qf(L)):(Dt(i,"mousedown",S),Dt(window,"wheel",k))}),fo({onKeyDown:O=>{var H;if(!n.busy&&((H=i.value)==null||H.focus(),!(O.key==="Meta"||O.key==="Control")&&(O.ctrlKey||O.metaKey)))switch(O.key){case"0":le(1);break;case"-":le(s.value-.2),O.preventDefault();break;case"=":case"+":le(s.value+.2),O.preventDefault();break}}});function u(O){a.value!==O&&(a.value=O,O?n.playController.pause():(o("dragEnd"),n.playController.resume()))}let f={x:0,y:0},h={x:0,y:0};function S(O){O.button===0&&(f={x:O.clientX,y:O.clientY},h={x:i.value.scrollLeft,y:i.value.scrollTop},window.addEventListener("mousemove",w),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",w),setTimeout(()=>u(!1))},{once:!0}),O.preventDefault(),O.stopPropagation())}function w(O){u(!0);const H=O.clientX-f.x,$=O.clientY-f.y,F=i.value;F.scrollLeft=h.x-H,F.scrollTop=h.y-$}let b=!1,A={distance:0,zoom:s.value,x:0,y:0};function P(O){n.busy||(b=O.touches.length===2,b&&(u(!0),O.stopPropagation(),O.preventDefault(),A={distance:m(O),zoom:s.value,x:(O.touches[0].clientX+O.touches[1].clientX)/2,y:(O.touches[0].clientY+O.touches[1].clientY)/2}),(b||n.playController.isPlaying.value&&n.longStrip)&&(window.addEventListener("touchmove",y),window.addEventListener("touchend",K,{once:!0})))}function K(){if(window.removeEventListener("touchmove",y),b){u(!1),b=!1;return}if(!a.value)return;const O=Be(()=>{u(!1),i.value.removeEventListener("scroll",$)},200),H=setTimeout(O,200);i.value.addEventListener("scroll",$);function $(){clearTimeout(H),O()}}function y(O){if(u(!0),b){O.stopPropagation(),O.preventDefault();const $=m(O)/A.distance;le(Math.ceil($*A.zoom*100)/100,A)}}const R=Be(()=>l.value=!1,100);function k(O){if(!n.busy){if(O.ctrlKey||O.metaKey){O.stopPropagation(),O.preventDefault();const H=Math.ceil((s.value+O.deltaY*-.01)*100)/100;le(H,{x:O.clientX,y:O.clientY});return}n.horizontal&&(l.value||(l.value=!0),R(),O.deltaY&&(i.value&&(i.value.scrollLeft+=O.deltaY*(n.rtl?-1:1)),O.stopPropagation()))}}function m(O){return Math.hypot(O.touches[0].clientX-O.touches[1].clientX,O.touches[0].clientY-O.touches[1].clientY)}let x=0,v;function T(O){if(!a.value){if(!n.touchDevice){o("click",O);return}x++,v&&clearTimeout(v),x===2&&L(O.clientX,O.clientY),v=setTimeout(()=>{!a.value&&x===1&&o("click",O),v=void 0,x=0},300)}}function L(O,H){if(!x)return;x=0;const $=s.value===1?2:1;le($,{x:O,y:H})}let G;const N=Be(()=>{c.value=!1,G=void 0},150);function ie(){if(!c.value){const O=i.value;if(!O)return;const H=O.querySelector(`[data-index="${n.pageIndex}"],[data-index2="${n.pageIndex}"]`)??void 0;H&&(G={el:H,rect:H.getBoundingClientRect()},c.value=!0)}if(G)return N(),G}async function le(O,H){const $=i.value,F=Math.min(Tn,Math.max(Cn,O));if(!$||s.value===F)return;const ae=ie();if(!ae)return;const fe=(H==null?void 0:H.x)??$.clientWidth/2,ke=(H==null?void 0:H.y)??$.clientHeight/2;s.value=F,r.value=F,await mt();const{el:_e,rect:Me}=ae,ot=_e.offsetWidth/Me.width,ft=_e.offsetHeight/Me.height;$.scrollLeft=_e.offsetLeft-Me.left*ot+fe*(ot-1),$.scrollTop=_e.offsetTop-Me.top*ft+ke*(ft-1)}return(O,H)=>(D(),q("div",{ref_key:"root",ref:i,tabindex:"0",class:Ce(["w-full h-full overflow-auto overscroll-contain scrollbar-none focus:outline-none touch-pan-x touch-pan-y",{"!snap-none":!O.longStrip&&(a.value||l.value||c.value),"cursor-grabbing":a.value,"overflow-hidden":c.value}]),style:Le({"font-size":`${s.value}px`}),onClick:nt(T,["stop"])},[we(O.$slots,"default")],6))}}),Yf=Object.freeze(Object.defineProperty({__proto__:null,default:rl},Symbol.toStringTag,{value:"Module"})),il=Se({__name:"IntersectionWrapper",emits:["visible"],setup(e,{emit:t}){const n=t,o=X(null),r=X(!1);return et(async()=>{await mt();let i=!1;Sr(o,s=>{r.value=s.some(l=>l.isIntersecting),r.value&&!i&&n("visible")})}),(i,s)=>(D(),q("div",{ref_key:"root",ref:o},[we(i.$slots,"default",{visible:r.value})],512))}}),Xf=Object.freeze(Object.defineProperty({__proto__:null,default:il},Symbol.toStringTag,{value:"Module"}));function Zf({pageIndex:e,isLongStrip:t}){let n=e.value,o=e.value+3;const r=X(n),i=X(o),s=Be(l,50);pe(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 Gf={key:0,class:"page--loading"},Qf=["src"],Jf=["src"],ep=["data-index"],sl=he(Se({__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}},emits:["update:zoom","update:playing","dragEnd","click","end","prev","next"],setup(e,{emit:t}){const n=e,o=t,r=X(null),i=re(()=>{var w;return(w=r.value)==null?void 0:w.$el}),s=X(null),l=xr(i),a=re(()=>{const{width:w,height:b}=l,A=n.isLongStrip?n.isVertical?w.value:b.value:Math.min(w.value,b.value);return Math.min(4,Math.max(1,Math.ceil(A/400-1)))*n.gap}),c=Zf({pageIndex:re(()=>n.pageIndex),isLongStrip:re(()=>n.isLongStrip)}),u=re(()=>{const{width:{value:w},height:{value:b}}=l;return n.pages.map(A=>{var T;const P=A.some(L=>{var G;return(G=L.img)==null?void 0:G.isLoading}),K=A.map(L=>L.index),y={isLoading:P,indexes:K};if(P||K[K.length-1]<c.min.value-1||K[0]>c.max.value+2)return y;const R=A.map(({img:L})=>L).filter(Boolean);if(!R.length||(y.srcs=R.map(({src:L})=>L),R.every(L=>L.hasError)))return y;const m=(T=R.find(L=>!L.hasError))==null?void 0:T.size,x=R.reduce((L,G)=>{var N;return L+(((N=G.size)==null?void 0:N.width)??m.width)},0),v=R.reduce((L,G)=>{var N;return L+(((N=G.size)==null?void 0:N.height)??m.height)},0)/R.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&w/x<b/v?(y.width=Math.min(w,x),y.height=v*y.width/x):y.height=Math.min(b,v),y})}),f=re(()=>{const w=n.isVertical?"width":"height";return u.value.map(b=>b[w]).filter(Boolean).sort((b,A)=>A-b)[0]});function h({indexes:w}){const b=w[w.length-1];b!==void 0&&c.onPageVisible(b)}function S(w){if(!n.isLongStrip){const b=n.isVertical?l.height.value:l.width.value,P=(n.isVertical?w.clientY:n.isRTL?b-w.clientX:w.clientX)/b;if(P<=.2&&n.pageIndex>0){o("prev");return}else if(P>=.8&&n.pageIndex<n.totalImgs){o("next");return}}o("click")}return(w,b)=>{const A=gr,P=il,K=rl;return D(),me(K,{ref_key:"root",ref:r,"model-value":w.zoom,"page-index":w.pageIndex,class:Ce(["reader-body",{"reader-body--long-strip":w.isLongStrip,"reader-body--pages":!w.isLongStrip,"reader-body--vertical":w.isVertical,"reader-body--rtl":w.isRTL,"reader-body--idle":w.idle,"reader-body--first":!w.isLongStrip&&w.pageIndex==0,"reader-body--last":!w.isLongStrip&&w.pageIndex==w.totalImgs}]),"play-controller":w.playController,horizontal:!w.isVertical,rtl:w.isRTL,"touch-device":w.touchDevice,busy:w.busy,"long-strip":w.isLongStrip,style:Le({"--gap":`${a.value}em`,"--space-top":(w.spaceTop||0)+"px","--screen-width-em":Z(l).width.value+"em","--screen-height-em":Z(l).height.value+"em",...w.isLongStrip?{"--max-size-em":f.value+"em"}:{}}),"onUpdate:modelValue":b[0]||(b[0]=y=>o("update:zoom",y)),onDragEnd:b[1]||(b[1]=()=>o("dragEnd")),onClick:S,onScroll:Z(c).onScroll},{default:ne(()=>[(D(!0),q(xe,null,vn(u.value,y=>(D(),me(P,so({key:w.direction+"_"+y.indexes[0],"data-index":y.indexes[0]},y.indexes.length>1?{"data-index2":y.indexes[1]}:{},{onVisible:()=>h(y)}),{default:ne(({visible:R})=>{var k;return[!((k=y.srcs)!=null&&k.length)||y.isLoading?(D(),q("div",Gf,[vt(Q(A,null,null,512),[[ss,R]])])):y.srcs.length==1?(D(),q("img",{key:1,src:y.srcs[0],style:Le({height:y.height!==void 0?y.height+"em":""})},null,12,Qf)):(D(),q("div",{key:2,class:Ce(["page--double",{"flex-row-reverse":w.isRTL}]),style:Le({width:y.width!==void 0?y.width+"em":"",height:y.height!==void 0?y.height+"em":""})},[(D(!0),q(xe,null,vn(y.srcs,m=>(D(),q("div",{key:m},[U("img",{src:m},null,8,Jf)]))),128))],6))]}),_:2},1040,["data-index","onVisible"]))),128)),U("div",{ref_key:"autoNextEl",ref:s,class:"last","data-index":w.totalImgs},[we(w.$slots,"end")],8,ep)]),_:3},8,["model-value","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>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)>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}
26
+ `]]]),tp=Object.freeze(Object.defineProperty({__proto__:null,default:sl},Symbol.toStringTag,{value:"Module"})),np={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},op={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},rp={key:0,class:"animate-auto-next absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50 animate-auto-next"},ll=he(Se({__name:"AutoNext",props:{hasNext:{type:Boolean}},emits:["next","hide"],setup(e,{emit:t}){const n=t,o=X(null),r=X(null),i=X(!1),s=X(!1),l=X(3);return et(()=>{let a;Sr(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))}),Sr(o,c=>{i.value=c.some(u=>u.isIntersecting)}),Et(()=>a&&clearInterval(a))}),(a,c)=>(D(),q("div",{ref_key:"root",ref:o,class:"h-full w-full flex justify-center items-center"},[vt(U("div",np,[a.hasNext?(D(),q("div",op,[s.value?(D(),q("div",rp)):$e("",!0),vt((D(),q("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]=nt(()=>n("next"),["stop"]))},[Mt(" Next in "+Ge(l.value),1)])),[[Z(an)]])])):$e("",!0),vt((D(),q("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]=nt(()=>n("hide"),["stop"]))},[Mt(" Hide ")])),[[Z(an)]])],512),[[ss,i.value||!a.hasNext]])],512))}}),[["styles",[`.animate-auto-next{animation:auto-next 5s linear forwards}@keyframes auto-next{0%{width:0}to{width:100%}}
27
+ `]]]),ip=Object.freeze(Object.defineProperty({__proto__:null,default:ll},Symbol.toStringTag,{value:"Module"}));function cn(e=0){return new Promise(t=>setTimeout(t,e))}function al(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 sp(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 al(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 lp(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 ap{constructor({isIOS:t,onDownloaded:n}){ve(this,"reactiveResults",un({}));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 al(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 cn(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 sp(o,n):n;if(!r)return;const i=await lp(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 cp=3;class up{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=Be(this.enqueue.bind(this),50)}dispose(){this.isMounted=!1}run(){this.isQueueStarted?this.debouncedEnqueue():(this.isQueueStarted=!0,this.enqueue())}get canEnqueue(){return this.concurrentCount<cp&&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 cn(),!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)}}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 kr(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=kr(e.parentElement,t);return t.set(e,i),i}function cl(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 dp(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?(cl(r),await cn(),!0):!1}class fp{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=Be(()=>{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(Be(()=>{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 dp(this.spec);let r=n?await $n(o?100:1,10,()=>document.querySelector(n)):void 0;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 pp(t,o):hp(t);this.loadRawImagesTs!==n||!t.isConnected||!this.isMounted||this.setRawImages(r)}}async function pp(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(kr(l,o)){if(l instanceof HTMLCanvasElement){if(ul(l))return new Qt(void 0,l,i)}else if(l instanceof HTMLImageElement&&dl(l)){const a=go(l);return new Qt(a,l,i)}}return new Qt(void 0,void 0,i)})}function hp(e){const t=[],n={},o=new Map;return Array.from(e.querySelectorAll("img,canvas")).forEach(i=>{if(kr(i,o)){if(i instanceof HTMLCanvasElement)ul(i)&&t.push(new Qt(void 0,i));else if(i instanceof HTMLImageElement&&dl(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 ul(e){return e.isConnected&&e.width>=200&&e.height>=200}function dl(e){if(!e.isConnected)return!1;const t=e.getBoundingClientRect();return!t.width||!t.height||t.width>=200&&t.height>=200}function fl(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 gp(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 fl(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=pl(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 pl(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 pl(e.parentElement,t);let i=0;return t.forEach((s,l)=>{i+=l===o?s-n:s}),{el:e,top:i}}function mp(e){var S,w,b,A;const t=X((S=e.raw.value)==null?void 0:S.isWebtoon),n=X((w=e.raw.value)==null?void 0:w.isWebtoon);let o=!1;const r=e.touchDevice&&!navigator.userAgent.toLowerCase().includes("android"),i=((A=(b=e.raw.value)==null?void 0:b.imgs)==null?void 0:A.filter(Boolean))??[];let s=e.isAutoShow!==!1?e.page.value:i.length?gp(i):void 0,l=i.map(P=>new Qt(P)),a;const c=new ap({isIOS:r,onDownloaded(P,K){let y=l.indexOf(P);if(y===-1){const R=P.computedSrc;y=l.findIndex(k=>k.computedSrc===R)}if(y!==-1){if(K&&!t.value&&y>Math.min(1,l.length-3)&&y<Math.max(l.length-2,3)){const R=K.height/K.width,k=R>2||R<.5,m=R>1.6||R<.6;t.value!==k&&(t.value=k),n.value!==m&&(n.value=m)}f()}}}),u=new up({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 fp({spec:e.spec,async onChanged(K){var y;if(l=K,!e.raw.value&&!K.length){e.onError("no_img");return}(y=e.spec)!=null&&y.imgDivs&&!P&&e.isAutoShow!==!1&&e.page.value&&(P=!0,mo({rawImages:K,page:e.page.value,skipIfVisible:!0}),await cn(1)),s===void 0&&e.isAutoShow===!1&&(s=fl(K)),u.run()}})}Yo(()=>{c.dispose(),u.dispose(),a==null||a.dispose(),o&&mo({rawImages:l,page:e.page.value})});function f(){var k,m,x,v;if(o||t.value===void 0||s===void 0)return;const P=Math.max(0,Math.min(s,l.length)),K=l.length-1,y=Math.min(Math.floor(P),K);if(y>=1){const T=(k=l[y])==null?void 0:k.computedSrc;if(!T){e.isAutoShow&&mo({rawImages:l,page:y});return}const L=(m=l[y-1])==null?void 0:m.computedSrc;if(L&&!((x=c.reactiveResults[L])!=null&&x.size)||!((v=c.reactiveResults[T])!=null&&v.size))return}if(o)return;o=!0,e.onReady(P);let R=!0;pe(()=>Math.floor(e.page.value),(T,L)=>{mo({rawImages:l,page:T,smooth:r,isScrollDown:L===void 0||T>L||l.length===1,skipIfVisible:R&&l.length>1}),R=!1,L??(L=-1),u.run()},{immediate:!0})}return{asyncImgs:re(()=>{Object.values(c.reactiveResults);const P=[];return l.forEach(K=>{const y=K.computedSrc,R=y?c.reactiveResults[y]:void 0;(y&&!(R!=null&&R.invalid)||K.parentEl)&&P.push(R)}),P}),isWebtoon:re(()=>t.value??!1),maybeWebtoon:re(()=>n.value??!1)}}function vp(e,t,n){return re(()=>t.value?hl(e.value,n.value):e.value.map((o,r)=>[{img:o,index:r}]))}function hl(e,t,n=0){if(e.length===0)return[];const o=e.slice(0,t?1:2),i=!t&&o.some(s=>(s==null?void 0:s.size)&&s.size.width>s.size.height)?[o[0]]:o;return[i.map((s,l)=>({img:s,index:n+l})),...hl(e.slice(i.length),!1,n+i.length)]}function _p(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=X(t&&e>0?Math.max(0,e):+(sessionStorage.getItem("tk:page")??"0")||e);return re({get:()=>o.value,set:r=>{o.value=r,sessionStorage.setItem("tk:page",r+"")}})}function bp(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const Ir=40;function yp({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,w=!1,b=!1,A;const P=Be(T,300),K=Hs(()=>{T(),P()},300),y=Be(m,50);async function R(){x(e.value,{smooth:!1,ensureLastImgVisibility:!0})}function k(){var $;w=!0,f(),L(),($=l.value)==null||$.addEventListener("scroll",K),setTimeout(()=>{const{width:F,height:ae}=zf();pe(F,()=>{r.value&&y()}),pe(ae,()=>{r.value||y()}),pe(n,m),pe(t,m)},300)}async function m(){if(!w||S)return;S=!0,await mt();const $=e.value;if(N()===$){S=!1;return}x($)}function x($,{smooth:F,ensureLastImgVisibility:ae=!1}={smooth:!1}){const fe=l.value;if(!fe)return;S=!0;const ke=async()=>{await mt(),S=!1,w||k()},_e=Math.floor($),Me=fe.querySelector(`[data-index="${_e}"],[data-index2="${_e}"]`);if(!Me){ke();return}c(async()=>{await v(fe,!o.value&&F,async()=>{await H(fe,Me,{smooth:F,page:$,ensureLastImgVisibility:ae})}),await ke()})}async function v($,F,ae){F&&$.style.setProperty("scroll-snap-type","none"),await ae(),F&&$.style.removeProperty("scroll-snap-type")}function T(){if(S)return;const $=N();$!==void 0&&$!==e.value&&u($),L()}function L(){b||!b&&G()&&(b=!0,h())}function G(){const $=l.value;if(!$)return!1;const F=o.value?a.value?3:!r.value&&$.clientWidth>$.clientHeight?2.25:2.5:2;return r.value?$.scrollHeight-$.scrollTop<$.clientHeight*F:$.scrollWidth-(i.value?-$.scrollLeft:$.scrollLeft)<$.clientWidth*F}function N(){const $=ie();return $?(+$.getAttribute("data-index")||0)+(o.value?le($):0):void 0}function ie(){var F;if(A??(A=l.value.getRootNode()),!A)return;const $=(F=A.elementsFromPoint)==null?void 0:F.call(A,r.value||!o.value?window.innerWidth/2:i.value?window.innerWidth-Ir:Ir,r.value&&o.value?s.value||Ir:window.innerHeight/2);if($)for(let ae=0;ae<$.length;ae++){const fe=$[ae];if(fe.hasAttribute("data-index"))return fe;if(fe===l.value)break}}function le($){const F=$.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 O=!1;async function H($,F,ae){if(O)return;const fe=F.getBoundingClientRect();if(!o.value){if(r.value){if(fe.top<=0&&fe.bottom>=$.clientHeight)return}else if(fe.left<=0&&fe.right>=$.clientWidth)return}O=!0;const ke=r.value?$.scrollTop:$.scrollLeft,_e=ae.page,Me=o.value?_e%1:0,ot=await $n(30,10,async()=>{await cn();let Ve;if(!(F.offsetHeight<10))return o.value?r.value?Ve=F.offsetTop+Me*F.offsetHeight-s.value:i.value?Ve=F.offsetLeft-$.clientWidth+F.offsetWidth-Me*F.offsetWidth:Ve=F.offsetLeft+Me*F.offsetWidth:r.value?Ve=F.offsetTop+(fe.top>0?0:fe.height-$.clientHeight):Ve=F.offsetLeft+(fe.left>0?0:fe.width-$.clientWidth),_e>.5&&Math.abs(Ve)<100?void 0:Ve})??0,ft=ae.ensureLastImgVisibility?r.value?Math.min(ot,$.scrollHeight-$.clientHeight*2):i.value?Math.max(ot,-($.scrollWidth-$.clientWidth*2)):Math.min(ot,$.scrollWidth-$.clientWidth*2):ot;if(!ae.smooth){r.value?$.scrollTop=ft:$.scrollLeft=ft,O=!1;return}const Ue=ft-ke,Ye=30;let rt=0;return new Promise(Ve=>{(function pt(){const Rt=wp(rt,ke,Ue,Ye);r.value?$.scrollTop=Rt:$.scrollLeft=Rt,rt++,rt<=Ye?requestAnimationFrame(pt):(Ve(),O=!1)})()})}return{init:R,goToPage:x}}function wp(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function xp({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,isLongStrip:i,speed:s}){const l=sessionStorage.getItem("tk:playing"),a=X(typeof l=="string"?l==="true":e),c=re({get:()=>a.value,set:v=>{a.value=v,sessionStorage.setItem("tk:playing",v?"true":"false")}}),u=X(!1);let f,h;const S=Be(m,100),w=Be(()=>{u.value=!0},t?2e3:1e3),b=()=>setTimeout(()=>{u.value=!1,w()},30);b(),t||Dt(window,"mousemove",b);const A=Ys();et(()=>{pe(A,v=>{c.value&&(v==="visible"?m():h==null||h())}),pe(s,()=>P()),pe(i,v=>{v||y()})}),Et(y);async function P(v){c.value&&(h==null||h()),v&&(await mt(),await v()),c.value&&S()}function K(){c.value?y():R()}function y(){c.value&&(c.value=!1,h==null||h(),b())}function R(){!c.value&&i.value&&(c.value=!0,m(),b())}function k(){h==null||h()}function m(){const v=n.value;if(!c.value||!v)return;const T=o.value?v.scrollHeight-v.clientHeight:v.scrollWidth-v.clientWidth,L=x();if(T<=L){y();return}h=()=>{f=Date.now(),h=void 0};const G=Date.now();f=G;const N=.05*s.value,ie=o.value?"scrollTop":"scrollLeft";let le=Date.now(),O=0;const H=()=>{if(f!==G)return;const $=Date.now(),F=$-le;le=$;const ae=N*F+O;ae>=1?(O=ae%1,v[ie]+=(ae-O)*(r.value?-1:1)):O=ae,setTimeout(H,1)};H()}function x(){const v=n.value;return o.value?v.scrollTop:r.value?-v.scrollLeft:v.scrollLeft}return{isPlaying:c,isIdle:u,toggle:K,play:R,pause:k,resume:m,stop:y,interfere:P,awake:b}}function Sp(e,t){var R,k,m;const{vol:n,inferVol:o,chap:r,title:i,slug:s,basePath:l}=e;let a=-1;const c=t&&!t.url?document.querySelectorAll(t.sel):void 0;function u(x,v){x.slug?Cr(l,x.slug,v):x.elIndex!==void 0&&c&&c[x.elIndex]&&cl(c[x.elIndex])}function f(x){const v=y[x];return v?T=>u(v,T):void 0}const h=(R=e.prev)==null?void 0:R.slug,S=(k=e.next)==null?void 0:k.slug;let w=h?x=>Cr(l,h,x):void 0,b=S?x=>Cr(l,S,x):void 0;const A=n??o,P=t==null?void 0:t.url,K=((m=i.chapters)==null?void 0:m.filter(x=>x.slug||!P&&x.elIndex!==void 0))??[],y=K.length>1?K:[];if(y.length){if(P&&(a=y.findIndex(x=>x.slug===e.slug)),a===-1&&(a=y.findIndex(x=>(x.vol??x.inferVol)===A&&x.chap===r)),P&&a===-1&&(a=y.findIndex(x=>x.slug&&s.startsWith(`${x.slug}-`)&&s.length-x.slug.length>3)),a!==-1)w??(w=f(a+1)),b??(b=f(a-1));else if(!h&&!S){const x=y.findIndex(v=>{const T=v.vol??v.inferVol;return A===void 0||T===void 0||A===T?v.chap<r:T<A});x!==-1?(w=f(x),b=f(x-1)):b=f(y.length-1)}}return{activeIndex:a,activeLabel:gl({vol:n,chap:r}),prev:w,next:b,chapters:y.map(x=>({label:gl(x),select:v=>u(x,v)}))}}function gl({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}function Cr(e,t,n){const o=!t||t.includes("//")||t.startsWith("/")?t:"/"+[...e.split("/"),...t.split("/")].filter(Boolean).join("/"),r=o.includes("//")?o:location.origin+o;n?window.open(r,"_blank","noopener"):location.href=r}const kp={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},ml=he(Se({inheritAttrs:!1,__name:"App",props:{immediate:{type:Boolean},raw:{},spec:{},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=X(!1),a=X(!1),c=Au({touchDevice:n.touchDevice}),u=_p(n.page,n.isAutoShow),f=re(()=>n.spaceTop??0),{asyncImgs:h,isWebtoon:S,maybeWebtoon:w}=mp({raw:re(()=>n.raw),spec:n.spec,page:u,touchDevice:n.touchDevice,isAutoShow:n.isAutoShow,spaceTop:f,async onReady(g){Me(g),l.value=!0},onError:()=>{o("error"),j()}}),{direction:b,style:A,isRTL:P,isDouble:K,isVertical:y,isLongStrip:R,gap:k,speed:m,zoom:x,breakFirst:v}=wd({titleName:re(()=>{var g;return(g=n.raw)==null?void 0:g.title.name}),isWebtoon:S,maybeWebtoon:w,defaultStyle:n.readerStyle,defaultDirection:n.direction}),T=vp(h,K,v),L=re(()=>u.value>=h.value.length),G=re(()=>{var g;return n.raw?Sp(n.raw,(g=n.spec)==null?void 0:g.chapter):void 0}),N=X(null),ie=X(null),le=X(!1),O=X(!1),H=xp({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:re(()=>{var g;return(g=N.value)==null?void 0:g.$el}),speed:m,isRTL:P,isVertical:y,isLongStrip:R}),$=re(()=>!n.touchDevice&&H.isIdle.value&&!c.value),F=re({get(){return x.value},set(g){H.interfere(()=>{x.value=g})}}),ae=yp({page:u,style:A,direction:b,isLongStrip:R,isVertical:y,isRTL:P,spaceTop:f,isWebtoon:S,scrollEl:re(()=>{var g;return(g=N.value)==null?void 0:g.$el}),interferePlayer:g=>H.interfere(g),onChangedPage:Me,onInitialized(){o("ready"),a.value=!0,n.touchDevice&&(i=ot())},onFinished:()=>o("finished")}),fe=re(()=>Math.floor(u.value)),ke=()=>H.interfere(()=>cn(100));Wu().addListener({onKeyDown:g=>{if(n.tourEnabled)return;const C=R.value&&y.value,Y=R.value&&!y.value,oe=!R.value&&y.value,de=!R.value&&!y.value;switch(g.key){case" ":g.preventDefault(),R.value?(J(!1),H.toggle()):I();break;case"ArrowUp":case"PageUp":C?ke():oe&&fe.value!==0&&(g.preventDefault(),_());break;case"ArrowDown":case"PageDown":C?ke():oe&&!L.value&&(g.preventDefault(),I());break;case"ArrowLeft":Y?ke():de?(g.preventDefault(),d()):y.value&&rt();break;case"ArrowRight":Y?ke():de?(g.preventDefault(),p()):y.value&&Ye();break}},onKeyUp:g=>{switch(g.key){case"f":V();break;case"t":z();break;case"h":J();break}}}),Dt("fullscreenchange",()=>{le.value=!!document.fullscreenElement}),pe(H.isPlaying,g=>{g||B(!1),o("playingChanged",g)}),pe(H.isIdle,g=>{H.isPlaying.value&&B(g)}),pe(c,g=>{!g&&H.isIdle.value?H.awake():g&&n.fullScreen&&B()});function Me(g){if(u.value===g)return;const C=h.value.length;if(g<0||g>=C+1)return;const Y=u.value;u.value=g;const oe=Math.floor(g*100)/100;oe!==s&&(s=oe,o("pageChanged",oe)),g>=C?(B(!1),H.stop()):g<.01?(B(!1),H.awake()):n.touchDevice&&!r&&(R.value?i!==void 0&&ot()-i>300&&B(!0):Math.abs(Y-g)===1&&B(!0))}function ot(){var C;const g=(C=N.value)==null?void 0:C.$el;return g?y.value?g.scrollTop:P.value?-g.scrollLeft:g.scrollLeft:0}function ft(){!n.touchDevice&&!R.value&&ae.goToPage(fe.value,{smooth:!0})}function Ue(){if(H.isPlaying.value){!n.fullScreen||!n.touchDevice?H.stop():H.awake();return}B()}function Ye(g=!1){var C,Y;(Y=(C=G.value)==null?void 0:C.next)==null||Y.call(C,g)}function rt(g=!1){var C,Y;(Y=(C=G.value)==null?void 0:C.prev)==null||Y.call(C,g)}function Ve(g,C){var Y,oe,de;(de=(oe=(Y=G.value)==null?void 0:Y.chapters)==null?void 0:oe[g])==null||de.select(bt(C))}function pt(g){P.value?Ye(bt(g)):rt(bt(g))}function Rt(g){P.value?rt(bt(g)):Ye(bt(g))}function bt(g){return!n.touchDevice&&(g.ctrlKey||g.metaKey)}function d(){P.value?I():_()}function p(){P.value?_():I()}function _(){var Y;const g=T.value,C=L.value?g[g.length-1][0].index:(Y=g[E()-1])==null?void 0:Y[0].index;C!==void 0?ae.goToPage(C):rt()}function I(){var g,C;if(L.value)Ye();else{const Y=((C=(g=T.value[E()+1])==null?void 0:g[0])==null?void 0:C.index)??h.value.length;ae.goToPage(Y)}}function E(){const g=fe.value,C=T.value.findIndex(Y=>Y.some(({index:oe})=>oe===g));return C===-1?T.value.length-1:C}function j(){bp(),o("dispose")}async function B(g){if(c.value&&!n.fullScreen)return;r=!0;const C=typeof g=="boolean"?g:!n.fullScreen;o("fullScreenChanged",C),C&&setTimeout(()=>{n.fullScreen&&c.value&&o("fullScreenChanged",!1)},100)}function z(){n.entryId?W():M()}function V(){var g,C;document.fullscreenElement?document.exitFullscreen():(C=(g=ie.value)==null?void 0:g.$el)==null||C.requestFullscreen()}function M(){H.stop(),o("addEntry")}function W(){H.stop(),o("openEntry",n.entryId)}function J(g){O.value!==g&&(O.value=!O.value,O.value&&H.isPlaying.value&&H.stop())}return(g,C)=>{const Y=ll,oe=sl,de=ol,Ie=tl,Xe=el,Bt=Js,vo=Vs,Ne=uo,_o=Bs,ze=br,it=Rs,bo=Ds,zp=js,jp=As,Dp=Ls,Rp=Os,Bp=Ms,Vp=Ps,Np=vr,Fp=mr,Hp=xs,Wp=ws,Kp=ys,qp=_s;return g.immediate||l.value?(D(),me(qp,{key:0,ref_key:"root",ref:ie,loading:!a.value,immediate:!!g.immediate,"full-screen":!!g.fullScreen,idle:$.value,"space-top":f.value,rtl:Z(P),onClick:C[11]||(C[11]=nt(()=>{},["stop"]))},ki({settings:ne(()=>{var yt;return[Q(Vp,{"reader-style":Z(A),"onUpdate:readerStyle":C[3]||(C[3]=wt=>Te(A)?A.value=wt:null),direction:Z(b),"onUpdate:direction":C[4]||(C[4]=wt=>Te(b)?b.value=wt:null),gap:Z(k),"onUpdate:gap":C[5]||(C[5]=wt=>Te(k)?k.value=wt:null),speed:Z(m),"onUpdate:speed":C[6]||(C[6]=wt=>Te(m)?m.value=wt:null),zoom:F.value,"onUpdate:zoom":C[7]||(C[7]=wt=>F.value=wt),name:(yt=g.raw)==null?void 0:yt.title.name,webtoon:Z(S),disabled:!l.value,onHelp:J},null,8,["reader-style","direction","gap","speed","zoom","name","webtoon","disabled"])]}),"reset-zoom":ne(()=>[Q(sn,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ne(()=>[Q(Kp,{zoom:F.value,onClick:C[10]||(C[10]=nt(()=>F.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:ne(()=>[U("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:Le({width:`${Z(u)/(Z(h).length-1)*100}%`})},null,4)]),default:ne(()=>[l.value?(D(),me(oe,{key:0,ref_key:"body",ref:N,zoom:F.value,"onUpdate:zoom":C[0]||(C[0]=yt=>F.value=yt),"page-index":fe.value,pages:Z(T),"total-imgs":Z(h).length,direction:Z(b),gap:Z(k),"is-long-strip":Z(R),isRTL:Z(P),"is-vertical":Z(y),"space-top":f.value,busy:Z(c),idle:$.value,"play-controller":Z(H),"touch-device":g.touchDevice,onVnodeMounted:Z(ae).init,onPrev:_,onNext:I,onClick:Ue,onDragEnd:ft,onWheelPassive:C[1]||(C[1]=()=>Z(H).interfere())},ki({_:2},[l.value&&Z(h).length?{name:"end",fn:ne(()=>{var yt;return[Q(Y,{"has-next":!!((yt=G.value)!=null&&yt.next),onNext:Ye,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","onVnodeMounted"])):$e("",!0),a.value&&!L.value&&!g.tourEnabled?(D(),me(de,{key:1,direction:Z(b)},null,8,["direction"])):$e("",!0),a.value&&!L.value?(D(),me(Ie,{key:2,playing:!!Z(H).isPlaying.value},null,8,["playing"])):$e("",!0),O.value?(D(),me(Xe,{key:3,"touch-device":g.touchDevice,onHide:J},null,8,["touch-device"])):$e("",!0),g.tourEnabled?(D(),me(Bt,{key:4,onHide:C[2]||(C[2]=()=>o("tourEnabledChanged",!1))})):$e("",!0)]),_:2},[g.raw?{name:"back",fn:ne(()=>[Q(Ne,{href:g.raw.title.url,title:"Back to manga"},{default:ne(()=>[Q(vo)]),_:1},8,["href"])]),key:"0"}:void 0,g.touchDevice?void 0:{name:"exit",fn:ne(()=>[Q(Ne,{title:"Hide reader","data-tour":"You have entered reader mode, press here to return to the original page",onClick:j},{default:ne(()=>[Q(_o)]),_:1})]),key:"1"},G.value?{name:"chapter-nav",fn:ne(()=>[Q(ze,{modelValue:G.value.activeIndex,label:G.value.activeLabel,title:"Select chapter",items:G.value.chapters,onSelect:Ve},{item:ne(({item:yt})=>[Mt(Ge(yt.label),1)]),_:1},8,["modelValue","label","items"]),G.value.next||G.value.prev?(D(),q("div",kp,[Q(Ne,{title:`${Z(P)?"Next":"Prev"} chapter (←)`,disabled:Z(P)?!G.value.next:!G.value.prev,class:"!rounded-r-none",onClick:pt},{default:ne(()=>[Q(it)]),_:1},8,["title","disabled"]),Q(Ne,{title:`${Z(P)?"Prev":"Next"} chapter (→)`,disabled:Z(P)?!G.value.prev:!G.value.next,class:"!rounded-l-none",onClick:Rt},{default:ne(()=>[Q(bo)]),_:1},8,["title","disabled"])])):$e("",!0)]),key:"2"}:void 0,Z(T).length?{name:"page-nav",fn:ne(()=>[Q(zp,{"model-value":fe.value,disabled:!a.value,pages:Z(T),"total-imgs":Z(h).length,"onUpdate:modelValue":Z(ae).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),key:"3"}:void 0,g.raw?{name:"entry",fn:ne(()=>[Q(Ne,{title:g.entryId?"View entry (T)":"Add to library (T)","data-tour":"Prress here to add to your collection",onClick:z},{default:ne(()=>[g.entryId?(D(),me(jp,{key:0})):(D(),me(Dp,{key:1}))]),_:1},8,["title"])]),key:"4"}:void 0,g.touchDevice?void 0:{name:"full-screen",fn:ne(()=>[Q(Ne,{title:`${le.value?"Exit":"Enter"} fullscreen (F)`,onClick:V},{default:ne(()=>[le.value?(D(),me(Rp,{key:0})):(D(),me(Bp,{key:1}))]),_:1},8,["title"])]),key:"5"},Z(R)?{name:"play",fn:ne(()=>[Q(Ne,{"data-tour":"Press here to play like a video",title:`${Z(H).isPlaying.value?"Pause":"Play"} (Space)`,disabled:!a.value,onClick:C[8]||(C[8]=()=>Z(H).toggle())},{default:ne(()=>[Z(H).isPlaying.value?(D(),me(Np,{key:0})):(D(),me(Fp,{key:1}))]),_:1},8,["title","disabled"])]),key:"6"}:void 0,Z(K)?{name:"break-first",fn:ne(()=>[Q(Ne,{title:"Separate 1st page","data-tour":"Press here to separate the first page from double-page mode",disabled:!a.value,onClick:C[9]||(C[9]=()=>v.value=!Z(v))},{default:ne(()=>[Z(v)?(D(),me(Hp,{key:0})):(D(),me(Wp,{key:1}))]),_:1},8,["disabled"])]),key:"7"}:void 0]),1032,["loading","immediate","full-screen","idle","space-top","rtl"])):$e("",!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-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
+ `]]]),Ip=Object.freeze(Object.defineProperty({__proto__:null,default:ml},Symbol.toStringTag,{value:"Module"})),Cp={},Tp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Ep=[U("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 $p(e,t){return D(),q("svg",Tp,Ep)}const Pp=Object.freeze(Object.defineProperty({__proto__:null,default:he(Cp,[["render",$p]])},Symbol.toStringTag,{value:"Module"})),Mp=`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;visibility:hidden!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}
29
+ `,Pn="gear-second",Tr={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,onPlayingChanged:void 0,onPageChanged:void 0,onOpenEntry:void 0,onAddEntry:void 0,onFinished:void 0},qe={promise:void 0,data:un({...Tr})};async function Op(e){return qe.promise?(qe.data.raw=e.raw,await qe.promise):(qe.promise=new Promise(t=>{let n=!1,o=!1,r;const i=!!e.spaceTop||!!e.isAutoShow&&!!e.page,s=()=>{n||(n=!0,r&&document.body.removeChild(r),document.documentElement.classList.remove(Pn),Object.assign(qe.data,Tr),qe.promise=void 0)};Object.assign(qe.data,Tr,e,{immediate:i,onReady(){i||(l(),setTimeout(()=>r.setAttribute("style","")))},onError(){var c,u;s(),o?((c=e.onDispose)==null||c.call(e),(u=e.onError)==null||u.call(e)):a()},onDispose:()=>{var c;s(),(c=e==null?void 0:e.onDispose)==null||c.call(e)},onFullScreenChanged:c=>{var u;qe.data.fullScreen=c,(u=e.onFullScreenChanged)==null||u.call(e,c)},onPageChanged:c=>{var u;qe.data.page=c,(u=e.onPageChanged)==null||u.call(e,c)},onTourEnabledChanged:c=>{qe.data.tourEnabled=c}}),Lp().then(()=>{if(n){a();return}r=document.createElement(Pn),document.documentElement.classList.add(Pn),i?(document.body.appendChild(r),setTimeout(l)):(r.setAttribute("style","background-color: transparent !important"),document.body.appendChild(r))});function l(){o||(o=!0,t({triggerDoubleTap:(c,u)=>Uf(c,u),updateArgs(c){Object.assign(qe.data,c)},dispose:s}))}function a(){o||t(void 0)}}),await qe.promise)}async function Lp(){if(window.customElements.get(Pn))return;const e=document.createElement("style");e.appendChild(document.createTextNode(Mp)),document.head.appendChild(e);const t=Rc({styles:[await Ap()],data:()=>({readerData:qe.data}),render(){return Qi(ml,this.readerData)}});window.customElements.define(Pn,t)}async function Ap(){const e=Object.assign({"./App.vue":Ip,"./components/AutoNext.vue":ip,"./components/BottomSheet.vue":Yu,"./components/ButtonDropdown.vue":Jd,"./components/ButtonIcon.vue":Du,"./components/ButtonReaderSettings.vue":Sd,"./components/ButtonResetZoom.vue":pu,"./components/DirectionToast.vue":Kf,"./components/HelpScreen.vue":Rf,"./components/InputPercentage.vue":Gu,"./components/InputSelect.vue":nd,"./components/IntersectionWrapper.vue":Xf,"./components/LoadingIndicator.vue":Gc,"./components/PageNav.vue":ef,"./components/PauseToast.vue":Bf,"./components/ReaderBody.vue":tp,"./components/ReaderLayout.vue":ru,"./components/ReaderTour.vue":jf,"./components/TableField.vue":ed,"./components/ZoomWrapper.vue":Yf,"./components/icons/IconBack.vue":wf,"./components/icons/IconBookmarkNew.vue":Rd,"./components/icons/IconBookmarked.vue":Hd,"./components/icons/IconChevronLeft.vue":df,"./components/icons/IconChevronRight.vue":sf,"./components/icons/IconClose.vue":Fu,"./components/icons/IconDouble.vue":_u,"./components/icons/IconDoubleSkip.vue":Su,"./components/icons/IconExclamationCircle.vue":Pp,"./components/icons/IconFullscreen.vue":Ed,"./components/icons/IconFullscreenExit.vue":Ld,"./components/icons/IconHelp.vue":ld,"./components/icons/IconNext.vue":Wf,"./components/icons/IconPause.vue":Lu,"./components/icons/IconPlay.vue":Eu,"./components/icons/IconReaderExit.vue":mf,"./components/icons/IconSettings.vue":fd,"./components/icons/IconTriangle.vue":Yd,"./components/icons/IconZoom.vue":cu}),t=[];for(const n in e){const o=e[n];t.push(o.default.styles)}return t.join("")}return Op});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gear-second",
3
3
  "author": "endyquang",
4
- "version": "1.6.0",
4
+ "version": "1.6.2",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Trkun manga reader",
7
7
  "main": "index.js",