gear-second 1.6.1 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +17 -17
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,29 +1,29 @@
1
- (function(We,se){typeof exports=="object"&&typeof module<"u"?module.exports=se():typeof define=="function"&&define.amd?define(se):(We=typeof globalThis<"u"?globalThis:We||self,We._gearSecond_=se())})(this,function(){"use strict";var Zp=Object.defineProperty;var Gp=(We,se,Ge)=>se in We?Zp(We,se,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):We[se]=Ge;var _e=(We,se,Ge)=>(Gp(We,typeof se!="symbol"?se+"":se,Ge),Ge);/**
1
+ (function(Ke,ie){typeof exports=="object"&&typeof module<"u"?module.exports=ie():typeof define=="function"&&define.amd?define(ie):(Ke=typeof globalThis<"u"?globalThis:Ke||self,Ke._gearSecond_=ie())})(this,function(){"use strict";var Zp=Object.defineProperty;var Gp=(Ke,ie,Qe)=>ie in Ke?Zp(Ke,ie,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):Ke[ie]=Qe;var _e=(Ke,ie,Qe)=>(Gp(Ke,typeof ie!="symbol"?ie+"":ie,Qe),Qe);/**
2
2
  * @vue/shared v3.4.15
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
- **/function We(e,t){const n=new Set(e.split(","));return t?o=>n.has(o.toLowerCase()):o=>n.has(o)}const se={},Ge=[],Ke=()=>{},_l=()=>!1,Mn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),wo=e=>e.startsWith("onUpdate:"),be=Object.assign,xo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},bl=Object.prototype.hasOwnProperty,ce=(e,t)=>bl.call(e,t),J=Array.isArray,Jt=e=>On(e)==="[object Map]",Er=e=>On(e)==="[object Set]",ee=e=>typeof e=="function",ye=e=>typeof e=="string",en=e=>typeof e=="symbol",me=e=>e!==null&&typeof e=="object",Pr=e=>(me(e)||ee(e))&&ee(e.then)&&ee(e.catch),Mr=Object.prototype.toString,On=e=>Mr.call(e),yl=e=>On(e).slice(8,-1),Or=e=>On(e)==="[object Object]",So=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ln=We(",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))},wl=/-(\w)/g,Re=An(e=>e.replace(wl,(t,n)=>n?n.toUpperCase():"")),xl=/\B([A-Z])/g,qe=An(e=>e.replace(xl,"-$1").toLowerCase()),zn=An(e=>e.charAt(0).toUpperCase()+e.slice(1)),ko=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})},Io=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Co=e=>{const t=ye(e)?Number(e):NaN;return isNaN(t)?e:t};let Lr;const To=()=>Lr||(Lr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ae(e){if(J(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=ye(o)?Cl(o):Ae(o);if(r)for(const i in r)t[i]=r[i]}return t}else if(ye(e)||me(e))return e}const Sl=/;(?![^(]*\))/g,kl=/:([^]+)/,Il=/\/\*[^]*?\*\//g;function Cl(e){const t={};return e.replace(Il,"").split(Sl).forEach(n=>{if(n){const o=n.split(kl);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Ie(e){let t="";if(ye(e))t=e;else if(J(e))for(let n=0;n<e.length;n++){const o=Ie(e[n]);o&&(t+=o+" ")}else if(me(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Tl=We("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Ar(e){return!!e||e===""}const Qe=e=>ye(e)?e:e==null?"":J(e)||me(e)&&(e.toString===Mr||!ee(e.toString))?JSON.stringify(e,zr,2):String(e),zr=(e,t)=>t&&t.__v_isRef?zr(e,t.value):Jt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r],i)=>(n[$o(o,i)+" =>"]=r,n),{})}:Er(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>$o(n))}:en(t)?$o(t):me(t)&&!J(t)&&!Or(t)?String(t):t,$o=(e,t="")=>{var n;return en(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
5
+ **/function Ke(e,t){const n=new Set(e.split(","));return t?o=>n.has(o.toLowerCase()):o=>n.has(o)}const ie={},Qe=[],qe=()=>{},_l=()=>!1,Mn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),wo=e=>e.startsWith("onUpdate:"),be=Object.assign,xo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},bl=Object.prototype.hasOwnProperty,ce=(e,t)=>bl.call(e,t),J=Array.isArray,Jt=e=>On(e)==="[object Map]",Er=e=>On(e)==="[object Set]",ee=e=>typeof e=="function",ye=e=>typeof e=="string",en=e=>typeof e=="symbol",me=e=>e!==null&&typeof e=="object",Pr=e=>(me(e)||ee(e))&&ee(e.then)&&ee(e.catch),Mr=Object.prototype.toString,On=e=>Mr.call(e),yl=e=>On(e).slice(8,-1),Or=e=>On(e)==="[object Object]",So=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ln=Ke(",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))},wl=/-(\w)/g,Re=An(e=>e.replace(wl,(t,n)=>n?n.toUpperCase():"")),xl=/\B([A-Z])/g,Ue=An(e=>e.replace(xl,"-$1").toLowerCase()),zn=An(e=>e.charAt(0).toUpperCase()+e.slice(1)),ko=An(e=>e?`on${zn(e)}`:""),at=(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})},Io=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Co=e=>{const t=ye(e)?Number(e):NaN;return isNaN(t)?e:t};let Lr;const To=()=>Lr||(Lr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ae(e){if(J(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=ye(o)?Cl(o):Ae(o);if(r)for(const s in r)t[s]=r[s]}return t}else if(ye(e)||me(e))return e}const Sl=/;(?![^(]*\))/g,kl=/:([^]+)/,Il=/\/\*[^]*?\*\//g;function Cl(e){const t={};return e.replace(Il,"").split(Sl).forEach(n=>{if(n){const o=n.split(kl);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Ie(e){let t="";if(ye(e))t=e;else if(J(e))for(let n=0;n<e.length;n++){const o=Ie(e[n]);o&&(t+=o+" ")}else if(me(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Tl=Ke("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Ar(e){return!!e||e===""}const Je=e=>ye(e)?e:e==null?"":J(e)||me(e)&&(e.toString===Mr||!ee(e.toString))?JSON.stringify(e,zr,2):String(e),zr=(e,t)=>t&&t.__v_isRef?zr(e,t.value):Jt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r],s)=>(n[$o(o,s)+" =>"]=r,n),{})}:Er(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>$o(n))}:en(t)?$o(t):me(t)&&!J(t)&&!Or(t)?String(t):t,$o=(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 Ue;class $l{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ue,!t&&Ue&&(this.index=(Ue.scopes||(Ue.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ue;try{return Ue=this,t()}finally{Ue=n}}}on(){Ue=this}off(){Ue=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=Ue){t&&t.active&&t.effects.push(e)}function jr(){return Ue}function Pl(e){Ue&&Ue.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){It();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Ml(n.computed),this._dirtyLevel>=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),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=kt,n=Vt;try{return kt=!0,Vt=this,this._runnings++,Dr(this),this.fn()}finally{Rr(this),this._runnings--,Vt=n,kt=t}}stop(){var t;this.active&&(Dr(this),Rr(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Ml(e){return e.value}function Dr(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++)Br(e.deps[t],e);e.deps.length=e._depsLength}}function Br(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let kt=!0,Po=0;const Vr=[];function It(){Vr.push(kt),kt=!1}function Ct(){const e=Vr.pop();kt=e===void 0?!0:e}function Mo(){Po++}function Oo(){for(Po--;!Po&&Lo.length;)Lo.shift()()}function Nr(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const o=e.deps[e._depsLength];o!==t?(o&&Br(o,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Lo=[];function Fr(e,t,n){Mo();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),Oo()}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,Lo.push(t.scheduler))}const Wr=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Ao=new WeakMap,Nt=Symbol(""),zo=Symbol("");function Be(e,t,n){if(kt&&Vt){let o=Ao.get(e);o||Ao.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=Wr(()=>o.delete(n))),Nr(Vt,r)}}function ht(e,t,n,o,r,i){const s=Ao.get(e);if(!s)return;let l=[];if(t==="clear")l=[...s.values()];else if(n==="length"&&J(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":J(e)?So(n)&&l.push(s.get("length")):(l.push(s.get(Nt)),Jt(e)&&l.push(s.get(zo)));break;case"delete":J(e)||(l.push(s.get(Nt)),Jt(e)&&l.push(s.get(zo)));break;case"set":Jt(e)&&l.push(s.get(Nt));break}Mo();for(const a of l)a&&Fr(a,2);Oo()}const Ol=We("__proto__,__v_isRef,__isVue"),Kr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(en)),qr=Ll();function Ll(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=le(this);for(let i=0,s=this.length;i<s;i++)Be(o,"get",i+"");const r=o[t](...n);return r===-1||r===!1?o[t](...n.map(le)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){It(),Mo();const o=le(this)[t].apply(this,n);return Oo(),Ct(),o}}),e}function Al(e){const t=le(this);return Be(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?Ul:ti:i?ei:Jr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const s=J(t);if(!r){if(s&&ce(qr,n))return Reflect.get(qr,n,o);if(n==="hasOwnProperty")return Al}const l=Reflect.get(t,n,o);return(en(n)?Kr.has(n):Ol(n))||(r||Be(t,"get",n),i)?l:Ce(l)?s&&So(n)?l:l.value:me(l)?r?ni(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(!Wn(o)&&!nn(o)&&(i=le(i),o=le(o)),!J(t)&&Ce(i)&&!Ce(o))return a?!1:(i.value=o,!0)}const s=J(t)&&So(n)?Number(n)<t.length:ce(t,n),l=Reflect.set(t,n,o,r);return t===le(r)&&(s?lt(o,i)&&ht(t,"set",n,o):ht(t,"add",n,o)),l}deleteProperty(t,n){const o=ce(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&o&&ht(t,"delete",n,void 0),r}has(t,n){const o=Reflect.has(t,n);return(!en(n)||!Kr.has(n))&&Be(t,"has",n),o}ownKeys(t){return Be(t,"iterate",J(t)?"length":Nt),Reflect.ownKeys(t)}}class zl extends Ur{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const jl=new Yr,Dl=new zl,Rl=new Yr(!0),jo=e=>e,Rn=e=>Reflect.getPrototypeOf(e);function Bn(e,t,n=!1,o=!1){e=e.__v_raw;const r=le(e),i=le(t);n||(lt(t,i)&&Be(r,"get",t),Be(r,"get",i));const{has:s}=Rn(r),l=o?jo:n?Bo: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=le(n),r=le(e);return t||(lt(e,r)&&Be(o,"has",e),Be(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&&Be(le(e),"iterate",Nt),Reflect.get(e,"size",e)}function Xr(e){e=le(e);const t=le(this);return Rn(t).has.call(t,e)||(t.add(e),ht(t,"add",e,e)),this}function Zr(e,t){t=le(t);const n=le(this),{has:o,get:r}=Rn(n);let i=o.call(n,e);i||(e=le(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?lt(t,s)&&ht(n,"set",e,t):ht(n,"add",e,t),this}function Gr(e){const t=le(this),{has:n,get:o}=Rn(t);let r=n.call(t,e);r||(e=le(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&ht(t,"delete",e,void 0),i}function Qr(){const e=le(this),t=e.size!==0,n=e.clear();return t&&ht(e,"clear",void 0,void 0),n}function Fn(e,t){return function(o,r){const i=this,s=i.__v_raw,l=le(s),a=t?jo:e?Bo:dn;return!e&&Be(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=le(r),s=Jt(i),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=r[e](...o),u=n?jo:t?Bo:dn;return!t&&Be(i,"iterate",a?zo: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 Tt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Bl(){const e={get(i){return Bn(this,i)},get size(){return Nn(this)},has:Vn,add:Xr,set:Zr,delete:Gr,clear:Qr,forEach:Fn(!1,!1)},t={get(i){return Bn(this,i,!1,!0)},get size(){return Nn(this)},has:Vn,add:Xr,set:Zr,delete:Gr,clear:Qr,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:Tt("add"),set:Tt("set"),delete:Tt("delete"),clear:Tt("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:Tt("add"),set:Tt("set"),delete:Tt("delete"),clear:Tt("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[Vl,Nl,Fl,Hl]=Bl();function Do(e,t){const n=t?e?Hl:Fl:e?Nl:Vl;return(o,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(ce(n,r)&&r in o?n:o,r,i)}const Wl={get:Do(!1,!1)},Kl={get:Do(!1,!0)},ql={get:Do(!0,!1)},Jr=new WeakMap,ei=new WeakMap,ti=new WeakMap,Ul=new WeakMap;function Yl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Xl(e){return e.__v_skip||!Object.isExtensible(e)?0:Yl(yl(e))}function un(e){return nn(e)?e:Ro(e,!1,jl,Wl,Jr)}function Zl(e){return Ro(e,!1,Rl,Kl,ei)}function ni(e){return Ro(e,!0,Dl,ql,ti)}function Ro(e,t,n,o,r){if(!me(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=Xl(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 oi(e){return tn(e)||nn(e)}function le(e){const t=e&&e.__v_raw;return t?le(t):e}function ri(e){return Dn(e,"__v_skip",!0),e}const dn=e=>me(e)?un(e):e,Bo=e=>me(e)?ni(e):e;class ii{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&&Hr(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=le(this);return(!t._cacheable||t.effect.dirty)&&lt(t._value,t._value=t.effect.run())&&fn(t,2),Vo(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 Gl(e,t,n=!1){let o,r;const i=ee(e);return i?(o=e,r=Ke):(o=e.get,r=e.set),new ii(o,r,i||!r,n)}function Vo(e){kt&&Vt&&(e=le(e),Nr(Vt,e.dep||(e.dep=Wr(()=>e.dep=void 0,e instanceof ii?e:void 0))))}function fn(e,t=2,n){e=le(e);const o=e.dep;o&&Fr(o,t)}function Ce(e){return!!(e&&e.__v_isRef===!0)}function Y(e){return Ql(e,!1)}function Ql(e,t){return Ce(e)?e:new Jl(e,t)}class Jl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:le(t),this._value=n?t:dn(t)}get value(){return Vo(this),this._value}set value(t){const n=this.__v_isShallow||Wn(t)||nn(t);t=n?t:le(t),lt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:dn(t),fn(this,2))}}function X(e){return Ce(e)?e.value:e}const ea={get:(e,t,n)=>X(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Ce(r)&&!Ce(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function si(e){return tn(e)?e:new Proxy(e,ea)}class ta{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:o}=t(()=>Vo(this),()=>fn(this));this._get=n,this._set=o}get value(){return this._get()}set value(t){this._set(t)}}function na(e){return new ta(e)}/**
9
+ **/let Ye;class $l{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ye,!t&&Ye&&(this.index=(Ye.scopes||(Ye.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ye;try{return Ye=this,t()}finally{Ye=n}}}on(){Ye=this}off(){Ye=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=Ye){t&&t.active&&t.effects.push(e)}function jr(){return Ye}function Pl(e){Ye&&Ye.cleanups.push(e)}let Bt;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){kt();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Ml(n.computed),this._dirtyLevel>=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),It()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=St,n=Bt;try{return St=!0,Bt=this,this._runnings++,Dr(this),this.fn()}finally{Rr(this),this._runnings--,Bt=n,St=t}}stop(){var t;this.active&&(Dr(this),Rr(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Ml(e){return e.value}function Dr(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++)Br(e.deps[t],e);e.deps.length=e._depsLength}}function Br(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let St=!0,Po=0;const Vr=[];function kt(){Vr.push(St),St=!1}function It(){const e=Vr.pop();St=e===void 0?!0:e}function Mo(){Po++}function Oo(){for(Po--;!Po&&Lo.length;)Lo.shift()()}function Nr(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const o=e.deps[e._depsLength];o!==t?(o&&Br(o,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Lo=[];function Fr(e,t,n){Mo();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),Oo()}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,Lo.push(t.scheduler))}const Wr=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Ao=new WeakMap,Vt=Symbol(""),zo=Symbol("");function Be(e,t,n){if(St&&Bt){let o=Ao.get(e);o||Ao.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=Wr(()=>o.delete(n))),Nr(Bt,r)}}function gt(e,t,n,o,r,s){const i=Ao.get(e);if(!i)return;let l=[];if(t==="clear")l=[...i.values()];else if(n==="length"&&J(e)){const a=Number(o);i.forEach((c,u)=>{(u==="length"||!en(u)&&u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":J(e)?So(n)&&l.push(i.get("length")):(l.push(i.get(Vt)),Jt(e)&&l.push(i.get(zo)));break;case"delete":J(e)||(l.push(i.get(Vt)),Jt(e)&&l.push(i.get(zo)));break;case"set":Jt(e)&&l.push(i.get(Vt));break}Mo();for(const a of l)a&&Fr(a,2);Oo()}const Ol=Ke("__proto__,__v_isRef,__isVue"),Kr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(en)),qr=Ll();function Ll(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=le(this);for(let s=0,i=this.length;s<i;s++)Be(o,"get",s+"");const r=o[t](...n);return r===-1||r===!1?o[t](...n.map(le)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){kt(),Mo();const o=le(this)[t].apply(this,n);return Oo(),It(),o}}),e}function Al(e){const t=le(this);return Be(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,s=this._shallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return s;if(n==="__v_raw")return o===(r?s?Ul:ts:s?es:Jr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const i=J(t);if(!r){if(i&&ce(qr,n))return Reflect.get(qr,n,o);if(n==="hasOwnProperty")return Al}const l=Reflect.get(t,n,o);return(en(n)?Kr.has(n):Ol(n))||(r||Be(t,"get",n),s)?l:Ce(l)?i&&So(n)?l:l.value:me(l)?r?ns(l):un(l):l}}class Yr extends Ur{constructor(t=!1){super(!1,t)}set(t,n,o,r){let s=t[n];if(!this._shallow){const a=nn(s);if(!Wn(o)&&!nn(o)&&(s=le(s),o=le(o)),!J(t)&&Ce(s)&&!Ce(o))return a?!1:(s.value=o,!0)}const i=J(t)&&So(n)?Number(n)<t.length:ce(t,n),l=Reflect.set(t,n,o,r);return t===le(r)&&(i?at(o,s)&&gt(t,"set",n,o):gt(t,"add",n,o)),l}deleteProperty(t,n){const o=ce(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&o&&gt(t,"delete",n,void 0),r}has(t,n){const o=Reflect.has(t,n);return(!en(n)||!Kr.has(n))&&Be(t,"has",n),o}ownKeys(t){return Be(t,"iterate",J(t)?"length":Vt),Reflect.ownKeys(t)}}class zl extends Ur{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const jl=new Yr,Dl=new zl,Rl=new Yr(!0),jo=e=>e,Rn=e=>Reflect.getPrototypeOf(e);function Bn(e,t,n=!1,o=!1){e=e.__v_raw;const r=le(e),s=le(t);n||(at(t,s)&&Be(r,"get",t),Be(r,"get",s));const{has:i}=Rn(r),l=o?jo:n?Bo:dn;if(i.call(r,t))return l(e.get(t));if(i.call(r,s))return l(e.get(s));e!==r&&e.get(t)}function Vn(e,t=!1){const n=this.__v_raw,o=le(n),r=le(e);return t||(at(e,r)&&Be(o,"has",e),Be(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&&Be(le(e),"iterate",Vt),Reflect.get(e,"size",e)}function Xr(e){e=le(e);const t=le(this);return Rn(t).has.call(t,e)||(t.add(e),gt(t,"add",e,e)),this}function Zr(e,t){t=le(t);const n=le(this),{has:o,get:r}=Rn(n);let s=o.call(n,e);s||(e=le(e),s=o.call(n,e));const i=r.call(n,e);return n.set(e,t),s?at(t,i)&&gt(n,"set",e,t):gt(n,"add",e,t),this}function Gr(e){const t=le(this),{has:n,get:o}=Rn(t);let r=n.call(t,e);r||(e=le(e),r=n.call(t,e)),o&&o.call(t,e);const s=t.delete(e);return r&&gt(t,"delete",e,void 0),s}function Qr(){const e=le(this),t=e.size!==0,n=e.clear();return t&&gt(e,"clear",void 0,void 0),n}function Fn(e,t){return function(o,r){const s=this,i=s.__v_raw,l=le(i),a=t?jo:e?Bo:dn;return!e&&Be(l,"iterate",Vt),i.forEach((c,u)=>o.call(r,a(c),a(u),s))}}function Hn(e,t,n){return function(...o){const r=this.__v_raw,s=le(r),i=Jt(s),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,c=r[e](...o),u=n?jo:t?Bo:dn;return!t&&Be(s,"iterate",a?zo: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 Ct(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Bl(){const e={get(s){return Bn(this,s)},get size(){return Nn(this)},has:Vn,add:Xr,set:Zr,delete:Gr,clear:Qr,forEach:Fn(!1,!1)},t={get(s){return Bn(this,s,!1,!0)},get size(){return Nn(this)},has:Vn,add:Xr,set:Zr,delete:Gr,clear:Qr,forEach:Fn(!1,!0)},n={get(s){return Bn(this,s,!0)},get size(){return Nn(this,!0)},has(s){return Vn.call(this,s,!0)},add:Ct("add"),set:Ct("set"),delete:Ct("delete"),clear:Ct("clear"),forEach:Fn(!0,!1)},o={get(s){return Bn(this,s,!0,!0)},get size(){return Nn(this,!0)},has(s){return Vn.call(this,s,!0)},add:Ct("add"),set:Ct("set"),delete:Ct("delete"),clear:Ct("clear"),forEach:Fn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=Hn(s,!1,!1),n[s]=Hn(s,!0,!1),t[s]=Hn(s,!1,!0),o[s]=Hn(s,!0,!0)}),[e,n,t,o]}const[Vl,Nl,Fl,Hl]=Bl();function Do(e,t){const n=t?e?Hl:Fl:e?Nl:Vl;return(o,r,s)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(ce(n,r)&&r in o?n:o,r,s)}const Wl={get:Do(!1,!1)},Kl={get:Do(!1,!0)},ql={get:Do(!0,!1)},Jr=new WeakMap,es=new WeakMap,ts=new WeakMap,Ul=new WeakMap;function Yl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Xl(e){return e.__v_skip||!Object.isExtensible(e)?0:Yl(yl(e))}function un(e){return nn(e)?e:Ro(e,!1,jl,Wl,Jr)}function Zl(e){return Ro(e,!1,Rl,Kl,es)}function ns(e){return Ro(e,!0,Dl,ql,ts)}function Ro(e,t,n,o,r){if(!me(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const i=Xl(e);if(i===0)return e;const l=new Proxy(e,i===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 os(e){return tn(e)||nn(e)}function le(e){const t=e&&e.__v_raw;return t?le(t):e}function rs(e){return Dn(e,"__v_skip",!0),e}const dn=e=>me(e)?un(e):e,Bo=e=>me(e)?ns(e):e;class ss{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&&Hr(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=le(this);return(!t._cacheable||t.effect.dirty)&&at(t._value,t._value=t.effect.run())&&fn(t,2),Vo(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 Gl(e,t,n=!1){let o,r;const s=ee(e);return s?(o=e,r=qe):(o=e.get,r=e.set),new ss(o,r,s||!r,n)}function Vo(e){St&&Bt&&(e=le(e),Nr(Bt,e.dep||(e.dep=Wr(()=>e.dep=void 0,e instanceof ss?e:void 0))))}function fn(e,t=2,n){e=le(e);const o=e.dep;o&&Fr(o,t)}function Ce(e){return!!(e&&e.__v_isRef===!0)}function Y(e){return Ql(e,!1)}function Ql(e,t){return Ce(e)?e:new Jl(e,t)}class Jl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:le(t),this._value=n?t:dn(t)}get value(){return Vo(this),this._value}set value(t){const n=this.__v_isShallow||Wn(t)||nn(t);t=n?t:le(t),at(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:dn(t),fn(this,2))}}function X(e){return Ce(e)?e.value:e}const ea={get:(e,t,n)=>X(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Ce(r)&&!Ce(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function is(e){return tn(e)?e:new Proxy(e,ea)}class ta{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:o}=t(()=>Vo(this),()=>fn(this));this._get=n,this._set=o}get value(){return this._get()}set value(t){this._set(t)}}function na(e){return new ta(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 Jp(e,...t){It();const n=pn.length?pn[pn.length-1].component:null,o=n&&n.appContext.config.warnHandler,r=oa();if(o)gt(o,n,11,[e+t.join(""),n&&n.proxy,r.map(({vnode:i})=>`at <${Qi(n,i.type)}>`).join(`
14
- `),r]);else{const i=[`[Vue warn]: ${e}`,...t];r.length&&i.push(`
15
- `,...ra(r)),console.warn(...i)}Ct()}function oa(){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 ra(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[`
16
- `],...ia(n))}),t}function ia({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,r=` at <${Qi(e.component,e.type,o)}`,i=">"+n;return e.props?[r,...sa(e.props),i]:[r+i]}function sa(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...li(o,e[o]))}),n.length>3&&t.push(" ..."),t}function li(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}`]:Ce(t)?(t=li(e,le(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):ee(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=le(t),n?t:[`${e}=`,t])}function gt(e,t,n,o){let r;try{r=o?e(...o):e()}catch(i){Kn(i,t,n)}return r}function Je(e,t,n,o){if(ee(e)){const i=gt(e,t,n,o);return i&&Pr(i)&&i.catch(s=>{Kn(s,t,n)}),i}const r=[];for(let i=0;i<e.length;i++)r.push(Je(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}}la(e,n,r,o)}function la(e,t,n,o=!0){console.error(e)}let hn=!1,No=!1;const Oe=[];let at=0;const on=[];let $t=null,Ft=0;const ai=Promise.resolve();let Fo=null;function mt(e){const t=Fo||ai;return e?t.then(this?e.bind(this):e):t}function aa(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 Ho(e){(!Oe.length||!Oe.includes(e,hn&&e.allowRecurse?at+1:at))&&(e.id==null?Oe.push(e):Oe.splice(aa(e.id),0,e),ci())}function ci(){!hn&&!No&&(No=!0,Fo=ai.then(fi))}function ca(e){const t=Oe.indexOf(e);t>at&&Oe.splice(t,1)}function ua(e){J(e)?on.push(...e):(!$t||!$t.includes(e,e.allowRecurse?Ft+1:Ft))&&on.push(e),ci()}function ui(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 di(e){if(on.length){const t=[...new Set(on)].sort((n,o)=>gn(n)-gn(o));if(on.length=0,$t){$t.push(...t);return}for($t=t,Ft=0;Ft<$t.length;Ft++)$t[Ft]();$t=null,Ft=0}}const gn=e=>e.id==null?1/0:e.id,da=(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 fi(e){No=!1,hn=!0,Oe.sort(da);const t=Ke;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,di(),hn=!1,Fo=null,(Oe.length||on.length)&&fi()}}function fa(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(Io))}let l,a=o[l=ko(t)]||o[l=ko(Re(t))];!a&&i&&(a=o[l=ko(qe(t))]),a&&Je(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,Je(c,e,6,r)}}function pi(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(!ee(e)){const a=c=>{const u=pi(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?(me(e)&&o.set(e,null),null):(J(i)?i.forEach(a=>s[a]=null):be(s,i),me(e)&&o.set(e,s),s)}function qn(e,t){return!e||!Mn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ce(e,t[0].toLowerCase()+t.slice(1))||ce(e,qe(t))||ce(e,t))}let Te=null,hi=null;function Un(e){const t=Te;return Te=e,hi=e&&e.type.__scopeId||null,t}function te(e,t=Te,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Hi(-1);const i=Un(t);let s;try{s=e(...r)}finally{Un(i),o._d&&Hi(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function eh(){}function Wo(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:y,inheritAttrs:w}=e;let L,M;const W=Un(e);try{if(n.shapeFlag&4){const B=r||o,k=B;L=ct(u.call(k,B,f,i,S,h,y)),M=a}else{const B=t;L=ct(B.length>1?B(i,{attrs:a,slots:l,emit:c}):B(i,null)),M=t.props?a:pa(a)}}catch(B){yn.length=0,Kn(B,e,1),L=Z(nt)}let b=L;if(M&&w!==!1){const B=Object.keys(M),{shapeFlag:k}=b;B.length&&k&7&&(s&&B.some(wo)&&(M=ha(M,s)),b=Mt(b,M))}return n.dirs&&(b=Mt(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),L=b,Un(W),L}const pa=e=>{let t;for(const n in e)(n==="class"||n==="style"||Mn(n))&&((t||(t={}))[n]=e[n]);return t},ha=(e,t)=>{const n={};for(const o in e)(!wo(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function ga(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?gi(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?gi(o,s,c):!0:!!s;return!1}function gi(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 ma({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 mi="components",vi=Symbol.for("v-ndc");function va(e){return ye(e)?_a(mi,e,!1)||e:e||vi}function _a(e,t,n=!0,o=!1){const r=Te||Pe;if(r){const i=r.type;if(e===mi){const l=Gi(i,!1);if(l&&(l===t||l===Re(t)||l===zn(Re(t))))return i}const s=_i(r[e]||i[e],t)||_i(r.appContext[e],t);return!s&&o?i:s}}function _i(e,t){return e&&(e[t]||e[Re(t)]||e[zn(Re(t))])}const ba=e=>e.__isSuspense;function ya(e,t){t&&t.pendingBranch?J(e)?t.effects.push(...e):t.effects.push(e):ua(e)}const wa=Symbol.for("v-scx"),xa=()=>Kt(wa);function Sa(e,t){return Ko(e,null,{flush:"sync"})}const Yn={};function fe(e,t,n){return Ko(e,t,n)}function Ko(e,t,{immediate:n,deep:o,flush:r,once:i,onTrack:s,onTrigger:l}=se){if(t&&i){const m=t;t=(...I)=>{m(...I),k()}}const a=Pe,c=m=>o===!0?m:Ht(m,o===!1?1:void 0);let u,f=!1,h=!1;if(Ce(e)?(u=()=>e.value,f=Wn(e)):tn(e)?(u=()=>c(e),f=!0):J(e)?(h=!0,f=e.some(m=>tn(m)||Wn(m)),u=()=>e.map(m=>{if(Ce(m))return m.value;if(tn(m))return c(m);if(ee(m))return gt(m,a,2)})):ee(e)?t?u=()=>gt(e,a,2):u=()=>(S&&S(),Je(e,a,3,[y])):u=Ke,t&&o){const m=u;u=()=>Ht(m())}let S,y=m=>{S=b.onStop=()=>{gt(m,a,4),S=b.onStop=void 0}},w;if(ao)if(y=Ke,t?n&&Je(t,a,3,[u(),h?[]:void 0,y]):u(),r==="sync"){const m=xa();w=m.__watcherHandles||(m.__watcherHandles=[])}else return Ke;let L=h?new Array(e.length).fill(Yn):Yn;const M=()=>{if(!(!b.active||!b.dirty))if(t){const m=b.run();(o||f||(h?m.some((I,v)=>lt(I,L[v])):lt(m,L)))&&(S&&S(),Je(t,a,3,[m,L===Yn?void 0:h&&L[0]===Yn?[]:L,y]),L=m)}else b.run()};M.allowRecurse=!!t;let W;r==="sync"?W=M:r==="post"?W=()=>Ve(M,a&&a.suspense):(M.pre=!0,a&&(M.id=a.uid),W=()=>Ho(M));const b=new Eo(u,Ke,W),B=jr(),k=()=>{b.stop(),B&&xo(B.effects,b)};return t?n?M():L=b.run():r==="post"?Ve(b.run.bind(b),a&&a.suspense):b.run(),w&&w.push(k),k}function ka(e,t,n){const o=this.proxy,r=ye(e)?e.includes(".")?bi(o,e):()=>o[e]:e.bind(o,o);let i;ee(t)?i=t:(i=t.handler,n=t);const s=xn(this),l=Ko(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(!me(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(o=o||new Set,o.has(e))return e;if(o.add(e),Ce(e))Ht(e.value,t,n,o);else if(J(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(Or(e))for(const r in e)Ht(e[r],t,n,o);return e}function vt(e,t){if(Te===null)return e;const n=co(Te)||Te.proxy,o=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,s,l,a=se]=t[r];i&&(ee(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&&(It(),Je(a,n,8,[e.el,l,e,t]),Ct())}}const Et=Symbol("_leaveCb"),Xn=Symbol("_enterCb");function Ia(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return tt(()=>{e.isMounted=!0}),Xo(()=>{e.isUnmounting=!0}),e}const et=[Function,Array],yi={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:et,onEnter:et,onAfterEnter:et,onEnterCancelled:et,onBeforeLeave:et,onLeave:et,onAfterLeave:et,onLeaveCancelled:et,onBeforeAppear:et,onAppear:et,onAfterAppear:et,onAppearCancelled:et},Ca={name:"BaseTransition",props:yi,setup(e,{slots:t}){const n=lr(),o=Ia();let r;return()=>{const i=t.default&&Si(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){for(const w of i)if(w.type!==nt){s=w;break}}const l=le(e),{mode:a}=l;if(o.isLeaving)return Uo(s);const c=xi(s);if(!c)return Uo(s);const u=qo(c,l,o,n);Yo(c,u);const f=n.subTree,h=f&&xi(f);let S=!1;const{getTransitionKey:y}=c.type;if(y){const w=y();r===void 0?r=w:w!==r&&(r=w,S=!0)}if(h&&h.type!==nt&&(!Ut(c,h)||S)){const w=qo(h,l,o,n);if(Yo(h,w),a==="out-in")return o.isLeaving=!0,w.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Uo(s);a==="in-out"&&c.type!==nt&&(w.delayLeave=(L,M,W)=>{const b=wi(o,h);b[String(h.key)]=h,L[Et]=()=>{M(),L[Et]=void 0,delete u.delayedLeave},u.delayedLeave=W})}return s}}};function wi(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 qo(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:y,onBeforeAppear:w,onAppear:L,onAfterAppear:M,onAppearCancelled:W}=t,b=String(e.key),B=wi(n,e),k=(v,T)=>{v&&Je(v,o,9,T)},m=(v,T)=>{const A=T[1];k(v,T),J(v)?v.every(Q=>Q.length<=1)&&A():v.length<=1&&A()},I={mode:i,persisted:s,beforeEnter(v){let T=l;if(!n.isMounted)if(r)T=w||l;else return;v[Et]&&v[Et](!0);const A=B[b];A&&Ut(e,A)&&A.el[Et]&&A.el[Et](),k(T,[v])},enter(v){let T=a,A=c,Q=u;if(!n.isMounted)if(r)T=L||a,A=M||c,Q=W||u;else return;let V=!1;const ie=v[Xn]=de=>{V||(V=!0,de?k(Q,[v]):k(A,[v]),I.delayedLeave&&I.delayedLeave(),v[Xn]=void 0)};T?m(T,[v,ie]):ie()},leave(v,T){const A=String(e.key);if(v[Xn]&&v[Xn](!0),n.isUnmounting)return T();k(f,[v]);let Q=!1;const V=v[Et]=ie=>{Q||(Q=!0,T(),ie?k(y,[v]):k(S,[v]),v[Et]=void 0,B[A]===e&&delete B[A])};B[A]=e,h?m(h,[v,V]):V()},clone(v){return qo(v,t,n,o)}};return I}function Uo(e){if(Zn(e))return e=Mt(e),e.children=null,e}function xi(e){return Zn(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 Si(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(Si(s.children,t,l))):(t||s.type!==nt)&&o.push(l!=null?Mt(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 ee(e)?(()=>be({name:e.name},t,{setup:e}))():e}const mn=e=>!!e.type.__asyncLoader,Zn=e=>e.type.__isKeepAlive;function Ta(e,t){ki(e,"a",t)}function $a(e,t){ki(e,"da",t)}function ki(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);bt(()=>{xo(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;It();const l=xn(n),a=Je(t,n,e,s);return l(),Ct(),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),Pa=_t("bm"),tt=_t("m"),Ma=_t("bu"),Oa=_t("u"),Xo=_t("bum"),bt=_t("um"),La=_t("sp"),Aa=_t("rtg"),za=_t("rtc");function ja(e,t=Pe){Gn("ec",e,t)}function vn(e,t,n,o){let r;const i=n&&n[o];if(J(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(me(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 Ii(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(J(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(Te.isCE||Te.parent&&mn(Te.parent)&&Te.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&&Ci(i(n)),l=ve(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 Ci(e){return e.some(t=>oo(t)?!(t.type===nt||t.type===xe&&!Ci(t.children)):!0)?e:null}const Zo=e=>e?Ui(e)?co(e)||e.proxy:Zo(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=>Zo(e.parent),$root:e=>Zo(e.root),$emit:e=>e.emit,$options:e=>Jo(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=>ka.bind(e)}),Go=(e,t)=>e!==se&&!e.__isScriptSetup&&ce(e,t),Da={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(Go(o,t))return s[t]=1,o[t];if(r!==se&&ce(r,t))return s[t]=2,r[t];if((c=e.propsOptions[0])&&ce(c,t))return s[t]=3,i[t];if(n!==se&&ce(n,t))return s[t]=4,n[t];Qo&&(s[t]=0)}}const u=_n[t];let f,h;if(u)return t==="$attrs"&&Be(e,"get",t),u(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==se&&ce(n,t))return s[t]=4,n[t];if(h=a.config.globalProperties,ce(h,t))return h[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return Go(r,t)?(r[t]=n,!0):o!==se&&ce(o,t)?(o[t]=n,!0):ce(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:i}},s){let l;return!!n[s]||e!==se&&ce(e,s)||Go(t,s)||(l=i[0])&&ce(l,s)||ce(o,s)||ce(_n,s)||ce(r.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ce(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Qn(e){return J(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Pt(e,t){return!e||!t?e||t:J(e)&&J(t)?e.concat(t):be({},Qn(e),Qn(t))}let Qo=!0;function Ra(e){const t=Jo(e),n=e.proxy,o=e.ctx;Qo=!1,t.beforeCreate&&Ti(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:y,activated:w,deactivated:L,beforeDestroy:M,beforeUnmount:W,destroyed:b,unmounted:B,render:k,renderTracked:m,renderTriggered:I,errorCaptured:v,serverPrefetch:T,expose:A,inheritAttrs:Q,components:V,directives:ie,filters:de}=t;if(c&&Ba(c,o,null),s)for(const C in s){const D=s[C];ee(D)&&(o[C]=D.bind(n))}if(r){const C=r.call(n,n);me(C)&&(e.data=un(C))}if(Qo=!0,i)for(const C in i){const D=i[C],re=ee(D)?D.bind(n,n):ee(D.get)?D.get.bind(n,n):Ke,ae=!ee(D)&&ee(D.set)?D.set.bind(n):Ke,ge=oe({get:re,set:ae});Object.defineProperty(o,C,{enumerable:!0,configurable:!0,get:()=>ge.value,set:Ee=>ge.value=Ee})}if(l)for(const C in l)$i(l[C],o,n,C);if(a){const C=ee(a)?a.call(n):a;Reflect.ownKeys(C).forEach(D=>{to(D,C[D])})}u&&Ti(u,e,"c");function x(C,D){J(D)?D.forEach(re=>C(re.bind(n))):D&&C(D.bind(n))}if(x(Pa,f),x(tt,h),x(Ma,S),x(Oa,y),x(Ta,w),x($a,L),x(ja,v),x(za,m),x(Aa,I),x(Xo,W),x(bt,B),x(La,T),J(A))if(A.length){const C=e.exposed||(e.exposed={});A.forEach(D=>{Object.defineProperty(C,D,{get:()=>n[D],set:re=>n[D]=re})})}else e.exposed||(e.exposed={});k&&e.render===Ke&&(e.render=k),Q!=null&&(e.inheritAttrs=Q),V&&(e.components=V),ie&&(e.directives=ie)}function Ba(e,t,n=Ke){J(e)&&(e=er(e));for(const o in e){const r=e[o];let i;me(r)?"default"in r?i=Kt(r.from||o,r.default,!0):i=Kt(r.from||o):i=Kt(r),Ce(i)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[o]=i}}function Ti(e,t,n){Je(J(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function $i(e,t,n,o){const r=o.includes(".")?bi(n,o):()=>n[o];if(ye(e)){const i=t[e];ee(i)&&fe(r,i)}else if(ee(e))fe(r,e.bind(n));else if(me(e))if(J(e))e.forEach(i=>$i(i,t,n,o));else{const i=ee(e.handler)?e.handler.bind(n):t[e.handler];ee(i)&&fe(r,i,e)}}function Jo(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)),me(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=Va[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const Va={data:Ei,props:Pi,emits:Pi,methods:bn,computed:bn,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:bn,directives:bn,watch:Fa,provide:Ei,inject:Na};function Ei(e,t){return t?e?function(){return be(ee(e)?e.call(this,this):e,ee(t)?t.call(this,this):t)}:t:e}function Na(e,t){return bn(er(e),er(t))}function er(e){if(J(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 bn(e,t){return e?be(Object.create(null),e,t):t}function Pi(e,t){return e?J(e)&&J(t)?[...new Set([...e,...t])]:be(Object.create(null),Qn(e),Qn(t??{})):t}function Fa(e,t){if(!e)return t;if(!t)return e;const n=be(Object.create(null),e);for(const o in t)n[o]=ze(e[o],t[o]);return n}function Mi(){return{app:null,config:{isNativeTag:_l,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 Ha=0;function Wa(e,t){return function(o,r=null){ee(o)||(o=be({},o)),r!=null&&!me(r)&&(r=null);const i=Mi(),s=new WeakSet;let l=!1;const a=i.app={_uid:Ha++,_component:o,_props:r,_container:null,_context:i,_instance:null,version:gc,get config(){return i.config},set config(c){},use(c,...u){return s.has(c)||(c&&ee(c.install)?(s.add(c),c.install(a,...u)):ee(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,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||Te;if(o||eo){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:eo._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&ee(t)?t.call(o&&o.proxy):t}}function Ka(e,t,n,o=!1){const r={},i={};Dn(i,ro,1),e.propsDefaults=Object.create(null),Oi(e,t,r,i);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);n?e.props=o?r:Zl(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function qa(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,l=le(r),[a]=e.propsOptions;let c=!1;if((o||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let h=u[f];if(qn(e.emitsOptions,h))continue;const S=t[h];if(a)if(ce(i,h))S!==i[h]&&(i[h]=S,c=!0);else{const y=Re(h);r[y]=tr(a,l,y,S,e,!1)}else S!==i[h]&&(i[h]=S,c=!0)}}}else{Oi(e,t,r,i)&&(c=!0);let u;for(const f in l)(!t||!ce(t,f)&&((u=qe(f))===f||!ce(t,u)))&&(a?n&&(n[f]!==void 0||n[u]!==void 0)&&(r[f]=tr(a,l,f,void 0,e,!0)):delete r[f]);if(i!==l)for(const f in i)(!t||!ce(t,f))&&(delete i[f],c=!0)}c&&ht(e,"set","$attrs")}function Oi(e,t,n,o){const[r,i]=e.propsOptions;let s=!1,l;if(t)for(let a in t){if(Ln(a))continue;const c=t[a];let u;r&&ce(r,u=Re(a))?!i||!i.includes(u)?n[u]=c:(l||(l={}))[u]=c:qn(e.emitsOptions,a)||(!(a in o)||c!==o[a])&&(o[a]=c,s=!0)}if(i){const a=le(n),c=l||se;for(let u=0;u<i.length;u++){const f=i[u];n[f]=tr(r,a,f,c[f],e,!ce(c,f))}}return s}function tr(e,t,n,o,r,i){const s=e[n];if(s!=null){const l=ce(s,"default");if(l&&o===void 0){const a=s.default;if(s.type!==Function&&!s.skipFactory&&ee(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===qe(n))&&(o=!0))}return o}function Li(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(!ee(e)){const u=f=>{a=!0;const[h,S]=Li(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 me(e)&&o.set(e,Ge),Ge;if(J(i))for(let u=0;u<i.length;u++){const f=Re(i[u]);Ai(f)&&(s[f]=se)}else if(i)for(const u in i){const f=Re(u);if(Ai(f)){const h=i[u],S=s[f]=J(h)||ee(h)?{type:h}:be({},h);if(S){const y=Di(Boolean,S.type),w=Di(String,S.type);S[0]=y>-1,S[1]=w<0||y<w,(y>-1||ce(S,"default"))&&l.push(f)}}}const c=[s,l];return me(e)&&o.set(e,c),c}function Ai(e){return e[0]!=="$"}function zi(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function ji(e,t){return zi(e)===zi(t)}function Di(e,t){return J(t)?t.findIndex(n=>ji(n,e)):ee(t)&&ji(t,e)?0:-1}const Ri=e=>e[0]==="_"||e==="$stable",nr=e=>J(e)?e.map(ct):[ct(e)],Ua=(e,t,n)=>{if(t._n)return t;const o=te((...r)=>nr(t(...r)),n);return o._c=!1,o},Bi=(e,t,n)=>{const o=e._ctx;for(const r in e){if(Ri(r))continue;const i=e[r];if(ee(i))t[r]=Ua(r,i,o);else if(i!=null){const s=nr(i);t[r]=()=>s}}},Vi=(e,t)=>{const n=nr(t);e.slots.default=()=>n},Ya=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=le(t),Dn(t,"_",n)):Bi(t,e.slots={})}else e.slots={},t&&Vi(e,t);Dn(e.slots,ro,1)},Xa=(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,Bi(t,r)),s=t}else t&&(Vi(e,t),s={default:1});if(i)for(const l in r)!Ri(l)&&s[l]==null&&delete r[l]};function or(e,t,n,o,r=!1){if(J(e)){e.forEach((h,S)=>or(h,t&&(J(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,ce(f,c)&&(f[c]=null)):Ce(c)&&(c.value=null)),ee(a))gt(a,l,12,[s,u]);else{const h=ye(a),S=Ce(a),y=e.f;if(h||S){const w=()=>{if(y){const L=h?ce(f,a)?f[a]:u[a]:a.value;r?J(L)&&xo(L,i):J(L)?L.includes(i)||L.push(i):h?(u[a]=[i],ce(f,a)&&(f[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else h?(u[a]=s,ce(f,a)&&(f[a]=s)):S&&(a.value=s,e.k&&(u[e.k]=s))};r||y?w():(w.id=-1,Ve(w,n))}}}function Za(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(To().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Ve=ya;function Ga(e){return Qa(e)}function Qa(e,t){Za();const n=To();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=Ke,insertStaticContent:y}=e,w=(d,p,_,$=null,P=null,j=null,N=void 0,z=null,F=!!p.dynamicChildren)=>{if(d===p)return;d&&!Ut(d,p)&&($=Xe(d),Ee(d,P,j,!0),d=null),p.patchFlag===-2&&(F=!1,p.dynamicChildren=null);const{type:O,ref:H,shapeFlag:G}=p;switch(O){case no:L(d,p,_,$);break;case nt:M(d,p,_,$);break;case ir:d==null&&W(p,_,$,N);break;case xe:V(d,p,_,$,P,j,N,z,F);break;default:G&1?k(d,p,_,$,P,j,N,z,F):G&6?ie(d,p,_,$,P,j,N,z,F):(G&64||G&128)&&O.process(d,p,_,$,P,j,N,z,F,pt)}H!=null&&P&&or(H,d&&d.ref,j,p||d,!p)},L=(d,p,_,$)=>{if(d==null)o(p.el=l(p.children),_,$);else{const P=p.el=d.el;p.children!==d.children&&c(P,p.children)}},M=(d,p,_,$)=>{d==null?o(p.el=a(p.children||""),_,$):p.el=d.el},W=(d,p,_,$)=>{[d.el,d.anchor]=y(d.children,p,_,$,d.el,d.anchor)},b=({el:d,anchor:p},_,$)=>{let P;for(;d&&d!==p;)P=h(d),o(d,_,$),d=P;o(p,_,$)},B=({el:d,anchor:p})=>{let _;for(;d&&d!==p;)_=h(d),r(d),d=_;r(p)},k=(d,p,_,$,P,j,N,z,F)=>{p.type==="svg"?N="svg":p.type==="math"&&(N="mathml"),d==null?m(p,_,$,P,j,N,z,F):T(d,p,P,j,N,z,F)},m=(d,p,_,$,P,j,N,z)=>{let F,O;const{props:H,shapeFlag:G,transition:g,dirs:E}=d;if(F=d.el=s(d.type,j,H&&H.is,H),G&8?u(F,d.children):G&16&&v(d.children,F,null,$,P,rr(d,j),N,z),E&&Wt(d,null,$,"created"),I(F,d,d.scopeId,N,$),H){for(const ne in H)ne!=="value"&&!Ln(ne)&&i(F,ne,null,H[ne],j,d.children,$,P,Le);"value"in H&&i(F,"value",null,H.value,j),(O=H.onVnodeBeforeMount)&&ut(O,$,d)}E&&Wt(d,null,$,"beforeMount");const U=Ja(P,g);U&&g.beforeEnter(F),o(F,p,_),((O=H&&H.onVnodeMounted)||U||E)&&Ve(()=>{O&&ut(O,$,d),U&&g.enter(F),E&&Wt(d,null,$,"mounted")},P)},I=(d,p,_,$,P)=>{if(_&&S(d,_),$)for(let j=0;j<$.length;j++)S(d,$[j]);if(P){let j=P.subTree;if(p===j){const N=P.vnode;I(d,N,N.scopeId,N.slotScopeIds,P.parent)}}},v=(d,p,_,$,P,j,N,z,F=0)=>{for(let O=F;O<d.length;O++){const H=d[O]=z?Lt(d[O]):ct(d[O]);w(null,H,p,_,$,P,j,N,z)}},T=(d,p,_,$,P,j,N)=>{const z=p.el=d.el;let{patchFlag:F,dynamicChildren:O,dirs:H}=p;F|=d.patchFlag&16;const G=d.props||se,g=p.props||se;let E;if(_&&qt(_,!1),(E=g.onVnodeBeforeUpdate)&&ut(E,_,p,d),H&&Wt(p,d,_,"beforeUpdate"),_&&qt(_,!0),O?A(d.dynamicChildren,O,z,_,$,rr(p,P),j):N||D(d,p,z,null,_,$,rr(p,P),j,!1),F>0){if(F&16)Q(z,p,G,g,_,$,P);else if(F&2&&G.class!==g.class&&i(z,"class",null,g.class,P),F&4&&i(z,"style",G.style,g.style,P),F&8){const U=p.dynamicProps;for(let ne=0;ne<U.length;ne++){const ue=U[ne],ke=G[ue],Ze=g[ue];(Ze!==ke||ue==="value")&&i(z,ue,ke,Ze,P,d.children,_,$,Le)}}F&1&&d.children!==p.children&&u(z,p.children)}else!N&&O==null&&Q(z,p,G,g,_,$,P);((E=g.onVnodeUpdated)||H)&&Ve(()=>{E&&ut(E,_,p,d),H&&Wt(p,d,_,"updated")},$)},A=(d,p,_,$,P,j,N)=>{for(let z=0;z<p.length;z++){const F=d[z],O=p[z],H=F.el&&(F.type===xe||!Ut(F,O)||F.shapeFlag&70)?f(F.el):_;w(F,O,H,null,$,P,j,N,!0)}},Q=(d,p,_,$,P,j,N)=>{if(_!==$){if(_!==se)for(const z in _)!Ln(z)&&!(z in $)&&i(d,z,_[z],null,N,p.children,P,j,Le);for(const z in $){if(Ln(z))continue;const F=$[z],O=_[z];F!==O&&z!=="value"&&i(d,z,O,F,N,p.children,P,j,Le)}"value"in $&&i(d,"value",_.value,$.value,N)}},V=(d,p,_,$,P,j,N,z,F)=>{const O=p.el=d?d.el:l(""),H=p.anchor=d?d.anchor:l("");let{patchFlag:G,dynamicChildren:g,slotScopeIds:E}=p;E&&(z=z?z.concat(E):E),d==null?(o(O,_,$),o(H,_,$),v(p.children||[],_,H,P,j,N,z,F)):G>0&&G&64&&g&&d.dynamicChildren?(A(d.dynamicChildren,g,_,P,j,N,z),(p.key!=null||P&&p===P.subTree)&&Ni(d,p,!0)):D(d,p,_,H,P,j,N,z,F)},ie=(d,p,_,$,P,j,N,z,F)=>{p.slotScopeIds=z,d==null?p.shapeFlag&512?P.ctx.activate(p,_,$,N,F):de(p,_,$,P,j,N,F):pe(d,p,F)},de=(d,p,_,$,P,j,N)=>{const z=d.component=lc(d,$,P);if(Zn(d)&&(z.ctx.renderer=pt),ac(z),z.asyncDep){if(P&&P.registerDep(z,x),!d.el){const F=z.subTree=Z(nt);M(null,F,p,_)}}else x(z,d,p,_,P,j,N)},pe=(d,p,_)=>{const $=p.component=d.component;if(ga(d,p,_))if($.asyncDep&&!$.asyncResolved){C($,p,_);return}else $.next=p,ca($.update),$.effect.dirty=!0,$.update();else p.el=d.el,$.vnode=p},x=(d,p,_,$,P,j,N)=>{const z=()=>{if(d.isMounted){let{next:H,bu:G,u:g,parent:E,vnode:U}=d;{const Bt=Fi(d);if(Bt){H&&(H.el=U.el,C(d,H,N)),Bt.asyncDep.then(()=>{d.isUnmounted||z()});return}}let ne=H,ue;qt(d,!1),H?(H.el=U.el,C(d,H,N)):H=U,G&&jn(G),(ue=H.props&&H.props.onVnodeBeforeUpdate)&&ut(ue,E,H,U),qt(d,!0);const ke=Wo(d),Ze=d.subTree;d.subTree=ke,w(Ze,ke,f(Ze.el),Xe(Ze),d,P,j),H.el=ke.el,ne===null&&ma(d,ke.el),g&&Ve(g,P),(ue=H.props&&H.props.onVnodeUpdated)&&Ve(()=>ut(ue,E,H,U),P)}else{let H;const{el:G,props:g}=p,{bm:E,m:U,parent:ne}=d,ue=mn(p);if(qt(d,!1),E&&jn(E),!ue&&(H=g&&g.onVnodeBeforeMount)&&ut(H,ne,p),qt(d,!0),G&&wt){const ke=()=>{d.subTree=Wo(d),wt(G,d.subTree,d,P,null)};ue?p.type.__asyncLoader().then(()=>!d.isUnmounted&&ke()):ke()}else{const ke=d.subTree=Wo(d);w(null,ke,_,$,d,P,j),p.el=ke.el}if(U&&Ve(U,P),!ue&&(H=g&&g.onVnodeMounted)){const ke=p;Ve(()=>ut(H,ne,ke),P)}(p.shapeFlag&256||ne&&mn(ne.vnode)&&ne.vnode.shapeFlag&256)&&d.a&&Ve(d.a,P),d.isMounted=!0,p=_=$=null}},F=d.effect=new Eo(z,Ke,()=>Ho(O),d.scope),O=d.update=()=>{F.dirty&&F.run()};O.id=d.uid,qt(d,!0),O()},C=(d,p,_)=>{p.component=d;const $=d.vnode.props;d.vnode=p,d.next=null,qa(d,p.props,$,_),Xa(d,p.children,_),It(),ui(d),Ct()},D=(d,p,_,$,P,j,N,z,F=!1)=>{const O=d&&d.children,H=d?d.shapeFlag:0,G=p.children,{patchFlag:g,shapeFlag:E}=p;if(g>0){if(g&128){ae(O,G,_,$,P,j,N,z,F);return}else if(g&256){re(O,G,_,$,P,j,N,z,F);return}}E&8?(H&16&&Le(O,P,j),G!==O&&u(_,G)):H&16?E&16?ae(O,G,_,$,P,j,N,z,F):Le(O,P,j,!0):(H&8&&u(_,""),E&16&&v(G,_,$,P,j,N,z,F))},re=(d,p,_,$,P,j,N,z,F)=>{d=d||Ge,p=p||Ge;const O=d.length,H=p.length,G=Math.min(O,H);let g;for(g=0;g<G;g++){const E=p[g]=F?Lt(p[g]):ct(p[g]);w(d[g],E,_,null,P,j,N,z,F)}O>H?Le(d,P,j,!0,!1,G):v(p,_,$,P,j,N,z,F,G)},ae=(d,p,_,$,P,j,N,z,F)=>{let O=0;const H=p.length;let G=d.length-1,g=H-1;for(;O<=G&&O<=g;){const E=d[O],U=p[O]=F?Lt(p[O]):ct(p[O]);if(Ut(E,U))w(E,U,_,null,P,j,N,z,F);else break;O++}for(;O<=G&&O<=g;){const E=d[G],U=p[g]=F?Lt(p[g]):ct(p[g]);if(Ut(E,U))w(E,U,_,null,P,j,N,z,F);else break;G--,g--}if(O>G){if(O<=g){const E=g+1,U=E<H?p[E].el:$;for(;O<=g;)w(null,p[O]=F?Lt(p[O]):ct(p[O]),_,U,P,j,N,z,F),O++}}else if(O>g)for(;O<=G;)Ee(d[O],P,j,!0),O++;else{const E=O,U=O,ne=new Map;for(O=U;O<=g;O++){const De=p[O]=F?Lt(p[O]):ct(p[O]);De.key!=null&&ne.set(De.key,O)}let ue,ke=0;const Ze=g-U+1;let Bt=!1,_o=0;const He=new Array(Ze);for(O=0;O<Ze;O++)He[O]=0;for(O=E;O<=G;O++){const De=d[O];if(ke>=Ze){Ee(De,P,j,!0);continue}let it;if(De.key!=null)it=ne.get(De.key);else for(ue=U;ue<=g;ue++)if(He[ue-U]===0&&Ut(De,p[ue])){it=ue;break}it===void 0?Ee(De,P,j,!0):(He[it-U]=O+1,it>=_o?_o=it:Bt=!0,w(De,p[it],_,null,P,j,N,z,F),ke++)}const bo=Bt?ec(He):Ge;for(ue=bo.length-1,O=Ze-1;O>=0;O--){const De=U+O,it=p[De],yo=De+1<H?p[De+1].el:$;He[O]===0?w(null,it,_,yo,P,j,N,z,F):Bt&&(ue<0||O!==bo[ue]?ge(it,_,yo,2):ue--)}}},ge=(d,p,_,$,P=null)=>{const{el:j,type:N,transition:z,children:F,shapeFlag:O}=d;if(O&6){ge(d.component.subTree,p,_,$);return}if(O&128){d.suspense.move(p,_,$);return}if(O&64){N.move(d,p,_,pt);return}if(N===xe){o(j,p,_);for(let G=0;G<F.length;G++)ge(F[G],p,_,$);o(d.anchor,p,_);return}if(N===ir){b(d,p,_);return}if($!==2&&O&1&&z)if($===0)z.beforeEnter(j),o(j,p,_),Ve(()=>z.enter(j),P);else{const{leave:G,delayLeave:g,afterLeave:E}=z,U=()=>o(j,p,_),ne=()=>{G(j,()=>{U(),E&&E()})};g?g(j,U,ne):ne()}else o(j,p,_)},Ee=(d,p,_,$=!1,P=!1)=>{const{type:j,props:N,ref:z,children:F,dynamicChildren:O,shapeFlag:H,patchFlag:G,dirs:g}=d;if(z!=null&&or(z,null,_,d,!0),H&256){p.ctx.deactivate(d);return}const E=H&1&&g,U=!mn(d);let ne;if(U&&(ne=N&&N.onVnodeBeforeUnmount)&&ut(ne,p,d),H&6)ft(d.component,_,$);else{if(H&128){d.suspense.unmount(_,$);return}E&&Wt(d,null,p,"beforeUnmount"),H&64?d.type.remove(d,p,_,P,pt,$):O&&(j!==xe||G>0&&G&64)?Le(O,p,_,!1,!0):(j===xe&&G&384||!P&&H&16)&&Le(F,p,_),$&&Me(d)}(U&&(ne=N&&N.onVnodeUnmounted)||E)&&Ve(()=>{ne&&ut(ne,p,d),E&&Wt(d,null,p,"unmounted")},_)},Me=d=>{const{type:p,el:_,anchor:$,transition:P}=d;if(p===xe){Ne(_,$);return}if(p===ir){B(d);return}const j=()=>{r(_),P&&!P.persisted&&P.afterLeave&&P.afterLeave()};if(d.shapeFlag&1&&P&&!P.persisted){const{leave:N,delayLeave:z}=P,F=()=>N(_,j);z?z(d.el,j,F):F()}else j()},Ne=(d,p)=>{let _;for(;d!==p;)_=h(d),r(d),d=_;r(p)},ft=(d,p,_)=>{const{bum:$,scope:P,update:j,subTree:N,um:z}=d;$&&jn($),P.stop(),j&&(j.active=!1,Ee(N,d,p,_)),z&&Ve(z,p),Ve(()=>{d.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&d.asyncDep&&!d.asyncResolved&&d.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},Le=(d,p,_,$=!1,P=!1,j=0)=>{for(let N=j;N<d.length;N++)Ee(d[N],p,_,$,P)},Xe=d=>d.shapeFlag&6?Xe(d.component.subTree):d.shapeFlag&128?d.suspense.next():h(d.anchor||d.el);let rt=!1;const Fe=(d,p,_)=>{d==null?p._vnode&&Ee(p._vnode,null,null,!0):w(p._vnode||null,d,p,null,null,null,_),rt||(rt=!0,ui(),di(),rt=!1),p._vnode=d},pt={p:w,um:Ee,m:ge,r:Me,mt:de,mc:v,pc:D,pbc:A,n:Xe,o:e};let Rt,wt;return t&&([Rt,wt]=t(pt)),{render:Fe,hydrate:Rt,createApp:Wa(Fe,Rt)}}function rr({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 Ja(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ni(e,t,n=!1){const o=e.children,r=t.children;if(J(o)&&J(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]=Lt(r[i]),l.el=s.el),n||Ni(s,l)),l.type===no&&(l.el=s.el)}}function ec(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 Fi(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Fi(t)}const tc=e=>e.__isTeleport,xe=Symbol.for("v-fgt"),no=Symbol.for("v-txt"),nt=Symbol.for("v-cmt"),ir=Symbol.for("v-stc"),yn=[];let st=null;function R(e=!1){yn.push(st=e?null:[])}function nc(){yn.pop(),st=yn[yn.length-1]||null}let wn=1;function Hi(e){wn+=e}function Wi(e){return e.dynamicChildren=wn>0?st||Ge:null,nc(),wn>0&&st&&st.push(e),e}function K(e,t,n,o,r,i){return Wi(q(e,t,n,o,r,i,!0))}function ve(e,t,n,o,r){return Wi(Z(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",Ki=({key:e})=>e??null,io=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||Ce(e)||ee(e)?{i:Te,r:e,k:t,f:!!n}:e:null);function q(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&&Ki(t),ref:t&&io(t),scopeId:hi,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Te};return l?(sr(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 Z=oc;function oc(e,t=null,n=null,o=0,r=null,i=!1){if((!e||e===vi)&&(e=nt),oo(e)){const l=Mt(e,t,!0);return n&&sr(l,n),wn>0&&!i&&st&&(l.shapeFlag&6?st[st.indexOf(e)]=l:st.push(l)),l.patchFlag|=-2,l}if(hc(e)&&(e=e.__vccOpts),t){t=rc(t);let{class:l,style:a}=t;l&&!ye(l)&&(t.class=Ie(l)),me(a)&&(oi(a)&&!J(a)&&(a=be({},a)),t.style=Ae(a))}const s=ye(e)?1:ba(e)?128:tc(e)?64:me(e)?4:ee(e)?2:0;return q(e,t,n,o,r,s,i,!0)}function rc(e){return e?oi(e)||ro in e?be({},e):e:null}function Mt(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&&Ki(l),ref:t&&t.ref?n&&r?J(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&&Mt(e.ssContent),ssFallback:e.ssFallback&&Mt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ot(e=" ",t=0){return Z(no,null,e,t)}function $e(e="",t=!1){return t?(R(),ve(nt,null,e)):Z(nt,null,e)}function ct(e){return e==null||typeof e=="boolean"?Z(nt):J(e)?Z(xe,null,e.slice()):typeof e=="object"?Lt(e):Z(no,null,String(e))}function Lt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Mt(e)}function sr(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(J(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),sr(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(ro in t)?t._ctx=Te:r===3&&Te&&(Te.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ee(t)?(t={default:t,_ctx:Te},n=32):(t=String(t),o&64?(n=16,t=[Ot(t)]):n=8);e.children=t,e.shapeFlag|=n}function so(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const r in o)if(r==="class")t.class!==o.class&&(t.class=Ie([t.class,o.class]));else if(r==="style")t.style=Ae([t.style,o.style]);else if(Mn(r)){const i=t[r],s=o[r];s&&i!==s&&!(J(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){Je(e,t,7,[n,o])}const ic=Mi();let sc=0;function lc(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||ic,i={uid:sc++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new $l(!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:Li(o,r),emitsOptions:pi(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=fa.bind(null,i),e.ce&&e.ce(i),i}let Pe=null;const lr=()=>Pe||Te;let lo,ar;{const e=To(),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),ar=t("__VUE_SSR_SETTERS__",n=>ao=n)}const xn=e=>{const t=Pe;return lo(e),e.scope.on(),()=>{e.scope.off(),lo(t)}},qi=()=>{Pe&&Pe.scope.off(),lo(null)};function Ui(e){return e.vnode.shapeFlag&4}let ao=!1;function ac(e,t=!1){t&&ar(t);const{props:n,children:o}=e.vnode,r=Ui(e);Ka(e,n,r,t),Ya(e,o);const i=r?cc(e,t):void 0;return t&&ar(!1),i}function cc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ri(new Proxy(e.ctx,Da));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?dc(e):null,i=xn(e);It();const s=gt(o,e,0,[e.props,r]);if(Ct(),i(),Pr(s)){if(s.then(qi,qi),t)return s.then(l=>{Yi(e,l,t)}).catch(l=>{Kn(l,e,0)});e.asyncDep=s}else Yi(e,s,t)}else Zi(e,t)}function Yi(e,t,n){ee(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:me(t)&&(e.setupState=si(t)),Zi(e,n)}let Xi;function Zi(e,t,n){const o=e.type;if(!e.render){if(!t&&Xi&&!o.render){const r=o.template||Jo(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=Xi(r,c)}}e.render=o.render||Ke}{const r=xn(e);It();try{Ra(e)}finally{Ct(),r()}}}function uc(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Be(e,"get","$attrs"),t[n]}}))}function dc(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return uc(e)},slots:e.slots,emit:e.emit,expose:t}}function co(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(si(ri(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 fc=/(?:^|[-_])(\w)/g,pc=e=>e.replace(fc,t=>t.toUpperCase()).replace(/[-_]/g,"");function Gi(e,t=!0){return ee(e)?e.displayName||e.name:e.name||t&&e.__name}function Qi(e,t,n=!1){let o=Gi(t);if(!o&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(o=r[1])}if(!o&&e&&e.parent){const r=i=>{for(const s in i)if(i[s]===t)return s};o=r(e.components||e.parent.type.components)||r(e.appContext.components)}return o?pc(o):n?"App":"Anonymous"}function hc(e){return ee(e)&&"__vccOpts"in e}const oe=(e,t)=>Gl(e,t,ao);function rn(e,t,n=se){const o=lr(),r=Re(t),i=qe(t),s=na((a,c)=>{let u;return Sa(()=>{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 Ji(e,t,n){const o=arguments.length;return o===2?me(t)&&!J(t)?oo(t)?Z(e,null,[t]):Z(e,t):Z(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&oo(n)&&(n=[n]),Z(e,t,n))}const gc="3.4.15";/**
13
+ **/const pn=[];function Jp(e,...t){kt();const n=pn.length?pn[pn.length-1].component:null,o=n&&n.appContext.config.warnHandler,r=oa();if(o)mt(o,n,11,[e+t.join(""),n&&n.proxy,r.map(({vnode:s})=>`at <${Qs(n,s.type)}>`).join(`
14
+ `),r]);else{const s=[`[Vue warn]: ${e}`,...t];r.length&&s.push(`
15
+ `,...ra(r)),console.warn(...s)}It()}function oa(){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 ra(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[`
16
+ `],...sa(n))}),t}function sa({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,r=` at <${Qs(e.component,e.type,o)}`,s=">"+n;return e.props?[r,...ia(e.props),s]:[r+s]}function ia(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...ls(o,e[o]))}),n.length>3&&t.push(" ..."),t}function ls(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}`]:Ce(t)?(t=ls(e,le(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):ee(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=le(t),n?t:[`${e}=`,t])}function mt(e,t,n,o){let r;try{r=o?e(...o):e()}catch(s){Kn(s,t,n)}return r}function et(e,t,n,o){if(ee(e)){const s=mt(e,t,n,o);return s&&Pr(s)&&s.catch(i=>{Kn(i,t,n)}),s}const r=[];for(let s=0;s<e.length;s++)r.push(et(e[s],t,n,o));return r}function Kn(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let s=t.parent;const i=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const c=s.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,i,l)===!1)return}s=s.parent}const a=t.appContext.config.errorHandler;if(a){mt(a,null,10,[e,i,l]);return}}la(e,n,r,o)}function la(e,t,n,o=!0){console.error(e)}let hn=!1,No=!1;const Oe=[];let ct=0;const on=[];let Tt=null,Nt=0;const as=Promise.resolve();let Fo=null;function vt(e){const t=Fo||as;return e?t.then(this?e.bind(this):e):t}function aa(e){let t=ct+1,n=Oe.length;for(;t<n;){const o=t+n>>>1,r=Oe[o],s=gn(r);s<e||s===e&&r.pre?t=o+1:n=o}return t}function Ho(e){(!Oe.length||!Oe.includes(e,hn&&e.allowRecurse?ct+1:ct))&&(e.id==null?Oe.push(e):Oe.splice(aa(e.id),0,e),cs())}function cs(){!hn&&!No&&(No=!0,Fo=as.then(fs))}function ca(e){const t=Oe.indexOf(e);t>ct&&Oe.splice(t,1)}function ua(e){J(e)?on.push(...e):(!Tt||!Tt.includes(e,e.allowRecurse?Nt+1:Nt))&&on.push(e),cs()}function us(e,t,n=hn?ct+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 ds(e){if(on.length){const t=[...new Set(on)].sort((n,o)=>gn(n)-gn(o));if(on.length=0,Tt){Tt.push(...t);return}for(Tt=t,Nt=0;Nt<Tt.length;Nt++)Tt[Nt]();Tt=null,Nt=0}}const gn=e=>e.id==null?1/0:e.id,da=(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 fs(e){No=!1,hn=!0,Oe.sort(da);const t=qe;try{for(ct=0;ct<Oe.length;ct++){const n=Oe[ct];n&&n.active!==!1&&mt(n,null,14)}}finally{ct=0,Oe.length=0,ds(),hn=!1,Fo=null,(Oe.length||on.length)&&fs()}}function fa(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||ie;let r=n;const s=t.startsWith("update:"),i=s&&t.slice(7);if(i&&i in o){const u=`${i==="modelValue"?"model":i}Modifiers`,{number:f,trim:h}=o[u]||ie;h&&(r=n.map(S=>ye(S)?S.trim():S)),f&&(r=n.map(Io))}let l,a=o[l=ko(t)]||o[l=ko(Re(t))];!a&&s&&(a=o[l=ko(Ue(t))]),a&&et(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,et(c,e,6,r)}}function ps(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const s=e.emits;let i={},l=!1;if(!ee(e)){const a=c=>{const u=ps(c,t,!0);u&&(l=!0,be(i,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!s&&!l?(me(e)&&o.set(e,null),null):(J(s)?s.forEach(a=>i[a]=null):be(i,s),me(e)&&o.set(e,i),i)}function qn(e,t){return!e||!Mn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ce(e,t[0].toLowerCase()+t.slice(1))||ce(e,Ue(t))||ce(e,t))}let Te=null,hs=null;function Un(e){const t=Te;return Te=e,hs=e&&e.type.__scopeId||null,t}function te(e,t=Te,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Hs(-1);const s=Un(t);let i;try{i=e(...r)}finally{Un(s),o._d&&Hs(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function eh(){}function Wo(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:s,propsOptions:[i],slots:l,attrs:a,emit:c,render:u,renderCache:f,data:h,setupState:S,ctx:y,inheritAttrs:w}=e;let L,M;const W=Un(e);try{if(n.shapeFlag&4){const B=r||o,k=B;L=ut(u.call(k,B,f,s,S,h,y)),M=a}else{const B=t;L=ut(B.length>1?B(s,{attrs:a,slots:l,emit:c}):B(s,null)),M=t.props?a:pa(a)}}catch(B){yn.length=0,Kn(B,e,1),L=Z(ot)}let b=L;if(M&&w!==!1){const B=Object.keys(M),{shapeFlag:k}=b;B.length&&k&7&&(i&&B.some(wo)&&(M=ha(M,i)),b=Pt(b,M))}return n.dirs&&(b=Pt(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),L=b,Un(W),L}const pa=e=>{let t;for(const n in e)(n==="class"||n==="style"||Mn(n))&&((t||(t={}))[n]=e[n]);return t},ha=(e,t)=>{const n={};for(const o in e)(!wo(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function ga(e,t,n){const{props:o,children:r,component:s}=e,{props:i,children:l,patchFlag:a}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return o?gs(o,i,c):!!i;if(a&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const h=u[f];if(i[h]!==o[h]&&!qn(c,h))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:o===i?!1:o?i?gs(o,i,c):!0:!!i;return!1}function gs(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 s=o[r];if(t[s]!==e[s]&&!qn(n,s))return!0}return!1}function ma({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 ms="components",vs=Symbol.for("v-ndc");function va(e){return ye(e)?_a(ms,e,!1)||e:e||vs}function _a(e,t,n=!0,o=!1){const r=Te||Pe;if(r){const s=r.type;if(e===ms){const l=Gs(s,!1);if(l&&(l===t||l===Re(t)||l===zn(Re(t))))return s}const i=_s(r[e]||s[e],t)||_s(r.appContext[e],t);return!i&&o?s:i}}function _s(e,t){return e&&(e[t]||e[Re(t)]||e[zn(Re(t))])}const ba=e=>e.__isSuspense;function ya(e,t){t&&t.pendingBranch?J(e)?t.effects.push(...e):t.effects.push(e):ua(e)}const wa=Symbol.for("v-scx"),xa=()=>Wt(wa);function Sa(e,t){return Ko(e,null,{flush:"sync"})}const Yn={};function fe(e,t,n){return Ko(e,t,n)}function Ko(e,t,{immediate:n,deep:o,flush:r,once:s,onTrack:i,onTrigger:l}=ie){if(t&&s){const m=t;t=(...I)=>{m(...I),k()}}const a=Pe,c=m=>o===!0?m:Ft(m,o===!1?1:void 0);let u,f=!1,h=!1;if(Ce(e)?(u=()=>e.value,f=Wn(e)):tn(e)?(u=()=>c(e),f=!0):J(e)?(h=!0,f=e.some(m=>tn(m)||Wn(m)),u=()=>e.map(m=>{if(Ce(m))return m.value;if(tn(m))return c(m);if(ee(m))return mt(m,a,2)})):ee(e)?t?u=()=>mt(e,a,2):u=()=>(S&&S(),et(e,a,3,[y])):u=qe,t&&o){const m=u;u=()=>Ft(m())}let S,y=m=>{S=b.onStop=()=>{mt(m,a,4),S=b.onStop=void 0}},w;if(ao)if(y=qe,t?n&&et(t,a,3,[u(),h?[]:void 0,y]):u(),r==="sync"){const m=xa();w=m.__watcherHandles||(m.__watcherHandles=[])}else return qe;let L=h?new Array(e.length).fill(Yn):Yn;const M=()=>{if(!(!b.active||!b.dirty))if(t){const m=b.run();(o||f||(h?m.some((I,v)=>at(I,L[v])):at(m,L)))&&(S&&S(),et(t,a,3,[m,L===Yn?void 0:h&&L[0]===Yn?[]:L,y]),L=m)}else b.run()};M.allowRecurse=!!t;let W;r==="sync"?W=M:r==="post"?W=()=>Ve(M,a&&a.suspense):(M.pre=!0,a&&(M.id=a.uid),W=()=>Ho(M));const b=new Eo(u,qe,W),B=jr(),k=()=>{b.stop(),B&&xo(B.effects,b)};return t?n?M():L=b.run():r==="post"?Ve(b.run.bind(b),a&&a.suspense):b.run(),w&&w.push(k),k}function ka(e,t,n){const o=this.proxy,r=ye(e)?e.includes(".")?bs(o,e):()=>o[e]:e.bind(o,o);let s;ee(t)?s=t:(s=t.handler,n=t);const i=xn(this),l=Ko(r,s.bind(o),n);return i(),l}function bs(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 Ft(e,t,n=0,o){if(!me(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(o=o||new Set,o.has(e))return e;if(o.add(e),Ce(e))Ft(e.value,t,n,o);else if(J(e))for(let r=0;r<e.length;r++)Ft(e[r],t,n,o);else if(Er(e)||Jt(e))e.forEach(r=>{Ft(r,t,n,o)});else if(Or(e))for(const r in e)Ft(e[r],t,n,o);return e}function _t(e,t){if(Te===null)return e;const n=co(Te)||Te.proxy,o=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[s,i,l,a=ie]=t[r];s&&(ee(s)&&(s={mounted:s,updated:s}),s.deep&&Ft(i),o.push({dir:s,instance:n,value:i,oldValue:void 0,arg:l,modifiers:a}))}return e}function Ht(e,t,n,o){const r=e.dirs,s=t&&t.dirs;for(let i=0;i<r.length;i++){const l=r[i];s&&(l.oldValue=s[i].value);let a=l.dir[o];a&&(kt(),et(a,n,8,[e.el,l,e,t]),It())}}const $t=Symbol("_leaveCb"),Xn=Symbol("_enterCb");function Ia(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return nt(()=>{e.isMounted=!0}),Xo(()=>{e.isUnmounting=!0}),e}const tt=[Function,Array],ys={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:tt,onEnter:tt,onAfterEnter:tt,onEnterCancelled:tt,onBeforeLeave:tt,onLeave:tt,onAfterLeave:tt,onLeaveCancelled:tt,onBeforeAppear:tt,onAppear:tt,onAfterAppear:tt,onAppearCancelled:tt},Ca={name:"BaseTransition",props:ys,setup(e,{slots:t}){const n=lr(),o=Ia();let r;return()=>{const s=t.default&&Ss(t.default(),!0);if(!s||!s.length)return;let i=s[0];if(s.length>1){for(const w of s)if(w.type!==ot){i=w;break}}const l=le(e),{mode:a}=l;if(o.isLeaving)return Uo(i);const c=xs(i);if(!c)return Uo(i);const u=qo(c,l,o,n);Yo(c,u);const f=n.subTree,h=f&&xs(f);let S=!1;const{getTransitionKey:y}=c.type;if(y){const w=y();r===void 0?r=w:w!==r&&(r=w,S=!0)}if(h&&h.type!==ot&&(!qt(c,h)||S)){const w=qo(h,l,o,n);if(Yo(h,w),a==="out-in")return o.isLeaving=!0,w.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Uo(i);a==="in-out"&&c.type!==ot&&(w.delayLeave=(L,M,W)=>{const b=ws(o,h);b[String(h.key)]=h,L[$t]=()=>{M(),L[$t]=void 0,delete u.delayedLeave},u.delayedLeave=W})}return i}}};function ws(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 qo(e,t,n,o){const{appear:r,mode:s,persisted:i=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:f,onLeave:h,onAfterLeave:S,onLeaveCancelled:y,onBeforeAppear:w,onAppear:L,onAfterAppear:M,onAppearCancelled:W}=t,b=String(e.key),B=ws(n,e),k=(v,T)=>{v&&et(v,o,9,T)},m=(v,T)=>{const A=T[1];k(v,T),J(v)?v.every(G=>G.length<=1)&&A():v.length<=1&&A()},I={mode:s,persisted:i,beforeEnter(v){let T=l;if(!n.isMounted)if(r)T=w||l;else return;v[$t]&&v[$t](!0);const A=B[b];A&&qt(e,A)&&A.el[$t]&&A.el[$t](),k(T,[v])},enter(v){let T=a,A=c,G=u;if(!n.isMounted)if(r)T=L||a,A=M||c,G=W||u;else return;let V=!1;const se=v[Xn]=de=>{V||(V=!0,de?k(G,[v]):k(A,[v]),I.delayedLeave&&I.delayedLeave(),v[Xn]=void 0)};T?m(T,[v,se]):se()},leave(v,T){const A=String(e.key);if(v[Xn]&&v[Xn](!0),n.isUnmounting)return T();k(f,[v]);let G=!1;const V=v[$t]=se=>{G||(G=!0,T(),se?k(y,[v]):k(S,[v]),v[$t]=void 0,B[A]===e&&delete B[A])};B[A]=e,h?m(h,[v,V]):V()},clone(v){return qo(v,t,n,o)}};return I}function Uo(e){if(Zn(e))return e=Pt(e),e.children=null,e}function xs(e){return Zn(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 Ss(e,t=!1,n){let o=[],r=0;for(let s=0;s<e.length;s++){let i=e[s];const l=n==null?i.key:String(n)+String(i.key!=null?i.key:s);i.type===xe?(i.patchFlag&128&&r++,o=o.concat(Ss(i.children,t,l))):(t||i.type!==ot)&&o.push(l!=null?Pt(i,{key:l}):i)}if(r>1)for(let s=0;s<o.length;s++)o[s].patchFlag=-2;return o}/*! #__NO_SIDE_EFFECTS__ */function Se(e,t){return ee(e)?(()=>be({name:e.name},t,{setup:e}))():e}const mn=e=>!!e.type.__asyncLoader,Zn=e=>e.type.__isKeepAlive;function Ta(e,t){ks(e,"a",t)}function $a(e,t){ks(e,"da",t)}function ks(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);yt(()=>{xo(o[t],r)},n)}function Gn(e,t,n=Pe,o=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;kt();const l=xn(n),a=et(t,n,e,i);return l(),It(),a});return o?r.unshift(s):r.push(s),s}}const bt=e=>(t,n=Pe)=>(!ao||e==="sp")&&Gn(e,(...o)=>t(...o),n),Pa=bt("bm"),nt=bt("m"),Ma=bt("bu"),Oa=bt("u"),Xo=bt("bum"),yt=bt("um"),La=bt("sp"),Aa=bt("rtg"),za=bt("rtc");function ja(e,t=Pe){Gn("ec",e,t)}function vn(e,t,n,o){let r;const s=n&&n[o];if(J(e)||ye(e)){r=new Array(e.length);for(let i=0,l=e.length;i<l;i++)r[i]=t(e[i],i,void 0,s&&s[i])}else if(typeof e=="number"){r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i+1,i,void 0,s&&s[i])}else if(me(e))if(e[Symbol.iterator])r=Array.from(e,(i,l)=>t(i,l,void 0,s&&s[l]));else{const i=Object.keys(e);r=new Array(i.length);for(let l=0,a=i.length;l<a;l++){const c=i[l];r[l]=t(e[c],c,l,s&&s[l])}}else r=[];return n&&(n[o]=r),r}function Is(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(J(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 s=o.fn(...r);return s&&(s.key=o.key),s}:o.fn)}return e}function we(e,t,n={},o,r){if(Te.isCE||Te.parent&&mn(Te.parent)&&Te.parent.isCE)return t!=="default"&&(n.name=t),Z("slot",n,o&&o());let s=e[t];s&&s._c&&(s._d=!1),R();const i=s&&Cs(s(n)),l=ve(xe,{key:n.key||i&&i.key||`_${t}`},i||(o?o():[]),i&&e._===1?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function Cs(e){return e.some(t=>oo(t)?!(t.type===ot||t.type===xe&&!Cs(t.children)):!0)?e:null}const Zo=e=>e?Us(e)?co(e)||e.proxy:Zo(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=>Zo(e.parent),$root:e=>Zo(e.root),$emit:e=>e.emit,$options:e=>Jo(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Ho(e.update)}),$nextTick:e=>e.n||(e.n=vt.bind(e.proxy)),$watch:e=>ka.bind(e)}),Go=(e,t)=>e!==ie&&!e.__isScriptSetup&&ce(e,t),Da={get({_:e},t){const{ctx:n,setupState:o,data:r,props:s,accessCache:i,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const S=i[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 s[t]}else{if(Go(o,t))return i[t]=1,o[t];if(r!==ie&&ce(r,t))return i[t]=2,r[t];if((c=e.propsOptions[0])&&ce(c,t))return i[t]=3,s[t];if(n!==ie&&ce(n,t))return i[t]=4,n[t];Qo&&(i[t]=0)}}const u=_n[t];let f,h;if(u)return t==="$attrs"&&Be(e,"get",t),u(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==ie&&ce(n,t))return i[t]=4,n[t];if(h=a.config.globalProperties,ce(h,t))return h[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:s}=e;return Go(r,t)?(r[t]=n,!0):o!==ie&&ce(o,t)?(o[t]=n,!0):ce(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:s}},i){let l;return!!n[i]||e!==ie&&ce(e,i)||Go(t,i)||(l=s[0])&&ce(l,i)||ce(o,i)||ce(_n,i)||ce(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ce(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Qn(e){return J(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Et(e,t){return!e||!t?e||t:J(e)&&J(t)?e.concat(t):be({},Qn(e),Qn(t))}let Qo=!0;function Ra(e){const t=Jo(e),n=e.proxy,o=e.ctx;Qo=!1,t.beforeCreate&&Ts(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:i,watch:l,provide:a,inject:c,created:u,beforeMount:f,mounted:h,beforeUpdate:S,updated:y,activated:w,deactivated:L,beforeDestroy:M,beforeUnmount:W,destroyed:b,unmounted:B,render:k,renderTracked:m,renderTriggered:I,errorCaptured:v,serverPrefetch:T,expose:A,inheritAttrs:G,components:V,directives:se,filters:de}=t;if(c&&Ba(c,o,null),i)for(const C in i){const D=i[C];ee(D)&&(o[C]=D.bind(n))}if(r){const C=r.call(n,n);me(C)&&(e.data=un(C))}if(Qo=!0,s)for(const C in s){const D=s[C],re=ee(D)?D.bind(n,n):ee(D.get)?D.get.bind(n,n):qe,ae=!ee(D)&&ee(D.set)?D.set.bind(n):qe,ge=oe({get:re,set:ae});Object.defineProperty(o,C,{enumerable:!0,configurable:!0,get:()=>ge.value,set:Ee=>ge.value=Ee})}if(l)for(const C in l)$s(l[C],o,n,C);if(a){const C=ee(a)?a.call(n):a;Reflect.ownKeys(C).forEach(D=>{to(D,C[D])})}u&&Ts(u,e,"c");function x(C,D){J(D)?D.forEach(re=>C(re.bind(n))):D&&C(D.bind(n))}if(x(Pa,f),x(nt,h),x(Ma,S),x(Oa,y),x(Ta,w),x($a,L),x(ja,v),x(za,m),x(Aa,I),x(Xo,W),x(yt,B),x(La,T),J(A))if(A.length){const C=e.exposed||(e.exposed={});A.forEach(D=>{Object.defineProperty(C,D,{get:()=>n[D],set:re=>n[D]=re})})}else e.exposed||(e.exposed={});k&&e.render===qe&&(e.render=k),G!=null&&(e.inheritAttrs=G),V&&(e.components=V),se&&(e.directives=se)}function Ba(e,t,n=qe){J(e)&&(e=er(e));for(const o in e){const r=e[o];let s;me(r)?"default"in r?s=Wt(r.from||o,r.default,!0):s=Wt(r.from||o):s=Wt(r),Ce(s)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[o]=s}}function Ts(e,t,n){et(J(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function $s(e,t,n,o){const r=o.includes(".")?bs(n,o):()=>n[o];if(ye(e)){const s=t[e];ee(s)&&fe(r,s)}else if(ee(e))fe(r,e.bind(n));else if(me(e))if(J(e))e.forEach(s=>$s(s,t,n,o));else{const s=ee(e.handler)?e.handler.bind(n):t[e.handler];ee(s)&&fe(r,s,e)}}function Jo(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,l=s.get(t);let a;return l?a=l:!r.length&&!n&&!o?a=t:(a={},r.length&&r.forEach(c=>Jn(a,c,i,!0)),Jn(a,t,i)),me(t)&&s.set(t,a),a}function Jn(e,t,n,o=!1){const{mixins:r,extends:s}=t;s&&Jn(e,s,n,!0),r&&r.forEach(i=>Jn(e,i,n,!0));for(const i in t)if(!(o&&i==="expose")){const l=Va[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Va={data:Es,props:Ps,emits:Ps,methods:bn,computed:bn,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:bn,directives:bn,watch:Fa,provide:Es,inject:Na};function Es(e,t){return t?e?function(){return be(ee(e)?e.call(this,this):e,ee(t)?t.call(this,this):t)}:t:e}function Na(e,t){return bn(er(e),er(t))}function er(e){if(J(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 bn(e,t){return e?be(Object.create(null),e,t):t}function Ps(e,t){return e?J(e)&&J(t)?[...new Set([...e,...t])]:be(Object.create(null),Qn(e),Qn(t??{})):t}function Fa(e,t){if(!e)return t;if(!t)return e;const n=be(Object.create(null),e);for(const o in t)n[o]=ze(e[o],t[o]);return n}function Ms(){return{app:null,config:{isNativeTag:_l,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 Ha=0;function Wa(e,t){return function(o,r=null){ee(o)||(o=be({},o)),r!=null&&!me(r)&&(r=null);const s=Ms(),i=new WeakSet;let l=!1;const a=s.app={_uid:Ha++,_component:o,_props:r,_container:null,_context:s,_instance:null,version:gc,get config(){return s.config},set config(c){},use(c,...u){return i.has(c)||(c&&ee(c.install)?(i.add(c),c.install(a,...u)):ee(c)&&(i.add(c),c(a,...u))),a},mixin(c){return s.mixins.includes(c)||s.mixins.push(c),a},component(c,u){return u?(s.components[c]=u,a):s.components[c]},directive(c,u){return u?(s.directives[c]=u,a):s.directives[c]},mount(c,u,f){if(!l){const h=Z(o,r);return h.appContext=s,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 s.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 Wt(e,t,n=!1){const o=Pe||Te;if(o||eo){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:eo._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&ee(t)?t.call(o&&o.proxy):t}}function Ka(e,t,n,o=!1){const r={},s={};Dn(s,ro,1),e.propsDefaults=Object.create(null),Os(e,t,r,s);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=o?r:Zl(r):e.type.props?e.props=r:e.props=s,e.attrs=s}function qa(e,t,n,o){const{props:r,attrs:s,vnode:{patchFlag:i}}=e,l=le(r),[a]=e.propsOptions;let c=!1;if((o||i>0)&&!(i&16)){if(i&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(ce(s,h))S!==s[h]&&(s[h]=S,c=!0);else{const y=Re(h);r[y]=tr(a,l,y,S,e,!1)}else S!==s[h]&&(s[h]=S,c=!0)}}}else{Os(e,t,r,s)&&(c=!0);let u;for(const f in l)(!t||!ce(t,f)&&((u=Ue(f))===f||!ce(t,u)))&&(a?n&&(n[f]!==void 0||n[u]!==void 0)&&(r[f]=tr(a,l,f,void 0,e,!0)):delete r[f]);if(s!==l)for(const f in s)(!t||!ce(t,f))&&(delete s[f],c=!0)}c&&gt(e,"set","$attrs")}function Os(e,t,n,o){const[r,s]=e.propsOptions;let i=!1,l;if(t)for(let a in t){if(Ln(a))continue;const c=t[a];let u;r&&ce(r,u=Re(a))?!s||!s.includes(u)?n[u]=c:(l||(l={}))[u]=c:qn(e.emitsOptions,a)||(!(a in o)||c!==o[a])&&(o[a]=c,i=!0)}if(s){const a=le(n),c=l||ie;for(let u=0;u<s.length;u++){const f=s[u];n[f]=tr(r,a,f,c[f],e,!ce(c,f))}}return i}function tr(e,t,n,o,r,s){const i=e[n];if(i!=null){const l=ce(i,"default");if(l&&o===void 0){const a=i.default;if(i.type!==Function&&!i.skipFactory&&ee(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}i[0]&&(s&&!l?o=!1:i[1]&&(o===""||o===Ue(n))&&(o=!0))}return o}function Ls(e,t,n=!1){const o=t.propsCache,r=o.get(e);if(r)return r;const s=e.props,i={},l=[];let a=!1;if(!ee(e)){const u=f=>{a=!0;const[h,S]=Ls(f,t,!0);be(i,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(!s&&!a)return me(e)&&o.set(e,Qe),Qe;if(J(s))for(let u=0;u<s.length;u++){const f=Re(s[u]);As(f)&&(i[f]=ie)}else if(s)for(const u in s){const f=Re(u);if(As(f)){const h=s[u],S=i[f]=J(h)||ee(h)?{type:h}:be({},h);if(S){const y=Ds(Boolean,S.type),w=Ds(String,S.type);S[0]=y>-1,S[1]=w<0||y<w,(y>-1||ce(S,"default"))&&l.push(f)}}}const c=[i,l];return me(e)&&o.set(e,c),c}function As(e){return e[0]!=="$"}function zs(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function js(e,t){return zs(e)===zs(t)}function Ds(e,t){return J(t)?t.findIndex(n=>js(n,e)):ee(t)&&js(t,e)?0:-1}const Rs=e=>e[0]==="_"||e==="$stable",nr=e=>J(e)?e.map(ut):[ut(e)],Ua=(e,t,n)=>{if(t._n)return t;const o=te((...r)=>nr(t(...r)),n);return o._c=!1,o},Bs=(e,t,n)=>{const o=e._ctx;for(const r in e){if(Rs(r))continue;const s=e[r];if(ee(s))t[r]=Ua(r,s,o);else if(s!=null){const i=nr(s);t[r]=()=>i}}},Vs=(e,t)=>{const n=nr(t);e.slots.default=()=>n},Ya=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=le(t),Dn(t,"_",n)):Bs(t,e.slots={})}else e.slots={},t&&Vs(e,t);Dn(e.slots,ro,1)},Xa=(e,t,n)=>{const{vnode:o,slots:r}=e;let s=!0,i=ie;if(o.shapeFlag&32){const l=t._;l?n&&l===1?s=!1:(be(r,t),!n&&l===1&&delete r._):(s=!t.$stable,Bs(t,r)),i=t}else t&&(Vs(e,t),i={default:1});if(s)for(const l in r)!Rs(l)&&i[l]==null&&delete r[l]};function or(e,t,n,o,r=!1){if(J(e)){e.forEach((h,S)=>or(h,t&&(J(t)?t[S]:t),n,o,r));return}if(mn(o)&&!r)return;const s=o.shapeFlag&4?co(o.component)||o.component.proxy:o.el,i=r?null:s,{i:l,r:a}=e,c=t&&t.r,u=l.refs===ie?l.refs={}:l.refs,f=l.setupState;if(c!=null&&c!==a&&(ye(c)?(u[c]=null,ce(f,c)&&(f[c]=null)):Ce(c)&&(c.value=null)),ee(a))mt(a,l,12,[i,u]);else{const h=ye(a),S=Ce(a),y=e.f;if(h||S){const w=()=>{if(y){const L=h?ce(f,a)?f[a]:u[a]:a.value;r?J(L)&&xo(L,s):J(L)?L.includes(s)||L.push(s):h?(u[a]=[s],ce(f,a)&&(f[a]=u[a])):(a.value=[s],e.k&&(u[e.k]=a.value))}else h?(u[a]=i,ce(f,a)&&(f[a]=i)):S&&(a.value=i,e.k&&(u[e.k]=i))};r||y?w():(w.id=-1,Ve(w,n))}}}function Za(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(To().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Ve=ya;function Ga(e){return Qa(e)}function Qa(e,t){Za();const n=To();n.__VUE__=!0;const{insert:o,remove:r,patchProp:s,createElement:i,createText:l,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:h,setScopeId:S=qe,insertStaticContent:y}=e,w=(d,p,_,$=null,P=null,j=null,N=void 0,z=null,F=!!p.dynamicChildren)=>{if(d===p)return;d&&!qt(d,p)&&($=Ze(d),Ee(d,P,j,!0),d=null),p.patchFlag===-2&&(F=!1,p.dynamicChildren=null);const{type:O,ref:H,shapeFlag:Q}=p;switch(O){case no:L(d,p,_,$);break;case ot:M(d,p,_,$);break;case sr:d==null&&W(p,_,$,N);break;case xe:V(d,p,_,$,P,j,N,z,F);break;default:Q&1?k(d,p,_,$,P,j,N,z,F):Q&6?se(d,p,_,$,P,j,N,z,F):(Q&64||Q&128)&&O.process(d,p,_,$,P,j,N,z,F,ht)}H!=null&&P&&or(H,d&&d.ref,j,p||d,!p)},L=(d,p,_,$)=>{if(d==null)o(p.el=l(p.children),_,$);else{const P=p.el=d.el;p.children!==d.children&&c(P,p.children)}},M=(d,p,_,$)=>{d==null?o(p.el=a(p.children||""),_,$):p.el=d.el},W=(d,p,_,$)=>{[d.el,d.anchor]=y(d.children,p,_,$,d.el,d.anchor)},b=({el:d,anchor:p},_,$)=>{let P;for(;d&&d!==p;)P=h(d),o(d,_,$),d=P;o(p,_,$)},B=({el:d,anchor:p})=>{let _;for(;d&&d!==p;)_=h(d),r(d),d=_;r(p)},k=(d,p,_,$,P,j,N,z,F)=>{p.type==="svg"?N="svg":p.type==="math"&&(N="mathml"),d==null?m(p,_,$,P,j,N,z,F):T(d,p,P,j,N,z,F)},m=(d,p,_,$,P,j,N,z)=>{let F,O;const{props:H,shapeFlag:Q,transition:g,dirs:E}=d;if(F=d.el=i(d.type,j,H&&H.is,H),Q&8?u(F,d.children):Q&16&&v(d.children,F,null,$,P,rr(d,j),N,z),E&&Ht(d,null,$,"created"),I(F,d,d.scopeId,N,$),H){for(const ne in H)ne!=="value"&&!Ln(ne)&&s(F,ne,null,H[ne],j,d.children,$,P,Le);"value"in H&&s(F,"value",null,H.value,j),(O=H.onVnodeBeforeMount)&&dt(O,$,d)}E&&Ht(d,null,$,"beforeMount");const q=Ja(P,g);q&&g.beforeEnter(F),o(F,p,_),((O=H&&H.onVnodeMounted)||q||E)&&Ve(()=>{O&&dt(O,$,d),q&&g.enter(F),E&&Ht(d,null,$,"mounted")},P)},I=(d,p,_,$,P)=>{if(_&&S(d,_),$)for(let j=0;j<$.length;j++)S(d,$[j]);if(P){let j=P.subTree;if(p===j){const N=P.vnode;I(d,N,N.scopeId,N.slotScopeIds,P.parent)}}},v=(d,p,_,$,P,j,N,z,F=0)=>{for(let O=F;O<d.length;O++){const H=d[O]=z?Ot(d[O]):ut(d[O]);w(null,H,p,_,$,P,j,N,z)}},T=(d,p,_,$,P,j,N)=>{const z=p.el=d.el;let{patchFlag:F,dynamicChildren:O,dirs:H}=p;F|=d.patchFlag&16;const Q=d.props||ie,g=p.props||ie;let E;if(_&&Kt(_,!1),(E=g.onVnodeBeforeUpdate)&&dt(E,_,p,d),H&&Ht(p,d,_,"beforeUpdate"),_&&Kt(_,!0),O?A(d.dynamicChildren,O,z,_,$,rr(p,P),j):N||D(d,p,z,null,_,$,rr(p,P),j,!1),F>0){if(F&16)G(z,p,Q,g,_,$,P);else if(F&2&&Q.class!==g.class&&s(z,"class",null,g.class,P),F&4&&s(z,"style",Q.style,g.style,P),F&8){const q=p.dynamicProps;for(let ne=0;ne<q.length;ne++){const ue=q[ne],ke=Q[ue],Ge=g[ue];(Ge!==ke||ue==="value")&&s(z,ue,ke,Ge,P,d.children,_,$,Le)}}F&1&&d.children!==p.children&&u(z,p.children)}else!N&&O==null&&G(z,p,Q,g,_,$,P);((E=g.onVnodeUpdated)||H)&&Ve(()=>{E&&dt(E,_,p,d),H&&Ht(p,d,_,"updated")},$)},A=(d,p,_,$,P,j,N)=>{for(let z=0;z<p.length;z++){const F=d[z],O=p[z],H=F.el&&(F.type===xe||!qt(F,O)||F.shapeFlag&70)?f(F.el):_;w(F,O,H,null,$,P,j,N,!0)}},G=(d,p,_,$,P,j,N)=>{if(_!==$){if(_!==ie)for(const z in _)!Ln(z)&&!(z in $)&&s(d,z,_[z],null,N,p.children,P,j,Le);for(const z in $){if(Ln(z))continue;const F=$[z],O=_[z];F!==O&&z!=="value"&&s(d,z,O,F,N,p.children,P,j,Le)}"value"in $&&s(d,"value",_.value,$.value,N)}},V=(d,p,_,$,P,j,N,z,F)=>{const O=p.el=d?d.el:l(""),H=p.anchor=d?d.anchor:l("");let{patchFlag:Q,dynamicChildren:g,slotScopeIds:E}=p;E&&(z=z?z.concat(E):E),d==null?(o(O,_,$),o(H,_,$),v(p.children||[],_,H,P,j,N,z,F)):Q>0&&Q&64&&g&&d.dynamicChildren?(A(d.dynamicChildren,g,_,P,j,N,z),(p.key!=null||P&&p===P.subTree)&&Ns(d,p,!0)):D(d,p,_,H,P,j,N,z,F)},se=(d,p,_,$,P,j,N,z,F)=>{p.slotScopeIds=z,d==null?p.shapeFlag&512?P.ctx.activate(p,_,$,N,F):de(p,_,$,P,j,N,F):pe(d,p,F)},de=(d,p,_,$,P,j,N)=>{const z=d.component=lc(d,$,P);if(Zn(d)&&(z.ctx.renderer=ht),ac(z),z.asyncDep){if(P&&P.registerDep(z,x),!d.el){const F=z.subTree=Z(ot);M(null,F,p,_)}}else x(z,d,p,_,P,j,N)},pe=(d,p,_)=>{const $=p.component=d.component;if(ga(d,p,_))if($.asyncDep&&!$.asyncResolved){C($,p,_);return}else $.next=p,ca($.update),$.effect.dirty=!0,$.update();else p.el=d.el,$.vnode=p},x=(d,p,_,$,P,j,N)=>{const z=()=>{if(d.isMounted){let{next:H,bu:Q,u:g,parent:E,vnode:q}=d;{const Rt=Fs(d);if(Rt){H&&(H.el=q.el,C(d,H,N)),Rt.asyncDep.then(()=>{d.isUnmounted||z()});return}}let ne=H,ue;Kt(d,!1),H?(H.el=q.el,C(d,H,N)):H=q,Q&&jn(Q),(ue=H.props&&H.props.onVnodeBeforeUpdate)&&dt(ue,E,H,q),Kt(d,!0);const ke=Wo(d),Ge=d.subTree;d.subTree=ke,w(Ge,ke,f(Ge.el),Ze(Ge),d,P,j),H.el=ke.el,ne===null&&ma(d,ke.el),g&&Ve(g,P),(ue=H.props&&H.props.onVnodeUpdated)&&Ve(()=>dt(ue,E,H,q),P)}else{let H;const{el:Q,props:g}=p,{bm:E,m:q,parent:ne}=d,ue=mn(p);if(Kt(d,!1),E&&jn(E),!ue&&(H=g&&g.onVnodeBeforeMount)&&dt(H,ne,p),Kt(d,!0),Q&&xt){const ke=()=>{d.subTree=Wo(d),xt(Q,d.subTree,d,P,null)};ue?p.type.__asyncLoader().then(()=>!d.isUnmounted&&ke()):ke()}else{const ke=d.subTree=Wo(d);w(null,ke,_,$,d,P,j),p.el=ke.el}if(q&&Ve(q,P),!ue&&(H=g&&g.onVnodeMounted)){const ke=p;Ve(()=>dt(H,ne,ke),P)}(p.shapeFlag&256||ne&&mn(ne.vnode)&&ne.vnode.shapeFlag&256)&&d.a&&Ve(d.a,P),d.isMounted=!0,p=_=$=null}},F=d.effect=new Eo(z,qe,()=>Ho(O),d.scope),O=d.update=()=>{F.dirty&&F.run()};O.id=d.uid,Kt(d,!0),O()},C=(d,p,_)=>{p.component=d;const $=d.vnode.props;d.vnode=p,d.next=null,qa(d,p.props,$,_),Xa(d,p.children,_),kt(),us(d),It()},D=(d,p,_,$,P,j,N,z,F=!1)=>{const O=d&&d.children,H=d?d.shapeFlag:0,Q=p.children,{patchFlag:g,shapeFlag:E}=p;if(g>0){if(g&128){ae(O,Q,_,$,P,j,N,z,F);return}else if(g&256){re(O,Q,_,$,P,j,N,z,F);return}}E&8?(H&16&&Le(O,P,j),Q!==O&&u(_,Q)):H&16?E&16?ae(O,Q,_,$,P,j,N,z,F):Le(O,P,j,!0):(H&8&&u(_,""),E&16&&v(Q,_,$,P,j,N,z,F))},re=(d,p,_,$,P,j,N,z,F)=>{d=d||Qe,p=p||Qe;const O=d.length,H=p.length,Q=Math.min(O,H);let g;for(g=0;g<Q;g++){const E=p[g]=F?Ot(p[g]):ut(p[g]);w(d[g],E,_,null,P,j,N,z,F)}O>H?Le(d,P,j,!0,!1,Q):v(p,_,$,P,j,N,z,F,Q)},ae=(d,p,_,$,P,j,N,z,F)=>{let O=0;const H=p.length;let Q=d.length-1,g=H-1;for(;O<=Q&&O<=g;){const E=d[O],q=p[O]=F?Ot(p[O]):ut(p[O]);if(qt(E,q))w(E,q,_,null,P,j,N,z,F);else break;O++}for(;O<=Q&&O<=g;){const E=d[Q],q=p[g]=F?Ot(p[g]):ut(p[g]);if(qt(E,q))w(E,q,_,null,P,j,N,z,F);else break;Q--,g--}if(O>Q){if(O<=g){const E=g+1,q=E<H?p[E].el:$;for(;O<=g;)w(null,p[O]=F?Ot(p[O]):ut(p[O]),_,q,P,j,N,z,F),O++}}else if(O>g)for(;O<=Q;)Ee(d[O],P,j,!0),O++;else{const E=O,q=O,ne=new Map;for(O=q;O<=g;O++){const De=p[O]=F?Ot(p[O]):ut(p[O]);De.key!=null&&ne.set(De.key,O)}let ue,ke=0;const Ge=g-q+1;let Rt=!1,_o=0;const He=new Array(Ge);for(O=0;O<Ge;O++)He[O]=0;for(O=E;O<=Q;O++){const De=d[O];if(ke>=Ge){Ee(De,P,j,!0);continue}let it;if(De.key!=null)it=ne.get(De.key);else for(ue=q;ue<=g;ue++)if(He[ue-q]===0&&qt(De,p[ue])){it=ue;break}it===void 0?Ee(De,P,j,!0):(He[it-q]=O+1,it>=_o?_o=it:Rt=!0,w(De,p[it],_,null,P,j,N,z,F),ke++)}const bo=Rt?ec(He):Qe;for(ue=bo.length-1,O=Ge-1;O>=0;O--){const De=q+O,it=p[De],yo=De+1<H?p[De+1].el:$;He[O]===0?w(null,it,_,yo,P,j,N,z,F):Rt&&(ue<0||O!==bo[ue]?ge(it,_,yo,2):ue--)}}},ge=(d,p,_,$,P=null)=>{const{el:j,type:N,transition:z,children:F,shapeFlag:O}=d;if(O&6){ge(d.component.subTree,p,_,$);return}if(O&128){d.suspense.move(p,_,$);return}if(O&64){N.move(d,p,_,ht);return}if(N===xe){o(j,p,_);for(let Q=0;Q<F.length;Q++)ge(F[Q],p,_,$);o(d.anchor,p,_);return}if(N===sr){b(d,p,_);return}if($!==2&&O&1&&z)if($===0)z.beforeEnter(j),o(j,p,_),Ve(()=>z.enter(j),P);else{const{leave:Q,delayLeave:g,afterLeave:E}=z,q=()=>o(j,p,_),ne=()=>{Q(j,()=>{q(),E&&E()})};g?g(j,q,ne):ne()}else o(j,p,_)},Ee=(d,p,_,$=!1,P=!1)=>{const{type:j,props:N,ref:z,children:F,dynamicChildren:O,shapeFlag:H,patchFlag:Q,dirs:g}=d;if(z!=null&&or(z,null,_,d,!0),H&256){p.ctx.deactivate(d);return}const E=H&1&&g,q=!mn(d);let ne;if(q&&(ne=N&&N.onVnodeBeforeUnmount)&&dt(ne,p,d),H&6)pt(d.component,_,$);else{if(H&128){d.suspense.unmount(_,$);return}E&&Ht(d,null,p,"beforeUnmount"),H&64?d.type.remove(d,p,_,P,ht,$):O&&(j!==xe||Q>0&&Q&64)?Le(O,p,_,!1,!0):(j===xe&&Q&384||!P&&H&16)&&Le(F,p,_),$&&Me(d)}(q&&(ne=N&&N.onVnodeUnmounted)||E)&&Ve(()=>{ne&&dt(ne,p,d),E&&Ht(d,null,p,"unmounted")},_)},Me=d=>{const{type:p,el:_,anchor:$,transition:P}=d;if(p===xe){Ne(_,$);return}if(p===sr){B(d);return}const j=()=>{r(_),P&&!P.persisted&&P.afterLeave&&P.afterLeave()};if(d.shapeFlag&1&&P&&!P.persisted){const{leave:N,delayLeave:z}=P,F=()=>N(_,j);z?z(d.el,j,F):F()}else j()},Ne=(d,p)=>{let _;for(;d!==p;)_=h(d),r(d),d=_;r(p)},pt=(d,p,_)=>{const{bum:$,scope:P,update:j,subTree:N,um:z}=d;$&&jn($),P.stop(),j&&(j.active=!1,Ee(N,d,p,_)),z&&Ve(z,p),Ve(()=>{d.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&d.asyncDep&&!d.asyncResolved&&d.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},Le=(d,p,_,$=!1,P=!1,j=0)=>{for(let N=j;N<d.length;N++)Ee(d[N],p,_,$,P)},Ze=d=>d.shapeFlag&6?Ze(d.component.subTree):d.shapeFlag&128?d.suspense.next():h(d.anchor||d.el);let st=!1;const Fe=(d,p,_)=>{d==null?p._vnode&&Ee(p._vnode,null,null,!0):w(p._vnode||null,d,p,null,null,null,_),st||(st=!0,us(),ds(),st=!1),p._vnode=d},ht={p:w,um:Ee,m:ge,r:Me,mt:de,mc:v,pc:D,pbc:A,n:Ze,o:e};let Dt,xt;return t&&([Dt,xt]=t(ht)),{render:Fe,hydrate:Dt,createApp:Wa(Fe,Dt)}}function rr({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 Ja(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ns(e,t,n=!1){const o=e.children,r=t.children;if(J(o)&&J(r))for(let s=0;s<o.length;s++){const i=o[s];let l=r[s];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[s]=Ot(r[s]),l.el=i.el),n||Ns(i,l)),l.type===no&&(l.el=i.el)}}function ec(e){const t=e.slice(),n=[0];let o,r,s,i,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(s=0,i=n.length-1;s<i;)l=s+i>>1,e[n[l]]<c?s=l+1:i=l;c<e[n[s]]&&(s>0&&(t[o]=n[s-1]),n[s]=o)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}function Fs(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Fs(t)}const tc=e=>e.__isTeleport,xe=Symbol.for("v-fgt"),no=Symbol.for("v-txt"),ot=Symbol.for("v-cmt"),sr=Symbol.for("v-stc"),yn=[];let lt=null;function R(e=!1){yn.push(lt=e?null:[])}function nc(){yn.pop(),lt=yn[yn.length-1]||null}let wn=1;function Hs(e){wn+=e}function Ws(e){return e.dynamicChildren=wn>0?lt||Qe:null,nc(),wn>0&&lt&&lt.push(e),e}function K(e,t,n,o,r,s){return Ws(U(e,t,n,o,r,s,!0))}function ve(e,t,n,o,r){return Ws(Z(e,t,n,o,r,!0))}function oo(e){return e?e.__v_isVNode===!0:!1}function qt(e,t){return e.type===t.type&&e.key===t.key}const ro="__vInternal",Ks=({key:e})=>e??null,so=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||Ce(e)||ee(e)?{i:Te,r:e,k:t,f:!!n}:e:null);function U(e,t=null,n=null,o=0,r=null,s=e===xe?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ks(t),ref:t&&so(t),scopeId:hs,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:s,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Te};return l?(ir(a,n),s&128&&e.normalize(a)):n&&(a.shapeFlag|=ye(n)?8:16),wn>0&&!i&&lt&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&lt.push(a),a}const Z=oc;function oc(e,t=null,n=null,o=0,r=null,s=!1){if((!e||e===vs)&&(e=ot),oo(e)){const l=Pt(e,t,!0);return n&&ir(l,n),wn>0&&!s&&lt&&(l.shapeFlag&6?lt[lt.indexOf(e)]=l:lt.push(l)),l.patchFlag|=-2,l}if(hc(e)&&(e=e.__vccOpts),t){t=rc(t);let{class:l,style:a}=t;l&&!ye(l)&&(t.class=Ie(l)),me(a)&&(os(a)&&!J(a)&&(a=be({},a)),t.style=Ae(a))}const i=ye(e)?1:ba(e)?128:tc(e)?64:me(e)?4:ee(e)?2:0;return U(e,t,n,o,r,i,s,!0)}function rc(e){return e?os(e)||ro in e?be({},e):e:null}function Pt(e,t,n=!1){const{props:o,ref:r,patchFlag:s,children:i}=e,l=t?io(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Ks(l),ref:t&&t.ref?n&&r?J(r)?r.concat(so(t)):[r,so(t)]:so(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==xe?s===-1?16:s|16:s,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(no,null,e,t)}function $e(e="",t=!1){return t?(R(),ve(ot,null,e)):Z(ot,null,e)}function ut(e){return e==null||typeof e=="boolean"?Z(ot):J(e)?Z(xe,null,e.slice()):typeof e=="object"?Ot(e):Z(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(J(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=Te:r===3&&Te&&(Te.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ee(t)?(t={default:t,_ctx:Te},n=32):(t=String(t),o&64?(n=16,t=[Mt(t)]):n=8);e.children=t,e.shapeFlag|=n}function io(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const r in o)if(r==="class")t.class!==o.class&&(t.class=Ie([t.class,o.class]));else if(r==="style")t.style=Ae([t.style,o.style]);else if(Mn(r)){const s=t[r],i=o[r];i&&s!==i&&!(J(s)&&s.includes(i))&&(t[r]=s?[].concat(s,i):i)}else r!==""&&(t[r]=o[r])}return t}function dt(e,t,n,o=null){et(e,t,7,[n,o])}const sc=Ms();let ic=0;function lc(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||sc,s={uid:ic++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new $l(!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:Ls(o,r),emitsOptions:ps(o,r),emit:null,emitted:null,propsDefaults:ie,inheritAttrs:o.inheritAttrs,ctx:ie,data:ie,props:ie,attrs:ie,slots:ie,refs:ie,setupState:ie,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 s.ctx={_:s},s.root=t?t.root:s,s.emit=fa.bind(null,s),e.ce&&e.ce(s),s}let Pe=null;const lr=()=>Pe||Te;let lo,ar;{const e=To(),t=(n,o)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(o),s=>{r.length>1?r.forEach(i=>i(s)):r[0](s)}};lo=t("__VUE_INSTANCE_SETTERS__",n=>Pe=n),ar=t("__VUE_SSR_SETTERS__",n=>ao=n)}const xn=e=>{const t=Pe;return lo(e),e.scope.on(),()=>{e.scope.off(),lo(t)}},qs=()=>{Pe&&Pe.scope.off(),lo(null)};function Us(e){return e.vnode.shapeFlag&4}let ao=!1;function ac(e,t=!1){t&&ar(t);const{props:n,children:o}=e.vnode,r=Us(e);Ka(e,n,r,t),Ya(e,o);const s=r?cc(e,t):void 0;return t&&ar(!1),s}function cc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=rs(new Proxy(e.ctx,Da));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?dc(e):null,s=xn(e);kt();const i=mt(o,e,0,[e.props,r]);if(It(),s(),Pr(i)){if(i.then(qs,qs),t)return i.then(l=>{Ys(e,l,t)}).catch(l=>{Kn(l,e,0)});e.asyncDep=i}else Ys(e,i,t)}else Zs(e,t)}function Ys(e,t,n){ee(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:me(t)&&(e.setupState=is(t)),Zs(e,n)}let Xs;function Zs(e,t,n){const o=e.type;if(!e.render){if(!t&&Xs&&!o.render){const r=o.template||Jo(e).template;if(r){const{isCustomElement:s,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,c=be(be({isCustomElement:s,delimiters:l},i),a);o.render=Xs(r,c)}}e.render=o.render||qe}{const r=xn(e);kt();try{Ra(e)}finally{It(),r()}}}function uc(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Be(e,"get","$attrs"),t[n]}}))}function dc(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return uc(e)},slots:e.slots,emit:e.emit,expose:t}}function co(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(is(rs(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 fc=/(?:^|[-_])(\w)/g,pc=e=>e.replace(fc,t=>t.toUpperCase()).replace(/[-_]/g,"");function Gs(e,t=!0){return ee(e)?e.displayName||e.name:e.name||t&&e.__name}function Qs(e,t,n=!1){let o=Gs(t);if(!o&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(o=r[1])}if(!o&&e&&e.parent){const r=s=>{for(const i in s)if(s[i]===t)return i};o=r(e.components||e.parent.type.components)||r(e.appContext.components)}return o?pc(o):n?"App":"Anonymous"}function hc(e){return ee(e)&&"__vccOpts"in e}const oe=(e,t)=>Gl(e,t,ao);function rn(e,t,n=ie){const o=lr(),r=Re(t),s=Ue(t),i=na((a,c)=>{let u;return Sa(()=>{const f=e[t];at(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||s in h)&&(`onUpdate:${t}`in h||`onUpdate:${r}`in h||`onUpdate:${s}`in h))&&at(f,u)&&(u=f,c()),o.emit(`update:${t}`,n.set?n.set(f):f)}}}),l=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return i[Symbol.iterator]=()=>{let a=0;return{next(){return a<2?{value:a++?e[l]||{}:i,done:!1}:{done:!0}}}},i}function Js(e,t,n){const o=arguments.length;return o===2?me(t)&&!J(t)?oo(t)?Z(e,null,[t]):Z(e,t):Z(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&oo(n)&&(n=[n]),Z(e,t,n))}const gc="3.4.15";/**
17
17
  * @vue/runtime-dom v3.4.15
18
18
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
19
19
  * @license MIT
20
- **/const mc="http://www.w3.org/2000/svg",vc="http://www.w3.org/1998/Math/MathML",At=typeof document<"u"?document:null,es=At&&At.createElement("template"),_c={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"?At.createElementNS(mc,e):t==="mathml"?At.createElementNS(vc,e):At.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>At.createTextNode(e),createComment:e=>At.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>At.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{es.innerHTML=o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e;const l=es.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]}},zt="transition",Sn="animation",kn=Symbol("_vtc"),sn=(e,{slots:t})=>Ji(Ca,bc(e),t);sn.displayName="Transition";const ts={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({},yi,ts);const Yt=(e,t=[])=>{J(e)?e.forEach(n=>n(...t)):e&&e(...t)},ns=e=>e?J(e)?e.some(t=>t.length>1):e.length>1:!1;function bc(e){const t={};for(const V in e)V in ts||(t[V]=e[V]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=i,appearActiveClass:c=s,appearToClass:u=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:S=`${n}-leave-to`}=e,y=yc(r),w=y&&y[0],L=y&&y[1],{onBeforeEnter:M,onEnter:W,onEnterCancelled:b,onLeave:B,onLeaveCancelled:k,onBeforeAppear:m=M,onAppear:I=W,onAppearCancelled:v=b}=t,T=(V,ie,de)=>{Xt(V,ie?u:l),Xt(V,ie?c:s),de&&de()},A=(V,ie)=>{V._isLeaving=!1,Xt(V,f),Xt(V,S),Xt(V,h),ie&&ie()},Q=V=>(ie,de)=>{const pe=V?I:W,x=()=>T(ie,V,de);Yt(pe,[ie,x]),os(()=>{Xt(ie,V?a:i),jt(ie,V?u:l),ns(pe)||rs(ie,o,w,x)})};return be(t,{onBeforeEnter(V){Yt(M,[V]),jt(V,i),jt(V,s)},onBeforeAppear(V){Yt(m,[V]),jt(V,a),jt(V,c)},onEnter:Q(!1),onAppear:Q(!0),onLeave(V,ie){V._isLeaving=!0;const de=()=>A(V,ie);jt(V,f),Sc(),jt(V,h),os(()=>{V._isLeaving&&(Xt(V,f),jt(V,S),ns(B)||rs(V,o,L,de))}),Yt(B,[V,de])},onEnterCancelled(V){T(V,!1),Yt(b,[V])},onAppearCancelled(V){T(V,!0),Yt(v,[V])},onLeaveCancelled(V){A(V),Yt(k,[V])}})}function yc(e){if(e==null)return null;if(me(e))return[cr(e.enter),cr(e.leave)];{const t=cr(e);return[t,t]}}function cr(e){return Co(e)}function jt(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 os(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let wc=0;function rs(e,t,n,o){const r=e._endId=++wc,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:l,propCount:a}=xc(e,t);if(!s)return o();const c=s+"end";let u=0;const 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 xc(e,t){const n=window.getComputedStyle(e),o=y=>(n[y]||"").split(", "),r=o(`${zt}Delay`),i=o(`${zt}Duration`),s=is(r,i),l=o(`${Sn}Delay`),a=o(`${Sn}Duration`),c=is(l,a);let u=null,f=0,h=0;t===zt?s>0&&(u=zt,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?zt:Sn:null,h=u?u===zt?i.length:a.length:0);const S=u===zt&&/\b(transform|all)(,|$)/.test(o(`${zt}Property`).toString());return{type:u,timeout:f,propCount:h,hasTransform:S}}function is(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>ss(n)+ss(e[o])))}function ss(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Sc(){return document.body.offsetHeight}function kc(e,t,n){const o=e[kn];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ur=Symbol("_vod"),ls={beforeMount(e,{value:t},{transition:n}){e[ur]=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[ur]:"none"}const Ic=Symbol("");function Cc(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&&dr(o,s,"");for(const s in n)dr(o,s,n[s])}else if(i){if(t!==n){const s=o[Ic];s&&(n+=";"+s),o.cssText=n}}else t&&e.removeAttribute("style");ur in e&&(o.display=r)}const as=/\s*!important$/;function dr(e,t,n){if(J(n))n.forEach(o=>dr(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Tc(e,t);as.test(n)?e.setProperty(qe(o),n.replace(as,""),"important"):e[o]=n}}const cs=["Webkit","Moz","ms"],fr={};function Tc(e,t){const n=fr[t];if(n)return n;let o=Re(t);if(o!=="filter"&&o in e)return fr[t]=o;o=zn(o);for(let r=0;r<cs.length;r++){const i=cs[r]+o;if(i in e)return fr[t]=i}return t}const us="http://www.w3.org/1999/xlink";function $c(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(us,t.slice(6,t.length)):e.setAttributeNS(us,t,n);else{const i=Tl(t);n==null||i&&!Ar(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=Ar(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 Pc(e,t,n,o){e.removeEventListener(t,n,o)}const ds=Symbol("_vei");function Mc(e,t,n,o,r=null){const i=e[ds]||(e[ds]={}),s=i[t];if(o&&s)s.value=o;else{const[l,a]=Oc(t);if(o){const c=i[t]=zc(o,r);ln(e,l,c,a)}else s&&(Pc(e,l,s,a),i[t]=void 0)}}const fs=/(?:Once|Passive|Capture)$/;function Oc(e){let t;if(fs.test(e)){t={};let o;for(;o=e.match(fs);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):qe(e.slice(2)),t]}let pr=0;const Lc=Promise.resolve(),Ac=()=>pr||(Lc.then(()=>pr=0),pr=Date.now());function zc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Je(jc(o,n.value),t,5,[o])};return n.value=e,n.attached=Ac(),n}function jc(e,t){if(J(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 ps=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Dc=(e,t,n,o,r,i,s,l,a)=>{const c=r==="svg";t==="class"?kc(e,o,c):t==="style"?Cc(e,n,o):Mn(t)?wo(t)||Mc(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Rc(e,t,o,c))?Ec(e,t,o,i,s,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),$c(e,t,o,c))};function Rc(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&ps(t)&&ee(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 ps(t)&&ye(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function Bc(e,t){const n=Se(e);class o extends hr{constructor(i){super(n,i,t)}}return o.def=n,o}const Vc=typeof HTMLElement<"u"?HTMLElement:class{};class hr extends Vc{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||(_s(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&&!J(i))for(const a in i){const c=i[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=Co(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=J(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=Co(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(qe(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(qe(t),n+""):n||this.removeAttribute(qe(t))))}_update(){_s(this._createVNode(),this.shadowRoot)}_createVNode(){const t=Z(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),qe(i)!==i&&o(qe(i),s)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof hr){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 hs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return J(t)?n=>jn(t,n):t};function Nc(e){e.target.composing=!0}function gs(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const gr=Symbol("_assign"),Fc={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[gr]=hs(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=Io(l)),e[gr](l)}),n&&ln(e,"change",()=>{e.value=e.value.trim()}),t||(ln(e,"compositionstart",Nc),ln(e,"compositionend",gs),ln(e,"change",gs))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},i){if(e[gr]=hs(i),e.composing)return;const s=r||e.type==="number"?Io(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===l)||(e.value=l))}},Hc=["ctrl","shift","alt","meta"],Wc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Hc.some(n=>e[`${n}Key`]&&!t.includes(n))},ot=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(r,...i)=>{for(let s=0;s<t.length;s++){const l=Wc[t[s]];if(l&&l(r,t))return}return e(r,...i)})},Kc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ms=(e,t)=>{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=r=>{if(!("key"in r))return;const i=qe(r.key);if(t.some(s=>s===i||Kc[s]===i))return e(r)})},qc=be({patchProp:Dc},_c);let vs;function Uc(){return vs||(vs=Ga(qc))}const _s=(...e)=>{Uc().render(...e)},Yc=`.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},Xc={},Zc={class:"loading-indicator"};function Gc(e,t){return R(),K("div",Zc)}const mr=he(Xc,[["render",Gc],["styles",[Yc]]]),Qc=Object.freeze(Object.defineProperty({__proto__:null,default:mr},Symbol.toStringTag,{value:"Module"})),Jc={key:0,class:"fixed inset-0 h-[101%] overflow-auto scrollbar-none flex justify-center items-center z-10 bg-black"},eu={class:"flex justify-between items-end"},tu={class:"inline-block children-pointer-events-auto w-1/3"},nu={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},ou={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},ru={class:"inline-block z-20 relative"},bs=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=mr;return R(),K("div",{class:Ie(["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(),K("div",Jc,[Z(o)])):$e("",!0),we(t.$slots,"default"),q("div",{id:"controls",class:Ie(["fixed pointer-events-none cursor-auto transition-opacity duration-100 ease-linear left-0 top-0 w-screen h-screen flex flex-col justify-between p-2 sm:p-3 pb-6 md:pb-5 lg:pb-3",{"opacity-100 z-20":!t.fullScreen,"opacity-0 -z-10":t.fullScreen}])},[q("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`})},[we(t.$slots,"back"),we(t.$slots,"exit"),we(t.$slots,"chapter-nav")],4),q("div",eu,[q("div",tu,[we(t.$slots,"page-nav")]),q("div",nu,[we(t.$slots,"reset-zoom")]),q("div",ou,[we(t.$slots,"entry"),q("div",ru,[we(t.$slots,"settings")]),we(t.$slots,"full-screen"),we(t.$slots,"play"),we(t.$slots,"break-first")])]),q("div",{class:Ie(["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
- `]]]),iu=Object.freeze(Object.defineProperty({__proto__:null,default:bs},Symbol.toStringTag,{value:"Module"})),su={},lu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},au=[q("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[q("circle",{cx:"14",cy:"14",r:"12"}),q("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function cu(e,t){return R(),K("svg",lu,au)}const ys=he(su,[["render",cu]]),uu=Object.freeze(Object.defineProperty({__proto__:null,default:ys},Symbol.toStringTag,{value:"Module"})),du={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"},fu={class:"block w-4 h-4"},pu={class:"w-12"},ws=Se({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>{const o=ys;return t.zoom!==1?(R(),K("button",du,[q("div",fu,[Z(o)]),q("div",pu,Qe(Math.ceil(t.zoom*100))+"%",1)])):$e("",!0)}}}),hu=Object.freeze(Object.defineProperty({__proto__:null,default:ws},Symbol.toStringTag,{value:"Module"})),gu={},mu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 56 56"},vu=[q("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 _u(e,t){return R(),K("svg",mu,vu)}const xs=he(gu,[["render",_u]]),bu=Object.freeze(Object.defineProperty({__proto__:null,default:xs},Symbol.toStringTag,{value:"Module"})),yu={},wu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},xu=[q("g",{fill:"none"},[q("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"}),q("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 Su(e,t){return R(),K("svg",wu,xu)}const Ss=he(yu,[["render",Su]]),ku=Object.freeze(Object.defineProperty({__proto__:null,default:Ss},Symbol.toStringTag,{value:"Module"})),Iu={},Cu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Tu=[q("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 $u(e,t){return R(),K("svg",Cu,Tu)}const vr=he(Iu,[["render",$u]]),Eu=Object.freeze(Object.defineProperty({__proto__:null,default:vr},Symbol.toStringTag,{value:"Module"})),Pu={},Mu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Ou=[q("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),q("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 Lu(e,t){return R(),K("svg",Mu,Ou)}const _r=he(Pu,[["render",Lu]]),Au=Object.freeze(Object.defineProperty({__proto__:null,default:_r},Symbol.toStringTag,{value:"Module"}));function zu({touchDevice:e}){const t=Y(!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 br(){const e=Kt("busy:touchDevice"),t=Kt("setBusyState");let n=!1;return bt(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:r=!1}={})=>{r&&e||(n=o,t==null||t(o))}}const ju=(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=>ju(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},Du={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=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(),ve(va(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:ot(a,["stop"]),onMouseenter:s,onMouseleave:l}),{default:te(()=>[q("div",Du,[we(c.$slots,"default")])]),_:3},16,["class"])),[[X(an),c.disabled?0:15]])}}),Ru=Object.freeze(Object.defineProperty({__proto__:null,default:uo},Symbol.toStringTag,{value:"Module"})),Bu={},Vu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Nu=[q("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 Fu(e,t){return R(),K("svg",Vu,Nu)}const ks=he(Bu,[["render",Fu]]),Hu=Object.freeze(Object.defineProperty({__proto__:null,default:ks},Symbol.toStringTag,{value:"Module"}));class Wu{constructor(){_e(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 Ku(){const e=new Wu;return bt(()=>e.dispose()),to("keyController",e),e}function fo(e){const t=Kt("keyController");tt(()=>t.addListener(e)),bt(()=>t.removeListener(e))}const qu={class:"flex w-full flex-shrink-0 justify-between items-center h-16 px-3"},Uu={class:"font-medium md:text-lg text-ellipsis overflow-hidden whitespace-nowrap px-3"},Yu={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},Is=Se({__name:"BottomSheet",props:Pt({name:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=rn(e,"modelValue");fo({onKeyDown:o});const n=br();fe(t,r=>n(r));function o(r){t.value&&r.key==="Escape"&&(t.value=!1,r.preventDefault())}return(r,i)=>{const s=ks,l=uo;return R(),K("div",{class:Ie(["fixed-screen flex flex-col items-center justify-end select-none",{"!pointer-events-none":!t.value}]),onClick:i[3]||(i[3]=()=>t.value=!1)},[Z(sn,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:te(()=>[t.value?(R(),K("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]=ot(()=>{},["stop"])),onWheelPassive:i[2]||(i[2]=ot(()=>{},["stop"]))},[q("div",qu,[Z(l,{transparent:"",onClick:i[0]||(i[0]=()=>t.value=!1)},{default:te(()=>[Z(s)]),_:1}),q("div",Uu,Qe(r.name),1),we(r.$slots,"actions")]),q("div",Yu,[we(r.$slots,"default")])],32)):$e("",!0)]),_:3})],2)}}}),Xu=Object.freeze(Object.defineProperty({__proto__:null,default:Is},Symbol.toStringTag,{value:"Module"})),Zu=["min","max","step"],Gu={class:"flex-shrink-0"},Cs=he(Se({__name:"InputPercentage",props:Pt({min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=rn(e,"modelValue"),n=oe({get(){return t.value},set(o){t.value=+o}});return(o,r)=>(R(),K("div",{class:Ie(["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(q("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,Zu),[[Fc,n.value]]),q("p",Gu,[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
- `]]]),Qu=Object.freeze(Object.defineProperty({__proto__:null,default:Cs},Symbol.toStringTag,{value:"Module"})),Ju={class:"flex items-center mb-8 last:mb-0"},ed={class:"flex-grow overflow-hidden"},Ts=Se({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(R(),K("div",Ju,[q("div",{class:Ie(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},Qe(t.label),3),q("div",ed,[we(t.$slots,"default")])]))}}),td=Object.freeze(Object.defineProperty({__proto__:null,default:Ts},Symbol.toStringTag,{value:"Module"})),nd=["onClick","onKeyup"],$s=Se({__name:"InputSelect",props:Pt({items:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=rn(e,"modelValue"),o=Y(null),r=Y({width:"",left:""});tt(()=>{let s=!1;fe(n,l=>{var c;const a=(c=o.value)==null?void 0:c.children[l+1];a&&(r.value={width:a.offsetWidth+"px",left:a.offsetLeft+"px"},a.scrollIntoView({behavior:s?"smooth":"auto",block:"center",inline:"center"}),s=!0)},{immediate:!0})});function i(s){n.value=s}return(s,l)=>(R(),K("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:{}},[q("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),K(xe,null,vn(t.items,(a,c)=>vt((R(),K("div",{key:c,tabindex:"0",class:Ie(["inline-flex justify-center items-center h-6 rounded-2xl px-3 cursor-pointer relative z-10 whitespace-nowrap flex-shrink-0 focus:outline-primary hover:bg-stone-50 hover:bg-opacity-10 duration-200",{"text-stone-900":c==n.value,"text-stone-400":c!=n.value}]),onClick:()=>i(c),onKeyup:[ms(()=>i(c),["enter"]),ms(()=>i(c),["space"])]},[Ot(Qe(a),1)],42,nd)),[[X(an),30]])),128))],512))}}),od=Object.freeze(Object.defineProperty({__proto__:null,default:$s},Symbol.toStringTag,{value:"Module"})),rd={},id={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},sd=[q("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 ld(e,t){return R(),K("svg",id,sd)}const Es=he(rd,[["render",ld]]),ad=Object.freeze(Object.defineProperty({__proto__:null,default:Es},Symbol.toStringTag,{value:"Module"})),cd={},ud={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},dd=[q("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),q("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function fd(e,t){return R(),K("svg",ud,dd)}const Ps=he(cd,[["render",fd]]),pd=Object.freeze(Object.defineProperty({__proto__:null,default:Ps},Symbol.toStringTag,{value:"Module"}));function hd(e){if(e)try{return JSON.parse(e)}catch{return}}function gd(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 md=.25,vd=5,_d=.25,Cn=.25,Tn=5,bd=.05,yd=0,wd=4;function xd(e){var b,B,k,m,I,v;const{titleName:t,isWebtoon:n}=e,o=oe(()=>t.value?gd(t.value):location.hostname),r=Y(Sd(`tkr:${o.value}`)),i=T=>{r.value=T;const A=`tkr:${o.value}`;!T||!Object.keys(T).length?localStorage.removeItem(A):localStorage.setItem(A,JSON.stringify(T))},s=T=>{if(!r.value){i(T);return}const A={...r.value};Object.entries(T).forEach(([Q,V])=>{V===void 0?delete A[Q]:A[Q]=V}),i(A)},l=Y(((b=r.value)==null?void 0:b.style)??e.defaultStyle??Zt.longStrip),a=Y(((B=r.value)==null?void 0:B.direction)??e.defaultDirection??dt.vertical),c=Y((k=r.value)==null?void 0:k.gap),u=Y(((m=r.value)==null?void 0:m.speed)??1),f=Y(((I=r.value)==null?void 0:I.zoom)??1),h=Y(((v=r.value)==null?void 0:v.breakFirst)??!1),S=oe({get(){return n.value?Zt.longStrip:l.value},set:T=>{l.value=T,s({style:T}),T!==Zt.longStrip&&a.value===dt.vertical&&(y.value=dt.rtl)}}),y=oe({get:()=>n.value?dt.vertical:a.value,set:T=>{a.value=T,s({direction:T})}}),w=oe({get:()=>c.value??(e.maybeWebtoon.value?0:1),set(T){c.value=T,s({gap:T})}}),L=oe({get:()=>u.value,set(T){u.value=T,s({speed:T===1?void 0:T})}}),M=oe({get:()=>f.value,set(T){f.value=T,s({zoom:T===1?void 0:T})}}),W=oe({get:()=>h.value,set(T){h.value=T,s({breakFirst:T?!0:void 0})}});return{direction:y,style:S,gap:w,speed:L,zoom:M,isLongStrip:oe(()=>S.value===Zt.longStrip),isDouble:oe(()=>S.value===Zt.double),isRTL:oe(()=>y.value===dt.rtl),isVertical:oe(()=>y.value===dt.vertical),breakFirst:W}}function Sd(e){const t=localStorage.getItem(e),n=hd(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>=yd&&n.gap<=wd&&(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 Ms=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=Y(!1),i=oe(()=>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=Ps,f=uo,h=Es,S=$s,y=Ts,w=Cs,L=Is;return R(),K(xe,null,[Z(f,{title:"Reader settings (S)",disabled:a.disabled,onClick:c[0]||(c[0]=()=>r.value=!0)},{default:te(()=>[Z(u)]),_:1},8,["disabled"]),Z(L,{modelValue:r.value,"onUpdate:modelValue":c[5]||(c[5]=M=>r.value=M),name:i.value},{actions:te(()=>[Z(f,{transparent:"",onClick:l},{default:te(()=>[Z(h)]),_:1})]),default:te(()=>[Z(y,{label:"Style"},{default:te(()=>[Z(S,{"model-value":a.readerStyle,items:a.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":c[1]||(c[1]=M=>o("update:reader-style",M))},null,8,["model-value","items"])]),_:1}),Z(y,{label:"Direction"},{default:te(()=>[Z(S,{"model-value":a.direction,items:a.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":c[2]||(c[2]=M=>o("update:direction",M))},null,8,["model-value","items"])]),_:1}),Z(y,{label:"Gap"},{default:te(()=>[Z(S,{"model-value":a.gap,items:["None","XS","SM","M","L","XL"],"onUpdate:modelValue":c[3]||(c[3]=M=>o("update:gap",M))},null,8,["model-value"])]),_:1}),Z(y,{label:"Speed"},{default:te(()=>[Z(w,{"model-value":a.speed,min:X(md),max:X(vd),step:X(_d),suffix:"x","onUpdate:modelValue":c[4]||(c[4]=M=>o("update:speed",M))},{suffix:te(()=>[Ot(Qe(a.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),Z(y,{label:"Zoom"},{default:te(()=>[Z(w,{"model-value":Math.ceil(a.zoom*100),min:X(Cn)*100,max:X(Tn)*100,step:X(bd)*100,"onUpdate:modelValue":s},{suffix:te(()=>[Ot(Qe(Math.ceil(a.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64)}}}),kd=Object.freeze(Object.defineProperty({__proto__:null,default:Ms},Symbol.toStringTag,{value:"Module"})),Id={},Cd={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Td=[q("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function $d(e,t){return R(),K("svg",Cd,Td)}const Os=he(Id,[["render",$d]]),Ed=Object.freeze(Object.defineProperty({__proto__:null,default:Os},Symbol.toStringTag,{value:"Module"})),Pd={},Md={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Od=[q("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function Ld(e,t){return R(),K("svg",Md,Od)}const Ls=he(Pd,[["render",Ld]]),Ad=Object.freeze(Object.defineProperty({__proto__:null,default:Ls},Symbol.toStringTag,{value:"Module"})),zd={},jd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Dd=[q("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 Rd(e,t){return R(),K("svg",jd,Dd)}const As=he(zd,[["render",Rd]]),Bd=Object.freeze(Object.defineProperty({__proto__:null,default:As},Symbol.toStringTag,{value:"Module"})),Vd={},Nd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Fd=[q("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 Hd(e,t){return R(),K("svg",Nd,Fd)}const zs=he(Vd,[["render",Hd]]),Wd=Object.freeze(Object.defineProperty({__proto__:null,default:zs},Symbol.toStringTag,{value:"Module"})),Kd={},qd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Ud=[q("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function Yd(e,t){return R(),K("svg",qd,Ud)}const js=he(Kd,[["render",Yd]]),Xd=Object.freeze(Object.defineProperty({__proto__:null,default:js},Symbol.toStringTag,{value:"Module"})),Zd=["aria-hidden"],Gd=["onClick"],Qd={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"},Jd={class:"whitespace-nowrap"},yr=Se({__name:"ButtonDropdown",props:Pt({label:{},title:{},items:{},disabled:{type:Boolean}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:Pt(["select"],["update:modelValue"]),setup(e,{emit:t}){const n=e,o=t,r=rn(e,"modelValue"),i=Y(null),s=Y(!1),l=Y(null),a=Y(!1),c=Y(!1),u=Y(!1);fo({onKeyDown:w});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 m,I;(I=(m=l.value)==null?void 0:m.children[r.value])==null||I.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),M(i.value)):setTimeout(W,250)}function S(){const m=i.value;if(m){const I=m.getBoundingClientRect(),v=I.x+I.width/2;a.value=I.y>window.innerHeight/2,c.value=v<window.innerWidth/3,u.value=v>window.innerWidth/3*2}}function y(m,I){m!=r.value&&(r.value=m,o("select",m,I)),h()}function w(m){s.value&&m.key==="Escape"&&(h(),m.preventDefault())}let L=[];function M(m){const I=window.getComputedStyle(m).zIndex,v=m.style.zIndex;(!I||!(+I>0))&&((!m.parentElement||m.parentElement.childElementCount>1)&&(m.style.zIndex="1",L.push({el:m,zIndex:v})),m.parentElement&&M(m.parentElement))}function W(){L.forEach(({el:m,zIndex:I})=>{m.style.zIndex=I??""}),L=[]}let b=!1;function B(){b||(b=!0,f(!0,{desktopOnly:!0}))}function k(){b&&(b=!1,f(!1,{desktopOnly:!0}))}return(m,I)=>{const v=js;return R(),K("div",{ref_key:"root",ref:i,class:"select-none relative inline-flex"},[s.value?(R(),K("div",{key:0,class:"fixed-screen bg-transparent",onClick:h})):$e("",!0),m.items.length?(R(),ve(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:te(()=>[s.value?(R(),K("ul",{key:0,ref_key:"list",ref:l,"aria-hidden":!s.value,class:Ie(["scrollbar-sm duration-150 delay-50 absolute w-40 max-h-[70vh] list-none bg-stone-800 bg-opacity-80 backdrop-blur-md rounded-lg overflow-auto",{"origin-bottom bottom-full -translate-y-1.5":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:I[0]||(I[0]=ot(()=>{},["stop"]))},[(R(!0),K(xe,null,vn(m.items,(T,A)=>vt((R(),K("li",{key:A,tabindex:"-1",class:Ie(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":A===r.value}]),onClick:Q=>y(A,Q)},[q("div",{class:Ie(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":A>0}])},[we(m.$slots,"item",{item:T},()=>[Ot(Qe(T),1)])],2)],10,Gd)),[[X(an),30]])),128))],42,Zd)):$e("",!0)]),_:3})):$e("",!0),vt((R(),K("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:ot(h,["stop"]),onMouseenter:B,onMouseleave:k}),[q("div",Qd,[q("span",Jd,Qe(m.label),1),m.items.length?(R(),K("span",{key:0,class:Ie(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":a.value}]),"aria-hidden":"true"},[Z(v)],2)):$e("",!0)])],16)),[[X(an),30]])],512)}}}),ef=Object.freeze(Object.defineProperty({__proto__:null,default:yr},Symbol.toStringTag,{value:"Module"})),Ds=Se({__name:"PageNav",props:Pt({disabled:{type:Boolean},pages:{},totalImgs:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=rn(e,"modelValue"),o=oe(()=>t.pages.map(a=>a.map(({index:c})=>`${c+1}`).join("-"))),r=oe(()=>{const a=n.value,c=t.pages.findIndex(u=>u.some(({index:f})=>f===a));return c===-1?t.pages.length-1:c}),i=oe(()=>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=yr;return R(),ve(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"])}}}),tf=Object.freeze(Object.defineProperty({__proto__:null,default:Ds},Symbol.toStringTag,{value:"Module"})),nf={},of={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},rf=[q("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function sf(e,t){return R(),K("svg",of,rf)}const Rs=he(nf,[["render",sf]]),lf=Object.freeze(Object.defineProperty({__proto__:null,default:Rs},Symbol.toStringTag,{value:"Module"})),af={},cf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},uf=[q("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function df(e,t){return R(),K("svg",cf,uf)}const Bs=he(af,[["render",df]]),ff=Object.freeze(Object.defineProperty({__proto__:null,default:Bs},Symbol.toStringTag,{value:"Module"})),pf={},hf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},gf=[q("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 mf(e,t){return R(),K("svg",hf,gf)}const Vs=he(pf,[["render",mf]]),vf=Object.freeze(Object.defineProperty({__proto__:null,default:Vs},Symbol.toStringTag,{value:"Module"})),_f={},bf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},yf=[q("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 wf(e,t){return R(),K("svg",bf,yf)}const Ns=he(_f,[["render",wf]]),xf=Object.freeze(Object.defineProperty({__proto__:null,default:Ns},Symbol.toStringTag,{value:"Module"}));var Fs;const wr=typeof window<"u",Sf=e=>typeof e=="string",Dt=()=>{};wr&&((Fs=window==null?void 0:window.navigator)!=null&&Fs.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function po(e){return typeof e=="function"?e():X(e)}function Hs(e,t){function n(...o){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(i)})}return n}function kf(e,t={}){let n,o,r=Dt;const i=l=>{clearTimeout(l),r(),r=Dt};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 If(e,t=!0,n=!0,o=!1){let r=0,i,s=!0,l=Dt,a;const c=()=>{i&&(clearTimeout(i),i=void 0,l(),l=Dt)};return f=>{const h=po(e),S=Date.now()-r,y=()=>a=f();if(c(),h<=0)return r=Date.now(),y();if(S>h&&(n||!s))r=Date.now(),y();else if(t)return new Promise((w,L)=>{l=o?L:w,i=setTimeout(()=>{r=Date.now(),s=!0,w(y()),c()},h-S)});return!n&&!i&&(i=setTimeout(()=>s=!0,h)),s=!1,a}}function Cf(e){return e}function xr(e){return jr()?(Pl(e),!0):!1}function je(e,t=200,n={}){return Hs(kf(t,n),e)}function Ws(e,t=200,n=!1,o=!0,r=!1){return Hs(If(t,n,o,r),e)}function Ks(e,t=!0){lr()?tt(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 $n=wr?window:void 0,Tf=wr?window.document:void 0;function yt(...e){let t,n,o,r;if(Sf(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=$n):[t,n,o,r]=e,!t)return Dt;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=fe(()=>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 xr(c),c}function qs(e,t=!1){const n=Y(),o=()=>n.value=!!e();return o(),Ks(o,t),n}const Us=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ys="__vueuse_ssr_handlers__";Us[Ys]=Us[Ys]||{};function Xs({document:e=Tf}={}){if(!e)return Y("visible");const t=Y(e.visibilityState);return yt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var Zs=Object.getOwnPropertySymbols,$f=Object.prototype.hasOwnProperty,Ef=Object.prototype.propertyIsEnumerable,Pf=(e,t)=>{var n={};for(var o in e)$f.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Zs)for(var o of Zs(e))t.indexOf(o)<0&&Ef.call(e,o)&&(n[o]=e[o]);return n};function Mf(e,t,n={}){const o=n,{window:r=$n}=o,i=Pf(o,["window"]);let s;const l=qs(()=>r&&"ResizeObserver"in r),a=()=>{s&&(s.disconnect(),s=void 0)},c=fe(()=>Gt(e),f=>{a(),l.value&&r&&f&&(s=new ResizeObserver(t),s.observe(f,i))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return xr(u),{isSupported:l,stop:u}}function Sr(e,t={width:0,height:0},n={}){const{window:o=$n,box:r="content-box"}=n,i=oe(()=>{var a,c;return(c=(a=Gt(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),s=Y(t.width),l=Y(t.height);return Mf(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),fe(()=>Gt(e),a=>{s.value=a?t.width:0,l.value=a?t.height:0}),{width:s,height:l}}function kr(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:i=.1,window:s=$n}=n,l=qs(()=>s&&"IntersectionObserver"in s);let a=Dt;const c=l.value?fe(()=>({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=Dt}},{immediate:!0,flush:"post"}):Dt,u=()=>{a(),c()};return xr(u),{isSupported:l,stop:u}}var Gs;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Gs||(Gs={}));var Of=Object.defineProperty,Qs=Object.getOwnPropertySymbols,Lf=Object.prototype.hasOwnProperty,Af=Object.prototype.propertyIsEnumerable,Js=(e,t,n)=>t in e?Of(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zf=(e,t)=>{for(var n in t||(t={}))Lf.call(t,n)&&Js(e,n,t[n]);if(Qs)for(var n of Qs(t))Af.call(t,n)&&Js(e,n,t[n]);return e};zf({linear:Cf},{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 jf(e={}){const{window:t=$n,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:r=!0,includeScrollbar:i=!0}=e,s=Y(n),l=Y(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(),Ks(a),yt("resize",a,{passive:!0}),r&&yt("orientationchange",a,{passive:!0}),{width:s,height:l}}const el=he(Se({__name:"ReaderTour",emits:["hide"],setup(e,{emit:t}){const n=t,o=Y(null),r=Y(0),i=Y([]),s=oe(()=>i.value[r.value]),l=Ws(a,500);tt(()=>{const f=Sr(o),h=je(()=>c({width:f.width.value,height:f.height.value}),50);h(),fe(f.width,h),fe(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:y})=>{const w=S.top<f.height-S.bottom,L=S.left<f.width-S.right;return{text:y,style:{left:`${S.left}px`,top:`${S.top}px`,width:`${S.width}px`,height:`${S.height}px`},textStyle:{left:L?`${S.left-12}px`:void 0,right:L?void 0:`${f.width-S.left}px`,top:w?`${S.bottom+12}px`:`${S.top+20}px`,textAlign:w?void 0:"right",transform:w?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(y=>{var M;const w=(M=y.getAttribute("data-tour"))==null?void 0:M.trim();if(!(w!=null&&w.length))return;const L=y.getBoundingClientRect();h.push({rect:L,text:w})}),h}return(f,h)=>{var S,y;return R(),K(xe,null,[q("div",{class:Ie(["fixed-screen bg-black bg-opacity-50 duration-500",{"opacity-0":!s.value,"opacity-100":!!s.value}])},null,2),q("div",{ref_key:"root",ref:o,class:"tour",onClick:h[0]||(h[0]=ot((...w)=>X(l)&&X(l)(...w),["stop"]))},[s.value?(R(),K("div",{key:r.value,class:"tour__target",style:Ae(s.value.style)},null,4)):$e("",!0),(R(),K("div",{key:r.value,class:"tour__text",style:Ae((S=s.value)==null?void 0:S.textStyle)},Qe(((y=s.value)==null?void 0:y.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
- `]]]),Df=Object.freeze(Object.defineProperty({__proto__:null,default:el},Symbol.toStringTag,{value:"Module"})),Rf=q("div",{class:"fixed-screen bg-black bg-opacity-90"},null,-1),tl=Se({__name:"HelpScreen",props:{touchDevice:{type:Boolean}},emits:["hide"],setup(e,{emit:t}){const n=e,o=t,r=Y(null),i=Y([]);tt(async()=>{const c=Sr(r),u=je(()=>{s({width:c.width.value,height:c.height.value})},50);u(),fe(c.width,u),fe(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,y=0;const w=50,L=25;c.forEach(k=>{var A;const m=(A=k.getAttribute("title"))==null?void 0:A.trim(),I=k.getBoundingClientRect();if(!m||!I.height||!I.width)return;const v=Math.ceil((I.top-10)/w),T=Math.ceil((I.left-10)/w);h.push({isTour:!1,title:m,rect:I,fromX:T,toX:Math.max(T+1,Math.ceil((I.right+10)/w)),fromY:v,toY:Math.max(v+1,Math.ceil((I.bottom+10)/w))})}),h.forEach(k=>{for(let m=k.fromY;m<k.toY;m++){f[m]??(f[m]=[]);for(let I=k.fromX;I<k.toX;I++)f[m][I]=k;k.toY>S+1&&(S=k.toY-1),k.toX>y+1&&(y=k.toX-1)}});let M=y/2;h.forEach(k=>{k.isAlignRight=k.fromX>M});const W=(k,m)=>{f[m]??(f[m]=[]);const I=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+(I?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 A=v;A<T;A++)f[m][A]=k.helpItem}},b=(k,m)=>{if(m>S||m<0)return!1;const I=m>=k.toY,v=f[m];if(!v)return W(k,m),!0;const T=v[k.fromX];if(T&&!T.isTour)return!1;if(T&&T.isTour)return b(T,I?m+1:m-1)?(W(k,m),!0):!1;if(!T){const A=k.isAlignRight?-1:1;return v[k.fromX+A]||v[k.fromX+A*2]?b(k,I?m+1:m-1):(W(k,m),!0)}return!1};h.forEach(k=>{if(!b(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 A=k.fromX-3;A<k.fromX;A++)m[A]=k.helpItem;return}}b(k,k.fromY-1)}});const B=[];return h.forEach(k=>{const{title:m,helpItem:I,rect:v,isAlignRight:T,fromX:A,fromY:Q,toY:V}=k;if(!m||!I||!v)return;const ie=I.fromY>=V,de=I.toY<=Q;B.push({title:a(m),style:{top:ie?`${v.bottom+(I.fromY-V)*w+L}px`:de?void 0:`${v.top+8}px`,bottom:de?`${u.height-v.top+(I.toY-Q)*w+L}px`:void 0,left:T?void 0:`${v.left}px`,right:T?ie?`${u.width-v.right}px`:`${u.width-v.right+v.width+L}px`:void 0},arrowStyle:{width:de||ie?"2px":`${Math.abs(I.toX-A)*w+L-5}px`,height:de||ie?`${(ie?I.fromY-V:Q-I.toY)*w+L}px`:"2px",top:ie?`${v.bottom}px`:de?void 0:`${v.top+20}px`,bottom:de?`${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}})}),B}function a(c){return n.touchDevice?c.split("(")[0].trim():c}return(c,u)=>(R(),K(xe,null,[Rf,q("div",{ref_key:"root",ref:r,class:"fixed-screen z-20 overscroll-contain select-none",onClick:u[0]||(u[0]=ot(f=>o("hide"),["stop"]))},[(R(!0),K(xe,null,vn(i.value,f=>(R(),K(xe,{key:f.title},[q("div",{class:"absolute",style:Ae(f.style)},Qe(f.title),5),q("div",{class:"absolute bg-stone-300 rounded-lg",style:Ae(f.arrowStyle)},null,4)],64))),128))],512)],64))}}),Bf=Object.freeze(Object.defineProperty({__proto__:null,default:tl},Symbol.toStringTag,{value:"Module"})),nl=he(Se({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=Y(0);return fe(()=>t.playing,()=>{n.value=Date.now()}),(o,r)=>{const i=vr,s=_r;return n.value?(R(),K("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(),ve(i,{key:0})):(R(),ve(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
- `]]]),Vf=Object.freeze(Object.defineProperty({__proto__:null,default:nl},Symbol.toStringTag,{value:"Module"})),Nf={},Ff={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Hf=[q("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 Wf(e,t){return R(),K("svg",Ff,Hf)}const ol=he(Nf,[["render",Wf]]),Kf=Object.freeze(Object.defineProperty({__proto__:null,default:ol},Symbol.toStringTag,{value:"Module"})),rl=Se({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=sessionStorage.getItem("tk:dir"),o=Y(typeof n!="string"||+n!==t.direction),r=je(()=>o.value=!1,1250);fe(()=>t.direction,()=>{i(),o.value=!0,r()}),tt(()=>{i(),r();let s;const l=Xs();fe(l,a=>{a!=="visible"?s=Date.now():Date.now()-s>3e4&&(o.value=!0,r())})});function i(){sessionStorage.setItem("tk:dir",t.direction+"")}return(s,l)=>{const a=ol;return R(),ve(sn,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:te(()=>[o.value?(R(),K("div",{key:0,class:Ie(["fixed z-50 left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 pointer-events-none w-28 h-24 p-4 bg-black bg-opacity-40 rounded-2xl duration-500",{"rotate-90":s.direction===X(dt).vertical,"rotate-180":s.direction===X(dt).rtl}])},[Z(a)],2)):$e("",!0)]),_:1})}}}),qf=Object.freeze(Object.defineProperty({__proto__:null,default:rl},Symbol.toStringTag,{value:"Module"})),ho=[];function Uf(e){ho.push(e),bt(()=>{const t=ho.indexOf(e);t!==-1&&ho.splice(t,1)})}function Yf(e,t){const{innerWidth:n,innerHeight:o}=window,r=e*n,i=t*o;ho.forEach(s=>s(r,i))}const go=[];function Xf(e){go.push(e),bt(()=>{const t=go.indexOf(e);t!==-1&&go.splice(t,1)})}function Zf(){go.forEach(e=>e())}const il=Se({__name:"ZoomWrapper",props:Pt({pageIndex:{},playController:{},rtl:{type:Boolean},horizontal:{type:Boolean},longStrip:{type:Boolean},touchDevice:{type:Boolean},busy:{type:Boolean}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:Pt(["dragEnd","click"],["update:modelValue"]),setup(e,{emit:t}){const n=e,o=t,r=rn(e,"modelValue"),i=Y(null),s=Y(Math.min(Tn,Math.max(Cn,r.value))),l=Y(!1),a=Y(!1),c=Y(!1);let u=!1;fe(r,x=>pe(x)),tt(()=>{if(!n.touchDevice){yt(i,"mousedown",y),yt(window,"wheel",m);return}if(yt(i,"touchstart",W),!navigator.userAgent.toLowerCase().includes("android")){Uf(Q);return}let C=!1;const D=je(()=>{C=!1},150);yt(i,"scroll",()=>{C=!0,D()}),Xf(()=>{var ae;if(n.busy||!C)return;const re=setTimeout(()=>{C=!1,u=!0;const ge=i.value;ge==null||ge.style.setProperty("overflow","hidden"),setTimeout(()=>ge==null?void 0:ge.style.removeProperty("overflow"),20)},100);(ae=i.value)==null||ae.addEventListener("touchstart",()=>{clearTimeout(re)},{once:!0})})}),fo({onKeyDown:x=>{var C;if(!n.busy&&((C=i.value)==null||C.focus(),!(x.key==="Meta"||x.key==="Control")&&(x.ctrlKey||x.metaKey)))switch(x.key){case"0":pe(1);break;case"-":pe(s.value-.2),x.preventDefault();break;case"=":case"+":pe(s.value+.2),x.preventDefault();break}}});function f(x){a.value!==x&&(a.value=x,x?n.playController.pause():(o("dragEnd"),n.playController.resume()))}let h={x:0,y:0},S={x:0,y:0};function y(x){x.button===0&&(h={x:x.clientX,y:x.clientY},S={x:i.value.scrollLeft,y:i.value.scrollTop},window.addEventListener("mousemove",w),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",w),setTimeout(()=>f(!1))},{once:!0}),x.preventDefault(),x.stopPropagation())}function w(x){f(!0);const C=x.clientX-h.x,D=x.clientY-h.y,re=i.value;re.scrollLeft=S.x-C,re.scrollTop=S.y-D}let L=!1,M={distance:0,zoom:s.value,x:0,y:0};function W(x){n.busy||(L=x.touches.length===2,L&&(f(!0),x.stopPropagation(),x.preventDefault(),M={distance:I(x),zoom:s.value,x:(x.touches[0].clientX+x.touches[1].clientX)/2,y:(x.touches[0].clientY+x.touches[1].clientY)/2}),(L||n.playController.isPlaying.value&&n.longStrip)&&(window.addEventListener("touchmove",B),window.addEventListener("touchend",b,{once:!0})))}function b(){if(window.removeEventListener("touchmove",B),L){f(!1),L=!1;return}if(!a.value)return;const x=je(()=>{f(!1),i.value.removeEventListener("scroll",D)},200),C=setTimeout(x,200);i.value.addEventListener("scroll",D);function D(){clearTimeout(C),x()}}function B(x){if(f(!0),L){x.stopPropagation(),x.preventDefault();const D=I(x)/M.distance;pe(Math.ceil(D*M.zoom*100)/100,M)}}const k=je(()=>l.value=!1,100);function m(x){if(!n.busy){if(x.ctrlKey||x.metaKey){x.stopPropagation(),x.preventDefault();const C=Math.ceil((s.value+x.deltaY*-.01)*100)/100;pe(C,{x:x.clientX,y:x.clientY});return}n.horizontal&&(l.value||(l.value=!0),k(),x.deltaY&&(i.value&&(i.value.scrollLeft+=x.deltaY*(n.rtl?-1:1)),x.stopPropagation()))}}function I(x){return Math.hypot(x.touches[0].clientX-x.touches[1].clientX,x.touches[0].clientY-x.touches[1].clientY)}let v=0,T;function A(x){if(u){u=!1;return}if(!a.value){if(!n.touchDevice){o("click",x);return}v++,T&&clearTimeout(T),v===2&&Q(x.clientX,x.clientY),T=setTimeout(()=>{!a.value&&v===1&&o("click",x),T=void 0,v=0},300)}}function Q(x,C){if(!v)return;v=0;const D=s.value===1?2:1;pe(D,{x,y:C})}let V;const ie=je(()=>{c.value=!1,V=void 0},150);function de(){if(!c.value){const x=i.value;if(!x)return;const C=x.querySelector(`[data-index="${n.pageIndex}"],[data-index2="${n.pageIndex}"]`)??void 0;C&&(V={el:C,rect:C.getBoundingClientRect()},c.value=!0)}if(V)return ie(),V}async function pe(x,C){const D=i.value,re=Math.min(Tn,Math.max(Cn,x));if(!D||s.value===re)return;const ae=de();if(!ae)return;const ge=(C==null?void 0:C.x)??D.clientWidth/2,Ee=(C==null?void 0:C.y)??D.clientHeight/2;s.value=re,r.value=re,await mt();const{el:Me,rect:Ne}=ae,ft=Me.offsetWidth/Ne.width,Le=Me.offsetHeight/Ne.height;D.scrollLeft=Me.offsetLeft-Ne.left*ft+ge*(ft-1),D.scrollTop=Me.offsetTop-Ne.top*Le+Ee*(Le-1)}return(x,C)=>(R(),K("div",{ref_key:"root",ref:i,tabindex:"0",class:Ie(["w-full h-full overflow-auto overscroll-contain scrollbar-none focus:outline-none touch-pan-x touch-pan-y",{"!snap-none":!x.longStrip&&(a.value||l.value||c.value),"cursor-grabbing":a.value,"overflow-hidden":c.value}]),style:Ae({"font-size":`${s.value}px`}),onClick:ot(A,["stop"])},[we(x.$slots,"default")],6))}}),Gf=Object.freeze(Object.defineProperty({__proto__:null,default:il},Symbol.toStringTag,{value:"Module"})),sl=Se({__name:"IntersectionWrapper",emits:["visible"],setup(e,{emit:t}){const n=t,o=Y(null),r=Y(!1);return tt(async()=>{await mt();let i=!1;kr(o,s=>{r.value=s.some(l=>l.isIntersecting),r.value&&!i&&n("visible")})}),(i,s)=>(R(),K("div",{ref_key:"root",ref:o},[we(i.$slots,"default",{visible:r.value})],512))}}),Qf=Object.freeze(Object.defineProperty({__proto__:null,default:sl},Symbol.toStringTag,{value:"Module"}));function Jf({pageIndex:e,isLongStrip:t}){let n=e.value,o=e.value+3;const r=Y(n),i=Y(o),s=je(l,50);fe(e,a=>{n>a&&(n=a)});function l(){r.value!==n&&(r.value=n),i.value!==o&&(i.value=o)}return{min:r,max:i,onPageVisible(a){o<a&&(o=a),s()},onScroll(){t.value?l():s()}}}const ep={key:0,class:"page--loading"},tp=["src"],np=["src"],op=["data-index"],ll=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=Y(null),i=oe(()=>{var y;return(y=r.value)==null?void 0:y.$el}),s=Y(null),l=Sr(i),a=oe(()=>{const{width:y,height:w}=l,L=n.isLongStrip?n.isVertical?y.value:w.value:Math.min(y.value,w.value);return Math.min(4,Math.max(1,Math.ceil(L/400-1)))*n.gap}),c=Jf({pageIndex:oe(()=>n.pageIndex),isLongStrip:oe(()=>n.isLongStrip)}),u=oe(()=>{const{width:{value:y},height:{value:w}}=l;return n.pages.map(L=>{var T;const M=L.some(A=>{var Q;return(Q=A.img)==null?void 0:Q.isLoading}),W=L.map(A=>A.index),b={isLoading:M,indexes:W};if(M||W[W.length-1]<c.min.value-1||W[0]>c.max.value+2)return b;const B=L.map(({img:A})=>A).filter(Boolean);if(!B.length||(b.srcs=B.map(({src:A})=>A),B.every(A=>A.hasError)))return b;const m=(T=B.find(A=>!A.hasError))==null?void 0:T.size,I=B.reduce((A,Q)=>{var V;return A+(((V=Q.size)==null?void 0:V.width)??m.width)},0),v=B.reduce((A,Q)=>{var V;return A+(((V=Q.size)==null?void 0:V.height)??m.height)},0)/B.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&y/I<w/v?(b.width=Math.min(y,I),b.height=v*b.width/I):b.height=Math.min(w,v),b})}),f=oe(()=>{const y=n.isVertical?"width":"height";return u.value.map(w=>w[y]).filter(Boolean).sort((w,L)=>L-w)[0]});function h({indexes:y}){const w=y[y.length-1];w!==void 0&&c.onPageVisible(w)}function S(y){if(!n.isLongStrip){const w=n.isVertical?l.height.value:l.width.value,M=(n.isVertical?y.clientY:n.isRTL?w-y.clientX:y.clientX)/w;if(M<=.2&&n.pageIndex>0){o("prev");return}else if(M>=.8&&n.pageIndex<n.totalImgs){o("next");return}}o("click")}return(y,w)=>{const L=mr,M=sl,W=il;return R(),ve(W,{ref_key:"root",ref:r,"model-value":y.zoom,"page-index":y.pageIndex,class:Ie(["reader-body",{"reader-body--long-strip":y.isLongStrip,"reader-body--pages":!y.isLongStrip,"reader-body--vertical":y.isVertical,"reader-body--rtl":y.isRTL,"reader-body--idle":y.idle,"reader-body--first":!y.isLongStrip&&y.pageIndex==0,"reader-body--last":!y.isLongStrip&&y.pageIndex==y.totalImgs}]),"play-controller":y.playController,horizontal:!y.isVertical,rtl:y.isRTL,"touch-device":y.touchDevice,busy:y.busy,"long-strip":y.isLongStrip,style:Ae({"--gap":`${a.value}em`,"--space-top":(y.spaceTop||0)+"px","--screen-width-em":X(l).width.value+"em","--screen-height-em":X(l).height.value+"em",...y.isLongStrip?{"--max-size-em":f.value+"em"}:{}}),"onUpdate:modelValue":w[0]||(w[0]=b=>o("update:zoom",b)),onDragEnd:w[1]||(w[1]=()=>o("dragEnd")),onClick:S,onScroll:X(c).onScroll},{default:te(()=>[(R(!0),K(xe,null,vn(u.value,b=>(R(),ve(M,so({key:y.direction+"_"+b.indexes[0],"data-index":b.indexes[0]},b.indexes.length>1?{"data-index2":b.indexes[1]}:{},{onVisible:()=>h(b)}),{default:te(({visible:B})=>{var k;return[!((k=b.srcs)!=null&&k.length)||b.isLoading?(R(),K("div",ep,[vt(Z(L,null,null,512),[[ls,B]])])):b.srcs.length==1?(R(),K("img",{key:1,src:b.srcs[0],style:Ae({height:b.height!==void 0?b.height+"em":""})},null,12,tp)):(R(),K("div",{key:2,class:Ie(["page--double",{"flex-row-reverse":y.isRTL}]),style:Ae({width:b.width!==void 0?b.width+"em":"",height:b.height!==void 0?b.height+"em":""})},[(R(!0),K(xe,null,vn(b.srcs,m=>(R(),K("div",{key:m},[q("img",{src:m},null,8,np)]))),128))],6))]}),_:2},1040,["data-index","onVisible"]))),128)),q("div",{ref_key:"autoNextEl",ref:s,class:"last","data-index":y.totalImgs},[we(y.$slots,"end")],8,op)]),_: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
- `]]]),rp=Object.freeze(Object.defineProperty({__proto__:null,default:ll},Symbol.toStringTag,{value:"Module"})),ip={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},sp={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},lp={key:0,class:"animate-auto-next absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50 animate-auto-next"},al=he(Se({__name:"AutoNext",props:{hasNext:{type:Boolean}},emits:["next","hide"],setup(e,{emit:t}){const n=t,o=Y(null),r=Y(null),i=Y(!1),s=Y(!1),l=Y(3);return tt(()=>{let a;kr(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))}),kr(o,c=>{i.value=c.some(u=>u.isIntersecting)}),bt(()=>a&&clearInterval(a))}),(a,c)=>(R(),K("div",{ref_key:"root",ref:o,class:"h-full w-full flex justify-center items-center"},[vt(q("div",ip,[a.hasNext?(R(),K("div",sp,[s.value?(R(),K("div",lp)):$e("",!0),vt((R(),K("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]=ot(()=>n("next"),["stop"]))},[Ot(" Next in "+Qe(l.value),1)])),[[X(an)]])])):$e("",!0),vt((R(),K("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]=ot(()=>n("hide"),["stop"]))},[Ot(" Hide ")])),[[X(an)]])],512),[[ls,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
- `]]]),ap=Object.freeze(Object.defineProperty({__proto__:null,default:al},Symbol.toStringTag,{value:"Module"}));function cn(e=0){return new Promise(t=>setTimeout(t,e))}function cl(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 cp(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 cl(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 up(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 dp{constructor({isIOS:t,onDownloaded:n}){_e(this,"reactiveResults",un({}));_e(this,"isIOS");_e(this,"tkLoadId",Date.now());_e(this,"isMounted",!0);_e(this,"onDisposeCallbacks",[]);_e(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 cl(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=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 cp(o,n):n;if(!r)return;const i=await up(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 fp=3;class pp{constructor({getItems:t,getActiveIndex:n,isCompleted:o,callback:r}){_e(this,"isQueueStarted",!1);_e(this,"debouncedEnqueue");_e(this,"concurrentCount",0);_e(this,"getItems");_e(this,"getActiveIndex");_e(this,"isCompleted");_e(this,"callback");_e(this,"activeIndex",0);_e(this,"completedItems");_e(this,"isMounted",!0);this.getItems=t,this.getActiveIndex=n,this.isCompleted=o,this.callback=r,this.debouncedEnqueue=je(this.enqueue.bind(this),50)}dispose(){this.isMounted=!1}run(){this.isQueueStarted?this.debouncedEnqueue():(this.isQueueStarted=!0,this.enqueue())}get canEnqueue(){return this.concurrentCount<fp&&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 En(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 En(e-1,t,n);r(i)},t)})}function Ir(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=Ir(e.parentElement,t);return t.set(e,i),i}function ul(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 hp(e){const{lstrip:t,lstripBtn:n}=e||{};if(!t||!n||!!document.querySelector(t))return!1;const r=await En(50,30,()=>document.querySelector(n));return r?(ul(r),await cn(),!0):!1}class gp{constructor({spec:t,onChanged:n}){_e(this,"spec");_e(this,"onChanged");_e(this,"rawImages",[]);_e(this,"isMounted",!0);_e(this,"loadRawImagesTs");_e(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=je(()=>{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(je(()=>{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 hp(this.spec);let r=n?await En(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 En(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 mp(t,o):vp(t);this.loadRawImagesTs!==n||!t.isConnected||!this.isMounted||this.setRawImages(r)}}async function mp(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(Ir(l,o)){if(l instanceof HTMLCanvasElement){if(dl(l))return new Qt(void 0,l,i)}else if(l instanceof HTMLImageElement&&fl(l)){const a=mo(l);return new Qt(a,l,i)}}return new Qt(void 0,void 0,i)})}function vp(e){const t=[],n={},o=new Map;return Array.from(e.querySelectorAll("img,canvas")).forEach(i=>{if(Ir(i,o)){if(i instanceof HTMLCanvasElement)dl(i)&&t.push(new Qt(void 0,i));else if(i instanceof HTMLImageElement&&fl(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 Qt(s,i))}}}),t}function dl(e){return e.isConnected&&e.width>=200&&e.height>=200}function fl(e){if(!e.isConnected)return!1;const t=e.getBoundingClientRect();return!t.width||!t.height||t.width>=200&&t.height>=200}function pl(e){var t,n;for(let o=0;o<e.length;o++){const r=((t=e[o])==null?void 0:t.el)??((n=e[o])==null?void 0:n.parentEl),i=r==null?void 0:r.getBoundingClientRect();if(!i||i.bottom<=0)continue;const s=i.top;return o+(s>=0?0:-s/i.height)}return 0}function _p(e){if(document.documentElement.scrollTop<700)return 0;const n=Array.from(document.querySelectorAll("img[src]")).filter(o=>e.includes(o.src)).map(o=>new Qt(void 0,o));return pl(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=hl(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 hl(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 hl(e.parentElement,t);let i=0;return t.forEach((s,l)=>{i+=l===o?s-n:s}),{el:e,top:i}}function bp(e){var S,y,w,L;const t=Y((S=e.raw.value)==null?void 0:S.isWebtoon),n=Y((y=e.raw.value)==null?void 0:y.isWebtoon);let o=!1;const r=e.touchDevice&&!navigator.userAgent.toLowerCase().includes("android"),i=((L=(w=e.raw.value)==null?void 0:w.imgs)==null?void 0:L.filter(Boolean))??[];let s=e.isAutoShow!==!1?e.page.value:i.length?_p(i):void 0,l=i.map(M=>new Qt(M)),a;const c=new dp({isIOS:r,onDownloaded(M,W){let b=l.indexOf(M);if(b===-1){const B=M.computedSrc;b=l.findIndex(k=>k.computedSrc===B)}if(b!==-1){if(W&&!t.value&&b>Math.min(1,l.length-3)&&b<Math.max(l.length-2,3)){const B=W.height/W.width,k=B>2||B<.5,m=B>1.6||B<.6;t.value!==k&&(t.value=k),n.value!==m&&(n.value=m)}f()}}}),u=new pp({getItems:()=>l,getActiveIndex:()=>Math.floor(e.page.value),isCompleted:M=>{const W=M.computedSrc;return!!(W&&c.reactiveResults[W])},callback:M=>c.download(M)});if(i.length)u.run();else{let M=!1;a=new gp({spec:e.spec,async onChanged(W){var b;if(l=W,!e.raw.value&&!W.length){e.onError("no_img");return}(b=e.spec)!=null&&b.imgDivs&&!M&&e.isAutoShow!==!1&&e.page.value&&(M=!0,vo({rawImages:W,page:e.page.value,skipIfVisible:!0}),await cn(1)),s===void 0&&e.isAutoShow===!1&&(s=pl(W)),u.run()}})}Xo(()=>{c.dispose(),u.dispose(),a==null||a.dispose(),o&&vo({rawImages:l,page:e.page.value})});function f(){var k,m,I,v;if(o||t.value===void 0||s===void 0)return;const M=Math.max(0,Math.min(s,l.length)),W=l.length-1,b=Math.min(Math.floor(M),W);if(b>=1){const T=(k=l[b])==null?void 0:k.computedSrc;if(!T){e.isAutoShow&&vo({rawImages:l,page:b});return}const A=(m=l[b-1])==null?void 0:m.computedSrc;if(A&&!((I=c.reactiveResults[A])!=null&&I.size)||!((v=c.reactiveResults[T])!=null&&v.size))return}if(o)return;o=!0,e.onReady(M);let B=!0;fe(()=>Math.floor(e.page.value),(T,A)=>{vo({rawImages:l,page:T,smooth:r,isScrollDown:A===void 0||T>A||l.length===1,skipIfVisible:B&&l.length>1}),B=!1,A??(A=-1),u.run()},{immediate:!0})}return{asyncImgs:oe(()=>{Object.values(c.reactiveResults);const M=[];return l.forEach(W=>{const b=W.computedSrc,B=b?c.reactiveResults[b]:void 0;(b&&!(B!=null&&B.invalid)||W.parentEl)&&M.push(B)}),M}),isWebtoon:oe(()=>t.value??!1),maybeWebtoon:oe(()=>n.value??!1)}}function yp(e,t,n){return oe(()=>t.value?gl(e.value,n.value):e.value.map((o,r)=>[{img:o,index:r}]))}function gl(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})),...gl(e.slice(i.length),!1,n+i.length)]}function wp(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=Y(t&&e>0?Math.max(0,e):+(sessionStorage.getItem("tk:page")??"0")||e);return oe({get:()=>o.value,set:r=>{o.value=r,sessionStorage.setItem("tk:page",r+"")}})}function xp(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const Cr=40;function Sp({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,y=!1,w=!1,L;const M=je(T,300),W=Ws(()=>{T(),M()},300),b=je(m,50);async function B(){I(e.value,{smooth:!1,ensureLastImgVisibility:!0})}function k(){var C;y=!0,f(),A(),(C=l.value)==null||C.addEventListener("scroll",W),setTimeout(()=>{const{width:D,height:re}=jf();fe(D,()=>{r.value&&b()}),fe(re,()=>{r.value||b()}),fe(n,m),fe(t,m)},300)}async function m(){if(!y||S)return;S=!0,await mt();const C=e.value;if(V()===C){S=!1;return}I(C)}function I(C,{smooth:D,ensureLastImgVisibility:re=!1}={smooth:!1}){const ae=l.value;if(!ae)return;S=!0;const ge=async()=>{await mt(),S=!1,y||k()},Ee=Math.floor(C),Me=ae.querySelector(`[data-index="${Ee}"],[data-index2="${Ee}"]`);if(!Me){ge();return}c(async()=>{await v(ae,!o.value&&D,async()=>{await x(ae,Me,{smooth:D,page:C,ensureLastImgVisibility:re})}),await ge()})}async function v(C,D,re){D&&C.style.setProperty("scroll-snap-type","none"),await re(),D&&C.style.removeProperty("scroll-snap-type")}function T(){if(S)return;const C=V();C!==void 0&&C!==e.value&&u(C),A()}function A(){w||!w&&Q()&&(w=!0,h())}function Q(){const C=l.value;if(!C)return!1;const D=o.value?a.value?3:!r.value&&C.clientWidth>C.clientHeight?2.25:2.5:2;return r.value?C.scrollHeight-C.scrollTop<C.clientHeight*D:C.scrollWidth-(i.value?-C.scrollLeft:C.scrollLeft)<C.clientWidth*D}function V(){const C=ie();return C?(+C.getAttribute("data-index")||0)+(o.value?de(C):0):void 0}function ie(){var D;if(L??(L=l.value.getRootNode()),!L)return;const C=(D=L.elementsFromPoint)==null?void 0:D.call(L,r.value||!o.value?window.innerWidth/2:i.value?window.innerWidth-Cr:Cr,r.value&&o.value?s.value||Cr:window.innerHeight/2);if(C)for(let re=0;re<C.length;re++){const ae=C[re];if(ae.hasAttribute("data-index"))return ae;if(ae===l.value)break}}function de(C){const D=C.getBoundingClientRect();return r.value?Math.abs(D.top-s.value)/D.height:i.value?Math.max(0,D.right-l.value.clientWidth)/D.width:Math.abs(D.left)/D.width}let pe=!1;async function x(C,D,re){if(pe)return;const ae=D.getBoundingClientRect();if(!o.value){if(r.value){if(ae.top<=0&&ae.bottom>=C.clientHeight)return}else if(ae.left<=0&&ae.right>=C.clientWidth)return}pe=!0;const ge=r.value?C.scrollTop:C.scrollLeft,Ee=re.page,Me=o.value?Ee%1:0,Ne=await En(30,10,async()=>{await cn();let Fe;if(!(D.offsetHeight<10))return o.value?r.value?Fe=D.offsetTop+Me*D.offsetHeight-s.value:i.value?Fe=D.offsetLeft-C.clientWidth+D.offsetWidth-Me*D.offsetWidth:Fe=D.offsetLeft+Me*D.offsetWidth:r.value?Fe=D.offsetTop+(ae.top>0?0:ae.height-C.clientHeight):Fe=D.offsetLeft+(ae.left>0?0:ae.width-C.clientWidth),Ee>.5&&Math.abs(Fe)<100?void 0:Fe})??0,ft=re.ensureLastImgVisibility?r.value?Math.min(Ne,C.scrollHeight-C.clientHeight*2):i.value?Math.max(Ne,-(C.scrollWidth-C.clientWidth*2)):Math.min(Ne,C.scrollWidth-C.clientWidth*2):Ne;if(!re.smooth){r.value?C.scrollTop=ft:C.scrollLeft=ft,pe=!1;return}const Le=ft-ge,Xe=30;let rt=0;return new Promise(Fe=>{(function pt(){const Rt=kp(rt,ge,Le,Xe);r.value?C.scrollTop=Rt:C.scrollLeft=Rt,rt++,rt<=Xe?requestAnimationFrame(pt):(Fe(),pe=!1)})()})}return{init:B,goToPage:I}}function kp(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function Ip({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,isLongStrip:i,speed:s}){const l=sessionStorage.getItem("tk:playing"),a=Y(typeof l=="string"?l==="true":e),c=oe({get:()=>a.value,set:v=>{a.value=v,sessionStorage.setItem("tk:playing",v?"true":"false")}}),u=Y(!1);let f,h;const S=je(m,100),y=je(()=>{u.value=!0},t?2e3:1e3),w=()=>setTimeout(()=>{u.value=!1,y()},30);w(),t||yt(window,"mousemove",w);const L=Xs();tt(()=>{fe(L,v=>{c.value&&(v==="visible"?m():h==null||h())}),fe(s,()=>M()),fe(i,v=>{v||b()})}),bt(b);async function M(v){c.value&&(h==null||h()),v&&(await mt(),await v()),c.value&&S()}function W(){c.value?b():B()}function b(){c.value&&(c.value=!1,h==null||h(),w())}function B(){!c.value&&i.value&&(c.value=!0,m(),w())}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,A=I();if(T<=A){b();return}h=()=>{f=Date.now(),h=void 0};const Q=Date.now();f=Q;const V=.05*s.value,ie=o.value?"scrollTop":"scrollLeft";let de=Date.now(),pe=0;const x=()=>{if(f!==Q)return;const C=Date.now(),D=C-de;de=C;const re=V*D+pe;re>=1?(pe=re%1,v[ie]+=(re-pe)*(r.value?-1:1)):pe=re,setTimeout(x,1)};x()}function I(){const v=n.value;return o.value?v.scrollTop:r.value?-v.scrollLeft:v.scrollLeft}return{isPlaying:c,isIdle:u,toggle:W,play:B,pause:k,resume:m,stop:b,interfere:M,awake:w}}function Cp(e,t){var B,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(I,v){I.slug?Tr(l,I.slug,v):I.elIndex!==void 0&&c&&c[I.elIndex]&&ul(c[I.elIndex])}function f(I){const v=b[I];return v?T=>u(v,T):void 0}const h=(B=e.prev)==null?void 0:B.slug,S=(k=e.next)==null?void 0:k.slug;let y=h?I=>Tr(l,h,I):void 0,w=S?I=>Tr(l,S,I):void 0;const L=n??o,M=t==null?void 0:t.url,W=((m=i.chapters)==null?void 0:m.filter(I=>I.slug||!M&&I.elIndex!==void 0))??[],b=W.length>1?W:[];if(b.length){if(M&&(a=b.findIndex(I=>I.slug===e.slug)),a===-1&&(a=b.findIndex(I=>(I.vol??I.inferVol)===L&&I.chap===r)),M&&a===-1&&(a=b.findIndex(I=>I.slug&&s.startsWith(`${I.slug}-`)&&s.length-I.slug.length>3)),a!==-1)y??(y=f(a+1)),w??(w=f(a-1));else if(!h&&!S){const I=b.findIndex(v=>{const T=v.vol??v.inferVol;return L===void 0||T===void 0||L===T?v.chap<r:T<L});I!==-1?(y=f(I),w=f(I-1)):w=f(b.length-1)}}return{activeIndex:a,activeLabel:ml({vol:n,chap:r}),prev:y,next:w,chapters:b.map(I=>({label:ml(I),select:v=>u(I,v)}))}}function ml({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}function Tr(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 Tp={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},vl=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=Y(!1),a=Y(!1),c=zu({touchDevice:n.touchDevice}),u=wp(n.page,n.isAutoShow),f=oe(()=>n.spaceTop??0),{asyncImgs:h,isWebtoon:S,maybeWebtoon:y}=bp({raw:oe(()=>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:w,style:L,isRTL:M,isDouble:W,isVertical:b,isLongStrip:B,gap:k,speed:m,zoom:I,breakFirst:v}=xd({titleName:oe(()=>{var g;return(g=n.raw)==null?void 0:g.title.name}),isWebtoon:S,maybeWebtoon:y,defaultStyle:n.readerStyle,defaultDirection:n.direction}),T=yp(h,W,v),A=oe(()=>u.value>=h.value.length),Q=oe(()=>{var g;return n.raw?Cp(n.raw,(g=n.spec)==null?void 0:g.chapter):void 0}),V=Y(null),ie=Y(null),de=Y(!1),pe=Y(!1),x=Ip({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:oe(()=>{var g;return(g=V.value)==null?void 0:g.$el}),speed:m,isRTL:M,isVertical:b,isLongStrip:B}),C=oe(()=>!n.touchDevice&&x.isIdle.value&&!c.value),D=oe({get(){return I.value},set(g){x.interfere(()=>{I.value=g})}}),re=Sp({page:u,style:L,direction:w,isLongStrip:B,isVertical:b,isRTL:M,spaceTop:f,isWebtoon:S,scrollEl:oe(()=>{var g;return(g=V.value)==null?void 0:g.$el}),interferePlayer:g=>x.interfere(g),onChangedPage:Me,onInitialized(){o("ready"),a.value=!0,n.touchDevice&&(i=Ne())},onFinished:()=>o("finished")}),ae=oe(()=>Math.floor(u.value)),ge=()=>x.interfere(()=>cn(100));Ku().addListener({onKeyDown:g=>{if(n.tourEnabled)return;const E=B.value&&b.value,U=B.value&&!b.value,ne=!B.value&&b.value,ue=!B.value&&!b.value;switch(g.key){case" ":g.preventDefault(),B.value?(G(!1),x.toggle()):$();break;case"ArrowUp":case"PageUp":E?ge():ne&&ae.value!==0&&(g.preventDefault(),_());break;case"ArrowDown":case"PageDown":E?ge():ne&&!A.value&&(g.preventDefault(),$());break;case"ArrowLeft":U?ge():ue?(g.preventDefault(),d()):b.value&&rt();break;case"ArrowRight":U?ge():ue?(g.preventDefault(),p()):b.value&&Xe();break}},onKeyUp:g=>{switch(g.key){case"f":F();break;case"t":z();break;case"h":G();break}}}),yt("fullscreenchange",()=>{de.value=!!document.fullscreenElement}),fe(x.isPlaying,g=>{g||N(!1),o("playingChanged",g)}),fe(x.isIdle,g=>{x.isPlaying.value&&N(g)}),fe(c,g=>{!g&&x.isIdle.value?x.awake():g&&n.fullScreen&&N()});function Me(g){if(u.value===g)return;const E=h.value.length;if(g<0||g>=E+1)return;const U=u.value;u.value=g;const ne=Math.floor(g*100)/100;ne!==s&&(s=ne,o("pageChanged",ne)),g>=E?(N(!1),x.stop()):g<.01?(N(!1),x.awake()):n.touchDevice&&!r&&(B.value?i!==void 0&&Ne()-i>300&&N(!0):Math.abs(U-g)===1&&N(!0))}function Ne(){var E;const g=(E=V.value)==null?void 0:E.$el;return g?b.value?g.scrollTop:M.value?-g.scrollLeft:g.scrollLeft:0}function ft(){!n.touchDevice&&!B.value&&re.goToPage(ae.value,{smooth:!0})}function Le(){if(x.isPlaying.value){!n.fullScreen||!n.touchDevice?x.stop():x.awake();return}N()}function Xe(g=!1){var E,U;(U=(E=Q.value)==null?void 0:E.next)==null||U.call(E,g)}function rt(g=!1){var E,U;(U=(E=Q.value)==null?void 0:E.prev)==null||U.call(E,g)}function Fe(g,E){var U,ne,ue;(ue=(ne=(U=Q.value)==null?void 0:U.chapters)==null?void 0:ne[g])==null||ue.select(wt(E))}function pt(g){M.value?Xe(wt(g)):rt(wt(g))}function Rt(g){M.value?rt(wt(g)):Xe(wt(g))}function wt(g){return!n.touchDevice&&(g.ctrlKey||g.metaKey)}function d(){M.value?$():_()}function p(){M.value?_():$()}function _(){var U;const g=T.value,E=A.value?g[g.length-1][0].index:(U=g[P()-1])==null?void 0:U[0].index;E!==void 0?re.goToPage(E):rt()}function $(){var g,E;if(A.value)Xe();else{const U=((E=(g=T.value[P()+1])==null?void 0:g[0])==null?void 0:E.index)??h.value.length;re.goToPage(U)}}function P(){const g=ae.value,E=T.value.findIndex(U=>U.some(({index:ne})=>ne===g));return E===-1?T.value.length-1:E}function j(){xp(),o("dispose")}async function N(g){if(c.value&&!n.fullScreen)return;r=!0;const E=typeof g=="boolean"?g:!n.fullScreen;o("fullScreenChanged",E),E&&setTimeout(()=>{n.fullScreen&&c.value&&o("fullScreenChanged",!1)},100)}function z(){n.entryId?H():O()}function F(){var g,E;document.fullscreenElement?document.exitFullscreen():(E=(g=ie.value)==null?void 0:g.$el)==null||E.requestFullscreen()}function O(){x.stop(),o("addEntry")}function H(){x.stop(),o("openEntry",n.entryId)}function G(g){pe.value!==g&&(pe.value=!pe.value,pe.value&&x.isPlaying.value&&x.stop())}return(g,E)=>{const U=al,ne=ll,ue=rl,ke=nl,Ze=tl,Bt=el,_o=Ns,He=uo,bo=Vs,De=yr,it=Bs,yo=Rs,Rp=Ds,Bp=zs,Vp=As,Np=Ls,Fp=Os,Hp=Ms,Wp=_r,Kp=vr,qp=Ss,Up=xs,Yp=ws,Xp=bs;return g.immediate||l.value?(R(),ve(Xp,{key:0,ref_key:"root",ref:ie,loading:!a.value,immediate:!!g.immediate,"full-screen":!!g.fullScreen,idle:C.value,"space-top":f.value,rtl:X(M),onClick:E[11]||(E[11]=ot(()=>{},["stop"]))},Ii({settings:te(()=>{var xt;return[Z(Hp,{"reader-style":X(L),"onUpdate:readerStyle":E[3]||(E[3]=St=>Ce(L)?L.value=St:null),direction:X(w),"onUpdate:direction":E[4]||(E[4]=St=>Ce(w)?w.value=St:null),gap:X(k),"onUpdate:gap":E[5]||(E[5]=St=>Ce(k)?k.value=St:null),speed:X(m),"onUpdate:speed":E[6]||(E[6]=St=>Ce(m)?m.value=St:null),zoom:D.value,"onUpdate:zoom":E[7]||(E[7]=St=>D.value=St),name:(xt=g.raw)==null?void 0:xt.title.name,webtoon:X(S),disabled:!l.value,onHelp:G},null,8,["reader-style","direction","gap","speed","zoom","name","webtoon","disabled"])]}),"reset-zoom":te(()=>[Z(sn,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:te(()=>[Z(Yp,{zoom:D.value,onClick:E[10]||(E[10]=ot(()=>D.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:te(()=>[q("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:te(()=>[l.value?(R(),ve(ne,{key:0,ref_key:"body",ref:V,zoom:D.value,"onUpdate:zoom":E[0]||(E[0]=xt=>D.value=xt),"page-index":ae.value,pages:X(T),"total-imgs":X(h).length,direction:X(w),gap:X(k),"is-long-strip":X(B),isRTL:X(M),"is-vertical":X(b),"space-top":f.value,busy:X(c),idle:C.value,"play-controller":X(x),"touch-device":g.touchDevice,onVnodeMounted:X(re).init,onPrev:_,onNext:$,onClick:Le,onDragEnd:ft,onWheelPassive:E[1]||(E[1]=()=>X(x).interfere())},Ii({_:2},[l.value&&X(h).length?{name:"end",fn:te(()=>{var xt;return[Z(U,{"has-next":!!((xt=Q.value)!=null&&xt.next),onNext:Xe,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&&!A.value&&!g.tourEnabled?(R(),ve(ue,{key:1,direction:X(w)},null,8,["direction"])):$e("",!0),a.value&&!A.value?(R(),ve(ke,{key:2,playing:!!X(x).isPlaying.value},null,8,["playing"])):$e("",!0),pe.value?(R(),ve(Ze,{key:3,"touch-device":g.touchDevice,onHide:G},null,8,["touch-device"])):$e("",!0),g.tourEnabled?(R(),ve(Bt,{key:4,onHide:E[2]||(E[2]=()=>o("tourEnabledChanged",!1))})):$e("",!0)]),_:2},[g.raw?{name:"back",fn:te(()=>[Z(He,{href:g.raw.title.url,title:"Back to manga"},{default:te(()=>[Z(_o)]),_:1},8,["href"])]),key:"0"}:void 0,g.touchDevice?void 0:{name:"exit",fn:te(()=>[Z(He,{title:"Hide reader","data-tour":"You have entered reader mode, press here to return to the original page",onClick:j},{default:te(()=>[Z(bo)]),_:1})]),key:"1"},Q.value?{name:"chapter-nav",fn:te(()=>[Z(De,{modelValue:Q.value.activeIndex,label:Q.value.activeLabel,title:"Select chapter",items:Q.value.chapters,onSelect:Fe},{item:te(({item:xt})=>[Ot(Qe(xt.label),1)]),_:1},8,["modelValue","label","items"]),Q.value.next||Q.value.prev?(R(),K("div",Tp,[Z(He,{title:`${X(M)?"Next":"Prev"} chapter (←)`,disabled:X(M)?!Q.value.next:!Q.value.prev,class:"!rounded-r-none",onClick:pt},{default:te(()=>[Z(it)]),_:1},8,["title","disabled"]),Z(He,{title:`${X(M)?"Prev":"Next"} chapter (→)`,disabled:X(M)?!Q.value.prev:!Q.value.next,class:"!rounded-l-none",onClick:Rt},{default:te(()=>[Z(yo)]),_:1},8,["title","disabled"])])):$e("",!0)]),key:"2"}:void 0,X(T).length?{name:"page-nav",fn:te(()=>[Z(Rp,{"model-value":ae.value,disabled:!a.value,pages:X(T),"total-imgs":X(h).length,"onUpdate:modelValue":X(re).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),key:"3"}:void 0,g.raw?{name:"entry",fn:te(()=>[Z(He,{title:g.entryId?"View entry (T)":"Add to library (T)","data-tour":"Prress here to add to your collection",onClick:z},{default:te(()=>[g.entryId?(R(),ve(Bp,{key:0})):(R(),ve(Vp,{key:1}))]),_:1},8,["title"])]),key:"4"}:void 0,g.touchDevice?void 0:{name:"full-screen",fn:te(()=>[Z(He,{title:`${de.value?"Exit":"Enter"} fullscreen (F)`,onClick:F},{default:te(()=>[de.value?(R(),ve(Np,{key:0})):(R(),ve(Fp,{key:1}))]),_:1},8,["title"])]),key:"5"},X(B)?{name:"play",fn:te(()=>[Z(He,{"data-tour":"Press here to play like a video",title:`${X(x).isPlaying.value?"Pause":"Play"} (Space)`,disabled:!a.value,onClick:E[8]||(E[8]=()=>X(x).toggle())},{default:te(()=>[X(x).isPlaying.value?(R(),ve(Wp,{key:0})):(R(),ve(Kp,{key:1}))]),_:1},8,["title","disabled"])]),key:"6"}:void 0,X(W)?{name:"break-first",fn:te(()=>[Z(He,{title:"Separate 1st page","data-tour":"Press here to separate the first page from double-page mode",disabled:!a.value,onClick:E[9]||(E[9]=()=>v.value=!X(v))},{default:te(()=>[X(v)?(R(),ve(qp,{key:0})):(R(),ve(Up,{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
- `]]]),$p=Object.freeze(Object.defineProperty({__proto__:null,default:vl},Symbol.toStringTag,{value:"Module"})),Ep={},Pp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Mp=[q("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 Op(e,t){return R(),K("svg",Pp,Mp)}const Lp=Object.freeze(Object.defineProperty({__proto__:null,default:he(Ep,[["render",Op]])},Symbol.toStringTag,{value:"Module"})),Ap=`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",$r={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},Ye={promise:void 0,data:un({...$r})};async function zp(e){return Ye.promise?(Ye.data.raw=e.raw,await Ye.promise):(Ye.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(Ye.data,$r),Ye.promise=void 0)};Object.assign(Ye.data,$r,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;Ye.data.fullScreen=c,(u=e.onFullScreenChanged)==null||u.call(e,c)},onPageChanged:c=>{var u;Ye.data.page=c,(u=e.onPageChanged)==null||u.call(e,c)},onTourEnabledChanged:c=>{Ye.data.tourEnabled=c}}),jp().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)=>Yf(c,u),triggerTouchStart:()=>Zf(),updateArgs(c){Object.assign(Ye.data,c)},dispose:s}))}function a(){o||t(void 0)}}),await Ye.promise)}async function jp(){if(window.customElements.get(Pn))return;const e=document.createElement("style");e.appendChild(document.createTextNode(Ap)),document.head.appendChild(e);const t=Bc({styles:[await Dp()],data:()=>({readerData:Ye.data}),render(){return Ji(vl,this.readerData)}});window.customElements.define(Pn,t)}async function Dp(){const e=Object.assign({"./App.vue":$p,"./components/AutoNext.vue":ap,"./components/BottomSheet.vue":Xu,"./components/ButtonDropdown.vue":ef,"./components/ButtonIcon.vue":Ru,"./components/ButtonReaderSettings.vue":kd,"./components/ButtonResetZoom.vue":hu,"./components/DirectionToast.vue":qf,"./components/HelpScreen.vue":Bf,"./components/InputPercentage.vue":Qu,"./components/InputSelect.vue":od,"./components/IntersectionWrapper.vue":Qf,"./components/LoadingIndicator.vue":Qc,"./components/PageNav.vue":tf,"./components/PauseToast.vue":Vf,"./components/ReaderBody.vue":rp,"./components/ReaderLayout.vue":iu,"./components/ReaderTour.vue":Df,"./components/TableField.vue":td,"./components/ZoomWrapper.vue":Gf,"./components/icons/IconBack.vue":xf,"./components/icons/IconBookmarkNew.vue":Bd,"./components/icons/IconBookmarked.vue":Wd,"./components/icons/IconChevronLeft.vue":ff,"./components/icons/IconChevronRight.vue":lf,"./components/icons/IconClose.vue":Hu,"./components/icons/IconDouble.vue":bu,"./components/icons/IconDoubleSkip.vue":ku,"./components/icons/IconExclamationCircle.vue":Lp,"./components/icons/IconFullscreen.vue":Ed,"./components/icons/IconFullscreenExit.vue":Ad,"./components/icons/IconHelp.vue":ad,"./components/icons/IconNext.vue":Kf,"./components/icons/IconPause.vue":Au,"./components/icons/IconPlay.vue":Eu,"./components/icons/IconReaderExit.vue":vf,"./components/icons/IconSettings.vue":pd,"./components/icons/IconTriangle.vue":Xd,"./components/icons/IconZoom.vue":uu}),t=[];for(const n in e){const o=e[n];t.push(o.default.styles)}return t.join("")}return zp});
20
+ **/const mc="http://www.w3.org/2000/svg",vc="http://www.w3.org/1998/Math/MathML",Lt=typeof document<"u"?document:null,ei=Lt&&Lt.createElement("template"),_c={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(mc,e):t==="mathml"?Lt.createElementNS(vc,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,s){const i=n?n.previousSibling:t.lastChild;if(r&&(r===s||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===s||!(r=r.nextSibling)););else{ei.innerHTML=o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e;const l=ei.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[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},At="transition",Sn="animation",kn=Symbol("_vtc"),sn=(e,{slots:t})=>Js(Ca,bc(e),t);sn.displayName="Transition";const ti={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({},ys,ti);const Ut=(e,t=[])=>{J(e)?e.forEach(n=>n(...t)):e&&e(...t)},ni=e=>e?J(e)?e.some(t=>t.length>1):e.length>1:!1;function bc(e){const t={};for(const V in e)V in ti||(t[V]=e[V]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=s,appearActiveClass:c=i,appearToClass:u=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:S=`${n}-leave-to`}=e,y=yc(r),w=y&&y[0],L=y&&y[1],{onBeforeEnter:M,onEnter:W,onEnterCancelled:b,onLeave:B,onLeaveCancelled:k,onBeforeAppear:m=M,onAppear:I=W,onAppearCancelled:v=b}=t,T=(V,se,de)=>{Yt(V,se?u:l),Yt(V,se?c:i),de&&de()},A=(V,se)=>{V._isLeaving=!1,Yt(V,f),Yt(V,S),Yt(V,h),se&&se()},G=V=>(se,de)=>{const pe=V?I:W,x=()=>T(se,V,de);Ut(pe,[se,x]),oi(()=>{Yt(se,V?a:s),zt(se,V?u:l),ni(pe)||ri(se,o,w,x)})};return be(t,{onBeforeEnter(V){Ut(M,[V]),zt(V,s),zt(V,i)},onBeforeAppear(V){Ut(m,[V]),zt(V,a),zt(V,c)},onEnter:G(!1),onAppear:G(!0),onLeave(V,se){V._isLeaving=!0;const de=()=>A(V,se);zt(V,f),Sc(),zt(V,h),oi(()=>{V._isLeaving&&(Yt(V,f),zt(V,S),ni(B)||ri(V,o,L,de))}),Ut(B,[V,de])},onEnterCancelled(V){T(V,!1),Ut(b,[V])},onAppearCancelled(V){T(V,!0),Ut(v,[V])},onLeaveCancelled(V){A(V),Ut(k,[V])}})}function yc(e){if(e==null)return null;if(me(e))return[cr(e.enter),cr(e.leave)];{const t=cr(e);return[t,t]}}function cr(e){return Co(e)}function zt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[kn]||(e[kn]=new Set)).add(t)}function Yt(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 oi(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let wc=0;function ri(e,t,n,o){const r=e._endId=++wc,s=()=>{r===e._endId&&o()};if(n)return setTimeout(s,n);const{type:i,timeout:l,propCount:a}=xc(e,t);if(!i)return o();const c=i+"end";let u=0;const f=()=>{e.removeEventListener(c,h),s()},h=S=>{S.target===e&&++u>=a&&f()};setTimeout(()=>{u<a&&f()},l+1),e.addEventListener(c,h)}function xc(e,t){const n=window.getComputedStyle(e),o=y=>(n[y]||"").split(", "),r=o(`${At}Delay`),s=o(`${At}Duration`),i=si(r,s),l=o(`${Sn}Delay`),a=o(`${Sn}Duration`),c=si(l,a);let u=null,f=0,h=0;t===At?i>0&&(u=At,f=i,h=s.length):t===Sn?c>0&&(u=Sn,f=c,h=a.length):(f=Math.max(i,c),u=f>0?i>c?At:Sn:null,h=u?u===At?s.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 si(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>ii(n)+ii(e[o])))}function ii(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Sc(){return document.body.offsetHeight}function kc(e,t,n){const o=e[kn];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ur=Symbol("_vod"),li={beforeMount(e,{value:t},{transition:n}){e[ur]=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[ur]:"none"}const Ic=Symbol("");function Cc(e,t,n){const o=e.style,r=o.display,s=ye(n);if(n&&!s){if(t&&!ye(t))for(const i in t)n[i]==null&&dr(o,i,"");for(const i in n)dr(o,i,n[i])}else if(s){if(t!==n){const i=o[Ic];i&&(n+=";"+i),o.cssText=n}}else t&&e.removeAttribute("style");ur in e&&(o.display=r)}const ai=/\s*!important$/;function dr(e,t,n){if(J(n))n.forEach(o=>dr(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Tc(e,t);ai.test(n)?e.setProperty(Ue(o),n.replace(ai,""),"important"):e[o]=n}}const ci=["Webkit","Moz","ms"],fr={};function Tc(e,t){const n=fr[t];if(n)return n;let o=Re(t);if(o!=="filter"&&o in e)return fr[t]=o;o=zn(o);for(let r=0;r<ci.length;r++){const s=ci[r]+o;if(s in e)return fr[t]=s}return t}const ui="http://www.w3.org/1999/xlink";function $c(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(ui,t.slice(6,t.length)):e.setAttributeNS(ui,t,n);else{const s=Tl(t);n==null||s&&!Ar(n)?e.removeAttribute(t):e.setAttribute(t,s?"":n)}}function Ec(e,t,n,o,r,s,i){if(t==="innerHTML"||t==="textContent"){o&&i(o,r,s),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=Ar(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 Pc(e,t,n,o){e.removeEventListener(t,n,o)}const di=Symbol("_vei");function Mc(e,t,n,o,r=null){const s=e[di]||(e[di]={}),i=s[t];if(o&&i)i.value=o;else{const[l,a]=Oc(t);if(o){const c=s[t]=zc(o,r);ln(e,l,c,a)}else i&&(Pc(e,l,i,a),s[t]=void 0)}}const fi=/(?:Once|Passive|Capture)$/;function Oc(e){let t;if(fi.test(e)){t={};let o;for(;o=e.match(fi);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ue(e.slice(2)),t]}let pr=0;const Lc=Promise.resolve(),Ac=()=>pr||(Lc.then(()=>pr=0),pr=Date.now());function zc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;et(jc(o,n.value),t,5,[o])};return n.value=e,n.attached=Ac(),n}function jc(e,t){if(J(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 pi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Dc=(e,t,n,o,r,s,i,l,a)=>{const c=r==="svg";t==="class"?kc(e,o,c):t==="style"?Cc(e,n,o):Mn(t)?wo(t)||Mc(e,t,n,o,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Rc(e,t,o,c))?Ec(e,t,o,s,i,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),$c(e,t,o,c))};function Rc(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&pi(t)&&ee(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 pi(t)&&ye(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function Bc(e,t){const n=Se(e);class o extends hr{constructor(s){super(n,s,t)}}return o.def=n,o}const Vc=typeof HTMLElement<"u"?HTMLElement:class{};class hr extends Vc{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),vt(()=>{this._connected||(_i(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:s,styles:i}=o;let l;if(s&&!J(s))for(const a in s){const c=s[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=Co(this._props[a])),(l||(l=Object.create(null)))[Re(a)]=!0)}this._numberProps=l,r&&this._resolveProps(o),this._applyStyles(i),this._update()},n=this._def.__asyncLoader;n?n().then(o=>t(o,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,o=J(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(s){this._setProp(r,s)}})}_setAttr(t){let n=this.getAttribute(t);const o=Re(t);this._numberProps&&this._numberProps[o]&&(n=Co(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(Ue(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Ue(t),n+""):n||this.removeAttribute(Ue(t))))}_update(){_i(this._createVNode(),this.shadowRoot)}_createVNode(){const t=Z(this._def,be({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const o=(s,i)=>{this.dispatchEvent(new CustomEvent(s,{detail:i}))};n.emit=(s,...i)=>{o(s,i),Ue(s)!==s&&o(Ue(s),i)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof hr){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 hi=e=>{const t=e.props["onUpdate:modelValue"]||!1;return J(t)?n=>jn(t,n):t};function Nc(e){e.target.composing=!0}function gi(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const gr=Symbol("_assign"),Fc={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[gr]=hi(r);const s=o||r.props&&r.props.type==="number";ln(e,t?"change":"input",i=>{if(i.target.composing)return;let l=e.value;n&&(l=l.trim()),s&&(l=Io(l)),e[gr](l)}),n&&ln(e,"change",()=>{e.value=e.value.trim()}),t||(ln(e,"compositionstart",Nc),ln(e,"compositionend",gi),ln(e,"change",gi))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},s){if(e[gr]=hi(s),e.composing)return;const i=r||e.type==="number"?Io(e.value):e.value,l=t??"";i!==l&&(document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===l)||(e.value=l))}},Hc=["ctrl","shift","alt","meta"],Wc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Hc.some(n=>e[`${n}Key`]&&!t.includes(n))},rt=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(r,...s)=>{for(let i=0;i<t.length;i++){const l=Wc[t[i]];if(l&&l(r,t))return}return e(r,...s)})},Kc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},mi=(e,t)=>{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=r=>{if(!("key"in r))return;const s=Ue(r.key);if(t.some(i=>i===s||Kc[i]===s))return e(r)})},qc=be({patchProp:Dc},_c);let vi;function Uc(){return vi||(vi=Ga(qc))}const _i=(...e)=>{Uc().render(...e)},Yc=`.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},Xc={},Zc={class:"loading-indicator"};function Gc(e,t){return R(),K("div",Zc)}const mr=he(Xc,[["render",Gc],["styles",[Yc]]]),Qc=Object.freeze(Object.defineProperty({__proto__:null,default:mr},Symbol.toStringTag,{value:"Module"})),Jc={key:0,class:"fixed inset-0 h-[101%] overflow-auto scrollbar-none flex justify-center items-center z-10 bg-black"},eu={class:"flex justify-between items-end"},tu={class:"inline-block children-pointer-events-auto w-1/3"},nu={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},ou={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},ru={class:"inline-block z-20 relative"},bi=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=mr;return R(),K("div",{class:Ie(["reader-layout scrollbar-none",{"cursor-none":t.idle,"cursor-default":!t.idle,"bg-black":t.immediate||!t.loading,"opacity-0":!t.immediate&&t.loading,"duration-200 transition-colors":!t.immediate}])},[t.loading&&t.immediate?(R(),K("div",Jc,[Z(o)])):$e("",!0),we(t.$slots,"default"),U("div",{id:"controls",class:Ie(["fixed pointer-events-none cursor-auto transition-opacity duration-100 ease-linear left-0 top-0 w-screen h-screen flex flex-col justify-between p-2 sm:p-3 pb-6 md:pb-5 lg:pb-3",{"opacity-100 z-20":!t.fullScreen,"opacity-0 -z-10":t.fullScreen}])},[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`})},[we(t.$slots,"back"),we(t.$slots,"exit"),we(t.$slots,"chapter-nav")],4),U("div",eu,[U("div",tu,[we(t.$slots,"page-nav")]),U("div",nu,[we(t.$slots,"reset-zoom")]),U("div",ou,[we(t.$slots,"entry"),U("div",ru,[we(t.$slots,"settings")]),we(t.$slots,"full-screen"),we(t.$slots,"play"),we(t.$slots,"break-first")])]),U("div",{class:Ie(["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{--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;top:0;width:100vw}
22
+ `]]]),su=Object.freeze(Object.defineProperty({__proto__:null,default:bi},Symbol.toStringTag,{value:"Module"})),iu={},lu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},au=[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 cu(e,t){return R(),K("svg",lu,au)}const yi=he(iu,[["render",cu]]),uu=Object.freeze(Object.defineProperty({__proto__:null,default:yi},Symbol.toStringTag,{value:"Module"})),du={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"},fu={class:"block w-4 h-4"},pu={class:"w-12"},wi=Se({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>{const o=yi;return t.zoom!==1?(R(),K("button",du,[U("div",fu,[Z(o)]),U("div",pu,Je(Math.ceil(t.zoom*100))+"%",1)])):$e("",!0)}}}),hu=Object.freeze(Object.defineProperty({__proto__:null,default:wi},Symbol.toStringTag,{value:"Module"})),gu={},mu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 56 56"},vu=[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 _u(e,t){return R(),K("svg",mu,vu)}const xi=he(gu,[["render",_u]]),bu=Object.freeze(Object.defineProperty({__proto__:null,default:xi},Symbol.toStringTag,{value:"Module"})),yu={},wu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},xu=[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 Su(e,t){return R(),K("svg",wu,xu)}const Si=he(yu,[["render",Su]]),ku=Object.freeze(Object.defineProperty({__proto__:null,default:Si},Symbol.toStringTag,{value:"Module"})),Iu={},Cu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Tu=[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 $u(e,t){return R(),K("svg",Cu,Tu)}const vr=he(Iu,[["render",$u]]),Eu=Object.freeze(Object.defineProperty({__proto__:null,default:vr},Symbol.toStringTag,{value:"Module"})),Pu={},Mu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Ou=[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 Lu(e,t){return R(),K("svg",Mu,Ou)}const _r=he(Pu,[["render",Lu]]),Au=Object.freeze(Object.defineProperty({__proto__:null,default:_r},Symbol.toStringTag,{value:"Module"}));function zu({touchDevice:e}){const t=Y(!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 br(){const e=Wt("busy:touchDevice"),t=Wt("setBusyState");let n=!1;return yt(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:r=!1}={})=>{r&&e||(n=o,t==null||t(o))}}const ju=(e,t)=>{const n=+(e.getAttribute("data-ripple")??0);if(!n)return;const o=document.createElement("span");let r=1,s=.65;const i=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++,s-=.65/c,o.style.transform=`scale(${r})`,o.style.opacity=`${s}`):(o.remove(),clearInterval(i))}},an={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>ju(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},Du={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=br();let s=!1;function i(){s||(s=!0,r(!0,{desktopOnly:!0}))}function l(){s&&(s=!1,r(!1,{desktopOnly:!0}))}function a(c){n.disabled?c.preventDefault():o("click",c)}return(c,u)=>_t((R(),ve(va(c.href?"a":"button"),io(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:rt(a,["stop"]),onMouseenter:i,onMouseleave:l}),{default:te(()=>[U("div",Du,[we(c.$slots,"default")])]),_:3},16,["class"])),[[X(an),c.disabled?0:15]])}}),Ru=Object.freeze(Object.defineProperty({__proto__:null,default:uo},Symbol.toStringTag,{value:"Module"})),Bu={},Vu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Nu=[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 Fu(e,t){return R(),K("svg",Vu,Nu)}const ki=he(Bu,[["render",Fu]]),Hu=Object.freeze(Object.defineProperty({__proto__:null,default:ki},Symbol.toStringTag,{value:"Module"}));class Wu{constructor(){_e(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 Ku(){const e=new Wu;return yt(()=>e.dispose()),to("keyController",e),e}function fo(e){const t=Wt("keyController");nt(()=>t.addListener(e)),yt(()=>t.removeListener(e))}const qu={class:"flex w-full flex-shrink-0 justify-between items-center h-16 px-3"},Uu={class:"font-medium md:text-lg text-ellipsis overflow-hidden whitespace-nowrap px-3"},Yu={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},Ii=Se({__name:"BottomSheet",props:Et({name:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=rn(e,"modelValue");fo({onKeyDown:o});const n=br();fe(t,r=>n(r));function o(r){t.value&&r.key==="Escape"&&(t.value=!1,r.preventDefault())}return(r,s)=>{const i=ki,l=uo;return R(),K("div",{class:Ie(["fixed-screen flex flex-col items-center justify-end select-none",{"!pointer-events-none":!t.value}]),onClick:s[3]||(s[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:te(()=>[t.value?(R(),K("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:s[1]||(s[1]=rt(()=>{},["stop"])),onWheelPassive:s[2]||(s[2]=rt(()=>{},["stop"]))},[U("div",qu,[Z(l,{transparent:"",onClick:s[0]||(s[0]=()=>t.value=!1)},{default:te(()=>[Z(i)]),_:1}),U("div",Uu,Je(r.name),1),we(r.$slots,"actions")]),U("div",Yu,[we(r.$slots,"default")])],32)):$e("",!0)]),_:3})],2)}}}),Xu=Object.freeze(Object.defineProperty({__proto__:null,default:Ii},Symbol.toStringTag,{value:"Module"})),Zu=["min","max","step"],Gu={class:"flex-shrink-0"},Ci=he(Se({__name:"InputPercentage",props:Et({min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=rn(e,"modelValue"),n=oe({get(){return t.value},set(o){t.value=+o}});return(o,r)=>(R(),K("div",{class:Ie(["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}%`})},[_t(U("input",{"onUpdate:modelValue":r[0]||(r[0]=s=>n.value=s),type:"range",min:o.min,max:o.max,step:o.step??1,class:"flex-grow"},null,8,Zu),[[Fc,n.value]]),U("p",Gu,[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
+ `]]]),Qu=Object.freeze(Object.defineProperty({__proto__:null,default:Ci},Symbol.toStringTag,{value:"Module"})),Ju={class:"flex items-center mb-8 last:mb-0"},ed={class:"flex-grow overflow-hidden"},Ti=Se({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(R(),K("div",Ju,[U("div",{class:Ie(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},Je(t.label),3),U("div",ed,[we(t.$slots,"default")])]))}}),td=Object.freeze(Object.defineProperty({__proto__:null,default:Ti},Symbol.toStringTag,{value:"Module"})),nd=["onClick","onKeyup"],$i=Se({__name:"InputSelect",props:Et({items:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=rn(e,"modelValue"),o=Y(null),r=Y({width:"",left:""});nt(()=>{let i=!1;fe(n,l=>{var c;const a=(c=o.value)==null?void 0:c.children[l+1];a&&(r.value={width:a.offsetWidth+"px",left:a.offsetLeft+"px"},a.scrollIntoView({behavior:i?"smooth":"auto",block:"center",inline:"center"}),i=!0)},{immediate:!0})});function s(i){n.value=i}return(i,l)=>(R(),K("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),K(xe,null,vn(t.items,(a,c)=>_t((R(),K("div",{key:c,tabindex:"0",class:Ie(["inline-flex justify-center items-center h-6 rounded-2xl px-3 cursor-pointer relative z-10 whitespace-nowrap flex-shrink-0 focus:outline-primary hover:bg-stone-50 hover:bg-opacity-10 duration-200",{"text-stone-900":c==n.value,"text-stone-400":c!=n.value}]),onClick:()=>s(c),onKeyup:[mi(()=>s(c),["enter"]),mi(()=>s(c),["space"])]},[Mt(Je(a),1)],42,nd)),[[X(an),30]])),128))],512))}}),od=Object.freeze(Object.defineProperty({__proto__:null,default:$i},Symbol.toStringTag,{value:"Module"})),rd={},sd={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 ld(e,t){return R(),K("svg",sd,id)}const Ei=he(rd,[["render",ld]]),ad=Object.freeze(Object.defineProperty({__proto__:null,default:Ei},Symbol.toStringTag,{value:"Module"})),cd={},ud={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},dd=[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 fd(e,t){return R(),K("svg",ud,dd)}const Pi=he(cd,[["render",fd]]),pd=Object.freeze(Object.defineProperty({__proto__:null,default:Pi},Symbol.toStringTag,{value:"Module"}));function hd(e){if(e)try{return JSON.parse(e)}catch{return}}function gd(e){return String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var ft=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(ft||{}),Xt=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(Xt||{});const md=.25,vd=5,_d=.25,Cn=.25,Tn=5,bd=.05,yd=0,wd=4;function xd(e){var b,B,k,m,I,v;const{titleName:t,isWebtoon:n}=e,o=oe(()=>t.value?gd(t.value):location.hostname),r=Y(Sd(`tkr:${o.value}`)),s=T=>{r.value=T;const A=`tkr:${o.value}`;!T||!Object.keys(T).length?localStorage.removeItem(A):localStorage.setItem(A,JSON.stringify(T))},i=T=>{if(!r.value){s(T);return}const A={...r.value};Object.entries(T).forEach(([G,V])=>{V===void 0?delete A[G]:A[G]=V}),s(A)},l=Y(((b=r.value)==null?void 0:b.style)??e.defaultStyle??Xt.longStrip),a=Y(((B=r.value)==null?void 0:B.direction)??e.defaultDirection??ft.vertical),c=Y((k=r.value)==null?void 0:k.gap),u=Y(((m=r.value)==null?void 0:m.speed)??1),f=Y(((I=r.value)==null?void 0:I.zoom)??1),h=Y(((v=r.value)==null?void 0:v.breakFirst)??!1),S=oe({get(){return n.value?Xt.longStrip:l.value},set:T=>{l.value=T,i({style:T}),T!==Xt.longStrip&&a.value===ft.vertical&&(y.value=ft.rtl)}}),y=oe({get:()=>n.value?ft.vertical:a.value,set:T=>{a.value=T,i({direction:T})}}),w=oe({get:()=>c.value??(e.maybeWebtoon.value?0:1),set(T){c.value=T,i({gap:T})}}),L=oe({get:()=>u.value,set(T){u.value=T,i({speed:T===1?void 0:T})}}),M=oe({get:()=>f.value,set(T){f.value=T,i({zoom:T===1?void 0:T})}}),W=oe({get:()=>h.value,set(T){h.value=T,i({breakFirst:T?!0:void 0})}});return{direction:y,style:S,gap:w,speed:L,zoom:M,isLongStrip:oe(()=>S.value===Xt.longStrip),isDouble:oe(()=>S.value===Xt.double),isRTL:oe(()=>y.value===ft.rtl),isVertical:oe(()=>y.value===ft.vertical),breakFirst:W}}function Sd(e){const t=localStorage.getItem(e),n=hd(t),o={};return n?(n.style!==void 0&&Object.values(Xt).includes(n.style)&&(o.style=n.style),n.direction!==void 0&&Object.values(ft).includes(n.direction)&&(o.direction=n.direction),n.gap!==void 0&&n.gap>=yd&&n.gap<=wd&&(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 Mi=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=Y(!1),s=oe(()=>n.name??location.hostname);fo({onKeyUp:a=>{a.key==="s"&&!a.metaKey&&!a.ctrlKey&&(r.value=!r.value)}});function i(a){o("update:zoom",Math.round(a)/100)}function l(){r.value=!1,o("help")}return(a,c)=>{const u=Pi,f=uo,h=Ei,S=$i,y=Ti,w=Ci,L=Ii;return R(),K(xe,null,[Z(f,{title:"Reader settings (S)",disabled:a.disabled,onClick:c[0]||(c[0]=()=>r.value=!0)},{default:te(()=>[Z(u)]),_:1},8,["disabled"]),Z(L,{modelValue:r.value,"onUpdate:modelValue":c[5]||(c[5]=M=>r.value=M),name:s.value},{actions:te(()=>[Z(f,{transparent:"",onClick:l},{default:te(()=>[Z(h)]),_:1})]),default:te(()=>[Z(y,{label:"Style"},{default:te(()=>[Z(S,{"model-value":a.readerStyle,items:a.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":c[1]||(c[1]=M=>o("update:reader-style",M))},null,8,["model-value","items"])]),_:1}),Z(y,{label:"Direction"},{default:te(()=>[Z(S,{"model-value":a.direction,items:a.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":c[2]||(c[2]=M=>o("update:direction",M))},null,8,["model-value","items"])]),_:1}),Z(y,{label:"Gap"},{default:te(()=>[Z(S,{"model-value":a.gap,items:["None","XS","SM","M","L","XL"],"onUpdate:modelValue":c[3]||(c[3]=M=>o("update:gap",M))},null,8,["model-value"])]),_:1}),Z(y,{label:"Speed"},{default:te(()=>[Z(w,{"model-value":a.speed,min:X(md),max:X(vd),step:X(_d),suffix:"x","onUpdate:modelValue":c[4]||(c[4]=M=>o("update:speed",M))},{suffix:te(()=>[Mt(Je(a.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),Z(y,{label:"Zoom"},{default:te(()=>[Z(w,{"model-value":Math.ceil(a.zoom*100),min:X(Cn)*100,max:X(Tn)*100,step:X(bd)*100,"onUpdate:modelValue":i},{suffix:te(()=>[Mt(Je(Math.ceil(a.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64)}}}),kd=Object.freeze(Object.defineProperty({__proto__:null,default:Mi},Symbol.toStringTag,{value:"Module"})),Id={},Cd={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Td=[U("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function $d(e,t){return R(),K("svg",Cd,Td)}const Oi=he(Id,[["render",$d]]),Ed=Object.freeze(Object.defineProperty({__proto__:null,default:Oi},Symbol.toStringTag,{value:"Module"})),Pd={},Md={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Od=[U("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function Ld(e,t){return R(),K("svg",Md,Od)}const Li=he(Pd,[["render",Ld]]),Ad=Object.freeze(Object.defineProperty({__proto__:null,default:Li},Symbol.toStringTag,{value:"Module"})),zd={},jd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Dd=[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 Rd(e,t){return R(),K("svg",jd,Dd)}const Ai=he(zd,[["render",Rd]]),Bd=Object.freeze(Object.defineProperty({__proto__:null,default:Ai},Symbol.toStringTag,{value:"Module"})),Vd={},Nd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Fd=[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 Hd(e,t){return R(),K("svg",Nd,Fd)}const zi=he(Vd,[["render",Hd]]),Wd=Object.freeze(Object.defineProperty({__proto__:null,default:zi},Symbol.toStringTag,{value:"Module"})),Kd={},qd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Ud=[U("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function Yd(e,t){return R(),K("svg",qd,Ud)}const ji=he(Kd,[["render",Yd]]),Xd=Object.freeze(Object.defineProperty({__proto__:null,default:ji},Symbol.toStringTag,{value:"Module"})),Zd=["aria-hidden"],Gd=["onClick"],Qd={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"},Jd={class:"whitespace-nowrap"},yr=Se({__name:"ButtonDropdown",props:Et({label:{},title:{},items:{},disabled:{type:Boolean}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:Et(["select"],["update:modelValue"]),setup(e,{emit:t}){const n=e,o=t,r=rn(e,"modelValue"),s=Y(null),i=Y(!1),l=Y(null),a=Y(!1),c=Y(!1),u=Y(!1);fo({onKeyDown:w});const f=br();function h(){if(!n.items.length){i.value=!1;return}i.value=!i.value,f(i.value),i.value?(S(),vt(()=>setTimeout(()=>{var m,I;(I=(m=l.value)==null?void 0:m.children[r.value])==null||I.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),M(s.value)):setTimeout(W,250)}function S(){const m=s.value;if(m){const I=m.getBoundingClientRect(),v=I.x+I.width/2;a.value=I.y>window.innerHeight/2,c.value=v<window.innerWidth/3,u.value=v>window.innerWidth/3*2}}function y(m,I){m!=r.value&&(r.value=m,o("select",m,I)),h()}function w(m){i.value&&m.key==="Escape"&&(h(),m.preventDefault())}let L=[];function M(m){const I=window.getComputedStyle(m).zIndex,v=m.style.zIndex;(!I||!(+I>0))&&((!m.parentElement||m.parentElement.childElementCount>1)&&(m.style.zIndex="1",L.push({el:m,zIndex:v})),m.parentElement&&M(m.parentElement))}function W(){L.forEach(({el:m,zIndex:I})=>{m.style.zIndex=I??""}),L=[]}let b=!1;function B(){b||(b=!0,f(!0,{desktopOnly:!0}))}function k(){b&&(b=!1,f(!1,{desktopOnly:!0}))}return(m,I)=>{const v=ji;return R(),K("div",{ref_key:"root",ref:s,class:"select-none relative inline-flex"},[i.value?(R(),K("div",{key:0,class:"fixed-screen bg-transparent",onClick:h})):$e("",!0),m.items.length?(R(),ve(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:te(()=>[i.value?(R(),K("ul",{key:0,ref_key:"list",ref:l,"aria-hidden":!i.value,class:Ie(["scrollbar-sm duration-150 delay-50 absolute w-40 max-h-[70vh] list-none bg-stone-800 bg-opacity-80 backdrop-blur-md rounded-lg overflow-auto",{"origin-bottom bottom-full -translate-y-1.5":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:I[0]||(I[0]=rt(()=>{},["stop"]))},[(R(!0),K(xe,null,vn(m.items,(T,A)=>_t((R(),K("li",{key:A,tabindex:"-1",class:Ie(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":A===r.value}]),onClick:G=>y(A,G)},[U("div",{class:Ie(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":A>0}])},[we(m.$slots,"item",{item:T},()=>[Mt(Je(T),1)])],2)],10,Gd)),[[X(an),30]])),128))],42,Zd)):$e("",!0)]),_:3})):$e("",!0),_t((R(),K("button",io({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:rt(h,["stop"]),onMouseenter:B,onMouseleave:k}),[U("div",Qd,[U("span",Jd,Je(m.label),1),m.items.length?(R(),K("span",{key:0,class:Ie(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":a.value}]),"aria-hidden":"true"},[Z(v)],2)):$e("",!0)])],16)),[[X(an),30]])],512)}}}),ef=Object.freeze(Object.defineProperty({__proto__:null,default:yr},Symbol.toStringTag,{value:"Module"})),Di=Se({__name:"PageNav",props:Et({disabled:{type:Boolean},pages:{},totalImgs:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=rn(e,"modelValue"),o=oe(()=>t.pages.map(a=>a.map(({index:c})=>`${c+1}`).join("-"))),r=oe(()=>{const a=n.value,c=t.pages.findIndex(u=>u.some(({index:f})=>f===a));return c===-1?t.pages.length-1:c}),s=oe(()=>t.pages.length?`${o.value[r.value]}/${t.totalImgs}`:"--");function i(a){const c=t.pages[a][0].index;l(c)}function l(a){n.value=a}return(a,c)=>{const u=yr;return R(),ve(u,{"model-value":r.value,label:s.value,title:"Current page",items:o.value,disabled:a.disabled,"onUpdate:modelValue":i},null,8,["model-value","label","items","disabled"])}}}),tf=Object.freeze(Object.defineProperty({__proto__:null,default:Di},Symbol.toStringTag,{value:"Module"})),nf={},of={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},rf=[U("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function sf(e,t){return R(),K("svg",of,rf)}const Ri=he(nf,[["render",sf]]),lf=Object.freeze(Object.defineProperty({__proto__:null,default:Ri},Symbol.toStringTag,{value:"Module"})),af={},cf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},uf=[U("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function df(e,t){return R(),K("svg",cf,uf)}const Bi=he(af,[["render",df]]),ff=Object.freeze(Object.defineProperty({__proto__:null,default:Bi},Symbol.toStringTag,{value:"Module"})),pf={},hf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},gf=[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 mf(e,t){return R(),K("svg",hf,gf)}const Vi=he(pf,[["render",mf]]),vf=Object.freeze(Object.defineProperty({__proto__:null,default:Vi},Symbol.toStringTag,{value:"Module"})),_f={},bf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},yf=[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 wf(e,t){return R(),K("svg",bf,yf)}const Ni=he(_f,[["render",wf]]),xf=Object.freeze(Object.defineProperty({__proto__:null,default:Ni},Symbol.toStringTag,{value:"Module"}));var Fi;const wr=typeof window<"u",Sf=e=>typeof e=="string",jt=()=>{};wr&&((Fi=window==null?void 0:window.navigator)!=null&&Fi.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function po(e){return typeof e=="function"?e():X(e)}function Hi(e,t){function n(...o){return new Promise((r,s)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(s)})}return n}function kf(e,t={}){let n,o,r=jt;const s=l=>{clearTimeout(l),r(),r=jt};return l=>{const a=po(e),c=po(t.maxWait);return n&&s(n),a<=0||c!==void 0&&c<=0?(o&&(s(o),o=null),Promise.resolve(l())):new Promise((u,f)=>{r=t.rejectOnCancel?f:u,c&&!o&&(o=setTimeout(()=>{n&&s(n),o=null,u(l())},c)),n=setTimeout(()=>{o&&s(o),o=null,u(l())},a)})}}function If(e,t=!0,n=!0,o=!1){let r=0,s,i=!0,l=jt,a;const c=()=>{s&&(clearTimeout(s),s=void 0,l(),l=jt)};return f=>{const h=po(e),S=Date.now()-r,y=()=>a=f();if(c(),h<=0)return r=Date.now(),y();if(S>h&&(n||!i))r=Date.now(),y();else if(t)return new Promise((w,L)=>{l=o?L:w,s=setTimeout(()=>{r=Date.now(),i=!0,w(y()),c()},h-S)});return!n&&!s&&(s=setTimeout(()=>i=!0,h)),i=!1,a}}function Cf(e){return e}function xr(e){return jr()?(Pl(e),!0):!1}function je(e,t=200,n={}){return Hi(kf(t,n),e)}function Wi(e,t=200,n=!1,o=!0,r=!1){return Hi(If(t,n,o,r),e)}function Ki(e,t=!0){lr()?nt(e):t?e():vt(e)}function Zt(e){var t;const n=po(e);return(t=n==null?void 0:n.$el)!=null?t:n}const $n=wr?window:void 0,Tf=wr?window.document:void 0;function wt(...e){let t,n,o,r;if(Sf(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=$n):[t,n,o,r]=e,!t)return jt;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(u=>u()),s.length=0},l=(u,f,h)=>(u.addEventListener(f,h,r),()=>u.removeEventListener(f,h,r)),a=fe(()=>Zt(t),u=>{i(),u&&s.push(...n.flatMap(f=>o.map(h=>l(u,f,h))))},{immediate:!0,flush:"post"}),c=()=>{a(),i()};return xr(c),c}function qi(e,t=!1){const n=Y(),o=()=>n.value=!!e();return o(),Ki(o,t),n}const Ui=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Yi="__vueuse_ssr_handlers__";Ui[Yi]=Ui[Yi]||{};function Xi({document:e=Tf}={}){if(!e)return Y("visible");const t=Y(e.visibilityState);return wt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var Zi=Object.getOwnPropertySymbols,$f=Object.prototype.hasOwnProperty,Ef=Object.prototype.propertyIsEnumerable,Pf=(e,t)=>{var n={};for(var o in e)$f.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Zi)for(var o of Zi(e))t.indexOf(o)<0&&Ef.call(e,o)&&(n[o]=e[o]);return n};function Mf(e,t,n={}){const o=n,{window:r=$n}=o,s=Pf(o,["window"]);let i;const l=qi(()=>r&&"ResizeObserver"in r),a=()=>{i&&(i.disconnect(),i=void 0)},c=fe(()=>Zt(e),f=>{a(),l.value&&r&&f&&(i=new ResizeObserver(t),i.observe(f,s))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return xr(u),{isSupported:l,stop:u}}function Sr(e,t={width:0,height:0},n={}){const{window:o=$n,box:r="content-box"}=n,s=oe(()=>{var a,c;return(c=(a=Zt(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),i=Y(t.width),l=Y(t.height);return Mf(e,([a])=>{const c=r==="border-box"?a.borderBoxSize:r==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&s.value){const u=Zt(e);if(u){const f=o.getComputedStyle(u);i.value=parseFloat(f.width),l.value=parseFloat(f.height)}}else if(c){const u=Array.isArray(c)?c:[c];i.value=u.reduce((f,{inlineSize:h})=>f+h,0),l.value=u.reduce((f,{blockSize:h})=>f+h,0)}else i.value=a.contentRect.width,l.value=a.contentRect.height},n),fe(()=>Zt(e),a=>{i.value=a?t.width:0,l.value=a?t.height:0}),{width:i,height:l}}function kr(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:s=.1,window:i=$n}=n,l=qi(()=>i&&"IntersectionObserver"in i);let a=jt;const c=l.value?fe(()=>({el:Zt(e),root:Zt(o)}),({el:f,root:h})=>{if(a(),!f)return;const S=new IntersectionObserver(t,{root:h,rootMargin:r,threshold:s});S.observe(f),a=()=>{S.disconnect(),a=jt}},{immediate:!0,flush:"post"}):jt,u=()=>{a(),c()};return xr(u),{isSupported:l,stop:u}}var Gi;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Gi||(Gi={}));var Of=Object.defineProperty,Qi=Object.getOwnPropertySymbols,Lf=Object.prototype.hasOwnProperty,Af=Object.prototype.propertyIsEnumerable,Ji=(e,t,n)=>t in e?Of(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zf=(e,t)=>{for(var n in t||(t={}))Lf.call(t,n)&&Ji(e,n,t[n]);if(Qi)for(var n of Qi(t))Af.call(t,n)&&Ji(e,n,t[n]);return e};zf({linear:Cf},{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 jf(e={}){const{window:t=$n,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:r=!0,includeScrollbar:s=!0}=e,i=Y(n),l=Y(o),a=()=>{t&&(s?(i.value=t.innerWidth,l.value=t.innerHeight):(i.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};return a(),Ki(a),wt("resize",a,{passive:!0}),r&&wt("orientationchange",a,{passive:!0}),{width:i,height:l}}const el=he(Se({__name:"ReaderTour",emits:["hide"],setup(e,{emit:t}){const n=t,o=Y(null),r=Y(0),s=Y([]),i=oe(()=>s.value[r.value]),l=Wi(a,500);nt(()=>{const f=Sr(o),h=je(()=>c({width:f.width.value,height:f.height.value}),50);h(),fe(f.width,h),fe(f.height,h)});function a(){r.value>=s.value.length-1?n("hide"):r.value++}function c(f){const h=u();s.value=h.map(({rect:S,text:y})=>{const w=S.top<f.height-S.bottom,L=S.left<f.width-S.right;return{text:y,style:{left:`${S.left}px`,top:`${S.top}px`,width:`${S.width}px`,height:`${S.height}px`},textStyle:{left:L?`${S.left-12}px`:void 0,right:L?void 0:`${f.width-S.left}px`,top:w?`${S.bottom+12}px`:`${S.top+20}px`,textAlign:w?void 0:"right",transform:w?void 0:"translateY(-50%)"}}}),r.value>=s.value.length&&(r.value=s.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(y=>{var M;const w=(M=y.getAttribute("data-tour"))==null?void 0:M.trim();if(!(w!=null&&w.length))return;const L=y.getBoundingClientRect();h.push({rect:L,text:w})}),h}return(f,h)=>{var S,y;return R(),K(xe,null,[U("div",{class:Ie(["fixed-screen bg-black bg-opacity-50 duration-500",{"opacity-0":!i.value,"opacity-100":!!i.value}])},null,2),U("div",{ref_key:"root",ref:o,class:"tour",onClick:h[0]||(h[0]=rt((...w)=>X(l)&&X(l)(...w),["stop"]))},[i.value?(R(),K("div",{key:r.value,class:"tour__target",style:Ae(i.value.style)},null,4)):$e("",!0),(R(),K("div",{key:r.value,class:"tour__text",style:Ae((S=i.value)==null?void 0:S.textStyle)},Je(((y=i.value)==null?void 0:y.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
+ `]]]),Df=Object.freeze(Object.defineProperty({__proto__:null,default:el},Symbol.toStringTag,{value:"Module"})),Rf=U("div",{class:"fixed-screen bg-black bg-opacity-90"},null,-1),tl=Se({__name:"HelpScreen",props:{touchDevice:{type:Boolean}},emits:["hide"],setup(e,{emit:t}){const n=e,o=t,r=Y(null),s=Y([]);nt(async()=>{const c=Sr(r),u=je(()=>{i({width:c.width.value,height:c.height.value})},50);u(),fe(c.width,u),fe(c.height,u)});function i(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&&(s.value=l(f,c))}function l(c,u){const f=[],h=[];let S=0,y=0;const w=50,L=25;c.forEach(k=>{var A;const m=(A=k.getAttribute("title"))==null?void 0:A.trim(),I=k.getBoundingClientRect();if(!m||!I.height||!I.width)return;const v=Math.ceil((I.top-10)/w),T=Math.ceil((I.left-10)/w);h.push({isTour:!1,title:m,rect:I,fromX:T,toX:Math.max(T+1,Math.ceil((I.right+10)/w)),fromY:v,toY:Math.max(v+1,Math.ceil((I.bottom+10)/w))})}),h.forEach(k=>{for(let m=k.fromY;m<k.toY;m++){f[m]??(f[m]=[]);for(let I=k.fromX;I<k.toX;I++)f[m][I]=k;k.toY>S+1&&(S=k.toY-1),k.toX>y+1&&(y=k.toX-1)}});let M=y/2;h.forEach(k=>{k.isAlignRight=k.fromX>M});const W=(k,m)=>{f[m]??(f[m]=[]);const I=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+(I?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 A=v;A<T;A++)f[m][A]=k.helpItem}},b=(k,m)=>{if(m>S||m<0)return!1;const I=m>=k.toY,v=f[m];if(!v)return W(k,m),!0;const T=v[k.fromX];if(T&&!T.isTour)return!1;if(T&&T.isTour)return b(T,I?m+1:m-1)?(W(k,m),!0):!1;if(!T){const A=k.isAlignRight?-1:1;return v[k.fromX+A]||v[k.fromX+A*2]?b(k,I?m+1:m-1):(W(k,m),!0)}return!1};h.forEach(k=>{if(!b(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 A=k.fromX-3;A<k.fromX;A++)m[A]=k.helpItem;return}}b(k,k.fromY-1)}});const B=[];return h.forEach(k=>{const{title:m,helpItem:I,rect:v,isAlignRight:T,fromX:A,fromY:G,toY:V}=k;if(!m||!I||!v)return;const se=I.fromY>=V,de=I.toY<=G;B.push({title:a(m),style:{top:se?`${v.bottom+(I.fromY-V)*w+L}px`:de?void 0:`${v.top+8}px`,bottom:de?`${u.height-v.top+(I.toY-G)*w+L}px`:void 0,left:T?void 0:`${v.left}px`,right:T?se?`${u.width-v.right}px`:`${u.width-v.right+v.width+L}px`:void 0},arrowStyle:{width:de||se?"2px":`${Math.abs(I.toX-A)*w+L-5}px`,height:de||se?`${(se?I.fromY-V:G-I.toY)*w+L}px`:"2px",top:se?`${v.bottom}px`:de?void 0:`${v.top+20}px`,bottom:de?`${u.height-v.top}px`:void 0,left:T?void 0:`${v.left+v.width/2}px`,right:T?se?`${u.width-v.right+v.width/2}px`:`${u.width-v.right+v.width}px`:void 0}})}),B}function a(c){return n.touchDevice?c.split("(")[0].trim():c}return(c,u)=>(R(),K(xe,null,[Rf,U("div",{ref_key:"root",ref:r,class:"fixed-screen z-20 overscroll-contain select-none",onClick:u[0]||(u[0]=rt(f=>o("hide"),["stop"]))},[(R(!0),K(xe,null,vn(s.value,f=>(R(),K(xe,{key:f.title},[U("div",{class:"absolute",style:Ae(f.style)},Je(f.title),5),U("div",{class:"absolute bg-stone-300 rounded-lg",style:Ae(f.arrowStyle)},null,4)],64))),128))],512)],64))}}),Bf=Object.freeze(Object.defineProperty({__proto__:null,default:tl},Symbol.toStringTag,{value:"Module"})),nl=he(Se({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=Y(0);return fe(()=>t.playing,()=>{n.value=Date.now()}),(o,r)=>{const s=vr,i=_r;return n.value?(R(),K("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(),ve(s,{key:0})):(R(),ve(i,{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
+ `]]]),Vf=Object.freeze(Object.defineProperty({__proto__:null,default:nl},Symbol.toStringTag,{value:"Module"})),Nf={},Ff={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Hf=[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 Wf(e,t){return R(),K("svg",Ff,Hf)}const ol=he(Nf,[["render",Wf]]),Kf=Object.freeze(Object.defineProperty({__proto__:null,default:ol},Symbol.toStringTag,{value:"Module"})),rl=Se({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=sessionStorage.getItem("tk:dir"),o=Y(typeof n!="string"||+n!==t.direction),r=je(()=>o.value=!1,1250);fe(()=>t.direction,()=>{s(),o.value=!0,r()}),nt(()=>{s(),r();let i;const l=Xi();fe(l,a=>{a!=="visible"?i=Date.now():Date.now()-i>3e4&&(o.value=!0,r())})});function s(){sessionStorage.setItem("tk:dir",t.direction+"")}return(i,l)=>{const a=ol;return R(),ve(sn,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:te(()=>[o.value?(R(),K("div",{key:0,class:Ie(["fixed z-50 left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 pointer-events-none w-28 h-24 p-4 bg-black bg-opacity-40 rounded-2xl duration-500",{"rotate-90":i.direction===X(ft).vertical,"rotate-180":i.direction===X(ft).rtl}])},[Z(a)],2)):$e("",!0)]),_:1})}}}),qf=Object.freeze(Object.defineProperty({__proto__:null,default:rl},Symbol.toStringTag,{value:"Module"})),ho=[];function Uf(e){ho.push(e),yt(()=>{const t=ho.indexOf(e);t!==-1&&ho.splice(t,1)})}function Yf(e,t){const{innerWidth:n,innerHeight:o}=window,r=e*n,s=t*o;ho.forEach(i=>i(r,s))}const go=[];function Xf(e){go.push(e),yt(()=>{const t=go.indexOf(e);t!==-1&&go.splice(t,1)})}function Zf(){go.forEach(e=>e())}const sl=Se({__name:"ZoomWrapper",props:Et({pageIndex:{},playController:{},rtl:{type:Boolean},horizontal:{type:Boolean},longStrip:{type:Boolean},touchDevice:{type:Boolean},busy:{type:Boolean}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:Et(["dragEnd","click"],["update:modelValue"]),setup(e,{emit:t}){const n=e,o=t,r=rn(e,"modelValue"),s=Y(null),i=Y(Math.min(Tn,Math.max(Cn,r.value))),l=Y(!1),a=Y(!1),c=Y(!1);let u=!1;fe(r,x=>pe(x)),nt(()=>{if(!n.touchDevice){wt(s,"mousedown",y),wt(window,"wheel",m);return}if(wt(s,"touchstart",W),!navigator.userAgent.toLowerCase().includes("android")){Uf(G);return}let C=!1;const D=je(()=>{C=!1},150);wt(s,"scroll",()=>{C=!0,D()}),Xf(()=>{var ae;if(n.busy||!C)return;const re=setTimeout(()=>{C=!1,u=!0;const ge=s.value;ge==null||ge.style.setProperty("overflow","hidden"),setTimeout(()=>ge==null?void 0:ge.style.removeProperty("overflow"),20)},100);(ae=s.value)==null||ae.addEventListener("touchstart",()=>{clearTimeout(re)},{once:!0})})}),fo({onKeyDown:x=>{var C;if(!n.busy&&((C=s.value)==null||C.focus(),!(x.key==="Meta"||x.key==="Control")&&(x.ctrlKey||x.metaKey)))switch(x.key){case"0":pe(1);break;case"-":pe(i.value-.2),x.preventDefault();break;case"=":case"+":pe(i.value+.2),x.preventDefault();break}}});function f(x){a.value!==x&&(a.value=x,x?n.playController.pause():(o("dragEnd"),n.playController.resume()))}let h={x:0,y:0},S={x:0,y:0};function y(x){x.button===0&&(h={x:x.clientX,y:x.clientY},S={x:s.value.scrollLeft,y:s.value.scrollTop},window.addEventListener("mousemove",w),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",w),setTimeout(()=>f(!1))},{once:!0}),x.preventDefault(),x.stopPropagation())}function w(x){f(!0);const C=x.clientX-h.x,D=x.clientY-h.y,re=s.value;re.scrollLeft=S.x-C,re.scrollTop=S.y-D}let L=!1,M={distance:0,zoom:i.value,x:0,y:0};function W(x){n.busy||(L=x.touches.length===2,L&&(f(!0),x.stopPropagation(),x.preventDefault(),M={distance:I(x),zoom:i.value,x:(x.touches[0].clientX+x.touches[1].clientX)/2,y:(x.touches[0].clientY+x.touches[1].clientY)/2}),(L||n.playController.isPlaying.value&&n.longStrip)&&(window.addEventListener("touchmove",B),window.addEventListener("touchend",b,{once:!0})))}function b(){if(window.removeEventListener("touchmove",B),L){f(!1),L=!1;return}if(!a.value)return;const x=je(()=>{f(!1),s.value.removeEventListener("scroll",D)},200),C=setTimeout(x,200);s.value.addEventListener("scroll",D);function D(){clearTimeout(C),x()}}function B(x){if(f(!0),L){x.stopPropagation(),x.preventDefault();const D=I(x)/M.distance;pe(Math.ceil(D*M.zoom*100)/100,M)}}const k=je(()=>l.value=!1,100);function m(x){if(!n.busy){if(x.ctrlKey||x.metaKey){x.stopPropagation(),x.preventDefault();const C=Math.ceil((i.value+x.deltaY*-.01)*100)/100;pe(C,{x:x.clientX,y:x.clientY});return}n.horizontal&&(l.value||(l.value=!0),k(),x.deltaY&&(s.value&&(s.value.scrollLeft+=x.deltaY*(n.rtl?-1:1)),x.stopPropagation()))}}function I(x){return Math.hypot(x.touches[0].clientX-x.touches[1].clientX,x.touches[0].clientY-x.touches[1].clientY)}let v=0,T;function A(x){if(u){u=!1;return}if(!a.value){if(!n.touchDevice){o("click",x);return}v++,T&&clearTimeout(T),v===2&&G(x.clientX,x.clientY),T=setTimeout(()=>{!a.value&&v===1&&o("click",x),T=void 0,v=0},300)}}function G(x,C){if(!v)return;v=0;const D=i.value===1?2:1;pe(D,{x,y:C})}let V;const se=je(()=>{c.value=!1,V=void 0},150);function de(){if(!c.value){const x=s.value;if(!x)return;const C=x.querySelector(`[data-index="${n.pageIndex}"],[data-index2="${n.pageIndex}"]`)??void 0;C&&(V={el:C,rect:C.getBoundingClientRect()},c.value=!0)}if(V)return se(),V}async function pe(x,C){const D=s.value,re=Math.min(Tn,Math.max(Cn,x));if(!D||i.value===re)return;const ae=de();if(!ae)return;const ge=(C==null?void 0:C.x)??D.clientWidth/2,Ee=(C==null?void 0:C.y)??D.clientHeight/2;i.value=re,r.value=re,await vt();const{el:Me,rect:Ne}=ae,pt=Me.offsetWidth/Ne.width,Le=Me.offsetHeight/Ne.height;D.scrollLeft=Me.offsetLeft-Ne.left*pt+ge*(pt-1),D.scrollTop=Me.offsetTop-Ne.top*Le+Ee*(Le-1)}return(x,C)=>(R(),K("div",{ref_key:"root",ref:s,tabindex:"0",class:Ie(["w-full h-full overflow-auto overscroll-contain scrollbar-none focus:outline-none touch-pan-x touch-pan-y",{"!snap-none":!x.longStrip&&(a.value||l.value||c.value),"cursor-grabbing":a.value,"overflow-hidden":c.value}]),style:Ae({"font-size":`${i.value}px`}),onClick:rt(A,["stop"])},[we(x.$slots,"default")],6))}}),Gf=Object.freeze(Object.defineProperty({__proto__:null,default:sl},Symbol.toStringTag,{value:"Module"})),il=Se({__name:"IntersectionWrapper",emits:["visible"],setup(e,{emit:t}){const n=t,o=Y(null),r=Y(!1);return nt(async()=>{await vt();let s=!1;kr(o,i=>{r.value=i.some(l=>l.isIntersecting),r.value&&!s&&n("visible")})}),(s,i)=>(R(),K("div",{ref_key:"root",ref:o},[we(s.$slots,"default",{visible:r.value})],512))}}),Qf=Object.freeze(Object.defineProperty({__proto__:null,default:il},Symbol.toStringTag,{value:"Module"}));function Jf({pageIndex:e,isLongStrip:t}){let n=e.value,o=e.value+3;const r=Y(n),s=Y(o),i=je(l,50);fe(e,a=>{n>a&&(n=a)});function l(){r.value!==n&&(r.value=n),s.value!==o&&(s.value=o)}return{min:r,max:s,onPageVisible(a){o<a&&(o=a),i()},onScroll(){t.value?l():i()}}}const ep={key:0,class:"page--loading"},tp=["src"],np=["src"],op=["data-index"],ll=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},hasNext:{type:Boolean}},emits:["update:zoom","update:playing","dragEnd","click","end","prev","next"],setup(e,{emit:t}){const n=e,o=t,r=Y(null),s=oe(()=>{var y;return(y=r.value)==null?void 0:y.$el}),i=Y(null),l=Sr(s),a=oe(()=>{const{width:y,height:w}=l,L=n.isLongStrip?n.isVertical?y.value:w.value:Math.min(y.value,w.value);return Math.min(4,Math.max(1,Math.ceil(L/400-1)))*n.gap}),c=Jf({pageIndex:oe(()=>n.pageIndex),isLongStrip:oe(()=>n.isLongStrip)}),u=oe(()=>{const{width:{value:y},height:{value:w}}=l;return n.pages.map(L=>{var T;const M=L.some(A=>{var G;return(G=A.img)==null?void 0:G.isLoading}),W=L.map(A=>A.index),b={isLoading:M,indexes:W};if(M||W[W.length-1]<c.min.value-1||W[0]>c.max.value+2)return b;const B=L.map(({img:A})=>A).filter(Boolean);if(!B.length||(b.srcs=B.map(({src:A})=>A),B.every(A=>A.hasError)))return b;const m=(T=B.find(A=>!A.hasError))==null?void 0:T.size,I=B.reduce((A,G)=>{var V;return A+(((V=G.size)==null?void 0:V.width)??m.width)},0),v=B.reduce((A,G)=>{var V;return A+(((V=G.size)==null?void 0:V.height)??m.height)},0)/B.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&y/I<w/v?(b.width=Math.min(y,I),b.height=v*b.width/I):b.height=Math.min(w,v),b})}),f=oe(()=>{const y=n.isVertical?"width":"height";return u.value.map(w=>w[y]).filter(Boolean).sort((w,L)=>L-w)[0]});function h({indexes:y}){const w=y[y.length-1];w!==void 0&&c.onPageVisible(w)}function S(y){if(!n.isLongStrip){const w=n.isVertical?l.height.value:l.width.value,M=(n.isVertical?y.clientY:n.isRTL?w-y.clientX:y.clientX)/w;if(M<=.2&&n.pageIndex>0){o("prev");return}else if(M>=.8){o("next");return}}o("click")}return(y,w)=>{const L=mr,M=il,W=sl;return R(),ve(W,{ref_key:"root",ref:r,"model-value":y.zoom,"page-index":y.pageIndex,class:Ie(["reader-body",{"reader-body--long-strip":y.isLongStrip,"reader-body--pages":!y.isLongStrip,"reader-body--vertical":y.isVertical,"reader-body--rtl":y.isRTL,"reader-body--idle":y.idle,"reader-body--first":!y.isLongStrip&&y.pageIndex==0,"reader-body--last":!y.isLongStrip&&y.pageIndex==y.totalImgs&&!y.hasNext}]),"play-controller":y.playController,horizontal:!y.isVertical,rtl:y.isRTL,"touch-device":y.touchDevice,busy:y.busy,"long-strip":y.isLongStrip,style:Ae({"--gap":`${a.value}em`,"--space-top":(y.spaceTop||0)+"px","--screen-width-em":X(l).width.value+"em","--screen-height-em":X(l).height.value+"em",...y.isLongStrip?{"--max-size-em":f.value+"em"}:{}}),"onUpdate:modelValue":w[0]||(w[0]=b=>o("update:zoom",b)),onDragEnd:w[1]||(w[1]=()=>o("dragEnd")),onClick:S,onScroll:X(c).onScroll},{default:te(()=>[(R(!0),K(xe,null,vn(u.value,b=>(R(),ve(M,io({key:y.direction+"_"+b.indexes[0],"data-index":b.indexes[0]},b.indexes.length>1?{"data-index2":b.indexes[1]}:{},{onVisible:()=>h(b)}),{default:te(({visible:B})=>{var k;return[!((k=b.srcs)!=null&&k.length)||b.isLoading?(R(),K("div",ep,[_t(Z(L,null,null,512),[[li,B]])])):b.srcs.length==1?(R(),K("img",{key:1,src:b.srcs[0],style:Ae({height:b.height!==void 0?b.height+"em":""})},null,12,tp)):(R(),K("div",{key:2,class:Ie(["page--double",{"flex-row-reverse":y.isRTL}]),style:Ae({width:b.width!==void 0?b.width+"em":"",height:b.height!==void 0?b.height+"em":""})},[(R(!0),K(xe,null,vn(b.srcs,m=>(R(),K("div",{key:m},[U("img",{src:m},null,8,np)]))),128))],6))]}),_:2},1040,["data-index","onVisible"]))),128)),U("div",{ref_key:"autoNextEl",ref:i,class:"last","data-index":y.totalImgs},[we(y.$slots,"end")],8,op)]),_: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
+ `]]]),rp=Object.freeze(Object.defineProperty({__proto__:null,default:ll},Symbol.toStringTag,{value:"Module"})),sp={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},ip={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},lp={key:0,class:"animate-auto-next absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50 animate-auto-next"},al=he(Se({__name:"AutoNext",props:{hasNext:{type:Boolean}},emits:["next","hide"],setup(e,{emit:t}){const n=t,o=Y(null),r=Y(null),s=Y(!1),i=Y(!1),l=Y(3);return nt(()=>{let a;kr(r,c=>{i.value=c.some(u=>u.isIntersecting),l.value=5,a&&(clearInterval(a),a=void 0),i.value&&(a=setInterval(()=>{l.value-=1,l.value<=0&&(clearInterval(a),a=void 0,n("next"))},1e3))}),kr(o,c=>{s.value=c.some(u=>u.isIntersecting)}),yt(()=>a&&clearInterval(a))}),(a,c)=>(R(),K("div",{ref_key:"root",ref:o,class:"h-full w-full flex justify-center items-center"},[_t(U("div",sp,[a.hasNext?(R(),K("div",ip,[i.value?(R(),K("div",lp)):$e("",!0),_t((R(),K("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]=rt(()=>n("next"),["stop"]))},[Mt(" Next in "+Je(l.value),1)])),[[X(an)]])])):$e("",!0),_t((R(),K("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]=rt(()=>n("hide"),["stop"]))},[Mt(" Hide ")])),[[X(an)]])],512),[[li,s.value||!a.hasNext]])],512))}}),[["styles",[`.animate-auto-next{animation:auto-next 5s linear forwards}@keyframes auto-next{0%{width:0}to{width:100%}}
27
+ `]]]),ap=Object.freeze(Object.defineProperty({__proto__:null,default:al},Symbol.toStringTag,{value:"Module"}));function cn(e=0){return new Promise(t=>setTimeout(t,e))}function cl(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 cp(e,t){if(!t.startsWith("blob:"))return t;if(!e.naturalWidth||!e.naturalHeight)return;const o=document.createElement("canvas"),r=o.getContext("2d"),s=e.naturalWidth,i=e.naturalHeight;return o.width=s,o.height=i,r==null||r.drawImage(e,0,0,s,i),await cl(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 up(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:s,naturalHeight:i}=o;i&&s&&(n({width:s,height:i}),clearInterval(r))},20);o.onerror=()=>{n(void 0),clearInterval(r)},o.src=e})}class dp{constructor({isIOS:t,onDownloaded:n}){_e(this,"reactiveResults",un({}));_e(this,"isIOS");_e(this,"tkLoadId",Date.now());_e(this,"isMounted",!0);_e(this,"onDisposeCallbacks",[]);_e(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,s=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(s&&!o){if(o=await cl(n),!o)return;n._tkSrc=o}if(!o||!this.isMounted)return;const i=r&&o.startsWith("blob");i&&!n.complete||((l=this.reactiveResults)[o]??(l[o]={src:o,isLoading:!0,hasError:!1}),i&&this.isIOS&&await cn(300),await 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 cp(o,n):n;if(!r)return;const s=await up(r,o);if(!this.isMounted)return;const i=!!s&&(s.width<200||s.height<200);this.reactiveResults[n]={src:r,size:s,isLoading:!1,hasError:!s,invalid:i},s&&this.onDownloaded(t,s)}}const fp=3;class pp{constructor({getItems:t,getActiveIndex:n,isCompleted:o,callback:r}){_e(this,"isQueueStarted",!1);_e(this,"debouncedEnqueue");_e(this,"concurrentCount",0);_e(this,"getItems");_e(this,"getActiveIndex");_e(this,"isCompleted");_e(this,"callback");_e(this,"activeIndex",0);_e(this,"completedItems");_e(this,"isMounted",!0);this.getItems=t,this.getActiveIndex=n,this.isCompleted=o,this.callback=r,this.debouncedEnqueue=je(this.enqueue.bind(this),50)}dispose(){this.isMounted=!1}run(){this.isQueueStarted?this.debouncedEnqueue():(this.isQueueStarted=!0,this.enqueue())}get canEnqueue(){return this.concurrentCount<fp&&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 s=o;s<t.length;s++){if(!this.canEnqueue)return;r.push(await this.invokeItemCallback(s,s==t.length-1))}for(let s=o-1;s>=0;s--){if(!this.canEnqueue)return;r.push(await this.invokeItemCallback(s,s==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 En(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 s=await En(e-1,t,n);r(s)},t)})}function Ir(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 s=Ir(e.parentElement,t);return t.set(e,s),s}function ul(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 hp(e){const{lstrip:t,lstripBtn:n}=e||{};if(!t||!n||!!document.querySelector(t))return!1;const r=await En(50,30,()=>document.querySelector(n));return r?(ul(r),await cn(),!0):!1}class gp{constructor({spec:t,onChanged:n}){_e(this,"spec");_e(this,"onChanged");_e(this,"rawImages",[]);_e(this,"isMounted",!0);_e(this,"loadRawImagesTs");_e(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 i;let t;const n=je(()=>{t&&this.loadRawImages(t)},100),o=new MutationObserver(n),r=(i=this.spec)!=null&&i.imgDivs?void 0:(()=>{let l=window.innerWidth;return new ResizeObserver(je(()=>{const a=window.innerWidth;if(a!==l){l=a;return}n()},50))})();this.disconnectObservers=async()=>{o.disconnect(),r==null||r.disconnect()};let s=!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),s?n():(s=!0,this.loadRawImages(t)))})}setRawImages(t){let n=!1;const o=t.map((r,s)=>{const i=this.rawImages[s];return i&&i.el===r.el&&i.parentEl===r.parentEl&&i.src===r.src?i:(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 hp(this.spec);let r=n?await En(o?100:1,10,()=>document.querySelector(n)):void 0;if(!r)return;t(r);let s=0;const i=async()=>{if(this.isMounted&&!(r!=null&&r.isConnected)){if(s=0,r=await En(50,20,()=>{const a=document.querySelector(n);return a!=null&&a.isConnected&&a!==r?a:void 0}),!r)return;t(r)}!this.isMounted||++s>=10||setTimeout(i,200)};setTimeout(i,200)}async loadRawImages(t){var s;if(!this.isMounted||!t.isConnected)return;const n=Date.now();this.loadRawImagesTs=n;const o=(s=this.spec)==null?void 0:s.imgDivs,r=o?await mp(t,o):vp(t);this.loadRawImagesTs!==n||!t.isConnected||!this.isMounted||this.setRawImages(r)}}async function mp(e,t){const n=Array.from(e.querySelectorAll(t)),o=new Map;return n.map(s=>{const i=Array.from(s.querySelectorAll("img,canvas"));for(const l of i)if(Ir(l,o)){if(l instanceof HTMLCanvasElement){if(dl(l))return new Gt(void 0,l,s)}else if(l instanceof HTMLImageElement&&fl(l)){const a=mo(l);return new Gt(a,l,s)}}return new Gt(void 0,void 0,s)})}function vp(e){const t=[],n={},o=new Map;return Array.from(e.querySelectorAll("img,canvas")).forEach(s=>{if(Ir(s,o)){if(s instanceof HTMLCanvasElement)dl(s)&&t.push(new Gt(void 0,s));else if(s instanceof HTMLImageElement&&fl(s)){const i=mo(s);if(i){const l=n[i];if(l!==void 0&&l!==-1){t.splice(l,1);return}n[i]=t.length}t.push(new Gt(i,s))}}}),t}function dl(e){return e.isConnected&&e.width>=200&&e.height>=200}function fl(e){if(!e.isConnected)return!1;const t=e.getBoundingClientRect();return!t.width||!t.height||t.width>=200&&t.height>=200}function pl(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),s=r==null?void 0:r.getBoundingClientRect();if(!s||s.bottom<=0)continue;const i=s.top;return o+(i>=0?0:-i/s.height)}return 0}function _p(e){if(document.documentElement.scrollTop<700)return 0;const n=Array.from(document.querySelectorAll("img[src]")).filter(o=>e.includes(o.src)).map(o=>new Gt(void 0,o));return pl(n)}function vo({rawImages:e,page:t,smooth:n,skipIfVisible:o,isScrollDown:r}){const s=Math.floor(t),i=e[Math.min(e.length-1,s)];if(!i)return;const l=i.el??i.parentEl??document.querySelector(`img[src^="${i.computedSrc}"]`);if(!l)return;const a=l.getBoundingClientRect();if(o&&a.top<=0&&a.top+a.height>0)return;const c=hl(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 hl(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 hl(e.parentElement,t);let s=0;return t.forEach((i,l)=>{s+=l===o?i-n:i}),{el:e,top:s}}function bp(e){var S,y,w,L;const t=Y((S=e.raw.value)==null?void 0:S.isWebtoon),n=Y((y=e.raw.value)==null?void 0:y.isWebtoon);let o=!1;const r=e.touchDevice&&!navigator.userAgent.toLowerCase().includes("android"),s=((L=(w=e.raw.value)==null?void 0:w.imgs)==null?void 0:L.filter(Boolean))??[];let i=e.isAutoShow!==!1?e.page.value:s.length?_p(s):void 0,l=s.map(M=>new Gt(M)),a;const c=new dp({isIOS:r,onDownloaded(M,W){let b=l.indexOf(M);if(b===-1){const B=M.computedSrc;b=l.findIndex(k=>k.computedSrc===B)}if(b!==-1){if(W&&!t.value&&b>Math.min(1,l.length-3)&&b<Math.max(l.length-2,3)){const B=W.height/W.width,k=B>2||B<.5,m=B>1.6||B<.6;t.value!==k&&(t.value=k),n.value!==m&&(n.value=m)}f()}}}),u=new pp({getItems:()=>l,getActiveIndex:()=>Math.floor(e.page.value),isCompleted:M=>{const W=M.computedSrc;return!!(W&&c.reactiveResults[W])},callback:M=>c.download(M)});if(s.length)u.run();else{let M=!1;a=new gp({spec:e.spec,async onChanged(W){var b;if(l=W,!e.raw.value&&!W.length){e.onError("no_img");return}(b=e.spec)!=null&&b.imgDivs&&!M&&e.isAutoShow!==!1&&e.page.value&&(M=!0,vo({rawImages:W,page:e.page.value,skipIfVisible:!0}),await cn(1)),i===void 0&&e.isAutoShow===!1&&(i=pl(W)),u.run()}})}Xo(()=>{c.dispose(),u.dispose(),a==null||a.dispose(),o&&vo({rawImages:l,page:e.page.value})});function f(){var k,m,I,v;if(o||t.value===void 0||i===void 0)return;const M=Math.max(0,Math.min(i,l.length)),W=l.length-1,b=Math.min(Math.floor(M),W);if(b>=1){const T=(k=l[b])==null?void 0:k.computedSrc;if(!T){e.isAutoShow&&vo({rawImages:l,page:b});return}const A=(m=l[b-1])==null?void 0:m.computedSrc;if(A&&!((I=c.reactiveResults[A])!=null&&I.size)||!((v=c.reactiveResults[T])!=null&&v.size))return}if(o)return;o=!0,e.onReady(M);let B=!0;fe(()=>Math.floor(e.page.value),(T,A)=>{vo({rawImages:l,page:T,smooth:r,isScrollDown:A===void 0||T>A||l.length===1,skipIfVisible:B&&l.length>1}),B=!1,A??(A=-1),u.run()},{immediate:!0})}return{asyncImgs:oe(()=>{Object.values(c.reactiveResults);const M=[];return l.forEach(W=>{const b=W.computedSrc,B=b?c.reactiveResults[b]:void 0;(b&&!(B!=null&&B.invalid)||W.parentEl)&&M.push(B)}),M}),isWebtoon:oe(()=>t.value??!1),maybeWebtoon:oe(()=>n.value??!1)}}function yp(e,t,n){return oe(()=>t.value?gl(e.value,n.value):e.value.map((o,r)=>[{img:o,index:r}]))}function gl(e,t,n=0){if(e.length===0)return[];const o=e.slice(0,t?1:2),s=!t&&o.some(i=>(i==null?void 0:i.size)&&i.size.width>i.size.height)?[o[0]]:o;return[s.map((i,l)=>({img:i,index:n+l})),...gl(e.slice(s.length),!1,n+s.length)]}function wp(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=Y(t&&e>0?Math.max(0,e):+(sessionStorage.getItem("tk:page")??"0")||e);return oe({get:()=>o.value,set:r=>{o.value=r,sessionStorage.setItem("tk:page",r+"")}})}function xp(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const Cr=40;function Sp({page:e,direction:t,style:n,isLongStrip:o,isVertical:r,isRTL:s,spaceTop:i,scrollEl:l,isWebtoon:a,interferePlayer:c,onChangedPage:u,onInitialized:f,onFinished:h}){let S=!1,y=!1,w=!1,L;const M=je(T,300),W=Wi(()=>{T(),M()},300),b=je(m,50);async function B(){I(e.value,{smooth:!1,ensureLastImgVisibility:!0})}function k(){var C;y=!0,f(),A(),(C=l.value)==null||C.addEventListener("scroll",W),setTimeout(()=>{const{width:D,height:re}=jf();fe(D,()=>{r.value&&b()}),fe(re,()=>{r.value||b()}),fe(n,m),fe(t,m)},300)}async function m(){if(!y||S)return;S=!0,await vt();const C=e.value;if(V()===C){S=!1;return}I(C)}function I(C,{smooth:D,ensureLastImgVisibility:re=!1}={smooth:!1}){const ae=l.value;if(!ae)return;S=!0;const ge=async()=>{await vt(),S=!1,y||k()},Ee=Math.floor(C),Me=ae.querySelector(`[data-index="${Ee}"],[data-index2="${Ee}"]`);if(!Me){ge();return}c(async()=>{await v(ae,!o.value&&D,async()=>{await x(ae,Me,{smooth:D,page:C,ensureLastImgVisibility:re})}),await ge()})}async function v(C,D,re){D&&C.style.setProperty("scroll-snap-type","none"),await re(),D&&C.style.removeProperty("scroll-snap-type")}function T(){if(S)return;const C=V();C!==void 0&&C!==e.value&&u(C),A()}function A(){w||!w&&G()&&(w=!0,h())}function G(){const C=l.value;if(!C)return!1;const D=o.value?a.value?3:!r.value&&C.clientWidth>C.clientHeight?2.25:2.5:2;return r.value?C.scrollHeight-C.scrollTop<C.clientHeight*D:C.scrollWidth-(s.value?-C.scrollLeft:C.scrollLeft)<C.clientWidth*D}function V(){const C=se();return C?(+C.getAttribute("data-index")||0)+(o.value?de(C):0):void 0}function se(){var D;if(L??(L=l.value.getRootNode()),!L)return;const C=(D=L.elementsFromPoint)==null?void 0:D.call(L,r.value||!o.value?window.innerWidth/2:s.value?window.innerWidth-Cr:Cr,r.value&&o.value?i.value||Cr:window.innerHeight/2);if(C)for(let re=0;re<C.length;re++){const ae=C[re];if(ae.hasAttribute("data-index"))return ae;if(ae===l.value)break}}function de(C){const D=C.getBoundingClientRect();return r.value?Math.abs(D.top-i.value)/D.height:s.value?Math.max(0,D.right-l.value.clientWidth)/D.width:Math.abs(D.left)/D.width}let pe=!1;async function x(C,D,re){if(pe)return;const ae=D.getBoundingClientRect();if(!o.value){if(r.value){if(ae.top<=0&&ae.bottom>=C.clientHeight)return}else if(ae.left<=0&&ae.right>=C.clientWidth)return}pe=!0;const ge=r.value?C.scrollTop:C.scrollLeft,Ee=re.page,Me=o.value?Ee%1:0,Ne=await En(30,10,async()=>{await cn();let Fe;if(!(D.offsetHeight<10))return o.value?r.value?Fe=D.offsetTop+Me*D.offsetHeight-i.value:s.value?Fe=D.offsetLeft-C.clientWidth+D.offsetWidth-Me*D.offsetWidth:Fe=D.offsetLeft+Me*D.offsetWidth:r.value?Fe=D.offsetTop+(ae.top>0?0:ae.height-C.clientHeight):Fe=D.offsetLeft+(ae.left>0?0:ae.width-C.clientWidth),Ee>.5&&Math.abs(Fe)<100?void 0:Fe})??0,pt=re.ensureLastImgVisibility?r.value?Math.min(Ne,C.scrollHeight-C.clientHeight*2):s.value?Math.max(Ne,-(C.scrollWidth-C.clientWidth*2)):Math.min(Ne,C.scrollWidth-C.clientWidth*2):Ne;if(!re.smooth){r.value?C.scrollTop=pt:C.scrollLeft=pt,pe=!1;return}const Le=pt-ge,Ze=30;let st=0;return new Promise(Fe=>{(function ht(){const Dt=kp(st,ge,Le,Ze);r.value?C.scrollTop=Dt:C.scrollLeft=Dt,st++,st<=Ze?requestAnimationFrame(ht):(Fe(),pe=!1)})()})}return{init:B,goToPage:I}}function kp(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function Ip({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,isLongStrip:s,speed:i}){const l=sessionStorage.getItem("tk:playing"),a=Y(typeof l=="string"?l==="true":e),c=oe({get:()=>a.value,set:v=>{a.value=v,sessionStorage.setItem("tk:playing",v?"true":"false")}}),u=Y(!1);let f,h;const S=je(m,100),y=je(()=>{u.value=!0},t?2e3:1e3),w=()=>setTimeout(()=>{u.value=!1,y()},30);w(),t||wt(window,"mousemove",w);const L=Xi();nt(()=>{fe(L,v=>{c.value&&(v==="visible"?m():h==null||h())}),fe(i,()=>M()),fe(s,v=>{v||b()})}),yt(b);async function M(v){c.value&&(h==null||h()),v&&(await vt(),await v()),c.value&&S()}function W(){c.value?b():B()}function b(){c.value&&(c.value=!1,h==null||h(),w())}function B(){!c.value&&s.value&&(c.value=!0,m(),w())}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,A=I();if(T<=A){b();return}h=()=>{f=Date.now(),h=void 0};const G=Date.now();f=G;const V=.05*i.value,se=o.value?"scrollTop":"scrollLeft";let de=Date.now(),pe=0;const x=()=>{if(f!==G)return;const C=Date.now(),D=C-de;de=C;const re=V*D+pe;re>=1?(pe=re%1,v[se]+=(re-pe)*(r.value?-1:1)):pe=re,setTimeout(x,1)};x()}function I(){const v=n.value;return o.value?v.scrollTop:r.value?-v.scrollLeft:v.scrollLeft}return{isPlaying:c,isIdle:u,toggle:W,play:B,pause:k,resume:m,stop:b,interfere:M,awake:w}}function Cp(e,t){var B,k,m;const{vol:n,inferVol:o,chap:r,title:s,slug:i,basePath:l}=e;let a=-1;const c=t&&!t.url?document.querySelectorAll(t.sel):void 0;function u(I,v){I.slug?Tr(l,I.slug,v):I.elIndex!==void 0&&c&&c[I.elIndex]&&ul(c[I.elIndex])}function f(I){const v=b[I];return v?T=>u(v,T):void 0}const h=(B=e.prev)==null?void 0:B.slug,S=(k=e.next)==null?void 0:k.slug;let y=h?I=>Tr(l,h,I):void 0,w=S?I=>Tr(l,S,I):void 0;const L=n??o,M=t==null?void 0:t.url,W=((m=s.chapters)==null?void 0:m.filter(I=>I.slug||!M&&I.elIndex!==void 0))??[],b=W.length>1?W:[];if(b.length){if(M&&(a=b.findIndex(I=>I.slug===e.slug)),a===-1&&(a=b.findIndex(I=>(I.vol??I.inferVol)===L&&I.chap===r)),M&&a===-1&&(a=b.findIndex(I=>I.slug&&i.startsWith(`${I.slug}-`)&&i.length-I.slug.length>3)),a!==-1)y??(y=f(a+1)),w??(w=f(a-1));else if(!h&&!S){const I=b.findIndex(v=>{const T=v.vol??v.inferVol;return L===void 0||T===void 0||L===T?v.chap<r:T<L});I!==-1?(y=f(I),w=f(I-1)):w=f(b.length-1)}}return{activeIndex:a,activeLabel:ml({vol:n,chap:r}),prev:y,next:w,chapters:b.map(I=>({label:ml(I),select:v=>u(I,v)}))}}function ml({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}function Tr(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 Tp={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},vl=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,s,i=-1;const l=Y(!1),a=Y(!1),c=zu({touchDevice:n.touchDevice}),u=wp(n.page,n.isAutoShow),f=oe(()=>n.spaceTop??0),{asyncImgs:h,isWebtoon:S,maybeWebtoon:y}=bp({raw:oe(()=>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:w,style:L,isRTL:M,isDouble:W,isVertical:b,isLongStrip:B,gap:k,speed:m,zoom:I,breakFirst:v}=xd({titleName:oe(()=>{var g;return(g=n.raw)==null?void 0:g.title.name}),isWebtoon:S,maybeWebtoon:y,defaultStyle:n.readerStyle,defaultDirection:n.direction}),T=yp(h,W,v),A=oe(()=>u.value>=h.value.length),G=oe(()=>{var g;return n.raw?Cp(n.raw,(g=n.spec)==null?void 0:g.chapter):void 0}),V=Y(null),se=Y(null),de=Y(!1),pe=Y(!1),x=Ip({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:oe(()=>{var g;return(g=V.value)==null?void 0:g.$el}),speed:m,isRTL:M,isVertical:b,isLongStrip:B}),C=oe(()=>!n.touchDevice&&x.isIdle.value&&!c.value),D=oe({get(){return I.value},set(g){x.interfere(()=>{I.value=g})}}),re=Sp({page:u,style:L,direction:w,isLongStrip:B,isVertical:b,isRTL:M,spaceTop:f,isWebtoon:S,scrollEl:oe(()=>{var g;return(g=V.value)==null?void 0:g.$el}),interferePlayer:g=>x.interfere(g),onChangedPage:Me,onInitialized(){o("ready"),a.value=!0,s=Ne()},onFinished:()=>o("finished")}),ae=oe(()=>Math.floor(u.value)),ge=()=>x.interfere(()=>cn(100));Ku().addListener({onKeyDown:g=>{if(n.tourEnabled)return;const E=B.value&&b.value,q=B.value&&!b.value,ne=!B.value&&b.value,ue=!B.value&&!b.value;switch(g.key){case" ":g.preventDefault(),B.value?(Q(!1),x.toggle()):$();break;case"ArrowUp":case"PageUp":E?ge():ne&&ae.value!==0&&(g.preventDefault(),_());break;case"ArrowDown":case"PageDown":E?ge():ne&&!A.value&&(g.preventDefault(),$());break;case"ArrowLeft":q?ge():ue?(g.preventDefault(),d()):b.value&&st();break;case"ArrowRight":q?ge():ue?(g.preventDefault(),p()):b.value&&Ze();break}},onKeyUp:g=>{switch(g.key){case"f":F();break;case"t":z();break;case"h":Q();break}}}),wt("fullscreenchange",()=>{de.value=!!document.fullscreenElement}),fe(x.isPlaying,g=>{g||N(!1),o("playingChanged",g)}),fe(x.isIdle,g=>{x.isPlaying.value&&N(g)}),fe(c,g=>{!g&&x.isIdle.value?x.awake():g&&n.fullScreen&&N()});function Me(g){if(u.value===g)return;const E=h.value.length;if(g<0||g>=E+1)return;const q=u.value;u.value=g;const ne=Math.floor(g*100)/100;ne!==i&&(i=ne,o("pageChanged",ne)),g>=E?(N(!1),x.stop()):g<.01&&q>g?(N(!1),x.awake()):r||(B.value?s!==void 0&&Ne()-s>300&&N(!0):Math.abs(q-g)===1&&N(!0))}function Ne(){var E;const g=(E=V.value)==null?void 0:E.$el;return g?b.value?g.scrollTop:M.value?-g.scrollLeft:g.scrollLeft:0}function pt(){!n.touchDevice&&!B.value&&re.goToPage(ae.value,{smooth:!0})}function Le(){if(x.isPlaying.value){!n.fullScreen||!n.touchDevice?x.stop():x.awake();return}N()}function Ze(g=!1){var E,q;(q=(E=G.value)==null?void 0:E.next)==null||q.call(E,g)}function st(g=!1){var E,q;(q=(E=G.value)==null?void 0:E.prev)==null||q.call(E,g)}function Fe(g,E){var q,ne,ue;(ue=(ne=(q=G.value)==null?void 0:q.chapters)==null?void 0:ne[g])==null||ue.select(xt(E))}function ht(g){M.value?Ze(xt(g)):st(xt(g))}function Dt(g){M.value?st(xt(g)):Ze(xt(g))}function xt(g){return!n.touchDevice&&(g.ctrlKey||g.metaKey)}function d(){M.value?$():_()}function p(){M.value?_():$()}function _(){var q;const g=T.value,E=A.value?g[g.length-1][0].index:(q=g[P()-1])==null?void 0:q[0].index;E!==void 0?re.goToPage(E):st()}function $(){var g,E;if(A.value)Ze();else{const q=((E=(g=T.value[P()+1])==null?void 0:g[0])==null?void 0:E.index)??h.value.length;re.goToPage(q)}}function P(){const g=ae.value,E=T.value.findIndex(q=>q.some(({index:ne})=>ne===g));return E===-1?T.value.length-1:E}function j(){xp(),o("dispose")}async function N(g){if(c.value&&!n.fullScreen)return;const E=typeof g=="boolean"?g:!n.fullScreen;E!==n.fullScreen&&(r=!0,o("fullScreenChanged",E),E&&setTimeout(()=>{n.fullScreen&&c.value&&o("fullScreenChanged",!1)},100))}function z(){n.entryId?H():O()}function F(){var g,E;document.fullscreenElement?document.exitFullscreen():(E=(g=se.value)==null?void 0:g.$el)==null||E.requestFullscreen()}function O(){x.stop(),o("addEntry")}function H(){x.stop(),o("openEntry",n.entryId)}function Q(g){pe.value!==g&&(pe.value=!pe.value,pe.value&&x.isPlaying.value&&x.stop())}return(g,E)=>{const q=al,ne=ll,ue=rl,ke=nl,Ge=tl,Rt=el,_o=Ni,He=uo,bo=Vi,De=yr,it=Bi,yo=Ri,Rp=Di,Bp=zi,Vp=Ai,Np=Li,Fp=Oi,Hp=Mi,Wp=_r,Kp=vr,qp=Si,Up=xi,Yp=wi,Xp=bi;return g.immediate||l.value?(R(),ve(Xp,{key:0,ref_key:"root",ref:se,loading:!a.value,immediate:!!g.immediate,"full-screen":!!g.fullScreen,idle:C.value,"space-top":f.value,rtl:X(M),onClick:E[11]||(E[11]=rt(()=>{},["stop"]))},Is({settings:te(()=>{var Qt;return[Z(Hp,{"reader-style":X(L),"onUpdate:readerStyle":E[3]||(E[3]=We=>Ce(L)?L.value=We:null),direction:X(w),"onUpdate:direction":E[4]||(E[4]=We=>Ce(w)?w.value=We:null),gap:X(k),"onUpdate:gap":E[5]||(E[5]=We=>Ce(k)?k.value=We:null),speed:X(m),"onUpdate:speed":E[6]||(E[6]=We=>Ce(m)?m.value=We:null),zoom:D.value,"onUpdate:zoom":E[7]||(E[7]=We=>D.value=We),name:(Qt=g.raw)==null?void 0:Qt.title.name,webtoon:X(S),disabled:!l.value,onHelp:Q},null,8,["reader-style","direction","gap","speed","zoom","name","webtoon","disabled"])]}),"reset-zoom":te(()=>[Z(sn,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:te(()=>[Z(Yp,{zoom:D.value,onClick:E[10]||(E[10]=rt(()=>D.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:te(()=>[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:te(()=>{var Qt;return[l.value?(R(),ve(ne,{key:0,ref_key:"body",ref:V,zoom:D.value,"onUpdate:zoom":E[0]||(E[0]=We=>D.value=We),"page-index":ae.value,pages:X(T),"total-imgs":X(h).length,direction:X(w),gap:X(k),"is-long-strip":X(B),isRTL:X(M),"is-vertical":X(b),"space-top":f.value,busy:X(c),idle:C.value,"play-controller":X(x),"touch-device":g.touchDevice,"has-next":!!((Qt=G.value)!=null&&Qt.next),onVnodeMounted:X(re).init,onPrev:_,onNext:$,onClick:Le,onDragEnd:pt,onWheelPassive:E[1]||(E[1]=()=>X(x).interfere())},Is({_:2},[l.value&&X(h).length?{name:"end",fn:te(()=>{var We;return[Z(q,{"has-next":!!((We=G.value)!=null&&We.next),onNext:Ze,onHide:j},null,8,["has-next"])]}),key:"0"}:void 0]),1032,["zoom","page-index","pages","total-imgs","direction","gap","is-long-strip","isRTL","is-vertical","space-top","busy","idle","play-controller","touch-device","has-next","onVnodeMounted"])):$e("",!0),a.value&&!A.value&&!g.tourEnabled?(R(),ve(ue,{key:1,direction:X(w)},null,8,["direction"])):$e("",!0),a.value&&!A.value?(R(),ve(ke,{key:2,playing:!!X(x).isPlaying.value},null,8,["playing"])):$e("",!0),pe.value?(R(),ve(Ge,{key:3,"touch-device":g.touchDevice,onHide:Q},null,8,["touch-device"])):$e("",!0),g.tourEnabled?(R(),ve(Rt,{key:4,onHide:E[2]||(E[2]=()=>o("tourEnabledChanged",!1))})):$e("",!0)]}),_:2},[g.raw?{name:"back",fn:te(()=>[Z(He,{href:g.raw.title.url,title:"Back to manga"},{default:te(()=>[Z(_o)]),_:1},8,["href"])]),key:"0"}:void 0,g.touchDevice?void 0:{name:"exit",fn:te(()=>[Z(He,{title:"Hide reader","data-tour":"You have entered reader mode, press here to return to the original page",onClick:j},{default:te(()=>[Z(bo)]),_:1})]),key:"1"},G.value?{name:"chapter-nav",fn:te(()=>[Z(De,{modelValue:G.value.activeIndex,label:G.value.activeLabel,title:"Select chapter",items:G.value.chapters,onSelect:Fe},{item:te(({item:Qt})=>[Mt(Je(Qt.label),1)]),_:1},8,["modelValue","label","items"]),G.value.next||G.value.prev?(R(),K("div",Tp,[Z(He,{title:`${X(M)?"Next":"Prev"} chapter (←)`,disabled:X(M)?!G.value.next:!G.value.prev,class:"!rounded-r-none",onClick:ht},{default:te(()=>[Z(it)]),_:1},8,["title","disabled"]),Z(He,{title:`${X(M)?"Prev":"Next"} chapter (→)`,disabled:X(M)?!G.value.prev:!G.value.next,class:"!rounded-l-none",onClick:Dt},{default:te(()=>[Z(yo)]),_:1},8,["title","disabled"])])):$e("",!0)]),key:"2"}:void 0,X(T).length?{name:"page-nav",fn:te(()=>[Z(Rp,{"model-value":ae.value,disabled:!a.value,pages:X(T),"total-imgs":X(h).length,"onUpdate:modelValue":X(re).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),key:"3"}:void 0,g.raw?{name:"entry",fn:te(()=>[Z(He,{title:g.entryId?"View entry (T)":"Add to library (T)","data-tour":"Prress here to add to your collection",onClick:z},{default:te(()=>[g.entryId?(R(),ve(Bp,{key:0})):(R(),ve(Vp,{key:1}))]),_:1},8,["title"])]),key:"4"}:void 0,g.touchDevice?void 0:{name:"full-screen",fn:te(()=>[Z(He,{title:`${de.value?"Exit":"Enter"} fullscreen (F)`,onClick:F},{default:te(()=>[de.value?(R(),ve(Np,{key:0})):(R(),ve(Fp,{key:1}))]),_:1},8,["title"])]),key:"5"},X(B)?{name:"play",fn:te(()=>[Z(He,{"data-tour":"Press here to play like a video",title:`${X(x).isPlaying.value?"Pause":"Play"} (Space)`,disabled:!a.value,onClick:E[8]||(E[8]=()=>X(x).toggle())},{default:te(()=>[X(x).isPlaying.value?(R(),ve(Wp,{key:0})):(R(),ve(Kp,{key:1}))]),_:1},8,["title","disabled"])]),key:"6"}:void 0,X(W)?{name:"break-first",fn:te(()=>[Z(He,{title:"Separate 1st page","data-tour":"Press here to separate the first page from double-page mode",disabled:!a.value,onClick:E[9]||(E[9]=()=>v.value=!X(v))},{default:te(()=>[X(v)?(R(),ve(qp,{key:0})):(R(),ve(Up,{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
+ `]]]),$p=Object.freeze(Object.defineProperty({__proto__:null,default:vl},Symbol.toStringTag,{value:"Module"})),Ep={},Pp={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 Op(e,t){return R(),K("svg",Pp,Mp)}const Lp=Object.freeze(Object.defineProperty({__proto__:null,default:he(Ep,[["render",Op]])},Symbol.toStringTag,{value:"Module"})),Ap=`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",$r={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},Xe={promise:void 0,data:un({...$r})};async function zp(e){return Xe.promise?(Xe.data.raw=e.raw,await Xe.promise):(Xe.promise=new Promise(t=>{let n=!1,o=!1,r;const s=!!e.spaceTop||!!e.isAutoShow&&!!e.page,i=()=>{n||(n=!0,r&&document.body.removeChild(r),document.documentElement.classList.remove(Pn),Object.assign(Xe.data,$r),Xe.promise=void 0)};Object.assign(Xe.data,$r,e,{immediate:s,onReady(){s||(l(),setTimeout(()=>r.setAttribute("style","")))},onError(){var c,u;i(),o?((c=e.onDispose)==null||c.call(e),(u=e.onError)==null||u.call(e)):a()},onDispose:()=>{var c;i(),(c=e==null?void 0:e.onDispose)==null||c.call(e)},onFullScreenChanged:c=>{var u;Xe.data.fullScreen=c,(u=e.onFullScreenChanged)==null||u.call(e,c)},onPageChanged:c=>{var u;Xe.data.page=c,(u=e.onPageChanged)==null||u.call(e,c)},onTourEnabledChanged:c=>{Xe.data.tourEnabled=c}}),jp().then(()=>{if(n){a();return}r=document.createElement(Pn),document.documentElement.classList.add(Pn),s?(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)=>Yf(c,u),triggerTouchStart:()=>Zf(),updateArgs(c){Object.assign(Xe.data,c)},dispose:i}))}function a(){o||t(void 0)}}),await Xe.promise)}async function jp(){if(window.customElements.get(Pn))return;const e=document.createElement("style");e.appendChild(document.createTextNode(Ap)),document.head.appendChild(e);const t=Bc({styles:[await Dp()],data:()=>({readerData:Xe.data}),render(){return Js(vl,this.readerData)}});window.customElements.define(Pn,t)}async function Dp(){const e=Object.assign({"./App.vue":$p,"./components/AutoNext.vue":ap,"./components/BottomSheet.vue":Xu,"./components/ButtonDropdown.vue":ef,"./components/ButtonIcon.vue":Ru,"./components/ButtonReaderSettings.vue":kd,"./components/ButtonResetZoom.vue":hu,"./components/DirectionToast.vue":qf,"./components/HelpScreen.vue":Bf,"./components/InputPercentage.vue":Qu,"./components/InputSelect.vue":od,"./components/IntersectionWrapper.vue":Qf,"./components/LoadingIndicator.vue":Qc,"./components/PageNav.vue":tf,"./components/PauseToast.vue":Vf,"./components/ReaderBody.vue":rp,"./components/ReaderLayout.vue":su,"./components/ReaderTour.vue":Df,"./components/TableField.vue":td,"./components/ZoomWrapper.vue":Gf,"./components/icons/IconBack.vue":xf,"./components/icons/IconBookmarkNew.vue":Bd,"./components/icons/IconBookmarked.vue":Wd,"./components/icons/IconChevronLeft.vue":ff,"./components/icons/IconChevronRight.vue":lf,"./components/icons/IconClose.vue":Hu,"./components/icons/IconDouble.vue":bu,"./components/icons/IconDoubleSkip.vue":ku,"./components/icons/IconExclamationCircle.vue":Lp,"./components/icons/IconFullscreen.vue":Ed,"./components/icons/IconFullscreenExit.vue":Ad,"./components/icons/IconHelp.vue":ad,"./components/icons/IconNext.vue":Kf,"./components/icons/IconPause.vue":Au,"./components/icons/IconPlay.vue":Eu,"./components/icons/IconReaderExit.vue":vf,"./components/icons/IconSettings.vue":pd,"./components/icons/IconTriangle.vue":Xd,"./components/icons/IconZoom.vue":uu}),t=[];for(const n in e){const o=e[n];t.push(o.default.styles)}return t.join("")}return zp});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gear-second",
3
3
  "author": "endyquang",
4
- "version": "1.6.1",
4
+ "version": "1.7.0",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Trkun manga reader",
7
7
  "main": "index.js",